From sutton_t at giug.net Mon Oct 1 04:18:12 2001 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 1 Oct 2001 12:18:12 +0100 (BST) Subject: [mapserver-users] PHPmapscript Class docs problem Message-ID: Hi I am trying to get a copy of the php-mapscript classdocs at docs/phpmapscript-class-guide.html on the mapserver site. It seems this page is broken as it just stops at the PointObj class heading. Can someone fix this / tell me where I can get the full doc? Many Thanks Tim Sutton From morissette at dmsolutions.ca Mon Oct 1 07:58:05 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 01 Oct 2001 10:58:05 -0400 Subject: [mapserver-users] PHP, Create Layer on Fly - HELP References: <3DFF131E4E6D2D4198CDD758F35A53536E3EE6@postoffice.GASAI.Com> Message-ID: <3BB8847D.3B3D1EBD@dmsolutions.ca> "Hankley, Chip" wrote: > > If I just comment these out, I get the following fatal error: > > Fatal error: Object has an invalid '_map_handle_' property in > c:\inetpub\wwwroot\seating\seating.php on line 42 > Chip, There was a problem with the way PHP objects were handled internally with PHP 4.0.x. A fix for this was committed to CVS on Sept. 13, so you'll have to get a new DLL that was built after that date. We don't have one on our site at the moment, but we should have one soon. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Didier.GEORGIEFF at agriculture.gouv.fr Mon Oct 1 08:43:03 2001 From: Didier.GEORGIEFF at agriculture.gouv.fr (Didier Georgieff) Date: 1 Oct 2001 17:43:03 +0200 Subject: [mapserver-users] generated dynamic .map files Message-ID: <3BB8AB27.7262.2032734*Didier.GEORGIEFF@agriculture.gouv.fr> Hello, I'm in the process of using mapserver as maping tool with Zope as application server (we used to use ArcviewIMS). I tested around mapserver+apache (thanks to michael anderson for the help) and it's really a great(tm) product ! Here is the question : Zope is a killer for all dynamic features, and i can see a lot done on the Zope side (again thanks to michael anderson for all the informations and help). But i have a problem understanding what can be done to generate "on the fly" map files when Zope server is on a different machine than mapserver (if it's on the same machine thay can share the ...map filesystem). Because in this case Zope can't write filesystem on the mapserver machine (and i don't want to allow ftp on the mapserver machine filesystem for security reasons) Reading thru the documentation i didn't understood for sure what can be done without a map file (all parameter in the request http thru get or put), or if it's possible to have a map file on a different machine than mapserver. If this can't be workaround, so my solution will need to have mapserver and Zope on the same machine so they can share the same .map file dynamically. But this will reduce the abilty to adapt to different architectures. Any help, tip, pointer, experience will be welcome. Thanks in advance. PS : Naturally all our developments will be open source. -- Didier Georgieff Chef de projet technique SIT du Bas-Rhin t?l : 03.88.76.78.35 - fax : 03.88.76.78.34 email : didier.georgieff at agriculture.gouv.fr SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr Direction R?gionale et D?partementale de l'Agriculture et de la For?t Cit? Administrative - Entr?e 24 - 14, rue du Mar?chal Juin 67084 Strasbourg Cedex From Rich at GreenwoodMap.com Mon Oct 1 09:25:51 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 01 Oct 2001 10:25:51 -0600 Subject: [mapserver-users] HTML fragments and # Message-ID: <5.1.0.14.0.20011001100856.00aa04f8@mail.GreenwoodMap.com> I have an HTML document that I wish to use as a template in a query. It is divided into 13 fragments. Normally I would address it as "document.html#section_5" to position the document to the Section 5 fragment. In my .map I'd like to do something like: TEMPLATE "document.html#[section]" Where [section] gets replaced with appropriate section number from the .dbf based on which polygon the user selected. But I have two problems: 1. The # gets parsed by mapserver as a comment. 2. [section] doesn't get replaced. Any suggestions? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From pramsey at refractions.net Mon Oct 1 09:40:20 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 01 Oct 2001 09:40:20 -0700 Subject: [mapserver-users] ArcIMS Gateway Message-ID: <3BB89C74.A45CA73F@refractions.net> Mapserverers, We have started playing with ArcGIS 8.1 and were pleased and interested to note that it supports adding an "Internet Server" as a data layer. ESRI is certainly picking up the "distributed GIS" ball. There is, of course, one small catch: when ESRI says "internet server" they mean "ArcIMS server". :) ESRI actually packages a little module with ArcIMS which sits in front of IMS and turns OGC Web Map Server requests into IMS-style requests. Basically a WMS emulator. I was thinking that it would be useful to have an emulator which does the reverse: sits in front of a WMS server and turns IMS-style requests into WMS requests -- an IMS emulator. That way people could use WMS servers for external data serving and still be able to add those WMS layers to ArcGIS projects. So (1) has anyone already done this? and (2) does anyone see any notable pitfalls in doing so? Paul From ed at topozone.com Mon Oct 1 10:17:21 2001 From: ed at topozone.com (Ed McNierney) Date: Mon, 1 Oct 2001 13:17:21 -0400 Subject: [mapserver-users] ArcIMS Gateway Message-ID: <13858AA1A74F30419F319ACB66A9D122D2CF@mercator.topozone.com> Paul (or others) - Is this what ESRI uses on the Geography Network? They claim to support WMS servers as Geography Network participants, but I (a) can't find any and (b) can't quite figure them out since I can't find any WMS support in ESRI *clients*. This would *seem* to indicate the existence of a translator going the other way, as you ask. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Monday, October 01, 2001 12:40 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] ArcIMS Gateway Mapserverers, We have started playing with ArcGIS 8.1 and were pleased and interested to note that it supports adding an "Internet Server" as a data layer. ESRI is certainly picking up the "distributed GIS" ball. There is, of course, one small catch: when ESRI says "internet server" they mean "ArcIMS server". :) ESRI actually packages a little module with ArcIMS which sits in front of IMS and turns OGC Web Map Server requests into IMS-style requests. Basically a WMS emulator. I was thinking that it would be useful to have an emulator which does the reverse: sits in front of a WMS server and turns IMS-style requests into WMS requests -- an IMS emulator. That way people could use WMS servers for external data serving and still be able to add those WMS layers to ArcGIS projects. So (1) has anyone already done this? and (2) does anyone see any notable pitfalls in doing so? Paul From bruno_gendron at yahoo.com Mon Oct 1 12:00:04 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Mon, 1 Oct 2001 21:00:04 +0200 (CEST) Subject: [mapserver-users] ArcIMS Gateway In-Reply-To: <3BB89C74.A45CA73F@refractions.net> Message-ID: <20011001190004.34675.qmail@web20708.mail.yahoo.com> Hi to everyone, I have been working a lot lately in creating a PHP-Mapscript-based ArcXML-parser for Mapserver, which handles basically 2/3 of the ArcXML 1.1 spec and returns an ArcXML to any ArcXML-enabled client. Actually, the parser talks directly to Mapserver, but it could be modified to forward its request an WMS format to any WMS-compliant server and back. However, my work is part of a larger project, which include a Flash-DHTML Mapserver client, and I don't know at this point in time if this ArcXML-parser will be in the public domain (a public demo will go on-line soon, so stay tuned). So, basically, yes, something closely related has been done, and, no, I haven't seen any pitfall in doing this. In respect to Mapserver, the mapfile structure can easily (hum!) related to ArcXML tags. The nice thing with ArcXML is that it could be easily extended to include special geo-processing tags (I am in the process of creating such tags to handle complex queries). Bruno Gendron GIS consultant Lachine, Canada --- Paul Ramsey a ?crit?: > Mapserverers, > > We have started playing with ArcGIS 8.1 and were > pleased and > interested to note that it supports adding an > "Internet Server" as a > data layer. ESRI is certainly picking up the > "distributed GIS" ball. > There is, of course, one small catch: when ESRI says > "internet server" > they mean "ArcIMS server". :) > > ESRI actually packages a little module with ArcIMS > which sits in front > of IMS and turns OGC Web Map Server requests into > IMS-style requests. > Basically a WMS emulator. I was thinking that it > would be useful to have > an emulator which does the reverse: sits in front of > a WMS server and > turns IMS-style requests into WMS requests -- an IMS > emulator. That way > people could use WMS servers for external data > serving and still be able > to add those WMS layers to ArcGIS projects. > > So (1) has anyone already done this? and (2) does > anyone see any > notable pitfalls in doing so? > > Paul ___________________________________________________________ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com From sdlime at mninter.net Mon Oct 1 12:10:38 2001 From: sdlime at mninter.net (Stephen Lime) Date: Mon, 01 Oct 2001 14:10:38 -0500 Subject: [mapserver-users] HTML fragments and # References: <5.1.0.14.0.20011001100856.00aa04f8@mail.GreenwoodMap.com> Message-ID: <3BB8BFAE.5585CBAE@mninter.net> I'll have to check on the # sign. The quotes should take precedence since the lexer always tries for the longest match. If it were being treated as a comment I would think you'd get an error loading the mapfile because of an unmatched double quote". The replacement isn't happening because the case is wrong for the substitution. Shapefile attributes are always all upper case, so use [SECTION] instead. Steve Richard Greenwood wrote: > I have an HTML document that I wish to use as a template in a query. It is > divided into 13 fragments. Normally I would address it as > "document.html#section_5" to position the document to the Section 5 > fragment. In my .map I'd like to do something like: > TEMPLATE "document.html#[section]" > Where [section] gets replaced with appropriate section number from the .dbf > based on which polygon the user selected. > > But I have two problems: > 1. The # gets parsed by mapserver as a comment. > 2. [section] doesn't get replaced. > > Any suggestions? > > Thanks, > Rich > > Richard W. Greenwood, PLS > Greenwood Mapping, Inc. > Rich at GreenwoodMap.com > (307) 733-0203 > http://www.GreenwoodMap.com From kames at keyspanenergy.com Mon Oct 1 12:12:10 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Mon, 01 Oct 2001 15:12:10 -0400 Subject: [mapserver-users] ArcIMS Gateway References: <13858AA1A74F30419F319ACB66A9D122D2CF@mercator.topozone.com> Message-ID: <3BB8C00A.CFC451AC@keyspanenergy.com> FWIW... I went to the NEARC meeting in Worcester last week. An ESRI representative told me that in ARCGis8.1, one can add a data layer from a url. HOWEVER, that URL must be an ArcIMS server. Kieran Ed McNierney wrote: > Paul (or others) - > > Is this what ESRI uses on the Geography Network? They claim to support > WMS servers as Geography Network participants, but I (a) can't find any > and (b) can't quite figure them out since I can't find any WMS support > in ESRI *clients*. This would *seem* to indicate the existence of a > translator going the other way, as you ask. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey at refractions.net] > Sent: Monday, October 01, 2001 12:40 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] ArcIMS Gateway > > Mapserverers, > > We have started playing with ArcGIS 8.1 and were pleased and > interested to note that it supports adding an "Internet Server" as a > data layer. ESRI is certainly picking up the "distributed GIS" ball. > There is, of course, one small catch: when ESRI says "internet server" > they mean "ArcIMS server". :) > > ESRI actually packages a little module with ArcIMS which sits in front > of IMS and turns OGC Web Map Server requests into IMS-style requests. > Basically a WMS emulator. I was thinking that it would be useful to have > an emulator which does the reverse: sits in front of a WMS server and > turns IMS-style requests into WMS requests -- an IMS emulator. That way > people could use WMS servers for external data serving and still be able > to add those WMS layers to ArcGIS projects. > > So (1) has anyone already done this? and (2) does anyone see any > notable pitfalls in doing so? > > Paul From pramsey at refractions.net Mon Oct 1 12:09:30 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 01 Oct 2001 12:09:30 -0700 Subject: [mapserver-users] ArcIMS Gateway References: <13858AA1A74F30419F319ACB66A9D122D2CF@mercator.topozone.com> Message-ID: <3BB8BF6A.D545A72E@refractions.net> Ed McNierney wrote: > > Is this what ESRI uses on the Geography Network? They claim to support > WMS servers as Geography Network participants, but I (a) can't find any > and (b) can't quite figure them out since I can't find any WMS support > in ESRI *clients*. This would *seem* to indicate the existence of a > translator going the other way, as you ask. Hmmm, I suppose they could have an IMS->WMS connector as well, but it certainly is not in the public domain. I have started perl'ing on this, and it is already showing up some interesting quirks in Arc8 (if your connector returns ArcXML with an 'encoding' tag, the connection fails automatically... nice XML parsing, guys). Thank goodness for ngrep :) From sdlime at mninter.net Mon Oct 1 13:09:16 2001 From: sdlime at mninter.net (Stephen Lime) Date: Mon, 01 Oct 2001 15:09:16 -0500 Subject: [mapserver-users] ArcIMS Gateway References: <3BB89C74.A45CA73F@refractions.net> Message-ID: <3BB8CD6C.1320670A@mninter.net> Hmmmm... An interesting idea but I'd rather see ESRI stop being so friggin proprietary. The Geography Network is supposed to be open yet you must be an ESRI user to participlate at any meaningful level. Ask tech support none of the "open" pieces are actually there yet. Note that Dan added support for external WMS layers (i.e. you can access ArcIMS if there is a wrapper in front). Mapping ArcXML to WMS or even MapServer shouldn't be that hard. The reason I lump MapServer in there is because WMS isn't all that feature rich, yet. Steve Paul Ramsey wrote: > Mapserverers, > > We have started playing with ArcGIS 8.1 and were pleased and > interested to note that it supports adding an "Internet Server" as a > data layer. ESRI is certainly picking up the "distributed GIS" ball. > There is, of course, one small catch: when ESRI says "internet server" > they mean "ArcIMS server". :) > > ESRI actually packages a little module with ArcIMS which sits in front > of IMS and turns OGC Web Map Server requests into IMS-style requests. > Basically a WMS emulator. I was thinking that it would be useful to have > an emulator which does the reverse: sits in front of a WMS server and > turns IMS-style requests into WMS requests -- an IMS emulator. That way > people could use WMS servers for external data serving and still be able > to add those WMS layers to ArcGIS projects. > > So (1) has anyone already done this? and (2) does anyone see any > notable pitfalls in doing so? > > Paul From alison.slaats at metc.state.mn.us Mon Oct 1 14:12:39 2001 From: alison.slaats at metc.state.mn.us (Alison Slaats) Date: Mon, 01 Oct 2001 15:12:39 -0600 Subject: [mapserver-users] ArcIMS Gateway Message-ID: Ed, Paul & Others The majority of the map services (or servers) available on the Geography Network are ArcIMS-flavor image or feature services, however, there are about 20 WMS listed, so they are acting as a clearinghouse for the OGC-type of map services as well. Having said that, I should note that about 15 of the 20 WMS are served by ESRI itself. To see a list of these WMS, go to the Geography Network, and then click on "Maps", then select "Live Map Services" (http://www.geographynetwork.com/maps/services.cfm) It is a bit unclear, but this page contains 3 types of map services arranged in the following sections: ArcIMS Image Map Services WMS ArcIMS WMS Map Services Because there are so many ArcIMS image map services, you hardly notice the other kinds of map services at the bottom of the page. If you scroll all the way does you will see the 20 WMS listed. You can view these services using the web-based geography network client simply by clicking on the name of the service & then clicking on the map tab. I totally agree with Paul's comment that ESRI clients like ArcMap & ArcExplorer should support WMS in addition to ArcIMS internet map services. I am guessing they will in future versions. Coincidentally I just put in a request to ESRI a couple of days ago asking if and when they will be doing this. I have not heard anything back yet, but when I do, I can pass on that information. I do not think any of the other big vendors GIS software can read WMS directly yet either. I would be cool if someone invented a "converter" in the mean time .... There are a couple of web viewers out there for WMS. One of them is CubeVew at CubeWerx Inc.: http://www.cubewerx.com/demo/cubeview/cubeview.cgi Using this web client, you can combine several WMS from several sources on one map. You can view a list of various places currently offering WMS (under Data Store). You can also add your own map service to the map by typing in the URL in the text box at the bottom of the screen. I checked it out ... and the WMS listed on the ESRI site work well in this viewer ... Also, NSDI is working on projects to integrate WMS into the metadata online linkage part of metadata records, so sometime in the near future, we will be able to search for WMS on NSDI nodes, not just Geography Network !! Alison ========================== Alison Slaats GIS Web Applications Developer Metropolitan Council +651-602-1561 http://gis.metc.state.mn.us/ http://www.datafinder.org/ >>> "Ed McNierney" 10/01/01 11:17AM >>> Paul (or others) - Is this what ESRI uses on the Geography Network? They claim to support WMS servers as Geography Network participants, but I (a) can't find any and (b) can't quite figure them out since I can't find any WMS support in ESRI *clients*. This would *seem* to indicate the existence of a translator going the other way, as you ask. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Monday, October 01, 2001 12:40 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] ArcIMS Gateway Mapserverers, We have started playing with ArcGIS 8.1 and were pleased and interested to note that it supports adding an "Internet Server" as a data layer. ESRI is certainly picking up the "distributed GIS" ball. There is, of course, one small catch: when ESRI says "internet server" they mean "ArcIMS server". :) ESRI actually packages a little module with ArcIMS which sits in front of IMS and turns OGC Web Map Server requests into IMS-style requests. Basically a WMS emulator. I was thinking that it would be useful to have an emulator which does the reverse: sits in front of a WMS server and turns IMS-style requests into WMS requests -- an IMS emulator. That way people could use WMS servers for external data serving and still be able to add those WMS layers to ArcGIS projects. So (1) has anyone already done this? and (2) does anyone see any notable pitfalls in doing so? Paul From pgallen at randomlogic.com Mon Oct 1 14:13:57 2001 From: pgallen at randomlogic.com (Paul G. Allen) Date: Mon, 01 Oct 2001 14:13:57 -0700 Subject: [mapserver-users] Re: References: Message-ID: <3BB8DC95.BD7779A3@randomlogic.com> Help? Stephen Lime wrote: > > help > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 -- Paul G. Allen UNIX Admin II/Programmer Akamai Technologies, Inc. www.akamai.com Work: (858)909-3630 Cell: (858)395-5043 From imap at chesapeake.net Mon Oct 1 14:53:06 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 01 Oct 2001 17:53:06 -0400 Subject: [mapserver-users] ArcIMS Gateway References: <20011001190004.34675.qmail@web20708.mail.yahoo.com> Message-ID: <3BB8E5C2.8300CA78@chesapeake.net> Bruno/list, Somewhere on the ArcIMS machine, there exists an ArcXML DTD or schema which can be comformed to by writing some mapscript with XML::Writer. I am working on a similar project, but is a mapscript query engine interface with OpenGIS GML (anyone else using XML with the GML DTD) I'd be glad to share notes, if you are doing working along these lines. The standardization of geospatial data transfer is a goal we should all be working towards. If anyone has the ArcXML DTD, please post. Thanks, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. (410)257-3187 Bruno Gendron wrote: > > Hi to everyone, > > I have been working a lot lately in creating a > PHP-Mapscript-based ArcXML-parser for Mapserver, which > handles basically 2/3 of the ArcXML 1.1 spec > and returns an ArcXML to any ArcXML-enabled > client. Actually, the parser talks directly to > Mapserver, but it could be modified to forward its > request an WMS format to any WMS-compliant server and > back. > > However, my work is part of a larger project, which > include a Flash-DHTML Mapserver client, and I don't > know at this point in time if this ArcXML-parser will > be in the public domain (a public demo will go on-line > soon, so stay tuned). > > So, basically, yes, something closely related has been > done, and, no, I haven't seen any pitfall in doing > this. In respect to Mapserver, the mapfile structure > can easily (hum!) related to ArcXML tags. The nice > thing with ArcXML is that it could be easily extended > to include special geo-processing tags (I am in the > process of creating such tags to handle complex > queries). > > Bruno Gendron > GIS consultant > Lachine, Canada > > --- Paul Ramsey a ?crit : > > Mapserverers, > > > > We have started playing with ArcGIS 8.1 and were > > pleased and > > interested to note that it supports adding an > > "Internet Server" as a > > data layer. ESRI is certainly picking up the > > "distributed GIS" ball. > > There is, of course, one small catch: when ESRI says > > "internet server" > > they mean "ArcIMS server". :) > > > > ESRI actually packages a little module with ArcIMS > > which sits in front > > of IMS and turns OGC Web Map Server requests into > > IMS-style requests. > > Basically a WMS emulator. I was thinking that it > > would be useful to have > > an emulator which does the reverse: sits in front of > > a WMS server and > > turns IMS-style requests into WMS requests -- an IMS > > emulator. That way > > people could use WMS servers for external data > > serving and still be able > > to add those WMS layers to ArcGIS projects. > > > > So (1) has anyone already done this? and (2) does > > anyone see any > > notable pitfalls in doing so? > > > > Paul > > ___________________________________________________________ > Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! > Yahoo! Courrier : http://fr.mail.yahoo.com From Timothy.Mackey at agso.gov.au Mon Oct 1 15:30:26 2001 From: Timothy.Mackey at agso.gov.au (Timothy.Mackey at agso.gov.au) Date: Tue, 2 Oct 2001 08:30:26 +1000 Subject: [mapserver-users] setting projection based on zoom Message-ID: <28DE833A781BD511839600D0B772248F4F53AC@agsomail1.agso.gov.au> Hi Hannah, Here's the perl proj module, sent to me by Steve a few months ago... To compile it, just do: make clean perl Makefile.PL make static And here's an example of using it in perl to convert a geodetic point to Lambert conformal conic: @pargs = ("proj=lcc", "ellps=WGS84", "lon_0=134e", "lat_1=18s", "lat_2=36s", ); $pj = proj::pj_init(5, \@pargs) or die('Unable to initialize the projection.'); $in = new projUV(); $in->{u} = $proj::DEG_TO_RAD*$longitude; $in->{v} = $proj::DEG_TO_RAD*$latitude; $out = proj::pj_fwd($in, $pj); $x=$out->{u}; $y=$out->{v}; proj::pj_free($pj); Tim Mackey Internet Applications Manager AGSO - Geoscience Australia e-mail: timothy.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ ABN: 80 091 799 039 -----Original Message----- From: Jensen, Hannah ERDC-CRREL-NH [mailto:Hannah.Jensen at erdc.usace.army.mil] Sent: Saturday, 29 September 2001 1:48 AM To: 'Stephen Lime' Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] setting projection based on zoom Hi, Steve. I am still wrestling with this problem and wondered if you had any further suggestions. Once I figured out that lat/long could be used to specify mapext, I thought I could find the lat/long coordinates of the zoom box based on the geographic extent of the image (minlat, minlon, etc). Not so! I couldn't seem to convert with much accuracy, which I guess shouldn't have been surprising. I guess there's no way around interfacing with PROJ somehow. I saw an old posting on the web about a PROJ perl module, which I was hoping would be able to spit out the lat/long points for the zoom box. Is there a better way? If the PROJ perl module is the way to go, can you send it to me? Any suggestions are much appreciated!! Thanks! Cheers, Hannah -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: Tuesday, September 25, 2001 4:26 PM To: Hannah.Jensen at erdc.usace.army.mil; mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] setting projection based on zoom Here's why. The extent is projected when it is read from the CGI data, so it is converted using the existing projection information it has at that time. Setting the projection afterwords has no effect but to screw things up. This is fixable. Hannah, would you be so kind as to add this to bugzilla? Thanks- Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jensen, Hannah ERDC-CRREL-NH" 09/25/01 03:09PM >>> Proof that you should leave your desk once in awhile -- someone down the hall saw my post and walked over to give me the answer. Thanks, Joel! Anyway, if mapext is specified in lat/long, it works properly. Only caveat is that the projection must be specified FIRST in the URL. So this works: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&map_projection=proj=utm,zone=19&mapext=-78.12+40.14+-63.19+49.23 but this doesn't: http://myserver/cgi-bin/mapserv34g?mode=browse&map=..%2Fhtml%2Fusamap%2Ftige r.map&mapext=-78.12+40.14+63.19+49.23&map_projection=proj=utm,zone=19 Strange but true... -----Original Message----- From: Jensen, Hannah ERDC-CRREL-NH To: 'mapserver-users at lists.gis.umn.edu' Sent: 9/25/01 3:17 PM Subject: [mapserver-users] setting projection based on zoom Hi, all. I would like to be able to change projections based on how far the user is zoomed in. For example, if they start out looking at the US in Lambert Azimuthal Equal Area but zoom in on Alaska, the map should display the zoomed in area in UTM zone 6. I'm hoping to be able to do this with CGI variables, but maybe that's not possible. If I pass in the projection parameters and the map extent (in the new projection units) like so: http://myserver/cgi-bin/mapserv34g?map=../html/usamap/tiger.map&mode=bro wse& map_projection=proj=utm,zone=6&mapext=415087+7115646+546659+7214763 it works fine. But since I don't know the map extent in the new projection before conversion, what variables should I pass to properly define the map extent? Can I somehow tell it to calculate the new extent based on the old one? Is there a better way to do this? Thanks in advance for any info/advice... Cheers, Hannah -------------- next part -------------- A non-text attachment was scrubbed... Name: proj.pm.tar.gz Type: application/octet-stream Size: 7352 bytes Desc: not available URL: From Matt.Wilkie at gov.yk.ca Mon Oct 1 15:30:57 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Mon, 1 Oct 2001 15:30:57 -0700 Subject: [mapserver-users] ArcIMS Gateway Message-ID: <6DD7370C9452D31192A10008C75D07530C499A8B@raptor.gov.yk.ca> > If anyone has the ArcXML DTD, please post. http://arconline.esri.com/arconline/documentation/ims_/ArcXML.cfm?PID=6 If you sort by name it will be the first item in the list. cheers, -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From pramsey at refractions.net Mon Oct 1 16:08:35 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 01 Oct 2001 16:08:35 -0700 Subject: [mapserver-users] ArcIMS Gateway References: <20011001190004.34675.qmail@web20708.mail.yahoo.com> <3BB8E5C2.8300CA78@chesapeake.net> Message-ID: <3BB8F773.AF59ABBA@refractions.net> Attached is some call-and-response data from an actual simple conversation between Arc8 and an IMS server (query server for services, query server for service info, query server for image). Arc8 is extremely sensitive to the form of the returned XML -- get it wrong and it goes kablooie. The ArcXML guide is actually online (!!) at the ESRI site. http://arconline.esri.com/arconline/documentation/ims_/WebHelp/ArcXMLGuide.htm imap at chesapeake.net wrote: > > Bruno/list, > > Somewhere on the ArcIMS machine, there exists an > ArcXML DTD or schema which can be comformed to by > writing some mapscript with XML::Writer. I am > working on a similar project, but is a mapscript > query engine interface with OpenGIS GML > (anyone else using XML with the GML DTD) > I'd be glad to share notes, if you are doing > working along these lines. > > The standardization of geospatial data transfer > is a goal we should all be working towards. > > If anyone has the ArcXML DTD, please post. > > Thanks, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc. > (410)257-3187 > > Bruno Gendron wrote: > > > > Hi to everyone, > > > > I have been working a lot lately in creating a > > PHP-Mapscript-based ArcXML-parser for Mapserver, which > > handles basically 2/3 of the ArcXML 1.1 spec > > and returns an ArcXML to any ArcXML-enabled > > client. Actually, the parser talks directly to > > Mapserver, but it could be modified to forward its > > request an WMS format to any WMS-compliant server and > > back. > > > > However, my work is part of a larger project, which > > include a Flash-DHTML Mapserver client, and I don't > > know at this point in time if this ArcXML-parser will > > be in the public domain (a public demo will go on-line > > soon, so stay tuned). > > > > So, basically, yes, something closely related has been > > done, and, no, I haven't seen any pitfall in doing > > this. In respect to Mapserver, the mapfile structure > > can easily (hum!) related to ArcXML tags. The nice > > thing with ArcXML is that it could be easily extended > > to include special geo-processing tags (I am in the > > process of creating such tags to handle complex > > queries). > > > > Bruno Gendron > > GIS consultant > > Lachine, Canada > > > > --- Paul Ramsey a ?crit : > > > Mapserverers, > > > > > > We have started playing with ArcGIS 8.1 and were > > > pleased and > > > interested to note that it supports adding an > > > "Internet Server" as a > > > data layer. ESRI is certainly picking up the > > > "distributed GIS" ball. > > > There is, of course, one small catch: when ESRI says > > > "internet server" > > > they mean "ArcIMS server". :) > > > > > > ESRI actually packages a little module with ArcIMS > > > which sits in front > > > of IMS and turns OGC Web Map Server requests into > > > IMS-style requests. > > > Basically a WMS emulator. I was thinking that it > > > would be useful to have > > > an emulator which does the reverse: sits in front of > > > a WMS server and > > > turns IMS-style requests into WMS requests -- an IMS > > > emulator. That way > > > people could use WMS servers for external data > > > serving and still be able > > > to add those WMS layers to ArcGIS projects. > > > > > > So (1) has anyone already done this? and (2) does > > > anyone see any > > > notable pitfalls in doing so? > > > > > > Paul > > > > ___________________________________________________________ > > Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! > > Yahoo! Courrier : http://fr.mail.yahoo.com -------------- next part -------------- ----- ##### T 192.168.50.12:1520 -> 199.171.142.206:80 [AP] POST /servlet/com.esri.esrimap.Esrimap?ServiceName=catalog HTTP/1.1 Content-Length: 58 User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT) Host: 199.171.142.206 Connection: Keep-Alive Cache-Control : no-cache ##### T 199.171.142.206:80 -> 192.168.50.12:1520 [AP] HTTP/1.1 200 OK Date: Mon, 01 Oct 2001 22:26:12 GMT Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain ------ ###### T 192.168.50.12:1522 -> 199.171.142.206:80 [AP] POST /servlet/com.esri.esrimap.Esrimap?ServiceName=us_mosaic&CustomStream=False HTTP/1.1 Content-Length: 120 User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT) Host: 199.171.142.206 Connection: Keep-Alive Cache-Control: no-cache ##### T 199.171.142.206:80 -> 192.168.50.12:1522 [AP] HTTP/1.1 200 OK Date: Mon, 01 Oct 2001 22:26:39 GMT Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain ----- ##### T 192.168.50.12:1522 -> 199.171.142.206:80 [AP] POST /servlet/com.esri.esrimap.Esrimap?ServiceName=us_mosaic&CustomStream=False HTTP/1.1 Content-Length: 888 User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT) Host: 199.171.142.206 Connection: Keep-Alive Cache-Control: no-cache ##### T 199.171.142.206:80 -> 192.168.50.12:1522 [AP] HTTP/1.1 200 OK Date: Mon, 01 Oct 2001 22:26:41 GMT Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/plain ----- ##### T 192.168.50.12:1523 -> 199.171.142.206:80 [AP] GET /output/us_mosaic_ESAT-206263272811.jpg HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT) Host: geocover.earthsat.com Connection: Keep-Alive ##### T 199.171.142.206:80 -> 192.168.50.12:1523 [AP] HTTP/1.1 200 OK Date: Mon, 01 Oct 2001 22:26:42 GMT Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 Last-Modified: Mon, 01 Oct 2001 22:26:42 GMT ETag: W/"0-1c53-3bb8eda4" Accept-Ranges: bytes Content-Length: 7251 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: image/jpeg [JPEG Binary Data] From bruno_gendron at yahoo.com Mon Oct 1 17:20:54 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Tue, 2 Oct 2001 02:20:54 +0200 (CEST) Subject: [mapserver-users] ArcIMS Gateway In-Reply-To: <3BB8F773.AF59ABBA@refractions.net> Message-ID: <20011002002054.12921.qmail@web20705.mail.yahoo.com> Thanks Paul, This is same the document upon which my ArcXML parser is based. Speaking of ArcXML, please find attached the ArcXml 3.1 DTD that Chris was talking about. -- Bruno --- Paul Ramsey a ?crit?: > Attached is some call-and-response data from an > actual simple > conversation between Arc8 and an IMS server (query > server for services, > query server for service info, query server for > image). Arc8 is > extremely sensitive to the form of the returned XML > -- get it wrong and > it goes kablooie. The ArcXML guide is actually > online (!!) at the ESRI > site. > > http://arconline.esri.com/arconline/documentation/ims_/WebHelp/ArcXMLGuide.htm > > imap at chesapeake.net wrote: > > > > Bruno/list, > > > > Somewhere on the ArcIMS machine, there exists an > > ArcXML DTD or schema which can be comformed to by > > writing some mapscript with XML::Writer. I am > > working on a similar project, but is a mapscript > > query engine interface with OpenGIS GML > > (anyone else using XML with the GML DTD) > > I'd be glad to share notes, if you are doing > > working along these lines. > > > > The standardization of geospatial data transfer > > is a goal we should all be working towards. > > > > If anyone has the ArcXML DTD, please post. > > > > Thanks, > > > > Chris Stuber (mapsurfer) > > Silicon Mapping Solutions, Inc. > > (410)257-3187 > > > > Bruno Gendron wrote: > > > > > > Hi to everyone, > > > > > > I have been working a lot lately in creating a > > > PHP-Mapscript-based ArcXML-parser for Mapserver, > which > > > handles basically 2/3 of the ArcXML 1.1 > spec > > > and returns an ArcXML to any > ArcXML-enabled > > > client. Actually, the parser talks directly to > > > Mapserver, but it could be modified to forward > its > > > request an WMS format to any WMS-compliant > server and > > > back. > > > > > > However, my work is part of a larger project, > which > > > include a Flash-DHTML Mapserver client, and I > don't > > > know at this point in time if this ArcXML-parser > will > > > be in the public domain (a public demo will go > on-line > > > soon, so stay tuned). > > > > > > So, basically, yes, something closely related > has been > > > done, and, no, I haven't seen any pitfall in > doing > > > this. In respect to Mapserver, the mapfile > structure > > > can easily (hum!) related to ArcXML tags. The > nice > > > thing with ArcXML is that it could be easily > extended > > > to include special geo-processing tags (I am in > the > > > process of creating such tags to handle complex > > > queries). > > > > > > Bruno Gendron > > > GIS consultant > > > Lachine, Canada > > > > > > --- Paul Ramsey a > ?crit : > > > > Mapserverers, > > > > > > > > We have started playing with ArcGIS 8.1 and > were > > > > pleased and > > > > interested to note that it supports adding an > > > > "Internet Server" as a > > > > data layer. ESRI is certainly picking up the > > > > "distributed GIS" ball. > > > > There is, of course, one small catch: when > ESRI says > > > > "internet server" > > > > they mean "ArcIMS server". :) > > > > > > > > ESRI actually packages a little module with > ArcIMS > > > > which sits in front > > > > of IMS and turns OGC Web Map Server requests > into > > > > IMS-style requests. > > > > Basically a WMS emulator. I was thinking that > it > > > > would be useful to have > > > > an emulator which does the reverse: sits in > front of > > > > a WMS server and > > > > turns IMS-style requests into WMS requests -- > an IMS > > > > emulator. That way > > > > people could use WMS servers for external data > > > > serving and still be able > > > > to add those WMS layers to ArcGIS projects. > > > > > > > > So (1) has anyone already done this? and (2) > does > > > > anyone see any > > > > notable pitfalls in doing so? > > > > > > > > Paul > > > > > > > ___________________________________________________________ > > > Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! > > > Yahoo! Courrier : http://fr.mail.yahoo.com> ----- > ##### > T 192.168.50.12:1520 -> 199.171.142.206:80 [AP] > POST > /servlet/com.esri.esrimap.Esrimap?ServiceName=catalog > > HTTP/1.1 > Content-Length: 58 > User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; > Windows NT) > Host: 199.171.142.206 > Connection: Keep-Alive > Cache-Control : no-cache > > encoding="UTF-8"?> > > > > > ##### > T 199.171.142.206:80 -> 192.168.50.12:1520 [AP] > HTTP/1.1 200 OK > Date: Mon, 01 Oct 2001 22:26:12 GMT > Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 > Keep-Alive: timeout=15, max=100 > Connection: Keep-Alive > Transfer-Encoding: chunked > Content-Type: text/plain > > > > > > SERVICEGROUP="ExtractServer1" ACCESS="PRIVATE" > TYPE="ExtractServer" DESC="" GROUP="*" > STATUS="ENABLED" > > /> PATH="C:/ArcIMS/output" TYPE="JPG" /> > > SERVICEGROUP="ImageServer1" ACCESS="PUBLIC" > TYPE="ImageServer" DESC="" GROUP="*" > STATUS="ENABLED" > > > URL="http://geocover.earthsat.com/output" > PATH="C:/ArcIMS/output" TYPE="JPG" /> > > SERVICEGROUP="ImageServer1" ACCESS="PUBLIC" > TYPE="ImageServer" DESC="" GROUP="*" > STATUS="ENABLED" > > NAME="C:\ArcIMS\AXL\ethiopia\refugee.axl" /> > URL="http://geocover.earthsat.com/output" > PATH="C:/ArcIMS/output" TYPE="JPG" /> > > SERVICEGROUP="ImageServer1" ACCESS="PUBLIC" > TYPE="ImageServer" DESC="" GROUP="*" > STATUS="ENABLED" > > NAME="C:\ArcIMS\AXL\pyramids_onebox.axl" /> > URL="http://geocover.earthsat.com/output" > PATH="C:/ArcIMS/output" TYPE="JPG" /> > > > > > > ------ > ###### > T 192.168.50.12:1522 -> 199.171.142.206:80 [AP] > POST > /servlet/com.esri.esrimap.Esrimap?ServiceName=us_mosaic&CustomStream=False > > HTTP/1.1 > Content-Length: 120 > User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; > Windows NT) > Host: 199.171.142.206 > Connection: Keep-Alive > Cache-Control: no-cache > > > > > > > > > > ##### > T 199.171.142.206:80 -> 192.168.50.12:1522 [AP] > HTTP/1.1 200 OK > Date: Mon, 01 Oct 2001 22:26:39 GMT > Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 > Keep-Alive: timeout=15, max=100 > Connection: Keep-Alive > Transfer-Encoding: chunked > Content-Type: text/plain > > > > > > > miny="10621371.617647" maxx="12392940.0" > maxy="14039955.0" name="Initial_Extent" /> > string="PROJCS['Custom',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137,298.257223563]],PRIMEM['Greenwich',0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',10000000],PARAMETER['False_Northing',10000000],PARAMETER['Central_Meridian',-95.5],PARAMETER['Standard_Parallel_1',29.5],PARAMETER['Standard_Parallel_2',45.5],PARAMETER['Central_Parallel',15],UNIT['Meter',1]]" > > > string="PROJCS['Custom',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137,298.257223563]],PRIMEM['Greenwich',0],UNIT['Degree',0.0174532925199433]],PROJECTION['Albers'],PARAMETER['False_Easting',10000000],PARAMETER['False_Northing',10000000],PARAMETER['Central_Meridian',-95.5],PARAMETER['Standard_Parallel_1',29.5],PARAMETER['Standard_Parallel_2',45.5],PARAMETER['Central_Parallel',15],UNIT['Meter',1]]" > /> > > > > visible="true" id="0" minscale="130" > maxscale="795.976"> > miny="11104598.000000000000000" > maxx="12391942.000000000000000" > maxy="14039955.000000000000000" /> > > visible="true" id="1" minscale="795.976"> > miny="11104455.000000000000000" > maxx="12392940.000000000000000" > maxy="14039955.000000000000000" /> > > name="states_polys_albers" id="2"> > > minx="7766255.3376098294000000000000000" > miny="11165695.8702749050000000000000000" > maxx="12368966.9593109260000000000000000" > maxy="13990461.3168781210000000000000000" /> > precision="3" /> > size="25" precision="0" /> > size="2" precision="0" /> > size="7" precision="0" /> > size="2" precision="0" /> > precision="0" /> > precision="0" /> > > > filltransparency="0.0" filltype="solid" > fillinterval="6" boundarycolor="255,255,255" > boundarytransparency="1.0" boundarywidth="1" > boundarytype="solid" boundarycaptype="round" > boundaryjointype="round" /> > > > > > > > > ----- > ##### > T 192.168.50.12:1522 -> 199.171.142.206:80 [AP] > POST > /servlet/com.esri.esrimap.Esrimap?ServiceName=us_mosaic&CustomStream=False > > HTTP/1.1 > Content-Length: 888 > User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; > Windows NT) > Host: 199.171.142.206 > Connection: Keep-Alive > Cache-Control: no-cache > > > > > > > height="574" width="736"/> > miny="16.5749356457419" maxx="-59.865326134031" > maxy="53.3926737842562"/> > > > visible="true"/> > visible="true"/> > name="states_polys_albers" visible="true" > type="polygon"> > > fillcolor="0,200,0" filltransparency="0.0" > filltype="solid" fillinterval="6" > boundarycolor="255,255,255" > boundarytransparency="1.0" boundarywidth="1" > boundarytype="solid" boundarycaptype="round" > boundaryjointype="round"/> > > > > > > > > > > > ##### > T 199.171.142.206:80 -> 192.168.50.12:1522 [AP] > HTTP/1.1 200 OK > Date: Mon, 01 Oct 2001 22:26:41 GMT > Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 > Keep-Alive: timeout=15, max=99 > Connection: Keep-Alive > Transfer-Encoding: chunked > Content-Type: text/plain > > > > > > miny="7.265376037385909" maxx="-59.865326134030994" > maxy="62.702233392612200" /> > file="C:\ArcIMS\output\us_mosaic_ESAT-206263272811.jpg" > url="http://geocover.earthsat.com/output/us_mosaic_ESAT-206263272811.jpg" > /> > > > > > > ----- > ##### > T 192.168.50.12:1523 -> 199.171.142.206:80 [AP] > GET /output/us_mosaic_ESAT-206263272811.jpg HTTP/1.1 > Accept: */* > Accept-Encoding: gzip, deflate > User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; > Windows NT) > Host: geocover.earthsat.com > Connection: Keep-Alive > > > > ##### > T 199.171.142.206:80 -> 192.168.50.12:1523 [AP] > HTTP/1.1 200 OK > Date: Mon, 01 Oct 2001 22:26:42 GMT > Server: Apache/1.3.9 (Win32) ApacheJServ/1.0 > Last-Modified: Mon, 01 Oct 2001 22:26:42 GMT > ETag: W/"0-1c53-3bb8eda4" > Accept-Ranges: bytes > Content-Length: 7251 > Keep-Alive: timeout=15, max=100 > Connection: Keep-Alive > Content-Type: image/jpeg > > [JPEG Binary Data] > > ___________________________________________________________ Do You Yahoo!? -- Un e-mail gratuit @yahoo.fr ! Yahoo! Courrier : http://fr.mail.yahoo.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ArcXml31.dtd URL: From pramsey at refractions.net Mon Oct 1 21:46:05 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 01 Oct 2001 21:46:05 -0700 Subject: [mapserver-users] Perl MapScript in 3.5 Message-ID: <3BB9468D.665A01C6@refractions.net> Apologies if this is a FAQ: has the Perl MapScript module in 3.5 been abandoned? It seems to be missing a pretty important piece of code (mapscript_wrap.c). From imap at chesapeake.net Mon Oct 1 22:58:32 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 02 Oct 2001 01:58:32 -0400 Subject: [mapserver-users] Perl MapScript in 3.5 References: <3BB9468D.665A01C6@refractions.net> Message-ID: <3BB95788.9D7EA1CF@chesapeake.net> Paul, You have to build mapscript_wrap with swig. In the mapscript directory, you will see "mapscript.i". Copy that to the perl directory, then swig -shadow -perl5 mapscript.i it may cough up a few warnings, but that is OK and that will create the mapscript_wrap.c (also a .o and .doc files) for you. Note to Jamie, that the download page at http://mapserver.gis.umn.edu/dload.html needs SWIG included as a supporting package Beazley has SWIG at this new URL http://sourceforge.net/projects/swig Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Paul Ramsey wrote: > > Apologies if this is a FAQ: has the Perl MapScript module in 3.5 been > abandoned? It seems to be missing a pretty important piece of code > (mapscript_wrap.c). From wasserburger at plan.at Tue Oct 2 02:11:41 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Tue, 2 Oct 2001 11:11:41 +0200 Subject: [mapserver-users] shp2img -t Message-ID: Hi thereout, does anybody know, what the -t option in the shp2img utility does? Another question: How to pass additional paramters to that utility, like adding a new feature or changing the class expression? Thx in advance Greetings from Vienna, Austria Wolfgang W. Wasserburger From claude.philipona at camptocamp.com Tue Oct 2 03:01:55 2001 From: claude.philipona at camptocamp.com (Claude Philipona) Date: Tue, 2 Oct 2001 12:01:55 +0200 Subject: [mapserver-users] WMS client / Community Map Builder project In-Reply-To: <3BB4F1BF.EFFF637D@socialchange.net.au> Message-ID: <002001c14b29$44282af0$1500a8c0@bsa> We are currently working on such a project. We have different web community around mountaineering sports in the Alps (Alpine mountaineering ski, mountainerring, rock climbing, hiking)(until yet only in french, soon in german, italian, english), where people can exchange their experience and keep the others informed about conditions or itineraries. We will include a service where people are able to interactivly create itineraries, georeference hut or summits to share with the community. The system also includes support of GPS: one can upload and download data to/from GPS. I think our specification will suit most needs for outdoor and touristic activities 1) Visualizaion Module (100% finished) After a few tests (wms mapserver, php-mapscript, we chose to use directly php-mapscript of mapserver 3.5 instead of WMS, because the Mapserver implementation of WMS has for now only limited features compared to php-mapscript (no styles, not possible to change on the fly the parameter of the mapfiles,...) so it is easier to use directly phpmapscript to meet our specifications. (however we could relativly easily rewrite the module using wms). We have build the module in such a way that many web sites can easily integrate map fucntion from one single mapserver (the different map): Navigator <----(http/html)----> websites1..n(php) <----(http/wddx)----> mapserver(php-mapscript) Like Gmap, we have a pure html version, and a version enhanced with rosa applet features 2)Georef Module (add, modify, delete geo objects) (80% finished) We have build a java applet (awt) which communicates via http/wddx with mapserver(php-mapscript) (all the features available in the visualizazion module are also available in the applet. With the applet we can add, modify, delete simple geo objects of type point, (poly)lines, polygon. For now, we can edit only one object at the time. We can manipulate the points either with the mouse or by entering the coordinates and altitudes using entry boxes. The geo object are then save with postgis. To have optimum performance with visualization(more vizualizazion access compared to edti access), we generate the shapefiles (faster with mapserver) from postgis. 3)GPS module PHP class to upload/download waypoints/routes from/to a GPS. With proj4, supports translation between many datum and projection. We cannot give an url for demo yet, because we don't have rights yet to publish the map. I will try to setup a demo site with free maps soon. We are very interested with the mapbuilder project, and could join it if the specification are compatible with our needs. Claude Philipona > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Cameron > Shorter > Sent: vendredi, 28. septembre 2001 23:55 > To: mapserver-users at lists.gis.umn.edu; wms-dev at intl-interfaces.net; > geotools-discussion at lists.sourceforge.net; postgis at yahoogroups.com > Subject: [mapserver-users] WMS client / Community Map Builder project > > > Two things: > > Web Map Server Client > ===================== > 1. With some help from others, I've just finished getting standard > Web Map Service (WMS) Client functionality into the geotools applet. > (It is > still needs polishing, but it works). > 2. We've implemented double buffering, so that you can get immediate > feedback as you pan/zoom, and the map layers get redrawn as they become > available. > 3. I have a demonstration which accesses 2 different Web Map Servers, > but you should be able to access as many as you like. > 4. You can see a demo at: > http://newgate.socialchange.net.au:8080/geotools-dev/OGCExample.html > > > Community Map Builder Project > ============================= > http://mapbuilder.sourceforge.net > > Building the WMS client is just the first step in my grand plan of > building an open source map data entry tool - which essentially is a Web > Feature Server (WFS) Client - plus a little more. > > I'm looking out for like minded developers, or people who just want to > be > keep informed. I'm particularly interested to hear ideas about > developing Web Feature Servers (WFS) and whether this should be done > with PostGIS. > > Check out the site and join one of the email lists if you are > interested. > http://sourceforge.net/mail/?group_id=35246 > Join the announce list if you want to be notified occasionally of > milestones in development. > Join the developers list if you want to join discussions about further > development. > > -- > Cameron Shorter Web Mapping Manager > Social Change Online > 248 Johnson St Tel: +61 (0) 2 9692 5115 > Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 > Sydney, Australia http://webmap.socialchange.net.au > From sutton_t at giug.net Tue Oct 2 03:53:39 2001 From: sutton_t at giug.net (Tim Sutton) Date: Tue, 2 Oct 2001 11:53:39 +0100 (BST) Subject: [mapserver-users] Disabling postgis in for cvs build Message-ID: Hi Can anyone tell me how to either disable the postgis package compilation or fix the problem below when compiling the cvs (checked out today) version of mapserver? I tried --without-postgis but that didnt help. Thanks Tim Error message repeated below: gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include mappostgis.c -o mappostgis.o mappostgis.c:1163: conflicting types for `msPOSTGISLayerGetShapeRandom' map.h:805: previous declaration of `msPOSTGISLayerGetShapeRandom' make: *** [mappostgis.o] Error 1 From kafka at email.cz Tue Oct 2 03:03:42 2001 From: kafka at email.cz (=?iso-8859-2?B?qXTscOFuIEthZmth?=) Date: Tue, 2 Oct 2001 12:03:42 +0200 Subject: [mapserver-users] legend crashes Message-ID: <001f01c14b29$acc44210$0100a8c0@HSGIS> Hello all, one of my project crashes probably on special combination of symbols. The system error message reveals: "Instruction at 0x004483e6 reffered on memory at 0x746e3b00. The memory cannot be read." I use mapserver 3.4 on win32 and on Linux RH 6.2. The error reveals on both systems. It reveals during legend creating. I have attached the project adapted only for legend creation to this mail (usable only with MODE=MAP). There are two layers in it. If one of them is switched on, it goes well, but with both it crashes. Maybe mistake in symbol file or anywhere else? Can anybody help me? Thank you very much Stepan Kafka -------------- next part -------------- A non-text attachment was scrubbed... Name: err.map Type: application/octet-stream Size: 1498 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: symbol34.sym Type: application/octet-stream Size: 1833 bytes Desc: not available URL: From sdlime at mninter.net Tue Oct 2 05:46:52 2001 From: sdlime at mninter.net (Stephen Lime) Date: Tue, 02 Oct 2001 07:46:52 -0500 Subject: [mapserver-users] shp2img -t References: Message-ID: <3BB9B73C.BC28CC93@mninter.net> -t turns on transparency if not already set in the mapfile. Thera are so many possiblties it would be easier to write custom MapScript scripts. The current shp2img utility could be re-written in about 10 lines of perl. Steve "Wolfgang W. Wasserburger" wrote: > Hi thereout, > > does anybody know, what the -t option in the shp2img utility does? > > Another question: How to pass additional paramters to that utility, like > adding a new feature or changing the class expression? > > Thx in advance > > Greetings from Vienna, Austria > > Wolfgang W. Wasserburger From sdlime at mninter.net Tue Oct 2 05:51:32 2001 From: sdlime at mninter.net (Stephen Lime) Date: Tue, 02 Oct 2001 07:51:32 -0500 Subject: [mapserver-users] Perl MapScript in 3.5 References: <3BB9468D.665A01C6@refractions.net> <3BB95788.9D7EA1CF@chesapeake.net> Message-ID: <3BB9B854.C578AEE6@mninter.net> Note that users only need SWIG if they are working directly against the CVS. The nightly build has been pre-SWIGed. Steve imap at chesapeake.net wrote: > Paul, > > You have to build mapscript_wrap with swig. > In the mapscript directory, you will see "mapscript.i". > Copy that to the perl directory, then > > swig -shadow -perl5 mapscript.i > > it may cough up a few warnings, but that is OK > > and that will create the mapscript_wrap.c (also a > .o and .doc files) for you. > > Note to Jamie, that the download page at > http://mapserver.gis.umn.edu/dload.html > needs SWIG included as a supporting package > > Beazley has SWIG at this new URL > > http://sourceforge.net/projects/swig > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc > (410)257-3187 > > Paul Ramsey wrote: > > > > Apologies if this is a FAQ: has the Perl MapScript module in 3.5 been > > abandoned? It seems to be missing a pretty important piece of code > > (mapscript_wrap.c). From warmerdam at pobox.com Tue Oct 2 05:59:44 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Tue, 02 Oct 2001 08:59:44 -0400 Subject: [mapserver-users] Disabling postgis in for cvs build References: Message-ID: <3BB9BA40.6000606@pobox.com> Tim Sutton wrote: > Hi > > Can anyone tell me how to either disable the postgis package > compilation or fix the problem below when compiling the cvs (checked > out today) version of mapserver? I tried --without-postgis but that > didnt help. > > Thanks > > Tim > > Error message repeated below: > > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF > -I/usr/include mappostgis.c -o mappostgis.o > mappostgis.c:1163: conflicting types for > `msPOSTGISLayerGetShapeRandom' > map.h:805: previous declaration of `msPOSTGISLayerGetShapeRandom' > make: *** [mappostgis.o] Error 1 Tim, I have committed a fix to CVS for the prototype in question. Try updating from CVS and compiling again. Also, I think you can configure without postgis support using the "--without-postgis" option. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kames at keyspanenergy.com Tue Oct 2 06:29:02 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Tue, 02 Oct 2001 09:29:02 -0400 Subject: [mapserver-users] Coordinate Conversions Message-ID: <3BB9C11E.54D1FA2B@keyspanenergy.com> List, I've been struggling in an attempt to find/decipher/build a tool that I can invoke from the command line that will convert decimal degrees to UTM, returning Easting, Northing and Zone. I need to invoke it in a Perl cgi process so that I can use to redirect a browser client. eg: for argument's sake, a pgm called ll2utm would be called like this: system "ll2utm 40.123456 -71.654321" and I would be returned (at least) the 3 elements above. An executable or Perl sub routine would be my dream come true! Can anyone point me to the right place or forward such a program? Thanks so much for any assistance. Kieran From ed at topozone.com Tue Oct 2 07:28:06 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 2 Oct 2001 10:28:06 -0400 Subject: [mapserver-users] Coordinate Conversions Message-ID: <13858AA1A74F30419F319ACB66A9D122D2E4@mercator.topozone.com> Kieran - Here's some code that's been kicking around the net for a while; I've used it just fine for the TopoZone Web site for the last two years (NAD27 only, however, so I can't vouch for the other datums, and I don't need results more precise than 5 meters). It's C++ code as it stands, but there's nothing special about it - I ported it to JavaScript in about 10 minutes once. If you are only interested in one specific datum/ellipsoid, you can just grab the equatorial radius and eccentricity squared values from the table and toss out all the Ellipsoid class stuff, simplifying things even more. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 const double PI = 3.14159265; const double FOURTHPI = PI / 4; const double deg2rad = PI / 180; const double rad2deg = 180.0 / PI; #define CLARKE_1866 5 #define NAD_83 11 class Ellipsoid { public: Ellipsoid(){}; Ellipsoid(int Id, char* name, double radius, double ecc) { id = Id; ellipsoidName = name; EquatorialRadius = radius; eccentricitySquared = ecc; } int id; char* ellipsoidName; double EquatorialRadius; double eccentricitySquared; }; static Ellipsoid ellipsoid[] = {// id, Ellipsoid name, Equatorial Radius, square of eccentricity Ellipsoid( -1, "Placeholder", 0, 0),//placeholder only, To allow array indices to match id numbers Ellipsoid( 1, "Airy", 6377563, 0.00667054), Ellipsoid( 2, "Australian National", 6378160, 0.006694542), Ellipsoid( 3, "Bessel 1841", 6377397, 0.006674372), Ellipsoid( 4, "Bessel 1841 (Nambia) ", 6377484, 0.006674372), Ellipsoid( 5, "Clarke 1866", 6378206, 0.006768658), Ellipsoid( 6, "Clarke 1880", 6378249, 0.006803511), Ellipsoid( 7, "Everest", 6377276, 0.006637847), Ellipsoid( 8, "Fischer 1960 (Mercury) ", 6378166, 0.006693422), Ellipsoid( 9, "Fischer 1968", 6378150, 0.006693422), Ellipsoid( 10, "GRS 1967", 6378160, 0.006694605), Ellipsoid( 11, "GRS 1980", 6378137, 0.00669438), Ellipsoid( 12, "Helmert 1906", 6378200, 0.006693422), Ellipsoid( 13, "Hough", 6378270, 0.00672267), Ellipsoid( 14, "International", 6378388, 0.00672267), Ellipsoid( 15, "Krassovsky", 6378245, 0.006693422), Ellipsoid( 16, "Modified Airy", 6377340, 0.00667054), Ellipsoid( 17, "Modified Everest", 6377304, 0.006637847), Ellipsoid( 18, "Modified Fischer 1960", 6378155, 0.006693422), Ellipsoid( 19, "South American 1969", 6378160, 0.006694542), Ellipsoid( 20, "WGS 60", 6378165, 0.006693422), Ellipsoid( 21, "WGS 66", 6378145, 0.006694542), Ellipsoid( 22, "WGS-72", 6378135, 0.006694318), Ellipsoid( 23, "WGS-84", 6378137, 0.00669438) }; /*Reference ellipsoids derived from Peter H. Dana's website- http://www.utexas.edu/depts/grg/gcraft/notes/datum/elist.html Department of Geography, University of Texas at Austin Internet: pdana at mail.utexas.edu 3/22/95 Source Defense Mapping Agency. 1987b. DMA Technical Report: Supplement to Department of Defense World Geodetic System 1984 Technical Report. Part I and II. Washington, DC: Defense Mapping Agency */ void LLtoUTM(int ReferenceEllipsoid, const double Lat, const double Long, double &UTMNorthing, double &UTMEasting, int &UTMZone) { //converts lat/long to UTM coords. Equations from USGS Bulletin 1532 //East Longitudes are positive, West longitudes are negative. //North latitudes are positive, South latitudes are negative //Lat and Long are in decimal degrees //Written by Chuck Gantz- chuck.gantz at globalstar.com double a = ellipsoid[ReferenceEllipsoid].EquatorialRadius; double eccSquared = ellipsoid[ReferenceEllipsoid].eccentricitySquared; double k0 = 0.9996; double LongOrigin; double eccPrimeSquared; double N, T, C, A, M; //Make sure the longitude is between -180.00 .. 179.9 double LongTemp = (Long+180)-int((Long+180)/360)*360-180; // -180.00 .. 179.9; double LatRad = Lat*deg2rad; double LongRad = LongTemp*deg2rad; double LongOriginRad; int ZoneNumber; ZoneNumber = int((LongTemp + 180)/6) + 1; if( Lat >= 56.0 && Lat < 64.0 && LongTemp >= 3.0 && LongTemp < 12.0 ) ZoneNumber = 32; // Special zones for Svalbard if( Lat >= 72.0 && Lat < 84.0 ) { if( LongTemp >= 0.0 && LongTemp < 9.0 ) ZoneNumber = 31; else if( LongTemp >= 9.0 && LongTemp < 21.0 ) ZoneNumber = 33; else if( LongTemp >= 21.0 && LongTemp < 33.0 ) ZoneNumber = 35; else if( LongTemp >= 33.0 && LongTemp < 42.0 ) ZoneNumber = 37; } LongOrigin = (ZoneNumber - 1)*6 - 180 + 3; //+3 puts origin in middle of zone LongOriginRad = LongOrigin * deg2rad; UTMZone = ZoneNumber; eccPrimeSquared = (eccSquared)/(1-eccSquared); N = a/sqrt(1-eccSquared*sin(LatRad)*sin(LatRad)); T = tan(LatRad)*tan(LatRad); C = eccPrimeSquared*cos(LatRad)*cos(LatRad); A = cos(LatRad)*(LongRad-LongOriginRad); M = a*((1 - eccSquared/4 - 3*eccSquared*eccSquared/64 - 5*eccSquared*eccSquared*eccSquared/256)*LatRad - (3*eccSquared/8 + 3*eccSquared*eccSquared/32 + 45*eccSquared*eccSquared*eccSquared/1024)*sin(2*LatRad) + (15*eccSquared*eccSquared/256 + 45*eccSquared*eccSquared*eccSquared/1024)*sin(4*LatRad) - (35*eccSquared*eccSquared*eccSquared/3072)*sin(6*LatRad)); UTMEasting = (double)(k0*N*(A+(1-T+C)*A*A*A/6 + (5-18*T+T*T+72*C-58*eccPrimeSquared)*A*A*A*A*A/120) + 500000.0); UTMNorthing = (double)(k0*(M+N*tan(LatRad)*(A*A/2+(5-T+9*C+4*C*C)*A*A*A*A/24 + (61-58*T+T*T+600*C-330*eccPrimeSquared)*A*A*A*A*A*A/720))); if(Lat < 0) UTMNorthing += 10000000.0; //10000000 meter offset for southern hemisphere } -----Original Message----- From: Kieran J. Ames [mailto:kames at keyspanenergy.com] Sent: Tuesday, October 02, 2001 9:29 AM To: mapserver-users Subject: [mapserver-users] Coordinate Conversions List, I've been struggling in an attempt to find/decipher/build a tool that I can invoke from the command line that will convert decimal degrees to UTM, returning Easting, Northing and Zone. I need to invoke it in a Perl cgi process so that I can use to redirect a browser client. eg: for argument's sake, a pgm called ll2utm would be called like this: system "ll2utm 40.123456 -71.654321" and I would be returned (at least) the 3 elements above. An executable or Perl sub routine would be my dream come true! Can anyone point me to the right place or forward such a program? Thanks so much for any assistance. Kieran From Rich at GreenwoodMap.com Tue Oct 2 07:33:46 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Tue, 02 Oct 2001 08:33:46 -0600 Subject: [mapserver-users] template URL Message-ID: <5.1.0.14.0.20011002082834.00aff230@mail.GreenwoodMap.com> Hello Mappers, I am having trouble specifying a template URL template "http://www.greenwoodmap.com/Index.html" generates the error: "Unable to access file. http://www.greenwoodmap.com/Index.html" And: template "http://www.greenwoodmap.com/" generates the error: "Web application error. Malformed template name." I am developing and testing my project on Win2k. I get the error with both mapserver 3.3 and 3.5. The error is the same if I specify my development machine's URL, greenwoodmap.com, or microsoft.com. In 3.3 I have the template inside a QUERY, in 3.5 I have it inside a CLASS. The problem may be related to Windows/IIS. Could any of the Windows/IIS developers tell me if they have had trouble with template URLs? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From cabral at yadata.net Tue Oct 2 08:01:57 2001 From: cabral at yadata.net (Rodrigo Becke Cabral) Date: Tue, 2 Oct 2001 12:01:57 -0300 Subject: [mapserver-users] Disabling postgis in for cvs build References: Message-ID: <005d01c14b53$2ed27dc0$210b000a@cadiz.linhalivre.net> Hi Tim, Postgis package IS disabled, otherwise it would appear -DUSE_POSTGIS in your gcc's call. My guess is that either your map.h or mappostgis.c are from different versions. The error appears to indicate a mismatch between the function's prototype (msPOSTGISLayerGetShapeRandom) in map.h and its definition in mappostgis.c. You could compare lines 1163 (mappostgis.c) and 805 (map.h) to confirm whether the function's prototype and definition differ (I just checked mapserver's nightly.tar.gz, and they match - no errors). Why don't you try compiling the nightly.tar.gz version? Rod. ----- Original Message ----- From: "Tim Sutton" To: "MapServer Mailing List" Sent: Tuesday, October 02, 2001 7:53 AM Subject: [mapserver-users] Disabling postgis in for cvs build Hi Can anyone tell me how to either disable the postgis package compilation or fix the problem below when compiling the cvs (checked out today) version of mapserver? I tried --without-postgis but that didnt help. Thanks Tim Error message repeated below: gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -I/usr/include mappostgis.c -o mappostgis.o mappostgis.c:1163: conflicting types for `msPOSTGISLayerGetShapeRandom' map.h:805: previous declaration of `msPOSTGISLayerGetShapeRandom' make: *** [mappostgis.o] Error 1 From pramsey at refractions.net Tue Oct 2 09:39:00 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 02 Oct 2001 09:39:00 -0700 Subject: [mapserver-users] Disabling postgis in for cvs build References: <005d01c14b53$2ed27dc0$210b000a@cadiz.linhalivre.net> Message-ID: <3BB9EDA4.79D23A01@refractions.net> This change may have already been committed to the mapserver CVS, but if not, simple replace the prototype definitions for postgis in map.h with these ones. Sorry, this is a result of our being able to update the mappostgis.c file, but not the map.h file, so they got briefly out of synch. We will err on the side of caution henceforth. int msPOSTGISLayerOpen(layerObj *layer); void msPOSTGISLayerFreeItemInfo(layerObj *layer); int msPOSTGISLayerInitItemInfo(layerObj *layer); int msPOSTGISLayerWhichShapes(layerObj *layer, rectObj rect); int msPOSTGISLayerClose(layerObj *layer); int msPOSTGISLayerNextShape(layerObj *layer, shapeObj *shape); int msPOSTGISLayerGetShape(layerObj *layer, shapeObj *shape, long record); int msPOSTGISLayerGetExtent(layerObj *layer, rectObj *extent); int msPOSTGISLayerGetShapeRandom(layerObj *layer, shapeObj *shape, long *record); int msPOSTGISLayerGetItems(layerObj *layer); Rodrigo Becke Cabral wrote: > > Hi Tim, > > Postgis package IS disabled, otherwise it would appear -DUSE_POSTGIS in your > gcc's call. My guess is that either your map.h or mappostgis.c are from > different versions. The error appears to indicate a mismatch between the > function's prototype (msPOSTGISLayerGetShapeRandom) in map.h and its > definition in mappostgis.c. You could compare lines 1163 (mappostgis.c) and > 805 (map.h) to confirm whether the function's prototype and definition > differ (I just checked mapserver's nightly.tar.gz, and they match - no > errors). Why don't you try compiling the nightly.tar.gz version? > > Rod. > > ----- Original Message ----- > From: "Tim Sutton" > To: "MapServer Mailing List" > Sent: Tuesday, October 02, 2001 7:53 AM > Subject: [mapserver-users] Disabling postgis in for cvs build > > Hi > > Can anyone tell me how to either disable the postgis package > compilation or fix the problem below when compiling the cvs (checked > out today) version of mapserver? I tried --without-postgis but that > didnt help. > > Thanks > > Tim > > Error message repeated below: > > gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TIFF > -DUSE_JPEG -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF > -I/usr/include mappostgis.c -o mappostgis.o > mappostgis.c:1163: conflicting types for > `msPOSTGISLayerGetShapeRandom' > map.h:805: previous declaration of `msPOSTGISLayerGetShapeRandom' > make: *** [mappostgis.o] Error 1 -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From sutton_t at giug.net Tue Oct 2 15:08:38 2001 From: sutton_t at giug.net (Tim Sutton) Date: Tue, 2 Oct 2001 23:08:38 +0100 (BST) Subject: [mapserver-users] Was Disabling postgis now Compiling Mapscript in for cvs build In-Reply-To: <3BB9EDA4.79D23A01@refractions.net> Message-ID: Thank you for your help....compile makes it past the postgis bits now. My next problem is it is getting stuck on the php_mapscript compilation. I configured php with: ./configure --with-apxs --with-mysql --with-postgres --with-dbase --with-regex=system And compiled mapserver with: ./configure --with-php=../php-4.0.6 --with-jpg --with-freetype --with-png --with-apxs --with-postgis && make Which resulted in the error listed below. I do need to use the php_mapscript so I can't skip its compilation. make[1]: Entering directory `/usr/local/src/mapserver/mapscript/php3' gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I. -I.. -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_JPEG -I/usr/local/src/mapserver -I/usr/include -I/usr/local/src/mapserver/../php-4.0.6 -I/usr/local/src/mapserver/../php-4.0.6/dl -I/usr/local/src/mapserver/../php-4.0.6/main -I/usr/local/src/mapserver/../php-4.0.6/Zend -I/usr/local/src/mapserver/../php-4.0.6/include -I/usr/local/src/mapserver/../php-4.0.6/TSRM -I -c -o php_mapscript_util.o php_mapscript_util.c /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function `_start': /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): undefined reference to `main' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_report_mapserver_error': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x1a): undefined reference to `ms_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x3f): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x1ad): undefined reference to `ms_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_fetch_handle2': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x282): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x2a7): undefined reference to `zend_list_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x2d0): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_fetch_property_handle2': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x33f): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x36b): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x386): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x3a8): undefined reference to `zend_list_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x3d1): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_fetch_property_string': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x45f): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x48b): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x4a6): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x4ba): undefined reference to `_convert_to_string' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_fetch_property_long': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x51b): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x536): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x558): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x565): undefined reference to `convert_to_long' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_fetch_property_double': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x5af): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x5db): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x5f6): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x60a): undefined reference to `convert_to_double' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_fetch_property_resource': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x64f): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x672): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x68d): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x6b2): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_set_property_string': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x6ff): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x728): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x74d): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x760): undefined reference to `_convert_to_string' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x777): undefined reference to `_efree' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x786): undefined reference to `_estrdup' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_set_property_long': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x7ef): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x818): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x83d): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x850): undefined reference to `convert_to_long' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_set_property_double': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x8a5): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x8c8): undefined reference to `zend_hash_find' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x8ed): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x900): undefined reference to `convert_to_double' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_add_property_object': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x94f): undefined reference to `add_property_zval_ex'/tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x974): undefined reference to `zend_error' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o: In function `_phpms_object_init': /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x9b0): undefined reference to `_object_init_ex' /tmp/sutton_t-tmp.013db715128c6f23/files/ccxbVvzo.o(.text+0x9c0): undefined reference to `add_property_resource_ex' collect2: ld returned 1 exit status make[1]: *** [php_mapscript_util.o] Error 1 make[1]: Leaving directory `/usr/local/src/mapserver/mapscript/php3' From Timothy.Mackey at agso.gov.au Tue Oct 2 15:16:20 2001 From: Timothy.Mackey at agso.gov.au (Timothy.Mackey at agso.gov.au) Date: Wed, 3 Oct 2001 08:16:20 +1000 Subject: [mapserver-users] template URL Message-ID: <28DE833A781BD511839600D0B772248F4F53BF@agsomail1.agso.gov.au> Hi Richard, The template value should be a file path, rather than a URL. Tim Mackey Internet Applications Manager AGSO - Geoscience Australia e-mail: timothy.mackey at agso.gov.au phone: (02) 6249 9813 fax: (02) 6249 9984 http://www.agso.gov.au/ ABN: 80 091 799 039 -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Wednesday, 3 October 2001 12:34 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] template URL Hello Mappers, I am having trouble specifying a template URL template "http://www.greenwoodmap.com/Index.html" generates the error: "Unable to access file. http://www.greenwoodmap.com/Index.html" And: template "http://www.greenwoodmap.com/" generates the error: "Web application error. Malformed template name." I am developing and testing my project on Win2k. I get the error with both mapserver 3.3 and 3.5. The error is the same if I specify my development machine's URL, greenwoodmap.com, or microsoft.com. In 3.3 I have the template inside a QUERY, in 3.5 I have it inside a CLASS. The problem may be related to Windows/IIS. Could any of the Windows/IIS developers tell me if they have had trouble with template URLs? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From pramsey at refractions.net Tue Oct 2 16:15:09 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 02 Oct 2001 16:15:09 -0700 Subject: [mapserver-users] Perl/Mapscript Message-ID: <3BBA4A7D.32D48BE@refractions.net> Interesting something happening with the perl binding: $map->{imagecolor} returns a colorObj, which is a standard hash reference. mapscript::colorObj=HASH(0x82195c4) $map->{projection} returns a projectionObj, which is a SCALAR reference for some reason. mapscript::projectionObj=SCALAR(0x83bb834) Similarly, $map->{extent} returns a rectObj, which is also a scalar reference. I have no idea what to do with these scalar references. Anyone have any light they can shine? From jrf at MIT.EDU Tue Oct 2 20:33:00 2001 From: jrf at MIT.EDU (John R Frank) Date: Tue, 2 Oct 2001 23:33:00 -0400 (EDT) Subject: [mapserver-users] state label placement Message-ID: Hi I'm trying to display a US state boundaries layer that I downloaded from nationalatlas.gov. The labels show up many times. Even if I crank up the label::mindistance and label::buffer it still shows a few and they are pushed away from the center of the state! When I look at this layer in ArcExplorer, it looks _perfect_. The state labels appear once, centered in each state. How can we achieve this with mapserver? (we love mapserver). My states layer is below. John LAYER NAME states TYPE POLYGON # TOLERANCE 3 MAXSCALE 100000000 MINSCALE 10000 LABELMAXSCALE 100000000 LABELMINSCALE 500000 LABELITEM "state" CLASS # COLOR 190 255 190 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 150 150 150 LABEL # ANGLE AUTO COLOR 230 0 0 # OUTLINECOLOR 0 0 0 TYPE TRUETYPE FONT arial SIZE 9 POSITION AUTO BUFFER 7 # WRAP " " MINDISTANCE 300000000000 END END END ~ From Robin.Ellis at dnr.qld.gov.au Tue Oct 2 21:25:00 2001 From: Robin.Ellis at dnr.qld.gov.au (Ellis Robin (Bundaberg)) Date: Wed, 3 Oct 2001 14:25:00 +1000 Subject: [mapserver-users] query templates with Postgis Message-ID: Hi, I've got several layers of data exhibiting and querying in a recent nightly build of Mapserver. When I do extract attributes from a Postgis layer through a standard Mapserver query template I'm only getting the first 31 characters from any field returned. This same data can be accessed through a PostgreSQL environment revealing all characters of reasonably long strings. Also, the same data set accessed as a shapefile will return the full string in a standard Mapserver query template. Am I likely to need to change the config of Mapserver, or is there some limitation between Postgis and Mapserver that I won't be able to overcome simply? Thanks Rob. Robin Ellis Department of Natural Resources and Mines Burnett District +61 7 4131 5771 Robin.Ellis at dnr.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From sdlime at mninter.net Tue Oct 2 22:04:02 2001 From: sdlime at mninter.net (Stephen Lime) Date: Wed, 03 Oct 2001 00:04:02 -0500 Subject: [mapserver-users] Perl/Mapscript References: <3BBA4A7D.32D48BE@refractions.net> Message-ID: <3BBA9C42.6439EC8F@mninter.net> These are all correct. Image color is set like this: $map->{imagecolor}->{red} = 233; and so on for the green and blue components. This is different from other colors because of how a palette is built for an image. The image color is allocated when the image is created and we need to keep the 3 components. Projection objects cannot be manipulated directly. There is a helper method (setProjection) that takes a string of Proj.4 commands as input. That method is available in layerObj and mapObj. There is also a projObj contructor and methods to do projections. The projection object is new for 3.5, previously being handled through seperate modules. Extents are better documented. Use $map->{extent}->{minx} and so on to access those members. Steve Paul Ramsey wrote: > Interesting something happening with the perl binding: > > $map->{imagecolor} returns a colorObj, which is a standard hash > reference. mapscript::colorObj=HASH(0x82195c4) > > $map->{projection} returns a projectionObj, which is a SCALAR reference > for some reason. mapscript::projectionObj=SCALAR(0x83bb834) > > Similarly, $map->{extent} returns a rectObj, which is also a scalar > reference. > I have no idea what to do with these scalar references. Anyone have any > light they can shine? From sdlime at mninter.net Tue Oct 2 22:29:18 2001 From: sdlime at mninter.net (Stephen Lime) Date: Wed, 03 Oct 2001 00:29:18 -0500 Subject: [mapserver-users] generated dynamic .map files References: <3BB8AB27.7262.2032734*Didier.GEORGIEFF@agriculture.gouv.fr> Message-ID: <3BBAA22E.1598D5F0@mninter.net> Hi: Maps need to be on the same machine as the MapServer. Map files are so central to the software it hasn't made that much sense (to me anyway) to allow remote files, especially since data needs to be local (in most cases) anyway. You can certainly customize a map file remotely. You could easily write a wrapper script in perl or python to accept an entire map file over the network and then run MapServer in response, either the normal CGI or something in MapScript. I would think with Zope you'd want to use the Python version of MapScript and write components that way. You could also wrap calls to an external MapServer. I'm starting to do this with custom JSP actions to make life easier for my web staff. Steve Didier Georgieff wrote: > Hello, > > I'm in the process of using mapserver as maping tool with Zope as > application server (we used to use ArcviewIMS). > > I tested around mapserver+apache (thanks to michael anderson for > the help) and it's really a great(tm) product ! > > Here is the question : > > Zope is a killer for all dynamic features, and i can see a lot done on > the Zope side (again thanks to michael anderson for all the > informations and help). > > But i have a problem understanding what can be done to generate > "on the fly" map files when Zope server is on a different machine > than mapserver (if it's on the same machine thay can share the > ...map filesystem). Because in this case Zope can't write filesystem > on the mapserver machine (and i don't want to allow ftp on the > mapserver machine filesystem for security reasons) > > Reading thru the documentation i didn't understood for sure what > can be done without a map file (all parameter in the request http > thru get or put), or if it's possible to have a map file on a different > machine than mapserver. > > If this can't be workaround, so my solution will need to have > mapserver and Zope on the same machine so they can share the > same .map file dynamically. But this will reduce the abilty to adapt > to different architectures. > > Any help, tip, pointer, experience will be welcome. > > Thanks in advance. > > PS : Naturally all our developments will be open source. > > -- > Didier Georgieff > Chef de projet technique SIT du Bas-Rhin > t?l : 03.88.76.78.35 - fax : 03.88.76.78.34 > email : didier.georgieff at agriculture.gouv.fr > SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr > > Direction R?gionale et D?partementale > de l'Agriculture et de la For?t > Cit? Administrative - Entr?e 24 - 14, rue du Mar?chal Juin > 67084 Strasbourg Cedex From imap at chesapeake.net Tue Oct 2 22:24:46 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Wed, 03 Oct 2001 01:24:46 -0400 Subject: [mapserver-users] Perl/Mapscript References: <3BBA4A7D.32D48BE@refractions.net> <3BBA9C42.6439EC8F@mninter.net> Message-ID: <3BBAA11E.26F12579@chesapeake.net> Steve, I sent Paul an email directly but should have posted to the list. MapScript objects and methods are documented by the swig output file "mapscript_wrap.doc". That bit of documentation is a *must read* for the perl mapscript programmers out there. At least it was a big help for me determining the changes that have occurred between 3.3 and 3.5. It provides a bit of extra detail about members, etc. that not found in the HTML MapScript Reference docs. Regards, Chris Stephen Lime wrote: > > These are all correct. Image color is set like this: > > $map->{imagecolor}->{red} = 233; > > and so on for the green and blue components. This is different from other > colors because of how a palette is built for an image. The image color is > allocated when the image is created and we need to keep the 3 components. > > Projection objects cannot be manipulated directly. There is a helper > method (setProjection) that takes a string of Proj.4 commands as input. > That method is available in layerObj and mapObj. There is also a projObj > contructor and methods to do projections. The projection object is new for > 3.5, previously being handled through seperate modules. > > Extents are better documented. Use $map->{extent}->{minx} and so on to > access those members. > > Steve > > Paul Ramsey wrote: > > > Interesting something happening with the perl binding: > > > > $map->{imagecolor} returns a colorObj, which is a standard hash > > reference. mapscript::colorObj=HASH(0x82195c4) > > > > $map->{projection} returns a projectionObj, which is a SCALAR reference > > for some reason. mapscript::projectionObj=SCALAR(0x83bb834) > > > > Similarly, $map->{extent} returns a rectObj, which is also a scalar > > reference. > > I have no idea what to do with these scalar references. Anyone have any > > light they can shine? From trem at socialchange.net.au Wed Oct 3 01:10:24 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Wed, 03 Oct 2001 18:10:24 +1000 Subject: [mapserver-users] getFeature in mapserv35 Message-ID: <3BBAC7F0.15F3C73E@socialchange.net.au> Hi all, Could anyone tell me the current status of feature query using mapserv35 When I use a template html when querying a shapefile (ie. polygons), I get a response in a standard html format. http://maps-dev.socialchange.net.au/cgi-bin/mapserv?map=mapfiles/wms35.map&WMTVER=1.0.0&SRS=EPSG%3A4202&REQUEST=feature_info&LAYERS=npws_np&QUERY_LAYERS=npws_np&BBOX=140.08099999999996%2C-39.1493%2C154.753%2C-24.4773&WIDTH=400&HEIGHT=400&STYLES=&X=283&Y=234&FORMAT=GIF&INFO_FORMAT=MIME Is there any way of getting xml or gml back from a feature query? I know that is is in the pipeline for when making a wms request, but does anyone know how far away this is from being implemented (assuming it hasn't been already), or am I missing a INFO_FORMAT value required other than MIME (I couldn't see anything in the archives)? Thanks in advance, Trem From a5320 at n-koei.co.jp Wed Oct 3 01:24:08 2001 From: a5320 at n-koei.co.jp (Sanath Jayamanna) Date: Wed, 3 Oct 2001 17:24:08 +0900 Subject: [mapserver-users] Mapserver Installation Message-ID: <00cd01c14be4$c6454660$5d0710ac@a5320-jayamanna.tyo.n-koei.co.jp> Dear Friends, I am a novice. I use Windows NT Workstation. I am trying to download and install mapserver. I have downloaded ms33011g.zip and extracted it to C:\mapserv, but I cannot proceed from there to read README.TXT or README.HTML for further installation. Could you please advise me how I could proceed. Thank you very much. Yours Sincerely, Sanath Jayamanna -------------- next part -------------- An HTML attachment was scrubbed... URL: From bertha_bonita at yahoo.com Wed Oct 3 02:09:38 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 3 Oct 2001 11:09:38 +0200 (CEST) Subject: [mapserver-users] check my first job!! Message-ID: <20011003090938.27058.qmail@web14103.mail.yahoo.com> hi list.. please chek this url http://geologia.cicese.mx/mapas/ensenada/ ?t's my first job related with mapserver and spatial data, well i would like recive your comments ... thanks! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicaci?n instant?nea gratis con tu gente - http://messenger.yahoo.es From morissette at dmsolutions.ca Wed Oct 3 06:10:34 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 03 Oct 2001 09:10:34 -0400 Subject: [mapserver-users] getFeature in mapserv35 References: <3BBAC7F0.15F3C73E@socialchange.net.au> Message-ID: <3BBB0E4A.BAFBA901@dmsolutions.ca> Trem Stamp wrote: > > Is there any way of getting xml or gml back from a feature query? I > know that is is in the pipeline for when making a wms request, but does > anyone know how far away this is from being implemented (assuming it > hasn't been already), or am I missing a INFO_FORMAT value required other > than MIME (I couldn't see anything in the archives)? > Trem, At the moment, getFeatureInfo can return only plain text response when you request MIME format. Steve is working on GML output but I don't think it's there yet. Finally, about returning HTML instead of plain text, that was on my list. I would like to simply use the same TEMPLATE mechanism that is already used by MapServer. There was no plan for XML but that may be a good idea, you could probably use the same template mechanism as HTML for XML. Not sure when I'll get to that, but to make sure it doesn't fall into a crack I filed this in bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=56 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sdlime at mninter.net Wed Oct 3 06:29:44 2001 From: sdlime at mninter.net (Stephen Lime) Date: Wed, 03 Oct 2001 08:29:44 -0500 Subject: [mapserver-users] state label placement References: Message-ID: <3BBB12C8.73FE180C@mninter.net> I downloaded the layer myself and will take a look. A couple of things off the top of my head. MINDISTANCE is given in pixels and only deals with duplicates. POSITION AUTO uses 8 label points that revolve around the label point. If you want to center directly upon the label point choose CC explictly. I think there may be enough info in the label cache to add CC back into the AUTO placement if no marker is being used, I'll file that as a bug in bugzilla. Finally, polygon label points are generated as follows: - use midpoint of bbox if that point falls in the polygon - compute a centroid based on sampling the feature For odd shaped states (like Mass. or Fla.) the position may not be optimal. Steve John R Frank wrote: > Hi > > I'm trying to display a US state boundaries layer that I downloaded from > nationalatlas.gov. The labels show up many times. Even if I crank up the > label::mindistance and label::buffer it still shows a few and they are > pushed away from the center of the state! > > When I look at this layer in ArcExplorer, it looks _perfect_. The state > labels appear once, centered in each state. > > How can we achieve this with mapserver? (we love mapserver). My states > layer is below. > > John > > LAYER > NAME states > TYPE POLYGON > # TOLERANCE 3 > MAXSCALE 100000000 > MINSCALE 10000 > LABELMAXSCALE 100000000 > LABELMINSCALE 500000 > LABELITEM "state" > CLASS > # COLOR 190 255 190 > BACKGROUNDCOLOR 255 255 255 > OUTLINECOLOR 150 150 150 > LABEL > # ANGLE AUTO > COLOR 230 0 0 > # OUTLINECOLOR 0 0 0 > TYPE TRUETYPE > FONT arial > SIZE 9 > POSITION AUTO > BUFFER 7 > # WRAP " " > MINDISTANCE 300000000000 > END > END > END > > ~ From pramsey at refractions.net Wed Oct 3 08:48:42 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 03 Oct 2001 08:48:42 -0700 Subject: [mapserver-users] query templates with Postgis References: Message-ID: <3BBB335A.586420AE@refractions.net> My pseudo-informed guess is that Dave hardcoded a size into his character handlers, and you just found it. If I am right, he'll have a fix into the CVS version of mapserver before the end of the day... if I am wrong, he will chastise me publicly. "Ellis Robin (Bundaberg)" wrote: > > Hi, > I've got several layers of data exhibiting and querying in a > recent nightly build of Mapserver. When I do extract attributes from a > Postgis layer through a standard Mapserver query template I'm only > getting the first 31 characters from any field returned. This same data > can be accessed through a PostgreSQL environment revealing all > characters of reasonably long strings. Also, the same data set accessed > as a shapefile will return the full string in a standard Mapserver query > template. > > Am I likely to need to change the config of Mapserver, or is there some > limitation between Postgis and Mapserver that I won't be able to > overcome simply? > > Thanks > > Rob. > > Robin Ellis > Department of Natural Resources and Mines > Burnett District > +61 7 4131 5771 > Robin.Ellis at dnr.qld.gov.au > > ************************************************************************ > The information in this e-mail together with any attachments is > intended only for the person or entity to which it is addressed > and may contain confidential and/or privileged material. > > Any form of review, disclosure, modification, distribution > and/or publication of this e-mail message is prohibited. > > If you have received this message in error, you are asked to > inform the sender as quickly as possible and delete this message > and any copies of this message from your computer and/or your > computer system network. > ************************************************************************ From klehr1 at tampabay.rr.com Wed Oct 3 10:14:49 2001 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Wed, 3 Oct 2001 13:14:49 -0400 Subject: [mapserver-users] XBase Question--adding columns to a .dbf file Message-ID: <009001c14c2e$e9498280$0300a8c0@tampabay.rr.com> I'd like to add two columns to a current .dbf file using the XBase perl module. Could someone provide me a small piece of code to accomplish this task. I'm not sure of the syntax for XBase to grab a row, chop it into its fields, add 2 more fields to the array, repack it into the xbase format then write it to a new .dbf (say ARGV[1]). i.e. in plain text file say tab delimited if (!$ARGV[1]) { print "\n Invalid usage...Usage: add_columns.pl CURRENTFILE NEWFILE\n"; exit; } open(INPUT, $ARGV[0]) || die "Could not open $ARGV[0]"; open(OUTPUT, ">$ARGV[1]"); while() { chomp(); @fields = split(/\t/, $_); # tab delimited data $fields[$#fields + 1] = "new data element 1"; # add an element to the array $fields[$#fields + 1] = "new data element 2"; # add another element print "@fields\n"; $output_string = join "\t", @fields; print OUTPUT "$output_string\n"; } close(INPUT); close(OUTPUT); I'd like to do the same with .dbfs (append two columns to the current .dbf) Thank you Steve Lehr -------------- next part -------------- An HTML attachment was scrubbed... URL: From LBallard at YesVirginia.org Wed Oct 3 10:15:34 2001 From: LBallard at YesVirginia.org (Ballard,Lowell) Date: Wed, 3 Oct 2001 13:15:34 -0400 Subject: [mapserver-users] mapscript annotation map layer Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16D11D@communications> I'm trying to use an existing .map file I had working in MS3.5 cgi-version porting it over to a Mapscript/php version. Below are 2 roads layers, one TYPE LINE and one TYPE ANNOTATION. If I turn the ANNOTATION layer to STATUS OFF it will never display even when the Roads Layer is selected on the user interface. If I set the ANNOTATION layer STATUS ON it will always display regardless of it's CHECKED/UNCHECKED status on the interface. I'm new to Mapscript and just working on hacking up the demo so....sorta lost. LAYER NAME roads STATUS OFF DATA vdotrd TYPE LINE MAXSCALE 50000 LABELMAXSCALE 30000 LABELITEM "route_name" HEADER roads_header.html SYMBOLSCALE 30000 CLASS NAME "VDOT Roads" COLOR 200 36 43 TEMPLATE roads.html END END # roads LAYER NAME roads MAXSCALE 50000 STATUS ON DATA vdotrd TYPE ANNOTATION LABELITEM "route" CLASSITEM "ROAD_TYPE" CLASS EXPRESSION "1" COLOR 0 0 0 SYMBOL 'symbols/images/interstate.png' LABEL SIZE 2 MINFEATURESIZE 40 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 255 255 255 END END CLASS EXPRESSION "2" COLOR 0 0 0 # dummy color SYMBOL 'symbols/images/ushwy.png' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "3" COLOR 0 0 0 # dummy color SYMBOL 'symbols/images/sthwy.png' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE TINY COLOR 0 0 0 END END CLASS EXPRESSION "4" COLOR 0 0 0 # dummy color SYMBOL 'symbols/images/ctyhwy.png' LABEL MINFEATURESIZE 50 MINDISTANCE 150 POSITION CC SIZE 6 TYPE TRUETYPE FONT arial ANTIALIAS COLOR 0 0 0 END END END Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From dblasby at refractions.net Wed Oct 3 11:44:22 2001 From: dblasby at refractions.net (Dave Blasby) Date: Wed, 03 Oct 2001 11:44:22 -0700 Subject: [mapserver-users] query templates with Postgis References: <3BBB335A.586420AE@refractions.net> Message-ID: <3BBB5C86.62037245@refractions.net> Paul Ramsey wrote: > > My pseudo-informed guess is that Dave hardcoded a size into his > character handlers, and you just found it. If I am right, he'll have a > fix into the CVS version of mapserver before the end of the day... if I > am wrong, he will chastise me publicly. Its actually a bug in postgresql. I've reported the bug and found a work around. I'll modify the mappostgis.c file and commit the changes this afternoon. dave ps. For those of you interested, here's how to reproduce the bug: postgresql-#create table t (v varchar); postgresql-#insert into t values ('0123456789a0123456789b0123456789c0123456789d'); postgresql-#select v from t; v ---------------------------------------------- 0123456789a0123456789b0123456789c0123456789d (1 row) So far, so good. postgresql-#select text(v) from t; text --------------------------------- 0123456789a0123456789b012345678 (1 row) Truncation occurs. Work around: postgresql-# select v::text from t; ?column? ---------------------------------------------- 0123456789a0123456789b0123456789c0123456789d (1 row) From Chip.Hankley at GASAI.Com Wed Oct 3 13:47:45 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Wed, 3 Oct 2001 15:47:45 -0500 Subject: [mapserver-users] PHP MapScript - Selecting Polygons by Buffer Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3F08@postoffice.GASAI.Com> I'm having trouble writing a function that selects the polygons surrounding another polygon. For instance, the user selects a given polygon and then requests MS to display all polygons within 2 miles. Has anyone done this... willing to share their code? Here's my pseudo-code: function buff_list($map, $ID, $dist) { //Get the ShapeObj of the polygon that has an attribute of $ID //Get the bounding box of the shape //Increase the bounding box coordinates by $dist (i.e. xmin - $dist, // ymin - $dist, xmax + $dist, ymax + $dist) //Use the increased bounding box to create a new RectObj //QueryByRect to return the new records } I can't figure out how to get past the first step - I was trying $Layer->queryByAttributes(MS_SINGLE); but this returned a "Fatal error: Object has an invalid '_map_handle_' property in c:\..." This could be more of the bug that Daniel reported the other day regarding the way PHP was handling objects internally (I'm still using a pre-Sept 13 dll). Also, my approach is the most rudimentary in that it will really only give decent results on polygons that resemble rectangles. Seems like somebody would have done this in MapScript...Help would be much appreciated. Chip Hankley From cabral at cttmar.univali.br Wed Oct 3 13:55:25 2001 From: cabral at cttmar.univali.br (Rodrigo Becke Cabral) Date: Wed, 3 Oct 2001 17:55:25 -0300 Subject: [mapserver-users] on truetype fonts Message-ID: <003901c14c4d$b9e57520$210b000a@cadiz.linhalivre.net> The following facts are from my tests using mapserver 3.5 with gd 2.0.1 and freetype 2.0.4. I would appreciate if someone could either confirm the facts or point out my mistakes. -- force and postlabelcache When force or postlabelcache are set true in layer, truetype font errors are not displayed. when I comment them off, the error appears properly (which was "msGetLabelSize(): TrueType Font error. Could not find/open font" in my case). This also occurs with gd 1.2 and freetype 1.3.1, so it's a specific MapServer thing. Maybe ttf errors should always be displayed - otherwise one would think that the problem is with their shape data. -- ms35png_nightly.zip First, I double-checked 'mapserv' version: > mapserv -v MapServer version 3.5 (pre-alpha) OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE But when I try to use it with truetype fonts (see SUPPORTS=TTF) the following error appears: msGetLabelSize(): TrueType Font error. libgd was not built with TrueType font support. That's "almost" weird, I guess. -- TrueType Font error. Could not find/open font Now that was a difficult error for me to find out. Why is that? I few months ago I setup a whole mapserver 3.5 working environment (shapes+fonts+map). Last week, I downloaded the latest nightly.tar.gz and after I recompiled and installed it, truetype labels in my previously-working setup disappeared. First, because I had 'force' set 'true' in 'layer', I didn't get the ttf error from the beginning, so I thought I had messed up my compilation, libraries, stuff... Anyway, after I got to the actual error, I decided to look in the mapserver-user archives to see if someone had had the same problem I had. Indeed, the archives had some answers, but I decided to dig in and find out exactly why my mapserver setup was working before, and now it wasn't. Here's why: current GD versions (either 1.8 or 2) don't deal with relative paths. "gdft.c" resolves the font path supplied by mapserver in two ways. Either applying it directly - but only if the path begins with "/"; or after prepending a DEFAULTPATH which by default is "/usr/share/fonts/truetype". Path separator is ":", so forget about providing a fullpath in windows (C:\X) would become two paths to be tested (C and \X). But why my setup was working before? Not sure, maybe I was using gd-1.2 which simply applies the supplied fontpath directly. The point is, right now, the ONLY way to really make it work is to refer fonts with a full path, like: fontset '/home/mapserv/fonts/fonts.txt' which would be used by mapserver as a hint to build full font name paths, like /home/mapserv/fonts/fonts/myfont.ttf where myfont.ttf is some font registered in fonts.txt. Because I was using simply fonts/fonts.txt (a relative path), GD couldn't read fonts/myfont.txt and then I got the error "TrueType Font error. Could not find/open font". Finally, to end this looong e-mail, here is one thought: can't mapserver automatically expand relative paths to full paths BEFORE passing them to GD? Rod. From sdlime at mninter.net Wed Oct 3 14:34:09 2001 From: sdlime at mninter.net (Stephen Lime) Date: Wed, 03 Oct 2001 16:34:09 -0500 Subject: [mapserver-users] mapscript annotation map layer References: <509989F9E1D38D47ADA73ED9CF5BF32A16D11D@communications> Message-ID: <3BBB8451.8012FBE@mninter.net> Remember that the CGI version is not linked to MapScript. You have to change the way you think when making that transition. The CGI version handles certain things like layer control that you have to do by hand. The CGI treats all layers as OFF unless they are DEFAULTs. MapScript, on the otherhand, treats layers exactly as spelled out in the map file. If they're ON then they show up. You must write the code to turn them ON or OFF based on user input yourself. It's not hard, it just needs to be done. To mimic the CGI do this: - turn all non-DEFAULT layers OFF - loop through requested layers and turn them ON now query or make a map as normal. If you or other users see places where we could write helper methods in MapScript let me or the DMSolutions folks know! Steve "Ballard,Lowell" wrote: > I'm trying to use an existing .map file I had working in > MS3.5 cgi-version porting it over to a Mapscript/php version. > > Below are 2 roads layers, one TYPE LINE and one TYPE ANNOTATION.If I > turn the ANNOTATION layer to STATUS OFF it will never display even > when the Roads Layer is selected on the user interface.If I set the > ANNOTATION layer STATUSON it will always display regardless of it's > CHECKED/UNCHECKED status on the interface.I'm new to Mapscript and > just working on hacking up the demo so....sorta lost. > > LAYER > > NAME roads > > STATUS OFF > > DATA vdotrd > > TYPE LINE > > MAXSCALE 50000 > > LABELMAXSCALE 30000 > > LABELITEM "route_name" > > HEADER roads_header.html > > SYMBOLSCALE 30000 > > CLASS > > NAME "VDOT Roads" > > COLOR 200 36 43 > > TEMPLATE roads.html > > END > > END # roads > > LAYER > > NAME roads > > MAXSCALE 50000 > > STATUS ON > > DATA vdotrd > > TYPE ANNOTATION > > LABELITEM "route" > > CLASSITEM "ROAD_TYPE" > > CLASS > > EXPRESSION "1" > > COLOR 0 0 0 > > SYMBOL 'symbols/images/interstate.png' > > LABEL > > SIZE 2 > > MINFEATURESIZE 40 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 255 255 255 > > END > > END > > CLASS > > EXPRESSION "2" > > COLOR 0 0 0 # dummy color > > SYMBOL 'symbols/images/ushwy.png' > > LABEL > > MINFEATURESIZE 50 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 00 > > END > > END > > CLASS > > EXPRESSION "3" > > COLOR 0 00 # dummy color > > SYMBOL 'symbols/images/sthwy.png' > > LABEL > > MINFEATURESIZE 50 > > MINDISTANCE 150 > > POSITION CC > > SIZE TINY > > COLOR 0 00 > > END > > END > > CLASS > > EXPRESSION "4" > > COLOR 0 00 # dummy color > > SYMBOL 'symbols/images/ctyhwy.png' > > LABEL > > MINFEATURESIZE 50 > > MINDISTANCE 150 > > POSITION CC > > SIZE 6 > > TYPE TRUETYPE > > FONT arial > > ANTIALIAS > > COLOR 0 00 > > END > > END > > END > > Lowell Ballard > > Unix/Database Administrator > > Virginia Economic Development Partnership > > 901 E. Byrd St., Richmond, Va.23218 > > http://gis.vedp.org > From imap at chesapeake.net Wed Oct 3 14:54:39 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Wed, 03 Oct 2001 17:54:39 -0400 Subject: [mapserver-users] XBase Question--adding columns to a .dbf file References: <009001c14c2e$e9498280$0300a8c0@tampabay.rr.com> Message-ID: <3BBB891F.ACFDAF1C@chesapeake.net> On the XBase Question about adding columns... This type of program should work OK. You end up having to build a new file, but that isnt a bad thing. # add_column.pl use XBase; my $table = new XBase $ARGV[0] or die XBase->errstr; my @fn = $table->field_names(); my @ft = $table->field_types(); my @fl = $table->field_lengths(); my @fd = $table->field_decimals(); # # HERE you will have to push additional values into each # of the arrays above. (ie new Columns) # push @fn, "NEWCOL1","NEWCOL2"; # push @ft, "C","C"; # push @fl, "25","20"; # push @fd, "undef","undef"; # my $newtable = XBase->create("name" => $ARGV[1], "field_names" => [@fn], "field_types" => [@ft], "field_lengths" => [@fl], "field_decimals" => [@fd] ); for $x (0 .. $table->last_record) { @rec = $table->get_record($x); next if ($deleted); # # push new data onto @rec or leave empty # $newtable->set_record($x, at rec); } I hope that works for you... Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. (410)257-3187 > klehr1 at tampabay.rr.com wrote: > > I'd like to add two columns to a current .dbf file using the XBase perl > module. > > Could someone provide me a small piece of code to accomplish this task. > > I'm not sure of the syntax for XBase to grab a row, chop it into its fields, > add 2 more fields to the array, repack it into the xbase format then write it > to a new .dbf (say ARGV[1]). > > i.e. in plain text file say tab delimited > > if (!$ARGV[1]) > { > print "\n Invalid usage...Usage: add_columns.pl CURRENTFILE NEWFILE\n"; > exit; > } > open(INPUT, $ARGV[0]) || die "Could not open $ARGV[0]"; > open(OUTPUT, ">$ARGV[1]"); > > while() > { > chomp(); > @fields = split(/\t/, $_); # tab delimited data > $fields[$#fields + 1] = "new data element 1"; # add an element to the > array > $fields[$#fields + 1] = "new data element 2"; # add another element > print "@fields\n"; > $output_string = join "\t", @fields; > print OUTPUT "$output_string\n"; > } > close(INPUT); > close(OUTPUT); > I'd like to do the same with .dbfs (append two columns to the current .dbf) > > Thank you > Steve Lehr From j1mmm at hotmail.com Wed Oct 3 21:29:00 2001 From: j1mmm at hotmail.com (j1mmm) Date: Thu, 4 Oct 2001 11:29:00 +0700 Subject: [mapserver-users] DID anyone success in compile MS+SDE in NT ?? Message-ID: HI all, i heard some left SDE in NT and move to LINUX instead, so i want to know Did anyone ever really use SDE in NT before?? who the one please Regards j1mmm j1mmm at hotmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gispmpf at zipmail.com.br Wed Oct 3 22:25:47 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Thu, 4 Oct 2001 02:25:47 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?classitem?= Message-ID: <3BBB385A00001EE8@www.zipmail.com.br> I have a question... How can i identify the classitem in a shpfile? I need it to create the map file... I dont have ArcView , I'm working only with ArcExplorer... Thanks Jo?o M?rio L. Brezolin GIS/Analyst ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From pharrer at idmail.com Wed Oct 3 22:43:00 2001 From: pharrer at idmail.com (P.Harrer) Date: Wed, 3 Oct 2001 22:43:00 -0700 Subject: [mapserver-users] demo problem Message-ID: <018e01c14c97$6fb4b110$238942d8@t4t6q6> I get the following message using win 2000 sever: msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO10021740061224.gif) I've set correct permissions for the tmp folder... -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Thu Oct 4 05:27:27 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 4 Oct 2001 08:27:27 -0400 Subject: [mapserver-users] demo problem Message-ID: <13858AA1A74F30419F319ACB66A9D122D31C@mercator.topozone.com> Look to see if that file is in that folder. If it's not there, you probably DIDN'T set the correct permissions. The IUSR_ account (by default) needs to have Read and Write permission on that folder. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: P.Harrer [mailto:pharrer at idmail.com] Sent: Thursday, October 04, 2001 1:43 AM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] demo problem I get the following message using win 2000 sever: msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO10021740061224.gif) I've set correct permissions for the tmp folder... From teb at mallit.fr.umn.edu Thu Oct 4 08:50:20 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 4 Oct 2001 10:50:20 -0500 (CDT) Subject: [mapserver-users] Mapplet HOWTO (fwd) Message-ID: <200110041550.KAA12699@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Blaine Hackett" To: Subject: Mapplet HOWTO Date: Wed, 3 Oct 2001 17:13:09 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal All I am getting an error while trying to us the Mapplet HOWTO stuff. Here it is: Applet mapplet can't start: ERROR. Any idea what I am doing wrong? Thanks Blaine ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Thu Oct 4 08:50:57 2001 From: teb at mallit.fr.umn.edu (teb) Date: Thu, 4 Oct 2001 10:50:57 -0500 (CDT) Subject: [mapserver-users] PHP MAPSCRIPT (fwd) Message-ID: <200110041550.KAA12704@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "CATHIGNOL, Frederic" To: "'mapserver-info at lists.gis.umn.edu'" Subject: PHP MAPSCRIPT Date: Thu, 4 Oct 2001 17:31:50 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id KAA12581 Hello; I'm a new user from France. I have some difficulties to create new different kind of layers dynamically. The number of layer does not increase ! Do you have a full example witch doesnot use a .MAP file for creating layers ? Many Thanks... Regards, F.CATHIGNOL ------------------------- Example : $gpoMap = ms_newMapObj("pactes-def.map"); $fredlayer[0] = ms_newLayerObj($gpoMap); $fredlayer[0]->set("name", "Ikonos"); $fredlayer[0]->set("type", MS_LAYER_RASTER); $fredlayer[0]->set("status", MS_ON); $fredlayer[0]->set("data", "ikonos_8bits.tiff"); $fredlayer[0]->setMetaData("DESCRIPTION", "Raster Ikonos"); printf("1: Numlayers : %d\n",$gpoMap->numlayers); $fredlayer[1] = ms_newLayerObj($gpoMap); $fredlayer[1]->set("name", "ortho"); $fredlayer[1]->set("type", MS_LAYER_RASTER); $fredlayer[1]->set("status", MS_OFF); $fredlayer[1]->set("data", "panxs.tiff"); $fredlayer[1]->setMetaData("DESCRIPTION", "Raster SPOT"); printf("2: Numlayers : %d\n",$gpoMap->numlayers); $fredlayer[2] = ms_newLayerObj($gpoMap); $fredlayer[2]->set("name", "hydro"); $fredlayer[2]->set("type", MS_LAYER_POLYGON); $fredlayer[2]->set("status", MS_ON); $fredlayer[2]->set("data", "RESHYDR"); // <- For reshydr.dbf, shp, shx files $fredlayer[2]->setMetaData("DESCRIPTION", "R?seau Hydrologique"); printf("3: Numlayers : %d\n",$gpoMap->numlayers); ... pactes-def.map : NAME DEMO STATUS ON SIZE 400 300 SYMBOLSET ../etc/symbols.sym EXTENT 645085 1802076 656681 1810754 UNITS METERS SHAPEPATH "../data" IMAGECOLOR 255 255 255 FONTSET ../etc/fonts.txt WEB MINSCALE 100 MAXSCALE 1550000 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END REFERENCE IMAGE images/keymap.png EXTENT 645085 1802076 656681 1810754 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 SIZE 100 100 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 5 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS meters INTERVALS 1 STATUS ON END QUERYMAP STYLE HILITE COLOR 255 0 0 END END # Map File ------------- End Forwarded Message ------------- From Chip.Hankley at GASAI.Com Thu Oct 4 09:05:23 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 4 Oct 2001 11:05:23 -0500 Subject: [mapserver-users] MapScript: queryByAttributes Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3F11@postoffice.GASAI.Com> Can someone offer an explanation and/or example of the queryByAttributes method for a layer object? Why is this listed under the Layer Object, while all of the other query methods (queryByPoint/Rect/Shape/Features) are all under the MapObj? How is it different? Ultimately, I'm trying to get at the bounding coordinates of a polygon. I need to specify the polygon by it's attribute. (I'm using PHP Mapscript) TIA Chip From morissette at dmsolutions.ca Thu Oct 4 11:12:33 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 04 Oct 2001 14:12:33 -0400 Subject: [mapserver-users] PHP MAPSCRIPT (fwd) References: <200110041550.KAA12704@mallit.fr.umn.edu> Message-ID: <3BBCA691.CCE81C5@dmsolutions.ca> > From: "CATHIGNOL, Frederic" > > I have some difficulties to create new different kind of layers dynamically. > > The number of layer does not increase ! > > Do you have a full example witch doesnot use a .MAP file for creating layers > ? > Frederic, Your layers were created properly and you should be able to use them, it's just that the $map->numlayers member was not updated properly in the PHP wrapper object. I have fixed this in the CVS version. However, the copy of the code in CVS today doesn't compile, hopefully this will be fixed in the next day or two and then you can build a new executable from the latest CVS source. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Jciavarelli at city.kamloops.bc.ca Thu Oct 4 11:16:55 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Thu, 04 Oct 2001 11:16:55 -0700 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: Sort of off topic, but thought I'd ask anyways in case anyone knows. I have written a perl/mapscript to create a shapefile. I can view the shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI ArcView 8.1, I get an error. Is anyone out there aware of any differences between shapefile formats between different products? Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca From ed at topozone.com Thu Oct 4 12:38:53 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 4 Oct 2001 15:38:53 -0400 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: <13858AA1A74F30419F319ACB66A9D122D321@mercator.topozone.com> Janet - I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). Perhaps it's more likely that you're creating a slightly out-of-spec shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. There's a tool called shpfix in the GDAL distribution that might possibly help clean up the file. If you'd like to email me the shapefile I'll take a look at it. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Thursday, October 04, 2001 2:17 PM To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu Subject: [mapserver-users] Shapefiles - different formats? Sort of off topic, but thought I'd ask anyways in case anyone knows. I have written a perl/mapscript to create a shapefile. I can view the shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI ArcView 8.1, I get an error. Is anyone out there aware of any differences between shapefile formats between different products? Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca From pauls at SCCWRP.ORG Fri Oct 5 08:42:34 2001 From: pauls at SCCWRP.ORG (Paul Smith) Date: Fri, 05 Oct 2001 08:42:34 -0700 Subject: [mapserver-users] intemnquery or single record search Message-ID: <3BBDD4E9.CCB13724@sccwrp.org> I am trying to add a search feature to my mapserver page. In my .dbf file I have three columns station, longitude, latitude. I want to be able to show just one station that the user requests from the search form, instead of getting the whole layer. I think what I am looking for is similiar to the Case #4 itemnquery at: http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html When I apply this method though I get this: msQueryUsingItem(): Search returned no results. No matching record(s) found. I am using: MapServer Version 3.4 -GD_1_2 -PROJ.4 -FreeType -TIFF -EPPL7 -JPEG on a linux box. My map file: NAME stations SHAPEPATH "data" LAYER NAME stations DATA stations STATUS DEFAULT TYPE POLYGON QUERY TEMPLATE search_query.html END END END Where have I gone wrong? Am I using the wrong tool for what I am try to do? Thanks for any help, Paul Smith pauls at sccwrp.org From Jciavarelli at city.kamloops.bc.ca Fri Oct 5 09:04:51 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 05 Oct 2001 09:04:51 -0700 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: Hi Ed, I see what the difference is now. I went into ArcCatalog and created an empty shapefile, and I looked in explorer. It creates 4 files! Not just the 3 files that it used to use (.shp, .shx, .dbf). I've attached all the four files. So that explains why ArcView 3.2 can open the file though. Cause it finds the 3 files and just ignores the 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will have to find out what's in it and get my script to create that as well. Also, maybe that utility you advised me to grab will create it. I will check when I get time which my be a long time from now. Thanx for your help. Janet. >>> "Ed McNierney" 10/04/01 05:49pm >>> Janet - Can you create an empty point shapefile in 8.1 and send that to me, too? I don't have 8.1, but I can take a look at the shapefile to see if there's anything different. - Ed -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Thursday, October 04, 2001 4:11 PM To: Ed McNierney Subject: RE: [mapserver-users] Shapefiles - different formats? Yes, same symptom even with records added. >>> "Ed McNierney" 10/04/01 01:10pm >>> Janet - Do you get the same symptom when you add records to the shapefile? - Ed -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Thursday, October 04, 2001 4:03 PM To: Ed McNierney Subject: RE: [mapserver-users] Shapefiles - different formats? Hi Ed, Here's a copy of the shapefile. BTW, it is an empty one but it should be successfully able to open empty shapefiles as well. We've tried it with both empty and un-empty ones and get the same results: it opens find in AV 3.2 but errors out in AV 8.1 Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca >>> "Ed McNierney" 10/04/01 12:38pm >>> Janet - I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). Perhaps it's more likely that you're creating a slightly out-of-spec shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. There's a tool called shpfix in the GDAL distribution that might possibly help clean up the file. If you'd like to email me the shapefile I'll take a look at it. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Thursday, October 04, 2001 2:17 PM To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu Subject: [mapserver-users] Shapefiles - different formats? Sort of off topic, but thought I'd ask anyways in case anyone knows. I have written a perl/mapscript to create a shapefile. I can view the shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI ArcView 8.1, I get an error. Is anyone out there aware of any differences between shapefile formats between different products? Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: shapev8.dbf Type: application/octet-stream Size: 66 bytes Desc: dBase 3 database URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: shapev8.prj URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: shapev8.shp Type: application/octet-stream Size: 100 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: shapev8.shx Type: application/octet-stream Size: 100 bytes Desc: not available URL: From kames at keyspanenergy.com Fri Oct 5 09:34:03 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Fri, 05 Oct 2001 12:34:03 -0400 Subject: [mapserver-users] Shapefiles - different formats? References: Message-ID: <3BBDE0FB.CDAAA4C1@keyspanenergy.com> The .prj file contains datum info. Required for both Geographic and Projected data. Kieran Janet Ciavarelli wrote: > Hi Ed, > I see what the difference is now. I went into ArcCatalog and created an empty shapefile, and I looked in explorer. It creates 4 files! Not just the 3 files that it used to use (.shp, .shx, .dbf). > > I've attached all the four files. So that explains why ArcView 3.2 can open the file though. Cause it finds the 3 files and just ignores the 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will have to find out what's in it and get my script to create that as well. Also, maybe that utility you advised me to grab will create it. I will check when I get time which my be a long time from now. > > Thanx for your help. Janet. > > >>> "Ed McNierney" 10/04/01 05:49pm >>> > Janet - > > Can you create an empty point shapefile in 8.1 and send that to me, too? > I don't have 8.1, but I can take a look at the shapefile to see if > there's anything different. > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:11 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Yes, same symptom even with records added. > > >>> "Ed McNierney" 10/04/01 01:10pm >>> > Janet - > > Do you get the same symptom when you add records to the shapefile? > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:03 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Hi Ed, > Here's a copy of the shapefile. BTW, it is an empty one but it should > be successfully able to open empty shapefiles as well. We've tried it > with both empty and un-empty ones and get the same results: it opens > find in AV 3.2 but errors out in AV 8.1 > > Janet. > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > >>> "Ed McNierney" 10/04/01 12:38pm >>> > Janet - > > I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). > Perhaps it's more likely that you're creating a slightly out-of-spec > shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. > > There's a tool called shpfix in the GDAL distribution that might > possibly help clean up the file. If you'd like to email me the > shapefile I'll take a look at it. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 2:17 PM > To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu > Subject: [mapserver-users] Shapefiles - different formats? > > Sort of off topic, but thought I'd ask anyways in case anyone knows. I > have written a perl/mapscript to create a shapefile. I can view the > shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI > ArcView 8.1, I get an error. Is anyone out there aware of any > differences between shapefile formats between different products? > > Janet. > > > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > ------------------------------------------------------------------------ > Name: shapev8.dbf > shapev8.dbf Type: Database File (application/x-unknown-content-type-DatabaseFile) > Encoding: base64 > Description: dBase 3 database > > shapev8.prjName: shapev8.prj > Type: Plain Text (text/plain) > > Name: shapev8.shp > shapev8.shp Type: unspecified type (application/octet-stream) > Encoding: base64 > > Name: shapev8.shx > shapev8.shx Type: unspecified type (application/octet-stream) > Encoding: base64 From imap at chesapeake.net Fri Oct 5 09:53:47 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Fri, 05 Oct 2001 12:53:47 -0400 Subject: [mapserver-users] Shapefiles - different formats? References: Message-ID: <3BBDE59B.BA4C9C1A@chesapeake.net> ArcView will read the 3 files just fine. You have to create or Open a New Project, then Add Layer, then browse to the dir where your shapefiles are, then pick one. A somewhat related comment, There are actually a other files that sometimes accompany a shapefile. .shp, .shx, .dbf (main 3 files) .sbn, .ixs, .mxs (??? mystery files) .prj, .apr (project files I think) I think the .ixs and .mxs are geocoding indexes and .sbn??? who knows. I'd really like to know the layout of these other files. I am not sure if they come from ArcInfo, or what? I see a few 3rd party companies create these files within their ArcView Format, but it may be a proprietary aspect of Arc??? If anyone has info, please reply an email. Anyway, The .apr(.prj?) are in ascii and is a long list of name/value pairs, so a script should be able to generate/manipulate OK. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Janet Ciavarelli wrote: > > Hi Ed, > I see what the difference is now. I went into ArcCatalog and created an empty shapefile, and I looked in explorer. It creates 4 files! Not just the 3 files that it used to use (.shp, .shx, .dbf). > > I've attached all the four files. So that explains why ArcView 3.2 can open the file though. Cause it finds the 3 files and just ignores the 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will have to find out what's in it and get my script to create that as well. Also, maybe that utility you advised me to grab will create it. I will check when I get time which my be a long time from now. > > Thanx for your help. Janet. > > >>> "Ed McNierney" 10/04/01 05:49pm >>> > Janet - > > Can you create an empty point shapefile in 8.1 and send that to me, too? > I don't have 8.1, but I can take a look at the shapefile to see if > there's anything different. > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:11 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Yes, same symptom even with records added. > > >>> "Ed McNierney" 10/04/01 01:10pm >>> > Janet - > > Do you get the same symptom when you add records to the shapefile? > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:03 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Hi Ed, > Here's a copy of the shapefile. BTW, it is an empty one but it should > be successfully able to open empty shapefiles as well. We've tried it > with both empty and un-empty ones and get the same results: it opens > find in AV 3.2 but errors out in AV 8.1 > > Janet. > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > >>> "Ed McNierney" 10/04/01 12:38pm >>> > Janet - > > I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). > Perhaps it's more likely that you're creating a slightly out-of-spec > shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. > > There's a tool called shpfix in the GDAL distribution that might > possibly help clean up the file. If you'd like to email me the > shapefile I'll take a look at it. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 2:17 PM > To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu > Subject: [mapserver-users] Shapefiles - different formats? > > Sort of off topic, but thought I'd ask anyways in case anyone knows. I > have written a perl/mapscript to create a shapefile. I can view the > shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI > ArcView 8.1, I get an error. Is anyone out there aware of any > differences between shapefile formats between different products? > > Janet. > > > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > -------------------------------------------------------------------------------- > Name: shapev8.dbf > shapev8.dbf Type: unspecified type (application/octet-stream) > Encoding: base64 > Description: dBase 3 database > > shapev8.prjName: shapev8.prj > Type: Plain Text (text/plain) > > Name: shapev8.shp > shapev8.shp Type: ESRI Shapefile (application/x-unknown-content-type-shpfile) > Encoding: base64 > > Name: shapev8.shx > shapev8.shx Type: unspecified type (application/octet-stream) > Encoding: base64 From ed at topozone.com Fri Oct 5 09:58:46 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 5 Oct 2001 12:58:46 -0400 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: <13858AA1A74F30419F319ACB66A9D122D338@mercator.topozone.com> Janet et al. - Janet seems to have found the problem. It appears that ArcGIS 8.1 *requires* a .prj file (which describes the shapefile's projection, not an ArcView project), which (all else being equal) is a pretty good thing. ArcView 3.2 does not require .prj files. PRJ files are simple text files that probably look familiar to PROJ users - here's the contents of a simple one. proj=utm zone=15 units=m ellps=GRS80 - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: imap at chesapeake.net [mailto:imap at chesapeake.net] Sent: Friday, October 05, 2001 12:54 PM To: mapserver-users at lists.gis.umn.edu Cc: Janet Ciavarelli; Ed McNierney Subject: Re: [mapserver-users] Shapefiles - different formats? ArcView will read the 3 files just fine. You have to create or Open a New Project, then Add Layer, then browse to the dir where your shapefiles are, then pick one. A somewhat related comment, There are actually a other files that sometimes accompany a shapefile. .shp, .shx, .dbf (main 3 files) .sbn, .ixs, .mxs (??? mystery files) .prj, .apr (project files I think) I think the .ixs and .mxs are geocoding indexes and .sbn??? who knows. I'd really like to know the layout of these other files. I am not sure if they come from ArcInfo, or what? I see a few 3rd party companies create these files within their ArcView Format, but it may be a proprietary aspect of Arc??? If anyone has info, please reply an email. Anyway, The .apr(.prj?) are in ascii and is a long list of name/value pairs, so a script should be able to generate/manipulate OK. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Janet Ciavarelli wrote: > > Hi Ed, > I see what the difference is now. I went into ArcCatalog and created an empty shapefile, and I looked in explorer. It creates 4 files! Not just the 3 files that it used to use (.shp, .shx, .dbf). > > I've attached all the four files. So that explains why ArcView 3.2 can open the file though. Cause it finds the 3 files and just ignores the 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will have to find out what's in it and get my script to create that as well. Also, maybe that utility you advised me to grab will create it. I will check when I get time which my be a long time from now. > > Thanx for your help. Janet. > > >>> "Ed McNierney" 10/04/01 05:49pm >>> > Janet - > > Can you create an empty point shapefile in 8.1 and send that to me, too? > I don't have 8.1, but I can take a look at the shapefile to see if > there's anything different. > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:11 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Yes, same symptom even with records added. > > >>> "Ed McNierney" 10/04/01 01:10pm >>> > Janet - > > Do you get the same symptom when you add records to the shapefile? > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:03 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Hi Ed, > Here's a copy of the shapefile. BTW, it is an empty one but it should > be successfully able to open empty shapefiles as well. We've tried it > with both empty and un-empty ones and get the same results: it opens > find in AV 3.2 but errors out in AV 8.1 > > Janet. > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > >>> "Ed McNierney" 10/04/01 12:38pm >>> > Janet - > > I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). > Perhaps it's more likely that you're creating a slightly out-of-spec > shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. > > There's a tool called shpfix in the GDAL distribution that might > possibly help clean up the file. If you'd like to email me the > shapefile I'll take a look at it. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 2:17 PM > To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu > Subject: [mapserver-users] Shapefiles - different formats? > > Sort of off topic, but thought I'd ask anyways in case anyone knows. I > have written a perl/mapscript to create a shapefile. I can view the > shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI > ArcView 8.1, I get an error. Is anyone out there aware of any > differences between shapefile formats between different products? > > Janet. > > > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > ------------------------------------------------------------------------ -------- > Name: shapev8.dbf > shapev8.dbf Type: unspecified type (application/octet-stream) > Encoding: base64 > Description: dBase 3 database > > shapev8.prjName: shapev8.prj > Type: Plain Text (text/plain) > > Name: shapev8.shp > shapev8.shp Type: ESRI Shapefile (application/x-unknown-content-type-shpfile) > Encoding: base64 > > Name: shapev8.shx > shapev8.shx Type: unspecified type (application/octet-stream) > Encoding: base64 From pramsey at refractions.net Fri Oct 5 10:50:40 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 05 Oct 2001 10:50:40 -0700 Subject: [mapserver-users] Perl/Mapscript Summary Message-ID: <3BBDF2F0.34EE9A4A@refractions.net> If you are having trouble with Perl/Mapscript (as I was) here is the summary of things you will need to know: - To build it from the CVS tree, you need to first copy the mapscript.i file into the perl directory. Then use the 'swig' program thusly: 'swig -shadow -perl5 mapscript.i'. Ignore the warnings. This will generate the mapscript_wrap.c file. Then do the usual perl compilation: perl Makfile.PL ; make ; make install - Note that you *cannot* use the 1.3.x recent development versions of SWIG to do this, or you will get funny results later on. Use the "stable" version, 'SWIG Version 1.1 (Build 883)' Follow the directions above and all will be sweetness and light. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From lfilak at yahoo.com Fri Oct 5 13:32:55 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Fri, 5 Oct 2001 13:32:55 -0700 (PDT) Subject: [mapserver-users] Invitation to proofread Message-ID: <20011005203255.40268.qmail@web11301.mail.yahoo.com> Hello all; If someone has time and would like to take a look over a presentation I am presenting to a local GIS users group on the 10th, please direct your browser to http://www.highwayengineer.co.medina.oh.us/ms_presentation/ . Please let me know if you find any inaccurate data. I apologize for the transparent PNG's. They only appear transparent in Mozilla & Netscape 6. Thank you. Lowell Filak M.C.H.E. __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 From sutton_t at giug.net Fri Oct 5 14:50:29 2001 From: sutton_t at giug.net (Tim Sutton) Date: Fri, 5 Oct 2001 22:50:29 +0100 (BST) Subject: [mapserver-users] Perl/Mapscript Summary In-Reply-To: <3BBDF2F0.34EE9A4A@refractions.net> Message-ID: Do I need to do something similar for compiling php_mapscript from cvs? Thanks Tim On Fri, 5 Oct 2001, Paul Ramsey wrote: > > If you are having trouble with Perl/Mapscript (as I was) here is the > summary of things you will need to know: > > - To build it from the CVS tree, you need to first copy the > mapscript.i file into the perl directory. Then use the 'swig' > program thusly: 'swig -shadow -perl5 mapscript.i'. Ignore the > warnings. This will generate the mapscript_wrap.c file. Then do > the usual perl compilation: perl Makfile.PL ; make ; make install > > - Note that you *cannot* use the 1.3.x recent development versions > of SWIG to do this, or you will get funny results later on. > Use the "stable" version, 'SWIG Version 1.1 (Build 883)' > > Follow the directions above and all will be sweetness and light. > > From imap at chesapeake.net Sat Oct 6 04:28:10 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Sat, 06 Oct 2001 07:28:10 -0400 Subject: [mapserver-users] 3.5 problem with configure/freetype Message-ID: <3BBEEACA.624FC752@chesapeake.net> In 3.5, when I specify --with-freetype=[DIR], configure finds the libs/header OK but is not putting any defines in the CFLAGS -DUSE_TTF, or maybe that has changed but anyway, it builds without freetype. gdft still in the dist, but is not being compiled either (no Makefile). Should configure be handling this ( #if defined (USE_GD_TTF) || defined (USE_GD_FT) occurs all thru the code, but I dont see anything in the Makefile or configure options for gdft. Thanks, Chris From Rich at GreenwoodMap.com Sat Oct 6 09:01:09 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Sat, 06 Oct 2001 10:01:09 -0600 Subject: [mapserver-users] SUM: Template URL Message-ID: <5.1.0.14.0.20011006095706.00b04218@mail.GreenwoodMap.com> I flailed around with template URLs this week and finally got it straight in my mind (and working in my application), so I thought I'd document it for the list archive. If I was smart enough to setup DocBook, I'd contribute this to the documentation project, but that will have to wait for another day. Thanks to Ed McNierney and Stephen Lime for helping me out so much. A TEMPLATE can be either a File or a URL. MapServer examines a template definition, decides whether you have specified a File or a URL, and responds accordingly. For example; "Display_Results.html" looks like a file and so will be processed as a file, but "http://www.some_domain.com/Index.html" looks like a URL and so will be processed as a URL, which is quite a bit different than how a File is processed. If MapServer decides that it has a file template, it goes through the file and replaces stuff within [] with appropriate data. If the template is a URL, however, MapServer redirects to that URL. The URL might be on the same server, or another server. Although MapServer can not process the file pointed to by a URL, it does process the URL string itself. For example: http://www.tetonwyo.org/clerk/query/default.asp?pidn=[PIDN] MapServer will replace [PIDN] with an appropriate value before redirecting to the new location. Note also that you can go to an Active Server Page, or other not-purely HTML type location. (To me, this is really sweet, because it allows you to easily mix CGI MapServer with other web technologies.) Okay, so you read this far and I still haven't told you anything that you didn't already know, but here's what had me flailing. A template can only reference a URL in a SINGLE query mode. So if you are in a MULTIPLE query mode, e.g. nquery, MapServer only attempts to processes the template as a file. Not a good thing if you specified a URL, but still entirely logical. A URL is intrinsically a single thing, and you can't simultaneously redirect a browser to multiple locations. In other words, MapServer assumes that if your query could potentially return more than one result, that you would have specified a File for the template, not a URL. So that's the most interesting thing I learned this week. Happy mapping, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Mon Oct 8 07:50:05 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 8 Oct 2001 09:50:05 -0500 (CDT) Subject: [mapserver-users] ms_newLayerObj (fwd) Message-ID: <200110081450.JAA14413@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: ?yvind Idland To: Subject: ms_newLayerObj Date: Mon, 8 Oct 2001 16:18:32 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id JAA14289 Hello I am currently testing Mapscript 3.4 with php 4.05, running as cgi under IIS. Since I want to use points/objects from a database (via odbc), i want to create layers on the fly. For some reason, the layer refuses to draw. I used following lines: $map = ms_newMapObj("C:\inetpub\wwwroot\oi\oi.map"); $newlay = ms_newLayerObj($map); $newlay->set("name", "db_layer"); $newlay->type = MS_LAYER_POINT; $newlay->status = MS_ON; $newclass = ms_newClassObj($newlay); $newclass->outlinecolor = 0; $newclass->symbol = 3; $newclass->size = 10; and then the nessesary database / point adding stuff. (This works fine if I define the layer in the .map file) There are already 2 other layers on the map, so this is the 3rd layer. $map->numlayers returns 2, (there should be 3 ?) and $newlay->index returns 1. Is this a bug ? :) Anyway, thanks for a powerful tool. Oyvind Idland, Powel Gemini A/S mailto:oyvind.idland at powelgemini.no ------------- End Forwarded Message ------------- From morissette at dmsolutions.ca Mon Oct 8 07:54:34 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 08 Oct 2001 10:54:34 -0400 Subject: [mapserver-users] 3.5 problem with configure/freetype References: <3BBEEACA.624FC752@chesapeake.net> Message-ID: <3BC1BE2A.63AC00F6@dmsolutions.ca> imap at chesapeake.net wrote: > > In 3.5, when I specify --with-freetype=[DIR], configure finds the libs/header > OK but is not putting any defines in the CFLAGS -DUSE_TTF, or maybe that has > changed but anyway, it builds without freetype. gdft still in the dist, but > is not being compiled either (no Makefile). > Things have changed with respect to freetype in version 3.5: the gdft stuff is not used any more, instead, MapServer uses the freetype support that is built into GD. This means that to enable freetype you have to compile with a GD that includes freetype support. The --with-freetype configure switch is there only to pass to configure the location of the freetype lib that was used to compile GD (if it's not in the default libpath). Hope that helps, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Mon Oct 8 08:05:26 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 08 Oct 2001 11:05:26 -0400 Subject: [mapserver-users] Perl/Mapscript Summary References: Message-ID: <3BC1C0B6.5EBCB17B@dmsolutions.ca> Tim Sutton wrote: > > Do I need to do something similar for compiling php_mapscript from cvs? > No... on most systems, compiling php_mapscript.so is just a matter of passing the --with-php=DIR configure switch and typing make. I guess you must be referring to the error that you posted a few days ago: Tim Sutton wrote: > > make[1]: Entering directory `/usr/local/src/mapserver/mapscript/php3' > gcc -O2 -march=i386 -mcpu=i686 -fno-strict-aliasing -I. -I.. -fPIC -O2 > -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_EPPL -DUSE_TIFF -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_TTF -DUSE_JPEG > -I/usr/local/src/mapserver > -I/usr/include -I/usr/local/src/mapserver/../php-4.0.6 > -I/usr/local/src/mapserver/../php-4.0.6/dl > -I/usr/local/src/mapserver/../php-4.0.6/main > -I/usr/local/src/mapserver/../php-4.0.6/Zend > -I/usr/local/src/mapserver/../php-4.0.6/include > -I/usr/local/src/mapserver/../php-4.0.6/TSRM -I -c -o > php_mapscript_util.o php_mapscript_util.c > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o: In function > `_start': > /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../crt1.o(.text+0x18): > undefined reference to `main' ... I don't understand why you get this. At this point the compiler should only build .o files (because of the -c compiler option), but the errors seem to suggest that it's trying to link an executable. Perhaps you can try to remove options from the "CC=" line in mapscript/php3/Makefile until it you get it to work. Try removing the following: "-march=i386 -mcpu=i686 -fno-strict-aliasing" from the CC= line in the Makefile and see if that changes anything. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Michael.Dreesmann at LVERMAP.brandenburg.de Mon Oct 8 08:06:30 2001 From: Michael.Dreesmann at LVERMAP.brandenburg.de (Dreesmann, Michael) Date: Mon, 8 Oct 2001 17:06:30 +0200 Subject: [mapserver-users]line-width Message-ID: <47E1D354A19DD311BA2600105A4234F40139CADD@ntsv3.lvap.kvv-bb.de> Hi, can anybody tell me, how to realize a line with 3px width for mapserver 3.4 with SYMBOLSET, and can I use it with MapScript/PHP on W2K. Thanks for a little example (line.sym and Mapfile integration). Regards Michael ---------------------------------------------------------------------------- ---- Landesvermessungsamt Brandenburg, Technische Stellen ALB/ALK E-Mail : Michael.Dreesmann at LVermAP.brandenburg.de Telefon: (0331) 88 44-505 Telefax: (0331) 88 44-126 Post : 14473 Potsdam, Heinrich-Mann-Allee 103 From kafka at email.cz Mon Oct 8 10:37:55 2001 From: kafka at email.cz (=?windows-1250?B?inTscOFuIEthZmth?=) Date: Mon, 8 Oct 2001 19:37:55 +0200 Subject: [mapserver-users] legend crashes Message-ID: <000301c1501f$f67278f0$0100a8c0@HSGIS> Hello all, one of my project crashes probably on special combination of symbols. The system error message reveals: "Instruction at 0x004483e6 reffered on memory at 0x746e3b00. The memory cannot be read." I use mapserver 3.4 on win32 and on Linux RH 6.2. The error reveals on both systems. It reveals during legend creating. I have attached the project adapted only for legend creation to this mail (usable only with MODE=MAP). There are two layers in it. If one of them is switched on, it goes well, but with both it crashes. Maybe mistake in symbol file or anywhere else? Can anybody help me? Thank you very much Stepan Kafka -------------- next part -------------- A non-text attachment was scrubbed... Name: err.map Type: application/octet-stream Size: 1498 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: symbol34.sym Type: application/octet-stream Size: 1833 bytes Desc: not available URL: From sdlime at mninter.net Mon Oct 8 11:29:20 2001 From: sdlime at mninter.net (Stephen Lime) Date: Mon, 08 Oct 2001 13:29:20 -0500 Subject: [mapserver-users]line-width References: <47E1D354A19DD311BA2600105A4234F40139CADD@ntsv3.lvap.kvv-bb.de> Message-ID: <3BC1F080.51C53188@mninter.net> SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED END CLASS SYMBOL 'circle' SIZE 3 END "Dreesmann, Michael" wrote: > Hi, > > can anybody tell me, how to realize a line with 3px width for mapserver 3.4 > with SYMBOLSET, > and can I use it with MapScript/PHP on W2K. > > Thanks for a little example (line.sym and Mapfile integration). > > Regards > Michael > > ---------------------------------------------------------------------------- > ---- > Landesvermessungsamt Brandenburg, Technische Stellen ALB/ALK > E-Mail : Michael.Dreesmann at LVermAP.brandenburg.de > Telefon: (0331) 88 44-505 > Telefax: (0331) 88 44-126 > Post : 14473 Potsdam, Heinrich-Mann-Allee 103 From morissette at dmsolutions.ca Mon Oct 8 12:06:13 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 08 Oct 2001 15:06:13 -0400 Subject: [mapserver-users] legend crashes References: <000301c1501f$f67278f0$0100a8c0@HSGIS> Message-ID: <3BC1F925.1062A13B@dmsolutions.ca> ?t?p?n Kafka wrote: > > I use mapserver 3.4 on win32 and on Linux RH 6.2. The error > reveals on both > systems. It reveals during legend creating. I have attached the project > adapted only for legend creation to this mail (usable only with MODE=MAP). > There are two layers in it. If one of them is switched on, it > goes well, but > with both it crashes. Maybe mistake in symbol file or anywhere else? Can > anybody help me? Stepan, This was a bug in the MapServer source. I fixed it in the 3.5 source in CVS. You'll have to upgrade to 3.5, or apply the patch manually to your 3.4 installation. You can get a diff of this fix from CVS using: cvs diff -u -r 1.27 -r 1.28 mapsymbol.c -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From imap at chesapeake.net Mon Oct 8 12:46:01 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Mon, 08 Oct 2001 15:46:01 -0400 Subject: [mapserver-users] 3.5 Mapfile LAYER TEMPLATE References: <000301c1501f$f67278f0$0100a8c0@HSGIS> <3BC1F925.1062A13B@dmsolutions.ca> Message-ID: <3BC20279.8691FE29@chesapeake.net> With 3.5 mapscript, is TEMPLATE dummy still valid? I am trying to set up a QUERY layer. LAYER NAME county TYPE LINE STATUS ON DATA "dtl_cnty" TEMPLATE dummy END Getting this error: Mon Oct 8 15:35:25 2001 - loadLayer(): Unknown identifier. (TEMPLATE):(13) Pre 3.5 LAYER definition looked like: LAYER NAME county TYPE QUERYONLY STATUS ON DATA "dtl_cnty" QUERY TEMPLATE dummy END END Thanks, -Chris From sutton_t at giug.net Tue Oct 9 00:16:52 2001 From: sutton_t at giug.net (Tim Sutton) Date: Tue, 9 Oct 2001 08:16:52 +0100 (BST) Subject: [mapserver-users] Getting dynamically created layers to display using PHP Message-ID: Hi I cant figure out why my dynamically created layers don't appear when the map is rendered. I have one layer defined in my map file (why renders fine) and I am trying to add another dynamically. The debug stuff shows the layer is created as numlayers goes from 1 to 2 and the status debug shows 1. Also, the new layer does not appear in the legend?? Any help will be greatly appreciated. Tim (php code snippet follows) $gpoMap = ms_newMapObj("uk.map"); printf("0: Numlayers : %d\n
\n",$gpoMap->numlayers); //create a layer on programmatically $myLayer = ms_newLayerObj($gpoMap); $myLayer->set("name", "UK"); $myLayer->set("type", MS_LAYER_POLY); $myLayer->set("status", MS_ON); $myLayer->set("data","ponet"); $myLayer->setMetaData("DESCRIPTION", "UK Boundaries"); $newclass = ms_newClassObj($myLayer); $newclass->set("outlinecolor",0); printf("1: Numlayers : %d\n
\n",$gpoMap->numlayers); printf("Status %s", %$myLayer->status); $img = $gpoMap->draw(); $myLayer->draw($img); From gispmpf at zipmail.com.br Tue Oct 9 06:08:21 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Tue, 9 Oct 2001 10:08:21 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?symbol=200?= Message-ID: <3BBF426900004712@www.zipmail.com.br> Hello, I have defined the following layer: LAYER CONNECTIONTYPE postgis NAME 'Roads' CONNECTION "user=postgres dbname=teste host=localhost" DATA "linha from teste" STATUS ON TYPE LINE CLASS EXPRESSION (id=1) COLOR 255 22 22 SYMBOL 0 SIZE 2 END CLASS EXPRESSION (id=1) COLOR 205 92 82 END END and returned this error: LoadLayer(): Unknown identifier. (SYMBOL):(93) 1)Can i use symbol 0 like i wrote above? 2)is the symbol 0 a default symbol or it must to be especified in the symbol file? Thanks Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From lgfausak at august.net Tue Oct 9 06:19:33 2001 From: lgfausak at august.net (Greg Fausak) Date: Tue, 9 Oct 2001 08:19:33 -0500 (CDT) Subject: [mapserver-users] String manipulation before label display???? Message-ID: I'm using 3.5 mapscript php... I've downloaded the road dataset from nationalatlas.gov. It has the road names listed like: 'Interstate Route 35, US Route 77' 'Interstate Route 30' 'Interstate Route 45' I'd like to run a little manipulation on the strings before the fit and display are run on the map. That is, something like: NAME =~ s/^Interstate Route //; NAME =~ s/,.*//; which would cause the about list to now be: '35' '30' '45' These numbers will fit on the interstate symbol... Is there any way to do this? Something similar to the EXPRESSION keyword. Thanks, ---greg Greg Fausak August.Net Services, LLC lgfausak at august.net From yteng at reisys.com Tue Oct 9 06:31:37 2001 From: yteng at reisys.com (Ying Teng) Date: Tue, 9 Oct 2001 09:31:37 -0400 Subject: [mapserver-users] ArcIMS and MapXtreme comparison Message-ID: <000001c150c6$b95e5b80$5301010a@DFVGYF01> Hi All, I am wondering what are the differences between ArcIMS and MapXtreme Java Edition. What can and can not each do? Please help me sort it out cause we are deciding which product to buy. Our goal is to let the user enter address or zip code on the web, and we show the the map of that area and our data highlights in that area. Thanks. Ying From sutton_t at giug.net Tue Oct 9 08:54:22 2001 From: sutton_t at giug.net (Tim Sutton) Date: Tue, 9 Oct 2001 16:54:22 +0100 (BST) Subject: [mapserver-users] ArcIMS and MapXtreme comparison In-Reply-To: <000001c150c6$b95e5b80$5301010a@DFVGYF01> Message-ID: Hi Why don't you use mapserver for this...it won't cost you anything....I thnink there are some examples in the map gallery that demonstrate functionality similar to what you require. Tim On Tue, 9 Oct 2001, Ying Teng wrote: > Hi All, > > I am wondering what are the differences between ArcIMS and MapXtreme Java > Edition. What can and can not each do? Please help me sort it out cause we > are deciding which product to buy. Our goal is to let the user enter address > or zip code on the web, and we show the the map of that area and our data > highlights in that area. > > Thanks. > > Ying > From mckenna at dmsolutions.ca Tue Oct 9 10:23:57 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Tue, 09 Oct 2001 13:23:57 -0400 Subject: [mapserver-users] String manipulation before label display???? References: Message-ID: <3BC332AD.DF2C2952@dmsolutions.ca> Greg Fausak wrote: > > I'm using 3.5 mapscript php... > > I've downloaded the road dataset from nationalatlas.gov. > It has the road names listed like: > > 'Interstate Route 35, US Route 77' > 'Interstate Route 30' > 'Interstate Route 45' > > I'd like to run a little manipulation on the > strings before the fit and display are run on > the map. That is, something like: > > NAME =~ s/^Interstate Route //; > NAME =~ s/,.*//; > > which would cause the about list to now be: > '35' > '30' > '45' > > These numbers will fit on the interstate symbol... > Is there any way to do this? Something similar to the > EXPRESSION keyword. > > Thanks, > > ---greg > Greg Fausak > August.Net Services, LLC > lgfausak at august.net Greg, I'm not sure about the MapServer aspect of your question, but what I would do is do some preproccessing of the data first (to extract the highway number string). For example, with ArcView I would: - make a new field named 'hwynum' - using the Field Calculator set hwynum = hwy.extract(2) (hwy being the field with the full string names of the highways) - then set hwynum = hwynum.substitute(",", "") This would make a new field containing just your highway numbers. Jeff -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From teb at mallit.fr.umn.edu Tue Oct 9 14:59:23 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 9 Oct 2001 16:59:23 -0500 (CDT) Subject: [mapserver-users] Regex and lbjpeg (FWD) Message-ID: <200110092159.QAA15461@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Originating-IP: [12.64.206.9] From: "Nathan Holbrook" To: mapserver-info at lists.gis.umn.edu Subject: Regex and lbjpeg Date: Tue, 09 Oct 2001 15:27:28 -0600 Mime-Version: 1.0 X-OriginalArrivalTime: 09 Oct 2001 21:27:29.0253 (UTC) FILETIME=[32D61150:01C15109] I am trying to build the mapserver pplication and am having trouble building 2 components for NT. I can't get the regex-0.12 to compile on NT and I can't get libjpeg-6b to work on NT either it keeps saying that it can't find libjpeg.lib. If anyone knows how to compile regex-0.12 or libjpeg-6b to compile or make on NT could you please email me back. Thanks in advance Nathan _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp ------------- End Forwarded Message ------------- From JohnHockaday at auslig.gov.au Tue Oct 9 16:23:49 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Wed, 10 Oct 2001 09:23:49 +1000 Subject: [mapserver-users] Global Map Data a new mapserver interface. Message-ID: <53273E187450D311ACF6009027927B12022C0FB9@smtpgate.auslig.gov.au> Hi all, The Australian Surveying Land Information Group (AUSLIG) have made the Australian Global Map data available to the public as part of the international Global Mapping Project. The data is viewable via a simple mapserver interface. The URL to access this interface is: http://www.auslig.gov.au/mapserver/globalmap_init.htm There are also links to download the data and to the metadata. AUSLG does not have the resources to test this interface using every browser on every platform. Could you please have a look at this interface and if you find problems, report them to Megan meganwatson at auslig.gov.au or me johnhockaday at auslig.gov.au . Please provide the browser, its version number and details of the problem in your email. Thank you very much in advance for you help. John Hockaday From sdlime at mninter.net Tue Oct 9 17:39:06 2001 From: sdlime at mninter.net (Stephen Lime) Date: Tue, 09 Oct 2001 19:39:06 -0500 Subject: [mapserver-users] symbol 0 References: <3BBF426900004712@www.zipmail.com.br> Message-ID: <3BC398AA.FD888A67@mninter.net> 'SYMBOL 0' is not illegal. There's likely a problem else where in the mapfile. Because the error is being reported from loadLayer it's not processing the file correctly. Look for missing ENDs. (Note: your expressions won't work) Steve gispmpf at zipmail.com.br wrote: > Hello, > I have defined the following layer: > LAYER > CONNECTIONTYPE postgis > NAME 'Roads' > CONNECTION "user=postgres dbname=teste host=localhost" > DATA "linha from teste" > STATUS ON > TYPE LINE > CLASS > EXPRESSION (id=1) > COLOR 255 22 22 > SYMBOL 0 > SIZE 2 > END > CLASS > EXPRESSION (id=1) > COLOR 205 92 82 > END > END > and returned this error: > LoadLayer(): Unknown identifier. (SYMBOL):(93) > 1)Can i use symbol 0 like i wrote above? > 2)is the symbol 0 a default symbol or it must to be especified in the symbol > file? > > Thanks > Jo?o. > > ___________________________________________________________ > > http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From j1mmm at hotmail.com Tue Oct 9 22:20:14 2001 From: j1mmm at hotmail.com (j1mmm) Date: Wed, 10 Oct 2001 12:20:14 +0700 Subject: [mapserver-users] RE: Compiling MS on Win32+SDE Message-ID: HI Steve and Lists, i got similar problem like Egon Kuster. i finished to compile MS35+SDE on NT but when i try SDE support, i got following error. now this problem in WIN are in progress or not. Do you have the way to solve my problem?? . i 'm not sure i configured mapfile for connection SDE correct or not so it 's attached. Regards and Thank j1mmm j1mmm at hotmail.com ------window pop up-------- mapserv.exe - Application Error The Exception Illegal Instruction An attempt was made to execute an illegal instruction. (0xc000001d) occurred in the application at location 0x009855a0. ------------------------------------ LAYER NAME "ProvincesOutline" TYPE line STATUS DEFAULT CONNECTIONTYPE sde CONNECTION "trang,esri_sde,oie,sde,password" DATA "OIE.SDE.PROVINCES,shapeID" CLASS Name "Provinces" COLOR 1 1 1 TEMPLATE "queryProvince.html" END END ===================================================== RE: Compiling MS on Win32+SDE -------------------------------------------------------------------------------- a.. To: "'Eduin Yesid Carrillo'" , mapserver-users at lists.gis.umn.edu b.. Subject: RE: Compiling MS on Win32+SDE c.. From: "Kuster, Egon" d.. Date: Fri, 23 Feb 2001 08:59:59 +1030 -------------------------------------------------------------------------------- Yeah I have been able to compile mapserver with SDE support in win32 but there are other problems after you have the program compiled and running. When you try and use a normal shapefile the compiled program works fine but as soon as you try and use the SDE support you get the following error: The instruction at "0x00423d96" reference memory at "0x00000004". The memory could not be "read" I currently have Stephen Lime who is working for University of Minnesota to look into this problem, if you would like more information drop stephen a line on steve.lime at dnr.state.mn.us So here is where I stand, yes I can get it to compile and run on win32 but when you use the SDE support a memory error is produced. Sorry but that is where it is at the moment. Egon Kuster Defence Science & Technology Organisation Information Technology Division Phone: +61 8 8259 5175 Fax: +61 8 8259 5619 -----Original Message----- From: Eduin Yesid Carrillo [mailto:yecarrillo at hotmail.com] Sent: Thursday, 22 February 2001 11:46 AM To: mapserver-users at lists.gis.umn.edu Subject: Compiling MS on Win32+SDE This question was posted before without concrete answers: I am trying to compile mapserver in my win32 pc with sde support without success. Somewhere in the source, I find the need of this client libraries: Include files: sdetype.h and sdeerno.h in -------- $SDE_DIR/arcsde/coverages/include/sdetype.h $SDE_DIR/include/sdetype.h $SDE_DIR/sdetype.h -------- Client libs: libsde30.a (sde 3.0) or libsde80.a (arcSDE 8) in -------- $SDE_DIR/lib/libsde80.a $SDE_DIR/libsde80.a ------- I have the client cds for: sde 3.0.2 sde 3.0.2.1 sde 3.0.2.2 arcsde 8.0 for Oracle 8i Installing this clients I found this common structure: sdeexe30(or ora8iexe) | |-------bin | |-------include | |-----sdeerno.h | |-----sdetype.h | |-------lib | |-----sde30.lib (or sde80.lib) The questions... Is sde30.lib (or sde80.lib)equivalent to libsde30.a (or libsde80.a) for compile? Somebody in the list have compiled MS with SDE enabled for Win32? ---------------------------- Eduin Yesid Carrillo Ingeniero Civil yecarrillo at hotmail.com #ICQ 14323531 -------------- next part -------------- An HTML attachment was scrubbed... URL: From AnneR at walis.wa.gov.au Tue Oct 9 22:27:26 2001 From: AnneR at walis.wa.gov.au (Anne Robertson) Date: Wed, 10 Oct 2001 00:27:26 -0500 (CDT) Subject: [mapserver-users] Date: Wed, 10 Oct 2001 13:26:15 +0800 Message-ID: <408095945CADD411978B00902741ABFF14F741@ilippc08.dola.wa.gov.au> auth 419e0e1b subscribe mapserver-users AnneR at walis.wa.gov.au From flavio at tydac.ch Wed Oct 10 00:19:14 2001 From: flavio at tydac.ch (Flavio Hendry) Date: Wed, 10 Oct 2001 08:19:14 +0100 Subject: [mapserver-users] Re: ArcIMS and MapXtreme comparison Message-ID: <200110100819140932.051F6A6E@gw-tydac.thenet.ch> Hi Ying We developed our product Neapoljs for MapXtreme, ArcIMS and MapServer - I'll add MapServer to the answer as it is worth thinking about it ... see www.mapserver.ch for examples with all three platforms - i.e. under "References" : MapXtreme (NT): + very fast even with very large datasets + "adult" version, most bugs gone ... means it's very stable + compatible with MapInfo, easy to create Geosets from Workspaces + cartographic capabilities "OK" + quite flexible, lots of functions + scalability - quite difficult to create sites without deep knowledge (version 3.0 should be better ?) - missing SQL query capabilities - timeout issues with HahtSite - poor documentation - "Xtremely" expensive ArcIMS: + easy to create "standard sites" from scratch (similar to frontpage) + less expensive then MapXtreme + SQL-queries and analysis capabilites + good documentation - "young version", still quite "buggy" - slow with large datasets (execpt you use SDE = expensive) - data security as you can grab the data when using the servlet connector (however great in an Intranet) - currently very poor cartographic capabilities - nasty to create AXL files ("geosets"), very poor editor -> ASCII editing needed - not compatible with ArcGIS 8.x (can't convert projects to AXL, no support for cartographc capabilities of ArcGIS - should come along in a couple of month according to ESRI) Comment: I think ArcIMS will get there where it should be in around 6 month - I think once it's performing and supporting the capabilities of ArcGIS it's a good option if you are in an ESRI environment. MapServer: + free of charge (Open Source) + best cartographic capabilities of the three + good performance (I think MapXtreme is still better) + supports ESRI Shape (better then ESRI ...) and MapInfo TAB and others + best support and update policy + excellent mail group + running as well on LINUX - "Geosets" have to be created in ASCII (however there are tools out there) - quite complex to develop applications - poor documentation best regards Flavio ******** 10 Years TYDAC Event - Program see www.tydac.ch ******** xxxxxxxxxxxxxxxxxxx ATTENTION: New Address xxxxxxxxxxxxxxxxxxxxx ----------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry- mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ----------------------------------------------------------------- MAPINFO Strategic Partner - PCI Reseller - FME Distributor ESRI ArcGIS Solution Provider ----------------------------------------------------------------- From armin.burger at territoriumonline.com Tue Oct 9 23:51:13 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Wed, 10 Oct 2001 08:51:13 +0200 Subject: [mapserver-users] Identify for raster data? Message-ID: <200110100651.IAA24298@efferd.nettz.com> Hi all, I was wondering if there's the possibility to use identify on raster layer. That is, to click on the map and get back the pixel value. There's the possibility to classify raster data with the [pixel] tag. I tried this including [pixel] instead of the field name of a shapefile in the query template. But I only got back the error msOpenSHPFile(): Unable to access file. (slope_perc.tif) With GDAL I think it should be possible to use Arc/Info grid without converting it to an image but I assume the identify will not work either. Is there another possibility for Identify raster or is it maybe planned in the future? (A workaround to convert the grid to shapefile produced a shape with 2.5 million polygons, but I will see how this works with MapServer) Thanks for any help Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia _ From aglien at tin.it Wed Oct 10 04:56:43 2001 From: aglien at tin.it (Enrico Agliotti) Date: Wed, 10 Oct 2001 13:56:43 +0200 Subject: [mapserver-users] perl mapscript documentation Message-ID: <20011010135643.C767@belfagor> Hello all, I'm totally new to the list and mapserver using. I'm trying to use the mapserver library through mapscript from perl. My problem is that, until now, I have found quite poor documentation about that. Can someone tell me if it's possibile to found more documentation and/or some little programming examples? Many thanks in advance Enrico From Even.Husby at powelgemini.no Wed Oct 10 06:29:32 2001 From: Even.Husby at powelgemini.no (Even Husby) Date: Wed, 10 Oct 2001 15:29:32 +0200 Subject: [mapserver-users] Reading spatial objects from a relational database In-Reply-To: <000301c10572$2a3a50c0$8200a8c0@nichebox1> Message-ID: I would like to integrate a relational database containing geographic objects with Mapserver, and is wondering if this can be done using PHP/Mapscript and ODBC. Can someone help me by providing a sample script or by guiding me towards relevant documentation? regards, Even Husby (Even.Husby at powelgemini.no) -----Opprinnelig melding----- Fra: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]Pa vegne av Rob Martinson Sendt: 5. juli 2001 18:47 Til: 'MapServer List' Emne: [mapserver-users] Building maps without a .map using MapScript only In short, is this possible? With the PHP library I'm using ms_newMapObj('') to return an empty map object to work with. The Mapscript documentation states that this will return an emtpy object, the PHP does not specifically state this, but I get no errors at this line. After adding layers and classes I get an error stating "Invalid Handle" whenever I attempt to call the draw method of the map using the above. The same mapping functionality when I use an existing .map file seem to work fine. Has anyone implemented something similar? Rob Martinson Nichebox - http://www.nichebox.com Development - http://dev.nichebox.com This mail has been scanned for viruses at FastCom as ----------------- From hunt at zedxinc.com Wed Oct 10 07:45:14 2001 From: hunt at zedxinc.com (Aaron Hunt) Date: Wed, 10 Oct 2001 10:45:14 -0400 Subject: [mapserver-users] php mapscript shapefiles Message-ID: <00bf01c1519a$2c24b0a0$1805000a@zedxinc.com> I am trying to dump all the data in a shape file out to a ASCII file. I know I can get a shape object by index, but is there any way to get the number on index's. Thanks for any help Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: From lgfausak at august.net Wed Oct 10 08:14:12 2001 From: lgfausak at august.net (Greg Fausak) Date: Wed, 10 Oct 2001 10:14:12 -0500 (CDT) Subject: [mapserver-users] perl mapscript documentation Message-ID: > >Hello all, >I'm totally new to the list and mapserver using. >I'm trying to use the mapserver library through mapscript from perl. >My problem is that, until now, I have found quite poor documentation about that. >Can someone tell me if it's possibile to found more documentation and/or some little programming examples? > >Many thanks in advance >Enrico > I am also new, I've been using mapserv for a couple of weeks now. I know where you are coming from, but if you stick with it you will see the light :-) I spent about 3 to 4 days coming up to speed with the mapserv stuff. Much of the documentation is just slightly off, probably due to version differences. I ended up searching the mail serve archive for hours to get specific questions answered. Also, the demo map files are invaluable. I started by using the cgi mapserv executable under unix. I thought at the time this would be the quickest start. I would have saved at least a day (maybe 2) if I would have started with the perl or php wrappers. I'm now using the php wrappers...I found the PHP/MapScript README file to be the most valuable documentation for me. Also, the simple examples under the mapscript/php3/examples directory were invaluable. In the end (2 weeks later) I feel that I can get a dataset mapped using the mapserver software and interfaces. This truly is a fantastic piece of work! Several years ago I wrote mapping and projection software for Mobil Oil, I wish this was around then! ---greg Greg Fausak August.Net Services, LLC greg at august.net From pramsey at refractions.net Wed Oct 10 08:39:52 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 10 Oct 2001 08:39:52 -0700 Subject: [mapserver-users] perl mapscript documentation References: <20011010135643.C767@belfagor> Message-ID: <3BC46BC8.8DE50307@refractions.net> Hi Enrico, Unfortunately, the perl mapscript doco is now very very old. Also the perl/python/tcl bindings maintained separately from the php bindings have fallen behind the php bindings in terms of functionality. I have found that, unfortunately, the only decent way to work with the perl bindings is to have the mapscript.i file handy and the map.h file handy to read the object attributes and methods available directly from the source. Mind you, I am working on version 3.5 (CVS) and you might be working with one of the older releases. Perhaps in my copious spare time I will do up perl doco at some point, but in the meantime, "Use the Source, Luke" Enrico Agliotti wrote: > > Hello all, > I'm totally new to the list and mapserver using. > I'm trying to use the mapserver library through mapscript from perl. > My problem is that, until now, I have found quite poor documentation about that. > Can someone tell me if it's possibile to found more documentation and/or some little programming examples? > > Many thanks in advance > Enrico From Matt.Wilkie at gov.yk.ca Wed Oct 10 09:17:23 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 10 Oct 2001 09:17:23 -0700 Subject: [mapserver-users] Re: ArcIMS and MapXtreme comparison Message-ID: <6DD7370C9452D31192A10008C75D07530C6AA913@raptor.gov.yk.ca> Hi Flavio, > + supports ESRI Shape (better then ESRI ...) and MapInfo TAB > and others Would you please elaborate on this point? I'm not being antagonistic, I just want some hard data to show around the office. :) -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From steve.lime at dnr.state.mn.us Wed Oct 10 09:22:59 2001 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 10 Oct 2001 11:22:59 -0500 Subject: [mapserver-users] RE: Compiling MS on Win32+SDE References: Message-ID: <3BC475E3.C2F250A0@dnr.state.mn.us> Unfourtunately I don't have a solution. I have no access to SDE on the windows platform. I hope another lister can step in and help. Do you have access to a Linux or Unix machine? It would be helpful to see if this layer works on non-Windows platforms or not. Steve j1mmm wrote: > HI Steve and Lists, > > i got similar problem like Egon Kuster. i finished to compile MS35+SDE > on NT but when i try SDE support, i got following error. > > now this problem in WIN are in progress or not. Do you have the way to > solve my problem?? . i 'm not sure i configured mapfile for connection > SDE correct or not so it 's attached. > > Regards and Thankj1mmmj1mmm at hotmail.com------window pop > up--------mapserv.exe - Application Error The Exception Illegal > Instruction > An attempt was made to execute an illegal instruction. > (0xc000001d) occurred in the application at location > 0x009855a0.------------------------------------LAYER > NAME "ProvincesOutline" > TYPE line > STATUS DEFAULT > CONNECTIONTYPE sde > CONNECTION "trang,esri_sde,oie,sde,password" > DATA "OIE.SDE.PROVINCES,shapeID" > > CLASS > Name "Provinces" > COLOR 1 1 1 > TEMPLATE "queryProvince.html" > END > END > > ===================================================== > > RE: Compiling MS on Win32+SDE > ----------------------------------------------------------------------- > > * To: "'Eduin Yesid Carrillo'" , > mapserver-users at lists.gis.umn.edu > * Subject: RE: Compiling MS on Win32+SDE > * From: "Kuster, Egon" > * Date: Fri, 23 Feb 2001 08:59:59 +1030 > > ----------------------------------------------------------------------- > > Yeah I have been able to compile mapserver with SDE support in win32 but > there are other problems after you have the program compiled and running. > When you try and use a normal shapefile the compiled program works fine but > as soon as you try and use the SDE support you get the following error: > > The instruction at "0x00423d96" reference memory at "0x00000004". The memory > could not be "read" > > I currently have Stephen Lime who is working for University of Minnesota to > look into this problem, if you would like more information drop stephen a > line on steve.lime at dnr.state.mn.us > > > So here is where I stand, yes I can get it to compile and run on win32 but > when you use the SDE support a memory error is produced. > > Sorry but that is where it is at the moment. > > Egon Kuster > Defence Science & Technology Organisation > Information Technology Division > Phone: +61 8 8259 5175 > Fax: +61 8 8259 5619 > > -----Original Message----- > From: Eduin Yesid Carrillo [mailto:yecarrillo at hotmail.com] > Sent: Thursday, 22 February 2001 11:46 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Compiling MS on Win32+SDE > > > This question was posted before without concrete answers: > > I am trying to compile mapserver in my win32 pc with sde support without > success. > > Somewhere in the source, I find the need of this client libraries: > > Include files: sdetype.h and sdeerno.h in > -------- > $SDE_DIR/arcsde/coverages/include/sdetype.h > $SDE_DIR/include/sdetype.h > $SDE_DIR/sdetype.h > -------- > > Client libs: libsde30.a (sde 3.0) or libsde80.a (arcSDE 8) in > -------- > $SDE_DIR/lib/libsde80.a > $SDE_DIR/libsde80.a > ------- > > I have the client cds for: > sde 3.0.2 > sde 3.0.2.1 > sde 3.0.2.2 > arcsde 8.0 for Oracle 8i > > Installing this clients I found this common structure: > > sdeexe30(or ora8iexe) > | > |-------bin > | > |-------include > | |-----sdeerno.h > | |-----sdetype.h > | > |-------lib > | |-----sde30.lib (or sde80.lib) > > The questions... > Is sde30.lib (or sde80.lib)equivalent to libsde30.a (or libsde80.a) for > compile? > Somebody in the list have compiled MS with SDE enabled for Win32? > > > ---------------------------- > Eduin Yesid Carrillo > Ingeniero Civil > yecarrillo at hotmail.com > #ICQ 14323531 > > From steve.lime at dnr.state.mn.us Wed Oct 10 09:47:35 2001 From: steve.lime at dnr.state.mn.us (Steve Lime) Date: Wed, 10 Oct 2001 11:47:35 -0500 Subject: [mapserver-users] Identify for raster data? References: <200110100651.IAA24298@efferd.nettz.com> Message-ID: <3BC47BA7.BA0714E3@dnr.state.mn.us> We'd simply need a msGetClosestPixel() function for each supported raster type. Perhaps a msGetPixelWindow() would make more sense then a few metrics could be calculated. With that function I could easily roll a result set. Of course we need time to write those functions. (ideas Frank?). Steve Armin Burger wrote: > Hi all, > > I was wondering if there's the possibility to use identify on raster layer. > That is, to click on the map and get back the pixel value. There's the > possibility to classify raster data with the [pixel] tag. I tried this > including [pixel] instead of the field name of a shapefile in the query > template. But I only got back the error > msOpenSHPFile(): Unable to access file. (slope_perc.tif) > With GDAL I think it should be possible to use Arc/Info grid without > converting it to an image but I assume the identify will not work either. > > Is there another possibility for Identify raster or is it maybe planned in > the future? (A workaround to convert the grid to shapefile produced a shape > with 2.5 million polygons, but I will see how this works with MapServer) > > Thanks for any help > > Armin > -- > Armin Burger > Territorium Online > Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia > _ From warmerdam at pobox.com Wed Oct 10 11:07:45 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 10 Oct 2001 14:07:45 -0400 Subject: [mapserver-users] Identify for raster data? References: <200110100651.IAA24298@efferd.nettz.com> <3BC47BA7.BA0714E3@dnr.state.mn.us> Message-ID: <3BC48E71.9000209@pobox.com> Steve Lime wrote: > We'd simply need a msGetClosestPixel() function for each supported > raster type. Perhaps a msGetPixelWindow() would make more sense > then a few metrics could be calculated. With that function I could > easily roll a result set. Of course we need time to write those functions. > (ideas Frank?). Steve, It would be relatively easy to implement this for GDAL but a fair amount of work if you want to have it for all supported formats. I would add, that all the rules for opening files and identifying formats is currently done in msDrawRasterLayer(). If we want to take other actions on raster files, we might want to be able to preserve an open handle to the file through a longer time. If we did want to implement msGetPixelWindow() what would it be passed? A georeferenced location? What should we return for pixels off the database? Do we support arbitrary window sizes? What statistics do you want a local window instead of just one pixel for? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pramsey at refractions.net Wed Oct 10 11:12:42 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 10 Oct 2001 11:12:42 -0700 Subject: [mapserver-users] Mapscript / Projection Question References: <20011010135643.C767@belfagor> <3BC46BC8.8DE50307@refractions.net> Message-ID: <3BC48F9A.F95C9FB9@refractions.net> OK, to start with, I have a map file with a default planar projection. $map->{extent}->{minx} gives me a nice planar value : 167053 I do a $map->setProjection("init=epgs:4269") where EPSG 4269 is a lat/lon projection. $map->{extent}->{minx} *still* gives me a nice planar value : 167053 What precisely does setProjection effect? The output image only? If so, how do I specify an input extent? In the default projection only? I *thought* the correct chain of operations was like this: - Mapserver with default projection P1 - Given desired extent E1 in projection P2 - $map->setProjection(P2) - $map->{extent} = E1 - Given that one wants output in projection P3 - $map->setProjection(P3) - $map->draw() So 1) how to I set the projection the output image will be generated in? 2) how do I specify an image extent, given that I am doing something like 1) ? Thanks, Paul From Regina.Obe.PFD at ci.boston.ma.us Wed Oct 10 11:54:07 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Wed, 10 Oct 2001 14:54:07 -0400 Subject: [mapserver-users] Re: ArcIMS and MapXtreme comparison Message-ID: I have to agree. Plus would like to add - Our GIS group uses Arc IMS (or at least are still trying to get that working well - I'm actually not a mapping person - just a database programmer/IT Support) - so can't make comments as to why they chose that aside from marketing hype and their colleagues use it. I came across mapserver when looking for an alternative to get this project done that was long overdue. Mapserver's speed of loading parcels was just as fast as Arc IMS and in many cases faster (ESRI shape files consisting of 150,000 parcel footprints, 200,000 building footprints) --> zoom in to an address --> in 1 second on a dual 400 Pentium with 1Gig RAM. - I was able to get the project done in one week - from discovering mapserver. Also ArcIMS for the web server piece was a pain to install - first you've got to go out and get/buy a servlet engine and install that on your web server- then you install Arc IMS. then if you run into problems you have to start all over again. At least that's the way it was for us on Windows NT/2000 which is our platform. With mapserver I just had to copy the files in the right location - make some configuration settings on my webserver - no install. Now I'm experimenting with Mapscript/PHP for our more advanced projects. The PHP install on NT/2000 was also a breeze compared to the Arc IMS installs. I haven't experimented with getting SDE working on mapserver (although it does support it) so can't make comments about that - although I'm looking into PostGIS as an alternative to SDE. I also haven't tried loading our existing MapInfo TAB files on Mapserver, but I don't think ArcIMS supports those anyway and we do have a lot of data in MapInfo TAB format that it would be nice to be able to use. -----Original Message----- From: Matt.Wilkie [mailto:Matt.Wilkie at gov.yk.ca] Sent: Wednesday, October 10, 2001 12:17 PM To: mapserver-users at lists. gis. umn. edu (E-mail) Subject: RE: [mapserver-users] Re: ArcIMS and MapXtreme comparison Hi Flavio, > + supports ESRI Shape (better then ESRI ...) and MapInfo TAB > and others Would you please elaborate on this point? I'm not being antagonistic, I just want some hard data to show around the office. :) -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From assefa at dmsolutions.ca Wed Oct 10 13:41:52 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Wed, 10 Oct 2001 16:41:52 -0400 Subject: [mapserver-users] ms_newLayerObj (fwd) References: <200110081450.JAA14413@mallit.fr.umn.edu> Message-ID: <3BC4B290.9E2FB30@dmsolutions.ca> Hi There, I just tested the creation of layers dynamically using php/mapscript and It seems to work fine. From the code bellow I think the only problem in your case is the way you define the colors. You should do soemthing like this : .... $newclass = ms_newClassObj($newlay); $colorId = $map->addColor(0, 0, 255); $newclass->set("outlinecolor", $colorId); ... I am assumoing here that all the seeting of the other parameters (like data, ...) are correct. Hope it helps, Later, teb wrote: > ------------- Begin Forwarded Message ------------- > > From: ?yvind Idland > To: > Subject: ms_newLayerObj > Date: Mon, 8 Oct 2001 16:18:32 +0200 > MIME-Version: 1.0 > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 > Content-Transfer-Encoding: 8bit > X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id JAA14289 > > Hello > > I am currently testing Mapscript 3.4 with php 4.05, running as cgi under IIS. > Since I want to use points/objects from a database (via odbc), i want to create > layers on the fly. For some reason, the layer refuses to draw. > > I used following lines: > > $map = ms_newMapObj("C:\inetpub\wwwroot\oi\oi.map"); > $newlay = ms_newLayerObj($map); > $newlay->set("name", "db_layer"); > $newlay->type = MS_LAYER_POINT; > $newlay->status = MS_ON; > $newclass = ms_newClassObj($newlay); > $newclass->outlinecolor = 0; > $newclass->symbol = 3; > $newclass->size = 10; > > and then the nessesary database / point adding stuff. > (This works fine if I define the layer in the .map file) > There are already 2 other layers on the map, so this is the 3rd layer. > $map->numlayers returns 2, (there should be 3 ?) and $newlay->index returns 1. > > Is this a bug ? :) > > Anyway, thanks for a powerful tool. > > Oyvind Idland, Powel Gemini A/S > mailto:oyvind.idland at powelgemini.no > > ------------- End Forwarded Message ------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- From pramsey at refractions.net Wed Oct 10 16:45:55 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 10 Oct 2001 16:45:55 -0700 Subject: [mapserver-users] AUTO Text Rotation and Projections References: <200110081450.JAA14413@mallit.fr.umn.edu> <3BC4B290.9E2FB30@dmsolutions.ca> Message-ID: <3BC4DDB3.37AED687@refractions.net> The rotation of text carried out when labelling lines with AUTO label rotation seems to be calculated in the native coordinate system of the data rather that in the projected coordinate system. The result is interesting, but not aesthetically pleasing :) From gispmpf at zipmail.com.br Wed Oct 10 20:51:45 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Thu, 11 Oct 2001 00:51:45 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?another=20postgis/mapserver=20question?= Message-ID: <3BBF426900008B08@www.zipmail.com.br> Hello, I have another questio about mapserver/postgis interface... i have adapted the following script for mapserver: LAYER CONNECTIONTYPE postgis NAME 'Roads' CONNECTION "user=postgres dbname=teste host=localhost" DATA "linha from teste" STATUS ON TYPE LINE FILTER "id = 1" CLASS EXPRESSION ([id]=1) COLOR 255 22 22 SYMBOL 0 SIZE 2 END CLASS # All the rest are darker and only 1 pixel wide EXPRESSION ([id]>1) COLOR 205 92 82 END END my intention is to draw the lines of this database in a web browser but i dont have any results with it How can i know if this script is realy conecting with the postgis database? and if it is ... how can i see what is wrong? Thanks Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From flavio at tydac.ch Thu Oct 11 00:22:23 2001 From: flavio at tydac.ch (Flavio Hendry) Date: Thu, 11 Oct 2001 08:22:23 +0100 Subject: [mapserver-users] Re: ArcIMS and MapXtreme comparison In-Reply-To: <6DD7370C9452D31192A10008C75D07530C6AA913@raptor.gov.yk.ca> References: <6DD7370C9452D31192A10008C75D07530C6AA913@raptor.gov.yk.ca> Message-ID: <200110110822230906.000D7114@gw-tydac.thenet.ch> Hi Matt We experience that ArcIMS gets really slow with large Shape files (it's fine if you use SDE = $$$$). MapServer, using "shapetree" is fast even with very large shape files, with ArcIMS / ArcGIS there is no such thing like shapetree as far as I know - ESRI seems not to have a decent indexing for Shape files - and they seem not to be interested as they want to get you on SDE ... If you have SDE, performance should be OK. best regards Flavio *********** REPLY SEPARATOR *********** On 10.10.01 at 09:17 Matt.Wilkie wrote: >Hi Flavio, > >> + supports ESRI Shape (better then ESRI ...) and MapInfo TAB >> and others > >Would you please elaborate on this point? I'm not being antagonistic, >I just want some hard data to show around the office. :) > > >-matt > >----------------------------------------------------------------- >Matt Wilkie * Yukon Renewable Resources GIS >http://renres.gov.yk.ca/pubs/rrgis/ >----------------------------------------------------------------- ******** 10 Years TYDAC Event - Program see www.tydac.ch ******** xxxxxxxxxxxxxxxxxxx ATTENTION: New Address xxxxxxxxxxxxxxxxxxxxx ----------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ Flavio Hendry- mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ----------------------------------------------------------------- MAPINFO Strategic Partner - PCI Reseller - FME Distributor ESRI ArcGIS Solution Provider ----------------------------------------------------------------- From toni at giscampus.udg.es Wed Oct 10 23:26:36 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 11 Oct 2001 08:26:36 +0200 Subject: [mapserver-users] mapserver cgi rotating labels References: <3BC475E3.C2F250A0@dnr.state.mn.us> Message-ID: <00ce01c1521d$add0dc40$0e2fce82@udg.es> Hi every body, I am building a quite good map in the net. I have almost finished it but is still one more step ahead. Is it possible to autorotate and autosize the labels of a line shape with mapserver 3.4 cgi upon Windows Nt 4.0? I made the same question and Stephen told me: "It's not a mapfile issue, the GD library the software was built against didn't have Freetype support. Either rebuild or get a new version..." But I don't understand what it means. What is the GD library? How can I rebuild it? Is this matter solved with version 3.5? Thank you very much (in advance) From sutton_t at giug.net Thu Oct 11 05:42:50 2001 From: sutton_t at giug.net (Tim Sutton) Date: Thu, 11 Oct 2001 13:42:50 +0100 (BST) Subject: [mapserver-users] mapserver cgi rotating labels In-Reply-To: <00ce01c1521d$add0dc40$0e2fce82@udg.es> Message-ID: Hi The 'GD' library is what allows mapserver to make images from your shapefiles. It should be included with your distribution of mapserver. When the GD library is built, you need to compile in freetype support. Freetype is a library that allows GD to manipulate TrueType fonts - including doing stuff like scaling and rotating fonts. I don't know what is involved with compiling under mapserver under NT, but I suggest either using linux, or trying to find a precompiled version of linux for NT that includes GD + Freetype support. hope that helps Tim On Thu, 11 Oct 2001, toni hern?ndez wrote: > Hi every body, > > I am building a quite good map in the net. I have almost finished it but is > still one more step ahead. > > Is it possible to autorotate and autosize the labels of a line shape with > mapserver 3.4 cgi upon Windows Nt 4.0? > I made the same question and Stephen told me: > > "It's not a mapfile issue, the GD library the software was built against > didn't have > Freetype support. Either rebuild or get a new version..." > But I don't understand what it means. What is the GD library? How can I > rebuild it? Is this matter solved with version 3.5? > > Thank you very much (in advance) > > From toni at giscampus.udg.es Thu Oct 11 06:42:45 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 11 Oct 2001 15:42:45 +0200 Subject: [mapserver-users] mapserver cgi rotating labels References: Message-ID: <006201c1525a$9bfb3370$0e2fce82@udg.es> Thank you very much. I have something to begin with ----- Original Message ----- From: Tim Sutton To: toni hern?ndez Cc: Sent: Thursday, October 11, 2001 2:42 PM Subject: Re: [mapserver-users] mapserver cgi rotating labels > Hi > > The 'GD' library is what allows mapserver to make images from your > shapefiles. It should be included with your distribution of mapserver. > When the GD library is built, you need to compile in freetype support. > Freetype is a library that allows GD to manipulate TrueType fonts - > including doing stuff like scaling and rotating fonts. > > I don't know what is involved with compiling under mapserver under NT, > but I suggest either using linux, or trying to find a precompiled > version of linux for NT that includes GD + Freetype support. > > hope that helps > > Tim > > On Thu, 11 Oct 2001, toni hern?ndez wrote: > > > Hi every body, > > > > I am building a quite good map in the net. I have almost finished it but is > > still one more step ahead. > > > > Is it possible to autorotate and autosize the labels of a line shape with > > mapserver 3.4 cgi upon Windows Nt 4.0? > > I made the same question and Stephen told me: > > > > "It's not a mapfile issue, the GD library the software was built against > > didn't have > > Freetype support. Either rebuild or get a new version..." > > But I don't understand what it means. What is the GD library? How can I > > rebuild it? Is this matter solved with version 3.5? > > > > Thank you very much (in advance) > > > > From wasserburger at plan.at Thu Oct 11 07:24:33 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Thu, 11 Oct 2001 16:24:33 +0200 Subject: [mapserver-users] cahnging Mapfile from 3.4 to 3.5 Message-ID: Listers, today I tried to change a existing (and working) MAP-File from 3.4 to 3.5 I got the following Error: msOpenSHPFile(): Unable to access file. No (NULL) filename provided. Does anybody know, what that is meaning. I used the nightly build from 1.10. under NT. Another question: how to build querys after thorwing out the Query ... End section? Gtreetings from Vienna, Austria Wolfgang W. Wasserburger From steve.lime at dnr.state.mn.us Thu Oct 11 07:35:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 11 Oct 2001 09:35:22 -0500 Subject: [mapserver-users] AUTO Text Rotation and Projections Message-ID: The rotation computations are carried out AFTER the feature has been projected, clipped and mapped to image coordinates. These calculations are highly sensitive to your data- garbage in, garbage out. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 10/10/01 06:45PM >>> The rotation of text carried out when labelling lines with AUTO label rotation seems to be calculated in the native coordinate system of the data rather that in the projected coordinate system. The result is interesting, but not aesthetically pleasing :) From steve.lime at dnr.state.mn.us Thu Oct 11 07:42:09 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 11 Oct 2001 09:42:09 -0500 Subject: [mapserver-users] cahnging Mapfile from 3.4 to 3.5 Message-ID: What does the mapfile look like? The error probably stems from a layer with no DATA defined and no inline features that you were using to render features on-the-fly with from MapScript. I'll throw a test in to skip those. The default layer type is a shapefile which is why you see the error. Query parameters (i.e. TEMPLATE) have moved into CLASS objects. You can also define a global TEMPLATE at the layer level. The test suite: http://maps.dnr.state.mn.us/mapserver_demos/tests3.5 shows how this configuration looks. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Wolfgang W. Wasserburger" 10/11/01 09:24AM >>> Listers, today I tried to change a existing (and working) MAP-File from 3.4 to 3.5 I got the following Error: msOpenSHPFile(): Unable to access file. No (NULL) filename provided. Does anybody know, what that is meaning. I used the nightly build from 1.10. under NT. Another question: how to build querys after thorwing out the Query ... End section? Gtreetings from Vienna, Austria Wolfgang W. Wasserburger From kames at keyspanenergy.com Thu Oct 11 07:52:02 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Thu, 11 Oct 2001 10:52:02 -0400 Subject: [mapserver-users] GD for NT Message-ID: <3BC5B212.DDB6B2@keyspanenergy.com> Arrrgghhhh! Can anyone tell me where I can get compiled binaries to upgrade my perl version of GD to one where it has jpeg support? Specifically, my problem is that newFromJpeg() works but newFromJpegData() does NOT work. Any and all assistance greatly appreciated! Kieran From lfilak at yahoo.com Thu Oct 11 07:52:50 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Thu, 11 Oct 2001 07:52:50 -0700 (PDT) Subject: [mapserver-users] Thank you. Message-ID: <20011011145250.29724.qmail@web11303.mail.yahoo.com> I just wanted to say thank you to everyone who helped proofread the presentation I posted, things went very well :-) Lowell Filak __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From lfilak at yahoo.com Thu Oct 11 08:02:54 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Thu, 11 Oct 2001 08:02:54 -0700 (PDT) Subject: [mapserver-users] Fwd: [GRASSLIST:2581] ANNOUNCEMENT: Open source GIS - GRASS users conference 2002, Trento, Italy, 11-13 September 2002 Message-ID: <20011011150254.41839.qmail@web11308.mail.yahoo.com> I didn't see this posted yet and figured if anyone is interested... If we keep saving $$$ using Mapserver maybe one day someone can travel to Italy ;-) Lowell Filak --- Markus Neteler wrote: > Date: Tue, 9 Oct 2001 17:09:57 +0200 > From: Markus Neteler > To: grass5 developers list , > wingrass , > grasslist at baylor.edu, > Freegis-list at intevation.de > CC: grass-de at geog.uni-hannover.de, > grass2002 at ing.unitn.it > Subject: [GRASSLIST:2581] ANNOUNCEMENT: Open source > GIS - GRASS users conference 2002, Trento, Italy, > 11-13 September 2002 > > ANNOUNCEMENT > > Open source GIS - GRASS users conference > 2002 > > Trento, Italy, 11-13 September 2002 > > > http://grass.itc.it/conferences/conf_trento2002.html > > The Open source GIS - GRASS users conference will > take place in Trento, > Italy, 11-13 September 2002. > > This conference is the result of the joint effort of > many GRASS developers > and users all over the world to foster closer > relations and provide > opportunities for greater interactions among the > open GIS and GRASS > communities. > The aim of the conference is twofold: the exchange > of experiences between > Open GIS and GRASS users and developers and the > possibility for the > potential users to access first-hand information and > GRASS capability > demonstration, especially for users from developing > countries. > > The conference is organized by the Department of > Civil and Environmental > Engineering of the University of Trento with the > help of an Organizing > Committee including some of the most prominent > GIS/GRASS experts around the > world. > > This is the first meeting on open source GIS, so it > is difficult to estimate > the number of participants. Pre-registration on the > web site will help the > organization of the meeting to find out in advance > the number of people > interested to attend (before March, 31st 2002). > > Conference fee will be kept as low as possible to > allow everybody to > participate: > > Early registration (until 30 June 2002): 70 > euros > Late registration (after 30 June 2002): 200 > euros > > Conference Web site: > > http://www.ing.unitn.it/~grass/ > > > B.Benciolini, M.Ciolli, P.Zatelli > Local Organizing Committee > Open source GIS - GRASS users conference 2002 > > Conference E-mail: grass2002 at ing.unitn.it > Conference Web site: http://www.ing.unitn.it/~grass > > Department of Civil and Environmental Engineering > University of Trento > via Mesiano, 77 > 38100 Trento > ITALY > __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From lfilak at yahoo.com Thu Oct 11 08:02:14 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Thu, 11 Oct 2001 08:02:14 -0700 (PDT) Subject: [mapserver-users] Fwd: [GRASSLIST:2581] ANNOUNCEMENT: Open source GIS - GRASS users conference 2002, Trento, Italy, 11-13 September 2002 Message-ID: <20011011150214.70586.qmail@web11302.mail.yahoo.com> I didn't see this posted yet and figured if anyone is interested... If we keep saving $$$ using Mapserver maybe one day someone can travel to Italy ;-) Lowell Filak --- Markus Neteler wrote: > Date: Tue, 9 Oct 2001 17:09:57 +0200 > From: Markus Neteler > To: grass5 developers list , > wingrass , > grasslist at baylor.edu, > Freegis-list at intevation.de > CC: grass-de at geog.uni-hannover.de, > grass2002 at ing.unitn.it > Subject: [GRASSLIST:2581] ANNOUNCEMENT: Open source > GIS - GRASS users conference 2002, Trento, Italy, > 11-13 September 2002 > > ANNOUNCEMENT > > Open source GIS - GRASS users conference > 2002 > > Trento, Italy, 11-13 September 2002 > > > http://grass.itc.it/conferences/conf_trento2002.html > > The Open source GIS - GRASS users conference will > take place in Trento, > Italy, 11-13 September 2002. > > This conference is the result of the joint effort of > many GRASS developers > and users all over the world to foster closer > relations and provide > opportunities for greater interactions among the > open GIS and GRASS > communities. > The aim of the conference is twofold: the exchange > of experiences between > Open GIS and GRASS users and developers and the > possibility for the > potential users to access first-hand information and > GRASS capability > demonstration, especially for users from developing > countries. > > The conference is organized by the Department of > Civil and Environmental > Engineering of the University of Trento with the > help of an Organizing > Committee including some of the most prominent > GIS/GRASS experts around the > world. > > This is the first meeting on open source GIS, so it > is difficult to estimate > the number of participants. Pre-registration on the > web site will help the > organization of the meeting to find out in advance > the number of people > interested to attend (before March, 31st 2002). > > Conference fee will be kept as low as possible to > allow everybody to > participate: > > Early registration (until 30 June 2002): 70 > euros > Late registration (after 30 June 2002): 200 > euros > > Conference Web site: > > http://www.ing.unitn.it/~grass/ > > > B.Benciolini, M.Ciolli, P.Zatelli > Local Organizing Committee > Open source GIS - GRASS users conference 2002 > > Conference E-mail: grass2002 at ing.unitn.it > Conference Web site: http://www.ing.unitn.it/~grass > > Department of Civil and Environmental Engineering > University of Trento > via Mesiano, 77 > 38100 Trento > ITALY > __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From toni at giscampus.udg.es Thu Oct 11 09:02:58 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Thu, 11 Oct 2001 18:02:58 +0200 Subject: [mapserver-users] queryitem in mapserver cgi 3.5 References: Message-ID: <005b01c1526e$32bd46f0$0e2fce82@udg.es> Hi, Does anyone know how is queryitem working in 3.5 My map file worked fine but when I changed to 3.5 the following message appears. "loadLayer(): Unknown identifier. (QUERYITEM):(97) " Does mapserver 3.5 support QUERYITEM? Thanks From pramsey at refractions.net Thu Oct 11 09:31:05 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 11 Oct 2001 09:31:05 -0700 Subject: [mapserver-users] Mapscript / Projection Question References: <20011010135643.C767@belfagor> <3BC46BC8.8DE50307@refractions.net> <3BC48F9A.F95C9FB9@refractions.net> <3BC5C131.F473207D@refractions.net> Message-ID: <3BC5C949.1BE5D8B1@refractions.net> In answer to my question, I have found that when using perl mapscript the internal projection and extent seem pretty independant. all that setProjection() does is change the projection object, it does not alter any of the associated info, like the extent, to match the new projection. So, the trick is to always ensure that any extent you set is in the same projection as the internal one. The order of operations is like this: - setProjection (P1) - new rectObj() with your extent in P1 - $rect->project(P2,P1) - now set $map->{extent} = $rect Basically, keep track of what projection corresponds to what object and do all the transformations by hand, and stuff works. > Paul Ramsey wrote: > > > > OK, to start with, I have a map file with a default planar projection. > > > > $map->{extent}->{minx} gives me a nice planar value : 167053 > > > > I do a $map->setProjection("init=epgs:4269") where EPSG 4269 is a > > lat/lon projection. > > > > $map->{extent}->{minx} *still* gives me a nice planar value : 167053 > > > > What precisely does setProjection effect? The output image only? If so, > > how do I specify an input extent? In the default projection only? I > > *thought* the correct chain of operations was like this: > > > > - Mapserver with default projection P1 > > - Given desired extent E1 in projection P2 > > - $map->setProjection(P2) > > - $map->{extent} = E1 > > - Given that one wants output in projection P3 > > - $map->setProjection(P3) > > - $map->draw() > > > > So > > > > 1) how to I set the projection the output image will be generated in? > > 2) how do I specify an image extent, given that I am doing something > > like 1) ? > > > > Thanks, > > Paul > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From steve.lime at dnr.state.mn.us Thu Oct 11 09:35:46 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 11 Oct 2001 11:35:46 -0500 Subject: [mapserver-users] queryitem in mapserver cgi 3.5 Message-ID: Queryitem has gone away to simplify the number of expressions that have to be potentially maintained. Since queries have been sucked into classes you can still present results differently based on an expression. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> toni hern?ndez 10/11/01 11:02AM >>> Hi, Does anyone know how is queryitem working in 3.5 My map file worked fine but when I changed to 3.5 the following message appears. "loadLayer(): Unknown identifier. (QUERYITEM):(97) " Does mapserver 3.5 support QUERYITEM? Thanks From info at geo-it.com Thu Oct 11 09:59:35 2001 From: info at geo-it.com (Geo-IT-GmbH) Date: Thu, 11 Oct 2001 18:59:35 +0200 Subject: [mapserver-users] MapScript Java ?! 2 Message-ID: <9138808AB827D311B56800E018900A610A5664@gdppdc.gdp.com> Hi Tobias, we also tried to generate a java version of MapScript with SWIG 1.3.9 and we got the same errors like You. Have You meanwhile found any solution for the problem? We 're still working on it. Greetings, Daniel *************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com *************************************************** From gispmpf at zipmail.com.br Thu Oct 11 13:14:20 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Thu, 11 Oct 2001 20:14:20 +0000 Subject: [mapserver-users] =?iso-8859-1?Q?postgis/mapserver?= Message-ID: <3BC5EB41000002D8@www.zipmail.com.br> Ok , but what I'm asking is if i can do it only using mapserver and its ".map" file and a database with postgis. I want to read the points of the line in the postgis table and create a layer with it as in the mapfile and show this points. Do I have to use a script language to do it? Can a do it only using the mapfile? > There should be syntax in the programming/scripting > language your using to turn the Postgre "trace" > function on. In perl the syntax is "$dbh->trace(2);" > where $dbh is an already declared database > handle/connection. The trace will in turn place > information regarding your database connection (if > there is one) in the web server log file. In apache on > RedHat the log is usually "/var/log/httpd/error_log". > Hope that helps. > Lowell Filak --- gispmpf at zipmail.com.br wrote: > Hello, > > I have another questio about mapserver/postgis > interface... > i have adapted the following script for mapserver: > > LAYER > CONNECTIONTYPE postgis > NAME 'Roads' > CONNECTION "user=postgres dbname=teste > host=localhost" > DATA "linha from teste" > STATUS ON > TYPE LINE > FILTER "id = 1" > CLASS > EXPRESSION ([id]=1) > COLOR 255 22 22 > SYMBOL 0 > SIZE 2 > END > CLASS > # All the rest are darker and only 1 pixel wide > EXPRESSION ([id]>1) > COLOR 205 92 82 > END > END > my intention is to draw the lines of this database > in a web browser > but i dont have any results with it > How can i know if this script is realy conecting > with the postgis database? > and if it is ... how can i see what is wrong? > > Thanks > Jo?o. > > > > > ___________________________________________________________ > > http://www.zipmail.com.br O e-mail que vai aonde > voc? est?. > > > ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From dan.liu at mnplan.state.mn.us Thu Oct 11 14:13:37 2001 From: dan.liu at mnplan.state.mn.us (Dan Liu) Date: Thu, 11 Oct 2001 16:13:37 -0500 Subject: [mapserver-users] Hi, Message-ID: Hi, I got a problem.The maps I created under same situation should be the same.But it is not.Does anybody know what is wrong? Thanks. Dan From pkishor at GeoAnalytics.com Thu Oct 11 15:27:44 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Thu, 11 Oct 2001 17:27:44 -0500 Subject: [mapserver-users] Hi, Message-ID: Hi Dan, I got a major problem. I have no clue what your situation is. Why don't you give us some more information so we can start wondering. ;-) Thanks, pk/ PS: to the list -- I was pulled away from my Mapserver work for a few weeks. I have returned to find still no official 3.5 . 'tsup guys? Anyway, in the meantime I have managed to get a fairly decent Mapserver/PHP site going. As soon as I have it cleared from the clients, etc., I should be able to provide the scripts for the entire project as well as access to a working demo for those who may be interested. > -----Original Message----- > From: Dan Liu [mailto:dan.liu at mnplan.state.mn.us] > Sent: Thursday, October 11, 2001 4:14 PM > To: Subject: [mapserver-users] Hi, > > > Hi, > I got a problem.The maps I created under same situation > should be the same.But it is not.Does anybody know what is wrong? > Thanks. > Dan > From sutton_t at giug.net Thu Oct 11 17:17:13 2001 From: sutton_t at giug.net (Tim Sutton) Date: Fri, 12 Oct 2001 01:17:13 +0100 (BST) Subject: [mapserver-users] Hi, In-Reply-To: Message-ID: Hi Dan You probably won't get much help with your query because it contains no spcific information, so it is not really clear what you want to know. Try supplying some info like: -your version of mapserver -which platform you are running on (Linux / NT) -relevant parts of your .map file -relevant parts of your .php script if applicable -exactly when your problem occurs -exactly what the problem is Good luck with your mapserving! Regards Tim Sutton On Thu, 11 Oct 2001, Dan Liu wrote: > Hi, > I got a problem.The maps I created under same situation should be the same.But it is not.Does anybody know what is wrong? > Thanks. > Dan > From wasserburger at plan.at Fri Oct 12 07:06:46 2001 From: wasserburger at plan.at (Wolfgang W. Wasserburger) Date: Fri, 12 Oct 2001 16:06:46 +0200 Subject: [mapserver-users] ITEMQUERYMAP and Zoom Message-ID: Hi Listers, I tried to show a querymap, but I doonot like to zoom as close to the queried features as mapext=shapes does, but I like to use buffer or scale, but it seems, that this doesnt work, wether in 3.4 nor in 3.5 under NT. Has anybody suggestions how to workaround? Thx in advance Wolfgang W. Wasserburger From steve.lime at dnr.state.mn.us Fri Oct 12 07:32:51 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 12 Oct 2001 09:32:51 -0500 Subject: [mapserver-users] ITEMQUERYMAP and Zoom Message-ID: I believe I posted a workaround using cached queries about 4 to 6 weeks ago. The workaround was for version 3.5. Check the archives... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Wolfgang W. Wasserburger" 10/12/01 09:06AM >>> Hi Listers, I tried to show a querymap, but I doonot like to zoom as close to the queried features as mapext=shapes does, but I like to use buffer or scale, but it seems, that this doesnt work, wether in 3.4 nor in 3.5 under NT. Has anybody suggestions how to workaround? Thx in advance Wolfgang W. Wasserburger From steve.lime at dnr.state.mn.us Fri Oct 12 07:36:30 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 12 Oct 2001 09:36:30 -0500 Subject: [mapserver-users] postgis/mapserver Message-ID: You can use postgres without using a scripting language. I think Lowell was suggesting testing the map file using the scripting language. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 10/11/01 03:14PM >>> Ok , but what I'm asking is if i can do it only using mapserver and its ".map" file and a database with postgis. I want to read the points of the line in the postgis table and create a layer with it as in the mapfile and show this points. Do I have to use a script language to do it? Can a do it only using the mapfile? > There should be syntax in the programming/scripting > language your using to turn the Postgre "trace" > function on. In perl the syntax is "$dbh->trace(2);" > where $dbh is an already declared database > handle/connection. The trace will in turn place > information regarding your database connection (if > there is one) in the web server log file. In apache on > RedHat the log is usually "/var/log/httpd/error_log". > Hope that helps. > Lowell Filak --- gispmpf at zipmail.com.br wrote: > Hello, > > I have another questio about mapserver/postgis > interface... > i have adapted the following script for mapserver: > > LAYER > CONNECTIONTYPE postgis > NAME 'Roads' > CONNECTION "user=postgres dbname=teste > host=localhost" > DATA "linha from teste" > STATUS ON > TYPE LINE > FILTER "id = 1" > CLASS > EXPRESSION ([id]=1) > COLOR 255 22 22 > SYMBOL 0 > SIZE 2 > END > CLASS > # All the rest are darker and only 1 pixel wide > EXPRESSION ([id]>1) > COLOR 205 92 82 > END > END > my intention is to draw the lines of this database > in a web browser > but i dont have any results with it > How can i know if this script is realy conecting > with the postgis database? > and if it is ... how can i see what is wrong? > > Thanks > Jo?o. > > > > > ___________________________________________________________ > > http://www.zipmail.com.br O e-mail que vai aonde > voc? est?. > > > ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From TMitchell at lignum.com Fri Oct 12 09:27:39 2001 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 12 Oct 2001 09:27:39 -0700 Subject: [mapserver-users] Running ./configure bails on me Message-ID: Hi guys, I've been compiling lots of programs without any problems lately, but once I tried to run ./configure from the latest download of ms_3.4.tar - it tells me the following and gives up on me :( ---------------------------- loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... no checking for g++... no checking for gcc... gcc checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. ------------ I'm not that adept at Linux permissions, but am getting there. It wouldn't be related to the permissions/ownership that came with the tarball would it? Tyler J. Mitchell Coordinator - Geographic Information Systems Lignum Ltd - 180 Hodgson Road Williams Lake, B.C. Canada V2G 3P6 Phone: 250-392-3371 Fax: 250-398-3977 Email: tmitchell at lignum.com From steve.lime at dnr.state.mn.us Fri Oct 12 09:37:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 12 Oct 2001 11:37:35 -0500 Subject: [mapserver-users] Mapscript / Projection Question Message-ID: I like it when you figure it out yourself. You are correct though, projections and objects are independant. It's up to you to make sure you've got things in order. Internally at feature inherits it's projection from it's parent layer and if that's not defined then the overall map projection. You can access and set those projections as well from MapScript. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 10/11/01 11:31AM >>> In answer to my question, I have found that when using perl mapscript the internal projection and extent seem pretty independant. all that setProjection() does is change the projection object, it does not alter any of the associated info, like the extent, to match the new projection. So, the trick is to always ensure that any extent you set is in the same projection as the internal one. The order of operations is like this: - setProjection (P1) - new rectObj() with your extent in P1 - $rect->project(P2,P1) - now set $map->{extent} = $rect Basically, keep track of what projection corresponds to what object and do all the transformations by hand, and stuff works. > Paul Ramsey wrote: > > > > OK, to start with, I have a map file with a default planar projection. > > > > $map->{extent}->{minx} gives me a nice planar value : 167053 > > > > I do a $map->setProjection("init=epgs:4269") where EPSG 4269 is a > > lat/lon projection. > > > > $map->{extent}->{minx} *still* gives me a nice planar value : 167053 > > > > What precisely does setProjection effect? The output image only? If so, > > how do I specify an input extent? In the default projection only? I > > *thought* the correct chain of operations was like this: > > > > - Mapserver with default projection P1 > > - Given desired extent E1 in projection P2 > > - $map->setProjection(P2) > > - $map->{extent} = E1 > > - Given that one wants output in projection P3 > > - $map->setProjection(P3) > > - $map->draw() > > > > So > > > > 1) how to I set the projection the output image will be generated in? > > 2) how do I specify an image extent, given that I am doing something > > like 1) ? > > > > Thanks, > > Paul > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From steve.lime at dnr.state.mn.us Fri Oct 12 09:38:34 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 12 Oct 2001 11:38:34 -0500 Subject: [mapserver-users] Running ./configure bails on me Message-ID: Do you have g++ installed? Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tyler Mitchell" 10/12/01 11:27AM >>> Hi guys, I've been compiling lots of programs without any problems lately, but once I tried to run ./configure from the latest download of ms_3.4.tar - it tells me the following and gives up on me :( ---------------------------- loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... no checking for g++... no checking for gcc... gcc checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. ------------ I'm not that adept at Linux permissions, but am getting there. It wouldn't be related to the permissions/ownership that came with the tarball would it? Tyler J. Mitchell Coordinator - Geographic Information Systems Lignum Ltd - 180 Hodgson Road Williams Lake, B.C. Canada V2G 3P6 Phone: 250-392-3371 Fax: 250-398-3977 Email: tmitchell at lignum.com From TMitchell at lignum.com Fri Oct 12 09:47:26 2001 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 12 Oct 2001 09:47:26 -0700 Subject: [mapserver-users] Running ./configure bails on me Message-ID: Thanks for the question Stephen, as simple as it appeared, I did NOT have it installed! I guess, to date, I've been fortunate to only be using C code as far as I can tell. I installed the gcc-c++ rpm for Linux and it ./configured just fine so far. Thanks again. Tyler "Stephen Lime" , ate.mn.us> cc: Fax to: 10/12/01 09:38 AM Subject: Re: [mapserver-users] Running ./configure bails on me Do you have g++ installed? Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tyler Mitchell" 10/12/01 11:27AM >>> Hi guys, I've been compiling lots of programs without any problems lately, but once I tried to run ./configure from the latest download of ms_3.4.tar - it tells me the following and gives up on me :( ---------------------------- loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... no checking for g++... no checking for gcc... gcc checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. ------------ I'm not that adept at Linux permissions, but am getting there. It wouldn't be related to the permissions/ownership that came with the tarball would it? Tyler J. Mitchell Coordinator - Geographic Information Systems Lignum Ltd - 180 Hodgson Road Williams Lake, B.C. Canada V2G 3P6 Phone: 250-392-3371 Fax: 250-398-3977 Email: tmitchell at lignum.com From TMitchell at lignum.com Fri Oct 12 10:08:32 2001 From: TMitchell at lignum.com (Tyler Mitchell) Date: Fri, 12 Oct 2001 10:08:32 -0700 Subject: [mapserver-users] Running ./configure bails on me Message-ID: Okay, now I've got my configure and make done and I've copied the mapserv file into cgi-bin. But now when I access the executable by running http://myserver/cgi-bin/mapserv - I get prompted to download a txt file which looks strange. Have I missed some documentation or FAQ somewhere on this. Please point me to right place if I have missed this issue in another spot. Tyler "Stephen Lime" , ate.mn.us> cc: Fax to: 10/12/01 09:38 AM Subject: Re: [mapserver-users] Running ./configure bails on me Do you have g++ installed? Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tyler Mitchell" 10/12/01 11:27AM >>> Hi guys, I've been compiling lots of programs without any problems lately, but once I tried to run ./configure from the latest download of ms_3.4.tar - it tells me the following and gives up on me :( ---------------------------- loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... no checking for g++... no checking for gcc... gcc checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. ------------ I'm not that adept at Linux permissions, but am getting there. It wouldn't be related to the permissions/ownership that came with the tarball would it? Tyler J. Mitchell Coordinator - Geographic Information Systems Lignum Ltd - 180 Hodgson Road Williams Lake, B.C. Canada V2G 3P6 Phone: 250-392-3371 Fax: 250-398-3977 Email: tmitchell at lignum.com From Jciavarelli at city.kamloops.bc.ca Fri Oct 12 11:12:48 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 12 Oct 2001 11:12:48 -0700 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: Hi Ed, I think you're thinking of an ArcInfo .prj file format. The .prj file I attached to a previous message does not have the format you listed, but rather looks like this: PROJCS["NAD_1983_UTM_Zone_10N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000],PARAMETER["False_Northing",0],PARAMETER["Central_Meridian",-123],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_Of_Origin",0],UNIT["Meter",1]] Just thought I'd point this out. Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca >>> "Ed McNierney" 10/05/01 09:58am >>> Janet et al. - Janet seems to have found the problem. It appears that ArcGIS 8.1 *requires* a .prj file (which describes the shapefile's projection, not an ArcView project), which (all else being equal) is a pretty good thing. ArcView 3.2 does not require .prj files. PRJ files are simple text files that probably look familiar to PROJ users - here's the contents of a simple one. proj=utm zone=15 units=m ellps=GRS80 - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: imap at chesapeake.net [mailto:imap at chesapeake.net] Sent: Friday, October 05, 2001 12:54 PM To: mapserver-users at lists.gis.umn.edu Cc: Janet Ciavarelli; Ed McNierney Subject: Re: [mapserver-users] Shapefiles - different formats? ArcView will read the 3 files just fine. You have to create or Open a New Project, then Add Layer, then browse to the dir where your shapefiles are, then pick one. A somewhat related comment, There are actually a other files that sometimes accompany a shapefile. .shp, .shx, .dbf (main 3 files) .sbn, .ixs, .mxs (??? mystery files) .prj, .apr (project files I think) I think the .ixs and .mxs are geocoding indexes and .sbn??? who knows. I'd really like to know the layout of these other files. I am not sure if they come from ArcInfo, or what? I see a few 3rd party companies create these files within their ArcView Format, but it may be a proprietary aspect of Arc??? If anyone has info, please reply an email. Anyway, The .apr(.prj?) are in ascii and is a long list of name/value pairs, so a script should be able to generate/manipulate OK. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Janet Ciavarelli wrote: > > Hi Ed, > I see what the difference is now. I went into ArcCatalog and created an empty shapefile, and I looked in explorer. It creates 4 files! Not just the 3 files that it used to use (.shp, .shx, .dbf). > > I've attached all the four files. So that explains why ArcView 3.2 can open the file though. Cause it finds the 3 files and just ignores the 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will have to find out what's in it and get my script to create that as well. Also, maybe that utility you advised me to grab will create it. I will check when I get time which my be a long time from now. > > Thanx for your help. Janet. > > >>> "Ed McNierney" 10/04/01 05:49pm >>> > Janet - > > Can you create an empty point shapefile in 8.1 and send that to me, too? > I don't have 8.1, but I can take a look at the shapefile to see if > there's anything different. > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:11 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Yes, same symptom even with records added. > > >>> "Ed McNierney" 10/04/01 01:10pm >>> > Janet - > > Do you get the same symptom when you add records to the shapefile? > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:03 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Hi Ed, > Here's a copy of the shapefile. BTW, it is an empty one but it should > be successfully able to open empty shapefiles as well. We've tried it > with both empty and un-empty ones and get the same results: it opens > find in AV 3.2 but errors out in AV 8.1 > > Janet. > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > >>> "Ed McNierney" 10/04/01 12:38pm >>> > Janet - > > I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). > Perhaps it's more likely that you're creating a slightly out-of-spec > shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. > > There's a tool called shpfix in the GDAL distribution that might > possibly help clean up the file. If you'd like to email me the > shapefile I'll take a look at it. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 2:17 PM > To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu > Subject: [mapserver-users] Shapefiles - different formats? > > Sort of off topic, but thought I'd ask anyways in case anyone knows. I > have written a perl/mapscript to create a shapefile. I can view the > shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI > ArcView 8.1, I get an error. Is anyone out there aware of any > differences between shapefile formats between different products? > > Janet. > > > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > ------------------------------------------------------------------------ -------- > Name: shapev8.dbf > shapev8.dbf Type: unspecified type (application/octet-stream) > Encoding: base64 > Description: dBase 3 database > > shapev8.prjName: shapev8.prj > Type: Plain Text (text/plain) > > Name: shapev8.shp > shapev8.shp Type: ESRI Shapefile (application/x-unknown-content-type-shpfile) > Encoding: base64 > > Name: shapev8.shx > shapev8.shx Type: unspecified type (application/octet-stream) > Encoding: base64 From LBallard at YesVirginia.org Fri Oct 12 11:53:43 2001 From: LBallard at YesVirginia.org (LBallard at YesVirginia.org) Date: Fri, 12 Oct 2001 14:53:43 -0400 Subject: [mapserver-users] Running ./configure bails on me Message-ID: <509989F9E1D38D47ADA73ED9CF5BF32A16D16D@communications> Personally, I would uninstall the Apache.rpm (or mandrake equivalent) and install it from the source. That will give you much better control over things and will allow you to compile with PHP etc. I would use Apachetoolbox (http://www.apachetoolbox.com). Get the Script Only from the downloads section, untarit into the /usr/local/src directory, and run the install script as root. You can make selection from the menu for things you would like to compile into it. It's great and a huge time saver. You might try accepting the defaults the first time. It will create (after you do a: make, then make install) /usr/local/apache/cgi-bin directory for you. Put your mapserv cgi in there and she'll be happy. Lowell Ballard Unix/Database Administrator Virginia Economic Development Partnership 901 E. Byrd St., Richmond, Va. 23218 http://gis.vedp.org -----Original Message----- From: Tyler Mitchell [mailto:TMitchell at lignum.com] Sent: Friday, October 12, 2001 1:09 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Running ./configure bails on me Okay, now I've got my configure and make done and I've copied the mapserv file into cgi-bin. But now when I access the executable by running http://myserver/cgi-bin/mapserv - I get prompted to download a txt file which looks strange. Have I missed some documentation or FAQ somewhere on this. Please point me to right place if I have missed this issue in another spot. Tyler "Stephen Lime" , ate.mn.us> cc: Fax to: 10/12/01 09:38 AM Subject: Re: [mapserver-users] Running ./configure bails on me Do you have g++ installed? Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tyler Mitchell" 10/12/01 11:27AM >>> Hi guys, I've been compiling lots of programs without any problems lately, but once I tried to run ./configure from the latest download of ms_3.4.tar - it tells me the following and gives up on me :( ---------------------------- loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... no checking for g++... no checking for gcc... gcc checking whether the C++ compiler (gcc ) works... no configure: error: installation or configuration problem: C++ compiler cannot create executables. ------------ I'm not that adept at Linux permissions, but am getting there. It wouldn't be related to the permissions/ownership that came with the tarball would it? Tyler J. Mitchell Coordinator - Geographic Information Systems Lignum Ltd - 180 Hodgson Road Williams Lake, B.C. Canada V2G 3P6 Phone: 250-392-3371 Fax: 250-398-3977 Email: tmitchell at lignum.com From ed at topozone.com Fri Oct 12 12:21:52 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 12 Oct 2001 15:21:52 -0400 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: <13858AA1A74F30419F319ACB66A9D122D389@mercator.topozone.com> Interesting - are you suggesting that 8.1 requires a .prj file in a format that, while perfectly standard, is different from the 3.1 .prj format? That would be rather confusing for users, no? The .prj file you describe is the equivalent of this file: proj=utm zone=10 units=m ellps=GRS80 and you might try (just as an experiment) replacing your current 8.1 .prj file with those lines - it's possible 8.1 reads them in both formats. Since I'm *not* an 8.1 user, I'm mostly shooting in the dark here, so if there are wiser eyes on the list, please jump in! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Friday, October 12, 2001 2:13 PM To: imap at chesapeake.net; mapserver-users at lists.gis.umn.edu; Ed McNierney Subject: RE: [mapserver-users] Shapefiles - different formats? Hi Ed, I think you're thinking of an ArcInfo .prj file format. The .prj file I attached to a previous message does not have the format you listed, but rather looks like this: PROJCS["NAD_1983_UTM_Zone_10N",GEOGCS["GCS_North_American_1983",DATUM["D _North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM ["Greenwich",0],UNIT["Degree",0.017453292519943295]],PROJECTION["Transve rse_Mercator"],PARAMETER["False_Easting",500000],PARAMETER["False_Northi ng",0],PARAMETER["Central_Meridian",-123],PARAMETER["Scale_Factor",0.999 6],PARAMETER["Latitude_Of_Origin",0],UNIT["Meter",1]] Just thought I'd point this out. Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca >>> "Ed McNierney" 10/05/01 09:58am >>> Janet et al. - Janet seems to have found the problem. It appears that ArcGIS 8.1 *requires* a .prj file (which describes the shapefile's projection, not an ArcView project), which (all else being equal) is a pretty good thing. ArcView 3.2 does not require .prj files. PRJ files are simple text files that probably look familiar to PROJ users - here's the contents of a simple one. proj=utm zone=15 units=m ellps=GRS80 - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: imap at chesapeake.net [mailto:imap at chesapeake.net] Sent: Friday, October 05, 2001 12:54 PM To: mapserver-users at lists.gis.umn.edu Cc: Janet Ciavarelli; Ed McNierney Subject: Re: [mapserver-users] Shapefiles - different formats? ArcView will read the 3 files just fine. You have to create or Open a New Project, then Add Layer, then browse to the dir where your shapefiles are, then pick one. A somewhat related comment, There are actually a other files that sometimes accompany a shapefile. .shp, .shx, .dbf (main 3 files) .sbn, .ixs, .mxs (??? mystery files) .prj, .apr (project files I think) I think the .ixs and .mxs are geocoding indexes and .sbn??? who knows. I'd really like to know the layout of these other files. I am not sure if they come from ArcInfo, or what? I see a few 3rd party companies create these files within their ArcView Format, but it may be a proprietary aspect of Arc??? If anyone has info, please reply an email. Anyway, The .apr(.prj?) are in ascii and is a long list of name/value pairs, so a script should be able to generate/manipulate OK. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Janet Ciavarelli wrote: > > Hi Ed, > I see what the difference is now. I went into ArcCatalog and created an empty shapefile, and I looked in explorer. It creates 4 files! Not just the 3 files that it used to use (.shp, .shx, .dbf). > > I've attached all the four files. So that explains why ArcView 3.2 can open the file though. Cause it finds the 3 files and just ignores the 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will have to find out what's in it and get my script to create that as well. Also, maybe that utility you advised me to grab will create it. I will check when I get time which my be a long time from now. > > Thanx for your help. Janet. > > >>> "Ed McNierney" 10/04/01 05:49pm >>> > Janet - > > Can you create an empty point shapefile in 8.1 and send that to me, too? > I don't have 8.1, but I can take a look at the shapefile to see if > there's anything different. > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:11 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Yes, same symptom even with records added. > > >>> "Ed McNierney" 10/04/01 01:10pm >>> > Janet - > > Do you get the same symptom when you add records to the shapefile? > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:03 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Hi Ed, > Here's a copy of the shapefile. BTW, it is an empty one but it should > be successfully able to open empty shapefiles as well. We've tried it > with both empty and un-empty ones and get the same results: it opens > find in AV 3.2 but errors out in AV 8.1 > > Janet. > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > >>> "Ed McNierney" 10/04/01 12:38pm >>> > Janet - > > I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). > Perhaps it's more likely that you're creating a slightly out-of-spec > shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. > > There's a tool called shpfix in the GDAL distribution that might > possibly help clean up the file. If you'd like to email me the > shapefile I'll take a look at it. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 2:17 PM > To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu > Subject: [mapserver-users] Shapefiles - different formats? > > Sort of off topic, but thought I'd ask anyways in case anyone knows. I > have written a perl/mapscript to create a shapefile. I can view the > shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI > ArcView 8.1, I get an error. Is anyone out there aware of any > differences between shapefile formats between different products? > > Janet. > > > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > ------------------------------------------------------------------------ -------- > Name: shapev8.dbf > shapev8.dbf Type: unspecified type (application/octet-stream) > Encoding: base64 > Description: dBase 3 database > > shapev8.prjName: shapev8.prj > Type: Plain Text (text/plain) > > Name: shapev8.shp > shapev8.shp Type: ESRI Shapefile (application/x-unknown-content-type-shpfile) > Encoding: base64 > > Name: shapev8.shx > shapev8.shx Type: unspecified type (application/octet-stream) > Encoding: base64 From jbrown at burgoyne.com Fri Oct 12 12:25:57 2001 From: jbrown at burgoyne.com (James Brown) Date: Fri, 12 Oct 2001 13:25:57 -0600 Subject: [mapserver-users] Older copy of Geographic Explorer with QuickTranslate? Message-ID: Does anyone have an older copy of Geographic Explorer that still has the QuickTranslate feature enabled? If so, would you please email a copy to me? I contacted Blue Marble to request an older copy and they offered to sell me one for $99. Wow, what a deal, an older copy of your free software for only a hundred bucks! Gee, how could I turn that down? TIA, - James >From the discussion page at Blue Marble Geographics: "The Geographic Explorer, a complimentary product offered by Blue Marble, has proven itself to be a great tool for quickly finding and viewing map and image files. "Users of the QuickTranslate utility within the Geographic Explorer suite were demanding intensive technical support relating to oftentimes "quirky" file format issues - issues that were well beyond the original intentions of this feature set. The QuickTranslate utility was designed as a quick and simple solution for 99% of all file conversion requirements. We continue to invest in the development and support of our Geographic Translator application tool. "We apologize for this inconvenience, and appreciate you interest in Blue Marble Geographics." From Jciavarelli at city.kamloops.bc.ca Fri Oct 12 13:36:53 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 12 Oct 2001 13:36:53 -0700 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: Hmmmm, it still doesn't work. I now have the .prj file as well, but still the .shp,.shx and .dbf I created using mapscript together with the .prj does not work in ArcMap 8.1 but works fine in ArcView 3.2. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca >>> "Ed McNierney" 10/05/01 09:58am >>> Janet et al. - Janet seems to have found the problem. It appears that ArcGIS 8.1 *requires* a .prj file (which describes the shapefile's projection, not an ArcView project), which (all else being equal) is a pretty good thing. ArcView 3.2 does not require .prj files. PRJ files are simple text files that probably look familiar to PROJ users - here's the contents of a simple one. proj=utm zone=15 units=m ellps=GRS80 - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: imap at chesapeake.net [mailto:imap at chesapeake.net] Sent: Friday, October 05, 2001 12:54 PM To: mapserver-users at lists.gis.umn.edu Cc: Janet Ciavarelli; Ed McNierney Subject: Re: [mapserver-users] Shapefiles - different formats? ArcView will read the 3 files just fine. You have to create or Open a New Project, then Add Layer, then browse to the dir where your shapefiles are, then pick one. A somewhat related comment, There are actually a other files that sometimes accompany a shapefile. .shp, .shx, .dbf (main 3 files) .sbn, .ixs, .mxs (??? mystery files) .prj, .apr (project files I think) I think the .ixs and .mxs are geocoding indexes and .sbn??? who knows. I'd really like to know the layout of these other files. I am not sure if they come from ArcInfo, or what? I see a few 3rd party companies create these files within their ArcView Format, but it may be a proprietary aspect of Arc??? If anyone has info, please reply an email. Anyway, The .apr(.prj?) are in ascii and is a long list of name/value pairs, so a script should be able to generate/manipulate OK. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Janet Ciavarelli wrote: > > Hi Ed, > I see what the difference is now. I went into ArcCatalog and created an empty shapefile, and I looked in explorer. It creates 4 files! Not just the 3 files that it used to use (.shp, .shx, .dbf). > > I've attached all the four files. So that explains why ArcView 3.2 can open the file though. Cause it finds the 3 files and just ignores the 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will have to find out what's in it and get my script to create that as well. Also, maybe that utility you advised me to grab will create it. I will check when I get time which my be a long time from now. > > Thanx for your help. Janet. > > >>> "Ed McNierney" 10/04/01 05:49pm >>> > Janet - > > Can you create an empty point shapefile in 8.1 and send that to me, too? > I don't have 8.1, but I can take a look at the shapefile to see if > there's anything different. > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:11 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Yes, same symptom even with records added. > > >>> "Ed McNierney" 10/04/01 01:10pm >>> > Janet - > > Do you get the same symptom when you add records to the shapefile? > > - Ed > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 4:03 PM > To: Ed McNierney > Subject: RE: [mapserver-users] Shapefiles - different formats? > > Hi Ed, > Here's a copy of the shapefile. BTW, it is an empty one but it should > be successfully able to open empty shapefiles as well. We've tried it > with both empty and un-empty ones and get the same results: it opens > find in AV 3.2 but errors out in AV 8.1 > > Janet. > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > >>> "Ed McNierney" 10/04/01 12:38pm >>> > Janet - > > I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). > Perhaps it's more likely that you're creating a slightly out-of-spec > shapefile that's being tolerated by 3.2, but 8.1 is being fussier about. > > There's a tool called shpfix in the GDAL distribution that might > possibly help clean up the file. If you'd like to email me the > shapefile I'll take a look at it. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > Sent: Thursday, October 04, 2001 2:17 PM > To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu > Subject: [mapserver-users] Shapefiles - different formats? > > Sort of off topic, but thought I'd ask anyways in case anyone knows. I > have written a perl/mapscript to create a shapefile. I can view the > shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI > ArcView 8.1, I get an error. Is anyone out there aware of any > differences between shapefile formats between different products? > > Janet. > > > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > ------------------------------------------------------------------------ -------- > Name: shapev8.dbf > shapev8.dbf Type: unspecified type (application/octet-stream) > Encoding: base64 > Description: dBase 3 database > > shapev8.prjName: shapev8.prj > Type: Plain Text (text/plain) > > Name: shapev8.shp > shapev8.shp Type: ESRI Shapefile (application/x-unknown-content-type-shpfile) > Encoding: base64 > > Name: shapev8.shx > shapev8.shx Type: unspecified type (application/octet-stream) > Encoding: base64 From Jciavarelli at city.kamloops.bc.ca Fri Oct 12 14:08:49 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Fri, 12 Oct 2001 14:08:49 -0700 Subject: [mapserver-users] Anyone have a shapefile? Message-ID: Anyone have a shapefile they created using mapscript that they could send me so I can see if it opens up in ArcMap 8.1? I just want to see if it's just my mapscript routine that creates these shapefiles that won't open in ArcMap 8.1 (but do open in ArcView 3.2). Janet P.S. Turns out adding a .prj does not cure the problem. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca From pramsey at refractions.net Fri Oct 12 14:34:45 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 12 Oct 2001 14:34:45 -0700 Subject: [mapserver-users] ArcIMS Emulations Message-ID: <3BC761F5.75178A14@refractions.net> Hey, all you people with Arc8. Open up ArcCatalog, go to 'Create connection to internet server...' and enter 'http://mapserver.refractions.net' into the URL box. Then drag one of the services into ArcMap. Voila! What is the big deal? That ain't no ArcIMS server on that machine: it is Mapserver, with a perl front-end to make it act like ArcIMS. This is dependant on some hacks I've put into my version of Mapserver. It also is missing support for some of the ESRI 'standard' projection ids. When the projection stuff is standard in proj4 (Frank is looking at it) and I have got my hacks cleanly into mapserver/mapscript I'll release the script. Maybe by then it will also do client preferences for rendering too... oooooh... (and have more elegant XML handling...) -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From gispmpf at zipmail.com.br Sat Oct 13 12:14:31 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Sat, 13 Oct 2001 16:14:31 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?postgis/mapserver=20=2D=20interface?= Message-ID: <3BC649B60000177D@www.zipmail.com.br> First , i want to thank you all for the patience on respond all my newbie questions... and here is another... Can i create a layer in the mapfile which connect a postgis database where point are declared. I want to draw this points in a polygon which is the first layer show in the web browser.Something like this: __________ ___________ ' ' ___________ ' ' ' ' '__________ ' ' ' ___________ ' ' ' ' '__________ ' ' ' (postgis line) ' ' ---------- ----------- (shpfile) (result in the web browser) Can i do it using only the mapfile? Can i do it using the mapfile described below? Can i use symbol 0 to draw this lines? All this can work? Thanks Joao. >You can use postgres without using a scripting language. I think >Lowell was suggesting testing the map file using the scripting >language. > >Steve > >Stephen Lime >Data & Applications Manager >Minnesota DNR >500 Lafayette Road >St. Paul, MN 55155 >651-297-2937 >>> 10/11/01 03:14PM >>> Ok , but what I'm asking is if i can do it only using mapserver and its ".map" file and a database with postgis. I want to read the points of the line in the postgis table and create a layer with it as in the mapfile and show this points. Do I have to use a script language to do it? Can a do it only using the mapfile? > There should be syntax in the programming/scripting > language your using to turn the Postgre "trace" > function on. In perl the syntax is "$dbh->trace(2);" > where $dbh is an already declared database > handle/connection. The trace will in turn place > information regarding your database connection (if > there is one) in the web server log file. In apache on > RedHat the log is usually "/var/log/httpd/error_log". > Hope that helps. > Lowell Filak --- gispmpf at zipmail.com.br wrote: > Hello, > > I have another questio about mapserver/postgis > interface... > i have adapted the following script for mapserver: > > LAYER > CONNECTIONTYPE postgis > NAME 'Roads' > CONNECTION "user=postgres dbname=teste > host=localhost" > DATA "linha from teste" > STATUS ON > TYPE LINE > FILTER "id = 1" > CLASS > EXPRESSION ([id]=1) > COLOR 255 22 22 > SYMBOL 0 > SIZE 2 > END > CLASS > # All the rest are darker and only 1 pixel wide > EXPRESSION ([id]>1) > COLOR 205 92 82 > END > END > my intention is to draw the lines of this database > in a web browser > but i dont have any results with it > How can i know if this script is realy conecting > with the postgis database? > and if it is ... how can i see what is wrong? > > Thanks > Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From matthew.mcguire at metc.state.mn.us Sat Oct 13 13:24:40 2001 From: matthew.mcguire at metc.state.mn.us (Matthew McGuire) Date: Sat, 13 Oct 2001 14:24:40 -0600 Subject: [mapserver-users] Wireless devices Message-ID: Hey list, I am trying to develop a mapservice for wireless devices (well the Palm really, since that's all I have). Is anyone else working on anything like that? I have many questions.... I'll just throw some out there. Image type Does anyone have any experience optimizing JPEG for the Palm? Does any know if any Wireless browsers support PNG? I have tried AvantGo, Handspring Blazer, Palmscape, and Proxiweb (what happened to Proxiweb?), with no luck? Has anyone ever used the PocketPC emulator? Do you know how to connect it to the web? Right now, I have only had success serving JPEGs and accessing them using a PalmOS device with the AvantGo browser. I suspect GIF would work, but our Mapserver was not compiled for GIFs. If anyone knows of any other configurations that will work, I'd like to hear about it. Thanks, Matt From pharrer at idmail.com Sun Oct 14 13:01:51 2001 From: pharrer at idmail.com (P.Harrer) Date: Sun, 14 Oct 2001 13:01:51 -0700 Subject: [mapserver-users] demo problem cont... Message-ID: <001b01c154eb$137f1d70$158942d8@t4t6q6> Hello. It seems that I can only get the demo to work when I first open the ms exlporer browser from the Personal Web Manager. When I open (from PWS) my local alias, then type in the rest of the URL to the demo_init.html file, the demo works. If I just open the browser from the desktop, then type in the url to the demo_init. html file, the following message is returned: msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO10030896621376.gif) Any clues as to why this might be? -Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Sun Oct 14 16:40:43 2001 From: ed at topozone.com (Ed McNierney) Date: Sun, 14 Oct 2001 19:40:43 -0400 Subject: [mapserver-users] demo problem cont... Message-ID: <13858AA1A74F30419F319ACB66A9D122D39C@mercator.topozone.com> Pete - This is usually due to the anonymous Web user account not having Write access to that directory. You need to use the Windows Explorer or similar tool to make sure the IUSR_ (the anonymous Web user account) has Write access. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: P.Harrer [mailto:pharrer at idmail.com] Sent: Sunday, October 14, 2001 4:02 PM To: Mapserver List Subject: [mapserver-users] demo problem cont... Hello. It seems that I can only get the demo to work when I first open the ms exlporer browser from the Personal Web Manager. When I open (from PWS) my local alias, then type in the rest of the URL to the demo_init.html file, the demo works. If I just open the browser from the desktop, then type in the url to the demo_init. html file, the following message is returned: msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\tmp\DEMO10030896621376.gif) Any clues as to why this might be? -Pete From lyndon.zimmermann at adelaide.edu.au Sun Oct 14 22:29:02 2001 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Mon, 15 Oct 2001 14:59:02 +0930 Subject: [mapserver-users] Shapefiles - different formats? References: Message-ID: <3BCA741E.8B2DCF0F@adelaide.edu.au> Janet, I don't think ArcView looks at the .prj file at all, you can have any rubbish in it, UNTIL you want to use a reprojection tool. I would almost classify it as metadata. I would try reprojecting your "functional" shapefile and see how it copes with the .prj file. ArcGIS, however, actually looks at the .prj file (if it exists) and tries a reproject on the fly with it. Your results will vary according to the validity of the .prj file. I don't think MapServer uses the .prj file either, so what you see in MapServer and ArcView will be different to what you see with ArcGIS. Lyndon Z Janet Ciavarelli wrote: > > Hmmmm, it still doesn't work. I now have the .prj file as well, but still the .shp,.shx and .dbf I created using mapscript together with the .prj does not work in ArcMap 8.1 but works fine in ArcView 3.2. > > Janet Ciavarelli > GIS Programmer/Analyst > City of Kamloops, BC > (250) 828-3393 > jciavarelli at city.kamloops.bc.ca > > >>> "Ed McNierney" 10/05/01 09:58am >>> > Janet et al. - > > Janet seems to have found the problem. It appears that ArcGIS 8.1 > *requires* a .prj file (which describes the shapefile's projection, not > an ArcView project), which (all else being equal) is a pretty good > thing. ArcView 3.2 does not require .prj files. > > PRJ files are simple text files that probably look familiar to PROJ > users - here's the contents of a simple one. > > proj=utm > zone=15 > units=m > ellps=GRS80 > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: imap at chesapeake.net [mailto:imap at chesapeake.net] > Sent: Friday, October 05, 2001 12:54 PM > To: mapserver-users at lists.gis.umn.edu > Cc: Janet Ciavarelli; Ed McNierney > Subject: Re: [mapserver-users] Shapefiles - different formats? > > ArcView will read the 3 files just fine. You have to create > or Open a New Project, then Add Layer, then browse to the > dir where your shapefiles are, then pick one. > > A somewhat related comment, There are actually a other > files that sometimes accompany a shapefile. > > .shp, .shx, .dbf (main 3 files) > .sbn, .ixs, .mxs (??? mystery files) > .prj, .apr (project files I think) > > I think the .ixs and .mxs are geocoding indexes > and .sbn??? who knows. I'd really like to know > the layout of these other files. I am not sure > if they come from ArcInfo, or what? I see a few > 3rd party companies create these files within their > ArcView Format, but it may be a proprietary aspect > of Arc??? If anyone has info, please reply an email. > > Anyway, The .apr(.prj?) are in ascii and is a long > list of name/value pairs, so a script should be able > to generate/manipulate OK. > > Regards, > > Chris Stuber (mapsurfer) > Silicon Mapping Solutions, Inc > (410)257-3187 > > Janet Ciavarelli wrote: > > > > Hi Ed, > > I see what the difference is now. I went into ArcCatalog and > created an empty shapefile, and I looked in explorer. It creates 4 > files! Not just the 3 files that it used to use (.shp, .shx, .dbf). > > > > I've attached all the four files. So that explains why ArcView 3.2 can > open the file though. Cause it finds the 3 files and just ignores the > 4th. But ArcMap 8 wants all 4 files. The 4th file is a .prj file. I will > have to find out what's in it and get my script to create that as well. > Also, maybe that utility you advised me to grab will create it. I will > check when I get time which my be a long time from now. > > > > Thanx for your help. Janet. > > > > >>> "Ed McNierney" 10/04/01 05:49pm >>> > > Janet - > > > > Can you create an empty point shapefile in 8.1 and send that to me, > too? > > I don't have 8.1, but I can take a look at the shapefile to see if > > there's anything different. > > > > - Ed > > > > -----Original Message----- > > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > > Sent: Thursday, October 04, 2001 4:11 PM > > To: Ed McNierney > > Subject: RE: [mapserver-users] Shapefiles - different formats? > > > > Yes, same symptom even with records added. > > > > >>> "Ed McNierney" 10/04/01 01:10pm >>> > > Janet - > > > > Do you get the same symptom when you add records to the shapefile? > > > > - Ed > > > > -----Original Message----- > > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > > Sent: Thursday, October 04, 2001 4:03 PM > > To: Ed McNierney > > Subject: RE: [mapserver-users] Shapefiles - different formats? > > > > Hi Ed, > > Here's a copy of the shapefile. BTW, it is an empty one but it > should > > be successfully able to open empty shapefiles as well. We've tried it > > with both empty and un-empty ones and get the same results: it opens > > find in AV 3.2 but errors out in AV 8.1 > > > > Janet. > > > > Janet Ciavarelli > > GIS Programmer/Analyst > > City of Kamloops, BC > > (250) 828-3393 > > jciavarelli at city.kamloops.bc.ca > > > > >>> "Ed McNierney" 10/04/01 12:38pm >>> > > Janet - > > > > I certainly expect 8.1 reads 3.2 shapefiles (at least, in general). > > Perhaps it's more likely that you're creating a slightly out-of-spec > > shapefile that's being tolerated by 3.2, but 8.1 is being fussier > about. > > > > There's a tool called shpfix in the GDAL distribution that might > > possibly help clean up the file. If you'd like to email me the > > shapefile I'll take a look at it. > > > > - Ed > > > > Ed McNierney > > Chief Mapmaker > > TopoZone.com > > ed at topozone.com > > (978) 251-4242 > > > > -----Original Message----- > > From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] > > Sent: Thursday, October 04, 2001 2:17 PM > > To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu > > Subject: [mapserver-users] Shapefiles - different formats? > > > > Sort of off topic, but thought I'd ask anyways in case anyone knows. I > > have written a perl/mapscript to create a shapefile. I can view the > > shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI > > ArcView 8.1, I get an error. Is anyone out there aware of any > > differences between shapefile formats between different products? > > > > Janet. > > > > > > > > Janet Ciavarelli > > GIS Programmer/Analyst > > City of Kamloops, BC > > (250) 828-3393 > > jciavarelli at city.kamloops.bc.ca > > > > > ------------------------------------------------------------------------ > -------- > > Name: shapev8.dbf > > shapev8.dbf Type: unspecified type (application/octet-stream) > > Encoding: base64 > > Description: dBase 3 database > > > > shapev8.prjName: shapev8.prj > > Type: Plain Text (text/plain) > > > > Name: shapev8.shp > > shapev8.shp Type: ESRI Shapefile > (application/x-unknown-content-type-shpfile) > > Encoding: base64 > > > > Name: shapev8.shx > > shapev8.shx Type: unspecified type (application/octet-stream) > > Encoding: base64 -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) "Bioenergy Atlas for Australia" Co-ordinator University of Adelaide Agronomy and Farming Systems C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au http://sg211.gisca.adelaide.edu.au/lzimmerm/zimm.htm Biomass Energy Atlas Website (note it has moved!): http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From pharrer at idmail.com Mon Oct 15 01:22:40 2001 From: pharrer at idmail.com (P.Harrer) Date: Mon, 15 Oct 2001 01:22:40 -0700 Subject: [mapserver-users] demo problem cont... References: <13858AA1A74F30419F319ACB66A9D122D39C@mercator.topozone.com> Message-ID: <001501c15552$94a4ebc0$078942d8@t4t6q6> Hmmm... Tried to correct the problem using your advice, but it still doesn't work. I've set the Internet Guest Account to read and write access (in the security dialog box) and tried different permissions too, but I still get the msSaveImage error message... -Pete ----- Original Message ----- From: "Ed McNierney" To: "P.Harrer" ; "Mapserver List" Sent: Sunday, October 14, 2001 4:40 PM Subject: RE: [mapserver-users] demo problem cont... > Pete - > > This is usually due to the anonymous Web user account not having Write > access to that directory. You need to use the Windows Explorer or > similar tool to make sure the IUSR_ (the anonymous Web user > account) has Write access. > > - Ed > Ed McNierney > Chief Mapmaker > TopoZone.com > > -----Original Message----- > From: P.Harrer [mailto:pharrer at idmail.com] > Sent: Sunday, October 14, 2001 4:02 PM > To: Mapserver List > Subject: [mapserver-users] demo problem cont... > > > Hello. > > It seems that I can only get the demo to work when I first open the ms > exlporer browser from the Personal Web Manager. > > When I open (from PWS) my local alias, then type in the rest of the URL > to the demo_init.html file, the demo works. If I just open the browser > from the desktop, then type in the url to the demo_init. html file, the > following message is returned: > > msSaveImage(): Unable to access file. > (C:\Inetpub\wwwroot\tmp\DEMO10030896621376.gif) > > Any clues as to why this might be? > > -Pete > > From pharrer at idmail.com Mon Oct 15 01:25:07 2001 From: pharrer at idmail.com (P.Harrer) Date: Mon, 15 Oct 2001 01:25:07 -0700 Subject: [mapserver-users] demo problem corrected! Message-ID: <002001c15552$e6f68780$078942d8@t4t6q6> Wait...It does work...seems to have started working when I connected to the internet. THANKS for the help! -Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: From jga at scot.cnes.fr Mon Oct 15 02:37:08 2001 From: jga at scot.cnes.fr (jrom) Date: Mon, 15 Oct 2001 11:37:08 +0200 Subject: [mapserver-users] Raster image flipped in 3.5... Message-ID: <200110150930.f9F9Uw520615@cnes.fr> Hi, I have a strange problem with mapserver 3.5 I'm using tiff images with tfw descriptor. It seems that the rendered images are flipped as if x coordinates were y coordinates and y coordinates were x coordinates...I'm using mapserver for quite a long time now and this problem only appears with 3.5 nightly build of mapserver. Any help would be appreciate Thanks in advance jrom From toni at giscampus.udg.es Mon Oct 15 03:07:08 2001 From: toni at giscampus.udg.es (=?iso-8859-1?Q?toni_hern=E1ndez?=) Date: Mon, 15 Oct 2001 12:07:08 +0200 Subject: [mapserver-users] cgi for NT with truetype and WMS support References: <3BC649B60000177D@www.zipmail.com.br> Message-ID: <00be01c15561$27e321f0$0e2fce82@udg.es> Hi, Does anyone know where I can find a mapserver CGI for Nt that supports truetype and WMS. Thanks. From morissette at dmsolutions.ca Mon Oct 15 06:06:37 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 15 Oct 2001 09:06:37 -0400 Subject: [mapserver-users] cgi for NT with truetype and WMS support References: <3BC649B60000177D@www.zipmail.com.br> <00be01c15561$27e321f0$0e2fce82@udg.es> Message-ID: <3BCADF5D.BDDC6505@dmsolutions.ca> toni hern?ndez wrote: > > Does anyone know where I can find a mapserver CGI for Nt that supports > truetype and WMS. > There's one in the following archive... it's a bit old (Sept. 4th), but it includes freetype and WMS: http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From assefa at dmsolutions.ca Mon Oct 15 07:36:07 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Mon, 15 Oct 2001 10:36:07 -0400 Subject: [mapserver-users] cgi for NT with truetype and WMS support References: <3BC649B60000177D@www.zipmail.com.br> <00be01c15561$27e321f0$0e2fce82@udg.es> <3BCADF5D.BDDC6505@dmsolutions.ca> Message-ID: <3BCAF457.B11D9927@dmsolutions.ca> I have just updated our site with the today's version of mapserver. The usl is still the same : http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip Daniel Morissette wrote: > toni hern?ndez wrote: > > > > Does anyone know where I can find a mapserver CGI for Nt that supports > > truetype and WMS. > > > > There's one in the following archive... it's a bit old (Sept. 4th), but > it includes freetype and WMS: > http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.armstrong at ntlworld.com Mon Oct 15 08:16:08 2001 From: david.armstrong at ntlworld.com (David Armstrong) Date: Mon, 15 Oct 2001 16:16:08 +0100 Subject: [mapserver-users] building gd-1.8.4 with freetype 2 under windows Message-ID: <000f01c1558c$51b01080$0100a8c0@davidpc> Building gd-1.8.4 under windows with freetype 2 I have noticed a few people on the list.saying that although they have built mapserver without errors being reported that it appears that the freetype2 option is not working , so i thought i would dig deep !!! my findings are that this assumption may be correct , adding have_libfreetype flag to the makefile appears not to carry across to gd i found by running the gdtesttf.exe & gdtestft.exe do indeed not have the freetype library. by forcing the result by adding :- #define HAVE_LIBFREETYPE to GD.H produced the correct results has anyone come across this or can confirm my outcome etc or even a fix ! so i am still looking at producing the correct makefile result Regards to All David From Chip.Hankley at GASAI.Com Mon Oct 15 09:39:00 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Mon, 15 Oct 2001 11:39:00 -0500 Subject: [mapserver-users] Shapefiles - different formats? Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3F3E@postoffice.GASAI.Com> Janet - Here's a little PHP/MapScript routine (taken almost totally from the mail archives) that creates three triangles (polylines NOT polygons). Note that the $shpFname variable would most likely need to be changed, depending on your setup. I'm able to view the resulting shapefile in both 3.2a and ArcMap (8.0.2). I am not creating ANY projection files. Cheers! Chip "; //---------------------------------------------------------- // done... cleanup //---------------------------------------------------------- //$shpFile->free(); echo "Shape File ($shpFname) closed.
"; echo "Dbase file closed.
"; dbase_close($dbfFile); function createPoint( $x, $y, $programId ) { GLOBAL $shpFile, $dbfFile; // Create shape $oShp = ms_newShapeObj(MS_SHP_ARC); $oLine = ms_newLineObj(); //Add some points to the line then close it on itself $oLine->addXY($x, $y); $oLine->addXY($x + 10, $y + 10); $oLine->addXY($x + 10, $y + 40); $oLine->addXY($x, $y); $oShp->add( $oLine ); $shpFile->addShape($oShp); // Write attribute record dbase_add_record($dbfFile, array($programId)); } ?> From jsmedsmo at gis.umn.edu Mon Oct 15 09:53:19 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Mon, 15 Oct 2001 11:53:19 -0500 Subject: [mapserver-users] [Fwd: error tracking] Message-ID: <3BCB147F.8020000@gis.umn.edu> -------- Original Message -------- Subject: error tracking Date: Thu, 11 Oct 2001 16:59:30 -0800 From: "Drake Steven T DPW ENV NAT RES ITAM(n)" To: mdp at lists Hi, A newbie with a question. Having trouble getting a map file to run. Any suggestions on how to track down the problem source? Or.... is there a software program which would run the map file, and stop on the line causing it to not execute? (I won't be able to respond to any replies until Monday. Thanks in advance) Steven From Regina.Obe.PFD at ci.boston.ma.us Mon Oct 15 11:38:34 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Mon, 15 Oct 2001 14:38:34 -0400 Subject: [mapserver-users] cgi for NT with truetype and WMS support Message-ID: I just tried loading the new release of the Php4.0.6 php_mapscript_35.dll and I get an "unable to load dynamic link library" error. The 9/4 build seems to work fine when I revert back. Does the new version have any additional dependencies that the 9/4 build didn't have? -----Original Message----- From: Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Sent: Monday, October 15, 2001 10:36 AM To: toni hern?ndez Cc: Daniel Morissette; Mapserver List Subject: Re: [mapserver-users] cgi for NT with truetype and WMS support I have just updated our site with the today's version of mapserver. The usl is still the same : http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip Daniel Morissette wrote: toni hern?ndez wrote: > > Does anyone know where I can find a mapserver CGI for Nt that supports > truetype and WMS. > There's one in the following archive... it's a bit old (Sept. 4th), but it includes freetype and WMS: http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jciavarelli at city.kamloops.bc.ca Mon Oct 15 12:00:48 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Mon, 15 Oct 2001 12:00:48 -0700 Subject: [mapserver-users] Multipoint Objects Message-ID: Hello Everyone, I'm still trying to create a point shapefile that works both in ArcView 3.2 an d 8.1 Also, I am NOT using PHP; just plain mapscript and Perl. There's one thing I don't get in the documentation for mapscript The definition for a shapeObj says that a shapeObj is made up of lineObjs. So with this definition, how do I store a multipoint object in a shapeObject? Do I store it as a line object? Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca From assefa at dmsolutions.ca Mon Oct 15 12:33:59 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Mon, 15 Oct 2001 15:33:59 -0400 Subject: [mapserver-users] cgi for NT with truetype and WMS support References: Message-ID: <3BCB3A27.CC5D2F38@dmsolutions.ca> Hi There, I realized that I had in my compilation a link to the libwww libarary (which is used for the WMS CLIENT in mapserver). There is a need to have some dll's related to libwww for this version to work properly. I have placed 2 zip files : - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip : with no libwww support. - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35_libwww.zip : with libwww support Please use the one without the libwww support and it should resolve the problem. Later, "Obe, Regina DND\\MIS" wrote: > I just tried loading the new release of the Php4.0.6 > php_mapscript_35.dll and I get an "unable to load dynamic link > library" error.The 9/4 build seems to work fine when I revert back. > Does the new version have any additional dependencies that the 9/4 > build didn't have? > > -----Original Message----- > From: Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] > Sent: Monday, October 15, 2001 10:36 AM > To: toni hern?ndez > Cc: Daniel Morissette; Mapserver List > Subject: Re: [mapserver-users] cgi for NT with truetype and > WMS support > I have just updated our site with the today's version of > mapserver. The usl is still the same : > > http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip > > > > Daniel Morissette wrote: > > > toni hern?ndez wrote: > > > > > > Does anyone know where I can find a mapserver CGI for Nt > > that supports > > > truetype and WMS. > > > > > > > There's one in the following archive... it's a bit old > > (Sept. 4th), but > > it includes freetype and WMS: > > http://www2.dmsolutions.ca/ma > > server/dl/php4.0.6_php_mapscript_35.zip > > > > -- > > -- > > --------------------------------------------------------- > > Daniel Morissette morissette at dmsolutions.ca > > > > DM Solutions Group http://www.dmsolutions.ca/ > > > > ------------------------------------------------------------ > > > > Don't put for tomorrow what you can do today, because if > > > > you enjoy it today you can do it again tomorrow. > > -- > -- > ------------------------------------------------------------- > > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 > --------------------- > ------------------------------------------ > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Regina.Obe.PFD at ci.boston.ma.us Mon Oct 15 13:26:37 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Mon, 15 Oct 2001 16:26:37 -0400 Subject: [mapserver-users] cgi for NT with truetype and WMS support Message-ID: Assefa, Thanks for the quick response. Seems to load fine now although when I use it on the script I was using with the 9/4 build, it hangs. It could be something I'm doing wrong in my map file though since on some sample mapscript tests I have that use other map files, seems to run fine. -----Original Message----- From: Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Sent: Monday, October 15, 2001 3:34 PM To: Obe, Regina DND\MIS Cc: Mapserver List; Chip.Hankley at GASAI.Com Subject: Re: [mapserver-users] cgi for NT with truetype and WMS support Hi There, I realized that I had in my compilation a link to the libwww libarary (which is used for the WMS CLIENT in mapserver). There is a need to have some dll's related to libwww for this version to work properly. I have placed 2 zip files : - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip : with no libwww support. - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35_libwww.zip : with libwww support Please use the one without the libwww support and it should resolve the problem. Later, "Obe, Regina DND\\MIS" wrote: I just tried loading the new release of the Php4.0.6 php_mapscript_35.dll and I get an "unable to load dynamic link library" error.The 9/4 build seems to work fine when I revert back. Does the new version have any additional dependencies that the 9/4 build didn't have? -----Original Message----- From: Assefa Yewondwossen [ mailto:assefa at dmsolutions.ca ] Sent: Monday, October 15, 2001 10:36 AM To: toni hern?ndez Cc: Daniel Morissette; Mapserver List Subject: Re: [mapserver-users] cgi for NT with truetype and WMS support I have just updated our site with the today's version of mapserver. The usl is still the same : http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip Daniel Morissette wrote: toni hern?ndez wrote: > > Does anyone know where I can find a mapserver CGI for Nt that supports > truetype and WMS. > There's one in the following archive... it's a bit old (Sept. 4th), but it includes freetype and WMS: http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfischer at mpls.houstoneng.com Mon Oct 15 15:05:36 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Mon, 15 Oct 2001 17:05:36 -0500 Subject: [mapserver-users] ArcIMS Emulations Message-ID: <8879CCE0F0187742B7302A93A8B87B0902983D@mpls.houstoneng.com> Paul, Wow, it works great and it is blazin fast. It works just like you are connecting to Geography Network. This adds a big selling point to Mapserver. It is hard sometimes to convince clients that MapServer is the better choice over other IMS's. This was one of the sticking points that clients would bring up. This is great news. Would there be any limitations to what OS this script could run on? I run MapServer on Windows. I know Perl is not the popular choice of MapServer/MapScript users that use Windows. Is a port to PHP possible? Another thing I commonly run into is clients that store all their imagery in Mr. Sid format. I know there has been some discussion in the past about the possibility of adding Mr. SID support to MapServer and the conclusion was it would not be that easy to do. Has anyone else found a creative solution to convincing clients that have imagery stored in Mr. SID to use MapServer over another IMS that supports Mr. SID imagery? Great work Paul. Have a good day, Brian -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Friday, October 12, 2001 4:35 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] ArcIMS Emulations Hey, all you people with Arc8. Open up ArcCatalog, go to 'Create connection to internet server...' and enter 'http://mapserver.refractions.net' into the URL box. Then drag one of the services into ArcMap. Voila! What is the big deal? That ain't no ArcIMS server on that machine: it is Mapserver, with a perl front-end to make it act like ArcIMS. This is dependant on some hacks I've put into my version of Mapserver. It also is missing support for some of the ESRI 'standard' projection ids. When the projection stuff is standard in proj4 (Frank is looking at it) and I have got my hacks cleanly into mapserver/mapscript I'll release the script. Maybe by then it will also do client preferences for rendering too... oooooh... (and have more elegant XML handling...) -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Mon Oct 15 15:48:32 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 15 Oct 2001 15:48:32 -0700 Subject: [mapserver-users] ArcIMS Emulations References: <8879CCE0F0187742B7302A93A8B87B0902983D@mpls.houstoneng.com> Message-ID: <3BCB67C0.59BFAEFD@refractions.net> Brian Fischer wrote: > > Paul, > > Wow, it works great and it is blazin fast. It works just like you are > connecting to Geography Network. This adds a big selling point to > Mapserver. It is hard sometimes to convince clients that MapServer is > the better choice over other IMS's. This was one of the sticking points > that clients would bring up. This is great news. Would there be any > limitations to what OS this script could run on? I run MapServer on > Windows. I know Perl is not the popular choice of MapServer/MapScript > users that use Windows. Is a port to PHP possible? Hmmm, that's two people now asking for PHP. I was going to do a re-write before moving onwards, to make the code cleaner. I will investigate PHP a bit, and see how good the XML handling is. Don't you people realize that Perl is God, and God is Perl? > Another thing I commonly run into is clients that store all their > imagery in Mr. Sid format. I know there has been some discussion in the > past about the possibility of adding Mr. SID support to MapServer and > the conclusion was it would not be that easy to do. Has anyone else > found a creative solution to convincing clients that have imagery stored > in Mr. SID to use MapServer over another IMS that supports Mr. SID > imagery? Pretty hard to convince them that they chose the wrong darn format :) There is a Mr.SID SDK and the LizardTech site says they welcome people adding SID format to their viewers for free. So even though it's a patented format, it could be added royalty free. Good coding project for someone (not me! :). -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From morissette at dmsolutions.ca Mon Oct 15 16:54:41 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 15 Oct 2001 19:54:41 -0400 Subject: [mapserver-users] ArcIMS Emulations References: <8879CCE0F0187742B7302A93A8B87B0902983D@mpls.houstoneng.com> <3BCB67C0.59BFAEFD@refractions.net> Message-ID: <3BCB7741.10501982@dmsolutions.ca> Paul Ramsey wrote: > > Hmmm, that's two people now asking for PHP. I was going to do a re-write > before moving onwards, to make the code cleaner. I will investigate PHP > a bit, and see how good the XML handling is. You may want to have a look at Php.Xpath. http://sourceforge.net/projects/phpxpath/ Much simpler than trying to use the XML parser API embedded in PHP directly. I use phpxpath to parse XML capabilities in a WMS client application that we're building with MapServer. If you're not familiar with the XPath syntax, the following tutorial will teach you the basics in 15 minutes (really!): http://www.zvon.org/xxl/XPathTutorial/General/examples.html > Don't you people realize > that Perl is God, and God is Perl? > But don't forget that Windows is a creation of the Evil Empire. That would explain why Windows and Perl don't go along very well! ;-) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From woodbri at mediaone.net Mon Oct 15 17:42:49 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Mon, 15 Oct 2001 20:42:49 -0400 Subject: [mapserver-users] MapServer Newbie Message-ID: <3BCB8289.7179298D@mediaone.net> Hi all, I just downloaded ms_3.4 and ms_demo and have them built and installed, but I am having a problem with the demo.map file, specifically parsing the symbol.sym file I made by: cat shaded.sym marker.sym line.sym > symbol.sym I have commented out the following lines #SHADESET #END # SHADESETMARKERSET #END # MapServer Demo Marker Set #LINESET and converted the gif files to png files, but now get an error parsing the line styles getSymbol(): Symbol definition error. (STYLED):(110) It looks like maplexer.l is not designed to parse this file in 3.4. Does anyone have a working symbol.sym file for ms_3.4 Many thanks, -Stephen Woodbridge http://swoodbridge.com/ Here is what my symbol.sym file looks like: #SHADESET Symbol Type VECTOR TRANSPARENT 0 Points 0 1 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 1 0 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 0 1 1 END END Symbol Type VECTOR TRANSPARENT 0 Points 0 1 1 0 END END Symbol Type VECTOR Points 0 1 1 0 -99 -99 0 0 1 1 END END Symbol Type ELLIPSE Filled Points 1 1 END END #END # SHADESETMARKERSET Symbol Name 'circle' Type ELLIPSE Filled Points 1 1 END END Symbol Name 'interstate_shield' Type PIXMAP # Image 'images/interstate.gif' Image 'images/interstate.png' Transparent 7 END Symbol Name 'us_highway_shield' Type PIXMAP # Image 'images/ushwy.gif' Image 'images/ushwy.png' Transparent 1 END Symbol Name 'state_highway_shield' Type PIXMAP # Image 'images/sthwy.gif' Image 'images/sthwy.png' END Symbol Name 'county_highway_shield' Type PIXMAP # Image 'images/ctyhwy.gif' Image 'images/ctyhwy.png' Transparent 0 END #END # MapServer Demo Marker Set #LINESET SYMBOL TYPE ELLIPSE POINTS 1 1 END END Symbol Type STYLED Style 0 0 0 1 0 0 END END Symbol Type STYLED Style -1 0 0 0 0 0 1 0 0 END END Symbol Type STYLED Style 0 3 3 END END Symbol Type STYLED Style 0 6 6 END END Symbol Type STYLED Style 0 3 3 1 3 3 END END Symbol Type STYLED Style 0 6 6 1 6 6 END END Symbol Type STYLED Style -1 3 3 0 3 3 1 3 3 END END Symbol Type STYLED Style -1 6 6 0 6 6 1 6 6 END END Symbol Type STYLED Style -1 0 0 1 0 0 END END Symbol Type STYLED Style -1 6 6 1 6 6 END END Symbol Type STYLED Style -1 0 0 0 6 6 1 0 0 END END Symbol Type Styled Style -1 0 0 0 12 12 1 0 0 END END Symbol Type STYLED Style -1 1 7 0 0 0 1 1 7 END END Symbol Type STYLED Style -1 1 5 0 1 5 0 1 2 1 1 5 END END END # LineSet From gispmpf at zipmail.com.br Mon Oct 15 19:53:23 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Mon, 15 Oct 2001 23:53:23 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?Error=20parsing=20POSTGIS=20?= Message-ID: <3BC09F290000E5E4@www.zipmail.com.br> Hi, Testing the definition of the layer below : LAYER CONNECTIONTYPE postgis NAME 'Roads' CONNECTION "user=postgres dbname=teste host=localhost" DATA "linha from teste" STATUS ON TYPE LINE CLASS EXPRESSION (id=1) COLOR 255 22 22 SYMBOL 'line' SIZE 2 END CLASS EXPRESSION (id=1) COLOR 205 92 82 END END this returned the following error: msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS connection information. anybody can help me to see what is wrong? PS: the postgres database is already started. Thanks Jo?o. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From steve.lime at dnr.state.mn.us Mon Oct 15 20:15:25 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 15 Oct 2001 22:15:25 -0500 Subject: [mapserver-users] ArcIMS Emulations Message-ID: On the Mr. SID issue. If someone can convince LizardTech to support platforms other than Windows then it will be supported, until then... You might be able to integrate Mr. Sid's image server into a MapServer application, especially if that product supported WMS. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Brian Fischer" 10/15/01 17:11 PM >>> Paul, Wow, it works great and it is blazin fast. It works just like you are connecting to Geography Network. This adds a big selling point to Mapserver. It is hard sometimes to convince clients that MapServer is the better choice over other IMS's. This was one of the sticking points that clients would bring up. This is great news. Would there be any limitations to what OS this script could run on? I run MapServer on Windows. I know Perl is not the popular choice of MapServer/MapScript users that use Windows. Is a port to PHP possible? Another thing I commonly run into is clients that store all their imagery in Mr. Sid format. I know there has been some discussion in the past about the possibility of adding Mr. SID support to MapServer and the conclusion was it would not be that easy to do. Has anyone else found a creative solution to convincing clients that have imagery stored in Mr. SID to use MapServer over another IMS that supports Mr. SID imagery? Great work Paul. Have a good day, Brian -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Friday, October 12, 2001 4:35 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] ArcIMS Emulations Hey, all you people with Arc8. Open up ArcCatalog, go to 'Create connection to internet server...' and enter 'http://mapserver.refractions.net' into the URL box. Then drag one of the services into ArcMap. Voila! What is the big deal? That ain't no ArcIMS server on that machine: it is Mapserver, with a perl front-end to make it act like ArcIMS. This is dependant on some hacks I've put into my version of Mapserver. It also is missing support for some of the ESRI 'standard' projection ids. When the projection stuff is standard in proj4 (Frank is looking at it) and I have got my hacks cleanly into mapserver/mapscript I'll release the script. Maybe by then it will also do client preferences for rendering too... oooooh... (and have more elegant XML handling...) -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Mon Oct 15 20:46:19 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 15 Oct 2001 20:46:19 -0700 Subject: [mapserver-users] ArcIMS Emulations References: <8879CCE0F0187742B7302A93A8B87B0902983D@mpls.houstoneng.com> Message-ID: <3BCBAD8B.1739832E@refractions.net> Brian Fischer wrote: > Is a port to PHP possible? Upon further research, it appears that the answer is "not until PHP 4.0.7". ArcXML clients send requests which have data URL encoded (ServiceName=Blah) simultaneous with sending raw XML in the POST. Firstly, PHP expects you to either POST requests, or GET requests (URL encoded), but not to do BOTH. I do not know if 4.0.7 will allow one to do this. Maybe. Secondly, PHP currently cannot access raw data from the POST. It expects the data to be in key/value pairs, and ArcXML is just a raw lump of XML, without a variable name. Apparently version 4.0.7 will include the ability to access raw POST data. At that time, the next bridge, getting simultaneous URL encoded and posted data, can hopefully also be crossed. Paul From paul at tei.or.th Mon Oct 15 22:20:34 2001 From: paul at tei.or.th (Paul Hastings) Date: Tue, 16 Oct 2001 12:20:34 +0700 Subject: [mapserver-users] mapserver and coldfusion (cfx) Message-ID: <003701c15602$48acebe0$0d729acb@tei.or.th> we're (actually one of my colleagues) about to finally start into porting mapscript to cfx. i'm looking to solict ideas/needs/whatever from any cf developers out there in mapserver land. thanks. ---------------------------------------------------- Paul Hastings paul at tei.or.th Director Environmental Information Center Thailand Environment Institute Member Team Macromedia (Allaire) http://www.tei.or.th/eic --------------------------- From sutton_t at giug.net Tue Oct 16 01:14:07 2001 From: sutton_t at giug.net (Tim Sutton) Date: Tue, 16 Oct 2001 09:14:07 +0100 (BST) Subject: [mapserver-users] ArcIMS Emulations In-Reply-To: <3BCB67C0.59BFAEFD@refractions.net> Message-ID: Hi You can make that at least three people asking for PHP support :-) Tim On Mon, 15 Oct 2001, Paul Ramsey wrote: > > > Brian Fischer wrote: > > > > Paul, > > > > Wow, it works great and it is blazin fast. It works just like you are > > connecting to Geography Network. This adds a big selling point to > > Mapserver. It is hard sometimes to convince clients that MapServer is > > the better choice over other IMS's. This was one of the sticking points > > that clients would bring up. This is great news. Would there be any > > limitations to what OS this script could run on? I run MapServer on > > Windows. I know Perl is not the popular choice of MapServer/MapScript > > users that use Windows. Is a port to PHP possible? > > Hmmm, that's two people now asking for PHP. I was going to do a re-write > before moving onwards, to make the code cleaner. I will investigate PHP > a bit, and see how good the XML handling is. Don't you people realize > that Perl is God, and God is Perl? > > > Another thing I commonly run into is clients that store all their > > imagery in Mr. Sid format. I know there has been some discussion in the > > past about the possibility of adding Mr. SID support to MapServer and > > the conclusion was it would not be that easy to do. Has anyone else > > found a creative solution to convincing clients that have imagery stored > > in Mr. SID to use MapServer over another IMS that supports Mr. SID > > imagery? > > Pretty hard to convince them that they chose the wrong darn format :) > There is a Mr.SID SDK and the LizardTech site says they welcome people > adding SID format to their viewers for free. So even though it's a > patented format, it could be added royalty free. Good coding project for > someone (not me! :). > > From jga at scot.cnes.fr Tue Oct 16 01:36:20 2001 From: jga at scot.cnes.fr (jrom) Date: Tue, 16 Oct 2001 10:36:20 +0200 Subject: [mapserver-users] Geographic query with postgis Message-ID: <200110160833.f9G8XW511970@cnes.fr> Hi, I'm using mapserver with postgis data. It's working wonderfully! But i've a problem with more complex geographic query. For example, i want to get all the houses within a distance of 500 m from roads. A sql query would be: SELECT house.geo_value, road.geo_value FROM house, road WHERE Distance(house.geo_value, road.geo_value) < 500 It works in an sql console without problem. So i try to do the same in the mapfile. DATA "house.geo_value, road.geo_value FROM house, road" FILTER "Distance(house.geo_value, road.geo_value) < 500" This time it doesn't work and mapserver returns an error: msPOSTGISLayerWhichShapes(): Query error. Error parsing POSTGIS data variable. Must contain 'geometry_column FROM table_name'. It seems that you canno't access more than one table or column in the DATA field of the mapfile. Any clue for this problem? Thanks in advance jrom From armin.burger at territoriumonline.com Tue Oct 16 03:46:31 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Tue, 16 Oct 2001 12:46:31 +0200 Subject: [mapserver-users] Displaying very large shapefiles Message-ID: <200110161047.MAA23029@efferd.nettz.com> Hi everybody, I tried to display a really huge shapefile with 2.5 million polygons (the .shp file has about 450 MB). I used the 'shptree' to calculate the spatial index. But also with the index file (.qix) it takes several minutes to process the data and produce the image (with cpu usage constantly beyond 95 %). Also any identify is nearly impossible. The layer was only activated for a bigger scale, so with a spatial index only a small amount of the shapes should have to be processed. But I got the impression that there was nearly no difference in speed between using the index file and not using it. Could it be that the shptree program cannot handle shapefiles with too many features? The index file itself has 14 MB. I was already using quite large shapefiles with 600000 polygons or a contour line-shapefile with more than 600 MB. Even with both together activated the processing was always very fast with a reaction time of 2-5 seconds and also very fast response for identify clicks. Of course also here with displaying the layers only for high zoom level and with index file. Any suggestions? Changing parameters of shptree? Tiling the data would probably help but needs additional preprocessing. Armin -- Armin Burger Territorium Online Via Siemens 19 - 39100 Bolzano - Italia _ From morissette at dmsolutions.ca Tue Oct 16 04:29:00 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 16 Oct 2001 07:29:00 -0400 Subject: [mapserver-users] MapServer Newbie References: <3BCB8289.7179298D@mediaone.net> Message-ID: <3BCC19FC.C26AE380@dmsolutions.ca> Stephen Woodbridge wrote: > > getSymbol(): Symbol definition error. (STYLED):(110) > > It looks like maplexer.l is not designed to parse this file in 3.4. Does > anyone have a working symbol.sym file for ms_3.4 > Stephen, STYLED symbols were taken out in 3.4 (not sure what repaced them). You can either take all STYLED symbols out of your symbol file, or download http://www2.dmsolutions.ca/mapserver/dl/symbols-for-ms34.sym -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bruno_gendron at yahoo.com Tue Oct 16 06:40:41 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Tue, 16 Oct 2001 15:40:41 +0200 (CEST) Subject: [mapserver-users] ArcIMS Emulations In-Reply-To: <3BCBAD8B.1739832E@refractions.net> Message-ID: <20011016134041.58519.qmail@web20705.mail.yahoo.com> Hi Paul, You're right, as of 4.0.6, PHP cannot handle simultaneously POST and GET requests. You have to trick your server to re-encode the GET part in the POST part and redirect this new request to your PHP script. However, PHP can read raw POST data, in the variable $HTTP_RAW_POST_DATA... -- Bruno --- Paul Ramsey a ?crit?: > Brian Fischer wrote: > > Is a port to PHP possible? > > Upon further research, it appears that the answer is > "not until PHP > 4.0.7". ArcXML clients send requests which have data > URL encoded > (ServiceName=Blah) simultaneous with sending raw XML > in the POST. > > Firstly, PHP expects you to either POST requests, or > GET requests (URL > encoded), but not to do BOTH. I do not know if 4.0.7 > will allow one to > do this. Maybe. > Secondly, PHP currently cannot access raw data from > the POST. It expects > the data to be in key/value pairs, and ArcXML is > just a raw lump of XML, > without a variable name. Apparently version 4.0.7 > will include the > ability to access raw POST data. At that time, the > next bridge, getting > simultaneous URL encoded and posted data, can > hopefully also be crossed. > > Paul ___________________________________________________________ Un nouveau Nokia Game commence. Allez sur http://fr.yahoo.com/nokiagame avant le 3 novembre pour participer ? cette aventure tous m?dias. From woodbri at mediaone.net Tue Oct 16 06:47:43 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Tue, 16 Oct 2001 09:47:43 -0400 Subject: [mapserver-users] Strategy for dealing with Census Data? Message-ID: <3BCC3A7F.6D47D3C3@mediaone.net> Hi all, As a newbie to this list, I am wondering if there is a searchable archive that I can check before I post? Where? How? Has anyone loaded up the Census data onto MapServer? In reading the documentation it appears that layers most be single shp fileset - Is this correct? If so, that implies that all 50+ state/state equiv. files that the Census releases for a given "layer" need to be merged into a single huge .shp file - Is this correct? Then I suppose you need to run shptree on it. Is there a utility to combine .shp files if that is required? Is there a better/other strategy for dealing with this that I have missed? Thanks for the help, -Stephen Woodbridge http://web-maps.org/ From kames at keyspanenergy.com Tue Oct 16 06:44:59 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Tue, 16 Oct 2001 09:44:59 -0400 Subject: [mapserver-users] ArcIMS Emulations References: <8879CCE0F0187742B7302A93A8B87B0902983D@mpls.houstoneng.com> Message-ID: <3BCC39DB.55BCD701@keyspanenergy.com> While PHP is a popular thing, I'd like to cast my vote to maintain the Perl development. (Call me old-fashioned!) Kieran Brian Fischer wrote: > Paul, > > Wow, it works great and it is blazin fast. It works just like you are > connecting to Geography Network. This adds a big selling point to > Mapserver. It is hard sometimes to convince clients that MapServer is > the better choice over other IMS's. This was one of the sticking points > that clients would bring up. This is great news. Would there be any > limitations to what OS this script could run on? I run MapServer on > Windows. I know Perl is not the popular choice of MapServer/MapScript > users that use Windows. Is a port to PHP possible? > > Another thing I commonly run into is clients that store all their > imagery in Mr. Sid format. I know there has been some discussion in the > past about the possibility of adding Mr. SID support to MapServer and > the conclusion was it would not be that easy to do. Has anyone else > found a creative solution to convincing clients that have imagery stored > in Mr. SID to use MapServer over another IMS that supports Mr. SID > imagery? > > Great work Paul. > > Have a good day, > Brian > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey at refractions.net] > Sent: Friday, October 12, 2001 4:35 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] ArcIMS Emulations > > Hey, all you people with Arc8. Open up ArcCatalog, go to 'Create > connection to internet server...' and enter > 'http://mapserver.refractions.net' into the URL box. Then drag one of > the services into ArcMap. Voila! What is the big deal? That ain't no > ArcIMS server on that machine: it is Mapserver, with a perl front-end to > make it act like ArcIMS. > > This is dependant on some hacks I've put into my version of Mapserver. > It also is missing support for some of the ESRI 'standard' projection > ids. When the projection stuff is standard in proj4 (Frank is looking at > it) and I have got my hacks cleanly into mapserver/mapscript I'll > release the script. Maybe by then it will also do client preferences for > rendering too... oooooh... (and have more elegant XML handling...) > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Oct 16 06:48:52 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Tue, 16 Oct 2001 09:48:52 -0400 Subject: [mapserver-users] RE: mapserver and coldfusion (cfx) Message-ID: <7CDD7B94357FD5119E800002A537C46E22FC4D@s5-ccr-r1.ccrs.nrcan.gc.ca> Paul, Oooooh, I'd be very inetersted in seeing that! I'm afraid I'm really not qualified in helping with the coding, but I'll gladly beta-test it, and possibly help with documentation, as well as provide comments and ideas whenever I can. My first thoughts would be to write a MapScript like module for CF that would provide a very similar set of functions to CF in the same way MapScript does to Perl or Python ... I don't even know if that's doable with CF, but that would be it seems to be, the best, most consistent approach. I was also wondering about SWIG, Java and the Java Support built into CF (Especially 5). Might that be a path to follow? You'd hit 2 birds with one stone: A CF usable MapServer interface, AND a Java one! My main interest here is that we are in process of looking at Web content management systems, and MapServer integration will most likely be a factor. My current favorite is Zope, which is built on Python, and therefore supports MapServer ... But there are many CF based solutions out there I'd like ot be able to look at (As well as Java ones, hence my previous comment :). I suspect I'm not the only one with this kind of requirement either ... My .02 cents ... J.F. -----Original Message----- From: paul at tei.or.th [mailto:paul at tei.or.th] Sent: Tuesday, October 16, 2001 1:21 AM To: mapserver-users at lists.gis.umn.edu Cc: David.Fawcett at state.mn.us; Jean-Francois.Doyon at CCRS.NRCan.gc.ca Subject: mapserver and coldfusion (cfx) we're (actually one of my colleagues) about to finally start into porting mapscript to cfx. i'm looking to solict ideas/needs/whatever from any cf developers out there in mapserver land. thanks. ---------------------------------------------------- Paul Hastings paul at tei.or.th Director Environmental Information Center Thailand Environment Institute Member Team Macromedia (Allaire) http://www.tei.or.th/eic --------------------------- From gregliapis at hotmail.com Tue Oct 16 07:00:21 2001 From: gregliapis at hotmail.com (G??????? ???p??) Date: Tue, 16 Oct 2001 17:00:21 +0300 Subject: [mapserver-users] Problems with "make" Message-ID: Hi all, I am new to linux and mapserver and after I have configured mapserver 3_4 (with php4,postgis,gd1.8) and try to execute 'make' it produces the error: "no target". Why is this? Sorry for my English. Greg Liapis GREECE -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.fawcett at moea.state.mn.us Tue Oct 16 07:09:18 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Tue, 16 Oct 2001 09:09:18 -0500 Subject: [mapserver-users] RE: mapserver and coldfusion (cfx) Message-ID: I would also be interested in seeing a CF module, and I would be happy to put in some testing time as well. David. David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 From david.fawcett at moea.state.mn.us Tue Oct 16 07:11:38 2001 From: david.fawcett at moea.state.mn.us (Fawcett, David) Date: Tue, 16 Oct 2001 09:11:38 -0500 Subject: [mapserver-users] Strategy for dealing with Census Data? Message-ID: >As a newbie to this list, I am wondering if there is a searchable >archive that I can check before I post? Where? How? You can search the listserve archives at: http://mapserver.gis.umn.edu/cgi-bin/wilma/mapserver-users David J. Fawcett GIS / Databases MN Office of Environmental Assistance 520 Lafayette Rd N St. Paul, MN 55155 651.215.0200 From kenboss at dilbert.dnr.state.mn.us Tue Oct 16 07:33:50 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 16 Oct 2001 09:33:50 -0500 (CDT) Subject: [mapserver-users] ArcIMS Emulations Message-ID: <200110161433.f9GEXo102260@philbert.dnr.state.mn.us> I don't think that MrSID's image server supports WMS, but it is scripted in Perl. I would guess that it wouldn't be too hard to customize the image server a bit and then incorporate calls to both it and mapserver within a java applet. Or maybe it could be incorporated directly into the ArcIMS emulation bit... --Ken ============================================================================= Ken Boss Digital Image Analysis / Web Stuff Forestry Resource Assessment kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural Resources Voice: 218 327 4449 ext. 237 413 SE 13th Street Fax: 218 327 4517 Grand Rapids, MN 55744 USA www.ra.dnr.state.mn.us ============================================================================= > On the Mr. SID issue. If someone can convince LizardTech to support platforms other than Windows then it will be supported, until then... > > You might be able to integrate Mr. Sid's image server into a MapServer application, especially if that product supported WMS. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> "Brian Fischer" 10/15/01 17:11 PM >>> > Paul, > > Wow, it works great and it is blazin fast. It works just like you are > connecting to Geography Network. This adds a big selling point to > Mapserver. It is hard sometimes to convince clients that MapServer is > the better choice over other IMS's. This was one of the sticking points > that clients would bring up. This is great news. Would there be any > limitations to what OS this script could run on? I run MapServer on > Windows. I know Perl is not the popular choice of MapServer/MapScript > users that use Windows. Is a port to PHP possible? > > Another thing I commonly run into is clients that store all their > imagery in Mr. Sid format. I know there has been some discussion in the > past about the possibility of adding Mr. SID support to MapServer and > the conclusion was it would not be that easy to do. Has anyone else > found a creative solution to convincing clients that have imagery stored > in Mr. SID to use MapServer over another IMS that supports Mr. SID > imagery? > > Great work Paul. > > Have a good day, > Brian > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey at refractions.net] > Sent: Friday, October 12, 2001 4:35 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] ArcIMS Emulations > > Hey, all you people with Arc8. Open up ArcCatalog, go to 'Create > connection to internet server...' and enter > 'http://mapserver.refractions.net' into the URL box. Then drag one of > the services into ArcMap. Voila! What is the big deal? That ain't no > ArcIMS server on that machine: it is Mapserver, with a perl front-end to > make it act like ArcIMS. > > This is dependant on some hacks I've put into my version of Mapserver. > It also is missing support for some of the ESRI 'standard' projection > ids. When the projection stuff is standard in proj4 (Frank is looking at > it) and I have got my hacks cleanly into mapserver/mapscript I'll > release the script. Maybe by then it will also do client preferences for > rendering too... oooooh... (and have more elegant XML handling...) > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ > From pkishor at GeoAnalytics.com Tue Oct 16 08:23:06 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 16 Oct 2001 10:23:06 -0500 Subject: [mapserver-users] Displaying very large shapefiles Message-ID: Armin, Just a quick observation... > -----Original Message----- > From: Armin Burger [mailto:armin.burger at territoriumonline.com] > Sent: Tuesday, October 16, 2001 5:47 AM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Displaying very large shapefiles > > > Hi everybody, > > I tried to display a really huge shapefile with 2.5 million > polygons (the > .shp file has about 450 MB). I used the 'shptree' to > calculate the spatial > index. But also with the index file (.qix) it takes several minutes to [snip] > handle shapefiles with too many features? The index file > itself has 14 MB. > a 14 Mb index file for a 450 Mb shapefile seems to be too small an index file. For example, I have a 156 Mb shapefile (state and county roads). It was slow as a dog. Then I indexed it and shptree created a 38 Mb index file. It is now blazingly fast. Try reindexing with different parameters... maybe the indexing is not optimal at all. You are right. Nothing should take "minutes" in today's web age. If it does, you have to either improve it or do it some other way. pk/ From steve.lime at dnr.state.mn.us Tue Oct 16 08:43:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 Oct 2001 10:43:18 -0500 Subject: [mapserver-users] Strategy for dealing with Census Data? Message-ID: Census data (eg. Tiger) has been successfully used with MapServer. Not as a single shapefile but rather as a tiled dataset, either by state or by county. You can certainly run shptree on the tile indexes and on individual tiles if you want to boost performance further. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Stephen Woodbridge 10/16/01 08:47AM >>> Hi all, As a newbie to this list, I am wondering if there is a searchable archive that I can check before I post? Where? How? Has anyone loaded up the Census data onto MapServer? In reading the documentation it appears that layers most be single shp fileset - Is this correct? If so, that implies that all 50+ state/state equiv. files that the Census releases for a given "layer" need to be merged into a single huge .shp file - Is this correct? Then I suppose you need to run shptree on it. Is there a utility to combine .shp files if that is required? Is there a better/other strategy for dealing with this that I have missed? Thanks for the help, -Stephen Woodbridge http://web-maps.org/ From steve.lime at dnr.state.mn.us Tue Oct 16 08:46:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 Oct 2001 10:46:18 -0500 Subject: [mapserver-users] ArcIMS Emulations Message-ID: or better yet add a arcXML parser module to the C source (using expeat?) and then it could be made available via the CGI and all scripting interfaces... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Kieran J. Ames" 10/16/01 08:44AM >>> While PHP is a popular thing, I'd like to cast my vote to maintain the Perl development. (Call me old-fashioned!) Kieran Brian Fischer wrote: > Paul, > > Wow, it works great and it is blazin fast. It works just like you are > connecting to Geography Network. This adds a big selling point to > Mapserver. It is hard sometimes to convince clients that MapServer is > the better choice over other IMS's. This was one of the sticking points > that clients would bring up. This is great news. Would there be any > limitations to what OS this script could run on? I run MapServer on > Windows. I know Perl is not the popular choice of MapServer/MapScript > users that use Windows. Is a port to PHP possible? > > Another thing I commonly run into is clients that store all their > imagery in Mr. Sid format. I know there has been some discussion in the > past about the possibility of adding Mr. SID support to MapServer and > the conclusion was it would not be that easy to do. Has anyone else > found a creative solution to convincing clients that have imagery stored > in Mr. SID to use MapServer over another IMS that supports Mr. SID > imagery? > > Great work Paul. > > Have a good day, > Brian > > -----Original Message----- > From: Paul Ramsey [mailto:pramsey at refractions.net] > Sent: Friday, October 12, 2001 4:35 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] ArcIMS Emulations > > Hey, all you people with Arc8. Open up ArcCatalog, go to 'Create > connection to internet server...' and enter > 'http://mapserver.refractions.net' into the URL box. Then drag one of > the services into ArcMap. Voila! What is the big deal? That ain't no > ArcIMS server on that machine: it is Mapserver, with a perl front-end to > make it act like ArcIMS. > > This is dependant on some hacks I've put into my version of Mapserver. > It also is missing support for some of the ESRI 'standard' projection > ids. When the projection stuff is standard in proj4 (Frank is looking at > it) and I have got my hacks cleanly into mapserver/mapscript I'll > release the script. Maybe by then it will also do client preferences for > rendering too... oooooh... (and have more elegant XML handling...) > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ From pkishor at GeoAnalytics.com Tue Oct 16 09:04:02 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 16 Oct 2001 11:04:02 -0500 Subject: [mapserver-users] RE: mapserver and coldfusion (cfx) Message-ID: fwiw, I have a CF script working with Mapserver. It actually works quite well, but it doesn't have a nice interface. I want to find some time to wrap it in a custom tag, and even create a vtml for use in CF Studio. pk/ > -----Original Message----- > From: Fawcett, David [mailto:david.fawcett at moea.state.mn.us] > Sent: Tuesday, October 16, 2001 9:09 AM > To: 'Paul Hastings'; 'Doyon, Jean-Francois' > Cc: 'mapserver-users at lists.gis.umn.edu' > Subject: RE: [mapserver-users] RE: mapserver and coldfusion (cfx) > > > I would also be interested in seeing a CF module, and I would > be happy to put in some testing time as well. > > David. > > David J. Fawcett > GIS / Databases > > MN Office of Environmental Assistance > 520 Lafayette Rd N > St. Paul, MN 55155 > 651.215.0200 > > > From pkishor at GeoAnalytics.com Tue Oct 16 09:05:41 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Tue, 16 Oct 2001 11:05:41 -0500 Subject: [mapserver-users] ArcIMS Emulations Message-ID: > -----Original Message----- > From: Kieran J. Ames [mailto:kames at keyspanenergy.com] > Sent: Tuesday, October 16, 2001 8:45 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] ArcIMS Emulations > > > While PHP is a popular thing, I'd like to cast my vote to > maintain the Perl > development. > (Call me old-fashioned!) > Kieran > if PHP is a popular thing then Perl must be even more so. I ain't old-fashioned but I reiterate what Paul said... Perl, along with Eric Clapton, is God. Amen. pk/ From gregliapis at hotmail.com Tue Oct 16 09:26:39 2001 From: gregliapis at hotmail.com (Greg Liapis) Date: Tue, 16 Oct 2001 19:26:39 +0300 Subject: [mapserver-users] Problems with "make" again... Message-ID: Hi all Let me describe my problem. I have apache1.3.20 installed with php4.0.6 as an SDO. When I try to install mapserver3.4 with php/mapspript the following happens.If I just run configure --with-gd --with-postgis everything goes fine.I run make, copy mapserv in the cgi-bin directory and it works. But as I need php/mapscript I have to run configure --with-php=[dir] --with-apxs=[dir] etc. After the configuration which seems to go well I try to run make and I get the following message: "make: ***No target. Stop.". Do you have any idea what could be wrong? I perform everything as superuser. I'd be grateful if you could help me. Thanks a lot Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at refractions.net Tue Oct 16 09:55:08 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 16 Oct 2001 09:55:08 -0700 Subject: [mapserver-users] Mr.SID References: <200110161433.f9GEXo102260@philbert.dnr.state.mn.us> Message-ID: <3BCC666C.9D8A6D18@refractions.net> The SDK web page for Mr.SID decoder is here: http://www.lizardtech.com/developer/index.php?family=2 As Stephen notes, they do not seem to currently support UNIX (the title says "Solaris", but the body says "currently only available for Windows"). I guess this is something a prospective developer could followup on w/ lizardtech. kenboss wrote: > > I don't think that MrSID's image server supports WMS, but it is scripted in > Perl. I would guess that it wouldn't be too hard to customize the image server > a bit and then incorporate calls to both it and mapserver within a java applet. > Or maybe it could be incorporated directly into the ArcIMS emulation bit... > > --Ken > > On the Mr. SID issue. If someone can convince LizardTech to support platforms > other than Windows then it will be supported, until then... > > > > You might be able to integrate Mr. Sid's image server into a MapServer > application, especially if that product supported WMS. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Tue Oct 16 09:59:58 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 16 Oct 2001 09:59:58 -0700 Subject: [mapserver-users] Geographic query with postgis References: <200110160833.f9G8XW511970@cnes.fr> Message-ID: <3BCC678E.790F986F@refractions.net> The problem seems to be that you are doing a join as part of your query. You might be able to hide this by creating a VIEW of your joined data, and have mapserver query the view in the ordinary way. Be forwarned, this kind of spatial join will not be optimized by the spatial index, so the performance will degrade quite fast as the amount of data goes up. BTW, no, you cannot access more than one geometry column at a time. In any event, mapserver can only render one geometry type per layer (point layer, line layer, polygon layer), so rendering roads in the same layer as house points would not work so well. jrom wrote: > > Hi, > > I'm using mapserver with postgis data. > It's working wonderfully! But i've a problem with more > complex geographic query. For example, i want to get > all the houses within a distance of 500 m from roads. > A sql query would be: > > SELECT house.geo_value, road.geo_value > FROM house, road > WHERE Distance(house.geo_value, road.geo_value) < 500 > > It works in an sql console without problem. > So i try to do the same in the mapfile. > > DATA "house.geo_value, road.geo_value FROM house, road" > FILTER "Distance(house.geo_value, road.geo_value) < 500" > > This time it doesn't work and mapserver returns an error: > msPOSTGISLayerWhichShapes(): Query error. Error parsing > POSTGIS data variable. Must contain 'geometry_column FROM > table_name'. > > It seems that you canno't access more than one table or column in the > DATA field of the mapfile. > > Any clue for this problem? > > Thanks in advance > > jrom > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Tue Oct 16 10:08:06 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 16 Oct 2001 10:08:06 -0700 Subject: [mapserver-users] ArcIMS Emulations References: <20011016134041.58519.qmail@web20705.mail.yahoo.com> Message-ID: <3BCC6976.659454BA@refractions.net> I am going to get the php CVS version up and running and see how it goes with that. If it works, with the new raw posting support, I will start some development there, on the assumption (??) that by the time I am ready to release publicly 4.0.7 will be out. Perl would be nice though. Do our Windows-bound brethren know that with ActivePerl from activestate, there is a perl module library of compiled modules for download, including all the modules necessary to run the IMS emulator? (XML::Parser, XML::Writer, and soon XML::DOM) Bruno Gendron wrote: > > Hi Paul, > > You're right, as of 4.0.6, PHP cannot handle > simultaneously POST and GET requests. You have to > trick your server to re-encode the GET part in the > POST part and redirect this new request to your PHP > script. > > However, PHP can read raw POST data, in the variable > $HTTP_RAW_POST_DATA... > > -- > Bruno > > --- Paul Ramsey a ?crit : > > Brian Fischer wrote: > > > Is a port to PHP possible? > > > > Upon further research, it appears that the answer is > > "not until PHP > > 4.0.7". ArcXML clients send requests which have data > > URL encoded > > (ServiceName=Blah) simultaneous with sending raw XML > > in the POST. > > > > Firstly, PHP expects you to either POST requests, or > > GET requests (URL > > encoded), but not to do BOTH. I do not know if 4.0.7 > > will allow one to > > do this. Maybe. > > Secondly, PHP currently cannot access raw data from > > the POST. It expects > > the data to be in key/value pairs, and ArcXML is > > just a raw lump of XML, > > without a variable name. Apparently version 4.0.7 > > will include the > > ability to access raw POST data. At that time, the > > next bridge, getting > > simultaneous URL encoded and posted data, can > > hopefully also be crossed. > > > > Paul > > ___________________________________________________________ > Un nouveau Nokia Game commence. > Allez sur http://fr.yahoo.com/nokiagame avant le 3 novembre > pour participer ? cette aventure tous m?dias. -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From dblasby at refractions.net Tue Oct 16 10:09:03 2001 From: dblasby at refractions.net (Dave Blasby) Date: Tue, 16 Oct 2001 10:09:03 -0700 Subject: [mapserver-users] Error parsing POSTGIS References: <3BC09F290000E5E4@www.zipmail.com.br> Message-ID: <3BCC69AF.B89180F5@refractions.net> gispmpf at zipmail.com.br wrote: > CONNECTION "user=postgres dbname=teste host=localhost" > DATA "linha from teste" > > msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS connection information. > > anybody can help me to see what is wrong? Jo?o, I dont know whats wrong. The message occurs if the postgresql client library returns a "CONNECTION_BAD" when it tries to open a connection. You can try this: Change your CONNECTION to: CONNECTION "user=postgres password=**** dbname=teste host=localhost" (but put the postgres password in instead of the "****") This should fix the problem if postgresql is expecting a password for the "postgres" user. Otherwise, from a shell, try this: % psql -U postgres teste Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit teste=# select * linda from teste; ... If this works, then mapserver should be able to access the database. What OS are you using? Is the "mapserv" executable (Ie. the webserver) being run on the same machine as postgresql? If not, you'll have to change the "host=localhost" option and make sure you are running the postmaster with the "-i" (TCP/IP connections enabled). Esperan?osamente isto ajudar-lhe-? dave From steve.lime at dnr.state.mn.us Tue Oct 16 10:21:25 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 Oct 2001 12:21:25 -0500 Subject: [mapserver-users] Mr.SID Message-ID: I have chatted with them, and while they'd like to help it's just not in the cards for the foreseable future. Curiously the folks at ERMapper and their ECW compression don't support non-Windows platforms either. Perhaps JPEG2000... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 10/16/01 11:55AM >>> The SDK web page for Mr.SID decoder is here: http://www.lizardtech.com/developer/index.php?family=2 As Stephen notes, they do not seem to currently support UNIX (the title says "Solaris", but the body says "currently only available for Windows"). I guess this is something a prospective developer could followup on w/ lizardtech. kenboss wrote: > > I don't think that MrSID's image server supports WMS, but it is scripted in > Perl. I would guess that it wouldn't be too hard to customize the image server > a bit and then incorporate calls to both it and mapserver within a java applet. > Or maybe it could be incorporated directly into the ArcIMS emulation bit... > > --Ken > > On the Mr. SID issue. If someone can convince LizardTech to support platforms > other than Windows then it will be supported, until then... > > > > You might be able to integrate Mr. Sid's image server into a MapServer > application, especially if that product supported WMS. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pramsey at refractions.net Tue Oct 16 10:36:52 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 16 Oct 2001 10:36:52 -0700 Subject: [mapserver-users] ArcIMS Emulations References: Message-ID: <3BCC7034.465109BD@refractions.net> Since most of the infrastructure necessary to do a perl release is in place now (my mapserver hacks to perl mapscript are committed, an "enhanced" epsg file is available), and the ActivePerl stuff looks sufficiently advanced that our windows brethren can use it if necessary, I am going to continue on w/ perl development for the short term so I can get something out to the group ASAP. Then Bruno can laugh evilly and release his PHP version :) Puneet Kishor wrote: > > > -----Original Message----- > > From: Kieran J. Ames [mailto:kames at keyspanenergy.com] > > Sent: Tuesday, October 16, 2001 8:45 AM > > To: mapserver-users at lists.gis.umn.edu > > Subject: Re: [mapserver-users] ArcIMS Emulations > > > > > > While PHP is a popular thing, I'd like to cast my vote to > > maintain the Perl > > development. > > (Call me old-fashioned!) > > Kieran > > > > if PHP is a popular thing then Perl must be even more so. I ain't > old-fashioned but I reiterate what Paul said... > > Perl, along with Eric Clapton, is God. Amen. > > pk/ -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From morissette at dmsolutions.ca Tue Oct 16 10:14:42 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 16 Oct 2001 13:14:42 -0400 Subject: [mapserver-users] Problems with "make" again... References: Message-ID: <3BCC6B02.4C9493B0@dmsolutions.ca> > Greg Liapis wrote: > > Hi all > Let me describe my problem. I have apache1.3.20 installed with > php4.0.6 as an SDO. When I try to install mapserver3.4 with > php/mapspript the following happens.If I just run configure --with-gd > --with-postgis everything goes fine.I run make, copy mapserv in the > cgi-bin directory and it works. But as I need php/mapscript I have to > run configure --with-php=[dir] --with-apxs=[dir] etc. After the > configuration which seems to go well I try to run make and I get the > following message: > "make: ***No target. Stop.". Do you have any idea what could be wrong? > I perform everything as superuser. I'd be grateful if you could help > me. > You seem to be doing the right thing... it's the first time someone reports this kind of problem. Which OS are you running on? Are you using GNUmake? Also, this may sound like a silly question, but did you run make from the main MapServer directory? Perhaps if you could make available the complete output of the configure and make commands as well as the resulting Makefile and mapscript/php3/Makefile then we could have a look and try to help you more. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From imap at chesapeake.net Tue Oct 16 10:25:05 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 16 Oct 2001 13:25:05 -0400 Subject: [mapserver-users] Strategy for dealing with Census Data? References: <3BCC3A7F.6D47D3C3@mediaone.net> Message-ID: <3BCC6D71.4447BF0@chesapeake.net> Stephen, Oh yeah, we make heavy use of Tiger w/mapserver and resell as well, see: http://imap.chesapeake.net/tigershape99.html Typically we sell Tiger/Shape with custom implementations of MapServer which BTW, Is the best (and most powerful) map engine on the planet ;) It make sense for customers which don't want to get into creating their own datasets, etc. Tiger is arranged by county, so you have to build a county level hierarchy of shapefile, with non-unique layer components, and of course you have to build a county leve index for mapserver to deal with. I have found it unncessary to index within the county tiles because the county level layers are relatively small. Bruce Ralston at http://www.gistool.com sells a good tool for dealing with Tiger, but you will need to post-process (manipulate) the data a bit to get it the way to want it. Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc. (410)257-3187 Stephen Woodbridge wrote: > > Hi all, > > As a newbie to this list, I am wondering if there is a searchable > archive that I can check before I post? Where? How? > > Has anyone loaded up the Census data onto MapServer? > > In reading the documentation it appears that layers most be single shp > fileset - Is this correct? > > If so, that implies that all 50+ state/state equiv. files that the > Census releases for a given "layer" need to be merged into a single huge > .shp file - Is this correct? Then I suppose you need to run shptree on > it. Is there a utility to combine .shp files if that is required? > > Is there a better/other strategy for dealing with this that I have > missed? > > Thanks for the help, > > -Stephen Woodbridge > http://web-maps.org/ From pramsey at refractions.net Tue Oct 16 10:42:19 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 16 Oct 2001 10:42:19 -0700 Subject: [mapserver-users] ArcXML References: Message-ID: <3BCC717B.6A715B20@refractions.net> It would probably require a dependency on libxml2, since doing the XML processing without some kind of DOM model gets unwieldy as the complexity of the structures goes up. If I was a C god, I would probably go this route. Sadly, I am not. :/ Stephen Lime wrote: > > or better yet add a arcXML parser module to the C source (using expeat?) and then it > could be made available via the CGI and all scripting interfaces... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From paul at tei.or.th Tue Oct 16 10:58:07 2001 From: paul at tei.or.th (Paul Hastings) Date: Wed, 17 Oct 2001 00:58:07 +0700 Subject: [mapserver-users] RE: mapserver and coldfusion (cfx) References: Message-ID: <011501c1566c$1d4a2660$0a729acb@tei.or.th> > fwiw, I have a CF script working with Mapserver. It actually works quite > well, but it doesn't have a nice interface. I want to find some time to wrap > it in a custom tag, and even create a vtml for use in CF Studio. w/the cgi? yes i'd be interested in seeing it. we've been using cf & cgi ms for sometime now (via cfhttp). we think cf & ms are nicely suited to each other (both being RAD more or less). we'd like to take it a step further if we can w/cfx_mapscript. any suggestions, etc. most welcome. From imap at chesapeake.net Tue Oct 16 10:59:34 2001 From: imap at chesapeake.net (imap at chesapeake.net) Date: Tue, 16 Oct 2001 13:59:34 -0400 Subject: [mapserver-users] ArcXML References: <3BCC717B.6A715B20@refractions.net> Message-ID: <3BCC7586.FC29A66C@chesapeake.net> Paul, I had problems compiling 'expat' which needed by one of the perl modules (I think XML::Parser). There was something left out of the CVS distribution... and wont compile. Have you (or anyone) had success compiling that? I am doing most everything with XML::Writer at the moment, but wanted to check out XML::Parser. (so far w/o success). The homepage for this project is http://expat.sourceforge.net/ Regards, Chris Stuber (mapsurfer) Silicon Mapping Solutions, Inc (410)257-3187 Paul Ramsey wrote: > > It would probably require a dependency on libxml2, since doing the XML > processing without some kind of DOM model gets unwieldy as the > complexity of the structures goes up. If I was a C god, I would probably > go this route. Sadly, I am not. :/ > > Stephen Lime wrote: > > > > or better yet add a arcXML parser module to the C source (using expeat?) and then it > > could be made available via the CGI and all scripting interfaces... > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ From jsmedsmo at gis.umn.edu Tue Oct 16 11:04:20 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 16 Oct 2001 13:04:20 -0500 Subject: [mapserver-users] [Fwd: mapserver 3.3.011] Message-ID: <3BCC76A4.7030301@gis.umn.edu> -------- Original Message -------- Subject: mapserver 3.3.011 Date: Tue, 16 Oct 2001 13:49:41 -0400 From: Fran?oise Guilbault To: mdp at lists Hello, We are considering running mapserver and need some information in order to setup the platform and dependent solftware. It would be greatly appreciated, if you could provide the following information or direct me to a reliable source. Will mapserver version 3.3.011 run on Red Hat Linux 6.1? What version of apache do I need to install? Any other relevant information? Thank you in advance. Francoise Guilbault System administrator - UNIX Agriculture & AgriFood Canada K.W. Neatby bldg 613-759-1873 guilbaultf at em.agr.ca From lfilak at yahoo.com Tue Oct 16 11:06:12 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Tue, 16 Oct 2001 11:06:12 -0700 (PDT) Subject: [mapserver-users] Mr.SID In-Reply-To: Message-ID: <20011016180612.94228.qmail@web11303.mail.yahoo.com> I also have chatted with LizardTech personnel and have come up with the same result. There are many a corporation that don't understand all the reasons that JPEG2000, GIMP, Linux, PostGIS, Mapserver, Grass, & etc. exist/are under development. However if LizardTech was to receive more requests then... Lowell Filak --- Stephen Lime wrote: > I have chatted with them, and while they'd like to > help it's just not in > the cards for the foreseable future. Curiously the > folks at ERMapper > and their ECW compression don't support non-Windows > platforms > either. Perhaps JPEG2000... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Paul Ramsey 10/16/01 > 11:55AM >>> > The SDK web page for Mr.SID decoder is here: > > http://www.lizardtech.com/developer/index.php?family=2 > > > As Stephen notes, they do not seem to currently > support UNIX (the title > says "Solaris", but the body says "currently only > available for > Windows"). I guess this is something a prospective > developer could > followup on w/ lizardtech. > > kenboss wrote: > > > > I don't think that MrSID's image server supports > WMS, but it is scripted in > > Perl. I would guess that it wouldn't be too hard > to customize the image server > > a bit and then incorporate calls to both it and > mapserver within a java applet. > > Or maybe it could be incorporated directly into > the ArcIMS emulation bit... > > > > --Ken > > > > On the Mr. SID issue. If someone can convince > LizardTech to support platforms > > other than Windows then it will be supported, > until then... > > > > > > You might be able to integrate Mr. Sid's image > server into a MapServer > > application, especially if that product supported > WMS. > > > > > > Steve > > > > > > Stephen Lime > > > Data & Applications Manager > > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ > __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From nhv at cape.com Tue Oct 16 11:15:20 2001 From: nhv at cape.com (Norman Vine) Date: Tue, 16 Oct 2001 14:15:20 -0400 Subject: [mapserver-users] ArcXML In-Reply-To: <3BCC717B.6A715B20@refractions.net> Message-ID: <002201c1566e$8523ed00$a300a8c0@nhv> Paul Ramsey writes: > >It would probably require a dependency on libxml2, since doing the XML >processing without some kind of DOM model gets unwieldy as the >complexity of the structures goes up. If I was a C god, I would probably >go this route. Sadly, I am not. :/ > >Stephen Lime wrote: >> >> or better yet add a arcXML parser module to the C source >(using expeat?) and then it >> could be made available via the CGI and all scripting interfaces... >> It is C++ but ... Dave Megginson has written a truely 'EasyXML' package that wraps expat. The package is distributed as part of the SimGear library http://www.simgear.org but is very generic Cheers Norman Vine From Jciavarelli at city.kamloops.bc.ca Tue Oct 16 11:28:06 2001 From: Jciavarelli at city.kamloops.bc.ca (Janet Ciavarelli) Date: Tue, 16 Oct 2001 11:28:06 -0700 Subject: [mapserver-users] (Ed) Shapefiles - different formats? Message-ID: Hi Ed, I'm not sure what you mean by the GDAL distribution. Where would I find that? There's a tool called shpfix in the GDAL distribution that might possibly help clean up the file. If you'd like to email me the shapefile I'll take a look at it. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Thursday, October 04, 2001 2:17 PM To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu Subject: [mapserver-users] Shapefiles - different formats? Sort of off topic, but thought I'd ask anyways in case anyone knows. I have written a perl/mapscript to create a shapefile. I can view the shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI ArcView 8.1, I get an error. Is anyone out there aware of any differences between shapefile formats between different products? Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca From ed at topozone.com Tue Oct 16 11:53:55 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 16 Oct 2001 14:53:55 -0400 Subject: [mapserver-users] (Ed) Shapefiles - different formats? Message-ID: <13858AA1A74F30419F319ACB66A9D122D3CA@mercator.topozone.com> You can get the GDAL distribution from the GDAL home page at: http://www.remotesensing.org/gdal/ - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Tuesday, October 16, 2001 2:28 PM To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu; Ed McNierney Subject: RE: [mapserver-users] (Ed) Shapefiles - different formats? Hi Ed, I'm not sure what you mean by the GDAL distribution. Where would I find that? There's a tool called shpfix in the GDAL distribution that might possibly help clean up the file. If you'd like to email me the shapefile I'll take a look at it. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Janet Ciavarelli [mailto:Jciavarelli at city.kamloops.bc.ca] Sent: Thursday, October 04, 2001 2:17 PM To: mapserver-users at lists.gis.umn.edu; teb at mallit.fr.umn.edu Subject: [mapserver-users] Shapefiles - different formats? Sort of off topic, but thought I'd ask anyways in case anyone knows. I have written a perl/mapscript to create a shapefile. I can view the shapefile in ESRI ArcView 3.2 fine. But when I try to view it in ESRI ArcView 8.1, I get an error. Is anyone out there aware of any differences between shapefile formats between different products? Janet. Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca Janet Ciavarelli GIS Programmer/Analyst City of Kamloops, BC (250) 828-3393 jciavarelli at city.kamloops.bc.ca From paul at tei.or.th Tue Oct 16 12:49:48 2001 From: paul at tei.or.th (Paul Hastings) Date: Wed, 17 Oct 2001 02:49:48 +0700 Subject: [mapserver-users] Re: mapserver and coldfusion (cfx) References: <7CDD7B94357FD5119E800002A537C46E22FC4D@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: <019501c1567b$b792c560$0a729acb@tei.or.th> > I'm afraid I'm really not qualified in helping with the coding, but I'll > gladly beta-test it, and possibly help with documentation, as well as > provide comments and ideas whenever I can. excellent. i want to make sure we start on the right foot. especially need some kind of cheer leading to help my staff stay the course on this. the girl working on this is pretty good & seems tough enough but some outside encouragement would be nice ;-) > My first thoughts would be to write a MapScript like module for CF that > would provide a very similar set of functions to CF in the same way > MapScript does to Perl or Python ... I don't even know if that's doable > with CF, but that would be it seems to be, the best, most consistent > approach. yes thats what we're looking into now. though i'm a bit concerned that php mapscript is a CGI rather than a module. any ideas on that? > I was also wondering about SWIG, Java and the Java Support built into CF > (Especially 5). Might that be a path to follow? You'd hit 2 birds with one > stone: A CF usable MapServer interface, AND a Java one! well java cfx tags are definitely a good cross-platform idea but i think i'd have trouble finding a java coder. i assume porting the cfx tags to lunix/solaris wouldn't be that hard (though there doesn't seem to be many now). also neo (cf6) would probably be a better platform for that kind of java integration (it'll be java, jrun, based & is just too cool). From bfischer at mpls.houstoneng.com Tue Oct 16 13:14:26 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Tue, 16 Oct 2001 15:14:26 -0500 Subject: [mapserver-users] Mr.SID Message-ID: <8879CCE0F0187742B7302A93A8B87B090285AD@mpls.houstoneng.com> Who do I have to send a request to at Lizard Tech? I would be more then willing to send a note to see if we can get them to change their minds. Brian -----Original Message----- From: Lowell Filak [mailto:lfilak at yahoo.com] Sent: Tuesday, October 16, 2001 1:06 PM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Mr.SID I also have chatted with LizardTech personnel and have come up with the same result. There are many a corporation that don't understand all the reasons that JPEG2000, GIMP, Linux, PostGIS, Mapserver, Grass, & etc. exist/are under development. However if LizardTech was to receive more requests then... Lowell Filak --- Stephen Lime wrote: > I have chatted with them, and while they'd like to > help it's just not in > the cards for the foreseable future. Curiously the > folks at ERMapper > and their ECW compression don't support non-Windows > platforms > either. Perhaps JPEG2000... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Paul Ramsey 10/16/01 > 11:55AM >>> > The SDK web page for Mr.SID decoder is here: > > http://www.lizardtech.com/developer/index.php?family=2 > > > As Stephen notes, they do not seem to currently > support UNIX (the title > says "Solaris", but the body says "currently only > available for > Windows"). I guess this is something a prospective > developer could > followup on w/ lizardtech. > > kenboss wrote: > > > > I don't think that MrSID's image server supports > WMS, but it is scripted in > > Perl. I would guess that it wouldn't be too hard > to customize the image server > > a bit and then incorporate calls to both it and > mapserver within a java applet. > > Or maybe it could be incorporated directly into > the ArcIMS emulation bit... > > > > --Ken > > > > On the Mr. SID issue. If someone can convince > LizardTech to support platforms > > other than Windows then it will be supported, > until then... > > > > > > You might be able to integrate Mr. Sid's image > server into a MapServer > > application, especially if that product supported > WMS. > > > > > > Steve > > > > > > Stephen Lime > > > Data & Applications Manager > > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ > __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From kenboss at dilbert.dnr.state.mn.us Tue Oct 16 13:27:26 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Tue, 16 Oct 2001 15:27:26 -0500 (CDT) Subject: [mapserver-users] Mr.SID Message-ID: <200110162027.f9GKRQ103467@philbert.dnr.state.mn.us> Obviously, the C SDK would be the way to go for true integration with mapserver, but, as noted, support for anything other than Windows is lacking. Lizardtech has been saying for years (literally) that they're working on support for the SDK on other platforms, but it never happens. In the meantime, you might find what you're looking for in the MrSID Image Server, which is available for download at: http://www.lizardtech.com/cgi-bin/products/desc.pl?tsb=25718 (see https://www.lizardtech.com/cgi-bin/products/products.pl for a full listing of downloadable products) The Image Server is a just set of perl scripts with a couple of accompanying binaries to do the image decompression/extraction work. It is supported under Linux, Solaris, and Windows NT web environments. You could play around with hacking the perl scripts, or you can just drop the binaries into your cgi directory and call them directly from your pages. Unfortunately, although MrSID is geospatially aware, the binary programs expect arguments in terms of pixels, so you'd have query your MrSID image for a bit of metadata and then do some math before you could submit the request for a portion of an image. Inelegant, but doable. We run an applet on some of our pages to overlay mapserver-generated transparent gifs on top of jpegs coming out of another package. The same approach could be taken with MrSID images served from the Image Server. (Steve, I don't see the overlay applet anywhere on the mapserver site. If you think it'd be worthwhile putting it up there, I could whip up some documentation for it.) --Ken > The SDK web page for Mr.SID decoder is here: > > http://www.lizardtech.com/developer/index.php?family=2 > > As Stephen notes, they do not seem to currently support UNIX (the title > says "Solaris", but the body says "currently only available for > Windows"). I guess this is something a prospective developer could > followup on w/ lizardtech. > > kenboss wrote: > > > > I don't think that MrSID's image server supports WMS, but it is scripted in > > Perl. I would guess that it wouldn't be too hard to customize the image server > > a bit and then incorporate calls to both it and mapserver within a java applet. > > Or maybe it could be incorporated directly into the ArcIMS emulation bit... > > > > --Ken > > > > On the Mr. SID issue. If someone can convince LizardTech to support platforms > > other than Windows then it will be supported, until then... > > > > > > You might be able to integrate Mr. Sid's image server into a MapServer > > application, especially if that product supported WMS. > > > > > > Steve > > > > > > Stephen Lime > > > Data & Applications Manager > > > > > -- > __ > / > | Paul Ramsey > | Refractions Research > | Email: pramsey at refractions.net > | Phone: (250) 885-0632 > \_ From Chip.Hankley at GASAI.Com Tue Oct 16 14:03:36 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Tue, 16 Oct 2001 16:03:36 -0500 Subject: [mapserver-users] PHP, Create Layer on Fly - HELP Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3F4D@postoffice.GASAI.Com> Tim, A couple weeks ago, I had sent a note to the list regarding placing a legend inside the mapframe dynamically. You asked me to forward you the solution when I figured it out. The guys as DMSolutions put up a new dll yesterday - that, along with a little syntax fix, solved the problem. Function below. Chip Hankley ________________________________________________________ embed_legend($map, $Cur_Extent, $img); function embed_legend($map, $Cur_Extent, $img) { //$map is the current MapObject //$Cur_Extent is an array where: //$Cur_Extent[0] = Xmin //$Cur_Extent[1] = Ymin //$Cur_Extent[2] = Xmax //$Cur_Extent[3] = Ymax //$img is the current ImageObject //Create a new Point Layer $layer = ms_newLayerObj($map); $layer->set("name", "legend"); $layer->set("type", MS_LAYER_POINT); $layer->set("status", 1); //Create a new Class for the Layer $class = ms_newClassObj($layer); $class->set("name", "legendclass"); $symb = $map->getSymbolByName('symbols/legend.png'); $class->set("symbol", $symb); //Place the point so that it is 52 pixels IN and 41 // pixels UP from the lower left hand conrner of // the image. We are using an image that is 100 x 80 // pixels... this should put the image just inside // the rendered image. $ImgWidth = $map->width; $ImgHeight = $map->height; $Pixel_X = ($Cur_Extent[2] - $Cur_Extent[0]) / $ImgWidth; $Pixel_Y = ($Cur_Extent[3] - $Cur_Extent[1]) / $ImgHeight; $Spot_X = $Cur_Extent[0] + 52 * $Pixel_X; $Spot_Y = $Cur_Extent[1] + 41 * $Pixel_Y; $point = ms_newpointObj(); $point->setXY($Spot_X, $Spot_Y); $point->draw($map,$layer,$img,'legendclass',undef); $layer->draw($img); } From lfilak at yahoo.com Tue Oct 16 14:52:58 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Tue, 16 Oct 2001 14:52:58 -0700 (PDT) Subject: [mapserver-users] Mr.SID In-Reply-To: <8879CCE0F0187742B7302A93A8B87B090285AD@mpls.houstoneng.com> Message-ID: <20011016215258.17823.qmail@web11302.mail.yahoo.com> The only e-mail I can find right now is kevin at lizardtech.com . He is the local rep. for Ohio. Lowell Filak --- Brian Fischer wrote: > Who do I have to send a request to at Lizard Tech? > I would be more then > willing to send a note to see if we can get them to > change their minds. > > Brian > > -----Original Message----- > From: Lowell Filak [mailto:lfilak at yahoo.com] > Sent: Tuesday, October 16, 2001 1:06 PM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Mr.SID > > I also have chatted with LizardTech personnel and > have > come up with the same result. There are many a > corporation that don't understand all the reasons > that > JPEG2000, GIMP, Linux, PostGIS, Mapserver, Grass, & > etc. exist/are under development. > However if LizardTech was to receive more requests > then... > Lowell Filak > > --- Stephen Lime wrote: > > I have chatted with them, and while they'd like to > > help it's just not in > > the cards for the foreseable future. Curiously the > > folks at ERMapper > > and their ECW compression don't support > non-Windows > > platforms > > either. Perhaps JPEG2000... > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> Paul Ramsey 10/16/01 > > 11:55AM >>> > > The SDK web page for Mr.SID decoder is here: > > > > > http://www.lizardtech.com/developer/index.php?family=2 > > > > > > As Stephen notes, they do not seem to currently > > support UNIX (the title > > says "Solaris", but the body says "currently only > > available for > > Windows"). I guess this is something a prospective > > developer could > > followup on w/ lizardtech. > > > > kenboss wrote: > > > > > > I don't think that MrSID's image server supports > > WMS, but it is scripted in > > > Perl. I would guess that it wouldn't be too > hard > > to customize the image server > > > a bit and then incorporate calls to both it and > > mapserver within a java applet. > > > Or maybe it could be incorporated directly into > > the ArcIMS emulation bit... > > > > > > --Ken > > > > > > On the Mr. SID issue. If someone can convince > > LizardTech to support platforms > > > other than Windows then it will be supported, > > until then... > > > > > > > > You might be able to integrate Mr. Sid's image > > server into a MapServer > > > application, especially if that product > supported > > WMS. > > > > > > > > Steve > > > > > > > > Stephen Lime > > > > Data & Applications Manager > > > > > > > > -- > > __ > > / > > | Paul Ramsey > > | Refractions Research > > | Email: pramsey at refractions.net > > | Phone: (250) 885-0632 > > \_ > > > > __________________________________________________ > Do You Yahoo!? > Make a great connection at Yahoo! Personals. > http://personals.yahoo.com __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From S.Kolomeitz at toowoomba.qld.gov.au Tue Oct 16 16:13:40 2001 From: S.Kolomeitz at toowoomba.qld.gov.au (Shaun Kolomeitz) Date: Wed, 17 Oct 2001 09:13:40 +1000 Subject: [mapserver-users] MrSID Message-ID: FWIW I have been sending requests to LizardTech for (what I believe are BASIC) enhancements to their software for years now (things such as multi-threading of code etc). While I get 'verbal' support (ie sounds like a great idea), no results have been forthcoming. On another point raised we have successfully written extract programs with the Image Server base code on Solaris (using simple perl). Once you get your head around how the extract routines work it's pretty straight forward. A keen programmer should be able to expand on this using the Geotiff extract format and passing this back to Mapserver. Scale dependance factors would need to be taken into account to reduce extract time and disk space. I'd be happy to go offline with this subject with interested parties to discuss how this could be achieved, and then respond back to the list with options. Regards, Shaun -------------- next part -------------- An HTML attachment was scrubbed... URL: From cabral at yadata.net Tue Oct 16 17:42:30 2001 From: cabral at yadata.net (Rodrigo Becke Cabral) Date: Tue, 16 Oct 2001 21:42:30 -0300 Subject: [mapserver-users] ArcIMS Emulations (continued) References: Message-ID: <011301c156a4$9f0959e0$210b000a@cadiz.linhalivre.net> Actually, in the beginning, there was "C".... From the "void", echoed a powerful command: "make"! And then perl, php, mapserver and the other children were born.... Rod. ps: Sorry, I was holding myself for the last 4 e-mails... Quoting Steve (October 16, 2001 12:46 PM): "or better yet add a arcXML parser module to the C source (using expeat?) and then it could be made available via the CGI and all scripting interfaces..." ----- Original Message ----- From: "Puneet Kishor" Sent: Tuesday, October 16, 2001 1:05 PM Subject: RE: [mapserver-users] ArcIMS Emulations > -----Original Message----- > From: Kieran J. Ames [mailto:kames at keyspanenergy.com] > Sent: Tuesday, October 16, 2001 8:45 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] ArcIMS Emulations > > > While PHP is a popular thing, I'd like to cast my vote to > maintain the Perl > development. > (Call me old-fashioned!) > Kieran > if PHP is a popular thing then Perl must be even more so. I ain't old-fashioned but I reiterate what Paul said... Perl, along with Eric Clapton, is God. Amen. pk/ From pnaciona at gis.umn.edu Tue Oct 16 18:57:06 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 16 Oct 2001 20:57:06 -0500 Subject: [mapserver-users] RE: Mapserver v3.5 executable for Windows 2000? In-Reply-To: Message-ID: Ted, WMS-compliant MapServer 3.5 can be downloaded from http://mapserver.gis.umn.edu/win32binaries.html. I need to update this page as it's getting pretty darn long but I'm sure you'll find it towards the bottom. There are three different flavors and you can choose what works for you. You'll need some libwww files and the easiest way to get it is to download Vladimir Kozlov's binary package at ftp://ftp.idm.ru/libwww/Libwww_V5.3.2.exe. I actually downloaded his whole libwww directory instead of compiling from scratch. Thanks to Vladimir for making his work accessible to us. By the way, I really don't have a WMS-compliant application so I can't tell you how well these binaries work. In fact, I can't tell you if the WMS bit works at all. All I know is I can run my basic MapServer apps on it. I guess you get to be the guinea pig. :) I hope this helps. -Perry -----Original Message----- From: Ted Quinby [mailto:tedquinby at hotmail.com] Sent: Tuesday, October 16, 2001 12:04 PM To: pnaciona Subject: RE: Mapserver v3.5 executable for Windows 2000? Pericles That would be great! Thanks so much for your help. Ted From: "Pericles S. Nacionales" To: Ted Quinby Subject: RE: Mapserver v3.5 executable for Windows 2000? Date: Tue, 16 Oct 2001 10:28:47 -0500 Ted, That's correct. I've downloaded the source for libwww and played with it yesterday. But it's a huge set of codes and it'll probably take me a little time to get it working. I'll let you know if I can get to work by tonight. If things work well, I shall have a new set of binaries for win32 by the end of the week. I've always had the proj support so that isn't a problem. -Perry Nacionales On Tue, 16 Oct 2001, Ted Quinby wrote: > > Pericles, > > Thanks for getting back to me. From reading through the documentation, > it appears that in order to be wms compliant, the code needs to be > compiled along with W3C's libwww and the PROJ4.x libraries. From what > I've read on the website, it appears that the PROJ4.x library is > included, but the libwww library was not part of the compilation for the > Windows binary executable. Let me know what you find out. Thanks. > > Regards, > > Ted > > > > > From: "Pericles S. Nacionales" > To: Ted Quinby > Subject: RE: Mapserver v3.5 executable for Windows 2000? > Date: Mon, 15 Oct 2001 10:47:44 -0500 > Ted, > Thanks for the info. If I recall correctly, I've turned on the WMS > compatibility flag a few weeks ago. It might be that the new code > requires other things to be set for WMS compatibility. I'll check it out > when I get to work today. > Thanks. > Perry Nacionales > On Thu, 11 Oct 2001, Ted Quinby wrote: > > > > Pericles > > > > I've downloaded the v35 binaries from your site -- thanks. The main > > reason I'm trying to do this is to make our mapserver a wms. However, > > when using the mapserv -v command on the v35 I just downloaded, it > > doesn't appear that wms is supported. Is wms capability included during > > the compilation of the windows binaries? > > > > Regards, > > > > Ted > > > > > > > > > > From: "Pericles S. Nacionales" > > To: "Ted Quinby" > > CC: "Tom Burk" > > Subject: RE: Mapserver v3.5 executable for Windows 2000? > > Date: Wed, 10 Oct 2001 16:11:35 -0500 > > Ted, > > Binary versions of MapServer 3.5 have been around for quite sometime. > > These > > versions are updated once a week using the nightly built source code. > You > > can download one of these versions from > > http://mapserver.gis.umn.edu/win32binaries.html. The version 3.5 > binaries > > are on the bottom of the page. > > -Perry Nacionales > > pnaciona at gis.umn.edu > > -----Original Message----- > > From: teb [mailto:teb at mallit.fr.umn.edu] > > Sent: Wednesday, October 10, 2001 3:57 PM > > To: pnaciona > > Subject: Mapserver v3.5 executable for Windows 2000? > > Hello, > > I'm curious if there's anyone out there who may have some idea of an > > approximate timetable for the release of MapServer V3.5 in binary form > > for > > use on Windows 2000. I'm having a heck of a time trying to compile the > > source code using cygwin. I'm trying to prioritize my time and effort > -- > > if > > the release of a pre-compiled version is only weeks away I'd be more > than > > happy to wait. If we're talking months or longer, I may keep trudging > > along > > with the source code. Any information would be greatly appreciated. > > Thanks. > > Ted Quinby > > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > >___________________________________________________________________________ ____ > > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > > > > ____________________________________________________________________________ ____ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > Get your FREE download of MSN Explorer at http://explorer.msn.com From gispmpf at zipmail.com.br Tue Oct 16 19:21:55 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Tue, 16 Oct 2001 23:21:55 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?Steel=20Error=20parsing=20POSTGIS=20?= Message-ID: <3BC8B4B20000674B@www.zipmail.com.br> Thanks dave I have tried your changes but i steel have the same problem the: psql -U postgres teste work ok and if i type select linha from teste where id=1; in the psql terminal work ok too. but the following mapfile layer dont... LAYER CONNECTIONTYPE postgis NAME 'Lakes & Rivers' CONNECTION "user=postgres password=teste dbname=cadastro host=localhost" DATA "linha from teste" STATUS DEFAULT TYPE LINE FILTER "id = 1" CLASS COLOR 255 22 22 SYMBOL 'line' SIZE 2 END CLASS COLOR 205 92 82 END END I'm using linux and postgres and mapserver are running in the same machine... and seel returning the some error: msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS connection information. any ideia? Thanks Joao. gispmpf at zipmail.com.br wrote: > CONNECTION "user=postgres dbname=teste host=localhost" > DATA "linha from teste" > > msPOSTGISLayerOpen(): Query error. Error parsing POSTGIS connection information. > > anybody can help me to see what is wrong? Jo?o, I dont know whats wrong. The message occurs if the postgresql client library returns a "CONNECTION_BAD" when it tries to open a connection. You can try this: Change your CONNECTION to: CONNECTION "user=postgres password=**** dbname=teste host=localhost" (but put the postgres password in instead of the "****") This should fix the problem if postgresql is expecting a password for the "postgres" user. Otherwise, from a shell, try this: % psql -U postgres teste Welcome to psql, the PostgreSQL interactive terminal. Type: \copyright for distribution terms \h for help with SQL commands \? for help on internal slash commands \g or terminate with semicolon to execute query \q to quit teste=# select * linda from teste; ... If this works, then mapserver should be able to access the database. What OS are you using? Is the "mapserv" executable (Ie. the webserver) being run on the same machine as postgresql? If not, you'll have to change the "host=localhost" option and make sure you are running the postmaster with the "-i" (TCP/IP connections enabled). Esperan?osamente isto ajudar-lhe-? dave ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From morissette at dmsolutions.ca Tue Oct 16 20:10:09 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 16 Oct 2001 23:10:09 -0400 Subject: [mapserver-users] RE: Mapserver v3.5 executable for Windows 2000? References: Message-ID: <3BCCF691.7FD949D7@dmsolutions.ca> Ted Quinby wrote: > > Pericles, > > > > Thanks for getting back to me. From reading through the documentation, > > it appears that in order to be wms compliant, the code needs to be > > compiled along with W3C's libwww and the PROJ4.x libraries. From what > > I've read on the website, it appears that the PROJ4.x library is > > included, but the libwww library was not part of the compilation for the > > Windows binary executable. Let me know what you find out. Thanks. > > I just thought I would clarify a few things about the meaning of "WMS Compliance" and the associated requirements. With the recent additions, MapServer can act as both a WMS server and/or as a WMS client, and the requirements are different for each one: 1- WMS Server: Allows MapServer to act as a WMS server and make its layers available to remote WMS clients (i.e. answer getCapabilities, getMap and getFeatureInfo requests) Requires PROJ4. GDAL is optional, you need it only if you serve raster layers and advertize multiple projections. Libwww is not used at all in this case. Compile with "-DUSE_WMS" See the WMS-Server-HOWTO: http://mapserver.gis.umn.edu/doc/wms-server-howto.html 2- WMS Client: Allows MapServer to combine layers coming from remote WMS servers via the WMS CONNECTIONTYPE with other layers in your maps. Requires PROJ4, Libwww and GDAL for full support. Compile with "-DUSE_WMS_LYR" See the WMS-Client-HOWTO: http://mapserver.gis.umn.edu/doc/wms-client-howto.html -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From stepan.kafka at centrum.cz Wed Oct 17 05:43:19 2001 From: stepan.kafka at centrum.cz (=?iso-8859-1?Q?=8Atep=E1n_Kafka_2?=) Date: Wed, 17 Oct 2001 14:43:19 +0200 Subject: [mapserver-users] legend crashes In-Reply-To: <3BC1F925.1062A13B@dmsolutions.ca> Message-ID: <002a01c15709$4ccb5240$0100a8c0@HSGIS> Daniel, the new version of ms 3.5 works fine, but labels look worse than in older versions. (With ANTIALIAS they look better, but not so nice like in 3.4) There are the examples of legend (without antialias - labels looks similar in the maps) The 3.4 version The 3.5. version Stepan Kafka > > > > I use mapserver 3.4 on win32 and on Linux RH 6.2. The error > > reveals on both > > systems. It reveals during legend creating. I have attached the project > > adapted only for legend creation to this mail (usable only with > MODE=MAP). > > There are two layers in it. If one of them is switched on, it > > goes well, but > > with both it crashes. Maybe mistake in symbol file or anywhere > else? Can > > anybody help me? > > > Stepan, > > This was a bug in the MapServer source. I fixed it in the 3.5 source in > CVS. You'll have to upgrade to 3.5, or apply the patch manually to your > 3.4 installation. You can get a diff of this fix from CVS using: > > cvs diff -u -r 1.27 -r 1.28 mapsymbol.c > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms34.gif Type: image/gif Size: 3319 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms35.gif Type: image/gif Size: 3374 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Wed Oct 17 06:46:50 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 17 Oct 2001 08:46:50 -0500 Subject: [mapserver-users] legend crashes Message-ID: There is an issue with GD and Freetype an non-antialiased fonts. Previously I hacked the GD/Freetype interface to make it work correctly when antialiasing was off. I still have the Freetype 1 version that I can pass along to the GD folks but I've not tried fixing Freetype 2. I'd hoped that the authors had fixed it themselves. Guess not. When antialiasing is on the results *should* be identical. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> ?tep?n Kafka 2 10/17/01 07:55 AM >>> Daniel, the new version of ms 3.5 works fine, but labels look worse than in older versions. (With ANTIALIAS they look better, but not so nice like in 3.4) There are the examples of legend (without antialias - labels looks similar in the maps) The 3.4 version The 3.5. version Stepan Kafka > > > > I use mapserver 3.4 on win32 and on Linux RH 6.2. The error > > reveals on both > > systems. It reveals during legend creating. I have attached the project > > adapted only for legend creation to this mail (usable only with > MODE=MAP). > > There are two layers in it. If one of them is switched on, it > > goes well, but > > with both it crashes. Maybe mistake in symbol file or anywhere > else? Can > > anybody help me? > > > Stepan, > > This was a bug in the MapServer source. I fixed it in the 3.5 source in > CVS. You'll have to upgrade to 3.5, or apply the patch manually to your > 3.4 installation. You can get a diff of this fix from CVS using: > > cvs diff -u -r 1.27 -r 1.28 mapsymbol.c > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From morissette at dmsolutions.ca Wed Oct 17 07:43:37 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 17 Oct 2001 10:43:37 -0400 Subject: [mapserver-users] Problems with "make" again... References: <3BCC6B02.4C9493B0@dmsolutions.ca> Message-ID: <3BCD9919.60D70C8B@dmsolutions.ca> Greg Liapis wrote: > > Dear Daniel, > On closer look, "configure" seems to produce some errors. My OS is Red Hat > Linux 7.1. I'm sending you the output of "configure" and "make".The > Makefiles have zero length and contain nothing. > creating Makefile > sed: file conftest.s1 line 74: Unterminated 's' command > creating gdft/Makefile > sed: file conftest.s1 line 74: Unterminated 's' command > creating mapscript/php3/Makefile > sed: file conftest.s1 line 74: Unterminated 's' command Greg, That was a problem with the 'configure' script distributed with MapServer 3.4. It happened only on some systems, including RH7.x. This is fixed in 3.5, and a fixed 'configure' script for 3.4 is available at http://www2.dmsolutions.ca/mapserver/dl/ms34_configure-RH7-20010219.tar.gz -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From marin at here.is Wed Oct 17 08:17:55 2001 From: marin at here.is (Ma) Date: Wed, 17 Oct 2001 15:17:55 +0000 Subject: [mapserver-users] v3.5 documentation Message-ID: <3BCDA123.248D6657@here.is> Dear All, where can I find the documentation/changes for v 3.5? map files for 3.5? symbols for 3.5? etc. -- Ma From TMitchell at lignum.com Wed Oct 17 11:55:48 2001 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 17 Oct 2001 11:55:48 -0700 Subject: [mapserver-users] Cannot find -lzlib during build with ogr support Message-ID: So close and yet so far. Well, I got basic functionality working with mapserver, thanks for the excellent product. I'm still cutting my teeth on building applications, so can you help me with the error I'm getting? I've installed gdal and ogr and ran when I build mapserver using: >./configure --with-ogr >make The output tells me the following, then bails, without creating the executable: ----- gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_PROJ -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_2 -DUSE_OGR -I/home/download/gis/mapserver/gd-1.2 -I/home/download/gis/mapserver/gdft -I/usr/local/include/freetype shp2img.o -L. -lmap -L/home/download/gis/mapserver/gd-1.2 -lgd -L/home/download/gis/mapserver/gdft -lgdft -lttf -ltiff -lproj -ljpeg -lgdal.1.1 -ljpeg -lpng -ldl -logdi -lzlib -lm -o shp2img /usr/bin/ld: cannot find -lzlib collect2: ld returned 1 exit status make: *** [shp2img] Error 1 ----- Tyler J. Mitchell Coordinator - Geographic Information Systems Lignum Ltd - 180 Hodgson Road Williams Lake, B.C. Canada V2G 3P6 Phone: 250-392-3371 Fax: 250-398-3977 Email: tmitchell at lignum.com From armin.burger at territoriumonline.com Wed Oct 17 13:08:48 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Wed, 17 Oct 2001 22:08:48 +0200 Subject: [mapserver-users] Displaying very large shapefiles Message-ID: <200110172004.PAA25618@lists.gis.umn.edu> Puneet, I tried shptree with parameters from 4 to 10, the effect was always the same. The response was quite slow. The index file for a 600000 polygon file with 180 MB I use has only 2 MB, so I think the index size for the huge file is in a normal range. I'm only wondering why an increase in file size and polygon number of about 4 times increases the processing time up to 50 times or more. The difference between displaying a 600000 and 50000 polygon shapefile however (with appropriate zoom level) is neglibile. I don't know if the indexing reaches its limits when the amount of shapes is too high. Thanks Armin ------ Original Message ------ From Puneet Kishor Sent: 16/10/01, 10:23:06 Subject: RE: [mapserver-users] Displaying very large shapefiles > Armin, > Just a quick observation... >> -----Original Message----- >> From: Armin Burger [mailto:armin.burger at territoriumonline.com] >> Sent: Tuesday, October 16, 2001 5:47 AM >> To: mapserver-users at lists.gis.umn.edu >> Subject: [mapserver-users] Displaying very large shapefiles >> >> >> Hi everybody, >> >> I tried to display a really huge shapefile with 2.5 million >> polygons (the >> .shp file has about 450 MB). I used the 'shptree' to >> calculate the spatial >> index. But also with the index file (.qix) it takes several minutes to > [snip] >> handle shapefiles with too many features? The index file >> itself has 14 MB. >> > a 14 Mb index file for a 450 Mb shapefile seems to be too small an index > file. For example, I have a 156 Mb shapefile (state and county roads). It > was slow as a dog. Then I indexed it and shptree created a 38 Mb index file. > It is now blazingly fast. > Try reindexing with different parameters... maybe the indexing is not > optimal at all. > You are right. Nothing should take "minutes" in today's web age. If it does, > you have to either improve it or do it some other way. > pk/ From pkishor at GeoAnalytics.com Wed Oct 17 13:29:00 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 17 Oct 2001 15:29:00 -0500 Subject: [mapserver-users] MacOS X Message-ID: A'ite folks, I need some help. I want to get Mapserver running on MacOS 10.1, both with Perl and PHP modules and all other appropriate goodies. My eventual aim is to be able to create a MacOS X package with all its user-friendly goodness. Then I want to sit at the Union Terrace by the lake in Madison with my Powerbook, connected via the Airport card, and code Mapserver websites. I downloaded the source, compiled it with default everything, and got a boatload of errors. Before I submit these and start boring others who may not be interested in this, is there someone who has already done this? pk/ From ed at topozone.com Wed Oct 17 13:53:46 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 17 Oct 2001 16:53:46 -0400 Subject: [mapserver-users] Displaying very large shapefiles Message-ID: <13858AA1A74F30419F319ACB66A9D1220191EB@mercator.topozone.com> Armin - There are lots of factors that contribute to performance. Since I don't know anything about your data, here are some general things to think about: 1. Minimize the amount you have to draw The entire point of indexing and tiling data is to make it easy to quickly identify that subset of the data that needs to be drawn on the map. If you end up drawing all the data anyway, forget about tiling and indexing it and just buy a faster computer. Be sure your data is organized into layers that are displayed at appropriate scales. How many polygons from your data set are being displayed at once? ADVICE: Be sure to set MINSCALE and MAXSCALE values on your layers. If necessary, pre-classify your data into several different shapefiles so you can turn on your data incrementally. 2. Indexing works on bounding boxes You may still have to process lots of data if the indexing process still indicates that there is a large number of candidate objects that might need to be drawn. Imagine, for example, a data set that consists of a large number of concentric circles (polylines, not polygons). Now imagine a map being drawn that is a square lying INSIDE the smallest of those concentric circles. The map will actually be blank, since none of the polylines intersect it, but the bounding boxes of ALL the circles will intersect the map area, so each polyline shape ends up being a candidate for drawing. You can't tell whether or not the polyline actually intersects the map area of interest until you walk every vertex in the polyline. ADVICE: Look at your shapes. Can you break large polygons into smaller, contiguous polygons? 3. Tiling works on bounding boxes Use TILEINDEX wherever possible. Break your data set up into rectangular tiles that, as much as possible, don't overlap. That way you can avoid entire shapefiles all at once. For example, I'm developing an application using GDT's Dynamap/Display street database. Originally I had the data tiled by state (i.e. all the local roads in Colorado were in one shapefile); the performance wasn't too bad, but it wasn't as good as it could be. I used a TILEINDEX scheme so a request for roads at, say, the Four Corners area would search through the (indexed) shapefiles for local roads in Colorado, Utah, New Mexico, and Arizona. I then switched to using the data tiled by county instead of by state. Each shapefile then represented one county's worth of local roads, so I only needed to look through the (indexed) shapefiles for San Juan County, UT, Montezuma County, CO, San Juan County, NM, and Apache County, AZ. The result was MUCH faster, especially for the first query where the data files weren't in the filesystem cache. ADVICE: Try to tile your data into shapefiles intelligently. 4. Look at the hardware This is relatively minor, but make sure your disks are defragmented, you've got lots of RAM for your filesystem to cache things, etc. ADVICE: Don't tie one arm behind your back. Make sure the hardware and OS are well-tuned. There are really only two simple rules here. Every map you make will only display a very small fraction of your database. Rule #1: Trivial rejection - figure out how to completely ignore the vast majority of your data that just doesn't matter to the current map. Rule #2: Data organization - make sure the small piece of the data you DO need is easily, quickly, and efficiently accessible. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Armin Burger [mailto:armin.burger at territoriumonline.com] Sent: Wednesday, October 17, 2001 4:09 PM To: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Displaying very large shapefiles Puneet, I tried shptree with parameters from 4 to 10, the effect was always the same. The response was quite slow. The index file for a 600000 polygon file with 180 MB I use has only 2 MB, so I think the index size for the huge file is in a normal range. I'm only wondering why an increase in file size and polygon number of about 4 times increases the processing time up to 50 times or more. The difference between displaying a 600000 and 50000 polygon shapefile however (with appropriate zoom level) is neglibile. I don't know if the indexing reaches its limits when the amount of shapes is too high. Thanks Armin ------ Original Message ------ From Puneet Kishor Sent: 16/10/01, 10:23:06 Subject: RE: [mapserver-users] Displaying very large shapefiles > Armin, > Just a quick observation... >> -----Original Message----- >> From: Armin Burger [mailto:armin.burger at territoriumonline.com] >> Sent: Tuesday, October 16, 2001 5:47 AM >> To: mapserver-users at lists.gis.umn.edu >> Subject: [mapserver-users] Displaying very large shapefiles >> >> >> Hi everybody, >> >> I tried to display a really huge shapefile with 2.5 million >> polygons (the >> .shp file has about 450 MB). I used the 'shptree' to >> calculate the spatial >> index. But also with the index file (.qix) it takes several minutes to > [snip] >> handle shapefiles with too many features? The index file >> itself has 14 MB. >> > a 14 Mb index file for a 450 Mb shapefile seems to be too small an index > file. For example, I have a 156 Mb shapefile (state and county roads). It > was slow as a dog. Then I indexed it and shptree created a 38 Mb index file. > It is now blazingly fast. > Try reindexing with different parameters... maybe the indexing is not > optimal at all. > You are right. Nothing should take "minutes" in today's web age. If it does, > you have to either improve it or do it some other way. > pk/ From kridl at cs.und.edu Wed Oct 17 14:07:29 2001 From: kridl at cs.und.edu (Kent S Ridl) Date: Wed, 17 Oct 2001 16:07:29 -0500 (CDT) Subject: [mapserver-users] perl mapscript issues... Message-ID: Greetings all! Beware the newbie (i.e. me!)... I am working on setting up mapserver via the perl mapscript module for UMAC at the Univ. of North Dakota. I have absolutely no imaging-type/related experience, and I am trying to pick up perl as I go, so it's been quite the adventure for me thusfar. Anyhoo... on to my problem... Here is the meat of my perl script: my $map = new mapObj("../html/testdata/foo.map") or die("Unable to open mapfile... $!"); my $img = $map->prepareImage(); my $layer = $map->getLayerByName('testmapserv'); $result = $layer->draw($map,$img) or die("Unable to draw layer... $result... $!"); $img = $map->draw() or die("Unable to draw image... $!"); mapscript::msSaveImage($img,'../testdata/test_img.tif',$map->{interlace},$map->{transparent}); As is, execution of this script outputs this: Unable to draw layer... 0... Inappropriate ioctl for device at testmapserv.pl line 15. As you can see, this is hardly successful even though $layer->draw($map,$img) appears to return 0 (indicative of success, as per the online documentation). If I comment out the die part after attempting to draw the layer, the script then appears to work; it runs to completion and test_img.tif is saved appropriately. However, when I try to display test_img.tif, what is instead displayed is a big, white nothing of appropriate dimensions. I've followed every mapfile and perl example I have managed to get my hand on, yet I can't make heads of tails of what's going on. Any and all help is GREATLY appreciated, but please try not to make the solution very obvious... I'm apt to kick myself pretty hard in that case! Thanks in advance! Kent Ridl From pramsey at refractions.net Wed Oct 17 14:44:51 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 17 Oct 2001 14:44:51 -0700 Subject: [mapserver-users] Displaying very large shapefiles References: <200110172004.PAA25618@lists.gis.umn.edu> Message-ID: <3BCDFBD3.3959AA29@refractions.net> What is your data like? Are all the shapes of similar size (to within an order of magnitude)? Are the shapes spread out homogeneously or heavily clumped into a few areas? Are the shapes very very large (many many vertices)? Maybe you have data which isn't amenable to quadtree indexing. Or maybe you've exposed a bug :) Armin Burger wrote: > > Puneet, > > I tried shptree with parameters from 4 to 10, the effect was always the > same. The response was quite slow. The index file for a 600000 polygon file > with 180 MB I use has only 2 MB, so I think the index size for the huge file > is in a normal range. > > I'm only wondering why an increase in file size and polygon number of about > 4 times increases the processing time up to 50 times or more. The difference > between displaying a 600000 and 50000 polygon shapefile however (with > appropriate zoom level) is neglibile. I don't know if the indexing reaches > its limits when the amount of shapes is too high. > > Thanks > -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pkishor at GeoAnalytics.com Wed Oct 17 14:33:52 2001 From: pkishor at GeoAnalytics.com (Puneet Kishor) Date: Wed, 17 Oct 2001 16:33:52 -0500 Subject: [mapserver-users] Displaying very large shapefiles Message-ID: Armin, > I tried shptree with parameters from 4 to 10, the effect was > always the > same. The response was quite slow. The index file for a > 600000 polygon file > with 180 MB I use has only 2 MB, so I think the index size > for the huge file > is in a normal range. I definitely don't think so. While I have no scientific reason to back this, I think a 2 Mb index file is wayyyyyyy too small for a 180 Mb, 600K shapes shapefile. There is something not right with your index. Have you tried experimenting with different depths? pk/ > > I'm only wondering why an increase in file size and polygon > number of about > 4 times increases the processing time up to 50 times or more. > The difference > between displaying a 600000 and 50000 polygon shapefile however (with > appropriate zoom level) is neglibile. I don't know if the > indexing reaches > its limits when the amount of shapes is too high. > > Thanks > > Armin > > > > ------ Original Message ------ > From Puneet Kishor > Sent: 16/10/01, 10:23:06 > Subject: RE: [mapserver-users] Displaying very large shapefiles > > > Armin, > > > Just a quick observation... > > >> -----Original Message----- > >> From: Armin Burger [mailto:armin.burger at territoriumonline.com] > >> Sent: Tuesday, October 16, 2001 5:47 AM > >> To: mapserver-users at lists.gis.umn.edu > >> Subject: [mapserver-users] Displaying very large shapefiles > >> > >> > >> Hi everybody, > >> > >> I tried to display a really huge shapefile with 2.5 million > >> polygons (the > >> .shp file has about 450 MB). I used the 'shptree' to > >> calculate the spatial > >> index. But also with the index file (.qix) it takes > several minutes to > > > [snip] > > >> handle shapefiles with too many features? The index file > >> itself has 14 MB. > >> > > > a 14 Mb index file for a 450 Mb shapefile seems to be too > small an index > > file. For example, I have a 156 Mb shapefile (state and > county roads). It > > was slow as a dog. Then I indexed it and shptree created a > 38 Mb index > file. > > It is now blazingly fast. > > > Try reindexing with different parameters... maybe the > indexing is not > > optimal at all. > > > You are right. Nothing should take "minutes" in today's web > age. If it > does, > > you have to either improve it or do it some other way. > > > pk/ > > From TMitchell at lignum.com Wed Oct 17 15:17:38 2001 From: TMitchell at lignum.com (Tyler Mitchell) Date: Wed, 17 Oct 2001 15:17:38 -0700 Subject: [mapserver-users] Cannot find -lzlib during build with ogr support Message-ID: Thanks Frank, this did the trick. Frank Warmerdam To: Tyler Mitchell ox.com> Fax to: Subject: Re: [mapserver-users] Cannot find -lzlib 10/17/01 01:35 during build with ogr support PM Please respond to warmerdam Tyler Mitchell wrote: > Boy, you're really gonna make me work on this one eh? ;) > I downloaded gdal-1.1.5 and ogdi-3.1.0. Yes, I have libzlib_ogdi31.so in > /usr/local/lib. > How can I tell if I've got them installed properly. I'm not writing any > code using the libs myself, but did notice that there were a few > executables that came along. Are they (i.e. gdaladdo) documented anywhere? > Could it be a path setting problem. I have multiple terminal sessions > running here and am finding it hard to keep my env variables up to date in > all of them. I've discovered ldconfig, but can you tell me where to > permanently set path variables? gdal-config wasn't in my path, but once I > fixed that, gdal-config --libs said: -L/usr/local/lib -lgdal.1.1 > Should I still remove the reference, or should I make sure my path and > ld_library stuff is setup properly and re-try compile? Tyler, Just remove "-logdi -lzlib" from your Makefile for now. I see the MapServer configure script is a bit broken with regard to OGDI. I will correct this by removing the OGDI specific requests in MapServers configure script. At this point MapServer's configure is supposed to use gdal-config --libs to find libraries needed by GDAL so speicific knowledge of stuff like OGDI is not needed. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.lime at dnr.state.mn.us Wed Oct 17 15:35:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 17 Oct 2001 17:35:21 -0500 Subject: [mapserver-users] Documentation... Message-ID: Greetings folks. Lot's of discussion these days and lot's of references to the lack of quality documentation. I'd like folks to chime in about where specifically they see the biggest needs. Please respond directly to me (to avoid going off topic) and I'll summarize. That said, we need how to volunteers for MapScript, template files and a CGI reference guide. Anyone interested? Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From devoilp at dpi.qld.gov.au Wed Oct 17 17:19:48 2001 From: devoilp at dpi.qld.gov.au (Peter deVoil) Date: Thu, 18 Oct 2001 10:19:48 +1000 Subject: [mapserver-users] mapserver/gdal Message-ID: <200110180019.f9I0JnS18453@localhost.localdomain> Hi, I'm using a recent (pre3.5) version of mapserver with gdal raster input from esri .bil data. It's elevation in meters. It looks like -------- $ gdalinfo elzeaa.bil Driver: EHdr/ESRI .hdr Labelled Size is 600, 600 Coordinate System is `' Origin = (165.000000,-25.000000) Pixel Size = (0.008333,-0.008333) Corner Coordinates: Upper Left ( 165.0000000, -25.0000000) Lower Left ( 165.0000000, -30.0000000) Upper Right ( 170.0000000, -25.0000000) Lower Right ( 170.0000000, -30.0000000) Center ( 167.5000000, -27.5000000) Band 1 Block=600x1 Type=Int16, ColorInterp=Undefined Min=-32768.000/0, Max=32767.000/0 NoData Value=-9999 --------- I'm trying to build a classification for this and am unsure of how gdal is mapping 2 byte values to 0:255 as the manual implies: > " Some format drivers (ie. GDAL) cast the pixel values to the range > 0 to 255 before applying the classification scheme to them," Am I correct that the high byte of elevation data is lost? This would imply I have to convert Int16 -> unsinged char, and a pointer to a method for this would be appreciated. Yours, PdeV. From ycnyon at pd.jaring.my Wed Oct 17 19:22:42 2001 From: ycnyon at pd.jaring.my (nyon) Date: Thu, 18 Oct 2001 10:22:42 +0800 Subject: [mapserver-users] RE: Tool to simulate web/map requests Message-ID: <00b001c1577c$4b259540$147a7ac0@domain> Hi, Anyone have a tool to simulate map requests ? Hopefully one that doesn't require any installation on the server. I am running MS on Windows 2000 Advanced Server with 256MB Ram on a PIII 866 processor. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at topozone.com Wed Oct 17 19:20:35 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 17 Oct 2001 22:20:35 -0400 Subject: [mapserver-users] mapserver/gdal Message-ID: <13858AA1A74F30419F319ACB66A9D122D3F0@mercator.topozone.com> Peter - *IF* I'm reading the code right, it appears that MapServer will read a GDAL single-band data set as 8-bit values by asking GDAL to provide the data in 8-bit format. GDAL will convert .bil data that's signed 16-bit (Int16) to 8-bit by: 1. Returning 0 if the source pixel is <= 0.0 2. Returning 255 if the source pixel is >= 255.0 3. Returning the source pixel value in all other cases In short, just clamping all values outside the range to either 0 or 255. If you just want to do a quick hack, it would be REALLY easy to change this behavior (or behaviour) to handle the pixel differently. The code's in the GDAL source in core/rasterio.cpp - look for the GDALCopyWords function about 2/3rds of the way down the file. You'll have to figure out the proper conversion for your data, which would depend on the range of input values and how you want to represent them. Please remember that this message started with an *IF*, and if someone could either confirm or correct what I'm saying I'd appreciate it. Thanks! - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Peter deVoil [mailto:devoilp at dpi.qld.gov.au] Sent: Wednesday, October 17, 2001 8:20 PM To: mapserver-users at lists.gis.umn.edu Cc: warmerdam at pobox.com Subject: [mapserver-users] mapserver/gdal Hi, I'm using a recent (pre3.5) version of mapserver with gdal raster input from esri .bil data. It's elevation in meters. It looks like -------- $ gdalinfo elzeaa.bil Driver: EHdr/ESRI .hdr Labelled Size is 600, 600 Coordinate System is `' Origin = (165.000000,-25.000000) Pixel Size = (0.008333,-0.008333) Corner Coordinates: Upper Left ( 165.0000000, -25.0000000) Lower Left ( 165.0000000, -30.0000000) Upper Right ( 170.0000000, -25.0000000) Lower Right ( 170.0000000, -30.0000000) Center ( 167.5000000, -27.5000000) Band 1 Block=600x1 Type=Int16, ColorInterp=Undefined Min=-32768.000/0, Max=32767.000/0 NoData Value=-9999 --------- I'm trying to build a classification for this and am unsure of how gdal is mapping 2 byte values to 0:255 as the manual implies: > " Some format drivers (ie. GDAL) cast the pixel values to the range > 0 to 255 before applying the classification scheme to them," Am I correct that the high byte of elevation data is lost? This would imply I have to convert Int16 -> unsinged char, and a pointer to a method for this would be appreciated. Yours, PdeV. From Rich at GreenwoodMap.com Wed Oct 17 19:44:34 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Wed, 17 Oct 2001 20:44:34 -0600 Subject: [mapserver-users] include files Message-ID: <5.1.0.14.0.20011017203520.00af40d0@mail.GreenwoodMap.com> Hi Listers, This is sort of a feature suggestion, but I wanted to see if anyone else saw any value in this. I think the map file could really benefit from the ability to have include files. A couple cases where I think this would be useful would be: 1. Moving a map file between various servers that have different SHAPEPATH, SYMBOLSET, IMAGEPATH, IMAGEURL, ets. 2. Layer that you use in multiple map files. Is there a work around that I am not aware of? I've seen the JavaScript includes in template files, but then that has to get passed to mapserver in the URL with each submit, which seem rather inelegant. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From warmerdam at pobox.com Wed Oct 17 19:59:24 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Wed, 17 Oct 2001 22:59:24 -0400 Subject: [mapserver-users] mapserver/gdal References: <13858AA1A74F30419F319ACB66A9D122D3F0@mercator.topozone.com> Message-ID: <3BCE458C.5040009@pobox.com> Ed McNierney wrote: > Peter - > > *IF* I'm reading the code right, it appears that MapServer will read a > GDAL single-band data set as 8-bit values by asking GDAL to provide the > data in 8-bit format. GDAL will convert .bil data that's signed 16-bit > (Int16) to 8-bit by: > > 1. Returning 0 if the source pixel is <= 0.0 > 2. Returning 255 if the source pixel is >= 255.0 > 3. Returning the source pixel value in all other cases > > In short, just clamping all values outside the range to either 0 or 255. > > If you just want to do a quick hack, it would be REALLY easy to change > this behavior (or behaviour) to handle the pixel differently. The > code's in the GDAL source in core/rasterio.cpp - look for the > GDALCopyWords function about 2/3rds of the way down the file. You'll > have to figure out the proper conversion for your data, which would > depend on the range of input values and how you want to represent them. > > Please remember that this message started with an *IF*, and if someone > could either confirm or correct what I'm saying I'd appreciate it. > Thanks! Ed / Peter, Ed's assumptions about what drawGDAL() is currently doing for 16bit data is correct. However, rather than trying to change the behaviour in GDAL, I would think it better to change the behaviour in drawGDAL(). In Peter's case he apparently has a classification scheme he would like to apply to the raw 16bit values. The problem is that drawGDAL() (for efficiency and simplicity) currently utilizes the classification scheme to classify values between 0-255 and asumes that this is all that is necessary. Then the GDALRasterIO() call ensures that all values are clipped into this range. A few options exist. 1) perform the getClass() call for every pixel value. That would mean deferring it into the loop after the GDALRasterIO(), and using it in place of the cmap[] lookup. This approach would work well for all sorts of values, including floating point values, but would be relatively slow. getClass() is likely too slow to want to call it for every processed pixel in web mapping application. 2) For 16bit data, a 16bit lookup table could be created. Much like it is now getClass() would be called for each entry in the loopup table, but now instead of 256 entries it would be 65536 entries. This might be a bit expensive and wouldn't scale up to floating point values or Int32 values. 3) Perhaps case 2) could be modified to recognise the upper and lower bounds of the classification information, and produce an appropriately reduced lookup table. In any of these cases, the GDALRasterIO() call would need to be altered to read the data without clamping to 256 entries. The third last argument is the datatype to read the data as. This can be changed to GDT_Int16, GDT_UInt16, GDT_Int32 or GDT_Float32 for instance. I had been intending to implement some sort of upgrade to drawGDAL() in mapraster.c along the lines of 1) at some point but haven't gotten around to it yet. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at topozone.com Wed Oct 17 20:29:23 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 17 Oct 2001 23:29:23 -0400 Subject: [mapserver-users] include files Message-ID: <13858AA1A74F30419F319ACB66A9D122D3F2@mercator.topozone.com> Richard - After wishing for the same thing for a while, I realized that I could do everything I wanted by using my C compiler's preprocessor. So now I have a set of source files that look like: #include "web.inc" MINSCALE 6700 #if UTM_ZONE > 9 #include "gdt_ih.inc" // There are no GDT Interstate Highways west of UTM Zone 10 #endif ...and so on. Then I just run them through the preprocessor to produce the .map files. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] Sent: Wednesday, October 17, 2001 10:45 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] include files Hi Listers, This is sort of a feature suggestion, but I wanted to see if anyone else saw any value in this. I think the map file could really benefit from the ability to have include files. A couple cases where I think this would be useful would be: 1. Moving a map file between various servers that have different SHAPEPATH, SYMBOLSET, IMAGEPATH, IMAGEURL, ets. 2. Layer that you use in multiple map files. Is there a work around that I am not aware of? I've seen the JavaScript includes in template files, but then that has to get passed to mapserver in the URL with each submit, which seem rather inelegant. Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From gispmpf at zipmail.com.br Wed Oct 17 20:44:44 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Thu, 18 Oct 2001 00:44:44 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?Problem=20fixed?= Message-ID: <3BCE0141000010D9@www.zipmail.com.br> gispmpf at zipmail.com.br wrote: > > Thanks dave > I have tried your changes but i steel have the same problem > the: psql -U postgres teste > work ok and if i type > select linha from teste where id=1; > in the psql terminal work ok too. > but the following mapfile layer dont... >I have no idea why its not working. What version of postgresql >are you >running? Do you have any other versions installed? Is the libpq >the >correct version? >Here are two fixes: >1. remove the "host=localhost" portion of the connection string >2. start the postmaster with the "-i" option to enable TCP/IP >connections Thanks dave this fix the problem. Best regards Jo?o ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From gispmpf at zipmail.com.br Wed Oct 17 20:49:09 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Thu, 18 Oct 2001 00:49:09 -0300 Subject: [mapserver-users] =?iso-8859-1?Q?polygon=20symbol?= Message-ID: <3BCE0141000010F0@www.zipmail.com.br> I have defined a polygon on postgis and now i must show it...there is in map server any default symbol for a polygon ? Thanks again, Joao. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From zhox at yeah.net Wed Oct 17 22:40:09 2001 From: zhox at yeah.net (Zhou Xu) Date: Thu, 18 Oct 2001 13:40:9 +0800 Subject: [mapserver-users] what's the meaning of ""$BCT(B""? Message-ID: <20011018055030.ED8331CE2B863@smtp2.yeah.net> Sorry for my interruption, but I can't find the answer to this question even after a whole day's work. Would you please tell me what the meaning of "$BCT (B" and "$BCU (B"? I must make sense of it because I am reading a technical paper which uses it several times. ZHOU Xu ------------------------------------------------------------------------------------------- ZiZhuYuan BaishengCun No.1 NGCC Post Code, 100044 Beijing, China Phone: +86 10 86851042 Fax: +86 10 68424101 Email: std at nsdi.gov.cn ------------------------------------------------------------------------------------------- From JohnHockaday at auslig.gov.au Wed Oct 17 23:35:41 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Thu, 18 Oct 2001 16:35:41 +1000 Subject: [mapserver-users] OGC and Mapserver Message-ID: <53273E187450D311ACF6009027927B12022C0FF0@smtpgate.auslig.gov.au> Hi, I want to implement a simple OpenGIS compliant Web Map Service using Mapserver to test the WMS concepts. I believe that Mapserver version 3.5 is capable of doing this however, I've been waiting for 3.5 to be stable and beyond the nightly builds before I attempt this project. I don't have CVS just RCS. I therefore, have the following questions: 1. Has anyone set up a simple OpenGIS compliant WMS using mapserv? If so how difficult was it and can you supply any examples? 2. Is Mapserver version 3.5 stable enough for me to confidently implement and smoothly run a WMS and if not when will it be stable enough. 3. Is it easy to convert 3.4 mapfiles format into 3.5 mapfiles format? Thanks in advance for your replies. John Hockaday From pnaciona at gis.umn.edu Thu Oct 18 00:29:28 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 18 Oct 2001 02:29:28 -0500 Subject: [mapserver-users] OGC and Mapserver In-Reply-To: <53273E187450D311ACF6009027927B12022C0FF0@smtpgate.auslig.gov.au> Message-ID: John, > I want to implement a simple OpenGIS compliant Web Map Service using > Mapserver to test the WMS concepts. I believe that Mapserver > version 3.5 is > capable of doing this however, I've been waiting for 3.5 to be stable and > beyond the nightly builds before I attempt this project. Having compiled support for WMS server, I decided to try converting the MapServer demo into a WMS app. You can can check it out at http://128.101.73.156/cgi-bin/demo35wms?REQUEST=GetMap&layer=lakes&layer=str eams&zoomsize=1 I don't have CVS > just RCS. I therefore, have the following questions: > > 1. Has anyone set up a simple OpenGIS compliant WMS using mapserv? If so > how difficult was it and can you supply any examples? Well, it wasn't that difficult. It was just tedious adding the METADATA and PROJECTION stuff. Everything sort of makes sense after a couple of repetitions (sort of like the rest of the map file, I guess :). > > 2. Is Mapserver version 3.5 stable enough for me to confidently implement > and smoothly run a WMS and if not when will it be stable enough. Well, based on my experience, mapserver 3.5 is very stable. But then, I really haven't used any of the new features yet. ...and I'm running this on Win2000. > > 3. Is it easy to convert 3.4 mapfiles format into 3.5 mapfiles format? > If you're using the demo for 3.4, just move the QUERY TEMPLATE into the CLASS object and you're pretty much set. Here's an example: old 3.4 map file <...> LAYER <...> CLASS NAME county COLOR 128 128 128 END # end of class definitions QUERY TEMPLATE county.html END # end of query stuff END # end of layer defs END # end of map file new 3.5 map file <...> LAYER <...> CLASS NAME county COLOR 128 128 128 TEMPLATE county.html END # end of class definitions END # end of layer defs END # end of map file So, no more QUERY object. > Thanks in advance for your replies. > > John Hockaday > I hope this helps. Let me know if you want my sample files. -Perry Nacionales PS: I used Jeff McKenna's WMS Server HOW-TO for setting up this demo. It's available in the documentation section of the mapserver web site--http://mapserver.gis.umn.edu/doc.html From joemayfair at usa.net Thu Oct 18 01:01:19 2001 From: joemayfair at usa.net (Walt Lin) Date: Thu, 18 Oct 2001 04:01:19 -0400 Subject: [mapserver-users] Strategy for dealing with Census Data? In-Reply-To: <3BCC3A7F.6D47D3C3@mediaone.net> References: <3BCC3A7F.6D47D3C3@mediaone.net> Message-ID: <20011018040119.A2803@eggbert> I've got a running version with the census 2000 data. I convreted the tiger files to shp using tgr2shp. I extracted layers I wanted for each county into separate shp files. I then use Postgres to do a query (rtree index) to figure out which shp files I want to turn on for a certain request, and use mapscript to turn them on. I'm looking into PostGIS but my setup works fine for now. (I also have my own scale filtering, only selecting the paths to shp files from Postgres if the layer is within the scale, bypassing mapserver's MINSCALE and MAXSCALE). Good luck. Cheers, Walt ps-- I'm pretty sure that the tiger 2000 files are now freely available in shp format, from somewhere. On Tue, Oct 16, 2001 at 09:47:43AM -0400, Stephen Woodbridge wrote: > Hi all, > > As a newbie to this list, I am wondering if there is a searchable > archive that I can check before I post? Where? How? > > Has anyone loaded up the Census data onto MapServer? > > In reading the documentation it appears that layers most be single shp > fileset - Is this correct? > > If so, that implies that all 50+ state/state equiv. files that the > Census releases for a given "layer" need to be merged into a single huge > ..shp file - Is this correct? Then I suppose you need to run shptree on > it. Is there a utility to combine .shp files if that is required? > > Is there a better/other strategy for dealing with this that I have > missed? > > Thanks for the help, > > -Stephen Woodbridge > http://web-maps.org/ > > From fuerp at atlas.gis.univie.ac.at Thu Oct 18 01:25:38 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpass) Date: Thu, 18 Oct 2001 10:25:38 +0200 Subject: [mapserver-users] Differnet Quality Output of Text labels Message-ID: <3BCE9202.6050204@atlas.gis.univie.ac.at> Hello Group! After transfering my application from a old server to a new one the following problem appeard with the text labels in the maps: I have on both servers Mapserver 3.4 running with gd 1.2, so the outputs are GIF images. The only difference is that on the old server i have compiled PHP 3.0.18 with True Type Support and on the new server i have compiled PHP 4.0.5 without True Type (as told in the documentation) . But i have included True type to the Mapserver compilation. When i leave this paramter the demo wont work, because the Mapserver didnt know the TRUETYPE Tag in the Mapfile, so i know that it should work correctly. This problem looks simmilar to the problem S(tep?n Kafka wrote some postings ago, but i dont use 3.5 yet. I have read Stevens answer to the post, but i dont know what can i do against this issue between GD and Freetype. I hope anybody can help me. (So that i can give away the old server soon.) ;-) Christian Fuerpass -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartographie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: output-old-new.gif Type: image/gif Size: 33731 bytes Desc: not available URL: From armin.burger at territoriumonline.com Thu Oct 18 01:32:33 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Thu, 18 Oct 2001 10:32:33 +0200 Subject: [mapserver-users] Displaying very large shapefiles, problem solved Message-ID: <200110180833.KAA27018@efferd.nettz.com> Hi, thanks to Puneet Kishor, Ed McNierney, Ross Searle, and Paul Ramsey for their help. I think I could sort out the problem. It was related to the binary I was using. Changing it to the latest version made it possible to display the large shapefile. The one used before crashed with some newly created index file and seemed therefore to have general problems with some indexes. I noticed also remarkable processing speed difference between an index with depth 10 and 20 (I always used only a maximum of 10 because I found the range between 4 and 10 mentioned once in the mailing list archive). The index with depth 20 had ten times the size than the one with 10 and reduced processing time from about 15 seconds to 5 seconds. So Puneet's hint with the too small index size was right. If PostGIS ist as fast as Ross mentioned I will also think about that and give it a try in future. Thanks again Armin -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia email: armin.burger at territoriumonline.com http://www.territoriumonline.com tel: +39-0471-568185 / fax -- 568078 From rob at socialchange.net.au Thu Oct 18 05:26:50 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Thu, 18 Oct 2001 22:26:50 +1000 Subject: [mapserver-users] OGC and Mapserver References: <53273E187450D311ACF6009027927B12022C0FF0@smtpgate.auslig.gov.au> Message-ID: <3BCECA8A.CC685ABF@socialchange.net.au> Social Change Online has set up MapServ 3.5 under Linux and found it pretty stable and OGC compliance has been good. It is a significant improvement in its ability to perform reprojections on the fly controlled by OGC parameters. The feature_info issue is the current major limitation - we really need to be able to generate our own GML response schemas to get much value out of this. Rob Atkinson "Hockaday, John" wrote: > Hi, > > I want to implement a simple OpenGIS compliant Web Map Service using > Mapserver to test the WMS concepts. I believe that Mapserver version 3.5 is > capable of doing this however, I've been waiting for 3.5 to be stable and > beyond the nightly builds before I attempt this project. I don't have CVS > just RCS. I therefore, have the following questions: > > 1. Has anyone set up a simple OpenGIS compliant WMS using mapserv? If so > how difficult was it and can you supply any examples? > > 2. Is Mapserver version 3.5 stable enough for me to confidently implement > and smoothly run a WMS and if not when will it be stable enough. > > 3. Is it easy to convert 3.4 mapfiles format into 3.5 mapfiles format? > > Thanks in advance for your replies. > > John Hockaday -------------- next part -------------- A non-text attachment was scrubbed... Name: rob.vcf Type: text/x-vcard Size: 337 bytes Desc: Card for Rob Atkinson URL: From steve.lime at dnr.state.mn.us Thu Oct 18 06:44:31 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 18 Oct 2001 08:44:31 -0500 Subject: [mapserver-users] Differnet Quality Output of Text labels Message-ID: Again this is because the GD/Freetype integration doesn't process un-antialiased text correctly. There is no fix short of hacking GD or getting the GD group patches that fix the problem. They are open to that but I've not had the time to create them. The best thing to do is to just use ANTIALIASing whenever you use TrueType fonts. Since the extra colors necessary are allocated at the end of rendering there is little impact on the actual output, nor is there much of a performance hit. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Christian Fuerpass 10/18/01 03:32 AM >>> Hello Group! After transfering my application from a old server to a new one the following problem appeard with the text labels in the maps: I have on both servers Mapserver 3.4 running with gd 1.2, so the outputs are GIF images. The only difference is that on the old server i have compiled PHP 3.0.18 with True Type Support and on the new server i have compiled PHP 4.0.5 without True Type (as told in the documentation) . But i have included True type to the Mapserver compilation. When i leave this paramter the demo wont work, because the Mapserver didnt know the TRUETYPE Tag in the Mapfile, so i know that it should work correctly. This problem looks simmilar to the problem S(tep?n Kafka wrote some postings ago, but i dont use 3.5 yet. I have read Stevens answer to the post, but i dont know what can i do against this issue between GD and Freetype. I hope anybody can help me. (So that i can give away the old server soon.) ;-) Christian Fuerpass -- ________________________________________________________ Institut fuer Geographie der Universitaet Wien Kartographie und Geoinformation Deptartment of Geography and Regional Science University of Vienna Cartography and GIS Tel: (+43 1) 4277 48658 Fax: (+43 1) 4277 48649 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ _______________________________________________________ From steve.lime at dnr.state.mn.us Thu Oct 18 07:25:12 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 18 Oct 2001 09:25:12 -0500 Subject: [mapserver-users] OGC and Mapserver Message-ID: A GML output filter is well underway and should be hooked into the system soon. It's actually the last piece holding up the release of 3.5. As it sits now you (the data provider) will have to supply a schema from your site to accompany the query specific GML data. There's no way around that. It's definition happens in the metadata block of the WEB object just like with WMS. I imagine a script could be written to look at a mapfile and with the GML encoder in mind write a skeleton schema that could be fleshed out a bit. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Rob Atkinson 10/18/01 08:08 AM >>> Social Change Online has set up MapServ 3.5 under Linux and found it pretty stable and OGC compliance has been good. It is a significant improvement in its ability to perform reprojections on the fly controlled by OGC parameters. The feature_info issue is the current major limitation - we really need to be able to generate our own GML response schemas to get much value out of this. Rob Atkinson "Hockaday, John" wrote: > Hi, > > I want to implement a simple OpenGIS compliant Web Map Service using > Mapserver to test the WMS concepts. I believe that Mapserver version 3.5 is > capable of doing this however, I've been waiting for 3.5 to be stable and > beyond the nightly builds before I attempt this project. I don't have CVS > just RCS. I therefore, have the following questions: > > 1. Has anyone set up a simple OpenGIS compliant WMS using mapserv? If so > how difficult was it and can you supply any examples? > > 2. Is Mapserver version 3.5 stable enough for me to confidently implement > and smoothly run a WMS and if not when will it be stable enough. > > 3. Is it easy to convert 3.4 mapfiles format into 3.5 mapfiles format? > > Thanks in advance for your replies. > > John Hockaday From mcilhagga at dmsolutions.ca Thu Oct 18 08:00:30 2001 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Thu, 18 Oct 2001 11:00:30 -0400 Subject: [mapserver-users] Re: mapserver and coldfusion (cfx) References: <7CDD7B94357FD5119E800002A537C46E22FC4D@s5-ccr-r1.ccrs.nrcan.gc.ca> <019501c1567b$b792c560$0a729acb@tei.or.th> Message-ID: <3BCEEE8E.2FCB9CF3@dmsolutions.ca> Paul Hastings wrote: > > > I'm afraid I'm really not qualified in helping with the coding, but I'll > > gladly beta-test it, and possibly help with documentation, as well as > > provide comments and ideas whenever I can. > > excellent. i want to make sure we start on the right foot. especially > need some kind of cheer leading to help my staff stay the course > on this. the girl working on this is pretty good & seems tough enough > but some outside encouragement would be nice ;-) > Thought I would add some cheerleading from our end of the world ... We've had similar requests for a Cold Fusion wrapper for MapScript in the past. Paul, if this does get developed and is useful for us, you can expect that DM Solutions will be using and helping to support your developments. Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 613-565-0925 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From morissette at dmsolutions.ca Thu Oct 18 09:03:10 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 18 Oct 2001 12:03:10 -0400 Subject: [mapserver-users] [Fwd: mapserver 3.3.011] References: <3BCC76A4.7030301@gis.umn.edu> Message-ID: <3BCEFD3D.2F2B279B@dmsolutions.ca> Bonjour Francoise, Fran?oise Guilbault wrote: > > We are considering running mapserver and need some information in order to setup the platform and dependent solftware. > > It would be greatly appreciated, if you could provide the following information or direct me to a reliable source. > > Will mapserver version 3.3.011 run on Red Hat Linux 6.1? Yes it will run on RH6.1. However, since you're just starting now, I would suggest that you go with MapServer 3.4 or the current 3.5 development version. 3.4 was extremely stable and has several features not present in 3.3.011. 3.5 is still "under development" but it's also quite stable so you could go with 3.5 now and not expect too many problems (see nightly build in http://mapserver.gis.umn.edu/dload.html). > What version of apache do I need to install? If you plan on using only the "mapserv" CGI then any version of Apache or any other web server would do. If you plan on using MapScript in one of the scripting environments (Perl or PHP) then Apache 1.3.x is guaranteed to work, but other versions should work as well. > Any other relevant information? > Not really, except perhaps that I should warn you about possible frustrations in setting up the demo the first time if you download the wrong version of the demo files... but once you get beyond that then you'll be amazed by everything MapServer can do. Finally, the list archives (http://mapserver.gis.umn.edu/support.html) and the HOWTOs (about 3/4 down in http://mapserver.gis.umn.edu/doc.html) are the best resources for information on 3.5 Enjoy! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From fuerp at atlas.gis.univie.ac.at Thu Oct 18 09:52:22 2001 From: fuerp at atlas.gis.univie.ac.at (Christian Fuerpasz) Date: Thu, 18 Oct 2001 18:52:22 +0200 Subject: [mapserver-users] Differnet Quality Output of Text labels References: Message-ID: <3BCF08C6.595A5B85@atlas.gis.univie.ac.at> Hi! Thank you for your answer, but the problem is, that i use the same application on 2 different server and get different results. The screenshot is only from the demo to make it more easy to compear the 2 versions. One thing, i didnt mention before was, that the Version of Mapserver 3.4 on the first server is from februar this year and the second version is from last month. Can this be the difference? By the way, i use on both servers antialiasing. Hope this helps somehow.... Christian Stephen Lime schrieb: > Again this is because the GD/Freetype integration doesn't process un-antialiased text correctly. There is no fix short of hacking GD or getting the GD group patches that fix the problem. They are open to that but I've not had the time to create them. > > The best thing to do is to just use ANTIALIASing whenever you use TrueType fonts. Since the extra colors necessary are allocated at the end of rendering there is little impact on the actual output, nor is there much of a performance hit. > > Steve > -- __________________________________________________________ INSTITUT fuer GEOGRAFIE der UNIVERSITAET WIEN Kartographie und Geoinformation Tel: (+43 1) 4277 48658 E-Mail: mailto:fuerp at atlas.gis.univie.ac.at Snail-Mail: Universitaetstr. 7, A-1010 Wien, AUSTRIA WWW: http://www.gis.univie.ac.at/karto/ __________________________________________________________ From neodym at datagis.com Thu Oct 18 10:03:43 2001 From: neodym at datagis.com (Tobias Zuegel) Date: Thu, 18 Oct 2001 19:03:43 +0200 (CEST) Subject: [mapserver-users] Mapscript/java?! In-Reply-To: Message-ID: Hi, I'd like to ask again if there's progress in the development of a java usable version of the mapscript.i file. Since I have a project here requiring java, it would be nice to know if (and roughly when) java support will be added. If it works and I can use it with this project, I will write a nice javadoc api reference with examples in return. Greetings and best wishes, Tobias Z?gel mail: t.zuegel at datagis.com [mailto:t.zuegel at datagis.com] ---------------------------------------------------------------------------- DataGis GbR 2&3dimensionale Informationsverarbeitung und digitale Kartographie Johann-Strau?-Str. 26 70794 Filderstadt tel: +(49) 7158 940267 fax: +(49) 7158 940268 web: www.datagis.com mail: info at datagis.com ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- From John.Arthur at voicestream.com Thu Oct 18 10:40:41 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Thu, 18 Oct 2001 10:40:41 -0700 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: <987E5CD7052ED51198F400508BA25279089F33@vamerrifms01.mail.voicestream.com> I would like to use topo quads in my MapServer, but it would take forever to export each quad from Delorme's 3D topoquads. So I exported large 150 mb files instead. Is there a way to split these up into smaller files or just to display the large tiff in MapServer faster. We would like something like what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer our own data on top. John Arthur RF Technician Office: (757) 490-7221 Cellular: (757) 692-1515 Email: john.arthur at voicestream.com _~-^-~_ VoiceStream W I R E L E S S From woodbri at mediaone.net Thu Oct 18 13:21:27 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Thu, 18 Oct 2001 16:21:27 -0400 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone References: <987E5CD7052ED51198F400508BA25279089F33@vamerrifms01.mail.voicestream.com> Message-ID: <3BCF39C7.28ECB923@mediaone.net> I believe you could do that with ImageMagick and Perl to automate it. You should be able to chop up each of your large maps into n x m tiles. -Stephen Woodbridge http://web-maps.org "Arthur, John" wrote: > > I would like to use topo quads in my MapServer, but it would take forever to > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > files instead. Is there a way to split these up into smaller files or just > to display the large tiff in MapServer faster. We would like something like > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer our > own data on top. > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 692-1515 > Email: john.arthur at voicestream.com > _~-^-~_ > VoiceStream > W I R E L E S S From John.Arthur at voicestream.com Thu Oct 18 13:33:14 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Thu, 18 Oct 2001 13:33:14 -0700 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: <987E5CD7052ED51198F400508BA25279089F37@vamerrifms01.mail.voicestream.com> Yes, but what about the world file(.twf)? - John -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at mediaone.net] Sent: Thursday, October 18, 2001 4:21 PM To: Arthur, John Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone I believe you could do that with ImageMagick and Perl to automate it. You should be able to chop up each of your large maps into n x m tiles. -Stephen Woodbridge http://web-maps.org "Arthur, John" wrote: > > I would like to use topo quads in my MapServer, but it would take forever to > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > files instead. Is there a way to split these up into smaller files or just > to display the large tiff in MapServer faster. We would like something like > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer our > own data on top. > > John Arthur > RF Technician > Office: (757) 490-7221 > Cellular: (757) 692-1515 > Email: john.arthur at voicestream.com > _~-^-~_ > VoiceStream > W I R E L E S S From kenboss at dilbert.dnr.state.mn.us Thu Oct 18 13:49:10 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Thu, 18 Oct 2001 15:49:10 -0500 (CDT) Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: <200110182049.f9IKnA112486@philbert.dnr.state.mn.us> Right, you'd lose the georeferencing with the ImageMagick approach. If you're a programmer, it shouldn't be too hard to do using one of the GDAL APIs (C, C++, or Python). If you're only a wannabe programmer like myself, you might still be able to hack one of the apps distributed with GDAL (such as gdal_translate) to get what you need. See http://www.remotesensing.org/gdal/ --Ken ============================================================================= Ken Boss Digital Image Analysis / Web Stuff Forestry Resource Assessment kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural Resources Voice: 218 327 4449 ext. 237 413 SE 13th Street Fax: 218 327 4517 Grand Rapids, MN 55744 USA www.ra.dnr.state.mn.us ============================================================================= > > Yes, but what about the world file(.twf)? > > - John > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > Sent: Thursday, October 18, 2001 4:21 PM > To: Arthur, John > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > > I believe you could do that with ImageMagick and Perl to automate it. > You should be able to chop up each of your large maps into n x m tiles. > > -Stephen Woodbridge > http://web-maps.org > > "Arthur, John" wrote: > > > > I would like to use topo quads in my MapServer, but it would take forever > to > > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > > files instead. Is there a way to split these up into smaller files or > just > > to display the large tiff in MapServer faster. We would like something > like > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer > our > > own data on top. > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at voicestream.com > > _~-^-~_ > > VoiceStream > > W I R E L E S S From pramsey at refractions.net Thu Oct 18 15:20:58 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Thu, 18 Oct 2001 15:20:58 -0700 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone References: <987E5CD7052ED51198F400508BA25279089F37@vamerrifms01.mail.voicestream.com> Message-ID: <3BCF55CA.9902F626@refractions.net> Math, sweet math. We converted a bunch of images from one grid layout to a different one. You have to do some math to convert from image coordinates to geographic and back out again. You write new twf's for every new file you create, with the proper geographic coordinates. Perl + ImageMagick is a nice combination. The math is not hard, just fiddly (images have origin at top left, geographics have origin at bottom left, stuff like that). "Arthur, John" wrote: > > Yes, but what about the world file(.twf)? > > - John > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > Sent: Thursday, October 18, 2001 4:21 PM > To: Arthur, John > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > I believe you could do that with ImageMagick and Perl to automate it. > You should be able to chop up each of your large maps into n x m tiles. > > -Stephen Woodbridge > http://web-maps.org > > "Arthur, John" wrote: > > > > I would like to use topo quads in my MapServer, but it would take forever > to > > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > > files instead. Is there a way to split these up into smaller files or > just > > to display the large tiff in MapServer faster. We would like something > like > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer > our > > own data on top. > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at voicestream.com > > _~-^-~_ > > VoiceStream > > W I R E L E S S -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From John.Arthur at voicestream.com Thu Oct 18 15:14:31 2001 From: John.Arthur at voicestream.com (Arthur, John) Date: Thu, 18 Oct 2001 15:14:31 -0700 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: <987E5CD7052ED51198F400508BA25279089F38@vamerrifms01.mail.voicestream.com> Hmm,.. I seams my mapserver won't display rasters,... I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff was compiled in, and I get no errors. I'm using the ".wld" extention and also tried TileIndex through shapefiles,.. Any ideas? -John -----Original Message----- From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] Sent: Thursday, October 18, 2001 4:49 PM To: John.Arthur at voicestream.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone Right, you'd lose the georeferencing with the ImageMagick approach. If you're a programmer, it shouldn't be too hard to do using one of the GDAL APIs (C, C++, or Python). If you're only a wannabe programmer like myself, you might still be able to hack one of the apps distributed with GDAL (such as gdal_translate) to get what you need. See http://www.remotesensing.org/gdal/ --Ken ============================================================================ = Ken Boss Digital Image Analysis / Web Stuff Forestry Resource Assessment kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural Resources Voice: 218 327 4449 ext. 237 413 SE 13th Street Fax: 218 327 4517 Grand Rapids, MN 55744 USA www.ra.dnr.state.mn.us ============================================================================ = > > Yes, but what about the world file(.twf)? > > - John > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > Sent: Thursday, October 18, 2001 4:21 PM > To: Arthur, John > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > > I believe you could do that with ImageMagick and Perl to automate it. > You should be able to chop up each of your large maps into n x m tiles. > > -Stephen Woodbridge > http://web-maps.org > > "Arthur, John" wrote: > > > > I would like to use topo quads in my MapServer, but it would take forever > to > > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > > files instead. Is there a way to split these up into smaller files or > just > > to display the large tiff in MapServer faster. We would like something > like > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer > our > > own data on top. > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at voicestream.com > > _~-^-~_ > > VoiceStream > > W I R E L E S S From woodbri at mediaone.net Thu Oct 18 15:16:25 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Thu, 18 Oct 2001 18:16:25 -0400 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone References: <987E5CD7052ED51198F400508BA25279089F37@vamerrifms01.mail.voicestream.com> Message-ID: <3BCF54B9.2A3425B8@mediaone.net> Copied from the list archives: > map file. If, for some reason, you want a .tfw file anyways and aren't sure > how to create it by hand, the listgeo utility distributed with libgeotiff > (http://www.remotesensing.org/geotiff/geotiff.html) includes the ability to > create a .tfw file from a GeoTIFF file. This might help you. -Stephen Woodbridge http://web-maps.org "Arthur, John" wrote: > > Yes, but what about the world file(.twf)? > > - John > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > Sent: Thursday, October 18, 2001 4:21 PM > To: Arthur, John > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > I believe you could do that with ImageMagick and Perl to automate it. > You should be able to chop up each of your large maps into n x m tiles. > > -Stephen Woodbridge > http://web-maps.org > > "Arthur, John" wrote: > > > > I would like to use topo quads in my MapServer, but it would take forever > to > > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > > files instead. Is there a way to split these up into smaller files or > just > > to display the large tiff in MapServer faster. We would like something > like > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer > our > > own data on top. > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at voicestream.com > > _~-^-~_ > > VoiceStream > > W I R E L E S S From ed at topozone.com Thu Oct 18 17:26:33 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 18 Oct 2001 20:26:33 -0400 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: <13858AA1A74F30419F319ACB66A9D1220191F2@mercator.topozone.com> Folks - I've already mentioned to John privately that I have set up a WMS server for topographic maps and would be interested in working with folks who would either like to use WMS "end-point" clients or use MapServer as a WMS client for these data layers. These will shortly be available as a subscription service from TopoZone, and I could use some guinea pigs. If you're very cooperative, I've got some nice 1-meter DOQ data you can use, too . Send email if you're interested; you'll be able to get complete DRG or DOQ base maps for your MapServer applications without buying data or disk to put it on! On the original point of chopping up rasters into little tiles, don't get carried away. TopoZone's current image architecture is designed to do one very, very specific task very quickly. The entire "map server" for topozone.com (just the map-serving system, not the Web site) is six lines of ASP VBScript code; everything is precomputed and prebuilt, and all we serve are small image tiles at one of four fixed zoom levels. The tiles are small so you can scroll the map in whole-tile increments while still providing the user a reasonable degree of centering control. The HARD part was generating all those tiles from the hodgepodge of source DRG data - serving them is trivial. I would NOT recommend a similar approach for MapServer applications - the tiles are WAY too small. Besides the administrative hassles (I've got over 17 million of the little buggers to keep track of) the disk-seeking overhead is not worth it. You can construct a very nice MapServer system using much larger files. We're currently managing a few applications with topographic base maps, are we're storing one quad (one DRG) per file; that means each TIFF file is several megabytes. There's NO problem with performance IF you structure the data carefully. I could very easily use larger TIFF images, but there's no benefit for me to do that - having one output TIFF image for every input DRG makes updates, bug fixes, and administration much easier. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Arthur, John [mailto:John.Arthur at voicestream.com] Sent: Thursday, October 18, 2001 6:15 PM To: 'kenboss'; Arthur, John Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone Hmm,.. I seams my mapserver won't display rasters,... I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff was compiled in, and I get no errors. I'm using the ".wld" extention and also tried TileIndex through shapefiles,.. Any ideas? -John -----Original Message----- From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] Sent: Thursday, October 18, 2001 4:49 PM To: John.Arthur at voicestream.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone Right, you'd lose the georeferencing with the ImageMagick approach. If you're a programmer, it shouldn't be too hard to do using one of the GDAL APIs (C, C++, or Python). If you're only a wannabe programmer like myself, you might still be able to hack one of the apps distributed with GDAL (such as gdal_translate) to get what you need. See http://www.remotesensing.org/gdal/ --Ken ======================================================================== ==== = Ken Boss Digital Image Analysis / Web Stuff Forestry Resource Assessment kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural Resources Voice: 218 327 4449 ext. 237 413 SE 13th Street Fax: 218 327 4517 Grand Rapids, MN 55744 USA www.ra.dnr.state.mn.us ======================================================================== ==== = > > Yes, but what about the world file(.twf)? > > - John > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > Sent: Thursday, October 18, 2001 4:21 PM > To: Arthur, John > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > > I believe you could do that with ImageMagick and Perl to automate it. > You should be able to chop up each of your large maps into n x m tiles. > > -Stephen Woodbridge > http://web-maps.org > > "Arthur, John" wrote: > > > > I would like to use topo quads in my MapServer, but it would take forever > to > > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > > files instead. Is there a way to split these up into smaller files or > just > > to display the large tiff in MapServer faster. We would like something > like > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer > our > > own data on top. > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at voicestream.com > > _~-^-~_ > > VoiceStream > > W I R E L E S S From a5320 at n-koei.co.jp Thu Oct 18 17:52:47 2001 From: a5320 at n-koei.co.jp (Sanath Jayamanna) Date: Fri, 19 Oct 2001 09:52:47 +0900 Subject: [mapserver-users] Getting Started With Mapserver Message-ID: <007501c15838$5ec22840$5d0710ac@a5320-jayamanna.tyo.n-koei.co.jp> Dear Group Members, I am trying to get started with using mapserver with not much success. The OS on my machine is Windows NT Workstation 4.0. I have installed the NT Option pack 4.0 in my machine. I have downloaded ms35gif_nightly.zip from the Mapserver Homepage Downloads and extracted it to the Directory "C:\Inetpub\wwwroot\cgi-bin. I have downloaded the demo and extracted the files to the directory "C:\Inetpub\wwwroot" but it does not run. I would like to develop an application using a shapefile. What are the first steps I should take? Thank you very much for your help. Sanath From JohnHockaday at auslig.gov.au Thu Oct 18 19:17:51 2001 From: JohnHockaday at auslig.gov.au (Hockaday, John) Date: Fri, 19 Oct 2001 12:17:51 +1000 Subject: FW: [mapserver-users] OGC and Mapserver Message-ID: <53273E187450D311ACF6009027927B12022C0FF9@smtpgate.auslig.gov.au> Hi All, As usual this list has been very helpful in answering my questions. I have received an overwhelming number of responses suggesting that mapserver version 3.5 is ready for us to implement a WMS. I started answering the individual emails but I thought that instead it would be better (and easier) to send one thank you email to this list. So here it is: Thank you all for responding to my request. We will let you know when we have implemented a WMS using mapserver 3.5. (I have to get the resources first. ;--) ) Some people can then start testing their access to some of our 1:1 Million Global Map Data and let us know how it goes. John Hockaday > -----Original Message----- > From: Hockaday, John [SMTP:JohnHockaday at auslig.gov.au] > Sent: Thursday, October 18, 2001 4:36 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] OGC and Mapserver > > Hi, > > I want to implement a simple OpenGIS compliant Web Map Service using > Mapserver to test the WMS concepts. I believe that Mapserver version 3.5 > is > capable of doing this however, I've been waiting for 3.5 to be stable and > beyond the nightly builds before I attempt this project. I don't have CVS > just RCS. I therefore, have the following questions: > > 1. Has anyone set up a simple OpenGIS compliant WMS using mapserv? If so > how difficult was it and can you supply any examples? > > 2. Is Mapserver version 3.5 stable enough for me to confidently implement > and smoothly run a WMS and if not when will it be stable enough. > > 3. Is it easy to convert 3.4 mapfiles format into 3.5 mapfiles format? > > Thanks in advance for your replies. > > John Hockaday From ahallam at digitalearth.com.au Thu Oct 18 19:35:09 2001 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Fri, 19 Oct 2001 12:35:09 +1000 Subject: [mapserver-users] Win 32 v3.5 Nightly - Proj4 Support References: <987E5CD7052ED51198F400508BA25279089F37@vamerrifms01.mail.voicestream.com> <3BCF55CA.9902F626@refractions.net> Message-ID: <001501c15846$db7f69c0$0c00a8c0@earth> Hi All, When we first installed 3.5 (4-Sep-2001) we also put the epsg file in c:\proj - it worked as expected. After downloading the latest win32 nightly build we are getting the following error: msProcessProjection(): no system list, errno 2Y This message appears to originate in the Proj4 code, and occurs with all the Win32 builds. Are we missing something simple, or has something changed? Thanks. Andrew Hallam From pharrer at idmail.com Thu Oct 18 20:20:56 2001 From: pharrer at idmail.com (P.Harrer) Date: Thu, 18 Oct 2001 20:20:56 -0700 Subject: [mapserver-users] off topic Message-ID: <001f01c1584d$14310ed0$858942d8@t4t6q6> Hi. Does anyone know if this list can be received in digest form? There must be a way to do it by majordomo. P. -------------- next part -------------- An HTML attachment was scrubbed... URL: From frontline at thebestisp.com Thu Oct 18 16:57:41 2001 From: frontline at thebestisp.com (Frontline Learning) Date: Thu, 18 Oct 2001 23:57:41 GMT Subject: [mapserver-users] Enhance Employee Competency, Productivity and Morale Message-ID: An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Thu Oct 18 22:03:25 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 19 Oct 2001 00:03:25 -0500 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: Ed is quite correct (he should be, it's his site). I did the same thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and it works very well. That script is simple perl script that doesn't use MapServer. However, I did use perl and MapScript to compute the 300k images (I think I still have the script if anyone want to take a look). Took a day. Can MapServer and the TOMO server work together? Possibly but you'd be bound by the non-MapServer application because of the nature of the underlying data. Again, TOMO and TopoZone are built to serve one layer very fast, but I've been using the exact same datasets (quad-based DRGs) that the little images were computed from in a tiled fashion to support a much broader range of scales and applications with great success and by managing a few thousand images instead of a few hundred thousand. I can only imagine what the TopoZone folks go through with 17 million images and all the projection headaches. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 10/18/01 19:42 PM >>> Folks - I've already mentioned to John privately that I have set up a WMS server for topographic maps and would be interested in working with folks who would either like to use WMS "end-point" clients or use MapServer as a WMS client for these data layers. These will shortly be available as a subscription service from TopoZone, and I could use some guinea pigs. If you're very cooperative, I've got some nice 1-meter DOQ data you can use, too . Send email if you're interested; you'll be able to get complete DRG or DOQ base maps for your MapServer applications without buying data or disk to put it on! On the original point of chopping up rasters into little tiles, don't get carried away. TopoZone's current image architecture is designed to do one very, very specific task very quickly. The entire "map server" for topozone.com (just the map-serving system, not the Web site) is six lines of ASP VBScript code; everything is precomputed and prebuilt, and all we serve are small image tiles at one of four fixed zoom levels. The tiles are small so you can scroll the map in whole-tile increments while still providing the user a reasonable degree of centering control. The HARD part was generating all those tiles from the hodgepodge of source DRG data - serving them is trivial. I would NOT recommend a similar approach for MapServer applications - the tiles are WAY too small. Besides the administrative hassles (I've got over 17 million of the little buggers to keep track of) the disk-seeking overhead is not worth it. You can construct a very nice MapServer system using much larger files. We're currently managing a few applications with topographic base maps, are we're storing one quad (one DRG) per file; that means each TIFF file is several megabytes. There's NO problem with performance IF you structure the data carefully. I could very easily use larger TIFF images, but there's no benefit for me to do that - having one output TIFF image for every input DRG makes updates, bug fixes, and administration much easier. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Arthur, John [mailto:John.Arthur at voicestream.com] Sent: Thursday, October 18, 2001 6:15 PM To: 'kenboss'; Arthur, John Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone Hmm,.. I seams my mapserver won't display rasters,... I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff was compiled in, and I get no errors. I'm using the ".wld" extention and also tried TileIndex through shapefiles,.. Any ideas? -John -----Original Message----- From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] Sent: Thursday, October 18, 2001 4:49 PM To: John.Arthur at voicestream.com Cc: mapserver-users at lists.gis.umn.edu Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone Right, you'd lose the georeferencing with the ImageMagick approach. If you're a programmer, it shouldn't be too hard to do using one of the GDAL APIs (C, C++, or Python). If you're only a wannabe programmer like myself, you might still be able to hack one of the apps distributed with GDAL (such as gdal_translate) to get what you need. See http://www.remotesensing.org/gdal/ --Ken ======================================================================== ==== = Ken Boss Digital Image Analysis / Web Stuff Forestry Resource Assessment kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural Resources Voice: 218 327 4449 ext. 237 413 SE 13th Street Fax: 218 327 4517 Grand Rapids, MN 55744 USA www.ra.dnr.state.mn.us ======================================================================== ==== = > > Yes, but what about the world file(.twf)? > > - John > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > Sent: Thursday, October 18, 2001 4:21 PM > To: Arthur, John > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > > I believe you could do that with ImageMagick and Perl to automate it. > You should be able to chop up each of your large maps into n x m tiles. > > -Stephen Woodbridge > http://web-maps.org > > "Arthur, John" wrote: > > > > I would like to use topo quads in my MapServer, but it would take forever > to > > export each quad from Delorme's 3D topoquads. So I exported large 150 mb > > files instead. Is there a way to split these up into smaller files or > just > > to display the large tiff in MapServer faster. We would like something > like > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but layer > our > > own data on top. > > > > John Arthur > > RF Technician > > Office: (757) 490-7221 > > Cellular: (757) 692-1515 > > Email: john.arthur at voicestream.com > > _~-^-~_ > > VoiceStream > > W I R E L E S S From aditya at infotech.stph.net Thu Oct 18 22:15:26 2001 From: aditya at infotech.stph.net (Aditya) Date: Fri, 19 Oct 2001 10:45:26 +0530 Subject: [mapserver-users] Subscribe for the List Message-ID: Dear All, We are InfoTech Enterprises Ltd, a Global GIS Corporation, based out of India, with Offices in USA, UK and Germany. This mail is to explore the possibilities of offering to you top quality software development services at attractive proposition. We have worked with Global (including fortune 500 companies) GIS companies for their s/w development and implementation and reduced their cost of operations to a significant extent with the help of our judicious mix of onsite, offsite and offshore delivery models and proven methodologies with competitive value. Few of our strengths of your interest could be development of Software Applications with specific focus Land and Marine Mapping applications, Satellite Image Analysis, Environmental and Municipal GIS Applications. Our skills sets include high levels of expertise in the following Industry Standard platforms : a) GIS : Existing platforms like MapInfo, ESRI and Intergraph, We have expertise for development / customization according to customer needs and have the expertise in AutoCAD 2000, Cad Overlay, Arc Info, Arc view, ArcIMS, Intergraph MGE, Oracle Spatial and Smallworld. b) We also do Map conversion/digitization (through ASI in North America), land base data creation, Geocoding, Reverse Geocoding, database design & modeling, customization and consulting services. c) Image processing : We have vast experience in the field of Remote Sensing and have successfully executed some prestigious projects for the Govt.of India. We have a huge pool of resources with expertise in Image processing Software like ERDAS, EASI/PACE, ER-Mapper, ENVI, Image analyst, Arc/Info, Arc/View, Spans, GEOmedia, Intergraph MGE, and MapInfo. We also outsource manpower for your in-house development/ to be deployed at your client location. Few of the leading names are Analytical Surveys Inc, GE Smallworld, Vodafone Passo, Distefora Navigation, ETAK (A Div. of SONY), British Telecom, Concert Communications, COLT Telecom, Global TeleSystems, Orange, Hughes Telecom, Navionics, Fugro-Inpark, TeleAtlas North America, Hertz, Daewoo, DHL, NatWest Bank, Sainsbury?s, London Metropolitan Police, Ford Motor Company, etc. InfoTech Enterprises Limited is among the largest GIS & Software Development Company providing end-to-end solutions from desktop to web. We can start with a small pilot job for you, which would establish the communication protocols and give you a flavor of our quality. If you need any further information I would be glad to send you a Statement of Qualifications I look forward to hearing from you soon, which would initialize a mutually beneficial Long Standing Association. Thanks and Regards Adit Aditya Karra InfoTech Enterprises Ltd (SEI CMM Level 4) InfoTech Software Solutions Inc 42 Nagarjuna Hills 1700 Iowa Avenue, Suite 100 Panjagutta , Hyderabad Riverside CA India -500082 United States -92507 Mail To : aditya at infotech.stph.net Url : www.infotechsw.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3504 bytes Desc: not available URL: From lyndon.zimmermann at adelaide.edu.au Thu Oct 18 23:43:22 2001 From: lyndon.zimmermann at adelaide.edu.au (Lyndon Zimmermann) Date: Fri, 19 Oct 2001 16:13:22 +0930 Subject: [mapserver-users] Aussie XML Metadata parser References: <200108071338.IAA22667@lists.gis.umn.edu> Message-ID: <3BCFCB8A.9CB0DFB2@adelaide.edu.au> I enquired a few weeks seeking an XML Parser for Australian ANZLIC XML metadata but none readily implemented were unearthed. I've implemented one in Perl on an NT box, test interface at http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/atlas_metadata_2.html Forget the line by line stuff, the tabular presentation is much more attractive. Unless you're wondering "why XML"? The line by line and tabular are both presentations of a common sourcefile. It's still a bit ragged around the edges and doesn't like multiple paragraph "Additional metadata" for some reason. I'd like to toss in the facility to accept and process a "brief" argument in the call, and present only Abstract and perhaps Lineage. Ideas gratefully received. Let me know if you want a copy of the script. Source XML is at http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/metadata/xml/ You may have opinions on my coding! ESRI have a ANZLIC XML plugin for ArcCatalog. A colleague has installed it but we haven't looked too close yet. Has anyone used it? Opinions? I haven't looked at the MS ACCESS based XML generator either. Again, opinions? Lyndon Z -- Lyndon Zimmermann BE (Mech Adelaide) Grad Dip Bus Admin (UniSA) "Bioenergy Atlas for Australia" Co-ordinator University of Adelaide Agronomy and Farming Systems C/- GISCA, 4th floor, 10 Pulteney St, Adelaide 5005 Dir (GISCA) +61-8-8303 3975 Switch (GISCA) 8303 3900 Mob 0414 91 4577 Fax (GISCA) +61-8-8303 3498 email lyndon.zimmermann at adelaide.edu.au http://sg211.gisca.adelaide.edu.au/lzimmerm/zimm.htm Biomass Energy Atlas Website (note it has moved!): http://sg211.gisca.adelaide.edu.au/bioenergy_atlas/atlas_index.html Unless otherwise stated, the content of this message and attachments may be forwarded or quoted, with due acknowledgement. No representation is made that this email is free of viruses. Virus scanning is recommended and is the responsibility of the recipient. From adoyle at intl-interfaces.com Fri Oct 19 05:22:05 2001 From: adoyle at intl-interfaces.com (Allan Doyle) Date: Fri, 19 Oct 2001 08:22:05 -0400 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone References: Message-ID: <3BD01AED.35247897@intl-interfaces.com> I think the original question/need was to be able to have DRGs "like TopoZone's" that John Arthur could layer his own data on top of. If, indeed, he meant that he wants to layer his data on top of TopoZone's data, then since we learned (also in this thread) that TopoZone has a WMS, then he's home free. The idea behind WMS was to allow precisely this: "Map A" from source "A" can be layered onto "Map B" from source "B" without having to copy all the data from "A" to "B" or vice versa. This can be done at the client end using CSS tricks with layers - i.e. the client sends out two requests, one to WMS A and one to WMS B and can layer the result. Or it can be done using "Cascading WMS" techniques - WMS A behaves as a client to WMS B, pulls WMS B's layers in on demand, and produces the layered map for WMS A. http://viewer.digitalearth.gov/ is a great example of the CSS approach. http://www.cubewerx.com/demo/cubeview/cubeview.cgi is the original and probably the best current example of the cascading approach. Also, not to be heretical in the mapserver-users list, but there's an open source implementation of a WMS geared to displaying from large image bases called the MIT OrthoServer at http://tull.mit.edu/orthoserver/ You can use it for the image layers and the mapserver for the other layers and cascade up through the mapserver. Allan Stephen Lime wrote: > > Ed is quite correct (he should be, it's his site). I did the same thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and it works very well. That script is simple perl script that doesn't use MapServer. However, I did use perl and MapScript to compute the 300k images (I think I still have the script if anyone want to take a look). Took a day. Can MapServer and the TOMO server work together? Possibly but you'd be bound by the non-MapServer application because of the nature of the underlying data. > > Again, TOMO and TopoZone are built to serve one layer very fast, but I've been using the exact same datasets (quad-based DRGs) that the little images were computed from in a tiled fashion to support a much broader range of scales and applications with great success and by managing a few thousand images instead of a few hundred thousand. I can only imagine what the TopoZone folks go through with 17 million images and all the projection headaches. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> "Ed McNierney" 10/18/01 19:42 PM >>> > Folks - > > I've already mentioned to John privately that I have set up a WMS server > for topographic maps and would be interested in working with folks who > would either like to use WMS "end-point" clients or use MapServer as a > WMS client for these data layers. These will shortly be available as a > subscription service from TopoZone, and I could use some guinea pigs. > If you're very cooperative, I've got some nice 1-meter DOQ data you can > use, too . Send email if you're interested; you'll be able to get > complete DRG or DOQ base maps for your MapServer applications without > buying data or disk to put it on! > > On the original point of chopping up rasters into little tiles, don't > get carried away. TopoZone's current image architecture is designed to > do one very, very specific task very quickly. The entire "map server" > for topozone.com (just the map-serving system, not the Web site) is six > lines of ASP VBScript code; everything is precomputed and prebuilt, and > all we serve are small image tiles at one of four fixed zoom levels. > The tiles are small so you can scroll the map in whole-tile increments > while still providing the user a reasonable degree of centering control. > The HARD part was generating all those tiles from the hodgepodge of > source DRG data - serving them is trivial. > > I would NOT recommend a similar approach for MapServer applications - > the tiles are WAY too small. Besides the administrative hassles (I've > got over 17 million of the little buggers to keep track of) the > disk-seeking overhead is not worth it. You can construct a very nice > MapServer system using much larger files. We're currently managing a > few applications with topographic base maps, are we're storing one quad > (one DRG) per file; that means each TIFF file is several megabytes. > There's NO problem with performance IF you structure the data carefully. > I could very easily use larger TIFF images, but there's no benefit for > me to do that - having one output TIFF image for every input DRG makes > updates, bug fixes, and administration much easier. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > > -----Original Message----- > From: Arthur, John [mailto:John.Arthur at voicestream.com] > Sent: Thursday, October 18, 2001 6:15 PM > To: 'kenboss'; Arthur, John > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > Hmm,.. I seams my mapserver won't display rasters,... > I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff was > compiled in, and I get no errors. > I'm using the ".wld" extention and also tried TileIndex through > shapefiles,.. Any ideas? > > -John > > -----Original Message----- > From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] > Sent: Thursday, October 18, 2001 4:49 PM > To: John.Arthur at voicestream.com > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > Right, you'd lose the georeferencing with the ImageMagick approach. If > you're a > programmer, it shouldn't be too hard to do using one of the GDAL APIs > (C, > C++, > or Python). If you're only a wannabe programmer like myself, you might > still be > able to hack one of the apps distributed with GDAL (such as > gdal_translate) > to > get what you need. See http://www.remotesensing.org/gdal/ > > --Ken > ======================================================================== > ==== > = > Ken Boss > Digital Image Analysis / Web Stuff Forestry Resource Assessment > kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural > Resources > Voice: 218 327 4449 ext. 237 413 SE 13th Street > > Fax: 218 327 4517 Grand Rapids, MN 55744 > USA > www.ra.dnr.state.mn.us > ======================================================================== > ==== > = > > > > > Yes, but what about the world file(.twf)? > > > > - John > > > > -----Original Message----- > > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > > Sent: Thursday, October 18, 2001 4:21 PM > > To: Arthur, John > > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > > > > > I believe you could do that with ImageMagick and Perl to automate it. > > You should be able to chop up each of your large maps into n x m > tiles. > > > > -Stephen Woodbridge > > http://web-maps.org > > > > "Arthur, John" wrote: > > > > > > I would like to use topo quads in my MapServer, but it would take > forever > > to > > > export each quad from Delorme's 3D topoquads. So I exported large > 150 mb > > > files instead. Is there a way to split these up into smaller files > or > > just > > > to display the large tiff in MapServer faster. We would like > something > > like > > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but > layer > > our > > > own data on top. > > > > > > John Arthur > > > RF Technician > > > Office: (757) 490-7221 > > > Cellular: (757) 692-1515 > > > Email: john.arthur at voicestream.com > > > _~-^-~_ > > > VoiceStream > > > W I R E L E S S -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allan Doyle http://www.intl-interfaces.com adoyle at intl-interfaces.com From dems at terra.sdimaps.com Fri Oct 19 05:36:10 2001 From: dems at terra.sdimaps.com (Daniel Ems) Date: Fri, 19 Oct 2001 08:36:10 -0400 (EDT) Subject: [mapserver-users] Split large tiffs (topos) like TopoZone In-Reply-To: Message-ID: On Fri, 19 Oct 2001, Stephen Lime wrote: > Ed is quite correct (he should be, it's his site). I did the same > thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and > it works very well. That script is simple perl script that doesn't use > MapServer. However, I did use perl and MapScript to compute the 300k > images (I think I still have the script if anyone want to take a > look). Took a day. Can MapServer and the TOMO server work together? ^^^^^^^^^^ ^^^^^^^^^^ I'd like a look! > Possibly but you'd be bound by the non-MapServer application because > of the nature of the underlying data. > > Again, TOMO and TopoZone are built to serve one layer very fast, but > I've been using the exact same datasets (quad-based DRGs) that the > little images were computed from in a tiled fashion to support a much > broader range of scales and applications with great success and by > managing a few thousand images instead of a few hundred thousand. I > can only imagine what the TopoZone folks go through with 17 million > images and all the projection headaches. > > Steve > > Stephen Lime > Data & Applications Manager > Thanks! -- Daniel Ems AM/FM/GIS Technical Support Spatial Data Integrations, Inc. From warmerdam at pobox.com Fri Oct 19 06:10:47 2001 From: warmerdam at pobox.com (Frank Warmerdam) Date: Fri, 19 Oct 2001 09:10:47 -0400 Subject: [mapserver-users] Win 32 v3.5 Nightly - Proj4 Support References: <987E5CD7052ED51198F400508BA25279089F37@vamerrifms01.mail.voicestream.com> <3BCF55CA.9902F626@refractions.net> <001501c15846$db7f69c0$0c00a8c0@earth> Message-ID: <3BD02657.2020501@pobox.com> Andrew Hallam wrote: > Hi All, > > When we first installed 3.5 (4-Sep-2001) we also put the epsg file in > c:\proj - it worked as expected. After downloading the latest win32 nightly > build we are getting the following error: > > msProcessProjection(): no system list, errno 2Y > > This message appears to originate in the Proj4 code, and occurs with all the > Win32 builds. Are we missing something simple, or has something changed? Andrew, There have been a few changes in the default PROJ.4 build configuration. I suspect you need to put them in C:\PROJ\NAD now instead. Note that you can always set the PROJ_LIB environment variable to point to the files that PROJ.4 looks for. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at topozone.com Fri Oct 19 06:30:29 2001 From: ed at topozone.com (Ed McNierney) Date: Fri, 19 Oct 2001 09:30:29 -0400 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: <13858AA1A74F30419F319ACB66A9D1220191F3@mercator.topozone.com> Allan - I would urge anyone considering the "CSS approach" you describe to do so with extreme caution. This is remarkably difficult to get working properly across a reasonable set of browser platforms. Everyone's done it differently, the bugs are different in each release, and it's just a nightmare. There's a very good reason why the map on the Digital Earth page you mention is at the upper-left corner of the page - it's really hard to make it work anywhere else on the page! Having "been there, done that", I would really recommend that anyone considering that approach instead use a small Java applet to load the images and display them. Your compatibility problems will be greatly reduced. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Allan Doyle [mailto:adoyle at intl-interfaces.com] Sent: Friday, October 19, 2001 8:22 AM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone I think the original question/need was to be able to have DRGs "like TopoZone's" that John Arthur could layer his own data on top of. If, indeed, he meant that he wants to layer his data on top of TopoZone's data, then since we learned (also in this thread) that TopoZone has a WMS, then he's home free. The idea behind WMS was to allow precisely this: "Map A" from source "A" can be layered onto "Map B" from source "B" without having to copy all the data from "A" to "B" or vice versa. This can be done at the client end using CSS tricks with layers - i.e. the client sends out two requests, one to WMS A and one to WMS B and can layer the result. Or it can be done using "Cascading WMS" techniques - WMS A behaves as a client to WMS B, pulls WMS B's layers in on demand, and produces the layered map for WMS A. http://viewer.digitalearth.gov/ is a great example of the CSS approach. http://www.cubewerx.com/demo/cubeview/cubeview.cgi is the original and probably the best current example of the cascading approach. Also, not to be heretical in the mapserver-users list, but there's an open source implementation of a WMS geared to displaying from large image bases called the MIT OrthoServer at http://tull.mit.edu/orthoserver/ You can use it for the image layers and the mapserver for the other layers and cascade up through the mapserver. Allan Stephen Lime wrote: > > Ed is quite correct (he should be, it's his site). I did the same thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and it works very well. That script is simple perl script that doesn't use MapServer. However, I did use perl and MapScript to compute the 300k images (I think I still have the script if anyone want to take a look). Took a day. Can MapServer and the TOMO server work together? Possibly but you'd be bound by the non-MapServer application because of the nature of the underlying data. > > Again, TOMO and TopoZone are built to serve one layer very fast, but I've been using the exact same datasets (quad-based DRGs) that the little images were computed from in a tiled fashion to support a much broader range of scales and applications with great success and by managing a few thousand images instead of a few hundred thousand. I can only imagine what the TopoZone folks go through with 17 million images and all the projection headaches. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> "Ed McNierney" 10/18/01 19:42 PM >>> > Folks - > > I've already mentioned to John privately that I have set up a WMS server > for topographic maps and would be interested in working with folks who > would either like to use WMS "end-point" clients or use MapServer as a > WMS client for these data layers. These will shortly be available as a > subscription service from TopoZone, and I could use some guinea pigs. > If you're very cooperative, I've got some nice 1-meter DOQ data you can > use, too . Send email if you're interested; you'll be able to get > complete DRG or DOQ base maps for your MapServer applications without > buying data or disk to put it on! > > On the original point of chopping up rasters into little tiles, don't > get carried away. TopoZone's current image architecture is designed to > do one very, very specific task very quickly. The entire "map server" > for topozone.com (just the map-serving system, not the Web site) is six > lines of ASP VBScript code; everything is precomputed and prebuilt, and > all we serve are small image tiles at one of four fixed zoom levels. > The tiles are small so you can scroll the map in whole-tile increments > while still providing the user a reasonable degree of centering control. > The HARD part was generating all those tiles from the hodgepodge of > source DRG data - serving them is trivial. > > I would NOT recommend a similar approach for MapServer applications - > the tiles are WAY too small. Besides the administrative hassles (I've > got over 17 million of the little buggers to keep track of) the > disk-seeking overhead is not worth it. You can construct a very nice > MapServer system using much larger files. We're currently managing a > few applications with topographic base maps, are we're storing one quad > (one DRG) per file; that means each TIFF file is several megabytes. > There's NO problem with performance IF you structure the data carefully. > I could very easily use larger TIFF images, but there's no benefit for > me to do that - having one output TIFF image for every input DRG makes > updates, bug fixes, and administration much easier. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > > -----Original Message----- > From: Arthur, John [mailto:John.Arthur at voicestream.com] > Sent: Thursday, October 18, 2001 6:15 PM > To: 'kenboss'; Arthur, John > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > Hmm,.. I seams my mapserver won't display rasters,... > I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff was > compiled in, and I get no errors. > I'm using the ".wld" extention and also tried TileIndex through > shapefiles,.. Any ideas? > > -John > > -----Original Message----- > From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] > Sent: Thursday, October 18, 2001 4:49 PM > To: John.Arthur at voicestream.com > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > Right, you'd lose the georeferencing with the ImageMagick approach. If > you're a > programmer, it shouldn't be too hard to do using one of the GDAL APIs > (C, > C++, > or Python). If you're only a wannabe programmer like myself, you might > still be > able to hack one of the apps distributed with GDAL (such as > gdal_translate) > to > get what you need. See http://www.remotesensing.org/gdal/ > > --Ken > ======================================================================== > ==== > = > Ken Boss > Digital Image Analysis / Web Stuff Forestry Resource Assessment > kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural > Resources > Voice: 218 327 4449 ext. 237 413 SE 13th Street > > Fax: 218 327 4517 Grand Rapids, MN 55744 > USA > www.ra.dnr.state.mn.us > ======================================================================== > ==== > = > > > > > Yes, but what about the world file(.twf)? > > > > - John > > > > -----Original Message----- > > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > > Sent: Thursday, October 18, 2001 4:21 PM > > To: Arthur, John > > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > > > > > I believe you could do that with ImageMagick and Perl to automate it. > > You should be able to chop up each of your large maps into n x m > tiles. > > > > -Stephen Woodbridge > > http://web-maps.org > > > > "Arthur, John" wrote: > > > > > > I would like to use topo quads in my MapServer, but it would take > forever > > to > > > export each quad from Delorme's 3D topoquads. So I exported large > 150 mb > > > files instead. Is there a way to split these up into smaller files > or > > just > > > to display the large tiff in MapServer faster. We would like > something > > like > > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but > layer > > our > > > own data on top. > > > > > > John Arthur > > > RF Technician > > > Office: (757) 490-7221 > > > Cellular: (757) 692-1515 > > > Email: john.arthur at voicestream.com > > > _~-^-~_ > > > VoiceStream > > > W I R E L E S S -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allan Doyle http://www.intl-interfaces.com adoyle at intl-interfaces.com From adoyle at intl-interfaces.com Fri Oct 19 06:59:00 2001 From: adoyle at intl-interfaces.com (Allan Doyle) Date: Fri, 19 Oct 2001 09:59:00 -0400 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone References: <13858AA1A74F30419F319ACB66A9D1220191F3@mercator.topozone.com> Message-ID: <3BD031A4.6E7CAA74@intl-interfaces.com> Ed McNierney wrote: > > Allan - > > I would urge anyone considering the "CSS approach" you describe to do so > with extreme caution. This is remarkably difficult to get working > properly across a reasonable set of browser platforms. Everyone's done > it differently, the bugs are different in each release, and it's just a > nightmare. There's a very good reason why the map on the Digital Earth > page you mention is at the upper-left corner of the page - it's really > hard to make it work anywhere else on the page! Excellent point! I'm not pushing the CSS approach so much as I was trying to illustrate what you can do with WMS's to break out of the old mold of needing local copies of everything. > > Having "been there, done that", I would really recommend that anyone > considering that approach instead use a small Java applet to load the > images and display them. Your compatibility problems will be greatly > reduced. Yup. Of course, doing it on the server side is probably the least risky in terms of heterogeneous clients. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Allan Doyle [mailto:adoyle at intl-interfaces.com] > Sent: Friday, October 19, 2001 8:22 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > I think the original question/need was to be able to have DRGs "like > TopoZone's" that John Arthur could layer his own data on top of. > > If, indeed, he meant that he wants to layer his data on top of > TopoZone's data, then since we learned (also in this thread) that > TopoZone has a WMS, then he's home free. The idea behind WMS was to > allow precisely this: "Map A" from source "A" can be layered onto "Map > B" from source "B" without having to copy all the data from "A" to "B" > or vice versa. This can be done at the client end using CSS tricks with > layers - i.e. the client sends out two requests, one to WMS A and one to > WMS B and can layer the result. Or it can be done using "Cascading WMS" > techniques - WMS A behaves as a client to WMS B, pulls WMS B's layers in > on demand, and produces the layered map for WMS A. > > http://viewer.digitalearth.gov/ is a great example of the CSS approach. > > http://www.cubewerx.com/demo/cubeview/cubeview.cgi is the original and > probably the best current example of the cascading approach. > > Also, not to be heretical in the mapserver-users list, but there's an > open source implementation of a WMS geared to displaying from large > image bases called the MIT OrthoServer at > http://tull.mit.edu/orthoserver/ You can use it for the image layers > and the mapserver for the other layers and cascade up through the > mapserver. > > Allan > > Stephen Lime wrote: > > > > Ed is quite correct (he should be, it's his site). I did the same > thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and it > works very well. That script is simple perl script that doesn't use > MapServer. However, I did use perl and MapScript to compute the 300k > images (I think I still have the script if anyone want to take a look). > Took a day. Can MapServer and the TOMO server work together? Possibly > but you'd be bound by the non-MapServer application because of the > nature of the underlying data. > > > > Again, TOMO and TopoZone are built to serve one layer very fast, but > I've been using the exact same datasets (quad-based DRGs) that the > little images were computed from in a tiled fashion to support a much > broader range of scales and applications with great success and by > managing a few thousand images instead of a few hundred thousand. I can > only imagine what the TopoZone folks go through with 17 million images > and all the projection headaches. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > >>> "Ed McNierney" 10/18/01 19:42 PM >>> > > Folks - > > > > I've already mentioned to John privately that I have set up a WMS > server > > for topographic maps and would be interested in working with folks who > > would either like to use WMS "end-point" clients or use MapServer as a > > WMS client for these data layers. These will shortly be available as > a > > subscription service from TopoZone, and I could use some guinea pigs. > > If you're very cooperative, I've got some nice 1-meter DOQ data you > can > > use, too . Send email if you're interested; you'll be able to get > > complete DRG or DOQ base maps for your MapServer applications without > > buying data or disk to put it on! > > > > On the original point of chopping up rasters into little tiles, don't > > get carried away. TopoZone's current image architecture is designed > to > > do one very, very specific task very quickly. The entire "map server" > > for topozone.com (just the map-serving system, not the Web site) is > six > > lines of ASP VBScript code; everything is precomputed and prebuilt, > and > > all we serve are small image tiles at one of four fixed zoom levels. > > The tiles are small so you can scroll the map in whole-tile increments > > while still providing the user a reasonable degree of centering > control. > > The HARD part was generating all those tiles from the hodgepodge of > > source DRG data - serving them is trivial. > > > > I would NOT recommend a similar approach for MapServer applications - > > the tiles are WAY too small. Besides the administrative hassles (I've > > got over 17 million of the little buggers to keep track of) the > > disk-seeking overhead is not worth it. You can construct a very nice > > MapServer system using much larger files. We're currently managing a > > few applications with topographic base maps, are we're storing one > quad > > (one DRG) per file; that means each TIFF file is several megabytes. > > There's NO problem with performance IF you structure the data > carefully. > > I could very easily use larger TIFF images, but there's no benefit for > > me to do that - having one output TIFF image for every input DRG makes > > updates, bug fixes, and administration much easier. > > > > - Ed > > > > Ed McNierney > > Chief Mapmaker > > TopoZone.com > > > > -----Original Message----- > > From: Arthur, John [mailto:John.Arthur at voicestream.com] > > Sent: Thursday, October 18, 2001 6:15 PM > > To: 'kenboss'; Arthur, John > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > > > Hmm,.. I seams my mapserver won't display rasters,... > > I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff > was > > compiled in, and I get no errors. > > I'm using the ".wld" extention and also tried TileIndex through > > shapefiles,.. Any ideas? > > > > -John > > > > -----Original Message----- > > From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] > > Sent: Thursday, October 18, 2001 4:49 PM > > To: John.Arthur at voicestream.com > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > > > Right, you'd lose the georeferencing with the ImageMagick approach. > If > > you're a > > programmer, it shouldn't be too hard to do using one of the GDAL APIs > > (C, > > C++, > > or Python). If you're only a wannabe programmer like myself, you > might > > still be > > able to hack one of the apps distributed with GDAL (such as > > gdal_translate) > > to > > get what you need. See http://www.remotesensing.org/gdal/ > > > > --Ken > > > ======================================================================== > > ==== > > = > > Ken Boss > > Digital Image Analysis / Web Stuff Forestry Resource Assessment > > kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural > > Resources > > Voice: 218 327 4449 ext. 237 413 SE 13th Street > > > > Fax: 218 327 4517 Grand Rapids, MN 55744 > > USA > > www.ra.dnr.state.mn.us > > > ======================================================================== > > ==== > > = > > > > > > > > Yes, but what about the world file(.twf)? > > > > > > - John > > > > > > -----Original Message----- > > > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > > > Sent: Thursday, October 18, 2001 4:21 PM > > > To: Arthur, John > > > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > > > Subject: Re: [mapserver-users] Split large tiffs (topos) like > TopoZone > > > > > > > > > I believe you could do that with ImageMagick and Perl to automate > it. > > > You should be able to chop up each of your large maps into n x m > > tiles. > > > > > > -Stephen Woodbridge > > > http://web-maps.org > > > > > > "Arthur, John" wrote: > > > > > > > > I would like to use topo quads in my MapServer, but it would take > > forever > > > to > > > > export each quad from Delorme's 3D topoquads. So I exported large > > 150 mb > > > > files instead. Is there a way to split these up into smaller > files > > or > > > just > > > > to display the large tiff in MapServer faster. We would like > > something > > > like > > > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but > > layer > > > our > > > > own data on top. > > > > > > > > John Arthur > > > > RF Technician > > > > Office: (757) 490-7221 > > > > Cellular: (757) 692-1515 > > > > Email: john.arthur at voicestream.com > > > > _~-^-~_ > > > > VoiceStream > > > > W I R E L E S S > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Allan Doyle http://www.intl-interfaces.com > adoyle at intl-interfaces.com -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allan Doyle http://www.intl-interfaces.com adoyle at intl-interfaces.com From pnaciona at gis.umn.edu Fri Oct 19 07:04:58 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Fri, 19 Oct 2001 09:04:58 -0500 Subject: [mapserver-users] Win 32 v3.5 Nightly - Proj4 Support In-Reply-To: <3BD02657.2020501@pobox.com> Message-ID: Andrew, Frank is right. The correct place to put the epsg file is C:\PROJ\NAD. I've recompiled the distributions and will have it available this afternoon (as soon as I get to school). -Perry On Fri, 19 Oct 2001, Frank Warmerdam wrote: > Andrew Hallam wrote: > > > Hi All, > > > > When we first installed 3.5 (4-Sep-2001) we also put the epsg file in > > c:\proj - it worked as expected. After downloading the latest win32 nightly > > build we are getting the following error: > > > > msProcessProjection(): no system list, errno 2Y > > > > This message appears to originate in the Proj4 code, and occurs with all the > > Win32 builds. Are we missing something simple, or has something changed? > > > Andrew, > > There have been a few changes in the default PROJ.4 build configuration. > I suspect you need to put them in C:\PROJ\NAD now instead. Note that you > can always set the PROJ_LIB environment variable to point to the files that > PROJ.4 looks for. > > > Best regards, > > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From steve.lime at dnr.state.mn.us Fri Oct 19 07:16:05 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 19 Oct 2001 09:16:05 -0500 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: Couple of things to add... 1) Dan Morissette has added cascading mapserver support to MapServer 3.5 release. 2) I have an older version of the mapplet code that takes 2 images and overlays them, plus gives you the box zooming. It was written for a similar an application- MapServer over LandSat, where the images came from two different servers. I haven't used it much since raster support was added to MapServer but with just a little update it would work. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Ed McNierney" 10/19/01 08:39 AM >>> Allan - I would urge anyone considering the "CSS approach" you describe to do so with extreme caution. This is remarkably difficult to get working properly across a reasonable set of browser platforms. Everyone's done it differently, the bugs are different in each release, and it's just a nightmare. There's a very good reason why the map on the Digital Earth page you mention is at the upper-left corner of the page - it's really hard to make it work anywhere else on the page! Having "been there, done that", I would really recommend that anyone considering that approach instead use a small Java applet to load the images and display them. Your compatibility problems will be greatly reduced. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Allan Doyle [mailto:adoyle at intl-interfaces.com] Sent: Friday, October 19, 2001 8:22 AM To: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone I think the original question/need was to be able to have DRGs "like TopoZone's" that John Arthur could layer his own data on top of. If, indeed, he meant that he wants to layer his data on top of TopoZone's data, then since we learned (also in this thread) that TopoZone has a WMS, then he's home free. The idea behind WMS was to allow precisely this: "Map A" from source "A" can be layered onto "Map B" from source "B" without having to copy all the data from "A" to "B" or vice versa. This can be done at the client end using CSS tricks with layers - i.e. the client sends out two requests, one to WMS A and one to WMS B and can layer the result. Or it can be done using "Cascading WMS" techniques - WMS A behaves as a client to WMS B, pulls WMS B's layers in on demand, and produces the layered map for WMS A. http://viewer.digitalearth.gov/ is a great example of the CSS approach. http://www.cubewerx.com/demo/cubeview/cubeview.cgi is the original and probably the best current example of the cascading approach. Also, not to be heretical in the mapserver-users list, but there's an open source implementation of a WMS geared to displaying from large image bases called the MIT OrthoServer at http://tull.mit.edu/orthoserver/ You can use it for the image layers and the mapserver for the other layers and cascade up through the mapserver. Allan Stephen Lime wrote: > > Ed is quite correct (he should be, it's his site). I did the same thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and it works very well. That script is simple perl script that doesn't use MapServer. However, I did use perl and MapScript to compute the 300k images (I think I still have the script if anyone want to take a look). Took a day. Can MapServer and the TOMO server work together? Possibly but you'd be bound by the non-MapServer application because of the nature of the underlying data. > > Again, TOMO and TopoZone are built to serve one layer very fast, but I've been using the exact same datasets (quad-based DRGs) that the little images were computed from in a tiled fashion to support a much broader range of scales and applications with great success and by managing a few thousand images instead of a few hundred thousand. I can only imagine what the TopoZone folks go through with 17 million images and all the projection headaches. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> "Ed McNierney" 10/18/01 19:42 PM >>> > Folks - > > I've already mentioned to John privately that I have set up a WMS server > for topographic maps and would be interested in working with folks who > would either like to use WMS "end-point" clients or use MapServer as a > WMS client for these data layers. These will shortly be available as a > subscription service from TopoZone, and I could use some guinea pigs. > If you're very cooperative, I've got some nice 1-meter DOQ data you can > use, too . Send email if you're interested; you'll be able to get > complete DRG or DOQ base maps for your MapServer applications without > buying data or disk to put it on! > > On the original point of chopping up rasters into little tiles, don't > get carried away. TopoZone's current image architecture is designed to > do one very, very specific task very quickly. The entire "map server" > for topozone.com (just the map-serving system, not the Web site) is six > lines of ASP VBScript code; everything is precomputed and prebuilt, and > all we serve are small image tiles at one of four fixed zoom levels. > The tiles are small so you can scroll the map in whole-tile increments > while still providing the user a reasonable degree of centering control. > The HARD part was generating all those tiles from the hodgepodge of > source DRG data - serving them is trivial. > > I would NOT recommend a similar approach for MapServer applications - > the tiles are WAY too small. Besides the administrative hassles (I've > got over 17 million of the little buggers to keep track of) the > disk-seeking overhead is not worth it. You can construct a very nice > MapServer system using much larger files. We're currently managing a > few applications with topographic base maps, are we're storing one quad > (one DRG) per file; that means each TIFF file is several megabytes. > There's NO problem with performance IF you structure the data carefully. > I could very easily use larger TIFF images, but there's no benefit for > me to do that - having one output TIFF image for every input DRG makes > updates, bug fixes, and administration much easier. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > > -----Original Message----- > From: Arthur, John [mailto:John.Arthur at voicestream.com] > Sent: Thursday, October 18, 2001 6:15 PM > To: 'kenboss'; Arthur, John > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > Hmm,.. I seams my mapserver won't display rasters,... > I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff was > compiled in, and I get no errors. > I'm using the ".wld" extention and also tried TileIndex through > shapefiles,.. Any ideas? > > -John > > -----Original Message----- > From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] > Sent: Thursday, October 18, 2001 4:49 PM > To: John.Arthur at voicestream.com > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > Right, you'd lose the georeferencing with the ImageMagick approach. If > you're a > programmer, it shouldn't be too hard to do using one of the GDAL APIs > (C, > C++, > or Python). If you're only a wannabe programmer like myself, you might > still be > able to hack one of the apps distributed with GDAL (such as > gdal_translate) > to > get what you need. See http://www.remotesensing.org/gdal/ > > --Ken > ======================================================================== > ==== > = > Ken Boss > Digital Image Analysis / Web Stuff Forestry Resource Assessment > kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural > Resources > Voice: 218 327 4449 ext. 237 413 SE 13th Street > > Fax: 218 327 4517 Grand Rapids, MN 55744 > USA > www.ra.dnr.state.mn.us > ======================================================================== > ==== > = > > > > > Yes, but what about the world file(.twf)? > > > > - John > > > > -----Original Message----- > > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > > Sent: Thursday, October 18, 2001 4:21 PM > > To: Arthur, John > > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > > > > > I believe you could do that with ImageMagick and Perl to automate it. > > You should be able to chop up each of your large maps into n x m > tiles. > > > > -Stephen Woodbridge > > http://web-maps.org > > > > "Arthur, John" wrote: > > > > > > I would like to use topo quads in my MapServer, but it would take > forever > > to > > > export each quad from Delorme's 3D topoquads. So I exported large > 150 mb > > > files instead. Is there a way to split these up into smaller files > or > > just > > > to display the large tiff in MapServer faster. We would like > something > > like > > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but > layer > > our > > > own data on top. > > > > > > John Arthur > > > RF Technician > > > Office: (757) 490-7221 > > > Cellular: (757) 692-1515 > > > Email: john.arthur at voicestream.com > > > _~-^-~_ > > > VoiceStream > > > W I R E L E S S -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Allan Doyle http://www.intl-interfaces.com adoyle at intl-interfaces.com From morissette at dmsolutions.ca Fri Oct 19 12:11:23 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 19 Oct 2001 15:11:23 -0400 Subject: [mapserver-users] Re: Where can I find info? References: <3BCC6B02.4C9493B0@dmsolutions.ca> <3BCD9919.60D70C8B@dmsolutions.ca> <3BCD9ECA.1AEA781A@dmsolutions.ca> Message-ID: <3BD07ADB.8C75CE0D@dmsolutions.ca> Greg Liapis wrote: > > following your advice, I have now ms_3.5 installed and php/mapscript seems > to work. Could you tell me where I can find some examples to show me how it > works? Is there any tutorial for php/mapscript? > There are the very simple examples that come with the source code in mapserver/mapscript/php3/examples ... and the next step up is the GMap demo applcation. Unfortunately there is nothing intermediate publicly available. You can download the GMap demo and data from http://www2.dmsolutions.ca/mapserver/dl/gmap-ms35-20010726.tar.gz There is also a tutorial that was started by Vinko V. I don't think it's complete yet, but you may want to have a look: http://mapserver.gis.umn.edu/doc/phpmapscript-by-example-howto.html I wonder if there is a more complete version available somewhere else... maybe Vinko can comment on that. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From ahallam at digitalearth.com.au Fri Oct 19 16:31:15 2001 From: ahallam at digitalearth.com.au (Andrew Hallam) Date: Sat, 20 Oct 2001 09:31:15 +1000 Subject: [mapserver-users] Win 32 v3.5 Nightly - Proj4 Support References: Message-ID: <001b01c158f6$2614a1d0$0c00a8c0@earth> Hi Perry and Frank, After looking at the source Proj4 source we tried C:\PROJ\NAD but it didn't work. I'll try the new build and PROJ_LIB environment variable on Monday. Thanks. Kind regards Andrew Hallam Technical Manager Digital Earth Pty Ltd tel: +61 2 4271 0492 mob: +61 413 993 302 web: http://www.digitalearth.com.au From cameron at socialchange.net.au Fri Oct 19 21:04:05 2001 From: cameron at socialchange.net.au (Cameron Shorter) Date: Sat, 20 Oct 2001 14:04:05 +1000 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone References: Message-ID: <3BD0F7B5.24806003@socialchange.net.au> http://geotools.sourceforge.net is a java applet which now has WMS support. It can take layers from multiple WMS servers and display them seperately. However, code is still beta. Documentation for WMS support is still light. The applet is fairly big (around 200K). Contact me if you want more details, or download the source from CVS. Stephen Lime wrote: > > Couple of things to add... 1) Dan Morissette has added cascading mapserver support to MapServer 3.5 release. 2) I have an older version of the mapplet code that takes 2 images and overlays them, plus gives you the box zooming. It was written for a similar an application- MapServer over LandSat, where the images came from two different servers. I haven't used it much since raster support was added to MapServer but with just a little update it would work. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>> "Ed McNierney" 10/19/01 08:39 AM >>> > Allan - > > I would urge anyone considering the "CSS approach" you describe to do so > with extreme caution. This is remarkably difficult to get working > properly across a reasonable set of browser platforms. Everyone's done > it differently, the bugs are different in each release, and it's just a > nightmare. There's a very good reason why the map on the Digital Earth > page you mention is at the upper-left corner of the page - it's really > hard to make it work anywhere else on the page! > > Having "been there, done that", I would really recommend that anyone > considering that approach instead use a small Java applet to load the > images and display them. Your compatibility problems will be greatly > reduced. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: Allan Doyle [mailto:adoyle at intl-interfaces.com] > Sent: Friday, October 19, 2001 8:22 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Re: [mapserver-users] Split large tiffs (topos) like TopoZone > > I think the original question/need was to be able to have DRGs "like > TopoZone's" that John Arthur could layer his own data on top of. > > If, indeed, he meant that he wants to layer his data on top of > TopoZone's data, then since we learned (also in this thread) that > TopoZone has a WMS, then he's home free. The idea behind WMS was to > allow precisely this: "Map A" from source "A" can be layered onto "Map > B" from source "B" without having to copy all the data from "A" to "B" > or vice versa. This can be done at the client end using CSS tricks with > layers - i.e. the client sends out two requests, one to WMS A and one to > WMS B and can layer the result. Or it can be done using "Cascading WMS" > techniques - WMS A behaves as a client to WMS B, pulls WMS B's layers in > on demand, and produces the layered map for WMS A. > > http://viewer.digitalearth.gov/ is a great example of the CSS approach. > > http://www.cubewerx.com/demo/cubeview/cubeview.cgi is the original and > probably the best current example of the cascading approach. > > Also, not to be heretical in the mapserver-users list, but there's an > open source implementation of a WMS geared to displaying from large > image bases called the MIT OrthoServer at > http://tull.mit.edu/orthoserver/ You can use it for the image layers > and the mapserver for the other layers and cascade up through the > mapserver. > > Allan > > Stephen Lime wrote: > > > > Ed is quite correct (he should be, it's his site). I did the same > thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and it > works very well. That script is simple perl script that doesn't use > MapServer. However, I did use perl and MapScript to compute the 300k > images (I think I still have the script if anyone want to take a look). > Took a day. Can MapServer and the TOMO server work together? Possibly > but you'd be bound by the non-MapServer application because of the > nature of the underlying data. > > > > Again, TOMO and TopoZone are built to serve one layer very fast, but > I've been using the exact same datasets (quad-based DRGs) that the > little images were computed from in a tiled fashion to support a much > broader range of scales and applications with great success and by > managing a few thousand images instead of a few hundred thousand. I can > only imagine what the TopoZone folks go through with 17 million images > and all the projection headaches. > > > > Steve > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > >>> "Ed McNierney" 10/18/01 19:42 PM >>> > > Folks - > > > > I've already mentioned to John privately that I have set up a WMS > server > > for topographic maps and would be interested in working with folks who > > would either like to use WMS "end-point" clients or use MapServer as a > > WMS client for these data layers. These will shortly be available as > a > > subscription service from TopoZone, and I could use some guinea pigs. > > If you're very cooperative, I've got some nice 1-meter DOQ data you > can > > use, too . Send email if you're interested; you'll be able to get > > complete DRG or DOQ base maps for your MapServer applications without > > buying data or disk to put it on! > > > > On the original point of chopping up rasters into little tiles, don't > > get carried away. TopoZone's current image architecture is designed > to > > do one very, very specific task very quickly. The entire "map server" > > for topozone.com (just the map-serving system, not the Web site) is > six > > lines of ASP VBScript code; everything is precomputed and prebuilt, > and > > all we serve are small image tiles at one of four fixed zoom levels. > > The tiles are small so you can scroll the map in whole-tile increments > > while still providing the user a reasonable degree of centering > control. > > The HARD part was generating all those tiles from the hodgepodge of > > source DRG data - serving them is trivial. > > > > I would NOT recommend a similar approach for MapServer applications - > > the tiles are WAY too small. Besides the administrative hassles (I've > > got over 17 million of the little buggers to keep track of) the > > disk-seeking overhead is not worth it. You can construct a very nice > > MapServer system using much larger files. We're currently managing a > > few applications with topographic base maps, are we're storing one > quad > > (one DRG) per file; that means each TIFF file is several megabytes. > > There's NO problem with performance IF you structure the data > carefully. > > I could very easily use larger TIFF images, but there's no benefit for > > me to do that - having one output TIFF image for every input DRG makes > > updates, bug fixes, and administration much easier. > > > > - Ed > > > > Ed McNierney > > Chief Mapmaker > > TopoZone.com > > > > -----Original Message----- > > From: Arthur, John [mailto:John.Arthur at voicestream.com] > > Sent: Thursday, October 18, 2001 6:15 PM > > To: 'kenboss'; Arthur, John > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > > > Hmm,.. I seams my mapserver won't display rasters,... > > I'm using 3.5 w/php_mapscript on windows2000. It(phpinfo) says tiff > was > > compiled in, and I get no errors. > > I'm using the ".wld" extention and also tried TileIndex through > > shapefiles,.. Any ideas? > > > > -John > > > > -----Original Message----- > > From: kenboss [mailto:kenboss at dilbert.dnr.state.mn.us] > > Sent: Thursday, October 18, 2001 4:49 PM > > To: John.Arthur at voicestream.com > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] Split large tiffs (topos) like TopoZone > > > > Right, you'd lose the georeferencing with the ImageMagick approach. > If > > you're a > > programmer, it shouldn't be too hard to do using one of the GDAL APIs > > (C, > > C++, > > or Python). If you're only a wannabe programmer like myself, you > might > > still be > > able to hack one of the apps distributed with GDAL (such as > > gdal_translate) > > to > > get what you need. See http://www.remotesensing.org/gdal/ > > > > --Ken > > > ======================================================================== > > ==== > > = > > Ken Boss > > Digital Image Analysis / Web Stuff Forestry Resource Assessment > > kenboss at dilbert.dnr.state.mn.us Minnesota Dept. of Natural > > Resources > > Voice: 218 327 4449 ext. 237 413 SE 13th Street > > > > Fax: 218 327 4517 Grand Rapids, MN 55744 > > USA > > www.ra.dnr.state.mn.us > > > ======================================================================== > > ==== > > = > > > > > > > > Yes, but what about the world file(.twf)? > > > > > > - John > > > > > > -----Original Message----- > > > From: Stephen Woodbridge [mailto:woodbri at mediaone.net] > > > Sent: Thursday, October 18, 2001 4:21 PM > > > To: Arthur, John > > > Cc: Mapserver-Users at Lists. Gis. Umn. Edu (E-mail) > > > Subject: Re: [mapserver-users] Split large tiffs (topos) like > TopoZone > > > > > > > > > I believe you could do that with ImageMagick and Perl to automate > it. > > > You should be able to chop up each of your large maps into n x m > > tiles. > > > > > > -Stephen Woodbridge > > > http://web-maps.org > > > > > > "Arthur, John" wrote: > > > > > > > > I would like to use topo quads in my MapServer, but it would take > > forever > > > to > > > > export each quad from Delorme's 3D topoquads. So I exported large > > 150 mb > > > > files instead. Is there a way to split these up into smaller > files > > or > > > just > > > > to display the large tiff in MapServer faster. We would like > > something > > > like > > > > what TopoZone.com has (Mad props to you guys @ TopoZone.com), but > > layer > > > our > > > > own data on top. > > > > > > > > John Arthur > > > > RF Technician > > > > Office: (757) 490-7221 > > > > Cellular: (757) 692-1515 > > > > Email: john.arthur at voicestream.com > > > > _~-^-~_ > > > > VoiceStream > > > > W I R E L E S S > > -- > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Allan Doyle http://www.intl-interfaces.com > adoyle at intl-interfaces.com -- Cameron Shorter Web Mapping Manager Social Change Online 248 Johnson St Tel: +61 (0) 2 9692 5115 Annandale NSW 2038 Fax: +61 (0) 2 9692 5192 Sydney, Australia http://webmap.socialchange.net.au From pramsey at refractions.net Sun Oct 21 18:22:32 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Sun, 21 Oct 2001 18:22:32 -0700 Subject: [mapserver-users] Web Mapping Article Message-ID: <3BD374D8.CB7D2006@refractions.net> GeoWorld has an article on web mapping, and mapserver is noticably absent. http://www.geoplace.com/gw/2001/0901/0901wb.asp The article does say "If you have a compelling case study you would like to add to this directory, please e-mail your proposal to John Hughes, Web editor-in-chief, at jhughes at mail.aip.com." so perhaps people could put case studies on the list and someone from the mapserver team could choose one to submit? P. From pilya at landsystems.com.ua Mon Oct 22 02:52:59 2001 From: pilya at landsystems.com.ua (Andrey Pilipetz) Date: Mon, 22 Oct 2001 12:52:59 +0300 Subject: [mapserver-users] mapscript: reusing mapObj (for FastCGI) Message-ID: <1FAA0A94BCC8F14BB6F426E9741CDB7303DBDE@tornado.asd> Hello. I tried to use tcl Mapscript 3.5 to create FastCGI Server. I think it is not problem with tcl but with Mapcript at all. I have some problems when opening map file twice. When studeing the problem, I'v the next result: > uname -a SunOS ultra 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-60 > tclsh % load /usr/local/lib/libmstcl.so invalid command name "ms_error_get" % set map [ms::new_mapObj "alex_big.map"] _66720_mapObj_p % ms::msSaveImage [ms::mapObj_draw $map] "1.png" 1 0 1 75 0 % set map1 [ms::new_mapObj "alex_small.map"] NULL % ms::delete_mapObj $map % set map1 [ms::new_mapObj "alex_small.map"] NULL % Does anybody know something about What is going on? Or may be I do something wrong? (To Tom Poindexter: I have patched mapscript to use "ms" instead of long "mapscript" namespace, and libmstcl.so (like libpgtcl.so) as a library name. I use native tcl interface without object wrapper. It would be nice have this changes in next version of tcl mapscript. ) From pilya at asd.kiev.ua Mon Oct 22 04:24:34 2001 From: pilya at asd.kiev.ua (Andrey Pilipetz) Date: Mon, 22 Oct 2001 14:24:34 +0300 Subject: [mapserver-users] mapscript: reusing mapObj (for FastCGI) Message-ID: <20011022142433.A2734@asd.kiev.ua> Hello. I tried to use tcl Mapscript 3.5 to create FastCGI Server. I think it is not problem with tcl but with Mapcript at all. I have some problems when opening map file twice. When studeing the problem, I'v the next result: > uname -a SunOS ultra 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-60 > tclsh % load /usr/local/lib/libmstcl.so invalid command name "ms_error_get" % set map [ms::new_mapObj "alex_big.map"] _66720_mapObj_p % ms::msSaveImage [ms::mapObj_draw $map] "1.png" 1 0 1 75 0 % set map1 [ms::new_mapObj "alex_small.map"] NULL % ms::delete_mapObj $map % set map1 [ms::new_mapObj "alex_small.map"] NULL % Does anybody know something about What is going on? Or may be I do something wrong? (To Tom Poindexter: I have patched mapscript to use "ms" instead of long "mapscript" namespace, and libmstcl.so (like libpgtcl.so) as a library name. I use native tcl interface without object wrapper. It would be nice have this changes in next version of tcl mapscript.) -- regards Andrey S. Pilipetz From jga at scot.cnes.fr Mon Oct 22 07:38:48 2001 From: jga at scot.cnes.fr (jrom) Date: Mon, 22 Oct 2001 16:38:48 +0200 Subject: [mapserver-users] Embeded scalebar object drawn under other layers Message-ID: <200110221449.f9MEnm520275@cnes.fr> Hi, I used several nightly build of mapserver 3.5. I've a problem regarding the embeded scalebar which is drawn under others layers instead of being on the top of them. I've compiled mapserver under gd-1.8.4 with gif patch (from http://www.rhyme.com.au/gd). Any ideas? Regards jrom From bfischer at mpls.houstoneng.com Mon Oct 22 07:50:13 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Mon, 22 Oct 2001 09:50:13 -0500 Subject: [mapserver-users] Installing PHP Mapscript Message-ID: <8879CCE0F0187742B7302A93A8B87B09029849@mpls.houstoneng.com> Hi list, I am trying to install PHP4.0.6 and MapServer/MapScript 3.5 on a Microsoft IIS 5.0 Server. I was wondering if anyone has any insight to what may be wrong with my setup. I downloaded the mapscript zip file from http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35_libwww .zip. I followed the install instructions and the How_to's and can not seem to see what is causing this error. I seem to have all of the names right. I also searched the archive and all of the messages about this subject point to incorrect version of mapscript with the version of php, but I seem to have that right. PHP seems to work fine, but it does not find the mapscript .dll. The .dll file is in c:\php\extensions\php_mapscript_35.dll My php.ini file looks like: ; Directory in which the loadable extensions (modules) reside. extension_dir = c:\php\extensions\ The Php script looks like: And I get this error: Warning: Unable to load dynamic library 'c:\php\extensions\php_mapscript_35.dll' - The specified module could not be found. in c:\inetpub\wwwroot\projects\phpinfo_mapscript.php on line 8 Here is the results page: http://www.houstoneng.com/projects/phpinfo_mapscript.php Any ideas? Thanks, Brian Brian Fischer Houston Engineering, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at dmsolutions.ca Mon Oct 22 08:04:22 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Mon, 22 Oct 2001 11:04:22 -0400 Subject: [mapserver-users] Installing PHP Mapscript References: <8879CCE0F0187742B7302A93A8B87B09029849@mpls.houstoneng.com> Message-ID: <3BD43576.FA92D282@dmsolutions.ca> Hi There, I think your problem is that you do not have the dll's related to libwww. Here is an e-mail sent earlier that should hopefully solve your problem : ...... I realized that I had in my compilation a link to the libwww libarary (which is used for the WMS CLIENT in mapserver). There is a need to have some dll's related to libwww for this version to work properly. I have placed 2 zip files : - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip : with no libwww support. - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35_libwww.zip : with libwww support Please use the one without the libwww support and it should resolve the problem. ....... Best Regards, Brian Fischer wrote: > Hi list, > > I am trying to install PHP4.0.6 and MapServer/MapScript 3.5 on a > Microsoft IIS 5.0 Server. > > I was wondering if anyone has any insight to what may be wrong with my > setup.I downloaded the mapscript zip file from > http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35_libwww.zip.I > followed the install instructions and the How_to?s and can not seem to > see what is causing this error.I seem to have all of the names right.I > also searched the archive and all of the messages about this subject > point to incorrect version of mapscript with the version of php, but I > seem to have that right.PHP seems to work fine, but it does not find > the mapscript .dll. > > The .dll file is in c:\php\extensions\php_mapscript_35.dll > > My php.ini file looks like: > > ; Directory in which the loadable extensions (modules) reside. > > extension_dir = c:\php\extensions\ > > The Php script looks like: > > > > > > > if (PHP_OS == "WINNT" || PHP_OS == "WIN32") > > { > > dl("php_mapscript_35.dll"); > > } > > else > > { > > dl("php_mapscript_35.so"); > > } > > phpinfo(); > > ?> > > > > > > And I get this error: > > Warning: Unable to load dynamic library > 'c:\php\extensions\php_mapscript_35.dll' - The specified module could > not be found. inc:\inetpub\wwwroot\projects\phpinfo_mapscript.php on > line 8 > > Here is the results page: > http://www.houstoneng.com/projects/phpinfo_mapscript.php > > Any ideas? > > Thanks, > > Brian > > Brian Fischer > > Houston Engineering, Inc. > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From armin.burger at territoriumonline.com Mon Oct 22 09:12:39 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Mon, 22 Oct 2001 18:12:39 +0200 Subject: [mapserver-users] Embeded scalebar object drawn under other layers Message-ID: <200110221613.SAA04419@efferd.nettz.com> Hi, you could try it with POSTLABELCACHE true in the map file section for 'scalebar'. I know that at least line layers are often drawn over the embedded scalebar if postlabelcache is not set to true. Armin > Hi, > I used several nightly build of mapserver 3.5. I've a problem > regarding the embeded scalebar which is drawn under others layers > instead of being on the top of them. I've compiled mapserver > under gd-1.8.4 with gif patch (from http://www.rhyme.com.au/gd). > Any ideas? > Regards > jrom From bfischer at mpls.houstoneng.com Mon Oct 22 09:18:59 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Mon, 22 Oct 2001 11:18:59 -0500 Subject: [mapserver-users] Installing PHP Mapscript Message-ID: <8879CCE0F0187742B7302A93A8B87B090285BA@mpls.houstoneng.com> Thanks Assefa and Chip. Your suggestions did the trick. I must have missed your original email in the archives. Brian -----Original Message----- From: Assefa Yewondwossen [mailto:assefa at dmsolutions.ca] Sent: Monday, October 22, 2001 10:04 AM To: Brian Fischer Cc: mapserver-users at lists.gis.umn.edu Subject: Re: [mapserver-users] Installing PHP Mapscript Hi There, I think your problem is that you do not have the dll's related to libwww. Here is an e-mail sent earlier that should hopefully solve your problem : ...... I realized that I had in my compilation a link to the libwww libarary (which is used for the WMS CLIENT in mapserver). There is a need to have some dll's related to libwww for this version to work properly. I have placed 2 zip files : - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35.zip : with no libwww support. - http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35_libwww .zip : with libwww support Please use the one without the libwww support and it should resolve the problem. ....... Best Regards, Brian Fischer wrote: Hi list, I am trying to install PHP4.0.6 and MapServer/MapScript 3.5 on a Microsoft IIS 5.0 Server. I was wondering if anyone has any insight to what may be wrong with my setup.I downloaded the mapscript zip file from http://www2.dmsolutions.ca/mapserver/dl/php4.0.6_php_mapscript_35_libwww .zip.I followed the install instructions and the How_to's and can not seem to see what is causing this error.I seem to have all of the names right.I also searched the archive and all of the messages about this subject point to incorrect version of mapscript with the version of php, but I seem to have that right.PHP seems to work fine, but it does not find the mapscript .dll. The .dll file is in c:\php\extensions\php_mapscript_35.dll My php.ini file looks like: ; Directory in which the loadable extensions (modules) reside. extension_dir = c:\php\extensions\ The Php script looks like: And I get this error: Warning: Unable to load dynamic library 'c:\php\extensions\php_mapscript_35.dll' - The specified module could not be found. inc:\inetpub\wwwroot\projects\phpinfo_mapscript.php on line 8 Here is the results page: http://www.houstoneng.com/projects/phpinfo_mapscript.php Any ideas? Thanks, Brian Brian Fischer Houston Engineering, Inc. -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tpoindex at nyx.net Mon Oct 22 09:38:43 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Mon, 22 Oct 2001 10:38:43 -0600 Subject: [mapserver-users] mapscript: reusing mapObj (for FastCGI) In-Reply-To: <20011022142433.A2734@asd.kiev.ua>; from pilya@asd.kiev.ua on Mon, Oct 22, 2001 at 02:24:34PM +0300 References: <20011022142433.A2734@asd.kiev.ua> Message-ID: <20011022103843.A10455@nyx10.nyx.net> Try instantiating the mapObj as: set map [ms::mapObj -args alex_big.map] then use Tcl rename to destroy the map: rename $map {} I do this technique in msexplorer.tcl (MapServer Workbench tool), and it can generally load more than one mapfile in it's lifetime. SWIG is a little vague in which instantiation to use to get a truly anonymous object and reference. Another possibility is to have one FastCGI server for each mapfile you want to serve, and open the mapfile just once upon initialization of the FastCGI server. You probably still want to monitor memory usage, and possibily exit the FastCGI server after some number of hits, to let it re-initialize. Re: "mapscript::" vs. "ms::" - I considered using a shorter namespace (like "ms"), but instead decided to go with a more descriptive name. I'll see if I can add a configure option to allow a namespace option at build time. Keep up informed on how your FastCGI server turns out. I think several others on the list are also interested in a FastCGI adaptation for MapServer. -Tom On Mon, Oct 22, 2001 at 02:24:34PM +0300, Andrey Pilipetz wrote: > Hello. > > I tried to use tcl Mapscript 3.5 to create FastCGI Server. > I think it is not problem with tcl but with Mapcript at all. > I have some problems when opening map file twice. > When studeing the problem, I'v the next result: > > > uname -a > SunOS ultra 5.8 Generic_108528-05 sun4u sparc SUNW,Ultra-60 > > tclsh > % load /usr/local/lib/libmstcl.so > invalid command name "ms_error_get" > % set map [ms::new_mapObj "alex_big.map"] > _66720_mapObj_p > % ms::msSaveImage [ms::mapObj_draw $map] "1.png" 1 0 1 75 > 0 > % set map1 [ms::new_mapObj "alex_small.map"] > NULL > % ms::delete_mapObj $map > % set map1 [ms::new_mapObj "alex_small.map"] > NULL > % > > Does anybody know something about What is going on? > Or may be I do something wrong? > > > (To Tom Poindexter: > I have patched mapscript to use "ms" instead of long "mapscript" > namespace, and libmstcl.so (like libpgtcl.so) as a library name. I use > native tcl interface without object wrapper. > It would be nice have this changes in next version of tcl > mapscript.) > > > -- > regards > Andrey S. Pilipetz -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From steve.lime at dnr.state.mn.us Mon Oct 22 10:36:32 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 22 Oct 2001 12:36:32 -0500 Subject: [mapserver-users] Split large tiffs (topos) like TopoZone Message-ID: Ok, dug out the old script (see attached). It basically uses a layer definition for a tiled raster layer (e.g. DRGs) to create the small images. What you end up doing is laying a grid across the state and are using MapServer to render a map for each grid cell. The script stores images in the same row together in a directory. One by product of the script is a shapefile that stores each image location and name. It could be used with MapServer itself but I've never done that in practice. It was used more for validation. Since we're laying a rectangular grid over a irregularly shaped state the script checks for empty images and deletes them. The server-side script compensates for the missing data. I ran the gentiles.pl script for each of the DRG layers I have here. The settings in the attached script are for the 1:24k dataset. The script generates maps at a single resolution. The cellsize I use comes from the raw DRGS and gives us output images that show every pixel in the dataset. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Ems 10/19/01 07:36AM >>> On Fri, 19 Oct 2001, Stephen Lime wrote: > Ed is quite correct (he should be, it's his site). I did the same > thing for Minnesota (maps.dnr.state.mn.us/tomo, ~300,000 images) and > it works very well. That script is simple perl script that doesn't use > MapServer. However, I did use perl and MapScript to compute the 300k > images (I think I still have the script if anyone want to take a > look). Took a day. Can MapServer and the TOMO server work together? ^^^^^^^^^^ ^^^^^^^^^^ I'd like a look! > Possibly but you'd be bound by the non-MapServer application because > of the nature of the underlying data. > > Again, TOMO and TopoZone are built to serve one layer very fast, but > I've been using the exact same datasets (quad-based DRGs) that the > little images were computed from in a tiled fashion to support a much > broader range of scales and applications with great success and by > managing a few thousand images instead of a few hundred thousand. I > can only imagine what the TopoZone folks go through with 17 million > images and all the projection headaches. > > Steve > > Stephen Lime > Data & Applications Manager > Thanks! -- Daniel Ems AM/FM/GIS Technical Support Spatial Data Integrations, Inc. -------------- next part -------------- A non-text attachment was scrubbed... Name: gentiles.pl Type: application/octet-stream Size: 2694 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: view.map Type: application/octet-stream Size: 706 bytes Desc: not available URL: From rchavez at perseus.tufts.edu Mon Oct 22 12:59:08 2001 From: rchavez at perseus.tufts.edu (Robert Chavez) Date: Mon, 22 Oct 2001 15:59:08 -0400 Subject: [mapserver-users] mapscript queryUsing Point question Message-ID: <3BD47A8C.8E52674B@perseus.tufts.edu> Greetings, I'm having some trouble workign with a point query in mapscript, I'm using the 3.3.011 release. I have the following Perl code and map file working, but I get no results from a point query when there should definitely be some results. First, here's the Perl code: sub shape_query { my ($x, $y, @imgclick, $query_point, $query_buffer, $layer, $results, $foo); ##Capture the user's click point @imageclick = split (' ', $cgi->param('imgxy')); print STDERR "The imageclick is: @imageclick\n"; $x = $imageclick[0]; $y = $imageclick[1]; ##Setup the queryByPoint parameters $query_point = new pointObj; print STDERR "x: $x\n"; print STDERR "y: $y\n"; $query_point->{x} = $x; $query_point->{y} = $y; ##Get the layer, perform the query $layer = $map->getLayerByName('kwstreetVRnodes'); $layer->{status} = $mapscript::MS_ON; print STDERR "About to start\n"; $results = $layer->queryUsingPoint($map, $query_point, MS_SINGLE, -1); print STDERR "Finished\n"; my $foo = $results->{numresults}; print STDERR "The number of results is: $foo\n"; ##Put the results in some useable form for (my $i=0; $i<$results->{numresults}; $i++) { $data = $results->next(); } print STDERR "the shape_query results are: $data\n"; $results->free(); return; } And the map file: LAYER NAME kwstreetVRnodes TYPE POINT STATUS DEFAULT DATA kwstreetnodes SYMBOLSCALE 5000 LABELMAXSCALE 1550 TOLERANCE 10 CLASS SYMBOL 3 MAXSIZE 25 MINSIZE 3 SIZE 3 COLOR 204 0 0 TEXT ([STREET_NAM],[CAMERA_NAM]) LABEL FORCE TRUE COLOR 0 0 0 FONT arial TYPE TRUETYPE SIZE 3 MINSIZE 3 MAXSIZE 7 ANTIALIAS POSITION CR END END QUERY TEMPLATE dummy END END Basically, for any click on a feature on a map, I get no results (I copied an output sample from my error_log below). It's almost as if mapscript isn't picking up the layer or the query in the layer, but I can't figure out why. I was also thinking that my mapObj ($map) was the problem, but it checks out OK (it's a global). Any help would be greatly appreciated. Rob >From the error_log: The imageclick is: 226 223 x: 226 y: 223 About to start Finished The number of results is: the shape_query results are: Can't call method "free" on unblessed reference at /home/rchavez/www/web/cgi-bin/city-view.pl line 51. [Mon Oct 22 15:45:56 2001] [error] [client 130.64.37.59] Premature end of script headers: /home/rchavez/www/web/cgi-bin/city-view.pl From dblasby at refractions.net Mon Oct 22 15:19:16 2001 From: dblasby at refractions.net (Dave Blasby) Date: Mon, 22 Oct 2001 15:19:16 -0700 Subject: [mapserver-users] PostGIS connector now allows sub-selects (ie. table joins) Message-ID: <3BD49B64.E99283D7@refractions.net> I had several requests for allowing more complex SQL queries with the postgis<->mapserver connector. This is now in the CVS version. Its experimental. Old mapfiles do NOT have to be modified. I also noticed that the folks doing the oracle spatial connector had extended my version of OpenLayer() to query into arbitrary SQL. I extended the postgis connector to also do this. Here's some examples and explainations. The old way was to have your layer definition look like this. This definition still works. LAYER CONNECTIONTYPE postgis NAME "mypostgis" DATA "geo_value from ctivalue" CONNECTION "host=192.168.50.3 user=postgres port=5555 dbname=mapserv" END Where DATA looked like " from ". I've extended DATA so it can use a sub-select instead of specifing a table name. This defines the same layer, except it uses a subselect instead of a table name. LAYER CONNECTIONTYPE postgis NAME "mypostgis" DATA "geo_value from (select oid,* from ctivalue) AS foo" CONNECTION "host=192.168.50.3 user=postgres port=5555 dbname=mapserv" END NOTES: + PostgreSQL does not allow anonymous sub-selects so you ALWAYS have to put the "... AS foo" after your subselect. + The subselect must return an unique column called "oid". This is used by mapserver tag each shape object. See below. + subselects are free to do whatevery they wish. (ie. join tables) + when you join tables, the GiST (R-Tree) index may not always be used (although I havent actually seen a case of that happening yet). I'll look into it and will probably make some minor syntax changes (in the future) to ensure its always used. OID --- The required oid reference is a bit confusing, so I'll explain what it is and where is came from. In postgresql, each table has a hidden (system defined) column called 'oid' (object id). Normally one doesnt see it, but its there. ie. SELECT * FROM
WHERE OID = 987693; ie. SELECT oid,* FROM
; I use this to uniquely define each row in the result set for mapserver queries (ie. mapserver's 'record' number). Unfortunately, the oid column disappears in sub-selects, so you have to explictly define it. You dont have to use the system provided oid, you can use something inside your table. Just rename it oid. ie. DATA "geo_value from (select gid as oid,* from ctivalue) AS foo" OID must be unique for each row!! QUERIES ------- They work as before, but I've changed the mechanics of how they actually get information. msPOSTGISLayerGetItems() used to query the system tables for the table mentioned in "DATA" to find out what columns where in it. With sub-selects, one cannot do this. Its hard to predict what the colums will be in an arbitrary piece of SQL without actually executing it. Since execution maybe very costly (especially with lots of tables), i decided to try a different approach. If you look in msPOSTGISLayerGetItems() and postresql_NOTICE_HANDLER(), you'll see that I trick postgresql into giving me its query optimization output. I parse this to find the columns the sub-select will produce. Take a look at it and tell me if it works for you, dave ps. People not using the sub-queries should find that their maps work exactly as they used to. From pramsey at refractions.net Mon Oct 22 20:55:32 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Mon, 22 Oct 2001 20:55:32 -0700 Subject: [mapserver-users] mapscript queryUsing Point question References: <3BD47A8C.8E52674B@perseus.tufts.edu> Message-ID: <3BD4EA34.A6F9F66F@refractions.net> Robert, My perl code (3.5 cvs) seems to do a queryByPoint correctly. See the file below. I think the problem w/ your code might be that you are supplying a querypoint in image coordinates rather than geographic coordinates. My own problem is that when I call getShape() in the code below, perl cores out. Ouch. PS - As a perl fool, I would like to note that having MS_SUCCESS == 0 is highly counter-intuitive :) ------------ use mapscript; my $map = new mapObj("/home/pramsey/arcims_proxy/imsbin/demo.map"); my $pt = new pointObj(); $pt->{x} = 900000; $pt->{y} = 900000; my $lyr = $map->getLayer(0); print $lyr,"\n"; print $lyr->{metadata},"\n"; my $rv = $lyr->queryByPoint($map,$pt,$mapscript::MS_SINGLE,10.0); die "Query failed" if $rv != $mapscript::MS_SUCCESS; print $rv,"\n"; my $rsltcache = $lyr->{resultcache}; my $bds = $rsltcache->{bounds}; print "(" . $bds->{minx} . "," . $bds->{miny} . ") "; print "(" . $bds->{maxx} . "," . $bds->{maxy} . ")\n"; my $numrslt = $rsltcache->{numresults}; my $rslt = $lyr->getResult(0); print $rslt->{shapeindex},"\n"; print $rslt->{tileindex},"\n"; my $shp = new shapeObj($mapscript::MS_SHAPE_POLYGON); $rv = $lyr->getShape($shp,$rslt->{tileindex},$rslt->{shapeindex}); ------------ [pramsey at localhost imsbin]$ perl imsbin.pl layerObj=HASH(0x80d3e48) hashTableObjPtr=SCALAR(0x80aa194) 0 (866069.209709852,888026.148641071) (1000000.03274901,1001458.47721688) 52 -1 Segmentation fault (core dumped) From matt at aruke.com Tue Oct 23 02:04:32 2001 From: matt at aruke.com (Matt Carlson) Date: Tue, 23 Oct 2001 18:04:32 +0900 Subject: [mapserver-users] point layers buggy References: Message-ID: <001101c15ba1$bbb63f70$0400a8c0@matt> mapserver 3.3.011 through mapscript(perl) linux red hat 6.2 proj 4.4.3 first off all thanks for all the help i've been getting from the list. we've almost got a stable setup of mapserver going. our biggest problem right now is with the point layers. i run into problems whenever i try to use mapservers Quadtree or projection features. my solution so far has been to pre project any point layers using alternate software, and not to use quadtree indexing for any point layers. but this isn't very realistic when the data sets start getting bigger. for some of the point layers the whole thing won't work, all i get is an internal server error from perl and i'm not able to catch any error output from the mapserver module. for other point layers the entire thing will work. and for some it work work in a spatial sense. some places it'll work how it's supposed to, and other areas it will throw the internal server error. i haven't check to see if it's breaking in the same place for quadtree and projection, but it feels basically the same. any ideas? i will spend time debugging it if you think it is an error in the code and can give me an idea of where to look thanks, matt From olevv at ekk.ee Tue Oct 23 04:12:41 2001 From: olevv at ekk.ee (Olevv) Date: Tue, 23 Oct 2001 13:12:41 +0200 Subject: [mapserver-users] subscribe Message-ID: <013601c15bb3$a5b969b0$6b7d28c1@ult4> subscribe From assefa at dmsolutions.ca Tue Oct 23 07:03:51 2001 From: assefa at dmsolutions.ca (Assefa Yewondwossen) Date: Tue, 23 Oct 2001 10:03:51 -0400 Subject: [mapserver-users] Re: Rosa-Applet and UMN Mapserver CGI-Bin References: <20011023131151.A24327@intevation.de> Message-ID: <3BD578C7.27F1B092@dmsolutions.ca> Hi There, Thanks for the update and code. I have posted it on our site at : http://www2.dmsolutions.ca/webtools/rosa/mapserver-rosa-patch.zip http://www2.dmsolutions.ca/webtools/rosa/mapserver-rosa-patch.tar Best Regars, Frank Koormann wrote: > Dear all, > > during a project with a local authority in Lower Saxonia, Germany I had > to setup a UMN MapServer CGI-Binary in combination with the rosa-applet. > > I found some code snippets on the mapserver mailing list posted by > Daniel (code comes from the pilbara project). Since this might be of a > more general interest I have extended the code (a single click in zoom > mode now centers the zoom on this point) and bundled it into patches > for mapserver v3.4 and v3.5. I think your site is the best location to > place the patches. > > Kind regards, > > Frank > > -- > Frank Koormann > Professional Service around Free Software (http://intevation.net/) > FreeGIS Project (http://freegis.org/) > > ------------------------------------------------------------------------ > Name: mapserver-3.4-rosa.patch > mapserver-3.4-rosa.patch Type: Plain Text (text/plain) > Encoding: quoted-printable > > Name: mapserver-3.5-rosa.patch > mapserver-3.5-rosa.patch Type: Plain Text (text/plain) > Encoding: quoted-printable > > Part 1.2Type: application/pgp-signature -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 Fax: (613) 565-0925 ---------------------------------------------------------------- From steve.lime at dnr.state.mn.us Tue Oct 23 07:19:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 23 Oct 2001 09:19:41 -0500 Subject: [mapserver-users] Fwd: Problem with dynamic Annotation layer under php mapscript Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "CATHIGNOL, Frederic" Subject: Problem with dynamic Annotation layer under php mapscript Date: Tue, 23 Oct 2001 12:47:04 +0200 Size: 8123 URL: From steve.lime at dnr.state.mn.us Tue Oct 23 07:19:49 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 23 Oct 2001 09:19:49 -0500 Subject: [mapserver-users] Fwd: Problem in allocating dynamic layer with color depending of expression under php mapscript Message-ID: Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- An embedded message was scrubbed... From: "CATHIGNOL, Frederic" Subject: Problem in allocating dynamic layer with color depending of expression under php mapscript Date: Tue, 23 Oct 2001 12:50:22 +0200 Size: 17971 URL: From teb at mallit.fr.umn.edu Tue Oct 23 07:42:00 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 23 Oct 2001 09:42:00 -0500 (CDT) Subject: [mapserver-users] Rosa image refreshing (fwd) Message-ID: <200110231442.JAA22315@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Cinco Veldman" To: Subject: Rosa image refreshing Date: Tue, 23 Oct 2001 11:12:06 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Importance: Normal Hi In the changelog for ROSA 1.1.0 it states it's now possible to change the applet's image once the applet is loaded. I was wondering if anyone could help me pull this off. Specificly: I'm looking for a way to change (client-side) between three map-images deppending on what button is pressed. So I preload the images and need some Javascript (but what?) to render them in the applet. Thanks in advance Vincent Jansen Javel BV ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Tue Oct 23 07:43:21 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 23 Oct 2001 09:43:21 -0500 (CDT) Subject: [mapserver-users] Some way to "#include" a map file? (fwd) Message-ID: <200110231443.JAA22321@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Mon, 22 Oct 2001 17:04:48 -0700 From: Scott Phillips User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.5) Gecko/20011011 X-Accept-Language: en-us MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: Some way to "#include" a map file? Content-Transfer-Encoding: 7bit Is there a way to include a map file inside of another map file? For example, if I have small peices of map files for different themes, I'd like to put them put them together something like: map name myname status on .... #include #include end And have the contents of the smaller map files show up as if they are part of the overall map file. It would help break up the map files into chunks for different projets. I've looked around, but haven't seen a way to do this. Am I missing something, or would I have to get creative to do this? Thanks, Scott Phillips scott at esrp.csustan.edu ------------- End Forwarded Message ------------- From jsmedsmo at gis.umn.edu Tue Oct 23 11:45:17 2001 From: jsmedsmo at gis.umn.edu (Jamie Smedsmo) Date: Tue, 23 Oct 2001 13:45:17 -0500 Subject: [mapserver-users] [Fwd: ASP Template] Message-ID: <3BD5BABD.4050808@gis.umn.edu> -------- Original Message -------- Subject: ASP Template Date: Tue, 23 Oct 2001 16:32:55 -0200 From: Ualfrido Del Carlo Jr To: "'mdp at lists.gis.umn.edu'" Hi, Question 1: I?m trying to open a ASP file at the query mode with the template comand in the map file, but it doesn?t work. Is there a limitation on Mapserv with ASP? The asp alone work fine, but not when I call it by the query mode. Can anyboby help me? Question 2: I need to select one City from a ComboBox or a TextBox and then show the polygon that matchs the name and center at the map. I have trying a couple of months but still without results. I?m using Mapserv 3.5. Thanks, Ualfrido Del Carlo Jr From Tom.Cadman at region.durham.on.ca Tue Oct 23 12:25:44 2001 From: Tom.Cadman at region.durham.on.ca (Tom Cadman) Date: Tue, 23 Oct 2001 15:25:44 -0400 Subject: [mapserver-users] rosa applet Windows CGI binary for CGI Message-ID: Does anybody have a MapServer Windows CGI binary which can use the Rosa applet without PHP? From Lars-goran.Edholm at sandviken.se Tue Oct 23 13:28:41 2001 From: Lars-goran.Edholm at sandviken.se (Lars-goran Edholm) Date: Tue, 23 Oct 2001 22:28:41 +0200 Subject: [mapserver-users] Mapshape works in 3.4 but not in 3.5 Message-ID: Hi! I have downloaded the latest ms35gif_nightly.zip and it works ok with the exception for mapshape. In version 3.4 I search by a polygon like this ...&mapshape=1554996.904975608+6687362.392839408+1555016.5195481518+6687364.844025663+1555015.702274296+6687303.1558382455+1555009.164083448+6687304.381431373+1554996.904975608+6687362.392839408&.. and it works fine. When using mapshape in 3.5 i get the errormessage: msQueryByShape(): Query error. Search shape MUST be a polygon. Are there changes to mapshape in 3.5? Mvh Lars-G?ran Edholm tel 026/24 14 36 1:e byggnadsinspekt?r Bygg- och milj?kontoret 811 80 Sandviken lars-goran.edholm at sandviken.se From bfischer at mpls.houstoneng.com Tue Oct 23 14:10:58 2001 From: bfischer at mpls.houstoneng.com (Brian Fischer) Date: Tue, 23 Oct 2001 16:10:58 -0500 Subject: [mapserver-users] [Fwd: ASP Template] Message-ID: <8879CCE0F0187742B7302A93A8B87B0902984D@mpls.houstoneng.com> Ualfrido Del Carlo Jr, Answer to question 1. I am pretty sure the reason why your .asp page is not working is because mapserv (the CGI program) does not send the results back to the server. It sends the results straight to the client, so your asp code never gets processed by the server. If I am wrong please speak up. This same question came up a few months ago on the listserv, but I could not seem to find the original posting and response. I do not know a way around, besides using MapScript/PHP. I have gotten around this by using an intermediate page to send to the client that contains a link to the ASP page. Take a look at this web page I am working on, it uses ASP to interact with the database. Query a permit and you will see the intermediate page that contains the link to the ASP page. http://www.houstoneng.com/projects/sandhill/ This is one of the reasons I am trying to get away from using ASP and trying to learn MapScript/PHP. Hope this helps, Brian -----Original Message----- From: Jamie Smedsmo [mailto:jsmedsmo at gis.umn.edu] Sent: Tuesday, October 23, 2001 1:45 PM To: mapserver-users at lists.gis.umn.edu Cc: Ualfrido Del Carlo Jr Subject: [mapserver-users] [Fwd: ASP Template] -------- Original Message -------- Subject: ASP Template Date: Tue, 23 Oct 2001 16:32:55 -0200 From: Ualfrido Del Carlo Jr To: "'mdp at lists.gis.umn.edu'" Hi, Question 1: I?m trying to open a ASP file at the query mode with the template comand in the map file, but it doesn?t work. Is there a limitation on Mapserv with ASP? The asp alone work fine, but not when I call it by the query mode. Can anyboby help me? Question 2: I need to select one City from a ComboBox or a TextBox and then show the polygon that matchs the name and center at the map. I have trying a couple of months but still without results. I?m using Mapserv 3.5. Thanks, Ualfrido Del Carlo Jr From ed at topozone.com Tue Oct 23 15:46:21 2001 From: ed at topozone.com (Ed McNierney) Date: Tue, 23 Oct 2001 18:46:21 -0400 Subject: [mapserver-users] ASP Implementation Thoughts Message-ID: <13858AA1A74F30419F319ACB66A9D122019203@mercator.topozone.com> Folks - The current thread about ASP implementation issues with MapServer prompts me to provide a few ideas for folks struggling in that direction. One of the great benefits of MapServer is its ability to provide a LOT of power and capability to users who are NOT using a scripting environment such as PHP or ASP or whatever. The ability to echo state information into form variables gives you lots of flexibility. On the other hand, if you ARE using a scripting environment, this capability will get in your way. You don't hear problems from people using PHP asking how to make MapServer generate PHP output. Why? Because they don't think of the problem that way. They use MapScript to control the operation of MapServer externally (not the mapserv binary exactly, but you get the point). There are some pretty simple things you can do to make life easier in the ASP environment. It would be great to have an ASP-style MapScript someday, but there's a lot you can do right now. First, make sure your ASP environment is "on top". That is, you're going to use an ASP page to direct MapServer, not use MapServer to generate ASP. Second, don't use MapServer to do things you can do yourself in ASP. A lot of what MapServer does with template files is help to preserve state information. An HTML form can be pre-filled with lots of settings that simply reflect the current mapping state, so it's easy to let the user make a few modifications and make a new map (i.e. resubmit the form). But you don't need that in an ASP environment! You can remember what your parameters were, no? Here's a very simple example that might help ASP developers think differently (with apologies to Apple). Let's start with getting a layer name from my ASP parameters. The URL being processed here is: http://myserver.com/iwanttouse.asp?mybaselayer=BASEMAP Here's how to start: <% layername = Request.QueryString ("mybaselayer") %> I can pull off any other useful parameters from my ASP querystring that I like. They don't have to be MapServer parameters - I just get enough info to describe the map I want in any format that's convenient and appropriate for the application. I can then generate the MapServer querystring myself. Although there are several ways to do the next step, I then use a nice little component called ASPHTTP (www.serverobjects.com) that lets you submit HTTP requests and get the results back in a string variable. So to submit a request to MapServer and get the results back in a VBScript string, you can do this: <% ' ' mapServerURL has been set to the complete MapServer querystring, adding the ' layername I extracted from the ASP page parameters: ' mapServerURL = "http://myserver.com/cgi-bin/mapserv.exe?map=mymapfile.map&layer=" & layername ' ' Issue that HTTP GET request and retrieve the HTML MapServer returns into a string variable ' Set httpObj = Server.CreateObject("AspHTTP.Conn") ' Create the object HTTPObj.Url = mapServerURL ' Set the URL mapServerHTML = HTTPObj.GetURL ' Issue HTTP GET and store output in mapServerHTML Set httpObj = Nothing %> Now the string mapServerHTML has the complete HTML generated by MapServer from your TEMPLATE file. That's nice, you say, but what do I do with that big HTML file now? You do very little, because you don't have a big HTML file. Your HTML file, generated by MapServer, and now resident inside the string mapServerHTML, looks like this: /tmp/Map123.jpg|/tmp/MapSB123.jpg What's that? It's the output you get when your TEMPLATE file looks like this: [img]|[scalebar] That's all. You don't need to make MapServer generate a whole HTML page for you - you've got your ASP page to do that. Once you get MapServer to generate this little HTML tidbit for you, parse it out into two ASP string variables, one with the URL of the map image file, one with the URL of the scalebar image file (note the lack of error checking): <% commentPos = InStr (mapServerHTML, ">") ' Strip out MapServer header comment delimiterPos = InStr (mapServerHTML, "|") ' Find field separator imgURL = Mid (mapServerHTML, commentPos + 1, delimiterPos - commentPos - 1) scalebarURL = Mid (mapServerHTML, delimiterPos + 1) %> Now I'm ready to generate my output HTML page. I've taken my ASP parameters, generated a MapServer request, directed MapServer to generate the map image and a scalebar image, and I've put the URLs of those images into the variables imgURL and scalebarURL. The rest of my ASP page will generate my HTML (all the stuff that's NOT in the TEMPLATE file). At strategic points I will do things like:

or other such thing. I get to develop my pages in ASP and make MapServer do all the work! - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 From woodbri at mediaone.net Tue Oct 23 16:21:41 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Tue, 23 Oct 2001 19:21:41 -0400 Subject: [mapserver-users] [Fwd: ASP Template] References: <8879CCE0F0187742B7302A93A8B87B0902984D@mpls.houstoneng.com> Message-ID: <3BD5FB85.FDA588A7@mediaone.net> Hi all, You could work around this problem by sending to the client (browser) an HTTP header "Location: http://....\n\n" which will cause the browser to load the "http://...." url without the user seeing the intermediate page. -OR- send the following page that will cause most all broswer (except some very old ones) to load the url in the refresh.

You are being transfered to the page you requested. Click HERE if the transfer isn't automatic.

In both these cases the "http:/...." is an absolute path to the url of your choosing. You can pass GET parameters in the URL and it can be an ASP or other page. The first is more transparent and the intermeadiate page is not used. The second does a client pull of the page, but it's a pain to "BACK" over it, but for most browsers the intermediate page is not seen and infact the body can be blank. The first requires you to be able to send out the HTTP headers. -Steve Brian Fischer wrote: > > Ualfrido Del Carlo Jr, > > Answer to question 1. > I am pretty sure the reason why your .asp page is not working is because > mapserv (the CGI program) does not send the results back to the server. > It sends the results straight to the client, so your asp code never gets > processed by the server. If I am wrong please speak up. This same > question came up a few months ago on the listserv, but I could not seem > to find the original posting and response. I do not know a way around, > besides using MapScript/PHP. > > I have gotten around this by using an intermediate page to send to the > client that contains a link to the ASP page. Take a look at this web > page I am working on, it uses ASP to interact with the database. Query > a permit and you will see the intermediate page that contains the link > to the ASP page. http://www.houstoneng.com/projects/sandhill/ > > This is one of the reasons I am trying to get away from using ASP and > trying to learn MapScript/PHP. > > Hope this helps, > Brian > > -----Original Message----- > From: Jamie Smedsmo [mailto:jsmedsmo at gis.umn.edu] > Sent: Tuesday, October 23, 2001 1:45 PM > To: mapserver-users at lists.gis.umn.edu > Cc: Ualfrido Del Carlo Jr > Subject: [mapserver-users] [Fwd: ASP Template] > > -------- Original Message -------- > Subject: ASP Template > Date: Tue, 23 Oct 2001 16:32:55 -0200 > From: Ualfrido Del Carlo Jr > To: "'mdp at lists.gis.umn.edu'" > > Hi, > > Question 1: > I?m trying to open a ASP file at the query mode with the template comand > in the map file, but it doesn?t work. Is there a limitation on Mapserv > with ASP? The asp alone work fine, but not when I call it by the query > mode. Can anyboby help me? > > Question 2: > I need to select one City from a ComboBox or a TextBox and then show the > polygon that matchs the name and center at the map. I have trying a > couple of months but still without results. > > I?m using Mapserv 3.5. > > Thanks, > > Ualfrido Del Carlo Jr From pramsey at refractions.net Tue Oct 23 16:55:17 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 23 Oct 2001 16:55:17 -0700 Subject: [mapserver-users] IMS Emulator Message-ID: <3BD60365.DF2874A1@refractions.net> Mapserverers: The perl-based IMS emulator is available for download at http://postgis.refractions.net/imsemu-0.1.tar.gz It is pretty (very) rough, but it works. On the to do list are such unimportant features as querying. It turns out that doing querying for ArcGIS clients is somewhat harder than one might hope, because the transfer format is an unspecified binary format. Attached is a preliminary spec for that format. If anyone has additions, I would love to hear them. PostGISers: The IMS emulator, once extended to do feature serving using the binary format, will allow one to use a PostGIS datasource as if it were an ArcIMS feature server within ArcGIS 8. This will give us a nice (read only) client to PostGIS in addition to Mapserver. -------------- next part -------------- ArcIMS GET_FEATURES "Compressed Binary Format" GENERAL PRINCIPLES When a client calls GET_FEATURES on ArcIMS without specifying an outputmode, the default mode is to return "Compressed Binary Format" (CBF). CBF appears to be completely undocumented. I have attempted to understand what makes up a CBF file. CBF is not OpenGIS Well-Known Binary, it is not the ESRI Shape File format, and it is not the "compressed binary" format used by ArcSDE. It is an odd hybrid all its own, combining storage for attribute information alongside coordinate information. This specification still has some holes, where "mystery bytes" live whose purpose has not been determined yet. The CBF file has the following general format: FILE HEADER [ATTRIBUTE FIELD DESCRIPTION 1] [ATTRIBUTE FIELD DESCRIPTION 2] [ATTRIBUTE FIELD DESCRIPTION 3] ... [ATTRIBUTE FIELD DESCRIPTION N] ATTRIBUTE FOOTER [SHAPE HEADER 1] [SHAPE COORDINATES 1] [SHAPE ATTRIBUTE VALUES 1] [SHAPE HEADER 2] [SHAPE COORDINATES 2] [SHAPE ATTRIBUTE VALUES 2] ... [SHAPE HEADER X] [SHAPE COORDINATES X] [SHAPE ATTRIBUTE VALUES X] FILE END FILE HEADER Bytes 1-4 Standard header values. The first four bytes do not appear to be the same all the time. The standard values for the header (in hex) are: 05 18 01 00 Bytes 5-8 Unknown header bytes. These four bytes vary for every sample I have, but I have not figured out what they mean yet. ATTRIBUTE FIELD DESCRIPTION This gives information about the attribute fields. The type is important, because type is necessary in order to read the attribute values farther below. Integer types will always have values stored in 4-byte integers. Floating point types will always have values stored in 8-byte doubles. Strings will be stored as variable length, with null-termination to indicate the end of the value. Shape fields (-98) always have 0 precision and size. Object ID fields always have 0 precision and size 10. Bytes 1-2 Field type number. Signed two-byte integer. 4 - Integer 8 - Floating Point Double 12 - Variable Length String -98 - Shape -99 - Object ID Byte 3 Field precision. Unsigned, one byte. Corresponds to usual DBF file description of numeric precision. e.g. number(12,5) where 5 is the precision. Bytes 4-5 Field size. Unsigned, two bytes. Corresponds to usual DBF file description of numeric size. e.g. number(12,5) where 12 is the size. Bytes 6-N Field name. Null-terminated character array. Read until you hit the null value (00). ATTRIBUTE FOOTER Bytes 1-9 After the attribute field information, there always seems to be a constant set of nine bytes: 08 43 41 C3 79 37 E0 80 00 SHAPE HEADER I do not competely understand the shape header right now. In addition to the information given below about the basic structure (with types 1, 2 and 3) there is another type, 9, which occurs only sometimes, and is followed by a variable number of bytes of mostly null values. I am guessing for now that it is possible to write valid CBF files completely ignoring the 9 type and just using the 1, 2 and 3 types, which are at least self-consistent. Byte 1 Shape type. One-byte value. 1 - MultiPoint 2 - MultiLine 3 - MultiPolygon Bytes 2-5 Number of parts in the shape (points in multipoint, lines in multiline, rings plus holes in multipolygon). Signed four-byte integer. SHAPE COORDINATES Each part of the shape consists of a length, and then the double-value vertices. The vertices are stored as offsets relative to the previous vertex. So, the first vertex is a spatial coordinate, and all the rest are relative offsets from the previous vertex. Bytes 1-4 Number of vertices in the part. Signed four-byte integer. Bytes 5-N Vertices as eight-byte doubles, calculated in the following manner: Coordinate 1: X1, Y1 Coordinate 2: (X2-X1), (Y2-Y1) Coordinate 3: (X3-X2), (Y3-Y2) ... Coordinate N: (XN - X(N-1)), (YN - Y(N-1)) Example: Spatial coordinates: (2,3) (2,4) (5,6) (8,3) Corresponding ESRI CBF coordinates: (2,3) (0,1) (3,2) (3,-3) SHAPE ATTRIBUTE VALUES Attribute values corresponding to the attribute fields defined in the ATTRIBUTE FIELD DESCRIPTIONGS. Integers are encoded as 4-byte signed integers. Floats are encoded as 8-byte doubles. Strings are null-terminated variable-length arrays of characters (you know you're at the end when you hit the null). The "SHAPE" attribute field is *ignored* in the attribute values. No value is entered for it at all, just skip right over. FILE END The CBF file always ends with a single end-of-file hex byte: FF From bertha_bonita at yahoo.com Tue Oct 23 19:16:45 2001 From: bertha_bonita at yahoo.com (=?iso-8859-1?q?bertha=20amalia=20serrato=20de=20la=20cruz?=) Date: Wed, 24 Oct 2001 04:16:45 +0200 (CEST) Subject: No subject Message-ID: <20011024021645.24365.qmail@web14102.mail.yahoo.com> Hi List.. in MapServer page's can read: " MapServer is not a full-featured GIS system, nor does it aspire to be." my question is: what are that " full-features" ? thanks! ===== *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- Lic. Ciencias Computacionales Bertha A. Serrato bserrato at cicese.mx CICESE,Divisi?n de Ciencias de la Tierra. Ensenada, B.C. *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger Comunicaci?n instant?nea gratis con tu gente. http://messenger.yahoo.es From pucher at atlas.gis.univie.ac.at Wed Oct 24 00:38:48 2001 From: pucher at atlas.gis.univie.ac.at (Alexander Pucher) Date: Wed, 24 Oct 2001 09:38:48 +0200 Subject: [mapserver-users] [Fwd: Job offering in Web-Mapping] Message-ID: <3BD67008.8020305@atlas.gis.univie.ac.at> -------- Original Message -------- Subject: Job offering in Web-Mapping Date: Tue, 23 Oct 2001 23:42:33 +0200 (CEST) From: neumann at karto.baug.ethz.ch To: svgmapping at cartography.ch Hello! Sorry, if I am mis-using this list. But we are still looking to fill a job at Institute of Cartography, ETH Zurich. We are looking for a "Researcher/developer with experience in web cartography/GIS/distributed databases (PhD student)". SVG will be part of the project - but only beside other techniques. If you are interested or know people that might be interesting in applying, please have a look at: http://www.karto.ethz.ch/services/stelle_distrib_mapping.pdf It will be an interesting job ... Thanks, Andreas -- The direct use of force is such a poor solution to any problem, it is generally employed only by small children and large nations. -- David Friedman ---------------------------------------------- Andreas Neumann - Department of Cartography Swiss Federal Institute of Technology (ETH) ETH Hoenggerberg, CH-8093 Zurich, Switzerland Phone: ++41-1-633 3037, Fax: ++41-1-633 1153 e-mail: andreas.neumann at karto.baug.ethz.ch www: http://www.karto.ethz.ch/neumann/ -- ________________________________________________________ Institut fuer Geographie und Regionalforschung Universit?t Wien Kartografie und Geoinformation Departement of Geography and Regional Research University of Vienna Cartographie and GIS Universitaetstr. 7, A-1010 Wien, AUSTRIA Tel: (+43 1) 4277 48644 Fax: (+43 1) 4277 48649 E-mail: pucher at atlas.gis.univie.ac.at FTP: ftp://ftp.gis.univie.ac.at WWW: http://www.gis.univie.ac.at/karto ________________________________________________________ "He that will not apply new remedies must expect new evils; for time is the greatest innovator"--Francis Bacon From sutton_t at giug.net Wed Oct 24 01:22:44 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 24 Oct 2001 09:22:44 +0100 (BST) Subject: [mapserver-users] Optimising Image quality Message-ID: Hi I have the cvs mapserver running. I am trying to improve the quality of the map output. If I use jpeg, the images (comprised mainly of lines and labels) have quite a lot of 'noise'. I suspect the jpeg output would be more suitable for maps containing raster backdrops (large colour palettes with few areas of contiguous colour). I can't use PNG as it is not universally supported by browsers yet. Can anyone tell me where to get hold of the GD1.2 so that I can create GIF's on the fly? The GD project site no longer lists it (for obvious reasons I suppose). Alternatively, is there any way to improve the quality of jpeg images produced? I have tried the IMAGEQUALITY [int] paramter. Although the documentation does not explicitly state it, I presume [int] is a percentage 0-100 value. I tried the extremes in this range with no visible improvement in image output quality. Any suggestions will be greatly appreciated. Thanks Tim From ed at topozone.com Wed Oct 24 07:09:12 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 24 Oct 2001 10:09:12 -0400 Subject: [mapserver-users] Optimising Image quality Message-ID: <13858AA1A74F30419F319ACB66A9D122019204@mercator.topozone.com> Tim - Your thoughts about JPG are correct. JPG is a better choice for maps with photographic basemaps; PNG is better for other maps. I would like to suggest that you reconsider your feelings against PNG. I just took a quick look at the last 50,000 user visits to TopoZone, and 98.7% of them were with browsers that support the kinds of PNG images MapServer generates. No, that's not universal, but you're never going to reach 100.00% (0.17% of the visits were with Netscape 2.x browsers!). The TopoZone site doesn't use PNG images (they're GIF) so there isn't a self-selection going on here - non-PNG browsers can use TopoZone just fine. The TopoZone site opened two years ago, and even then we encountered only one serious problem in PNG support. Our maps were all originally PNG tiles, and Microsoft Internet Explorer 4.x has a bug that prevents 8-bit palettized PNG images from printing correctly in some circumstances. We switched to GIF to avoid this problem, but it's a two-year-old issue. As of today (the same 50,000 visit sample) 95% of all TopoZone visitors using Internet Explorer are running 5.x or 6.x. Many browsers that "don't support PNG" tend to fail in PNG's support for transparency. That's not relevant to MapServer. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Tim Sutton [mailto:sutton_t at giug.net] Sent: Wednesday, October 24, 2001 4:23 AM To: MapServer Mailing List Subject: [mapserver-users] Optimising Image quality Hi I have the cvs mapserver running. I am trying to improve the quality of the map output. If I use jpeg, the images (comprised mainly of lines and labels) have quite a lot of 'noise'. I suspect the jpeg output would be more suitable for maps containing raster backdrops (large colour palettes with few areas of contiguous colour). I can't use PNG as it is not universally supported by browsers yet. Can anyone tell me where to get hold of the GD1.2 so that I can create GIF's on the fly? The GD project site no longer lists it (for obvious reasons I suppose). Alternatively, is there any way to improve the quality of jpeg images produced? I have tried the IMAGEQUALITY [int] paramter. Although the documentation does not explicitly state it, I presume [int] is a percentage 0-100 value. I tried the extremes in this range with no visible improvement in image output quality. Any suggestions will be greatly appreciated. Thanks Tim From lfilak at yahoo.com Wed Oct 24 07:54:58 2001 From: lfilak at yahoo.com (Lowell Filak) Date: Wed, 24 Oct 2001 07:54:58 -0700 (PDT) Subject: [mapserver-users] Re: In-Reply-To: <20011024021645.24365.qmail@web14102.mail.yahoo.com> Message-ID: <20011024145458.95749.qmail@web11303.mail.yahoo.com> Doing a UNION, CLIP, or IDENTITY between two GIS layers to produce a third would be examples. Lowell Filak --- bertha amalia serrato de la cruz wrote: > Hi List.. > > in MapServer page's can read: > > " MapServer is not a full-featured GIS system, nor > does it aspire to be." > > my question is: what are that " full-features" ? > > thanks! > > > > > > > > ===== > *--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > Lic. Ciencias Computacionales Bertha A. Serrato > bserrato at cicese.mx > CICESE,Divisi?n de Ciencias de la Tierra. > Ensenada, B.C. > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- > > _______________________________________________________________ > Do You Yahoo!? > Yahoo! Messenger > Comunicaci?n instant?nea gratis con tu gente. > http://messenger.yahoo.es __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com From steve.lime at dnr.state.mn.us Wed Oct 24 10:00:58 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 24 Oct 2001 12:00:58 -0500 Subject: [mapserver-users] Optimising Image quality Message-ID: There is a patched version of GD 1.8.4 that supports GIF/JPEG/PNG and WBMP. I removed gd-1.2 mainly because this version existed. Visit: http://www.rhyme.com.au/gd/ Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Tim Sutton 10/24/01 03:22AM >>> Hi I have the cvs mapserver running. I am trying to improve the quality of the map output. If I use jpeg, the images (comprised mainly of lines and labels) have quite a lot of 'noise'. I suspect the jpeg output would be more suitable for maps containing raster backdrops (large colour palettes with few areas of contiguous colour). I can't use PNG as it is not universally supported by browsers yet. Can anyone tell me where to get hold of the GD1.2 so that I can create GIF's on the fly? The GD project site no longer lists it (for obvious reasons I suppose). Alternatively, is there any way to improve the quality of jpeg images produced? I have tried the IMAGEQUALITY [int] paramter. Although the documentation does not explicitly state it, I presume [int] is a percentage 0-100 value. I tried the extremes in this range with no visible improvement in image output quality. Any suggestions will be greatly appreciated. Thanks Tim From bhill at nextbus.com Wed Oct 24 10:43:24 2001 From: bhill at nextbus.com (Brian Hill) Date: Wed, 24 Oct 2001 10:43:24 -0700 Subject: [mapserver-users] performance of our installation is way off Message-ID: <3BD6FDBC.5000003@nextbus.com> It is taking 15 to 20 seconds to render a map on a fast Linux/Intel system with all binaries and data local, which is off by a factor of 5 or more from what I was expecting. For example, hit: http://skip.nextbus.com/cgi-bin/imap/mapper?wid=.03&ht=.03&lat=37&lon=-122 I used tile4ms from a 3.5 nightly distribution to index all the Tiger shape file data for California. Otherwise, the system is a 3.3.012 system. The .map file has been pared pretty hard. Does anyone know of performance trouble-shooting techniques for the mapserver system or common build/app/data problems that can severely impact performance? In an earlier post, data thinning, pre-projection and spatial indexes were mentioned, but these are just buzzwords to me. I haven't found directions for actually applying these techniques in the documentation. Thanks for any tips on how to narrow the problem down or fix it. Brian Hill Sr. Software Engineer NextBus Information Systems (510)420-3122 From ed at topozone.com Wed Oct 24 11:51:48 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 24 Oct 2001 14:51:48 -0400 Subject: [mapserver-users] performance of our installation is way off Message-ID: <13858AA1A74F30419F319ACB66A9D122D46C@mercator.topozone.com> Brian - Here are some quick thoughts: 1. Are you using shptree to generate spatial indexes? If not, do this first. 2. Depending on your data organization, you may want to use shptree to index the index file created by tile4ms. Did you do something already? I took at look at the URL you provided, and I'm seeing map updates in 2-3 seconds. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Brian Hill [mailto:bhill at nextbus.com] Sent: Wednesday, October 24, 2001 1:43 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] performance of our installation is way off It is taking 15 to 20 seconds to render a map on a fast Linux/Intel system with all binaries and data local, which is off by a factor of 5 or more from what I was expecting. For example, hit: http://skip.nextbus.com/cgi-bin/imap/mapper?wid=.03&ht=.03&lat=37&lon=-1 22 I used tile4ms from a 3.5 nightly distribution to index all the Tiger shape file data for California. Otherwise, the system is a 3.3.012 system. The .map file has been pared pretty hard. Does anyone know of performance trouble-shooting techniques for the mapserver system or common build/app/data problems that can severely impact performance? In an earlier post, data thinning, pre-projection and spatial indexes were mentioned, but these are just buzzwords to me. I haven't found directions for actually applying these techniques in the documentation. Thanks for any tips on how to narrow the problem down or fix it. Brian Hill Sr. Software Engineer NextBus Information Systems (510)420-3122 From bhill at nextbus.com Wed Oct 24 12:02:51 2001 From: bhill at nextbus.com (Brian Hill) Date: Wed, 24 Oct 2001 12:02:51 -0700 Subject: [mapserver-users] Re: performance of our installation is way off References: <3BD6FDBC.5000003@nextbus.com> Message-ID: <3BD7105B.405@nextbus.com> I figured this out. It was misuse of tile4ms. At http://mapserver.gis.umn.edu/utils.html, the documentation for tile4ms suggests the following: find . -name "*.shp" -print > metafile.txt tile4ms metafile.txt tileindex For the tiger dataset, there are 10 or so .shp files for each fips code. Each of them has essentially the same extent, and so the index has 10 or so very similar entries for each fips code. I re-ran the find as find . -name "cty.shp" -print > metafile.txt tile4ms metafile.txt tileindex and edited all the /cty out of the locations using ArcView. The resulting index has 58 entries instead of 799. I don't know what I am doing very well, but the proof is in the pudding: http://skip.nextbus.com/cgi-bin/imap/mapper?wid=.03&ht=.03&lat=37&lon=-122 now only takes a couple of seconds. Yahoo! --Brian Brian Hill wrote: > It is taking 15 to 20 seconds to render a map on a fast Linux/Intel > system with all binaries and data local, which is off by a factor of 5 > or more from what I was expecting. For example, hit: > > http://skip.nextbus.com/cgi-bin/imap/mapper?wid=.03&ht=.03&lat=37&lon=-122 > > > I used tile4ms from a 3.5 nightly distribution to index all the Tiger > shape file data for California. Otherwise, the system is a 3.3.012 > system. The .map file has been pared pretty hard. > > Does anyone know of performance trouble-shooting techniques for the > mapserver system or common build/app/data problems that can severely > impact performance? > > In an earlier post, data thinning, pre-projection and spatial indexes > were mentioned, but these are just buzzwords to me. I haven't found > directions for actually applying these techniques in the documentation. > > Thanks for any tips on how to narrow the problem down or fix it. > > Brian Hill > Sr. Software Engineer > NextBus Information Systems > (510)420-3122 > > From sutton_t at giug.net Wed Oct 24 12:24:48 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 24 Oct 2001 20:24:48 +0100 (BST) Subject: [mapserver-users] Optimising Image quality In-Reply-To: <13858AA1A74F30419F319ACB66A9D122019204@mercator.topozone.com> Message-ID: Hi Thank you for your replies. My preference _is_ to use PNG as I prefer to use 'open' formats.I do all my development on Linux and my testing with Linux / Mozilla. When testing with PNG support on IE 5.0, I found that IE prompted to 'save file as' instead of displaying the png image as expected. Further, under IE 5.0 when using PNG + rosa, no image was displayed. Is there something I am missing? Which browsers actually support PNG? Which ones support PNG with transparency. Could there be some problem with the IE browser config? Many thanks Tim On Wed, 24 Oct 2001, Ed McNierney wrote: > Tim - > > Your thoughts about JPG are correct. JPG is a better choice for maps > with photographic basemaps; PNG is better for other maps. I would like > to suggest that you reconsider your feelings against PNG. > > I just took a quick look at the last 50,000 user visits to TopoZone, and > 98.7% of them were with browsers that support the kinds of PNG images > MapServer generates. No, that's not universal, but you're never going > to reach 100.00% (0.17% of the visits were with Netscape 2.x browsers!). > The TopoZone site doesn't use PNG images (they're GIF) so there isn't a > self-selection going on here - non-PNG browsers can use TopoZone just > fine. > > The TopoZone site opened two years ago, and even then we encountered > only one serious problem in PNG support. Our maps were all originally > PNG tiles, and Microsoft Internet Explorer 4.x has a bug that prevents > 8-bit palettized PNG images from printing correctly in some > circumstances. We switched to GIF to avoid this problem, but it's a > two-year-old issue. As of today (the same 50,000 visit sample) 95% of > all TopoZone visitors using Internet Explorer are running 5.x or 6.x. > > Many browsers that "don't support PNG" tend to fail in PNG's support for > transparency. That's not relevant to MapServer. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > > > -----Original Message----- > From: Tim Sutton [mailto:sutton_t at giug.net] > Sent: Wednesday, October 24, 2001 4:23 AM > To: MapServer Mailing List > Subject: [mapserver-users] Optimising Image quality > > > Hi > > I have the cvs mapserver running. I am trying to improve the quality > of the map output. If I use jpeg, the images (comprised mainly of > lines and labels) have quite a lot of 'noise'. I suspect the jpeg > output would be more suitable for maps containing raster backdrops > (large colour palettes with few areas of contiguous colour). I can't > use PNG as it is not universally supported by browsers yet. > > Can anyone tell me where to get hold of the GD1.2 so that I can create > GIF's on the fly? The GD project site no longer lists it (for > obvious reasons I suppose). > > Alternatively, is there any way to improve the quality of jpeg images > produced? I have tried the IMAGEQUALITY [int] paramter. Although the > documentation does not explicitly state it, I presume [int] is a > percentage 0-100 value. I tried the extremes in this range with no > visible improvement in image output quality. > > Any suggestions will be greatly appreciated. > > Thanks > > Tim > From ed at topozone.com Wed Oct 24 12:49:38 2001 From: ed at topozone.com (Ed McNierney) Date: Wed, 24 Oct 2001 15:49:38 -0400 Subject: [mapserver-users] Optimising Image quality Message-ID: <13858AA1A74F30419F319ACB66A9D122019206@mercator.topozone.com> Tim - There are two issues here - IE support for PNG and Rosa/Java support for PNG. IE 5.0 supports PNG just fine - it looks like somehow you've done something to modify your config, probably by installing some graphics program that claimed to "own" PNG mime-types AFTER you installed IE 5.0. If you save a PNG file to disk and then double-click on it, what application opens? Java 1.1 does not support PNG images natively. That's a bigger problem. You either need to use Java 1.2 a/k/a Java 2 or use a Java 1.1 toolkit that adds PNG support. Java 2 gives you MANY cool UI and imaging features, but it's a 5MB download that most users don't have yet. For Java 1.1 toolkits that support PNG, see http://www.libpng.org/pub/png/pngaptk.html - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: Tim Sutton [mailto:sutton_t at giug.net] Sent: Wednesday, October 24, 2001 3:25 PM To: Ed McNierney Cc: MapServer Mailing List Subject: RE: [mapserver-users] Optimising Image quality Hi Thank you for your replies. My preference _is_ to use PNG as I prefer to use 'open' formats.I do all my development on Linux and my testing with Linux / Mozilla. When testing with PNG support on IE 5.0, I found that IE prompted to 'save file as' instead of displaying the png image as expected. Further, under IE 5.0 when using PNG + rosa, no image was displayed. Is there something I am missing? Which browsers actually support PNG? Which ones support PNG with transparency. Could there be some problem with the IE browser config? Many thanks Tim On Wed, 24 Oct 2001, Ed McNierney wrote: > Tim - > > Your thoughts about JPG are correct. JPG is a better choice for maps > with photographic basemaps; PNG is better for other maps. I would like > to suggest that you reconsider your feelings against PNG. > > I just took a quick look at the last 50,000 user visits to TopoZone, and > 98.7% of them were with browsers that support the kinds of PNG images > MapServer generates. No, that's not universal, but you're never going > to reach 100.00% (0.17% of the visits were with Netscape 2.x browsers!). > The TopoZone site doesn't use PNG images (they're GIF) so there isn't a > self-selection going on here - non-PNG browsers can use TopoZone just > fine. > > The TopoZone site opened two years ago, and even then we encountered > only one serious problem in PNG support. Our maps were all originally > PNG tiles, and Microsoft Internet Explorer 4.x has a bug that prevents > 8-bit palettized PNG images from printing correctly in some > circumstances. We switched to GIF to avoid this problem, but it's a > two-year-old issue. As of today (the same 50,000 visit sample) 95% of > all TopoZone visitors using Internet Explorer are running 5.x or 6.x. > > Many browsers that "don't support PNG" tend to fail in PNG's support for > transparency. That's not relevant to MapServer. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > > > -----Original Message----- > From: Tim Sutton [mailto:sutton_t at giug.net] > Sent: Wednesday, October 24, 2001 4:23 AM > To: MapServer Mailing List > Subject: [mapserver-users] Optimising Image quality > > > Hi > > I have the cvs mapserver running. I am trying to improve the quality > of the map output. If I use jpeg, the images (comprised mainly of > lines and labels) have quite a lot of 'noise'. I suspect the jpeg > output would be more suitable for maps containing raster backdrops > (large colour palettes with few areas of contiguous colour). I can't > use PNG as it is not universally supported by browsers yet. > > Can anyone tell me where to get hold of the GD1.2 so that I can create > GIF's on the fly? The GD project site no longer lists it (for > obvious reasons I suppose). > > Alternatively, is there any way to improve the quality of jpeg images > produced? I have tried the IMAGEQUALITY [int] paramter. Although the > documentation does not explicitly state it, I presume [int] is a > percentage 0-100 value. I tried the extremes in this range with no > visible improvement in image output quality. > > Any suggestions will be greatly appreciated. > > Thanks > > Tim > From mapserver at hotmail.com Wed Oct 24 13:15:22 2001 From: mapserver at hotmail.com (=?iso-8859-1?B?RGllZ28gSi4gUGFkcvNuIFAu?=) Date: Wed, 24 Oct 2001 20:15:22 +0000 Subject: [mapserver-users] Help Message-ID: Greetings I use php/mapscrip and he/she wanted to know as making to add the property of having schemed to a covering .shp Thank you for the attention _________________________________________________________________ Descargue GRATUITAMENTE MSN Explorer en http://explorer.msn.es/intl.asp From lists at ekanegae.com.br Tue Oct 23 14:50:45 2001 From: lists at ekanegae.com.br (Eduardo Patto Kanegae) Date: Tue, 23 Oct 2001 19:50:45 -0200 Subject: [mapserver-users] problem with Portuguese idiom Message-ID: <003c01c15ccb$0d662900$2801a8c0@intranet> i'm trying to display as annotation layer , the names of cities of Sao Paulo state of Brasil but when the name of city is something like "S?o Paulo" or "Ribeir?o Preto" or "Paul?nea"... it only displays "SA PAULO" or "RIBEIR O PRETO" or "PAUL NEA" does it has a way to contour this or is it better i change field values on the .DBF? -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Wed Oct 24 13:53:15 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 24 Oct 2001 15:53:15 -0500 Subject: [mapserver-users] problem with Portuguese idiom Message-ID: What type of font are you using? Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Eduardo Patto Kanegae" 10/23/01 04:50PM >>> i'm trying to display as annotation layer , the names of cities of Sao Paulo state of Brasil but when the name of city is something like "S?o Paulo" or "Ribeir?o Preto" or "Paul?nea"... it only displays "SA PAULO" or "RIBEIR O PRETO" or "PAUL NEA" does it has a way to contour this or is it better i change field values on the .DBF? From Matt.Wilkie at gov.yk.ca Wed Oct 24 14:53:22 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 24 Oct 2001 14:53:22 -0700 Subject: [mapserver-users] Optimising Image quality Message-ID: <6DD7370C9452D31192A10008C75D07530CAFF169@raptor.gov.yk.ca> > There are two issues here - IE support for PNG and Rosa/Java > support for PNG. IE 5.0 supports PNG just fine - it looks > like somehow you've done something to modify your config, > probably by installing some graphics program that claimed to > "own" PNG mime-types AFTER you installed IE 5.0. I ran into this problem when I installed QuickTime (on Windows). QT installed itself as a plugin to IE and Netscape and took over handling of PNG images. Unfortunately the QT-as-plugin would display nothing but a blank page. I could not find a way to get QT not to handle PNG images so I uninstalled it and have never looked back. -matt ----------------------------------------------------------------- Matt Wilkie * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ ----------------------------------------------------------------- From lists at ekanegae.com.br Wed Oct 24 16:39:44 2001 From: lists at ekanegae.com.br (Eduardo Patto Kanegae) Date: Wed, 24 Oct 2001 21:39:44 -0200 Subject: [mapserver-users] problem with Portuguese idiom References: Message-ID: <001801c15ce5$2a33f980$2801a8c0@intranet> default font.... this is my map file NAME sp # prefixo das imagens temporarias geradas EXTENT -53.110 -25.310 -44.162 -19.785 # limites do shp SIZE 600 600 # dimensoes da imagem SHAPEPATH "D:\InetPub\websites\ekanegae\mapserver\shp" # caminho para os SHPs IMAGECOLOR 255 255 255 TRANSPARENT OFF # gerar GIF transparente WEB HEADER "../demo_header.html" TEMPLATE "../demo.html" FOOTER "../demo_footer.html" MINSCALE 10 MAXSCALE 1550000000 IMAGEPATH "D:\Inetpub\wwwroot\ms_demo\tmp\" IMAGEURL "/ms_demo/tmp/" # LOG "demo.log" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END LAYER # inicia um objeto Layer NAME "municipios" # nome do Layer DATA sp # nome do SHP sem extensao STATUS DEFAULT # se nenhum layer for invocado, este ja vem ativo como PADRAO TYPE POLYGON # tipo de layer(poligono,line,ponto...) CLASS # define uma classe para representar o layer COLOR 255 250 192 # cor do layer OUTLINECOLOR 0 0 0 # cor do contorno do layer END # finaliza definicao de classe END # finaliza definicao do layer LAYER # inicia layer NAME "municipios" TYPE ANNOTATION DATA sp STATUS ON LABELITEM "NMUN" CLASSITEM "NMUN" LABELMAXSCALE 5000000 CLASS # inicia classe EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 255 255 255 SHADOWSIZE 0 0 TYPE BITMAP SIZE TINY POSITION CC PARTIALS FALSE BUFFER 2 END # finaliza label END # finaliza classe END # finaliza layer END # fim do map file ----- Original Message ----- From: "Stephen Lime" To: ; Sent: Wednesday, October 24, 2001 6:53 PM Subject: Re: [mapserver-users] problem with Portuguese idiom > What type of font are you using? > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> "Eduardo Patto Kanegae" 10/23/01 04:50PM >>> > i'm trying to display as annotation layer , the names of cities of Sao Paulo state of Brasil > > but when the name of city is something like "S?o Paulo" or "Ribeir?o Preto" or "Paul?nea"... > > it only displays "SA PAULO" or "RIBEIR O PRETO" or "PAUL NEA" > > does it has a way to contour this or is it better i change field values on the .DBF? > > From pnaciona at gis.umn.edu Wed Oct 24 17:06:08 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 24 Oct 2001 19:06:08 -0500 Subject: [mapserver-users] CYGWIN and MapServer question Message-ID: Is anybody out there using GNU-compiled(Cygwin, specifically) MapServer CGI on Win32 platform? After compiling MapServer using Cygwin, I tested using Apache web server and got the generic message "internal server error...". The Apache error log shows this message: "Premature end of script headers: c:/program files/apache group/apache/cgi-bin/ms35.exe". I added the cygwin libraries to my Win2000 system path and issuing "ms35.exe -v" returns "MapServer version 3.5 (pre-alpha) OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF SUPPORTS=WMS INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE". All the utility programs work as well. So, does anyone know if I need to change or add something in Apache's config file? Any help will be appreciated. Thanks. Perry Nacionales pnaciona at gis.umn.edu From nhv at cape.com Wed Oct 24 18:33:40 2001 From: nhv at cape.com (Norman Vine) Date: Wed, 24 Oct 2001 21:33:40 -0400 Subject: [mapserver-users] CYGWIN and MapServer question In-Reply-To: Message-ID: <009801c15cf5$14314240$a300a8c0@nhv> Pericles S. Nacionales writes: > >Is anybody out there using GNU-compiled(Cygwin, specifically) >MapServer CGI on Win32 platform? Not recently but I have run a cygwin compiled mapserver 3.0.11 in the past, not with Apache however. Is there a 3.5 ms_demo package available for download. If so I can try to compile 3.5 with Cygwin and we compare notes. Are you using a Cygwin or a MSVC compiled Apache ? Cheers Norman Vine From stepan.kafka at centrum.cz Thu Oct 25 07:33:45 2001 From: stepan.kafka at centrum.cz (=?iso-8859-1?Q?=8Atep=E1n_Kafka_2?=) Date: Thu, 25 Oct 2001 16:33:45 +0200 Subject: [mapserver-users] problem with Portuguese idiom In-Reply-To: <001801c15ce5$2a33f980$2801a8c0@intranet> Message-ID: <000d01c15d62$0d607d10$0100a8c0@HSGIS> I had have the same problem with punctuation. The quickest solution is: - using truetype fonts, - using UNICODE characters for labeling map (I use extra column with UNICODE coding for labeling in the attribute table). Stepan Kafka > -----P?vodn? zpr?va----- > Od: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]za u?ivatele Eduardo > Patto Kanegae > Odesl?no: 25. ??jna 2001 1:40 > Komu: mapserver-users at lists.gis.umn.edu > P?edm?t: Re: [mapserver-users] problem with Portuguese idiom > > > default font.... > > this is my map file > > NAME sp # prefixo das imagens temporarias geradas > EXTENT -53.110 -25.310 -44.162 -19.785 # limites do shp > SIZE 600 600 # dimensoes da imagem > SHAPEPATH "D:\InetPub\websites\ekanegae\mapserver\shp" # caminho para os > SHPs > IMAGECOLOR 255 255 255 > TRANSPARENT OFF # gerar GIF transparente > > WEB > HEADER "../demo_header.html" > TEMPLATE "../demo.html" > FOOTER "../demo_footer.html" > MINSCALE 10 > MAXSCALE 1550000000 > IMAGEPATH "D:\Inetpub\wwwroot\ms_demo\tmp\" > IMAGEURL "/ms_demo/tmp/" > # LOG "demo.log" > END > > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > > LAYER # inicia um objeto Layer > NAME "municipios" # nome do Layer > DATA sp # nome do SHP sem extensao > STATUS DEFAULT # se nenhum layer for invocado, este ja vem ativo como > PADRAO > TYPE POLYGON # tipo de layer(poligono,line,ponto...) > CLASS # define uma classe para representar o layer > COLOR 255 250 192 # cor do layer > OUTLINECOLOR 0 0 0 # cor do contorno do layer > END # finaliza definicao de classe > END # finaliza definicao do layer > > LAYER # inicia layer > NAME "municipios" > TYPE ANNOTATION > DATA sp > STATUS ON > LABELITEM "NMUN" > CLASSITEM "NMUN" > LABELMAXSCALE 5000000 > CLASS # inicia classe > EXPRESSION /./ > COLOR -1 -1 -1 > LABEL > COLOR 0 0 0 > SHADOWCOLOR 255 255 255 > SHADOWSIZE 0 0 > TYPE BITMAP > SIZE TINY > POSITION CC > PARTIALS FALSE > BUFFER 2 > END # finaliza label > END # finaliza classe > END # finaliza layer > END # fim do map file > > > > ----- Original Message ----- > From: "Stephen Lime" > To: ; > Sent: Wednesday, October 24, 2001 6:53 PM > Subject: Re: [mapserver-users] problem with Portuguese idiom > > > > What type of font are you using? > > > > Stephen Lime > > Data & Applications Manager > > > > Minnesota DNR > > 500 Lafayette Road > > St. Paul, MN 55155 > > 651-297-2937 > > > > >>> "Eduardo Patto Kanegae" 10/23/01 04:50PM >>> > > i'm trying to display as annotation layer , the names of cities of Sao > Paulo state of Brasil > > > > but when the name of city is something like "Sao Paulo" or "Ribeirao > Preto" or "Paul?nea"... > > > > it only displays "SA PAULO" or "RIBEIR O PRETO" or "PAUL NEA" > > > > does it has a way to contour this or is it better i change > field values on > the .DBF? > > > > > > From Chip.Hankley at GASAI.Com Thu Oct 25 08:13:37 2001 From: Chip.Hankley at GASAI.Com (Hankley, Chip) Date: Thu, 25 Oct 2001 10:13:37 -0500 Subject: [mapserver-users] Widely spaced Diagonal Fill Message-ID: <3DFF131E4E6D2D4198CDD758F35A53536E3F85@postoffice.GASAI.Com> I'm having trouble figuring out how to do a simple diagonal hash. If I use the following definition, I do get a diagonal fill (sort of)... SYMBOL NAME 'hash' TYPE VECTOR POINTS 0 0 1 1 END END However, it's more of a checkerboard in that every other pixel is filled (which is what I would expect based on the definition). How would I do a more widely spaced fill (i.e. 45 degree lines with say, 5 pixels of space between lines)? The following definition looks the same as the first: SYMBOL NAME 'hash' TYPE VECTOR POINTS 0 0 5 5 END END Thanks! Chip Hankley From armin.burger at territoriumonline.com Thu Oct 25 09:20:01 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Thu, 25 Oct 2001 18:20:01 +0200 Subject: [mapserver-users] Widely spaced Diagonal Fill Message-ID: <200110251620.SAA19672@efferd.nettz.com> Chip, in the CLASS section you can use the SIZE tag for the size (height/width/spacing) of the symbol. That should do what you want. You can also do a scale-dependend fill pattern with the tag SYMBOLSCALE in the LAYER section, but that effects all symbols and labels for the layer. BTW: If somebody succeeded in creating a diagonal fill with a more than one-pixel-wide fill line it would be nice to submit the example. Armin > I'm having trouble figuring out how to do a simple diagonal hash. > If I use the following definition, I do get a diagonal fill (sort of)... > SYMBOL > NAME 'hash' > TYPE VECTOR > POINTS > 0 0 > 1 1 > END > END > However, it's more of a checkerboard in that every other pixel is filled > (which is what I would expect based on the definition). > How would I do a more widely spaced fill (i.e. 45 degree lines with say, 5 > pixels of space between lines)? The following definition looks the same as > the first: > SYMBOL > NAME 'hash' > TYPE VECTOR > POINTS > 0 0 > 5 5 > END > END > Thanks! > Chip Hankley -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia From SDunning at nephrology.org Thu Oct 25 09:49:56 2001 From: SDunning at nephrology.org (Stephan Dunning) Date: Thu, 25 Oct 2001 11:49:56 -0500 Subject: [mapserver-users] Widely spaced Diagonal Fill Message-ID: Keep your original symbol definition, but adjust the size parameter of the symbol. A size of 6 worked well for me. -----Original Message----- From: Hankley, Chip [mailto:Chip.Hankley at GASAI.Com] Sent: Thursday, October 25, 2001 10:14 AM To: MapServer List (E-mail) Subject: [mapserver-users] Widely spaced Diagonal Fill I'm having trouble figuring out how to do a simple diagonal hash. If I use the following definition, I do get a diagonal fill (sort of)... SYMBOL NAME 'hash' TYPE VECTOR POINTS 0 0 1 1 END END However, it's more of a checkerboard in that every other pixel is filled (which is what I would expect based on the definition). How would I do a more widely spaced fill (i.e. 45 degree lines with say, 5 pixels of space between lines)? The following definition looks the same as the first: SYMBOL NAME 'hash' TYPE VECTOR POINTS 0 0 5 5 END END Thanks! Chip Hankley From steve.lime at dnr.state.mn.us Thu Oct 25 10:05:38 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 25 Oct 2001 12:05:38 -0500 Subject: [mapserver-users] Widely spaced Diagonal Fill Message-ID: Try: SYMBOL NAME 'crosshatch' TYPE VECTOR POINTS 0 0 1 1 END END then in your class SYMBOL 'crosshatch' SIZE 5 # or whatever Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Armin Burger 10/25/01 11:27 AM >>> Chip, in the CLASS section you can use the SIZE tag for the size (height/width/spacing) of the symbol. That should do what you want. You can also do a scale-dependend fill pattern with the tag SYMBOLSCALE in the LAYER section, but that effects all symbols and labels for the layer. BTW: If somebody succeeded in creating a diagonal fill with a more than one-pixel-wide fill line it would be nice to submit the example. Armin > I'm having trouble figuring out how to do a simple diagonal hash. > If I use the following definition, I do get a diagonal fill (sort of)... > SYMBOL > NAME 'hash' > TYPE VECTOR > POINTS > 0 0 > 1 1 > END > END > However, it's more of a checkerboard in that every other pixel is filled > (which is what I would expect based on the definition). > How would I do a more widely spaced fill (i.e. 45 degree lines with say, 5 > pixels of space between lines)? The following definition looks the same as > the first: > SYMBOL > NAME 'hash' > TYPE VECTOR > POINTS > 0 0 > 5 5 > END > END > Thanks! > Chip Hankley -- Armin Burger Territorium Online Siemensstrasse/Via Siemens 19 - 39100 Bozen/Bolzano - Italia From pnaciona at gis.umn.edu Thu Oct 25 10:47:40 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Thu, 25 Oct 2001 12:47:40 -0500 Subject: [mapserver-users] MapServer and Cygwin update Message-ID: Folks, With some help from Norman Vine, I finally got MapServer to work with Apache--using the Cygwin-compiled Apache server. I don't know if there are a lot of people interested in compiling and using MapServer in Cygwin environment... but it's another option. If anyone is interested in checking this out, let me know. I'll be writing a HOW-TO at some point. Perry N. pnaciona at gis.umn.edu From jqu at eosdata.gsfc.nasa.gov Thu Oct 25 11:30:39 2001 From: jqu at eosdata.gsfc.nasa.gov (John Qu) Date: Thu, 25 Oct 2001 14:30:39 -0400 Subject: [mapserver-users] Map server security issue Message-ID: <4.2.0.58.20011025142404.00ac3be0@localhost> Hi Folks: Does anyone know map server security issue ? We just installed the MapServer on our system. We would need a fairly detailed report on any security issues of a from-scratch server-based application. Thanks ! John Qu NASA/GSFC/DISC From ed at topozone.com Thu Oct 25 12:23:45 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 25 Oct 2001 15:23:45 -0400 Subject: [mapserver-users] Map server security issue Message-ID: <13858AA1A74F30419F319ACB66A9D122019210@mercator.topozone.com> John - MapServer is a CGI application and has no special "security issues" associated with it. As part of its execution it creates temporary image files which are then read by client browsers. From a security perspective, Web browser users must have the following access rights: The right to execute the MapServer CGI binary The right to read the MapServer MAP definition file(s) The right to read the shapefiles, raster images, etc. used to create a MapServer map The right to write output map images to a temporary directory The right to read those images from that temporary directory There's nothing special here - nothing unusual. If you can tell us what operating system you're running MapServer on, and whether this is to be run on a Web site that's open to the public (anonymous users) or whether it's on a secure Intranet system, we can probably give you more tips. - Ed Ed McNierney Chief Mapmaker TopoZone.com ed at topozone.com (978) 251-4242 -----Original Message----- From: John Qu [mailto:jqu at eosdata.gsfc.nasa.gov] Sent: Thursday, October 25, 2001 2:31 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] Map server security issue Hi Folks: Does anyone know map server security issue ? We just installed the MapServer on our system. We would need a fairly detailed report on any security issues of a from-scratch server-based application. Thanks ! John Qu NASA/GSFC/DISC From frosch at cs.tu-berlin.de Thu Oct 25 13:33:53 2001 From: frosch at cs.tu-berlin.de (Thorsten Fischer) Date: Thu, 25 Oct 2001 22:33:53 +0200 (MEST) Subject: [mapserver-users] Map server security issue In-Reply-To: <4.2.0.58.20011025142404.00ac3be0@localhost> Message-ID: > Hi Folks: > Does anyone know map server security issue ? We just installed the > MapServer on our system. We would need a fairly detailed report on > any security issues of a from-scratch server-based application. Doing some security consulting work in addition to my job at mapmedia, (which besically involves setting up mapserver applications) i wondered about that question myself, but I did not find the time so far to investigate to the extent I would like to. First you should refine your question; what do you mean by security issues. Do you need protection from mapserver being used as an entry point to your network? Do you need protection of data stored on the same box along with it? Or do you rely heavily on the software, such that you do not want to have it brought down? And do you want to connect it to the internet or have it deployed for internal use only? Hmm, instead of bringing general security knowledge to you (that your app relies on the security of your environment and so on), i would concentrate on the question if mapserver can serve as an entry point to the box itself. I suggest that you look for suspicious lines of code like the dreaded strcpy() and his brethren to locate potential buffer overflows: ~/src/CVS/mapserver # grep "strcpy" *.c | wc -l 49 Which means there are 49 cases of strcpy() usage in the base source dir. This is generally not a good thing. Though most of those lines involve only fixed strings (like file type suffixes), strcpy() should be avoided. A lot of other functions can be abused in this way, causing buffer overflows to inject code to be executed, possibly delivering a remote shell to the attacker which grants him the rights of the program executing it. You should probably watch out for people overloading the box if you plan to run it on lot of data; placing a thousand or so requests at the same time is done easily by a script, while processing all of them can prove difficult. You might want to restrict the number of connections to your server on a per-ip basis or a similar scheme. A customer of ours once decided to use Java/Mapscript. Unfortunately for them, they also decided to do most of the implementation work themselves. Because they never told us exactly what they did, we still do not know whether it was their own hacking of mapscript, or the fault of swig, or maybe mapserver itself; but the thing segfaulted away when ~?00 connections were coming in at the same time. So you want to have your installation undergo a lot of stress testing before you are possibly the target of a DoS. Make sure you do not store any important or sensitive data along with mapserver on the same box. It might not have a bad security record, but it has not security record at all. That said, you will not find a written security report or extensive testing of the app so far. To end this, a short anecdote from some friends of mine. They wondered about security in the predecessor of the current ArcIMS, I think it's name was Mapobjects server? Anyway, they started to send the thing some lines of parameters, which, after them exceeding 256 characters, caused the server to crash. The bug was reproduced easily, and they even tried it online on one of ESRI's own demo sites. Of course, it worked. Hence they contacted ESRI. The reply: a) the bug is known, b) it would not be fixed and c) you could write an ASP page to wrap around it and parse overlong lines away. Add your own thoughts on that yourself Hope that helps a bit. Please note that anything said in this mail is based on personal opinion and insight only, and is in no way related to my employer. thorsten fischer -- thorsten fischer : frosch (at) derfrosch (dot) de hostien in groesseren mengen sind schwer zu beschaffen From cordthomas31 at mediaone.net Thu Oct 25 14:55:34 2001 From: cordthomas31 at mediaone.net (Cord Thomas) Date: Thu, 25 Oct 2001 17:55:34 -0400 Subject: [mapserver-users] Directory Browsing Message-ID: Looking through app reference and resin reference - cannot see how to configure an application directory to disallow directory browsing - if i don't have a welcome-file-list for a particular 'virtual directory' people can go directly to that virtual directory and browse files Is there a setting in resin to disable this? Cord Thomas, MCP Lupine Information Systems 617.549.2389 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1852 bytes Desc: not available URL: From cordthomas31 at mediaone.net Thu Oct 25 14:56:21 2001 From: cordthomas31 at mediaone.net (Cord Thomas) Date: Thu, 25 Oct 2001 17:56:21 -0400 Subject: [mapserver-users] oops, wrong mailing list - sorry Message-ID: Too maining mailing lists... sorry - please disregard - unless, of course you know the answer - email directly to me Sorry again. Cord Thomas, MCP Lupine Information Systems 617.549.2389 -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1668 bytes Desc: not available URL: From klehr1 at tampabay.rr.com Thu Oct 25 15:10:25 2001 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Thu, 25 Oct 2001 18:10:25 -0400 Subject: [mapserver-users] Map server security issue References: <13858AA1A74F30419F319ACB66A9D122019210@mercator.topozone.com> Message-ID: <024301c15da1$da472ce0$0300a8c0@tampabay.rr.com> Ed & John: Hi- I had the same questions. I put my shape files, html templates, and the .map files all in a location readable by the web server unix user (apache - webuser is the user running on my server). i.e. /usr/maps/project Only the generated gifs are in a location that is referencable via a web server. /var/www/html/mapimpages (http://domain/mapimpages/generated.gif) The web server can access the shape, maps, and template files during creation, the client browsers can only access the gifs generated by mapserver script. This way the web users can not grab my shapefile or my map files (the intellectual property). All the best Steve Lehr ----- Original Message ----- From: Ed McNierney To: John Qu ; Sent: Thursday, October 25, 2001 3:23 PM Subject: RE: [mapserver-users] Map server security issue > John - > > MapServer is a CGI application and has no special "security issues" > associated with it. As part of its execution it creates temporary image > files which are then read by client browsers. From a security > perspective, Web browser users must have the following access rights: > > The right to execute the MapServer CGI binary > The right to read the MapServer MAP definition file(s) > The right to read the shapefiles, raster images, etc. used to create a > MapServer map > The right to write output map images to a temporary directory > The right to read those images from that temporary directory > > There's nothing special here - nothing unusual. If you can tell us what > operating system you're running MapServer on, and whether this is to be > run on a Web site that's open to the public (anonymous users) or whether > it's on a secure Intranet system, we can probably give you more tips. > > - Ed > > Ed McNierney > Chief Mapmaker > TopoZone.com > ed at topozone.com > (978) 251-4242 > > > -----Original Message----- > From: John Qu [mailto:jqu at eosdata.gsfc.nasa.gov] > Sent: Thursday, October 25, 2001 2:31 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [mapserver-users] Map server security issue > > > Hi Folks: > > Does anyone know map server security issue ? We just installed the > MapServer on our system. We would need a fairly detailed report on > any security issues of a from-scratch server-based application. > > Thanks ! > > John Qu > > NASA/GSFC/DISC > > > > > From bhill at nextbus.com Thu Oct 25 17:08:35 2001 From: bhill at nextbus.com (Brian Hill) Date: Thu, 25 Oct 2001 17:08:35 -0700 Subject: [mapserver-users] mismatches tiling images produced by mapserver Message-ID: <3BD8A983.30106@nextbus.com> I am still wringing the bugs out of a new 3.3.012 installation, and am hoping someone on the list will have experience with this one. Our application needs to tile images produced by the mapserver. I.e., if an image is produced with extent, (lon - delta_lon / 2, lat), (lon + delta_lon / 2, lat), then it should fit very neatly to the left of an image with extent, (lon + delta_lon / 2, lat), (lon + 3 * delta_lon / 2, lat). Here is an example of four tiles which should fit together: http://skip.nextbus.com/tile-skip.html The .html file hits a perl wrapper for the map server four times. As you can see by scrolling to the center of the image, the four panes do not fit together neatly. The projection is Mercator, so tiles bounded by lines of constant latitude and constant longitude should fit. If there are rounding errors or some other problem down in the C libraries that is partly or completely understood and could explain this, please let me know. Wading directly into the sources is a bit daunting, especially given that any of three layers could be involved (perl/mapscript, mapserver-3.3.012 or proj-4.4.4), but it is critical for our application that the tiling come out neatly, so with some pointers, I am motivated and might be able to track it down. It is possible the bug is in the perl file that makes all the mapscript calls, but I think it is lower down, and therefore that fixing it might be of general interest. Brian Hill Sr. Software Engineer NextBus Information Systems From ed at topozone.com Thu Oct 25 17:45:13 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 25 Oct 2001 20:45:13 -0400 Subject: [mapserver-users] mismatches tiling images produced by mapserver Message-ID: <13858AA1A74F30419F319ACB66A9D122D49D@mercator.topozone.com> Brian - As far as I can tell, your images fit together perfectly. Is it possible the problem is or was in the cell spacing/padding of the IMG tags inside your HTML table? While it's certainly possible there are bugs, I have been using tile4ms on literally tens of thousands of vector and raster files over the last few months and have yet to find a bug. - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Brian Hill [mailto:bhill at nextbus.com] Sent: Thursday, October 25, 2001 8:09 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mismatches tiling images produced by mapserver I am still wringing the bugs out of a new 3.3.012 installation, and am hoping someone on the list will have experience with this one. Our application needs to tile images produced by the mapserver. I.e., if an image is produced with extent, (lon - delta_lon / 2, lat), (lon + delta_lon / 2, lat), then it should fit very neatly to the left of an image with extent, (lon + delta_lon / 2, lat), (lon + 3 * delta_lon / 2, lat). Here is an example of four tiles which should fit together: http://skip.nextbus.com/tile-skip.html The .html file hits a perl wrapper for the map server four times. As you can see by scrolling to the center of the image, the four panes do not fit together neatly. The projection is Mercator, so tiles bounded by lines of constant latitude and constant longitude should fit. If there are rounding errors or some other problem down in the C libraries that is partly or completely understood and could explain this, please let me know. Wading directly into the sources is a bit daunting, especially given that any of three layers could be involved (perl/mapscript, mapserver-3.3.012 or proj-4.4.4), but it is critical for our application that the tiling come out neatly, so with some pointers, I am motivated and might be able to track it down. It is possible the bug is in the perl file that makes all the mapscript calls, but I think it is lower down, and therefore that fixing it might be of general interest. Brian Hill Sr. Software Engineer NextBus Information Systems From ed at topozone.com Thu Oct 25 17:53:40 2001 From: ed at topozone.com (Ed McNierney) Date: Thu, 25 Oct 2001 20:53:40 -0400 Subject: [mapserver-users] mismatches tiling images produced by mapserver Message-ID: <13858AA1A74F30419F319ACB66A9D122019212@mercator.topozone.com> Brian - Sorry - now I see the defect in the image. I think you are having trouble because the extents of your requested images do not have the same aspect ratio as the images themselves. That is, you ask for images that have a width of 0.30412 degrees and a height of 0.22572 degrees (wid=0.30412&ht=0.22572) or a width/height ratio of 1.34733, while your tiles are 821x771 pixels or a ratio of 1.06485. These ratios don't seem right for a Mercator projection, but I'm being lazy and not doing the math. Are you indeed using a Mercator projection, or are you using a "geographic" projection (i.e. not projecting lat/lon at all)? Sorry about the earlier reference to tile4ms - that's obviously not relevant here. I guess I'm being lazy AND not paying attention . - Ed Ed McNierney Chief Mapmaker TopoZone.com -----Original Message----- From: Brian Hill [mailto:bhill at nextbus.com] Sent: Thursday, October 25, 2001 8:09 PM To: mapserver-users at lists.gis.umn.edu Subject: [mapserver-users] mismatches tiling images produced by mapserver I am still wringing the bugs out of a new 3.3.012 installation, and am hoping someone on the list will have experience with this one. Our application needs to tile images produced by the mapserver. I.e., if an image is produced with extent, (lon - delta_lon / 2, lat), (lon + delta_lon / 2, lat), then it should fit very neatly to the left of an image with extent, (lon + delta_lon / 2, lat), (lon + 3 * delta_lon / 2, lat). Here is an example of four tiles which should fit together: http://skip.nextbus.com/tile-skip.html The .html file hits a perl wrapper for the map server four times. As you can see by scrolling to the center of the image, the four panes do not fit together neatly. The projection is Mercator, so tiles bounded by lines of constant latitude and constant longitude should fit. If there are rounding errors or some other problem down in the C libraries that is partly or completely understood and could explain this, please let me know. Wading directly into the sources is a bit daunting, especially given that any of three layers could be involved (perl/mapscript, mapserver-3.3.012 or proj-4.4.4), but it is critical for our application that the tiling come out neatly, so with some pointers, I am motivated and might be able to track it down. It is possible the bug is in the perl file that makes all the mapscript calls, but I think it is lower down, and therefore that fixing it might be of general interest. Brian Hill Sr. Software Engineer NextBus Information Systems From bhill at nextbus.com Thu Oct 25 17:59:49 2001 From: bhill at nextbus.com (Brian Hill) Date: Thu, 25 Oct 2001 17:59:49 -0700 Subject: [mapserver-users] mismatches tiling images produced by mapserver References: <13858AA1A74F30419F319ACB66A9D122019212@mercator.topozone.com> Message-ID: <3BD8B585.8080605@nextbus.com> > > >That is, you ask for images that have a width of 0.30412 degrees and a >height of 0.22572 degrees (wid=0.30412&ht=0.22572) or a width/height >ratio of 1.34733, while your tiles are 821x771 pixels or a ratio of >1.06485. > Well, that could be. There is indeed a redundant parameter here. My expectation was that one of them is just not used. I should study the sources and see which ratio takes precendence. If this is right, it is exactly the kind of pointer I was hoping for. Thanks. --Brian From nhv at cape.com Thu Oct 25 18:41:50 2001 From: nhv at cape.com (Norman Vine) Date: Thu, 25 Oct 2001 21:41:50 -0400 Subject: [mapserver-users] mismatches tiling images produced by mapserver In-Reply-To: <3BD8B585.8080605@nextbus.com> Message-ID: <000a01c15dbf$62dbe740$a300a8c0@nhv> Brian Hill writes: >> >>That is, you ask for images that have a width of 0.30412 degrees and a >>height of 0.22572 degrees (wid=0.30412&ht=0.22572) or a width/height >>ratio of 1.34733, while your tiles are 821x771 pixels or a ratio of >>1.06485. >> >Well, that could be. There is indeed a redundant parameter here. My >expectation was that one of them is just not used. I should study the >sources and see which ratio takes precendence. If this is >right, it is >exactly the kind of pointer I was hoping for. Thanks. Note that only the longitudinal 'map extent' is constant with respect to arclength the latitudinal 'map height' vs arclength increases as one moves away from the equator in a mercator projection. This complicates things a little but the tile sizes can be precomputed. If you know that this data is always going to be 'displayed' in a mercator projection another alternative is to store the data in the projected form. This will simplify 'tile size problem' and may even display faster Cheers Norman From bart at atsence.nl Fri Oct 26 02:12:55 2001 From: bart at atsence.nl (Bart van Heijningen) Date: Fri, 26 Oct 2001 11:12:55 +0200 Subject: [mapserver-users] Subsitute for styled in 3.5 symbol file? In-Reply-To: Message-ID: Steve, I just do not succeed in getting my good old highway line back using the symbol file in 3.4 instead of the styled option which was available in 3.3. I know that you said you posted the solution already but I only found the following: " SYMBOL NAME 'dashed1' TYPE ELLIPSE POINTS 1 1 END FILLED STYLE 10 5 5 10 END # 10 pixels on, 5 off, 5 on, 10 off END Steve " But this does not tell me how to make a triple line (two thick reds on the outside and one yellow in the middle we use for highways) Any ideas? Bart -----Oorspronkelijk bericht----- Van: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]Namens Stephen Lime Verzonden: woensdag 26 september 2001 19:22 Aan: bart at atsence.nl; mapserver-users at lists.gis.umn.edu Onderwerp: Re: [mapserver-users] Subsitute for styled in 3.5 symbol file? I posted the solution to this in a previous thread (several months ago) so please see that for code snippets and so on. Basically you need to use overlayed symbols (i.e. a thin line over a thick line) to achieve that effect. The only difference between the approaches is that the center of a line is no longer transparent. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Bart van Heijningen" 09/26/01 09:18AM >>> Hi all, Now the styled option is no longer available in the symbol.sym from version 3.5 I have not succeeded in making an highway as was possible with the STYLED option in the line.sym file. Like: Symbol Type STYLED SYLE -1 1 8 0 0 0 1 1 8 END END Any suggestions will be highly appreciated. Bart From Janis.Bokans at vzd.gov.lv Fri Oct 26 02:25:48 2001 From: Janis.Bokans at vzd.gov.lv (Janis Bokans) Date: Fri, 26 Oct 2001 12:25:48 +0300 Subject: [mapserver-users] Problem with libproj librarie?? Message-ID: <88A22C0623A9D4119038009027B70F66A9DD64@KARDINALS> Hello! When I try to run mapserv I get error: mapserv: error in loading shared libraries: libproj.so.0: cannot open shared object file: No such file or directory I have proj-4.4.4 installed, mapserver 4.5, gd-1.2, linux = slackware 7.1 Can anyone tell me where is the problem? :) Thanks __________- Janis Bokans From matt at aruke.com Fri Oct 26 04:01:45 2001 From: matt at aruke.com (Matt Carlson) Date: Fri, 26 Oct 2001 20:01:45 +0900 Subject: [mapserver-users] Problem with libproj librarie?? References: <88A22C0623A9D4119038009027B70F66A9DD64@KARDINALS> Message-ID: <001201c15e0d$9aeaf600$0400a8c0@matt> mapserver may be trying to find the module in /usr/bin but i think proj4 installs it to /usr/local/bin if your running linux. if it's there just copy it over to /usr/bin and you should be fine. regards matt ----- Original Message ----- From: "Janis Bokans" To: Sent: Friday, October 26, 2001 6:25 PM Subject: [mapserver-users] Problem with libproj librarie?? > Hello! > > When I try to run mapserv I get error: > > mapserv: error in loading shared libraries: libproj.so.0: cannot open shared > object file: No such file or directory > > I have proj-4.4.4 installed, mapserver 4.5, gd-1.2, linux = slackware 7.1 > > > Can anyone tell me where is the problem? :) > > Thanks > > > __________- > Janis Bokans > From steve.lime at dnr.state.mn.us Fri Oct 26 06:53:33 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 26 Oct 2001 08:53:33 -0500 Subject: [mapserver-users] Map server security issue Message-ID: Folks: This is an overdue discussion. Perhaps this should be undertaken as a security "how to", anyone interested in taking that on? I'd suggest topics like: - what files need to be web accessible - running applications without a temporary directory (can be done) - implications of URL-based configuration - securing data with WMS/GML output - stress testing - web server configuration (MapServer can't control the number of instances of itself) - load balancing While MapServer developers have made every attempt to write secure code, I can gaurantee there are likely exploitable holes. All software has bugs and the MapServer is no exception. (I'll visit each of the 49 strcpy occurences to verify they're safe- me thinks they are.) We also won't pull an ESRI and simply refuse to fix something, the benefits of OpenSource. Of course, we need information from users when they run into issues. So, if you experience a core dump etc, please let us know! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Thorsten Fischer 10/25/01 03:33PM >>> > Hi Folks: > Does anyone know map server security issue ? We just installed the > MapServer on our system. We would need a fairly detailed report on > any security issues of a from-scratch server-based application. Doing some security consulting work in addition to my job at mapmedia, (which besically involves setting up mapserver applications) i wondered about that question myself, but I did not find the time so far to investigate to the extent I would like to. First you should refine your question; what do you mean by security issues. Do you need protection from mapserver being used as an entry point to your network? Do you need protection of data stored on the same box along with it? Or do you rely heavily on the software, such that you do not want to have it brought down? And do you want to connect it to the internet or have it deployed for internal use only? Hmm, instead of bringing general security knowledge to you (that your app relies on the security of your environment and so on), i would concentrate on the question if mapserver can serve as an entry point to the box itself. I suggest that you look for suspicious lines of code like the dreaded strcpy() and his brethren to locate potential buffer overflows: ~/src/CVS/mapserver # grep "strcpy" *.c | wc -l 49 Which means there are 49 cases of strcpy() usage in the base source dir. This is generally not a good thing. Though most of those lines involve only fixed strings (like file type suffixes), strcpy() should be avoided. A lot of other functions can be abused in this way, causing buffer overflows to inject code to be executed, possibly delivering a remote shell to the attacker which grants him the rights of the program executing it. You should probably watch out for people overloading the box if you plan to run it on lot of data; placing a thousand or so requests at the same time is done easily by a script, while processing all of them can prove difficult. You might want to restrict the number of connections to your server on a per-ip basis or a similar scheme. A customer of ours once decided to use Java/Mapscript. Unfortunately for them, they also decided to do most of the implementation work themselves. Because they never told us exactly what they did, we still do not know whether it was their own hacking of mapscript, or the fault of swig, or maybe mapserver itself; but the thing segfaulted away when ~?00 connections were coming in at the same time. So you want to have your installation undergo a lot of stress testing before you are possibly the target of a DoS. Make sure you do not store any important or sensitive data along with mapserver on the same box. It might not have a bad security record, but it has not security record at all. That said, you will not find a written security report or extensive testing of the app so far. To end this, a short anecdote from some friends of mine. They wondered about security in the predecessor of the current ArcIMS, I think it's name was Mapobjects server? Anyway, they started to send the thing some lines of parameters, which, after them exceeding 256 characters, caused the server to crash. The bug was reproduced easily, and they even tried it online on one of ESRI's own demo sites. Of course, it worked. Hence they contacted ESRI. The reply: a) the bug is known, b) it would not be fixed and c) you could write an ASP page to wrap around it and parse overlong lines away. Add your own thoughts on that yourself Hope that helps a bit. Please note that anything said in this mail is based on personal opinion and insight only, and is in no way related to my employer. thorsten fischer -- thorsten fischer : frosch (at) derfrosch (dot) de hostien in groesseren mengen sind schwer zu beschaffen From morissette at dmsolutions.ca Fri Oct 26 08:01:32 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 26 Oct 2001 11:01:32 -0400 Subject: [mapserver-users] Problem with libproj librarie?? References: <88A22C0623A9D4119038009027B70F66A9DD64@KARDINALS> Message-ID: <3BD97ACC.356B5DE4@dmsolutions.ca> Janis Bokans wrote: > > When I try to run mapserv I get error: > > mapserv: error in loading shared libraries: libproj.so.0: cannot open shared > object file: No such file or directory > > I have proj-4.4.4 installed, mapserver 4.5, gd-1.2, linux = slackware 7.1 > > Can anyone tell me where is the problem? :) > Have a look at: http://www2.dmsolutions.ca/mapserver/php_mapscript/php_mapscript_faq.html#4.2 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From pramsey at refractions.net Fri Oct 26 09:25:22 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Fri, 26 Oct 2001 09:25:22 -0700 Subject: [mapserver-users] Problem with libproj librarie?? References: <88A22C0623A9D4119038009027B70F66A9DD64@KARDINALS> <001201c15e0d$9aeaf600$0400a8c0@matt> Message-ID: <3BD98E72.AE0D94DD@refractions.net> A more elegant solution is to edit /etc/ld.so.conf and add /usr/local/lib to the list of directories. Then run 'ldconfig' to bring all the library information up to date. Things should then work. (For some reason, distributions do not have /usr/local/lib in ld.so.conf by default, even though the directory exists by default in their distributions. Must be to keep the newbies down.). Matt Carlson wrote: > > mapserver may be trying to find the module in /usr/bin but i think proj4 > installs it to /usr/local/bin if your running linux. if it's there just > copy it over to /usr/bin and you should be fine. > > ----- Original Message ----- > From: "Janis Bokans" > To: > Sent: Friday, October 26, 2001 6:25 PM > Subject: [mapserver-users] Problem with libproj librarie?? > > > Hello! > > > > When I try to run mapserv I get error: > > > > mapserv: error in loading shared libraries: libproj.so.0: cannot open > shared > > object file: No such file or directory > > > > I have proj-4.4.4 installed, mapserver 4.5, gd-1.2, linux = slackware 7.1 > > > > > > Can anyone tell me where is the problem? :) > > > > Thanks > > > > > > __________- > > Janis Bokans > > From steve.lime at dnr.state.mn.us Fri Oct 26 10:39:21 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 26 Oct 2001 12:39:21 -0500 Subject: [mapserver-users] Problem with libproj librarie?? Message-ID: That will work on some systems. On others you can set the envirionment variable LD_LIBRARY_PATH to contain a semi-colon list of directories that contain shared libs. Using apache you can use the SetEnv directive to do this in httpd.conf. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Paul Ramsey 10/26/01 11:25AM >>> A more elegant solution is to edit /etc/ld.so.conf and add /usr/local/lib to the list of directories. Then run 'ldconfig' to bring all the library information up to date. Things should then work. (For some reason, distributions do not have /usr/local/lib in ld.so.conf by default, even though the directory exists by default in their distributions. Must be to keep the newbies down.). Matt Carlson wrote: > > mapserver may be trying to find the module in /usr/bin but i think proj4 > installs it to /usr/local/bin if your running linux. if it's there just > copy it over to /usr/bin and you should be fine. > > ----- Original Message ----- > From: "Janis Bokans" > To: > Sent: Friday, October 26, 2001 6:25 PM > Subject: [mapserver-users] Problem with libproj librarie?? > > > Hello! > > > > When I try to run mapserv I get error: > > > > mapserv: error in loading shared libraries: libproj.so.0: cannot open > shared > > object file: No such file or directory > > > > I have proj-4.4.4 installed, mapserver 4.5, gd-1.2, linux = slackware 7.1 > > > > > > Can anyone tell me where is the problem? :) > > > > Thanks > > > > > > __________- > > Janis Bokans > > From steve.lime at dnr.state.mn.us Fri Oct 26 13:26:00 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 26 Oct 2001 15:26:00 -0500 Subject: [mapserver-users] Subsitute for styled in 3.5 symbol file? Message-ID: Assuming there is also a definition like: SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED END That def with the one below would allow you to do the following in a CLASS: SYMBOL 'circle' SIZE 3 COLOR 0 0 0 OVERLAYSYMBOL 'dashed1' OVERLAYSIZE 1 OVERLAYCOLOR 255 255 255 Would give you a 3 pixel width black line with a dashed white center line. This whole thing is itself scaleable as well. Steve >>> "Bart van Heijningen" 10/26/01 04:12AM >>> Steve, I just do not succeed in getting my good old highway line back using the symbol file in 3.4 instead of the styled option which was available in 3.3. I know that you said you posted the solution already but I only found the following: " SYMBOL NAME 'dashed1' TYPE ELLIPSE POINTS 1 1 END FILLED STYLE 10 5 5 10 END # 10 pixels on, 5 off, 5 on, 10 off END Steve " But this does not tell me how to make a triple line (two thick reds on the outside and one yellow in the middle we use for highways) Any ideas? Bart -----Oorspronkelijk bericht----- Van: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]Namens Stephen Lime Verzonden: woensdag 26 september 2001 19:22 Aan: bart at atsence.nl; mapserver-users at lists.gis.umn.edu Onderwerp: Re: [mapserver-users] Subsitute for styled in 3.5 symbol file? I posted the solution to this in a previous thread (several months ago) so please see that for code snippets and so on. Basically you need to use overlayed symbols (i.e. a thin line over a thick line) to achieve that effect. The only difference between the approaches is that the center of a line is no longer transparent. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Bart van Heijningen" 09/26/01 09:18AM >>> Hi all, Now the styled option is no longer available in the symbol.sym from version 3.5 I have not succeeded in making an highway as was possible with the STYLED option in the line.sym file. Like: Symbol Type STYLED SYLE -1 1 8 0 0 0 1 1 8 END END Any suggestions will be highly appreciated. Bart From v at w.cl Fri Oct 26 15:25:40 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Fri, 26 Oct 2001 19:25:40 -0300 (CLST) Subject: [mapserver-users] Scalebar Object in PHP Mapscript In-Reply-To: <20010908001758.7679C2299E@mail.selperchile.cl> from "Vinko Vrsalovic B." at sep 07, 2001 08:17:58 Message-ID: <20011026222540.C979D229A2@mail.selperchile.cl> Is it possible to change the properties of the scalebar dynamically? I can't find a scalebar object in PHP/MapScript. (For instance, at a certain scale change the color of the scalebar). Thank you, -- V. From woodbri at mediaone.net Sat Oct 27 05:36:31 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Sat, 27 Oct 2001 08:36:31 -0400 Subject: [mapserver-users] MapServer and Cygwin update References: Message-ID: <3BDAAA4F.87EAA5D7@mediaone.net> Perry, A HOW-TO would be great! I'm using Linux at the moment but I use Cygwin any time I'm doing development on the PC, so I love to see a HOW-TO for the next time I need to build on the PC. Thanks, -Steve http://swoodbridge.com "Pericles S. Nacionales" wrote: > > Folks, > > With some help from Norman Vine, I finally got MapServer to work with > Apache--using the Cygwin-compiled Apache server. I don't know if there are > a lot of people interested in compiling and using MapServer in Cygwin > environment... but it's another option. If anyone is interested in > checking this out, let me know. I'll be writing a HOW-TO at some point. > > Perry N. > pnaciona at gis.umn.edu From marin at here.is Sat Oct 27 08:00:44 2001 From: marin at here.is (Ma) Date: Sat, 27 Oct 2001 15:00:44 +0000 Subject: [mapserver-users] MapServer and Cygwin update References: <3BDAAA4F.87EAA5D7@mediaone.net> Message-ID: <3BDACC1B.3B082B0C@here.is> Great! Please write it as soon as possible! -- Ma Stephen Woodbridge wrote: > Perry, > > A HOW-TO would be great! I'm using Linux at the moment but I use Cygwin > any time I'm doing development on the PC, so I love to see a HOW-TO for > the next time I need to build on the PC. > > Thanks, > -Steve > http://swoodbridge.com > > "Pericles S. Nacionales" wrote: > > > > Folks, > > > > With some help from Norman Vine, I finally got MapServer to work with > > Apache--using the Cygwin-compiled Apache server. I don't know if there are > > a lot of people interested in compiling and using MapServer in Cygwin > > environment... but it's another option. If anyone is interested in > > checking this out, let me know. I'll be writing a HOW-TO at some point. > > > > Perry N. > > pnaciona at gis.umn.edu From mckenna at dmsolutions.ca Sat Oct 27 10:12:29 2001 From: mckenna at dmsolutions.ca (Jeff McKenna) Date: Sat, 27 Oct 2001 13:12:29 -0400 Subject: [mapserver-users] Scalebar Object in PHP Mapscript References: <20011026222540.C979D229A2@mail.selperchile.cl> Message-ID: <3BDAEAFD.EF7D40D5@dmsolutions.ca> Hello, The Scalebar Obj class was recently added to Php/Mapscript. See the Class Reference doc: http://mapserver.gis.umn.edu/doc/phpmapscript-class-guide.html#scale Jeff "Vinko Vrsalovic B." wrote: > > Is it possible to change the properties of the scalebar dynamically? > > I can't find a scalebar object in PHP/MapScript. > > (For instance, at a certain scale change the color of the scalebar). > > Thank you, > -- > V. -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca/ From sutton_t at giug.net Mon Oct 29 01:34:31 2001 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 29 Oct 2001 09:34:31 +0000 (GMT) Subject: [mapserver-users] Runaway process and other wierdness Message-ID: Hi I am having a problem with mapserver (redhat 7.1 + apache module + php) where the server http threads for mapserver requests run away and hog all the processor time. This has been happening using the cvs version and ms3.4. This has only suddenly started happeining so I am not sure why? Any Ideas? Also, I have another problem: If I browse around on one mapserver app on my server, then change the url in the same browser session to another mapserver app, I get images from the first app seemingly randomly dumped into the second. Has anyone encountered this? Another wierd thing it does is when I am zooming in to the map, a very enlarged version of the scalebar suddenly gets rendered in the mapwindow?? Any thoughts on how to resolve these problems will be greatly appreciated. Regards Tim Sutton From bruno_gendron at yahoo.com Mon Oct 29 06:11:54 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Mon, 29 Oct 2001 15:11:54 +0100 (CET) Subject: [mapserver-users] Runaway process and other wierdness In-Reply-To: Message-ID: <20011029141154.97923.qmail@web20706.mail.yahoo.com> Hi Tim, hello everyone, I began having the same exact problems recently (except from the scalebar bug), with ms3.5 (not cvs) on Mandrake 8, Apache 1.3.X, php 4.0.5 and php-mapscript. I'm not using the CGI version of MapServer, only php-mapscript. >From my experiments, if php encounters any error while a mapscript session is in progress (in my case, my php script had a small warning, not fatal, error that was catched by an error management routine), the http thread does not terminate properly, leading in a thread "leak". After I solved this error, the leak ALMOST disappeared, although i cannot certify that this was only a coding issue on my behalf. Could it be a "keep-alive" problem with php or apache? Like you, I also get random map images from previous requests appearing in my browser: even worse, other users of the app sometimes get map images from each other's requests! 2 possible explanations: - Apache gets mixed-up with it's connections, sending data on wrong connections (could it be possible!!!), - or the map image filename created by Mapserver (in my case php-mapscript) is not really UNIQUE filenames, so one image gets could get cached by the browser and displayed back later if the map image filename is the same... I will, this morning, modify my php scripts to generate, from within php, a randomly generated kind-of-unique filename to see if it solves anything. I will also modify my app to send a bogus randomly-generated http-post parameter to trick the browser cache, and I will get back with my results... -- Bruno Gendron --- Tim Sutton a ?crit?: > Hi > > I am having a problem with mapserver (redhat 7.1 + > apache module + php) > where the server http threads for mapserver requests > run away and hog > all the processor time. This has been happening > using the cvs version > and ms3.4. This has only suddenly started happeining > so I am not sure > why? Any Ideas? > > Also, I have another problem: If I browse around on > one mapserver app > on my server, then change the url in the same > browser session to > another mapserver app, I get images from the first > app seemingly > randomly dumped into the second. Has anyone > encountered this? Another > wierd thing it does is when I am zooming in to the > map, a very > enlarged version of the scalebar suddenly gets > rendered in the > mapwindow?? > > Any thoughts on how to resolve these problems will > be greatly > appreciated. > > Regards > > Tim Sutton > ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Courrier : http://courrier.yahoo.fr From sutton_t at giug.net Mon Oct 29 06:39:49 2001 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 29 Oct 2001 14:39:49 +0000 (GMT) Subject: [mapserver-users] Runaway process and other wierdness In-Reply-To: <20011029141154.97923.qmail@web20706.mail.yahoo.com> Message-ID: Hi Thanks for th reply. I also suspected a caching problem for the image wierdness so I put in some php to send custom http headers that force a page to not be cached: //send headers to prevent this page being cached! header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified header ("Cache-Control: no-cache, must-revalidate");// HTTP/1.1 header ("Pragma:no-cache");// HTTP/1.0 This does not seem to solve the problem though. Does anyone have a prebuild ms3.4 php_mapscript.so built on RedHat 7.1 they could send me / point me to? I am supposed to be demoing the app I have made today and need a quick fix solution! I can't get ms3.4 to build on rh7.1 - I get a conftest unterminated command error. Many thanks Tim On Mon, 29 Oct 2001, Bruno Gendron wrote: > Hi Tim, hello everyone, > > I began having the same exact problems recently > (except from the scalebar bug), with ms3.5 (not cvs) > on Mandrake 8, Apache 1.3.X, php 4.0.5 and > php-mapscript. I'm not using the CGI version of > MapServer, only php-mapscript. > > >From my experiments, if php encounters any error while > a mapscript session is in progress (in my case, my php > script had a small warning, not fatal, error that was > catched by an error management routine), the http > thread does not terminate properly, leading in a > thread "leak". After I solved this error, the leak > ALMOST disappeared, although i cannot certify that > this was only a coding issue on my behalf. Could it be > a "keep-alive" problem with php or apache? > > Like you, I also get random map images from previous > requests appearing in my browser: even worse, other > users of the app sometimes get map images from each > other's requests! > > 2 possible explanations: > > - Apache gets mixed-up with it's connections, sending > data on wrong connections (could it be possible!!!), > > - or the map image filename created by Mapserver (in > my case php-mapscript) is not really UNIQUE filenames, > so one image gets could get cached by the browser and > displayed back later if the map image filename is the > same... > > I will, this morning, modify my php scripts to > generate, from within php, a randomly generated > kind-of-unique filename to see if it solves anything. > I will also modify my app to send a bogus > randomly-generated http-post parameter to trick the > browser cache, and I will get back with my results... > > -- > Bruno Gendron > > > --- Tim Sutton a ?crit?: > Hi > > > > I am having a problem with mapserver (redhat 7.1 + > > apache module + php) > > where the server http threads for mapserver requests > > run away and hog > > all the processor time. This has been happening > > using the cvs version > > and ms3.4. This has only suddenly started happeining > > so I am not sure > > why? Any Ideas? > > > > Also, I have another problem: If I browse around on > > one mapserver app > > on my server, then change the url in the same > > browser session to > > another mapserver app, I get images from the first > > app seemingly > > randomly dumped into the second. Has anyone > > encountered this? Another > > wierd thing it does is when I am zooming in to the > > map, a very > > enlarged version of the scalebar suddenly gets > > rendered in the > > mapwindow?? > > > > Any thoughts on how to resolve these problems will > > be greatly > > appreciated. > > > > Regards > > > > Tim Sutton > > > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Courrier : http://courrier.yahoo.fr > From morissette at dmsolutions.ca Mon Oct 29 06:53:15 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 29 Oct 2001 09:53:15 -0500 Subject: [mapserver-users] Runaway process and other wierdness References: <20011029141154.97923.qmail@web20706.mail.yahoo.com> Message-ID: <3BDD6D5B.83E6BA67@dmsolutions.ca> Tim, Bruno, I also encountered similar runaway process problems with the Perl MapScript recently but never found the root of the problem. Since you guys also get this with PHP, then I would I suspect that MapServer (the core) may do something that confuses multithread environments (Perl or PHP modules)... but that's just a guess... I'm really not sure about that. I've filed a bug about this in bugzilla and we should continue the discussion and investigation of this bug there: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=66 About the random map/scalebar problem, it may well be a different issue, either related to the way the "maybe-not-so-unique" image filenames are built by the PHP module, to something being done wrong in the PHP module, or to some static variables (???) somewhere in MapServer that would screw things up in multithread environments. So I filed this as a separate bug, and the same way we should continue the discussion/investigation there: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=67 Bruno, can you please confirm that you get this with PHP4 as an apache module? I'll see if I can reproduce the problems here, but if you can provide sample scripts that reproduce them then that would help a lot. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Bruno Gendron wrote: > > Hi Tim, hello everyone, > > I began having the same exact problems recently > (except from the scalebar bug), with ms3.5 (not cvs) > on Mandrake 8, Apache 1.3.X, php 4.0.5 and > php-mapscript. I'm not using the CGI version of > MapServer, only php-mapscript. > > >From my experiments, if php encounters any error while > a mapscript session is in progress (in my case, my php > script had a small warning, not fatal, error that was > catched by an error management routine), the http > thread does not terminate properly, leading in a > thread "leak". After I solved this error, the leak > ALMOST disappeared, although i cannot certify that > this was only a coding issue on my behalf. Could it be > a "keep-alive" problem with php or apache? > > Like you, I also get random map images from previous > requests appearing in my browser: even worse, other > users of the app sometimes get map images from each > other's requests! > > 2 possible explanations: > > - Apache gets mixed-up with it's connections, sending > data on wrong connections (could it be possible!!!), > > - or the map image filename created by Mapserver (in > my case php-mapscript) is not really UNIQUE filenames, > so one image gets could get cached by the browser and > displayed back later if the map image filename is the > same... > > I will, this morning, modify my php scripts to > generate, from within php, a randomly generated > kind-of-unique filename to see if it solves anything. > I will also modify my app to send a bogus > randomly-generated http-post parameter to trick the > browser cache, and I will get back with my results... > > -- > Bruno Gendron > > --- Tim Sutton a ?crit : > Hi > > > > I am having a problem with mapserver (redhat 7.1 + > > apache module + php) > > where the server http threads for mapserver requests > > run away and hog > > all the processor time. This has been happening > > using the cvs version > > and ms3.4. This has only suddenly started happeining > > so I am not sure > > why? Any Ideas? > > > > Also, I have another problem: If I browse around on > > one mapserver app > > on my server, then change the url in the same > > browser session to > > another mapserver app, I get images from the first > > app seemingly > > randomly dumped into the second. Has anyone > > encountered this? Another > > wierd thing it does is when I am zooming in to the > > map, a very > > enlarged version of the scalebar suddenly gets > > rendered in the > > mapwindow?? > > > > Any thoughts on how to resolve these problems will > > be greatly > > appreciated. > > > > Regards > > > > Tim Sutton > > > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Courrier : http://courrier.yahoo.fr From bruno_gendron at yahoo.com Mon Oct 29 07:06:47 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Mon, 29 Oct 2001 16:06:47 +0100 (CET) Subject: [mapserver-users] Runaway process and other wierdness In-Reply-To: <3BDD6D5B.83E6BA67@dmsolutions.ca> Message-ID: <20011029150647.11733.qmail@web20706.mail.yahoo.com> Bonjour Daniel, I confirm that I get my errors with PHP as an Apache module (php4.0.4pl1) on Apache Advanced Extranet Server/1.3.19 (Linux-Mandrake)... I will keep you informed with my experiments, particularly on the unique filename issue! Thanks, -- Bruno --- Daniel Morissette a ?crit?: > Tim, Bruno, > > I also encountered similar runaway process problems > with the Perl > MapScript recently but never found the root of the > problem. Since you > guys also get this with PHP, then I would I suspect > that MapServer (the > core) may do something that confuses multithread > environments (Perl or > PHP modules)... but that's just a guess... I'm > really not sure about > that. > > I've filed a bug about this in bugzilla and we > should continue the > discussion and investigation of this bug there: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=66 > > About the random map/scalebar problem, it may well > be a different issue, > either related to the way the "maybe-not-so-unique" > image filenames are > built by the PHP module, to something being done > wrong in the PHP > module, or to some static variables (???) somewhere > in MapServer that > would screw things up in multithread environments. > So I filed this as a > separate bug, and the same way we should continue > the > discussion/investigation there: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=67 > > Bruno, can you please confirm that you get this with > PHP4 as an apache > module? > > I'll see if I can reproduce the problems here, but > if you can provide > sample scripts that reproduce them then that would > help a lot. > > -- > ------------------------------------------------------------ > Daniel Morissette > morissette at dmsolutions.ca > DM Solutions Group > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, > because if > you enjoy it today you can do it again > tomorrow. > ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Courrier : http://courrier.yahoo.fr From morissette at dmsolutions.ca Mon Oct 29 07:04:00 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 29 Oct 2001 10:04:00 -0500 Subject: [mapserver-users] Runaway process and other wierdness References: Message-ID: <3BDD6FE0.8A4213B0@dmsolutions.ca> Tim Sutton wrote: > > This does not seem to solve the problem though. Does anyone have a > prebuild ms3.4 php_mapscript.so built on RedHat 7.1 they could send > me / point me to? I am supposed to be demoing the app I have made > today and need a quick fix solution! I can't get ms3.4 to build on > rh7.1 - I get a conftest unterminated command error. > Tim, I am 95% sure that those problems are specific to using MapScript with PHP as an Apache module so I don't think that getting a prebuilt php_mapscript.so will make a difference. A quick workaround that should resolve all your problems (until we have a proper fix) might be to run PHP as a CGI instead of as a module. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sutton_t at giug.net Mon Oct 29 07:39:37 2001 From: sutton_t at giug.net (Tim Sutton) Date: Mon, 29 Oct 2001 15:39:37 +0000 (GMT) Subject: [mapserver-users] Runaway process and other wierdness: In-Reply-To: <3BDD6FE0.8A4213B0@dmsolutions.ca> Message-ID: Hi again One other thing I should mention is that up until friday, my app did not do this. This over the weekend, I updated my cvs copy and the problems started. The strange thing is that I checked out a copy of cvs using cvs co -D "last week" mapserver Expecting to get the version before the bug mainfested itself, but it did not get rid of it. Perhaps that may help a bit, I dont know. Is there some documentation on building PHP as a cgi somewhere abouts? How much recoding would I need to do to make my code work agains cgi-php (if any)? Many thanks Tim Sutton On Mon, 29 Oct 2001, Daniel Morissette wrote: > Tim Sutton wrote: > > > > This does not seem to solve the problem though. Does anyone have a > > prebuild ms3.4 php_mapscript.so built on RedHat 7.1 they could send > > me / point me to? I am supposed to be demoing the app I have made > > today and need a quick fix solution! I can't get ms3.4 to build on > > rh7.1 - I get a conftest unterminated command error. > > > > Tim, > > I am 95% sure that those problems are specific to using MapScript with > PHP as an Apache module so I don't think that getting a prebuilt > php_mapscript.so will make a difference. A quick workaround that should > resolve all your problems (until we have a proper fix) might be to run > PHP as a CGI instead of as a module. > > From teb at mallit.fr.umn.edu Mon Oct 29 10:09:47 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 29 Oct 2001 12:09:47 -0600 (CST) Subject: [mapserver-users] dynamic layer with color depending of an expression (under PHP) (FWD) Message-ID: <200110291809.MAA25782@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "CATHIGNOL, Frederic" To: "'mapserver-info at lists.gis.umn.edu'" Subject: dynamic layer with color depending of an expression (under PHP) Date: Mon, 29 Oct 2001 10:53:50 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mallit.fr.umn.edu id DAA25417 Hello; 2nd bid ! In fact I think that my first mail has not been practical to read with too much information. I try to re-ask my question with a new look ! : I have a problem to declare dynamic layer with color depending of expression under php mapscript see below. Please could you help me with an example... I have tested first with a .map file : It works (you will see the code here after) and then with a PHP script wich does not work (code is given after). At execution of the script, it does not display the layer and if I want to redraw the page, it has an error : (I think that mapserver crashed, and I need to restart the apache server whith mapserver). Warning: MapServer Error in msLoadMap(): (?):(0) in c:\my program\easyphp\www\projet1\pactes-ess\htdocs\mapserv.phtml on line 60 (Rmq line 60 : $gpoMap = ms_newMapObj("pactes-def.map"); ) Fatal error: Failed to open map file pactes-def.map in c:\my program\easyphp\www\projet1\pactes-ess\htdocs\mapserv.phtml on line 60 If you are curious, you have also the object results (in annexes) for both cases (.map, and php script). I) .MAP CODE : LAYER NAME numdep STATUS ON DATA LIMITE_ADMINISTRATIVE TYPE LINE CLASSITEM "NATURE" CLASS EXPRESSION "Limite c?ti?re" COLOR 255 0 0 # dummy color END CLASS EXPRESSION "Limite de d?partement" COLOR 0 255 0 # dummy color END CLASS EXPRESSION "Limite de r?gion" COLOR 0 0 255 # dummy color END CLASS EXPRESSION "Limite frontali?re" COLOR 0 255 255 # dummy color END END II) PHP script CODE $layer = ms_newLayerObj($gpoMap); $layer->set("name","LIMITE_ADMINISTRATIVE"); $layer->set("type", MS_LAYER_LINE); $layer->set("data", "lay2"); $layer->setMetaData("DESCRIPTION","Limites administratives des d?partements"); $layer->set("classitem", "NATURE"); $fredclass = ms_newClassObj($layer); $fredclass->set("name","lay2o001"); $fredclass->setexpression("Limite de d?partement"); $fredclass->set("color",10); /* Corresponding to a new color : 128,128,128 */ $fredclass = ms_newClassObj($layer); $fredclass->set("name","lay2o002"); $fredclass->setexpression("Limite c?ti?re"); $fredclass->set("color",11); /* Corresponding to a new color : 64,0,128 */ $fredclass = ms_newClassObj($layer); $fredclass->set("name","lay2o003"); $fredclass->setexpression("Fronti?re internationale"); $fredclass->set("color",12); /* Corresponding to a new color : 128,128,64 */ $fredclass = ms_newClassObj($layer); $fredclass->set("name","lay2o004"); $fredclass->setexpression("Limite de r?gion"); $fredclass->set("color",13); /* Corresponding to a new color : 64,128,128 */ MANY THANKS FOR YOUR HELP F.CATHIGNOL ------------------------------------------------------------------------- ANNEXE I : The result object after execution is (by a print_r() of the variable) with a .MAP file: layer Object ( [_handle_] => Resource id #28 [_map_handle_] => Resource id #8 [numclasses] => 4 [index] => 1 [status] => 1 [classitem] => NATURE [name] => numdep [group] => [data] => LIMITE_ADMINISTRATIVE [type] => 1 [tolerance] => 3 [toleranceunits] => 6 [symbolscale] => -1 [minscale] => -1 [maxscale] => -1 [labelminscale] => -1 [labelmaxscale] => -1 [maxfeatures] => -1 [offsite] => -1 [transform] => 1 [labelcache] => 1 [postlabelcache] => 0 [labelitem] => [labelsizeitem] => [labelangleitem] => [tileitem] => location [tileindex] => [header] => [footer] => [connection] => [connectiontype] => 1 [filteritem] => ) class Object ( [_handle_] => Resource id #29 [_layer_handle_] => Resource id #28 [name] => [type] => 1 [color] => 4 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #30 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) class Object ( [_handle_] => Resource id #31 [_layer_handle_] => Resource id #28 [name] => [type] => 1 [color] => 5 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #32 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) class Object ( [_handle_] => Resource id #33 [_layer_handle_] => Resource id #28 [name] => [type] => 1 [color] => 6 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #34 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) class Object ( [_handle_] => Resource id #35 [_layer_handle_] => Resource id #28 [name] => [type] => 1 [color] => 7 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #36 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) ANNEXE II : (result with PHP script) At execution it gives with a print_r of the objects : layer Object ( [_handle_] => Resource id #70 [_map_handle_] => Resource id #8 [numclasses] => 4 [index] => 5 [status] => 1 [classitem] => NATURE [name] => lay2 [group] => [data] => LIMITE_ADMINISTRATIVE [type] => 1 [tolerance] => 3 [toleranceunits] => 6 [symbolscale] => -1 [minscale] => -1 [maxscale] => -1 [labelminscale] => -1 [labelmaxscale] => -1 [maxfeatures] => -1 [offsite] => -1 [transform] => 1 [labelcache] => 1 [postlabelcache] => 0 [labelitem] => [labelsizeitem] => [labelangleitem] => [tileitem] => location [tileindex] => [header] => [footer] => [connection] => [connectiontype] => 1 [filteritem] => ) class Object ( [_handle_] => Resource id #71 [_layer_handle_] => Resource id #70 [name] => lay2o001 [type] => 1 [color] => 10 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #72 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) class Object ( [_handle_] => Resource id #73 [_layer_handle_] => Resource id #70 [name] => lay2o002 [type] => 1 [color] => 11 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #74 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) class Object ( [_handle_] => Resource id #75 [_layer_handle_] => Resource id #70 [name] => lay2o003 [type] => 1 [color] => 12 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #76 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) class Object ( [_handle_] => Resource id #77 [_layer_handle_] => Resource id #70 [name] => lay2o004 [type] => 1 [color] => 13 [backgroundcolor] => -1 [outlinecolor] => -1 [overlaycolor] => -1 [overlaybackgroundcolor] => -1 [overlayoutlinecolor] => -1 [symbol] => 0 [size] => 1 [minsize] => 1 [maxsize] => 100 [symbolname] => [overlaysymbol] => -1 [overlaysize] => 1 [overlayminsize] => 1 [overlaymaxsize] => 100 [overlaysymbolname] => [template] => [label] => label Object ( [_handle_] => Resource id #78 [font] => [type] => 1 [color] => 1 [outlinecolor] => -1 [shadowcolor] => -1 [shadowsizex] => 1 [shadowsizey] => 1 [backgroundcolor] => -1 [backgroundshadowcolor] => -1 [backgroundshadowsizex] => 1 [backgroundshadowsizey] => 1 [size] => -1 [minsize] => 4 [maxsize] => 256 [position] => 8 [offsetx] => 0 [offsety] => 0 [angle] => 0 [autoangle] => 0 [buffer] => 0 [antialias] => -1 [wrap] => 10 [minfeaturesize] => -1 [autominfeaturesize] => 0 [mindistance] => -1 [partials] => 1 [force] => 0 ) ) As you can see it is nearly identical (colors changed)... ------------- End Forwarded Message ------------- From Rich at GreenwoodMap.com Mon Oct 29 11:26:07 2001 From: Rich at GreenwoodMap.com (Richard Greenwood) Date: Mon, 29 Oct 2001 12:26:07 -0700 Subject: [mapserver-users] [nr] and [nl] in 3.5 Message-ID: <5.1.0.14.0.20011029122417.00b0f250@mail.GreenwoodMap.com> Hello Listers, I can't get [nr] or [nl] to work in 3.5. I've tried various builds under NT and Linux. Is it just me? Thanks, Rich Richard W. Greenwood, PLS Greenwood Mapping, Inc. Rich at GreenwoodMap.com (307) 733-0203 http://www.GreenwoodMap.com From jimburnett at ntelos.net Mon Oct 29 12:30:42 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Mon, 29 Oct 2001 15:30:42 -0500 Subject: [mapserver-users] small query problem PHP Message-ID: <007801c160b8$94cbfcd0$2f01a8c0@jbwin2000> I am using this function for selecting, and highlighting parcels, however when I do select a parcel, the hole map seems to shift down, and to the right a little. Not sure who wrote this function though. Any sugestions? php_mapscript 2 month old build of mapserver_nightly -jb- session_start(); dl("php_mapscript.so"); require 'config.php'; $dfMinX = $CUREXTENT[minx]; $dfMinY = $CUREXTENT[miny]; $dfMaxX = $CUREXTENT[maxx]; $dfMaxY = $CUREXTENT[maxy]; $mapObj = ms_newMapObj("$mapfilePath/$mapfile.map"); ######Loop through to display checkboxes for layers, loop the lay_name array and lay_stats arrays### for ($i = 0; $i <= ( count ($lay_name_array) -1 ); $i++) { $layerObj = $mapObj->getLayerByName($lay_name_array[$i]); $layerObj->set("status",$lay_status_array[$i]); #$layerObj->free(); } ######END##################################################### $mapObj->setExtent($CUREXTENT[minx],$CUREXTENT[miny],$CUREXTENT[maxx],$CUREXTENT[maxy]); $nClickGeoX = GMapPix2Geo(intval($map_x), 0, $width, $dfMinX, $dfMaxX, 0); $nClickGeoY = GMapPix2Geo(intval($map_y), 0, $height, $dfMinY, $dfMaxY, 1); $ptClicked = ms_newPointObj(); $ptClicked->setXY($nClickGeoX, $nClickGeoY); $queryObj = $mapObj->queryByPoint( $ptClicked,MS_SINGLE,0 ); $gbShowQueryResults = TRUE; #print" $map $map_x $map_y $dataPath \n"; $img = $mapObj->drawQuery(); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); header("content-type: image/png"); $img->saveImage("",MS_PNG,0,0, 100); function GMapPix2Geo($nPixPos, $dfPixMin, $dfPixMax, $dfGeoMin, $dfGeoMax, $nInversePix) { $dfWidthGeo = $dfGeoMax - $dfGeoMin; $dfWidthPix = $dfPixMax - $dfPixMin; $dfPixToGeo = $dfWidthGeo / $dfWidthPix; if (!$nInversePix) $dfDeltaPix = $nPixPos - $dfPixMin; else $dfDeltaPix = $dfPixMax - $nPixPos; $dfDeltaGeo = $dfDeltaPix * $dfPixToGeo; $dfPosGeo = $dfGeoMin + $dfDeltaGeo; return ($dfPosGeo); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From trem at socialchange.net.au Mon Oct 29 21:22:45 2001 From: trem at socialchange.net.au (Trem Stamp) Date: Tue, 30 Oct 2001 16:22:45 +1100 Subject: [mapserver-users] Incorrect mime type for WMS request in mapserv3.5 Message-ID: <01cc01c16102$ea7660e0$74010a0a@socialchange.net.au> Hi, I've been playing with mapserv 3.5 on Windows NT using Apache and the latest nightly build. Having created a test map file, I am able to see the capabilities document okay, and using a straight forward mapserv request am able to retrieve a gif image. However, if I change the syntax to a wms request for the same map, then I get a download trigger happening (in both netscape and ie) prompting for download of a file type: image/image/gif I know it is mean't tohave a mime type for image/gif. Does anyone know why this may be ocuuring when I use the wms syntax for a map request? Thanking you in advance. Cheers, Trem -------------- next part -------------- An HTML attachment was scrubbed... URL: From perik at azimuth.nl Mon Oct 29 23:24:38 2001 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 30 Oct 2001 08:24:38 +0100 Subject: [mapserver-users] small query problem PHP In-Reply-To: <007801c160b8$94cbfcd0$2f01a8c0@jbwin2000> Message-ID: <5.1.0.14.2.20011030081821.00a26c00@localhost> An HTML attachment was scrubbed... URL: From perik at azimuth.nl Mon Oct 29 23:29:59 2001 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 30 Oct 2001 08:29:59 +0100 Subject: [mapserver-users] Anyone used the Rosa applet In-Reply-To: <007801c160b8$94cbfcd0$2f01a8c0@jbwin2000> Message-ID: <5.1.0.14.2.20011030082530.00a26990@localhost> Hello all, i was wondering if there are any other examples of the Rosa applet besides GMAP from the mapserver gallery. Or have i been looking at the wrong example and is there an even more interesting applet out there. Searching the web on Rosa gives very little results. Geotools is a nice alternative, but i prefer the interface of the Rosa over the one from Geotools. Thanks, Erwin From guillaume.sueur at khi2.fr Tue Oct 30 02:36:29 2001 From: guillaume.sueur at khi2.fr (Guillaume Sueur) Date: Tue, 30 Oct 2001 11:36:29 +0100 Subject: [mapserver-users] Point size Message-ID: <000d01c1612e$bf445180$251fa8c0@khi2.fr> Hi, My question is simple. I hope the answer is too... How to set the size of points on a point layer without using a symbol ? When I use a symbol, I can't hilite them in a selection, and when I don't use symbol, I only display a very little dot. Can you help ? Thanks Guillaume Sueur From Horst.Duester at bd.so.ch Tue Oct 30 03:54:42 2001 From: Horst.Duester at bd.so.ch (=?ISO-8859-1?Q?D=FCster_Horst?=) Date: Tue, 30 Oct 2001 12:54:42 +0100 Subject: [mapserver-users] Compilation error tru64 5.1 with gcc 3.02 Message-ID: <5B025B1F39D6D4119F5700508BEEEC662DF96C@srsofaioi4546.ktso.ch> I try to compile the mapserver sources and the compile process crashes with the following error message: cd gdft; make; cd .. gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_2 -I/usr/local/src/mapserver/gd-1.2 -I/usr/local/src/mapserver/gdft -I/usr/local/include/freetype -I/usr/local/include -I/usr/local/include shp2img.o -L. -lmap -L/usr/local/src/mapserver/gd-1.2 -lgd -L/usr/local/src/mapserver/gdft -lgdft -L/usr/local/lib -lttf -L/usr/local/lib -ltiff -L/usr/local/lib -ljpeg -lm -o shp2img /usr/bin/ld: Unresolved: __gxx_personality_v0 collect2: ld returned 1 exit status *** Exit 1 Stop. My system: alpha tru64 5.1 gcc 3.02 with g++ Mapserver 3.4 Can anyone outside help me???? Regards Horst From morissette at dmsolutions.ca Tue Oct 30 05:32:35 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 30 Oct 2001 08:32:35 -0500 Subject: [mapserver-users] Incorrect mime type for WMS request in mapserv3.5 References: <01cc01c16102$ea7660e0$74010a0a@socialchange.net.au> Message-ID: <3BDEABF3.41C367EA@dmsolutions.ca> > Trem Stamp wrote: > > However, if I change the syntax to a wms request for the same map, > then I get a download trigger happening (in both netscape and > ie) prompting for download of a file type: > > image/image/gif > > I know it is mean't tohave a mime type for image/gif. Does anyone > know why this may be ocuuring when I use the wms syntax for a map > request? > Trem, A fix for this has been committed to CVS on 2001/10/19... I checked this morning's nightly build on the UMN website and it does contain the latest version of mapwms.c with this fix (CVS version 1.39). You may want to try compiling again with a 'make clean' and make sure you really got the correct version of mapwms.c. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Tue Oct 30 05:56:14 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 30 Oct 2001 08:56:14 -0500 Subject: [mapserver-users] getting min/max extents Message-ID: <004101c1614a$a41b95f0$2f01a8c0@jbwin2000> Is there a small application that can tell me the min and max extents for a shape file? -jb -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at mediaone.net Tue Oct 30 06:44:21 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Tue, 30 Oct 2001 09:44:21 -0500 Subject: [mapserver-users] URL Construction Doc? Message-ID: <3BDEBCC5.B71AE4B0@mediaone.net> Hi all, I can't find a document that tells me what parameters can be passed to mapserver via GET/POST and what they do. Can someone point me at it please. Thanks, -Steve From mcilhagga at dmsolutions.ca Tue Oct 30 06:58:41 2001 From: mcilhagga at dmsolutions.ca (Dave McIlhagga) Date: Tue, 30 Oct 2001 09:58:41 -0500 Subject: [mapserver-users] Anyone used the Rosa applet References: <5.1.0.14.2.20011030082530.00a26990@localhost> Message-ID: <3BDEC021.ADAAF09E@dmsolutions.ca> Hi Erwin, You can see a couple of examples of the Rosa Applet in action at: http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml http://spans.gscc.nrcan.gc.ca:80/gscnci/coalfields/estevan/index.html Unfortunately, no source code is available for these applications. Dave "Azimuth, Erwin Perik" wrote: > > Hello all, > > i was wondering if there are any other examples of the Rosa applet besides > GMAP from the mapserver gallery. > > Or have i been looking at the wrong example and is there an even more > interesting applet out there. > > Searching the web on Rosa gives very little results. Geotools is a nice > alternative, but i prefer the interface of the Rosa over the one from Geotools. > > Thanks, > > Erwin -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca ---------------------------- Innovative Spatial Solutions ---------------------------- EMail : McIlhagga at DMSolutions.ca Phone : 613-565-5056 Cell : 613-261-3913 Fax : 613-565-0925 Address : 116 Lisgar St., Suite 400, Ottawa, Ontario K2P 0C2 From perik at azimuth.nl Tue Oct 30 07:14:47 2001 From: perik at azimuth.nl (Azimuth, Erwin Perik) Date: Tue, 30 Oct 2001 16:14:47 +0100 Subject: [mapserver-users] Anyone used the Rosa applet In-Reply-To: <3BDEC021.ADAAF09E@dmsolutions.ca> References: <5.1.0.14.2.20011030082530.00a26990@localhost> Message-ID: <5.1.0.14.2.20011030160402.00a0a170@localhost> Dave, thanks. Very nice examples. Yes, was also hoping for some source or examples. But it's a good lead to expanding my current projects. Greetings, Erwin At 09:58 30-10-01 -0500, Dave McIlhagga wrote: >Hi Erwin, > >You can see a couple of examples of the Rosa Applet in action at: > >http://www.sis.ec.gc.ca/msapps/ec_species/htdocs/ec_species_e.phtml >http://spans.gscc.nrcan.gc.ca:80/gscnci/coalfields/estevan/index.html > >Unfortunately, no source code is available for these applications. > >Dave > > >"Azimuth, Erwin Perik" wrote: > > > > Hello all, > > > > i was wondering if there are any other examples of the Rosa applet besides > > GMAP from the mapserver gallery. > > > > Or have i been looking at the wrong example and is there an even more > > interesting applet out there. > > > > Searching the web on Rosa gives very little results. Geotools is a nice > > alternative, but i prefer the interface of the Rosa over the one from > Geotools. > > > > Thanks, > > > > Erwin > >-- >Dave McIlhagga >President, DM Solutions Group > >http://www.dmsolutions.ca >---------------------------- >Innovative Spatial Solutions >---------------------------- > >EMail : McIlhagga at DMSolutions.ca >Phone : 613-565-5056 >Cell : 613-261-3913 >Fax : 613-565-0925 >Address : 116 Lisgar St., > Suite 400, > Ottawa, Ontario > K2P 0C2 ================= Azimuth Geodetic Koldingweg 8 9723 HK Groningen tel. 050-5493454 fax. 050-5497217 ================= www.azimuth.nl perik at azimuth.nl ================= From sutton_t at giug.net Tue Oct 30 07:17:24 2001 From: sutton_t at giug.net (Tim Sutton) Date: Tue, 30 Oct 2001 15:17:24 +0000 (GMT) Subject: [mapserver-users] getting min/max extents In-Reply-To: <004101c1614a$a41b95f0$2f01a8c0@jbwin2000> Message-ID: Hi If you are running linux and you have installed the shape class (I think you can get it at either www.remotesensing.org or www.opengis.org) you can use the 'shpdump' command to get the 'universe polygon' for a shapefile: shpdump myfile.shp |head Cheers Tim On Tue, 30 Oct 2001, Jim Burnett wrote: > Is there a small application that can tell me the min and max extents for a shape file? > > -jb > > From Jean-Francois.Doyon at ccrs.nrcan.gc.ca Tue Oct 30 07:38:27 2001 From: Jean-Francois.Doyon at ccrs.nrcan.gc.ca (Doyon, Jean-Francois) Date: Tue, 30 Oct 2001 10:38:27 -0500 Subject: [mapserver-users] URL Construction Doc? Message-ID: <7CDD7B94357FD5119E800002A537C46E22FC96@s5-ccr-r1.ccrs.nrcan.gc.ca> Here you go: http://mapserver.gis.umn.edu/cgi.html It's on the documentation page you know :) J.F. -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at mediaone.net] Sent: Tuesday, October 30, 2001 9:44 AM To: MapServer List Subject: [mapserver-users] URL Construction Doc? Hi all, I can't find a document that tells me what parameters can be passed to mapserver via GET/POST and what they do. Can someone point me at it please. Thanks, -Steve From gispmpf at zipmail.com.br Tue Oct 30 08:02:29 2001 From: gispmpf at zipmail.com.br (gispmpf at zipmail.com.br) Date: Tue, 30 Oct 2001 16:02:29 +0000 Subject: [mapserver-users] =?iso-8859-1?Q?empty=20polygon?= Message-ID: <3BD4D5750000E0D5@www.zipmail.com.br> Hello all I want know how can i get a symbol of a empty polygon . A symbol who just draw its lines and not solid. thanks Joao. ___________________________________________________________ http://www.zipmail.com.br O e-mail que vai aonde voc? est?. From morissette at dmsolutions.ca Tue Oct 30 08:05:27 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 30 Oct 2001 11:05:27 -0500 Subject: [mapserver-users] getting min/max extents References: <004101c1614a$a41b95f0$2f01a8c0@jbwin2000> Message-ID: <3BDECFC7.6DFF988F@dmsolutions.ca> > Jim Burnett wrote: > > Is there a small application that can tell me the min and max extents > for a shape file? > If you have OGR/GDAL installed on your system then the OGRINFO program can return you the extents of a layer. See the OGRINFO examples at http://mapserver.gis.umn.edu/doc/ogr-howto.html#ogrinfo Also, a getExtent() method has been added to the shapeFileObj class in MapScript version 3.5 (Perl or PHP)... so that's another option. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jimburnett at ntelos.net Tue Oct 30 08:36:43 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Tue, 30 Oct 2001 11:36:43 -0500 Subject: [mapserver-users] buffering Message-ID: <006201c16161$0f036fd0$2f01a8c0@jbwin2000> Anyone here do any buffering with MapServer? What I mean is running some sort of query that also queries with a buffer, returning other objects or parcels with-in a certain buffer. Here is a PHP example of what I have been working on. Please send me feedback. http://216.12.31.29:81/dev-igis/ -jb- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gmader at GeoAnalytics.com Tue Oct 30 09:21:19 2001 From: gmader at GeoAnalytics.com (Greg Mader) Date: Tue, 30 Oct 2001 11:21:19 -0600 Subject: [mapserver-users] Geocoding library Message-ID: Hi all, For a class project, I am going to try to build a simple geocoding library, using shapelib. My intent is this library could be used in Mapserver to return an XY coordinate from a standard address. Would this be useful to others? Does anybody have any advice or ideas? It will be a simple implementation, and not very sophisticated, but I will release the source to other, so we could improve it together. Thanks for the help on my Mapserver endeavors, Greg Mader From klehr1 at tampabay.rr.com Tue Oct 30 09:52:50 2001 From: klehr1 at tampabay.rr.com (klehr1 at tampabay.rr.com) Date: Tue, 30 Oct 2001 12:52:50 -0500 Subject: [mapserver-users] getting min/max extents References: <004101c1614a$a41b95f0$2f01a8c0@jbwin2000> <3BDECFC7.6DFF988F@dmsolutions.ca> Message-ID: <03c201c1616b$b28f1140$0300a8c0@tampabay.rr.com> Also in the demo there's a perl script showextent.pl I believe works as well. Attached here. You have to compiled the perl stuff. I modified two lines in the script to so that you use is ./showextent.pl ----- Original Message ----- From: Daniel Morissette To: Jim Burnett Cc: Sent: Tuesday, October 30, 2001 11:05 AM Subject: Re: [mapserver-users] getting min/max extents > > Jim Burnett wrote: > > > > Is there a small application that can tell me the min and max extents > > for a shape file? > > > > If you have OGR/GDAL installed on your system then the OGRINFO program > can return you the extents of a layer. See the OGRINFO examples at > http://mapserver.gis.umn.edu/doc/ogr-howto.html#ogrinfo > > Also, a getExtent() method has been added to the shapeFileObj class in > MapScript version 3.5 (Perl or PHP)... so that's another option. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -------------- next part -------------- A non-text attachment was scrubbed... Name: showextent.pl Type: application/octet-stream Size: 711 bytes Desc: not available URL: From pramsey at refractions.net Tue Oct 30 10:35:03 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Tue, 30 Oct 2001 10:35:03 -0800 Subject: [mapserver-users] Geocoding library References: Message-ID: <3BDEF2D7.D290163@refractions.net> There are a couple of important things to remember: 1 - The addresses provided by the user and the addresses in your street network will never ever match. 2 - Your street network does not have the same attribution rules as other people's street networks. The general consequence of (1) is that your geocoder will have lots of rules to map special cases down to a common set of values. (St, Str, Street => Street) as well as some probabilistic matching for common misspellings (Hill St ~= Hills St). The general consequence of (2) is that in (1) you should make your rules configurable. Your common value for street may be "Street" but mine might be "St" so that should be configurable so that I can use your geocoding software with my road network. The other common problem is a mismatch in how street name schemas encode modifiers. For example, "1423 N Smith Rd" versus "1423 Smith Rd N". A common attribute breakdown is NUMBER|PREFIX|NAME|TYPE|SUFFIX. You then need to be able to break arbitrary strings into the right categories before geocoding. It's a detailed problem :) Have fun! Greg Mader wrote: > For a class project, I am going to try to build a simple geocoding library, > using shapelib. My intent is this library could be used in Mapserver to > return an XY coordinate from a standard address. > > Would this be useful to others? Does anybody have any advice or ideas? It > will be a simple implementation, and not very sophisticated, but I will > release the source to other, so we could improve it together. > > Thanks for the help on my Mapserver endeavors, -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From steve.lime at dnr.state.mn.us Tue Oct 30 11:03:36 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 30 Oct 2001 13:03:36 -0600 Subject: [mapserver-users] 3.5 changes and so on... Message-ID: Greetings folks: 3.5 is just about ready for primetime and tonite I'll commit the last set of changes that affect map files. If you use the nightly build please take note: 1) added new layer type, CIRCLE. Circles are defined by 2 points, a center point and a point on the edge of the circle. Any datasource can produce these features. The limitation is that a circle feature must contain exactly 2 points. At the moment CIRCLE layers can only be drawn and not queried. This will change soon. They also can't be annotated, mainly cause I'm not sure how I want to do it. I think the should be annotated on the edge of the circle rather than in the center of the displayed area. Comments? 2) the POLYLINE layer type is gone. You now control fills and outlines for POLYGON and CIRCLE features using class values. So to create a polygon with no fill and a thick border use something like: CLASS SYMBOL 'circle' SIZE 5 OUTLINECOLOR 255 255 0 END OUTLINECOLOR with no COLOR gives you the same effect as the old POLYLINE type. To fill a polygon AND have a thick outline use: CLASS COLOR 255 0 0 OVERLAYSYMBOL 'circle' OVERLAYSIZE 5 OVERLAYOUTLINECOLOR 255 255 0 END This was not possible before with a single layer definition. You can even do dashed outlines of a hashed fill with a single class. 3) the SYMBOL and LABEL parameters that took no arguments (i.e. FILLED and ANTIALIAS) now require them. This was done simply to be consistant with everything else. Both parameters take true or false as arguments. These changes have been document in the 3.5 mapfile reference. I appologize for the edits you'll have to make but these are necessary changes. I'll change the release designation for 3.5 from alpha to beta tonite as well. Other notes: Stay away from Freetype 2. The GD interface to it doesn't seem nearly as good as the one for Freetype 1. I've seen all sorts of weirdness with font baseline alignment with rotated text and corruption of images when ANTILIASing is turned off. Freetype 1 does not exhibit these problems. I don't think the problem is Freetype itself, rather the GD interface. I hope to have patched versions of both gd/freetype support code available soon. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Tue Oct 30 21:27:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 30 Oct 2001 23:27:47 -0600 Subject: [mapserver-users] Circle layers... Message-ID: Oops. Made a mistake earlier. A circle must be defined by a a minimum bounding rectangle. That is, 2 points that define the smalled square that can contain it. We have to use this definition so that extent based searches of shapefiles etc... identify these features as candidates for drawing or query. The method metioned in the previous email would result in misses in many cases. (J.F. Could you update the mapfile doc?) Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From jef.mony at free.fr Wed Oct 31 00:33:16 2001 From: jef.mony at free.fr (=?ISO-8859-1?Q?Jean-Fran=E7ois_MONY?=) Date: Wed, 31 Oct 2001 09:33:16 +0100 (MET) Subject: [mapserver-users] ms_newLineObj() Message-ID: <1004517196.3bdfb74c808e3@imp3-1.free.fr> I have a little problem with the ms_newLineObj() command. As you can see below I create some points and the goal is to make a polygon with those points, then I create a line. With the print_r function I'm sure that the points are well created, but I can't create the line and I don't understand why. If somebody have an idea. I use mapserver 3.5 (nightly build from the begining of september) with php 4.05. Thanks, Jef CODE ===== "); $ligne = ms_newLineObj(); for ($i=1; $i<$polyarray[0]+1;$i++) { $j=2*$i-1; $k=2*$i; $point=ms_newPointObj(); $point->setXY($polyarray[$j], $polyarray[$k]); print_r($point); print("
"); $ligne->add($point); print_r($ligne); print("
"); } $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $shape->add($ligne); print_r($shape); print("
"); ?> RESULT ======= 4;907249;2505661;909472;2486354;934669;2483012;919847;2504547; point Object ( [_handle_] => Resource id #2 [x] => 907249 [y] => 2505661 ) line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) point Object ( [_handle_] => Resource id #3 [x] => 909472 [y] => 2486354 ) line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) point Object ( [_handle_] => Resource id #4 [x] => 934669 [y] => 2483012 ) line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) point Object ( [_handle_] => Resource id #5 [x] => 919847 [y] => 2504547 ) line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) shape Object ( [_handle_] => Resource id #6 [numlines] => 0 [type] => 2 [index] => -1 [tileindex] => -1 [classindex] => 0 [numvalues] => 0 [text] => [bounds] => rect Object ( [_handle_] => Resource id #7 [minx] => -1 [miny] => -1 [maxx] => -1 [maxy] => -1 ) ) From v at w.cl Wed Oct 31 01:07:02 2001 From: v at w.cl (Vinko Vrsalovic B.) Date: Wed, 31 Oct 2001 06:07:02 -0300 (CLST) Subject: [mapserver-users] new ShapefileObj makes apache core dump In-Reply-To: <3BDAEAFD.EF7D40D5@dmsolutions.ca> from "Jeff McKenna" at oct 27, 2001 01:12:29 Message-ID: <20011031090702.00CC42299E@mail.selperchile.cl> but only when the filename is not valid. it makes little sense to pass a not valid filename, but it's not graceful that Apache crashes over it. ( Took me 4 hours to catch the damn mistake :-) ) The line: $shapefile = ms_newShapefileObj($file.".shp",-1); If $file.".shp" does not exist, apache SIGSEGV's. PHP 4.0.6, PHP/Mapscript 3.5 from a couple of weeks ago, apache 1.3.14 -- V. From Regina.Obe.PFD at ci.boston.ma.us Wed Oct 31 05:01:04 2001 From: Regina.Obe.PFD at ci.boston.ma.us (Obe, Regina DND\MIS) Date: Wed, 31 Oct 2001 08:01:04 -0500 Subject: [mapserver-users] PostGIS Question shp2pgsql Message-ID: Well I finally got Postgresql compiled and postgis compiled and installed but when I tried to load a shape file into my Postgres db using shp2pgsql I get this error 1836 STATUS_ACCESS_VIOLATION The number varies depending on which shape file I try to load so I assume that it is the position in the file in which it failed. Even when I try to just dump the shapefile to an sql text file I get this error. Not sure what I am doing wrong. I did get some compile errors, but everything seemed to work fine and can't remember the errors off-hand. My syntax is shp2pgsql -D lakespy2 lakespy2 test > lakespy2.sql The SQL file does get created, and has some Geodata - but seems to break in somewhere in the process. I was successful in running this for some shapefiles with full success (ran for a shapefile with just geometry point types) and another 20 MB shape file (can't remember the geometries in it (either polygons or lines or both). Are there some limitations to shp2pgsql or did I miss something in my compilation? I'm running on a Windows 2000 machine, cygwin 1.3.something and Postgres 7.3.1, postgis cvs build from I think 10/22 Regina Obe Senior Programmer Boston Department of Neighborhood Development From jimburnett at ntelos.net Wed Oct 31 05:42:41 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 31 Oct 2001 08:42:41 -0500 Subject: [mapserver-users] buffering References: <006201c16161$0f036fd0$2f01a8c0@jbwin2000> <001d01c161e2$05a09e00$251fa8c0@khi2.fr> Message-ID: <001b01c16211$e9b84be0$2f01a8c0@jbwin2000> Thats funny, I use that link all the time from home. We also have many other people looking at it. We get about 25 hits per day. ----- Original Message ----- From: "Guillaume Sueur" To: "Jim Burnett" Sent: Wednesday, October 31, 2001 2:59 AM Subject: Re: [mapserver-users] buffering > Sorry, but the page doesn't show up :-((( > > Guillaume Sueur > > > ----- Original Message ----- > From: "Jim Burnett" > To: > Sent: Tuesday, October 30, 2001 5:36 PM > Subject: [mapserver-users] buffering > > > Anyone here do any buffering with MapServer? What I mean is running some > sort of query that also queries with a buffer, returning other objects or > parcels with-in a certain buffer. > > Here is a PHP example of what I have been working on. > Please send me feedback. > > http://216.12.31.29:81/dev-igis/ > > > > -jb- > > > > From sutton_t at giug.net Wed Oct 31 06:07:24 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 31 Oct 2001 14:07:24 +0000 (GMT) Subject: [mapserver-users] Runaway process and other wierdness (fwd) Message-ID: Hi Just an update on the image caching problem and the runaway thread problem. I found a copy of the nighly build from 30/08/2001 and the runaway thread problem does not occur with this version. I applied the patch provided below and was able to properly test if it resolves the problem. It seems that the problem of random cached images being displayed in the map window has _not_ been resolved. The problem can be seen on the gmap demo I have running on my web server : http://www.giug.net/~sutton_t/gmap/htdocs/gmap75.phtml If you zoom in a bit and pan around a bit, the images will not display consistently. Any help to resolve this will be greatly appreciated. The 3.5. nightly mentioned above works fine otherwise (for my needs anyway), I just need to resolve the image caching problem. Many thanks Tim Sutton On Mon, 29 Oct 2001, Daniel Morissette wrote: > Bruno Gendron wrote: > > > > I will keep you informed with my experiments, > > particularly on the unique filename issue! > > > > Brunu, Tim, > > About the random map image problem, can you please try the following > change and tell me if that makes a difference? > > --- php_mapscript.c 2001/10/17 21:40:50 1.59 > +++ php_mapscript.c 2001/10/29 15:23:15 > @@ -351,7 +351,7 @@ > static int le_mslegend; > > static char tmpId[128]; /* big enough for time + pid */ > -static int tmpCount; > +static int tmpCount = 0; > > /* -------------------------------------------------------------------- */ > /* class entries. */ > @@ -736,7 +736,7 @@ > > /* We'll use tmpId and tmpCount to generate unique filenames */ > sprintf(PHPMS_GLOBAL(tmpId), "%ld%d",(long)time(NULL),(int)getpid()); > - tmpCount = 0; > +/* tmpCount = 0; */ > > #ifdef PHP4 > INIT_CLASS_ENTRY(tmp_class_entry, "map", php_map_class_functions); > > > > > From jimburnett at ntelos.net Wed Oct 31 06:41:46 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 31 Oct 2001 09:41:46 -0500 Subject: [mapserver-users] GIS example Message-ID: <005901c1621a$2a849bd0$2f01a8c0@jbwin2000> Here is an example of a small GIS using mapserver. This uses PHP and sessions. It currently only works in IE6.0, but I am going to start coding for multi-browsers soon. http://216.12.31.29/dev-igis/ Also, this is my development work, so if it crashes, it probably because I am working on it. Email me if you need code... -jim- -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregliapis at hotmail.com Wed Oct 31 06:39:06 2001 From: gregliapis at hotmail.com (Greg Liapis) Date: Wed, 31 Oct 2001 16:39:06 +0200 Subject: [mapserver-users] PHP/Mapscript. Problems in function $layer->setFilter() Message-ID: Hi all, I am trying to publish some maps using PostgreSQL with PostGIS and PHP/Mapscript.When I access a layer using $layer1=$map->getLayerObj(0), everything goes fine untill I try to set a filter for that layer using $layer1->setFilter("MyExpression"). The error I get is: "Fatal error: Call to undefined function: setfilter() ...". All the other methods of LayerObj class seem to work fine. Could anyone help me? I am using PHP 4.0.6 and MapServer 3.5 from a couple of weeks ago. Greg Liapis Thessaloniki Greece -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Wed Oct 31 06:39:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 31 Oct 2001 09:39:14 -0500 Subject: [mapserver-users] new ShapefileObj makes apache core dump References: <20011031090702.00CC42299E@mail.selperchile.cl> Message-ID: <3BE00D12.CA0E6C5D@dmsolutions.ca> "Vinko Vrsalovic B." wrote: > The line: > > $shapefile = ms_newShapefileObj($file.".shp",-1); > > If $file.".shp" does not exist, apache SIGSEGV's. > > PHP 4.0.6, PHP/Mapscript 3.5 from a couple of weeks ago, apache 1.3.14 > That's bad! I filed this in bugzilla and will look into it ASAP: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=68 -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Oct 31 07:14:12 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 31 Oct 2001 10:14:12 -0500 Subject: [mapserver-users] PHP/Mapscript. Problems in function $layer->setFilter() References: Message-ID: <3BE01544.13E76866@dmsolutions.ca> > Greg Liapis wrote: > > Hi all, > I am trying to publish some maps using PostgreSQL with PostGIS and > PHP/Mapscript.When I access a layer using > $layer1=$map->getLayerObj(0), everything goes fine untill I try to set > a filter for that layer using $layer1->setFilter("MyExpression"). > The error I get is: "Fatal error: Call to undefined function: > setfilter() ...". > All the other methods of LayerObj class seem to work fine. > Could anyone help me? > I am using PHP 4.0.6 and MapServer 3.5 from a couple of weeks ago. > Greg, $layer->setFilter() had been implmented but was never added as a method in the layerObj class. I fixed this and committed a new php_mapscript.c in CVS in which $layer->setFilter() should work. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From sutton_t at giug.net Wed Oct 31 07:18:43 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 31 Oct 2001 15:18:43 +0000 (GMT) Subject: [mapserver-users] Workaround for image caching problems in php_mapscript Message-ID: Hi I have made a small work around for the problem of images being named in a non-unique way: $url = $img->saveWebImage($gAppletImgFmt, 0, 0, -1); //added by Tim to ensure images have unique names mt_srand((double) microtime() * 1000000); $randval = mt_rand(); $uniqueURL = substr($url,0,-4).$randval.".png"; rename ("/tmp/$url", "/tmp/$uniqueURL"); $url=$uniqueURL; //end of changes by Tim I hope that proves useful to anyone else encountering the same problem :-) Tim From armin.burger at territoriumonline.com Wed Oct 31 07:47:43 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Wed, 31 Oct 2001 16:47:43 +0100 Subject: [mapserver-users] URL encoding for map file class expressions Message-ID: <200110311548.QAA14769@efferd.nettz.com> Hi all, I would like to do a query on a layer with a combination of FILTER and EXPRESSION using the query definition via the URL. If I want to query more than one expression, how would I encode these expressions in the URL? For example: I have the URL part for the LAYER - FILTER tag for the layer 'landcoverq' &map_landcoverq_filter=%22313%22 searching for the number 313 in the field defined with FILTERITEM in the mapfile. and I would like to have the corresponding URL encoding for the EXPRESSION tag of the class section EXPRESSION ('[LANCOV_CD]'='215/1' or '[LANCOV_CD]'='215/2' or '[LANCOV_CD]'='220' ) Adding all the expressions one by one in the URL with &map_landcoverq_class_expression=%22215/1%22... selects always only the last one. I think it should be possible but don't how to achieve it. Thanks for any help. Has anyone experiences how queries like that are facilitated using the functionality of PostGIS? Armin -- Armin Burger Territorium Online Via Siemens 19 - 39100 Bolzano - Italy _ From jimburnett at ntelos.net Wed Oct 31 07:57:56 2001 From: jimburnett at ntelos.net (Jim Burnett) Date: Wed, 31 Oct 2001 10:57:56 -0500 Subject: [mapserver-users] new ShapefileObj makes apache core dump References: <20011031090702.00CC42299E@mail.selperchile.cl> <3BE00D12.CA0E6C5D@dmsolutions.ca> Message-ID: <009901c16224$ce9e4c70$2f01a8c0@jbwin2000> I had this problem, so I used a nightly build and it seemed to have gone away. -jb- ----- Original Message ----- From: "Daniel Morissette" To: Cc: Sent: Wednesday, October 31, 2001 9:39 AM Subject: Re: [mapserver-users] new ShapefileObj makes apache core dump > "Vinko Vrsalovic B." wrote: > > The line: > > > > $shapefile = ms_newShapefileObj($file.".shp",-1); > > > > If $file.".shp" does not exist, apache SIGSEGV's. > > > > PHP 4.0.6, PHP/Mapscript 3.5 from a couple of weeks ago, apache 1.3.14 > > > > > That's bad! I filed this in bugzilla and will look into it ASAP: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=68 > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > From morissette at dmsolutions.ca Wed Oct 31 07:49:51 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 31 Oct 2001 10:49:51 -0500 Subject: [mapserver-users] Workaround for image caching problems in php_mapscript References: Message-ID: <3BE01D9F.523AEBCD@dmsolutions.ca> Tim, I found that the non-unique images problem seems to happen only when we load MapScript via a "extension=php_mapscript.so" line in php.ini ... if php_mapscript.so is not preloaded then the problem doesn't seem to happen. So another workaround for now is to not preload php_mapscript.so in php.ini and use dl("php_mapscript.so") in the script instead. The same may apply to the runaway process problem but I haven't been able to reproduce this one yet. Daniel Tim Sutton wrote: > > Hi > > I have made a small work around for the problem of images being named > in a non-unique way: > > $url = $img->saveWebImage($gAppletImgFmt, 0, 0, -1); > //added by Tim to ensure images have unique names > mt_srand((double) microtime() * 1000000); > $randval = mt_rand(); > $uniqueURL = substr($url,0,-4).$randval.".png"; > rename ("/tmp/$url", "/tmp/$uniqueURL"); > $url=$uniqueURL; > > //end of changes by Tim > > I hope that proves useful to anyone else encountering the same problem > :-) > > Tim -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From teb at mallit.fr.umn.edu Wed Oct 31 08:11:54 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 31 Oct 2001 10:11:54 -0600 (CST) Subject: [mapserver-users] Add points to a online map? (FWD) Message-ID: <200110311611.KAA27337@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- X-Sender: tkogels at pop3.wish.nl Date: Wed, 31 Oct 2001 10:31:21 +0100 To: mapserver-info at lists.gis.umn.edu From: Twan Kogels Subject: Add points to a online map? Mime-Version: 1.0 Goodmorning, My question is a short one: Is it possible with mapserver (or with a extension) to let the user add points to a online map? A example to illustrate my question: We have a map of a region, this map is displayed online with the help of mapserver. On this map there are several user defined points which represent interesting places. I saw in a example supplied with mapserver that it is possible to display specific information about a point, for example in a new window. Is it possible that a visitor of our website adds a point to our online map and also add specific information about the point? Will this change (adding a point) be directly visible on the map? thanks, - twan -- http://www.twansoft.com ------------- End Forwarded Message ------------- From sutton_t at giug.net Wed Oct 31 08:45:54 2001 From: sutton_t at giug.net (Tim Sutton) Date: Wed, 31 Oct 2001 16:45:54 +0000 (GMT) Subject: [mapserver-users] Workaround for image caching problems in php_mapscript In-Reply-To: <3BE01D9F.523AEBCD@dmsolutions.ca> Message-ID: Hi I find the non-unique images are being generated with my scripts which do _not_ use php_mapscript.so as a preloaded module. Tim On Wed, 31 Oct 2001, Daniel Morissette wrote: > Tim, > > I found that the non-unique images problem seems to happen only when we > load MapScript via a "extension=php_mapscript.so" line in php.ini ... if > php_mapscript.so is not preloaded then the problem doesn't seem to > happen. > > So another workaround for now is to not preload php_mapscript.so in > php.ini and use dl("php_mapscript.so") in the script instead. The same > may apply to the runaway process problem but I haven't been able to > reproduce this one yet. > > Daniel > > > Tim Sutton wrote: > > > > Hi > > > > I have made a small work around for the problem of images being named > > in a non-unique way: > > > > $url = $img->saveWebImage($gAppletImgFmt, 0, 0, -1); > > //added by Tim to ensure images have unique names > > mt_srand((double) microtime() * 1000000); > > $randval = mt_rand(); > > $uniqueURL = substr($url,0,-4).$randval.".png"; > > rename ("/tmp/$url", "/tmp/$uniqueURL"); > > $url=$uniqueURL; > > > > //end of changes by Tim > > > > I hope that proves useful to anyone else encountering the same problem > > :-) > > > > Tim > > From bruno_gendron at yahoo.com Wed Oct 31 09:27:44 2001 From: bruno_gendron at yahoo.com (=?iso-8859-1?q?Bruno=20Gendron?=) Date: Wed, 31 Oct 2001 18:27:44 +0100 (CET) Subject: [mapserver-users] Workaround for image caching problems in php_mapscript In-Reply-To: Message-ID: <20011031172744.68991.qmail@web20710.mail.yahoo.com> Tim and Daniel, Same for me, as far as I know, the image-caching problem occurs in both situation, with or without preloading php_mapscript.so. About the runaway process problem: on thing I did was to turn-on output buffering in php (ob_start) at the beginning of the script, and to flush the output at the end (ob_end_flush). That way, php_mapscript (or php itself, or apache) seems to close the connection properly, although I cannot certify this either :-( -- Bruno --- Tim Sutton a ?crit?: > Hi > > I find the non-unique images are being generated > with my scripts which > do _not_ use php_mapscript.so as a preloaded module. > > Tim > > On Wed, 31 Oct 2001, Daniel Morissette wrote: > > > Tim, > > > > I found that the non-unique images problem seems > to happen only when we > > load MapScript via a "extension=php_mapscript.so" > line in php.ini ... if > > php_mapscript.so is not preloaded then the problem > doesn't seem to > > happen. > > > > So another workaround for now is to not preload > php_mapscript.so in > > php.ini and use dl("php_mapscript.so") in the > script instead. The same > > may apply to the runaway process problem but I > haven't been able to > > reproduce this one yet. > > > > Daniel > > > > > > Tim Sutton wrote: > > > > > > Hi > > > > > > I have made a small work around for the problem > of images being named > > > in a non-unique way: > > > > > > $url = $img->saveWebImage($gAppletImgFmt, 0, > 0, -1); > > > //added by Tim to ensure images have unique > names > > > mt_srand((double) microtime() * 1000000); > > > $randval = mt_rand(); > > > $uniqueURL = > substr($url,0,-4).$randval.".png"; > > > rename ("/tmp/$url", "/tmp/$uniqueURL"); > > > $url=$uniqueURL; > > > > > > //end of changes by Tim > > > > > > I hope that proves useful to anyone else > encountering the same problem > > > :-) > > > > > > Tim > > > > > ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Courrier : http://courrier.yahoo.fr From pramsey at refractions.net Wed Oct 31 09:39:05 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 31 Oct 2001 09:39:05 -0800 Subject: [mapserver-users] Add points to a online map? (FWD) References: <200110311611.KAA27337@mallit.fr.umn.edu> Message-ID: <3BE03739.4981BD8D@refractions.net> Yes. You might find one way to do this is to use PostGIS to store the point layer. Jeff is actually putting together a little Mapserver/PostGIS app right now to do exactly this. All the background layers are shape files, but the point layer is a db layer, so it is very easy to add new points to it and edit it. Needless to say, mapscript coding is definately required. You could also do this using a shape file to store the points, but could have file integrity problems if you were ever unlucky enough to get two concurrent edits of the file. teb wrote: > Is it possible that a visitor of our website adds a point to our online map > and also add specific information about the point? Will this change (adding > a point) be directly visible on the map? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From AWOOLEY at mountainland.org Wed Oct 31 09:40:16 2001 From: AWOOLEY at mountainland.org (ANDREW WOOLEY) Date: Wed, 31 Oct 2001 10:40:16 -0700 Subject: [mapserver-users] URL encoding for map file class expressions Message-ID: Armin, I think that I understand your question. Pardon me if this is not what you were asking: The way that I got around this is to use URL friendly characters and then use the PHP function explode(). Following is a snippet of code (pardon the poor coding): if ($addto) { if ($expr) { $routeid = $routeid . "_" . $expr; } } $epr = explode("_", $routeid); for($i = "0"; $i < sizeof($epr); $i++) { if ($i == 0 ) { $newexpr = "("; } $newexpr = str_replace ("))", ") or ", $newexpr); $newexpr = $newexpr . "([ID] eq " . $epr[$i] . ")"; if ($i == sizeof($epr)); { $newexpr = $newexpr . ")"; } } echo ("\n"); $oLayer = $map->GetLayerbyName("allbuiltQ"); $FirstClass = $oLayer->GetClass(0); $FirstClass->setExpression($newexpr); $oLayer->set("status", 1); The first part of the code checks to see if the user wants to add to the selection and the $routeid is the value from the attribute table for the feature clicked. Then it explodes the $epr which is the class expression and loops through the resulting array to build the expression string. Then I set a hidden form variable to be the new expression value so it will be returned on the next form submit and set the class expression. It works really well and seems to be quite fast. I hope this helps. Let me know if you have questions. Andrew Andrew Wooley GIS Operations Manager Mountainland Association of Governments Orem, UT phone: 801.229.3844 fax: 801.229.3801 email: awooley at mountainland.org web: www.maps.mountainland.org >>> Armin Burger 10/31/01 08:47AM >>> Hi all, I would like to do a query on a layer with a combination of FILTER and EXPRESSION using the query definition via the URL. If I want to query more than one expression, how would I encode these expressions in the URL? For example: I have the URL part for the LAYER - FILTER tag for the layer 'landcoverq' &map_landcoverq_filter=%22313%22 searching for the number 313 in the field defined with FILTERITEM in the mapfile. and I would like to have the corresponding URL encoding for the EXPRESSION tag of the class section EXPRESSION ('[LANCOV_CD]'='215/1' or '[LANCOV_CD]'='215/2' or '[LANCOV_CD]'='220' ) Adding all the expressions one by one in the URL with &map_landcoverq_class_expression=%22215/1%22... selects always only the last one. I think it should be possible but don't how to achieve it. Thanks for any help. Has anyone experiences how queries like that are facilitated using the functionality of PostGIS? Armin -- Armin Burger Territorium Online Via Siemens 19 - 39100 Bolzano - Italy _ From morissette at dmsolutions.ca Wed Oct 31 10:46:27 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 31 Oct 2001 13:46:27 -0500 Subject: [mapserver-users] ms_newLineObj() References: <1004517196.3bdfb74c808e3@imp3-1.free.fr> Message-ID: <3BE04703.C97F31E3@dmsolutions.ca> Jean-Francois, The line and shape objects seem to be created properly internally, it's just that the $line->numpoints and $shape->numlines members are not properly updated in the PHP wrapper. This is definietely a bug, but the internal data structures should be fine and you should be able to use them to write to a shapeFileObj or simply to draw the shapes on a map. One more for our list I guess... I've filed it in bugzilla to make sure it gets fixed: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=69 BTW, seems like there is lots of good testing of MapServer and PHP MapScript going on out there! :) Keep reporting bugs... not sure when we'll be able to fix them all, but we're better find them now than after an official 3.5 release! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. Jean-Fran?ois MONY wrote: > > I have a little problem with the ms_newLineObj() command. > As you can see below I create some points and the goal is to make a polygon > with those points, then I create a line. > With the print_r function I'm sure that the points are well created, but I > can't create the line and I don't understand why. > If somebody have an idea. > I use mapserver 3.5 (nightly build from the begining of september) with php > 4.05. > > Thanks, Jef > > CODE > ===== > > session_start(); > > require("../config.php"); > > function split_string($sql, $delimiter) > { > $sql = trim($sql); > $buffer = array(); > $ret = array(); > $in_string = false; > for($i=0; $i { > if($sql[$i] == $delimiter && !$in_string) > { > $ret[] = substr($sql, 0, $i); > $sql = substr($sql, $i + 1); > $i = 0; > } > if($in_string && ($sql[$i] == $in_string) && $buffer[0] != "\\") > { > $in_string = false; > } > elseif(!$in_string && ($sql[$i] == "\"" || $sql[$i] == "'") && $buffer[0] ! > = "\\") > { > $in_string = $sql[$i]; > } > $buffer[0] = $buffer[1]; > $buffer[1] = $sql[$i]; > } > if (!empty($sql)) > { > $ret[] = $sql; > } > return($ret); > } > > $polyarray=split_string($poly, ";"); > > print("$poly
"); > $ligne = ms_newLineObj(); > for ($i=1; $i<$polyarray[0]+1;$i++) > { > $j=2*$i-1; > $k=2*$i; > $point=ms_newPointObj(); > $point->setXY($polyarray[$j], $polyarray[$k]); > print_r($point); > print("
"); > $ligne->add($point); > print_r($ligne); > print("
"); > } > $shape = ms_newShapeObj(MS_SHAPE_POLYGON); > $shape->add($ligne); > print_r($shape); > print("
"); > ?> > > RESULT > ======= > > 4;907249;2505661;909472;2486354;934669;2483012;919847;2504547; > point Object ( [_handle_] => Resource id #2 [x] => 907249 [y] => 2505661 ) > line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) > point Object ( [_handle_] => Resource id #3 [x] => 909472 [y] => 2486354 ) > line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) > point Object ( [_handle_] => Resource id #4 [x] => 934669 [y] => 2483012 ) > line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) > point Object ( [_handle_] => Resource id #5 [x] => 919847 [y] => 2504547 ) > line Object ( [_handle_] => Resource id #1 [numpoints] => 0 ) > shape Object ( [_handle_] => Resource id #6 [numlines] => 0 [type] => 2 [index] > => -1 [tileindex] => -1 [classindex] => 0 [numvalues] => 0 [text] => [bounds] > => rect Object ( [_handle_] => Resource id #7 [minx] => -1 [miny] => -1 [maxx] > => -1 [maxy] => -1 ) ) From armin.burger at territoriumonline.com Wed Oct 31 11:08:50 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Wed, 31 Oct 2001 20:08:50 +0100 Subject: [mapserver-users] URL encoding for map file classexpressions Message-ID: <200110311904.NAA24141@lists.gis.umn.edu> Andrew, I did probably not describe exactly what I wanted to do, sorry. I would like to use the CGI version of mapserver and change map file parameters, like FILTER/EXPRESSION for queries, 'on-the-fly' using javascript to create the new URL and get back the query results this way. I assume that these kind of things are in principal better done via PHP or Perl, but first I will try it with the cgi version. For that I would need to know how to code the map file parameters for CLASS - EXPRESSION in the URL. Thanks Armin > Armin, > I think that I understand your question. Pardon me if this is not what you > were asking: > The way that I got around this is to use URL friendly characters and then > use the PHP function explode(). Following is a snippet of code (pardon the > poor coding): > if ($addto) > { > if ($expr) > { > $routeid = $routeid . "_" . $expr; > } > } > $epr = explode("_", $routeid); > for($i = "0"; $i < sizeof($epr); $i++) > { > if ($i == 0 ) > { > $newexpr = "("; > } > $newexpr = str_replace ("))", ") or ", $newexpr); > $newexpr = $newexpr . "([ID] eq " . $epr[$i] . ")"; > if ($i == sizeof($epr)); > { > $newexpr = $newexpr . ")"; > } > } > echo ("\n"); > $oLayer = $map->GetLayerbyName("allbuiltQ"); > $FirstClass = $oLayer->GetClass(0); > $FirstClass->setExpression($newexpr); > $oLayer->set("status", 1); > The first part of the code checks to see if the user wants to add to the > selection and the $routeid is the value from the attribute table for the > feature clicked. Then it explodes the $epr which is the class expression > and loops through the resulting array to build the expression string. Then > I set a hidden form variable to be the new expression value so it will be > returned on the next form submit and set the class expression. It works > really well and seems to be quite fast. > I hope this helps. Let me know if you have questions. > Andrew > Andrew Wooley > GIS Operations Manager > Mountainland Association of Governments > Orem, UT > phone: 801.229.3844 > fax: 801.229.3801 > email: awooley at mountainland.org > web: www.maps.mountainland.org >>>> Armin Burger 10/31/01 08:47AM >>> > Hi all, > I would like to do a query on a layer with a combination of FILTER and > EXPRESSION using the query definition via the URL. If I want to query more > than one expression, how would I encode these expressions in the URL? > For example: > I have the URL part for the LAYER - FILTER tag for the layer 'landcoverq' > &map_landcoverq_filter=%22313%22 > searching for the number 313 in the field defined with FILTERITEM in the > mapfile. > and I would like to have the corresponding URL encoding for the EXPRESSION > tag of the class section > EXPRESSION ('[LANCOV_CD]'='215/1' or '[LANCOV_CD]'='215/2' or > '[LANCOV_CD]'='220' ) > Adding all the expressions one by one in the URL with > &map_landcoverq_class_expression=%22215/1%22... > selects always only the last one. > I think it should be possible but don't how to achieve it. Thanks for any > help. > Has anyone experiences how queries like that are facilitated using the > functionality of PostGIS? > Armin > -- > Armin Burger > Territorium Online > Via Siemens 19 - 39100 Bolzano - Italy > _ From woodbri at mediaone.net Wed Oct 31 11:56:36 2001 From: woodbri at mediaone.net (Stephen Woodbridge) Date: Wed, 31 Oct 2001 14:56:36 -0500 Subject: [mapserver-users] URL encoding for map file classexpressions References: Message-ID: <3BE05774.D44FB7C1@mediaone.net> In PHP you can have URL arguments like: http://host/myfile.php?abc[]=expr-1&abc[]=expr-2&abc[]=expr-3 which will create a PHP array called abc and push each argument onto it, so in the example above you would get: abc[0] = expr-1 abc[1] = expr-2 abc[2] = expr-3 the [] is synonmous with push I hope this helps. -Steve ANDREW WOOLEY wrote: > > Armin, > > I think that I understand your question. Pardon me if this is not what you were asking: > > The way that I got around this is to use URL friendly characters and then use the PHP function explode(). Following is a snippet of code (pardon the poor coding): > > if ($addto) > { > if ($expr) > { > $routeid = $routeid . "_" . $expr; > } > } > > $epr = explode("_", $routeid); > > for($i = "0"; $i < sizeof($epr); $i++) > { > if ($i == 0 ) > { > $newexpr = "("; > } > $newexpr = str_replace ("))", ") or ", $newexpr); > > $newexpr = $newexpr . "([ID] eq " . $epr[$i] . ")"; > if ($i == sizeof($epr)); > { > $newexpr = $newexpr . ")"; > } > } > > echo ("\n"); > $oLayer = $map->GetLayerbyName("allbuiltQ"); > $FirstClass = $oLayer->GetClass(0); > $FirstClass->setExpression($newexpr); > > $oLayer->set("status", 1); > > The first part of the code checks to see if the user wants to add to the selection and the $routeid is the value from the attribute table for the feature clicked. Then it explodes the $epr which is the class expression and loops through the resulting array to build the expression string. Then I set a hidden form variable to be the new expression value so it will be returned on the next form submit and set the class expression. It works really well and seems to be quite fast. > > I hope this helps. Let me know if you have questions. > > Andrew > > Andrew Wooley > GIS Operations Manager > Mountainland Association of Governments > Orem, UT > > phone: 801.229.3844 > fax: 801.229.3801 > email: awooley at mountainland.org > web: www.maps.mountainland.org > > >>> Armin Burger 10/31/01 08:47AM >>> > Hi all, > > I would like to do a query on a layer with a combination of FILTER and > EXPRESSION using the query definition via the URL. If I want to query more > than one expression, how would I encode these expressions in the URL? > > For example: > I have the URL part for the LAYER - FILTER tag for the layer 'landcoverq' > &map_landcoverq_filter=%22313%22 > searching for the number 313 in the field defined with FILTERITEM in the > mapfile. > > and I would like to have the corresponding URL encoding for the EXPRESSION > tag of the class section > EXPRESSION ('[LANCOV_CD]'='215/1' or '[LANCOV_CD]'='215/2' or > '[LANCOV_CD]'='220' ) > > Adding all the expressions one by one in the URL with > &map_landcoverq_class_expression=%22215/1%22... > selects always only the last one. > > I think it should be possible but don't how to achieve it. Thanks for any > help. > > Has anyone experiences how queries like that are facilitated using the > functionality of PostGIS? > > Armin > > -- > Armin Burger > Territorium Online > Via Siemens 19 - 39100 Bolzano - Italy > _ From armin.burger at territoriumonline.com Wed Oct 31 14:10:17 2001 From: armin.burger at territoriumonline.com (Armin Burger) Date: Wed, 31 Oct 2001 23:10:17 +0100 Subject: [mapserver-users] URL encoding for map file classexpressions Message-ID: <200110312205.QAA25110@lists.gis.umn.edu> Thanks, I tried now to use the complete definition for EXPRESSION, like - in the map file CLASS EXPRESSION ([CODE]=312 or [CODE]=313) ... -and in the URL ...&map_corineq_class_expression=([CODE]=312+or+[CODE]=313) or also possible ...&map_corineq_class_expression=%28%5BCODE%5D=312+or+%5BCODE%5D=313%29 and it did work fine. Sometimes it's easier than I'm thinking. Armin > In PHP you can have URL arguments like: > http://host/myfile.php?abc[]=expr-1&abc[]=expr-2&abc[]=expr-3 > which will create a PHP array called abc and push each argument onto it, > so in the example above you would get: > abc[0] = expr-1 > abc[1] = expr-2 > abc[2] = expr-3 > the [] is synonmous with push > I hope this helps. > -Steve > ANDREW WOOLEY wrote: >> >> Armin, >> >> I think that I understand your question. Pardon me if this is not what you >> were asking: >> >> The way that I got around this is to use URL friendly characters and then >> use the PHP function explode(). Following is a snippet of code (pardon the >> poor coding): >> >> if ($addto) >> { >> if ($expr) >> { >> $routeid = $routeid . "_" . $expr; >> } >> } >> >> $epr = explode("_", $routeid); >> >> for($i = "0"; $i < sizeof($epr); $i++) >> { >> if ($i == 0 ) >> { >> $newexpr = "("; >> } >> $newexpr = str_replace ("))", ") or ", $newexpr); >> >> $newexpr = $newexpr . "([ID] eq " . $epr[$i] . ")"; >> if ($i == sizeof($epr)); >> { >> $newexpr = $newexpr . ")"; >> } >> } >> >> echo ("\n"); >> $oLayer = $map->GetLayerbyName("allbuiltQ"); >> $FirstClass = $oLayer->GetClass(0); >> $FirstClass->setExpression($newexpr); >> >> $oLayer->set("status", 1); >> >> The first part of the code checks to see if the user wants to add to the >> selection and the $routeid is the value from the attribute table for the >> feature clicked. Then it explodes the $epr which is the class expression >> and loops through the resulting array to build the expression string. Then >> I set a hidden form variable to be the new expression value so it will be >> returned on the next form submit and set the class expression. It works >> really well and seems to be quite fast. >> >> I hope this helps. Let me know if you have questions. >> >> Andrew >> >> Andrew Wooley >> GIS Operations Manager >> Mountainland Association of Governments >> Orem, UT >> >> phone: 801.229.3844 >> fax: 801.229.3801 >> email: awooley at mountainland.org >> web: www.maps.mountainland.org >> >> >>> Armin Burger 10/31/01 08:47AM >>> >> Hi all, >> >> I would like to do a query on a layer with a combination of FILTER and >> EXPRESSION using the query definition via the URL. If I want to query more >> than one expression, how would I encode these expressions in the URL? >> >> For example: >> I have the URL part for the LAYER - FILTER tag for the layer 'landcoverq' >> &map_landcoverq_filter=%22313%22 >> searching for the number 313 in the field defined with FILTERITEM in the >> mapfile. >> >> and I would like to have the corresponding URL encoding for the EXPRESSION >> tag of the class section >> EXPRESSION ('[LANCOV_CD]'='215/1' or '[LANCOV_CD]'='215/2' or >> '[LANCOV_CD]'='220' ) >> >> Adding all the expressions one by one in the URL with >> &map_landcoverq_class_expression=%22215/1%22... >> selects always only the last one. >> >> I think it should be possible but don't how to achieve it. Thanks for any >> help. >> >> Has anyone experiences how queries like that are facilitated using the >> functionality of PostGIS? >> >> Armin >> >> -- >> Armin Burger >> Territorium Online >> Via Siemens 19 - 39100 Bolzano - Italy >> _ From Ross.Searle at dnr.qld.gov.au Wed Oct 31 14:07:12 2001 From: Ross.Searle at dnr.qld.gov.au (Searle Ross) Date: Thu, 1 Nov 2001 08:07:12 +1000 Subject: [mapserver-users] Add points to a online map? (FWD) Message-ID: Paul and Twan, We have used PostGIS to do just this, without using any mapscripting just a bit of javascript and perl. This was actually the reason we started using this great piece of software. The user clicks on the map and the javascript works out the real world coords and pops up a form. Info is entered and then added to postgres via an insert using perl. Next time you view the map the point is there large as life. Sorry I can't show you the site but it is inside our firewall. Regards Ross -----Original Message----- From: Paul Ramsey [mailto:pramsey at refractions.net] Sent: Thursday, 1 November 2001 3:39 AM To: teb Cc: mapserver-users at lists.gis.umn.edu; twan at twansoft.com Subject: Re: [mapserver-users] Add points to a online map? (FWD) Yes. You might find one way to do this is to use PostGIS to store the point layer. Jeff is actually putting together a little Mapserver/PostGIS app right now to do exactly this. All the background layers are shape files, but the point layer is a db layer, so it is very easy to add new points to it and edit it. Needless to say, mapscript coding is definately required. You could also do this using a shape file to store the points, but could have file integrity problems if you were ever unlucky enough to get two concurrent edits of the file. teb wrote: > Is it possible that a visitor of our website adds a point to our online map > and also add specific information about the point? Will this change (adding > a point) be directly visible on the map? -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From bhill at nextbus.com Wed Oct 31 14:41:06 2001 From: bhill at nextbus.com (Brian Hill) Date: Wed, 31 Oct 2001 14:41:06 -0800 Subject: [mapserver-users] pre-projection Message-ID: <3BE07E02.7030606@nextbus.com> I have tiger data in geographic projection, and other data in a mercator projection. My output projection is the mercator projection. All the preceding is specified in my .map file. Does one of the MapServer utilities allow me to pre-project all the tiger data into the same mercator projection so that the transformation doesn't have to be done on-the-fly? If so, are there directions somewhere (something much more detailed than the discussion at http://mapserver.gis.umn.edu/coordinates.html ) that I can follow to do this operation? My goal is to make my installation perform better, and I am hoping from previous posts to this list that this will be the ticket. Thanks very much for any pointers. --Brian Hill From dan.liu at mnplan.state.mn.us Wed Oct 31 15:05:25 2001 From: dan.liu at mnplan.state.mn.us (Dan Liu) Date: Wed, 31 Oct 2001 17:05:25 -0600 Subject: [mapserver-users] STATUS QUERYONLY Message-ID: Hi all, There is always error on the line "STATUS QUERYONLY".The error message is "getSymbol(): Symbol definition error. (QUERYONLY):(68) ". LAYER NAME cou TYPE POLYGON STATUS QUERYONLY DATA /home/httpd/html/DPM/cou QUERY .... END END Could somebody tell me what is wrong? Thanks! Dan From pramsey at refractions.net Wed Oct 31 15:43:59 2001 From: pramsey at refractions.net (Paul Ramsey) Date: Wed, 31 Oct 2001 15:43:59 -0800 Subject: [mapserver-users] pre-projection References: <3BE07E02.7030606@nextbus.com> Message-ID: <3BE08CBF.195C9D6D@refractions.net> Bill, Get the OGR library (you may have it already) and use the 'ogr2ogr' utility. It'll read/write TIGER data. It'll also do reprojections. The usage summary is this: Usage: ogr2ogr [-skipfailures] [-f format_name] [-where restricted_where] [-spat xmin ymin xmax ymax] [-t_srs srs_def] [-a_srs srs_def] [[-dsco NAME=VALUE] ...] dst_datasource_name src_datasource_name [-lco NAME=VALUE] [-nln name] layer [layer ...]] -f format_name: output file format name, possible values are: -f "ESRI Shapefile" -f "TIGER" -f "MapInfo File" -f "PostgreSQL" -where restricted_where: Attribute query (like SQL WHERE) -spat xmin ymin xmax ymax: spatial query extents -dsco NAME=VALUE: Dataset creation option (format specific) -lco NAME=VALUE: Layer creation option (format specific) -nln name: Assign an alternate name to the new layer -a_srs srs_def: Assign an output SRS -t_srs srs_def: Reproject/transform to this SRS on output Srs_def can be a full WKT definition (hard to escape properly), or a well known definition (ie. EPSG:4326) or a file with a WKT definition. In Frank we trust... Paul Brian Hill wrote: > > I have tiger data in geographic projection, and other data in a mercator > projection. My output projection is the mercator projection. All the > preceding is specified in my .map file. > > Does one of the MapServer utilities allow me to pre-project all the > tiger data into the same mercator projection so that the transformation > doesn't have to be done on-the-fly? If so, are there directions > somewhere (something much more detailed than the discussion at > http://mapserver.gis.umn.edu/coordinates.html ) that I can follow to do > this operation? > > My goal is to make my installation perform better, and I am hoping from > previous posts to this list that this will be the ticket. Thanks very > much for any pointers. --Brian Hill -- __ / | Paul Ramsey | Refractions Research | Email: pramsey at refractions.net | Phone: (250) 885-0632 \_ From pnaciona at gis.umn.edu Wed Oct 31 16:01:21 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Wed, 31 Oct 2001 18:01:21 -0600 Subject: [mapserver-users] STATUS QUERYONLY In-Reply-To: Message-ID: Dan, I think 'STATUS QUERYONLY' no longer exists in MapServer 3.5. QUERY templates have also been sucked up by the CLASS object. So, perhaps you can create a LAYER with 'STATUS DEFAULT' and have a CLASS with transparent polygons... something like this: CLASS NAME 'queryonlylayer' TEMPLATE sometemplate.html COLOR -1 -1 -1 END I've never done this before. There might actually be a simpler way than this. Good luck! Perry N. On Wed, 31 Oct 2001, Dan Liu wrote: > Hi all, > There is always error on the line "STATUS QUERYONLY".The error message is "getSymbol(): Symbol definition error. (QUERYONLY):(68) ". > > LAYER > NAME cou > TYPE POLYGON > STATUS QUERYONLY > DATA /home/httpd/html/DPM/cou > QUERY > .... > END > END > > > Could somebody tell me what is wrong? > Thanks! > Dan >