From steve.lime at dnr.state.mn.us Mon Jan 1 08:59:01 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 01 Jan 2001 10:59:01 -0600 Subject: request for comments - SDE Message-ID: Hi All: The comments so far have been helpful. One calrification I'd like to add is that even as just another data source I still plan to allow a single SDE based attribute query that accompanies the necessary spatial query. The results will always be processed through MapServer classes. If you take a second to think about it this is *really* flexible. For example you can use an Oracle "decode" statement to pre-classify entirely in Oracle/SDE and then use simple MapServer classes to asign colors. So this is not quite as all-or-nothing as I had mentioned earlier. MapScript may eventually open even more possibilities such as opening up OSVecDB/SDE spatial operations like buffering to shapes retrieved from anywhere. Steve >>> "Stephen Lime" 12/29/00 22:33 PM >>> Greetings all: I'm screwing around with new code to allow broader support for queries etc. At the heart of this discussion is whether consider SDE as simply a data source or data processor. As it sits the current code utilizes much of the SDE processing engine (eg. SDE based clipping, RDBMS expressions). This leads to very non-general code and potentially confusing configuration. SDE is sort of special in this case. I'm leaning to using SDE simply as another datasource, relying on mapserver functions to project, clip, classify and query. I believe consistency is important and I really don't want to change the rules for different data sources. Understanding that MapServer expressions are ripe for optimization and expansion (eg. functions), how many users would this decision impact? Given that a full SDE implementation hasn't been out there anyway I would hope not many. Have a good new year... Steve From teb at mallit.fr.umn.edu Tue Jan 2 10:35:31 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 2 Jan 2001 12:35:31 -0600 (CST) Subject: FWD: Mapinfo Message-ID: <200101021835.MAA01356@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- Date: Mon, 01 Jan 2001 13:38:21 -0500 From: root X-Accept-Language: en MIME-Version: 1.0 To: mapserver-info at lists.gis.umn.edu Subject: Mapinfo Content-Transfer-Encoding: 7bit Hi, I just installed mapserver from a nightly build with PHP4 support, GDAL v1.1.1, TIFF, etc. I have PHP using mapscript and can call on the files from the mapserver demo, but I need to access some .tab files. I created a new .map file to use the files that I am testing with. I contains (roughly) # Start of Map File NAME City STATUS ON SIZE 600 600 UNITS METERS SHAPEPATH "data" LAYER NAME country STATUS DEFAULT CONNECTIONTYPE OGR DATA canada.tab END But I am getting a blank image file. Any Suggestions. -- Joseph Archibald Archtech Computers/National Amiga 101-111 Waterloo St London, Ont, N6B 2M4 Canada ph: 519 858-8760 fax: 519 858-8762 ------------- End Forwarded Message ------------- From morissette at dmsolutions.ca Tue Jan 2 12:55:59 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 02 Jan 2001 15:55:59 -0500 Subject: FWD: Mapinfo References: <200101021835.MAA01356@mallit.fr.umn.edu> Message-ID: <3A52405F.993F5B9C@dmsolutions.ca> > Hi, > I just installed mapserver from a nightly build with PHP4 support, > GDAL v1.1.1, TIFF, etc. > > I have PHP using mapscript and can call on the files from the mapserver > demo, but I need to access some .tab files. I created a new .map file > to use the files that I am testing with. I contains (roughly) > > # Start of Map File > NAME City > STATUS ON > SIZE 600 600 > UNITS METERS > SHAPEPATH "data" > > LAYER > NAME country > STATUS DEFAULT > CONNECTIONTYPE OGR > DATA canada.tab > END > > But I am getting a blank image file. > > Any Suggestions. > With CONNECTIONTYPE OGR or SDE, the "DATA" and "SHAPEPATH" parameters are ignored. You have to use the CONNECTION parameter instead. For OGR, the CONNECTION parameter value should be the path to the data file relative to the location of the .map file: LAYER NAME country STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION data/canada.tab END -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From bomek at egeolog.com Wed Jan 3 06:30:55 2001 From: bomek at egeolog.com (=?iso-8859-1?q?Fr=E9d=E9ric=20Marchand?=) Date: Wed, 3 Jan 2001 09:30:55 -0500 Subject: Opacity, Gdal, OGR, MapInfo and projections... Message-ID: <01010309305500.26273@churup> Hello there! MapServer run great! But there is still some questions i asked me. I would like to know if MapServer support Opacity (or transparency) for shapefile. I mean, i have a region shapefile over a geotiff and i would like to see the tiff under region (which is opaque) Also, when you zoom in the raster, it become very pixelized and since openev blur the raster when you zoom in and it use gdal, i was wondering if MapServer can do that. And with the projection, some of them make segfault mapserver (like Boggs Euphormic) and some take years to render (like Mercator or UTM). I mean years, cause i never seen the rendered map!! And at last, i have seen a post to how to use OGR with .tab, but i lost the post... (i use kmail instead of mailx now... :-)). I did that so far: LAYER NAME test STATUS ON CONNECTIONTYPE OGR DATA data/W80w56N63n45.tab END Sorry for the bad english and thanks a lot! Fred From teb at mallit.fr.umn.edu Wed Jan 3 06:37:44 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 3 Jan 2001 08:37:44 -0600 (CST) Subject: FWD: Item not found ... Message-ID: <200101031437.IAA01676@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Gleydson G. Valim Ribeiro" To: Subject: Item not found ... Date: Wed, 3 Jan 2001 10:19:37 -0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Hello: I had tried run the mapserver and a error had appeared. The error was: msFindRecords(): DBASE file error. Item cty_name not found. I really don't know what to do... Can anybody help me? I'm using NT-IIS. Sincerely, Gleydson Ribeiro ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Wed Jan 3 06:55:34 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 03 Jan 2001 09:55:34 -0500 Subject: PHP/Mapscript and PHP 4.04 References: Message-ID: <3A533D66.A62C6E6A@dmsolutions.ca> Joel Anderson wrote: > > Has anyone had any luck getting php/mapscript working with php 4.04? I've > pulled a nightly build to attempt this, but to no avail. Any advice is much > appreciated! > Joel, The location of the php_config.h file has changed in PHP 4.0.4 and the configure script could not find it. I have updated the configure script and you should be able to compile PHP/MapScript using tomorrow's nightly build (or today's CVS source). Other than that, PHP/MapScript seems to work well with PHP4.0.4 for me. Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Wed Jan 3 07:52:26 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 03 Jan 2001 10:52:26 -0500 Subject: Opacity, Gdal, OGR, MapInfo and projections... References: <01010309305500.26273@churup> Message-ID: <3A534ABA.AAB97C28@dmsolutions.ca> Fr?d?ric Marchand wrote: > > I would like to know if MapServer support Opacity (or transparency) for > shapefile. I mean, i have a region shapefile over a geotiff and i would like > to see the tiff under region (which is opaque) > You could use a symbol to fill your polygons, and by playing with the density of the symbols, then you can control the level of opacity. We've done that before and it gives very cool results... I think it was using a dot symbol but I'm not sure... Email me directly if you need more details. > Also, when you zoom in the raster, it become very pixelized and since openev > blur the raster when you zoom in and it use gdal, i was wondering if > MapServer can do that. > Actually, MapServer does not use GDAL yet... but we'll add it sometimes in the next few months. BTW I don't think it's GDAL that does the blur in OpenEV... Frank W. can probably confirm that. > And at last, i have seen a post to how to use OGR with .tab, but i lost the > post... (i use kmail instead of mailx now... :-)). I did that so far: > I attached a simple .map file that loads a canada.tab file in lat/lon coordinates... it works well with the test_draw_map.phtml script that comes in the mapserver/mapscript/php3/examples directory, assuming that you've compiled OGR into your php_mapscript.so, of course. Note that the resulting map will be very ugly... but it at least shows how to use OGR in MapServer! :) Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. # # Start of map file # NAME DEMO STATUS ON SIZE 400 300 # This is the extents for the canada.tab file in lat/lon EXTENT -52.6855 41.7072 -140.993 83.1159 UNITS DD #SHAPEPATH "../data" IMAGECOLOR 255 255 255 #LABELOVERLAP FALSE # # Start of web interface definition # WEB IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END LAYER NAME country TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION data/canada.tab CLASS COLOR 0 255 0 OUTLINECOLOR 0 0 0 END END END # Map File From joela at joelhq.com Wed Jan 3 09:13:39 2001 From: joela at joelhq.com (Joel Anderson) Date: Wed, 3 Jan 2001 11:13:39 -0600 Subject: Raster Image Questions Message-ID: <007401c075a8$844083f0$1500a8c0@monster> Hello All! Ok, calling all raster gurus out there: I've got a problem I hope someone can help me with! I've got a bunch of USGS DOQs (both in BIL and jpeg(COQ) format) I'd like to display in a couple of different ways: 1. I'd like to be able to create a raster layer and display an individual DOQ (COQ) in jpeg format, and 2. I'd like to be create a shapefile to tile a series of DOQs(COQ), again in jpeg format (say, a township or county). Unfortunately, I've not had any luck with either. I have created world files for these (which I'm not 100% confident in), using Todd Poston's qdir extension. I'm also wondering if I should be using a projection scheme here, but I'm not familiar with using projections in mapserver, or with proj4. At any rate, I've still got something broken, and am unsure how to proceed. I've been searching the archives for others who have attempted this, and have found bits and pieces (so I guess it's possible), but I think I am still missing something (the first clue was no images displaying...). I was hoping some kind soul would be gracious enough to walk me through the steps necessary to make these scenarios work. If anyone can help me out with this, I'll fedex my right arm this afternoon. Joel Anderson -------------- next part -------------- An HTML attachment was scrubbed... URL: From vanderwalm at peligroso.gaiaenv.com Wed Jan 3 09:40:38 2001 From: vanderwalm at peligroso.gaiaenv.com (Mel VanderWal) Date: Wed, 3 Jan 2001 10:40:38 -0700 Subject: Raster Image Questions In-Reply-To: <007401c075a8$844083f0$1500a8c0@monster> Message-ID: Joel; Here's a little Avenue script that will build the tile theme for you. It will add all the images in a view to the theme, and assign the image's filename (without directories) to a 'Source' field in it's table. '--Start Script theView = av.GetActiveDoc theFN = FileDialog.Put("imgtile.shp".AsFileName, "*.shp", "Save Image Tiles") if (theFN = nil) then return nil end theFTab = FTab.MakeNew(theFN, Polygon) theFTab.AddFields({Field.Make("Source", #FIELD_CHAR, 64, 0)}) for each theTheme in theView.GetThemes if (theTheme.Is(ITheme)) then theNewRec = theFTab.AddRecord theFTab.SetValue(theFTab.FindField("Shape"), theNewRec, theTheme.ReturnExtent.AsPolygon) theFTab.SetValue(theFTab.FindField("Source"), theNewRec, theTheme.GetSrcName.GetFileName.GetBaseName) end end theFTab.SetEditable(false) theView.AddTheme(FTheme.Make(theFTab)) '--End Script -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Joel Anderson Sent: Wednesday, January 03, 2001 10:14 AM To: mapserver-users at lists.gis.umn.edu Subject: Raster Image Questions Hello All! Ok, calling all raster gurus out there: I've got a problem I hope someone can help me with! I've got a bunch of USGS DOQs (both in BIL and jpeg(COQ) format) I'd like to display in a couple of different ways: 1. I'd like to be able to create a raster layer and display an individual DOQ (COQ) in jpeg format, and 2. I'd like to be create a shapefile to tile a series of DOQs(COQ), again in jpeg format (say, a township or county). Unfortunately, I've not had any luck with either. I have created world files for these (which I'm not 100% confident in), using Todd Poston's qdir extension. I'm also wondering if I should be using a projection scheme here, but I'm not familiar with using projections in mapserver, or with proj4. At any rate, I've still got something broken, and am unsure how to proceed. I've been searching the archives for others who have attempted this, and have found bits and pieces (so I guess it's possible), but I think I am still missing something (the first clue was no images displaying...). I was hoping some kind soul would be gracious enough to walk me through the steps necessary to make these scenarios work. If anyone can help me out with this, I'll fedex my right arm this afternoon. Joel Anderson -------------- next part -------------- An HTML attachment was scrubbed... URL: From ksibson at matrix.net Wed Jan 3 11:22:28 2001 From: ksibson at matrix.net (Keith Sibson) Date: Wed, 3 Jan 2001 19:22:28 +0000 (GMT) Subject: Bundling mapserver data in image comment Message-ID: Hi, I'm using an applet wrapper to provide the interface to mapserver, and am passing data values from mapserver to the client through an html template. For example, [img] and [mapext]. This means that every interaction with the server requires two queries, one to get this data and one to download the image. Setting mode=map could reduce this to one query, but I can't compute the new extent on the client side because it depends on several mapfile parameters that are not necessarily uniform across different uses of the client applet. I thought that a way to optimize this could be to pack the necessary data such as map extent into the image comment. This way the image and data could be retrieved with a single query, since Java applets can access image comments. I think JavaScript can too. Mapserver doesn't provide direct support for this, but with the number of mapserver applications out there that use Java and/or JavaScript wrappers, I think this would a feature that could provide excellent performance improvements: * Single HTTP query for single logical map operation. * No need to read and write a temporary file. * Don't need to periodically clean out temp image directories. * Less load on server. * Less load on network. Presumably we would need an IMAGETEMPLATE field in the Web object, that points to a file containing template variables and whatever else. I'm not sure what the character limit in GIF comments are, or if TIFS or JPEGS allow comments. Please let me know what you think, Keith. From mjhoffman at usgs.gov Wed Jan 3 13:23:05 2001 From: mjhoffman at usgs.gov (mjhoffman at usgs.gov) Date: Wed, 3 Jan 2001 15:23:05 -0600 Subject: Can't get Zoom Factor persistent Message-ID: I am working on an interface that uses radio buttons to choose zoom in / zoom out / pan / query and a SELECT list to choose the zoom factor. I have been able to more or less get the radio buttons to stay persistent, but I am having trouble with the template file substitutions for the zoom factor. The substitution [zoom_2_select] always returns "". (Same goes for zoom_4 and zoom_8.) I think I am just a little confused on the syntax of the subs. I looked at previous posts but still couldn't get things working. Also, is there a list of all the CGI variables that MapServer understands? I just realized that the Template File Reference lists the variables that MapServer returns and subs into the HTML of the template file, but these are not necessarily the same as the variables passed to MapServer when a form is submitted. (For example, you can submit a form variable called "zoomsize" to Mapserver but it doesnt return a variable "zoomsize" to the template file when it is done. I am wondering if there is a comprehensive list of the form variables that can be submitted.) My application is at: http://sun4dilurb.er.usgs.gov/cgi-bin/mapserv?map=/export/home/mjhoffman/public_html/gage.map and the template file is http://sun4dilurb.er.usgs.gov/~mjhoffman/gage.html Thanks a bunch, Matt Hoffman _____________________ Matthew J. Hoffman U.S. Geological Survey Water Resources Division Illinois District - Urbana _____________________ From mjhoffman at usgs.gov Wed Jan 3 13:29:22 2001 From: mjhoffman at usgs.gov (mjhoffman at usgs.gov) Date: Wed, 3 Jan 2001 15:29:22 -0600 Subject: How to show query results in new window Message-ID: I am trying to figure out how to get query results display in a second window so the user isnt having to be hitting back all the time. I am just learning Javascript as needed to help out with my Mapsever ap and I am assuming this simple task is done with JS. I understand how to create and manipulate a second window using JS, but havent been able to figure out where the JS fits in with MapServer. If someone can point me to a simple example that does it, I can probably figure out the details. Thanks, Matt Hoffman _____________________ Matthew J. Hoffman U.S. Geological Survey Water Resources Division Illinois District - Urbana _____________________ From datasolutions at nf.sympatico.ca Wed Jan 3 15:25:17 2001 From: datasolutions at nf.sympatico.ca (Larry Nolan) Date: Wed, 3 Jan 2001 19:55:17 -0330 Subject: How to show query results in new window References: Message-ID: <000b01c075dc$6ed399b0$9952a38e@DS> Matt, Have a look at a this example and view the source. http://www.gac-nfld.com/gacmap/nframe.htm Larry Nolan St. John's Newfoundland, Canada ----- Original Message ----- From: To: Sent: Wednesday, January 03, 2001 5:59 PM Subject: How to show query results in new window > I am trying to figure out how to get query results display in a second > window so the user isnt having to be hitting back all the time. I am just > learning Javascript as needed to help out with my Mapsever ap and I am > assuming this simple task is done with JS. I understand how to create and > manipulate a second window using JS, but havent been able to figure out > where the JS fits in with MapServer. If someone can point me to a simple > example that does it, I can probably figure out the details. > > Thanks, > Matt Hoffman > _____________________ > > Matthew J. Hoffman > U.S. Geological Survey > Water Resources Division > Illinois District - Urbana > _____________________ > > From steve.lime at dnr.state.mn.us Wed Jan 3 15:18:39 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 03 Jan 2001 17:18:39 -0600 Subject: Fwd: help with demo Message-ID: An embedded message was scrubbed... From: Alexspringer at aol.com Subject: help with demo Date: Wed, 3 Jan 2001 17:16:28 EST Size: 2026 URL: From herbert at siliconcreation.com Thu Jan 4 03:51:09 2001 From: herbert at siliconcreation.com (Herbert Kwong) Date: Thu, 04 Jan 2001 19:51:09 +0800 Subject: Combine shape files Message-ID: <3A5463AD.F1BE0780@siliconcreation.com> Hi, It is more of an ESRI question than a MapServer question. However, I can't find any hints in ESRI archives, so I hope I can get some help here. I have ArcView GIS only, have you guys seen any ArcView extensions or 3rd party software that can combine several adjacent shape files into one shape file? And is there a performance difference for MapServer to use several smaller shape files or one single larger shape file? Thanks. Regards, Herbert Kwong Silicon Creation Limited -- ******************* Internet Email Confidentiality Footer ******************* Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of Silicon Creation Ltd. shall be understood as neither given nor endorsed by it. From gert-jan.van.der.weijden at aris.nl Thu Jan 4 07:59:27 2001 From: gert-jan.van.der.weijden at aris.nl (Gert-Jan van der Weijden) Date: Thu, 04 Jan 2001 16:59:27 +0100 Subject: Querying using mapscript Message-ID: <3A549DDF.73B9CE1F@aris.nl> Hi all, We're trying to query a layer using a mapscript queryUsingPoint. According to the documentation this finally (via queryResultObject and shapeSesultObject) returns a Shape. How can we retrieve the attributes (fieldvalues) belonging to this shape. Are there mapscript methods to accomplish this, or is this to be done using PHP's dBase module ? Thanks for your reactions, Gert-Jan -- Gert-Jan van der Weijden ________________________________________________________ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Hooghiemstraplein 126 Tel. +31-(0)30-2769180 3514 AZ UTRECHT Fax. +31-(0)30-2733578 The Netherlands E-mail gert-jan.van.der.weijden at aris.nl Http://www.aris.nl ________________________________________________________ From aborruso at spaziogis.it Thu Jan 4 08:57:34 2001 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Thu, 4 Jan 2001 17:57:34 +0100 Subject: 'STYLED'symbol type??? Message-ID: Does still exist use the 'STYLED'symbol type for line symbols? I'm using ms34gif_nightly.zip. I have "getSymbol(): Symbol definition error. (STYLED):(136) ". Thank you, andrea ---------------------------------------------------- Andrea Borruso Nadir s.n.c. Tel 0039 091580305 interno 218 Fax 0039 0916124646 email: aborruso at spaziogis.it www.spaziogis.it ---------------------------------------------------- From aborruso at spaziogis.it Thu Jan 4 09:06:00 2001 From: aborruso at spaziogis.it (aborruso at spaziogis.it) Date: Thu, 4 Jan 2001 18:06:00 +0100 Subject: SYMBOLS??? Message-ID: The webpage http://mapserver.gis.umn.edu/symbolset.html has been written only for 3.3.011 version? How can I build a right symbolset file for ms34gif_nightly version? Thank you, Andrea From morissette at dmsolutions.ca Thu Jan 4 09:24:11 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 04 Jan 2001 12:24:11 -0500 Subject: Querying using mapscript References: <3A549DDF.73B9CE1F@aris.nl> Message-ID: <3A54B1BB.F8D732B9@dmsolutions.ca> Gert-Jan van der Weijden wrote: > > We're trying to query a layer using a mapscript queryUsingPoint. > According to the documentation this finally (via queryResultObject and > shapeSesultObject) > returns a Shape. How can we retrieve the attributes (fieldvalues) > belonging to this shape. > Are there mapscript methods to accomplish this, or is this to be done > using PHP's dBase module ? > Gert-Jan, Yes, you have to use PHP's dBase module to access the attributes. Also important to note is that PHP dBase record numbers start at 1, but MapScript's shape indexes start at 0, so when you read your DBase record, you have to use: $rec = dbase_get_record_with_names($db, $result->shape+1); See also the function GMapDumpQueryResults() in gmap75.php3 in the GMap PHP/MapScript demo for a complete example of dumping attributes of selected shapes. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From cnielsen at co.tillamook.or.us Thu Jan 4 09:29:55 2001 From: cnielsen at co.tillamook.or.us (Chad Nielsen) Date: Thu, 4 Jan 2001 09:29:55 -0800 Subject: Combine shape files In-Reply-To: <3A5463AD.F1BE0780@siliconcreation.com> Message-ID: <000401c07673$f3ff3800$a14368aa@co.tillamook.or.us> Have you tried XTOOLS ? http://gis.esri.com/arcscripts/details.cfm?CFGRIDKEY=4D4DBAEA-25DA-11D4-942E 00508B0CB419 MERGE is one of the tools provided with XTOOLS, here is the Instructions that come with it: Instructions For Merge Themes: MERGE creates a new theme by combining selected features from an input theme with selected features from a user-specified list of merge themes. In either theme, if user selects no features, all features are selected. The output theme contains all selected features from the input and merge theme(s). MERGE does not intersect features. Each selected feature in the input and merge theme(s) is maintained as a separate entity in the output theme. Input theme features can be points, multipoints, polylines, or polygons. However, all merge themes must have the same feature type as the input theme. In other words, you can not use Merge Themes to combine themes with different feature types. Feature tables are also updated. Attributes of the input theme are maintained in the output theme. Each selected shape in the merge theme(s) will have one record in the output theme. Attributes of the merge theme(s) will be transferred to the output theme, for those fields that have names and field types that match a field name and type in the input theme. MERGE automatically updates Area, Perimeter, and Acres fields present in a polygon output theme and updates the length field in a polyline output theme. If these fields are not present in the output theme, the fields are automatically added to the output theme and then updated. Script by Mike DeLaune, (Email: mike.g.delaune at state.or.us), Oregon Department of Forestry, 10/30/97. Edited 7/28/98. Requires: At least two Fthemes in a View with the same feature type. Instructions: 1. Add some themes to the view. 2. If any features in the input or merge themes are selected, Merge will be applied to the selected features. Otherwise, merge will be applied to all features in the theme. 3. Select the Merge Themes menu option. 4. In the first dialog box, select the input theme containing the fields that you want to preserve in the output theme. 5. In the second dialog box, select the theme(s) from the view that you wish to merge with the input theme. 6. In the third dialog box, you will be asked for an output shapefile name for the new theme. > -----Original Message----- > From: owner-mapserver-users at lists.gis.umn.edu > [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Herbert > Kwong > Sent: Thursday, January 04, 2001 3:51 AM > To: mapserver-users at lists.gis.umn.edu > Subject: Combine shape files > > > Hi, > > It is more of an ESRI question than a MapServer question. > However, I can't find > any hints in ESRI archives, so I hope I can get some help here. I > have ArcView > GIS only, have you guys seen any ArcView extensions or 3rd party > software that > can combine several adjacent shape files into one shape file? > And is there a > performance difference for MapServer to use several smaller shape > files or one > single larger shape file? Thanks. > > > Regards, > Herbert Kwong > Silicon Creation Limited > > > -- > ******************* Internet Email Confidentiality Footer > ******************* > > Privileged/Confidential Information may be contained in this > message. If you > are not the addressee indicated in this message (or responsible > for delivery > of the message to such person), you may not copy or deliver this > message to > anyone. In such case, you should destroy this message and kindly > notify the > sender by reply email. Opinions, conclusions and other information in this > message that do not relate to the official business of Silicon > Creation Ltd. > shall be understood as neither given nor endorsed by it. > From swartz at spot.com Thu Jan 4 11:38:33 2001 From: swartz at spot.com (Melanie Swartz) Date: Thu, 4 Jan 2001 14:38:33 -0500 Subject: mapserver sites serving imagery Message-ID: I am curious, who knows of links to websites using MapServer to serve imagery (ortho-photos or satellite imagery). Melanie Melanie Swartz GIS/Image Processing Specialist Remote Sensing Technical Operations ____________________________________________ SPOT Image Corporation 1897 Preston White Drive Reston, VA 20191-4368 http://www.spot.com Tel:703.715.3142 swartz at spot.com ******************************************** From steve.lime at dnr.state.mn.us Thu Jan 4 12:10:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 04 Jan 2001 14:10:22 -0600 Subject: mapserver sites serving imagery Message-ID: The DNR has several examples: http://maps.dnr.state.mn.us/landview/ Serves Landsat (processed to 8-bit), DOQ, DRG and even county plat maps. http://www.ra.dnr.state.mn.us/ Features several interfaces using Landsat (and soon SPOT) imagery. The biggest issue is the need for pre- processing imagery to fit within the 8-bit confines of the GD image library. Despite that the results are most often very useful and popular. Steve >>> Melanie Swartz 01/04/01 13:49 PM >>> I am curious, who knows of links to websites using MapServer to serve imagery (ortho-photos or satellite imagery). Melanie Melanie Swartz GIS/Image Processing Specialist Remote Sensing Technical Operations ____________________________________________ SPOT Image Corporation 1897 Preston White Drive Reston, VA 20191-4368 http://www.spot.com Tel:703.715.3142 swartz at spot.com ******************************************** From Matt.Wilkie at gov.yk.ca Thu Jan 4 12:47:50 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Thu, 4 Jan 2001 12:47:50 -0800 Subject: help with demo Message-ID: <6DD7370C9452D31192A10008C75D075307F238FA@raptor.gov.yk.ca> > That basic page (after clicking initialize) looks good. But > when I click on any of the options to the right, eg refresh/ > query, or cities, a page not found error occurs. Sorry Alex, I've never encountered that problem. I poked around your site a bit and I didn't see anything which looked untoward. This message is cc'd to the list in case somebody else there has an idea. Listers: Alex's .map file can be viewed at http://64.0.86.237/demo.map I initially thought the problem might be with %tmp% permissions, but you can load each of the images directly if you know their name (eg. http://64.0.86.237/tmp/DEMO978622390204.gif; View Source on demo.html and grab the names from the IMG tags). I'm stumped. -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ > -----Original Message----- > From: Alexspringer at aol.com [mailto:Alexspringer at aol.com] > Sent: Thursday, January 04, 2001 12:16 PM > To: Matt.Wilkie at gov.yk.ca > Subject: Re: help with demo > > > Matt -- yes, this was quite helpful. somehow, I totally > missed the readme > ... I read through that, made the file changes and it works: > > http://64.0.86.237/demo_init.html. > > That basic page (after clicking initialize) looks good. But > when I click on > any of the options to the right, eg refresh/query, or cities, > a page not > found error occurs. > > I have looked through the documentation and cannot see the problem. > > Do you see/know the problem? Thank you for your time and help. > From schulz at gaf.de Fri Jan 5 00:45:06 2001 From: schulz at gaf.de (Matthias Schulz) Date: Fri, 05 Jan 2001 09:45:06 +0100 Subject: database access - Progress Message-ID: <3A558992.65109E10@gaf.de> Does anyone have experience with using a Progress database for the attributes besides the geometries stored in shape files? I am thinking of using MapScript and the Perl DBD::ODBC module in combination with some kind of ODBC driver (Merant?) to join the attributes of the Progress database to the shapes. If someone has experience, which ODBC driver do you use and are there other Perl modules, which I could use? Is the general approach correct? Thanks a lot, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schulz at gaf.de URL: http://www.gaf.de From mschulz at webgis.de Fri Jan 5 02:44:20 2001 From: mschulz at webgis.de (Michael Schulz) Date: Fri, 05 Jan 2001 11:44:20 +0100 Subject: Access map-file via php/mapscript Message-ID: <3A55A584.7112FECD@webgis.de> Dear List! We are using MapServer/PHP-Mapscript under Linux. A few days ago I downloaded the MapServer-Win-Binaries and the newest PHP4-MapScript-DLL's and installed them on a Win98-Labtop with Apache as webserver. Under win MapScript shows up as an extension in the php_info-page. Everything's fine so far... but I am not able to access any map-file! Under linux I did: $map = ms_newMapObj("/home/schulzm/mapserver/fr/fr.map"); everything worked fine. Under win I changed it into $map = ms_newMapObj("c:\programme\mapserver\fr\fr.map"); causing PHP to crash. I tried to use relative pathnames and started the php-script from the directory where fr.map resides: $map = ms_newMapObj("fr.map"); then i get a Mapscript error: 'MapServer Error in msLoadMap(): (fr.map) in c:\programme\mapserver\fr\ms_fr.php on line 10'. Hmm? Could anyone give me a useful hint on this newbie problem? TIA Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH Sautierstr. 38, 79104 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From nwerneck at yahoo.com.br Fri Jan 5 06:18:19 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Fri, 5 Jan 2001 11:18:19 -0300 (ART) Subject: Python Mapscript Message-ID: <20010105141819.12711.qmail@web4301.mail.yahoo.com> This is kinda off-topic, but... In the Mapserver homepage, it says that one can create a Python mapserver module using the Perl one... How do I do that? --Nicolau ________________________________________________________________________ Do You Yahoo!? Lembre-se de seus amigos. Envie um cart?o de boas festas! http://br.greetings.yahoo.com From morissette at dmsolutions.ca Fri Jan 5 06:56:18 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 05 Jan 2001 09:56:18 -0500 Subject: Access map-file via php/mapscript References: <3A55A584.7112FECD@webgis.de> Message-ID: <3A55E092.3D58EA97@dmsolutions.ca> Michael Schulz wrote: > > We are using MapServer/PHP-Mapscript under Linux. A few days ago I > downloaded the MapServer-Win-Binaries and the newest > PHP4-MapScript-DLL's and installed them on a Win98-Labtop with Apache > as webserver. > > Under win MapScript shows up as an extension in the php_info-page. > Everything's fine so far... but I am not able to access any map-file! > > Under linux I did: > $map = ms_newMapObj("/home/schulzm/mapserver/fr/fr.map"); > everything worked fine. Under win I changed it into > $map = ms_newMapObj("c:\programme\mapserver\fr\fr.map"); > causing PHP to crash. Michael, I don't think that's the source of your crash, but in PHP, you should escape the "\" character in your filename (just like in C or Perl): $map = ms_newMapObj("c:\\programme\\mapserver\\fr\\fr.map"); But again I don't think this is the reason for the crash... MapScript must have found the file and crashed while it was loading it. > I tried to use relative pathnames and started > the php-script from the directory where fr.map resides: > $map = ms_newMapObj("fr.map"); > then i get a Mapscript error: 'MapServer Error in msLoadMap(): > (fr.map) in c:\programme\mapserver\fr\ms_fr.php on line 10'. > This error message suggests that MapScript could not locate fr.map... but it should have found it since you placed it in the same dir as the ms_fr.php script... so it must be something else then?!? Which version of PHP4 have you installed on your computer? The PHP4-MapScript DLL on our web site is compiled for PHP4.0.3pl1 ... so if you installed another version of PHP4 (e.g. 4.0.4) and replaced your php.exe with the one that was in the ZIP on our site, then that could quite well explain the crash. Please get back to me directly with info about your PHP4 config and we'll see what we can do. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From hdhaan at Delft.nl Fri Jan 5 08:40:54 2001 From: hdhaan at Delft.nl (Herman Tjesse de Haan) Date: Fri, 5 Jan 2001 17:40:54 +0100 Subject: making queries Message-ID: <0D7CF4BC9122D4119E0C0008C78492E5B66819@cs03-e.gemeente.delft.nl> Hi dear mapserver users, Does anyone have experience in selecting features by making a query command? Is this possible? For example: I like to select all companies which are within 200 meters from the railway station and have a permit to sell beer. Is this possible with mapserver? Best regards, Herman de Haan From nwerneck at yahoo.com.br Fri Jan 5 10:00:22 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Fri, 5 Jan 2001 15:00:22 -0300 (ART) Subject: Blank images answers Message-ID: <20010105180022.27070.qmail@web4305.mail.yahoo.com> Hi I'm trying to compile mapserver in my Debian GNU/Linux box, but the resulting program just renders blank images! Everything seems to be working fine. But the map and scalebar images are simply blank! I've compiled it with gd 1.2, and with gd 1.8, but the same thing is happening. What can it be? --Nicolau ________________________________________________________________________ Do You Yahoo!? Lembre-se de seus amigos. Envie um cart?o de boas festas! http://br.greetings.yahoo.com From Michael.Hearne at noaa.gov Fri Jan 5 10:03:51 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Fri, 05 Jan 2001 13:03:51 -0500 Subject: future directions for mapserver Message-ID: <3A560C87.C1A456F4@noaa.gov> MapServer users (and developers) - I'm in the position to recommend using various internet mapping applications. I'm most excited about MapServer, but I have to be practical, so I have some questions that I thought some of you might be able to answer. Steve Lime probably could address all of these, but perhaps others could help? 1) Currently, MapServer is limited to 8 bit imagery. The home page for GD says that full color image support will be available in version 2.0. How long will it take to incorporate that capability into MapServer? (And I'll have to ask the GD folks when 2.0 is coming...) 2) I'm currently working on a project to serve up imagery over the Web. I know that some of you have had success connecting MapServer to ArcSDE for vector data - are there any success stories or plans for future integration with raster data? (I know ArcSDE is a little shaky on imagery, so I don't expect a lot now...) 3) What are the future plans for MapServer? If the NASA funding dries up, or Steve Lime decides to retire, what happens? Is anybody committed to picking up the lead if he goes away? That last question was not for me, but for my manager, who does not share my confidence in open-source software. Thanks! -Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From morissette at dmsolutions.ca Fri Jan 5 10:51:57 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Fri, 05 Jan 2001 13:51:57 -0500 Subject: future directions for mapserver References: <3A560C87.C1A456F4@noaa.gov> Message-ID: <3A5617CD.EEB7FB46@dmsolutions.ca> Michael, Here are answers to some of your questions... Michael Hearne wrote: > > 2) I'm currently working on a project to serve up imagery over the Web. > I know that some of you have had success connecting MapServer to ArcSDE > for vector data - are there any success stories or plans for future > integration with raster data? (I know ArcSDE is a little shaky on > imagery, so I don't expect a lot now...) > We are going to add support for the GDAL library in MapServer in the coming months. I don't think this will give access to SDE rasters, but it will add a bunch of formats... http://www.remotesensing.org/gdal/ > 3) What are the future plans for MapServer? If the NASA funding dries > up, or Steve Lime decides to retire, what happens? Is anybody committed > to picking up the lead if he goes away? > We (DM Solutions Group) have and continue to invest quite a bit in MapServer and OpenSource software in general and we would likely be there to keep MapServer alive if that was to happen. Of course, what you suggest won't happen (nobody would want that!)... but since you asked. :) Best Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From rob at socialchange.net.au Fri Jan 5 11:57:28 2001 From: rob at socialchange.net.au (Rob Atkinson) Date: Sat, 06 Jan 2001 06:57:28 +1100 Subject: future directions for mapserver References: <3A560C87.C1A456F4@noaa.gov> Message-ID: <3A562727.CDC30A4D@socialchange.net.au> I think an equally pertinent question is will mapserver support open standards for interoperable Web Mapping - the OpenGIS Web Map Server standards. Wrappers are possible but native support would be better. http://www.opengis.org This has been mentioned a few times over since release of the specs in April 2000. Regards Rob Atkinson Michael Hearne wrote: > MapServer users (and developers) - I'm in the position to recommend > using various internet mapping applications. I'm most excited about > MapServer, but I have to be practical, so I have some questions that I > thought some of you might be able to answer. Steve Lime probably could > address all of these, but perhaps others could help? > > 1) Currently, MapServer is limited to 8 bit imagery. The home page for > GD says that full color image support will be available in version 2.0. > How long will it take to incorporate that capability into MapServer? > (And I'll have to ask the GD folks when 2.0 is coming...) > > 2) I'm currently working on a project to serve up imagery over the Web. > I know that some of you have had success connecting MapServer to ArcSDE > for vector data - are there any success stories or plans for future > integration with raster data? (I know ArcSDE is a little shaky on > imagery, so I don't expect a lot now...) > > 3) What are the future plans for MapServer? If the NASA funding dries > up, or Steve Lime decides to retire, what happens? Is anybody committed > to picking up the lead if he goes away? > > That last question was not for me, but for my manager, who does not > share my confidence in open-source software. > > Thanks! > > -Mike Hearne > > -- > Michael G. Hearne email: Michael.Hearne at noaa.gov > Coastal Remote Sensing phone: 843 740-1281 > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > 2234 S. Hobson Ave., Charleston, SC 29407 -- _______________________________________________________________ Rob Atkinson Email: rob at socialchange.net.au Director Social Change Online Mob: 0419 202 973 Locked Bag 199 Tel: +61 (0) 2 9692 5133 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia WWW: http://online.socialchange.net.au From SullivanJ at nima.mil Fri Jan 5 12:34:04 2001 From: SullivanJ at nima.mil (Sullivan, James R. ) Date: Fri, 5 Jan 2001 15:34:04 -0500 Subject: future directions for mapserver Message-ID: Think support for the OGC standards for interoperable Web Mapping is a very important direction. Jim Sullivan -----Original Message----- From: Rob Atkinson [SMTP:rob at socialchange.net.au] Sent: Friday, January 05, 2001 2:57 PM To: Michael Hearne Cc: mapserverlist Subject: Re: future directions for mapserver I think an equally pertinent question is will mapserver support open standards for interoperable Web Mapping - the OpenGIS Web Map Server standards. Wrappers are possible but native support would be better. http://www.opengis.org This has been mentioned a few times over since release of the specs in April 2000. Regards Rob Atkinson Michael Hearne wrote: > MapServer users (and developers) - I'm in the position to recommend > using various internet mapping applications. I'm most excited about > MapServer, but I have to be practical, so I have some questions that I > thought some of you might be able to answer. Steve Lime probably could > address all of these, but perhaps others could help? > > 1) Currently, MapServer is limited to 8 bit imagery. The home page for > GD says that full color image support will be available in version 2.0. > How long will it take to incorporate that capability into MapServer? > (And I'll have to ask the GD folks when 2.0 is coming...) > > 2) I'm currently working on a project to serve up imagery over the Web. > I know that some of you have had success connecting MapServer to ArcSDE > for vector data - are there any success stories or plans for future > integration with raster data? (I know ArcSDE is a little shaky on > imagery, so I don't expect a lot now...) > > 3) What are the future plans for MapServer? If the NASA funding dries > up, or Steve Lime decides to retire, what happens? Is anybody committed > to picking up the lead if he goes away? > > That last question was not for me, but for my manager, who does not > share my confidence in open-source software. > > Thanks! > > -Mike Hearne > > -- > Michael G. Hearne email: Michael.Hearne at noaa.gov > Coastal Remote Sensing phone: 843 740-1281 > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > 2234 S. Hobson Ave., Charleston, SC 29407 -- _______________________________________________________________ Rob Atkinson Email: rob at socialchange.net.au Director Social Change Online Mob: 0419 202 973 Locked Bag 199 Tel: +61 (0) 2 9692 5133 Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 Sydney, Australia WWW: http://online.socialchange.net.au From Matt.Wilkie at gov.yk.ca Fri Jan 5 12:44:18 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Fri, 5 Jan 2001 12:44:18 -0800 Subject: future directions for mapserver Message-ID: <6DD7370C9452D31192A10008C75D075307F23E12@raptor.gov.yk.ca> Good questions Mike, I have some of my own I would like to add: Some of you may remember my earlier questions and summary about ArcIMS vs Mapserver: http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0011/msg0 0143.html There were two points brought up which were clearly in ArcIMS's favour which could not be easily addressed or dismissed. 1) Distributed servers and failover architecture: ArcIMS is designed for a multiserver hosting environment, fetching data from any server and passing it on to the browser, and other related sercives/technologies. 2) Serving vector data as well as images: http://x67.deja.com/getdoc.xp?AN=696207202&CONTEXT=978725920.1488191528&hitn um=0 Do note though that I did not find a site taking advantage of this functionality though I was assured some do exist. Now I know Mapserver and ArcIMS are answers to different questions and solutions to different problems, they just happen to share significant overlaps. What I'd like to know is, is Mapserver content with it's current problem domain? (serving images of maps to browsers, displaying selected database records) I'm particularily interested in using a Mapserver-like interface/tool-set to serve data, not just pictures of data. It would be a a year or two before our particular shop could use or implement it, but I do see it as being increasingly more important. Just like XML is becoming more important (read: useful) than html. The OGDI protocol addresses this, but there is not yet an Open Source solution, or even a good closed source client... anyway, that's a sidetrack at the moment. I'm not asking Mapserver developers (ie: Stephen) to tackle this montrous job. I would just like to know if this area has been thought about, and if the architecture of Mapserver allows a "plugin" data server, should such a beast ever be developed, by UMN or anybody else. cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From teb at mallit.fr.umn.edu Fri Jan 5 12:58:32 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 5 Jan 2001 14:58:32 -0600 (CST) Subject: future directions for mapserver Message-ID: <200101052058.OAA04130@mallit.fr.umn.edu> >From: "Sullivan, James R. " >To: "'Rob Atkinson'" , Michael Hearne >Cc: mapserverlist >Subject: RE: future directions for mapserver >Date: Fri, 5 Jan 2001 15:34:04 -0500 > >Think support for the OGC standards for interoperable Web Mapping is a very >important direction. > >Jim Sullivan We agree (mainly). As now stated on the MapServer Home page that work is underway (and of top priority). Tom ======================= Dr. Thomas E. Burk University of Minnesota 1530 Cleveland Avenue North St. Paul, MN 55108 612-624-6741 612-625-5212 (FAX) tburk at forestry.umn.edu > > -----Original Message----- > From: Rob Atkinson [SMTP:rob at socialchange.net.au] > Sent: Friday, January 05, 2001 2:57 PM > To: Michael Hearne > Cc: mapserverlist > Subject: Re: future directions for mapserver > > > I think an equally pertinent question is will mapserver support open > standards for interoperable Web Mapping - the OpenGIS Web Map Server > standards. Wrappers are possible but native support would be better. > > http://www.opengis.org > > > This has been mentioned a few times over since release of the specs >in April > 2000. > > Regards > Rob Atkinson > > Michael Hearne wrote: > > > MapServer users (and developers) - I'm in the position to >recommend > > using various internet mapping applications. I'm most excited >about > > MapServer, but I have to be practical, so I have some questions >that I > > thought some of you might be able to answer. Steve Lime probably >could > > address all of these, but perhaps others could help? > > > > 1) Currently, MapServer is limited to 8 bit imagery. The home >page for > > GD says that full color image support will be available in version >2.0. > > How long will it take to incorporate that capability into >MapServer? > > (And I'll have to ask the GD folks when 2.0 is coming...) > > > > 2) I'm currently working on a project to serve up imagery over the >Web. > > I know that some of you have had success connecting MapServer to >ArcSDE > > for vector data - are there any success stories or plans for >future > > integration with raster data? (I know ArcSDE is a little shaky on > > imagery, so I don't expect a lot now...) > > > > 3) What are the future plans for MapServer? If the NASA funding >dries > > up, or Steve Lime decides to retire, what happens? Is anybody >committed > > to picking up the lead if he goes away? > > > > That last question was not for me, but for my manager, who does >not > > share my confidence in open-source software. > > > > Thanks! > > > > -Mike Hearne > > > > -- > > Michael G. Hearne email: Michael.Hearne at noaa.gov > > Coastal Remote Sensing phone: 843 740-1281 > > TPMC/NOAA Coastal Services Center fax: 843 740-1312 > > 2234 S. Hobson Ave., Charleston, SC 29407 > > -- > _______________________________________________________________ > Rob Atkinson Email: rob at socialchange.net.au > Director > Social Change Online Mob: 0419 202 973 > Locked Bag 199 Tel: +61 (0) 2 9692 5133 > Annandale NSW 2038 Fax: +61 (0) 2 9519 8940 > Sydney, Australia WWW: http://online.socialchange.net.au > From andreag at geoplan.ufl.edu Fri Jan 5 14:27:20 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Fri, 05 Jan 2001 17:27:20 -0500 Subject: mapserver sites serving imagery References: Message-ID: <3A564A48.79250EE0@geoplan.ufl.edu> In about a week we will open this to the public but you can get to it now. http://map2.geoplan.ufl.edu/mapserver/start/thememaps.html >From the Map Theme pull-down you can select the Aerial Photos, DOQQ, DRG24, SPOT or TM maps. Depending on which imagery you are looking at, you have to zoom to a certain scale before it draws. See the Map Notes section in the lower right of each map to know what scale you need to zoom to. Note that this is a work in progress so not everything is implemented yet. Andrea > > I am curious, who knows of links to websites using MapServer to serve > imagery (ortho-photos or satellite imagery). > > Melanie > > Melanie Swartz > GIS/Image Processing Specialist > Remote Sensing Technical Operations > ____________________________________________ > SPOT Image Corporation > 1897 Preston White Drive > Reston, VA 20191-4368 > http://www.spot.com > Tel:703.715.3142 > swartz at spot.com > ******************************************** -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ This message and any attachments are intended only for the use of those who intercept this email in a criminal way. Please misconstrue my words and then publish them as the truth. Thank you. From tpoindex at nyx.net Fri Jan 5 20:05:43 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Fri, 5 Jan 2001 21:05:43 -0700 Subject: MapServer Workbench version 0.3 Message-ID: <20010105210543.43420@nyx.net> I've updated my MapServer Workbench. Grab the latest copy off my web site at: http://www.nyx.net/~tpoindex/gis/ The list of changes is attached below. Most notable is support for Windows. I have also submitted some changes to Steve for building the Mapscript/Tcl interface, which is required by the Workbench. (You can run msedit.tcl without Mapscript.) The updates to Mapscript/Tcl are some configure/Makefile changes, plus all of the Makefiles to build Mapscript for Windows. I'm planning to move my development tree (probably to SourceForge), and I should have a Windows DLL to distribute at that time, hopefully in a few days. In the meanwhile, Unix users should download and build an updated version of Mapserver and Mapscript/Tcl from the 'nightly' CVS build from the Mapserver home pages. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ README.1st: MapServer Workbench release 0.3, January 5, 2001 You should treat the MapServer Workbench as beta quality software. I haven't done extensive testing on a wide variety of mapfiles. Please report bug and enhancement request to me. Or feel free to fix bugs and send me patch files :-) In particular, you should make copies of mapfiles, html, and datafiles that you intend to use with the Workbench. The *.tcl files are quickie installs using /usr/local/bin/wish8.3. You should probably use the 'install.sh' script if possible. Until MapServer 3.4 becomes a stable release, expect MapServer Workbench to lag behind the latest changes. This may mean functionality that works on one 'nightly' MapServer release may break something here on the next release. Known bugs: (many more unknown ones, probably :-) -msappwiz.tcl: Only 'plain' HTML files are in the template directories. If you pick 'Javascript' or 'Java' enhanced pages, the program will fail. Fixes/changes since last release: msedit - added custom icons for tree view for each map object - fixed adding objects twice to parent object - changed to use tree control -user data to hold map mstclobj's - added shortcut keystrokes to invoke functions - added support for windows: startup & dde to other msworkbench tools - removed some prompts when saving to same file name - copy old file to backup when saving msexplorer - remove per window config structure, just use one config - added shortcut keystrokes to invoke functions - added support for windows: startup & dde to other msworkbench tools - fix View menu functions for zoom out, pan, query - write temp gif files to tmp directory - remove prompt when quitting and opening new files msshapex - added shortcut keystrokes to invoke functions - added support for windows: startup & dde to other msworkbench tools - remove prompt when quitting - add menu to pick a label attribute when viewing shapefile - fix arc shapefile type viewing - new button to clear retrieved records msappwiz - added support for windows: startup & dde to other msworkbench tools - don't allow backtracking after file generation - tweaks to mapfile generation: scalebar, legend, etc. - don't re-create other map objs on regeneration - redraw reference image on regeneration - remember directory path when gathering data files setup.tcl - windows installer, uses dde interface to program manager to add a program group and items, thanks Steve Cassidy for the dde code to talk to program manager. etc. From jacquin at geosys-inc.com Fri Jan 5 22:45:26 2001 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Sat, 6 Jan 2001 00:45:26 -0600 Subject: future directions for mapserver In-Reply-To: <6DD7370C9452D31192A10008C75D075307F23E12@raptor.gov.yk.ca> Message-ID: Ok, I didn't want to make it public before some of our customers see that as prime time. But here is what can be done with MapServer and a lot of midnight oil. As usual I cannot release this stuff for free. We must decide what can be given back to the community. Basically, the raster is JPEG (tricked with some gd improvements) and the green lines are roads built with very simple map files. The rest is proprietary. It has some features like quad-tree indexing ... very useful for snapping .. No doc, no help, just prototype. It issues the big question : where is the standard to transfer vector data from server to client ? XML ? GML (not really appropriate). Please be gentle with this poor PII450 with a 128 Kb line. Don't save too much. Saving the changes works. About sharing data ? Not with shape files for sure but with some DB like Frank (W) would like to set up. Next step. Here is the url : http://195.115.79.18/goose/java/goose.html Expect loading about 120Kb of data at 128 kb if you are alone on the server. It takes some time with a 56 kb modem. It takes about 2 mn for first load. Marc PS: comments are welcome -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Matt.Wilkie Sent: Friday, January 05, 2001 2:44 PM To: Michael.Hearne at noaa.gov; mapserverlist Subject: RE: future directions for mapserver Good questions Mike, I have some of my own I would like to add: Some of you may remember my earlier questions and summary about ArcIMS vs Mapserver: http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0011/msg0 0143.html There were two points brought up which were clearly in ArcIMS's favour which could not be easily addressed or dismissed. 1) Distributed servers and failover architecture: ArcIMS is designed for a multiserver hosting environment, fetching data from any server and passing it on to the browser, and other related sercives/technologies. 2) Serving vector data as well as images: http://x67.deja.com/getdoc.xp?AN=696207202&CONTEXT=978725920.1488191528&hitn um=0 Do note though that I did not find a site taking advantage of this functionality though I was assured some do exist. Now I know Mapserver and ArcIMS are answers to different questions and solutions to different problems, they just happen to share significant overlaps. What I'd like to know is, is Mapserver content with it's current problem domain? (serving images of maps to browsers, displaying selected database records) I'm particularily interested in using a Mapserver-like interface/tool-set to serve data, not just pictures of data. It would be a a year or two before our particular shop could use or implement it, but I do see it as being increasingly more important. Just like XML is becoming more important (read: useful) than html. The OGDI protocol addresses this, but there is not yet an Open Source solution, or even a good closed source client... anyway, that's a sidetrack at the moment. I'm not asking Mapserver developers (ie: Stephen) to tackle this montrous job. I would just like to know if this area has been thought about, and if the architecture of Mapserver allows a "plugin" data server, should such a beast ever be developed, by UMN or anybody else. cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From nwerneck at yahoo.com.br Sun Jan 7 05:07:25 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Sun, 7 Jan 2001 10:07:25 -0300 (ART) Subject: getting [mapetx] from item/value searches Message-ID: <20010107130725.21488.qmail@web4301.mail.yahoo.com> Hello again... I'm trying to set up a site with mapserver in a way that, after an item/value search, I can navigate pan/zooing. I've noticed that when I ask for (in example) some city (http://.../mapserv?map=...&item=place&name=Matatu&qlayer=...), the [mapext] expands into the mapext of the map that is rendered when I call mapserv with the mapfile, and no other arguments. Why that? shouldn't the item/value pair mean the same as any other ways of telling the coordinates that we want displayed? like mapxy/scale...? Anyways, I saw the "searchmap" attribute in the CGI reference, and it seems to be exactly what I want. but it didn't work (http://.../mapserv?map=...&item=place&name=Matatu&qlayer=...&searchmap). The map displayed is just perfect, but the [mapext] keeps turning into the old map's mapext... How do we get the new mapext in an item/value search???? thanks!! --Nicolau ________________________________________________________________________ Do You Yahoo!? Lembre-se de seus amigos. Envie um cart?o de boas festas! http://br.greetings.yahoo.com From nicol at online.de Sun Jan 7 11:37:26 2001 From: nicol at online.de (Nicol Hermann) Date: Sun, 7 Jan 2001 20:37:26 +0100 (CET) Subject: Compiling MapServer on SuSE 7.0 Message-ID: <103975657.978896246521.JavaMail.servlet@wm01> Dear List, I?m trying to compile MapServer with php support on suse 7.0. I have configured php 4.0.4 with the following Options. './configure' '--with-mysql' '--with-apache=/home/nicol/programme/apache_1.3.14' '--with-xml' '--enable-track-vars' '--with-gd=/home/nicol/programme/gd-1.8.3' '--with-zib' '--with-ttf' '--mandir' '--with-packages' '--with-ftp' '--with-jpeg-dir' '--with-xpm-dir' '--enable-bcmath' '--with-system-regex' In the next step i run the configuration Script from mapserver with the latest sources from cvs (07.01.2001) with the following parameters ./configure --prefix=/usr/local/mapserver --with-gd=/home/nicol/programme/gd-1.8.3 --with-tiff --with-jpeg --with-eppl --without-ttf --with-php=/home/nicol/programme/php-4.0.4 --with-apache=/usr/local/httpd This proceedure finshed without any errors. Whenever i run the make script it crashes with the message below yacc -p msyy -d -omapparser.c mapparser.y usage: yacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename make: *** [mapparser.c] Error 1 I?ve no idea which problem causes that error. Does anybody out there has the same problem and could give me a hint to this newbie problem? yacc is installed and working fine. Thanks a lot Nicol -- Powered by http://www.einsundeins.com/ From michael.kleih at jrc.it Mon Jan 8 02:35:16 2001 From: michael.kleih at jrc.it (Michael Kleih) Date: Mon, 08 Jan 2001 10:35:16 +0000 Subject: future directions for mapserver References: Message-ID: <3A5997E4.35771C8B@jrc.it> Marc Jacquin wrote: > Ok, > > I didn't want to make it public before some of our customers see that as prime time. But here is what can be done with MapServer and a lot of midnight oil. As usual I cannot release this stuff for free. We must decide what can be given back to the community. > > Basically, the raster is JPEG (tricked with some gd improvements) and the green lines are roads built with very simple map files. The rest is proprietary. It has some features like quad-tree indexing ... very useful for snapping .. No doc, no help, just prototype. > > It issues the big question : where is the standard to transfer vector data from server to client ? XML ? GML (not really appropriate). > I suggest you to use OpenGIS WMS as I am using in my client: http://opengis.jrc.it Between my servers and my client I don't actually transfer vector- data, but using MapServer, I convert it to GIF images. In that way the transfer gets much faster. The OpenGIS WMS protocol as it is implemented in most prototypes until now does it like that, but it also forsees to actually transferring vector data. To get more information about WMS look here: http://www.opengis.org/techno/specs/00-028.pdf Michael From rcohen at dial.oleane.com Mon Jan 8 02:54:14 2001 From: rcohen at dial.oleane.com (Riccardo Cohen) Date: Mon, 08 Jan 2001 10:54:14 +0000 Subject: proportionnal symbols Message-ID: <3A599C56.85903076@dial.oleane.com> Hi, I practice Map Server for a couple of days, and find it very performant to display maps. Our need is to put statistical datas on the map. I began to use CLASS object to change the color. When it is to display rates, it is ok. But when I want to display for example the number of olympic successes at Sydney 2000, the proportionnal symbols is the best, as we did it at http://www.makeyourmap.com/Sydney2000 . Is it possible to display a symbol directly proportionnal to the data without using the class object (which will give the same size for many different values). I could not find any information in the doc and no sample in the gallery. Thanks -- Riccardo Cohen Articque Les Roches 37230 Fondettes France email = rcohen at dial.oleane.com web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49 From jacquin at geosys-inc.com Mon Jan 8 06:19:18 2001 From: jacquin at geosys-inc.com (Marc Jacquin) Date: Mon, 8 Jan 2001 08:19:18 -0600 Subject: future directions for mapserver In-Reply-To: <3A5997E4.35771C8B@jrc.it> Message-ID: Kleith, Seriuosly, how can you edit vector data as GIF images ?? With SVG or CGM you may, I agree with plug-ins. The prototype shows that editing is possible but only by transfering vector data to the client. And when compressed (in this case of 250 fields) it represents only 50 Kb. Marc -----Original Message----- From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-users at lists.gis.umn.edu]On Behalf Of Michael Kleih Sent: Monday, January 08, 2001 4:35 AM To: Marc Jacquin; mapserverlist Subject: Re: future directions for mapserver Marc Jacquin wrote: > Ok, > > I didn't want to make it public before some of our customers see that as prime time. But here is what can be done with MapServer and a lot of midnight oil. As usual I cannot release this stuff for free. We must decide what can be given back to the community. > > Basically, the raster is JPEG (tricked with some gd improvements) and the green lines are roads built with very simple map files. The rest is proprietary. It has some features like quad-tree indexing ... very useful for snapping .. No doc, no help, just prototype. > > It issues the big question : where is the standard to transfer vector data from server to client ? XML ? GML (not really appropriate). > I suggest you to use OpenGIS WMS as I am using in my client: http://opengis.jrc.it Between my servers and my client I don't actually transfer vector- data, but using MapServer, I convert it to GIF images. In that way the transfer gets much faster. The OpenGIS WMS protocol as it is implemented in most prototypes until now does it like that, but it also forsees to actually transferring vector data. To get more information about WMS look here: http://www.opengis.org/techno/specs/00-028.pdf Michael From teb at mallit.fr.umn.edu Mon Jan 8 07:16:25 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 8 Jan 2001 09:16:25 -0600 (CST) Subject: FWD: how to build php/mapscript dll Message-ID: <200101081516.JAA05617@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: chenrg at gtong.net To: Subject: how to build php/mapscript dll Date: Mon, 8 Jan 2001 13:16:17 +0800 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 dear sir, i've used Mapserver V3.0.11 and the newer for several months. I modified gdft/dfttf.c to support GB2132 Chinese code and rebuilt mapserv.exe. it works well. Now i tried php/mapscripts dll, it works if using the win32 binary php3_mapscript.dll (built using php-3.0.14). i have to rebuild the dll to support chinese GB code, but i can't find php-3.0.14 source. so i tried php-3.0.16, php-3.0.17, php-3.0.18, php-4.0.1pl2, php-4.04 to build the mapscript dll, but the dll can not be loaded by php program. The size of the dll i built (using php-3.0.16/17/18) is 1,134,661 bytes, the dll binary (using php-3.0.14, which can be loaded successfully by php) size is 1,130,564 bytes. i don't know the differnces between php-3.0.14 and php-3.0.16. Are there some people can help me how to build php/mapscript.dll? where can i get the php-3.0.14 source? how can i use php-4.0.4 for php/mapscript? many thanks chenrg at dichain.com ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From teb at mallit.fr.umn.edu Mon Jan 8 07:56:12 2001 From: teb at mallit.fr.umn.edu (teb) Date: Mon, 8 Jan 2001 09:56:12 -0600 (CST) Subject: fwd: Questions about DMSolutions Development Efforts Message-ID: <200101081556.JAA05726@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Andy Waxman" To: Subject: Questions about DMSolutions Development Efforts Date: Mon, 8 Jan 2001 10:57:21 -0500 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Daniel, Does your development effort (GDAL support etc) add functionality to the entire MapServ executable or just to your PHP extension? Thanks, Andy Waxman ------------- End Forwarded Message ------------- From michael.kleih at jrc.it Mon Jan 8 09:13:57 2001 From: michael.kleih at jrc.it (Michael Kleih) Date: Mon, 08 Jan 2001 17:13:57 +0000 Subject: future directions for mapserver References: Message-ID: <3A59F555.DE49C321@jrc.it> Marc Jacquin wrote: > Kleith, > > Seriuosly, how can you edit vector data as GIF images ?? With SVG or CGM you may, I agree with plug-ins. The prototype shows that editing is possible but only by transfering vector data to the client. And when compressed (in this case of 250 fields) it represents only 50 Kb. > It IS possible: Each time the user wants to have something changed in his client a request is made to the server to send an updated map. This may seem less effiicient, but to my experience it is much faster, especially with big vector- datasets (yours, with 50kB is rather small, I have datasets with several MBs, which is not unusual). But even in your case, GIF images created from vector data tend to be very small, so we could assume it would be only 10 kB per requested image. This means that your user could request 5 times a modification to his map to have the same "cost" (in Bytes) as transferring your 50 kB vector dataset to your client! Michael From morissette at dmsolutions.ca Mon Jan 8 08:14:28 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 08 Jan 2001 11:14:28 -0500 Subject: FWD: how to build php/mapscript dll References: <200101081516.JAA05617@mallit.fr.umn.edu> Message-ID: <3A59E764.E8009A1E@dmsolutions.ca> > chenrg at gtong.net wrote: > > dear sir, > i've used Mapserver V3.0.11 and the newer for several months. I > modified > gdft/dfttf.c to support GB2132 Chinese code and rebuilt mapserv.exe. > it works > well. Now i tried php/mapscripts dll, it works if using the win32 > binary > php3_mapscript.dll (built using php-3.0.14). i have to rebuild the dll > to > support chinese GB code, but i can't find php-3.0.14 source. so i > tried > php-3.0.16, php-3.0.17, php-3.0.18, php-4.0.1pl2, php-4.04 to build > the > mapscript dll, but the dll can not be loaded by php program. The size > of the > dll i built (using php-3.0.16/17/18) is 1,134,661 bytes, the dll > binary > (using php-3.0.14, which can be loaded successfully by php) size is > 1,130,564 > bytes. i don't know the differnces between php-3.0.14 and php-3.0.16. The php-3.0.16 source should do... we used it before without any problem. You write that your DLL refuses to load. Do you get any error message? Any warning in the apache error_log file? Does it make PHP crash? One important thing if you've modified the GDFT stuff is to make sure that your PHP is not compiled with TTF support because then you could have a conflict between MapServer's GDFT files and PHP's GDFT. > Are > there some people can help me how to build php/mapscript.dll? where > can i get > the php-3.0.14 source? how can i use php-4.0.4 for php/mapscript? > many thanks I could get you a copy of the php-3.0.14 source, but as I wrote above the 3.0.16 source should be OK. About php-4.0.4, it is even trickier to compile on Windows than PHP3... so I suggest that you stick with PHP3 for now. Please send me any error message you get and we'll see what we can do. (Probably a good idea to Email me directly to avoid bugging the list with boring windows build details!) -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Jan 8 08:42:54 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 Jan 2001 10:42:54 -0600 Subject: future directions for mapserver Message-ID: 1) I'd have to see the new GD 2.0 API to know how hard the port will be. I've isolated GD related code intentionally for such port and mapfiles already take 24-bit color so it shouldn't be a bit deal. However, I been inquiring about GD 2.0 for 5 years now and it's still not out so I wouldn't hold my breath. 2) MapServer currently supports TIFF/GeoTiff, ERDAS and EPPL7. Condional PNG/GIF/JPEG support is already there as well. Images can be tiled. There is a plan to use GDAL instead which should only add to supported formats. SDE image support can be added if ESRI publishes the API which I haven't seen yet. 3) While NASA supports some MapServer development they certainly aren't covering it all. It has become a hobby. While I'm not planning retirement you never know when you might get hit by a bus. The user group and the University need to comment on that event. There are commercial interests in the system which can only help with it's long term viability. The best way to deal with this is by encouraging use and expanding the number of developers. There are 3 with CVS write access and a couple of others contributing code. That group needs to expand a bit. Once 3.4 is release that may be a good time to reasses. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Hearne 01/05/01 12:03PM >>> MapServer users (and developers) - I'm in the position to recommend using various internet mapping applications. I'm most excited about MapServer, but I have to be practical, so I have some questions that I thought some of you might be able to answer. Steve Lime probably could address all of these, but perhaps others could help? 1) Currently, MapServer is limited to 8 bit imagery. The home page for GD says that full color image support will be available in version 2.0. How long will it take to incorporate that capability into MapServer? (And I'll have to ask the GD folks when 2.0 is coming...) 2) I'm currently working on a project to serve up imagery over the Web. I know that some of you have had success connecting MapServer to ArcSDE for vector data - are there any success stories or plans for future integration with raster data? (I know ArcSDE is a little shaky on imagery, so I don't expect a lot now...) 3) What are the future plans for MapServer? If the NASA funding dries up, or Steve Lime decides to retire, what happens? Is anybody committed to picking up the lead if he goes away? That last question was not for me, but for my manager, who does not share my confidence in open-source software. Thanks! -Mike Hearne -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From steve.lime at dnr.state.mn.us Mon Jan 8 08:58:23 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 Jan 2001 10:58:23 -0600 Subject: future directions for mapserver Message-ID: 1) MapServer can certainly be used in a multiserver environment. The ability is not built into the core program (not sure it is with ArcIMS either) and would need to be handled using load balancing hardware/software and some mirroring software to keep the sites in sync. It certainly can, and has been done. I posted a perl script based on some stuff written by Chris Stuber to balance mapping across a small server farm. Worked great. You just don't have those admin tools out-of-the-box as with ArcIMS. Perhaps someone wants to work on such. 2) As part of WMT compliance I'm planning to support vector serving using GML in addition to raster outputs. One goal I have is to make the DNR Data Deli a full participant (serving data, images and metadata) of the ESRI Geography Network. This can only be done with WMT and would make us probably the only non-ArcIMS participant. I think MapServer has already moved beyond simple map making and record retrieval. MapScript and PHP/MapScript really allow for a whole new class of applications and utilities to be written. Most users (including myself) haven't even scratched the surface there. Productivity apps like Tom Poindexter's MapServer Workbench really are going to help open things up to a broader audience. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Matt.Wilkie" 01/05/01 02:44PM >>> Good questions Mike, I have some of my own I would like to add: Some of you may remember my earlier questions and summary about ArcIMS vs Mapserver: http://mapserver.gis.umn.edu/cgi-bin/wilma_hiliter/mapserver-users/0011/msg0 0143.html There were two points brought up which were clearly in ArcIMS's favour which could not be easily addressed or dismissed. 1) Distributed servers and failover architecture: ArcIMS is designed for a multiserver hosting environment, fetching data from any server and passing it on to the browser, and other related sercives/technologies. 2) Serving vector data as well as images: http://x67.deja.com/getdoc.xp?AN=696207202&CONTEXT=978725920.1488191528&hitn um=0 Do note though that I did not find a site taking advantage of this functionality though I was assured some do exist. Now I know Mapserver and ArcIMS are answers to different questions and solutions to different problems, they just happen to share significant overlaps. What I'd like to know is, is Mapserver content with it's current problem domain? (serving images of maps to browsers, displaying selected database records) I'm particularily interested in using a Mapserver-like interface/tool-set to serve data, not just pictures of data. It would be a a year or two before our particular shop could use or implement it, but I do see it as being increasingly more important. Just like XML is becoming more important (read: useful) than html. The OGDI protocol addresses this, but there is not yet an Open Source solution, or even a good closed source client... anyway, that's a sidetrack at the moment. I'm not asking Mapserver developers (ie: Stephen) to tackle this montrous job. I would just like to know if this area has been thought about, and if the architecture of Mapserver allows a "plugin" data server, should such a beast ever be developed, by UMN or anybody else. cheers, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From morissette at dmsolutions.ca Mon Jan 8 09:05:47 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 08 Jan 2001 12:05:47 -0500 Subject: fwd: Questions about DMSolutions Development Efforts References: <200101081556.JAA05726@mallit.fr.umn.edu> Message-ID: <3A59F36B.ED7716B9@dmsolutions.ca> "Andy Waxman" wrote: > > Daniel, > > Does your development effort (GDAL support etc) add functionality to the > entire MapServ executable or just to your PHP extension? > GDAL support will be an optional component of the MapServer core, just like SDE and OGR are right now. So it will work with the mapserv CGI and all flavours of MapScript. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From kenboss at dilbert.dnr.state.mn.us Mon Jan 8 09:11:21 2001 From: kenboss at dilbert.dnr.state.mn.us (kenboss) Date: Mon, 8 Jan 2001 11:11:21 -0600 (CST) Subject: getting [mapetx] from item/value searches Message-ID: <200101081711.LAA03965@philbert.dnr.state.mn.us> mapserver is likely simply defaulting to the extent that is defined in your mapfile. To get it to do otherwise, use either the "buffer" or "scale" keywords in your query. Eg.: http://.../mapserv?map=...&item=place&name=Matatu&qlayer=...&scale=100000 or http://.../mapserv?map=...&item=place&name=Matatu&qlayer=...&buffer=5000 --Ken > Date: Sun, 7 Jan 2001 10:07:25 -0300 (ART) > From: Nicolau Werneck > Subject: getting [mapetx] from item/value searches > To: mapserver-users at lists.gis.umn.edu > MIME-Version: 1.0 > Content-Transfer-Encoding: 8bit > > Hello again... > > I'm trying to set up a site with mapserver in a way > that, after an item/value search, I can navigate > pan/zooing. > > I've noticed that when I ask for (in example) some > city > (http://.../mapserv?map=...&item=place&name=Matatu&qlayer=...), > the [mapext] expands into the mapext of the map that > is rendered when I call mapserv with the mapfile, and > no other arguments. > > Why that? shouldn't the item/value pair mean the same > as any other ways of telling the coordinates that we > want displayed? like mapxy/scale...? > > Anyways, I saw the "searchmap" attribute in the CGI > reference, and it seems to be exactly what I want. but > it didn't work > (http://.../mapserv?map=...&item=place&name=Matatu&qlayer=...&searchmap). > The map displayed is just perfect, but the [mapext] > keeps turning into the old map's mapext... > > > How do we get the new mapext in an item/value > search???? > > > thanks!! > --Nicolau > > ________________________________________________________________________ > Do You Yahoo!? > Lembre-se de seus amigos. Envie um cart?o de boas festas! > http://br.greetings.yahoo.com From steve.lime at dnr.state.mn.us Mon Jan 8 10:14:43 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 Jan 2001 12:14:43 -0600 Subject: making queries Message-ID: These types of buffer queries are not supported at the moment. You could accomplish this using MapScript however. For example you could: 1) select all with beer sales permits 2) calculate distance from company to railway MapScript has several distance computation (simple euclidan) methods available for point and shape objects. There may be even other ways to accomplish this but I'll have to think about it a bit more. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Herman Tjesse de Haan 01/05/01 10:40AM >>> Hi dear mapserver users, Does anyone have experience in selecting features by making a query command? Is this possible? For example: I like to select all companies which are within 200 meters from the railway station and have a permit to sell beer. Is this possible with mapserver? Best regards, Herman de Haan From steve.lime at dnr.state.mn.us Mon Jan 8 10:17:04 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 Jan 2001 12:17:04 -0600 Subject: Blank images answers Message-ID: This type of problem is generally either: - an extent problem - layer status (eg. all off) problem - data location problem (i.e. mapserver can't find the shapefiles and the INGNORE_MISSING_DATA flag was included at compile time) Check for those first. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 01/05/01 12:00PM >>> Hi I'm trying to compile mapserver in my Debian GNU/Linux box, but the resulting program just renders blank images! Everything seems to be working fine. But the map and scalebar images are simply blank! I've compiled it with gd 1.2, and with gd 1.8, but the same thing is happening. What can it be? --Nicolau ________________________________________________________________________ Do You Yahoo!? Lembre-se de seus amigos. Envie um cart?o de boas festas! http://br.greetings.yahoo.com From steve.lime at dnr.state.mn.us Mon Jan 8 10:25:48 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 Jan 2001 12:25:48 -0600 Subject: Compiling MapServer on SuSE 7.0 Message-ID: The yacc parser probably won't work with the mapserver grammar. You should've recieved a mapparser.c file in a regular or nightly distribution. Was it missing or did you download directly from the CVS? In any case get and install bison and flex (available many places) and you should be in good shape. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicol Hermann 01/07/01 01:37PM >>> Dear List, I m trying to compile MapServer with php support on suse 7.0. I have configured php 4.0.4 with the following Options. './configure' '--with-mysql' '--with-apache=/home/nicol/programme/apache_1.3.14' '--with-xml' '--enable-track-vars' '--with-gd=/home/nicol/programme/gd-1.8.3' '--with-zib' '--with-ttf' '--mandir' '--with-packages' '--with-ftp' '--with-jpeg-dir' '--with-xpm-dir' '--enable-bcmath' '--with-system-regex' In the next step i run the configuration Script from mapserver with the latest sources from cvs (07.01.2001) with the following parameters ./configure --prefix=/usr/local/mapserver --with-gd=/home/nicol/programme/gd-1.8.3 --with-tiff --with-jpeg --with-eppl --without-ttf --with-php=/home/nicol/programme/php-4.0.4 --with-apache=/usr/local/httpd This proceedure finshed without any errors. Whenever i run the make script it crashes with the message below yacc -p msyy -d -omapparser.c mapparser.y usage: yacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename make: *** [mapparser.c] Error 1 I ve no idea which problem causes that error. Does anybody out there has the same problem and could give me a hint to this newbie problem? yacc is installed and working fine. Thanks a lot Nicol -- Powered by http://www.einsundeins.com/ From steve.lime at dnr.state.mn.us Mon Jan 8 10:38:28 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 08 Jan 2001 12:38:28 -0600 Subject: proportionnal symbols Message-ID: There is no current way to pull symbol size from an attribute column (although under the new 3.4 architecture it will be easy to add). You have a couple of options. You can obviously use CLASS objects to change symbol sizes as you would colors. You could vary both if you wanted based on multiple items, that might result in a large number of classes which could be tough to manage. Is there any reason CLASSes won't work? Looking at the example you sent that would seem to be the ticket. The other option is to develop maps using MapScript were you have total control. You could easily modulate symbol size by an attribute value on a feature-by-feature basis. For moderate sized datasets this wouldn't be that inefficient. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Riccardo Cohen 01/08/01 04:54AM >>> Hi, I practice Map Server for a couple of days, and find it very performant to display maps. Our need is to put statistical datas on the map. I began to use CLASS object to change the color. When it is to display rates, it is ok. But when I want to display for example the number of olympic successes at Sydney 2000, the proportionnal symbols is the best, as we did it at http://www.makeyourmap.com/Sydney2000 . Is it possible to display a symbol directly proportionnal to the data without using the class object (which will give the same size for many different values). I could not find any information in the doc and no sample in the gallery. Thanks -- Riccardo Cohen Articque Les Roches 37230 Fondettes France email = rcohen at dial.oleane.com web = http://www.articque.com tel: +33 02 47 49 90 49 fax: +33 02 47 49 91 49 From chenrg at gtong.net Mon Jan 8 17:00:13 2001 From: chenrg at gtong.net (chenrg at gtong.net) Date: Tue, 9 Jan 2001 09:00:13 +0800 Subject: FWD: how to build php/mapscript dll References: <200101081516.JAA05617@mallit.fr.umn.edu> <3A59E764.E8009A1E@dmsolutions.ca> Message-ID: <001401c079d7$883973d0$6f01a8c0@3sworld> Dear Morissette, Thank you very much for your help. I finally find the php-3.014 source and complied with mapscript/php3. The size of the php3_mapscript.dll (i rebuilt using php-3.014) is also 1,134,661 bytes, but it works. I'm very happy to see the result. I'll modify some source to support GB2132 Chinese code (The original mapserver only supports UTF8 and Big5 code). I've tried IIS4, Apache and iPlanet. Mapserver is very efficent. It is faster than MapXTreme Java V3.0 and ArcIMS V3.0. Our company will try to use MapServer for logistics application (add some network analysis module). Most of our apps are composed of JSP. I wander if mapserver can support JSP. thx. Chen Rongguo Chenrg at Dichain.com Http: //www.Dichain.com ----- Original Message ----- From: "Daniel Morissette" To: Cc: Sent: Tuesday, January 09, 2001 12:14 AM Subject: Re: FWD: how to build php/mapscript dll > > chenrg at gtong.net wrote: > > > > dear sir, > > i've used Mapserver V3.0.11 and the newer for several months. I > > modified > > gdft/dfttf.c to support GB2132 Chinese code and rebuilt mapserv.exe. > > it works > > well. Now i tried php/mapscripts dll, it works if using the win32 > > binary > > php3_mapscript.dll (built using php-3.0.14). i have to rebuild the dll > > to > > support chinese GB code, but i can't find php-3.0.14 source. so i > > tried > > php-3.0.16, php-3.0.17, php-3.0.18, php-4.0.1pl2, php-4.04 to build > > the > > mapscript dll, but the dll can not be loaded by php program. The size > > of the > > dll i built (using php-3.0.16/17/18) is 1,134,661 bytes, the dll > > binary > > (using php-3.0.14, which can be loaded successfully by php) size is > > 1,130,564 > > bytes. i don't know the differnces between php-3.0.14 and php-3.0.16. > > The php-3.0.16 source should do... we used it before without any > problem. > > You write that your DLL refuses to load. Do you get any error message? > Any warning in the apache error_log file? Does it make PHP crash? > > One important thing if you've modified the GDFT stuff is to make sure > that your PHP is not compiled with TTF support because then you could > have a conflict between MapServer's GDFT files and PHP's GDFT. > > > Are > > there some people can help me how to build php/mapscript.dll? where > > can i get > > the php-3.0.14 source? how can i use php-4.0.4 for php/mapscript? > > many thanks > > I could get you a copy of the php-3.0.14 source, but as I wrote above > the 3.0.16 source should be OK. About php-4.0.4, it is even trickier to > compile on Windows than PHP3... so I suggest that you stick with PHP3 > for now. > > Please send me any error message you get and we'll see what we can do. > (Probably a good idea to Email me directly to avoid bugging the list > with boring windows build details!) > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From ycnyon at pd.jaring.my Mon Jan 8 17:57:10 2001 From: ycnyon at pd.jaring.my (Nyon) Date: Tue, 9 Jan 2001 09:57:10 +0800 Subject: future directions for mapserver Message-ID: <200101090154.f091stM25678@smtp3.jaring.my> Hi, 1. When is version 3.4 out ? 2. What are the new features ? Thanks Nyon From morissette at dmsolutions.ca Mon Jan 8 22:35:49 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 09 Jan 2001 01:35:49 -0500 Subject: Win32 builds with OGR, PHP3, and PHP4 Message-ID: <3A5AB145.736C48FE@dmsolutions.ca> There seems to be an increasing number of people who attempted to compile custom versions of MapServer and PHP/MapScript on Windoze without success recently. Unfortunately, building Win32 executables is not very friendly, and you are strongly encouraged to use the pre-compiled binaries if you can. There are win32 binaries for the last stable release (3.3.011) and the latest nightly build on the MapServer web site at: http://mapserver.gis.umn.edu/win32binaries.html And for those who need one of OGR and/or PHP, the win32 binaries on our site were getting quite out of date, so I have placed 2 updated packages: mapserv.exe, and MapScript for PHP3.0.14: http://www2.dmsolutions.ca/mapserver/dl/ms_3.4pr-win32-ogr-php3-20010103.zip MapScript for PHP 4.0.4: http://www2.dmsolutions.ca/mapserver/dl/php4.0.4_mapscript_dll-20010108.zip (should be used with the php-4.0.4-Win32.zip found at http://php.net/) In both cases, the binaries include the following options: - MapServer 3.4 (pre-release) - GD_1_2 - PROJ.4 - FreeType - TIFF - EPPL7 - OGR Enjoy! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From frank.koormann at intevation.de Mon Jan 8 23:32:49 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Tue, 9 Jan 2001 08:32:49 +0100 Subject: Compiling MapServer on SuSE 7.0 In-Reply-To: ; from steve.lime@dnr.state.mn.us on Mon, Jan 08, 2001 at 12:25:48 -0600 References: Message-ID: <20010109083249.A6938@abnoba.intevation.de> Hi Nicol, Stephen, * Stephen Lime (steve.lime at dnr.state.mn.us) [010108 19:43]: > The yacc parser probably won't work with the mapserver grammar. > You should've recieved > a mapparser.c file in a regular or nightly distribution. > Was it missing or did you download directly > from the CVS? In any case get and install bison and flex > (available many places) and you should > be in good shape. > > Steve > > >>> Nicol Hermann 01/07/01 01:37PM >>> > > yacc -p msyy -d -omapparser.c mapparser.y > usage: yacc [-dlrtv] [-b file_prefix] [-p symbol_prefix] filename > make: *** [mapparser.c] Error 1 > As I read the error message and the yacc-manpage the problem seems that yacc can not handle the -o option ?! By default yacc would generate something like y.mapparser.c Nicol, since bison is also in the SuSE 7.0 distribution you should install the package. If the error still occurs, check the variable YACC in the top makefile and set it to "bison -y" if necessary. Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From gruecker at zebris-geoconsult.de Tue Jan 9 02:12:19 2001 From: gruecker at zebris-geoconsult.de (=?iso-8859-1?Q?Gernot_R=FCcker?=) Date: Tue, 9 Jan 2001 11:12:19 +0100 Subject: request for comments - SDE References: Message-ID: <004d01c07a24$a67b6590$0301a8c0@testrechner> Hello Steve, list, I personally think that using SDE as a data processor might have some advantages. Although I never did any programming using the SDE API myself I think that there is a lot of functionallity in it that would be very nice to have access to. We are thinking about using MapServer and ArcSDE to serve a large amount of data over the net. This data should be accessed by users using RDBMS and locational queries. Anyway, I did not yet get to play some more withg it to get a deeper understanding on how map server and SDE work together - so maybe I am not yet in the position to give a fully qualified comment on this. I would also like to know if there are any plans on providing access to the Oracle Spatial Data Object datatype. Gernot ----- Original Message ----- From: Stephen Lime To: Sent: Saturday, December 30, 2000 5:28 AM Subject: request for comments - SDE > Greetings all: I'm screwing around with new code to > allow broader support for queries etc. At the heart of > this discussion is whether consider SDE as simply a > data source or data processor. As it sits the current > code utilizes much of the SDE processing engine (eg. > SDE based clipping, RDBMS expressions). This leads to > very non-general code and potentially confusing > configuration. SDE is sort of special in this case. I'm > leaning to using SDE simply as another datasource, > relying on mapserver functions to project, clip, classify and query. I believe consistency is important > and I really don't want to change the rules for > different data sources. > > Understanding that MapServer expressions are ripe for > optimization and expansion (eg. functions), how many > users would this decision impact? Given that a full > SDE implementation hasn't been out there anyway I would > hope not many. > > Have a good new year... > > Steve > From nwerneck at yahoo.com.br Tue Jan 9 08:59:52 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Tue, 9 Jan 2001 13:59:52 -0300 (ART) Subject: mapxy and scale with img.x and img.y Message-ID: <20010109165952.1644.qmail@web4305.mail.yahoo.com> OK, let's see if I can beat the record of newbie questions! Why don't img.x/y work when whe call a map using mapxy/scale pair instead of mapext? the map i'm calling with mapxy and scale is comming perfectely, but when I use mapxy, scale and img.x/y, the resulting map points somewhere near the guinea gulf (arount the 0,0 point!) I know you may not have the answer. Probably it's jut another stupididy of mine, but writting helps a lot! :> thanks, --Nicolau ________________________________________________________________________ Do You Yahoo!? Lembre-se de seus amigos. Envie um cart?o de boas festas! http://br.greetings.yahoo.com From steve.lime at dnr.state.mn.us Tue Jan 9 09:21:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 09 Jan 2001 11:21:41 -0600 Subject: mapxy and scale with img.x and img.y Message-ID: img.x and img.y (or imgxy) imply the use of an input image, that is, the user is clicking in an image. In order to turn that click into a coordinate you need image size and the extent of the image that was clicked in. mapxy with scale/buffer implies you're NOT using an input image. If you don't supply the imgext parameter (which defaults to -1,-1,-1,-1) you'll end up with some interesting results. Bottom line: mapxy with scale/buffer and mapext are useful for initializing an application or using the software as an image/query engine. Img.x/y or imgxy etc are necessary when doing interactive apps. Be careful mixing the approaches. Steve The 2 techniques are mutually exclusive, with img.x/y taking precedent. Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Nicolau Werneck 01/09/01 10:59AM >>> OK, let's see if I can beat the record of newbie questions! Why don't img.x/y work when whe call a map using mapxy/scale pair instead of mapext? the map i'm calling with mapxy and scale is comming perfectely, but when I use mapxy, scale and img.x/y, the resulting map points somewhere near the guinea gulf (arount the 0,0 point!) I know you may not have the answer. Probably it's jut another stupididy of mine, but writting helps a lot! :> thanks, --Nicolau ________________________________________________________________________ Do You Yahoo!? Lembre-se de seus amigos. Envie um cart?o de boas festas! http://br.greetings.yahoo.com From steve.lime at dnr.state.mn.us Tue Jan 9 20:06:54 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 09 Jan 2001 22:06:54 -0600 Subject: Fwd: script help to connect ip stream to shapefile Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: "David Armstrong" Subject: script help to connect ip stream to shapefile Date: Tue, 9 Jan 2001 23:16:43 -0000 Size: 1626 URL: From root at netshooter.com Sat Jan 20 01:45:24 2001 From: root at netshooter.com (root) Date: Sat, 20 Jan 2001 15:15:24 +0530 (IST) Subject: unsubscribe tusar@netshooter.com In-Reply-To: Message-ID: Please unsubscribe tusar at netshooter.com as this user has left the company long ago. For any further info. or confirmations, please mail to sudhir at netshooter.com From steve.lime at dnr.state.mn.us Wed Jan 10 09:14:14 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 10 Jan 2001 11:14:14 -0600 Subject: request for comments - SDE Message-ID: There may be some specialized support for certain functions (i.e. buffer) if SDE is available. In that case we'd replace my code with ESRI's. Otherwise I guess you'd want to write an SDE only application. MapServer will use SDE for spatial (eg. envelope) queries and limited attribute query. The new code base will give a programmer a short list of functions he/she will have to write to integrate a new data source with the MapServer. Under that scenario it should be easy to add Oracle Spatial support. I myself am not in a position to do that since I don't have that software. I'll gladly help the person(s) that wish to add that support though. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Gernot R?cker 01/09/01 04:12AM >>> Hello Steve, list, I personally think that using SDE as a data processor might have some advantages. Although I never did any programming using the SDE API myself I think that there is a lot of functionallity in it that would be very nice to have access to. We are thinking about using MapServer and ArcSDE to serve a large amount of data over the net. This data should be accessed by users using RDBMS and locational queries. Anyway, I did not yet get to play some more withg it to get a deeper understanding on how map server and SDE work together - so maybe I am not yet in the position to give a fully qualified comment on this. I would also like to know if there are any plans on providing access to the Oracle Spatial Data Object datatype. Gernot ----- Original Message ----- From: Stephen Lime To: Sent: Saturday, December 30, 2000 5:28 AM Subject: request for comments - SDE > Greetings all: I'm screwing around with new code to > allow broader support for queries etc. At the heart of > this discussion is whether consider SDE as simply a > data source or data processor. As it sits the current > code utilizes much of the SDE processing engine (eg. > SDE based clipping, RDBMS expressions). This leads to > very non-general code and potentially confusing > configuration. SDE is sort of special in this case. I'm > leaning to using SDE simply as another datasource, > relying on mapserver functions to project, clip, classify and query. I believe consistency is important > and I really don't want to change the rules for > different data sources. > > Understanding that MapServer expressions are ripe for > optimization and expansion (eg. functions), how many > users would this decision impact? Given that a full > SDE implementation hasn't been out there anyway I would > hope not many. > > Have a good new year... > > Steve > From morissette at dmsolutions.ca Wed Jan 10 10:14:16 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 10 Jan 2001 13:14:16 -0500 Subject: request for comments - SDE References: Message-ID: <3A5CA678.7512312B@dmsolutions.ca> Stephen Lime wrote: > > The new code base will give a programmer a short list of functions he/she will > have to write to integrate a new data source with the MapServer. Under that > scenario it should be easy to add Oracle Spatial support. I myself am not in a > position to do that since I don't have that software. I'll gladly help the person(s) > that wish to add that support though. > Steve, You can get a free developer version of Oracle (including Spatial) if you register at http://technet.oracle.com/ (500MB download) We have done some work with the Java SDO API and may be able to help a little too if someone decides to add Oracle Spatial support in MapServer. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From Matt.Wilkie at gov.yk.ca Wed Jan 10 17:32:25 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Wed, 10 Jan 2001 17:32:25 -0800 Subject: offtopic: win32 default "open with" Message-ID: <6DD7370C9452D31192A10008C75D0753080FE4E0@raptor.gov.yk.ca> Hi All, At one time I had a registry hack which would allow you to change the dreaded "Open With..." item on unregistered file associations to "Open with {favourite text editr}". I've lost it. Anybody know what I'm talking about and what the hack is? thanks, -matt ======================================== Matt Wilkie * GIS Technician * Yukon Renewable Resources GIS http://renres.gov.yk.ca/pubs/rrgis/ From joela at joelhq.com Wed Jan 10 22:23:13 2001 From: joela at joelhq.com (Joel Anderson) Date: Thu, 11 Jan 2001 00:23:13 -0600 Subject: IKONOS Message-ID: <000f01c07b96$f9ee78c0$1500a8c0@monster> Hello! Has anyone had any experience with SI Ikonos 2 data? 1: How do you deal with it (in an Open fashion) 2. How the H*ll long did you have to wait to get a 'real-time' order? Maybe I'm just unlucky... J From bfraser at geoanalytic.com Thu Jan 11 08:28:13 2001 From: bfraser at geoanalytic.com (Brent Fraser) Date: Thu, 11 Jan 2001 09:28:13 -0700 Subject: IKONOS References: <000f01c07b96$f9ee78c0$1500a8c0@monster> Message-ID: <00da01c07beb$7eaa12a0$390002c0@servo> Joel, Here's the response from our Remote Sensing Services dept: "1. Image files are tiled 16 bit geotiff. Some applications, including ERMapper's latest effort seem to work. Once we get it into a bil format we can do whatever needs doing. 2. Real time? In our experience fast delivery is measured in weeks, regular delivery in months. It appears that commercial users requests are not on the priority list." Hope this helps. Brent Fraser bfraser at geoanalytic.com GeoAnalytic Inc. #300 , 700 - 4th Avenue SW Calgary, AB Canada T2P 3J4 Tel: (403)213-2700 Fax: (403)213-2707 www.geoanalytic.com ----- Original Message ----- From: "Joel Anderson" To: "Mapserver List" Sent: Wednesday, January 10, 2001 11:23 PM Subject: IKONOS > Hello! > > Has anyone had any experience with SI Ikonos 2 data? > > 1: How do you deal with it (in an Open fashion) > 2. How the H*ll long did you have to wait to get a 'real-time' order? > > Maybe I'm just unlucky... > > J > From kames at keyspanenergy.com Thu Jan 11 12:11:21 2001 From: kames at keyspanenergy.com (Kieran J. Ames) Date: Thu, 11 Jan 2001 15:11:21 -0500 Subject: Shading polygon shapes by joining to MySQL Message-ID: <3A5E1369.4E9B8583@keyspanenergy.com> Hello All, I'm trying to put all the pieces together, but am surely making little headway. I've set up a .map file that enables me to render Zip Code polygons. I can also shade the polygons using REGEXP expressions. All of this I'm doing with a basic mapserver forms-based app and the mapimage.class applet. I thought I could join the Zip code's .dbf file to another .dbf file and shade the polygons based on one of the fields available via the join. I then discovered that you can't do this... (if I read the mail archives right). The platform I'm on is NT4.0, PHP Version 4.0.3pl1, MapServer Version 3.3.012, MapScript Version (Nov 01, 2000) and MySQL. All are working. I also downloaded the DM Solutions gmap demo package and, aside from the query items portion, it's working just fine. (Nice app, Dan! But, way too complicated for my Intro to Mapscript!) The goal I'm looking for would require, I think, mapscript and php, since I'm on NT. I'd like to show zip code polygons (like I'm doing now), but allow the user to select an attribute from within the MySQL db. eg: Render the Zip Codes from the existing zipcode shape file, and shade them based on the results of the db call. I can get my web-hands on all the data for this via Perl, cgi, web forms, etc. but the rendering has got me stopped in my tracks. Can anyone point me toward an example site that can accomplish such a feat? I don't think it's far-fetched. I just can't figure a way to combine these 2 pieces of functionality. As always, thanks for any assistance. Kieran From tpoindex at nyx.net Thu Jan 11 22:22:11 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Thu, 11 Jan 2001 23:22:11 -0700 Subject: MapServer Workbench now at SourceForge, Windows DLL available Message-ID: <20010111232211.21124@nyx.net> I've started a project at SourceForge to keep my MapServer Workbench. Also, since I have more web space available, there is a package of Mapscript/Tcl that contains a Windows DLL, needed to run MapServer Workbench under Windows. (you still need Tcl/Tk installed.) Screenshots also available to see what you're missing if you haven't yet tried the tools. I don't yet have the files under CVS due to some 'technical difficulties'; that should be fixed soon. I would still prefer to use this mailing list for feedback on the tools, rather than the SourceForge lists. New home: http://msworkbench.sourceforge.net Project page: http://sourceforge.net/projects/msworkbench -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From klinge at spektra.de Fri Jan 12 02:00:00 2001 From: klinge at spektra.de (Karl-Albrecht Klinge) Date: Fri, 12 Jan 2001 11:00:00 +0100 Subject: large datasets Message-ID: <91531C2EF097D94ABD7C10E7E914D3C002057C@victoria.spektra.de> Hi all, we plan to serve large datasets with mapserver. As a first step, we have used the shptree-Tool, and it performes well till ca. 200MB shapefiles. Are there any additional tools or tips You can tell me (ArcSDE is too expensive for us). Thanks, Karl From berend.veldkamp at aris.nl Fri Jan 12 07:49:20 2001 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Fri, 12 Jan 2001 16:49:20 +0100 Subject: legend size + spacing Message-ID: <3A5F2780.CDA96843@aris.nl> Hi, all This is probably a very simple one; MapServer complains about 'size' and 'spacing' in the legend definition. legend label size small type bitmap color 0 0 0 end outlinecolor 0 0 0 size 20 20 spacing 5 10 status on end Bye, Berend -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From berend.veldkamp at aris.nl Fri Jan 12 08:07:39 2001 From: berend.veldkamp at aris.nl (Berend Veldkamp) Date: Fri, 12 Jan 2001 17:07:39 +0100 Subject: legend size + spacing References: Message-ID: <3A5F2BCB.29810DA@aris.nl> That's it, thanks Berend Stephen Lime wrote: > Me thinks its KEYSIZE and KEYSPACING... I suppose the docs need an update. > > Steve > > >>> Berend Veldkamp 01/12/01 09:49AM >>> > Hi, all > This is probably a very simple one; MapServer complains about 'size' and > 'spacing' in the legend definition. > > legend > label > size small > type bitmap > color 0 0 0 > end > outlinecolor 0 0 0 > size 20 20 > spacing 5 10 > status on > end > > Bye, Berend > > -- > -- _________________________________________________ ARIS - Hooghiemstraplein 126 - NL 3514 AZ Utrecht tel. +31 30 2769180 - fax. +31 30 2733578 URL: http://www.aris.nl/ _________________________________________________ From tpoindex at nyx.net Fri Jan 12 08:43:07 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Fri, 12 Jan 2001 09:43:07 -0700 Subject: MapServer Workbench, Windows install Message-ID: <20010112094307.27379@nyx.net> Daniel Morrisett sent this bug report, but I accidently replied directly to him, rather than back to the list: > Also, when I first installed workbench, I tried to place it under > "C:\Program Files", it installed, but never worked. I fixed the > shortcuts that were created in the program group to use quotes around > the path... this allowed the tcl scripts to start at least, but they > gave errors right away, related to Widget something (forgot the exact > name). Perhaps you could add a note in the Windows installation > instructions that the path where workbench is installed should not > contain spaces. Daniel's advice is sound - for now, don't install the Workbench in a directory that contains spaces, like "C:\Program Files". Instead, unpack the archive in C:\msworkbench, or similar until I get this fixed. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From bitner at gyttja.org Fri Jan 12 11:23:16 2001 From: bitner at gyttja.org (David W Bitner) Date: Fri, 12 Jan 2001 13:23:16 -0600 Subject: How to show query results in a new window. Message-ID: <02fe01c07ccd$1d5abe40$6f6c2ec0@yardarm.nohrsc.nws.gov> Displaying query results in a new window -- Using javascript you can set the target object in the form. This can allow you to change the output of a form submission to either a new window or a new frame. In order to do this, you need to be careful to reset the form target for other functions so that you are not constantly sending stuff to new windows. To see how this works, go to: http://www.nohrsc.nws.gov/mapserv/ms_refmp/ The page automatically redirects you to one of two versions depending on your screen size -- if you have a small screen, query results will display in a new window, if you have a large screen query results will display in a frame on the right of the screen. All the scripts I used can be seen using the view source option in your browser. I handle all form submissions through JS so I simply set the form target in each of my functions to make sure everything gets directed to the right place. Any questions, drop me a line. David Bitner ********************************************************************* David William Bitner -- GIS/ Remote Sensing Specialist National Operational Hydrologic Remote Sensing Center National Weather Service, Chanhassen, MN 55317 work: bitner at nws.gov, http://www.nohrsc.nws.gov 952-361-6610 x231, fax: 952-361-6634 personal: bitner at gyttja.org, http://www.gyttja.org 651-335-5232 ********************************************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreag at geoplan.ufl.edu Fri Jan 12 11:54:01 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Fri, 12 Jan 2001 14:54:01 -0500 Subject: formatting numbers Message-ID: <3A5F60D9.4875CDBE@geoplan.ufl.edu> I haven't seen any questions about this: Is there a way with Mapserver to change the format of the numbers brought back from a query on an attribute? All my numbers get displayed in scientific notation like: Number of Farms (1987): 2.200000E+02 Acres of Land in Farms (1987): 2.793700E+04 Percent of County as Land in Farms (1987): 7.399501E+00 Acres of Land in Farms (1982): 3.215600E+04 Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From tpoindex at nyx.net Fri Jan 12 13:17:53 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Fri, 12 Jan 2001 14:17:53 -0700 Subject: Bug Report: MSW, can't read "map": no such variable In-Reply-To: <6DD7370C9452D31192A10008C75D0753080FEDE8@raptor.gov.yk.ca>; from Matt.Wilkie on Fri, Jan 12, 2001 at 12:40:48PM -0800 References: <6DD7370C9452D31192A10008C75D0753080FEDE8@raptor.gov.yk.ca> Message-ID: <20010112141753.03327@nyx.net> On Fri, Jan 12, 2001 at 12:40:48PM -0800, Matt.Wilkie wrote: > The App Wizard sometimes works and sometimes doesn't. It is > more likely to not work when the image type is PNG. It is > more likely to work when the image type is GIF, and it is a > totally new map (eg: new directory with no contents). Thanks for the bug report. This should have been a warning in the README, I'm only supporting GIF at the moment, mainly due to how I'm bulding MapscriptTcl & the fact that GIF support is included in base Tcl/Tk; JPG, PNG, etc. require the Img extension. I put those extra images types in the app builder, but I should make them inactive for now. I'll need to figure out away to find out what which GD lib Mapserver is compiled with, and offer only those same choices. I'm also CC'ing this to the list, it's probably useful to others. Also of note, I'm keeping track of bugs at the sourceforge project page. Feel free to submit bugs there also. -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From Alexspringer Fri Jan 12 13:49:36 2001 From: Alexspringer (Alexspringer) Date: Fri, 12 Jan 2001 16:49:36 EST Subject: Ross Searle's ArcView Interface Message-ID: <62.af19e14.2790d5f0@UNKNOWN> We are attempting to implement Ross Searle's ArcView interface to MapServer using an ordinary NT4 server setup. We cannot get the interface to work. The appropriate image never appears. The problem is thought to be a simple setting or path but all the options attempted have tried have not worked. Has anyone been successful with this that might be able to help us get the settings correct? What might be most helpful is list of the "mapserver default file settings" along with corresponding hard drive folder equivalencies. Thank you. Alex From pi1n1x1 at qwest.net Fri Jan 12 18:05:31 2001 From: pi1n1x1 at qwest.net (Gerald Buckmaster) Date: Fri, 12 Jan 2001 19:05:31 -0700 Subject: Freetype sourcecode Message-ID: Hi Everyone! Very new to the list with a strong interest in building and experimenting with MapServer. After reading (maybe not enough), I am under the assumption I need to compile the FreeType library. For some unknown reason, I cannot FTP or HTTP into freetype.org. Can someone show me an alternate location of the freetype source code, or possibily email the source code to me? TIA *************************************************** * * * Gerald E Buckmaster Jr * * Professional Imagery Analyst * * Webmaster, Imagery Analysis Support Site * * * * www.imagery-analyst.com * * www.buckoptimized.com * * * * 520-615-1307 * * Tucson, Arizona * * * *************************************************** From Ross.Searle at dnr.qld.gov.au Sun Jan 14 16:38:20 2001 From: Ross.Searle at dnr.qld.gov.au (Ross.Searle at dnr.qld.gov.au) Date: Mon, 15 Jan 2001 10:38:20 +1000 Subject: Ross Searle's ArcView Interface Message-ID: Alex, I'm thinking that your problem is that you might be using the png version of the mapserver executable. The java applet doesn't support the png image format so download the gif version of the exe and see how you go. Otherwise it is most likely a path problem. You can check if mapserver is actually creating the images in the temporary directory that you have specified. I am currently finishing off a new version of the utility. The old one wasn't really set up to deal with WinTel environments. I just need a few people to help in the testing. Any volunteers. Ross -----Original Message----- From: Alexspringer at lists.gis.umn.edu [mailto:Alexspringer at lists.gis.umn.edu] Sent: Saturday, 13 January 2001 7:50 To: mapserver-users at lists.gis.umn.edu Subject: Ross Searle's ArcView Interface We are attempting to implement Ross Searle's ArcView interface to MapServer using an ordinary NT4 server setup. We cannot get the interface to work. The appropriate image never appears. The problem is thought to be a simple setting or path but all the options attempted have tried have not worked. Has anyone been successful with this that might be able to help us get the settings correct? What might be most helpful is list of the "mapserver default file settings" along with corresponding hard drive folder equivalencies. Thank you. Alex ************************************************************************ 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 nwerneck at yahoo.com.br Mon Jan 15 04:50:57 2001 From: nwerneck at yahoo.com.br (=?iso-8859-1?q?Nicolau=20Werneck?=) Date: Mon, 15 Jan 2001 09:50:57 -0300 (ART) Subject: mapscriptc.dll Message-ID: <20010115125057.6058.qmail@web4307.mail.yahoo.com> What?s the chance that somebody here has a compiled windows NT mapscript DLL to use with python, and can upload to me?? --Nicolau (can?t use bcc32!) ________________________________________________________________________ Do You Yahoo!? Crie sua pr?pria home page no Yahoo! GeoCities. ? gr?tis e f?cil! http://br.geocities.yahoo.com/ From lehmann at fh-nuertingen.de Mon Jan 15 08:05:01 2001 From: lehmann at fh-nuertingen.de (Dieter Lehmann) Date: Mon, 15 Jan 2001 17:05:01 +0100 Subject: problems with ms_newClassObj Message-ID: <01011517120702.00831@n20908j> Hi there, I get stuck using mapscript/php3. With my attached code I get an "document contains no data". Think, something is wrong with the Class-definition. (using only the map-file without the definitions of a class everything is o.k.). Could someone help me? Thanks ! Dieter ----------------snip---------- $map = ms_newMapObj("ex1.map"); $poLayer = $map->getLayer(0); $nColorId =$map->addColor(244, 0, 0); $poClass = ms_newClassObj($poLayer); $poClass->set("name",testo); $poClass->set("color",255, 0, 0); $poClass->set("outlinecolor",255,0,0); $img = $map->draw(); $url = $img->saveWebImage(0, 0); printf("\n", $url, $map->width, $map->height); ----- and here the map-file ex1.map------ LAYER NAME "test2" DATA gmd STATUS DEFAULT TYPE POLYGON END END -- ___________________________________ Dieter Lehmann University of applied Sciences Schelmenwasen 4-8 D-72622 Nuertingen, Germany lehmann at fh-nuertingen.de Phone: +49 (0) 7022 404 Ext. 192 or Ext. 152 Fax: +49 (0) 7022 404 Ext. 166 From yeewen at petromap.com Mon Jan 15 13:35:51 2001 From: yeewen at petromap.com (Yeewen Sat) Date: Mon, 15 Jan 2001 14:35:51 -0700 Subject: displaying objects based on DBF information Message-ID: Hi, I like to find out if mapserver CGI support this: display objects based on specific DBF information? As an example, DBF file contains a field named ObjectID. And, a map being displayed has bunch of lines in it. When user zoom into the map, all lines that fall inside the bounding rectangle will show up. Is there a way to tell mapserver to draw only those lines that match the given ObjectIDs? The same question applies to mapscript. Can I just pass these lines ObjectIDs to some mapscript functions, and it will only plot these lines? If mapserver cgi or mapscript does supports the above functions, can I get some examples to get me started? Thanks. Yee Wen -------------- next part -------------- An HTML attachment was scrubbed... URL: From yeewen at petromap.com Mon Jan 15 15:14:37 2001 From: yeewen at petromap.com (Yeewen Sat) Date: Mon, 15 Jan 2001 16:14:37 -0700 Subject: show/hide labels Message-ID: Hi, Is there a way to turn off/on labels associated with objects through mapserv CGI? I know that you can set the LABELMAXSCALE to control the labels, but can you specifically instruct mapserv CGI to do that by passing parameters to it? Or, maybe through mapscript? These labels are LABELITEM in LAYER object defined in mapfile. An alternate approach I have in mind is to put the labels on a separate layer than the objects. But, if I can keep it the way it is (ie. same layer), it would be a better solution. Thanks. Yee Wen -------------- next part -------------- An HTML attachment was scrubbed... URL: From deni at gd.itb.ac.id Sat Jan 13 00:53:51 2001 From: deni at gd.itb.ac.id (Deni Suwardhi) Date: Sat, 13 Jan 2001 15:53:51 +0700 Subject: Win32 builds with OGR, PHP3, and PHP4 Message-ID: <005701c07d3e$60135d20$2f2fcda7@gd.itb.ac.id> Hi, i'm new comers for this list. my name Deni Suwardhi. I use mapserv.exe for the demo, but it doesn't work. The message "Unknown identifier (SHADESET)" appears on my explorer. Can you help me to solve this problem ? Deni Suwardhi -------------- next part -------------- An HTML attachment was scrubbed... URL: From morissette at dmsolutions.ca Mon Jan 15 17:56:40 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 15 Jan 2001 20:56:40 -0500 Subject: problems with ms_newClassObj References: <01011517120702.00831@n20908j> Message-ID: <3A63AA58.69C40707@dmsolutions.ca> Dieter Lehmann wrote: > > Hi there, > I get stuck using mapscript/php3. With my attached code I get an "document > contains no data". > Think, something is wrong with the Class-definition. > (using only the map-file without the definitions of a class everything is o.k.). > Dieter, I tried your script and .map file using PHP3 and recent versions (about 1 week old) of MapScript on Linux and Win98, and in both cases it passes the classes part, but returns the following error: Fatal error: MapServer Error in msDrawMap(): Image dimensions not specified. in ex1.phtml on line 16 ... that's because your .map file is missing important parameters like EXTENTS, SIZE, and a WEB object. However, I don't think that explains your crash... because "Document contains no data..." means that the server crashed without generating any output. How old is your PHP/MapScript DLL (or .so) ? It might be a good idea to get a more recent one... either compiling the latest nightly build on Unix, or if you're on Windows there is a recent precompiled PHP3_MAPSCRIPT.DLL that you can download at http://www2.dmsolutions.ca/mapserver/dl/ms_3.4pr-win32-ogr-php3-20010103.zip BTW, setting colors the way you did in the classes would not give the expected results... the color parameter in a class object in a .map file is the RGB value, but in MapScript it is a color index obtained from addColor(). So the following lines in your script: > $poClass->set("color",255, 0, 0); > $poClass->set("outlinecolor",255,0,0); > Should be replaced with: $poClass->set("color", $map->addColor(255, 0, 0) ); $poClass->set("outlinecolor", $map->addColor(255, 0, 0) ); Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Jan 15 19:07:02 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 15 Jan 2001 21:07:02 -0600 Subject: Fwd: Doubts Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: "Alexandre M. Mazzer" Subject: Doubts Date: Mon, 15 Jan 2001 15:21:59 -0200 Size: 2952 URL: From morissette at dmsolutions.ca Mon Jan 15 20:53:13 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 15 Jan 2001 23:53:13 -0500 Subject: Fwd: Doubts References: Message-ID: <3A63D3B9.A13BD0AF@dmsolutions.ca> "Alexandre M. Mazzer" wrote: > > Hello friends! > > I would like to know , how can install Map Server( for Windows 98 > user's). I don't understood, the instructions. Indeed I don't Know how > run VCVARS32.BAT in the DOS. I didn' t find it in the zipped files. > I'm sorry about this basic question, but I'm Oceanographer and I > got some dificulties in this programation languages or something like > that. > Alexandre, You don't have to compile it yourself... just download a precompiled binary from http://mapserver.gis.umn.edu/win32binaries.html it contains a file README.1st with installation instructions. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From lehmann at fh-nuertingen.de Mon Jan 15 23:40:02 2001 From: lehmann at fh-nuertingen.de (Dieter Lehmann) Date: Tue, 16 Jan 2001 08:40:02 +0100 Subject: problems with ms_newClassObj In-Reply-To: <3A63AA58.69C40707@dmsolutions.ca> References: <01011517120702.00831@n20908j> <3A63AA58.69C40707@dmsolutions.ca> Message-ID: <01011608455600.01101@n20908j> Hi Daniel, thanks a lot, I got the nightly built and compiled them - now it is working. I was using the 3.3.011 -Version (that is the most recent one on the web-site instead of the nightly built ones.) Thanks for the tip with the colors! Dieter > Dieter Lehmann wrote: > > > > Hi there, > > I get stuck using mapscript/php3. With my attached code I get an "document > > contains no data". > > Think, something is wrong with the Class-definition. > > (using only the map-file without the definitions of a class everything is o.k.). > > > > Dieter, > > I tried your script and .map file using PHP3 and recent versions (about > 1 week old) of MapScript on Linux and Win98, and in both cases it passes > the classes part, but returns the following error: > > Fatal error: MapServer Error in msDrawMap(): Image dimensions not > specified. in ex1.phtml on line 16 > > ... that's because your .map file is missing important parameters like > EEXTENTS, SIZE, and a WEB object. > > However, I don't think that explains your crash... because "Document > contains no data..." means that the server crashed without generating > any output. How old is your PHP/MapScript DLL (or .so) ? It might be a > good idea to get a more recent one... either compiling the latest > nightly build on Unix, or if you're on Windows there is a recent > precompiled PHP3_MAPSCRIPT.DLL that you can download at > http://www2.dmsolutions.ca/mapserver/dl/ms_3.4pr-win32-ogr-php3-20010103.zip > > BTW, setting colors the way you did in the classes would not give the > expected results... the color parameter in a class object in a .map file > is the RGB value, but in MapScript it is a color index obtained from > addColor(). So the following lines in your script: > > > $poClass->set("color",255, 0, 0); > > $poClass->set("outlinecolor",255,0,0); > > > > Should be replaced with: > > $poClass->set("color", $map->addColor(255, 0, 0) ); > $poClass->set("outlinecolor", $map->addColor(255, 0, 0) ); > > Good Luck! > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. -- ___________________________________ Dieter Lehmann University of applied Sciences Schelmenwasen 4-8 D-72622 Nuertingen, Germany lehmann at fh-nuertingen.de Phone: +49 (0) 7022 404 Ext. 192 or Ext. 152 Fax: +49 (0) 7022 404 Ext. 166 From lehmann at fh-nuertingen.de Tue Jan 16 01:23:00 2001 From: lehmann at fh-nuertingen.de (Dieter Lehmann) Date: Tue, 16 Jan 2001 10:23:00 +0100 Subject: php - setexpression Message-ID: <01011610303303.01101@n20908j> Hi there, this do not work.... $poClass = $poLayer->getClass(0); $poClass->setExpression ("8125048"); this is the error-message: Fatal error: MapServer Error in getSymbol(): (8125048):(63) it's running when I set it up in the map file like this: CLASS NAME test EXPRESSION "8125048" COLOR 0 128 0 END # end of class object I'am able to change with mapscript the colors of this class, but I can't change the expression. I'm using LINUX, and the latest nightly-build sources. (with php3). Any ideas? Dieter -- ___________________________________ Dieter Lehmann University of applied Sciences Schelmenwasen 4-8 D-72622 Nuertingen, Germany lehmann at fh-nuertingen.de Phone: +49 (0) 7022 404 Ext. 192 or Ext. 152 Fax: +49 (0) 7022 404 Ext. 166 From teb at mallit.fr.umn.edu Tue Jan 16 06:45:49 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 16 Jan 2001 08:45:49 -0600 (CST) Subject: FWD: PHP_Mapscript install errors Message-ID: <200101161445.IAA09527@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Peter H.M. Jacobs" Date: Tue, 16 Jan 2001 15:24:26 -0800 To: mapserver-info at lists.gis.umn.edu Subject: PHP_Mapscript install errors MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Dear Daniel and others, I do not seem to be able to get mapscript running. --> system AIX 4.3 --> Apache 1.3.14 --> PHP 4.0.4pl1 --> Perl see below for the Perl -V specification I get an error message called : make: 1254-002 Cannot find a rule to create target = from dependencies. Stop. In my opinion you grep the necessary flags, but as I know AIX is not the most compatible platform. Does anyone have an answer? Regards, Peter PERL -V output ########################################################################### #################################### Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration: Platform: osname=aix, osvers=4.1.5.0, archname=aix uname='aix esther 1 4 00920517a000 ' hint=recommended, useposix=true, d_sigaction=define usethreads=undef useperlio=undef d_sfio=undef Compiler: cc='cc', optimize='-O', gccversion= cppflags='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -I/usr/local/include' ccflags ='-D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -I/usr/local/include' stdchar='unsigned char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8 alignbytes=8, usemymalloc=n, prototype=define Linker and Libraries: ld='ld', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib libs=-ldbm -ldb -ldl -lld -lm -lc -lbsd -lPW libc=/lib/libc.a, so=a, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_aix.xs, dlext=so, d_dlsymun=undef, ccdlflags='-bE:perl.exp' cccdlflags=' ', lddlflags='-bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib' Characteristics of this binary (from libperl): Built under aix Compiled at Nov 26 1998 14:34:21 @INC: /usr/local/lib/perl5/5.00502/aix /usr/local/lib/perl5/5.00502 /usr/local/lib/perl5/site_perl/5.005/aix /usr/local/lib/perl5/site_perl/5.005 make -dA output ################################################################## root at SV00079 /home5/www/prod/src/peter/mapscript/php3 make -dA Global:MAKEFLAGS = -d Global:MAKEFLAGS = -dA Internal (default):MAKE = make Internal (default):AR = ar Internal (default):ARFLAGS = -rv Internal (default):YACC = yacc Internal (default):YFLAGS = Internal (default):LEX = lex Internal (default):LFLAGS = Internal (default):LD = ld Internal (default):LDFLAGS = Internal (default):CC = cc Internal (default):CFLAGS = -O Internal (default):FC = xlf Internal (default):FFLAGS = -O Internal (default):AS = as Internal (default):ASFLAGS = Internal (default):GET = get Internal (default):GFLAGS = Internal (default):CCC = xlC Internal (default):CCFLAGS = -O defining transformation from `.c' to `' inserting .c(2)...at end of list inserting (0)...at end of list transformation .c complete defining transformation from `.c~' to `' inserting .c~(3)...at end of list inserting (0)...at end of list transformation .c~ complete defining transformation from `.f' to `' inserting .f(4)...at end of list inserting (0)...at end of list transformation .f complete defining transformation from `.f~' to `' inserting .f~(5)...at end of list inserting (0)...at end of list transformation .f~ complete defining transformation from `.sh' to `' inserting .sh(12)...at end of list inserting (0)...at end of list transformation .sh complete defining transformation from `.sh~' to `' inserting .sh~(13)...at end of list inserting (0)...at end of list transformation .sh~ complete defining transformation from `.C' to `' inserting .C(16)...at end of list inserting (0)...at end of list transformation .C complete defining transformation from `.C~' to `' inserting .C~(17)...at end of list inserting (0)...at end of list transformation .C~ complete defining transformation from `.c' to `.o' inserting .c(2)...at end of list inserting .o(1)...at end of list transformation .c.o complete defining transformation from `.c~' to `.o' inserting .c~(3)...at end of list inserting .o(1)...at end of list transformation .c~.o complete defining transformation from `.c~' to `.c' inserting .c~(3)...at end of list inserting .c(2)...at end of list transformation .c~.c complete defining transformation from `.C' to `.o' inserting .C(16)...at end of list inserting .o(1)...at end of list transformation .C.o complete defining transformation from `.C~' to `.o' inserting .C~(17)...at end of list inserting .o(1)...at end of list transformation .C~.o complete defining transformation from `.C~' to `.C' inserting .C~(17)...at end of list inserting .C(16)...at end of list transformation .C~.C complete defining transformation from `.s' to `.o' inserting .s(10)...before .C(16) inserting .o(1)...at end of list transformation .s.o complete defining transformation from `.s~' to `.o' inserting .s~(11)...before .C(16) inserting .o(1)...at end of list transformation .s~.o complete defining transformation from `.f' to `.o' inserting .f(4)...before .s(10) inserting .o(1)...at end of list transformation .f.o complete defining transformation from `.f~' to `.o' inserting .f~(5)...before .s(10) inserting .o(1)...at end of list transformation .f~.o complete defining transformation from `.f~' to `.f' inserting .f~(5)...at end of list inserting .f(4)...at end of list transformation .f~.f complete defining transformation from `.y' to `.o' inserting .y(6)...before .s(10) inserting .o(1)...at end of list transformation .y.o complete defining transformation from `.y~' to `.o' inserting .y~(7)...before .s(10) inserting .o(1)...at end of list transformation .y~.o complete defining transformation from `.l' to `.o' inserting .l(8)...before .s(10) inserting .o(1)...at end of list transformation .l.o complete defining transformation from `.l~' to `.o' inserting .l~(9)...before .s(10) inserting .o(1)...at end of list transformation .l~.o complete defining transformation from `.y' to `.c' inserting .y(6)...at end of list inserting .c(2)...at end of list transformation .y.c complete defining transformation from `.y~' to `.c' inserting .y~(7)...at end of list inserting .c(2)...at end of list transformation .y~.c complete defining transformation from `.l' to `.c' inserting .l(8)...at end of list inserting .c(2)...at end of list transformation .l.c complete defining transformation from `.c' to `.a' inserting .c(2)...at end of list inserting .a(18)...at end of list transformation .c.a complete defining transformation from `.c~' to `.a' inserting .c~(3)...at end of list inserting .a(18)...at end of list transformation .c~.a complete defining transformation from `.s~' to `.a' inserting .s~(11)...at end of list inserting .a(18)...at end of list transformation .s~.a complete defining transformation from `.f' to `.a' inserting .f(4)...before .s~(11) inserting .a(18)...at end of list transformation .f.a complete defining transformation from `.f~' to `.a' inserting .f~(5)...before .s~(11) inserting .a(18)...at end of list transformation .f~.a complete defining transformation from `.C' to `.a' inserting .C(16)...at end of list inserting .a(18)...at end of list transformation .C.a complete defining transformation from `.C~' to `.a' inserting .C~(17)...at end of list inserting .a(18)...at end of list transformation .C~.a complete defining transformation from `.h~' to `.h' inserting .h~(15)...at end of list inserting .h(14)...at end of list Global:CC = cc -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -I/usr/local/include -I. -I.. Global:LD = ld -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib -bE:perl.exp Global:CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 Global:RUNPATHS = Global:PHP_SRC_DIR = /home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1 Global:PHP_INC = -I$(PHP_SRC_DIR) -I$(PHP_SRC_DIR)/dl -I$(PHP_SRC_DIR)/main -I$(PHP_SRC_DIR)/Zend -I$(PHP_SRC_DIR)/include -I$(PHP_SRC_DIR)/TSRM -I/home5/www/prod/src/mapserver-cvs-090101/../apache_1.3.14/src/include Global:MS_DEFINE = -DUSE_TTF -DUSE_EPPL -DUSE_TIFF -DUSE_GD_1_2 Global:MS_INC = -I/home5/www/prod/src/mapserver-cvs-090101 -I/home5/www/prod/src/mapserver-cvs-090101/gdft -I/usr/local/include/freetype -I/home5/www/prod/src/mapserver-cvs-090101/gd-1.2 Global:MS_LIBS = $(RUNPATHS) -L/home5/www/prod/src/mapserver-cvs-090101 -lmap -L/home5/www/prod/src/mapserver-cvs-090101/gdft -lgdft -lttf -ltiff -L/home5/www/prod/src/mapserver-cvs-090101/gd-1.2 -lgd -lm Global:PHPMS_OBJS = php_mapscript_util.o php_mapscript.o mapscript_i.o Caching SCCS...done #*** Input graph: # # *** MAIN TARGET *** CFLAGS : = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_TTF -DUSE_EPPL -DUSE_TIFF -DUSE_GD_1_2 -I/home5/www/prod/src/mapserver-cvs-090101 -I/home5/www/prod/src/mapserver-cvs-090101/gdft -I/usr/local/include/freetype -I/home5/www/prod/src/mapserver-cvs-090101/gd-1.2 -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1 -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/dl -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/main -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/Zend -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/include -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/TSRM -I/home5/www/prod/src/mapserver-cvs-090101/../apache_1.3.14/src/include # all : php_mapscript.so # # parents: all php_mapscript.so: php_mapscript_util.o php_mapscript.o mapscript_i.o ../../libmap.a $(LD) -o $@ $(PHPMS_OBJS) $(MS_LIBS) # %.o : %.c php_mapscript_util.h php_mapscript.h $(CC) $(CFLAGS) -c -o $@ $< # clean : -rm -f *.so *.o perl.out # # Files that are only sources: # = [=] # -O2 [-O2] # -Wall [-Wall] # -DCOMPILE_DL=1 [-DCOMPILE_DL=1] # -DPHP4 [-DPHP4] # -DUSE_TTF [-DUSE_TTF] # -DUSE_EPPL [-DUSE_EPPL] # -DUSE_TIFF [-DUSE_TIFF] # -DUSE_GD_1_2 [-DUSE_GD_1_2] # -I/home5/www/prod/src/mapserver-cvs-090101 [-I/home5/www/prod/src/mapserver-cvs-090101] # -I/home5/www/prod/src/mapserver-cvs-090101/gdft [-I/home5/www/prod/src/mapserver-cvs-090101/gdft] # -I/usr/local/include/freetype [-I/usr/local/include/freetype] # -I/home5/www/prod/src/mapserver-cvs-090101/gd-1.2 [-I/home5/www/prod/src/mapserver-cvs-090101/gd-1.2] # -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1 [-I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1] # -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/dl [-I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/dl] # -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/main [-I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/main] # -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/Zend [-I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/Zend] # -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/include [-I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/include] # -I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/TSRM [-I/home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1/TSRM] # -I/home5/www/prod/src/mapserver-cvs-090101/../apache_1.3.14/src/include [-I/home5/www/prod/src/mapserver-cvs-090101/../apache_1.3.14/src/include] # php_mapscript_util.o [php_mapscript_util.o] # php_mapscript.o [php_mapscript.o] # mapscript_i.o [mapscript_i.o] # ../../libmap.a [../../libmap.a] # %.c [%.c] # php_mapscript_util.h [php_mapscript_util.h] # php_mapscript.h [php_mapscript.h] #*** Internal (default) Variables: CCFLAGS = -O CCC = xlC GFLAGS = GET = get ASFLAGS = AS = as FFLAGS = -O FC = xlf CFLAGS = -O CC = cc LDFLAGS = LD = ld LFLAGS = LEX = lex YFLAGS = YACC = yacc ARFLAGS = -rv AR = ar MAKE = make #*** Global Variables: PHPMS_OBJS = php_mapscript_util.o php_mapscript.o mapscript_i.o MS_LIBS = $(RUNPATHS) -L/home5/www/prod/src/mapserver-cvs-090101 -lmap -L/home5/www/prod/src/mapserver-cvs-090101/gdft -lgdft -lttf -ltiff -L/home5/www/prod/src/mapserver-cvs-090101/gd-1.2 -lgd -lm MS_INC = -I/home5/www/prod/src/mapserver-cvs-090101 -I/home5/www/prod/src/mapserver-cvs-090101/gdft -I/usr/local/include/freetype -I/home5/www/prod/src/mapserver-cvs-090101/gd-1.2 MS_DEFINE = -DUSE_TTF -DUSE_EPPL -DUSE_TIFF -DUSE_GD_1_2 PHP_INC = -I$(PHP_SRC_DIR) -I$(PHP_SRC_DIR)/dl -I$(PHP_SRC_DIR)/main -I$(PHP_SRC_DIR)/Zend -I$(PHP_SRC_DIR)/include -I$(PHP_SRC_DIR)/TSRM -I/home5/www/prod/src/mapserver-cvs-090101/../apache_1.3.14/src/include PHP_SRC_DIR = /home5/www/prod/src/mapserver-cvs-090101/../php-4.0.4pl1 RUNPATHS = CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 LD = ld -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(BASEEXT).exp -b noentry -lc -L/usr/local/lib -bE:perl.exp CC = cc -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192 -I/usr/local/include -I. -I.. SHELL = /usr/bin/sh MFLAGS = MAKEFLAGS = -dA #*** Command-line Variables: #*** Directory Cache: # Stats: 0 hits 0 misses 0 near misses 0 losers (0%) # directory referenced hits #*** Suffixes: # `.o' # To: # From: .c .c~ .f .f~ .y .y~ .l .l~ .s .s~ .C .C~ # `.c' # To: .o .a # From: .c~ .y .y~ .l # `.c~' (SCCS) # To: .o .c .a # From: # `.f' # To: .o .a # From: .f~ # `.f~' (SCCS) # To: .o .f .a # From: # `.y' # To: .o .c # From: # `.y~' (SCCS) # To: .o .c # From: # `.l' # To: .o .c # From: # `.l~' (SCCS) # To: .o # From: # `.s' # To: .o # From: # `.s~' (SCCS) # To: .o .a # From: # `.sh' # To: # From: # `.sh~' (SCCS) # To: # From: # `.h' # To: # From: .h~ # `.h~' (SCCS) # To: .h # From: # `.C' # To: .o .a # From: .C~ # `.C~' (SCCS) # To: .o .C .a # From: # `.a' # To: # From: .c .c~ .f .f~ .s~ .C .C~ #*** Transformations: .c : $(CC) $(CFLAGS) $(LDFLAGS) $< -o $@ .c~ : $(GET) $(GFLAGS) -p $< > $*.c $(CC) $(CFLAGS) $(LDFLAGS) $*.c -o $* -rm -f $*.c .f : $(FC) $(FFLAGS) $(LDFLAGS) $< -o $@ .f~ : $(GET) $(GFLAGS) -p $< > $*.f $(FC) $(FFLAGS) $(LDFLAGS) $*.f -o $* -rm -f $*.f .sh : cp $< $@; chmod a+x $@ .sh~ : $(GET) $(GFLAGS) -p $< > $*.sh cp $*.sh $*; chmod a+x $@ -rm -f $*.sh .C : $(CCC) $(CCFLAGS) $(LDFLAGS) $< -o $@ .C~ : $(GET) $(GFLAGS) -p $< > $*.C $(CCC) $(CCFLAGS) $(LDFLAGS) $*.C -o $* -rm -f $*.C .c.o : $(CC) $(CFLAGS) -c $< .c~.o : $(GET) $(GFLAGS) -p $< > $*.c $(CC) $(CFLAGS) -c $*.c -rm -f $*.c .c~.c : $(GET) $(GFLAGS) -p $< > $*.c .C.o : $(CCC) $(CCFLAGS) -c $< .C~.o : $(GET) $(GFLAGS) -p $< > $*.C $(CCC) $(CCFLAGS) -c $*.C -rm -f $*.C .C~.C : $(GET) $(GFLAGS) -p $< > $*.C; chmod 444 $*.C .s.o : $(AS) $(ASFLAGS) -o $@ $< .s~.o : $(GET) $(GFLAGS) -p $< > $*.s $(AS) $(ASFLAGS) -o $*.o $*.s -rm -f $*.s .f.o : $(FC) $(FFLAGS) -c $< .f~.o : $(GET) $(GFLAGS) -p $< > $*.f $(FC) $(FFLAGS) -c $*.f -rm -f $*.f .f~.f : $(GET) $(GFLAGS) -p $< > $@ .y.o : $(YACC) $(YFLAGS) $< $(CC) $(CFLAGS) -c y.tab.c rm y.tab.c mv y.tab.o $@ .y~.o : $(GET) $(GFLAGS) -p $< > $*.y $(YACC) $(YFLAGS) $*.y $(CC) $(CFLAGS) -c y.tab.c rm -f y.tab.c $*.y mv y.tab.o $*.o .l.o : $(LEX) $(LFLAGS) $< $(CC) $(CFLAGS) -c lex.yy.c rm lex.yy.c mv lex.yy.o $@ .l~.o : $(GET) $(GFLAGS) -p $< > $*.l $(LEX) $(LFLAGS) $*.l $(CC) $(CFLAGS) -c lex.yy.c rm -f lex.yy.c $*.l mv lex.yy.o $*.o .y.c : $(YACC) $(YFLAGS) $< mv y.tab.c $@ .y~.c : $(GET) $(GFLAGS) -p $< > $*.y $(YACC) $(YFLAGS) $*.y mv y.tab.c $*.c -rm -f $*.y .l.c : $(LEX) $< mv lex.yy.c $@ .c.a : $(CC) -c $(CFLAGS) $< $(AR) $(ARFLAGS) $@ $*.o rm -f $*.o .c~.a : $(GET) $(GFLAGS) -p $< > $*.c $(CC) -c $(CFLAGS) $*.c $(AR) $(ARFLAGS) $@ $*.o rm -f $*.[co] .s~.a : $(GET) $(GFLAGS) -p $< > $*.s $(AS) $(ASFLAGS) -o $*.o $*.s $(AR) $(ARFLAGS) $@ $*.o -rm -f $*.[so] .f.a : $(FC) -c $(FFLAGS) $< $(AR) $(ARFLAGS) $@ $*.o rm -f $*.o .f~.a : $(GET) $(GFLAGS) -p $< > $*.f $(FC) -c $(FFLAGS) $*.f $(AR) $(ARFLAGS) $@ $*.o rm -f $*.[fo] .C.a : $(CCC) -c $(CCFLAGS) $< $(AR) $(ARFLAGS) $@ $*.o rm -f $*.o .C~.a : $(GET) $(GFLAGS) -p $< > $*.C $(CCC) -c $(CCFLAGS) $*.C $(AR) $(ARFLAGS) $@ $*.o rm -f $*.[Co] .h~.h : $(GET) $(GFLAGS) -p $< > $*.h Suff_FindDeps (CFLAGS) No known suffix on CFLAGS. Using .NULL suffix. trying CFLAGS.c...failed. Returning NULL not there trying s.CFLAGS.c...failed. Returning NULL not there trying CFLAGS.f...failed. Returning NULL not there trying s.CFLAGS.f...failed. Returning NULL not there trying CFLAGS.sh...failed. Returning NULL not there trying s.CFLAGS.sh...failed. Returning NULL not there trying CFLAGS.C...failed. Returning NULL not there trying s.CFLAGS.C...failed. Returning NULL not there trying s.CFLAGS.c...failed. Returning NULL not there trying CFLAGS.y...failed. Returning NULL not there trying s.CFLAGS.y...failed. Returning NULL not there trying CFLAGS.l...failed. Returning NULL not there trying s.CFLAGS.f...failed. Returning NULL not there trying s.CFLAGS.C...failed. Returning NULL not there CFLAGS:@ = CFLAGS CFLAGS:* = CFLAGS CFLAGS:< = failed. Returning NULL Suff_FindDeps (=) No known suffix on =. Using .NULL suffix. trying =.c...failed. Returning NULL not there trying s.=.c...failed. Returning NULL not there trying =.f...failed. Returning NULL not there trying s.=.f...failed. Returning NULL not there trying =.sh...failed. Returning NULL not there trying s.=.sh...failed. Returning NULL not there trying =.C...failed. Returning NULL not there trying s.=.C...failed. Returning NULL not there trying s.=.c...failed. Returning NULL not there trying =.y...failed. Returning NULL not there trying s.=.y...failed. Returning NULL not there trying =.l...failed. Returning NULL not there trying s.=.f...failed. Returning NULL not there trying s.=.C...failed. Returning NULL not there =:@ = = =:* = = =:< = failed. Returning NULL Examining =...non-existent...non-existent and no sources...out-of-date. =:? = =:> = make: 1254-002 Cannot find a rule to create target = from dependencies. Stop. ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Tue Jan 16 06:48:41 2001 From: teb at mallit.fr.umn.edu (teb) Date: Tue, 16 Jan 2001 08:48:41 -0600 (CST) Subject: FWD: mapserv problems Message-ID: <200101161448.IAA09538@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Dan Bertrand" To: Subject: mapserv problems Date: Tue, 16 Jan 2001 03:22:21 -0700 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Hi, Any idea why I can't see any images when I run the mapserv demo? I get the correct test output: http://www.smartcanuk.com/cgi-bin/mapserv gives me: No query information to decode. QUERY_STRING is set, but empty. (http://www.smartcanuk.com/gis/demo.html) regards, Dan Bertrand ------------- End Forwarded Message ------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at dnr.state.mn.us Tue Jan 16 08:20:07 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 Jan 2001 10:20:07 -0600 Subject: formatting numbers Message-ID: MapServer internally treats everything as a string so that's what's coming from the xbase code. May be dependent on the number of decimals allowed for that attribute. One way would be to filter the MapServer output through JavaScript, for example in your template: Or something similar. Let me think about it a bit more. It's likely that a modification to DBFReadAttribute() in mapxbase.c specific to floating point columns would have to be made. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 01/12/01 01:54PM >>> I haven't seen any questions about this: Is there a way with Mapserver to change the format of the numbers brought back from a query on an attribute? All my numbers get displayed in scientific notation like: Number of Farms (1987): 2.200000E+02 Acres of Land in Farms (1987): 2.793700E+04 Percent of County as Land in Farms (1987): 7.399501E+00 Acres of Land in Farms (1982): 3.215600E+04 Thanks, Andrea -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ From steve.lime at dnr.state.mn.us Tue Jan 16 08:38:47 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 Jan 2001 10:38:47 -0600 Subject: displaying objects based on DBF information Message-ID: This is what class objects are for. You can use class expressions to restrict display to certain sets of features or to change the display characteristics (eg. color/size/symbol) for each "class". I've attached a map file that I use to draw different highway shields based on an item value. Look at the definitions for "major_roads". Steve >>> "Yeewen Sat" 01/15/01 03:35PM >>> Hi, I like to find out if mapserver CGI support this: display objects based on specific DBF information? As an example, DBF file contains a field named ObjectID. And, a map being displayed has bunch of lines in it. When user zoom into the map, all lines that fall inside the bounding rectangle will show up. Is there a way to tell mapserver to draw only those lines that match the given ObjectIDs? The same question applies to mapscript. Can I just pass these lines ObjectIDs to some mapscript functions, and it will only plot these lines? If mapserver cgi or mapscript does supports the above functions, can I get some examples to get me started? Thanks. Yee Wen Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 -------------- next part -------------- A non-text attachment was scrubbed... Name: view.map Type: application/octet-stream Size: 5193 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue Jan 16 08:54:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 Jan 2001 10:54:18 -0600 Subject: Win32 builds with OGR, PHP3, and PHP4 Message-ID: The problem is that the demo was written for 3.3.011 with the old symbol format and you're using the new source code. I thought there was a demo based on the new code already available. Anyone? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Deni Suwardhi" 01/13/01 02:53AM >>> Hi, i'm new comers for this list. my name Deni Suwardhi. I use mapserv.exe for the demo, but it doesn't work. The message "Unknown identifier (SHADESET)" appears on my explorer. Can you help me to solve this problem ? Deni Suwardhi From yeewen at petromap.com Tue Jan 16 09:27:23 2001 From: yeewen at petromap.com (Yeewen Sat) Date: Tue, 16 Jan 2001 10:27:23 -0700 Subject: displaying objects based on DBF information In-Reply-To: Message-ID: I think my question was a bit unclear. I need to be able to tell mapserv which object to display based on what a user has selected at runtime. So, it's like I need to change the CLASS EXPRESSION in the mapfile at runtime, telling mapserv what to display, based on user selections. Say, on a page, we will display a list of all objects that are currently visible (I think we can do this through other methods. Users can then select the objects they want to display, and click on Refresh to display a new map containing only those objects being selected (hiding the ones that are not selected). Say the user selected objects with ObjectID=1, and ObjectID=5. You would tell mapserv to only display objects with these ObjectIDs. And, at the same time, user can zoom in/out, and the list of objects will change. Users can then modify their selections in the same manner. >From what I understood, CLASS object EXPRESSION is static.....only those objects that matched the EXPRESSION get displayed, and the selections of objects get displayed don't change at run time. Thanks. -- Yeewen Sat Petromap Inc. Voice: (403)263-4664x239 Fax: (403)266-2423 Email: yeewen at petromap.com -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: January 16, 2001 9:39 AM To: Mapserver-Users; yeewen at petromap.com Subject: Re: displaying objects based on DBF information This is what class objects are for. You can use class expressions to restrict display to certain sets of features or to change the display characteristics (eg. color/size/symbol) for each "class". I've attached a map file that I use to draw different highway shields based on an item value. Look at the definitions for "major_roads". Steve >>> "Yeewen Sat" 01/15/01 03:35PM >>> Hi, I like to find out if mapserver CGI support this: display objects based on specific DBF information? As an example, DBF file contains a field named ObjectID. And, a map being displayed has bunch of lines in it. When user zoom into the map, all lines that fall inside the bounding rectangle will show up. Is there a way to tell mapserver to draw only those lines that match the given ObjectIDs? The same question applies to mapscript. Can I just pass these lines ObjectIDs to some mapscript functions, and it will only plot these lines? If mapserver cgi or mapscript does supports the above functions, can I get some examples to get me started? Thanks. Yee Wen Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From steve.lime at dnr.state.mn.us Tue Jan 16 09:38:04 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 16 Jan 2001 11:38:04 -0600 Subject: displaying objects based on DBF information Message-ID: No, you can change the value of EXPRESSION at runtime. It's easiest within mapscript where you simply use the class method setexpression but you can do it with the CGI version too. There's an example of this at: http://maps.dnr.state.mn.us/mapserver_demos/tests/ Basically you need to masage the user input into a valid MapServer class object expression. It's usually necessary use javascript. Then you use the syntax available in cgi.html on the main MapServer site to change the expression dynamically. If you have a single class then create at hidden variable: Then at the appropriate time (either form submission or when a control is mucked with) use javascript to set the value for that hidden variable to something like: /^id1$|^id2$|^id3$|.../ for regex or ([ID] = id1 or [ID] = id2 or [ID] = id3 or ...) for logical expressions A regex assumes a value for CLASSITEM whereas a logical expression does not. Clear as mud? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Yeewen Sat" 01/16/01 11:27AM >>> I think my question was a bit unclear. I need to be able to tell mapserv which object to display based on what a user has selected at runtime. So, it's like I need to change the CLASS EXPRESSION in the mapfile at runtime, telling mapserv what to display, based on user selections. Say, on a page, we will display a list of all objects that are currently visible (I think we can do this through other methods. Users can then select the objects they want to display, and click on Refresh to display a new map containing only those objects being selected (hiding the ones that are not selected). Say the user selected objects with ObjectID=1, and ObjectID=5. You would tell mapserv to only display objects with these ObjectIDs. And, at the same time, user can zoom in/out, and the list of objects will change. Users can then modify their selections in the same manner. >From what I understood, CLASS object EXPRESSION is static.....only those objects that matched the EXPRESSION get displayed, and the selections of objects get displayed don't change at run time. Thanks. -- Yeewen Sat Petromap Inc. Voice: (403)263-4664x239 Fax: (403)266-2423 Email: yeewen at petromap.com -----Original Message----- From: Stephen Lime [mailto:steve.lime at dnr.state.mn.us] Sent: January 16, 2001 9:39 AM To: Mapserver-Users; yeewen at petromap.com Subject: Re: displaying objects based on DBF information This is what class objects are for. You can use class expressions to restrict display to certain sets of features or to change the display characteristics (eg. color/size/symbol) for each "class". I've attached a map file that I use to draw different highway shields based on an item value. Look at the definitions for "major_roads". Steve >>> "Yeewen Sat" 01/15/01 03:35PM >>> Hi, I like to find out if mapserver CGI support this: display objects based on specific DBF information? As an example, DBF file contains a field named ObjectID. And, a map being displayed has bunch of lines in it. When user zoom into the map, all lines that fall inside the bounding rectangle will show up. Is there a way to tell mapserver to draw only those lines that match the given ObjectIDs? The same question applies to mapscript. Can I just pass these lines ObjectIDs to some mapscript functions, and it will only plot these lines? If mapserver cgi or mapscript does supports the above functions, can I get some examples to get me started? Thanks. Yee Wen Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From Matt.Wilkie at gov.yk.ca Tue Jan 16 10:29:16 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 16 Jan 2001 10:29:16 -0800 Subject: Win32 builds with OGR, PHP3, and PHP4 Message-ID: <6DD7370C9452D31192A10008C75D0753081DFD91@raptor.gov.yk.ca> There are two win32 packagings of Mapserver (assuming you are using the binaries from http://mapserver.gis.umn.edu/win32binaries.html ), one with GIF support, and one with PNG support. The demo is setup for GIF support, if you have the PNG version of Mapserver you will get errors like you describe. So you can either: 1) download the GIF version of Mapserver or 2) change the Demo to work with PNGs. 2) Download "gif2png.exe" from http://exe2bin.com/gif2png-win32/ . -Put gif2png.exe in a directory searched by %path% -change to the ms_demo directory (cd d:\maps\ms_demo) -batch convert all GIFs to PNG from a command shell (may only work in NT): d:\maps\ms_demo> for /r %a in (*.gif) do gif2png -Op %a -replace all refences to .GIF to .PNG in the following files: *.html, demo.map, symbols\*.sym -----Original Message----- From: Deni Suwardhi [mailto:deni at gd.itb.ac.id] Sent: Saturday, January 13, 2001 12:54 AM To: mapserver-users at lists.gis.umn.edu Subject: Re: Win32 builds with OGR, PHP3, and PHP4 Hi, i'm new comers for this list. my name Deni Suwardhi. I use mapserv.exe for the demo, but it doesn't work. The message "Unknown identifier (SHADESET)" appears on my explorer. Can you help me to solve this problem ? Deni Suwardhi From lehmann at fh-nuertingen.de Tue Jan 16 11:17:28 2001 From: lehmann at fh-nuertingen.de (Dieter Lehmann) Date: Tue, 16 Jan 2001 20:17:28 +0100 Subject: php - setexpression In-Reply-To: <3A6449AC.9A9B2913@aris.nl> References: <01011610303303.01101@n20908j> <3A6449AC.9A9B2913@aris.nl> Message-ID: <01011620235700.00928@n20908j> Hi, Berend gave me the right way to go - thanks for that! - but still I have one more question.... Is the function like in the map-file $poClass->setExpression('[NAME]" == "Test"); not available? I ask, because that would be great to change things comming out of mysql (to set for NAME a variable and for the string a variable...) Is it possible to negate an search, like: $poClass->setExpression("[NAME]" != "Test"); Thanks. Dieter > Maybe this works, note the escaped quotes: > $poClass->setExpression ("\"8125048\""); > > Berend ___________________________________ Dieter Lehmann University of applied Sciences Schelmenwasen 4-8 D-72622 Nuertingen, Germany lehmann at fh-nuertingen.de Phone: +49 (0) 7022 404 Ext. 192 or Ext. 152 Fax: +49 (0) 7022 404 Ext. 166 From tpoindex at nyx.net Tue Jan 16 12:03:48 2001 From: tpoindex at nyx.net (Tom Poindexter) Date: Tue, 16 Jan 2001 13:03:48 -0700 Subject: Win32 builds with OGR, PHP3, and PHP4 Message-ID: <20010116130348.05593@nyx.net> On Tue, Jan 16, 2001 at 10:54:18AM -0600, Stephen Lime wrote: > The problem is that the demo was written for 3.3.011 with the old symbol format and > you're using the new source code. I thought there was a demo based on the new > code already available. Anyone? I have a hacked-up 'demo_012.map' in the test directory, included with MapServer Worbench, along with a 'newsym.sym' symbolset file. You should be able to drop these two files into the existing demo files and get it to work with the new mapserver. Or, just use 'msappwiz.tcl' to generate your own demo :) msworkbench.sourceforge.net -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ -- Tom Poindexter tpoindex at nyx.net http://www.nyx.net/~tpoindex/ From teb at mallit.fr.umn.edu Wed Jan 17 07:19:03 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 17 Jan 2001 09:19:03 -0600 (CST) Subject: FWD: symbol definition error Message-ID: <200101171519.JAA10214@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Stender, Amy ERDC-CRREL-NH" To: "'mapserver-info at lists.gis.umn.edu'" Subject: symbol definition error Date: Tue, 16 Jan 2001 14:11:06 -0500 MIME-Version: 1.0 Using the new version of MapServer, the LINESET, MARKERSET and SHADESET files I'm using were modified into one SYMBOLSET file. Is it true that the line symbols cannot be STYLED and still be scaleable? I attemped to change all the line types to ELLIPSE, but now I keep on getting this error: loadSymbol(): Symbol definition error. Symbol of type VECTOR or ELLIPSE has no point data. What do I need for the new SYMBOLSET.sym that will have all my styled lines scalable?? Thanks, A Amy L. Stender Remote Sensing / Geographic Information System Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, New Hampshire, 03755-1290 astender at crrel.usace.army.mil (603)643-4733 ------------- End Forwarded Message ------------- From teb at mallit.fr.umn.edu Wed Jan 17 07:20:39 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 17 Jan 2001 09:20:39 -0600 (CST) Subject: FWD: AIX partly success Message-ID: <200101171520.JAA10218@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Peter H.M. Jacobs" Date: Wed, 17 Jan 2001 15:43:58 -0800 To: mapserver-info at lists.gis.umn.edu Subject: AIX partly success MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hello All, I've come a bit further on the AIX problems, but now get the message on my browser : php_mapscrtipt.so doesn't seem to be a php library The problems I encounter are: --> First of all the makefile script of php_mapscript says : no rules to make target. This can be solved to comment the line CFLAGS := $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) I just include these on top of the mapfile at the CFLAGS command. Are there people who experienced the same problems? -->I furthermore had to recompile both Apache as PHP to include the EXTRA_LDFLAGS. This seems to work OK, so I don't think this is the problem --> I couldn't just at the perl.exp, because it didn't had a path. Regards, Peter ################################################################# ###################################### Can anyone see what the problem is with my php_mapscript Makefile on aix 4.3 # Generated automatically from Makefile.in by configure. # Run ./configure in the main MapServer directory to turn this Makefile.in # into a proper Makefile # # This is an adapted version of php-3.0.14/dl/Makefile.tmpl for the # MapServer php_mapscript.so module. # # $Id: Makefile.in,v 1.7 2000/10/16 14:05:52 dan Exp $ # PERL_INC=/usr/local/lib/perl5/5.00502/aix/CORE CC = cc -O -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=8192- I/usr/local/include -I. -I.. LD = ld -bhalt:4 -bM:SRE -bI:$(PERL_INC)/perl.exp -bE:$(PERL_INC)/perl.exp -b noentry -lc -L/usr/local/lib RUNPATHS= # # Set PHP_SRC_DIR to point to the root of the PHP source tree # PHP_SRC_DIR = /home5/www/prod/src/peter/../php-4.0.4pl1 PHP_INC = -I$(PHP_SRC_DIR) -I$(PHP_SRC_DIR)/dl -I$(PHP_SRC_DIR)/main \ -I$(PHP_SRC_DIR)/Zend -I$(PHP_SRC_DIR)/include \ -I$(PHP_SRC_DIR)/TSRM -I/home5/www/prod/src/peter/../apache_1.3.14/src/include # # Set MapServer extensions parameters. See main MapServer Makefile for # more details... # Common defaults are: # MS_DEFINE = -DUSE_TTF -DUSE_TIFF -DUSE_EPPL -DUSE_GD_1_2 # MS_INCLUDE = -I../.. -I../../gd-1.2 -I../../gdft # MS_LIBS = -L../.. -lmap -L../../gdft -lgdft -ltiff -lttf -L../../gd-1.2 -lgd # MS_DEFINE = -DUSE_TTF -DUSE_EPPL -DUSE_TIFF -DUSE_GD_1_2 MS_INC = -I/home5/www/prod/src/peter -I/home5/www/prod/src/peter/gdft -I/home5/www/prod/src/peter/gd-1.2 MS_LIBS = $(RUNPATHS) -L/home5/www/prod/src/peter -lmap -L/home5/www/prod/src/peter/gdft -lgdft -lttf -ltiff -L/home5/www/prod/src/peter/gd-1.2 -lgd -lm CFLAGS = -O2 -Wall -DCOMPILE_DL=1 -DPHP4 $(MS_DEFINE) $(MS_INC) $(PHP_INC) # # The rest of the file should not have to be edited... # #CFLAGS := $(CFLAGS) $(MS_DEFINE) $(MS_INC) $(PHP_INC) all: php_mapscript.so PHPMS_OBJS = php_mapscript_util.o php_mapscript.o mapscript_i.o php_mapscript.so: $(PHPMS_OBJS) ../../libmap.a $(LD) -o $@ $(PHPMS_OBJS) $(MS_LIBS) %.o: %.c php_mapscript_util.h php_mapscript.h $(CC) $(CFLAGS) -c -o $@ $< clean: -rm -f *.so *.o perl.out ------------- End Forwarded Message ------------- From morissette at dmsolutions.ca Wed Jan 17 08:38:43 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 17 Jan 2001 11:38:43 -0500 Subject: FWD: AIX partly success References: <200101171520.JAA10218@mallit.fr.umn.edu> Message-ID: <3A65CA93.96A3F2DA@dmsolutions.ca> "Peter H.M. Jacobs" wrote: > > Hello All, > > I've come a bit further on the AIX problems, but now get the > message on my > browser : php_mapscrtipt.so doesn't seem to be a php library > Peter, I think I've seen that message before, it happens if PHP cannot find the module's entry point in the .so: get_module() Make sure your php_mapscript.so does include the get_module symbol: # nm php_mapscript.so | grep get_module It it's not there, then it may be that php_mapscript.c was not compiled with -DCOMPILE_DL defined... but it seems to be there in your makefile. About your Makefile problems, could you try using GNUmake? That may help. Of course, it would be better if the PHP Makefile did work with AIX's make, but I don't have access to an AIX system to test it, so at least until it can be fixed you would be able to compile your module. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From yeewen at petromap.com Wed Jan 17 15:06:55 2001 From: yeewen at petromap.com (Yeewen Sat) Date: Wed, 17 Jan 2001 16:06:55 -0700 Subject: msworkbench - msshapex.tcl bug Message-ID: I noticed that if I keep clicking on the "Show next 20 records" button after all records have been displayed, it will keep adding the last record to the list. msworkbench is a great tool! -- Yeewen -------------- next part -------------- An HTML attachment was scrubbed... URL: From gthornberry at sdimaps.com Thu Jan 18 09:20:40 2001 From: gthornberry at sdimaps.com (Gerald Thornberry) Date: Thu, 18 Jan 2001 12:20:40 -0500 Subject: MS on OpenBSD Message-ID: <3A6725E8.527F8FE9@sdimaps.com> I've never installed MapServer, and I'd like to serve from OpenBSD 2.8. If anyone has any OBSD experience to share, I'd like to get your input before I go down that road. Thanks, Gerald Thornberry From teb at mallit.fr.umn.edu Thu Jan 18 06:46:01 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Thu, 18 Jan 2001 08:46:01 -0600 (CST) Subject: Part 3 of the AIX problems (fwd) Message-ID: <200101181446.IAA10954@mallit.fr.umn.edu> Forwarded message: > From peter.jacobs at ah21sn06.kpnhs.nl Thu Jan 18 08:02:17 2001 > From: "Peter H.M. Jacobs" > Reply-To: peter.jacobs at ah21sn06.kpnhs.nl > Organization: Javel b.v. > Date: Thu, 18 Jan 2001 15:08:47 -0800 > X-Mailer: KMail [version 1.1.99] > Content-Type: text/plain; > charset="iso-8859-1" > To: mapserver-info at lists.gis.umn.edu > Subject: Part 3 of the AIX problems > MIME-Version: 1.0 > Message-Id: <01011815084702.01857 at peter> > Content-Transfer-Encoding: 8bit > Content-Length: 858 > > Dear Daniel and others, > > I've done excactly as you stated and experienced just the error as you > mentioned. > > First I installed the GNU-make. This indeed does not give any problems > concerning the standard Makefile. Everything compiled just fine after I > declared the Path to the perl directory where perl.exp is located. It seems > to result in the same php_mapscript.so file as with the AIX make (about > 140kB) > > I still get the message (it does not seem to be a php library) so as you > stated I called nm ./php_mapscript.so |grep get_modules . This method does > not seem to be there. > I tried to change the Makefile and added -DCOMPILE_DL=1 statement to CC (it > was already declared in the CFLAGS). As expected this dit not solve the > problem. > > Do you have any idea how I could get mapscript working or where I could check > the the .c files > > Regards > > Peter > From morissette at dmsolutions.ca Thu Jan 18 07:39:40 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 18 Jan 2001 10:39:40 -0500 Subject: Part 3 of the AIX problems (fwd) References: <200101181446.IAA10954@mallit.fr.umn.edu> Message-ID: <3A670E3C.561EDC92@dmsolutions.ca> "Peter H.M. Jacobs" wrote: > > > > I still get the message (it does not seem to be a php library) so as you > > stated I called nm ./php_mapscript.so |grep get_modules . This method does > > not seem to be there. Peter, In your reply you write nm ./php_mapscript.so | grep get_modules but you're looking for get_module with no 's' ... can you double-check that? I really don't know what else to suggest... hard to tell without having an AIX box to try stuff! Has anyone else tried and/or succeded in compiling php_mapscript.so on AIX ??? -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From jedgar at fxp.org Thu Jan 18 08:14:39 2001 From: jedgar at fxp.org (Chris Faulhaber) Date: Thu, 18 Jan 2001 11:14:39 -0500 Subject: MS on OpenBSD In-Reply-To: <3A6725E8.527F8FE9@sdimaps.com>; from gthornberry@sdimaps.com on Thu, Jan 18, 2001 at 12:20:40PM -0500 References: <3A6725E8.527F8FE9@sdimaps.com> Message-ID: <20010118111439.B42298@peitho.fxp.org> On Thu, Jan 18, 2001 at 12:20:40PM -0500, Gerald Thornberry wrote: > I've never installed MapServer, and I'd like to serve from OpenBSD 2.8. > If anyone has any OBSD experience to share, I'd like to get your input > before I go down that road. > Installing on OpenBSD should not be difficult (works well on FreeBSD) as long as you have the correct libs installed (most of which should be available via ports). You may have to tweak the linking stage if you plan on using the PHP interface, though. -- Chris D. Faulhaber - jedgar at fxp.org - jedgar at FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org From BURKED at cna.org Thu Jan 18 09:12:05 2001 From: BURKED at cna.org (Daniel D Burke) Date: Thu, 18 Jan 2001 12:12:05 -0500 Subject: Advice Message-ID: Hi, I hesitate to call myself even a newbie (is there such a thing as a wannabee newbie), but from what I can tell mapserver looks like it would really be useful for some projects I have in mind. I've looked at the demo and I can get some help from our computer support folks for installation, but it would really be valuable for me if I could see mapserver in action and talk with someone first. With this in mind, is there anyone in the Washington, DC/northern VA area using mapserver that I might come and visit? Thanks, Dan Burke Deputy Director for Education CNA Corporation 4825 Mark Center Drive Alexandria, VA 22311-1850 703-824-2348 burked at cna.org From klinge at spektra.de Thu Jan 18 09:18:57 2001 From: klinge at spektra.de (Karl-Albrecht Klinge) Date: Thu, 18 Jan 2001 18:18:57 +0100 Subject: Align labels along streets Message-ID: <91531C2EF097D94ABD7C10E7E914D3C0015079@victoria.spektra.de> Hello All, is there a possibility to align the labels of the street names along the streets (not only horizontal)? Thanks, Karl From steve.lime at dnr.state.mn.us Thu Jan 18 09:25:27 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 18 Jan 2001 11:25:27 -0600 Subject: Align labels along streets Message-ID: Yup, try the "ANGLE AUTO" option in the label object. Only works with LINE layers. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Karl-Albrecht Klinge" 01/18/01 11:18AM >>> Hello All, is there a possibility to align the labels of the street names along the streets (not only horizontal)? Thanks, Karl From tomkralidis at hotmail.com Fri Jan 19 11:10:17 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Fri, 19 Jan 2001 14:10:17 -0500 Subject: PNG support for applet? Message-ID: Hi, I'm trying to integrate the mapimage into my application, which outputs PNG images, but no image output is created. Is this why? Is there a version of the applet for PNG? Or does anyone know to compile it with PNG support? Thanks ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From tomkralidis at hotmail.com Fri Jan 19 11:15:45 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Fri, 19 Jan 2001 14:15:45 -0500 Subject: implementing "select/deselect all layers" option Message-ID: Hi, I'm trying to implement a checkbox button within my html template which, when the user checks it, it will loop over each defined layer in the form, and check it off if it is not checked, then rewrite the URL to reflect all layers. The output html page works fine with the [xlayer_check] hook, but the "select/deselect all" checkbox comes up unselected. I imagine this is because the template does not have a hook for the CGI to check this. Here's the HTML chunk: GCDB Points
Cities
Rivers
Lakes
Roads
Show All I tried making the 'allnone' checkbox name "layer" and value "allnone", with a [allnone_check] hook, but no luck. Perhaps this does not work because it is not a layer? How can the mapserv app interact with this? Any suggestions? Thanks ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From michalak at hwr.arizona.edu Fri Jan 19 14:28:39 2001 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Fri, 19 Jan 2001 15:28:39 -0700 (MST) Subject: shape file creating blank gif Message-ID: We are making a mapserver page and the gif it is creating from a shapefile is blank. The shapefile we are using started out as a Vector Product Format file from the Digital Chart of the World CD from the Defense Mapping Agency. Anyone know what might cause this? *************************************************** Zolla Michalak Support Systems Analyst Hydrology, University of Arizona (520) 626-8746 http://hydis.hwr.arizona.edu *************************************************** From steve.lime at dnr.state.mn.us Fri Jan 19 14:36:24 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 19 Jan 2001 16:36:24 -0600 Subject: shape file creating blank gif Message-ID: Bad extent or it can't find the data. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Zolla Michalak 01/19/01 04:28PM >>> We are making a mapserver page and the gif it is creating from a shapefile is blank. The shapefile we are using started out as a Vector Product Format file from the Digital Chart of the World CD from the Defense Mapping Agency. Anyone know what might cause this? *************************************************** Zolla Michalak Support Systems Analyst Hydrology, University of Arizona (520) 626-8746 http://hydis.hwr.arizona.edu *************************************************** From deni at gd.itb.ac.id Fri Jan 19 16:29:48 2001 From: deni at gd.itb.ac.id (Deni Suwardhi) Date: Sat, 20 Jan 2001 07:29:48 +0700 Subject: shape file creating blank gif References: Message-ID: <006001c08278$187856c0$2f2fcda7@gd.itb.ac.id> You must have more than one shape file in your map file. Deni Suwardhi ----- Original Message ----- From: "Zolla Michalak" To: Sent: Saturday, January 20, 2001 5:28 AM Subject: shape file creating blank gif > We are making a mapserver page and the gif it is creating from a shapefile > is blank. > > The shapefile we are using started out as a Vector Product Format file > from the Digital Chart of the World CD from the Defense Mapping Agency. > > Anyone know what might cause this? > > > *************************************************** > Zolla Michalak > Support Systems Analyst > Hydrology, University of Arizona > (520) 626-8746 http://hydis.hwr.arizona.edu > *************************************************** > > From schulz at gaf.de Mon Jan 22 00:57:00 2001 From: schulz at gaf.de (Matthias Schulz) Date: Mon, 22 Jan 2001 09:57:00 +0100 Subject: user restrictions / tiles Message-ID: <3A6BF5DC.FE73AC54@gaf.de> 1. Is there a way to define the data of a shapefile shown on the map by using an attribute query? I want the user to log in and show only the information he is allowed to see, i.e. setting a query definition to the shapefile(s) with mapscript. Does anyone have an example for this? 2. For large datasets I assume it is faster to work with tiles, is that correct? Can I combine working with defining the shown data by a query as in point 1 and working with tiles? Thanks a lot, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schulz at gaf.de URL: http://www.gaf.de From michalak at hwr.arizona.edu Mon Jan 22 08:48:04 2001 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Mon, 22 Jan 2001 09:48:04 -0700 (MST) Subject: shape file creating blank gif In-Reply-To: Message-ID: It turned out to be bad extent, then I had the layer misspelled. Thanks! *************************************************** Zolla Michalak Support Systems Analyst Hydrology, University of Arizona (520) 626-8746 http://hydis.hwr.arizona.edu *************************************************** On Fri, 19 Jan 2001, Stephen Lime wrote: > Bad extent or it can't find the data. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Zolla Michalak 01/19/01 04:28PM >>> > We are making a mapserver page and the gif it is creating from a shapefile > is blank. > > The shapefile we are using started out as a Vector Product Format file > from the Digital Chart of the World CD from the Defense Mapping Agency. > > Anyone know what might cause this? > > > *************************************************** > Zolla Michalak > Support Systems Analyst > Hydrology, University of Arizona > (520) 626-8746 http://hydis.hwr.arizona.edu > *************************************************** > > > > From teb at mallit.fr.umn.edu Mon Jan 22 18:42:49 2001 From: teb at mallit.fr.umn.edu (teb at mallit.fr.umn.edu) Date: Mon, 22 Jan 2001 20:42:49 -0600 (CST) Subject: scale and query problems (fwd) Message-ID: <200101230242.UAA13577@mallit.fr.umn.edu> From s371538 at student.uq.edu.au Mon Jan 22 16:11:54 2001 From: s371538 at student.uq.edu.au (Robert Ofarrell) Date: Tue, 23 Jan 2001 10:11:54 +1000 (GMT+1000) Subject: scale and query problems Message-ID: A couple of problems that I have run into when using MapScript with PHP3. 1. When doing a query on a map with multiple layers, the result of a msqueryUsingPoint() only returns the shapes in the first two layers and seems to ignore the other layers on the map. I have a nice tolerance so that all the layers have some shape where I click but only the first two layers respond. 2. When I am trying to find the scale that I am currently at on the map when zooming, the $map->scale returns -1. Any help would be greatly appreciated. Thanking you in advance. Robert O'Farrell s371538 at student.uq.edu.au From s371538 at student.uq.edu.au Mon Jan 22 19:06:48 2001 From: s371538 at student.uq.edu.au (Robert Ofarrell) Date: Tue, 23 Jan 2001 13:06:48 +1000 (GMT+1000) Subject: scale and query problems Message-ID: A couple of problems that I have run into when using MapScript with PHP3. 1. When doing a query on a map with multiple layers, the result of a msqueryUsingPoint() only returns the shapes in the first two layers and seems to ignore the other layers on the map. I have a nice tolerance so that all the layers have some shape where I click but only the first two layers respond. 2. When I am trying to find the scale that I am currently at on the map when zooming, the $map->scale returns -1. Any help would be greatly appreciated. Robert From serdula_jaroslav at vse.sk Tue Jan 23 00:50:06 2001 From: serdula_jaroslav at vse.sk (Jaroslav Serdula) Date: Tue, 23 Jan 2001 09:50:06 +0100 Subject: tiff misinterpretation Message-ID: <003101c08519$7c5648c0$4f11a8c0@jaros> Hi, I have serious troubles with some kind of tiff files. I included one tiff (orig.tiff) and MapServer response (msout.png). Originally those problematic files are created by MicroStation 95/SE. Thanks a lot, j.s. -------------- next part -------------- A non-text attachment was scrubbed... Name: msout.png Type: image/png Size: 1107 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: orig.tif Type: image/tiff Size: 4536 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue Jan 23 08:37:39 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 23 Jan 2001 10:37:39 -0600 Subject: user restrictions / tiles Message-ID: I guess you could use classes for this. That is, assuming there is an owner attribute for each shape you could add to the normal class expressions "... AND '[OWNER]' == 'user'". You then have to build those expressions assuming you have multiple users. Couple of ways to do that depending on how anal you are about security; - use CGI vars to change expressions dynamically - use mapscipt The next version of MapServer will allow you to substitute CGI vars directly into expressions so you could write "... AND '[OWNER]' == '[CGI_OWNER]'" where CGI_OWNER is a variable in your HTML form. MapScript gives you the most control obviously. You could build user specifc mapfiles as needed. That way you could store user data in separate shapefiles. You also have access to a richer set of authentication schemes. Very large datasets are more efficient in tiled format, for the most part. Expressions are supported on tiled shapefiles. Normal query (by point, area or rect) is not supported (yet!) on tiled shapefiles. Coming soon though. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Matthias Schulz 01/22/01 02:57AM >>> 1. Is there a way to define the data of a shapefile shown on the map by using an attribute query? I want the user to log in and show only the information he is allowed to see, i.e. setting a query definition to the shapefile(s) with mapscript. Does anyone have an example for this? 2. For large datasets I assume it is faster to work with tiles, is that correct? Can I combine working with defining the shown data by a query as in point 1 and working with tiles? Thanks a lot, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schulz at gaf.de URL: http://www.gaf.de From Matt.Wilkie at gov.yk.ca Tue Jan 23 09:07:56 2001 From: Matt.Wilkie at gov.yk.ca (Matt.Wilkie) Date: Tue, 23 Jan 2001 09:07:56 -0800 Subject: tiff misinterpretation Message-ID: <6DD7370C9452D31192A10008C75D0753083A356E@raptor.gov.yk.ca> Try saving the image without LZW compression. > -----Original Message----- > From: Jaroslav Serdula [mailto:serdula_jaroslav at vse.sk] > Sent: Tuesday, January 23, 2001 12:50 AM > To: mapserver-users at lists.gis.umn.edu > Subject: tiff misinterpretation > > > Hi, > I have serious troubles with some kind of tiff files. > I included one tiff (orig.tiff) and MapServer response (msout.png). > Originally those problematic files are created by MicroStation 95/SE. > > > Thanks a lot, > j.s. > > From pnaciona at gis.umn.edu Tue Jan 23 10:00:10 2001 From: pnaciona at gis.umn.edu (Pericles S. Nacionales) Date: Tue, 23 Jan 2001 12:00:10 -0600 Subject: Nightly builds with GDAL support for Win32 Message-ID: Folks, I have available for download compiled MapServer binaries with GDAL support. It hasn't been tested yet so I haven't added a link to it from the Win32 binaries download page. However, if anyone would like to test it, it can be downloaded at http://mapserver.gis.umn.edu/win32bin/ms34gif_gdal_nightly.zip for GIF output and http://mapserver.gis.umn.edu/win32bin/ms34pmg_gdal_nightly.zip for PNG output. If you do test it, please let me know (and maybe the list) if it works, works well, or if it doesn't work at all. Thanks. Pericles Nacionales pnaciona at gis.umn.edu From tomkralidis at hotmail.com Tue Jan 23 10:44:26 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Tue, 23 Jan 2001 13:44:26 -0500 Subject: mapimage.java public method addition? Message-ID: Hi, I have implemented the wonderful mapimage applet into my web mapping application. A feature that I would like to add (or see added) is an X Y report of where the user's mouse is over the mapplet. Using the X Y position of the mouse over the image, one could access this from javascript, ie. Note ONMOUSEOVER. Then, through a public method within the .java file, ie: public int[] reportXY(Event e, int x, int y) { int [] XYCoords; XYCoords = new int[2]; XYCoords[0] = x; XYCoords[1] = y; return XYCoords; } ..then in the javascript: function mapOver() { // grab image width/height var re = / /; var imgsize = [imgsize]; var newarray = new Array(); newArray = imgsize.split(re); // grab user X and Y click pos from java public method var tmpxy = new Array(); tmpxy = document.mapimage.reportXY(); // arguments here? var tmpx = Number([minx] + (tmpxy[0] * (Math.abs([minx]) - Math.abs (([maxx]))) / NewArray[0] )); var tmpy = Number([miny] + (tmpxy[1] * (Math.abs([maxy]) - (Math.abs([miny]))) / NewArray[1] )); document.mapserv.mapOverX.value = tmpx; document.mapserv.mapOverY.value = tmpy; } ...thus updating the form boxes. Does this sort of thing make sense? Has anyone tried this, or an alternative? I've tried this but can't seem to find out the how to get the XY out of the applet. If I could get this going, I'll post the edited source to the group with examples. Thanks for your time. ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Tue Jan 23 14:36:52 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 23 Jan 2001 16:36:52 -0600 Subject: tiff misinterpretation Message-ID: Looks like a problem with the binary tiff file reader. There are just darn many tiff flavors it's tough to test them all. I don't have time at the moment to work out the bug. It's probably simple and is located in mapraster.c in the tiff reader if anyone wants to take a shot. I'll fix in the next release which is my main focus at the moment. The workaround is to convert to greyscale, 4-bit or 8-bit. I know the loss in compression will create much larger files. Hopefully you don't have too many or can convert just a few for development. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jaroslav Serdula" 01/23/01 02:50AM >>> Hi, I have serious troubles with some kind of tiff files. I included one tiff (orig.tiff) and MapServer response (msout.png). Originally those problematic files are created by MicroStation 95/SE. Thanks a lot, j.s. From morissette at dmsolutions.ca Tue Jan 23 19:21:34 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 23 Jan 2001 22:21:34 -0500 Subject: Nightly builds with GDAL support for Win32 References: Message-ID: <3A6E4A3E.7F7C2D3@dmsolutions.ca> "Pericles S. Nacionales" wrote: > > Folks, > > I have available for download compiled MapServer binaries with GDAL support. > It hasn't been tested yet so I haven't added a link to it from the Win32 > binaries download page. However, if anyone would like to test it, it can be > downloaded at > > http://mapserver.gis.umn.edu/win32bin/ms34gif_gdal_nightly.zip for GIF > output and > > http://mapserver.gis.umn.edu/win32bin/ms34pmg_gdal_nightly.zip for PNG > output. > > If you do test it, please let me know (and maybe the list) if it works, > works well, or if it doesn't work at all. > Pericles, I downloaded and gave a quick try to the ms34gif_gdal_nightly.zip and it seems to be working OK with MapInfo TAB files. BTW, I know all these acronyms make things very confusing, but I have a small clarification to make for the benefit of all users: you talk about GDAL here, but I assume that you meant OGR, which is part of the GDAL source tree... GDAL and OGR share some code and are part of the same source code package, but are 2 different things: - GDAL is for raster file formats - OGR is for vector file formats and at this point, MapServer only supports OGR's vector file formats... (unless someone added support for GDAL's raster formats recently?). Thanks a lot for making this available! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Jan 23 22:04:02 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 24 Jan 2001 01:04:02 -0500 Subject: a couple of questions References: Message-ID: <3A6E7052.C69A38C2@dmsolutions.ca> Robert Ofarrell wrote: > > Firstly, why is there such a big difference between the mapscript PHP > specification on your web page compared to the one released with the > mapserver software? > Robert, We've tried to keep the PHP version of MapScript as close as possible to the original MapScript (in Perl). But there are indeed differences, and the main reason is that the Perl version of MapScript is produced using SWIG, but since PHP is not supported (yet) by SWIG then we had to implement all the PHP wrappers manually. Also, because of the way things (like objects) work in PHP3, there are some things that had to be adapted from the original MapScript to make the wrappers usable, like using set() methods to set member variables. Anyways, it's a long story, but I'm sure you'll get the idea. > Secondly, what stage of development is PHP MapScript currently at? > I would call is stable... or "permanent beta" would probably better describe what happens with a piece of software like MapServer that keeps getting better and better but never really freezes. PHP MapScript should be in sync with the main MapScript version in Perl. If you're aware of anything missing then please let us know. > Lastly, does PHP MapScript support all the functionality of MapServer? I > have been trying to complete such functions as Query Maps and I have come > to a brick wall - having to code expression changes to show the results of > a mouse click, which is proving to be cumbersome on large data sets. > Again, PHP MapScript is just a set of wrappers on top of the same C functions that are used by other flavours of MapScript... so what works with Perl/Tcl/Python MapScript should work with the PHP version too. If you could send to the list specific examples of the problems that you ran into then that could certainly help us in helping you. Humm... I guess I should have asked that at the beginning, but which version of MapServer/MapScript are you using? Several things have been improved/fixed since 3.3.011, the nightly builds since the end of December are probably better than version 3.3.011 was back in July. If you're still using 3.3.011, then I suggest that you get a recent nightly build. Best Regards, -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From morissette at dmsolutions.ca Tue Jan 23 21:45:41 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 24 Jan 2001 00:45:41 -0500 Subject: scale and query problems References: Message-ID: <3A6E6C05.16FD84FB@dmsolutions.ca> Robert Ofarrell wrote: > > A couple of problems that I have run into when using MapScript with PHP3. > > 1. When doing a query on a map with multiple layers, the result of a > msqueryUsingPoint() only returns the shapes in the first two layers and > seems to ignore the other layers on the map. I have a nice tolerance so > that all the layers have some shape where I click but only the first two > layers respond. > Robert, This probably has more to do with your .map layers setup than with MapScript itself. Are all the layers you want to query with STATUS=ON, and do they all contain a QUERY object? We've used queries with multiple layers before and I don't remember noticing a problem... but a bug is always possible. If you're sure that your layers are setup properly, then please send me your .map file and I'll try to reproduce/fix the problem. > 2. When I am trying to find the scale that I am currently at on the map > when zooming, the $map->scale returns -1. > I've made a few tests and also noticed that $map->scale is sometimes set to -1 before any call is made to an operation that forces recomputing the scale, like calling $map->zoompoint() or $map->setextent(). Once again, if you could isolate the problem and send me a piece of script that reproduces the exact case that you're refering to then that could help a lot in reproducing and fixing it. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From schulz at gaf.de Wed Jan 24 00:04:05 2001 From: schulz at gaf.de (Matthias Schulz) Date: Wed, 24 Jan 2001 09:04:05 +0100 Subject: database access Message-ID: <3A6E8C74.FD9D38D0@gaf.de> I tried to find out what is possible with combining MapServer (MapScript) with databases by looking throught the archive but it is still difficult to me to get an overview. I am new to MapScript so I just want to know if the things are possible I want to do before spending too much time on it. There are two things I would like to do: 1. Access attributes in a database by a spatial query (query by point, polygon...) 2. Display maps based on a classification on the attributes in a database Is this possible using MapScript and Perl (DBD Module) or is there a better aproach? Sorry if this is something already discussed, but I am still not sure about this and would really appreciate some help. Perhaps there are some examples on this somewhere? Many thanks, Matthias -- Matthias Schulz GAF mbH Arnulfstr. 197 80634 Muenchen Germany tel.: +49 (0)89 121528-28 fax: +49 (0)89 121528-79 mailto:schulz at gaf.de URL: http://www.gaf.de From webworks at world.std.com Wed Jan 24 07:43:12 2001 From: webworks at world.std.com (Joan Friedman) Date: Wed, 24 Jan 2001 10:43:12 -0500 Subject: mapimage.java public method addition? References: Message-ID: <006101c0861c$5c55d870$8c8c73c6@process.com> > A feature that I would like to add (or see added) is an X Y report of where the user's mouse is over the mapplet. <....> > I've tried this but can't seem to find out the how to get the XY out of the > applet. >Tom I'm not familar with the maplet, but I can tell you a bit about java. You could extend MouseMotionAdapter to capture the mouse position. The general idea would be like this: public class PointLabeler extends MouseMotionAdapter { public void mouseMoved (MouseEvent e) { // get the position in pixels relative to java's default origin at the top left corner of the innermost component containing the mouse position int x = e.getX(); int y = e.getY(); // translate position from java coordinates to map coordinates // display label } } Let me know if you need more help. Joan From teb at mallit.fr.umn.edu Wed Jan 24 09:52:31 2001 From: teb at mallit.fr.umn.edu (teb) Date: Wed, 24 Jan 2001 11:52:31 -0600 (CST) Subject: zoom drag box (fwd) Message-ID: <200101241752.LAA14536@mallit.fr.umn.edu> ------------- Begin Forwarded Message ------------- From: "Stender, Amy ERDC-CRREL-NH" To: "'mapserver-info at lists.gis.umn.edu'" Subject: zoom drag box Date: Wed, 24 Jan 2001 11:30:52 -0500 MIME-Version: 1.0 Is there any way to create a zoom box that can be dragged WITHOUT using a Java code? Is there a way to add JavaScript that understands a changing imgxy when a zoom button is onClicked? Anyhelp on how to do this would be very appreciated... Thanks, Amy Amy L. Stender Remote Sensing / Geographic Information System Center Cold Regions Research and Engineering Laboratory United States Army Corps of Engineers 72 Lyme Road, Hanover, New Hampshire, 03755-1290 astender at crrel.usace.army.mil (603)643-4733 ------------- End Forwarded Message ------------- From steve.lime at dnr.state.mn.us Wed Jan 24 13:29:45 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Wed, 24 Jan 2001 15:29:45 -0600 Subject: mapimage.java public method addition? Message-ID: You folks might want to consider patching a newer version of the mapimage applet rather than the one Tom is mucking with. It uses the newer mouse API and may be better suited to this modification. See attached... Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Joan Friedman" 01/24/01 09:43AM >>> > A feature that I would like to add (or see added) is an X Y report of where the user's mouse is over the mapplet. <....> > I've tried this but can't seem to find out the how to get the XY out of the > applet. >Tom I'm not familar with the maplet, but I can tell you a bit about java. You could extend MouseMotionAdapter to capture the mouse position. The general idea would be like this: public class PointLabeler extends MouseMotionAdapter { public void mouseMoved (MouseEvent e) { // get the position in pixels relative to java's default origin at the top left corner of the innermost component containing the mouse position int x = e.getX(); int y = e.getY(); // translate position from java coordinates to map coordinates // display label } } Let me know if you need more help. Joan -------------- next part -------------- A non-text attachment was scrubbed... Name: mapplet.java Type: application/octet-stream Size: 7475 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: README Type: application/octet-stream Size: 2691 bytes Desc: not available URL: From andreag at geoplan.ufl.edu Wed Jan 24 14:19:58 2001 From: andreag at geoplan.ufl.edu (Andrea Goethals) Date: Wed, 24 Jan 2001 17:19:58 -0500 Subject: zooming in a query window Message-ID: <3A6F550E.FC0C20F2@geoplan.ufl.edu> A little while ago I asked a question to the list about how to show scanned images using a point shapefile representing their location. With Steve's help I have it sort of working. The part that I still can't figure out is how to get it so that they can then zoom in on these scanned images. To see what I mean, take a look at: http://map2.geoplan.ufl.edu/mapserver/start/thememaps.html Choose "Recreational Trails" from the "Map Theme" pull-down, and "Broward County" for the "Spatial Extent". Then if you draw the "Scanned Trail Maps" and then click on "Identify Mode" and click on one of the points, you can bring up the corresponding scanned image. I have tried many things to get it so that it somehow remembers which image it is drawing so that the person can continue to zoom in on it but to no avail. Any help with this would be appreciated. Thanks, Andrea --------------------------------------- Here is how it is knows which image to draw (this is in the Recreational Trails .map): QUERY TEMPLATE "http://map2.geoplan.ufl.edu/cgi-bin/mapserv?map=/var/www/html/mapserver/maps/brochure.map&map_image_data=[FILENAME]&mapext=1+1+[COLS]+[ROWS]&map_extent=0+0+[COLS]+[ROWS]" END ------------------------------------------- Here is the scanned maps HTML template: Scanned Trail Maps

Scanned Recreational Trails Map
FGDL Florida Mapper 0.3.0
Make a zoom choice & click on the map

-------------------------------------------------------------------------------------------- Here is the scanned maps .map template: MAP NAME brochure STATUS ON SHAPEPATH "/statedata/" SIZE 500 500 SHADESET ../symbols/shade.sym MARKERSET ../symbols/marker.sym LINESET ../symbols/line.sym FONTSET ../../fonts/fonts.list IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB IMAGEPATH /var/www/html/mapserver/temp/ IMAGEURL "http://map2.fgdl.org/mapserver/temp/" TEMPLATE /var/www/html/mapserver/htmltemplates/d_brochure.html END # Start of layer definitions # LAYER NAME 'image' TYPE raster STATUS default DATA '[FILENAME]' END END -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ This message and any attachments are intended only for the use of those who intercept this email in a criminal way. Please misconstrue my words and then publish them as the truth. Thank you. From tomkralidis at hotmail.com Wed Jan 24 18:40:26 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Wed, 24 Jan 2001 21:40:26 -0500 Subject: mapimage.java public method addition? Message-ID: Steve, Thanks alot for the upgraded code. FYI, here's what I added to mouseMoved: public void mouseMoved(MouseEvent e) { int x = e.getX(); int y = e.getY(); // javascript function window.eval("mapOver('" + x + "','" + y + "');"); } ..then, the javascript function mapOver: function mapOver(x,y) { document.mapserv.mapOverX.value = Number([minx] + (x * (Math.abs ([minx]) - Math.abs(([maxx]))) / getMapSize('width'))); document.mapserv.mapOverY.value = Number([maxy] - (y * (Math.abs([maxy]) - Math.abs(([miny]))) / getMapSize('height'))); } (getMapSize is a js function to split [mapsize] to get the image height and width. Can I get to these through the CGI params without parsing in javascript?) Probably could be *alot* cleaner, but it works, provided there is a mapOver function defined in the HTML. Joan, thanks alot for the Java tip. ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From jga at scot.cnes.fr Thu Jan 25 06:02:04 2001 From: jga at scot.cnes.fr (jga at scot.cnes.fr) Date: Thu, 25 Jan 2001 15:02:04 +0100 (CET) Subject: jpeg output with nightly version? Message-ID: <200101251310.OAA26472@cnes.fr> Hi, I've downloaded the latest nightly version from mapserver website. I wonder if i can specify the output map from mapserver to be in jpeg format, since i use it from a java applet. I've compiled mapserver with USE_GD_1.8, compiled gd to get jpeg support and add "imagetype JPEG" in the mapfile, but that didn't work since the output map is always in png format... Any help will be aprecieted. Regards Jerome Gasperi -- "Luck doesn't exist. It's just a lack of unluck" http://j3rome.org From morissette at dmsolutions.ca Thu Jan 25 06:24:24 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Thu, 25 Jan 2001 09:24:24 -0500 Subject: php-queries References: Message-ID: <3A703718.948DF7E1@dmsolutions.ca> Robert Ofarrell wrote: > > At the moment I am toying with the querymap, and one thing that I would > like to do is to zoom to a result of a query. Is this possible with > php-mapscript, and if so could you give me a brief description of how to > do it - or point me in the direction of some information which would help > please? > Robert, I haven't played much with querymaps and I'm not sure what's the best way to do what you ask, I don't think there is a direct way to "zoom to selected objects", but I may be wrong. I guess one possibility would be using the shapeFileObj to open your layer, and read the extent (getExtent(i)) of all selected objects... and then use that to set the map extent. Requires a bit of coding, but that would work... Hopefully someone on the MapServer list will know a more straightforward method (using either Perl or PHP). Good Luck! -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From yeewen at petromap.com Thu Jan 25 13:18:12 2001 From: yeewen at petromap.com (Yeewen Sat) Date: Thu, 25 Jan 2001 14:18:12 -0700 Subject: query result map Message-ID: Hi, I've implemented something similar to Case #3 in http://maps.dnr.state.mn.us/mapserver_demos/tests/itemquery/test.html but the user query by dragging a box with the mouse over a map to query objects. I display a query result and result map in a popup window. Anyway, I noticed this behaviour: If I set the STATUS of the layer I'm querying on to be OFF, the result map doesn't show up. If STATUS is set to DEFAULT, the result map shows up. My problem is that I have to set the LAYER STATUS to OFF in order to be able to turn layer on and off. Does anyone has any idea on how to resolve this problem? ie to get both (query result map and layer on/off) to work? Here's my mapfile, ywseis.map, showing only the layer that I query on. ... # # Start of layer definitions # LAYER NAME ss1l TYPE LINE STATUS OFF DATA ss1l CLASSITEM 'ID' MAXSCALE 3000000 CLASS EXPRESSION /.*/ COLOR 230 0 0 SYMBOL 0 END CLASS EXPRESSION /xxx/ COLOR 0 0 255 END QUERY TEMPLATE "../www/lineinfo.html" END TOLERANCE 10 END ... lineinfo.html Layer: Seismic Lines

IDSIZESTYLECOLORFILL PATTERNANGLETEXTATTR
[ID][SIZE][STYLE][COLOR][FILL][PATTERN][ANGLE][TEXT][ATTR]

-- Yeewen -------------- next part -------------- An HTML attachment was scrubbed... URL: From michalak at hwr.arizona.edu Thu Jan 25 15:05:57 2001 From: michalak at hwr.arizona.edu (Zolla Michalak) Date: Thu, 25 Jan 2001 16:05:57 -0700 (MST) Subject: Proj4 with Line and Polygon Message-ID: We have successfully used Proj4 to convert and project a point shape file, but cannot get line and polygon shape files to work. Here is a snippet from my map file: [Airports (point) work, but not railroads (line) yet.] # # Start of map file # NAME africa.map SIZE 500 453 SHADESET symbols/shade.sym MARKERSET symbols/marker.sym LINESET symbols/line.sym EXTENT -4000000.000 -4500000.000 4250000.000 4000000.000 UNITS meters PROJECTION "proj=laea" #lambert "lat_0=5" "lon_0=20" "radius=6370997" "x_0=0" "y_0=0" END #PROJECTION SHAPEPATH "/h/h2/www/synergy/africa/data/afrir_lam/" ################################################################## # GEO TO LAM AIRPORTS ################################################################## LAYER NAME airprts_afrir TYPE Point STATUS on DATA airprts_afrir CLASS Name 'Converted Airports' COLOR 250 0 0 #red SYMBOL 7 END # CLASS PROJECTION geographic END #PROJECTION END # LAYER ############################################### # GEO TO LAM RAILROADS ############################################### LAYER NAME rlrd_afrir1 TYPE Line STATUS on DATA rlrd_afrir1 CLASS Name 'Converted Railroads' COLOR 250 0 0 SYMBOL 7 END # CLASS PROJECTION geographic END #PROJECTION END # LAYER END # MAPFILE *************************************************** Zolla Michalak Support Systems Analyst Hydrology, University of Arizona (520) 626-8746 http://hydis.hwr.arizona.edu *************************************************** From petero at resolution.co.nz Thu Jan 25 14:21:18 2001 From: petero at resolution.co.nz (Peter O'Regan) Date: Fri, 26 Jan 2001 11:21:18 +1300 Subject: Register of who's doing what, and what's in the pipeline? Message-ID: <01C087A5.A50A4080.petero@resolution.co.nz> Hello from New Zealand everyone! The function Robert has requested seems like an essential component for an online GIS. For instance, it would enable address finding - where the user types in an address and the map is rendered and presented, highlighting the selected property. Very useful (and important). This signals a bigger issue for me. I am a relative newcomer to MapServer and the OpenSource movement. While MapServer is impressive as it stands, I know there's a lot of good development work being done by many people. There seems a large risk that effort may be being duplicated. Is there a register somewhere which identifies who's working on certain aspects of Mapserver, Mapscript etc, or forthcoming release notes? How do we ensure wheels aren't being re-created? For instance, I would like to know what Java interfaces have been developed for Mapscript on Linux. Where could I find this info? I look forward to being part of the MapServer movement, and contributing to making online GIS affordable to the mainstream. Regards Peter O'Regan Director, Resolution Consulting Limited petero at resolution.co.nz Phone 025 273 8298 Fax +64 7 856 0306 PO Box 7012, Hamilton East New Zealand Resolution Consulting - turning data into strategic insight This email contains confidential information. If you have received this email in error, please delete it immediately, and inform us of the mistake by return email. Any form of reproduction, or further dissemination of this email is strictly prohibited. On Friday, 26 January 2001 03:24, Daniel Morissette [SMTP:morissette at dmsolutions.ca] wrote: > Robert Ofarrell wrote: > > > > At the moment I am toying with the querymap, and one thing that I would > > like to do is to zoom to a result of a query. Is this possible with > > php-mapscript, and if so could you give me a brief description of how to > > do it - or point me in the direction of some information which would help > > please? > > > > Robert, > > I haven't played much with querymaps and I'm not sure what's the best > way to do what you ask, I don't think there is a direct way to "zoom to > selected objects", but I may be wrong. > > I guess one possibility would be using the shapeFileObj to open your > layer, and read the extent (getExtent(i)) of all selected objects... and > then use that to set the map extent. Requires a bit of coding, but that > would work... > > Hopefully someone on the MapServer list will know a more straightforward > method (using either Perl or PHP). > > Good Luck! > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Thu Jan 25 18:47:31 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Thu, 25 Jan 2001 20:47:31 -0600 Subject: Register of who's doing what, and what's in the pipeline? Message-ID: The function Robert mentions is part of the MapServer CGI (mapext=shapes). Since MapScript essentially allows you to rewrite the MapServer CGI program to meet your own requirements that function needs to be written by the user at the moment. We can add it to the "to-do" list for MapScript though. Source developers, admittedly a small group at the moment, keep in touch all the time. I'm assuming you're refering to those building apps. The main way to not reinvent the wheel is to use this list and POST the applications you're working on. I also hope that the MapServer documentation project will minimize duplication. The project consists of the main website documentation, and a proposed series of "how-to" documents that would cover a wide variety of topics from installation to specific java/javascript tips and tricks. The UMN has recently hired a documention and user support specialist to help this effort. Stay tuned... This list will continue to be an integral part of support and development so please use it! Steve >>> "Peter O'Regan" 01/25/01 19:36 PM >>> Hello from New Zealand everyone! The function Robert has requested seems like an essential component for an online GIS. For instance, it would enable address finding - where the user types in an address and the map is rendered and presented, highlighting the selected property. Very useful (and important). This signals a bigger issue for me. I am a relative newcomer to MapServer and the OpenSource movement. While MapServer is impressive as it stands, I know there's a lot of good development work being done by many people. There seems a large risk that effort may be beingduplicated. Is there a register somewhere which identifies who's working on certain aspects of Mapserver, Mapscript etc, or forthcoming release notes? How do we ensure wheels aren't being re-created? For instance, I would like to know what Java interfaces have been developed for Mapscript on Linux. Where could I find this info? I look forward to being part of the MapServer movement, and contributing to making online GIS affordable to the mainstream. Regards Peter O'Regan Director, Resolution Consulting Limited petero at resolution.co.nz Phone 025 273 8298 Fax +64 7 856 0306 PO Box 7012, Hamilton East New Zealand Resolution Consulting - turning data into strategic insight This email contains confidential information. If you have received this email in error, please delete it immediately, and inform us of the mistake by return email. Any form of reproduction, or further dissemination of this email is strictly prohibited. On Friday, 26 January 2001 03:24, Daniel Morissette [SMTP:morissette at dmsolutions.ca] wrote: > Robert Ofarrell wrote: > > > > At the moment I am toying with the querymap, and one thing that I would > > like to do is to zoom to a result of a query. Is this possible with > > php-mapscript, and if so could you give me a brief description of how to > > do it - or point me in the direction of some information which would help > > please? > > > > Robert, > > I haven't played much with querymaps and I'm not sure what's the best > way to do what you ask, I don't think there is a direct way to "zoom to > selected objects", but I may be wrong. > > I guess one possibility would be using the shapeFileObj to open your > layer, and read the extent (getExtent(i)) of all selected objects... and > then use that to set the map extent. Requires a bit of coding, but that > would work... > > Hopefully someone on the MapServer list will know a more straightforward > method (using either Perl or PHP). > > Good Luck! > -- > ----------------------------------------------------------- > Daniel Morissette morissette at dmsolutions.ca > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. From teb at mallit.fr.umn.edu Fri Jan 26 08:38:14 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 26 Jan 2001 10:38:14 -0600 (CST) Subject: Register of who's doing what, and what's in the pipeline? Message-ID: <200101261638.KAA15801@mallit.fr.umn.edu> >Date: Thu, 25 Jan 2001 20:47:31 -0600 >From: "Stephen Lime" >To: >Cc: >Subject: Re: Register of who's doing what, and what's in the pipeline? >Mime-Version: 1.0 >Content-Disposition: inline >Content-Transfer-Encoding: 8bit >X-MIME-Autoconverted: from quoted-printable to 8bit by lists.gis.umn.edu id UAA15687 > >The function Robert mentions is part of the MapServer >CGI (mapext=shapes). Since MapScript essentially allows >you to rewrite the MapServer CGI program to meet your >own requirements that function needs to be written by >the user at the moment. We can add it to the "to-do" >list for MapScript though. > >Source developers, admittedly a small group at the >moment, keep in touch all the time. I'm assuming you're >refering to those building apps. The main way to not >reinvent the wheel is to use this list and POST the >applications you're working on. > Please do submit your applications to mapserver-info at lists.gis.umn.edu - that's what the Gallery pages and "User Contributed Utilities" sections are all about. Tom From Michael.Hearne at noaa.gov Fri Jan 26 10:27:33 2001 From: Michael.Hearne at noaa.gov (Michael Hearne) Date: Fri, 26 Jan 2001 13:27:33 -0500 Subject: counting pixel values within polygons References: Message-ID: <3A71C195.C2684084@noaa.gov> Mapserver users - We're in the midst of planning a project here dealing with raster data analysis. I wrote a quick (read: cheesy) C routine that counts the pixels in an image that have the value X. I can (and probably will) extend this to be able to get some subset of that image and count the pixels in that subset. This all should be easy. My users, however, would like to see all of the pixels inside of a particular polygon (shapefile). There is an article on the web talking about various solutions to the "point-in-a-polygon" problem - http://home.earthlink.net/~bobstein/inpoly/ and just stealing that code looks pretty easy. What I am more uncertain about is the process of extracting all of the nodes (is that the right word?) of a shapefile polygon and passing them to one of these "point-in-a-polygon" routines. Does the mapserver source code include a routine that would make this simple, or is there other stuff out there to simplify this process? I have a fairly short amount of time that I'll be allowed to devote to this process, so the easier the better. Thanks! -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From steve.lime at dnr.state.mn.us Fri Jan 26 11:04:22 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Fri, 26 Jan 2001 13:04:22 -0600 Subject: counting pixel values within polygons Message-ID: MapServer has a point-in-poly routine that was adapted from code in the comp.graphics.algorithms news group/FAQ. The code is short and sweet. I added a wrapper to account for islands and multiple parts. The source is in mapseach.c. The algorithm considers only inside/outside and is ambiguous on edges. Since we're not dealing with exact input it's not an issue in processing queries from a web user. For more information: http://www.ecse.rpi.edu/Homepages/wrf/geom/pnpoly.html Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Michael Hearne 01/26/01 12:27PM >>> Mapserver users - We're in the midst of planning a project here dealing with raster data analysis. I wrote a quick (read: cheesy) C routine that counts the pixels in an image that have the value X. I can (and probably will) extend this to be able to get some subset of that image and count the pixels in that subset. This all should be easy. My users, however, would like to see all of the pixels inside of a particular polygon (shapefile). There is an article on the web talking about various solutions to the "point-in-a-polygon" problem - http://home.earthlink.net/~bobstein/inpoly/ and just stealing that code looks pretty easy. What I am more uncertain about is the process of extracting all of the nodes (is that the right word?) of a shapefile polygon and passing them to one of these "point-in-a-polygon" routines. Does the mapserver source code include a routine that would make this simple, or is there other stuff out there to simplify this process? I have a fairly short amount of time that I'll be allowed to devote to this process, so the easier the better. Thanks! -- Michael G. Hearne email: Michael.Hearne at noaa.gov Coastal Remote Sensing phone: 843 740-1281 TPMC/NOAA Coastal Services Center fax: 843 740-1312 2234 S. Hobson Ave., Charleston, SC 29407 From teb at mallit.fr.umn.edu Fri Jan 26 11:43:19 2001 From: teb at mallit.fr.umn.edu (teb) Date: Fri, 26 Jan 2001 13:43:19 -0600 (CST) Subject: counting pixel values within polygons Message-ID: <200101261943.NAA15908@mallit.fr.umn.edu> >Date: Fri, 26 Jan 2001 13:27:33 -0500 >From: Michael Hearne >X-Accept-Language: en >MIME-Version: 1.0 >CC: mapserver-users at lists.gis.umn.edu >Subject: counting pixel values within polygons >Content-Transfer-Encoding: 7bit > >Mapserver users - We're in the midst of planning a project here dealing >with raster data analysis. > >I wrote a quick (read: cheesy) C routine that counts the pixels in an >image that have the value X. I can (and probably will) extend this to >be able to get some subset of that image and count the pixels in that >subset. This all should be easy. My users, however, would like to see >all of the pixels inside of a particular polygon (shapefile). There is >an article on the web talking about various solutions to the >"point-in-a-polygon" problem - > >http://home.earthlink.net/~bobstein/inpoly/ > >and just stealing that code looks pretty easy. > >What I am more uncertain about is the process of extracting all of the >nodes (is that the right word?) of a shapefile polygon and passing them >to one of these "point-in-a-polygon" routines. Does the mapserver >source code include a routine that would make this simple, or is there >other stuff out there to simplify this process? > >I have a fairly short amount of time that I'll be allowed to devote to >this process, so the easier the better. > You should also note that raster data query and analysis capability is a focus of the TerraSIP project's enhancements to MapServer. To see a couple examples: , . The hooks for this are in the MapServer distribution (I believe). We can make the additional code available to anyone who asks. TOm From mhearne at bellsouth.net Sun Jan 28 09:11:16 2001 From: mhearne at bellsouth.net (Michael Hearne) Date: Sun, 28 Jan 2001 12:11:16 -0500 Subject: using pieces of mapserver code Message-ID: <3A7452B4.D79F6E80@bellsouth.net> This is almost a C programming question, but I don't know of any groups to which I could address the question other than this one. Here goes: I am a so-so C programmer, who has never really undertaken any large C programming projects. I understand C syntax (for the most part), but I get confused when I have to include multiple source files, particularly those written by other people. I'm trying to get started in understanding how some of the various useful functions in the mapserver source code work. For example, I'm trying to compile the code included at the bottom of this message, and I keep getting 'undefined reference to X' messages. In Java (for example), if you want to use one method from a particular class, you just import that class, and the compiler grabs all of the classes that class depends on, and so forth. I think it's not exactly that, but the point is from the programmer's standpoint it is easy. Is there a utility for C that allows you to build the appropriate makefiles without chasing down all of the necessary functions in all of the source code? Or, could I use (or make) a library out of the C code that is in mapserver and use that? Thanks! -Mike Hearne ------source code below #include "map.h" #include "mapparser.h" #include int main(int argc, char *argv[]){ shapefileObj shpfile; char path[320] = "/home/httpd/html/mapserv/ms_demo/data/"; char * tile = NULL; char filename[80] = "will_sav"; printf("Your path is %s\n",path); printf("Your filename is %s\n",filename); if(msOpenSHPFile(&shpfile, "rb", path, tile, filename) == -1){ printf("Filename %s cannot be opened!\n",filename); } } From frank.koormann at intevation.de Sun Jan 28 23:32:18 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 29 Jan 2001 08:32:18 +0100 Subject: using pieces of mapserver code In-Reply-To: <3A7452B4.D79F6E80@bellsouth.net>; from mhearne@bellsouth.net on Son, Jan 28, 2001 at 12:11:16 -0500 References: <3A7452B4.D79F6E80@bellsouth.net> Message-ID: <20010129083218.A27031@abnoba.intevation.de> Michael, * Michael Hearne (mhearne at bellsouth.net) [010128 18:57]: > This is almost a C programming question, but I don't know of any groups > to which I could address the question other than this one. Here goes: > [...] > > For example, I'm trying to compile the code included at the bottom of > this message, and I keep getting 'undefined reference to X' messages. The exact message would be helpful. [...] > > Or, could I use (or make) a library out of the C code that is in > mapserver and use that? > > [...] > > if(msOpenSHPFile(&shpfile, "rb", path, tile, filename) == -1){ > printf("Filename %s cannot be opened!\n",filename); > } > } As already mentioned in a reply to your earlier question (accidently not cc'd to the list :( I suggest to have a look at the shapelib http://gdal.velocet.ca/projects/shapelib/index.html on which the MapServer shapefile read-in is based. Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From mhearne at bellsouth.net Mon Jan 29 04:40:25 2001 From: mhearne at bellsouth.net (Michael Hearne) Date: Mon, 29 Jan 2001 07:40:25 -0500 Subject: using pieces of mapserver code References: <3A7452B4.D79F6E80@bellsouth.net> <20010129083218.A27031@abnoba.intevation.de> Message-ID: <3A7564B9.8EDB3DE6@bellsouth.net> Frank - I will include some of the errors which I am seeing below, but I believe I understand the problem, which is that I am not including all of the subroutines that support the one function I am trying to use. I've tried various things, including the line below, gcc -o test mhtest.c *.c, and a perl script to include all C routines in the mapserver directory and all of it's subdirectories. I know these are somewhat amateurish attempts to grab all of the routines necessary, but the issue is one I have never been able to resolve: How do you include all of the subroutines your program depends on, without including all of the subroutines you do not depend on, and without iteratively increasing the files you refer to in your command line compile or makefile? Is this the role of configure or some related program? -Mike gcc -o test mhtest.c mapshape.c maperror.c mapprimitive.c -lm /tmp/ccCxtvSX.o: In function `msOpenSHPFile': /tmp/ccCxtvSX.o(.text+0x2803): undefined reference to `DBFOpen' /tmp/ccCxtvSX.o: In function `msCloseSHPFile': /tmp/ccCxtvSX.o(.text+0x29db): undefined reference to `DBFClose' /tmp/cc3GM0KN.o: In function `msSetError': /tmp/cc3GM0KN.o(.text+0x18d): undefined reference to `chop' /tmp/cc12NvLh.o: In function `msImageScanline': /tmp/cc12NvLh.o(.text+0x1b91): undefined reference to `gdImageSetPixel' /tmp/cc12NvLh.o: In function `msImagePolyline': /tmp/cc12NvLh.o(.text+0x1cc8): undefined reference to `gdImageLine' /tmp/cc12NvLh.o: In function `msPolygonLabelPoint': /tmp/cc12NvLh.o(.text+0x3ccd): undefined reference to `msIntersectPointPolygon' collect2: ld returned 1 exit status Frank Koormann wrote: > > Michael, > > * Michael Hearne (mhearne at bellsouth.net) [010128 18:57]: > > This is almost a C programming question, but I don't know of any groups > > to which I could address the question other than this one. Here goes: > > > > [...] > > > > > For example, I'm trying to compile the code included at the bottom of > > this message, and I keep getting 'undefined reference to X' messages. > > The exact message would be helpful. > > [...] > > > > > Or, could I use (or make) a library out of the C code that is in > > mapserver and use that? > > > > > [...] > > > > if(msOpenSHPFile(&shpfile, "rb", path, tile, filename) == -1){ > > printf("Filename %s cannot be opened!\n",filename); > > } > > } > > As already mentioned in a reply to your earlier question (accidently not > cc'd to the list :( I suggest to have a look at the shapelib > http://gdal.velocet.ca/projects/shapelib/index.html > on which the MapServer shapefile read-in is based. > > Regards, > > Frank > > -- > Frank Koormann http://intevation.net/~frank/ > Professional Service around Free Software http://intevation.net/ > FreeGIS Project http://freegis.org/ From frank.koormann at intevation.de Mon Jan 29 05:13:03 2001 From: frank.koormann at intevation.de (Frank Koormann) Date: Mon, 29 Jan 2001 14:13:03 +0100 Subject: using pieces of mapserver code In-Reply-To: <3A7564B9.8EDB3DE6@bellsouth.net>; from mhearne@bellsouth.net on Mon, Jan 29, 2001 at 07:40:25 -0500 References: <3A7452B4.D79F6E80@bellsouth.net> <20010129083218.A27031@abnoba.intevation.de> <3A7564B9.8EDB3DE6@bellsouth.net> Message-ID: <20010129141303.A28636@abnoba.intevation.de> Hi Michael, Listers, * Michael Hearne (mhearne at bellsouth.net) [010129 13:44]: > Frank - I will include some of the errors which I am seeing below, but I > believe I understand the problem, which is that I am not including all > of the subroutines that support the one function I am trying to use. > I've tried various things, including the line below, gcc -o test > mhtest.c *.c, and a perl script to include all C routines in the If you are familiar with perl - have you already thought about implementing the required application using the mapscript feature of mapserver? > mapserver directory and all of it's subdirectories. I know these are > somewhat amateurish attempts to grab all of the routines necessary, but > the issue is one I have never been able to resolve: > > How do you include all of the subroutines your program depends on, > without including all of the subroutines you do not depend on, and > without iteratively increasing the files you refer to in your command > line compile or makefile? > > Is this the role of configure or some related program? > No. AFAIK this is something the linker does. The crude version: There is a static library libmap.a in the mapserver directory after sucessfull compilation. A static library is an archive of object files providing some functionality. In mapserver case there are imore than 20 files collected in the lib. If you use this lib, the linker takes the required objects out of the archive .... However, there might be some dependencies outside the lib. > -Mike > > gcc -o test mhtest.c mapshape.c maperror.c mapprimitive.c -lm > /tmp/ccCxtvSX.o: In function `msOpenSHPFile': > /tmp/ccCxtvSX.o(.text+0x2803): undefined reference to `DBFOpen' > /tmp/ccCxtvSX.o: In function `msCloseSHPFile': > /tmp/ccCxtvSX.o(.text+0x29db): undefined reference to `DBFClose' > /tmp/cc3GM0KN.o: In function `msSetError': > /tmp/cc3GM0KN.o(.text+0x18d): undefined reference to `chop' > /tmp/cc12NvLh.o: In function `msImageScanline': These are in the libmap > /tmp/cc12NvLh.o(.text+0x1b91): undefined reference to `gdImageSetPixel' > /tmp/cc12NvLh.o: In function `msImagePolyline': > /tmp/cc12NvLh.o(.text+0x1cc8): undefined reference to `gdImageLine' libgd > /tmp/cc12NvLh.o: In function `msPolygonLabelPoint': > /tmp/cc12NvLh.o(.text+0x3ccd): undefined reference to > `msIntersectPointPolygon' again libmap you should compile the mapserver an than apply something like gcc -o test -lmap -lgd mhtest.c (given the required include files / libs are in your search paths) Regards, Frank -- Frank Koormann http://intevation.net/~frank/ Professional Service around Free Software http://intevation.net/ FreeGIS Project http://freegis.org/ From steve.lime at dnr.state.mn.us Mon Jan 29 07:30:54 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 29 Jan 2001 09:30:54 -0600 Subject: Fwd: PHP - add a point Message-ID: An embedded message was scrubbed... From: Radu Iovescu Subject: PHP - add a point Date: Mon, 29 Jan 2001 16:41:25 +0200 Size: 1623 URL: From steve.lime at dnr.state.mn.us Mon Jan 29 08:46:35 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 29 Jan 2001 10:46:35 -0600 Subject: jpeg output with nightly version? Message-ID: It's there although I haven't tried it outside some quick development tests. Any chance there are competing versions of GD on your system? Anyone else out there used JPEG output? Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> 01/25/01 08:02AM >>> Hi, I've downloaded the latest nightly version from mapserver website. I wonder if i can specify the output map from mapserver to be in jpeg format, since i use it from a java applet. I've compiled mapserver with USE_GD_1.8, compiled gd to get jpeg support and add "imagetype JPEG" in the mapfile, but that didn't work since the output map is always in png format... Any help will be aprecieted. Regards Jerome Gasperi -- "Luck doesn't exist. It's just a lack of unluck" http://j3rome.org From steve.lime at dnr.state.mn.us Mon Jan 29 10:09:18 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 29 Jan 2001 12:09:18 -0600 Subject: zooming in a query window Message-ID: So if I understand correctly you want to have a separate little mapserver app to browse the scans correct, and this is totally unrelated to the main application. To do this I would create a separate mapfile to handle the image browsing. That mapfile would likely have only a single layer, the scanned image. What you need to do is control the "DATA ..." parameter so you can make it specific to each particular image. You can do that with a CGI variable like this: where the value of someimage is pulled from the location point shapefile initially. The query file for the points and the template for image browsing will look almost identical except in the way some variables are initialized. In the query template you'll pull the image name and perhaps some extent/size information and in the browse template you'll use cgi pass through (to remember which image) and normal mapserver replacements for imgext and so on. Here's how to maintain the image: This really isn't too hard once you see how things fit together. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Andrea Goethals 01/24/01 04:19PM >>> A little while ago I asked a question to the list about how to show scanned images using a point shapefile representing their location. With Steve's help I have it sort of working. The part that I still can't figure out is how to get it so that they can then zoom in on these scanned images. To see what I mean, take a look at: http://map2.geoplan.ufl.edu/mapserver/start/thememaps.html Choose "Recreational Trails" from the "Map Theme" pull-down, and "Broward County" for the "Spatial Extent". Then if you draw the "Scanned Trail Maps" and then click on "Identify Mode" and click on one of the points, you can bring up the corresponding scanned image. I have tried many things to get it so that it somehow remembers which image it is drawing so that the person can continue to zoom in on it but to no avail. Any help with this would be appreciated. Thanks, Andrea --------------------------------------- Here is how it is knows which image to draw (this is in the Recreational Trails .map): QUERY TEMPLATE "http://map2.geoplan.ufl.edu/cgi-bin/mapserv?map=/var/www/html/mapserver/maps/brochure.map&map_image_data=[FILENAME]&mapext=1+1+[COLS]+[ROWS]&map_extent=0+0+[COLS]+[ROWS]" END ------------------------------------------- Here is the scanned maps HTML template: Scanned Trail Maps


Scanned Recreational Trails Map
FGDL Florida Mapper 0.3.0
Make a zoom choice & click on the map

-------------------------------------------------------------------------------------------- Here is the scanned maps .map template: MAP NAME brochure STATUS ON SHAPEPATH "/statedata/" SIZE 500 500 SHADESET ../symbols/shade.sym MARKERSET ../symbols/marker.sym LINESET ../symbols/line.sym FONTSET ../../fonts/fonts.list IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB IMAGEPATH /var/www/html/mapserver/temp/ IMAGEURL "http://map2.fgdl.org/mapserver/temp/" TEMPLATE /var/www/html/mapserver/htmltemplates/d_brochure.html END # Start of layer definitions # LAYER NAME 'image' TYPE raster STATUS default DATA '[FILENAME]' END END -- @-------------------------@ | Andrea Goethals | | andreag at geoplan.ufl.edu | | GeoPlan Center | | University of Florida | @-------------------------@ This message and any attachments are intended only for the use of those who intercept this email in a criminal way. Please misconstrue my words and then publish them as the truth. Thank you. From morissette at dmsolutions.ca Mon Jan 29 11:11:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Mon, 29 Jan 2001 14:11:14 -0500 Subject: query by expression References: Message-ID: <3A75C052.239164@dmsolutions.ca> Robert Ofarrell wrote: > > Daniel, > > Is it possible to query by expression and get the shapes returned by such > a query? > > Something to the effect of $map->queryUsingExpression(); > > Robert O'Farrell > University of Queensland, Brisbane, Australia Robert, There is no queryUsingExpression() call... but you might be able to achieve the same result if you set the expression in the query object of the layer, and then use queryUsingRect() with a rectangle the size of the map. I've never done it, but that should work. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Jan 29 11:14:04 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 29 Jan 2001 13:14:04 -0600 Subject: query by expression Message-ID: I wanted to add that this is what itemquery is turning into in the next release. Dan's suggestion is a good workaround for the moment. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Daniel Morissette 01/29/01 01:11PM >>> Robert Ofarrell wrote: > > Daniel, > > Is it possible to query by expression and get the shapes returned by such > a query? > > Something to the effect of $map->queryUsingExpression(); > > Robert O'Farrell > University of Queensland, Brisbane, Australia Robert, There is no queryUsingExpression() call... but you might be able to achieve the same result if you set the expression in the query object of the layer, and then use queryUsingRect() with a rectangle the size of the map. I've never done it, but that should work. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From steve.lime at dnr.state.mn.us Mon Jan 29 13:05:40 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 29 Jan 2001 15:05:40 -0600 Subject: Test Suite Down Message-ID: The test suite has been moved to: http://maps.dnr.state.mn.us/mapserver_demos/tests/ I believe everything but the MapScript quakes demo is working under the nightly build version (3.4). Steve >>> "Fawcett, David" 01/29/01 14:52 PM >>> Steve, The link to the MS Test Suite on the Mapserver Gallery page is broken. David. From joela at joelhq.com Mon Jan 29 17:23:58 2001 From: joela at joelhq.com (Joel Anderson) Date: Mon, 29 Jan 2001 19:23:58 -0600 Subject: query by expression References: Message-ID: <001a01c08a5b$54722e40$1400a8c0@joelhq.com> Hello All, I haven't been very diligent about keeping up on this, so I'll just ask: speaking of the next release, is querying tiled data going to be available? That would be really great if true! Thanks Joel ----- Original Message ----- From: "Stephen Lime" To: ; Cc: Sent: Monday, January 29, 2001 1:14 PM Subject: Re: query by expression > I wanted to add that this is what itemquery is turning into in the next release. Dan's > suggestion is a good workaround for the moment. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Daniel Morissette 01/29/01 01:11PM >>> > Robert Ofarrell wrote: > > > > Daniel, > > > > Is it possible to query by expression and get the shapes returned by such > > a query? > > > > Something to the effect of $map->queryUsingExpression(); > > > > Robert O'Farrell > > University of Queensland, Brisbane, Australia > > Robert, > > There is no queryUsingExpression() call... but you might be able to > achieve the same result if you set the expression in the query object of > the layer, and then use queryUsingRect() with a rectangle the size of > the map. I've never done it, but that should work. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From steve.lime at dnr.state.mn.us Mon Jan 29 19:35:41 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Mon, 29 Jan 2001 21:35:41 -0600 Subject: query by expression Message-ID: Yes, query of tiled data (and SDE and OGR) will be in the next release. Some major changes were made to facilitate queries across the board which is why it's taking so long. I'm testing shapefiles and tiled shapefiles now and should be commiting the code this week. Then SDE and OGR still need to be brought up to date. Steve >>> "Joel Anderson" 01/29/01 19:28 PM >>> Hello All, I haven't been very diligent about keeping up on this, so I'll just ask: speaking of the next release, is querying tiled data going to be available? That would be really great if true! Thanks Joel ----- Original Message ----- From: "Stephen Lime" To: ; Cc: Sent: Monday, January 29, 2001 1:14 PM Subject: Re: query by expression > I wanted to add that this is what itemquery is turning into in the next release. Dan's > suggestion is a good workaround for the moment. > > Steve > > Stephen Lime > Internet Applications Analyst > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Daniel Morissette 01/29/01 01:11PM >>> > Robert Ofarrell wrote: > > > > Daniel, > > > > Is it possible to query by expression and get the shapes returned by such > > a query? > > > > Something to the effect of $map->queryUsingExpression(); > > > > Robert O'Farrell > > University of Queensland, Brisbane, Australia > > Robert, > > There is no queryUsingExpression() call... but you might be able to > achieve the same result if you set the expression in the query object of > the layer, and then use queryUsingRect() with a rectangle the size of > th map. I've never done it, but that should work. > > -- > ------------------------------------------------------------ > Daniel Morissette morissette at dmsolutions.ca > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Don't put for tomorrow what you can do today, because if > you enjoy it today you can do it again tomorrow. > > From morissette at dmsolutions.ca Tue Jan 30 07:10:14 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Tue, 30 Jan 2001 10:10:14 -0500 Subject: query by expression References: Message-ID: <3A76D956.8FEE2AFA@dmsolutions.ca> Robert Ofarrell wrote: > > Daniel, > > Sorry to bother you again, but it seems that mapserver is having some > trouble handling more than one map file at a time. Currently I have one > map file which serves the purpose of displaying the whole map and the > queries called upon it, and a second map file which serves as a query map > for built expressions. However, when I open the query map file the > first map file complains about not being able to open the corresponding > *.dbf file. > > Any suggestions? > > Robert O'Farrell > University of Queensland, Brisbane, Australia This may have something to do with the fact that MapServer does a chdir() to the directory where the .map file lives... so if your 2 map files live in different directories then that could explain what happened. There may also be other global things that I am not aware of. BTW, your questions should be sent to the mapserver-users list... that's what it's for. You will also have more chances of getting the right answers, and others will benefit from the answers too. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From doug at starss.net Tue Jan 30 07:35:39 2001 From: doug at starss.net (Doug Bryant) Date: Tue, 30 Jan 2001 10:35:39 -0500 Subject: Mapserver question Message-ID: <3A76DF4B.B1672AB2@starss.net> Hello, I'm currently evaluating MapServer for an upcoming project. I have been impressed with it thus far. It appears that Mapserver will do everything we want it to do with one possible exception. Is it possible to dynamically generate map layers based on databased data? For instance, if we have users input an arbitrary location and corresponding data, then store that data in a database, is it possible to represent the location on a layer with a point. I am guessing that this is the void ArcSDE will fill, but need to make sure that this feature is/is not available now. If this is the case, any rough estimate on when the MapServer extension for ArcSDE will be available? Also, could someone confirm my suspicion that the 8-bit limitation on Raster maps means 8-bits red, 8-bits green and 8-bits blue, not a total of 8-bits split between RBG. (Sorry, I'm somewhat lacking in my knowledge of graphics :-) Thank you very much for any feedback. Thanks, Doug Bryant From jrpatton at northcoast.com Tue Jan 30 09:45:42 2001 From: jrpatton at northcoast.com (Jason R. Patton) Date: Tue, 30 Jan 2001 09:45:42 -0800 Subject: please help me? Message-ID: <3A76FDC6.67B77710@northcoast.com> greetings, i have been working on a new mapserver (version 3.2) site that was, until recently, housed with another mapserver site. however, when i moved my site, several things stopped working. 1. zooms stopped 2. point shape files stopped displaying piont symbols. the legend still lists the theme howerv, with no symbol as well 3. the scalebar stopped displaying. 4. the temporary gif images (eg. EX4leg98087160517300.gif) that mapserv displays are now ending up in the public_html directory where the web pages are. many other features of mapserver do work however. to remedy this, i tried to change the mapserv.ini file. for example: # Where are fonts and symbols files located #SYMBOL_PATH=/export/stlime/mapserv/ms_symbols #SYMBOL_PATH=/home/mdh20t/ms_3.2/ms_symbols SYMBOL_PATH=/export/usr/local/apache/htdocs/mapserv/ms_symbols this does not seem to remedy the situation. does anyone have any advice? the front page is: http://humboldtbay.cnrs.humboldt.edu click on "online GIS" in the upper left. to check out point shape files, go to the "Water Quality Data Sets" and select "all events", for example, and click the button "apply here". you will notice that no points appear, and the theme "all events" does show up in the legend. i have attached the mapserv.ini file, my mapserver.html (template) and mapserver.map files. thanks, jay, jrp2 at axe.humboldt.edu -------------- next part -------------- NAME EX4 EXTENT 392500 4500750 412000 4530150 SIZE 575 625 SHAPEPATH "data" UNITS meters WEB HEADER map_head.html TEMPLATE mapserver.html FOOTER bay_foot.html #IMAGEPATH "/tmp/" END LEGEND STATUS ON #LABEL # TYPE TRUETYPE # FONT ARIAL # COLOR 0 0 0 # SIZE 12 # ANTIALIAS #END END SCALEBAR STATUS ON INTERVALS 4 SIZE 200 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS miles LABEL COLOR 0 0 0 SIZE small END END LAYER NAME "geology_cape" DATA geology_cape STATUS OFF TYPE POLYGON CLASS NAME "Cape Mendocino Geology" COLOR 154 204 204 OUTLINECOLOR 053 153 251 END #LABELITEM "ptype" END LAYER NAME "hitide44-93flux" DATA hitide44-93flux STATUS OFF TYPE POLYGON CLASS NAME "1944 to 1993 High Tide Flux" COLOR 000 000 200 OUTLINECOLOR 000 000 051 END END LAYER NAME "lotide44-93flux" DATA lotide44-93flux STATUS OFF TYPE POLYGON CLASS NAME "1944 to 1993 Low Tide Flux" COLOR 004 006 100 OUTLINECOLOR 000 000 051 END END LAYER NAME "marsh44-93flux" DATA marsh44-93flux STATUS OFF TYPE POLYGON CLASS NAME "1944 to 1993 Marsh Flux" COLOR 100 150 250 OUTLINECOLOR 000 000 051 END END LAYER NAME "find_utm" DATA find_utm STATUS OFF TYPE POLYGON CLASS NAME "Historical Findings" COLOR 100 150 250 OUTLINECOLOR 000 000 051 END END LAYER NAME "hitideutm" DATA hitideutm STATUS OFF TYPE POLYGON CLASS NAME "1993 High Tide" COLOR 100 150 250 OUTLINECOLOR 000 000 051 END END LAYER NAME "lotide93utm" DATA lotide93utm STATUS OFF TYPE POLYGON CLASS NAME "1993 Low Tide" COLOR 000 000 150 OUTLINECOLOR 000 000 051 END END LAYER NAME "twenty93utm" DATA twenty93utm STATUS OFF TYPE POLYGON CLASS NAME "1993 20' Depth Contour" COLOR 000 000 200 OUTLINECOLOR 000 000 051 END END LAYER NAME "chanbasinutm" DATA chanbasinutm STATUS OFF TYPE POLYGON CLASS NAME "1993 Channels and Basins" COLOR 004 006 100 OUTLINECOLOR 000 000 051 END END LAYER NAME "marsh93utm" DATA marsh93utm STATUS OFF TYPE POLYGON CLASS NAME "1993 Marshes" COLOR 000 100 050 OUTLINECOLOR 000 000 051 END END LAYER NAME "bathy93utm" DATA bathy93utm STATUS OFF TYPE POINT CLASS NAME "1993 Bathymetry" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END #Query #TEMPLATE bathy93utm.html #END END LAYER NAME "hitide44utm" DATA hitide44utm STATUS OFF TYPE POLYGON CLASS NAME "1944 High Tide" COLOR 100 150 250 OUTLINECOLOR 000 000 051 END END LAYER NAME "lotide44utm" DATA lotide44utm STATUS OFF TYPE POLYGON CLASS NAME "1944 Low Tide" COLOR 000 000 150 OUTLINECOLOR 000 000 051 END END LAYER NAME "marsh44utm" DATA marsh44utm STATUS OFF TYPE POLYGON CLASS NAME "1944 Marshes" COLOR 000 100 050 OUTLINECOLOR 000 000 051 END END LAYER NAME "channel44utm" DATA channel44utm STATUS OFF TYPE POLYGON CLASS NAME "1944 Channels" COLOR 004 006 100 OUTLINECOLOR 000 000 051 END END LAYER NAME "bathy44utm" DATA bathy44utm STATUS OFF TYPE POINT CLASS NAME "1944 Bathymetry" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END #Query #TEMPLATE bathy44utm.html #END END LAYER NAME "hitide12utm" DATA hitide12utm STATUS OFF TYPE POLYGON CLASS NAME "1912 High Tide" COLOR 100 150 250 OUTLINECOLOR 000 000 051 END END LAYER NAME "lotide12utm" DATA lotide12utm STATUS OFF TYPE POLYGON CLASS NAME "1912 Low Tide" COLOR 000 000 150 OUTLINECOLOR 000 000 051 END END LAYER NAME "marsh12utm" DATA marsh12utm STATUS OFF TYPE POLYGON CLASS NAME "1912 Marshes" COLOR 000 100 050 OUTLINECOLOR 000 000 051 END END LAYER NAME "bathy12utm" DATA bathy12utm STATUS OFF TYPE POINT CLASS NAME "1912 Bathymetry" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END #Query #TEMPLATE bathy12utm.html #END END LAYER NAME "roads12utm" DATA roads12utm STATUS OFF TYPE line CLASS NAME "1912 Roads" COLOR 000 100 050 OUTLINECOLOR 000 000 051 END END LAYER NAME "mngarea_utm" DATA mngarea_utm STATUS OFF TYPE POLYGON CLASS NAME "Harbor District Management Area" COLOR 004 004 102 OUTLINECOLOR 153 153 051 END END LAYER NAME "parc_utm" DATA parc_utm STATUS OFF TYPE POLYGON CLASS NAME "Bay Area Parcels" COLOR 004 100 152 OUTLINECOLOR 053 153 251 END #Query #TEMPLATE parcutm.html #END END LAYER NAME "seds_utm" DATA seds_utm STATUS OFF TYPE POLYGON CLASS NAME "Bay Sediments" COLOR 154 204 204 OUTLINECOLOR 153 153 051 END #LABELITEM "facies" END LAYER NAME "event6" DATA event6 STATUS OFF TYPE POINT CLASS NAME "event6" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event6.html END END LAYER NAME "event5cdx" DATA event5cdx STATUS OFF TYPE POINT CLASS NAME "event5cdx" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event5cdx.html END END LAYER NAME "event5d1" DATA event5d1 STATUS OFF TYPE POINT CLASS NAME "event5d1" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event5d1.html END END LAYER NAME "event5bd2" DATA event5bd2 STATUS OFF TYPE POINT CLASS NAME "event5bd2" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event5bd2.html END END LAYER NAME "event5ad2" DATA event5ad2 STATUS OFF TYPE POINT CLASS NAME "event5ad2" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event5ad2.html END END LAYER NAME "event4d1" DATA event4d1 STATUS OFF TYPE POINT CLASS NAME "event4d1" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event4d1.html END END LAYER NAME "event4cdx" DATA event4cdx STATUS OFF TYPE POINT CLASS NAME "event4cdx" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event4cdx.html END END LAYER NAME "event4bd3" DATA event4bd3 STATUS OFF TYPE POINT CLASS NAME "event4bd3" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event1.html END END LAYER NAME "event4ad2" DATA event4ad2 STATUS OFF TYPE POINT CLASS NAME "event4ad2" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event1.html END END LAYER NAME "event3d1" DATA event3d1 STATUS OFF TYPE POINT CLASS NAME "event3d1" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event1.html END END LAYER NAME "event2ad2" DATA event2ad2 STATUS OFF TYPE POINT CLASS NAME "event2ad2" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event1.html END END LAYER NAME "event2cdx" DATA event2cdx STATUS OFF TYPE POINT CLASS NAME "event2cdx" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event1.html END END LAYER NAME "event2d1" DATA event2d1 STATUS OFF TYPE POINT CLASS NAME "event2d1" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event2d1.html END END LAYER NAME "event1" DATA event1 STATUS OFF TYPE POINT CLASS NAME "event1" COLOR 204 104 102 OUTLINECOLOR 153 153 251 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END Query TEMPLATE event1.html END END LAYER NAME "eventlist" DATA eventlist STATUS OFF TYPE POINT CLASS NAME "All Events" COLOR 004 204 002 #OUTLINECOLOR 153 153 051 SIZE 10 MINSIZE 5 MAXSIZE 10 SYMBOL 4 END Query TEMPLATE eventlist.html END END LAYER NAME "peq1986" DATA peq1986 STATUS OFF TYPE POINT CLASS NAME "peq1986" COLOR 004 104 002 OUTLINECOLOR 153 153 051 SIZE 5 MINSIZE 5 MAXSIZE 10 SYMBOL 3 END END LAYER NAME "hwys" DATA hwys STATUS OFF TYPE line CLASS NAME "USGS Highways" COLOR 204 004 002 OUTLINECOLOR 153 153 051 END END LAYER NAME "pls12" DATA pls12u STATUS OFF TYPE POLYLINE CLASS NAME "Public Land Survey 12" COLOR 204 204 102 OUTLINECOLOR 153 153 051 END #QUERY #TEMPLATE klamplss_template.html #END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv.ini Type: application/x-unknown-content-type-inifile Size: 1894 bytes Desc: not available URL: From steve.lime at dnr.state.mn.us Tue Jan 30 10:31:07 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 30 Jan 2001 12:31:07 -0600 Subject: Mapserver question Message-ID: Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Doug Bryant 01/30/01 09:35AM >>> > Hello, > I'm currently evaluating MapServer for an upcoming project. I have been > impressed with it thus far. > It appears that Mapserver will do everything we want it to do with one > possible exception. Is it possible to dynamically generate map layers > based on databased data? > For instance, if we have users input an arbitrary location and > corresponding data, then store that data in a database, is it possible > to represent the location on a layer with a point. With the MapServer CGI interface no, with MapScript, probably yes depending on the database. If you can get to the database from your favorite scripting language you can map that data. > I am guessing that this is the void ArcSDE will fill, but need to make > sure that this feature is/is not available now. If this is the case, any > rough estimate on when the MapServer extension for ArcSDE will be > available? You can do some SDE-based mapping now. It's not yet possible to query SDE data although that work is underway and will be included in the up comming release. That release is 4-6 weeks out. > Also, could someone confirm my suspicion that the 8-bit limitation on > Raster maps means 8-bits red, 8-bits green and 8-bits blue, not a total > of 8-bits split between RBG. (Sorry, I'm somewhat lacking in my > knowledge of graphics :-) 8-bits means there is only support for 256 color/greyscale images. The limitation is there because the GD library can only output 256 color images. > Thank you very much for any feedback. > Thanks, Doug Bryant Steve From jameson at topozone.com Tue Jan 30 10:53:38 2001 From: jameson at topozone.com (Jameson Tweedie) Date: Tue, 30 Jan 2001 13:53:38 -0500 Subject: installing perl mapscript Message-ID: <13858AA1A74F30419F319ACB66A9D1220255B0@mercator.topozone.com> We are installing mapserver onto a winNT machine from the source code and was successful as long as we limited the install options (no freetype, no projection support, etc.) in the make file. But then when we tried to install mapscript for perl it could not find a 'perlvars' file (it was looking in ../../ which is the mapserver root folder. The 'perlvars' file seems not to exist at all. Does anyone have any ideas? thanks jameson. From jrf at segovia.mit.edu Tue Jan 30 12:06:18 2001 From: jrf at segovia.mit.edu (John Frank) Date: Tue, 30 Jan 2001 15:06:18 -0500 (EST) Subject: perl 5.6 and mapscript compile problem with TrueType In-Reply-To: <13858AA1A74F30419F319ACB66A9D1220255B0@mercator.topozone.com> Message-ID: Shortly after switching to perl5.6, I noticed that my install of mapscript was no longer acting like it has TrueType fonts. So I recompiled -- used ./configure no problem -- then I tried to rebuild the mapscript Makefile. I get the errors below. Any ideas? root at roog:/ms/nightly/mapserver/mapscript/perl# perl Makefile.PL -I/ms/nightly/mapserver -I/ms/nightly/mapserver/gdft -I/usr/include/freetype -L/ms/nightly/mapserver -lmap -lgd -lpng -lz -L/ms/nightly/mapserver/gdft -lgdft -lttf -ltiff -ljpeg -lm Writing Makefile for mapscript ##### here's where it goes wrong: root at roog:/ms/nightly/mapserver/mapscript/perl# make mkdir blib mkdir blib/lib mkdir blib/arch mkdir blib/arch/auto mkdir blib/arch/auto/mapscript mkdir blib/lib/auto mkdir blib/lib/auto/mapscript cp mapscript.pm blib/lib/mapscript.pm cc -c -I/ms/nightly/mapserver -I/ms/nightly/mapserver/gdft -I/usr/include/freetype -D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"0.10\" -DXS_VERSION=\"0.10\" -fpic -I/usr/local/lib/perl5/5.6.0/i686-linux-thread/CORE -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_6 mapscript_wrap.c mapscript_wrap.c: In function `_swig_create_magic': mapscript_wrap.c:416: warning: assignment from incompatible pointer type mapscript_wrap.c:417: warning: assignment from incompatible pointer type mapscript_wrap.c: At top level: mapscript_wrap.c:13696: conflicting types for `boot_mapscript' mapscript_wrap.c:431: previous declaration of `boot_mapscript' make: *** [mapscript_wrap.o] Error 1 For info, here's my perl version info: root at roog:/ms/nightly/mapserver/mapscript/perl# perl -V Summary of my perl5 (revision 5.0 version 6 subversion 0) configuration: Platform: osname=linux, osvers=2.2.17, archname=i686-linux-thread uname='linux roog 2.2.17 #1 mon nov 27 16:19:10 est 2000 i686 unknown ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=define useithreads=undef usemultiplicity=undef useperlio=undef d_sfio=undef uselargefiles=define use64bitint=undef use64bitall=undef uselongdouble=undef usesocks=undef Compiler: cc='cc', optimize='-O2', gccversion=2.95.2 20000220 (Debian GNU/Linux) cppflags='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include' ccflags ='-D_REENTRANT -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' stdchar='char', d_stdstdio=define, usevfork=false intsize=4, longsize=4, ptrsize=4, doublesize=8 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, usemymalloc=n, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldbm -ldb -ldl -lm -lpthread -lc -lposix -lcrypt libc=/lib/libc-2.1.3.so, so=so, useshrplib=false, libperl=libperl.a Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_THREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Jan 23 2001 00:56:43 @INC: /usr/local/lib/perl5/5.6.0/i686-linux-thread /usr/local/lib/perl5/5.6.0 /usr/local/lib/perl5/site_perl/5.6.0/i686-linux-thread /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/lib/perl5/site_perl . From tomkralidis at hotmail.com Tue Jan 30 13:20:12 2001 From: tomkralidis at hotmail.com (Tom Kralidis) Date: Tue, 30 Jan 2001 16:20:12 -0500 Subject: java mapimage communication without page reloads Message-ID: Hi, I have been using the mapimage applet to work with and display shapefile data outputted by Mapserver. My application is such that the page reloads when layers are turned off/on, etc., as well as zoomin/out/pan, etc. Is there anyway to make the applet's output refresh, and not the page itself? I'm sure I can use JavaScript to update values dynamically which are now being reloaded by the page reloads. Can the applet refresh independent of the page? If yes, do the page's values get updated for the CGI variables outputted by Mapserver? Any advice or suggestions are valued Thanks ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Tue Jan 30 14:13:29 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 30 Jan 2001 16:13:29 -0600 Subject: java mapimage communication without page reloads Message-ID: If you use the mapplet.java code I sent then there are a couple of public methods to handle image loading independent of the page. The key is that the client (i.e. page) needs to manage the coordinates and layer list and then construct urls for the applet to load. The javascript to do this has been written for the most part and was announced to the list a month or two ago. An example application that uses this stuff is at: http://maps.dnr.state.mn.us/landview Links to the applet and javascript files can be found in the list message archives (can't remember off the top of my head). (Tom, if you send me the mods you made to support the coordinate display with mouse overs I'll add that to the main mapplet code.) With mode=map requests there is no way to retrieve computed values (i.e. extent). A planned modification for the next release is to encode those values in image comments, but that has not been written yet. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Tom Kralidis" 01/30/01 03:20PM >>> Hi, I have been using the mapimage applet to work with and display shapefile data outputted by Mapserver. My application is such that the page reloads when layers are turned off/on, etc., as well as zoomin/out/pan, etc. Is there anyway to make the applet's output refresh, and not the page itself? I'm sure I can use JavaScript to update values dynamically which are now being reloaded by the page reloads. Can the applet refresh independent of the page? If yes, do the page's values get updated for the CGI variables outputted by Mapserver? Any advice or suggestions are valued Thanks ..Tom _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From steve.lime at dnr.state.mn.us Tue Jan 30 14:48:26 2001 From: steve.lime at dnr.state.mn.us (Stephen Lime) Date: Tue, 30 Jan 2001 16:48:26 -0600 Subject: installing perl mapscript Message-ID: I imagine the NT Makefile doesn't contain the code to create the perlvars file. Here's an example: /usr/local/mapserver/src -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_TTF -DUSE_TIFF -DUSE_JPEG -DUSE_GD_1_2 -I. -I/usr/local/mapserver/src/gd-1.2 -I/usr/local/mapserver/src/gdft -I/usr/local/include/freetype -L. -lmap -L/usr/local/mapserver/src/gd-1.2 -lgd -L/usr/local/mapserver/src/gdft -lgdft -lttf -ltiff -ljpeg -lm It's basically a dump of some of the compile options. You could modify the few lines above to fit your install environment or look at the Makefile.in and figure out how to recreate that using DOS commands. Then give it another shot. Building with freetype and proj has been done on NT, binaries are available at the university website. Steve Stephen Lime Internet Applications Analyst Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> "Jameson Tweedie" 01/30/01 12:53PM >>> We are installing mapserver onto a winNT machine from the source code and was successful as long as we limited the install options (no freetype, no projection support, etc.) in the make file. But then when we tried to install mapscript for perl it could not find a 'perlvars' file (it was looking in ../../ which is the mapserver root folder. The 'perlvars' file seems not to exist at all. Does anyone have any ideas? thanks jameson. From vkurnosov at st.infotecstt.ru Wed Jan 31 04:55:48 2001 From: vkurnosov at st.infotecstt.ru (Vladislav Kurnosov) Date: Wed, 31 Jan 2001 15:55:48 +0300 Subject: java mapimage communication without page reloads In-Reply-To: References: Message-ID: <1663.010131@softech.ru> It seems as the following URL doesn't work: http://maps.dnr.state.mn.us/cgi-bin/mapquakes.pl Best regards, Vladislav Kurnosov From thfischer at mapmedia.de Wed Jan 31 09:50:29 2001 From: thfischer at mapmedia.de (Thorsten Fischer) Date: Wed, 31 Jan 2001 18:50:29 +0100 Subject: PHP MapScript queries Message-ID: <01013119042202.00958@grobi> Ladies and gentlemen, I am trying to do a query on a map. The result is a segmentation fault in the mapserver. Please show where to look for errors, maybe in my compiled mapserver. I got a map file with a valid extent and a single layer: name mmplz status on size 600 600 symbolset "symbols/newsym.sym" extent units meters shapepath "data" imagecolor 255 255 255 layer name leger type polygon status on data plz classitem "plz5" class symbol 2 outlinecolor 0 0 0 color 255 255 255 end end In php I write: $map = ms_newMapObj ("raderg.map"); $mylayer = $map -> getLayerByName ("leger"); which works fine. Then: $qres = $mylayer -> queryUsingRect ($rect); where $rect is a valid rectangle -- segfault. MapServer was configured as follows: ./configure --with-apxs=/usr/sbin/apxs --with-tiff=/usr --with-jpeg --with-eppl --with-ttf --without-gif --with-gd=/opt/GIS --with-proj=/opt/GIS --with-php=/home/frosch/src/GIS/mapserver/php-4.0.3pl1 php was configured as follows: ./configure --prefix=/usr/lib/apache --without-ttf --disable-debug --with-mysql --enable-calendar --enable-dbase --without-zlib --with-regex=system --with-gd=/opt/GIS --with-apxs=/usr/sbin/apxs Thanks in advance, Thorsten -- Thorsten Fischer thfischer at mapmedia.de --------------------------------------------------------- MapMedia - Kartographie und raumbezogene Informationssysteme Am Borsigturm 42 13507 Berlin Deutschland http://www.mapmedia.de tel: +49 (0)30 43032102 --------------------------------------------------------- From s371538 at student.uq.edu.au Wed Jan 31 14:35:08 2001 From: s371538 at student.uq.edu.au (Robert Ofarrell) Date: Thu, 1 Feb 2001 08:35:08 +1000 (GMT+1000) Subject: PHP MapScript queries In-Reply-To: <01013119042202.00958@grobi> Message-ID: I think you need a QUERY with a QUERYITEM in you map file. I would see the accompanying information about map files and especially layers in the mapserver documentation on their web site. On Wed, 31 Jan 2001, Thorsten Fischer wrote: > > Ladies and gentlemen, > > I am trying to do a query on a map. The result is a segmentation fault in the > mapserver. Please show where to look for errors, maybe in my compiled mapserver. > > > I got a map file with a valid extent and a single layer: > > name mmplz > status on > size 600 600 > symbolset "symbols/newsym.sym" > extent > units meters > shapepath "data" > imagecolor 255 255 255 > > layer > name leger > type polygon > status on > data plz > classitem "plz5" > class > symbol 2 > outlinecolor 0 0 0 > color 255 255 255 > end > end > > In php I write: > > $map = ms_newMapObj ("raderg.map"); > $mylayer = $map -> getLayerByName ("leger"); > > which works fine. Then: > > $qres = $mylayer -> queryUsingRect ($rect); > > where $rect is a valid rectangle -- segfault. > > > MapServer was configured as follows: > > ./configure --with-apxs=/usr/sbin/apxs --with-tiff=/usr --with-jpeg > --with-eppl --with-ttf --without-gif --with-gd=/opt/GIS --with-proj=/opt/GIS > --with-php=/home/frosch/src/GIS/mapserver/php-4.0.3pl1 > > php was configured as follows: > > ./configure --prefix=/usr/lib/apache --without-ttf --disable-debug > --with-mysql --enable-calendar --enable-dbase --without-zlib > --with-regex=system --with-gd=/opt/GIS --with-apxs=/usr/sbin/apxs > > Thanks in advance, > > > Thorsten > > > -- > > Thorsten Fischer thfischer at mapmedia.de > > --------------------------------------------------------- > MapMedia - Kartographie und raumbezogene Informationssysteme > Am Borsigturm 42 > 13507 Berlin > Deutschland > http://www.mapmedia.de tel: +49 (0)30 43032102 > --------------------------------------------------------- > > > Robert O'Farrell University of Queensland, Brisbane, Australia From s371538 at student.uq.edu.au Wed Jan 31 18:18:50 2001 From: s371538 at student.uq.edu.au (Robert Ofarrell) Date: Thu, 1 Feb 2001 12:18:50 +1000 (GMT+1000) Subject: PHP - query expression Message-ID: Currently I am trying to facilitate a query by expression and from a reply from Daniel I have been working on setting the query expression and following that with a queryUsingRect() with the coordinates the size of the map. However I wish to do this dynamically so my question is, is there any way to set the query expression of a layer with PHP mapscript? Any help would be greatly apreciated. Robert O'Farrell University of Queensland, Brisbane, Australia From morissette at dmsolutions.ca Wed Jan 31 19:30:55 2001 From: morissette at dmsolutions.ca (Daniel Morissette) Date: Wed, 31 Jan 2001 22:30:55 -0500 Subject: PHP - query expression References: Message-ID: <3A78D86F.8A0060C4@dmsolutions.ca> Robert Ofarrell wrote: > > Currently I am trying to facilitate a query by expression and from a reply > from Daniel I have been working on setting the query expression and > following that with a queryUsingRect() with the coordinates the size of > the map. However I wish to do this dynamically so my question is, is > there any way to set the query expression of a layer with PHP mapscript? > There is a queryObj class with a setExpression() method that you should be able to use. However, I just realized that there is no way to access existing query objects inside a layer from MapScript... you can only create new ones. This seems to be true with the Perl MapScript too, is that possible, Steve? Hummm... I guess this part of the code hasn't been used much before... What you could do until this is resolved is not include a QUERY object in your layer in the .map file, and instead create one in your script using $query=ms_newQueryObj($layer); ... and then you should be able to use setExpression() on the new object. -- ------------------------------------------------------------ Daniel Morissette morissette at dmsolutions.ca http://www.dmsolutions.ca/ ------------------------------------------------------------ Don't put for tomorrow what you can do today, because if you enjoy it today you can do it again tomorrow. From s371538 at student.uq.edu.au Wed Jan 31 20:33:10 2001 From: s371538 at student.uq.edu.au (Robert Ofarrell) Date: Thu, 1 Feb 2001 14:33:10 +1000 (GMT+1000) Subject: PHP - query expression In-Reply-To: <3A78D86F.8A0060C4@dmsolutions.ca> Message-ID: > There is a queryObj class with a setExpression() method that you should > be able to use. However, I just realized that there is no way to access > existing query objects inside a layer from MapScript... you can only > create new ones. This seems to be true with the Perl MapScript too, is > that possible, Steve? > > Hummm... I guess this part of the code hasn't been used much before... > What you could do until this is resolved is not include a QUERY object > in your layer in the .map file, and instead create one in your script > using $query=ms_newQueryObj($layer); ... and then you should be able to > use setExpression() on the new object. I don't fully understand how this is going to work. How do I extract the results from the newly created query? Robert O'Farrell University of Queensland, Brisbane, Australia