From luca76 at GMAIL.COM Wed Jan 2 06:07:13 2008 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Wed, 2 Jan 2008 15:07:13 +0100 Subject: Mapserver 5.0.0 and ANGLE for label class Message-ID: Hi, I have a field with angles in degrees. The attached mapfile doesn't rotate the label. I used this in Mapserver 4.x without problems: LAYER [...] TYPE POINT TEMPLATE void CLASS [...] END LABEL TYPE TRUETYPE ANTIALIAS TRUE FONT arial SIZE 20 MINSIZE 4 MAXSIZE 30 ANGLE [field] FORCE true OFFSET 0 0 POSITION cc PARTIALS TRUE COLOR 255 0 0 END END How can I fix this? From joe.bussell at GMAIL.COM Wed Jan 2 07:13:44 2008 From: joe.bussell at GMAIL.COM (Joe Bussell) Date: Wed, 2 Jan 2008 07:13:44 -0800 Subject: Google-ish cartography. In-Reply-To: Message-ID: Very impressive looking results. Can you please share your mapfile? Many thanks! Joe Bussell On Dec 31, 2007 11:04 AM, Bob Basques wrote: > All, > > I'm making good progress on my Google-ish cartography mapfile creation, > see the attached links. I will be publishing it to the GeoMoose site as a > mapfile once it's ready. It should be portable to use against the Census > tiger centerlines as well, actually it should be fairly easy to apply to any > centerline data set with the correct classifications available. I'm using a > local data set though, so there are likely to be some differences. If > anyone has a tiger data set available somewhere to try it out on, I would be > interested in those results. I'm trying to add Documentation as I go in the > MapFile as well. > > Why am I doing this, actually I'm just trying to get a jumping off point, > where I can take this generic "Google-ish" version of a MapFile, and > re-theme for my own uses, problably > > Link to screen shot of AGG sampled output: > http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/agg_test2.png > > Link to screen shot of non-agg sampled output: > http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/agg_test.png > > There are still some little things like the centering of the numbers in > the highway shield, as in they moved a pixel or two to the left in the AGG > output. Also, Google seems to use some sort of ADT (Traffic Counts) for > it's classification of the roads, so I'll need to research that a bit I > think. Some of the collectors are not highlighted in yellow like those in > the Google output. I also took some liberty with their Interstate Shields > and made them bigger. > > Also, here is a comparative Google link of the links from above : > > http://maps.google.com/maps?hl=en&ie=UTF8&ll=45.0011,-93.227014&spn=0.014232,0.030341&z=15&om=1 > > bobb > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Bruce at GOV.MB.CA Wed Jan 2 10:32:58 2008 From: Bob.Bruce at GOV.MB.CA (Bob Bruce) Date: Wed, 2 Jan 2008 12:32:58 -0600 Subject: (some) ImageMaps are Empty Message-ID: Hi: I am hoping that someone out there can help me with this issue of MapServer that is probably a little "off the beaten track" of uses of MapServer. I am trying to generate imagemaps of point symbols on my map and am finding that as soon as my map has more that 41 point symbols on it the imagemap becomes emply except for the beginning and closing map statements. The imagemap for maps with 41 or less symbols are generated perfectly well. Is this a MapServer bug (or whatever) or is it something that I'm doing wrong? You can see the working page at: http://209.205.39.229/Mpages/indexMuralsMap.php if you choose the Glenwood neighbourhood from the drop-down box you will see a map with the correct imagemap but if you choose the neighbourhood of "Dufferin" all of a sudden the imagemap becomes empty. I have been working to update version 4.10.2 of MapServer with some changes that I made way back in version 4.3 in 2005 and everything seemed to be going well until I hit this. I've started looking through the source to see if I could find out why this is happening and haven't got very far with it yet. thanks in advance for help, Bob Bruce Winnipeg, Manitoba From ben at REMOTEINFORMATION.COM.AU Thu Jan 3 06:11:31 2008 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Thu, 3 Jan 2008 23:11:31 +0900 Subject: PROJ support in MS 4.4.1 on IIS Message-ID: G'day all, I am adding some functionality to system (Windows NT 5.2 / Microsoft- IIS/6.0) on which I can change very little outside the web tree. The system has php/mapscript 4.4.1 and SUPPORTS=PROJ. However, when I try : $projInObj = ms_newprojectionobj("init=epsg:$from_proj"); I get : Fatal error: [MapServer Error]: msProcessProjection(): No such file or directory I gather from docs etc this is probably a path error to find the proj directory, which can either be moved to somewhere in the path, or a path setting made, or a PROJ_LIB environment variable set. Being an apache background myself, I was hoping someone might know the most straightforward ways to: a) find the proj directory, and b) address the issue of mapscript not being able to find it: can I use the config parameter without calling a map file? (I only want to reproject points on this page?) It is all working fine on the development machine, using the ms4w 4.8 platform. Thanks In advance. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Thu Jan 3 11:31:05 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 3 Jan 2008 13:31:05 -0600 Subject: question about AGG In-Reply-To: Message-ID: While I believe that AGG produces superior output to that of GD it does so at a price. There are performance hits when creating images with AGG and in consuming (because of file size) the higher quality images. If you can live with that then AGG is the better choice. GD is not being abandoned. Ideally we'd like configurations to work with any backend and there is ongoing work to make that happen. There shouldn't be that much difference in configuration as very few parameters (none in 5.0 I think) are AGG specific. Steve >>> On 12/31/2007 at 12:56 PM, in message , Bob Basques wrote: > All, > > Is the general consensus that all MapServers should move to AGG output, > or is this considered more of an optional output at this time? I mean, > will it at some point become the default output for MapServer? > > I'm asking mostly based on the differences in the mapfiles required > between the two formats. It's a bit troublesome to keep options for > both in a Mapfile, although, if the AGG output supercedes any older > definitions in the same MapFile, that would help out considerably. > > I'm setting up some default MapFiles for cartography and wondering > about what I should be promoting (or not). > > Thanks > > bobb > From Steve.Lime at DNR.STATE.MN.US Thu Jan 3 11:50:58 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 3 Jan 2008 13:50:58 -0600 Subject: New MapServer Demo (feedback requested) Message-ID: Hi all: I've got some time to put together a new demo for MapServer and would to get feedback from the community on what it should look like. Currently there are a number of options out there but none of them are very comprehensive. Demos that I know about include: - the Itasca demo application (came out of the MUM1 meeting): http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ - Perry Nacionales' MapServer tutorial: http://biometry.gis.umn.edu/tutorial/ - Mobile Geographics' MapServer Recipies: http://www.mobilegeographics.com/mapserver/ - MN DNR MapServer Test Suite: http://maps.dnr.state.mn.us/mapserver_demos/tests46/ - Various MS4W packages: http://www.maptools.org/ms4w/index.phtml There are of course lots of questions: - should a demo be installable, hosted or both - what data should it use - should it cover just MapServer configuration (e.g. mapfiles) - should it cover installation as well or should that be left to how-to's - what relationship to other packages (e.g. OpenLayers, TileCache, Ka-map) should be demo'd Any feedback would be much appreciated. Steve From naci0002 at UMN.EDU Thu Jan 3 12:27:40 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 3 Jan 2008 14:27:40 -0600 Subject: New MapServer Demo (feedback requested) In-Reply-To: <477CE843.5157.008F.0@dnr.state.mn.us> Message-ID: Steve, My $0.02... a good tutorial should provide installation instructions--how to get MapServer working on different platforms. But this alone can be very complicated as there are various things to consider within each platform. In Windows, for example, you can write something for MS4W (which is simple as MS4W itself is configured to work right of the box), for Apache, and for IIS. In Linux, there's FGS and other packages to consider but there are also differences in different distributions. You can write a generic installation instructions but that generally make sense only to people who are familiar with their particular system. Many new users might still have a hard time following through that instructions. I think what we've been doing in terms of examples (in workshops) is good--separate map files, HTML templates, other client interface examples, and related technologies. Beyond that, I think we can provide links to other tutorials/demo from these other packages. You can also provide examples of your strategies in optimizing MapServer performance, how to use different data connection types (PostGIS/Oracle, WxS, etc.), and the other supported OGC specifications supported in MapServer. As for demo data, that's a tough one. Maybe you can have different levels of data quality--small scale vector and raster data (maybe country boundaries and MODIS raster), medium scale (i.e. a state/province or a small country) with good highways and political boundaries, and large scale data (cadastral data, but where would you get example you can make available publicly?). Having these levels should provide good coverage of MapServer's capabilities. Or make it simple enough so that anyone can plug in their own data and work with it. I guess if you cover all these, you have yourself a book. Let me know how I can help. -Perry Steve Lime wrote: > Hi all: I've got some time to put together a new demo for MapServer and would to get feedback from > the community on what it should look like. Currently there are a number of options out there but none > of them are very comprehensive. Demos that I know about include: > > - the Itasca demo application (came out of the MUM1 meeting): http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ > - Perry Nacionales' MapServer tutorial: http://biometry.gis.umn.edu/tutorial/ > - Mobile Geographics' MapServer Recipies: http://www.mobilegeographics.com/mapserver/ > - MN DNR MapServer Test Suite: http://maps.dnr.state.mn.us/mapserver_demos/tests46/ > - Various MS4W packages: http://www.maptools.org/ms4w/index.phtml > > There are of course lots of questions: > > - should a demo be installable, hosted or both > - what data should it use > - should it cover just MapServer configuration (e.g. mapfiles) > - should it cover installation as well or should that be left to how-to's > - what relationship to other packages (e.g. OpenLayers, TileCache, Ka-map) should be demo'd > > Any feedback would be much appreciated. > > Steve > > From nelson.guda at GMAIL.COM Thu Jan 3 12:28:46 2008 From: nelson.guda at GMAIL.COM (nelson guda) Date: Thu, 3 Jan 2008 14:28:46 -0600 Subject: WFS request options Message-ID: Hi all, I have an odd request regarding WFS capabilities. Is it possible to have a WFS mapserver request return gml results without the geometry data? I know that this seems odd, but it makes sense for what I am doing. I am using a WMS overlay to serve tiles for a large dataset to an overlay on google maps. In order to query specific polygons from that dataset (a shapefile), I am using a WFS GetFeature request. All I need is the id and other parameters of the feature, but not the geometry data (because it is already there from the WMS. Right now I am just parsing out the info I need from the gml at the server level, but it would be much faster if I could get the WFS to return only the feature info minus the geometry data. Is this possible? Thanks, and thanks for your previous help. nelson From Steve.Lime at DNR.STATE.MN.US Thu Jan 3 12:32:30 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 3 Jan 2008 14:32:30 -0600 Subject: New MapServer Demo (feedback requested) In-Reply-To: <477D453C.2000101@umn.edu> Message-ID: I wonder if a demo really becomes a series of how-to's, some of which already exist. Those that require data would could be developed against a common dataset. Steve >>> On 1/3/2008 at 2:27 PM, in message <477D453C.2000101 at umn.edu>, "Pericles S. Nacionales" wrote: > Steve, > > My $0.02... a good tutorial should provide installation > instructions--how to get MapServer working on different platforms. But > this alone can be very complicated as there are various things to > consider within each platform. In Windows, for example, you can write > something for MS4W (which is simple as MS4W itself is configured to work > right of the box), for Apache, and for IIS. In Linux, there's FGS and > other packages to consider but there are also differences in different > distributions. You can write a generic installation instructions but > that generally make sense only to people who are familiar with their > particular system. Many new users might still have a hard time > following through that instructions. > > I think what we've been doing in terms of examples (in workshops) is > good--separate map files, HTML templates, other client interface > examples, and related technologies. Beyond that, I think we can provide > links to other tutorials/demo from these other packages. You can also > provide examples of your strategies in optimizing MapServer performance, > how to use different data connection types (PostGIS/Oracle, WxS, etc.), > and the other supported OGC specifications supported in MapServer. > > As for demo data, that's a tough one. Maybe you can have different > levels of data quality--small scale vector and raster data (maybe > country boundaries and MODIS raster), medium scale (i.e. a > state/province or a small country) with good highways and political > boundaries, and large scale data (cadastral data, but where would you > get example you can make available publicly?). Having these levels > should provide good coverage of MapServer's capabilities. Or make it > simple enough so that anyone can plug in their own data and work with it. > > I guess if you cover all these, you have yourself a book. Let me know > how I can help. > > -Perry > > Steve Lime wrote: >> Hi all: I've got some time to put together a new demo for MapServer and > would to get feedback from >> the community on what it should look like. Currently there are a number of > options out there but none >> of them are very comprehensive. Demos that I know about include: >> >> - the Itasca demo application (came out of the MUM1 meeting): > http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ >> - Perry Nacionales' MapServer tutorial: > http://biometry.gis.umn.edu/tutorial/ >> - Mobile Geographics' MapServer Recipies: > http://www.mobilegeographics.com/mapserver/ >> - MN DNR MapServer Test Suite: > http://maps.dnr.state.mn.us/mapserver_demos/tests46/ >> - Various MS4W packages: http://www.maptools.org/ms4w/index.phtml >> >> There are of course lots of questions: >> >> - should a demo be installable, hosted or both >> - what data should it use >> - should it cover just MapServer configuration (e.g. mapfiles) >> - should it cover installation as well or should that be left to how-to's >> - what relationship to other packages (e.g. OpenLayers, TileCache, Ka-map) > should be demo'd >> >> Any feedback would be much appreciated. >> >> Steve >> >> From dylan.beaudette at GMAIL.COM Thu Jan 3 13:13:09 2008 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Thu, 3 Jan 2008 13:13:09 -0800 Subject: WFS request options In-Reply-To: <946F18E5-A104-4A60-9B3A-61F4FA5FADF7@gmail.com> Message-ID: On Thursday 03 January 2008, nelson guda wrote: > Hi all, > > I have an odd request regarding WFS capabilities. Is it possible to > have a WFS mapserver request return gml results without the geometry > data? > > I know that this seems odd, but it makes sense for what I am doing. > I am using a WMS overlay to serve tiles for a large dataset to an > overlay on google maps. In order to query specific polygons from > that dataset (a shapefile), I am using a WFS GetFeature request. All > I need is the id and other parameters of the feature, but not the > geometry data (because it is already there from the WMS. Right now I > am just parsing out the info I need from the gml at the server level, > but it would be much faster if I could get the WFS to return only the > feature info minus the geometry data. Is this possible? > > Thanks, and thanks for your previous help. > > nelson If your data is stored in a postgis db, then it might be simpler to create a php page which, based on GET arguments, could construct a spatial query that only returns attribute data. An example of an implementation of this model can be found here: http://169.237.35.250/~dylan/soilweb_gmap/ The legend on the right panel is updated by calls to this page: http://casoilresource.lawr.ucdavis.edu/soil_web/reflector_api/soils.php?what=mapunit&bbox=-120,37,-119.99,37.01&legend_style=grouped cheers, Dylan -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 From naci0002 at UMN.EDU Thu Jan 3 13:14:12 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 3 Jan 2008 15:14:12 -0600 Subject: New MapServer Demo (feedback requested) In-Reply-To: <477CF1FF.5157.008F.0@dnr.state.mn.us> Message-ID: Yeah, that would be a very good approach. Others can help out if we provide a list of what demos are needed or could use updates/improvements. -Perry Steve Lime wrote: > I wonder if a demo really becomes a series of how-to's, some of which already exist. Those > that require data would could be developed against a common dataset. > > Steve > > >>>> On 1/3/2008 at 2:27 PM, in message <477D453C.2000101 at umn.edu>, "Pericles S. >>>> > Nacionales" wrote: > >> Steve, >> >> My $0.02... a good tutorial should provide installation >> instructions--how to get MapServer working on different platforms. But >> this alone can be very complicated as there are various things to >> consider within each platform. In Windows, for example, you can write >> something for MS4W (which is simple as MS4W itself is configured to work >> right of the box), for Apache, and for IIS. In Linux, there's FGS and >> other packages to consider but there are also differences in different >> distributions. You can write a generic installation instructions but >> that generally make sense only to people who are familiar with their >> particular system. Many new users might still have a hard time >> following through that instructions. >> >> I think what we've been doing in terms of examples (in workshops) is >> good--separate map files, HTML templates, other client interface >> examples, and related technologies. Beyond that, I think we can provide >> links to other tutorials/demo from these other packages. You can also >> provide examples of your strategies in optimizing MapServer performance, >> how to use different data connection types (PostGIS/Oracle, WxS, etc.), >> and the other supported OGC specifications supported in MapServer. >> >> As for demo data, that's a tough one. Maybe you can have different >> levels of data quality--small scale vector and raster data (maybe >> country boundaries and MODIS raster), medium scale (i.e. a >> state/province or a small country) with good highways and political >> boundaries, and large scale data (cadastral data, but where would you >> get example you can make available publicly?). Having these levels >> should provide good coverage of MapServer's capabilities. Or make it >> simple enough so that anyone can plug in their own data and work with it. >> >> I guess if you cover all these, you have yourself a book. Let me know >> how I can help. >> >> -Perry >> >> Steve Lime wrote: >> >>> Hi all: I've got some time to put together a new demo for MapServer and >>> >> would to get feedback from >> >>> the community on what it should look like. Currently there are a number of >>> >> options out there but none >> >>> of them are very comprehensive. Demos that I know about include: >>> >>> - the Itasca demo application (came out of the MUM1 meeting): >>> >> http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ >> >>> - Perry Nacionales' MapServer tutorial: >>> >> http://biometry.gis.umn.edu/tutorial/ >> >>> - Mobile Geographics' MapServer Recipies: >>> >> http://www.mobilegeographics.com/mapserver/ >> >>> - MN DNR MapServer Test Suite: >>> >> http://maps.dnr.state.mn.us/mapserver_demos/tests46/ >> >>> - Various MS4W packages: http://www.maptools.org/ms4w/index.phtml >>> >>> There are of course lots of questions: >>> >>> - should a demo be installable, hosted or both >>> - what data should it use >>> - should it cover just MapServer configuration (e.g. mapfiles) >>> - should it cover installation as well or should that be left to how-to's >>> - what relationship to other packages (e.g. OpenLayers, TileCache, Ka-map) >>> >> should be demo'd >> >>> Any feedback would be much appreciated. >>> >>> Steve >>> >>> >>> From nospam420 at YAHOO.COM Thu Jan 3 17:42:51 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Thu, 3 Jan 2008 17:42:51 -0800 Subject: wide lines not complete at the edges Message-ID: I think this is likely a bug, but I'm first posting to the mailing list to see if there might be some way I can control this with via my map file. This is best seen by a picture. [Hopefully attaching files worked; I haven't attached files to msgs here before.] What's going on is that it looks like the end of a line is determined by the point at which the center of the line reaches the edge of the map, not the points at which the edges of the line reach the edge of the map. This is significant if you have a line wider than 1 pixel, and it becomes more significant as the angle between the line and the edge becomes shallower. In the attached images, the road network is rectangular, but offset a bit from a pure N/S/E/W grid. Look at what happens to the roads at the edges. They look like they end prematurely. This happens when rendered in both AGG and GD. *.map files are pasted inline below. --- begin streetbug.agg.map --- MAP NAME streetbug-agg IMAGETYPE AGG_Q OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END EXTENT -122.2914 37.8396 -122.2892 37.841 ANGLE 0 SIZE 640 480 IMAGECOLOR 204 204 204 LAYER NAME LocalRoads STATUS DEFAULT # DEFAULT means on. change to OFF to enable via URL parameter (&layer=foo) TYPE LINE CONNECTIONTYPE postgis CONNECTION "dbname=navteq user=navteq host=agua" DATA "the_geom FROM streets" CLASS NAME "Local Roads" STYLE COLOR 248 248 248 WIDTH 11 END END END END --- end streetbug.agg.map --- --- begin streetbug.gd.map --- MAP NAME streetbug-gd IMAGETYPE PNG EXTENT -122.2914 37.8396 -122.2892 37.841 ANGLE 0 SIZE 640 480 IMAGECOLOR 204 204 204 LAYER NAME LocalRoads STATUS DEFAULT # DEFAULT means on. change to OFF to enable via URL parameter (&layer=foo) TYPE LINE CONNECTIONTYPE postgis CONNECTION "dbname=navteq user=navteq host=agua" DATA "the_geom FROM streets" CLASS NAME "Local Roads" STYLE COLOR 248 248 248 WIDTH 11 END END END END --- end streetbug.gd.map --- -- View this message in context: http://www.nabble.com/wide-lines-not-complete-at-the-edges-tp14609249p14609249.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Thu Jan 3 17:47:19 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Thu, 3 Jan 2008 17:47:19 -0800 Subject: wide lines not complete at the edges In-Reply-To: <14609249.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > This is best seen by a picture. [Hopefully attaching files worked; I > haven't attached files to msgs here before.] > Hmmm.... I don't see any evidence that the uploading of the image worked. Trying again for streetbug.agg.png Although I'm doubtful that this is working. I followed through with the 'Upload Image...' button, but I don't see any evidence of it in this preview. -- View this message in context: http://www.nabble.com/wide-lines-not-complete-at-the-edges-tp14609249p14609391.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Thu Jan 3 18:16:10 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Thu, 3 Jan 2008 18:16:10 -0800 Subject: wide lines not complete at the edges In-Reply-To: <14609391.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > Hmmm.... I don't see any evidence that the uploading of the image worked. > Ok, I give up for here for now. I have for the time being (no guarantee they will still be there if someone is reading this in the future) put copies of the images here: http://freshmakkur.org/tmp/streetbug.agg.png http://freshmakkur.org/tmp/streetbug.gd.png -- View this message in context: http://www.nabble.com/wide-lines-not-complete-at-the-edges-tp14609249p14609619.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jacob.Delfos at MAUNSELL.COM Thu Jan 3 17:54:57 2008 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 4 Jan 2008 10:54:57 +0900 Subject: PROJ support in MS 4.4.1 on IIS In-Reply-To: A<269C8095-1EC6-4BAF-91D1-83648E2B1FC4@remoteinformation.com.au> Message-ID: G'day Ben, Normally, it looks for the "proj" directory on the root of the operating system drive. For example, in my case it looks for "C:\proj\nad\epsg" You could change it by setting the PROJ_LIB environment variable, like so: CONFIG "PROJ_LIB" "C:/somedir/proj/nad/" (see http://mapserver.gis.umn.edu/docs/error/proj-nosuchfile) Hope that fixes it. regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Madin Sent: 3 January 2008 23:12 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PROJ support in MS 4.4.1 on IIS G'day all, I am adding some functionality to system (Windows NT 5.2 / Microsoft-IIS/6.0) on which I can change very little outside the web tree. The system has php/mapscript 4.4.1 and SUPPORTS=PROJ. However, when I try : $projInObj = ms_newprojectionobj("init=epsg:$from_proj"); I get : Fatal error: [MapServer Error]: msProcessProjection(): No such file or directory I gather from docs etc this is probably a path error to find the proj directory, which can either be moved to somewhere in the path, or a path setting made, or a PROJ_LIB environment variable set. Being an apache background myself, I was hoping someone might know the most straightforward ways to: a) find the proj directory, and b) address the issue of mapscript not being able to find it: can I use the config parameter without calling a map file? (I only want to reproject points on this page?) It is all working fine on the development machine, using the ms4w 4.8 platform. Thanks In advance. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Thu Jan 3 21:12:15 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 3 Jan 2008 22:12:15 -0700 Subject: New MapServer Demo (feedback requested) In-Reply-To: <477CE843.5157.008F.0@dnr.state.mn.us> Message-ID: On Jan 3, 2008 12:50 PM, Steve Lime wrote: > Hi all: I've got some time to put together a new demo for MapServer and would to get feedback from > the community on what it should look like. Currently there are a number of options out there but none > of them are very comprehensive. Demos that I know about include: > > - the Itasca demo application (came out of the MUM1 meeting): http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ > - Perry Nacionales' MapServer tutorial: http://biometry.gis.umn.edu/tutorial/ > - Mobile Geographics' MapServer Recipies: http://www.mobilegeographics.com/mapserver/ > - MN DNR MapServer Test Suite: http://maps.dnr.state.mn.us/mapserver_demos/tests46/ > - Various MS4W packages: http://www.maptools.org/ms4w/index.phtml > > There are of course lots of questions: > > - should a demo be installable, hosted or both > - what data should it use > - should it cover just MapServer configuration (e.g. mapfiles) > - should it cover installation as well or should that be left to how-to's > - what relationship to other packages (e.g. OpenLayers, TileCache, Ka-map) should be demo'd > > Any feedback would be much appreciated. > > Steve I like the DNR MapServer Test Suite (and the Openlayer examples) because they a small, focused examples that illustrate a very specific concept or function. The user is then free to string together the bits and pieces as they need them. I think installation instructions belong in how-to's I think MapServer demos should be independent of clients, or other packages (OpenLayers, TileCache, Ka-map). But that's just one guy's opinions. Thanks for all you do Steve. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bob.b at GRITECHNOLOGIES.COM Thu Jan 3 22:09:59 2008 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Fri, 4 Jan 2008 00:09:59 -0600 Subject: New MapServer Demo (feedback requested) In-Reply-To: <477CE843.5157.008F.0@dnr.state.mn.us> Message-ID: Steve ( and others, sorry, long one, it's all your own faults though ), I'm going along with the ideas that MapServer demos should be MapServer specific. All the replies seem to point to setting up demos to be implemented after the installation has been done. Although one could argue that setting up MapServer could use some demos of it's own in some cases. :c) I thought about the responses during the day and wondered about setting up some sort of catalog for specific demos that might be needed, demos that focused on specific capabilities. I've been pondering the same sorts of things for GeoMoose as well. What's really the best way to demonstrate the capabilities of a software package and still make the searching, especially for the first timers, as easy as possible. My gut feeling is that the demos need to address specific capabilities, in a minimalist way. Now having said that, I also started to wonder about how these bits and pieces could be tied together and made into some sort of whole in the end where most of the capabilities are all packaged up into a few larger groupings (or chapters if you will). This method has some attraction for me, as I can put things together over time and don't need to figure everything out at once. This demo book of chapters could also act as a way to add in wish list items over time, for later expanding into new demos. You could even have versions of demos with an approach like this. The biggest attraction though, is that the chapters can be addresses by the specific module or component keepers. MapServer stuff, Client application stuff, etc. Now, for my ulterior motives, if this approach were taken, I could add in my own GeoMoose chapters onto the MapServer book (by linking to MapServer) and have a complete (or nearly) complete set of Doc's for my application, I'm sure others with their own front-ends to MapServer would have a similar interest. This would also allow me to add in some demos to the MapServer side that apply directly to the GeoMoose application without affecting anything that is already there. This is a biggy, since newer users of GeoMoose and MapServer seem to get stuck on some MapServer Basics while getting up to speed on GeoMoose. I would much rather contribute to the MapServer Doc/Demos than have duplicate instructions of MapServer configs on the GeoMoose site, which is already happening. MapServer stuff stays with MapServer and Geomoose stuff stays with GeoMoose. Is there the beginnings of a DOC/Demo standard here, can/should this be implemented with just demos to start with . . .? It would be nice to link back and forth to those sites that contribute to each others doc's/demos too, then if something dies out, you just deprecate their chapter in the respective book. I wonder if this could be it's own Project somehow, all Doc's/demos in one place for all components, of a particular application. Would work with inter-operation of things too, for example, GeoMoose could at some point be used in front of something else besides MapServer and those doc's/demos could be added as chapters. Lot's of ways this could go I guess. Now I've thought my self into a trance again and need to stop and think on it some more. I'm sure others here will come up with more thoughts. . . . . :c) bobb Steve Lime wrote: > Hi all: I've got some time to put together a new demo for MapServer and would to get feedback from > the community on what it should look like. Currently there are a number of options out there but none > of them are very comprehensive. Demos that I know about include: > > - the Itasca demo application (came out of the MUM1 meeting): http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ > - Perry Nacionales' MapServer tutorial: http://biometry.gis.umn.edu/tutorial/ > - Mobile Geographics' MapServer Recipies: http://www.mobilegeographics.com/mapserver/ > - MN DNR MapServer Test Suite: http://maps.dnr.state.mn.us/mapserver_demos/tests46/ > - Various MS4W packages: http://www.maptools.org/ms4w/index.phtml > > There are of course lots of questions: > > - should a demo be installable, hosted or both > - what data should it use > - should it cover just MapServer configuration (e.g. mapfiles) > - should it cover installation as well or should that be left to how-to's > - what relationship to other packages (e.g. OpenLayers, TileCache, Ka-map) should be demo'd > > Any feedback would be much appreciated. > > Steve > > > > From wallacher at INNOMIS.COM Fri Jan 4 05:39:14 2008 From: wallacher at INNOMIS.COM (Wally Maddoc) Date: Fri, 4 Jan 2008 07:39:14 -0600 Subject: PHP/Mapscript + map object -> save method Message-ID: Hello All, I'm trying to save a mapObject $map via its method $map->save(STRING file_name). I always receive this error message: Fatal error: [MapServer Error]: msSaveMap(): (/var/www/apache2-default/erik/map_files/test) in /var/www/apache2-default/erik/examples/phpmapscript3.php on line 76 The code looks like this: $map= ms_newMapObj(map_file_name); ... $map->save("/var/www/apache2-default/erik/map_files/test"); Is there any bug in the mapObjectclass? Can anyone help me? Thanks Erik From woodbri at SWOODBRIDGE.COM Fri Jan 4 06:42:42 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 4 Jan 2008 09:42:42 -0500 Subject: New MapServer Demo (feedback requested) In-Reply-To: <477CE843.5157.008F.0@dnr.state.mn.us> Message-ID: Steve Lime wrote: > Hi all: I've got some time to put together a new demo for MapServer > and would to get feedback from the community on what it should look > like. Currently there are a number of options out there but none of > them are very comprehensive. Demos that I know about include: > > - the Itasca demo application (came out of the MUM1 meeting): > http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ - Perry > Nacionales' MapServer tutorial: http://biometry.gis.umn.edu/tutorial/ > - Mobile Geographics' MapServer Recipies: > http://www.mobilegeographics.com/mapserver/ - MN DNR MapServer Test > Suite: http://maps.dnr.state.mn.us/mapserver_demos/tests46/ - Various > MS4W packages: http://www.maptools.org/ms4w/index.phtml > > There are of course lots of questions: > > - should a demo be installable, hosted or both - what data should it > use - should it cover just MapServer configuration (e.g. mapfiles) - > should it cover installation as well or should that be left to > how-to's - what relationship to other packages (e.g. OpenLayers, > TileCache, Ka-map) should be demo'd > > Any feedback would be much appreciated. > > Steve > Steve, I kind of like what OpenLayers has done with Examples but I think these are too minimalistic and may not convey adequately some of the more complex ideas that mapserver supports. That said, I think I would still start with a similar concept and make a list of major functionality the mapserver supports then setup a simple demo for each of these. This list might start out like: CGI interface OGC capabilities - WMS - WFS - SLD - ... Vector Data - shapefile - postgres - oracle - OGR - MYSQL - ... - thematic mapping and joins on rendering - ... Raster Data Mapfile cartographic techniques - GD - AGG - Layering - Charts - ... Mapscript - PHP - Perl - Python - .Net - ... Client Demos - Navigation tools - use with OpenLayers - use with other generic clients Debugging/Errors - How to turn it on - How to get more information - How to report bugs OK, some of these are more documentation that demo material, but I only want to get across the idea. Make a list, then vet the list. There is also some issues that need to be resolved as to How much to put in each demo? To little means that you have too many demos/examples and it is hard to find the one with the concept you need, and too much means it is hard for the user to abstract the concept out of the demo and apply it to their own tasks. You might want to consider creates a bunch of learning Examples that are simple and then a few complex Demos the combine a bunch of ideas and show the full power of mapserver in a production like application. I'm glad you are thinking about this. I think making a potential list is a good starting point as it makes the task a little more concrete and would allow others to comment and extent the list. Later you can narrow the list into a list of priority examples or demos that you want to build now and other can be handed out for others to build or done later. Each of the one-liners above would need to be expanded into a detailed description of what would be shown because some of them are large areas to cover all the relevant material in them. -Steve W. From mailing_lists at UMBRELLACONSULTING.COM Fri Jan 4 06:58:56 2008 From: mailing_lists at UMBRELLACONSULTING.COM (Josh Livni) Date: Fri, 4 Jan 2008 06:58:56 -0800 Subject: WFS request options In-Reply-To: <946F18E5-A104-4A60-9B3A-61F4FA5FADF7@gmail.com> Message-ID: This doesn't answer you question exactly, but have you considered using a WMS getFeatureInfo request instead? Then you can use a simple template.html to decide which attributes you want to return for later parsing. I've done this a few times myself with Google Maps. -Josh nelson guda wrote: > Hi all, > > I have an odd request regarding WFS capabilities. Is it possible to > have a WFS mapserver request return gml results without the geometry > data? > > I know that this seems odd, but it makes sense for what I am doing. I > am using a WMS overlay to serve tiles for a large dataset to an > overlay on google maps. In order to query specific polygons from that > dataset (a shapefile), I am using a WFS GetFeature request. All I > need is the id and other parameters of the feature, but not the > geometry data (because it is already there from the WMS. Right now I > am just parsing out the info I need from the gml at the server level, > but it would be much faster if I could get the WFS to return only the > feature info minus the geometry data. Is this possible? > > Thanks, and thanks for your previous help. > > nelson From Tom.Kralidis at EC.GC.CA Fri Jan 4 07:48:04 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 4 Jan 2008 10:48:04 -0500 Subject: New MapServer Demo (feedback requested) In-Reply-To: A<477E45E2.3050504@swoodbridge.com> Message-ID: > Steve Lime wrote: > > Hi all: I've got some time to put together a new demo for MapServer > > and would to get feedback from the community on what it should look > > like. Currently there are a number of options out there but none of > > them are very comprehensive. Demos that I know about include: > > > > - the Itasca demo application (came out of the MUM1 meeting): > > http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ - Perry > > Nacionales' MapServer tutorial: > http://biometry.gis.umn.edu/tutorial/ > > - Mobile Geographics' MapServer Recipies: > > http://www.mobilegeographics.com/mapserver/ - MN DNR MapServer Test > > Suite: http://maps.dnr.state.mn.us/mapserver_demos/tests46/ > - Various > > MS4W packages: http://www.maptools.org/ms4w/index.phtml > > > > There are of course lots of questions: > > > > - should a demo be installable, hosted or both - what data > should it > > use - should it cover just MapServer configuration (e.g. > mapfiles) - > > should it cover installation as well or should that be left to > > how-to's - what relationship to other packages (e.g. OpenLayers, > > TileCache, Ka-map) should be demo'd > > > > Any feedback would be much appreciated. > > > > Steve > > > > Steve, > > I kind of like what OpenLayers has done with Examples but I > think these are too minimalistic and may not convey > adequately some of the more complex ideas that mapserver > supports. That said, I think I would still start with a > similar concept and make a list of major functionality the > mapserver supports then setup a simple demo for each of > these. This list might start out like: > > CGI interface > OGC capabilities > - WMS > - WFS > - SLD > - ... Note that the MapServer OGC Web Services Workshop (http://ms-ogc-workshop.maptools.org/) has some demos you may want to look at. Very simple, but illustrate the functionality. ..Tom From mailing_lists at UMBRELLACONSULTING.COM Fri Jan 4 08:48:23 2008 From: mailing_lists at UMBRELLACONSULTING.COM (Josh Livni) Date: Fri, 4 Jan 2008 08:48:23 -0800 Subject: WFS request options In-Reply-To: Message-ID: Nelson, Using this method, you don't want to make a WFS request - you want to make a WMS request. The mapserver site has documentation on how to set up your mapfile to respond to WMS requests (http://mapserver.gis.umn.edu/docs/howto/wms_server) as well as the template (which can be very simple for your use case). There's a thread on the google groups list about using getFeatureInfo, but since the guy's WMS is down it's probably not the best example (though you could still look at his code). http://openlayers.org/dev/examples/getfeatureinfo.html is another example that you could probably start with for assistance on the client side -- you'd need to modify it to work with Google Maps (eg using Google's methods to get at their bbox and other criteria while creating the queryUrl, and to parse the result) but the concept is the same, so this should get you started. Also - glad to hear my old comments helped on the roadlessland site - it looks nice. Cheers, -Josh PS - Please be sure to CC the mapserver list if this doesn't make sense - others here may well have better ideas on how to help than me, and chances are if you want to know something, others may be in the same boat, and thus find the thread helpful. nelson guda wrote: > Hi again, Josh, > > I just tried "DescribeFeatureType", which works but the response only > give the names of the variables. Any idea on how to get the actual > data about those variables? > > many thanks, > nelson > > DescribeFeatureType response: > > > type="ms:iraType" > substitutionGroup="gml:_Feature" /> > > > > > > minOccurs="0" maxOccurs="1"/> > > > > > > > > > > > > > On Jan 4, 2008, at 8:53 AM, Josh Livni wrote: > >> This doesn't answer you question exactly, but have you considered >> using a WMS getFeatureInfo request instead? Then you can use a >> simple template.html to decide which attributes you want to return >> for later parsing. I've done this a few times myself with Google Maps. >> >> -Josh >> >> nelson guda wrote: >>> Hi all, >>> >>> I have an odd request regarding WFS capabilities. Is it possible to >>> have a WFS mapserver request return gml results without the geometry >>> data? >>> >>> I know that this seems odd, but it makes sense for what I am doing. >>> I am using a WMS overlay to serve tiles for a large dataset to an >>> overlay on google maps. In order to query specific polygons from >>> that dataset (a shapefile), I am using a WFS GetFeature request. >>> All I need is the id and other parameters of the feature, but not >>> the geometry data (because it is already there from the WMS. Right >>> now I am just parsing out the info I need from the gml at the server >>> level, but it would be much faster if I could get the WFS to return >>> only the feature info minus the geometry data. Is this possible? >>> >>> Thanks, and thanks for your previous help. >>> >>> nelson From Bob.Basques at CI.STPAUL.MN.US Fri Jan 4 13:01:49 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 4 Jan 2008 15:01:49 -0600 Subject: Funky Legend Output Message-ID: I'm getting a funky Symbol output in a raster legend. see: http://gis.ci.stpaul.mn.us/datasets/SHP/METC/TLG/CENTERLINES_TLG/tlg_shields_googlish_agg_public.map-4.99-pwcs-01?mapext=561102.4457165183%20133820.84525871728%20583263.0777287454%20149106.64483987846&mapsize=880%20607&mode=legend I'll send the MAPFILE fragment next bobb From Bob.Basques at CI.STPAUL.MN.US Fri Jan 4 13:05:45 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 4 Jan 2008 15:05:45 -0600 Subject: funky legend Message-ID: All, Note, the last Highway Shield in the Legend output is generated from a carbon copy of the first CLASS in the listing below but at the line drawing stage. I was trying to move the Legend generation stuff into it's own LAYER as list below, but the Symbols don't want to cooperate for some reason. Are there some default settings that should be used or ???? Thanks bobb Here is the MAPFILE fragment for the legend output: ######################## ## Legend Chips - This section used exclusively for Legend Generation ## Basically these are duplicates of the Style entries ## for the separate layer ######################## LAYER NAME 'legend_chips' GROUP 'interstate_poly' STATUS DEFAULT TYPE LINE CLASS NAME 'US Interstate' STYLE SYMBOL 'interstate1_wide_back' SIZE 22 COLOR 255 0 0 END STYLE SYMBOL 'interstate1_wide_front' SIZE 22 COLOR 115 113 206 OUTLINECOLOR 254 254 254 END LABEL TYPE TRUETYPE FONT bluehigh SIZE 12 COLOR 254 254 254 MINDISTANCE 200 MINFEATURESIZE 10 OFFSET 0 0 PARTIALS FALSE END END CLASS NAME 'Access Ramp' STYLE SYMBOL 'circle' SIZE 6 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 4 COLOR 239 211 66 END END CLASS NAME 'Local Roads' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 254 254 254 END END CLASS NAME 'Secondary Road' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 255 251 115 END END CLASS NAME 'MN Highway' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 255 251 115 END END CLASS NAME 'US Highway' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 255 251 115 END END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at CI.STPAUL.MN.US Fri Jan 4 13:22:06 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 4 Jan 2008 15:22:06 -0600 Subject: funky legend Message-ID: All, I'm so embarrassed. figured it out for myself. Needed to change the Shield symbol layer to ANNOTATION from LINE Just needed a separate layer for the Symbol Points Thanks The previous link show the corrected Symbols now. bobb >>> Bob Basques wrote: This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part775143B9.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit All, Note, the last Highway Shield in the Legend output is generated from a carbon copy of the first CLASS in the listing below but at the line drawing stage. I was trying to move the Legend generation stuff into it's own LAYER as list below, but the Symbols don't want to cooperate for some reason. Are there some default settings that should be used or ???? Thanks bobb Here is the MAPFILE fragment for the legend output: ######################## ## Legend Chips - This section used exclusively for Legend Generation ## Basically these are duplicates of the Style entries ## for the separate layer ######################## LAYER NAME 'legend_chips' GROUP 'interstate_poly' STATUS DEFAULT TYPE LINE CLASS NAME 'US Interstate' STYLE SYMBOL 'interstate1_wide_back' SIZE 22 COLOR 255 0 0 END STYLE SYMBOL 'interstate1_wide_front' SIZE 22 COLOR 115 113 206 OUTLINECOLOR 254 254 254 END LABEL TYPE TRUETYPE FONT bluehigh SIZE 12 COLOR 254 254 254 MINDISTANCE 200 MINFEATURESIZE 10 OFFSET 0 0 PARTIALS FALSE END END CLASS NAME 'Access Ramp' STYLE SYMBOL 'circle' SIZE 6 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 4 COLOR 239 211 66 END END CLASS NAME 'Local Roads' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 254 254 254 END END CLASS NAME 'Secondary Road' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 255 251 115 END END CLASS NAME 'MN Highway' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 255 251 115 END END CLASS NAME 'US Highway' STYLE SYMBOL 'circle' SIZE 14 COLOR 175 175 175 END STYLE SYMBOL 'circle' SIZE 10 COLOR 255 251 115 END END END END --=__Part775143B9.0__= Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Description: HTML
All,
 
Note, the last Highway Shield in the Legend output is generated from = a carbon copy of the first CLASS in the listing below but at the line = drawing stage.  I was trying to move the Legend generation stuff into = it's own LAYER as list below, but the Symbols don't want to cooperate for = some reason.  Are there some default settings that should be used or = ????
 
Thanks
 
bobb
 
 
Here is the MAPFILE fragment for the legend output:
 
########################
##  Legend Chips - This section used = exclusively for Legend Generation
##      =            Basically = these are duplicates of the Style entries
##    &nbs= p;            for = the separate layer
########################
  LAYER
 &nb= sp;  NAME 'legend_chips'
    GROUP 'interstate_poly'=
    STATUS DEFAULT
    TYPE LINE
&n= bsp;   CLASS
      NAME 'US = Interstate'
      STYLE
   &n= bsp;    SYMBOL 'interstate1_wide_back'
   =      SIZE 22
      &nb= sp; COLOR 255 0 0
      END
  &nbs= p;   STYLE
        SYMBOL = 'interstate1_wide_front'
        = SIZE 22
        COLOR 115 113 = 206
        OUTLINECOLOR 254 254 = 254
      END      =
      LABEL
     &= nbsp;  TYPE TRUETYPE
        = FONT bluehigh
        SIZE 12
&nbs= p;       COLOR 254 254 254
  &nb= sp;     MINDISTANCE 200
    &nbs= p;   MINFEATURESIZE 10
      &nb= sp; OFFSET 0 0
        PARTIALS = FALSE
      END
    = END
    CLASS
      NAME = 'Access Ramp'
      STYLE
   =      SYMBOL 'circle'
     &= nbsp;  SIZE 6
        COLOR 175 = 175 175
      END
    &n= bsp; STYLE
        SYMBOL 'circle'        SIZE 4
   &nb= sp;    COLOR 239 211 66
      = END
    END
    CLASS
  &n= bsp;   NAME 'Local Roads'
      = STYLE
        SYMBOL 'circle'
&nbs= p;       SIZE 14
    &= nbsp;   COLOR 175 175 175
      = END
      STYLE
    &nbs= p;   SYMBOL 'circle'
       = ; SIZE 10
        COLOR 254 254 = 254
      END
    END
&nbs= p;   CLASS
      NAME 'Secondary = Road'
      STYLE
    &n= bsp;   SYMBOL 'circle'
      &nb= sp; SIZE 14
        COLOR 175 175 = 175
      END
     = STYLE
        SYMBOL 'circle'
&nb= sp;       SIZE 10
    =     COLOR 255 251 115
      = END
    END
    CLASS
  &n= bsp;   NAME 'MN Highway'
      = STYLE
        SYMBOL 'circle'
&nbs= p;       SIZE 14
    &= nbsp;   COLOR 175 175 175
      = END
      STYLE
    &nbs= p;   SYMBOL 'circle'
       = ; SIZE 10
        COLOR 255 251 = 115
      END
    END
&nbs= p;   CLASS
      NAME 'US Highway'      STYLE
     &nbs= p;  SYMBOL 'circle'
        = SIZE 14
        COLOR 175 175 = 175
      END
     = STYLE 
        SYMBOL = 'circle' 
        SIZE = 10 
        COLOR 255 251 115 =
      END
    END
 &= nbsp;  END
   
  END
--=__Part775143B9.0__=-- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelson.guda at GMAIL.COM Fri Jan 4 13:59:25 2008 From: nelson.guda at GMAIL.COM (nelson guda) Date: Fri, 4 Jan 2008 15:59:25 -0600 Subject: WFS request options In-Reply-To: <477E6357.7070008@umbrellaconsulting.com> Message-ID: Thanks Josh, I looked over the WMS GetFeatureInfo request, and this is exactly what I need. For some reason, though the only data I am getting back looks like this: GetFeatureInfo results: Layer 'ira_fill2' Feature 689: The feature number appears to correspond to the correct place in the dbf file, but none of the rest of the feature data is being returned. I don't understand. Does anyone have any ideas? thanks, nelson Here is the mapfile and request that I made: Request: http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/ maps/ ira.map&REQUEST=GetFeatureInfo&SERVICE=WMS&reaspect=false&VERSION=1.1.1& LAYERS=ira_fill2&STYLES=default&FORMAT=image/ gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG: 4326&WIDTH=256&HEIGHT=256&QUERY_LAYERS=ira_fill2&x=254&y=165&BBOX=-122.1 6796875,46.37725420510028,-122.080078125,46.4378568950242 Mapfile: MAP NAME "Roadless" STATUS ON SIZE 800 600 STATUS ON EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824 IMAGETYPE PNG SHAPEPATH "../shapefiles" FONTSET ../fonts/fonts.txt PROJECTION "init=epsg:54004" END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "ira_wms" "wms_onlineresource" "http://thewildwoodstudios.com/cgi-bin/ mapserv?map=../roadlessland/maps/ira.map&" "wms_srs" "EPSG:4326 EPSG:54004 EPSG:4269" END END LAYER NAME "ira_fill2" TYPE POLYGON METADATA "wms_title" "ira_fill2" "wms_srs" "EPSG:4326 EPSG:54004" END PROJECTION "init=epsg:4269" END DATA ira_by_name_nad83 STATUS ON TRANSPARENCY 75 LABELITEM "NAME" LABELMAXSCALE 1000000 TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS DUMP TRUE CLASSITEM "ID" CLASS STYLE COLOR 0 255 0 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINFEATURESIZE 40 TYPE TRUETYPE FONT arial-narrow-italic SIZE 8 ANTIALIAS TRUE POSITION cc PARTIALS FALSE MINDISTANCE 300 WRAP '/' END END END END On Jan 4, 2008, at 10:48 AM, Josh Livni wrote: > Nelson, > > Using this method, you don't want to make a WFS request - you want > to make a WMS request. The mapserver site has documentation on how > to set up your mapfile to respond to WMS requests (http:// > mapserver.gis.umn.edu/docs/howto/wms_server) as well as the > template (which can be very simple for your use case). > > There's a thread on the google groups list about using > getFeatureInfo, but since the guy's WMS is down it's probably not > the best example (though you could still look at his code). > http://openlayers.org/dev/examples/getfeatureinfo.html is another > example that you could probably start with for assistance on the > client side -- you'd need to modify it to work with Google Maps (eg > using Google's methods to get at their bbox and other criteria > while creating the queryUrl, and to parse the result) but the > concept is the same, so this should get you started. > > Also - glad to hear my old comments helped on the roadlessland site > - it looks nice. > > Cheers, > > -Josh > > PS - Please be sure to CC the mapserver list if this doesn't make > sense - others here may well have better ideas on how to help than > me, and chances are if you want to know something, others may be in > the same boat, and thus find the thread helpful. > > > > nelson guda wrote: >> Hi again, Josh, >> >> I just tried "DescribeFeatureType", which works but the response >> only give the names of the variables. Any idea on how to get the >> actual data about those variables? >> >> many thanks, >> nelson >> >> DescribeFeatureType response: >> >> >> > type="ms:iraType" >> substitutionGroup="gml:_Feature" /> >> >> >> >> >> >> > type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/> >> >> >> >> >> >> >> >> >> >> >> >> >> On Jan 4, 2008, at 8:53 AM, Josh Livni wrote: >> >>> This doesn't answer you question exactly, but have you considered >>> using a WMS getFeatureInfo request instead? Then you can use a >>> simple template.html to decide which attributes you want to >>> return for later parsing. I've done this a few times myself with >>> Google Maps. >>> >>> -Josh >>> >>> nelson guda wrote: >>>> Hi all, >>>> >>>> I have an odd request regarding WFS capabilities. Is it >>>> possible to have a WFS mapserver request return gml results >>>> without the geometry data? >>>> >>>> I know that this seems odd, but it makes sense for what I am >>>> doing. I am using a WMS overlay to serve tiles for a large >>>> dataset to an overlay on google maps. In order to query >>>> specific polygons from that dataset (a shapefile), I am using a >>>> WFS GetFeature request. All I need is the id and other >>>> parameters of the feature, but not the geometry data (because it >>>> is already there from the WMS. Right now I am just parsing out >>>> the info I need from the gml at the server level, but it would >>>> be much faster if I could get the WFS to return only the feature >>>> info minus the geometry data. Is this possible? >>>> >>>> Thanks, and thanks for your previous help. >>>> >>>> nelson -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Fri Jan 4 14:00:09 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Fri, 4 Jan 2008 14:00:09 -0800 Subject: wide lines not complete at the edges In-Reply-To: <14609619.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > Hmmm.... I don't see any evidence that the uploading of the image worked. > ok, i seem to be having better luck with images today, so trying again. with AGG: http://www.nabble.com/file/p14625941/streetbug.agg.png with GD: http://www.nabble.com/file/p14625941/streetbug.gd.png -- View this message in context: http://www.nabble.com/wide-lines-not-complete-at-the-edges-tp14609249p14625941.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mailing_lists at UMBRELLACONSULTING.COM Fri Jan 4 14:05:47 2008 From: mailing_lists at UMBRELLACONSULTING.COM (Josh Livni) Date: Fri, 4 Jan 2008 14:05:47 -0800 Subject: WFS request options In-Reply-To: Message-ID: Nelson, A couple things: > I looked over the WMS GetFeatureInfo request, and this is exactly what > I need. For some reason, though the only data I am getting back looks > like this: > > GetFeatureInfo results: > Layer 'ira_fill2' > Feature 689: What's your template (query.html) look like? > PROJECTION > "init=epsg:54004" > END I am assuming this projection is what is defined in your proj file by what is sometimes referred to as 'world mercator'. If so, you may be interested in using this projection instead (won't make a huge difference in the states, but it is more accurate still) http://spatialreference.org/ref/user/google-projection/ Cheers, -Josh From crystal.li at IDISIS.COM Fri Jan 4 14:19:53 2008 From: crystal.li at IDISIS.COM (Crystal Li) Date: Fri, 4 Jan 2008 15:19:53 -0700 Subject: SSL issues with mapserver Message-ID: Hi All, I am using: - Apache version 2.0.58 - PHP version 4.4.3-dev - MapServer 4.8.3 CGI and MapScript (CSharp, Java, PHP, Python) - support GD 2.0.33, FreeType 2.1.10, GDAL/OGR 1.3.2, PROJ, WMS/WFS, Flash, PDF, ECW3.1, PostGIS, GEOS, libcurl 7.15.0 and download SSL related files from http://hunter.campbus.com, upload to my server. and add LoadModule ssl_module modules/mod_ssl.so & Include conf/ssl.conf to httpd.conf, But I get error when I access to this website: The security certificate presented by this website was not issued by a trusted certificate authority. The security certificate presented by this website was issued for a different website's address. Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server. I am attaching the files. please give me suggest, where should I modify to get rid of this, Really appreciate your time and help! Crystal ---------- Forwarded message ---------- From: Crystal Li Date: Jan 4, 2008 3:18 PM Subject: SSL files To: Crystal Li crystal.li at idisis.com -- ========================= Crystal Li Systems Analyst Idisis, Inc. 430, 318 11th Avenue S.E. Calgary, Alberta T2G 0Y2 www.idisis.com E-mail: crystal.li at idisis.com Office: (403)670-7351 Fax: (403) 670-7359 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: httpd.conf Type: application/octet-stream Size: 35391 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ssl.conf Type: application/octet-stream Size: 10835 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: server.crt Type: application/x-x509-ca-cert Size: 1021 bytes Desc: not available URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: server.key URL: From nelson.guda at GMAIL.COM Fri Jan 4 14:23:46 2008 From: nelson.guda at GMAIL.COM (nelson guda) Date: Fri, 4 Jan 2008 16:23:46 -0600 Subject: WFS request options In-Reply-To: <477EADBB.9060004@umbrellaconsulting.com> Message-ID: Josh, Let's see... > What's your template (query.html) look like? - well, there is likely the problem. I don't have a good idea of exactly what the query template is supposed to look like. I used this from the tutorial, but I imagine that it is not correct: [lrn] [ID] [STATE] [FOREST] [ACRES] Any resources for better explanations? thanks, nelson Thanks for the proj suggestions. I'll look into it. > >> PROJECTION >> "init=epsg:54004" >> END > > I am assuming this projection is what is defined in your proj file > by what is sometimes referred to as 'world mercator'. If so, you > may be interested in using this projection instead (won't make a > huge difference in the states, but it is more accurate still) > http://spatialreference.org/ref/user/google-projection/ > > Cheers, > > -Josh > From mailing_lists at UMBRELLACONSULTING.COM Fri Jan 4 14:34:24 2008 From: mailing_lists at UMBRELLACONSULTING.COM (Josh Livni) Date: Fri, 4 Jan 2008 14:34:24 -0800 Subject: SSL issues with mapserver In-Reply-To: <417cc46d0801041419q4b00943boa3b30910865dde75@mail.gmail.com> Message-ID: I think this is more a general apache/browser question. However, since you're here: it seems to work as expected. Eg when I go to https://mgleahy.dyndns.org/ (which is where your certificate is for), it does not have the second warning you note in your email. If you want to get rid of the first warning, you will probably need to purchase a certificate from a source that is trusted by your browser. You'll probably get better responses to any followups on a different list, however, as this is definitely not mapserver related. -Josh Crystal Li wrote: > Hi All, > > I am using: > > > - Apache version 2.0.58 > > - PHP version 4.4.3-dev > > - MapServer 4.8.3 CGI and MapScript (CSharp, Java, PHP, > > Python) > > - support GD 2.0.33, FreeType 2.1.10, GDAL/OGR 1.3.2, > > PROJ, WMS/WFS, Flash, PDF, ECW3.1, PostGIS, GEOS, > > libcurl 7.15.0 > > and download SSL related files from > > http://hunter.campbus.com , upload to my > server. > > and add > > LoadModule ssl_module modules/mod_ssl.so > > & > > > > Include conf/ssl.conf > > > > to httpd.conf, > > But I get error when I access to this website: > > > > The security certificate presented by this website was not > issued by a trusted certificate authority. > The security certificate presented by this website was issued > for a different website's address. > > Security certificate problems may indicate an attempt to fool > you or intercept any data you send to the server. > > > > I am attaching the files. please give me suggest, where should I > modify to get rid of this, Really appreciate your time and help! > > Crystal > > > > > ---------- Forwarded message ---------- > From: *Crystal Li* > > Date: Jan 4, 2008 3:18 PM > Subject: SSL files > To: Crystal Li crystal.li at idisis.com > > > -- > ========================= > Crystal Li > Systems Analyst > Idisis, Inc. > 430, 318 11th Avenue S.E . > Calgary, Alberta T2G 0Y2 > www.idisis.com > E-mail: crystal.li at idisis.com > Office: (403)670-7351 > Fax: (403) 670-7359 From mailing_lists at UMBRELLACONSULTING.COM Fri Jan 4 14:57:55 2008 From: mailing_lists at UMBRELLACONSULTING.COM (Josh Livni) Date: Fri, 4 Jan 2008 14:57:55 -0800 Subject: WFS request options In-Reply-To: <4A7C900C-B5BD-4FD4-BC86-694C6C004F34@gmail.com> Message-ID: Not sure here whether you get the same results if you entirely remove that query.html template. Can you confirm one way or the other? I'm curious if what you are getting back is some default mapserver template in case it can't find one on disk, or what. And, I place my template in the same location as my mapfile (not, for example, my data location). Also, I think your wms metadata is not complete. For example I have a line as follows in my mapfile (not sure if this will affect you, however). "wms_feature_info_mime_type" "text/html" -Josh PS - fwiw, attached is an example template I've used in the past to just display directly in the google popup. No fancy parsing is then required. nelson guda wrote: > Josh, Let's see... > > >> What's your template (query.html) look like? > - well, there is likely the problem. I don't have a good idea of > exactly what the query template is supposed to look like. I used this > from the tutorial, but I imagine that it is not correct: > > > [lrn] > [ID] > [STATE] > [FOREST] > [ACRES] > > > Any resources for better explanations? > thanks, > nelson > > > Thanks for the proj suggestions. I'll look into it. > >> >>> PROJECTION >>> "init=epsg:54004" >>> END >> >> I am assuming this projection is what is defined in your proj file by >> what is sometimes referred to as 'world mercator'. If so, you may be >> interested in using this projection instead (won't make a huge >> difference in the states, but it is more accurate still) >> http://spatialreference.org/ref/user/google-projection/ >> >> Cheers, >> >> -Josh >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From hal at MOBILEGEOGRAPHICS.COM Fri Jan 4 15:48:17 2008 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Fri, 4 Jan 2008 15:48:17 -0800 Subject: PHP/Mapscript + map object -> save method In-Reply-To: Message-ID: Does the directory you're writing to exist? Does the user that apache2 is running as have write access to that directory? Hal > $map->save("/var/www/apache2-default/erik/map_files/test"); > From samiazmi at GMAIL.COM Fri Jan 4 22:37:02 2008 From: samiazmi at GMAIL.COM (samiazmi) Date: Fri, 4 Jan 2008 22:37:02 -0800 Subject: Google-ish cartography. In-Reply-To: Message-ID: Yes I guess the work that you are doing is commendable and it will be great if u can share the map file so that the efforts can be minimized. regards sami Bob Basques wrote: > > All, > > I'm making good progress on my Google-ish cartography mapfile creation, > see the attached links. I will be publishing it to the GeoMoose site as > a mapfile once it's ready. It should be portable to use against the > Census tiger centerlines as well, actually it should be fairly easy to > apply to any centerline data set with the correct classifications > available. I'm using a local data set though, so there are likely to be > some differences. If anyone has a tiger data set available somewhere to > try it out on, I would be interested in those results. I'm trying to > add Documentation as I go in the MapFile as well. > > Why am I doing this, actually I'm just trying to get a jumping off > point, where I can take this generic "Google-ish" version of a MapFile, > and re-theme for my own uses, problably > > Link to screen shot of AGG sampled output: > http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/agg_test2.png > > Link to screen shot of non-agg sampled output: > http://pwultra5.ci.stpaul.mn.us/cp_tiles/temp/agg_test.png > > There are still some little things like the centering of the numbers in > the highway shield, as in they moved a pixel or two to the left in the > AGG output. Also, Google seems to use some sort of ADT (Traffic Counts) > for it's classification of the roads, so I'll need to research that a > bit I think. Some of the collectors are not highlighted in yellow like > those in the Google output. I also took some liberty with their > Interstate Shields and made them bigger. > > Also, here is a comparative Google link of the links from above : > http://maps.google.com/maps?hl=en&ie=UTF8&ll=45.0011,-93.227014&spn=0.014232,0.030341&z=15&om=1 > > > bobb > > > > > -- View this message in context: http://www.nabble.com/Google-ish-cartography.-tp14561115p14630493.html Sent from the Mapserver - User mailing list archive at Nabble.com. From samiazmi at GMAIL.COM Fri Jan 4 22:55:01 2008 From: samiazmi at GMAIL.COM (samiazmi) Date: Fri, 4 Jan 2008 22:55:01 -0800 Subject: Does shapeobj->union exist in php-mapscript In-Reply-To: Message-ID: Hi list, I too am getting the same error, can you please tell me any solution for this Union problem its giving the same error Call to undefined method ms_shape_obj::Union() How can we use union method in php? Please help, rest all methods like intersection and others are working fine, but only union is giving problems. Thanks in advance Sami Paul Moen-2 wrote: > > I get the following error. > > PHP Fatal error: Call to undefined method ms_shape_obj::Union() > > By doing the following. > > $wktshp1 = ms_shapeObjFromWkt($wkt1); > $wktshp2 = ms_shapeObjFromWkt($wkt2); > > $newshp = $wktshp1->Union($wktshp2); > > PHP/Mapscript docs say. > shapeobj Union(shapeobj shape) > Returns a shape object representing the union of the current > shape object with the one passed as parameter. > Only available if php/mapscript is built with GEOS > library. > > GEOS is built in. > MapServer version 4.10.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER > SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS > INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Does union exist in PHP/Mapscript? > > Thanks, > > Paul > > -- View this message in context: http://www.nabble.com/Does-shapeobj-%3Eunion-exist-in-php-mapscript-tp12779174p14630576.html Sent from the Mapserver - User mailing list archive at Nabble.com. From samiazmi at GMAIL.COM Fri Jan 4 22:59:30 2008 From: samiazmi at GMAIL.COM (samiazmi) Date: Fri, 4 Jan 2008 22:59:30 -0800 Subject: Union() in Php Message-ID: Hi list, I too am getting the same error, can you please tell me any solution for this Union problem its giving this error Call to undefined method ms_shape_obj::Union() How can we use union method in php? Please help, rest all methods like intersection and others are working fine, but only union is giving problems. shapeobj Union(shapeobj shape) Returns a shape object representing the union of the current shape object with the one passed as parameter. Only available if php/mapscript is built with GEOS library. This is the help mentioned in the document and it is used the same way still it is giving problems. The mapserver i am using is having GEOS, so thats not the problem. can any one post a tested piece of union that works that will be really very helpful Thanks in advance Sami -- View this message in context: http://www.nabble.com/Union%28%29-in-Php-tp14630589p14630589.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ben at REMOTEINFORMATION.COM.AU Sat Jan 5 21:26:43 2008 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Sun, 6 Jan 2008 14:26:43 +0900 Subject: New MapServer Demo (feedback requested) In-Reply-To: Message-ID: G'day Steve, Some feedback - I hope this doesn't seem ostentatious from a minor contributor to the MapServer Project, but I have learnt alot from scratch in the last few years, and have multiple systems running on multiple platforms using multiple data sources, so I have a strong sense of how difficult it can be to find and learn mapserver, and think this would be a very worthy project. On 04/01/2008, at 3:01 PM, MAPSERVER-USERS automatic digest system wrote: > From: Steve Lime > Date: 4 January 2008 4:50:58 AM > Subject: New MapServer Demo (feedback requested) > > > Hi all: I've got some time to put together a new demo for MapServer > and would to get feedback from > the community on what it should look like. Currently there are a > number of options out there but none > of them are very comprehensive. Demos that I know about include: > > - the Itasca demo application (came out of the MUM1 meeting): > http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0/ > - Perry Nacionales' MapServer tutorial: http:// > biometry.gis.umn.edu/tutorial/ > - Mobile Geographics' MapServer Recipies: http:// > www.mobilegeographics.com/mapserver/ > - MN DNR MapServer Test Suite: http://maps.dnr.state.mn.us/ > mapserver_demos/tests46/ > - Various MS4W packages: http://www.maptools.org/ms4w/index.phtml there was also a powerpoint I found from DM Solutions for php mapscript that is an excellent tutorial - I assume there are files that go with it. it was called php_mapscript_mum2. I would also like to raise my own vote of thanks to Pericles for his tutorial - I still refer to it! > There are of course lots of questions: > > - should a demo be installable, hosted or both at least installable (I assume you mean onto a user's computer.) This would probably require some serious clarification about how paths and permissions are defined to be multi platform, but it is likely to form the basis for many mapserver installations down the line. > - what data should it use As mentioned by many others, a small consistent (downloadable) set of data (at least a small shapefile and a small raster) with some demonstration mapfiles and html templates (I'm thinking of one like Pericles here) which could be used throughout the whole book. > - should it cover just MapServer configuration (e.g. mapfiles) No - should also have some detail on all aspects of using mapserver - from efficient querying through good user interfaces to security. > - should it cover installation as well or should that be left to > how-to's Assuming you produce this online - I would see the how-to's becoming part of the whole package. > - what relationship to other packages (e.g. OpenLayers, > TileCache, Ka-map) should be demo'd Other's have suggested this already, but I would see something like a book (in a "wiki-fied" sense) which could be built and edited as people were prepared to contribute : Part I Mapserv CGI demo Part II mapscript flavours Part III applications / frameworks (the Geomoose / Ka-map etc stuff) Part IV Data Sources Part V dealing with platform differences This doesn't really look so different to the current mapserver documentation index - perhaps it just needs some rearranging content. Obviously there are many people out there who could contribute who know much more than I do, but I would be happy to help where I could. cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas.bonfort at GMAIL.COM Sun Jan 6 01:52:16 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sun, 6 Jan 2008 10:52:16 +0100 Subject: forced palette and quantization for RGBA images Message-ID: hi all, I committed the implementation to enable forced palette and color reduction via quantization for RGBA images. These options greatly reduce image size for png output when using IMAGEMODE RGBA. the tracking ticket is http://trac.osgeo.org/mapserver/ticket/2436 , which contains examples of image size reduction you can hope to obtain when using the option you'll need a recent version of the mapserver source tree from SVN ( instructions to obtain it: http://mapserver.gis.umn.edu/development/cvs/ ) it is activated when the ./configure script is run with the --with-experimental-png switch, which checks for the libpng headers. this means that the libpng headers have to be installed and accessible on your system (apt-get install libpng-dev or the equivalent with yum/yast/etc...) to activate these outputs in your mapfiles you'll need to set some FORMATOPTION entries to the wanted OUTPUTFORMATs, eg ************************ to force quantization ************************ (creates a paletted png, with the palette automatically created/selected for each rendered image) OUTPUTFORMAT NAME 'AGGAQ' DRIVER AGG/PNG # not AGG specific, also works with GD. PNG is mandatory though IMAGEMODE RGBA # only for rgba imagemodes MIMETYPE "image/png" # this is the important part FORMATOPTION "QUANTIZE_FORCE=ON" # this specifies the number of colors wanted in the final image # 256 is the typically wanted value # values 17 to 255 are possible but don't really make sense as there's little reduction in file size compared to 256 (each pixel is still stored with 8 bits, only the palette is smaller) # 16 greatly reduces image size (and quality, no magic) FORMATOPTION "QUANTIZE_COLORS=256" END ********************************************** to use a specified precomputed palette ********************************************** (faster than quantization, and guarantees colors are consistent whatever the image created, but less flexible as the palette has to be precomputed and is fixed whatever is in the image) OUTPUTFORMAT NAME 'AGGAP' DRIVER AGG/PNG IMAGEMODE RGBA MIMETYPE "image/png" # the important part FORMATOPTION "PALETTE_FORCE=TRUE" FORMATOPTION "PALETTE=/gro/jsigmaps/palette.txt" END here the palette file must be specified with an absolute path, and contains at most 256 lines, each consisting of an r,g,b,a quadruplet, eg: 0,0,0,0 127,127,127,2 196,226,251,237 170,170,170,2 191,191,191,4 196,225,251,233 ... snip ... 163,189,242,57 137,158,242,56 118,137,241,48 184,213,245,75 to obtain this palette, take a typical (32bit rgba png) image you will want to display, use your favorite image editor to reduce the number of colors (photoshop using "save web image" and selecting png, or the commandline utilities pngquant [http://libpng.org/pub/png/apps/pngquant.html] or neuquant [http://members.ozemail.com.au/~dekker/NEUQUANT.HTML], etc ) and then extract (and transform to the required r,g,b,a format) the computed palette to the palette file. ( pngcheck [http://www.libpng.org/pub/png/apps/pngcheck.html] with its -p option and some scripting can be used for this ) these two options are still considered experimental, and any feedback you might give is welcome ( be it in the ./configure script, compiling, or image results ) cheers, thomas ps: email sent for documentation purposes until the official documentation is created/released on the main documentation site From thomas.bonfort at GMAIL.COM Sun Jan 6 02:25:26 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Sun, 6 Jan 2008 11:25:26 +0100 Subject: Google-ish cartography. In-Reply-To: Message-ID: > There are still some little things like the centering of the numbers in the > highway shield, as in they moved a pixel or two to the left in the AGG > output. that's a known issue: http://trac.osgeo.org/mapserver/ticket/2357 it'll hopefully be fixed in 5.2 or later, as for the time being there's no easy way to correct it. cheers, thomas From arndw at WTAL.DE Sun Jan 6 07:35:29 2008 From: arndw at WTAL.DE (Arnd Wippermann) Date: Sun, 6 Jan 2008 16:35:29 +0100 Subject: AW: [UMN_MAPSERVER-USERS] WFS request options In-Reply-To: Message-ID: Hi Nelson, put this 'wms_include_items' 'all' in the METADATA block for your layer. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ _____ Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von nelson guda Gesendet: Freitag, 4. Januar 2008 22:59 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] WFS request options Thanks Josh, I looked over the WMS GetFeatureInfo request, and this is exactly what I need. For some reason, though the only data I am getting back looks like this: GetFeatureInfo results: Layer 'ira_fill2' Feature 689: The feature number appears to correspond to the correct place in the dbf file, but none of the rest of the feature data is being returned. I don't understand. Does anyone have any ideas? thanks, nelson Here is the mapfile and request that I made: Request: http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.m ap &REQUEST=GetFeatureInfo&SERVICE=WMS&reaspect=false&VERSION=1.1.1&LAYERS=ira_ fill2&STYLES=default&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS= EPSG:4326&WIDTH=256&HEIGHT=256&QUERY_LAYERS=ira_fill2&x=254&y=165&BBOX=-122. 16796875,46.37725420510028,-122.080078125,46.4378568950242 Mapfile: MAP NAME "Roadless" STATUS ON SIZE 800 600 STATUS ON EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824 IMAGETYPE PNG SHAPEPATH "../shapefiles" FONTSET ../fonts/fonts.txt PROJECTION "init=epsg:54004" END WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" METADATA "wms_title" "ira_wms" "wms_onlineresource" "http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira. map &" "wms_srs" "EPSG:4326 EPSG:54004 EPSG:4269" END END LAYER NAME "ira_fill2" TYPE POLYGON METADATA "wms_title" "ira_fill2" "wms_srs" "EPSG:4326 EPSG:54004" END PROJECTION "init=epsg:4269" END DATA ira_by_name_nad83 STATUS ON TRANSPARENCY 75 LABELITEM "NAME" LABELMAXSCALE 1000000 TEMPLATE "query.html" TOLERANCE 3 TOLERANCEUNITS PIXELS DUMP TRUE CLASSITEM "ID" CLASS STYLE COLOR 0 255 0 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 MINFEATURESIZE 40 TYPE TRUETYPE FONT arial-narrow-italic SIZE 8 ANTIALIAS TRUE POSITION cc PARTIALS FALSE MINDISTANCE 300 WRAP '/' END END END END On Jan 4, 2008, at 10:48 AM, Josh Livni wrote: Nelson, Using this method, you don't want to make a WFS request - you want to make a WMS request. The mapserver site has documentation on how to set up your mapfile to respond to WMS requests (http://mapserver.gis.umn.edu/docs/howto/wms_server) as well as the template (which can be very simple for your use case). There's a thread on the google groups list about using getFeatureInfo, but since the guy's WMS is down it's probably not the best example (though you could still look at his code). http://openlayers.org/dev/examples/getfeatureinfo.html is another example that you could probably start with for assistance on the client side -- you'd need to modify it to work with Google Maps (eg using Google's methods to get at their bbox and other criteria while creating the queryUrl, and to parse the result) but the concept is the same, so this should get you started. Also - glad to hear my old comments helped on the roadlessland site - it looks nice. Cheers, -Josh PS - Please be sure to CC the mapserver list if this doesn't make sense - others here may well have better ideas on how to help than me, and chances are if you want to know something, others may be in the same boat, and thus find the thread helpful. nelson guda wrote: Hi again, Josh, I just tried "DescribeFeatureType", which works but the response only give the names of the variables. Any idea on how to get the actual data about those variables? many thanks, nelson DescribeFeatureType response: On Jan 4, 2008, at 8:53 AM, Josh Livni wrote: This doesn't answer you question exactly, but have you considered using a WMS getFeatureInfo request instead? Then you can use a simple template.html to decide which attributes you want to return for later parsing. I've done this a few times myself with Google Maps. -Josh nelson guda wrote: Hi all, I have an odd request regarding WFS capabilities. Is it possible to have a WFS mapserver request return gml results without the geometry data? I know that this seems odd, but it makes sense for what I am doing. I am using a WMS overlay to serve tiles for a large dataset to an overlay on google maps. In order to query specific polygons from that dataset (a shapefile), I am using a WFS GetFeature request. All I need is the id and other parameters of the feature, but not the geometry data (because it is already there from the WMS. Right now I am just parsing out the info I need from the gml at the server level, but it would be much faster if I could get the WFS to return only the feature info minus the geometry data. Is this possible? Thanks, and thanks for your previous help. nelson -------------- next part -------------- An HTML attachment was scrubbed... URL: From nelson.guda at GMAIL.COM Sun Jan 6 09:42:14 2008 From: nelson.guda at GMAIL.COM (nelson guda) Date: Sun, 6 Jan 2008 11:42:14 -0600 Subject: MWF GetFeatureInfo problem solved In-Reply-To: <20080106154026.89689F935C@smtp.tal.de> Message-ID: It works! Thanks much! That was definitely the issue. Thanks also to Josh for spending a lot of time trying to help me figure this out. Here is a summary of the problem for the record: I was trying to get the WMS GetFeatureInfo request working on my mapserver copy. I kept getting a response that looked like this: > GetFeatureInfo results: > > Layer 'ira_fill2' > Feature 689: The solution was to put 'wms_include_items' 'all' in the METADATA block for the layer. You can see the results here: http://roadlessland.org It is a site that allows users to get info about inventoried roadless areas in US Forest Service lands. The spatial data is a shapefile that is about 32mb. The site uses Google maps and overlays the map with a wms layer from mapserver. User clicks on the map are processed with a GetFeatureInfo request to mapserver. Thanks for all your help, everyone. nelson On Jan 6, 2008, at 9:35 AM, Arnd Wippermann wrote: > Hi Nelson, > > put this > > 'wms_include_items' 'all' > in the METADATA block for your layer. > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/ginfo/ > > > > Von: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] Im Auftrag von nelson guda > Gesendet: Freitag, 4. Januar 2008 22:59 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] WFS request options > > Thanks Josh, > > I looked over the WMS GetFeatureInfo request, and this is exactly > what I need. For some reason, though the only data I am getting > back looks like this: > > GetFeatureInfo results: > > Layer 'ira_fill2' > Feature 689: > > > The feature number appears to correspond to the correct place in > the dbf file, but none of the rest of the feature data is being > returned. I don't understand. Does anyone have any ideas? > > thanks, > nelson > > > Here is the mapfile and request that I made: > > Request: > http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/ > maps/ > ira.map&REQUEST=GetFeatureInfo&SERVICE=WMS&reaspect=false&VERSION=1.1. > 1&LAYERS=ira_fill2&STYLES=default&FORMAT=image/ > gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG: > 4326&WIDTH=256&HEIGHT=256&QUERY_LAYERS=ira_fill2&x=254&y=165&BBOX=-122 > .16796875,46.37725420510028,-122.080078125,46.4378568950242 > > Mapfile: > > MAP > > NAME "Roadless" > STATUS ON > SIZE 800 600 > STATUS ON > EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 > 49.0011405944824 > IMAGETYPE PNG > SHAPEPATH "../shapefiles" > FONTSET ../fonts/fonts.txt > > > PROJECTION > "init=epsg:54004" > END > > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > METADATA > "wms_title" "ira_wms" > "wms_onlineresource" "http://thewildwoodstudios.com/cgi-bin/mapserv? > map=../roadlessland/maps/ira.map&" > "wms_srs" "EPSG:4326 EPSG:54004 EPSG:4269" > END > END > > > LAYER > NAME "ira_fill2" > TYPE POLYGON > METADATA > "wms_title" "ira_fill2" > "wms_srs" "EPSG:4326 EPSG:54004" > END > > > PROJECTION > "init=epsg:4269" > END > DATA ira_by_name_nad83 > STATUS ON > TRANSPARENCY 75 > LABELITEM "NAME" > LABELMAXSCALE 1000000 > TEMPLATE "query.html" > TOLERANCE 3 > TOLERANCEUNITS PIXELS > DUMP TRUE > CLASSITEM "ID" > > CLASS > STYLE > COLOR 0 255 0 > END > LABEL > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > MINFEATURESIZE 40 > > TYPE TRUETYPE > FONT arial-narrow-italic > SIZE 8 > ANTIALIAS TRUE > POSITION cc > PARTIALS FALSE > MINDISTANCE 300 > WRAP '/' > END > > END > END > > > END > > > > > On Jan 4, 2008, at 10:48 AM, Josh Livni wrote: > >> Nelson, >> >> Using this method, you don't want to make a WFS request - you want >> to make a WMS request. The mapserver site has documentation on how >> to set up your mapfile to respond to WMS requests (http:// >> mapserver.gis.umn.edu/docs/howto/wms_server) as well as the >> template (which can be very simple for your use case). >> >> There's a thread on the google groups list about using >> getFeatureInfo, but since the guy's WMS is down it's probably not >> the best example (though you could still look at his code). >> http://openlayers.org/dev/examples/getfeatureinfo.html is another >> example that you could probably start with for assistance on the >> client side -- you'd need to modify it to work with Google Maps >> (eg using Google's methods to get at their bbox and other criteria >> while creating the queryUrl, and to parse the result) but the >> concept is the same, so this should get you started. >> >> Also - glad to hear my old comments helped on the roadlessland >> site - it looks nice. >> >> Cheers, >> >> -Josh >> >> PS - Please be sure to CC the mapserver list if this doesn't make >> sense - others here may well have better ideas on how to help than >> me, and chances are if you want to know something, others may be >> in the same boat, and thus find the thread helpful. >> >> >> >> nelson guda wrote: >>> Hi again, Josh, >>> >>> I just tried "DescribeFeatureType", which works but the response >>> only give the names of the variables. Any idea on how to get the >>> actual data about those variables? >>> >>> many thanks, >>> nelson >>> >>> DescribeFeatureType response: >>> >>> >>> >> type="ms:iraType" >>> substitutionGroup="gml:_Feature" /> >>> >>> >>> >>> >>> >>> >> minOccurs="0" maxOccurs="1"/> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> On Jan 4, 2008, at 8:53 AM, Josh Livni wrote: >>> >>>> This doesn't answer you question exactly, but have you >>>> considered using a WMS getFeatureInfo request instead? Then you >>>> can use a simple template.html to decide which attributes you >>>> want to return for later parsing. I've done this a few times >>>> myself with Google Maps. >>>> >>>> -Josh >>>> >>>> nelson guda wrote: >>>>> Hi all, >>>>> >>>>> I have an odd request regarding WFS capabilities. Is it >>>>> possible to have a WFS mapserver request return gml results >>>>> without the geometry data? >>>>> >>>>> I know that this seems odd, but it makes sense for what I am >>>>> doing. I am using a WMS overlay to serve tiles for a large >>>>> dataset to an overlay on google maps. In order to query >>>>> specific polygons from that dataset (a shapefile), I am using a >>>>> WFS GetFeature request. All I need is the id and other >>>>> parameters of the feature, but not the geometry data (because >>>>> it is already there from the WMS. Right now I am just parsing >>>>> out the info I need from the gml at the server level, but it >>>>> would be much faster if I could get the WFS to return only the >>>>> feature info minus the geometry data. Is this possible? >>>>> >>>>> Thanks, and thanks for your previous help. >>>>> >>>>> nelson > -------------- next part -------------- An HTML attachment was scrubbed... URL: From crystal.li at IDISIS.COM Sun Jan 6 12:27:59 2008 From: crystal.li at IDISIS.COM (Crystal Li) Date: Sun, 6 Jan 2008 13:27:59 -0700 Subject: SSL issues with mapserver In-Reply-To: <477EB470.9050500@umbrellaconsulting.com> Message-ID: Hi Josh, Really appreciate your answer. I have another Apache send email question, not sure you would give me suggest: in PHP, I try to use mail function to send email, but for some reason, could not sent email out, I checked php.ini, all the parameters seem fine, any apache configuration need to be done? I am attaching my php.ini. Really appreciate if any body could give me suggest! Have a great day! Crystal On Jan 4, 2008 3:34 PM, Josh Livni wrote: > I think this is more a general apache/browser question. > > However, since you're here: it seems to work as expected. Eg when I go > to https://mgleahy.dyndns.org/ (which is where your certificate is for), > it does not have the second warning you note in your email. If you want > to get rid of the first warning, you will probably need to purchase a > certificate from a source that is trusted by your browser. > > You'll probably get better responses to any followups on a different > list, however, as this is definitely not mapserver related. > > -Josh > > Crystal Li wrote: > > Hi All, > > > > I am using: > > > > > > - Apache version 2.0.58 > > > > - PHP version 4.4.3-dev > > > > - MapServer 4.8.3 CGI and MapScript (CSharp, Java, PHP, > > > > Python) > > > > - support GD 2.0.33, FreeType 2.1.10, GDAL/OGR 1.3.2, > > > > PROJ, WMS/WFS, Flash, PDF, ECW3.1, PostGIS, GEOS, > > > > libcurl 7.15.0 > > > > and download SSL related files from > > > > http://hunter.campbus.com , upload to my > > server. > > > > and add > > > > LoadModule ssl_module modules/mod_ssl.so > > > > & > > > > > > > > Include conf/ssl.conf > > > > > > > > to httpd.conf, > > > > But I get error when I access to this website: > > > > > > > > The security certificate presented by this website was not > > issued by a trusted certificate authority. > > The security certificate presented by this website was issued > > for a different website's address. > > > > Security certificate problems may indicate an attempt to fool > > you or intercept any data you send to the server. > > > > > > > > I am attaching the files. please give me suggest, where should I > > modify to get rid of this, Really appreciate your time and help! > > > > Crystal > > > > > > > > > > ---------- Forwarded message ---------- > > From: *Crystal Li* >> > > Date: Jan 4, 2008 3:18 PM > > Subject: SSL files > > To: Crystal Li crystal.li at idisis.com > > > > > > -- > > ========================= > > Crystal Li > > Systems Analyst > > Idisis, Inc. > > 430, 318 11th Avenue S.E . > > Calgary, Alberta T2G 0Y2 > > www.idisis.com > > E-mail: crystal.li at idisis.com > > Office: (403)670-7351 > > Fax: (403) 670-7359 > -- ========================= Crystal Li Systems Analyst Idisis, Inc. 430, 318 11th Avenue S.E. Calgary, Alberta T2G 0Y2 www.idisis.com E-mail: crystal.li at idisis.com Office: (403)670-7351 Fax: (403) 670-7359 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: php.ini Type: application/octet-stream Size: 39928 bytes Desc: not available URL: From neil at ASDF.CO.NZ Sun Jan 6 12:36:41 2008 From: neil at ASDF.CO.NZ (Neil Fincham) Date: Mon, 7 Jan 2008 09:36:41 +1300 Subject: Unusual Fonts Message-ID: Hi all, I am really enjoying my first delve into mapping and like to say thanks for the great software. I am havering a bit of a problem and I am sure it is something easy, I am getting unusual fonts rendering using SDE. It works fine with the shape files but with SDE the text parts come out wrong. I have attached a sample. Here are some bits from my mapfile;- OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END LAYER NAME LandUnit METADATA "DESCRIPTION" "Land Unit" "RESULT_FIELDS" "ForestCode Description" END TYPE POLYGON STATUS ON CONNECTIONTYPE PLUGIN PLUGIN "/ms4w/Apache/specialplugins/msplugin_sde_92.dll" CONNECTION "palustris,port:5155,d,ms_user,p4ss\/\/ord" DATA "d.DBO.LandUnit,SHAPE,SDE.DEFAULT" TOLERANCE 5 TEMPLATE "ttt_query.html" CLASS SYMBOL 0 COLOR 255 255 255 OUTLINECOLOR 0 0 0 TEXT ([SpeciesLabel] [YOE] [AreaHA]ha) LABEL FONT "vera" TYPE truetype SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 WRAP " " ENCODING UTF-16 END END END # Layer The [SpeciesLabel] is the one with the problem, the "[YOE] [AreaHA]ha" are numbers and render correctly. I have tried various ENCODING types to no avail. Thanks for your time Neil -------------- next part -------------- A non-text attachment was scrubbed... Name: fonts.jpg Type: image/jpeg Size: 6754 bytes Desc: not available URL: From ed at TOPOZONE.COM Sun Jan 6 13:02:01 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 6 Jan 2008 16:02:01 -0500 Subject: Unusual Fonts In-Reply-To: A<47813BD9.9000605@asdf.co.nz> Message-ID: Neil - Could you give an example of the text in one of the SpeciesLabel fields? What alphabet, character set, and language is the SpeciesLabel field stored in? If you switch to a different FONT does the output change? At first glance you appear to have code points in the label that are not representable in the selected font. That might not be the problem, but it's worth eliminating - hence my questions above. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Neil Fincham Sent: Sunday, January 06, 2008 3:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Unusual Fonts Hi all, I am really enjoying my first delve into mapping and like to say thanks for the great software. I am havering a bit of a problem and I am sure it is something easy, I am getting unusual fonts rendering using SDE. It works fine with the shape files but with SDE the text parts come out wrong. I have attached a sample. Here are some bits from my mapfile;- OUTPUTFORMAT NAME 'AGG' DRIVER AGG/PNG IMAGEMODE RGB END LAYER NAME LandUnit METADATA "DESCRIPTION" "Land Unit" "RESULT_FIELDS" "ForestCode Description" END TYPE POLYGON STATUS ON CONNECTIONTYPE PLUGIN PLUGIN "/ms4w/Apache/specialplugins/msplugin_sde_92.dll" CONNECTION "palustris,port:5155,d,ms_user,p4ss\/\/ord" DATA "d.DBO.LandUnit,SHAPE,SDE.DEFAULT" TOLERANCE 5 TEMPLATE "ttt_query.html" CLASS SYMBOL 0 COLOR 255 255 255 OUTLINECOLOR 0 0 0 TEXT ([SpeciesLabel] [YOE] [AreaHA]ha) LABEL FONT "vera" TYPE truetype SIZE 8 BUFFER 1 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 WRAP " " ENCODING UTF-16 END END END # Layer The [SpeciesLabel] is the one with the problem, the "[YOE] [AreaHA]ha" are numbers and render correctly. I have tried various ENCODING types to no avail. Thanks for your time Neil From crystal.li at IDISIS.COM Sun Jan 6 13:19:14 2008 From: crystal.li at IDISIS.COM (Crystal Li) Date: Sun, 6 Jan 2008 14:19:14 -0700 Subject: Apache & PHP send email Message-ID: Hi All, Sorry, you might get these email twice, I did not give right subject last email. I am using: Apache version 2.0.58 PHP version 4.4.3-dev MapServer 4.8.3 CGI and MapScript (CSharp, Java, PHP, Python) my snippet is below: [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = me at example.com and in php, I try to use mail function: like: $sConfMsg = "Hello ".trim($http_form_vars["regUsername"]).",\n\n"; mail(pg_escape_bytea(trim($http_form_vars["regFullName"])),"MapChat - confirmation of account for ".trim($http_form_vars["regUsername"]),$sConfMsg); but no email have been sent out, please suggest, any more configuration? Once again thanks a lot! Crystal Really appreciate your time and help! Crystal -- ========================= Crystal Li Systems Analyst Idisis, Inc. 430, 318 11th Avenue S.E. Calgary, Alberta T2G 0Y2 www.idisis.com E-mail: crystal.li at idisis.com Office: (403)670-7351 Fax: (403) 670-7359 -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil at ASDF.CO.NZ Sun Jan 6 14:12:36 2008 From: neil at ASDF.CO.NZ (Neil Fincham) Date: Mon, 7 Jan 2008 11:12:36 +1300 Subject: Unusual Fonts (resend, image too big) In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988790@ptolemy.topozone.com> Message-ID: Hi Ed, Thanks for the quick reply, a picture says 1000 words so I have done a screen dump out of ArcVIEW for you. I have tried a few different fonts and a few different string fields from the SDE and get the same result with the string's, the integers and 's render fine and using a shape file exported directly out of the SDE also works fine. Very puzzling Neil Ed McNierney wrote: > Neil - > > Could you give an example of the text in one of the SpeciesLabel fields? What alphabet, character set, and language is the SpeciesLabel field stored in? If you switch to a different FONT does the output change? > > At first glance you appear to have code points in the label that are not representable in the selected font. That might not be the problem, but it's worth eliminating - hence my questions above. > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: 978-251-4242, Fax: 978-251-1396 > ed at topozone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Neil Fincham > Sent: Sunday, January 06, 2008 3:37 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Unusual Fonts > > Hi all, > > I am really enjoying my first delve into mapping and like to say thanks for the great software. > > I am havering a bit of a problem and I am sure it is something easy, I am getting unusual fonts rendering using SDE. It works fine with the shape files but with SDE the text parts come out wrong. I have attached a sample. > > Here are some bits from my mapfile;- > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > LAYER > NAME LandUnit > METADATA > "DESCRIPTION" "Land Unit" > "RESULT_FIELDS" "ForestCode Description" > END > TYPE POLYGON > STATUS ON > CONNECTIONTYPE PLUGIN > PLUGIN "/ms4w/Apache/specialplugins/msplugin_sde_92.dll" > CONNECTION "palustris,port:5155,d,ms_user,p4ss\/\/ord" > DATA "d.DBO.LandUnit,SHAPE,SDE.DEFAULT" > TOLERANCE 5 > TEMPLATE "ttt_query.html" > CLASS > SYMBOL 0 > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > TEXT ([SpeciesLabel] [YOE] [AreaHA]ha) > LABEL > FONT "vera" > TYPE truetype > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > WRAP " " > ENCODING UTF-16 > END > END > END # Layer > > The [SpeciesLabel] is the one with the problem, the "[YOE] [AreaHA]ha" > are numbers and render correctly. I have tried various ENCODING types to no avail. > > Thanks for your time > > Neil -------------- next part -------------- A non-text attachment was scrubbed... Name: fonts.jpg Type: image/jpeg Size: 47131 bytes Desc: not available URL: From ed at TOPOZONE.COM Sun Jan 6 18:07:30 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 6 Jan 2008 21:07:30 -0500 Subject: Unusual Fonts (resend, image too big) In-Reply-To: A<47815254.9090704@asdf.co.nz> Message-ID: Neil - Well, actually, the 1000 words would really be much more helpful. Most of the "SpeciesLabel" fields in that image are apparently blank, which might mean they're blank or it might mean that ArcView is simply choosing a different way of displaying equally unprintable characters, or it might mean something else. A blank picture doesn't say much . It would be helpful if you could try to answer the three questions I originally asked, and specifically pick out one entry with a SpeciesLabel that has printable text in ArcView. Thanks. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Neil Fincham Sent: Sunday, January 06, 2008 5:13 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Unusual Fonts (resend, image too big) Hi Ed, Thanks for the quick reply, a picture says 1000 words so I have done a screen dump out of ArcVIEW for you. I have tried a few different fonts and a few different string fields from the SDE and get the same result with the string's, the integers and 's render fine and using a shape file exported directly out of the SDE also works fine. Very puzzling Neil Ed McNierney wrote: > Neil - > > Could you give an example of the text in one of the SpeciesLabel fields? What alphabet, character set, and language is the SpeciesLabel field stored in? If you switch to a different FONT does the output change? > > At first glance you appear to have code points in the label that are not representable in the selected font. That might not be the problem, but it's worth eliminating - hence my questions above. > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Neil Fincham > Sent: Sunday, January 06, 2008 3:37 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Unusual Fonts > > Hi all, > > I am really enjoying my first delve into mapping and like to say thanks for the great software. > > I am havering a bit of a problem and I am sure it is something easy, I am getting unusual fonts rendering using SDE. It works fine with the shape files but with SDE the text parts come out wrong. I have attached a sample. > > Here are some bits from my mapfile;- > > OUTPUTFORMAT > NAME 'AGG' > DRIVER AGG/PNG > IMAGEMODE RGB > END > > LAYER > NAME LandUnit > METADATA > "DESCRIPTION" "Land Unit" > "RESULT_FIELDS" "ForestCode Description" > END > TYPE POLYGON > STATUS ON > CONNECTIONTYPE PLUGIN > PLUGIN "/ms4w/Apache/specialplugins/msplugin_sde_92.dll" > CONNECTION "palustris,port:5155,d,ms_user,p4ss\/\/ord" > DATA "d.DBO.LandUnit,SHAPE,SDE.DEFAULT" > TOLERANCE 5 > TEMPLATE "ttt_query.html" > CLASS > SYMBOL 0 > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > TEXT ([SpeciesLabel] [YOE] [AreaHA]ha) > LABEL > FONT "vera" > TYPE truetype > SIZE 8 > BUFFER 1 > COLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > WRAP " " > ENCODING UTF-16 > END > END > END # Layer > > The [SpeciesLabel] is the one with the problem, the "[YOE] [AreaHA]ha" > are numbers and render correctly. I have tried various ENCODING types to no avail. > > Thanks for your time > > Neil From hobu.inc at GMAIL.COM Sun Jan 6 20:47:00 2008 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Sun, 6 Jan 2008 22:47:00 -0600 Subject: Unusual Fonts (resend, image too big) In-Reply-To: <47815254.9090704@asdf.co.nz> Message-ID: Neil, Looking through your post, and by virtue of using the SDE 9.2 plugin, I'll assume you are connecting to ArcSDE 9.2. First, what does the output of sdetable -o describe say for your SpeciesLabel column about the column data type? Is it NSTRING? Here's the story on unicode characters and MapServer+ArcSDE 9.2... As long as your characters aren't wide format, ie UTF-8'ish, they should be printable and usable with the iconv support in GD/AGG. If they are wide, however, they are garishly converted down to UTF8. My rational for this approach is that many of the Arc tools emit unicode columns for string data in 9.2 SDE layers, but much of the time, people don't want/need that, and they are storing ASCII or LATIN-type data in them anyway. MapServer internally does not support wide characters, however, so there are some significant limitations in this approach, and if MapServer is converting your wide characters down to UTF8, you are pretty much screwed. Another huge limitation of this approach is that it is really only usable for labeling things. You cannot use any expressions on NSTRING columns in ArcSDE with MapServer and expect to do anything. You shouldn't have to specify an encoding for the SDE layer because any NSTRING columns (which SDE stores as UTF-16) are smashed down to UTF8, which iconv/GD/AGG can render and deal with. All of this blather says that the unicode support for MapServer is very immature, and if you can reload your ArcSDE layer to use regular string columns in your ArcSDE layers, things should work much smoother and as expected. Howard On Jan 6, 2008, at 4:12 PM, Neil Fincham wrote: > Hi Ed, > > Thanks for the quick reply, a picture says 1000 words so I have > done a > screen dump out of ArcVIEW for you. > > I have tried a few different fonts and a few different string fields > from the SDE and get the same result with the string's, the integers > and > 's render fine and using a shape file exported directly out of > the > SDE also works fine. > > Very puzzling > > Neil > > Ed McNierney wrote: >> Neil - >> >> Could you give an example of the text in one of the SpeciesLabel >> fields? What alphabet, character set, and language is the >> SpeciesLabel field stored in? If you switch to a different FONT >> does the output change? >> >> At first glance you appear to have code points in the label that >> are not representable in the selected font. That might not be the >> problem, but it's worth eliminating - hence my questions above. >> >> - Ed >> >> Ed McNierney >> Chief Mapmaker >> Demand Media / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: 978-251-4242, Fax: 978-251-1396 >> ed at topozone.com >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER- >> USERS at LISTS.UMN.EDU] On Behalf Of Neil Fincham >> Sent: Sunday, January 06, 2008 3:37 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Unusual Fonts >> >> Hi all, >> >> I am really enjoying my first delve into mapping and like to say >> thanks for the great software. >> >> I am havering a bit of a problem and I am sure it is something >> easy, I am getting unusual fonts rendering using SDE. It works >> fine with the shape files but with SDE the text parts come out >> wrong. I have attached a sample. >> >> Here are some bits from my mapfile;- >> >> OUTPUTFORMAT >> NAME 'AGG' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> END >> >> LAYER >> NAME LandUnit >> METADATA >> "DESCRIPTION" "Land Unit" >> "RESULT_FIELDS" "ForestCode Description" >> END >> TYPE POLYGON >> STATUS ON >> CONNECTIONTYPE PLUGIN >> PLUGIN "/ms4w/Apache/specialplugins/msplugin_sde_92.dll" >> CONNECTION "palustris,port:5155,d,ms_user,p4ss\/\/ord" >> DATA "d.DBO.LandUnit,SHAPE,SDE.DEFAULT" >> TOLERANCE 5 >> TEMPLATE "ttt_query.html" >> CLASS >> SYMBOL 0 >> COLOR 255 255 255 >> OUTLINECOLOR 0 0 0 >> TEXT ([SpeciesLabel] [YOE] [AreaHA]ha) >> LABEL >> FONT "vera" >> TYPE truetype >> SIZE 8 >> BUFFER 1 >> COLOR 0 0 0 >> BACKGROUNDCOLOR 255 255 255 >> WRAP " " >> ENCODING UTF-16 >> END >> END >> END # Layer >> >> The [SpeciesLabel] is the one with the problem, the "[YOE] >> [AreaHA]ha" >> are numbers and render correctly. I have tried various ENCODING >> types to no avail. >> >> Thanks for your time >> >> Neil > From giuseppe.derossi at EMAIL.IT Sun Jan 6 23:57:17 2008 From: giuseppe.derossi at EMAIL.IT (Giuseppe De Rossi) Date: Mon, 7 Jan 2008 08:57:17 +0100 Subject: dashed line symbol and map file editing Message-ID: Hi , I need help in order to create a symbol which can fill a polygon by an obliquos dashed line. Is there anyone that use this kind ok symbol. Due to icreasing number of projects I'd like to use a tool which lets me to create and manage a set of map file in easly way, can you advice me one? Thanks in advance. Giu -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Dimagrire in 30 giorni: Garanzia soddisfatti o rimborsati Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7108&d=20080107 From wallacher at INNOMIS.COM Sun Jan 6 23:51:46 2008 From: wallacher at INNOMIS.COM (Erik Wallacher) Date: Mon, 7 Jan 2008 08:51:46 +0100 Subject: PHP/Mapscript + map object -> save method In-Reply-To: Message-ID: Hal Mueller schrieb: > Does the directory you're writing to exist? Does the user that > apache2 is running as have write access to that directory? > > Hal > >> $map->save("/var/www/apache2-default/erik/map_files/test"); >> > > Thank you Hal, it was just this simple thing. Erik From hanscastorp76 at YAHOO.ES Mon Jan 7 01:03:40 2008 From: hanscastorp76 at YAHOO.ES (Hans Castorp) Date: Mon, 7 Jan 2008 10:03:40 +0100 Subject: Map tunning Message-ID: Hi to all, Until now all my mapserver projects only included serving raster cartography without polyline or polygon layers, so all was very easy. No I am in front of a project that requires a ?good looking? cartography (or, like you say, google-ish cartography), so it becomes harder and harder. I think mapserver it?s quite easy for serving simple cartography but high customization it?s resulting very hard to me, so I need some help. Is there any tutorial or tool for helping with it?? I was making some trials with Mapstorer but results are very poor. P.S. My cartography is created using Arcgis and after exported to PostGis. Thanks in advance. Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.17.13/1212 - Release Date: 06/01/2008 22:55 -------------- next part -------------- An HTML attachment was scrubbed... URL: From faiza_nov at HOTMAIL.COM Mon Jan 7 03:25:32 2008 From: faiza_nov at HOTMAIL.COM (faiza zaidi) Date: Mon, 7 Jan 2008 11:25:32 +0000 Subject: Example 1.9: Interactive Maps and the Browse Mode NOT WORKING Message-ID: hi,as i am new to the mapserver, and find it good for the pdf outputs. i have installed the ms4w package and tutorial for mapserver version 5. i have tried the tutorial as well, but getting some problem. i have copied my mapfile and an html page on the path "C:\ms4w\Apache\htdocs\chk" and got it running in the browser as "http://localhost:82/chk/example1-9.html". but the problem is with browser output. i m unable to see the image when the mode is set to browse. i have followed the link http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis in the log file i am getting an error "[Mon Jan 07 10:39:28 2008] [error] [client 127.0.0.1] File does not exist: C:/ms4w/Apache/htdocs/chk/[img], referer: http://localhost:82/chk/example1-9.html" when i checked the tmp\ms_tmp\ i found no image there. also when i click on the place of the image it give me the error : "msEvalRegex(): Regular expression error. String ([map]) failed expression test." my mapfile is: MAP NAME EX1.9_ IMAGETYPE PNG24 EXTENT 246033.25 53055.59765625 250754.625 57199.203125 SIZE 400 300 WEB TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html' IMAGEPATH 'c:/ms4w/tmp/ms_tmp/' IMAGEURL 'c:/ms_tmp/' END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states CONNECTIONTYPE postgis CONNECTION "user=kk password=kk dbname=kk host=localhost port=5432" DATA "geom from topographicarea" TYPE POLYGON STATUS OFF CLASS NAME "land"EXPRESSION ('[theme]' = 'Land') STYLE COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END END # States polygon layer ends here # End of LAYER DEFINITIONS END # end of mapfile -------------------------------# my html page is: MapServer 5.x Tutorial

Example 1.9: Interactive Maps and the Browse Mode

The map above was created in "map" mode. It is a static map (it doesn't change when you click on it).

can you please tell where i am getting problem in the form section of my html page. the static map image works fine. thanks for any help. zaidi. _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From faiza_nov at HOTMAIL.COM Mon Jan 7 03:31:25 2008 From: faiza_nov at HOTMAIL.COM (SUBSCRIBE MAPSERVER-USERS zaidi f) Date: Mon, 7 Jan 2008 05:31:25 -0600 Subject: Example 1.9: Interactive Maps and the Browse Mode not working Message-ID: hi, as i am new to the mapserver, and find it good for the pdf outputs. i have installed the ms4w package and tutorial for mapserver version 5. i have tried the tutorial as well, but getting some problem. i have copied my mapfile and an html page on the path "C:\ms4w\Apache\htdocs\chk" and got it running in the browser as "http://localhost:82/chk/example1-9.html". but the problem is with browser output. i m unable to see the image when the mode is set to browse. i have followed the link http://biometry.gis.umn.edu/cgi-bin/mapserv.exe? map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis in the log file i am getting an error "[Mon Jan 07 10:39:28 2008] [error] [client 127.0.0.1] File does not exist: C:/ms4w/Apache/htdocs/chk/[img], referer: http://localhost:82/chk/example1-9.html" when i checked the tmp\ms_tmp\ i found no image there. also when i clicked on the place of the image with the cross sign, i t gives an error "msEvalRegex(): Regular expression error. String ([map]) failed expression test." my mapfile is: MAP NAME EX1.9_ IMAGETYPE PNG24 EXTENT 246033.25 53055.59765625 250754.625 57199.203125 SIZE 400 300 WEB TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html' IMAGEPATH 'c:/ms4w/tmp/ms_tmp/' IMAGEURL 'c:/ms_tmp/' END # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # States polygon layer begins here NAME states CONNECTIONTYPE postgis CONNECTION "user=kk password=kk dbname=kk host=localhost port=5432" DATA "geom from topographicarea" TYPE POLYGON STATUS OFF CLASS NAME "land" EXPRESSION ('[theme]' = 'Land') STYLE COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END END # States polygon layer ends here # End of LAYER DEFINITIONS END # end of mapfile -------------------------------# my html page is: MapServer 5.x Tutorial

Example 1.9: Interactive Maps and the Browse Mode

The map above was created in "map" mode. It is a static map (it doesn't change when you click on it).

can you please tell where i am getting problem in the form section of my html page. the static map image works fine. thanks for any help. zaidi. From fillymax at TISCALI.IT Mon Jan 7 03:57:41 2008 From: fillymax at TISCALI.IT (Alessandro MAZZELLA) Date: Mon, 7 Jan 2008 12:57:41 +0100 Subject: how to unsubcribe ? Message-ID: Hi List, how to unsubribe my email from the list ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlheinze at GMX.DE Mon Jan 7 06:05:14 2008 From: carlheinze at GMX.DE (Carl Heinze) Date: Mon, 7 Jan 2008 15:05:14 +0100 Subject: Ruby Mapscript on Windows Message-ID: I'm new to this list, so: Hi to all I'm just starting to work with mapserver - and i'm already stuck during setting up my environment. I'm working under Windows XP and I would like to develop with ruby on rails. What is working: Ruby on Rails Postgres with PostGis CGI-Mapserver (mapserv.exe) But i couldn't find any possibility to download the Ruby Mapscript Libraries for Windows, nor could i find any Instructions for using Ruby mapscript under Windows. I installed Mapserver using the ms4w-package, but this is rolled out without the Ruby Mapscript (Why?) I would like to get the framework "ruby in space" (by geoaspects, http://www.geoaspects.com/rubyinspace.shtml) working - but they have only installation instructions for mac OS. So, finally, the question: How may I use the mapserver with ruby under windows? If my question is not clear, apologise.. many greets, Carl -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail From umberto.nicoletti at GMAIL.COM Mon Jan 7 06:20:19 2008 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 7 Jan 2008 15:20:19 +0100 Subject: Ruby Mapscript on Windows In-Reply-To: <20080107140514.69390@gmx.net> Message-ID: Hi Carl, if ruby mapscript is not available on ms4w you have two choices: 1. file a feature request to ms4w and wait until it is done 2. install the full build stack for Windows and then compile ruby mapscript yourself (not for the faint of heart!) Umberto On Jan 7, 2008 3:05 PM, Carl Heinze wrote: > I'm new to this list, so: Hi to all > > I'm just starting to work with mapserver - and i'm already stuck during setting up my environment. > > I'm working under Windows XP and I would like to develop with ruby on rails. > > What is working: > > Ruby on Rails > Postgres with PostGis > CGI-Mapserver (mapserv.exe) > > But i couldn't find any possibility to download the Ruby Mapscript Libraries for Windows, nor could i find any Instructions for using Ruby mapscript under Windows. I installed Mapserver using the ms4w-package, but this is rolled out without the Ruby Mapscript (Why?) > > I would like to get the framework "ruby in space" (by geoaspects, http://www.geoaspects.com/rubyinspace.shtml) working - but they have only installation instructions for mac OS. > > So, finally, the question: How may I use the mapserver with ruby under windows? > > If my question is not clear, apologise.. > > many greets, Carl > > -- > GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. > Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail > From naci0002 at UMN.EDU Mon Jan 7 11:10:17 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 7 Jan 2008 13:10:17 -0600 Subject: Example 1.9: Interactive Maps and the Browse Mode NOT WORKING In-Reply-To: Message-ID: Hi, I suggest you look at the example map file again and compare the WEB object with the one in your map file. In particular look at the keywords IMAGEPATH and IMAGEURL. The difference between these two keywords is mentioned (probably not very clearly) in http://biometry.gis.umn.edu/tutorial/example1-7.html. Cheers! -Perry faiza zaidi wrote: > hi, > as i am new to the mapserver, and find it good for the pdf outputs. i > have installed the ms4w package and tutorial for mapserver version 5. > i have tried the tutorial as well, but getting some problem. > i have copied my mapfile and an html page on the path > "C:\ms4w\Apache\htdocs\chk" and got it running in the browser as > "http://localhost:82/chk/example1-9.html". but the problem is with > browser output. i m unable to see the image when the mode is set to > browse. i have followed the link > http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis > > in the log file i am getting an error "[Mon Jan 07 10:39:28 2008] > [error] [client 127.0.0.1] File does not exist: > C:/ms4w/Apache/htdocs/chk/[img], referer: > http://localhost:82/chk/example1-9.html" > when i checked the tmp\ms_tmp\ i found no image there. > also when i click on the place of the image it give me the error : > "msEvalRegex(): Regular expression error. String ([map]) failed > expression test." > > my mapfile is: > MAP > NAME EX1.9_ > IMAGETYPE PNG24 > EXTENT 246033.25 53055.59765625 250754.625 57199.203125 > SIZE 400 300 > > WEB > TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html' > IMAGEPATH 'c:/ms4w/tmp/ms_tmp/' > IMAGEURL 'c:/ms_tmp/' > END > > # Start of LAYER DEFINITIONS > --------------------------------------------- > LAYER # States polygon layer begins here > NAME states > CONNECTIONTYPE postgis > CONNECTION "user=kk password=kk dbname=kk host=localhost port=5432" > DATA "geom from topographicarea" > TYPE POLYGON > STATUS OFF > CLASS > NAME "land" > EXPRESSION ('[theme]' = 'Land') > STYLE > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > END > > END # States polygon layer ends here > # End of LAYER DEFINITIONS > END # end of mapfile > -------------------------------# > my html page is: > > > MapServer 5.x Tutorial > > > > > > >
>

> Example 1.9: Interactive Maps and the Browse Mode >

>
> src="/cgi-bin/mapserv.exe?map=/ms4w/Apache/htdocs/chk/example1-9.map&layer=states&mode=map" > /> >
>

The map above was created in "map" > mode. It is > a static map (it doesn't change when you click on it). >

> >
> > > > > > > >
> > > > >
> > width="400" height="300"> >
>
>
> > >
> > > can you please tell where i am getting problem in the form section of > my html page. the static map image works fine. thanks for any help. > > zaidi. > > > > > ------------------------------------------------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger > From abe.gillespie.lists at GMAIL.COM Mon Jan 7 11:06:47 2008 From: abe.gillespie.lists at GMAIL.COM (Abram Gillespie) Date: Mon, 7 Jan 2008 14:06:47 -0500 Subject: ANN: zigGIS 2.0 Official Announcement Message-ID: Check it out here if you're interested: http://abegillespie.blogspot.com/2008/01/ziggis-20-official-announcement_07.html Thanks. -Abe From ssteve52 at YAHOO.COM Mon Jan 7 11:56:43 2008 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Mon, 7 Jan 2008 11:56:43 -0800 Subject: ANGLE follow Message-ID: I am using "ANGLE follow" to label elevation contours. When an elevation value occurs on a tight curve, which is often, the numbers will overlap each other making it difficult to read. For instance if the value is 300, the first 0 will overlap the 3 and the second 0 will overlap the first 0, like a deck of cards. Is there an option to prevent the letters from overlapping each other, and still follow the line? Thanks Steve --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dylan.beaudette at GMAIL.COM Mon Jan 7 13:00:51 2008 From: dylan.beaudette at GMAIL.COM (Dylan Beaudette) Date: Mon, 7 Jan 2008 13:00:51 -0800 Subject: MWF GetFeatureInfo problem solved In-Reply-To: <548D12D0-5390-49AE-BAB7-3D4AF776E1D0@GMAIL.COM> Message-ID: On Sunday 06 January 2008, nelson guda wrote: > It works! Thanks much! > That was definitely the issue. Thanks also to Josh for spending a > lot of time trying to help me figure this out. > > Here is a summary of the problem for the record: > > I was trying to get the WMS GetFeatureInfo request working on my > > mapserver copy. I kept getting a response that looked like this: > > GetFeatureInfo results: > > > > Layer 'ira_fill2' > > Feature 689: > > The solution was to put 'wms_include_items' 'all' in the METADATA > block for the layer. > > You can see the results here: http://roadlessland.org > It is a site that allows users to get info about inventoried roadless > areas in US Forest Service lands. The spatial data is a shapefile > that is about 32mb. The site uses Google maps and overlays the map > with a wms layer from mapserver. User clicks on the map are > processed with a GetFeatureInfo request to mapserver. > > Thanks for all your help, everyone. > > nelson > > On Jan 6, 2008, at 9:35 AM, Arnd Wippermann wrote: > > Hi Nelson, > > > > put this > > > > 'wms_include_items' 'all' > > in the METADATA block for your layer. > > > > Mit freundlichen Gr?ssen > > > > Arnd Wippermann > > http://gis.ibbeck.de/ginfo/ > > > > > > > > Von: UMN MapServer Users List [mailto:MAPSERVER- > > USERS at LISTS.UMN.EDU] Im Auftrag von nelson guda > > Gesendet: Freitag, 4. Januar 2008 22:59 > > An: MAPSERVER-USERS at LISTS.UMN.EDU > > Betreff: Re: [UMN_MAPSERVER-USERS] WFS request options > > > > Thanks Josh, > > > > I looked over the WMS GetFeatureInfo request, and this is exactly > > what I need. For some reason, though the only data I am getting > > back looks like this: > > > > GetFeatureInfo results: > > > > Layer 'ira_fill2' > > Feature 689: > > > > > > The feature number appears to correspond to the correct place in > > the dbf file, but none of the rest of the feature data is being > > returned. I don't understand. Does anyone have any ideas? > > > > thanks, > > nelson > > > > > > Here is the mapfile and request that I made: > > > > Request: > > http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/ > > maps/ > > ira.map&REQUEST=GetFeatureInfo&SERVICE=WMS&reaspect=false&VERSION=1.1. > > 1&LAYERS=ira_fill2&STYLES=default&FORMAT=image/ > > gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG: > > 4326&WIDTH=256&HEIGHT=256&QUERY_LAYERS=ira_fill2&x=254&y=165&BBOX=-122 > > .16796875,46.37725420510028,-122.080078125,46.4378568950242 > > > > Mapfile: > > > > MAP > > > > NAME "Roadless" > > STATUS ON > > SIZE 800 600 > > STATUS ON > > EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 > > 49.0011405944824 > > IMAGETYPE PNG > > SHAPEPATH "../shapefiles" > > FONTSET ../fonts/fonts.txt > > > > > > PROJECTION > > "init=epsg:54004" > > END > > > > WEB > > IMAGEPATH "/tmp/" > > IMAGEURL "/tmp/" > > METADATA > > "wms_title" "ira_wms" > > "wms_onlineresource" "http://thewildwoodstudios.com/cgi-bin/mapserv? > > map=../roadlessland/maps/ira.map&" > > "wms_srs" "EPSG:4326 EPSG:54004 EPSG:4269" > > END > > END > > > > > > LAYER > > NAME "ira_fill2" > > TYPE POLYGON > > METADATA > > "wms_title" "ira_fill2" > > "wms_srs" "EPSG:4326 EPSG:54004" > > END > > > > > > PROJECTION > > "init=epsg:4269" > > END > > DATA ira_by_name_nad83 > > STATUS ON > > TRANSPARENCY 75 > > LABELITEM "NAME" > > LABELMAXSCALE 1000000 > > TEMPLATE "query.html" > > TOLERANCE 3 > > TOLERANCEUNITS PIXELS > > DUMP TRUE > > CLASSITEM "ID" > > > > CLASS > > STYLE > > COLOR 0 255 0 > > END > > LABEL > > COLOR 0 0 0 > > OUTLINECOLOR 255 255 255 > > MINFEATURESIZE 40 > > > > TYPE TRUETYPE > > FONT arial-narrow-italic > > SIZE 8 > > ANTIALIAS TRUE > > POSITION cc > > PARTIALS FALSE > > MINDISTANCE 300 > > WRAP '/' > > END > > > > END > > END > > > > > > END > > > > On Jan 4, 2008, at 10:48 AM, Josh Livni wrote: > >> Nelson, > >> > >> Using this method, you don't want to make a WFS request - you want > >> to make a WMS request. The mapserver site has documentation on how > >> to set up your mapfile to respond to WMS requests (http:// > >> mapserver.gis.umn.edu/docs/howto/wms_server) as well as the > >> template (which can be very simple for your use case). > >> > >> There's a thread on the google groups list about using > >> getFeatureInfo, but since the guy's WMS is down it's probably not > >> the best example (though you could still look at his code). > >> http://openlayers.org/dev/examples/getfeatureinfo.html is another > >> example that you could probably start with for assistance on the > >> client side -- you'd need to modify it to work with Google Maps > >> (eg using Google's methods to get at their bbox and other criteria > >> while creating the queryUrl, and to parse the result) but the > >> concept is the same, so this should get you started. > >> > >> Also - glad to hear my old comments helped on the roadlessland > >> site - it looks nice. > >> > >> Cheers, > >> > >> -Josh > >> > >> PS - Please be sure to CC the mapserver list if this doesn't make > >> sense - others here may well have better ideas on how to help than > >> me, and chances are if you want to know something, others may be > >> in the same boat, and thus find the thread helpful. > >> > >> nelson guda wrote: > >>> Hi again, Josh, > >>> > >>> I just tried "DescribeFeatureType", which works but the response > >>> only give the names of the variables. Any idea on how to get the > >>> actual data about those variables? > >>> > >>> many thanks, > >>> nelson > >>> > >>> DescribeFeatureType response: > >>> > >>> > >>> >>> type="ms:iraType" > >>> substitutionGroup="gml:_Feature" /> > >>> > >>> > >>> > >>> > >>> > >>> >>> minOccurs="0" maxOccurs="1"/> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> On Jan 4, 2008, at 8:53 AM, Josh Livni wrote: > >>>> This doesn't answer you question exactly, but have you > >>>> considered using a WMS getFeatureInfo request instead? Then you > >>>> can use a simple template.html to decide which attributes you > >>>> want to return for later parsing. I've done this a few times > >>>> myself with Google Maps. > >>>> > >>>> -Josh > >>>> > >>>> nelson guda wrote: > >>>>> Hi all, > >>>>> > >>>>> I have an odd request regarding WFS capabilities. Is it > >>>>> possible to have a WFS mapserver request return gml results > >>>>> without the geometry data? > >>>>> > >>>>> I know that this seems odd, but it makes sense for what I am > >>>>> doing. I am using a WMS overlay to serve tiles for a large > >>>>> dataset to an overlay on google maps. In order to query > >>>>> specific polygons from that dataset (a shapefile), I am using a > >>>>> WFS GetFeature request. All I need is the id and other > >>>>> parameters of the feature, but not the geometry data (because > >>>>> it is already there from the WMS. Right now I am just parsing > >>>>> out the info I need from the gml at the server level, but it > >>>>> would be much faster if I could get the WFS to return only the > >>>>> feature info minus the geometry data. Is this possible? > >>>>> > >>>>> Thanks, and thanks for your previous help. > >>>>> > >>>>> nelson Nice site, glad to hear that this is worked out and well documented now. cheers, Dylan -- Dylan Beaudette Soil Resource Laboratory http://casoilresource.lawr.ucdavis.edu/ University of California at Davis 530.754.7341 From dmorissette at MAPGEARS.COM Mon Jan 7 13:13:31 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 7 Jan 2008 16:13:31 -0500 Subject: Does shapeobj->union exist in php-mapscript In-Reply-To: <14630576.post@talk.nabble.com> Message-ID: samiazmi wrote: > Hi list, > > I too am getting the same error, can you please tell me any solution for > this Union problem its giving the same error Call to undefined method > ms_shape_obj::Union() > I'm not sure why, but I see that it's called union_geos() in the source code. Perhaps try that and report here whether that works. Or even better, please file a ticket in http://trac.osgeo.org/mapserver/ about the inconsistency. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at DNR.STATE.MN.US Mon Jan 7 13:18:14 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 7 Jan 2008 15:18:14 -0600 Subject: ANGLE follow In-Reply-To: <546866.23450.qm@web45603.mail.sp1.yahoo.com> Message-ID: It's a limitation in the algorithm at the moment and I don't have a good workaround. Steve >>> On 1/7/2008 at 1:56 PM, in message <546866.23450.qm at web45603.mail.sp1.yahoo.com>, Steve Smith wrote: > I am using "ANGLE follow" to label elevation contours. When an elevation > value occurs on a tight curve, which is often, the numbers will overlap each > other making it difficult to read. For instance if the value is 300, the > first 0 will overlap the 3 and the second 0 will overlap the first 0, like a > deck of cards. Is there an option to prevent the letters from overlapping > each other, and still follow the line? > > Thanks > Steve > > > --------------------------------- > Looking for last minute shopping deals? Find them fast with Yahoo! Search. From Steve.Lime at DNR.STATE.MN.US Mon Jan 7 13:26:35 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 7 Jan 2008 15:26:35 -0600 Subject: wide lines not complete at the edges In-Reply-To: <14625941.post@talk.nabble.com> Message-ID: Can you post your mapfile and a small data sample? Steve >>> On 1/4/2008 at 4:00 PM, in message <14625941.post at talk.nabble.com>, "rich.fromm" wrote: > rich.fromm wrote: >> >> Hmmm.... I don't see any evidence that the uploading of the image worked. >> > > ok, i seem to be having better luck with images today, so trying again. > > with AGG: > > http://www.nabble.com/file/p14625941/streetbug.agg.png > > with GD: > > http://www.nabble.com/file/p14625941/streetbug.gd.png From nospam420 at YAHOO.COM Mon Jan 7 14:38:27 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 7 Jan 2008 14:38:27 -0800 Subject: wide lines not complete at the edges In-Reply-To: <478244AB.5157.008F.0@dnr.state.mn.us> Message-ID: Steve Lime wrote: > > Can you post your mapfile and a small data sample? > The map files are in the posting starting this thread: http://www.nabble.com/wide-lines-not-complete-at-the-edges-to14609249.html My data is a large dataset from navteq that I have imported into postgis. I'll have to look into both what would be needed to do to trim it down, and whether or not my license allows me to redistribute it at all (I'm guessing not). Although I probably could generate a test case with synthetic data, although that would require me researching a little bit about how the low level data is stored. -- View this message in context: http://www.nabble.com/wide-lines-not-complete-at-the-edges-tp14609249p14677878.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Mon Jan 7 14:41:22 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 7 Jan 2008 14:41:22 -0800 Subject: mapscript generic variable substitution syntax Message-ID: I have a map file that I am reading in via Java mapscript: map = new mapObj(mapfile); What I do is read the somewhat generic map file in, then substitute some variables based on the particular request. I'm trying to figure out what is the proper way to specify the variables in the map file in this instance. The following describes using [SquareBrackets] for HTML templates for CGI Mapserver: http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference The following describes using %PercentageSigs% for run time substitution, again for CGI Mapserver: http://mapserver.gis.umn.edu/docs/howto/runsub Neither of these precisely pertain to my situation, since I'm using Mapscript. The latter URL says: Within MapScript this is easy to do since the developer has complete control over how input is handled. But that's not entirely the case, since I want some input from map files and some to be programmatic. I tried a few things. For variable substitutions of numeric values, neither forms like %var% nor [var] works. For instance, here are pairs of input lines from my map file and the corresponding output error messages: EXTENT %minx% %miny% %maxx% %maxy% [Mon Jan 7 13:00:21 2008].149387 getDouble(): Symbol definition error. Parsing error near (%):(line 34) SIZE %width% %height% [Mon Jan 7 13:01:08 2008].196475 getInteger(): Symbol definition error. Parsing error near (%):(line 45) EXTENT [minx] [miny] [maxx] [maxy] [Mon Jan 7 13:01:59 2008].337825 getDouble(): Symbol definition error. Parsing error near (minx] [miny] [maxx] [maxy):(line 34) SIZE [width] [height] [Mon Jan 7 13:03:24 2008].715273 getInteger(): Symbol definition error. Parsing error near (width] [height):(line 47) A workaround here is to just specify some bogus values, and then directly set the keys I want to the values I want in the mapscript code: EXTENT -180 -90 180 90 SIZE 1 1 For variable substitutions within numeric strings, I can get it to work with something like the following: FILTER "the_geom && 'SRID=4326;LINESTRING(%minx% %miny%, %maxx% %maxy%)' AND feat_cod=2000123" I do end up getting the following error: [Mon Jan 7 13:15:35 2008].866125 getSymbol(): Symbol definition error. Parsing error near (the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 37.83351284250283, -122.28009375203187 37.84648658222045)' AND feat_cod=2000123):(line 39) But I get that even if I don't use variable substitution here and specify the values directly, so I think it's probably a separate issue. But it doesn't seem to affect the output, so I think it's a false error msg and I'm not worrying too much about it, although I would be happier if it went away. I searched the mailing list a bit trying to find an answer, but most of what I found pertains to using mapserver via CGI, not mapscript. Thanks for any advice that anyone might have. -- View this message in context: http://www.nabble.com/mapscript-generic-variable-substitution-syntax-tp14677879p14677879.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at SWOODBRIDGE.COM Mon Jan 7 14:59:30 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 7 Jan 2008 17:59:30 -0500 Subject: mapscript generic variable substitution syntax In-Reply-To: <14677879.post@talk.nabble.com> Message-ID: Rich, You can't really do what you want this way. In the CGI the mapfile is pre-processed to do the substitution before it is handed off to the parser. I do not think you have access to that facility in mapscript. The way other people have done the equivalent to this is to generate a template mapfile with generic objects. the then read call map = new mapObj(mapfile); to get the incomplete mapfile obj and then read the variables that they need to process and make calls that modify the map object appropriately. This is the standard way of doing this in mapscript. -Steve W rich.fromm wrote: > I have a map file that I am reading in via Java mapscript: > > map = new mapObj(mapfile); > > What I do is read the somewhat generic map file in, then substitute some > variables based on the particular request. > > I'm trying to figure out what is the proper way to specify the variables in > the map file in this instance. > > The following describes using [SquareBrackets] for HTML templates for CGI > Mapserver: > http://mapserver.gis.umn.edu/docs/reference/templatereference/templatereference > > The following describes using %PercentageSigs% for run time substitution, > again for CGI Mapserver: > http://mapserver.gis.umn.edu/docs/howto/runsub > > Neither of these precisely pertain to my situation, since I'm using > Mapscript. > > The latter URL says: > Within MapScript this is easy to do since the developer has complete > control over how input is handled. > > But that's not entirely the case, since I want some input from map files and > some to be programmatic. I tried a few things. > > For variable substitutions of numeric values, neither forms like %var% nor > [var] works. For instance, here are pairs of input lines from my map file > and > the corresponding output error messages: > > EXTENT %minx% %miny% %maxx% %maxy% > [Mon Jan 7 13:00:21 2008].149387 getDouble(): Symbol definition error. > Parsing error near (%):(line 34) > > SIZE %width% %height% > [Mon Jan 7 13:01:08 2008].196475 getInteger(): Symbol definition error. > Parsing error near (%):(line 45) > > EXTENT [minx] [miny] [maxx] [maxy] > [Mon Jan 7 13:01:59 2008].337825 getDouble(): Symbol definition error. > Parsing error near (minx] [miny] [maxx] [maxy):(line 34) > > SIZE [width] [height] > [Mon Jan 7 13:03:24 2008].715273 getInteger(): Symbol definition error. > Parsing error near (width] [height):(line 47) > > A workaround here is to just specify some bogus values, and then directly > set > the keys I want to the values I want in the mapscript code: > > EXTENT -180 -90 180 90 > SIZE 1 1 > > For variable substitutions within numeric strings, I can get it to work with > something like the following: > > FILTER "the_geom && 'SRID=4326;LINESTRING(%minx% %miny%, %maxx% > %maxy%)' AND feat_cod=2000123" > > I do end up getting the following error: > > [Mon Jan 7 13:15:35 2008].866125 getSymbol(): Symbol definition error. > Parsing error near (the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 > 37.83351284250283, -122.28009375203187 37.84648658222045)' AND > feat_cod=2000123):(line 39) > > But I get that even if I don't use variable substitution here and specify > the > values directly, so I think it's probably a separate issue. But it doesn't > seem to affect the output, so I think it's a false error msg and I'm not > worrying too much about it, although I would be happier if it went away. > > I searched the mailing list a bit trying to find an answer, but most of what > I > found pertains to using mapserver via CGI, not mapscript. > > Thanks for any advice that anyone might have. > From nospam420 at YAHOO.COM Mon Jan 7 15:02:15 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 7 Jan 2008 15:02:15 -0800 Subject: database filtering with FILTER or DATA ? Message-ID: My data is being queried from a postgis database. The documentation here: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer suggests that the DATA directive within LAYER just specifies the column name and tablename: --- begin --- If this is a PostGIS layer, the parameter should be in the form of " from ", where "columnname" is the name of the column containing the geometry objects and "tablename" is the name of the table from which the geometry data will be read. --- end --- and that any filtering that I want to do of the query is done with the FILTER directive within LAYER: --- begin --- FILTER [string] This parameter allows for data specific attribute filtering that is done at the same time spatial filtering is done, but before any CLASS expressions are evaluated. For OGR and shapefiles the string is simply a mapserver regular expression. For spatial databases the string is a SQL WHERE clause that is valid with respect to the underlying database. For example: FILTER "type='road' and size <2" --- end --- So, for example, I might have something like the following: --- begin --- DATA "the_geom FROM landuseb" FILTER "the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 37.83351284250283, -122.28009375203187 37.84648658222045)' AND feat_cod=2000123" --- end --- The following post seems to suggest that this is not a good thing to do. That by using FILTER it is mapserver doing the filtering, and not the database. It says to use a more complex DATA expression, including the restricted query. I think it is implying that in this case there is no FILTER expression: http://www.nabble.com/Variable-Substitution-in-Postgis-Query-to2951829.html#a2951829 Is this really true? I realize the thread is nearly 2 years old, so things may have changed. Furthermore, I tried all sorts of permutations of the expression for DATA to give me something that effectively executes the following postgis query: SELECT the_geom FROM landuseb WHERE the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 37.83351284250283, -122.28009375203187 37.84648658222045)' AND feat_cod=2000123; and I couldn't get anything to work. So if this is a more efficient way to do filtering, any help on the syntax would also be most appreciated. -- View this message in context: http://www.nabble.com/database-filtering-with-FILTER-or-DATA---tp14678254p14678254.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at SWOODBRIDGE.COM Mon Jan 7 15:04:54 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 7 Jan 2008 18:04:54 -0500 Subject: wide lines not complete at the edges In-Reply-To: <14677878.post@talk.nabble.com> Message-ID: rich.fromm wrote: > Steve Lime wrote: >> Can you post your mapfile and a small data sample? >> > > The map files are in the posting starting this thread: > http://www.nabble.com/wide-lines-not-complete-at-the-edges-to14609249.html > > My data is a large dataset from navteq that I have imported into postgis. > I'll have to look into both what would be needed to do to trim it down, and > whether or not my license allows me to redistribute it at all (I'm guessing > not). Although I probably could generate a test case with synthetic data, > although that would require me researching a little bit about how the low > level data is stored. > Rich, Based on looking at you images, I would just create a simple table in postgis and put in a few lines in a 0,0,5,5 space and create a simple one layer mapfile to display that on a simple 500x500 image. Using number like this make the math trivial. you can then pgsql2shp dump the table as a shapefile, and change you DATA statement and zip the mess up and attach it to a bug. Let me know is you need some more specific instructions or get stuck on doing this. This looks like a bug that need to get fixed. -Steve W From woodbri at SWOODBRIDGE.COM Mon Jan 7 15:10:04 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 7 Jan 2008 18:10:04 -0500 Subject: database filtering with FILTER or DATA ? In-Reply-To: <14678254.post@talk.nabble.com> Message-ID: Rich, You can generate more complex sql queries in your mapfile like: DATA "the_geom from (select .....) as foo ..." in your sub-select you will need to make sure that you include all columns that mapserver might need. This is a really good reference that you should download and read through: http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/postgis/ -Steve W rich.fromm wrote: > My data is being queried from a postgis database. The documentation here: > http://mapserver.gis.umn.edu/docs/reference/mapfile/layer > > suggests that the DATA directive within LAYER just specifies the column name > and tablename: > > --- begin --- > If this is a PostGIS layer, the parameter should be in the form of > " from ", where "columnname" is the name of the > column > containing the geometry objects and "tablename" is the name of the table > from > which the geometry data will be read. > --- end --- > > and that any filtering that I want to do of the query is done with the > FILTER > directive within LAYER: > > --- begin --- > FILTER [string] > > This parameter allows for data specific attribute filtering that is done > at the same time spatial filtering is done, but before any CLASS > expressions are evaluated. For OGR and shapefiles the string is simply a > mapserver regular expression. For spatial databases the string is a SQL > WHERE clause that is valid with respect to the underlying database. > > For example: FILTER "type='road' and size <2" > --- end --- > > So, for example, I might have something like the following: > > --- begin --- > DATA "the_geom FROM landuseb" > FILTER "the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 > 37.83351284250283, -122.28009375203187 37.84648658222045)' AND > feat_cod=2000123" > --- end --- > > > The following post seems to suggest that this is not a good thing to do. > That > by using FILTER it is mapserver doing the filtering, and not the database. > It > says to use a more complex DATA expression, including the restricted query. > I > think it is implying that in this case there is no FILTER expression: > > http://www.nabble.com/Variable-Substitution-in-Postgis-Query-to2951829.html#a2951829 > > Is this really true? I realize the thread is nearly 2 years old, so things > may have changed. > > Furthermore, I tried all sorts of permutations of the expression for DATA to > give me something that effectively executes the following postgis query: > > SELECT the_geom FROM landuseb WHERE the_geom && > 'SRID=4326;LINESTRING(-122.3019062479681 37.83351284250283, > -122.28009375203187 37.84648658222045)' AND feat_cod=2000123; > > and I couldn't get anything to work. > > So if this is a more efficient way to do filtering, any help on the syntax > would also be most appreciated. > From nospam420 at YAHOO.COM Mon Jan 7 15:23:57 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 7 Jan 2008 15:23:57 -0800 Subject: mapscript generic variable substitution syntax In-Reply-To: <4782AED2.7000505@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > > The way other people have done the equivalent to this is to generate a > template mapfile with generic objects. the then read call > > map = new mapObj(mapfile); > > to get the incomplete mapfile obj and then read the variables that they > need to process and make calls that modify the map object appropriately. > Ok, thanks. That's basically what I'm doing already, I was just wondering if there were a cleaner way. And I think the errors that I am seeing wrt the FILTER (that aren't affecting the result) are probably a red herring and not related to the substitution at all. -- View this message in context: http://www.nabble.com/mapscript-generic-variable-substitution-syntax-tp14677879p14678612.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Bob.Basques at CI.STPAUL.MN.US Mon Jan 7 15:23:49 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 7 Jan 2008 17:23:49 -0600 Subject: CLASS/STYLE Message-ID: All, Can this be done in a simpler way: CLASS EXPRESSION 'A40' # Local, Rural Road #NAME 'Local Roads' STYLE SYMBOL 'circle' SIZE 10 COLOR 254 254 254 END MAXSCALE 10000 END CLASS EXPRESSION 'A40' # Local, Rural Road #NAME 'Local Roads' STYLE SYMBOL 'circle' SIZE 3 COLOR 254 254 254 END MINSCALE 10001 END The above works, but I was wondering about something like the below, which I tried, or something similar would work to simplfy?: CLASS EXPRESSION 'A40' # Local, Rural Road #NAME 'Local Roads' STYLE SYMBOL 'circle' COLOR 254 254 254 CLASS STYLE SIZE 10 END MAXSCALE 10000 END CLASS STYLE SIZE 3 END MINSCALE 10001 END END END Although now that I look at it, it doesn't look that much simpler. Thanks bobb GISmo Powered by GeoMOOSE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: From gevensen at ALPHATRONICS.NET Mon Jan 7 15:44:49 2008 From: gevensen at ALPHATRONICS.NET (Greg Evensen) Date: Mon, 7 Jan 2008 15:44:49 -0800 Subject: wide lines not complete at the edges In-Reply-To: <4782B016.1000303@swoodbridge.com> Message-ID: This will show it without a data source MAP Extent 0 0 50 50 Units Meters Size 100 100 OUTPUTFORMAT NAME GIF DRIVER 'GD/GIF' MIMETYPE 'image/gif' EXTENSION 'gif' END SYMBOL Name 'circle' Type Ellipse Points 1 1 End Filled True END LAYER Status Default Type Line Name 'Test1' FEATURE Points 45 0 50 50 End END # Feature FEATURE Points 0 45 5 0 End END # Feature CLASS Symbol 'circle' Size 10 Color 255 0 0 OverlaySymbol 'circle' OverlaySize 8 OverlayColor 0 0 0 END # Class END # Layer END # Map Greg Stephen Woodbridge wrote: > > rich.fromm wrote: >> Steve Lime wrote: >>> Can you post your mapfile and a small data sample? >>> >> >> The map files are in the posting starting this thread: >> http://www.nabble.com/wide-lines-not-complete-at-the-edges-to14609249.html >> >> My data is a large dataset from navteq that I have imported into postgis. >> I'll have to look into both what would be needed to do to trim it down, >> and >> whether or not my license allows me to redistribute it at all (I'm >> guessing >> not). Although I probably could generate a test case with synthetic >> data, >> although that would require me researching a little bit about how the low >> level data is stored. >> > > Rich, > > Based on looking at you images, I would just create a simple table in > postgis and put in a few lines in a 0,0,5,5 space and create a simple > one layer mapfile to display that on a simple 500x500 image. Using > number like this make the math trivial. you can then pgsql2shp dump the > table as a shapefile, and change you DATA statement and zip the mess up > and attach it to a bug. > > Let me know is you need some more specific instructions or get stuck on > doing this. This looks like a bug that need to get fixed. > > -Steve W > > -- View this message in context: http://www.nabble.com/wide-lines-not-complete-at-the-edges-tp14609249p14678938.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Mon Jan 7 16:33:00 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 7 Jan 2008 16:33:00 -0800 Subject: wide lines not complete at the edges In-Reply-To: <4782B016.1000303@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > > Based on looking at you images, I would just create a simple table in > postgis and put in a few lines in a 0,0,5,5 space and create a simple > one layer mapfile to display that on a simple 500x500 image. Using > number like this make the math trivial. you can then pgsql2shp dump the > table as a shapefile, and change you DATA statement and zip the mess up > and attach it to a bug. > Done: http://trac.osgeo.org/mapserver/ticket/2464 -- View this message in context: http://www.nabble.com/wide-lines-not-complete-at-the-edges-tp14609249p14679578.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tfagin at COORDINATESOLUTIONS.COM Mon Jan 7 16:45:50 2008 From: tfagin at COORDINATESOLUTIONS.COM (Todd Fagin) Date: Mon, 7 Jan 2008 18:45:50 -0600 Subject: Mexico Street Data Message-ID: Greetings MapServer community, I am searching for reasonably accurate municipal-level street data (for general reference purposes) for several Mexican cities. I have searched a couple of clearinghouses, but my inability to speak Spanish compounds the difficulty of the search. Can anyone help point me in the right direction? Thanks, Todd -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Mon Jan 7 18:06:39 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 7 Jan 2008 18:06:39 -0800 Subject: database filtering with FILTER or DATA ? In-Reply-To: <4782B14C.7070201@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > > You can generate more complex sql queries in your mapfile like: > > DATA "the_geom from (select .....) as foo ..." > > in your sub-select you will need to make sure that you include all > columns that mapserver might need. > > This is a really good reference that you should download and read through: > > http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/postgis/ > First of all, thank you for the pointer to the reference. It is a bit helpful, and did clarify for me what the syntax should be. (And might be helpful for other reasons too, unrelated to this.) So, in this case, I can replace the following two lines: DATA "the_geom FROM landuseb" FILTER "the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 37.83351284250283, -122.28009375203187 37.84648658222045)' AND feat_cod=2000123" With just the following line: DATA "the_geom FROM (SELECT gid,the_geom from landuseb WHERE the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 37.83351284250283, -122.28009375203187 37.84648658222045)' AND feat_cod=2000123) AS foo USING SRID=4326 USING unique gid" So no FILTER, just the DATA. But my question is whether or not there is any advantage to doing this? Is the latter more efficient than the former? They both appear to me to be doing the same thing, although the mailing list posting I referenced previously seems to imply that the former does not do the filtering within postgis, but does it within mapserver: http://www.nabble.com/Variable-Substitution-in-Postgis-Query-to2951829.html#a2951829 But this is not my impression from reading the docs: http://mapserver.gis.umn.edu/docs/reference/mapfile/layer -- View this message in context: http://www.nabble.com/database-filtering-with-FILTER-or-DATA---tp14678254p14680957.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at SWOODBRIDGE.COM Mon Jan 7 19:04:41 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 7 Jan 2008 22:04:41 -0500 Subject: database filtering with FILTER or DATA ? In-Reply-To: <14680957.post@talk.nabble.com> Message-ID: rich.fromm wrote: > Stephen Woodbridge wrote: >> You can generate more complex sql queries in your mapfile like: >> >> DATA "the_geom from (select .....) as foo ..." >> >> in your sub-select you will need to make sure that you include all >> columns that mapserver might need. >> >> This is a really good reference that you should download and read through: >> >> http://mapserver.gis.umn.edu/community/conferences/MUM3/workshop/postgis/ >> > > First of all, thank you for the pointer to the reference. It is a bit > helpful, and did clarify for me what the syntax should be. (And might be > helpful for other reasons too, unrelated to this.) > > So, in this case, I can replace the following two lines: > > DATA "the_geom FROM landuseb" > FILTER "the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 > 37.83351284250283, -122.28009375203187 37.84648658222045)' AND > feat_cod=2000123" > > With just the following line: > > DATA "the_geom FROM (SELECT gid,the_geom from landuseb WHERE > the_geom && 'SRID=4326;LINESTRING(-122.3019062479681 37.83351284250283, > -122.28009375203187 37.84648658222045)' AND feat_cod=2000123) AS foo USING > SRID=4326 USING unique gid" > > So no FILTER, just the DATA. > > But my question is whether or not there is any advantage to doing this? Is > the latter more efficient than the former? They both appear to me to be > doing > the same thing, although the mailing list posting I referenced previously > seems to imply that the former does not do the filtering within postgis, but > does it within mapserver: > http://www.nabble.com/Variable-Substitution-in-Postgis-Query-to2951829.html#a2951829 > > But this is not my impression from reading the docs: > http://mapserver.gis.umn.edu/docs/reference/mapfile/layer > Exactly, the sub-query is doing the filtering in the database which is much faster that doing it in mapserver. On a related note, this method also lets you do joins on rendering which is inportant if you want to do thematic mapping. -Steve From walker1145 at QWEST.NET Mon Jan 7 20:17:34 2008 From: walker1145 at QWEST.NET (Kim Allen) Date: Mon, 7 Jan 2008 22:17:34 -0600 Subject: hardware Message-ID: I have been given the chance to spec out a server for our mapserver and need some help to take advantage of this. What I would like to do is to run mapserver on apache using postgresql/postgis as the database. I anticipate using only a few shapefiles for state /province boundaries and all of the rest on the postgres database. On that spatial database I have a table with 1.6 million entries, another with 180,000 entries updated daily and both of these are points, I will also have several tables with ploygons. I am using an html template for the maps but would like to use an interface like ka-map down the road. Currently I am using about 68 GB of disk space out of 138 GB however after the upgrade I would like to start adding some raster images. The peak number of hits an hour are around 200 but I know that will go up with an increase of speed. Since we are a MS shop I am looking for something that should be able to handle at least 3 times the number of hits per hour running on a MS server. However I also anticipating migrating to a linux based solution in the immediate future but for now I have to satisfy the powers that be. Any suggestions based upon the sketchy outline above will be appreciated. From karsten at TERRAGIS.NET Mon Jan 7 23:31:44 2008 From: karsten at TERRAGIS.NET (karsten vennemann) Date: Mon, 7 Jan 2008 23:31:44 -0800 Subject: Map tunning Message-ID: Hans, When you are using ArcMap for doing the cartography the free extension called ?AmeiN! / ArcGIs 9 to UMN? can help you initially producing a mapfile faster ?. Download at http://sourceforge.net/forum/forum.php?forum_id=466044 Check http://umn.mapserver.ch/index_en.php for more tools for creating map files. If you want all data in Postgis you need to edit the data tag in your mapfile: e.g. Be aware that Postgis layers are very handy and super cool but usually will be slightly slower performing ~ 10% than shape files ! Instead of a shape file e.g. like this NAME "Country" TYPE POLYGON DATA "yourpath/mapdata/countries" You need to include reference like this NAME "Country" TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "user=youruser password=magicpassword dbname=yourbase host=localhost" DATA "the_geom from (select the_geom, name, area, gid from countries_data) as temp using unique gid using SRID=4326" (SRID needs to be adjusted to your projection and unique ?gid? is needed) Regarding performance read the hints at http://mapserver.gis.umn.edu/docs/howto/mapfiletuning/?searchterm=optimize Some more tips: - Use the minscale and maxscale feature tags to display data at different scales E.g. you might want a simplified roads layer with different symbols at small scale (overview), but have several other more detailed roads layers that turn on automatically showing refined symbology when the user zooms in. You can do the same for lakes and rivers e.g include in layer definition to show a layer between 1:200000 - 1:500000 MAXSCALE 500000 MINSCALE 200000 - take good care of labeling at different scales (labels are the salt and pepper of your map!) e.g. use true type fonts, use Buffer and Mindistance to adjust how many labels show up on the map LABEL TYPE TRUETYPE FONT "verdana" ANGLE AUTO PARTIALS FALSE POSITION UC SIZE 10 BUFFER 12 MINDISTANCE 250 COLOR 20 20 80 OUTLINECOLOR 200 200 180 END - for symbols create your own set to have good looking ones , use composite symbols , reference e.g. at Symbols at http://mapserver.gis.umn.edu/docs/howto/symbologyexchange_vector - look at the REQUIRES and Labelrequires mapfile tag and use it to exclude layers layers that should or should not be displayed with each other http://mapserver.gis.umn.edu/docs/reference/mapfile/layer Remember that a long mapfile slows down performance (all layers that are turned off initially also do), however nice cartography requires more tags and layers :) Cheers Karsten ________________________________________ From: Hans Castorp [mailto:hanscastorp76 at YAHOO.ES] Sent: Monday, January 07, 2008 01:04 Subject: Map tunning Hi to all, Until now all my mapserver projects only included serving raster cartography without polyline or polygon layers, so all was very easy. No I am in front of a project that requires a ?good looking? cartography (or, like you say, google-ish cartography), so it becomes harder and harder. I think mapserver it?s quite easy for serving simple cartography but high customization it?s resulting very hard to me, so I need some help. Is there any tutorial or tool for helping with it?? I was making some trials with Mapstorer but results are very poor. P.S. My cartography is created using Arcgis and after exported to PostGis. Thanks in advance. Hans Castorp From pcreso at PCRESO.COM Tue Jan 8 01:31:37 2008 From: pcreso at PCRESO.COM (Brent Wood) Date: Tue, 8 Jan 2008 01:31:37 -0800 Subject: hardware In-Reply-To: Message-ID: --- Kim Allen wrote: > I have been given the chance to spec out a server for our mapserver and need > some help to take advantage of this. What I would like to do is to run > mapserver on apache using postgresql/postgis as the database. I anticipate > using only a few shapefiles for state /province boundaries and all of the > rest on the postgres database. On that spatial database I have a table with > 1.6 million entries, another with 180,000 entries updated daily and both of > these are points, I will also have several tables with ploygons. I am using > an html template for the maps but would like to use an interface like ka-map > down the road. Currently I am using about 68 GB of disk space out of 138 GB > however after the upgrade I would like to start adding some raster images. > The peak number of hits an hour are around 200 but I know that will go up > with an increase of speed. Since we are a MS shop I am looking for something > that should be able to handle at least 3 times the number of hits per hour > running on a MS server. However I also anticipating migrating to a linux > based solution in the immediate future but for now I have to satisfy the > powers that be. > > Any suggestions based upon the sketchy outline above will be appreciated. Hi Kim, Having wrestled with an unacceptably slow Windows server, and a much faster Linux system, despite being on inferior hardware (we still run the Windows server with a java mapscript client, but have abstracted PostGIS/Mapserver to a separate Linux server - using WMS - about 400 miles from the Wndows box), my first comment would be to go Linux ASAP. I think you'll get more benefit properly configuring Postgres & indexing, partitioning & clustering your PostGIS tables & perhaps using fastcgi for mapserver than tweaking hardware. I have compared the same PostGIS database under Linux & Windows on the same hardware, using in one case a 1.6m row table with points, lines & polygons. The first (moderately complex) query took about 18 secs on both systems after rebooting. Repeating the query took 18 secs again on the Windows box, but 3 under Linux. Linux file caching & Postgres seem a much better match than under Windows. As far as hardware goes, fast raided disks, striped if data security isn't a huge issue & price is, or a more sophisticated raid 5, perhaps 0+1 if redundant disks are required. I have found AMD cpu's outperform Intel $ for $ in this sort of application, but your mileage may vary. As much memory as you can afford is probably going to help more than sheer cpu speed, or number of cores. So my advice, worth all that I'm charging for it, spend your budget of the fastest disks, as much memory & as much cpu as you can afford, in that order, for Windows. For Linux, with its superior file caching, I'd suggest the same, but put memory first, as lots of memory will make up for (slightly) slower disks. To make best use of all that memory, a 64bit OS is prefereable. Enough memory to cache the entire database would be a good starting point, there have been discussions on the Postgres user list about running it in a ram disk for sheer speed, but if it fits in memory anyway, then the OS should do that for you. You might also look at OpenLayers instead of Ka-Map! for your interface, it's ability to cache clientside layers & download tiles, while a bit slower to start, is much faster overall in my experience. Cheers, Brent Wood From flavio at TYDAC.CH Tue Jan 8 03:40:12 2008 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 8 Jan 2008 12:40:12 +0100 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: Message-ID: Hi list, hi Thomas When using AGG output, lines at near horizontal/vertical angles become "fuzzy". Any idea how to avoid that? Example see http://www.tydac.ch/test.png: - lines on the right are perfect - lines on the upper left area are "fuzzy" Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From Baas at SPEERIT.NL Tue Jan 8 04:10:46 2008 From: Baas at SPEERIT.NL (Jelmer Baas) Date: Tue, 8 Jan 2008 13:10:46 +0100 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: A Message-ID: Another question: looking at the file, it seems like PNG is hardly the best file format for this type of image. Maybe use GIF? Might also solve this odd problem. -- Jelmer Baas > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Flavio Hendry > Sent: Tuesday, January 08, 2008 12:40 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] AGG: "fuzzy" lines at near > horizontal/vertical angles ... > > Hi list, hi Thomas > > When using AGG output, lines at near horizontal/vertical angles become > "fuzzy". Any idea how to avoid that? > > Example see http://www.tydac.ch/test.png: > - lines on the right are perfect > - lines on the upper left area are "fuzzy" > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > From flavio at TYDAC.CH Tue Jan 8 04:36:44 2008 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 8 Jan 2008 13:36:44 +0100 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: <68C97F84EAD0174799AC6FCEE219DEF2189D3B@batavia.Speerit.local> Message-ID: nope. AGG has to be 24bit. -----Original Message----- From: "Jelmer Baas" To: "Flavio Hendry" , Date: Tue, 8 Jan 2008 13:10:46 +0100 Subject: RE: [UMN_MAPSERVER-USERS] AGG: "fuzzy" lines at near horizontal/vertical angles ... > Another question: looking at the file, it seems like PNG is hardly > the > best file format for this type of image. Maybe use GIF? Might also > solve > this odd problem. > > -- > Jelmer Baas > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Flavio Hendry > > Sent: Tuesday, January 08, 2008 12:40 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] AGG: "fuzzy" lines at near > > horizontal/vertical angles ... > > > > Hi list, hi Thomas > > > > When using AGG output, lines at near horizontal/vertical angles > become > > "fuzzy". Any idea how to avoid that? > > > > Example see http://www.tydac.ch/test.png: > > - lines on the right are perfect > > - lines on the upper left area are "fuzzy" > > > > Mit freundlichem Gruss / Best Regards > > Flavio Hendry > > > > ---------------------------------------------------------------- > > TYDAC Web-Site: http://www.tydac.ch > > TYDAC MapServer: http://www.mapserver.ch > > ---------------------------------------------------------------- > > ############ Mit freundlichen Gruessen / Kind Regards > > ############ mailto:flavio at tydac.ch > > ############ TYDAC AG - http://www.tydac.ch > > #### #### Geographic Information Solutions > > #### #### Luternauweg 12 -- CH-3006 Bern > > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > > ---------------------------------------------------------------- > > > > From ed at TOPOZONE.COM Tue Jan 8 05:39:12 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Jan 2008 08:39:12 -0500 Subject: hardware In-Reply-To: A<10409.88518.qm@web33211.mail.mud.yahoo.com> Message-ID: Brent - I have to disagree with such a sweeping generalization concerning Windows and Linux servers. Having run both Windows and Linux servers for MapServer, MySQL, PostGIS and other applications for several years, I find it hard to claim that on identical hardware one is noticeably faster or slower than the other. Your mileage can (and obviously does) vary, but since you're running on two different machines your "inferior" system may well be better suited to the load you're giving it than the Windows system. I'm sure there are exceptions, and applications where there IS a noticeable difference between otherwise identical systems, but my experience does not show that a broad statement based on your observations on one pair of servers is warranted. First, the load Kim is talking about is quite light. If there are 200 hits per hour, and a 3x increase is expected, that's 600 hits per hour or 10 hits per minute; one hit every six seconds. Second, I think it's very important to separate the MapServer and PostGIS portions of the application, at least for discussion purposes. The optimal arrangement for each application may not be the same, and there may need to be some compromise if they're to run on one system. Third, I do agree that fast RAID 5 disks and lots of RAM are always a good idea! Finally, I think the most important think to remember is to work with what you know. If your staff are accustomed to and trained in using Windows systems, moving to Linux is hard and expensive - in terms of training, consultants, time to resolve issues, etc. The reverse is equally true. There is a high cost of moving to an operating system environment you don't know, and there needs to be a very good reason why you're willing to incur that cost. The suggestion that Kim "go to Linux ASAP" is a very expensive suggestion if the needed Linux skills aren't available. IMHO, the first step is to ensure optimal hardware design using the operating system Kim's most familiar with. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Wood Sent: Tuesday, January 08, 2008 4:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] hardware --- Kim Allen wrote: > I have been given the chance to spec out a server for our mapserver and need > some help to take advantage of this. What I would like to do is to run > mapserver on apache using postgresql/postgis as the database. I anticipate > using only a few shapefiles for state /province boundaries and all of the > rest on the postgres database. On that spatial database I have a table with > 1.6 million entries, another with 180,000 entries updated daily and both of > these are points, I will also have several tables with ploygons. I am using > an html template for the maps but would like to use an interface like ka-map > down the road. Currently I am using about 68 GB of disk space out of 138 GB > however after the upgrade I would like to start adding some raster images. > The peak number of hits an hour are around 200 but I know that will go up > with an increase of speed. Since we are a MS shop I am looking for something > that should be able to handle at least 3 times the number of hits per hour > running on a MS server. However I also anticipating migrating to a linux > based solution in the immediate future but for now I have to satisfy the > powers that be. > > Any suggestions based upon the sketchy outline above will be appreciated. Hi Kim, Having wrestled with an unacceptably slow Windows server, and a much faster Linux system, despite being on inferior hardware (we still run the Windows server with a java mapscript client, but have abstracted PostGIS/Mapserver to a separate Linux server - using WMS - about 400 miles from the Wndows box), my first comment would be to go Linux ASAP. I think you'll get more benefit properly configuring Postgres & indexing, partitioning & clustering your PostGIS tables & perhaps using fastcgi for mapserver than tweaking hardware. I have compared the same PostGIS database under Linux & Windows on the same hardware, using in one case a 1.6m row table with points, lines & polygons. The first (moderately complex) query took about 18 secs on both systems after rebooting. Repeating the query took 18 secs again on the Windows box, but 3 under Linux. Linux file caching & Postgres seem a much better match than under Windows. As far as hardware goes, fast raided disks, striped if data security isn't a huge issue & price is, or a more sophisticated raid 5, perhaps 0+1 if redundant disks are required. I have found AMD cpu's outperform Intel $ for $ in this sort of application, but your mileage may vary. As much memory as you can afford is probably going to help more than sheer cpu speed, or number of cores. So my advice, worth all that I'm charging for it, spend your budget of the fastest disks, as much memory & as much cpu as you can afford, in that order, for Windows. For Linux, with its superior file caching, I'd suggest the same, but put memory first, as lots of memory will make up for (slightly) slower disks. To make best use of all that memory, a 64bit OS is prefereable. Enough memory to cache the entire database would be a good starting point, there have been discussions on the Postgres user list about running it in a ram disk for sheer speed, but if it fits in memory anyway, then the OS should do that for you. You might also look at OpenLayers instead of Ka-Map! for your interface, it's ability to cache clientside layers & download tiles, while a bit slower to start, is much faster overall in my experience. Cheers, Brent Wood From David.Fawcett at STATE.MN.US Tue Jan 8 06:33:49 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 8 Jan 2008 08:33:49 -0600 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: A Message-ID: Flavio, In the places where you see the fuzzy lines, is MapServer drawing one line or is it drawing two lines on top of each other? For example, one line for the east boundary of the left polygon and one line for the west boundary of the right polygon. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Flavio Hendry Sent: Tuesday, January 08, 2008 5:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] AGG: "fuzzy" lines at near horizontal/vertical angles ... Hi list, hi Thomas When using AGG output, lines at near horizontal/vertical angles become "fuzzy". Any idea how to avoid that? Example see http://www.tydac.ch/test.png: - lines on the right are perfect - lines on the upper left area are "fuzzy" Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From thomas.bonfort at GMAIL.COM Tue Jan 8 06:40:22 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 8 Jan 2008 15:40:22 +0100 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: Message-ID: that's how the agg antialiasing works, I'm sorry but I don't think there's a way to avoid that. As david points out, the effect is amplified if the feature is drawn mutiple times, eg with adjacent outlined polygons. you can observe the same kind of output on all webmaps. http://maps.google.com/maps?hl=en&ie=UTF8&ll=19.890723,-3.691406&spn=53.567248,81.210938&z=4&om=1 on the line between mauritania and mali http://maps.live.com/default.aspx?v=2&cp=42.157041~-0.353622&style=r&lvl=11&tilt=-90&dir=0&alt=-1000&encType=1 on the yellow/red road east of huesca and north of tierz ... concerning the format, you can probably get smaller images using the formatoptions to either quantize or use a forced palette (which is faster if the palette contains exactly 256 colors) regards, thomas On Jan 8, 2008 12:40 PM, Flavio Hendry wrote: > Hi list, hi Thomas > > When using AGG output, lines at near horizontal/vertical angles become > "fuzzy". Any idea how to avoid that? > > Example see http://www.tydac.ch/test.png: > - lines on the right are perfect > - lines on the upper left area are "fuzzy" > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > From map.user at YAHOO.COM Tue Jan 8 06:31:10 2008 From: map.user at YAHOO.COM (User Map) Date: Tue, 8 Jan 2008 06:31:10 -0800 Subject: No subject Message-ID: hi, i have shown my area map as a static map through html. i want to show this image larger on the html page, and also to save that as a bigger image. i have tried setting the width and height in the image tag, it makes the image bigger but distorted/streched. and when i save that streched image the original image is saved but not the streched one. can u tell how to solve this.thanks for helping. my html code is:

Map of post code

thanks for helping. --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Tue Jan 8 06:48:23 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 8 Jan 2008 08:48:23 -0600 Subject: No subject In-Reply-To: A<308277.41606.qm@web45708.mail.sp1.yahoo.com> Message-ID: By modifying only the html image tags, you are just stretching the same image that MapServer gave you before. If you want a larger image, you will need to change the SIZE parameter in your map file. If you don't want to do this statically in your map file, you can modify the map image size by adding '&map_size=1000+1000' to your URL (this is the syntax for MapServer 4.x, it is probably a little different for 5.x) David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of User Map Sent: Tuesday, January 08, 2008 8:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] hi, i have shown my area map as a static map through html. i want to show this image larger on the html page, and also to save that as a bigger image. i have tried setting the width and height in the image tag, it makes the image bigger but distorted/streched. and when i save that streched image the original image is saved but not the streched one. can u tell how to solve this.thanks for helping. my html code is:

Map of post code

thanks for helping. ________________________________ Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Tue Jan 8 07:57:05 2008 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 8 Jan 2008 16:57:05 +0100 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: Message-ID: Hi Thomas > that's how the agg antialiasing works ... Thanks. I was suspecting that ... The problem in this case is "magnified" by the harsh contrast between black and white (on smooth colors it does not "hit the eye" as much). I do not see any amplification effect if there are two lines or just one however (same layer, once as single lines and once as doubles looks exactly the same). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From nospam420 at YAHOO.COM Tue Jan 8 09:54:26 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 8 Jan 2008 09:54:26 -0800 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: Message-ID: Flavio Hendry wrote: > > AGG has to be 24bit. > I'm pretty sure that's not true. I'm using something like the following: IMAGETYPE AGG_Q OUTPUTFORMAT NAME 'AGG_Q' DRIVER AGG/PNG IMAGEMODE RGB FORMATOPTION "PALETTE_FORCE=TRUE" # for why this is needed at all: # http://trac.osgeo.org/mapserver/ticket/2096 # this must be an absolute path (should be able to be relative to the map file for mapserver 5.2) # http://trac.osgeo.org/mapserver/ticket/2115 FORMATOPTION "PALETTE=/absolute/path/to/colors.palette" FORMATOPTION "QUANTIZE_FORCE=ON" FORMATOPTION "QUANTIZE_DITHER=OFF" FORMATOPTION "QUANTIZE_COLORS=256" END which gives me (this is the result of running `file output.png`): PNG image data, 640 x 480, 8-bit colormap, non-interlaced - Rich -- View this message in context: http://www.nabble.com/Polygon-style-with-outline-width-tp13586055p14694909.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Tue Jan 8 09:58:56 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 8 Jan 2008 09:58:56 -0800 Subject: Labeling roads In-Reply-To: <47308873.5157.008F.0@dnr.state.mn.us> Message-ID: Steve Lime wrote: > > You have to do this in two steps. One for to draw the roads themselves and > another > to draw the annotation. Generally roads with shields aren't that common so > the performance > hit for 2 passes isn't too bad. > Does that imply that for just labeling regular roads (with text, no symbol), that this can be done in a single layer? I'm currently using two separate LAYER's for this, one with TYPE LINE to draw the roads, and a second with TYPE ANNOTATION to label the roads. If I can combine them, which TYPE do I use? (I'd guess ANNOTATION.) - Rich -- View this message in context: http://www.nabble.com/Polygon-style-with-outline-width-tp13586055p14694913.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Tue Jan 8 10:01:28 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 8 Jan 2008 10:01:28 -0800 Subject: Symbols In-Reply-To: <20071105143433.8D60BBAA@mx1.iway.na> Message-ID: AndreSch wrote: > > I use png symbols but if where the background is not what I get the white > border, which is part of my symbol. Is there a better way to get rid of > this > or making my symbol more transparent? > I'm not sure If I understand the question, but if your objection is that you don't want the white border of your symbol, how about just editing the symbol to remove the border entirely? - Rich -- View this message in context: http://www.nabble.com/Polygon-style-with-outline-width-tp13586055p14695202.html Sent from the Mapserver - User mailing list archive at Nabble.com. From pcreso at PCRESO.COM Tue Jan 8 10:01:45 2008 From: pcreso at PCRESO.COM (Brent Wood) Date: Tue, 8 Jan 2008 10:01:45 -0800 Subject: hardware In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988796@ptolemy.topozone.com> Message-ID: --- Ed McNierney wrote: > Brent - > > I have to disagree with such a sweeping generalization concerning Windows and > Linux servers. Having run both Windows and Linux servers for MapServer, > MySQL, PostGIS and other applications for several years, I find it hard to > claim that on identical hardware one is noticeably faster or slower than the > other. Your mileage can (and obviously does) vary, but since you're running > on two different machines your "inferior" system may well be better suited to > the load you're giving it than the Windows system. I'm sure there are > exceptions, and applications where there IS a noticeable difference between > otherwise identical systems, but my experience does not show that a broad > statement based on your observations on one pair of servers is warranted. Hi Ed, I agree in general, but with this particular Mapserver/PostGIS/Java application, this is exactly the result we had. The tech support was more Windows capable than Linux, the result was totally unexpected, and so far unexplained. Hence the abstracting of the PostGIS/Mapserver using WMS to support the application. We found no need to further separate PostGIS & Mapserver to meet performance needs, but this is obviously feasible. The performance of a repeat query under Windows & Linux I have tried several times, & Linux has been invariably faster than Windows the second time around, but as I said, the initial un-cached query times were similar. In situations where a substantial amount of of data is in memory vs being read from disk, I believe Linux (especially 64bit) will outperform Windows (generally still 32bit). Another example, I recently helped put a 16 core mini-cluster for fisheries modelling together. (Note: very different loads to a mapserver/PostGIS application- mostly diskless). We benchmarked AMD vs Intel & Linux vs Windows, fairly thoroughly, with surprising (to me, at least) results. Supposedly similar AMD A64 dual core & Intel Core Duo cpus (according to published benchmarks) ran very differently, with AMD winning by 15-20% runtimes on several hour long iterations. On the same (AMD & Intel) hardware, Linux beat Windows by 20-30%. The Windows binary running under wine ran 10-15% faster than natively under Windows. This may differ from your experiences, but that's why a forum like this usefully allows a variety of input from many people. It's also why running your own benchmarks for your own application is a very good idea. I recommend where possible people do benchmark their own applications, because I have found it not uncommon for particular apps to behave unexpectedly, and identifying specific hardware bottlenecks can obviously be very useful. > First, the load Kim is talking about is quite light. If there are 200 hits > per hour, and a 3x increase is expected, that's 600 hits per hour or 10 hits > per minute; one hit every six seconds. Perhaps, 1.5m points is a rough fixture, but how many are to be rendered in any one map? Introducing polygons makes it very hard to know what PostGIS response times will be, without knowing exactly how complex the polygons are. High resolution coastlines with millions of points per feature vs square cells. The former may well require more than 6 seconds to return a query result. Is PostGIS or Mapserver doing any vector or raster reprojection? Again, this can substantially impact performance. I agree, the simple numbers suggest that the load will not be huge, but the main thrust (or at least intent) of my response was that optimising data structures, pre-reprojecting data if required, etc, will often yield better performance improvements than adding another spindle to an array or a couple of cpu cores. > > Second, I think it's very important to separate the MapServer and PostGIS > portions of the application, at least for discussion purposes. The optimal > arrangement for each application may not be the same, and there may need to > be some compromise if they're to run on one system. I agree here totally. Note my illustration of abstracting mapserver/postgis from the application server. The suggested loads, as you detail them, don't really imply that further separation via hardware is really needed, at least not without more information as above. And asking for hardware advice without an indicative budget is always difficult to answer except in generalities. More fast disk & memory :-) > Third, I do agree that fast RAID 5 disks and lots of RAM are always a good > idea! > > Finally, I think the most important think to remember is to work with what > you know. If your staff are accustomed to and trained in using Windows > systems, moving to Linux is hard and expensive - in terms of training, > consultants, time to resolve issues, etc. The reverse is equally true. > There is a high cost of moving to an operating system environment you don't > know, and there needs to be a very good reason why you're willing to incur > that cost. The suggestion that Kim "go to Linux ASAP" is a very expensive > suggestion if the needed Linux skills aren't available. IMHO, the first step > is to ensure optimal hardware design using the operating system Kim's most > familiar with. Except that Kim did say they were looking to do this anyway. My experience suggests Linux _may_ offer substantial performance benefits. Quite a different situation to where they are a strictly Windows house with no intent to migrate at all. In which case I would agree with you 100% :-) If they have the time & resources, a benchmarking exercise of a prototype application to give some real world numbers could be very useful. But generally this is unrealistically expensive & people ask lists like this for advice instead :-) Cheers, Brent From nospam420 at YAHOO.COM Tue Jan 8 10:17:03 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 8 Jan 2008 10:17:03 -0800 Subject: hardware In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988796@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > > Third, I do agree that fast RAID 5 disks and lots of RAM are always a good > idea! > Yes, for working with large data sets, more memory is in most cases likely to be more important than a faster CPU. But to speak out against sweeping generalizations, I wouldn't necessarily agree that RAID 5 is always a good idea. There are pros and cons, and it depends on your circumstances. If I remember right (and it's been a while since I studied the details), the biggest downside of RAID 5 is that small writes are slower, because of the need to write both the data disk and the parity disk. With most RAID controllers I believe (there might be exceptions) there are also limitations concerning incremental upgradability of the array. (e.g. what happens if I have N disks and I just want to add 1 or 2 more) - Rich -- View this message in context: http://www.nabble.com/hardware-tp14682251p14695423.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ed at TOPOZONE.COM Tue Jan 8 10:23:52 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Jan 2008 13:23:52 -0500 Subject: hardware In-Reply-To: <25033.36169.qm@web33213.mail.mud.yahoo.com> Message-ID: Brent - But I think that's what I said - I'm sure you saw the results you saw in one specific situation and one specific configuration comparing one pair of different machines. I don't think that justifies the generic recommendation that step 1 should be to move to Linux. The choice of operating system, when placed in the universe of possible performance optimizations, is probably pretty far down the list after hard disk, RAM, network, caching, and CPU selection. And I list those hardware choices in a very rough order of priority, with the first two being by far the most important. I have no experience in comparing AMD vs. Intel CPUs, although I do run both. I also have found, subjectively, that in most cases raster and vector reprojection (tasks TopoZone does all the time) are far more efficient than expected. It is entirely possible that Kim's application issue is primarily one of optimizing hardware for PostgreSQL/PostGIS performance - MapServer may be the easy part if the application is dominated by database query time. Part of the problem of asking about hardware recommendations on this list is that a MapServer/PostgreSQL/PostGIS application is fairly complex, and there are many such beasts. It is exceptionally hard to extrapolate one user's experience to provide useful advice for another user with a different application. Except for recommending fast disks and more RAM! - Ed -----Original Message----- From: Brent Wood [mailto:pcreso at pcreso.com] Sent: Tuesday, January 08, 2008 1:02 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] hardware --- Ed McNierney wrote: > Brent - > > I have to disagree with such a sweeping generalization concerning Windows and > Linux servers. Having run both Windows and Linux servers for MapServer, > MySQL, PostGIS and other applications for several years, I find it hard to > claim that on identical hardware one is noticeably faster or slower than the > other. Your mileage can (and obviously does) vary, but since you're running > on two different machines your "inferior" system may well be better suited to > the load you're giving it than the Windows system. I'm sure there are > exceptions, and applications where there IS a noticeable difference between > otherwise identical systems, but my experience does not show that a broad > statement based on your observations on one pair of servers is warranted. Hi Ed, I agree in general, but with this particular Mapserver/PostGIS/Java application, this is exactly the result we had. The tech support was more Windows capable than Linux, the result was totally unexpected, and so far unexplained. Hence the abstracting of the PostGIS/Mapserver using WMS to support the application. We found no need to further separate PostGIS & Mapserver to meet performance needs, but this is obviously feasible. The performance of a repeat query under Windows & Linux I have tried several times, & Linux has been invariably faster than Windows the second time around, but as I said, the initial un-cached query times were similar. In situations where a substantial amount of of data is in memory vs being read from disk, I believe Linux (especially 64bit) will outperform Windows (generally still 32bit). Another example, I recently helped put a 16 core mini-cluster for fisheries modelling together. (Note: very different loads to a mapserver/PostGIS application- mostly diskless). We benchmarked AMD vs Intel & Linux vs Windows, fairly thoroughly, with surprising (to me, at least) results. Supposedly similar AMD A64 dual core & Intel Core Duo cpus (according to published benchmarks) ran very differently, with AMD winning by 15-20% runtimes on several hour long iterations. On the same (AMD & Intel) hardware, Linux beat Windows by 20-30%. The Windows binary running under wine ran 10-15% faster than natively under Windows. This may differ from your experiences, but that's why a forum like this usefully allows a variety of input from many people. It's also why running your own benchmarks for your own application is a very good idea. I recommend where possible people do benchmark their own applications, because I have found it not uncommon for particular apps to behave unexpectedly, and identifying specific hardware bottlenecks can obviously be very useful. > First, the load Kim is talking about is quite light. If there are 200 hits > per hour, and a 3x increase is expected, that's 600 hits per hour or 10 hits > per minute; one hit every six seconds. Perhaps, 1.5m points is a rough fixture, but how many are to be rendered in any one map? Introducing polygons makes it very hard to know what PostGIS response times will be, without knowing exactly how complex the polygons are. High resolution coastlines with millions of points per feature vs square cells. The former may well require more than 6 seconds to return a query result. Is PostGIS or Mapserver doing any vector or raster reprojection? Again, this can substantially impact performance. I agree, the simple numbers suggest that the load will not be huge, but the main thrust (or at least intent) of my response was that optimising data structures, pre-reprojecting data if required, etc, will often yield better performance improvements than adding another spindle to an array or a couple of cpu cores. > > Second, I think it's very important to separate the MapServer and PostGIS > portions of the application, at least for discussion purposes. The optimal > arrangement for each application may not be the same, and there may need to > be some compromise if they're to run on one system. I agree here totally. Note my illustration of abstracting mapserver/postgis from the application server. The suggested loads, as you detail them, don't really imply that further separation via hardware is really needed, at least not without more information as above. And asking for hardware advice without an indicative budget is always difficult to answer except in generalities. More fast disk & memory :-) > Third, I do agree that fast RAID 5 disks and lots of RAM are always a good > idea! > > Finally, I think the most important think to remember is to work with what > you know. If your staff are accustomed to and trained in using Windows > systems, moving to Linux is hard and expensive - in terms of training, > consultants, time to resolve issues, etc. The reverse is equally true. > There is a high cost of moving to an operating system environment you don't > know, and there needs to be a very good reason why you're willing to incur > that cost. The suggestion that Kim "go to Linux ASAP" is a very expensive > suggestion if the needed Linux skills aren't available. IMHO, the first step > is to ensure optimal hardware design using the operating system Kim's most > familiar with. Except that Kim did say they were looking to do this anyway. My experience suggests Linux _may_ offer substantial performance benefits. Quite a different situation to where they are a strictly Windows house with no intent to migrate at all. In which case I would agree with you 100% :-) If they have the time & resources, a benchmarking exercise of a prototype application to give some real world numbers could be very useful. But generally this is unrealistically expensive & people ask lists like this for advice instead :-) Cheers, Brent From gregor at HOSTGIS.COM Tue Jan 8 10:27:54 2008 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Tue, 8 Jan 2008 11:27:54 -0700 Subject: hardware In-Reply-To: <14695423.post@talk.nabble.com> Message-ID: rich.fromm wrote: > But to speak out against sweeping generalizations, I wouldn't necessarily > agree that RAID 5 is always a good idea. Both of your "if I recalls" agree with my present-day experience. Writing is a bit slower, and it's not possible to add a disk and enlarge an array (on our controller or others I've known). For mapping purposes, I don't know that either of these are particularly major, though. Writing happens a few times, reading happens a zillion times, so the tradeoff is quite worthwhile. And enlarging the array isn't an issue of RAID-5, but of system planning in general: number of drive bays, power capacity, etc. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From ed at TOPOZONE.COM Tue Jan 8 10:47:19 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Jan 2008 13:47:19 -0500 Subject: hardware In-Reply-To: A<14695423.post@talk.nabble.com> Message-ID: Rich - That is true (about the RAID 5 generalization) but if you're looking for MapServer (e.g. read) performance, it's a safe bet that it's a good decision. But it's also one that can be implemented badly (especially if you're running PostgreSQL on the same machine). In my experience with RAID 5 controllers I have found that the "poor write performance" issue is true but usually exaggerated in the minds of users (many controllers offer battery-backed RAM as a write cache, for example), but that simultaneous read/write performance can be VERY bad. The "make the array larger" question, while true, is part of a much more complex discussion of expandability - the array enclosure might be out of slots, for example, regardless of which RAID format you choose! - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of rich.fromm Sent: Tuesday, January 08, 2008 1:17 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] hardware Ed McNierney wrote: > > Third, I do agree that fast RAID 5 disks and lots of RAM are always a good > idea! > Yes, for working with large data sets, more memory is in most cases likely to be more important than a faster CPU. But to speak out against sweeping generalizations, I wouldn't necessarily agree that RAID 5 is always a good idea. There are pros and cons, and it depends on your circumstances. If I remember right (and it's been a while since I studied the details), the biggest downside of RAID 5 is that small writes are slower, because of the need to write both the data disk and the parity disk. With most RAID controllers I believe (there might be exceptions) there are also limitations concerning incremental upgradability of the array. (e.g. what happens if I have N disks and I just want to add 1 or 2 more) - Rich -- View this message in context: http://www.nabble.com/hardware-tp14682251p14695423.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ssteve52 at YAHOO.COM Tue Jan 8 13:52:47 2008 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Tue, 8 Jan 2008 13:52:47 -0800 Subject: raster and vector group Message-ID: I am trying to combine raster and vector data into a group, so that I can display them as a single layer. However, when I display them I just get the raster file. Is there a way to do this? Thanks Steve --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bob.Basques at CI.STPAUL.MN.US Tue Jan 8 13:56:46 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 8 Jan 2008 15:56:46 -0600 Subject: raster and vector group In-Reply-To: Message-ID: try swapping the order of the data sources/layers in the mapfile around. bobb GISmo Powered by GeoMOOSE >>> Steve Smith wrote: --0-382631810-1199829167=:44230 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am trying to combine raster and vector data into a group, so that I can display them as a single layer. However, when I display them I just get the raster file. Is there a way to do this? Thanks Steve --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-382631810-1199829167=:44230 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am trying to combine raster and vector data into a group, so that I can display them as a single layer. However, when I display them I just get the raster file. Is there a way to do this?

Thanks
Steve


Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-382631810-1199829167=:44230-- -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: From ssteve52 at YAHOO.COM Tue Jan 8 14:23:39 2008 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Tue, 8 Jan 2008 14:23:39 -0800 Subject: raster and vector group In-Reply-To: <47839D3E.163B.00A8.0@ci.stpaul.mn.us> Message-ID: Unfortunately, that did not work. I am combining a DEM and contour data, and initially had the DEM first. When I switched I got the same results of only the DEM appearing. Is there a conflict between raster and vector data? The rendered file is PNG and I am using AAG/PNG driver, and RGBA imagemode, for my vector data. Steve Bob Basques wrote: try swapping the order of the data sources/layers in the mapfile around. bobb GISmo Powered by GeoMOOSE >>> Steve Smith wrote: --0-382631810-1199829167=:44230 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am trying to combine raster and vector data into a group, so that I can display them as a single layer. However, when I display them I just get the raster file. Is there a way to do this? Thanks Steve --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-382631810-1199829167=:44230 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am trying to combine raster and vector data into a group, so that I can display them as a single layer. However, when I display them I just get the raster file. Is there a way to do this? Thanks Steve --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-382631810-1199829167=:44230-- --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jim.Klassen at CI.STPAUL.MN.US Tue Jan 8 14:29:26 2008 From: Jim.Klassen at CI.STPAUL.MN.US (Jim Klassen) Date: Tue, 8 Jan 2008 16:29:26 -0600 Subject: WFS Server Message-ID: Hi, We currently have a working WMS service using nested groups of layers implemented using the the wms_layer_group metadata tag. I was wondering if there was any equivalent to use in WFS to created nested FeatureTypeLists? Is this something that is even possible according to the WFS standard? I don't see where is says you can, but I don't see that it says you can't either. (https://portal.opengeospatial.org/files/?artifact_id=7176) Also, I don't see anything listed in the documentation and I have tried both wfs_layer_group and simply setting the GROUP parameter in the Layer. Neither produced grouping in the WFS GetCapabilities output. BTW: Our current public WMS service getCapabilities can be retrieved at: http://gis.ci.stpaul.mn.us/datasets/WMS/SAINT_PAUL/PUBLIC_WORKS/WMS/wms_public.map?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities Jim Klassen City of St. Paul From ssteve52 at YAHOO.COM Tue Jan 8 14:40:44 2008 From: ssteve52 at YAHOO.COM (Steve Smith) Date: Tue, 8 Jan 2008 14:40:44 -0800 Subject: raster and vector group In-Reply-To: <497324.48476.qm@web45606.mail.sp1.yahoo.com> Message-ID: I the problem. It was an ADD issue with the programmer. Thanks for the help. Steve Steve Smith wrote: Unfortunately, that did not work. I am combining a DEM and contour data, and initially had the DEM first. When I switched I got the same results of only the DEM appearing. Is there a conflict between raster and vector data? The rendered file is PNG and I am using AAG/PNG driver, and RGBA imagemode, for my vector data. Steve Bob Basques wrote: try swapping the order of the data sources/layers in the mapfile around. bobb GISmo Powered by GeoMOOSE >>> Steve Smith wrote: --0-382631810-1199829167=:44230 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am trying to combine raster and vector data into a group, so that I can display them as a single layer. However, when I display them I just get the raster file. Is there a way to do this? Thanks Steve --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-382631810-1199829167=:44230 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I am trying to combine raster and vector data into a group, so that I can display them as a single layer. However, when I display them I just get the raster file. Is there a way to do this? Thanks Steve --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. --0-382631810-1199829167=:44230-- --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. --------------------------------- Looking for last minute shopping deals? Find them fast with Yahoo! Search. -------------- next part -------------- An HTML attachment was scrubbed... URL: From IANT at NAPIER.GOVT.NZ Tue Jan 8 15:11:29 2008 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Wed, 9 Jan 2008 12:11:29 +1300 Subject: PHP MapScript queryByAttributes Issue Message-ID: Hi All, I am running MapServer 4.10 and am having a problem with a query. My query code is: $qstring = "/^$street.*/"; $oLayer = $map->getlayerbyname("smartworx"); $oLayer->set("status", MS_ON); @$oLayer->queryByAttributes('STNAME', $qstring, MS_MULTIPLE); And this fails, but when I run the same code using a different table it works: $qstring = "/^$street.*/"; $oLayer = $map->getlayerbyname("crs_road_centreline"); $oLayer->set("status", MS_ON); @$oLayer->queryByAttributes('ROAD_LABEL', $qstring, MS_MULTIPLE); Now I know the obvious answer is that the item I am searching for doesn't exist in my table, but I have checked and it does exist. The only difference between the two (2) shape files is that crs_road_centreline is a LINE table and smartworx is a POINT table and have slightly different structures. crs_road_centreline is the road centreline network smartworx is a address point file. Any Ideas??? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Tue Jan 8 15:44:28 2008 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Wed, 9 Jan 2008 08:44:28 +0900 Subject: PHP MapScript queryByAttributes Issue In-Reply-To: A Message-ID: Hi Ian, It's a long shot, but have you checked whether your attribute names (not just the values) are in upper/lowercase? Because attribute names are case sensitive. What does your php log say? Because if you do a search, and it does not find matching values (as opposed to something else being wrong), it will report a warning in your php log. If this is what it says, then you will at least have narrowed it down. But it may give a different error. You must configure php to display warnings, though. regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ian Tidy Sent: 9 January 2008 08:11 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PHP MapScript queryByAttributes Issue Hi All, I am running MapServer 4.10 and am having a problem with a query. My query code is: $qstring = "/^$street.*/"; $oLayer = $map->getlayerbyname("smartworx"); $oLayer->set("status", MS_ON); @$oLayer->queryByAttributes('STNAME', $qstring, MS_MULTIPLE); And this fails, but when I run the same code using a different table it works: $qstring = "/^$street.*/"; $oLayer = $map->getlayerbyname("crs_road_centreline"); $oLayer->set("status", MS_ON); @$oLayer->queryByAttributes('ROAD_LABEL', $qstring, MS_MULTIPLE); Now I know the obvious answer is that the item I am searching for doesn't exist in my table, but I have checked and it does exist. The only difference between the two (2) shape files is that crs_road_centreline is a LINE table and smartworx is a POINT table and have slightly different structures. crs_road_centreline is the road centreline network smartworx is a address point file. Any Ideas??? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From IANT at NAPIER.GOVT.NZ Tue Jan 8 16:17:42 2008 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Wed, 9 Jan 2008 13:17:42 +1300 Subject: PHP MapScript queryByAttributes Issue In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC83BC@auper1ex002.au.aecomnet.com> Message-ID: Thanks for the help. I have found the problem. For some reason (which I am about to look into) the tables have different projections. I found this when I was looking in to your suggestions. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ From: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] Sent: Wednesday, 9 January 2008 12:44 p.m. To: Ian Tidy; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] PHP MapScript queryByAttributes Issue Hi Ian, It's a long shot, but have you checked whether your attribute names (not just the values) are in upper/lowercase? Because attribute names are case sensitive. What does your php log say? Because if you do a search, and it does not find matching values (as opposed to something else being wrong), it will report a warning in your php log. If this is what it says, then you will at least have narrowed it down. But it may give a different error. You must configure php to display warnings, though. regards, Jacob ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ian Tidy Sent: 9 January 2008 08:11 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] PHP MapScript queryByAttributes Issue Hi All, I am running MapServer 4.10 and am having a problem with a query. My query code is: $qstring = "/^$street.*/"; $oLayer = $map->getlayerbyname("smartworx"); $oLayer->set("status", MS_ON); @$oLayer->queryByAttributes('STNAME', $qstring, MS_MULTIPLE); And this fails, but when I run the same code using a different table it works: $qstring = "/^$street.*/"; $oLayer = $map->getlayerbyname("crs_road_centreline"); $oLayer->set("status", MS_ON); @$oLayer->queryByAttributes('ROAD_LABEL', $qstring, MS_MULTIPLE); Now I know the obvious answer is that the item I am searching for doesn't exist in my table, but I have checked and it does exist. The only difference between the two (2) shape files is that crs_road_centreline is a LINE table and smartworx is a POINT table and have slightly different structures. crs_road_centreline is the road centreline network smartworx is a address point file. Any Ideas??? Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ Scanned by Bizo EmailFilter This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim.bowden at WESTNET.COM.AU Tue Jan 8 17:17:26 2008 From: tim.bowden at WESTNET.COM.AU (Tim Bowden) Date: Wed, 9 Jan 2008 10:17:26 +0900 Subject: hardware In-Reply-To: <14695423.post@talk.nabble.com> Message-ID: On Tue, 2008-01-08 at 10:17 -0800, rich.fromm wrote: > Ed McNierney wrote: > > > > Third, I do agree that fast RAID 5 disks and lots of RAM are always a good > > idea! > > > > Yes, for working with large data sets, more memory is in most cases likely > to be more important than a faster CPU. > > But to speak out against sweeping generalizations, I wouldn't necessarily > agree that RAID 5 is always a good idea. There are pros and cons, and it > depends on your circumstances. If I remember right (and it's been a while > since I studied the details), the biggest downside of RAID 5 is that small > writes are slower, because of the need to write both the data disk and the > parity disk. With most RAID controllers I believe (there might be > exceptions) there are also limitations concerning incremental upgradability > of the array. (e.g. what happens if I have N disks and I just want to add 1 > or 2 more) > > - Rich > My experience here (raid) is quite limited (and possibly old?), but from my understanding it also depends quite significantly on the quality of the raid hardware. Low end raid "hardware" actually does many of it's operations in software drivers, meaning you pay a cpu price for every operation, whilst "decent" raid hardware does it all in hardware without the cpu hit. In the case of linux and low end raid hardware, the advice I've consistently been given is to just use linux software only raid, as it's more efficient than hardware raid that implements it's functions in software drivers. I've never benchmarked that, but the advice from different sources has been consistent. I assume someone else has benchmarked it (I know, dangerous assumption). I have no idea how that compares to windows (does windows have software only raid drivers?) but FWIW that's my understanding of low end raid at least (OK, so I'm too much of a cheapskate to ever pay for high end raid!). As far as the windows linux with mapserver question is concerned, the only serious benchmarking I've been involved with (getting old now) the details are: decent hardware (Dell boxes: dual zeons, 4gb ram, fast raid arrays), windows server 2003 [1] v RHEL v4, mapserver v 4.6 & 4.8, data in sde 9.1 on a separate box. They both perform about the same under light load, but if you keep ramping up the load (requests per second) the linux setup took twice the load before response times start to blow out than the windows setup will. As noted elsewhere numerous times, test results can be quite sensitive to a number of variables, so I'd not put too much weight on any tests except those using *your* hardware/software and *your* data. The value of other peoples tests is probably best realised by using them as guides to what you should be looking for in *your* testing. [1] In previous reports (long ago) I've quoted windows as being XP pro, but that was incorrect. Regards, Tim Bowden From matthew.pettis at GMAIL.COM Tue Jan 8 17:46:24 2008 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Tue, 8 Jan 2008 19:46:24 -0600 Subject: dbox: Is it still being actively maintained? Message-ID: Hi, is dBox still being actively maintained? Or is it being replaced by OpenLayers or something else? The last date I see with updates on the page is sometime in 2006. I'm just looking for tools to facilitate rubberband zooming and such. thanks, matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Tue Jan 8 17:55:30 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 8 Jan 2008 18:55:30 -0700 Subject: dbox: Is it still being actively maintained? In-Reply-To: <82ba77b80801081746m769ac913o51bae8be0fac2cf1@mail.gmail.com> Message-ID: On Jan 8, 2008 6:46 PM, Matthew Pettis wrote: > Hi, > > is dBox still being actively maintained? Or is it being replaced by > OpenLayers or something else? The last date I see with updates on the page > is sometime in 2006. > > I'm just looking for tools to facilitate rubberband zooming and such. > > thanks, > matt It works so well that it doesn't require maintenance! (just joking). It still works great, but Java applets are less popular these days than dynamic HTML, AJAX stuff. Steve Lime has a dBox that is very similar to jBox, but based on dynamic HTML rather than Java. And OpenLayers is excellent, along with many others. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From thomas.bonfort at GMAIL.COM Wed Jan 9 00:23:50 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 9 Jan 2008 09:23:50 +0100 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: <14694909.post@talk.nabble.com> Message-ID: palette_force and quantize_force are mutually exclusive, in the sense that only one of them is applied (depending on which comes first in the mapserver code) * quantize_force is more flexible as it doesn't need to create a palette beforehand, but different colors can be seen from one map to another depending on the extent * palette_force produces more consistent results colorwise but a palette file has to be created beforehand. I'd recommend creating a palette with exactly 256 colors in it if you're looking for rendering speed, or with just the exact colors of your features if you're looking for rendering quality. regards, thomas On Jan 8, 2008 6:54 PM, rich.fromm wrote: > Flavio Hendry wrote: > > > > AGG has to be 24bit. > > > > I'm pretty sure that's not true. I'm using something like the following: > > IMAGETYPE AGG_Q > OUTPUTFORMAT > NAME 'AGG_Q' > DRIVER AGG/PNG > IMAGEMODE RGB > FORMATOPTION "PALETTE_FORCE=TRUE" > # for why this is needed at all: > # http://trac.osgeo.org/mapserver/ticket/2096 > # this must be an absolute path (should be able to be relative to > the map file for mapserver 5.2) > # http://trac.osgeo.org/mapserver/ticket/2115 > FORMATOPTION "PALETTE=/absolute/path/to/colors.palette" > FORMATOPTION "QUANTIZE_FORCE=ON" > FORMATOPTION "QUANTIZE_DITHER=OFF" > FORMATOPTION "QUANTIZE_COLORS=256" > END > > which gives me (this is the result of running `file output.png`): > > PNG image data, 640 x 480, 8-bit colormap, non-interlaced > > - Rich > > -- > View this message in context: http://www.nabble.com/Polygon-style-with-outline-width-tp13586055p14694909.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From Tom.Kralidis at EC.GC.CA Wed Jan 9 04:30:18 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 9 Jan 2008 07:30:18 -0500 Subject: WFS Server In-Reply-To: A Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jim Klassen > Sent: 08 January, 2008 5:29 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WFS Server > > Hi, > > We currently have a working WMS service using nested groups > of layers implemented using the the wms_layer_group metadata > tag. I was wondering if there was any equivalent to use in > WFS to created nested FeatureTypeLists? > > Is this something that is even possible according to the WFS > standard? I don't see where is says you can, but I don't see > that it says you can't either. > (https://portal.opengeospatial.org/files/?artifact_id=7176) > WFS, by nature, does not allow for nesting. If you check out http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd, wfs:FeatureTypeList is defined, which allows for 1..* wfs:FeatureType only at that level. > Also, I don't see anything listed in the documentation and I > have tried both wfs_layer_group and simply setting the GROUP > parameter in the Layer. Neither produced grouping in the WFS > GetCapabilities output. > > BTW: Our current public WMS service getCapabilities can be > retrieved at: > http://gis.ci.stpaul.mn.us/datasets/WMS/SAINT_PAUL/PUBLIC_WORK > S/WMS/wms_public.map?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > From williampaul28 at YAHOO.COM Wed Jan 9 04:37:05 2008 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 9 Jan 2008 04:37:05 -0800 Subject: itemnquery problems Message-ID: Hi: I am using itemnquery mode to display results obtained from a database query. The url looks like: ...mode=itemnguery&qlayer=qlayer&qitem=fieldtoquery&qstring=/value1|value2|valuen/ The spatial extent of the image is correct and I can see all the features selected, but the entire web page page is displayed 14 times Any help is appreciated Thank you William ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Wed Jan 9 05:30:54 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 9 Jan 2008 06:30:54 -0700 Subject: itemnquery problems In-Reply-To: <591264.35620.qm@web38403.mail.mud.yahoo.com> Message-ID: On Jan 9, 2008 5:37 AM, william paul wrote: > > Hi: > I am using itemnquery mode to display results obtained from a database > query. The url looks like: > > ...mode=itemnguery&qlayer=qlayer&qitem=fieldtoquery&qstring=/value1|value2|valuen/ > > The spatial extent of the image is correct and I can see all the features > selected, but the entire web page page is displayed 14 times > > Any help is appreciated > > Thank you > > William Most likely you got 14 results, so MapServer drew 14 maps for you. If you want all 14 results shown in a single map, try moving your template definition from TEMPLATE to HEAD, and using an empty file for the TEMPLATE. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From siki at AGT.BME.HU Wed Jan 9 07:36:57 2008 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 9 Jan 2008 14:36:57 -0100 Subject: itemnquery problems {Scanned} In-Reply-To: <591264.35620.qm@web38403.mail.mud.yahoo.com> Message-ID: Hi, The query template is evaluated for every selected items. So move the [img] tag to the header or the footer of the query template and you get one map with the selected items. Zoltan On Wed, 9 Jan 2008, william paul wrote: > Hi: > I am using itemnquery mode to display results obtained from a database query. The url looks like: > > ...mode=itemnguery&qlayer=qlayer&qitem=fieldtoquery&qstring=/value1|value2|valuen/ > > The spatial extent of the image is correct and I can see all the features selected, but the entire web page page is displayed 14 times > > Any help is appreciated > > Thank you > > William > > > ____________________________________________________________________________________ > Never miss a thing. Make Yahoo your home page. > http://www.yahoo.com/r/hs From pal.kristensen at STATKART.NO Wed Jan 9 06:31:05 2008 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Wed, 9 Jan 2008 06:31:05 -0800 Subject: forced palette and quantization for RGBA images In-Reply-To: Message-ID: Hi! This is really god news, unfortunately there is still an issue regarding this functionality in conjunction with the WMS transparent parameter. When set to true, the resulting 8bit image has a black background, not transparent as it should be. Regards, P?l Kristensen tbonfort wrote: > > hi all, > > I committed the implementation to enable forced palette and color > reduction via quantization for RGBA images. These options greatly > reduce image size for png output when using IMAGEMODE RGBA. > > the tracking ticket is http://trac.osgeo.org/mapserver/ticket/2436 , > which contains examples of image size reduction you can hope to obtain > when using the option > > you'll need a recent version of the mapserver source tree from SVN ( > instructions to obtain it: > http://mapserver.gis.umn.edu/development/cvs/ ) > > it is activated when the ./configure script is run with the > --with-experimental-png switch, which checks for the libpng headers. > this means that the libpng headers have to be installed and accessible > on your system (apt-get install libpng-dev or the equivalent with > yum/yast/etc...) > > to activate these outputs in your mapfiles you'll need to set some > FORMATOPTION entries to the wanted OUTPUTFORMATs, eg > > ************************ > to force quantization > ************************ > (creates a paletted png, with the palette automatically > created/selected for each rendered image) > > OUTPUTFORMAT > NAME 'AGGAQ' > DRIVER AGG/PNG # not AGG specific, also works with GD. PNG is > mandatory though > IMAGEMODE RGBA # only for rgba imagemodes > MIMETYPE "image/png" > > # this is the important part > FORMATOPTION "QUANTIZE_FORCE=ON" > > # this specifies the number of colors wanted in the final image > # 256 is the typically wanted value > # values 17 to 255 are possible but don't really make sense as there's > little reduction in file size compared to 256 (each pixel is still > stored with 8 bits, only the palette is smaller) > # 16 greatly reduces image size (and quality, no magic) > FORMATOPTION "QUANTIZE_COLORS=256" > END > > > ********************************************** > to use a specified precomputed palette > ********************************************** > (faster than quantization, and guarantees colors are consistent > whatever the image created, but less flexible as the palette has to be > precomputed and is fixed whatever is in the image) > > OUTPUTFORMAT > NAME 'AGGAP' > DRIVER AGG/PNG > IMAGEMODE RGBA > MIMETYPE "image/png" > > # the important part > FORMATOPTION "PALETTE_FORCE=TRUE" > FORMATOPTION "PALETTE=/gro/jsigmaps/palette.txt" > END > > here the palette file must be specified with an absolute path, and > contains at most 256 lines, each consisting of an r,g,b,a quadruplet, > eg: > > 0,0,0,0 > 127,127,127,2 > 196,226,251,237 > 170,170,170,2 > 191,191,191,4 > 196,225,251,233 > ... > snip > ... > 163,189,242,57 > 137,158,242,56 > 118,137,241,48 > 184,213,245,75 > > to obtain this palette, take a typical (32bit rgba png) image you will > want to display, use your favorite image editor to reduce the number > of colors (photoshop using "save web image" and selecting png, or the > commandline utilities pngquant > [http://libpng.org/pub/png/apps/pngquant.html] or neuquant > [http://members.ozemail.com.au/~dekker/NEUQUANT.HTML], etc ) and then > extract (and transform to the required r,g,b,a format) the computed > palette to the palette file. ( pngcheck > [http://www.libpng.org/pub/png/apps/pngcheck.html] with its -p option > and some scripting can be used for this ) > > > > these two options are still considered experimental, and any feedback > you might give is welcome ( be it in the ./configure script, > compiling, or image results ) > > cheers, > thomas > > ps: email sent for documentation purposes until the official > documentation is created/released on the main documentation site > > -- View this message in context: http://www.nabble.com/forced-palette-and-quantization-for-RGBA-images-tp14645870p14712888.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jim.Klassen at CI.STPAUL.MN.US Wed Jan 9 07:30:22 2008 From: Jim.Klassen at CI.STPAUL.MN.US (Jim Klassen) Date: Wed, 9 Jan 2008 09:30:22 -0600 Subject: WFS Server Message-ID: Tom I was afraid of that. Thanks for the reply. Jim >>> "Kralidis,Tom [Burlington]" 01/09/08 6:30 AM >>> > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jim Klassen > Sent: 08 January, 2008 5:29 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WFS Server > > Hi, > > We currently have a working WMS service using nested groups > of layers implemented using the the wms_layer_group metadata > tag. I was wondering if there was any equivalent to use in > WFS to created nested FeatureTypeLists? > > Is this something that is even possible according to the WFS > standard? I don't see where is says you can, but I don't see > that it says you can't either. > (https://portal.opengeospatial.org/files/?artifact_id=7176) > WFS, by nature, does not allow for nesting. If you check out http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd, wfs:FeatureTypeList is defined, which allows for 1..* wfs:FeatureType only at that level. > Also, I don't see anything listed in the documentation and I > have tried both wfs_layer_group and simply setting the GROUP > parameter in the Layer. Neither produced grouping in the WFS > GetCapabilities output. > > BTW: Our current public WMS service getCapabilities can be > retrieved at: > http://gis.ci.stpaul.mn.us/datasets/WMS/SAINT_PAUL/PUBLIC_WORK > S/WMS/wms_public.map?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities > From ritesh.linux at GMAIL.COM Wed Jan 9 08:03:04 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 9 Jan 2008 08:03:04 -0800 Subject: Callout Issue Message-ID: Dear Readers, Please let us know how to place a callout describing a marked point in the map. The marked point can be well placed using a pushpin/balloon on the map. Thanks for your time, Regards, Ritesh Ambastha -- View this message in context: http://www.nabble.com/Callout-Issue-tp14714705p14714705.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at GMAIL.COM Wed Jan 9 08:07:58 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 9 Jan 2008 08:07:58 -0800 Subject: ANGLE follow In-Reply-To: <478242B5.5157.008F.0@dnr.state.mn.us> Message-ID: Steve, The best solution for today is to adjust the label on the basis of scales. Regards, Ritesh Steve Lime wrote: > > It's a limitation in the algorithm at the moment and I don't have a good > workaround. > > Steve > >>>> On 1/7/2008 at 1:56 PM, in message > <546866.23450.qm at web45603.mail.sp1.yahoo.com>, Steve Smith > > wrote: >> I am using "ANGLE follow" to label elevation contours. When an elevation >> value occurs on a tight curve, which is often, the numbers will overlap >> each >> other making it difficult to read. For instance if the value is 300, the >> first 0 will overlap the 3 and the second 0 will overlap the first 0, >> like a >> deck of cards. Is there an option to prevent the letters from overlapping >> each other, and still follow the line? >> >> Thanks >> Steve >> >> >> --------------------------------- >> Looking for last minute shopping deals? Find them fast with Yahoo! >> Search. > > -- View this message in context: http://www.nabble.com/ANGLE-follow-tp14674541p14715129.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at SWOODBRIDGE.COM Wed Jan 9 08:21:20 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 9 Jan 2008 11:21:20 -0500 Subject: Callout Issue In-Reply-To: <14714705.post@talk.nabble.com> Message-ID: riteshambastha wrote: > Dear Readers, > > Please let us know how to place a callout describing a marked point in the > map. > The marked point can be well placed using a pushpin/balloon on the map. > > Thanks for your time, > > Regards, > Ritesh Ambastha Ritesh, Are you thinking of something like the balloon callout on Google maps? This is usually done in the client software separate from mapserver. You might want to look at OpenLayers as a javascript client library that can use mapserver on the server side to generate the map images. -Steve W From bob.b at GRITECHNOLOGIES.COM Wed Jan 9 10:17:13 2008 From: bob.b at GRITECHNOLOGIES.COM (Bob Basques) Date: Wed, 9 Jan 2008 12:17:13 -0600 Subject: Callout Issue In-Reply-To: <4784F480.90905@swoodbridge.com> Message-ID: Ritesh, GeoMoose has a Popup capability as well, although the docs are bit lacking right now. I'm working on them as time permits. bobb Stephen Woodbridge wrote: > riteshambastha wrote: >> Dear Readers, >> >> Please let us know how to place a callout describing a marked point >> in the >> map. The marked point can be well placed using a pushpin/balloon on >> the map. >> Thanks for your time, >> >> Regards, >> Ritesh Ambastha > > > Ritesh, > > Are you thinking of something like the balloon callout on Google maps? > > This is usually done in the client software separate from mapserver. > You might want to look at OpenLayers as a javascript client library > that can use mapserver on the server side to generate the map images. > > -Steve W > > From ritesh.linux at GMAIL.COM Wed Jan 9 11:01:56 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 9 Jan 2008 11:01:56 -0800 Subject: Callout Issue In-Reply-To: <47850FA9.2040703@gritechnologies.com> Message-ID: Dear Bobb, Thanks. I will keep my eyes on GeoMoose website. Regards, Ritesh Ambastha Bob Basques-2 wrote: > > Ritesh, > > GeoMoose has a Popup capability as well, although the docs are bit > lacking right now. I'm working on them as time permits. > > bobb > > > > Stephen Woodbridge wrote: >> riteshambastha wrote: >>> Dear Readers, >>> >>> Please let us know how to place a callout describing a marked point >>> in the >>> map. The marked point can be well placed using a pushpin/balloon on >>> the map. >>> Thanks for your time, >>> >>> Regards, >>> Ritesh Ambastha >> >> >> Ritesh, >> >> Are you thinking of something like the balloon callout on Google maps? >> >> This is usually done in the client software separate from mapserver. >> You might want to look at OpenLayers as a javascript client library >> that can use mapserver on the server side to generate the map images. >> >> -Steve W >> >> > > -- View this message in context: http://www.nabble.com/Callout-Issue-tp14714705p14718882.html Sent from the Mapserver - User mailing list archive at Nabble.com. From williampaul28 at YAHOO.COM Wed Jan 9 11:55:19 2008 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 9 Jan 2008 11:55:19 -0800 Subject: itemnquery problems Message-ID: Please, can you give an example (Rich or Siki)? I am using the same template for mapserver as for displaying the query results Thank you William ----- Original Message ---- From: Richard Greenwood To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, January 9, 2008 3:30:54 PM Subject: Re: [UMN_MAPSERVER-USERS] itemnquery problems On Jan 9, 2008 5:37 AM, william paul wrote: > > Hi: > I am using itemnquery mode to display results obtained from a database > query. The url looks like: > > ...mode=itemnguery&qlayer=qlayer&qitem=fieldtoquery&qstring=/value1|value2|valuen/ > > The spatial extent of the image is correct and I can see all the features > selected, but the entire web page page is displayed 14 times > > Any help is appreciated > > Thank you > > William Most likely you got 14 results, so MapServer drew 14 maps for you. If you want all 14 results shown in a single map, try moving your template definition from TEMPLATE to HEAD, and using an empty file for the TEMPLATE. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Jan 9 12:01:38 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 9 Jan 2008 14:01:38 -0600 Subject: itemnquery problems In-Reply-To: A<518970.50993.qm@web38414.mail.mud.yahoo.com> Message-ID: Please share the html snippets used for each of your templates and we can show you how to swap them around. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of william paul Sent: Wednesday, January 09, 2008 1:55 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] itemnquery problems Please, can you give an example (Rich or Siki)? I am using the same template for mapserver as for displaying the query results Thank you William ----- Original Message ---- From: Richard Greenwood To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, January 9, 2008 3:30:54 PM Subject: Re: [UMN_MAPSERVER-USERS] itemnquery problems On Jan 9, 2008 5:37 AM, william paul wrote: > > Hi: > I am using itemnquery mode to display results obtained from a database > query. The url looks like: > > ...mode=itemnguery&qlayer=qlayer&qitem=fieldtoquery&qstring=/value1|valu e2|valuen/ > > The spatial extent of the image is correct and I can see all the features > selected, but the entire web page page is displayed 14 times > > Any help is appreciated > > Thank you > > William Most likely you got 14 results, so MapServer drew 14 maps for you. If you want all 14 results shown in a single map, try moving your template definition from TEMPLATE to HEAD, and using an empty file for the TEMPLATE. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com ________________________________ Never miss a thing. Make Yahoo your homepage. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at UNIXPLANET.BIZ Wed Jan 9 11:58:59 2008 From: mapserver at UNIXPLANET.BIZ (MapServer) Date: Wed, 9 Jan 2008 15:58:59 -0400 Subject: demo map Message-ID: An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Wed Jan 9 12:14:07 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Wed, 9 Jan 2008 12:14:07 -0800 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... In-Reply-To: Message-ID: (not sure if I should be moving this to a different subject heading, as we're veering a little off course here...) tbonfort wrote: > > palette_force and quantize_force are mutually exclusive, in the sense > that only one of them is applied (depending on which comes first in > the mapserver code) > * quantize_force is more flexible as it doesn't need to create a > palette beforehand, but different colors can be seen from one map to > another depending on the extent > * palette_force produces more consistent results colorwise but a > palette file has to be created beforehand. I'd recommend creating a > palette with exactly 256 colors in it if you're looking for rendering > speed, or with just the exact colors of your features if you're > looking for rendering quality. > > On Jan 8, 2008 6:54 PM, rich.fromm wrote: >> IMAGETYPE AGG_Q >> OUTPUTFORMAT >> NAME 'AGG_Q' >> DRIVER AGG/PNG >> IMAGEMODE RGB >> FORMATOPTION "PALETTE_FORCE=TRUE" >> # for why this is needed at all: >> # http://trac.osgeo.org/mapserver/ticket/2096 >> # this must be an absolute path (should be able to be relative to >> the map file for mapserver 5.2) >> # http://trac.osgeo.org/mapserver/ticket/2115 >> FORMATOPTION "PALETTE=/absolute/path/to/colors.palette" >> FORMATOPTION "QUANTIZE_FORCE=ON" >> FORMATOPTION "QUANTIZE_DITHER=OFF" >> FORMATOPTION "QUANTIZE_COLORS=256" >> END > I know for my purposes I want PALETTE_FORCE and PALETTE. Just to clarify, given that, is the only specification above that you're complaining about (and saying is useless) is QUANTIZE_FORCE ? Are QUANTIZE_DITHER and QUANTIZE_COLORS not mutually exclusive with PALETTE_FORCE ? I wish there were more concise documentation of the various FORMATOPTIONs. I think I got the QUANTIZE_* stuff from: http://mapserver.gis.umn.edu/docs/howto/agg-rendering-specifics/view and then the PALETTE* stuff came from some discussions on this mailing list. But I don't recall any previous mention of mutual exclusivity. And I'm wondering if there are other possibly relevant options that I'm ignoring out of ignorance. - Rich -- View this message in context: http://www.nabble.com/Polygon-style-with-outline-width-tp13586055p14720466.html Sent from the Mapserver - User mailing list archive at Nabble.com. From naci0002 at UMN.EDU Wed Jan 9 12:28:12 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 9 Jan 2008 14:28:12 -0600 Subject: demo map In-Reply-To: <47852783.90001@unixplanet.biz> Message-ID: Sounds like you have an older version of demo. Edit the index.html and replace the following lines: with these: Also change these lines: to these: Look for RFC-31 for more info. Cheers! -Perry MapServer wrote: > Hello > > I have installed map server but while I am trying to test the demo map > I get following error : > Content-type: text/html msReturnPage(): Unable to access file. set in > index.html > > and also I noticed that png files have been created in root of demo > with following names: > > [root at firstone workshop-5.0]# ls -la set* > -rw-r--r-- 1 apache apache 25840 Jan 9 11:57 set in > index.htmlITASCA11998942593258.png > -rw-r--r-- 1 apache apache 422 Jan 9 11:57 set in > index.htmlITASCAleg11998942593258.png > -rw-r--r-- 1 apache apache 353 Jan 9 11:57 set in > index.htmlITASCAref11998942593258.png > -rw-r--r-- 1 apache apache 163 Jan 9 11:57 set in > index.htmlITASCAsb11998942593258.png > > > here is my changes to index.html located in workshop-5.0 > > > > // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP > var snippet = "IMAGEPATH '/var/www/html/workshop-5.0/tmp/'"; > snippet += " IMAGEURL '/tmp/'"; > snippet += " TEMPLATE " + template; > > document.demo.map_web.value = snippet; > value="/var/www/html/workshop-5.0/itasca.map"> > > value="/var/www/html/workshop-5.0/"> > > > > > > > From naci0002 at UMN.EDU Wed Jan 9 12:44:14 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 9 Jan 2008 14:44:14 -0600 Subject: demo map In-Reply-To: <47852E5C.7010109@umn.edu> Message-ID: Scratch that. Download the latest MapServer Demo at http://mapserver.gis.umn.edu/download/current to get Steve's updated demo. Pericles S. Nacionales wrote: > Sounds like you have an older version of demo. Edit the index.html > and replace the following lines: > > > with these: > > > Also change these lines: > value="/ms4w/tmp/ms_tmp/"> > > > to these: > > > > Look for RFC-31 for more info. > > Cheers! > -Perry > > MapServer wrote: >> Hello >> >> I have installed map server but while I am trying to test the demo >> map I get following error : >> Content-type: text/html msReturnPage(): Unable to access file. set in >> index.html >> >> and also I noticed that png files have been created in root of demo >> with following names: >> >> [root at firstone workshop-5.0]# ls -la set* >> -rw-r--r-- 1 apache apache 25840 Jan 9 11:57 set in >> index.htmlITASCA11998942593258.png >> -rw-r--r-- 1 apache apache 422 Jan 9 11:57 set in >> index.htmlITASCAleg11998942593258.png >> -rw-r--r-- 1 apache apache 353 Jan 9 11:57 set in >> index.htmlITASCAref11998942593258.png >> -rw-r--r-- 1 apache apache 163 Jan 9 11:57 set in >> index.htmlITASCAsb11998942593258.png >> >> >> here is my changes to index.html located in workshop-5.0 >> >> >> >> // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP >> var snippet = "IMAGEPATH '/var/www/html/workshop-5.0/tmp/'"; >> snippet += " IMAGEURL '/tmp/'"; >> snippet += " TEMPLATE " + template; >> >> document.demo.map_web.value = snippet; >> > value="/var/www/html/workshop-5.0/itasca.map"> >> >> > value="/var/www/html/workshop-5.0/"> >> >> >> >> >> >> >> From mapserver at UNIXPLANET.BIZ Wed Jan 9 12:44:51 2008 From: mapserver at UNIXPLANET.BIZ (MapServer) Date: Wed, 9 Jan 2008 16:44:51 -0400 Subject: demo map In-Reply-To: <47852E5C.7010109@umn.edu> Message-ID: I just downloaded the demo from the following url and it suppose to work with version 4: http://mapserver.gis.umn.edu/download/current/ I changed the first part as you directed, but there is no hidden input for map_web, so I just added it but still the same error. any idea ? is there any demo based on php ? Thanks Pericles S. Nacionales wrote: > Sounds like you have an older version of demo. Edit the index.html > and replace the following lines: > > > with these: > > > Also change these lines: > value="/ms4w/tmp/ms_tmp/"> > > > to these: > > > > Look for RFC-31 for more info. > > Cheers! > -Perry > > MapServer wrote: >> Hello >> >> I have installed map server but while I am trying to test the demo >> map I get following error : >> Content-type: text/html msReturnPage(): Unable to access file. set in >> index.html >> >> and also I noticed that png files have been created in root of demo >> with following names: >> >> [root at firstone workshop-5.0]# ls -la set* >> -rw-r--r-- 1 apache apache 25840 Jan 9 11:57 set in >> index.htmlITASCA11998942593258.png >> -rw-r--r-- 1 apache apache 422 Jan 9 11:57 set in >> index.htmlITASCAleg11998942593258.png >> -rw-r--r-- 1 apache apache 353 Jan 9 11:57 set in >> index.htmlITASCAref11998942593258.png >> -rw-r--r-- 1 apache apache 163 Jan 9 11:57 set in >> index.htmlITASCAsb11998942593258.png >> >> >> here is my changes to index.html located in workshop-5.0 >> >> >> >> // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP >> var snippet = "IMAGEPATH '/var/www/html/workshop-5.0/tmp/'"; >> snippet += " IMAGEURL '/tmp/'"; >> snippet += " TEMPLATE " + template; >> >> document.demo.map_web.value = snippet; >> > value="/var/www/html/workshop-5.0/itasca.map"> >> >> > value="/var/www/html/workshop-5.0/"> >> >> >> >> >> >> >> > From naci0002 at UMN.EDU Wed Jan 9 13:06:27 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 9 Jan 2008 15:06:27 -0600 Subject: demo map In-Reply-To: <47853243.5090307@unixplanet.biz> Message-ID: I probably should have read your original post thoroughly in the first place. The demo was updated to work with version 5.0, making it unusable for 4.x. The 4.x compatible demo is still available at http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip. Sorry for the confusion. -Perry MapServer wrote: > I just downloaded the demo from the following url and it suppose to > work with version 4: > http://mapserver.gis.umn.edu/download/current/ > > I changed the first part as you directed, but there is no hidden input > for map_web, so I just added it > but still the same error. > > any idea ? > > is there any demo based on php ? > > Thanks > > > Pericles S. Nacionales wrote: >> Sounds like you have an older version of demo. Edit the index.html >> and replace the following lines: >> >> >> with these: >> >> >> Also change these lines: >> > value="/ms4w/tmp/ms_tmp/"> >> >> >> to these: >> >> >> >> Look for RFC-31 for more info. >> >> Cheers! >> -Perry >> >> MapServer wrote: >>> Hello >>> >>> I have installed map server but while I am trying to test the demo >>> map I get following error : >>> Content-type: text/html msReturnPage(): Unable to access file. set >>> in index.html >>> >>> and also I noticed that png files have been created in root of demo >>> with following names: >>> >>> [root at firstone workshop-5.0]# ls -la set* >>> -rw-r--r-- 1 apache apache 25840 Jan 9 11:57 set in >>> index.htmlITASCA11998942593258.png >>> -rw-r--r-- 1 apache apache 422 Jan 9 11:57 set in >>> index.htmlITASCAleg11998942593258.png >>> -rw-r--r-- 1 apache apache 353 Jan 9 11:57 set in >>> index.htmlITASCAref11998942593258.png >>> -rw-r--r-- 1 apache apache 163 Jan 9 11:57 set in >>> index.htmlITASCAsb11998942593258.png >>> >>> >>> here is my changes to index.html located in workshop-5.0 >>> >>> >>> >>> // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP >>> var snippet = "IMAGEPATH '/var/www/html/workshop-5.0/tmp/'"; >>> snippet += " IMAGEURL '/tmp/'"; >>> snippet += " TEMPLATE " + template; >>> >>> document.demo.map_web.value = snippet; >>> >> value="/var/www/html/workshop-5.0/itasca.map"> >>> >>> >> value="/var/www/html/workshop-5.0/"> >>> >>> >>> >>> >>> >>> >>> >> > From Steve.Lime at DNR.STATE.MN.US Wed Jan 9 13:19:53 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 9 Jan 2008 15:19:53 -0600 Subject: dbox: Is it still being actively maintained? Message-ID: Yup, I'm just too lazy to cut another release. I can tar up my most recent development version if you'd like. Steve >>> Matthew Pettis 01/08/08 7:46 PM >>> Hi, is dBox still being actively maintained? Or is it being replaced by OpenLayers or something else? The last date I see with updates on the page is sometime in 2006. I'm just looking for tools to facilitate rubberband zooming and such. thanks, matt -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From earevaloch at GMAIL.COM Wed Jan 9 13:23:40 2008 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 9 Jan 2008 16:23:40 -0500 Subject: Install mapserver-bin in debian amd64 Message-ID: Hello list I am trying to install the mapserver version 5.0.0-3 Testing in a debian amd64 steps taken: 1) Reposirotrio change to the debian testing (sources.list) 2) apt-get update 3) apt-get install mapserver-bin Computer replacement and upgrade everything smoothly But not where I think CGI "mapserv" Please idea of a solution Forgive the English -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at UNIXPLANET.BIZ Wed Jan 9 13:26:55 2008 From: mapserver at UNIXPLANET.BIZ (MapServer) Date: Wed, 9 Jan 2008 17:26:55 -0400 Subject: demo map In-Reply-To: <47853753.3070808@umn.edu> Message-ID: Thanks for help, but stillthe same problem with workshop.zip in forwarded url, actually the index.html is identical to the one I had before. Pericles S. Nacionales wrote: > I probably should have read your original post thoroughly in the first > place. The demo was updated to work with version 5.0, making it > unusable for 4.x. The 4.x compatible demo is still available at > http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip. > > Sorry for the confusion. > > -Perry > > MapServer wrote: >> I just downloaded the demo from the following url and it suppose to >> work with version 4: >> http://mapserver.gis.umn.edu/download/current/ >> >> I changed the first part as you directed, but there is no hidden >> input for map_web, so I just added it >> but still the same error. >> >> any idea ? >> >> is there any demo based on php ? >> >> Thanks >> >> >> Pericles S. Nacionales wrote: >>> Sounds like you have an older version of demo. Edit the index.html >>> and replace the following lines: >>> >>> >>> with these: >>> >>> >>> Also change these lines: >>> >> value="/ms4w/tmp/ms_tmp/"> >>> >>> >>> to these: >>> >>> >>> >>> Look for RFC-31 for more info. >>> >>> Cheers! >>> -Perry >>> >>> MapServer wrote: >>>> Hello >>>> >>>> I have installed map server but while I am trying to test the demo >>>> map I get following error : >>>> Content-type: text/html msReturnPage(): Unable to access file. set >>>> in index.html >>>> >>>> and also I noticed that png files have been created in root of demo >>>> with following names: >>>> >>>> [root at firstone workshop-5.0]# ls -la set* >>>> -rw-r--r-- 1 apache apache 25840 Jan 9 11:57 set in >>>> index.htmlITASCA11998942593258.png >>>> -rw-r--r-- 1 apache apache 422 Jan 9 11:57 set in >>>> index.htmlITASCAleg11998942593258.png >>>> -rw-r--r-- 1 apache apache 353 Jan 9 11:57 set in >>>> index.htmlITASCAref11998942593258.png >>>> -rw-r--r-- 1 apache apache 163 Jan 9 11:57 set in >>>> index.htmlITASCAsb11998942593258.png >>>> >>>> >>>> here is my changes to index.html located in workshop-5.0 >>>> >>>> >>>> >>>> // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP >>>> var snippet = "IMAGEPATH '/var/www/html/workshop-5.0/tmp/'"; >>>> snippet += " IMAGEURL '/tmp/'"; >>>> snippet += " TEMPLATE " + template; >>>> >>>> document.demo.map_web.value = snippet; >>>> >>> value="/var/www/html/workshop-5.0/itasca.map"> >>>> >>>> >>> value="/var/www/html/workshop-5.0/"> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >> > From mapserver at UNIXPLANET.BIZ Wed Jan 9 13:32:34 2008 From: mapserver at UNIXPLANET.BIZ (MapServer) Date: Wed, 9 Jan 2008 17:32:34 -0400 Subject: demo map In-Reply-To: <47853C1F.7080009@unixplanet.biz> Message-ID: my bad, you are right , there is one for version 4 and I was using version 5. Thanks for help MapServer wrote: > Thanks for help, > but stillthe same problem with workshop.zip in forwarded url, actually > the index.html is identical to the one I had before. > > > > > > Pericles S. Nacionales wrote: >> I probably should have read your original post thoroughly in the >> first place. The demo was updated to work with version 5.0, making >> it unusable for 4.x. The 4.x compatible demo is still available at >> http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip. >> >> Sorry for the confusion. >> >> -Perry >> >> MapServer wrote: >>> I just downloaded the demo from the following url and it suppose to >>> work with version 4: >>> http://mapserver.gis.umn.edu/download/current/ >>> >>> I changed the first part as you directed, but there is no hidden >>> input for map_web, so I just added it >>> but still the same error. >>> >>> any idea ? >>> >>> is there any demo based on php ? >>> >>> Thanks >>> >>> >>> Pericles S. Nacionales wrote: >>>> Sounds like you have an older version of demo. Edit the index.html >>>> and replace the following lines: >>>> >>>> >>>> with these: >>>> >>>> >>>> Also change these lines: >>>> >>> value="/ms4w/tmp/ms_tmp/"> >>>> >>>> >>>> to these: >>>> >>>> >>>> >>>> Look for RFC-31 for more info. >>>> >>>> Cheers! >>>> -Perry >>>> >>>> MapServer wrote: >>>>> Hello >>>>> >>>>> I have installed map server but while I am trying to test the demo >>>>> map I get following error : >>>>> Content-type: text/html msReturnPage(): Unable to access file. set >>>>> in index.html >>>>> >>>>> and also I noticed that png files have been created in root of >>>>> demo with following names: >>>>> >>>>> [root at firstone workshop-5.0]# ls -la set* >>>>> -rw-r--r-- 1 apache apache 25840 Jan 9 11:57 set in >>>>> index.htmlITASCA11998942593258.png >>>>> -rw-r--r-- 1 apache apache 422 Jan 9 11:57 set in >>>>> index.htmlITASCAleg11998942593258.png >>>>> -rw-r--r-- 1 apache apache 353 Jan 9 11:57 set in >>>>> index.htmlITASCAref11998942593258.png >>>>> -rw-r--r-- 1 apache apache 163 Jan 9 11:57 set in >>>>> index.htmlITASCAsb11998942593258.png >>>>> >>>>> >>>>> here is my changes to index.html located in workshop-5.0 >>>>> >>>>> >>>>> >>>>> // EDIT THE NEXT 2 LINES TO MATCH YOUR SETUP >>>>> var snippet = "IMAGEPATH '/var/www/html/workshop-5.0/tmp/'"; >>>>> snippet += " IMAGEURL '/tmp/'"; >>>>> snippet += " TEMPLATE " + template; >>>>> >>>>> document.demo.map_web.value = snippet; >>>>> >>>> value="/var/www/html/workshop-5.0/itasca.map"> >>>>> >>>>> >>>> value="/var/www/html/workshop-5.0/"> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>> >> > From siki at AGT.BME.HU Wed Jan 9 15:46:49 2008 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 9 Jan 2008 22:46:49 -0100 Subject: itemnquery problems {Scanned} In-Reply-To: <518970.50993.qm@web38414.mail.mud.yahoo.com> Message-ID: Hi William, layer definition in map file: LAYER NAME "parcel" DATA ..... STATUS ON TYPE POLYGON CLASS COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END TEMPLATE "templ.html" HEADER "head.html" FOOTER "foot.html" END ... ------ Do not include [img] tag in templ.html! for eaxample head.html

query result

------- templ.html ------- foot.html
parcel idarea
[PARCEL_ID][AREA]

---------- This way you get as many data rows in the table as many selected objects in parcel layer, but only one map because the [img] tag is in the footer. I hope this helps you. Zoltan On Wed, 9 Jan 2008, william paul wrote: > Please, can you give an example (Rich or Siki)? > I am using the same template for mapserver as for displaying the query results > > Thank you > > William > > > ----- Original Message ---- > From: Richard Greenwood > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Wednesday, January 9, 2008 3:30:54 PM > Subject: Re: [UMN_MAPSERVER-USERS] itemnquery problems > > On Jan 9, 2008 5:37 AM, william paul wrote: >> >> Hi: >> I am using itemnquery mode to display results obtained from a database >> query. The url looks like: >> >> ...mode=itemnguery&qlayer=qlayer&qitem=fieldtoquery&qstring=/value1|value2|valuen/ >> >> The spatial extent of the image is correct and I can see all the features >> selected, but the entire web page page is displayed 14 times >> >> Any help is appreciated >> >> Thank you >> >> William > > Most likely you got 14 results, so MapServer drew 14 maps for you. If > you want all 14 results shown in a single map, try moving your > template definition from TEMPLATE to HEAD, and using an empty file for > the TEMPLATE. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ > From Steve.Lime at DNR.STATE.MN.US Wed Jan 9 13:42:07 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 9 Jan 2008 15:42:07 -0600 Subject: AGG: "fuzzy" lines at near horizontal/vertical angles ... Message-ID: There was an interesting thread on this topic on the Cairo mailing list this past July. One of the drawbacks of the analytical AA approach is with coincident lines of the same color. An alternative supersampling approach was presented... Check out the "polygon rasterization" threads here: http://lists.cairographics.org/archives/cairo/2007-July/thread.html#11092 It probably spills into August too. Steve >>> Flavio Hendry 01/08/08 9:57 AM >>> Hi Thomas > that's how the agg antialiasing works ... Thanks. I was suspecting that ... The problem in this case is "magnified" by the harsh contrast between black and white (on smooth colors it does not "hit the eye" as much). I do not see any amplification effect if there are two lines or just one however (same layer, once as single lines and once as doubles looks exactly the same). Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From mapserver at UNIXPLANET.BIZ Wed Jan 9 13:42:31 2008 From: mapserver at UNIXPLANET.BIZ (MapServer) Date: Wed, 9 Jan 2008 17:42:31 -0400 Subject: php demo Message-ID: Hello Is there any demo map based on php ? the cgi based works fine. what about document ? is there any document to show how to retrieve our data through php ? Thanks for help From richard.greenwood at GMAIL.COM Wed Jan 9 13:50:09 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 9 Jan 2008 14:50:09 -0700 Subject: itemnquery problems In-Reply-To: <518970.50993.qm@web38414.mail.mud.yahoo.com> Message-ID: On Jan 9, 2008 12:55 PM, william paul wrote: > > Please, can you give an example (Rich or Siki)? > I am using the same template for mapserver as for displaying the query > results > > Thank you > > William > Below is the layer definition for the layer that displays my itemnquery results. tc.html is my main map template file. empty.html contains nothing at all. The important thing is that tc.html is associated with the HEADER (or FOOTER, as Siki pointed out), but not the TEMPLATE. Layer NAME "region_spatial" TYPE polygon DATA region STATUS default FILTERITEM pidn FILTER "%pidn%" HEADER "tc.html" # Use to display map TEMPLATE "empty.html" FOOTER "empty.html" CLASS OUTLINECOLOR 255 255 0 SYMBOL 'solid' SIZE 6 END # class END -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From siki at AGT.BME.HU Wed Jan 9 16:03:45 2008 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 9 Jan 2008 23:03:45 -0100 Subject: php demo {Scanned} In-Reply-To: <47853FC7.2070104@unixplanet.biz> Message-ID: Hi, Try this http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample another good example is GMap Application http://mapserver.gis.umn.edu/docs/link/gmap-sample and probably you need the class reference http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/view Zoltan On Wed, 9 Jan 2008, MapServer wrote: > Hello > > Is there any demo map based on php ? the cgi based works fine. > what about document ? is there any document to show how to retrieve our data > through php ? > > Thanks for help > From williampaul28 at YAHOO.COM Wed Jan 9 14:14:50 2008 From: williampaul28 at YAHOO.COM (william paul) Date: Wed, 9 Jan 2008 14:14:50 -0800 Subject: itemnquery problems Message-ID: Thank you very much Rich and Siki. It's working nice William ----- Original Message ---- From: Richard Greenwood To: william paul Cc: mapserver mapserver Sent: Wednesday, January 9, 2008 11:50:09 PM Subject: Re: [UMN_MAPSERVER-USERS] itemnquery problems On Jan 9, 2008 12:55 PM, william paul wrote: > > Please, can you give an example (Rich or Siki)? > I am using the same template for mapserver as for displaying the query > results > > Thank you > > William > Below is the layer definition for the layer that displays my itemnquery results. tc.html is my main map template file. empty.html contains nothing at all. The important thing is that tc.html is associated with the HEADER (or FOOTER, as Siki pointed out), but not the TEMPLATE. Layer NAME "region_spatial" TYPE polygon DATA region STATUS default FILTERITEM pidn FILTER "%pidn%" HEADER "tc.html" # Use to display map TEMPLATE "empty.html" FOOTER "empty.html" CLASS OUTLINECOLOR 255 255 0 SYMBOL 'solid' SIZE 6 END # class END -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dev at GEOASPECTS.COM Wed Jan 9 14:41:01 2008 From: dev at GEOASPECTS.COM (Geo Aspects Development) Date: Wed, 9 Jan 2008 23:41:01 +0100 Subject: Ruby Mapscript on Windows In-Reply-To: <20080107140514.69390@gmx.net> Message-ID: hi, Actually, as far as I can remember, I did have to compile the Ruby Mapscript libraries from the source using SWIG. The Mac is just a flavour of unix these days so the instructions were fairly straightforward - I don't have a Windows machine here so I'm not sure what you get with ms4w. As you can probably tell, I haven't been able to spend much time with this for a while. Ruby in Space was never intended to be a framework, but rather just a tutorial to document how I got it all to run together, although I must say that there seems to be a lot of potential combining Rails and Mapserver. If I remember any more information I'll post it here. Tim Geo Aspects On Jan 7, 2008, at 3:05 PM, Carl Heinze wrote: > I'm new to this list, so: Hi to all > > I'm just starting to work with mapserver - and i'm already stuck > during setting up my environment. > > I'm working under Windows XP and I would like to develop with ruby > on rails. > > What is working: > > Ruby on Rails > Postgres with PostGis > CGI-Mapserver (mapserv.exe) > > But i couldn't find any possibility to download the Ruby Mapscript > Libraries for Windows, nor could i find any Instructions for using > Ruby mapscript under Windows. I installed Mapserver using the ms4w- > package, but this is rolled out without the Ruby Mapscript (Why?) > > I would like to get the framework "ruby in space" (by geoaspects, http://www.geoaspects.com/rubyinspace.shtml) > working - but they have only installation instructions for mac OS. > > So, finally, the question: How may I use the mapserver with ruby > under windows? > > If my question is not clear, apologise.. > > many greets, Carl > > -- > GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. > Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail From matthew.pettis at GMAIL.COM Wed Jan 9 16:07:25 2008 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Wed, 9 Jan 2008 18:07:25 -0600 Subject: dbox: Is it still being actively maintained? In-Reply-To: <4784E61F0200008F00013479@co5.dnr.state.mn.us> Message-ID: Uff da... since I haven't used it yet, I'd be loathe to make you package something for me that I haven't decided to use... I was just curious if it was actively developed so as to figure out if it was worth investing time into playing with it, or if it was dead. If your updates don't change any of the core functionality or way it gets implemented with MapServer, I'd say I don't need a release -- I can just try out the old one and see if it even fits my needs. You've dealt with this, jBox, and OpenLayers -- in your opinion, which would you use if the main functionality you want is zooming via rubberbanding? Or is there some app I'm missing in my consideration list? thanks, matt On Jan 9, 2008 3:19 PM, Steve Lime wrote: > Yup, I'm just too lazy to cut another release. I can tar up my most recent > development > version if you'd like. > > Steve > > >>> Matthew Pettis 01/08/08 7:46 PM >>> > Hi, > > is dBox still being actively maintained? Or is it being replaced by > OpenLayers or something else? The last date I see with updates on the > page > is sometime in 2006. > > I'm just looking for tools to facilitate rubberband zooming and such. > > thanks, > matt > > -- > It is from the wellspring of our despair and the places that we are broken > that we come to repair the world. > -- Murray Waas > > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Wed Jan 9 17:41:12 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Wed, 9 Jan 2008 17:41:12 -0800 Subject: should (classObj.getLabel() == null) when MAP.LAYER.CLASS has no LABEL ? Message-ID: Within each MAP.LAYER.CLASS in my *.map files, some classes have a LABEL, but many do not. My guess had been that when parsing the classObj in Java mapscript, that if there was no LABEL, that classObj.getLabel() would return a null labelObj. This is not the case. A non-null labelObj is returned whether or not there is a LABEL. Is this intended behavior, or a bug? There's no way to tell from the mapscript docs, as getLabel() isn't even listed in "classObj Methods". (Which I guess is a minor documentation bug regardless.) If I look at the classObj.java source, it shows: --- begin --- public labelObj getLabel() { long cPtr = mapscriptJNI.get_classObj_label(swigCPtr); return (cPtr == 0) ? null : new labelObj(cPtr, false); } --- end --- I don't totally understand all of the SWIG stuff, but I would guess from looking at it that it ought to be returning null if not applicable. But it doesn't appear to be doing that. -- View this message in context: http://www.nabble.com/should-%28classObj.getLabel%28%29-%3D%3D-null%29-when-MAP.LAYER.CLASS-has-no-LABEL---tp14726078p14726078.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Wed Jan 9 17:53:04 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Wed, 9 Jan 2008 17:53:04 -0800 Subject: should (classObj.getLabel() == null) when MAP.LAYER.CLASS has no LABEL ? In-Reply-To: <14726078.post@talk.nabble.com> Message-ID: rich.fromm wrote: > > Within each MAP.LAYER.CLASS in my *.map files, some classes have a LABEL, > but > many do not. My guess had been that when parsing the classObj in Java > mapscript, that if there was no LABEL, that classObj.getLabel() would > return a > null labelObj. This is not the case. A non-null labelObj is returned > whether > or not there is a LABEL. > I do see that for a MAP.LAYER that has no LABELITEM (which at least for me then implies that it has no CLASS.LABEL), that layerObj.getLabelitem() does return null, which is a workaround to figuring out whether or not a layer has a label. I also do see that layerObj.getLabelitem() is also missing from the mapscript docs. Oh yeah, I forgot to mention before, this is mapserver-5.0.0 - Rich -- View this message in context: http://www.nabble.com/should-%28classObj.getLabel%28%29-%3D%3D-null%29-when-MAP.LAYER.CLASS-has-no-LABEL---tp14726078p14726128.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Steve.Lime at DNR.STATE.MN.US Wed Jan 9 18:55:11 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 9 Jan 2008 20:55:11 -0600 Subject: dbox: Is it still being actively maintained? Message-ID: It's not dead, plus with the source you could do whatever. The only useful thing I added was a toolbar class (see http://preview.dnr.state.mn.us/maps/landview.html). There are lots of other options. pMapper is quite nice, as is Chameleon (not sure where that is with development anymore) but they may be overkill for just a rubber-band box. Then there's the new GeoMoose app, again a full featured framework. OpenLayers is wonderful and if you can live with fixed scales then that's a great choice. I'm using it more and more myself. On the plus side, dBox is nice and self-contained, is MapServer specific and does the rubber band zoom very well. It's actually a reasonable transition from dBox to OpenLayers so it's not a total dead end. Anyway the URL above shows it off, check out the mapper.js referenced in the source for an implementation example. Steve >>> Matthew Pettis 01/09/08 6:07 PM >>> Uff da... since I haven't used it yet, I'd be loathe to make you package something for me that I haven't decided to use... I was just curious if it was actively developed so as to figure out if it was worth investing time into playing with it, or if it was dead. If your updates don't change any of the core functionality or way it gets implemented with MapServer, I'd say I don't need a release -- I can just try out the old one and see if it even fits my needs. You've dealt with this, jBox, and OpenLayers -- in your opinion, which would you use if the main functionality you want is zooming via rubberbanding? Or is there some app I'm missing in my consideration list? thanks, matt On Jan 9, 2008 3:19 PM, Steve Lime wrote: > Yup, I'm just too lazy to cut another release. I can tar up my most recent > development > version if you'd like. > > Steve > > >>> Matthew Pettis 01/08/08 7:46 PM >>> > Hi, > > is dBox still being actively maintained? Or is it being replaced by > OpenLayers or something else? The last date I see with updates on the > page > is sometime in 2006. > > I'm just looking for tools to facilitate rubberband zooming and such. > > thanks, > matt > > -- > It is from the wellspring of our despair and the places that we are broken > that we come to repair the world. > -- Murray Waas > > -- It is from the wellspring of our despair and the places that we are broken that we come to repair the world. -- Murray Waas From chander at OTG-NC.COM Wed Jan 9 18:57:18 2008 From: chander at OTG-NC.COM (Chander Ganesan) Date: Wed, 9 Jan 2008 21:57:18 -0500 Subject: Open Technology Group, Inc. announces PostGIS & UMN MapServer Training Message-ID: MORRISVILLE, NC - January 8, 2008 - Open Technology Group, Inc. announces PostGIS & UMN MapServer Training The Open Technology Group (OTG), the leader in the development and delivery of training solutions centered about Open Source technologies, announced today the addition of its "Introduction to GIS with PostGIS & MapServer" course to its wide range of PostgreSQL related course offerings. "Implementing GIS solutions can be a daunting task" said Chander Ganesan, President "Our Introduction to GIS with PostGIS & MapServer course covers the concepts, administration tools, and techniques necessary to quickly and efficiently implement these solutions using PostGIS, PostgreSQL, and UMN MapServer to visualize results. Furthermore, it allows our customers a wider range of customization options for our on-site course offerings." "OTG continues to deliver the most comprehensive set of public-enrollment PostgreSQL courses in the world" said Ganesan, "and our customers are able to mix and match components of our courses to meet their specific goals for affordable on-site delivery to groups of 4 or more students." The "Introduction to GIS with PostGIS & MapServer" course covers the following topics: - GIS Fundamentals/Concepts - Installing PostGIS - PostGIS Data Loads (Shape File Imports) - PostGIS Features - Creating PostGIS Tables & Loading Data - Simple PostGIS Queries (Simple Features for SQL) - Visualizing PostGIS Results - Deploying UMN MapServer - Implementing Interactive Maps ABOUT OPEN TECHNOLOGY GROUP, INC. Founded in 2004 and headquartered in Morrisville, NC, the Open Technology Group, Inc. (OTG) has established itself as the leading provider of training solutions centered about Open Source software and solutions. With its comprehensive library of in-house developed intellectual property, OTG is able to deliver comprehensive, customized, and structured training covering a wide range of software solutions. The Open Technology Group offers affordable customized on-site technology training throughout the world, as well as public-enrollment courses at its headquarters in Morrisville, NC as well as at a wide range of partner locations worldwide. For more information, a schedule of upcoming courses, and a complete course catalog, visit us online at http://www.otg-nc.com, or contact us at 877-258-8987 . From umberto.nicoletti at GMAIL.COM Thu Jan 10 00:03:30 2008 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 10 Jan 2008 09:03:30 +0100 Subject: should (classObj.getLabel() == null) when MAP.LAYER.CLASS has no LABEL ? In-Reply-To: <14726078.post@talk.nabble.com> Message-ID: This is the intended behaviour. Every classObj allocates a labelObj (even if it doesn't use it) at construction time because of the way the C struct has been defined. This is also valid for many others members like metadata, colorObj, etc. Regards, Umberto On Jan 10, 2008 2:41 AM, rich.fromm wrote: > Within each MAP.LAYER.CLASS in my *.map files, some classes have a LABEL, but > many do not. My guess had been that when parsing the classObj in Java > mapscript, that if there was no LABEL, that classObj.getLabel() would return > a > null labelObj. This is not the case. A non-null labelObj is returned > whether > or not there is a LABEL. > > Is this intended behavior, or a bug? > > There's no way to tell from the mapscript docs, as getLabel() isn't even > listed in "classObj Methods". (Which I guess is a minor documentation bug > regardless.) > > If I look at the classObj.java source, it shows: > > --- begin --- > public labelObj getLabel() { > long cPtr = mapscriptJNI.get_classObj_label(swigCPtr); > return (cPtr == 0) ? null : new labelObj(cPtr, false); > } > --- end --- > > I don't totally understand all of the SWIG stuff, but I would guess from > looking at it that it ought to be returning null if not applicable. But it > doesn't appear to be doing that. > > -- > View this message in context: http://www.nabble.com/should-%28classObj.getLabel%28%29-%3D%3D-null%29-when-MAP.LAYER.CLASS-has-no-LABEL---tp14726078p14726078.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From map.user at YAHOO.COM Thu Jan 10 01:45:12 2008 From: map.user at YAHOO.COM (User Map) Date: Thu, 10 Jan 2008 01:45:12 -0800 Subject: interactive map example1-9.htm Message-ID: hi, i am still not getting onto the interactive map, Example1-9.html of tutorial, link is: http://biometry.gis.umn.edu/cgi-bin/mapserv.exe?map=/ms4w/apps/tutorial/htdocs/example1-9.map&layer=states&layer=modis i have checked the "imagepath" and "imageurl" for mapfile. i can get the image file if i use a static map with mode set to "browse" at the specified location in "imagepath". i think there is something wrong with the "imageurl" may be. i have my 1. html page and mapfile at location ="C:\ms4w\Apache\htdocs\chk\*.html/map" 2. the tmp directory at location = "C:\ms4w\tmp" In ms4w/apache/log/error.log i get: [Thu Jan 10 09:19:31 2008] [error] [client 127.0.0.1] File does not exist: C:/ms4w/Apache/htdocs/chk/[img], referer: http://localhost/chk/example1-9.html i access the page as: "http://localhost/chk/example1-9.html" please have a look at this, really concerned. i think the problem is with imageurl tag, i hope i have written it correctly. thanks map.user my html page is: ----------------------------------------------------------------------------------------------------------------------------------- MapServer 5.x Tutorial ---------------------------------------------------------------------------------------------------------------------------------------- my mapfile is: MAP NAME db IMAGETYPE PNG EXTENT 246658.296875 56638.5 246745 56743.30078125 SIZE 800 600 IMAGECOLOR 255 255 255 FONTSET "C:/ms4w/Apache/htdocs/chk/fonts/fonts.list" WEB TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html' IMAGEPATH 'c:/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' #IMAGEPATH '/C:/ms4w/Apache/htdocs/chk/tmp/ms_tmp/' #IMAGEURL '/C:/ms4w/Apache/htdocs/chk/tmp/ms_tmp/' END PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "k=0.999601" "x_0=400000" "y_0=-100000" "ellps=airy" "units=m" "no_defs " END #end projection #____________________________________________________________________ # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states CONNECTIONTYPE postgis CONNECTION "user=***** password=****** dbname=***** host=localhost port=5432" DATA "geom from table" TYPE POLYGON STATUS OFF CLASS NAME "buildings" EXPRESSION ('[var]' = 'Buildings') STYLE COLOR 255 193 132 OUTLINECOLOR 255 0 0 END END END # States polygon layer ends here # End of LAYER DEFINITIONS #____________________________________________________________________________ END # All map files must come to an end just as all other things must come to... ----------------------------------------------------------------------------------------------------------------------------------------------- ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dnuttall at DNLT.COM Thu Jan 10 03:01:35 2008 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Thu, 10 Jan 2008 05:01:35 -0600 Subject: PHP/Mapscript + dBox rubber-band? Message-ID: Greetings Readers, I've been having fun learning with PHP/Mapscript and trying to figure out what causes a somewhat bizarre response from a home-brewed interface. My experiment has taken liberties with an example from the HostGIS distro where the rubber-band zoom or query is the highest interest item. My base *.map has two polygon layers. A valid "visual" for the layers would be the 48 states (CONUS). Each polygon layer draws the outlines with a black perimeter and solid pattern for the interior. The layer with 47 states paints all the polygons with the same interior pattern, while the "highlighted" or featured polygon paints with a contrasting shade. I get precisely the expected output when I test with "shp2img", i.e. the highlighted/featured polygon in the approximate middle and surrounded by the appropriate and contrasting polygons. My home-brew combination based on the HostGIS example tries to use a combination of PHP/Mapscript and what seems to be the appropriate JS, apparently dBox. My dilemma is that when the map displays via the full application, the result has the featured polygon at the approximate middle/center, but the entire map is shaded according to the surrounding specs, which implies the "featured" layer in the *.map is either being ignored or overwritten. I have experimented with reversing the order in the *.map and that does not change anything. I queried the HostGIS folks and was told that I should consider one of the new frameworks and that the example distributed is "old" so no real advantage gained from that collaboration. Since I TOO am somewhat older than most folks likely to be fooling with this stuff, I have to reject the idea that "old needs to be replaced by newer"!!! But seriously, my sense is that something in the dbox.msdraw() code needs to be changed, else stuff like Mr. Lime's Itasca 5.0 demo would have similar issues. My experiment is on a VMware partition behind my home firewall, but I can open ports 80 and 22 if some responsible person wants a "look-see", etc. If your answer is "use CGI", or a CGI-centric framework, I say in advance: Thank you, they're OK but I have my reasons for trying to figure this out using PHP-Mapscript and DHTML/JS and achieve XHTML-compliance. Thanks. Dave Nuttall San ANtonio, Texas From marcos at BURKE.ATH.CX Thu Jan 10 03:51:04 2008 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 10 Jan 2008 12:51:04 +0100 Subject: Install mapserver-bin in debian amd64 In-Reply-To: <95f68e530801091323q528bc92aued2e8260746d8a7a@mail.gmail.com> Message-ID: You may try installing cgi-mapserver - cgi module of mapserver El mi?, 09-01-2008 a las 16:23 -0500, Eduardo Ar?valo escribi?: > Hello list I am trying to install the mapserver version 5.0.0-3 > Testing in a debian amd64 steps taken: > > 1) Reposirotrio change to the debian testing (sources.list) > 2) apt-get update > 3) apt-get install mapserver-bin > > Computer replacement and upgrade everything smoothly > But not where I think CGI "mapserv" > > Please idea of a solution > Forgive the English From jkapalczynski at CI.MAPLE-GROVE.MN.US Thu Jan 10 09:32:03 2008 From: jkapalczynski at CI.MAPLE-GROVE.MN.US (Jay Kapalczynski) Date: Thu, 10 Jan 2008 11:32:03 -0600 Subject: Test Message-ID: Test City of Maple Grove Jason Kapalczynski GIS / IS Office 763.494.6282 Fax: 763.494.6419 jkapalczynski at ci.maple-grove.mn.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From jkapalczynski at CI.MAPLE-GROVE.MN.US Thu Jan 10 09:33:31 2008 From: jkapalczynski at CI.MAPLE-GROVE.MN.US (Jay Kapalczynski) Date: Thu, 10 Jan 2008 11:33:31 -0600 Subject: Geodatabase Message-ID: I have been using Geomoose and Map Server to display my data in a web environment... I have, up to now, used nothing but Shapefiles. I no want to use a Geodatabase (Polygon, Line, and Annotation) I am currently trying to display an Annotation Feature Class and don't know where to start Do I start with creating a map file? Does anyone have an example of a Map file for a Polygon, Line, and especially Annotation? I went here: http://mapserver.gis.umn.edu/docs/reference/vector_data/pgeo And was really confused on what I was seeing.. 1. Whats the Data Access / Connection Method 2. OGRINFO Examples? 3. The Map File Example I sort of understood but what about the code that is above that in my Shapefile example? a. Does this need to change? MAP NAME 'StreetName' SIZE 800 650 STATUS ON EXTENT 189783.560000 4816309.330000 761653.524114 5472346.500000 UNITS METERS FONTSET '../fonts/fontset.list' SYMBOLSET '../symbols/symbol.sym' TRANSPARENT TRUE IMAGETYPE PNG QUERYMAP STATUS ON STYLE SELECTED END WEB INCLUDE "/ms4w/apps/GeoMOOSE/maps_statedemo/web_config.map" END LEGEND STATUS ON END Any help would be appreciated... Thanks Jay City of Maple Grove Jason Kapalczynski GIS / IS Office 763.494.6282 Fax: 763.494.6419 jkapalczynski at ci.maple-grove.mn.us -------------- next part -------------- An HTML attachment was scrubbed... URL: From work at XWB.COM Thu Jan 10 10:16:08 2008 From: work at XWB.COM (Chip Taylor) Date: Thu, 10 Jan 2008 10:16:08 -0800 Subject: How to In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A36E74@KTWMAIL.ilpcs.com> Message-ID: I know that this is not specifically a mapserver question (or maybe it is) but here goes: Is there a way to: 1. Take one large shapefile (such as uscounties.shp) and split it into individual shapefiles based on information in the .dbf file (such as individual counties - one per shapefile)? 2. How would I send a query to Mapserver to only return a map for a specific entity in a shapefile (such as a county from a shapefile that contained all US counties - based on the state FIP and County FIP in the dbf)? It has been a while since I have done any Mapserver development and now I have to get back to it. Your help is greatly appreciated! Chip Taylor From woodbri at SWOODBRIDGE.COM Thu Jan 10 10:28:49 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 10 Jan 2008 13:28:49 -0500 Subject: How to In-Reply-To: <00c801c853b4$e23211d0$025aa8c0@DevChip> Message-ID: Chip Taylor wrote: > I know that this is not specifically a mapserver question (or maybe it is) > but here goes: > > Is there a way to: > > 1. Take one large shapefile (such as uscounties.shp) and split it into > individual shapefiles based on information in the .dbf file (such as > individual counties - one per shapefile)? I think the easiest way to do this might be to use something like Geo::Shapelib perl module to read the input shapefile and to generate the respective output shapefiles. There are approximately 3300 counties in the US. > 2. How would I send a query to Mapserver to only return a map for a specific > entity in a shapefile (such as a county from a shapefile that contained all > US counties - based on the state FIP and County FIP in the dbf)? QueryByAttribute should be able to do that. It depends if you are trying to do this in CGI, mapscript (which flavor?), or a filter on a WFS server, or substitution in the mapfile via the CGI to dynamically change a FILTER on a layer, etc. Or you could load it into a postGIS database and deal with it there. GDAL/OGR might have some additional tools to do this that I'm not familiar with. > It has been a while since I have done any Mapserver development and now I > have to get back to it. Your help is greatly appreciated! > > Chip Taylor Best regards, -Steve W From matthew.pettis at GMAIL.COM Thu Jan 10 12:00:11 2008 From: matthew.pettis at GMAIL.COM (Matthew Pettis) Date: Thu, 10 Jan 2008 14:00:11 -0600 Subject: Pie Charts with Mapserver: Simple Perl code to create WKT Insert statements for Message-ID: Hi, This is a solution, rather than a problem. I had need for a pie chart with a clickable imagemap in a webpage where I was also rendering maps with mapserver. I thought about looking for a tool to do this for me, then decided to write a quick script to make a small table in my postgis database that would have the necessary information to draw the pie chart with mapserver. This code will generate a pie-ish chart within a bounding box of (-1 -1 1 1). It is pie-ish because the sectors are actually triangles, not true circle sectors. That could be modified, I had over 100 segments, and that approximated a circle well enough for my purposes. I am submitting the perl code in case others have use for it. Trivial abuse of mapserver, yes, but it was very handy for me -- perhaps it will be handy for someone else. Below the dotted line is the perl code. Thanks, Matt -------------------------------------- #This perl code generates coordinate combinations using WKT to create #a table whose geometry rendered by mapserver will create a pie-ish #chart. It's not exactly a pie chart, as the pie wedges are triangles, #not true circle sectors, but it's close enough for a large number of #slices. Code should be easily modifiable to make more circular #objects for low number of slices. ######################################################################## # config ######################################################################## my $PI = 3.1415926535897932384626433832795; my $slices = 134; # number of pie slices my $ccw = -1; # 1 is counter-clockwise, -1 is clockwise my $phase = -$PI / 2.0; # phase shift of the starting point # -$PI / 2.0 starts slice enumeration at the # 12 o'clock position ######################################################################## # generate wkt coords of slices ######################################################################## for my $i (1 .. $slices) { my $xy1 = sprintf( "%5f %5f" , cos (2 * $PI * ($i - 1) * $ccw / $slices - $phase) , sin (2 * $PI * ($i - 1) * $ccw / $slices - $phase) ); my $xy2 = sprintf( "%5f %5f" , cos (2 * $PI * $i * $ccw / $slices - $phase) , sin (2 * $PI * $i * $ccw / $slices - $phase) ); print "insert into temp values" ,"($i,GeometryFromText('POLYGON ((0 0, $xy1, $xy2, 0 0))',-1));" , "\n"; }; -------------- next part -------------- An HTML attachment was scrubbed... URL: From IANT at NAPIER.GOVT.NZ Thu Jan 10 12:06:49 2008 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Fri, 11 Jan 2008 09:06:49 +1300 Subject: JavaScript Measure Tool Message-ID: Hi All, I am updating the interface on my MapServer site and want to change my existing PHP based measure tool to JavaScript based tool. I understand that I need to draw on a canvas element, but I am having trouble finding information on the canvas and finding a good example that is easy to follow. Does anyone know of a good example that is easy enough to follow on how I can build this tool. Thanks for your help... Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at UNIXPLANET.BIZ Thu Jan 10 12:20:13 2008 From: mapserver at UNIXPLANET.BIZ (MapServer) Date: Thu, 10 Jan 2008 16:20:13 -0400 Subject: php demo {Scanned} In-Reply-To: Message-ID: thanks for the links, specially php mapscript by example was very useful, but I don't have europe shape files. is there any way to have those shape files ???? I know that I can use any other shape files, but it would be great to have those shape files so I can check if my server is ok to run php map server. Siki Zoltan wrote: > Hi, > > Try this > http://mapserver.gis.umn.edu/docs/howto/phpmapscript-byexample > > another good example is GMap Application > http://mapserver.gis.umn.edu/docs/link/gmap-sample > > and probably you need the class reference > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/view > > Zoltan > > On Wed, 9 Jan 2008, MapServer wrote: > >> Hello >> >> Is there any demo map based on php ? the cgi based works fine. >> what about document ? is there any document to show how to retrieve >> our data through php ? >> >> Thanks for help >> > From richard.greenwood at GMAIL.COM Thu Jan 10 16:37:52 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 10 Jan 2008 17:37:52 -0700 Subject: JavaScript Measure Tool In-Reply-To: Message-ID: On Jan 10, 2008 1:06 PM, Ian Tidy wrote: > > > > Hi All, > > I am updating the interface on my MapServer site and want to change my > existing PHP based measure tool to JavaScript based tool. I understand that > I need to draw on a canvas element, but I am having trouble finding > information on the canvas and finding a good example that is easy to follow. > Does anyone know of a good example that is easy enough to follow on how I > can build this tool. > > Thanks for your help? > > Cheers Ian > ______________________ > Ian Tidy > GIS Analyst / Developer > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > Phone +64-6-835-7579 Ext. 8115 > Fax +64-6-834-4195 > mailto:iant at napier.govt.nz > http://www.napier.govt.nz | http://maps.napier.govt.nz A lot of people approach this with a higher level library/client/framework like OpenLayers, bBox, MapBuilder.BapBender, GeoMoose, etc. If you want to build your own, all of those would obviously have some good example JavaScript. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From IANT at NAPIER.GOVT.NZ Thu Jan 10 16:42:49 2008 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Fri, 11 Jan 2008 13:42:49 +1300 Subject: JavaScript Measure Tool In-Reply-To: Message-ID: Thanks Richard, I have almost finished building my own based around some of the ideas from GeoMoose. I was going well until I tested with IE, which doesn't support a canvas without help. I have since found my bugs and fixed them (thanks to Google excanvas). All I have left to do is write the measurements back to the screen. Thanks for your suggestions. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Friday, 11 January 2008 1:38 p.m. To: Ian Tidy Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: JavaScript Measure Tool On Jan 10, 2008 1:06 PM, Ian Tidy wrote: > > > > Hi All, > > I am updating the interface on my MapServer site and want to change my > existing PHP based measure tool to JavaScript based tool. I understand that > I need to draw on a canvas element, but I am having trouble finding > information on the canvas and finding a good example that is easy to follow. > Does anyone know of a good example that is easy enough to follow on how I > can build this tool. > > Thanks for your help... > > Cheers Ian > ______________________ > Ian Tidy > GIS Analyst / Developer > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > Phone +64-6-835-7579 Ext. 8115 > Fax +64-6-834-4195 > mailto:iant at napier.govt.nz > http://www.napier.govt.nz | http://maps.napier.govt.nz A lot of people approach this with a higher level library/client/framework like OpenLayers, bBox, MapBuilder.BapBender, GeoMoose, etc. If you want to build your own, all of those would obviously have some good example JavaScript. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com Scanned by Bizo Email Filter ######################################################################## ############# This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ######################################################################## ############# ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. From richard.greenwood at GMAIL.COM Thu Jan 10 16:44:57 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 10 Jan 2008 17:44:57 -0700 Subject: dbox: Is it still being actively maintained? In-Reply-To: <82ba77b80801081746m769ac913o51bae8be0fac2cf1@mail.gmail.com> Message-ID: I really need to read the subject line on these emails more closely, or get new glasses, or something. In my original reply to this thread I thought your question was about jBox, not dBox. I apologize for the confusion. I'm sure my reply made no sense at all. This is the second time this week that I've mis-read, and mis-replied to a list email. Sorry, Rich On Jan 8, 2008 6:46 PM, Matthew Pettis wrote: > Hi, > > is dBox still being actively maintained? Or is it being replaced by > OpenLayers or something else? The last date I see with updates on the page > is sometime in 2006. > > I'm just looking for tools to facilitate rubberband zooming and such. > > thanks, > matt > > -- > It is from the wellspring of our despair and the places that we are broken > that we come to repair the world. > -- Murray Waas -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From stefan.schwarzer at GRID.UNEP.CH Thu Jan 10 22:51:07 2008 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Fri, 11 Jan 2008 07:51:07 +0100 Subject: OpenGIS for Mac - Recommendations? Message-ID: Hi there, a couple of years ago I tried to get an overview of alternatives to ESRI ArcView/ArcGIS, and found some small apps like uDig, qGIS etc.... It didn't really convince me. And the first experiences with GRASS weren't too promising. Now, I know, lot has changed. GRASS seems to be superbe once you've crossed the first challenges. But for the ArcMap-style GIS software: what can you recommend? Nice GUI? With a couple of functions, like buffer, editing, reprojecting... Thanks for any feedback. Stef ____________________________________________________________________ Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Thu Jan 10 23:42:22 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 11 Jan 2008 09:42:22 +0200 Subject: OpenGIS for Mac - Recommendations? Message-ID: Stefan Schwarzer wrote >Hi there, ... >But for the ArcMap-style GIS software: what can you recommend? Nice >GUI? With a couple of functions, like buffer, editing, reprojecting... OpenJUMP is lightweight and looks and feels nice and runs on Mac. Nice GUI for my mind, and has quite a nice set of topologigal functions from Java Topology Suite. Rather good for editing. Reprojecting - no. No problems with WMS. WFS plugin reads well WFS 1.0 delivered by GeoServer and gives menu based tools for creating spatial and attribute filters for WFS requests. WFS plugin has issues with MapServer WFS but works still somehow. With deegree WFS server it should support both WFS 1.0 and 1.1 including WFS-T, but I have not tested that myself. OpenJUMP has obviously originally developed for editing and correcting vector data and not for all-purpose GIS tool. As such it is not full-featured even there are plugins giving additional capabilities. The basic work OpenJUMP does well. -Jukka Rahkonen- From lorenzetti at FAUNALIA.IT Fri Jan 11 00:30:55 2008 From: lorenzetti at FAUNALIA.IT (Walter Lorenzetti) Date: Fri, 11 Jan 2008 09:30:55 +0100 Subject: Color as hex value Message-ID: Hi list, I'm working with MS5 but I've a problem with color and similar keyword: I can't declare colors as a hex value Someone had similar problem? Thanks in advance Walter -- Please no .doc, .xls, .ppt, .dwg: https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats Walter Lorenzetti email+jabber: lorenzetti at faunalia.it www.faunalia.it Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy From thomas.bonfort at GMAIL.COM Fri Jan 11 01:16:09 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Fri, 11 Jan 2008 10:16:09 +0100 Subject: Color as hex value In-Reply-To: <4787293F.2020303@faunalia.it> Message-ID: are you quoting your colors? COLOR "#ff0000" thomas On Jan 11, 2008 9:30 AM, Walter Lorenzetti wrote: > Hi list, > > I'm working with MS5 but I've a problem with color and similar keyword: > I can't declare colors as a hex value > Someone had similar problem? > > Thanks in advance > Walter > > -- > Please no .doc, .xls, .ppt, .dwg: > https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats > > Walter Lorenzetti > email+jabber: lorenzetti at faunalia.it > www.faunalia.it > Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 > Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy > From lorenzetti at FAUNALIA.IT Fri Jan 11 01:26:38 2008 From: lorenzetti at FAUNALIA.IT (Walter Lorenzetti) Date: Fri, 11 Jan 2008 10:26:38 +0100 Subject: Color as hex value In-Reply-To: Message-ID: thomas bonfort ha scritto: > are you quoting your colors? > > COLOR "#ff0000" > > thomas > > > I'm very Stupid :-[ I don't think this! Thanks Walter -- Please no .doc, .xls, .ppt, .dwg: https://www.faunalia.it/dokuwiki/doku.php?id=public:OpenFormats Walter Lorenzetti email+jabber: lorenzetti at faunalia.it www.faunalia.it Cell: (+39) 347-6597931 Tel+Fax: (+39) 0587-213742 Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy -------------- next part -------------- An HTML attachment was scrubbed... URL: From map.user at YAHOO.COM Fri Jan 11 02:12:05 2008 From: map.user at YAHOO.COM (User Map) Date: Fri, 11 Jan 2008 02:12:05 -0800 Subject: anchor position Message-ID: hi, i have a postgre table with the column of anchor position and orientation. Orietation defines the angle in tenths of degree and the anchor position is a number between 0 and 8 that specifies which part of the text is bound to the anchor point. Each text string that is captured with cartographic information has a location in the text string, known as its anchorPosition, which is bound to the digitised coordinate, known as its anchorPoint. There are nine defined locations, identified by the numbers 0?8. how can i use this anchor position for showing the lable acccordinly, because using only the orientation in the ANGLE is not labling correctly. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at PETERSE-UITHUIZEN.COM Fri Jan 11 03:55:58 2008 From: peter at PETERSE-UITHUIZEN.COM (Peter Peterse) Date: Fri, 11 Jan 2008 12:55:58 +0100 Subject: projection EPSG:4362 vs EPSG:29882 Message-ID: Hello all, I'm having problems with the projection and The co?rdinates should be the same. The bbox is an rect from 100 by 100 km EPSG:4362 gives only a differend scalebar (150km) I'v attached my map file (osm.map) with this message Can anyone give me a clue whats going false? regards, Peter -------------- next part -------------- A non-text attachment was scrubbed... Name: osm.map Type: application/octet-stream Size: 2291 bytes Desc: not available URL: From Jukka.Rahkonen at MMMTIKE.FI Fri Jan 11 04:16:52 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 11 Jan 2008 14:16:52 +0200 Subject: projection EPSG:4362 vs EPSG:29882 Message-ID: Hi, If I look at your request, do I see &SRS=EPSG:4326 Is that corrert or typo? -Jukka- -----Alkuper?inen viesti----- L?hett?j?: UMN MapServer Users List puolesta: Peter Peterse L?hetetty: pe 11.1.2008 13:55 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] projection EPSG:4362 vs EPSG:29882 Hello all, I'm having problems with the projection and The co?rdinates should be the same. The bbox is an rect from 100 by 100 km EPSG:4362 gives only a differend scalebar (150km) I'v attached my map file (osm.map) with this message Can anyone give me a clue whats going false? regards, Peter From peter at PETERSE-UITHUIZEN.COM Fri Jan 11 04:22:54 2008 From: peter at PETERSE-UITHUIZEN.COM (Peter Peterse) Date: Fri, 11 Jan 2008 13:22:54 +0100 Subject: projection EPSG:4362 vs EPSG:29882 In-Reply-To: Message-ID: Oeps. EPSG:4326 is correct the typo is EPSG:4362 > Hi, > > If I look at your request, do I see &SRS=EPSG:4326 Is that corrert or > typo? > > -Jukka- > > > -----Alkuper?inen viesti----- > L?hett?j?: UMN MapServer Users List puolesta: Peter Peterse > L?hetetty: pe 11.1.2008 13:55 > Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU > Aihe: [UMN_MAPSERVER-USERS] projection EPSG:4362 vs EPSG:29882 > > Hello all, > > I'm having problems with the projection > > > and > > > The co?rdinates should be the same. The bbox is an rect from 100 by 100 km > EPSG:4362 gives only a differend scalebar (150km) > I'v attached my map file (osm.map) with this message > Can anyone give me a clue whats going false? > > regards, > > Peter > From diegoguidi at GMAIL.COM Fri Jan 11 04:58:29 2008 From: diegoguidi at GMAIL.COM (Diego Guidi) Date: Fri, 11 Jan 2008 13:58:29 +0100 Subject: SDE geometric network support? In-Reply-To: Message-ID: Hi, I'm searching to know if it's possible with mapserver to publish SDE geometric network data stored in a SDE/Oracle instance. Any suggestions, or link to specific documentation about this? Thanks in advance. Diego Guidi From zhonghaiw at GMAIL.COM Fri Jan 11 05:31:10 2008 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Fri, 11 Jan 2008 14:31:10 +0100 Subject: Data format problem - GDFOUT and SIFP Message-ID: Hi folks, I've got some data today from Navteq, It's weird that i cannot open it with the GIS software I have, i thought i may open it with OGR/GDAL, unfortunately, I did not make it. I know that this problem is not about MapServer, since the guys here are most GIS gurus, i think maybe someone here can help me figure out how to open them or translate them into a well-known GIS format. The data has the file extension: GDFOUT and SIFP Hope that you guys can help me. Kind Regards Zhonghai -------------- next part -------------- An HTML attachment was scrubbed... URL: From diegoguidi at GMAIL.COM Fri Jan 11 06:11:17 2008 From: diegoguidi at GMAIL.COM (D_Guidi) Date: Fri, 11 Jan 2008 06:11:17 -0800 Subject: SDE geometric network support? Message-ID: Hi, I'm searching to know if it's possible with mapserver to publish SDE geometric network data stored in a SDE/Oracle instance. Any suggestions, or link to specific documentation about this? Thanks in advance. Diego Guidi -- View this message in context: http://www.nabble.com/SDE-geometric-network-support--tp14756182p14756182.html Sent from the Mapserver - User mailing list archive at Nabble.com. From wallacher at INNOMIS.COM Fri Jan 11 07:50:20 2008 From: wallacher at INNOMIS.COM (Wally Maddoc) Date: Fri, 11 Jan 2008 09:50:20 -0600 Subject: PHP/Mapscript: send map to browser directly Message-ID: Hi list. The usual way to send a map to the browser is to store the image file (e.g mymap.png) on the server and invoke the URL to this file in the HTML-Code. I think of something like this: ________________________________________ draw(); $image_url=$image->saveWebImage() ... > ... Message-ID: you can directly use a php file as the SRC of the IMG tag Hope that helps. Guillaume Wally Maddoc a ?crit : > Hi list. > > The usual way to send a map to the browser is to store the image file (e.g > mymap.png) on the server and invoke the URL to this file in the HTML-Code. > I think of something like this: > ________________________________________ > $map = ms_newMapObj($map_path.$map_file) > ... > $image=$map->draw(); > $image_url=$image->saveWebImage() > ... > > > ... > ... > ________________________________________ > > > Is there a direct method to send the map to the browser without saving the > map in a file. I think of some corresponding PHP code: > > header('Content-type: image/png'); > imagepng($image); > > Thanks for any advice that anyone might have. > > Erik > -- From gregor at HOSTGIS.COM Fri Jan 11 07:53:41 2008 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 11 Jan 2008 08:53:41 -0700 Subject: PHP/Mapscript: send map to browser directly In-Reply-To: Message-ID: Wally Maddoc wrote: > The usual way to send a map to the browser is to store the image file (e.g > mymap.png) on the server and invoke the URL to this file in the HTML-Code. If you want to output the image directly, use $map->image->saveImage() with no filename. That sends it to stdout. Used with header() you can have the image downloaded or displayed or whatever. http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/imageobj -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From wallacher at INNOMIS.COM Fri Jan 11 08:11:06 2008 From: wallacher at INNOMIS.COM (Wally Maddoc) Date: Fri, 11 Jan 2008 10:11:06 -0600 Subject: PHP/Mapscript: send map to browser directly Message-ID: Gregor Mosheh schrieb: > Wally Maddoc wrote: >> The usual way to send a map to the browser is to store the image file (e.g >> mymap.png) on the server and invoke the URL to this file in the HTML-Code. > > If you want to output the image directly, use $map->image->saveImage() with no filename. That sends it to stdout. Used with header() you can have the image downloaded or displayed or whatever. > > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/imageobj > Thanks to Guilaume and Gregor. This exactly what I wanted. Best regards Erik From bfraser at GEOANALYTIC.COM Fri Jan 11 07:48:29 2008 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 11 Jan 2008 08:48:29 -0700 Subject: anchor position Message-ID: One way would be to create a Mapserver-compatible ANGLE column on the table (or a view) and populate it in PostgreSQL with values from the orientation column: update mytable set angle = orientation/10 I think what you call the anchor point is the "justification" of the text. I think Mapserver considers the point to be the lower left of the text, but you may need to experiment to confirm this. It will likely be necessary to do similar things to calculate the position of the text. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "User Map" To: Sent: Friday, January 11, 2008 3:12 AM Subject: [UMN_MAPSERVER-USERS] anchor position hi, i have a postgre table with the column of anchor position and orientation. Orietation defines the angle in tenths of degree and the anchor position is a number between 0 and 8 that specifies which part of the text is bound to the anchor point. Each text string that is captured with cartographic information has a location in the text string, known as its anchorPosition, which is bound to the digitised coordinate, known as its anchorPoint. There are nine defined locations, identified by the numbers 0?8. how can i use this anchor position for showing the lable acccordinly, because using only the orientation in the ANGLE is not labling correctly. ____________________________________________________________ ________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs From Bob.Basques at CI.STPAUL.MN.US Fri Jan 11 16:31:20 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 11 Jan 2008 18:31:20 -0600 Subject: Googlish Mapfile Message-ID: All, I'm getting close to publishing the MAPFILE I've been working on. The results to date can be seen here: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml# First off, thanks to those that answered the original query about MapFiles that were already out there, they helped quite a bit with the getting started part. A couple of requests though. ** Does anyone have any better highway Shield symbols as a TRUETYPE font that can be redistributed? I would like to include a set with the MapFile that's published. ** Does anyone have a good TRUETYPE font that I can add to the distribution, or is this a non issue? ** Does anyone out there have a need to have the MapFile broken up by Road classification? GeoMoose for example is based on the idea that the user has much of the display control, and separating the display of the roads into separate layer classes might be plus for some folks. I think there is a good reason for this in a dynamic generation interface because of the performance boost that this could help with. The basic idea would be to break out the local roads for example and have them display as their own layer. I may implement this in the test interface above just to test response times. It would help with my incentive if there were folks interested in this sort of thing. Notes: It's a little slow at some zooms, be advised that there has been little to no speed optimization applied yet. It can run much quicker than it does now, our interest is in a Dynamic image generation, but this could also be applied to a tiled implementation for OpenLayers for example. This MapFile is ONLY for the Road network, it does not include the water/lake, RailRoads, Parks, etc. I may or may not get to these over time, we'll see what happens. Future stuff: Points of Interest (City names, etc): ** Does anyone have a dataset or pointer to one for Cities with Populations that can be redistributed. Thanks bobb **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** From sglawi at WEB.DE Sat Jan 12 02:29:43 2008 From: sglawi at WEB.DE (sg1) Date: Sat, 12 Jan 2008 02:29:43 -0800 Subject: WFS requests ignore PostGIS columns beside the Geometry and ID column Message-ID: Hi everybody, i extracted ArcGIS feature classes to shapefiles and imported them into a PostGIS database. Then i formulated a simple WMS request - everything worked fine. Then I tried setting up a WFS request. I got some results, but somehow the result ignored every column but the gid and the_geom! actually the getcapabilities return no errors and also the getfeature returns with no errors, just the column attributes are missing! Up to now there's just one more column,that should be integrated too. It is called 'wegnr' - type is 'character varying' The interesting thing is, that the column is also missing when I use the Shapefile as data source. Schema, ns are default. Usually the column should be described by another tab, but it's missing I can't find the error. As I can access the data in the database I thought it's a mapserver problem, but I'm not sure The describeFeatureType request looks as followed: ################################################################# ? ? ? ? ? ? ? ? ################################################### That's an extract of the layer in the Mapfile: LAYER NAME 'wanderwege' TYPE LINE CONNECTION 'user=postgres password=Si18JaudcTdW. dbname=postgis host=localhost port=5432' CONNECTIONTYPE POSTGIS DATA 'the_geom from wanderwege' DUMP TRUE STATUS OFF METADATA 'wms_title' 'wanderwege' 'wms_srs' 'EPSG:31285' 'wms_title' 'ww' 'wfs_title' 'ww' 'wfs_typename' 'ww' 'wfs_request_method' 'get' 'wfs_service' 'wfs' 'wfs_version' '1.0.0' 'wfs_extent' '392570 145627 578166 218654' 'wfs_featureid' 'gid' 'wfs_tname' 'wegnr' 'wfs_srs' 'EPSG:31285' 'gml_include_items' 'all ' END END ########################################## Thanks for every idea you guys have, I'm quite at my wits' end sg1 -- View this message in context: http://www.nabble.com/WFS-requests-ignore-PostGIS-columns-beside-the-Geometry-and-ID-column-tp14766031p14766031.html Sent from the Mapserver - User mailing list archive at Nabble.com. From peter at PETERSE-UITHUIZEN.COM Sat Jan 12 05:08:16 2008 From: peter at PETERSE-UITHUIZEN.COM (Peter Peterse) Date: Sat, 12 Jan 2008 14:08:16 +0100 Subject: Googlish Mapfile In-Reply-To: Message-ID: Hey looks good. > Future stuff: > > Points of Interest (City names, etc): > > ** Does anyone have a dataset or pointer to one for Cities with > Populations that can be redistributed. > Did you looked at www.openstreetmap.org? Peter From pscott at UWC.AC.ZA Sat Jan 12 05:10:27 2008 From: pscott at UWC.AC.ZA (Paul Scott) Date: Sat, 12 Jan 2008 15:10:27 +0200 Subject: Googlish Mapfile In-Reply-To: <61175.82.95.223.120.1200143296.squirrel@mail.peterse-uithuizen.com> Message-ID: On Sat, 2008-01-12 at 14:08 +0100, Peter Peterse wrote: > > ** Does anyone have a dataset or pointer to one for Cities with > > Populations that can be redistributed. > > > > Did you looked at www.openstreetmap.org? and www.geonames.org --Paul -------------- next part -------------- All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm From pcreso at PCRESO.COM Sat Jan 12 11:39:56 2008 From: pcreso at PCRESO.COM (Brent Wood) Date: Sat, 12 Jan 2008 11:39:56 -0800 Subject: Googlish Mapfile (global city datsets) In-Reply-To: <61175.82.95.223.120.1200143296.squirrel@mail.peterse-uithuizen.com> Message-ID: > > Points of Interest (City names, etc): > > > > ** Does anyone have a dataset or pointer to one for Cities with > > Populations that can be redistributed. Hi, I know of two datasets which have this sort of info. Both the VMAP0 & NGA datasets can pretty easily be loaded into PostGIS tables, & indices on spatial & aspatial attributes generated to work well with mapserver. Keeping the data as shapefiles quickly becomes an administrative nightmare, so using a database to manage data does make using these data much easier. FYI, I found the NGA PC field made a reasonable filter for scale dependent layers of populated places with mapserver. The vmap0 datasets: http://earth-info.nga.mil/publications/vmap0.html http://www.mapability.com/index1.html?http&&&www.mapability.com/info/vmap0_index.html and the higher resolution & newer but contraversially incomplete vmap1: http://www.mapability.com/index1.html?http&&&www.mapability.com/info/vmap1_index.html Also NIMA's NGA dataset: description: http://earth-info.nga.mil/gns/html/gis_countryfiles.htm download (all the various country files as one zip): http://earth-info.nga.mil/gns/html/geonames_dd_dms_date_20080108.zip Hope this helps... Brent Wood From Josh.Hevenor at DPRA.COM Sat Jan 12 15:01:00 2008 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Sat, 12 Jan 2008 17:01:00 -0600 Subject: distanceToPoint units Message-ID: I'm using PHP MapScript distanceToPoint() and my results are coming back in degrees. I'd like to see them in meters, etc. How I do I convert these? Thanks in advance, Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Phone: 905-333-4544 ext. 19 Fax: 905-333-0455 Cell: 905-320-7525 Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information 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 DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3247 bytes Desc: image001.jpg URL: From pal.kristensen at STATKART.NO Sun Jan 13 22:54:19 2008 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Sun, 13 Jan 2008 22:54:19 -0800 Subject: WFS requests ignore PostGIS columns beside the Geometry and ID column In-Reply-To: <14766031.post@talk.nabble.com> Message-ID: Hi! Have you tried adding the following to the METADATA section? "ows_include_items" "All" Regards, P?l Kristensen sg1 wrote: > > Hi everybody, > > i extracted ArcGIS feature classes to shapefiles and imported them into a > PostGIS database. > > Then i formulated a simple WMS request - everything worked fine. > > Then I tried setting up a WFS request. I got some results, but somehow the > result ignored every column but the gid and the_geom! > actually the getcapabilities return no errors and also the getfeature > returns with no errors, just the column attributes are missing! > > Up to now there's just one more column,that should be integrated too. It > is called 'wegnr' - type is 'character varying' > > The interesting thing is, that the column is also missing when I use the > Shapefile as data source. > Schema, ns are default. > Usually the column should be described by another tab, but > it's missing > > I can't find the error. > As I can access the data in the database I thought it's a mapserver > problem, but I'm not sure > > The describeFeatureType request looks as followed: > > ################################################################# > elementFormDefault="qualified" version="0.1"> > schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> > substitutionGroup="gml:_Feature"/> > ? > ? > ? > ? > maxOccurs="1"/> > > > > > substitutionGroup="gml:_Feature"/> > ? > ? > ? > ? > maxOccurs="1"/> > > > > > > > ################################################### > That's an extract of the layer in the Mapfile: > > LAYER > NAME 'wanderwege' > TYPE LINE > CONNECTION 'user=postgres password=Si18JaudcTdW. dbname=postgis > host=localhost port=5432' > CONNECTIONTYPE POSTGIS > DATA 'the_geom from wanderwege' > DUMP TRUE > STATUS OFF > METADATA > 'wms_title' 'wanderwege' > 'wms_srs' 'EPSG:31285' > 'wms_title' 'ww' > 'wfs_title' 'ww' > 'wfs_typename' 'ww' > 'wfs_request_method' 'get' > 'wfs_service' 'wfs' > 'wfs_version' '1.0.0' > 'wfs_extent' '392570 145627 578166 218654' > 'wfs_featureid' 'gid' > 'wfs_tname' 'wegnr' > 'wfs_srs' 'EPSG:31285' > 'gml_include_items' 'all ' > END > END > ########################################## > > Thanks for every idea you guys have, I'm quite at my wits' end > > sg1 > > -- View this message in context: http://www.nabble.com/WFS-requests-ignore-PostGIS-columns-beside-the-Geometry-and-ID-column-tp14766031p14796182.html Sent from the Mapserver - User mailing list archive at Nabble.com. From proyectos at ADROCHES.ORG Sun Jan 13 23:56:07 2008 From: proyectos at ADROCHES.ORG (Manuel Ballesteros Cardador) Date: Mon, 14 Jan 2008 08:56:07 +0100 Subject: SDE geometric network support? Message-ID: Hello. I would like to unsuscribe of the list. Thank you very much. ----- Original Message ----- From: "D_Guidi" To: Sent: Friday, January 11, 2008 3:11 PM Subject: [UMN_MAPSERVER-USERS] SDE geometric network support? > Hi, I'm searching to know if it's possible with mapserver to publish > SDE geometric network data stored in a SDE/Oracle instance. > Any suggestions, or link to specific documentation about this? > Thanks in advance. > Diego Guidi > -- > View this message in context: > http://www.nabble.com/SDE-geometric-network-support--tp14756182p14756182.html > Sent from the Mapserver - User mailing list archive at Nabble.com. I'm protected by SpamBrave http://www.spambrave.com/ From diegoguidi at GMAIL.COM Mon Jan 14 00:11:12 2008 From: diegoguidi at GMAIL.COM (Diego Guidi) Date: Mon, 14 Jan 2008 09:11:12 +0100 Subject: SDE geometric network support? In-Reply-To: <002c01c85682$ebf15ca0$ea00a8c0@GDRLosPedroches.Local> Message-ID: > Hello. > I would like to unsuscribe of the list. If you mean that I must unsubscribe to the list, due to the multiple posting, I'm really sorry about that. I made a mistake using nabble.com (maybe I've sent multiple requests due to some problems with my browser). I've tried to search a way to delete some copies of the messages... :( From proyectos at ADROCHES.ORG Mon Jan 14 00:27:43 2008 From: proyectos at ADROCHES.ORG (Manuel Ballesteros Cardador) Date: Mon, 14 Jan 2008 09:27:43 +0100 Subject: Unsubscribe Message-ID: Hello. I would like to unsubscribe to the list. Thank you very much. I'm protected by SpamBrave http://www.spambrave.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From kobben at ITC.NL Mon Jan 14 00:33:11 2008 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Mon, 14 Jan 2008 09:33:11 +0100 Subject: Data format problem - GDFOUT and SIFP In-Reply-To: <2534c4120801140026m5de1e0a3na60c90cb71d9e09e@mail.gmail.com> Message-ID: There might be, but that actually would be illegal ;-) On 14-01-2008 09:26, "Zhonghai Wang" wrote: > Yes, you are right, but there should be a way to open the data. > > Regards > > Zhonghai > > On Jan 11, 2008 7:21 PM, Barend K?bben wrote: > >> Don't know the details, but that's most likely a proprietary and protected >> format. NavTeq is not known for giving away their data in open formats, >> they >> make their money selling it... >> >> >> On 11-01-2008 14:31, "Zhonghai Wang" wrote: >> >>> Hi folks, >>> >>> I've got some data today from Navteq, It's weird that i cannot open it >> with >>> the GIS software I have, i thought i may open it with OGR/GDAL, >>> unfortunately, I did not make it. I know that this problem is not about >>> MapServer, since the guys here are most GIS gurus, i think maybe someone >>> here can help me figure out how to open them or translate them into a >>> well-known GIS format. >>> >>> The data has the file extension: GDFOUT and SIFP >>> >>> Hope that you guys can help me. >>> >>> Kind Regards >>> >>> Zhonghai >> >> From map.user at YAHOO.COM Mon Jan 14 01:25:52 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Mon, 14 Jan 2008 03:25:52 -0600 Subject: anchor position Message-ID: ya, thanks. i have tried with the orientation/10 option. i think anchor position is not really needed in this case. thanks again From Tom.Kralidis at EC.GC.CA Mon Jan 14 05:58:47 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 14 Jan 2008 08:58:47 -0500 Subject: WFS requests ignore PostGIS columns beside the Geometry and ID column In-Reply-To: A<14766031.post@talk.nabble.com> Message-ID: What version of MapServer are you using? As well, I see that you have set 'gml_include_items' to 'all '. If you remove the trailing space (i.e. 'all'), does that help? Failing this, I suggest you submit a testcase offline (minimal mapfile/sample data), which I can help you with. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of sg1 > Sent: 12 January, 2008 5:30 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WFS requests ignore PostGIS > columns beside the Geometry and ID column > > Hi everybody, > > i extracted ArcGIS feature classes to shapefiles and imported > them into a PostGIS database. > > Then i formulated a simple WMS request - everything worked fine. > > Then I tried setting up a WFS request. I got some results, > but somehow the result ignored every column but the gid and the_geom! > actually the getcapabilities return no errors and also the > getfeature returns with no errors, just the column attributes > are missing! > > Up to now there's just one more column,that should be > integrated too. It is called 'wegnr' - type is 'character varying' > > The interesting thing is, that the column is also missing > when I use the Shapefile as data source. > Schema, ns are default. > Usually the column should be described by another > tab, but it's missing > > I can't find the error. > As I can access the data in the database I thought it's a > mapserver problem, but I'm not sure > > The describeFeatureType request looks as followed: > > ################################################################# > elementFormDefault="qualified" version="0.1"> namespace="http://www.opengis.net/gml" > schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd"/> > substitutionGroup="gml:_Feature"/> > ? > ? > ? > ? > minOccurs="0" > maxOccurs="1"/> > > > > > substitutionGroup="gml:_Feature"/> > ? > ? > ? > ? > minOccurs="0" > maxOccurs="1"/> > > > > > > > ################################################### > That's an extract of the layer in the Mapfile: > > LAYER > NAME 'wanderwege' > TYPE LINE > CONNECTION 'user=postgres password=Si18JaudcTdW. > dbname=postgis host=localhost port=5432' > CONNECTIONTYPE POSTGIS > DATA 'the_geom from wanderwege' > DUMP TRUE > STATUS OFF > METADATA > 'wms_title' 'wanderwege' > 'wms_srs' 'EPSG:31285' > 'wms_title' 'ww' > 'wfs_title' 'ww' > 'wfs_typename' 'ww' > 'wfs_request_method' 'get' > 'wfs_service' 'wfs' > 'wfs_version' '1.0.0' > 'wfs_extent' '392570 145627 578166 218654' > 'wfs_featureid' 'gid' > 'wfs_tname' 'wegnr' > 'wfs_srs' 'EPSG:31285' > 'gml_include_items' 'all ' > END > END > ########################################## > > Thanks for every idea you guys have, I'm quite at my wits' end > > sg1 > > -- > View this message in context: > http://www.nabble.com/WFS-requests-ignore-PostGIS-columns-besi > de-the-Geometry-and-ID-column-tp14766031p14766031.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From map.user at YAHOO.COM Mon Jan 14 06:00:41 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Mon, 14 Jan 2008 08:00:41 -0600 Subject: still not getting to the interactive html Message-ID: hi, i am still not getting onto the interactive map, Example1-9.html of tutorial, link is: http://biometry.gis.umn.edu/cgi-bin/mapserv.exe? map=/ms4w/apps/tutorial/htdocs/example1- 9.map&layer=states&layer=modis i have checked the "imagepath" and "imageurl" for mapfile. i can get the image file if i use a static map with mode set to "browse" at the specified location in "imagepath". i think there is something wrong with the "imageurl" may be. i have my 1. html page and mapfile at location ="C:\ms4w\Apache\htdocs\chk\*.html/map" 2. the tmp directory at location = "C:\ms4w\apache\htdocs\chk\tmp" In ms4w/apache/log/error.log i get: [Thu Jan 10 09:19:31 2008] [error] [client 127.0.0.1] File does not exist: C:/ms4w/Apache/htdocs/chk/[img], referer: http://localhost/chk/example1-9.html i access the page as: "http://localhost/chk/example1-9.html" with no image for the browse mode, when i click the interactive form part i get this msEvalRegex(): Regular expression error. String ([map]) failed expression test. my html page is: ------------------------------------------------------------------------------------------- ---------------------------------------- MapServer 5.x Tutorial

Example 1.9: Interactive Maps and the Browse Mode

The map above was created in "map" mode. It is a static map (it doesn't change when you click on it).

Now, have a look at the mapfile:

------------------------------------------------------------------------------------------- --------------------------------------------- my mapfile is: MAP NAME db IMAGETYPE PNG EXTENT 246658.296875 56638.5 246745 56743.30078125 SIZE 800 600 IMAGECOLOR 255 255 255 FONTSET "C:/ms4w/Apache/htdocs/chk/fonts/fonts.list" WEB TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html' IMAGEPATH 'C:/ms4w/apache/htdocs/chk/tmp/ms_tmp/' IMAGEURL 'http://localhost/chk/tmp/ms_tmp/' # have also tried with IMAGEURL /tmp/ms_tmp/ and /ms_tmp/ END PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "k=0.999601" "x_0=400000" "y_0=-100000" "ellps=airy" "units=m" "no_defs " END #end projection #_______________________________________________________ _____________ # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states CONNECTIONTYPE postgis CONNECTION "user=***** password=****** dbname=***** host=localhost port=5432" DATA "geom from table" TYPE POLYGON STATUS OFF CLASS NAME "buildings" EXPRESSION ('[var]' = 'Buildings') STYLE COLOR 255 193 132 OUTLINECOLOR 255 0 0 END END END # States polygon layer ends here # End of LAYER DEFINITIONS #_______________________________________________________ _____________________ END # All map files must come to an end just as all other things must come to... ------------------------------------------------------------------------------------------- ---------------------------------------------------- please have a look at that, really concerned. thanks map.user From diegoguidi at GMAIL.COM Mon Jan 14 07:50:22 2008 From: diegoguidi at GMAIL.COM (Diego Guidi) Date: Mon, 14 Jan 2008 16:50:22 +0100 Subject: Howto: SDE attribute domains & getfeatureinfo Message-ID: I'm playing with Mapserver 5.0 WMS support, and I'm very happy to look at how mapserver is fast reading a lot of data from a SDE/Oracle datasource and serving them as WMS server, but... I need to know if it's possible to show attribute domains. Let me explain: i have a large dataset and a set of sde data sources that have attributes mapped to "attribute domains". This means that for my road table i have an attribute called TYPES that contains values like 01, 02, 03 and more... values for this codes are in another table in SDE database that contains values like 01 = highway, 02 = simple road, and more... When i use getfeatureinfo i need to show the "real" values of my attributes (highway, simple road, ecc...) but at this time MapServer (and GeoServer too...) shows the codes (10, 02, 03)... Any suggestion to resolve this problem? I need to manually query the SDE db, or MapServer it's able to do all this work if correctly configured? Thanks in advance. Diego Guidi From naci0002 at UMN.EDU Mon Jan 14 10:09:11 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Mon, 14 Jan 2008 12:09:11 -0600 Subject: still not getting to the interactive html In-Reply-To: Message-ID: Change your IMAGEURL line to: IMAGEURL "/chk/tmp/ms_tmp/" Remember IMAGEURL is relative to your web server's root. It's probably not well described in the mapfile reference documentation but that's the first place I'd check if I where you. -Perry SUBSCRIBE MAPSERVER-USERS mapuser wrote: > hi, > i am still not getting onto the interactive map, Example1-9.html of > tutorial, link is: > > http://biometry.gis.umn.edu/cgi-bin/mapserv.exe? > map=/ms4w/apps/tutorial/htdocs/example1- > 9.map&layer=states&layer=modis > > i have checked the "imagepath" and "imageurl" for mapfile. i can get > the image file if i use a static map with mode set to "browse" at the > specified location > > in "imagepath". i think there is something wrong with the "imageurl" > may be. > > i have my > 1. html page and mapfile at location > ="C:\ms4w\Apache\htdocs\chk\*.html/map" > 2. the tmp directory at location = "C:\ms4w\apache\htdocs\chk\tmp" > > In ms4w/apache/log/error.log i get: > > [Thu Jan 10 09:19:31 2008] [error] [client 127.0.0.1] File does not > exist: C:/ms4w/Apache/htdocs/chk/[img], referer: > http://localhost/chk/example1-9.html > > > i access the page as: "http://localhost/chk/example1-9.html" with no > image for the browse mode, when i click the interactive form part i get > this > > msEvalRegex(): Regular expression error. String ([map]) failed > expression test. > > my html page is: > ------------------------------------------------------------------------------------------- > ---------------------------------------- > > > MapServer 5.x Tutorial > > > > >

Example 1.9: Interactive Maps and the Browse Mode

The map above was created in "map" mode. It is a static map (it doesn't change when you click on it).

Now, have a look at the mapfile:

> > > > > > ------------------------------------------------------------------------------------------- > --------------------------------------------- > my mapfile is: > MAP > NAME db > IMAGETYPE PNG > EXTENT 246658.296875 56638.5 246745 56743.30078125 > > SIZE 800 600 > IMAGECOLOR 255 255 255 > FONTSET "C:/ms4w/Apache/htdocs/chk/fonts/fonts.list" > WEB > TEMPLATE 'C:/ms4w/Apache/htdocs/chk/example1-9.html' > IMAGEPATH 'C:/ms4w/apache/htdocs/chk/tmp/ms_tmp/' > IMAGEURL 'http://localhost/chk/tmp/ms_tmp/' > # have also tried with IMAGEURL /tmp/ms_tmp/ and /ms_tmp/ > END > > PROJECTION > "proj=tmerc" > "lat_0=49" > "lon_0=-2" > "k=0.999601" > "x_0=400000" > "y_0=-100000" > "ellps=airy" > "units=m" > "no_defs " > END #end projection > > #_______________________________________________________ > _____________ > # Start of LAYER DEFINITIONS --------------------------------------------- > LAYER # States polygon layer begins here > NAME states > CONNECTIONTYPE postgis > CONNECTION "user=***** password=****** dbname=***** > host=localhost port=5432" > > DATA "geom from table" > TYPE POLYGON > > > STATUS OFF > > > CLASS > NAME "buildings" > EXPRESSION ('[var]' = 'Buildings') > > STYLE > COLOR 255 193 132 > OUTLINECOLOR 255 0 0 > END > END > > > > END # States polygon layer ends here > # End of LAYER DEFINITIONS > #_______________________________________________________ > _____________________ > > > > END # All map files must come to an end just as all other things must > come to... > > ------------------------------------------------------------------------------------------- > ---------------------------------------------------- > > please have a look at that, really concerned. > thanks > map.user > From Bob.Basques at CI.STPAUL.MN.US Mon Jan 14 11:03:09 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 14 Jan 2008 13:03:09 -0600 Subject: Googlish Mapfile (Png24 vs Png8 for AGG output) Message-ID: All, Ok, now to get those really nice AGG outputs to display (at least half way) decently in IE. What's the best approach to getting any sort of AGG output to work in IE (WITH Alpha Transparency!!) We've tried a couple of thing that didn't seem to work very well. I have it outputting as straight PNG for now in my production interfaces, but the PNG24 looks a heck of a lot better. Any ideas? bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: From benftee at GMAIL.COM Mon Jan 14 11:34:46 2008 From: benftee at GMAIL.COM (Ben Thompson) Date: Mon, 14 Jan 2008 14:34:46 -0500 Subject: thematic mapping from external db Message-ID: Hello mappers, We're trying to color shapes on the map according to values from an extenal database. I tried adding 5 classes to the mapfile layer, each with a different color (and no expression) then setting $oShape->classindex to this or that value in the widget parseUrl function. This has no effect. Anyone know why? Am I wrongly assuming that shapindex is supposed to dictate which class the shape belongs to? Ideas for another way? Thanks, Ben Thompson -------------- next part -------------- An HTML attachment was scrubbed... URL: From nospam420 at YAHOO.COM Mon Jan 14 11:55:07 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 14 Jan 2008 11:55:07 -0800 Subject: Data format problem - GDFOUT and SIFP In-Reply-To: <2534c4120801110531x38a65bft14bf54488030a948@mail.gmail.com> Message-ID: meditor wrote: > > I've got some data today from Navteq, It's weird that i cannot open it > with > the GIS software I have, i thought i may open it with OGR/GDAL > > The data has the file extension: GDFOUT and SIFP > I also get data from Navteq. I don't bother with SIF, I think you might need Navteq software to deal with that, and I wouldn't be surprised if it's Windows only. I get my data from them in *.shp files, and use shp2pgsql to convert them to *.sql files that I can import into postgresql/postgis. Navteq unfortunately doesn't make it very obvious that their data is even available in SHP format. If you have access to https://navteq.subscribenet.com/, what you want are the downloads labeled NAVSTREETS ArcView. That gives you an ISO. Loopback mount it, and one of the files it contains (most of the bits) should be a *.tar.gz file. And if you gunzip and untar it, you'll find a bunch of sets of files, one set for each table, and in each set should be a *.shp file. -- View this message in context: http://www.nabble.com/Data-format-problem---GDFOUT-and-SIFP-tp14756434p14811690.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tim.Nolte at IPCSWIRELESSINC.COM Mon Jan 14 12:45:41 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 14 Jan 2008 15:45:41 -0500 Subject: thematic mapping from external db In-Reply-To: A Message-ID: Ben, I think what you need to be doing is actually use a spatial query on your shape data using the results of your external database. I'm not sure which MapScript you are using, but I've done this with PHP MapScript do dynamically change the data in my layers using separate database queries. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Thompson Sent: Monday, January 14, 2008 2:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] thematic mapping from external db Hello mappers, We're trying to color shapes on the map according to values from an extenal database. I tried adding 5 classes to the mapfile layer, each with a different color (and no expression) then setting $oShape->classindex to this or that value in the widget parseUrl function. This has no effect. Anyone know why? Am I wrongly assuming that shapindex is supposed to dictate which class the shape belongs to? Ideas for another way? Thanks, Ben Thompson From Tim.Nolte at IPCSWIRELESSINC.COM Mon Jan 14 13:31:17 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 14 Jan 2008 16:31:17 -0500 Subject: thematic mapping from external db In-Reply-To: Message-ID: Ben, I do this before doing my $oMap->draw(), that call is usually at the end of the process and makes your final image. Here is an example of what I use to set layer data on-the-fly. $layer_data = "geom FROM ("; $layer_data .= " SELECT st.bts_nbr,"; $layer_data .= " sgt.geom"; $layer_data .= " FROM site_tab st, site_geom_tab sgt"; $layer_data .= " WHERE st.site_id =".$_GET['site_id']; $layer_data .= " AND st.site_id = sgt.site_id"; $layer_data .= " ) USING SRID 8307"; //plot site $point_layer = $oMap->getLayerByName("Point"); $site_layer = ms_newLayerObj($oMap, $point_layer); $site_layer->set("group", "Cell Sites"); $site_layer->set("name", "Selected Site"); $site_layer->set("connectiontype",MS_ORACLESPATIAL); $site_layer->set("connection","username/password"); $site_layer->set("data", $layer_data); $site_layer->set("status",MS_ON); I think in your case your layers are probably Shapefiles, in this case you'd need to set the data parameters on the layer. You might need to use an OGR connection for you Shapefile layer to do a spatial query. I'll be honest that I haven't done Shapefile queries but mostly spatial database queries. I'm quite certain however that you can spatially query a Shapefile. Anyone else care to chime in? ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Ben Thompson [mailto:benftee at gmail.com] Sent: Monday, January 14, 2008 3:50 PM To: Nolte, Tim Subject: Re: [UMN_MAPSERVER-USERS] thematic mapping from external db I have php_mapscript_4.10.0.dll - is that the version number? Anyway, how and where in the process do you change the data values? I suspect that changing it in the shape object in a widget's parseUrl (as I'm doing) is either too late (map already drawn), or, the change does not persist (is made in a copy of the data in the shape object) Thanks... On Jan 14, 2008 3:45 PM, Nolte, Tim < Tim.Nolte at ipcswirelessinc.com > wrote: Ben, I think what you need to be doing is actually use a spatial query on your shape data using the results of your external database. I'm not sure which MapScript you are using, but I've done this with PHP MapScript do dynamically change the data in my layers using separate database queries. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ben Thompson Sent: Monday, January 14, 2008 2:35 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] thematic mapping from external db Hello mappers, We're trying to color shapes on the map according to values from an extenal database. I tried adding 5 classes to the mapfile layer, each with a different color (and no expression)then setting $oShape->classindex to this or that value in the widget parseUrl function. This has no effect. Anyone know why? Am I wrongly assuming that shapindex is supposed to dictate which class the shape belongs to? Ideas for another way? Thanks, Ben Thompson From pregmi at CLARKU.EDU Mon Jan 14 13:28:42 2008 From: pregmi at CLARKU.EDU (Prajna) Date: Mon, 14 Jan 2008 13:28:42 -0800 Subject: error while running new application Message-ID: hi, i am a beginner and trying to develop my own application running in map server. i am trying to incorporate zooming feature but when i refresh the map i get this error loadWeb(): Unknown identifier. Parsing error near ([):(line 1). i am not able to figure out what has gone run as everything else works well. i am using tutorial from mapserver.gis.umn.edu to develop a new application. :-) -- View this message in context: http://www.nabble.com/error-while-running-new-application-tp14742835p14742835.html Sent from the Mapserver - User mailing list archive at Nabble.com. From beyhan at DEPREM.GOV.TR Mon Jan 14 13:49:22 2008 From: beyhan at DEPREM.GOV.TR (Murat BEYHAN) Date: Mon, 14 Jan 2008 23:49:22 +0200 Subject: php 5.0 and mapserver 5.0 and mysql 4.1.18 In-Reply-To: <1532456BD081F146A176FB6929E6B0D1B66F96@KTWMAIL.ilpcs.com> Message-ID: Dear Friend, I use mapserver4.8.4, php 4.4.4 and Mysql.4.1.18. I would like to upgrade my system than I prefer to install latest release of mapserver and Php. So I was read before php5.0 doesn't support mapserver 4.0. I'm wondering that is it possible to use mapserver5.0 with php5.0. Are there any people use this couple of program properly also may I install mysql4.1.18 with this couple. Thank you for your response... Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From hobu.inc at GMAIL.COM Mon Jan 14 20:45:27 2008 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Mon, 14 Jan 2008 22:45:27 -0600 Subject: Howto: SDE attribute domains & getfeatureinfo In-Reply-To: Message-ID: On Jan 14, 2008, at 9:50 AM, Diego Guidi wrote: > I'm playing with Mapserver 5.0 WMS support, and I'm very happy to look > at how mapserver is fast reading a lot of data from a SDE/Oracle > datasource and serving them as WMS server, but... I need to know if > it's possible to show attribute domains. > Let me explain: i have a large dataset and a set of sde data sources > that have attributes mapped to "attribute domains". > This means that for my road table i have an attribute called TYPES > that contains values like 01, 02, 03 and more... > values for this codes are in another table in SDE database that > contains values like 01 = highway, 02 = simple road, and more... > When i use getfeatureinfo i need to show the "real" values of my > attributes (highway, simple road, ecc...) but at this time MapServer > (and GeoServer too...) shows the codes (10, 02, 03)... > Any suggestion to resolve this problem? I need to manually query the > SDE db, or MapServer it's able to do all this work if correctly > configured? Neither MapServer no GeoServer will fetch the domain values because they are contained in the "GeoDatabase", not in SDE proper. Or, to put it more precisely, the ArcSDE SDK doesn't know anything (or at least very little) about table linkages that ArcObjects et. al. use on top of the storing the spatial data and attributes in the database. This means things like topology and attribute domains are not available to the SDKs, and therefore, not available to MapServer or GeoServer using the methods that we use to connect to ArcSDE. Using a parallel connection to the database, say using OCI, you could follow the table linkages to get your domain values. A simple approach would be to write a script that connects to Oracle using your favorite scripting language and emits mapfile CLASS/LABEL information for each of the domain tables that you wish to map. Then use the snazzy INCLUDE syntax to pull in just your definitions for the layers (utilizing some sort of naming scheme). Not overly elegant or at all dynamic, but one way to do the job. Howard From yatendra.jaiswal at GMAIL.COM Mon Jan 14 20:53:00 2008 From: yatendra.jaiswal at GMAIL.COM (yatendra) Date: Mon, 14 Jan 2008 20:53:00 -0800 Subject: Please help me SDE C# asp.net and mapserver connection problem.... Message-ID: Hi to all, I am trying to connect mapserver with SDE. I have successfully connected in html(Map file working fine). Now i am trying this asp.net connetion with same map file. i followed all instruction and source codes given in tutorial http://www.paolocorti.net/public/wordpress/index.php/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/. application is giving error while running. and error is as follows in MapStream.aspx.cs msDrawMap(): Image handling error. Failed to draw layer named 'TILE'.;loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll;msGetSymbol(): General error message. Can't load requested dynamic library: C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll PLease help me out to solve this problem. Why i am getting this problem. Can anyone explain please? Thanks Regards Yatendra -- View this message in context: http://www.nabble.com/Please-help-me-SDE-C--asp.net-and-mapserver-connection-problem....-tp14749790p14749790.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ben at REMOTEINFORMATION.COM.AU Mon Jan 14 22:00:48 2008 From: ben at REMOTEINFORMATION.COM.AU (Ben Madin) Date: Tue, 15 Jan 2008 15:00:48 +0900 Subject: MapServer CGI parameters, substitution and html templates Message-ID: G'day all, I am slightly confused about how CGI parameters work. My understanding was you could pass a parameter in the url : &vesselid=2&endyear=2006 and then pick it up in the map file using: [vesselid] Which seems to work OK (I'm including it into a PostGIS query). I also thought you could then put: into your html template, and expect it to print selected into the appropriate box, but I get the following source returned. This seems to be working with radio buttons and checkboxes and text fields and text areas :
>

> Example 1.9: Interactive Maps and the Browse Mode >

>
> >
>

The map above was created in "map" > mode. It is > a static map (it doesn't change when you click on it). >

> > >
> > > > > > > >
> > > > >
> > width="400" height="300"> >
>
>
> > >

Now, have a look at the mapfile:
> >

> >
Zoom In Pan Zoom Out all work fine. I note that Pericles online tutorial uses select boxes, and they also work fine. Is there a limit on how many form items may be used? or what they may be called? or how they are injected back into the template? or have I completely gotten the wrong end of the stick on this one? cheers Ben -- Ben Madin REMOTE INFORMATION t : +61 8 9192 5455 f : +61 8 9192 5535 m : 0448 887 220 Broome WA 6725 ben at remoteinformation.com.au Out here, it pays to know... -------------- next part -------------- An HTML attachment was scrubbed... URL: From diegoguidi at GMAIL.COM Mon Jan 14 23:58:29 2008 From: diegoguidi at GMAIL.COM (Diego Guidi) Date: Tue, 15 Jan 2008 08:58:29 +0100 Subject: Howto: SDE attribute domains & getfeatureinfo In-Reply-To: <342C0530-ED9A-4E9D-863C-B6FF5E951AEC@gmail.com> Message-ID: Thanks to you and to all in the mailing list for the fast responses. I've ask for the same problem also in the Geoserver mailing list (I'm evaluating both the products for my purposes) and I've received an interesting response: http://www.nabble.com/Howto%3A-SDE-attribute-domains---getfeatureinfo-td14804613.html In fact, using a spatial view looks like an elegant solution and I think that also mapserver could manage this views very well. I try as soon as possible all the workarounds and i could post my experience :) On Jan 15, 2008 5:45 AM, Howard Butler wrote: > > > On Jan 14, 2008, at 9:50 AM, Diego Guidi wrote: > > > I'm playing with Mapserver 5.0 WMS support, and I'm very happy to look > > at how mapserver is fast reading a lot of data from a SDE/Oracle > > datasource and serving them as WMS server, but... I need to know if > > it's possible to show attribute domains. > > Let me explain: i have a large dataset and a set of sde data sources > > that have attributes mapped to "attribute domains". > > This means that for my road table i have an attribute called TYPES > > that contains values like 01, 02, 03 and more... > > values for this codes are in another table in SDE database that > > contains values like 01 = highway, 02 = simple road, and more... > > When i use getfeatureinfo i need to show the "real" values of my > > attributes (highway, simple road, ecc...) but at this time MapServer > > (and GeoServer too...) shows the codes (10, 02, 03)... > > Any suggestion to resolve this problem? I need to manually query the > > SDE db, or MapServer it's able to do all this work if correctly > > configured? > > Neither MapServer no GeoServer will fetch the domain values because > they are contained in the "GeoDatabase", not in SDE proper. Or, to > put it more precisely, the ArcSDE SDK doesn't know anything (or at > least very little) about table linkages that ArcObjects et. al. use on > top of the storing the spatial data and attributes in the database. > This means things like topology and attribute domains are not > available to the SDKs, and therefore, not available to MapServer or > GeoServer using the methods that we use to connect to ArcSDE. > > Using a parallel connection to the database, say using OCI, you could > follow the table linkages to get your domain values. A simple > approach would be to write a script that connects to Oracle using your > favorite scripting language and emits mapfile CLASS/LABEL information > for each of the domain tables that you wish to map. Then use the > snazzy INCLUDE syntax to pull in just your definitions for the layers > (utilizing some sort of naming scheme). Not overly elegant or at all > dynamic, but one way to do the job. > > Howard > > > -- Diego Guidi http://lacorrente.blogspot.com From proyectos at ADROCHES.ORG Tue Jan 15 00:17:47 2008 From: proyectos at ADROCHES.ORG (Manuel Ballesteros Cardador) Date: Tue, 15 Jan 2008 09:17:47 +0100 Subject: Unsubscribe Message-ID: Please, I would like to be unsubscribed. I'm protected by SpamBrave http://www.spambrave.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From map.user at YAHOO.COM Tue Jan 15 00:57:06 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Tue, 15 Jan 2008 02:57:06 -0600 Subject: still not getting to the interactive html Message-ID: hi, thanks for the immmediate reply, but i have tried that aswell. the image is not being created in the tmp folder when i try with mode set to browse using the interactive html page. but when i try to show it through static page and mode=browse, only then the image is saved to that folder. is there any thing with the cgi variables? still getting this : msEvalRegex(): Regular expression error. String ([map]) failed expression test. my interactive htmal page is: MapServer 5.x Tutorial
From luca76 at GMAIL.COM Tue Jan 15 02:56:24 2008 From: luca76 at GMAIL.COM (Luca Manganelli) Date: Tue, 15 Jan 2008 11:56:24 +0100 Subject: WMS Layer is not using my custom symbols Message-ID: Hi, I use MapServer 5.0 as WMS server. I have a Layer that uses a custom symbol. But I see it as a empty polygon without dashed line as border. If I comment out the line with SYMBOL "dash1", I see a continous line: LAYER ... TYPE POLYGON ... CLASS NAME "test" MINSIZE 2 MAXSIZE 5 STYLE SIZE 3 OUTLINECOLOR 0 0 0 SYMBOL "dash1" # <--- problem is here END END and in symbols.sym: SYMBOL NAME "dash1" TYPE cartoline LINECAP round LINEJOIN round LINEJOINMAXSIZE 3 STYLE 15 10 15 10 END END any idea? From szekerest at GMAIL.COM Tue Jan 15 02:58:01 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 15 Jan 2008 11:58:01 +0100 Subject: Please help me SDE C# asp.net and mapserver connection problem.... In-Reply-To: <14749790.post@talk.nabble.com> Message-ID: Yatendra, It seems the ASP runtime is not able to load the plugin dll. You might want try to copy this dll into the same directory where your ASP.NET host process is running. If the dll can be loaded from the same directory then it might be a security related issue. Another problem is that the SDE plugin is compiled as a 32 bit image and the 64 bit version of the .NET framework cannot load it, definitely. Best regards, Tamas 2008/1/15, yatendra : > Hi to all, > I am trying to connect mapserver with SDE. > I have successfully connected in html(Map file working fine). > Now i am trying this asp.net connetion with same map file. > i followed all instruction and source codes given in tutorial > http://www.paolocorti.net/public/wordpress/index.php/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/. > application is giving error while running. and error is as follows in > MapStream.aspx.cs > msDrawMap(): Image handling error. Failed to draw layer named > 'TILE'.;loadCustomLayerDLL: General error message. Failed to load dynamic > Layer LIB: > C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll;msGetSymbol(): General > error message. Can't load requested dynamic library: > C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll > > > PLease help me out to solve this problem. > Why i am getting this problem. > Can anyone explain please? > Thanks Regards > Yatendra > > > -- > View this message in context: http://www.nabble.com/Please-help-me-SDE-C--asp.net-and-mapserver-connection-problem....-tp14749790p14749790.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From james.mapserver at GMAIL.COM Tue Jan 15 03:26:28 2008 From: james.mapserver at GMAIL.COM (James Mapserver) Date: Tue, 15 Jan 2008 11:26:28 +0000 Subject: Projection problem with Virtual Earth / Google maps Message-ID: Projection problems with Google maps / Virtual Earth I don't really understand whats happening here - so would be grateful for any suggestions. I have 2 .map files serving out WMS data: - BNG.map - WGS84.map Both these map files are displaying the same data - but one has the raw data as British National Grid (epsg 27700) and the other as WGS84 (epsf 4326) When tested in a client such as MapInfo - alignment is exact for both However when displayed on virtual earth / google maps (using the projection <54004> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0+y_0=35 +k= 1.0 +units=m +no_defs <>) if using the WMS service from the WGS84.map file - alignment is fine if using the WMS service from the BNG.map file - the overlay is about 100m off to NW What I don't understand is why these both work fine in a client such as MapInfo, but only one fails in Virtual Earth / Google maps - as one works presumably I've got this working OK ? The difference is both that when being called from MapInfo the request uses SRS=27700 so no conversion is required It seems as if the conversion from 27700 to 54004 is messing up - but 4326 to 54004 works OK ? OK - looked a bit deeper in MapInfo - and if I change the WMS request from the BNG.map file to return data as SRS=4326 (as in the query below) - I get similar miss alignment GET /scripts/mapserv.exe?map=C:/Inetpub/wwwroot/MapserverService/Map/WMSTest.map&LAYERS=OSBUILD&VERSION= 1.1.1&REQUEST=GetMap&LAYERS=OSBUILD&STYLES=&SRS=EPSG:4326&BBOX=-3.296092, 51.945322,- 3.290018, 51.949813&WIDTH=971&HEIGHT=718&FORMAT=image/png&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xmlHTTP/1.1 I don't remeber having these issues when using mapserver via CGI - it only seems to relate to WMS Obviously I can convert all my data to WGS84 and avoid the problem - but thats not an ideal long term solution Any ideas Thanks James -------------- next part -------------- An HTML attachment was scrubbed... URL: From begodom at GMAIL.COM Tue Jan 15 03:51:24 2008 From: begodom at GMAIL.COM (SUBSCRIBE MAPSERVER-USERS Bego D.) Date: Tue, 15 Jan 2008 05:51:24 -0600 Subject: Problem Oracle Spatial Message-ID: Hello I?m new with Mapserver. I have set up an application with locals files without problems but now i want connect with Oracle Spatial for example with one of my layers. I follow all the steps in the http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto but it doesnt work. The other layers, from MapInfo, are working rigth. My mapfile is: LAYER NAME "CARRETERA" STATUS ON TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "user/pasword at bbdd" DATA "GEOLOC FROM CARRETERA using SRID 82337" DUMP TRUE CLASS STYLE OUTLINECOLOR 255 0 0 END END END And C:\ms4w\Apache\conf\httpd.conf SetEnv ORACLE_SID bbdd SetEnv TNS_ADMIN "c:/oracle/product/10.2.0/client_1/NETWORK/ADMIN" SetEnv ORACLE_HOME "c:/oracle/product/10.2.0/client_1" Thanks in advance From andreas.albarello at TERRITORIUMONLINE.COM Tue Jan 15 03:03:39 2008 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Tue, 15 Jan 2008 12:03:39 +0100 Subject: WMS Layer is not using my custom symbols In-Reply-To: Message-ID: On 15 Jan 2008, at 11:56, Luca Manganelli wrote: > Hi, > > I use MapServer 5.0 as WMS server. > I have a Layer that uses a custom symbol. But I see it as a empty > polygon without dashed line as border. If I comment out the line with > SYMBOL "dash1", I see a continous line: > > LAYER > ... > TYPE POLYGON > ... > CLASS > NAME "test" > MINSIZE 2 > MAXSIZE 5 > STYLE > SIZE 3 > OUTLINECOLOR 0 0 0 > SYMBOL "dash1" # <--- problem is here > END > END > > and in symbols.sym: > > SYMBOL > NAME "dash1" > TYPE cartoline > LINECAP round > LINEJOIN round > LINEJOINMAXSIZE 3 > STYLE 15 10 15 10 END > END > > any idea? Luca, I believe cartoline support has been discontinued in MapServer 5.0, at least as far as the AGG renderer is concerned. You might be better off using this SYMBOL definition: SYMBOL NAME "dash1" TYPE ELLIPSE POINTS 1 1 END STYLE 15 10 15 10 END END Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From amptarraco at HOTMAIL.COM Tue Jan 15 04:21:21 2008 From: amptarraco at HOTMAIL.COM (=?UTF-8?Q?Adri=C3=A0?=) Date: Tue, 15 Jan 2008 04:21:21 -0800 Subject: WMS Layer is not using my custom symbols In-Reply-To: Message-ID: Both your class and symbol definitions work fine for me on Mapserver 5.0 (see image) Check that you are really referencing the correct symbolset file in the SYMBOLSET directive http://www.nabble.com/file/p14838956/test.png Luca Manganelli wrote: > > Hi, > > I use MapServer 5.0 as WMS server. > I have a Layer that uses a custom symbol. But I see it as a empty > polygon without dashed line as border. If I comment out the line with > SYMBOL "dash1", I see a continous line: > > LAYER > ... > TYPE POLYGON > ... > CLASS > NAME "test" > MINSIZE 2 > MAXSIZE 5 > STYLE > SIZE 3 > OUTLINECOLOR 0 0 0 > SYMBOL "dash1" # <--- problem is here > END > END > > and in symbols.sym: > > SYMBOL > NAME "dash1" > TYPE cartoline > LINECAP round > LINEJOIN round > LINEJOINMAXSIZE 3 > STYLE 15 10 15 10 END > END > > any idea? > > -- View this message in context: http://www.nabble.com/WMS-Layer-is-not-using-my-custom-symbols-tp14837534p14838956.html Sent from the Mapserver - User mailing list archive at Nabble.com. From fsimon at UNIVALI.BR Tue Jan 15 04:13:34 2008 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Tue, 15 Jan 2008 10:13:34 -0200 Subject: Problem Oracle Spatial In-Reply-To: Message-ID: Hi, What is the error that Mapserver returns? Some ora-* error, ou a blank page? About the Apache, the user that runs the apache service has the read permission in the Oracle home directory? Did you installed the OCI (Oracle Call Interface) from the Oracle installation? Best regards. Fernando Simon SUBSCRIBE MAPSERVER-USERS Bego D. wrote: > Hello > > I?m new with Mapserver. > > I have set up an application with locals files without problems but now i want > connect with Oracle Spatial for example with one of my layers. > I follow all the steps in the > http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto but it doesnt > work. > The other layers, from MapInfo, are working rigth. > > My mapfile is: > > LAYER > NAME "CARRETERA" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE oraclespatial > CONNECTION "user/pasword at bbdd" > DATA "GEOLOC FROM CARRETERA using SRID 82337" > DUMP TRUE > CLASS > STYLE > OUTLINECOLOR 255 0 0 > END > END > END > > And C:\ms4w\Apache\conf\httpd.conf > > SetEnv ORACLE_SID bbdd > SetEnv TNS_ADMIN "c:/oracle/product/10.2.0/client_1/NETWORK/ADMIN" > SetEnv ORACLE_HOME "c:/oracle/product/10.2.0/client_1" > > > > Thanks in advance > > From Tim.Nolte at IPCSWIRELESSINC.COM Tue Jan 15 05:20:32 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Tue, 15 Jan 2008 08:20:32 -0500 Subject: php 5.0 and mapserver 5.0 and mysql 4.1.18 In-Reply-To: A<20080114214212.M45542@deprem.gov.tr> Message-ID: I'm currently running MapServer 5.0.0 and PHP 5.2.3 together without a problem. OS is Solaris 10 x86. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Murat BEYHAN Sent: Monday, January 14, 2008 4:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] php 5.0 and mapserver 5.0 and mysql 4.1.18 Dear Friend, I use mapserver4.8.4, php 4.4.4 and Mysql.4.1.18. I would like to upgrade my system than I prefer to install latest release of mapserver and Php. So I was read before php5.0 doesn't support mapserver 4.0. I'm wondering that is it possible to use mapserver5.0 with php5.0. Are there any people use this couple of program properly also may I install mysql4.1.18 with this couple. Thank you for your response... Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From adams at TERRESTRIS.DE Tue Jan 15 05:13:51 2008 From: adams at TERRESTRIS.DE (Till Adams) Date: Tue, 15 Jan 2008 14:13:51 +0100 Subject: Problem Oracle Spatial In-Reply-To: <478CA36E.2010508@univali.br> Message-ID: Fernando, did you laos try this: http://mapserver.gis.umn.edu/docs/howto/Configure%20Oracle%20and%20UMN Our main problem was to let apache know the env-variable of oracle. Regards, Till > Hi, > What is the error that Mapserver returns? Some ora-* error, ou a > blank page? > About the Apache, the user that runs the apache service has the > read permission in the Oracle home directory? Did you installed the > OCI (Oracle Call Interface) from the Oracle installation? > Best regards. > > Fernando Simon > > > SUBSCRIBE MAPSERVER-USERS Bego D. wrote: > >> Hello >> >> I?m new with Mapserver. >> I have set up an application with locals files without problems but >> now i want connect with Oracle Spatial for example with one of my >> layers. >> I follow all the steps in the >> http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto but it >> doesnt work. The other layers, from MapInfo, are working rigth. >> >> My mapfile is: >> >> LAYER NAME "CARRETERA" STATUS ON TYPE POLYGON CONNECTIONTYPE >> oraclespatial >> CONNECTION "user/pasword at bbdd" DATA "GEOLOC FROM CARRETERA using >> SRID 82337" >> DUMP TRUE >> CLASS STYLE OUTLINECOLOR 255 0 0 END END END >> And C:\ms4w\Apache\conf\httpd.conf >> >> SetEnv ORACLE_SID bbdd >> SetEnv TNS_ADMIN "c:/oracle/product/10.2.0/client_1/NETWORK/ADMIN" >> SetEnv ORACLE_HOME "c:/oracle/product/10.2.0/client_1" >> >> >> >> Thanks in advance >> >> > -- ***************************************** terrestris ist umgezogen! Die neue Adresse ab 01.07.2007 lautet: Irmintrudisstra?e 17, 53111 Bonn http://www.terrestris.de ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From map.user at YAHOO.COM Tue Jan 15 05:52:37 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Tue, 15 Jan 2008 07:52:37 -0600 Subject: edited image not being saved and displayed properly Message-ID: i have got a bit success in going through the interactive html page. i have used exampe1-9 of the tutorial, which is working fine, but as soon as i change the map file to my own data, then i get the full image only once i.e. at the time of first load. as soon as i click the image at any location, i get a blank image, and that is what is saved in the tmp directory, a blank image. why my new image is not being saved and displayed, can anyone please help. thanks. From David.Fawcett at STATE.MN.US Tue Jan 15 06:02:59 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 15 Jan 2008 08:02:59 -0600 Subject: edited image not being saved and displayed properly In-Reply-To: A Message-ID: Usually this issue is due to the EXTENT or PROJECTION settings. It sounds like you are really getting a new image with every request, it is just not showing any data. Make sure that your own data falls within the bounding box defined by the EXTENT at the top of the mapfile. The extent is defined in the units of your spatial reference system. For UTM this is meters, for lat/long it is decimal degrees, etc. Also, make sure that the value for UNITS is set to the proper units for your spatial reference system. Another thing to check is to see that your layer has a STATUS of DEFAULT, or you are adding the layer name to the post or get request (e.g. &layer=myNewLayer) If this doesn't help, I suggest posting the text from your map file. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS mapuser Sent: Tuesday, January 15, 2008 7:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] edited image not being saved and displayed properly i have got a bit success in going through the interactive html page. i have used exampe1-9 of the tutorial, which is working fine, but as soon as i change the map file to my own data, then i get the full image only once i.e. at the time of first load. as soon as i click the image at any location, i get a blank image, and that is what is saved in the tmp directory, a blank image. why my new image is not being saved and displayed, can anyone please help. thanks. From dnuttall at DNLT.COM Tue Jan 15 06:04:36 2008 From: dnuttall at DNLT.COM (Dave Nuttall) Date: Tue, 15 Jan 2008 08:04:36 -0600 Subject: php 5.0 and mapserver 5.0 and mysql 4.1.18 Message-ID: Ditto Tim's success story except I'm using CentOS with PHP 5.2.x, MySQL 5.0.48, Apache 2.2.x and Mapserver 5.0 with PHP/Mapscript as an Apache/PHP module. I did have to add Mapserver dependent packages such as GDAL, but the only thing I do NOT have running as a RHEL installable package is Mapserver/Mapscript itself. I will share SRPMS that should work with either CentOS 5.0 or CentOS 5.1. Email me privately to get access to the SRPMS. Dave Nuttall San Antonio, Texas From flavio at TYDAC.CH Tue Jan 15 07:24:28 2008 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 15 Jan 2008 16:24:28 +0100 Subject: Problem Oracle Spatial In-Reply-To: Message-ID: Hi check that you use the correct oci.dll version compatible with your oracle (the one coming along with MapServer might be outdated). normally under windows/system32. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch TYDAC SwissMaps: http://www.mapplus.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- Location: http://www.mapplus.ch/adr/bern/luternauweg/12 ---------------------------------------------------------------- From warmerdam at POBOX.COM Tue Jan 15 07:43:49 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 15 Jan 2008 10:43:49 -0500 Subject: Projection problem with Virtual Earth / Google maps In-Reply-To: Message-ID: James Mapserver wrote: > > Projection problems with Google maps / Virtual Earth > I don't really understand whats happening here - so would be grateful > for any suggestions. > I have 2 .map files serving out WMS data: > - BNG.map > - WGS84.map James, Are you building MapServer from source yourself? If so, could you possibly try upgrading to PROJ 4.6.0? This release makes a fundamental change in how changes of ellipsoid that lack datum shift parameters are done that may be at the root of your problem. Alternatively, if you stick with an older PROJ.4 please read the last question in the PROJ FAQ: http://proj.maptools.org/faq.html Hmm, on reflection the problem is more likely that *no* datum shift is being done when going from the OSGB 1936 datum underlying the BNG projection. Ideally what you would like it to do is apply a datum shift from OSGB 1936. The EPSG lookup file does not have a datum shift for EPSG:27700 but I think a reasonable good one is: +towgs84=446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894 Consider adding that into the <27700> entry in the EPSG init file. I'm sorry, but I lack time for a deeper analysis. I hope this will give you something to work with. Best regards, > Both these map files are displaying the same data - but one has the raw > data as British National Grid (epsg 27700) and the other as WGS84 (epsf > 4326) > When tested in a client such as MapInfo - alignment is exact for both > However when displayed on virtual earth / google maps (using the > projection <54004> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 > +lon_0=0.0 +x_0=0.0 +y_0=35 +k=1.0 +units=m +no_defs <>) > if using the WMS service from the WGS84.map file - alignment is fine > if using the WMS service from the BNG.map file - the overlay is about > 100m off to NW > What I don't understand is why these both work fine in a client such as > MapInfo, but only one fails in Virtual Earth / Google maps - as one > works presumably I've got this working OK ? > The difference is both that when being called from MapInfo the request > uses SRS=27700 so no conversion is required > It seems as if the conversion from 27700 to 54004 is messing up - but > 4326 to 54004 works OK ? > > OK - looked a bit deeper in MapInfo - and if I change the WMS request > from the BNG.map file to return data as SRS=4326 (as in the query below) > - I get similar miss alignment > > GET > /scripts/mapserv.exe?map=C:/Inetpub/wwwroot/MapserverService/Map/WMSTest.map&LAYERS=OSBUILD&VERSION= > 1.1.1&REQUEST=GetMap&LAYERS=OSBUILD&STYLES=&SRS=EPSG:4326&BBOX=-3.296092,51.945322,- > 3.290018,51.949813&WIDTH=971&HEIGHT=718&FORMAT=image/png&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&EXCEPTIONS=application/vnd.ogc.se_xml > HTTP/1.1 > > I don't remeber having these issues when using mapserver via CGI - it > only seems to relate to WMS > > Obviously I can convert all my data to WGS84 and avoid the problem - but > thats not an ideal long term solution > > Any ideas > > Thanks > James > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From sglawi at WEB.DE Tue Jan 15 08:14:22 2008 From: sglawi at WEB.DE (sg1) Date: Tue, 15 Jan 2008 08:14:22 -0800 Subject: WFS requests ignore PostGIS columns beside the Geometry and ID column In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CEEB5@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Hi everybody, I use the ms4w package version 2.2.6. I tried your suggestions, but nothing helped, until - just because of pure frustration - i changed the ' signs to " So instead of 'gml_include_items' 'all' it's "gml_include_items" "all" now And this works! I don't know exactly why, maybe one of you can tell me if there is a significant difference in using different quotation marks? I knew it had to be a obvious error, but that is just... Thanks for your time and help! sg1 Kralidis,Tom [Burlington] wrote: > > > What version of MapServer are you using? > > As well, I see that you have set 'gml_include_items' to 'all '. If you > remove the trailing space (i.e. 'all'), does that help? > > Failing this, I suggest you submit a testcase offline (minimal > mapfile/sample data), which I can help you with. > > ..Tom > > -- View this message in context: http://www.nabble.com/WFS-requests-ignore-PostGIS-columns-beside-the-Geometry-and-ID-column-tp14766031p14841679.html Sent from the Mapserver - User mailing list archive at Nabble.com. From map.user at YAHOO.COM Tue Jan 15 08:55:13 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Tue, 15 Jan 2008 10:55:13 -0600 Subject: edited image not being saved and displayed properly Message-ID: hi, i have set the EXTENT to the extent of particular postcode. i think you are right that the extent changes every time when i click, which is not in the specified extent. how can i set the extent values. i want to show that particular area. if i set the extent value to the extent of my table, then how can i be able to show the small area. my layer status is set to ON and projection is 27700 units is meters my mapfile is MAP NAME EX1.9_ IMAGETYPE PNG24 UNITS METERS EXTENT 248029.59375 54095.69921875 248179.609375 54245.703125# EXTENT OF SPECIFIC AREA SIZE 400 300 #SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" FONTSET "../fonts/fonts.list" WEB TEMPLATE 'example1-9.html' IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "k=0.999601" "x_0=400000" "y_0=-100000" "ellps=airy" "units=m" "no_defs " END #end projection # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME tarea CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=MasterMap host=localhost port=5432" DATA "geom from topographicarea" TYPE POLYGON STATUS ON PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "k=0.999601" "x_0=400000" "y_0=-100000" "ellps=airy" "units=m" "no_defs " END #end projection CLASS NAME "buildings" TYPE POLYGON STATUS ON EXPRESSION ('[theme]'='Buildings') STYLE COLOR 255 196 196 OUTLINECOLOR 0 0 0 END END #my class end END #LAYER END #END MAP From David.Fawcett at STATE.MN.US Tue Jan 15 09:17:44 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 15 Jan 2008 11:17:44 -0600 Subject: edited image not being saved and displayed properly In-Reply-To: A Message-ID: The extent that you set in your map file should be set to the full extent of all of the data that you will display on the map. If you look at the URL that the template page creates, it is likely passing a different bounding box for the extent of the data that you want to see for a particular image. I would simplify your map file even more: 1. Comment out your projection blocks. If you are only showing data from one projection, you don't need to include projection blocks. 2. set your layer STATUS to DEFAULT for now. This will make it draw regardless of whether you explicitly ask for the layer in the URL GET or POST. 3. Comment out your expression. If your expression isn't quite right, you may be eliminating all of the features in the data set. It would be useful to have you also include the URL that the page is using to call MapServer. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS mapuser Sent: Tuesday, January 15, 2008 10:55 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] edited image not being saved and displayed properly hi, i have set the EXTENT to the extent of particular postcode. i think you are right that the extent changes every time when i click, which is not in the specified extent. how can i set the extent values. i want to show that particular area. if i set the extent value to the extent of my table, then how can i be able to show the small area. my layer status is set to ON and projection is 27700 units is meters my mapfile is MAP NAME EX1.9_ IMAGETYPE PNG24 UNITS METERS EXTENT 248029.59375 54095.69921875 248179.609375 54245.703125# EXTENT OF SPECIFIC AREA SIZE 400 300 #SHAPEPATH "../data" SYMBOLSET "../symbols/symbols35.sym" FONTSET "../fonts/fonts.list" WEB TEMPLATE 'example1-9.html' IMAGEPATH '/ms4w/tmp/ms_tmp/' IMAGEURL '/ms_tmp/' END PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "k=0.999601" "x_0=400000" "y_0=-100000" "ellps=airy" "units=m" "no_defs " END #end projection # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME tarea CONNECTIONTYPE postgis CONNECTION "user=postgres password=postgres dbname=MasterMap host=localhost port=5432" DATA "geom from topographicarea" TYPE POLYGON STATUS ON PROJECTION "proj=tmerc" "lat_0=49" "lon_0=-2" "k=0.999601" "x_0=400000" "y_0=-100000" "ellps=airy" "units=m" "no_defs " END #end projection CLASS NAME "buildings" TYPE POLYGON STATUS ON EXPRESSION ('[theme]'='Buildings') STYLE COLOR 255 196 196 OUTLINECOLOR 0 0 0 END END #my class end END #LAYER END #END MAP From frodewj at GMAIL.COM Tue Jan 15 09:35:15 2008 From: frodewj at GMAIL.COM (=?UTF-8?Q?Frode_Wiseth_J=C3=B8rgensen?=) Date: Tue, 15 Jan 2008 09:35:15 -0800 Subject: Problem with MS4W / PHP-CGI Message-ID: Hi all! I have some web applications on dedicated servers (Win2003) that use Mapserver version 4.10 and version 5.0. I?m using Mapserver through MS4W/Php-Mapscript. Problem 1: I sometimes have problems with a couple of php-cgi processes ?hangs? and uses all available CPU. After killing these processes, all is back to normal. Problem 2: I also get a CGI/FastCGI error which throws: - a popup (seems like it refers to libcurl.dll) - Error in the Event Viewer (seems like it refers to libcurl.dll) - Error in the MS4W/Apache error log See attached image. Has anybody experienced this? Maybe somebody knows if there is some connection between my two problems, or have some hint about what to do? Thanks! Frode http://www.nabble.com/file/p14842684/fastcgierror.jpg -- View this message in context: http://www.nabble.com/Problem-with-MS4W---PHP-CGI-tp14842684p14842684.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at ZEELANDNET.NL Tue Jan 15 09:37:13 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Tue, 15 Jan 2008 18:37:13 +0100 Subject: WFS requests ignore PostGIS columns beside the Geometry and ID column In-Reply-To: <14841679.post@talk.nabble.com> Message-ID: My guess is that it is a windows related problem. I had it too. Sorry I failed to read the list in time to help you with the answer. sg1 schreef: > Hi everybody, > > I use the ms4w package version 2.2.6. > > I tried your suggestions, but nothing helped, until - just because of pure > frustration - i changed the ' signs to " > So instead of 'gml_include_items' 'all' > it's > "gml_include_items" "all" now > > And this works! > > I don't know exactly why, maybe one of you can tell me if there is a > significant difference in using different quotation marks? > I knew it had to be a obvious error, but that is just... > > Thanks for your time and help! > > sg1 > > > > > Kralidis,Tom [Burlington] wrote: > >> What version of MapServer are you using? >> >> As well, I see that you have set 'gml_include_items' to 'all '. If you >> remove the trailing space (i.e. 'all'), does that help? >> >> Failing this, I suggest you submit a testcase offline (minimal >> mapfile/sample data), which I can help you with. >> >> ..Tom >> >> >> > > From paul_pag00 at HOTMAIL.COM Tue Jan 15 09:29:06 2008 From: paul_pag00 at HOTMAIL.COM (Paul Alarcon) Date: Tue, 15 Jan 2008 17:29:06 +0000 Subject: help with item query Message-ID: Hi all Im trying to create the itemfeaturequery in mapserver with html but i cant, im using mapserver 5.0 and postgis could someone explain me how itemfeaturequery work please Grettings Paul A. _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ From work at XWB.COM Tue Jan 15 13:52:19 2008 From: work at XWB.COM (Chip Taylor) Date: Tue, 15 Jan 2008 13:52:19 -0800 Subject: Bounding boxes In-Reply-To: Message-ID: Ok, a wild stab in the dark here. Does anyone have, or know where to find, or have any ideas how to derive, a table/spreadsheet/xml document of the bounding boxes (in decimal degrees) of all of the US Counties (and county-like entities)? Chip Taylor Prepared Response, Inc From Josh.Hevenor at DPRA.COM Tue Jan 15 15:18:04 2008 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Tue, 15 Jan 2008 17:18:04 -0600 Subject: php mapscript queryByAttributes Message-ID: I want to query an SDE layer by two fields...is there documentation on the format required? My code looks something like: if($layer->queryByAttributes("(field1,field2)", "([ field1]=$field1 and [field2]=1", MS_MULTIPLE)==MS_SUCCESS){ $numRes = $layer->getNumResults(); $layer->open(); for($k=0;$k<$numRes;$k++){ $res = $layer->getResult($k); $shape = $layer->getShape($res->tileindex, $res->shapeindex); // do something . . . } And I'm getting an error that looks like: [MapServer Error]: msSDELayerInitItemInfo(): A specified CLASSITEM, FILTERITEM, or expression key cannot be found in c:\... Sorry if this is an obvious thing. I usually take more time to explore but I have a deadline looming. PHP 5.2.4 MapServer version 5.0 from latest MS4W Windows server 2003 Thanks, Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information 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 DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3247 bytes Desc: image001.jpg URL: From Bob.Basques at CI.STPAUL.MN.US Tue Jan 15 16:07:29 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 15 Jan 2008 18:07:29 -0600 Subject: Googlish MapFile Message-ID: All, I'm done with the cartography, I think. Anyone see any problems with it that are obvious? Again, this is only the road network, and it's only for a local dataset. http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml# Unless someone comes up with an errors somewhere, I think I may post this tomorrow sometime. It still needs some work and I'll be adding to the comments the rest of the week. I think I'll version the releases until I get to something stable, but I think it's usable as is already, and I got a couple of requests for it already. I'm also planning on adding in the TIGER lines to this test interface, I only got out as far as six steps away from the world view in Google. I'll finish it off with the TIGER data. ------- Some stuff that came up this week, I've done all the thresholding based on FEET as the units of measure, and our data is in a local County coordinate system. Anyone have an idea for a good neutral coordinate system to use for the TIGER line dataset that would be the most flexible for folks? Another item I wondered about, would it help to separate up the MAPFILE for clarity into sections and use the INCLUDE parameter? This should make it a lot easier to follow some of the cartography settings, but maybe I'm making too much of it. I was wondering if this might be some sort of performance hit as well, I doubt it though. I'm also planning on doing some performance tuning, and separate up some of the TIGER data into road classes for performance reasons. I'm doing this for a couple of reasons, but the community gets to reap the results, so if there is interest, I'll keep going with the intention of publishing the TIGER data in a performance enhanced version. Otherwise, I'll just move onto the Railroad, Parks, and water layers to complete the look. If anyone wants to help out after taking a look at the thresholding I already have set up in the MapFile, it would be appreciated, we can pull all these layers together into a single package for distribution. Let me know your thoughts . . . bobb **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** From woodbri at SWOODBRIDGE.COM Tue Jan 15 16:29:10 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 15 Jan 2008 19:29:10 -0500 Subject: Bounding boxes In-Reply-To: <00fb01c857c0$e8523c60$025aa8c0@DevChip> Message-ID: Chip Taylor wrote: > Ok, a wild stab in the dark here. Does anyone have, or know where to find, > or have any ideas how to derive, a table/spreadsheet/xml document of the > bounding boxes (in decimal degrees) of all of the US Counties (and > county-like entities)? > > Chip Taylor > Prepared Response, Inc If you can use PostGIS, load this file: http://www.census.gov/geo/cob/bdy/co/co00shp/co99_d00_shp.zip and do a query to extract the bboxes for all the counties. If you need more help, post a not to the list and I'm sure we can help you. If not able to use PostGIS, then use a Perl or PHP shapefile tool to extract the bboxes and print them to a text file. -Steve From nelsong at MAIL.UTEXAS.EDU Tue Jan 15 18:22:28 2008 From: nelsong at MAIL.UTEXAS.EDU (Nelson Guda) Date: Tue, 15 Jan 2008 20:22:28 -0600 Subject: getfeatureinfo request and PHP In-Reply-To: Message-ID: Hi all, I am using getFeatureInfo, and I am wondering if there is a way to figure out the appropriate bbox and x,y with a php script. Right now I am using the Google maps api to get the bbox and x,y coordinates. I would rather have all this done in the background with the php script, but I don't know how to translate the lat/lng coordinates into the appropriate bbox and x,y coordinates. Does anyone have any suggestions or links to a good tutorial that I could read? thanks, nelson From christian.braun at TUDOR.LU Wed Jan 16 00:22:29 2008 From: christian.braun at TUDOR.LU (Christian Braun) Date: Wed, 16 Jan 2008 09:22:29 +0100 Subject: Bundleing WMS Services In-Reply-To: Message-ID: Dear all, is it possible to load foreign WMS Services and serve them simultaneously within the same mapfile? I wondered because I want to serve my collaboraters a single WMS for e.g. displaying in QGIS where they can find all WMS I referenced before. The sense of this task would be to avoid a lot of typing of WMS adresses for my colleages. Any ideas or hints? Thanks in advance, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bokhorst at ARGOSS.NL Wed Jan 16 00:45:53 2008 From: bokhorst at ARGOSS.NL (Reinoud Bokhorst) Date: Wed, 16 Jan 2008 09:45:53 +0100 Subject: Bundleing WMS Services In-Reply-To: Message-ID: Hi Christian, You can use CONNECTIONTYPE WMS in your mapfile for a layer, f.eks: LAYER NAME "external_layer" CONNECTION "http://some/wms/server?default&args&" CONNECTIONTYPE WMS ... ... END Here is more info: http://mapserver.gis.umn.edu/docs/howto/wms_client Reinoud Christian Braun wrote: > > Dear all, > is it possible to load foreign WMS Services and serve them > simultaneously within the same mapfile? > I wondered because I want to serve my collaboraters a single WMS for > e.g. displaying in QGIS where they can find all WMS I referenced before. > The sense of this task would be to avoid a lot of typing of WMS > adresses for my colleages. > > Any ideas or hints? > > Thanks in advance, > > Christian From adams at TERRESTRIS.DE Wed Jan 16 01:06:53 2008 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 16 Jan 2008 10:06:53 +0100 Subject: Bundleing WMS Services In-Reply-To: Message-ID: Christian, try a cascasding mapfile. see http://mapserver.gis.umn.edu/docs/howto/wms_client Regards, Till > > Dear all, > is it possible to load foreign WMS Services and serve them > simultaneously within the same mapfile? > I wondered because I want to serve my collaboraters a single WMS for > e.g. displaying in QGIS where they can find all WMS I referenced > before. The sense of this task would be to avoid a lot of typing of > WMS adresses for my colleages. > > Any ideas or hints? > > Thanks in advance, > > Christian -- ***************************************** terrestris ist umgezogen! Die neue Adresse ab 01.07.2007 lautet: Irmintrudisstra?e 17, 53111 Bonn http://www.terrestris.de ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From christian.braun at TUDOR.LU Wed Jan 16 01:23:30 2008 From: christian.braun at TUDOR.LU (Christian Braun) Date: Wed, 16 Jan 2008 10:23:30 +0100 Subject: Bundleing WMS Services In-Reply-To: <478DC92D.9000506@terrestris.de> Message-ID: THX, thats what I searched for! Thread closed;-) Christian _________________________________________ Dipl. Geogr. Christian Braun Tel: +352- 425991-608 Mobil: +49-179-6845896 Mail: christian.braun at tudor.lu Resource Centre for Environmental Technologies, Public Research Centre Henri Tudor, Technoport Schlassgoart, 66 rue de Luxembourg, P.O. BOX 144, L-4002 Esch-sur-Alzette, Luxembourg -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at WEBGIS.DE Wed Jan 16 01:19:02 2008 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Wed, 16 Jan 2008 10:19:02 +0100 Subject: Bundleing WMS Services In-Reply-To: <478DC441.6090903@argoss.nl> Message-ID: Hi Christian, keep in mind that you loose the option to query that layer with a GetFeatureInfo request. This request cannot be cascaded with mapserver at the moment. Cheers, Michael 2008/1/16, Reinoud Bokhorst : > Hi Christian, > You can use CONNECTIONTYPE WMS in your mapfile for a layer, f.eks: > > LAYER > NAME "external_layer" > CONNECTION "http://some/wms/server?default&args&" > CONNECTIONTYPE WMS > ... > ... > END > > Here is more info: http://mapserver.gis.umn.edu/docs/howto/wms_client > > > Reinoud > > > Christian Braun wrote: > > > > Dear all, > > is it possible to load foreign WMS Services and serve them > > simultaneously within the same mapfile? > > I wondered because I want to serve my collaboraters a single WMS for > > e.g. displaying in QGIS where they can find all WMS I referenced before. > > The sense of this task would be to avoid a lot of typing of WMS > > adresses for my colleages. > > > > Any ideas or hints? > > > > Thanks in advance, > > > > Christian > -- ----------------------------------------------------------- Michael Schulz mschulz at webgis.de in medias res Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg Tel +49 (0)761 556959-5 Fax +49 (0)761 556959-6 http://www.webgis.de / http://www.zopecms.de ----------------------------------------------------------- From Schoenhammer.Herbert at REGENSBURG.DE Wed Jan 16 04:20:10 2008 From: Schoenhammer.Herbert at REGENSBURG.DE (=?iso-8859-1?Q?=22Sch=F6nhammer=2C_Herbert=22?=) Date: Wed, 16 Jan 2008 13:20:10 +0100 Subject: Is it NOW possible to join (Postgres-)Tables viaWFS-Requests ? Message-ID: Hello, I try to join two postgis-tables and I want to display the result via a WFS-request. I have found a discussion from May 2005, that is is not working (Title: "JOIN object and WMS/WFS" ). But is this working NOW, or does anybody know a workaround ? I try to do this (a sequence of the mapfile): ------------------------------------ CONNECTIONTYPE postgis CONNECTION "user=xxx dbname=yyy host=zzz password=vvvv" DATA "the_geom from (SELECT fid, the_geom, ...., wahlb_nummer_int FROM table_1 ORDER by wahlb_nummer_int) as foo USING UNIQUE fid USING SRID=31468" .... HEADER ".../wahlen1_header.html" TEMPLATE ".../wahlen1.html" FOOTER ".../wahlen1_footer.html" JOIN NAME "bereiche" CONNECTIONTYPE ogr CONNECTION "user=xxx dbname=yyy host=zzz password=vvv" TABLE "table_2" FROM "wahlb_nummer_int" TO "wahlb_nummer_int2" TYPE ONE-TO-MANY TEMPLATE ".../wahlen1_join_adressbereiche.html" END ------------------------------------ The map is drawn correctly, the WFS responds with all attributes of table_1. ogrinfo recognizes and describes the table_2 correctly. Producing errors (for example giving a wrong field-name in the TO-parameter of the JOIN-object), mapserver answers with an error-massage (field not recognized ...). So I think, the join definition is correct. But the template TEMPLATE ".../wahlen1_join_adressbereiche.html" is NEVER put into the WFS-answer. greetings Herbert -------------- next part -------------- An HTML attachment was scrubbed... URL: From sunsear at GMAIL.COM Wed Jan 16 05:37:23 2008 From: sunsear at GMAIL.COM (Martin van Dijken) Date: Wed, 16 Jan 2008 14:37:23 +0100 Subject: PHP Mapscript and PHP image integration question Message-ID: For a project I'm currently working on, we're creating a density layer on a mapfile. The same thing was once attempted by Bill Binko and his work is currently being used as inspiration. What we'd like to do is make a map containing (from bottom to top): a raster layer a semi transparent layer we calculate ourselves a feature layer The problem we encounter is how to combine the mapserver layers with the layer we calculate in PHP. We're planning to calculate the layer using php functions and then using php's image functions to create an overlay image. This will give us a GD image in memory. What we can do, and Bill has already done so, is to save the mapserver generated layers to the file system and then reopening them using php's image functions and using php's image functions to stack them onto each other and create a final image the client can use. The problem with this solution is that it's hardly elegant and requires quite a bit of disk I/O that really isn't necessary and is therefore quite slow. Is there some way we can use the imageObj in mapscript to paste the in-memory calculated php GD image onto? Another solution would be to allow imageObjs to be transformed into php image objects. Is there a way to do such a thing? Any help will be greatly appreciated -- Martin van Dijken Senior ontwikkelaar / Technisch projectleider M +31 (0)6 26 144 223 E martin at van-dijken.eu IPROFS www.iprofs.nl Gebouw "De Houthof" Claus Sluterweg 125 2012 WS Haarlem T +31 (0)23 547 6369 F +31 (0)23 547 6370 -------------- next part -------------- An HTML attachment was scrubbed... URL: From espen.isaksen at GMAIL.COM Wed Jan 16 06:37:32 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Wed, 16 Jan 2008 15:37:32 +0100 Subject: Plate Carre with latitude shift Message-ID: Hi! I am wondering how I can do a latitude shift with a plain longlat projection(4326). I have tried to change +lat_ts to 60 degrees instead of 0, but that does not change much. I am wondering if I have misunderstood this completely. For me it seems like EPSG:4326 is a plain Plate Carre projection where I should be able to latitude shift the origin to get a better result in the nothern areas of Europe? Espen From ed at TOPOZONE.COM Wed Jan 16 07:28:46 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 16 Jan 2008 10:28:46 -0500 Subject: Plate Carre with latitude shift In-Reply-To: A Message-ID: Espen - The EPSG coordinate system codes, like EPSG:4326, generally are used to fully specify a projection. If you need to "customize" a projection described by an EPSG code, I would recommend using a full PROJ text description, and specify the use of the equirectangular (Plate Carr?e) projection: +proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84 - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen Sent: Wednesday, January 16, 2008 9:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift Hi! I am wondering how I can do a latitude shift with a plain longlat projection(4326). I have tried to change +lat_ts to 60 degrees instead of 0, but that does not change much. I am wondering if I have misunderstood this completely. For me it seems like EPSG:4326 is a plain Plate Carre projection where I should be able to latitude shift the origin to get a better result in the nothern areas of Europe? Espen From espen.isaksen at GMAIL.COM Wed Jan 16 07:51:11 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Wed, 16 Jan 2008 16:51:11 +0100 Subject: Plate Carre with latitude shift In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019887D8@ptolemy.topozone.com> Message-ID: Ok, I set my mapfile like this: EXTENT 10.6661 59.9155 10.6824 59.9214 PROJECTION "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84" END and this is what I have had before: EXTENT 10.6661 59.9155 10.6824 59.9214 PROJECTION "init=EPSG:4326" END From warmerdam at POBOX.COM Wed Jan 16 08:07:11 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 16 Jan 2008 11:07:11 -0500 Subject: Plate Carre with latitude shift In-Reply-To: Message-ID: Espen Isaksen wrote: > Ok, I set my mapfile like this: > > EXTENT 10.6661 59.9155 10.6824 59.9214 > PROJECTION > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84" > END > > and this is what I have had before: > > EXTENT 10.6661 59.9155 10.6824 59.9214 > PROJECTION > "init=EPSG:4326" > END > >>From my understanding the former mapfile should give the same map as > the latter, but the east-west coordinates should be pushed together as > this formula would indicate: x=lon*cos(lat) where lat is 60 and the > formula then gives x=lon*0.5? > > All I get is a blank map, so I suppose there is something I have misunderstood? Espen, EPSG:4326 is a geographic coordinate system, and the coordinates are in decimal degrees. +proj=eqc is a projected coordinate system and the coordinates are meters. The location (-180,90) would be roughly (-20000000,100000). Essentially eqc (ie. equidistant cylindrical or Plate Carree) is just a rescaling of EPSG:4326 from degrees to meters. I'm afraid I just don't get what you hope to accomplish with +lat_ts=60. Are you hoping to get one projected meter being one meter on the ground at 60N as opposed to it being one meter at the equator as is the default? I'm not aware of proj=eqc supporting any such option. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ed at TOPOZONE.COM Wed Jan 16 08:27:14 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 16 Jan 2008 11:27:14 -0500 Subject: Plate Carre with latitude shift In-Reply-To: A<478E2BAF.3090506@pobox.com> Message-ID: Espen - Frank's point is important; there is a fundamental difference between unprojected, geographic, lat/lon coordinates being used as X/Y rectangular coordinates and the "formal" use of a Plate Carr?e projected coordinate system. In essence, I now think you are thinking about this problem as "I want to treat latitude and longitude as Cartesian X/Y coordinates, except that I want to subtract 60 from every latitude (Y) coordinate". While that's a reasonable way to think about it, it leads you to fall between two different concepts. A geographic coordinate system is just that; it's geographic. Latitude 0 is the Equator, and you can't simply decide that the Equator now runs through Norway. A projected coordinate system will do what you need, but you then need to shift gears from thinking in terms of source geographic coordinates and instead think in terms of projected equirectangular coordinates. Since projected coordinate systems are planar coordinate systems (generally) one cannot use angular units like degrees, and they are commonly measured in meters, as in this example. Your EXTENT, therefore, is requesting a tiny map area of about 2 millimeters square, and you won't see anything because you've zoomed in much too far. Your comments about cosines and having east-west coordinates "pushed together" is confusing. A Plate Carr?e projection produces an output where y=lat (not x), x=lon. The lat_ts parameter is the latitude of true scale, and causes that latitude to be drawn at true scale, reducing distortion at that latitude. It does not cause that latitude to become the origin or center of the projection. I think you actually do NOT want a Plate Carr?e projection, as that would be centered on the Equator, with the Equator being the latitude of true scale. At this point I think it would be helpful to step back and explain what it is you're trying to accomplish, and what geography you are trying to cover with your map. Then we might be able to better recommend a good projection to use for your purposes, and it might be easier to implement such a projection if it is a more "standard" sort of solution to your problem. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Wednesday, January 16, 2008 11:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift Espen Isaksen wrote: > Ok, I set my mapfile like this: > > EXTENT 10.6661 59.9155 10.6824 59.9214 > PROJECTION > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84" > END > > and this is what I have had before: > > EXTENT 10.6661 59.9155 10.6824 59.9214 > PROJECTION > "init=EPSG:4326" > END > >>From my understanding the former mapfile should give the same map as > the latter, but the east-west coordinates should be pushed together as > this formula would indicate: x=lon*cos(lat) where lat is 60 and the > formula then gives x=lon*0.5? > > All I get is a blank map, so I suppose there is something I have misunderstood? Espen, EPSG:4326 is a geographic coordinate system, and the coordinates are in decimal degrees. +proj=eqc is a projected coordinate system and the coordinates are meters. The location (-180,90) would be roughly (-20000000,100000). Essentially eqc (ie. equidistant cylindrical or Plate Carree) is just a rescaling of EPSG:4326 from degrees to meters. I'm afraid I just don't get what you hope to accomplish with +lat_ts=60. Are you hoping to get one projected meter being one meter on the ground at 60N as opposed to it being one meter at the equator as is the default? I'm not aware of proj=eqc supporting any such option. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ed at TOPOZONE.COM Wed Jan 16 08:29:02 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 16 Jan 2008 11:29:02 -0500 Subject: Plate Carre with latitude shift In-Reply-To: A<478E2BAF.3090506@pobox.com> Message-ID: Frank - My comment to Espen, "The lat_ts parameter is the latitude of true scale, and causes that latitude to be drawn at true scale, reducing distortion at that latitude", seems in conflict with your comment "Are you hoping to get one projected meter being one meter on the ground at 60N as opposed to it being one meter at the equator as is the default? I'm not aware of proj=eqc supporting any such option." It sounds like I am misunderstanding what lat_ts does. If it doesn't do what I thought (cause 60N to be the latitude of true scale, where one meter in map units equals one meter on the ground), what does it do? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Wednesday, January 16, 2008 11:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift Espen Isaksen wrote: > Ok, I set my mapfile like this: > > EXTENT 10.6661 59.9155 10.6824 59.9214 > PROJECTION > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +datum=WGS84" > END > > and this is what I have had before: > > EXTENT 10.6661 59.9155 10.6824 59.9214 > PROJECTION > "init=EPSG:4326" > END > >>From my understanding the former mapfile should give the same map as > the latter, but the east-west coordinates should be pushed together as > this formula would indicate: x=lon*cos(lat) where lat is 60 and the > formula then gives x=lon*0.5? > > All I get is a blank map, so I suppose there is something I have misunderstood? Espen, EPSG:4326 is a geographic coordinate system, and the coordinates are in decimal degrees. +proj=eqc is a projected coordinate system and the coordinates are meters. The location (-180,90) would be roughly (-20000000,100000). Essentially eqc (ie. equidistant cylindrical or Plate Carree) is just a rescaling of EPSG:4326 from degrees to meters. I'm afraid I just don't get what you hope to accomplish with +lat_ts=60. Are you hoping to get one projected meter being one meter on the ground at 60N as opposed to it being one meter at the equator as is the default? I'm not aware of proj=eqc supporting any such option. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From warmerdam at POBOX.COM Wed Jan 16 09:01:21 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 16 Jan 2008 12:01:21 -0500 Subject: Plate Carre with latitude shift In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019887DD@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > Frank - > > My comment to Espen, "The lat_ts parameter is the latitude of true scale, and causes that latitude to be drawn at true scale, reducing distortion at that latitude", seems in conflict with your comment "Are you hoping to get one projected meter being one meter on the ground > at 60N as opposed to it being one meter at the equator as is the default? I'm not aware of proj=eqc supporting any such option." > > It sounds like I am misunderstanding what lat_ts does. If it doesn't do what I thought (cause 60N to be the latitude of true scale, where one meter in map units equals one meter on the ground), what does it do? Ed, I stand corrected. Lat_ts is indeed a supported parameter for eqc. I had just never used it and didn't realize it was supported for that projection. I'll just shut up now. :-) Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From lee_keel at TRIMBLE.COM Wed Jan 16 08:38:12 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 11:38:12 -0500 Subject: mapserver error Message-ID: Hello list. I am having a problem and it is beginning to look like mapserver is behind it somehow. I am using ms4w 2.2.6 to render postgres data to openlayers. Mapserver is configured to use IIS\CGI instead of apache. I am actually having 2 problems, but I am not sure that they are not related. One problem is that sometimes the server just isn't returning any data for different layers to OpenLayers. I have talked extensively with the OL guys and have come back to the fact that if I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." The most consistent way I can reproduce this is to zoom in real close. The second problem I am having is that when I am getting layer images back, they are blurred on the bottom portion. It looks like someone took a cloth and just wiped a whiteboard. I am about 5 days late on a deadline to have this up and running, so I am open to try any suggestions that someone may have. Thanks in advance, Lee From Bob.Basques at CI.STPAUL.MN.US Wed Jan 16 09:33:39 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 16 Jan 2008 11:33:39 -0600 Subject: Googlish MapFile V0,01 released Message-ID: All, I posted a version (unfinished) on the GeoMoose Website. http://www.geomoose.org/moose/ Just do a search for "googlish" Again, this is only for the Road line work at this time. See the readme for additional information I'm looking for feedback and any neat additions that other folks make. A working/development version of the MapFile in actaion can be seen here: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml It's also been integrated into this online interface: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/index.html (this is the GD version, until I figure out how to get Alpha transparency to work in IE.) Have fun bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: From Bob.Basques at CI.STPAUL.MN.US Wed Jan 16 09:39:31 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 16 Jan 2008 11:39:31 -0600 Subject: Googlish MapFile V0,01 released (cleaner posting?) Message-ID: Sorry for this second posting, just noticed that my postings aren't very nicely formatted to the list. Just trying to see if I can fix them. --------------------- All, I posted a version (unfinished) on the GeoMoose Website. http://www.geomoose.org/moose/ Just do a search for "googlish" Again, this is only for the Road line work at this time. See the readme for additional information I'm looking for feedback and any neat additions that other folks make. A working/development version of the MapFile in action can be seen here: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml It's also been integrated into this online interface: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/index.html (this is the GD version, until I figure out how to get Alpha transparency to work in IE.) Have fun bobb ( http://gis.ci.stpaul.mn.us/ ) From Tim.Nolte at IPCSWIRELESSINC.COM Wed Jan 16 09:49:41 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 16 Jan 2008 12:49:41 -0500 Subject: mapserver error In-Reply-To: A<944DCD961F4CD649BCEBB52E3C929F6501863C33@usd-am-xch-01.am.trimblecorp.net> Message-ID: One quick thought that I have since you say that a layer image is blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON set. This turns on interlacing and sometimes I see that it takes a few seconds on my mapserver to fully render the image. If you want to prevent this blurring turn that setting off in your Mapfile. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver error Hello list. I am having a problem and it is beginning to look like mapserver is behind it somehow. I am using ms4w 2.2.6 to render postgres data to openlayers. Mapserver is configured to use IIS\CGI instead of apache. I am actually having 2 problems, but I am not sure that they are not related. One problem is that sometimes the server just isn't returning any data for different layers to OpenLayers. I have talked extensively with the OL guys and have come back to the fact that if I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." The most consistent way I can reproduce this is to zoom in real close. The second problem I am having is that when I am getting layer images back, they are blurred on the bottom portion. It looks like someone took a cloth and just wiped a whiteboard. I am about 5 days late on a deadline to have this up and running, so I am open to try any suggestions that someone may have. Thanks in advance, Lee From ed at TOPOZONE.COM Wed Jan 16 09:59:42 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 16 Jan 2008 12:59:42 -0500 Subject: Plate Carre with latitude shift In-Reply-To: A<478E3861.20008@pobox.com> Message-ID: Frank - Well, I can't claim to know that it actually DOES anything..... A long time ago I was writing graphics display hardware device drivers, and a new version of the Microsoft C compiler had just been released with support, for the first time, for the "volatile" keyword. This keyword modified a pointer declaration and told the compiler that the value pointed to (a hardware status register, for example) might change without the program's knowledge. References to it, therefore, could not be optimized away and the value actually read each time the pointer was dereferenced. I spent a day trying to get the keyword to work, and it just wasn't working. I finally read the README file and found one of the more memorable technical euphemisms I've ever read: "The keyword 'volatile' is implemented syntactically but not semantically." That's the fanciest way I've ever seen to say, "It doesn't work, but we won't tell you!" - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Wednesday, January 16, 2008 12:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift Ed McNierney wrote: > Frank - > > My comment to Espen, "The lat_ts parameter is the latitude of true scale, and causes that latitude to be drawn at true scale, reducing distortion at that latitude", seems in conflict with your comment "Are you hoping to get one projected meter being one meter on the ground > at 60N as opposed to it being one meter at the equator as is the default? I'm not aware of proj=eqc supporting any such option." > > It sounds like I am misunderstanding what lat_ts does. If it doesn't do what I thought (cause 60N to be the latitude of true scale, where one meter in map units equals one meter on the ground), what does it do? Ed, I stand corrected. Lat_ts is indeed a supported parameter for eqc. I had just never used it and didn't realize it was supported for that projection. I'll just shut up now. :-) Best regards, -- ---------------------------------------+-------------------------------- ------ I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From lee_keel at TRIMBLE.COM Wed Jan 16 10:05:31 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 13:05:31 -0500 Subject: mapserver error Message-ID: Timothy, Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "jpg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "GD/gif" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END ________________________________ From: UMN MapServer Users List on behalf of Nolte, Tim Sent: Wed 1/16/2008 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error One quick thought that I have since you say that a layer image is blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON set. This turns on interlacing and sometimes I see that it takes a few seconds on my mapserver to fully render the image. If you want to prevent this blurring turn that setting off in your Mapfile. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver error Hello list. I am having a problem and it is beginning to look like mapserver is behind it somehow. I am using ms4w 2.2.6 to render postgres data to openlayers. Mapserver is configured to use IIS\CGI instead of apache. I am actually having 2 problems, but I am not sure that they are not related. One problem is that sometimes the server just isn't returning any data for different layers to OpenLayers. I have talked extensively with the OL guys and have come back to the fact that if I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." The most consistent way I can reproduce this is to zoom in real close. The second problem I am having is that when I am getting layer images back, they are blurred on the bottom portion. It looks like someone took a cloth and just wiped a whiteboard. I am about 5 days late on a deadline to have this up and running, so I am open to try any suggestions that someone may have. Thanks in advance, Lee From ed at TOPOZONE.COM Wed Jan 16 10:13:33 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 16 Jan 2008 13:13:33 -0500 Subject: mapserver error In-Reply-To: A<944DCD961F4CD649BCEBB52E3C929F6501863C3A@usd-am-xch-01.am.trimblecorp.net> Message-ID: Lee - INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 1:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Timothy, Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "jpg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "GD/gif" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END ________________________________ From: UMN MapServer Users List on behalf of Nolte, Tim Sent: Wed 1/16/2008 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error One quick thought that I have since you say that a layer image is blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON set. This turns on interlacing and sometimes I see that it takes a few seconds on my mapserver to fully render the image. If you want to prevent this blurring turn that setting off in your Mapfile. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver error Hello list. I am having a problem and it is beginning to look like mapserver is behind it somehow. I am using ms4w 2.2.6 to render postgres data to openlayers. Mapserver is configured to use IIS\CGI instead of apache. I am actually having 2 problems, but I am not sure that they are not related. One problem is that sometimes the server just isn't returning any data for different layers to OpenLayers. I have talked extensively with the OL guys and have come back to the fact that if I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." The most consistent way I can reproduce this is to zoom in real close. The second problem I am having is that when I am getting layer images back, they are blurred on the bottom portion. It looks like someone took a cloth and just wiped a whiteboard. I am about 5 days late on a deadline to have this up and running, so I am open to try any suggestions that someone may have. Thanks in advance, Lee From ed at TOPOZONE.COM Wed Jan 16 10:33:21 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 16 Jan 2008 13:33:21 -0500 Subject: mapserver error In-Reply-To: <20080116181829.GA678@alta.metacarta.com> Message-ID: Christopher - Thanks; it was not obvious to me that the second problem was also seen in the OpenLayers application. The image on the OpenLayers discussion seems to indicate a MapServer crash or other failure, as you've already suggested there. Lee, I think you should ignore the "blurry" problem for now and focus exclusively on: " I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." " You seem to be building on quicksand, and if you don't fix the foundation there's no point in trying to figure out why the pictures on the walls don't hang straight. If you can post details about the URL and the error we might be able to try to help debug. Looking for debug and Web server logs can also be helpful to understand why the CGI failed, as is running mapserv from the command line. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: Wednesday, January 16, 2008 1:18 PM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error On Wed, Jan 16, 2008 at 01:13:33PM -0500, Ed McNierney wrote: > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. Note that this will almost never be the case with OpenLayers because OpenLayers hides images until they are completely loaded (for technical reasons unrelated to this), so if someone reports this behavior in OpenLayers, you can usually be sure it's not an interlacing thing. > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? There is a 'bmp' attached to http://openlayers.org/pipermail/users/2008-January/004506.html which might be the one. Regards, -- Christopher Schmidt MetaCarta From crschmidt at METACARTA.COM Wed Jan 16 10:18:29 2008 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Wed, 16 Jan 2008 13:18:29 -0500 Subject: mapserver error In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019887DF@ptolemy.topozone.com> Message-ID: On Wed, Jan 16, 2008 at 01:13:33PM -0500, Ed McNierney wrote: > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. Note that this will almost never be the case with OpenLayers because OpenLayers hides images until they are completely loaded (for technical reasons unrelated to this), so if someone reports this behavior in OpenLayers, you can usually be sure it's not an interlacing thing. > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? There is a 'bmp' attached to http://openlayers.org/pipermail/users/2008-January/004506.html which might be the one. Regards, -- Christopher Schmidt MetaCarta From lee_keel at TRIMBLE.COM Wed Jan 16 11:03:31 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 14:03:31 -0500 Subject: mapserver error Message-ID: sorry, I hit enter before I meant to.... You can view the blurring problem at: http://dev.uai.com:28080/public/blur .html ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Wed 1/16/2008 12:13 PM To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver error Lee - INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 1:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Timothy, Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "jpg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "GD/gif" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END ________________________________ From: UMN MapServer Users List on behalf of Nolte, Tim Sent: Wed 1/16/2008 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error One quick thought that I have since you say that a layer image is blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON set. This turns on interlacing and sometimes I see that it takes a few seconds on my mapserver to fully render the image. If you want to prevent this blurring turn that setting off in your Mapfile. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver error Hello list. I am having a problem and it is beginning to look like mapserver is behind it somehow. I am using ms4w 2.2.6 to render postgres data to openlayers. Mapserver is configured to use IIS\CGI instead of apache. I am actually having 2 problems, but I am not sure that they are not related. One problem is that sometimes the server just isn't returning any data for different layers to OpenLayers. I have talked extensively with the OL guys and have come back to the fact that if I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." The most consistent way I can reproduce this is to zoom in real close. The second problem I am having is that when I am getting layer images back, they are blurred on the bottom portion. It looks like someone took a cloth and just wiped a whiteboard. I am about 5 days late on a deadline to have this up and running, so I am open to try any suggestions that someone may have. Thanks in advance, Lee From ed at TOPOZONE.COM Wed Jan 16 11:24:06 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 16 Jan 2008 14:24:06 -0500 Subject: mapserver error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C3E@usd-am-xch-01.am.trimblecorp.net> Message-ID: Lee - Thanks; that's helpful. But I'd like to reduce the number of variables here. Are you saying that any request that contains the layer "main" will fail? Or will a request for that layer work sometimes and fail sometimes? I got the impression it was the latter and was scale-dependent (or seemed to be). If that's the case, can you provide a LAYERS=main URL that does work, and one that does not? - Ed From: Lee Keel [mailto:lee_keel at trimble.com] Sent: Wednesday, January 16, 2008 2:14 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver error Sorry, I didn't get this email until I sent the last one. I know everyone must think I am total moron... Sorry! I absolutely agree that I am on quick sand!!! But even worse, I am desperately trying to figure out how the ground turned into quick sand. Here are 2 urls at the exact same zoom level. You will not be able to connect to these urls because they are not exposed to the internet. This is strictly an intranet site. Below are the corresponding layers from the mapfile as well. Thanks again for all this help. Sorry I am such a novice on this. This one works: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=centerlines&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSIO N=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inima ge&SRS=EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898 125,443255.9561375&WIDTH=1144&HEIGHT=550 This one returns error: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&L AYERS=main&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1 &REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS= EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898125,443 255.9561375&WIDTH=1144&HEIGHT=550 Here is the layer for the working URL: LAYER NAME "centerlines" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from vcenterlines" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "centerlines" END PROJECTION "init=epsg:2238" END TYPE Line CLASS MAXSCALE 20000 TEXT ([st_name]) STYLE SYMBOL "circle" SIZE 3 COLOR 0 0 0 END STYLE SYMBOL "circle" SIZE 1 COLOR 255 255 255 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE ANGLE FOLLOW FONT arial SIZE 7 #ANTIALIAS TRUE POSITION CC MINDISTANCE 50 BUFFER 50 END END END Here is the layer for the non-working URL: LAYER NAME "main" GROUP "gas_theme" CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from main" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "main" END PROJECTION "init=epsg:2238" END STATUS ON TYPE LINE CLASS MAXSCALE 250000 STYLE SYMBOL "circle" SIZE 3 COLOR 255 0 0 END END END ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Wed 1/16/2008 12:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Christopher - Thanks; it was not obvious to me that the second problem was also seen in the OpenLayers application. The image on the OpenLayers discussion seems to indicate a MapServer crash or other failure, as you've already suggested there. Lee, I think you should ignore the "blurry" problem for now and focus exclusively on: " I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." " You seem to be building on quicksand, and if you don't fix the foundation there's no point in trying to figure out why the pictures on the walls don't hang straight. If you can post details about the URL and the error we might be able to try to help debug. Looking for debug and Web server logs can also be helpful to understand why the CGI failed, as is running mapserv from the command line. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: Wednesday, January 16, 2008 1:18 PM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error On Wed, Jan 16, 2008 at 01:13:33PM -0500, Ed McNierney wrote: > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. Note that this will almost never be the case with OpenLayers because OpenLayers hides images until they are completely loaded (for technical reasons unrelated to this), so if someone reports this behavior in OpenLayers, you can usually be sure it's not an interlacing thing. > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? There is a 'bmp' attached to http://openlayers.org/pipermail/users/2008-January/004506.html which might be the one. Regards, -- Christopher Schmidt MetaCarta -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Jan 16 11:24:59 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 16 Jan 2008 13:24:59 -0600 Subject: mapserver error In-Reply-To: A<944DCD961F4CD649BCEBB52E3C929F6501863C3D@usd-am-xch-01.am.trimblecorp.net> Message-ID: I think that you were being a little subtle when you said that the image was blurred... It looks like someone threw up the red roads layer! This definitely looks like a bug, not a bad output setting. David. From lee_keel at TRIMBLE.COM Wed Jan 16 11:13:47 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 14:13:47 -0500 Subject: mapserver error Message-ID: Sorry, I didn't get this email until I sent the last one. I know everyone must think I am total moron... Sorry! I absolutely agree that I am on quick sand!!! But even worse, I am desperately trying to figure out how the ground turned into quick sand. Here are 2 urls at the exact same zoom level. You will not be able to connect to these urls because they are not exposed to the internet. This is strictly an intranet site. Below are the corresponding layers from the mapfile as well. Thanks again for all this help. Sorry I am such a novice on this. This one works: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=centerlines&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898125,443255.9561375&WIDTH=1144&HEIGHT=550 This one returns error: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=main&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898125,443255.9561375&WIDTH=1144&HEIGHT=550 Here is the layer for the working URL: LAYER NAME "centerlines" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from vcenterlines" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "centerlines" END PROJECTION "init=epsg:2238" END TYPE Line CLASS MAXSCALE 20000 TEXT ([st_name]) STYLE SYMBOL "circle" SIZE 3 COLOR 0 0 0 END STYLE SYMBOL "circle" SIZE 1 COLOR 255 255 255 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE ANGLE FOLLOW FONT arial SIZE 7 #ANTIALIAS TRUE POSITION CC MINDISTANCE 50 BUFFER 50 END END END Here is the layer for the non-working URL: LAYER NAME "main" GROUP "gas_theme" CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from main" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "main" END PROJECTION "init=epsg:2238" END STATUS ON TYPE LINE CLASS MAXSCALE 250000 STYLE SYMBOL "circle" SIZE 3 COLOR 255 0 0 END END END ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Wed 1/16/2008 12:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Christopher - Thanks; it was not obvious to me that the second problem was also seen in the OpenLayers application. The image on the OpenLayers discussion seems to indicate a MapServer crash or other failure, as you've already suggested there. Lee, I think you should ignore the "blurry" problem for now and focus exclusively on: " I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." " You seem to be building on quicksand, and if you don't fix the foundation there's no point in trying to figure out why the pictures on the walls don't hang straight. If you can post details about the URL and the error we might be able to try to help debug. Looking for debug and Web server logs can also be helpful to understand why the CGI failed, as is running mapserv from the command line. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: Wednesday, January 16, 2008 1:18 PM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error On Wed, Jan 16, 2008 at 01:13:33PM -0500, Ed McNierney wrote: > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. Note that this will almost never be the case with OpenLayers because OpenLayers hides images until they are completely loaded (for technical reasons unrelated to this), so if someone reports this behavior in OpenLayers, you can usually be sure it's not an interlacing thing. > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? There is a 'bmp' attached to http://openlayers.org/pipermail/users/2008-January/004506.html which might be the one. Regards, -- Christopher Schmidt MetaCarta From lee_keel at TRIMBLE.COM Wed Jan 16 12:46:35 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 15:46:35 -0500 Subject: mapserver error Message-ID: ________________________________ >From: UMN MapServer Users List on behalf of Ed McNierney >Sent: Wed 1/16/2008 12:33 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > >Christopher - > >Thanks; it was not obvious to me that the second problem was also seen in the OpenLayers application. The image on the OpenLayers discussion seems to indicate a >MapServer crash or other failure, as you've already suggested there. > >Lee, I think you should ignore the "blurry" problem for now and focus exclusively on: > >" I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP >headers." " > >You seem to be building on quicksand, and if you don't fix the foundation there's no point in trying to figure out why the pictures on the walls don't hang straight. > >If you can post details about the URL and the error we might be able to try to help debug. Looking for debug and Web server logs can also be helpful to understand why >the CGI failed, as is running mapserv from the command line. I have looked all over the place and can't seem to find any logs that are getting updated. Can anyone point me to common locations for logs for the CGI app? Thanks, Lee From espen.isaksen at GMAIL.COM Wed Jan 16 13:59:13 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Wed, 16 Jan 2008 22:59:13 +0100 Subject: Plate Carre with latitude shift In-Reply-To: <478E2BAF.3090506@pobox.com> Message-ID: > EPSG:4326 is a geographic coordinate system, and the coordinates are in > decimal degrees. +proj=eqc is a projected coordinate system and the > coordinates are meters. The location (-180,90) would be roughly > (-20000000,100000). > > Essentially eqc (ie. equidistant cylindrical or Plate Carree) is just > a rescaling of EPSG:4326 from degrees to meters. > Ok I understand this. > I'm afraid I just don't get what you hope to accomplish with +lat_ts=60. > Are you hoping to get one projected meter being one meter on the ground > at 60N as opposed to it being one meter at the equator as is the default? > I'm not aware of proj=eqc supporting any such option. Yes I am trying to change the projection such that it gets less distorted in areas near the north pole. I tried to set the mapfile like this: EXTENT 593674.73 6669772.29 594581.49 6670417.57 PROJECTION "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +no_defs +units=m" END which seems to create an quite ok map. Much better than setting +lat_ts=0. Although I do not understand why Mapserver creates a map over a different area than what my original decimal degree areas indicates(I used proj to convert them)? By the way my original decimal degree coordinates are: 10.6661 59.9155 10.6824 59.9213 Perhaps what I am doing is just nonsense... Espen From lee_keel at TRIMBLE.COM Wed Jan 16 11:29:43 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 14:29:43 -0500 Subject: mapserver error Message-ID: Here is a url for main that does work http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=main&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1604190.7546715624,450407.85066875,1616792.6296715624,456466.44441875&WIDTH=1144&HEIGHT=550 ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Wed 1/16/2008 1:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Lee - Thanks; that's helpful. But I'd like to reduce the number of variables here. Are you saying that any request that contains the layer "main" will fail? Or will a request for that layer work sometimes and fail sometimes? I got the impression it was the latter and was scale-dependent (or seemed to be). If that's the case, can you provide a LAYERS=main URL that does work, and one that does not? - Ed From: Lee Keel [mailto:lee_keel at trimble.com] Sent: Wednesday, January 16, 2008 2:14 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver error Sorry, I didn't get this email until I sent the last one. I know everyone must think I am total moron... Sorry! I absolutely agree that I am on quick sand!!! But even worse, I am desperately trying to figure out how the ground turned into quick sand. Here are 2 urls at the exact same zoom level. You will not be able to connect to these urls because they are not exposed to the internet. This is strictly an intranet site. Below are the corresponding layers from the mapfile as well. Thanks again for all this help. Sorry I am such a novice on this. This one works: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=centerlines&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898125,443255.9561375&WIDTH=1144&HEIGHT=550 This one returns error: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=main&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898125,443255.9561375&WIDTH=1144&HEIGHT=550 Here is the layer for the working URL: LAYER NAME "centerlines" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from vcenterlines" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "centerlines" END PROJECTION "init=epsg:2238" END TYPE Line CLASS MAXSCALE 20000 TEXT ([st_name]) STYLE SYMBOL "circle" SIZE 3 COLOR 0 0 0 END STYLE SYMBOL "circle" SIZE 1 COLOR 255 255 255 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE ANGLE FOLLOW FONT arial SIZE 7 #ANTIALIAS TRUE POSITION CC MINDISTANCE 50 BUFFER 50 END END END Here is the layer for the non-working URL: LAYER NAME "main" GROUP "gas_theme" CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from main" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "main" END PROJECTION "init=epsg:2238" END STATUS ON TYPE LINE CLASS MAXSCALE 250000 STYLE SYMBOL "circle" SIZE 3 COLOR 255 0 0 END END END ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Wed 1/16/2008 12:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Christopher - Thanks; it was not obvious to me that the second problem was also seen in the OpenLayers application. The image on the OpenLayers discussion seems to indicate a MapServer crash or other failure, as you've already suggested there. Lee, I think you should ignore the "blurry" problem for now and focus exclusively on: " I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." " You seem to be building on quicksand, and if you don't fix the foundation there's no point in trying to figure out why the pictures on the walls don't hang straight. If you can post details about the URL and the error we might be able to try to help debug. Looking for debug and Web server logs can also be helpful to understand why the CGI failed, as is running mapserv from the command line. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: Wednesday, January 16, 2008 1:18 PM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error On Wed, Jan 16, 2008 at 01:13:33PM -0500, Ed McNierney wrote: > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. Note that this will almost never be the case with OpenLayers because OpenLayers hides images until they are completely loaded (for technical reasons unrelated to this), so if someone reports this behavior in OpenLayers, you can usually be sure it's not an interlacing thing. > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? There is a 'bmp' attached to http://openlayers.org/pipermail/users/2008-January/004506.html which might be the one. Regards, -- Christopher Schmidt MetaCarta From espen.isaksen at GMAIL.COM Wed Jan 16 14:40:55 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Wed, 16 Jan 2008 23:40:55 +0100 Subject: Plate Carre with latitude shift In-Reply-To: Message-ID: To further discuss this topic. I created a map of Europe in a regular EPSG:32662(proj=eqc) and one map of Europe with a latitude shift to 60 degrees north: Map of Europe in 32662: http://bildr.no/view/143324 Map of Europe with latitude shift: http://bildr.no/view/143325 The latter is close to what I want. However, if I move my zoom in to some part of the nordic countries, the decimal degree coordinates will no longer correspond with my coordinates in my 32662 projection with the latitude shift. Why is this? Espen On 16/01/2008, Espen Isaksen wrote: > > EPSG:4326 is a geographic coordinate system, and the coordinates are in > > decimal degrees. +proj=eqc is a projected coordinate system and the > > coordinates are meters. The location (-180,90) would be roughly > > (-20000000,100000). > > > > Essentially eqc (ie. equidistant cylindrical or Plate Carree) is just > > a rescaling of EPSG:4326 from degrees to meters. > > > > Ok I understand this. > > > I'm afraid I just don't get what you hope to accomplish with +lat_ts=60. > > Are you hoping to get one projected meter being one meter on the ground > > at 60N as opposed to it being one meter at the equator as is the default? > > I'm not aware of proj=eqc supporting any such option. > > Yes I am trying to change the projection such that it gets less > distorted in areas near the north pole. I tried to set the mapfile > like this: > > EXTENT 593674.73 6669772.29 594581.49 6670417.57 > PROJECTION > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 > +datum=WGS84 +no_defs +units=m" > END > > which seems to create an quite ok map. Much better than setting > +lat_ts=0. Although I do not understand why Mapserver creates a map > over a different area than what my original decimal degree areas > indicates(I used proj to convert them)? > > By the way my original decimal degree coordinates are: > 10.6661 59.9155 10.6824 59.9213 > > Perhaps what I am doing is just nonsense... > > Espen > From lee_keel at TRIMBLE.COM Wed Jan 16 11:29:43 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 14:29:43 -0500 Subject: mapserver error Message-ID: Here is a url for main that does work http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=main&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1604190.7546715624,450407.85066875,1616792.6296715624,456466.44441875&WIDTH=1144&HEIGHT=550 ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Wed 1/16/2008 1:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Lee - Thanks; that's helpful. But I'd like to reduce the number of variables here. Are you saying that any request that contains the layer "main" will fail? Or will a request for that layer work sometimes and fail sometimes? I got the impression it was the latter and was scale-dependent (or seemed to be). If that's the case, can you provide a LAYERS=main URL that does work, and one that does not? - Ed From: Lee Keel [mailto:lee_keel at trimble.com] Sent: Wednesday, January 16, 2008 2:14 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver error Sorry, I didn't get this email until I sent the last one. I know everyone must think I am total moron... Sorry! I absolutely agree that I am on quick sand!!! But even worse, I am desperately trying to figure out how the ground turned into quick sand. Here are 2 urls at the exact same zoom level. You will not be able to connect to these urls because they are not exposed to the internet. This is strictly an intranet site. Below are the corresponding layers from the mapfile as well. Thanks again for all this help. Sorry I am such a novice on this. This one works: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=centerlines&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898125,443255.9561375&WIDTH=1144&HEIGHT=550 This one returns error: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=main&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1599333.552523125,442498.63191875,1600908.786898125,443255.9561375&WIDTH=1144&HEIGHT=550 Here is the layer for the working URL: LAYER NAME "centerlines" STATUS ON CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from vcenterlines" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "centerlines" END PROJECTION "init=epsg:2238" END TYPE Line CLASS MAXSCALE 20000 TEXT ([st_name]) STYLE SYMBOL "circle" SIZE 3 COLOR 0 0 0 END STYLE SYMBOL "circle" SIZE 1 COLOR 255 255 255 END LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE ANGLE FOLLOW FONT arial SIZE 7 #ANTIALIAS TRUE POSITION CC MINDISTANCE 50 BUFFER 50 END END END Here is the layer for the non-working URL: LAYER NAME "main" GROUP "gas_theme" CONNECTIONTYPE postgis CONNECTION "user=mapreader dbname=panamacity20 host=pgs-1giswebdb" DATA "the_geom from main" PROCESSING "CLOSE_CONNECTION=DEFER" METADATA "wms_group_title" "main" END PROJECTION "init=epsg:2238" END STATUS ON TYPE LINE CLASS MAXSCALE 250000 STYLE SYMBOL "circle" SIZE 3 COLOR 255 0 0 END END END ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Wed 1/16/2008 12:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Christopher - Thanks; it was not obvious to me that the second problem was also seen in the OpenLayers application. The image on the OpenLayers discussion seems to indicate a MapServer crash or other failure, as you've already suggested there. Lee, I think you should ignore the "blurry" problem for now and focus exclusively on: " I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." " You seem to be building on quicksand, and if you don't fix the foundation there's no point in trying to figure out why the pictures on the walls don't hang straight. If you can post details about the URL and the error we might be able to try to help debug. Looking for debug and Web server logs can also be helpful to understand why the CGI failed, as is running mapserv from the command line. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: Christopher Schmidt [mailto:crschmidt at metacarta.com] Sent: Wednesday, January 16, 2008 1:18 PM To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error On Wed, Jan 16, 2008 at 01:13:33PM -0500, Ed McNierney wrote: > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. Note that this will almost never be the case with OpenLayers because OpenLayers hides images until they are completely loaded (for technical reasons unrelated to this), so if someone reports this behavior in OpenLayers, you can usually be sure it's not an interlacing thing. > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? There is a 'bmp' attached to http://openlayers.org/pipermail/users/2008-January/004506.html which might be the one. Regards, -- Christopher Schmidt MetaCarta From lee_keel at TRIMBLE.COM Wed Jan 16 11:01:05 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 16 Jan 2008 14:01:05 -0500 Subject: mapserver error Message-ID: You can view the blurring problem at: http://dev.uai.com:28080/public/blur ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Wed 1/16/2008 12:13 PM To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver error Lee - INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 1:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Timothy, Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "jpg" MIMETYPE "image/jpeg" DRIVER "GD/JPEG" EXTENSION "jpg" IMAGEMODE RGB TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "GD/gif" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT FALSE FORMATOPTION "INTERLACE=OFF" END ________________________________ From: UMN MapServer Users List on behalf of Nolte, Tim Sent: Wed 1/16/2008 11:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error One quick thought that I have since you say that a layer image is blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON set. This turns on interlacing and sometimes I see that it takes a few seconds on my mapserver to fully render the image. If you want to prevent this blurring turn that setting off in your Mapfile. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Wednesday, January 16, 2008 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver error Hello list. I am having a problem and it is beginning to look like mapserver is behind it somehow. I am using ms4w 2.2.6 to render postgres data to openlayers. Mapserver is configured to use IIS\CGI instead of apache. I am actually having 2 problems, but I am not sure that they are not related. One problem is that sometimes the server just isn't returning any data for different layers to OpenLayers. I have talked extensively with the OL guys and have come back to the fact that if I take the URL that is requesting the information from mapserver, then I get: "The specified CGI application misbehaved by not returning a complete set of HTTP headers." The most consistent way I can reproduce this is to zoom in real close. The second problem I am having is that when I am getting layer images back, they are blurred on the bottom portion. It looks like someone took a cloth and just wiped a whiteboard. I am about 5 days late on a deadline to have this up and running, so I am open to try any suggestions that someone may have. Thanks in advance, Lee From richard.greenwood at GMAIL.COM Wed Jan 16 20:00:40 2008 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 16 Jan 2008 21:00:40 -0700 Subject: Python mapscript Python 2.5 OS X 10.5 Message-ID: Disclaimer first: My Python skills are thin-to-none. I'm having trouble with Python mapscript with Python 2.5.1 on OS X 10.5. I am working with the mapscript distributed with mapserver 5.0.0. It builds w/o error, but the tests fail: FAILED (failures=1, errors=4) The failure is FAIL: numpoints is immutable, this should raise error The 4 errors are all related to postgres. I went ahead and installed anyway, and get a new series of errors: File "mapscript.py", line 88, in MS_LAYER_ALLOCSIZE = _mapscript.MS_LAYER_ALLOCSIZE AttributeError: 'module' object has no attribute 'MS_LAYER_ALLOCSIZE' Comment out line 88 and: File "mapscript.py", line 89, in MS_CLASS_ALLOCSIZE = _mapscript.MS_CLASS_ALLOCSIZE AttributeError: 'module' object has no attribute 'MS_CLASS_ALLOCSIZE' etc. Any suggestions? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From thomas.bonfort at GMAIL.COM Thu Jan 17 00:56:46 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 17 Jan 2008 09:56:46 +0100 Subject: mapserver error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C3D@usd-am-xch-01.am.trimblecorp.net> Message-ID: strange... what version of mapserver are you using? can you (temporarily) turn off the angle follow of your labels and report if you're still having the same output problems thomas On Jan 16, 2008 8:03 PM, Lee Keel wrote: > sorry, I hit enter before I meant to.... > > You can view the blurring problem at: http://dev.uai.com:28080/public/blur .html > > > ________________________________ > > From: Ed McNierney [mailto:ed at topozone.com] > Sent: Wed 1/16/2008 12:13 PM > To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] mapserver error > > > > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. > > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel > Sent: Wednesday, January 16, 2008 1:06 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > Timothy, > > Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME "jpg" > MIMETYPE "image/jpeg" > DRIVER "GD/JPEG" > EXTENSION "jpg" > IMAGEMODE RGB > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME "gif" > MIMETYPE "image/gif" > DRIVER "GD/gif" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > > ________________________________ > > From: UMN MapServer Users List on behalf of Nolte, Tim > Sent: Wed 1/16/2008 11:49 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > One quick thought that I have since you say that a layer image is > blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON > set. This turns on interlacing and sometimes I see that it takes a few > seconds on my mapserver to fully render the image. If you want to > prevent this blurring turn that setting off in your Mapfile. > > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel > Sent: Wednesday, January 16, 2008 11:38 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] mapserver error > > Hello list. I am having a problem and it is beginning to look like > mapserver is behind it somehow. I am using ms4w 2.2.6 to render > postgres data to openlayers. Mapserver is configured to use IIS\CGI > instead of apache. I am actually having 2 problems, but I am not sure > that they are not related. One problem is that sometimes the server > just isn't returning any data for different layers to OpenLayers. I > have talked extensively with the OL guys and have come back to the fact > that if I take the URL that is requesting the information from > mapserver, then I get: "The specified CGI application misbehaved by not > returning a complete set of HTTP headers." The most consistent way I > can reproduce this is to zoom in real close. The second problem I am > having is that when I am getting layer images back, they are blurred on > the bottom portion. It looks like someone took a cloth and just wiped a > whiteboard. > > I am about 5 days late on a deadline to have this up and running, so I > am open to try any suggestions that someone may have. > > Thanks in advance, > Lee > From begodom at GMAIL.COM Thu Jan 17 02:04:53 2008 From: begodom at GMAIL.COM (SUBSCRIBE MAPSERVER-USERS Bego D.) Date: Thu, 17 Jan 2008 04:04:53 -0600 Subject: PostGIS connection Message-ID: Hello We are new in Mapserver. I have installed MapServer 4 Windows version 2.2.6 on my computer and in another computer of my office we have installed Postgis 1.3.2. for 8.2 PostgreSQL. Both works fine, we can work with Mapserver-Oracle Spatial or with .shp or .tab, but now we want to connect MapServer with PostGis and we get this error: msDrawMap(): Image handling error. Failed to draw layer named 'INFVIA'. msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with connect string 'host=****** dbname=**** user=postgres password=****** port=5432'. Error reported was 'could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "192.168.0.3" and accepting TCP/IP connections on port 5432? '. This error occured when trying to make a connection to the specified postgresql server. Most commonly this is caused by (1) incorrect connection string (2) you didnt specify a 'user=...' in your connection string (3) the postmaster (postgresql server) isnt running (4) you are not allowing TCP/IP connection to the postmaster (5) your postmaster is not running on the correct port - if its not on 5432 you must specify a 'port=...' (6) the security on your system does not allow the webserver (usually user 'nobody') to make socket connections to the postmaster (7) you forgot to specify a 'host=...' if the postmaster is on a different machine (8) you made a typo My .map is: CONNECTIONTYPE POSTGIS CONNECTION "host=***.***.**.* dbname=**user=postgres password=*** port=5432" DATA "the_geom geometry from INFVIA2" Any help will be appreciate. Bego From map.user at YAHOO.COM Thu Jan 17 02:10:58 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Thu, 17 Jan 2008 04:10:58 -0600 Subject: edited image not being saved and displayed properly Message-ID: hi, how can i set the bounding box values, what is the bounding box? is it not the same i.e. extent? well the tutorial uses the url: href="/cgi-bin/mapserv.exe? map=/ms4w/apps/tutorial/htdocs/example1- 9.map&layer=states&layer=modis">Example 1.9- The difference between map and browse mode it has not set any extent values initially, in the url. i am using the same url. i have also tried by setting the extent to the full extent of my table in the mapfile. and it loads the full data initially, but with the same problem of empty image being loaded on the click, and which is what is saved in the tmp file. i have altered the mapfile as u recommended. please clear the bounding box problem. thanks for helping From gisaalter at GMAIL.COM Thu Jan 17 02:47:19 2008 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Thu, 17 Jan 2008 11:47:19 +0100 Subject: PostGIS connection In-Reply-To: Message-ID: So, is postgres up and running with the postmaster ? Check if you can access the database independent of mapserver... Steven On Jan 17, 2008 11:04 AM, SUBSCRIBE MAPSERVER-USERS Bego D. < begodom at gmail.com> wrote: > Hello > > We are new in Mapserver. > > I have installed MapServer 4 Windows version 2.2.6 on my computer and in > another computer of my office we have installed Postgis 1.3.2. for 8.2 > PostgreSQL. > > Both works fine, we can work with Mapserver-Oracle Spatial or with .shp > or .tab, but now we want to connect MapServer with PostGis and we get this > error: > > msDrawMap(): Image handling error. Failed to draw layer named 'INFVIA'. > msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with > connect string 'host=****** dbname=**** user=postgres > password=****** port=5432'. Error reported was 'could not connect to > server: Connection refused (0x0000274D/10061) Is the server running on > host "192.168.0.3" and accepting TCP/IP connections on port 5432? '. This > error occured when trying to make a connection to the specified postgresql > server. Most commonly this is caused by (1) incorrect connection string > (2) > you didnt specify a 'user=...' in your connection string (3) the > postmaster > (postgresql server) isnt running (4) you are not allowing TCP/IP > connection to > the postmaster (5) your postmaster is not running on the correct port - if > its > not on 5432 you must specify a 'port=...' (6) the security on your system > does not allow the webserver (usually user 'nobody') to make socket > connections to the postmaster (7) you forgot to specify a 'host=...' if > the > postmaster is on a different machine (8) you made a typo > > My .map is: > > > CONNECTIONTYPE POSTGIS > CONNECTION "host=***.***.**.* dbname=**user=postgres password=*** > port=5432" > DATA "the_geom geometry from INFVIA2" > > Any help will be appreciate. > > Bego > -------------- next part -------------- An HTML attachment was scrubbed... URL: From map.user at YAHOO.COM Thu Jan 17 02:55:28 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Thu, 17 Jan 2008 04:55:28 -0600 Subject: edited image not being saved and displayed properly Message-ID: sorry. i forget to add one thing. when i use the full extent of the table in mapfile EXTENT, then it draws at that extent the whole data table, and on click it also centers the image, but with the extent of the small area, it is not centering it but showing a blank image. From begodom at GMAIL.COM Thu Jan 17 04:57:39 2008 From: begodom at GMAIL.COM (=?ISO-8859-1?Q?Bego=F1a_Gonzalez?=) Date: Thu, 17 Jan 2008 13:57:39 +0100 Subject: PostGIS connection In-Reply-To: <8d2ea9d70801170247w39987791n940f75a58d4d2451@mail.gmail.com> Message-ID: Postgres is running with the postmaster. When I try to connect access the database independent of mapserver there is the following error message: "Error connecting to the server: no se pudo conectar con el servidor: Connection refused (0x0000274D/10061) ?Est? el servidor en ejecuci?n en el servidor <<***.***.**.*>> y aceptando conexiones TCP /IP en el puerto 5432?" The server is runing so I suppose that the problem is with TCP/IP connections but I?m not sure of this settings. How do i check the TCP/IP connection of 5432 port? Thanks On Jan 17, 2008 11:47 AM, Steven De Vriendt wrote: > So, is postgres up and running with the postmaster ? > Check if you can access the database independent of mapserver... > > Steven > > On Jan 17, 2008 11:04 AM, SUBSCRIBE MAPSERVER-USERS Bego D. < > begodom at gmail.com> wrote: > > > Hello > > > > We are new in Mapserver. > > > > I have installed MapServer 4 Windows version 2.2.6 on my computer and in > > another computer of my office we have installed Postgis 1.3.2. for 8.2 > > PostgreSQL. > > > > Both works fine, we can work with Mapserver-Oracle Spatial or with .shp > > or .tab, but now we want to connect MapServer with PostGis and we get > > this > > error: > > > > msDrawMap(): Image handling error. Failed to draw layer named 'INFVIA'. > > msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with > > connect string 'host=****** dbname=**** user=postgres > > password=****** port=5432'. Error reported was 'could not connect to > > server: Connection refused (0x0000274D/10061) Is the server running on > > host " 192.168.0.3" and accepting TCP/IP connections on port 5432? '. > > This > > error occured when trying to make a connection to the specified > > postgresql > > server. Most commonly this is caused by (1) incorrect connection string > > (2) > > you didnt specify a 'user=...' in your connection string (3) the > > postmaster > > (postgresql server) isnt running (4) you are not allowing TCP/IP > > connection to > > the postmaster (5) your postmaster is not running on the correct port - > > if its > > not on 5432 you must specify a 'port=...' (6) the security on your > > system > > does not allow the webserver (usually user 'nobody') to make socket > > connections to the postmaster (7) you forgot to specify a 'host=...' if > > the > > postmaster is on a different machine (8) you made a typo > > > > My .map is: > > > > > > CONNECTIONTYPE POSTGIS > > CONNECTION "host=***.***.**.* dbname=**user=postgres password=*** > > port=5432" > > DATA "the_geom geometry from INFVIA2" > > > > Any help will be appreciate. > > > > Bego > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Jan 17 04:57:42 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 17 Jan 2008 07:57:42 -0500 Subject: Plate Carre with latitude shift In-Reply-To: A Message-ID: Espen - Yes, that should be what you expect. If you change the latitude of true scale, then you're changing the relationship between the size of a degree of longitude at a given latitude. Normally the line of 60 degrees North latitude is "stretched" horizontally to be larger than it should be. It is displayed so that it appears that one degree of longitude (at that latitude) is the same size as one degree of longitude at the Equator (instead of being only half as long). That makes it appear to be the same size as a degree of latitude and therefore you can easily interpolate coordinates because they are the same size. When you change the latitude of true scale to 60 degrees North, you are making every degree of longitude equal 0.5 degrees of latitude, and you can no longer treat them as simple X/Y coordinates to read latitude and longitude. You need to keep in mind that you are really using a different projection, so your coordinate system is going to be different. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen Sent: Wednesday, January 16, 2008 5:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift To further discuss this topic. I created a map of Europe in a regular EPSG:32662(proj=eqc) and one map of Europe with a latitude shift to 60 degrees north: Map of Europe in 32662: http://bildr.no/view/143324 Map of Europe with latitude shift: http://bildr.no/view/143325 The latter is close to what I want. However, if I move my zoom in to some part of the nordic countries, the decimal degree coordinates will no longer correspond with my coordinates in my 32662 projection with the latitude shift. Why is this? Espen On 16/01/2008, Espen Isaksen wrote: > > EPSG:4326 is a geographic coordinate system, and the coordinates are in > > decimal degrees. +proj=eqc is a projected coordinate system and the > > coordinates are meters. The location (-180,90) would be roughly > > (-20000000,100000). > > > > Essentially eqc (ie. equidistant cylindrical or Plate Carree) is just > > a rescaling of EPSG:4326 from degrees to meters. > > > > Ok I understand this. > > > I'm afraid I just don't get what you hope to accomplish with +lat_ts=60. > > Are you hoping to get one projected meter being one meter on the ground > > at 60N as opposed to it being one meter at the equator as is the default? > > I'm not aware of proj=eqc supporting any such option. > > Yes I am trying to change the projection such that it gets less > distorted in areas near the north pole. I tried to set the mapfile > like this: > > EXTENT 593674.73 6669772.29 594581.49 6670417.57 > PROJECTION > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 > +datum=WGS84 +no_defs +units=m" > END > > which seems to create an quite ok map. Much better than setting > +lat_ts=0. Although I do not understand why Mapserver creates a map > over a different area than what my original decimal degree areas > indicates(I used proj to convert them)? > > By the way my original decimal degree coordinates are: > 10.6661 59.9155 10.6824 59.9213 > > Perhaps what I am doing is just nonsense... > > Espen > From gisaalter at GMAIL.COM Thu Jan 17 06:09:24 2008 From: gisaalter at GMAIL.COM (Steven De Vriendt) Date: Thu, 17 Jan 2008 15:09:24 +0100 Subject: PostGIS connection In-Reply-To: <95d1ba280801170457ydc6e164ub6e6e92567267115@mail.gmail.com> Message-ID: Check the pg_hba.conf file and check if your login credentials allow you to connect ! All the best, Steven On Jan 17, 2008 1:57 PM, Bego?a Gonzalez wrote: > Postgres is running with the postmaster. > > When I try to connect access the database independent of mapserver there > is the following error message: > > "Error connecting to the server: no se pudo conectar con el servidor: > Connection refused (0x0000274D/10061) > ?Est? el servidor en ejecuci?n en el servidor <<***.***.**.*>> y > aceptando conexiones TCP /IP en el puerto 5432?" > > The server is runing so I suppose that the problem is with TCP/IP > connections but I?m not sure of this settings. How do i check the TCP/IP > connection of 5432 port? > > Thanks > > > On Jan 17, 2008 11:47 AM, Steven De Vriendt wrote: > > > So, is postgres up and running with the postmaster ? > > Check if you can access the database independent of mapserver... > > > > Steven > > > > On Jan 17, 2008 11:04 AM, SUBSCRIBE MAPSERVER-USERS Bego D. < > > begodom at gmail.com> wrote: > > > > > Hello > > > > > > We are new in Mapserver. > > > > > > I have installed MapServer 4 Windows version 2.2.6 on my computer and > > > in > > > another computer of my office we have installed Postgis 1.3.2. for 8.2 > > > PostgreSQL. > > > > > > Both works fine, we can work with Mapserver-Oracle Spatial or with > > > .shp > > > or .tab, but now we want to connect MapServer with PostGis and we get > > > this > > > error: > > > > > > msDrawMap(): Image handling error. Failed to draw layer named > > > 'INFVIA'. > > > msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with > > > connect string 'host=****** dbname=**** user=postgres > > > password=****** port=5432'. Error reported was 'could not connect to > > > server: Connection refused (0x0000274D/10061) Is the server running on > > > host " 192.168.0.3 " and accepting TCP/IP connections on port 5432? '. > > > This > > > error occured when trying to make a connection to the specified > > > postgresql > > > server. Most commonly this is caused by (1) incorrect connection > > > string (2) > > > you didnt specify a 'user=...' in your connection string (3) the > > > postmaster > > > (postgresql server) isnt running (4) you are not allowing TCP/IP > > > connection to > > > the postmaster (5) your postmaster is not running on the correct port > > > - if its > > > not on 5432 you must specify a 'port=...' (6) the security on your > > > system > > > does not allow the webserver (usually user 'nobody') to make socket > > > connections to the postmaster (7) you forgot to specify a 'host=...' > > > if the > > > postmaster is on a different machine (8) you made a typo > > > > > > My .map is: > > > > > > > > > CONNECTIONTYPE POSTGIS > > > CONNECTION "host=***.***.**.* dbname=**user=postgres password=*** > > > port=5432" > > > DATA "the_geom geometry from INFVIA2" > > > > > > Any help will be appreciate. > > > > > > Bego > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Thu Jan 17 06:11:37 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 17 Jan 2008 08:11:37 -0600 Subject: edited image not being saved and displayed properly In-Reply-To: A Message-ID: Can you provide the text of your map file and the URL that you are using to call the MapServer? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of SUBSCRIBE MAPSERVER-USERS mapuser Sent: Thursday, January 17, 2008 4:55 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] edited image not being saved and displayed properly sorry. i forget to add one thing. when i use the full extent of the table in mapfile EXTENT, then it draws at that extent the whole data table, and on click it also centers the image, but with the extent of the small area, it is not centering it but showing a blank image. From lee_keel at TRIMBLE.COM Thu Jan 17 06:14:22 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Thu, 17 Jan 2008 09:14:22 -0500 Subject: mapserver error Message-ID: I am using ms4w 2.2.6. And commenting out ANGLE FOLLOW did not resolve either problem. -LK ________________________________ From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Thu 1/17/2008 2:56 AM To: Lee Keel Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] mapserver error strange... what version of mapserver are you using? can you (temporarily) turn off the angle follow of your labels and report if you're still having the same output problems thomas On Jan 16, 2008 8:03 PM, Lee Keel wrote: > sorry, I hit enter before I meant to.... > > You can view the blurring problem at: http://dev.uai.com:28080/public/blur .html > > > ________________________________ > > From: Ed McNierney [mailto:ed at topozone.com] > Sent: Wed 1/16/2008 12:13 PM > To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] mapserver error > > > > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. > > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel > Sent: Wednesday, January 16, 2008 1:06 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > Timothy, > > Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME "jpg" > MIMETYPE "image/jpeg" > DRIVER "GD/JPEG" > EXTENSION "jpg" > IMAGEMODE RGB > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME "gif" > MIMETYPE "image/gif" > DRIVER "GD/gif" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > > ________________________________ > > From: UMN MapServer Users List on behalf of Nolte, Tim > Sent: Wed 1/16/2008 11:49 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > One quick thought that I have since you say that a layer image is > blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON > set. This turns on interlacing and sometimes I see that it takes a few > seconds on my mapserver to fully render the image. If you want to > prevent this blurring turn that setting off in your Mapfile. > > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel > Sent: Wednesday, January 16, 2008 11:38 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] mapserver error > > Hello list. I am having a problem and it is beginning to look like > mapserver is behind it somehow. I am using ms4w 2.2.6 to render > postgres data to openlayers. Mapserver is configured to use IIS\CGI > instead of apache. I am actually having 2 problems, but I am not sure > that they are not related. One problem is that sometimes the server > just isn't returning any data for different layers to OpenLayers. I > have talked extensively with the OL guys and have come back to the fact > that if I take the URL that is requesting the information from > mapserver, then I get: "The specified CGI application misbehaved by not > returning a complete set of HTTP headers." The most consistent way I > can reproduce this is to zoom in real close. The second problem I am > having is that when I am getting layer images back, they are blurred on > the bottom portion. It looks like someone took a cloth and just wiped a > whiteboard. > > I am about 5 days late on a deadline to have this up and running, so I > am open to try any suggestions that someone may have. > > Thanks in advance, > Lee > From Bob.Basques at CI.STPAUL.MN.US Thu Jan 17 06:24:06 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 17 Jan 2008 08:24:06 -0600 Subject: Googlish MapFile V0,01 released (cleaner posting?) Message-ID: All, I've gotten a couple of questions about the fonts and symbol sets (Which I knew would happen :c), I'm in the process of getting permissions to redistribute what I have, or get some to include in the distribution, it would be good to have some variety available to, so I may find a few different ones. Anyway, once I get the permissions set, I'll include them with a future distribution. bobb **************** You can't be late until you show up. *************** ************ You never learn anything by doing it right. ************ *** War doesn't determine who's right. War determines who's left. *** From marcos at BURKE.ATH.CX Thu Jan 17 06:45:22 2008 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 17 Jan 2008 15:45:22 +0100 Subject: PostGIS connection In-Reply-To: Message-ID: Have you tried to connect from the webserver that is running mapserver, qith exactly the same network parameters as you put in the mapfile? El jue, 17-01-2008 a las 04:04 -0600, SUBSCRIBE MAPSERVER-USERS Bego D. escribi?: > Hello > > We are new in Mapserver. > > I have installed MapServer 4 Windows version 2.2.6 on my computer and in > another computer of my office we have installed Postgis 1.3.2. for 8.2 > PostgreSQL. > > Both works fine, we can work with Mapserver-Oracle Spatial or with .shp > or .tab, but now we want to connect MapServer with PostGis and we get this > error: > > msDrawMap(): Image handling error. Failed to draw layer named 'INFVIA'. > msPOSTGISLayerOpen(): Query error. couldnt make connection to DB with > connect string 'host=****** dbname=**** user=postgres > password=****** port=5432'. Error reported was 'could not connect to > server: Connection refused (0x0000274D/10061) Is the server running on > host "192.168.0.3" and accepting TCP/IP connections on port 5432? '. This > error occured when trying to make a connection to the specified postgresql > server. Most commonly this is caused by (1) incorrect connection string (2) > you didnt specify a 'user=...' in your connection string (3) the postmaster > (postgresql server) isnt running (4) you are not allowing TCP/IP connection to > the postmaster (5) your postmaster is not running on the correct port - if its > not on 5432 you must specify a 'port=...' (6) the security on your system > does not allow the webserver (usually user 'nobody') to make socket > connections to the postmaster (7) you forgot to specify a 'host=...' if the > postmaster is on a different machine (8) you made a typo > > My .map is: > > > CONNECTIONTYPE POSTGIS > CONNECTION "host=***.***.**.* dbname=**user=postgres password=*** > port=5432" > DATA "the_geom geometry from INFVIA2" > > Any help will be appreciate. > > Bego From map.user at YAHOO.COM Thu Jan 17 06:50:33 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Thu, 17 Jan 2008 08:50:33 -0600 Subject: edited image not being saved and displayed properly Message-ID: hey, thanks for your very help. i got it working now. the problem was in the template file. thanks again. From begodom at GMAIL.COM Thu Jan 17 08:22:33 2008 From: begodom at GMAIL.COM (=?ISO-8859-1?Q?Bego=F1a_Gonzalez?=) Date: Thu, 17 Jan 2008 17:22:33 +0100 Subject: PostGIS connection In-Reply-To: <1200581122.10583.92.camel@savin> Message-ID: Work it!! I just change the pg_hba.conf file Thanks. Gracias a todos!!! Bego?a -------------- next part -------------- An HTML attachment was scrubbed... URL: From wwittenburg at COMCAST.NET Thu Jan 17 11:59:23 2008 From: wwittenburg at COMCAST.NET (Scott Wittenburg) Date: Thu, 17 Jan 2008 19:59:23 +0000 Subject: Trouble with OGC Workshop WFS Client Demo Message-ID: Hello All, I'm new to mapserver, and I'm having trouble getting one of the OGC Workshop demos to work. Hopefully I'll include enough support information here so that someone can help me figure what I'm doing wrong. If anything is missing, please ask and I'll provide any other necessary details. Thanks for taking the time to read this problem description. Ok, specifically, when I attempt to run the WFS client demo, I get an error in my browser window which looks like this: msDrawMap(): Image handling error. Failed to draw layer named 'envirodat'. msOGRFileOpen(): OGR error. Open failed for OGR connection `/ms4w/tmp/ms_tmp/e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml'. File not found or unsupported format. The url that generated this error was: http://localhost/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fms_ogc_workshop%2Fclient%2Fwfs%2Fdemo.map&layer=envirodat&layer=rivers&layer=land_shallow_topo_2048&zoomsize=2&zoomdir=1&program=%2Fcgi-bin%2Fmapserv.exe&map_web=imagepath+%2Fms4w%2Ftmp%2Fms_tmp%2F+imageurl+%2Fms_tmp%2F When I look in the directory "C:\ms4w\tmp\ms_tmp\", I see the file in question and I've looked at it. It appears to be valid GML, though the cygwin "ls -lt" command shows the file permissions as "-rwxrwx---". Is this a problem (not world readable)? The "C:\ms4w\tmp\ms_tmp\" directory permissions are even more restrictive: "drwx------". I've tried opening up all the permissions on all these files and directories, but it didn't seem to help. Here are some system configuration details: I'm running Windows XP, SP2. I installed MS4W version 2.2.6 and the OGC Workshop version 1.0.8 into the recommended location, "C:\" (root directory is "C:\ms4w\"). Everything seemed to work fine, and several of the workshop demos worked fine, but when I clicked on the WFS-Client demo link and then clicked the "Initialize" button, I got the error message shown above. I noticed a message in the archives that looked very similar to this error, but the problem was actually an extra path separator char getting put into the tmp file path. Other than that, I haven't really seen this problem addressed anywhere, so most people obviously aren't seeing it. One thing I found that people have said could be a problem is the version of OGR/GDAL used by mapserver. I've used the "C:\ms4w\tools\gdal-ogr\ogrinfo.exe program to look at the tmp gml file in question: C:\ms4w\tools\gdal-ogr>ogrinfo.exe C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml Had to open data source read-only. INFO: Open of 'C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml' using driver 'GML' successfull. 1: envirodat So that seems fine, doesn't it? The MS4W 2.2.6 documentation says it includes "GDAL/OGR 1.4.2 and Utilities", so that seems fine too. Here's the mapfile of the demo that caused the problem: # # $Id: demo.map,v 1.2 2006/08/08 19:02:46 tkralidi Exp $ # # Start of map file # MAP # all temp files get prefixed with this string NAME ms_ogc_workshop # always returns a map STATUS ON # image format options OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # width / height of map image SIZE 500 300 # projection of the INTERFACE that this mapfile supports PROJECTION "init=epsg:4326" END # minx miny maxx maxy EXTENT -180 -90 180 90 # World # units of map/app UNITS DD # def pointers for symbols SYMBOLSET "../../etc/symbols/symbols.sym" FONTSET "../../etc/fonts/fonts.txt" # # Start of web interface definition # WEB TEMPLATE "../../templates/demo.html" HEADER "../../templates/query_header.html" FOOTER "../../templates/query_footer.html" # this is set in the form which initializes the page, but can be set here if you want IMAGEPATH "/ms4w/tmp/ms_tmp/" # this is set in the form which initializes the page, but can be set here if you want IMAGEURL "/ms_tmp/" END # # Start of reference map # REFERENCE # which image is the base image for refmaps # a area of interest box will be drawn on top of it IMAGE ../../graphics/refmap_world_4326.gif # extents of ref image (minx miny maxx maxy) EXTENT -180 -90 180 90 # width / height of image SIZE 150 75 # always generated STATUS ON COLOR -1 -1 -1 # color of outline OUTLINECOLOR 255 0 0 END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END TEMPLATE "../../templates/legend.html" STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 0 0 LABEL COLOR 0 0 0 SIZE tiny END STYLE 1 SIZE 80 2 COLOR 0 0 0 UNITS KILOMETERS INTERVALS 1 TRANSPARENT TRUE STATUS TRUE END # start of querymap object QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END # start of layer definitions LAYER # name of layer NAME land_shallow_topo_2048 GROUP "RASTER" # projection: if the data is NOT in the same projection as the global # mapfile, you must explicitly give the native projection code of the data # some common projections: # lat/long: epsg:4326 # NRCan LCC: epsg:42304 PROJECTION "init=epsg:4326" END # what type of data is this? TYPE RASTER # always returned with interface STATUS ON # actual data pointer DATA ../../data/land_shallow_topo_2048.tif DUMP TRUE HEADER "../../templates/land_shallow_topo_2048_query_header.html" TEMPLATE "../../templates/land_shallow_topo_2048_query_body.html" TOLERANCE 5 END LAYER # name of layer NAME rivers GROUP "VECTOR" # projection: if the data is NOT in the same projection as the global # mapfile, you must explicitly give the native projection code of the data # some common projections: # lat/long: epsg:4326 # NRCan LCC: epsg:42304 PROJECTION "init=epsg:4326" END # what type of data is this? TYPE LINE # always returned with interface STATUS ON # actual data pointer DATA ../../data/rivers # data is queryable DUMP TRUE # query templates for HTML-based queries HEADER ../../templates/rivers_query_header.html TEMPLATE ../../templates/rivers_query_body.html TOLERANCE 5 # how will this data look? CLASS NAME "Rivers" COLOR 0 0 255 END END LAYER NAME envirodat GROUP "VECTOR" TYPE POINT STATUS ON # this is a remote OGC:WFS CONNECTIONTYPE WFS # the server URL prefix # MapServer will add the OGC:WMS specific # keyword value pairs accordingly #CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1.0.0&request=GetFeature" CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" PROJECTION "init=epsg:4326" END # base info MapServer needs to know to generate the # OGC:WFS GetFeature request METADATA # MapServer default sends POST # force to GET "wfs_request_method" "GET" # how long (in seconds) should MapServer use # in issuing and receiving the data? "wfs_connectiontimeout" "60" # which version of the OGC:WFS should MapServer communicate with "wfs_version" "1.0.0" # service type for connection # this info is a bit redundant "wfs_service" "WFS" # what is the feature type you are querying "wfs_typename" "envirodat" # what is the spatial extent? "wfs_latlonboundingbox" "-64.6622 46.7594 -52.6808 55.2333" # END # # MapServer will then use this information to generate a string like: # http://map.ns.ec.gc.ca/envdat/map.aspx?version=&service=&request=GetFeature&typename= # # missing required keyword value pairs get generated according # to the application using this mapfile, i.e.: # &bbox, &filter, etc. CLASS NAME "Water Quality Monitoring Stations" COLOR 255 255 0 END END END From lee_keel at TRIMBLE.COM Thu Jan 17 13:04:33 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Thu, 17 Jan 2008 16:04:33 -0500 Subject: mapserver error Message-ID: Anyone else got a thought here? Or can tell me where to check the debug logs? I have turned DEBUG 5 in my map file but there is nothing in the log file other than "...... normal execution". Thanks in advance, LK ________________________________ From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Thu 1/17/2008 2:56 AM To: Lee Keel Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] mapserver error strange... what version of mapserver are you using? can you (temporarily) turn off the angle follow of your labels and report if you're still having the same output problems thomas On Jan 16, 2008 8:03 PM, Lee Keel wrote: > sorry, I hit enter before I meant to.... > > You can view the blurring problem at: http://dev.uai.com:28080/public/blur .html > > > ________________________________ > > From: Ed McNierney [mailto:ed at topozone.com] > Sent: Wed 1/16/2008 12:13 PM > To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] mapserver error > > > > Lee - > > INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. > > But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. > > It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel > Sent: Wednesday, January 16, 2008 1:06 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > Timothy, > > Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME "jpg" > MIMETYPE "image/jpeg" > DRIVER "GD/JPEG" > EXTENSION "jpg" > IMAGEMODE RGB > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > OUTPUTFORMAT > NAME "gif" > MIMETYPE "image/gif" > DRIVER "GD/gif" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT FALSE > FORMATOPTION "INTERLACE=OFF" > END > > > ________________________________ > > From: UMN MapServer Users List on behalf of Nolte, Tim > Sent: Wed 1/16/2008 11:49 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > One quick thought that I have since you say that a layer image is > blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON > set. This turns on interlacing and sometimes I see that it takes a few > seconds on my mapserver to fully render the image. If you want to > prevent this blurring turn that setting off in your Mapfile. > > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel > Sent: Wednesday, January 16, 2008 11:38 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] mapserver error > > Hello list. I am having a problem and it is beginning to look like > mapserver is behind it somehow. I am using ms4w 2.2.6 to render > postgres data to openlayers. Mapserver is configured to use IIS\CGI > instead of apache. I am actually having 2 problems, but I am not sure > that they are not related. One problem is that sometimes the server > just isn't returning any data for different layers to OpenLayers. I > have talked extensively with the OL guys and have come back to the fact > that if I take the URL that is requesting the information from > mapserver, then I get: "The specified CGI application misbehaved by not > returning a complete set of HTTP headers." The most consistent way I > can reproduce this is to zoom in real close. The second problem I am > having is that when I am getting layer images back, they are blurred on > the bottom portion. It looks like someone took a cloth and just wiped a > whiteboard. > > I am about 5 days late on a deadline to have this up and running, so I > am open to try any suggestions that someone may have. > > Thanks in advance, > Lee > From Steve.Lime at DNR.STATE.MN.US Thu Jan 17 14:47:46 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 17 Jan 2008 16:47:46 -0600 Subject: mapserver error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C4B@usd-am-xch-01.am.trimblecorp.net> Message-ID: Shp2img works ok on the mapfile? Does apache work or is this IIS only? >>> On 1/17/2008 at 3:04 PM, in message <944DCD961F4CD649BCEBB52E3C929F6501863C4B at usd-am-xch-01.am.trimblecorp.net>, Lee Keel wrote: > Anyone else got a thought here? Or can tell me where to check the debug > logs? I have turned DEBUG 5 in my map file but there is nothing in the log > file other than "...... normal execution". > > Thanks in advance, > LK > > ________________________________ > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thu 1/17/2008 2:56 AM > To: Lee Keel > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > strange... > what version of mapserver are you using? > can you (temporarily) turn off the angle follow of your labels and > report if you're still having the same output problems > > thomas > > On Jan 16, 2008 8:03 PM, Lee Keel wrote: >> sorry, I hit enter before I meant to.... >> >> You can view the blurring problem at: > http://dev.uai.com:28080/public/blur > .html >> >> >> ________________________________ >> >> From: Ed McNierney [mailto:ed at topozone.com] >> Sent: Wed 1/16/2008 12:13 PM >> To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: RE: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> Lee - >> >> INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an > interlaced output image, the first, alternating set of scanlines will be > displayed and then your browser will start again at the top of the image, > filling in the alternate interlacing lines. This will cause the top of the > image to appear complete while the bottom is "blurry". You can see > variations on these visual artifacts depending on your browser, and the > effect is more pronounced over a slow connection. >> >> But if the image still looks blurry at the bottom even after you're certain > the image has been completely loaded, then this is not your problem. >> >> It's hard to diagnose visual problems in text; can you either post the > output image or (preferably) a public URL where the image can be viewed? >> >> - Ed >> >> Ed McNierney >> Chief Mapmaker >> Demand Media / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> Phone: +1 (978) 251-4242 >> Fax: +1 (978) 251-1396 >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 1:06 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> Timothy, >> >> Here are the OUTPUTFORMAT options I have in my map file. Do they look > correct? >> >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "GD/PNG" >> EXTENSION "png" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "jpg" >> MIMETYPE "image/jpeg" >> DRIVER "GD/JPEG" >> EXTENSION "jpg" >> IMAGEMODE RGB >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "gif" >> MIMETYPE "image/gif" >> DRIVER "GD/gif" >> EXTENSION "gif" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> >> ________________________________ >> >> From: UMN MapServer Users List on behalf of Nolte, Tim >> Sent: Wed 1/16/2008 11:49 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> One quick thought that I have since you say that a layer image is >> blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON >> set. This turns on interlacing and sometimes I see that it takes a few >> seconds on my mapserver to fully render the image. If you want to >> prevent this blurring turn that setting off in your Mapfile. >> >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 11:38 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] mapserver error >> >> Hello list. I am having a problem and it is beginning to look like >> mapserver is behind it somehow. I am using ms4w 2.2.6 to render >> postgres data to openlayers. Mapserver is configured to use IIS\CGI >> instead of apache. I am actually having 2 problems, but I am not sure >> that they are not related. One problem is that sometimes the server >> just isn't returning any data for different layers to OpenLayers. I >> have talked extensively with the OL guys and have come back to the fact >> that if I take the URL that is requesting the information from >> mapserver, then I get: "The specified CGI application misbehaved by not >> returning a complete set of HTTP headers." The most consistent way I >> can reproduce this is to zoom in real close. The second problem I am >> having is that when I am getting layer images back, they are blurred on >> the bottom portion. It looks like someone took a cloth and just wiped a >> whiteboard. >> >> I am about 5 days late on a deadline to have this up and running, so I >> am open to try any suggestions that someone may have. >> >> Thanks in advance, >> Lee >> From lee_keel at TRIMBLE.COM Thu Jan 17 15:24:25 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Thu, 17 Jan 2008 18:24:25 -0500 Subject: mapserver error Message-ID: Steve, I can't get shp2img to work. It throws an error for "shared connection not available". I have tried this with 2 different bounding boxes (one that works and one that doesn't) and I get the same results. Any suggestions on this? This is an IIS only solution. Their sys admins have something serious against Apache... For some reason. My guess is lack of knowledge. -LK ________________________________ From: UMN MapServer Users List on behalf of Steve Lime Sent: Thu 1/17/2008 4:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Shp2img works ok on the mapfile? Does apache work or is this IIS only? >>> On 1/17/2008 at 3:04 PM, in message <944DCD961F4CD649BCEBB52E3C929F6501863C4B at usd-am-xch-01.am.trimblecorp.net>, Lee Keel wrote: > Anyone else got a thought here? Or can tell me where to check the debug > logs? I have turned DEBUG 5 in my map file but there is nothing in the log > file other than "...... normal execution". > > Thanks in advance, > LK > > ________________________________ > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thu 1/17/2008 2:56 AM > To: Lee Keel > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > strange... > what version of mapserver are you using? > can you (temporarily) turn off the angle follow of your labels and > report if you're still having the same output problems > > thomas > > On Jan 16, 2008 8:03 PM, Lee Keel wrote: >> sorry, I hit enter before I meant to.... >> >> You can view the blurring problem at: > http://dev.uai.com:28080/public/blur > .html >> >> >> ________________________________ >> >> From: Ed McNierney [mailto:ed at topozone.com] >> Sent: Wed 1/16/2008 12:13 PM >> To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: RE: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> Lee - >> >> INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an > interlaced output image, the first, alternating set of scanlines will be > displayed and then your browser will start again at the top of the image, > filling in the alternate interlacing lines. This will cause the top of the > image to appear complete while the bottom is "blurry". You can see > variations on these visual artifacts depending on your browser, and the > effect is more pronounced over a slow connection. >> >> But if the image still looks blurry at the bottom even after you're certain > the image has been completely loaded, then this is not your problem. >> >> It's hard to diagnose visual problems in text; can you either post the > output image or (preferably) a public URL where the image can be viewed? >> >> - Ed >> >> Ed McNierney >> Chief Mapmaker >> Demand Media / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> Phone: +1 (978) 251-4242 >> Fax: +1 (978) 251-1396 >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 1:06 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> Timothy, >> >> Here are the OUTPUTFORMAT options I have in my map file. Do they look > correct? >> >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "GD/PNG" >> EXTENSION "png" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "jpg" >> MIMETYPE "image/jpeg" >> DRIVER "GD/JPEG" >> EXTENSION "jpg" >> IMAGEMODE RGB >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "gif" >> MIMETYPE "image/gif" >> DRIVER "GD/gif" >> EXTENSION "gif" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> >> ________________________________ >> >> From: UMN MapServer Users List on behalf of Nolte, Tim >> Sent: Wed 1/16/2008 11:49 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> One quick thought that I have since you say that a layer image is >> blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON >> set. This turns on interlacing and sometimes I see that it takes a few >> seconds on my mapserver to fully render the image. If you want to >> prevent this blurring turn that setting off in your Mapfile. >> >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 11:38 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] mapserver error >> >> Hello list. I am having a problem and it is beginning to look like >> mapserver is behind it somehow. I am using ms4w 2.2.6 to render >> postgres data to openlayers. Mapserver is configured to use IIS\CGI >> instead of apache. I am actually having 2 problems, but I am not sure >> that they are not related. One problem is that sometimes the server >> just isn't returning any data for different layers to OpenLayers. I >> have talked extensively with the OL guys and have come back to the fact >> that if I take the URL that is requesting the information from >> mapserver, then I get: "The specified CGI application misbehaved by not >> returning a complete set of HTTP headers." The most consistent way I >> can reproduce this is to zoom in real close. The second problem I am >> having is that when I am getting layer images back, they are blurred on >> the bottom portion. It looks like someone took a cloth and just wiped a >> whiteboard. >> >> I am about 5 days late on a deadline to have this up and running, so I >> am open to try any suggestions that someone may have. >> >> Thanks in advance, >> Lee >> From gevensen at ALPHATRONICS.NET Thu Jan 17 15:33:56 2008 From: gevensen at ALPHATRONICS.NET (Gregory Evensen) Date: Thu, 17 Jan 2008 18:33:56 -0500 Subject: mapserver error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C4B@usd-am-xch-01.am.trimblecorp.net> Message-ID: I'm not sure if this is it, but a number of years ago, I had a PC running a RIP application give similar results. It turned out to be a bad external cache chip. It still baffles me as to why it only affected image data, and not crash the computer. Greg Lee Keel wrote: > Anyone else got a thought here? Or can tell me where to check the debug logs? I have turned DEBUG 5 in my map file but there is nothing in the log file other than "...... normal execution". > > Thanks in advance, > LK > > ________________________________ > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thu 1/17/2008 2:56 AM > To: Lee Keel > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > strange... > what version of mapserver are you using? > can you (temporarily) turn off the angle follow of your labels and > report if you're still having the same output problems > > thomas > > On Jan 16, 2008 8:03 PM, Lee Keel wrote: > >> sorry, I hit enter before I meant to.... >> >> You can view the blurring problem at: http://dev.uai.com:28080/public/blur .html >> >> >> ________________________________ >> >> From: Ed McNierney [mailto:ed at topozone.com] >> Sent: Wed 1/16/2008 12:13 PM >> To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: RE: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> Lee - >> >> INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an interlaced output image, the first, alternating set of scanlines will be displayed and then your browser will start again at the top of the image, filling in the alternate interlacing lines. This will cause the top of the image to appear complete while the bottom is "blurry". You can see variations on these visual artifacts depending on your browser, and the effect is more pronounced over a slow connection. >> >> But if the image still looks blurry at the bottom even after you're certain the image has been completely loaded, then this is not your problem. >> >> It's hard to diagnose visual problems in text; can you either post the output image or (preferably) a public URL where the image can be viewed? >> >> - Ed >> >> Ed McNierney >> Chief Mapmaker >> Demand Media / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> Phone: +1 (978) 251-4242 >> Fax: +1 (978) 251-1396 >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 1:06 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> Timothy, >> >> Here are the OUTPUTFORMAT options I have in my map file. Do they look correct? >> >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "GD/PNG" >> EXTENSION "png" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "jpg" >> MIMETYPE "image/jpeg" >> DRIVER "GD/JPEG" >> EXTENSION "jpg" >> IMAGEMODE RGB >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "gif" >> MIMETYPE "image/gif" >> DRIVER "GD/gif" >> EXTENSION "gif" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> >> ________________________________ >> >> From: UMN MapServer Users List on behalf of Nolte, Tim >> Sent: Wed 1/16/2008 11:49 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> One quick thought that I have since you say that a layer image is >> blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON >> set. This turns on interlacing and sometimes I see that it takes a few >> seconds on my mapserver to fully render the image. If you want to >> prevent this blurring turn that setting off in your Mapfile. >> >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 11:38 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] mapserver error >> >> Hello list. I am having a problem and it is beginning to look like >> mapserver is behind it somehow. I am using ms4w 2.2.6 to render >> postgres data to openlayers. Mapserver is configured to use IIS\CGI >> instead of apache. I am actually having 2 problems, but I am not sure >> that they are not related. One problem is that sometimes the server >> just isn't returning any data for different layers to OpenLayers. I >> have talked extensively with the OL guys and have come back to the fact >> that if I take the URL that is requesting the information from >> mapserver, then I get: "The specified CGI application misbehaved by not >> returning a complete set of HTTP headers." The most consistent way I >> can reproduce this is to zoom in real close. The second problem I am >> having is that when I am getting layer images back, they are blurred on >> the bottom portion. It looks like someone took a cloth and just wiped a >> whiteboard. >> >> I am about 5 days late on a deadline to have this up and running, so I >> am open to try any suggestions that someone may have. >> >> Thanks in advance, >> Lee >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Jan 17 17:36:38 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 17 Jan 2008 20:36:38 -0500 Subject: mapserver error In-Reply-To: A<944DCD961F4CD649BCEBB52E3C929F6501863C4D@usd-am-xch-01.am.trimblecorp.net> Message-ID: Lee - OK, here's some hypothesizing, which is about the best we can do from afar. Your map request works for certain bounding boxes, but not for others. It appears to both reliably and repeatedly work on the good bounding boxes, and reliably and repeatably fail on the bad ones. The layer is a PostgreSQL layer, so each map-rendering request produces a database query to retrieve data. I have never tried DEBUG logging to see if reports database queries, but if you have control over the database server you can turn on query logging in the postgresql.conf file. As a fallback you can look at the map bounding box and synthesize the queries by hand, but that is prone to error. Something should be different between the query that results in a good map and the query that results in a bad map. Do both queries actually work? Does the data returned look different in any notable way? What happens? BTW, what does "mapserv -v" from the command line return? - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Thursday, January 17, 2008 6:24 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Steve, I can't get shp2img to work. It throws an error for "shared connection not available". I have tried this with 2 different bounding boxes (one that works and one that doesn't) and I get the same results. Any suggestions on this? This is an IIS only solution. Their sys admins have something serious against Apache... For some reason. My guess is lack of knowledge. -LK ________________________________ From: UMN MapServer Users List on behalf of Steve Lime Sent: Thu 1/17/2008 4:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Shp2img works ok on the mapfile? Does apache work or is this IIS only? >>> On 1/17/2008 at 3:04 PM, in message <944DCD961F4CD649BCEBB52E3C929F6501863C4B at usd-am-xch-01.am.trimblecorp.n et>, Lee Keel wrote: > Anyone else got a thought here? Or can tell me where to check the debug > logs? I have turned DEBUG 5 in my map file but there is nothing in the log > file other than "...... normal execution". > > Thanks in advance, > LK > > ________________________________ > > From: thomas bonfort [mailto:thomas.bonfort at gmail.com] > Sent: Thu 1/17/2008 2:56 AM > To: Lee Keel > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > strange... > what version of mapserver are you using? > can you (temporarily) turn off the angle follow of your labels and > report if you're still having the same output problems > > thomas > > On Jan 16, 2008 8:03 PM, Lee Keel wrote: >> sorry, I hit enter before I meant to.... >> >> You can view the blurring problem at: > http://dev.uai.com:28080/public/blur > .html >> >> >> ________________________________ >> >> From: Ed McNierney [mailto:ed at topozone.com] >> Sent: Wed 1/16/2008 12:13 PM >> To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: RE: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> Lee - >> >> INTERLACE=ON is not "wrong". Tim is pointing out that if you're viewing an > interlaced output image, the first, alternating set of scanlines will be > displayed and then your browser will start again at the top of the image, > filling in the alternate interlacing lines. This will cause the top of the > image to appear complete while the bottom is "blurry". You can see > variations on these visual artifacts depending on your browser, and the > effect is more pronounced over a slow connection. >> >> But if the image still looks blurry at the bottom even after you're certain > the image has been completely loaded, then this is not your problem. >> >> It's hard to diagnose visual problems in text; can you either post the > output image or (preferably) a public URL where the image can be viewed? >> >> - Ed >> >> Ed McNierney >> Chief Mapmaker >> Demand Media / TopoZone.com >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> ed at topozone.com >> Phone: +1 (978) 251-4242 >> Fax: +1 (978) 251-1396 >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 1:06 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> Timothy, >> >> Here are the OUTPUTFORMAT options I have in my map file. Do they look > correct? >> >> OUTPUTFORMAT >> NAME "png" >> MIMETYPE "image/png" >> DRIVER "GD/PNG" >> EXTENSION "png" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "jpg" >> MIMETYPE "image/jpeg" >> DRIVER "GD/JPEG" >> EXTENSION "jpg" >> IMAGEMODE RGB >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> OUTPUTFORMAT >> NAME "gif" >> MIMETYPE "image/gif" >> DRIVER "GD/gif" >> EXTENSION "gif" >> IMAGEMODE PC256 >> TRANSPARENT FALSE >> FORMATOPTION "INTERLACE=OFF" >> END >> >> >> ________________________________ >> >> From: UMN MapServer Users List on behalf of Nolte, Tim >> Sent: Wed 1/16/2008 11:49 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] mapserver error >> >> >> >> One quick thought that I have since you say that a layer image is >> blurred on the bottom portion is that you have FORMATOPTION INTERLACE=ON >> set. This turns on interlacing and sometimes I see that it takes a few >> seconds on my mapserver to fully render the image. If you want to >> prevent this blurring turn that setting off in your Mapfile. >> >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163>> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Lee Keel >> Sent: Wednesday, January 16, 2008 11:38 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] mapserver error >> >> Hello list. I am having a problem and it is beginning to look like >> mapserver is behind it somehow. I am using ms4w 2.2.6 to render >> postgres data to openlayers. Mapserver is configured to use IIS\CGI >> instead of apache. I am actually having 2 problems, but I am not sure >> that they are not related. One problem is that sometimes the server >> just isn't returning any data for different layers to OpenLayers. I >> have talked extensively with the OL guys and have come back to the fact >> that if I take the URL that is requesting the information from >> mapserver, then I get: "The specified CGI application misbehaved by not >> returning a complete set of HTTP headers." The most consistent way I >> can reproduce this is to zoom in real close. The second problem I am >> having is that when I am getting layer images back, they are blurred on >> the bottom portion. It looks like someone took a cloth and just wiped a >> whiteboard. >> >> I am about 5 days late on a deadline to have this up and running, so I >> am open to try any suggestions that someone may have. >> >> Thanks in advance, >> Lee >> From lee_keel at TRIMBLE.COM Thu Jan 17 19:23:18 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Thu, 17 Jan 2008 22:23:18 -0500 Subject: mapserver error Message-ID: Ed, Thanks for the reply. Now I am truely confused! I turned on logging to catch the queries from mapserver. Here are the statements that were dumped to the log. Note the section in blue worked and the section in red did NOT work. 2008-01-17 22:02:19 LOG: statement: select substring(version() from 12 for (position('on' in version()) - 13)) 2008-01-17 22:02:19 LOG: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'main' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null 2008-01-17 22:02:19 LOG: statement: BEGIN 2008-01-17 22:02:19 LOG: statement: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),prikey::text from main WHERE the_geom && setSRID('BOX3D(1590352.72000359 431253.572104297,1590665.28836297 431442.558920703)'::BOX3D, find_srid('','main','the_geom') ) 2008-01-17 22:02:19 LOG: statement: FETCH ALL in mycursor 2008-01-17 22:02:19 LOG: statement: CLOSE mycursor 2008-01-17 22:02:51 LOG: statement: select substring(version() from 12 for (position('on' in version()) - 13)) 2008-01-17 22:02:51 LOG: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'main' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null 2008-01-17 22:02:51 LOG: statement: BEGIN 2008-01-17 22:02:51 LOG: statement: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),prikey::text from main WHERE the_geom && setSRID('BOX3D(1588008.45730828 429836.17098125,1593009.55105828 432859.96004375)'::BOX3D, find_srid('','main','the_geom') ) 2008-01-17 22:02:51 LOG: statement: FETCH ALL in mycursor 2008-01-17 22:02:51 LOG: statement: CLOSE mycursor I pulled both queries out of the log and both work and return data. Both returned LINESTRING rows as expected and grew in row count as expected because the BBOX grew. From what I can tell there is no difference between these two queries other than the BBOX. mapserv -v: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE If postgres is returning data, but mapserver is not rendering properly; then could there be something wrong in config of mapserver? Could I have something completely mixed up with in mapfile? Thanks, Lee ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Thu 1/17/2008 7:36 PM To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver error Lee - OK, here's some hypothesizing, which is about the best we can do from afar. Your map request works for certain bounding boxes, but not for others. It appears to both reliably and repeatedly work on the good bounding boxes, and reliably and repeatably fail on the bad ones. The layer is a PostgreSQL layer, so each map-rendering request produces a database query to retrieve data. I have never tried DEBUG logging to see if reports database queries, but if you have control over the database server you can turn on query logging in the postgresql.conf file. As a fallback you can look at the map bounding box and synthesize the queries by hand, but that is prone to error. Something should be different between the query that results in a good map and the query that results in a bad map. Do both queries actually work? Does the data returned look different in any notable way? What happens? BTW, what does "mapserv -v" from the command line return? - Ed From lee_keel at TRIMBLE.COM Thu Jan 17 19:28:47 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Thu, 17 Jan 2008 22:28:47 -0500 Subject: mapserver error Message-ID: Sorry for the multiple reply-posts, but I didn't realize color would not come through. The first section of the log below (up to first CLOSE mycursor) did not render valid data in my map, but the second part of the log did render data on the map. -LK ________________________________ From: UMN MapServer Users List on behalf of Lee Keel Sent: Thu 1/17/2008 9:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Ed, Thanks for the reply. Now I am truely confused! I turned on logging to catch the queries from mapserver. Here are the statements that were dumped to the log. Note the section in blue worked and the section in red did NOT work. 2008-01-17 22:02:19 LOG: statement: select substring(version() from 12 for (position('on' in version()) - 13)) 2008-01-17 22:02:19 LOG: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'main' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null 2008-01-17 22:02:19 LOG: statement: BEGIN 2008-01-17 22:02:19 LOG: statement: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),prikey::text from main WHERE the_geom && setSRID('BOX3D(1590352.72000359 431253.572104297,1590665.28836297 431442.558920703)'::BOX3D, find_srid('','main','the_geom') ) 2008-01-17 22:02:19 LOG: statement: FETCH ALL in mycursor 2008-01-17 22:02:19 LOG: statement: CLOSE mycursor 2008-01-17 22:02:51 LOG: statement: select substring(version() from 12 for (position('on' in version()) - 13)) 2008-01-17 22:02:51 LOG: statement: select attname from pg_attribute, pg_constraint, pg_class where pg_constraint.conrelid = pg_class.oid and pg_class.oid = pg_attribute.attrelid and pg_constraint.contype = 'p' and pg_constraint.conkey[1] = pg_attribute.attnum and pg_class.relname = 'main' and pg_table_is_visible(pg_class.oid) and pg_constraint.conkey[2] is null 2008-01-17 22:02:51 LOG: statement: BEGIN 2008-01-17 22:02:51 LOG: statement: DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),prikey::text from main WHERE the_geom && setSRID('BOX3D(1588008.45730828 429836.17098125,1593009.55105828 432859.96004375)'::BOX3D, find_srid('','main','the_geom') ) 2008-01-17 22:02:51 LOG: statement: FETCH ALL in mycursor 2008-01-17 22:02:51 LOG: statement: CLOSE mycursor I pulled both queries out of the log and both work and return data. Both returned LINESTRING rows as expected and grew in row count as expected because the BBOX grew. From what I can tell there is no difference between these two queries other than the BBOX. mapserv -v: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE If postgres is returning data, but mapserver is not rendering properly; then could there be something wrong in config of mapserver? Could I have something completely mixed up with in mapfile? Thanks, Lee ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Thu 1/17/2008 7:36 PM To: Lee Keel; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] mapserver error Lee - OK, here's some hypothesizing, which is about the best we can do from afar. Your map request works for certain bounding boxes, but not for others. It appears to both reliably and repeatedly work on the good bounding boxes, and reliably and repeatably fail on the bad ones. The layer is a PostgreSQL layer, so each map-rendering request produces a database query to retrieve data. I have never tried DEBUG logging to see if reports database queries, but if you have control over the database server you can turn on query logging in the postgresql.conf file. As a fallback you can look at the map bounding box and synthesize the queries by hand, but that is prone to error. Something should be different between the query that results in a good map and the query that results in a bad map. Do both queries actually work? Does the data returned look different in any notable way? What happens? BTW, what does "mapserv -v" from the command line return? - Ed From aberenyi at BURKEN.HU Thu Jan 17 23:37:40 2008 From: aberenyi at BURKEN.HU (=?ISO-8859-2?Q?Attila_Ber=E9nyi?=) Date: Fri, 18 Jan 2008 08:37:40 +0100 Subject: PrintProduction: visible coordinates, empty map Message-ID: Hi there, I've the same problem described here (http://lists.maptools.org/pipermail/chameleon/2006-May/004018.html), but recompiling PHP with the newest GD didn't solve the problem. Any other idea? Thanks in advance, Attila -------------- next part -------------- An HTML attachment was scrubbed... URL: From map.user at YAHOO.COM Fri Jan 18 01:26:48 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Fri, 18 Jan 2008 03:26:48 -0600 Subject: sql server 2008 Message-ID: hi, do MapServer 5.0 supports Sql Server 2008. From yatendra.jaiswal at GMAIL.COM Fri Jan 18 01:28:41 2008 From: yatendra.jaiswal at GMAIL.COM (yatendra) Date: Fri, 18 Jan 2008 01:28:41 -0800 Subject: Please help me SDE C# asp.net and mapserver connection problem.... In-Reply-To: Message-ID: Here is my mapfile layer.... LAYER ........ CONNECTION "host=GEN387 port:5151 user=****** password=****** dbname=****" CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN PLUGIN "C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" DATA "sde.SDE.TILE,SHAPE,sde.DEFAULT" STATUS on TYPE line ......... END If its because of asp.net version (64 bit), then what can be the solution??? please let me know.. Thanks Regards Tamas Szekeres wrote: > > Yatendra, > > It seems the ASP runtime is not able to load the plugin dll. You might > want try to copy this dll into the same directory where your ASP.NET > host process is running. If the dll can be loaded from the same > directory then it might be a security related issue. > > Another problem is that the SDE plugin is compiled as a 32 bit image > and the 64 bit version of the .NET framework cannot load it, > definitely. > > Best regards, > > Tamas > > > > 2008/1/15, yatendra : >> Hi to all, >> I am trying to connect mapserver with SDE. >> I have successfully connected in html(Map file working fine). >> Now i am trying this asp.net connetion with same map file. >> i followed all instruction and source codes given in tutorial >> http://www.paolocorti.net/public/wordpress/index.php/2006/09/20/mapserver-tutorial-for-c-mapscript-asp-net/. >> application is giving error while running. and error is as follows in >> MapStream.aspx.cs >> msDrawMap(): Image handling error. Failed to draw layer named >> 'TILE'.;loadCustomLayerDLL: General error message. Failed to load dynamic >> Layer LIB: >> C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll;msGetSymbol(): General >> error message. Can't load requested dynamic library: >> C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll >> >> >> PLease help me out to solve this problem. >> Why i am getting this problem. >> Can anyone explain please? >> Thanks Regards >> Yatendra >> >> >> -- >> View this message in context: >> http://www.nabble.com/Please-help-me-SDE-C--asp.net-and-mapserver-connection-problem....-tp14749790p14749790.html >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Please-help-me-SDE-C--asp.net-and-mapserver-connection-problem....-tp14749790p14948034.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at GMAIL.COM Fri Jan 18 02:30:55 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 18 Jan 2008 11:30:55 +0100 Subject: Please help me SDE C# asp.net and mapserver connection problem.... In-Reply-To: <14948034.post@talk.nabble.com> Message-ID: 2008/1/18, yatendra : > Here is my mapfile layer.... > LAYER > ........ > CONNECTION "host=GEN387 port:5151 user=****** password=****** dbname=****" > CONNECTIONTYPE SDE > CONNECTIONTYPE PLUGIN > PLUGIN "C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" > > DATA "sde.SDE.TILE,SHAPE,sde.DEFAULT" > STATUS on > TYPE line > ......... > END > Your application is possibly running under the context of the ASPNET user that may have limited security rights to access files outside of the application directory. You might want to copy this dll into you appdir as On Windows 2003: %SYSTEMROOT%\System32\inetsrv On WIndows XP: %SYTEMROOT%\Microsoft.NET\Framework\[framework version] whatever. And change your plugin definition as PLUGIN "msplugin_sde_92.dll" > If its because of asp.net version (64 bit), then what can be the solution??? > please let me know.. This might be an issue only if your application is running on 64bit windows. In this case you should force to use the 32 bit version of the .NET framework and recompile mapscript by adding /platform:x86 to the csc command line in the /csharp/makefile.vc. This is because you cannot compile msplugin_sde_92.dll as an x64 image right now. Best regards, Tamas From bartvde at GMAIL.COM Fri Jan 18 04:02:36 2008 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Fri, 18 Jan 2008 13:02:36 +0100 Subject: map_resolution in 5.0 does not work Message-ID: Hi list, why does the following fail against Mapserver 5.0, it used to work in previous version: map_resolution=25, for instance: http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket/dtb?map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH=1530&BBOX=%2D64210%2E0044897549%2C273591%2E761008437%2C364210%2E004489755%2C626408%2E238991563&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage Mapserver 5.0 returns: getDouble(): Symbol definition error. Parsing error near (25):(line 1) TIA. Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodrigo.andrade at DIGITRO.COM.BR Fri Jan 18 05:07:19 2008 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 18 Jan 2008 11:07:19 -0200 Subject: Segfaults with Mapserver 5.0.0 Message-ID: Good morning all. I am running tests on Mapserver 5 to test its viability on our production enviroment and I have run into some problems I am having trouble to figure out. A little background, may be irrelevant, but could be useful, idk: - We have a stand alone java server application (doing the map work with Java Mapscript) which talks via RMI with the client part of the app, which is running on Tomcat. We've done it this way because past crashes on mapserver used to bring Tomcat down with it - This mapscript binary was compiled with all the latest stable versions of GDAL, GEOS, Proj, AGG, LibPNG, GD and Freetype. - We are outputting the final map images with AGG. - The source data lives in Shape files. All of them have indexes, and I broke large areas into smaller chunks and tile indexed them with tile4ms. Now, this one is the first of the the 2 different segfaults I am experiencing with 5.0, but decided to focus on this one first because it seems to happen more frequently. Whenever I am zooming in or out in the map, this bugger seems to happen at random. I was'nt able to pin point a pattern for it to happen, looks like just using it long enough will do it. # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00734600, pid=30922, tid=1812704176 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) # Problematic frame: # C [libc.so.6+0x69600] strncpy+0x30 # I am not any C buff by any means, but judging from a strncpy error, I assume something in the way strings are created/handled might have changed since 4.x (I haven't been following the list recently, forgive me if it's old news) Any ideas about what might be causing it? -- Full log is bellow the sig. Thanks! -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x00734600, pid=30922, tid=1812704176 # # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) # Problematic frame: # C [libc.so.6+0x69600] strncpy+0x30 # --------------- T H R E A D --------------- Current thread (0x08277378): JavaThread "RMI TCP Connection(4)-192.168.167.93" daemon [_thread_in_native, id=30972] siginfo:si_signo=11, si_errno=0, si_code=2, si_addr=0x690ffd86 Registers: EAX=0x69300470, EBX=0x6cd77da8, ECX=0x690ffd86, EDX=0x6930046f ESP=0x6c0b6cbc, EBP=0x6c0b6ccc, ESI=0x00001252, EDI=0x00004949 EIP=0x00734600, CR2=0x690ffd86, EFLAGS=0x00010202 Top of Stack: (sp=0x6c0b6cbc) 0x6c0b6cbc: fffffff0 69300470 690f9a48 690ffd86 0x6c0b6ccc: 6c0b6cfc 6cc9e32f 69300470 690ffd86 0x6c0b6cdc: 00004949 0000494a 690f59c8 69300470 0x6c0b6cec: 00000173 6cd77da8 00000001 694bea30 0x6c0b6cfc: 6c0b6d2c 6cc9eb3a 00000003 00000021 0x6c0b6d0c: 00000003 00000000 690f93b0 8d347372 0x6c0b6d1c: c04a3e75 6cd77da8 00000021 092a5cb8 0x6c0b6d2c: 6c0b75fc 6cc9c74d 690f9a48 00000021 Instructions: (pc=0x00734600) 0x007345f0: 02 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 90 0x00734600: 0f b6 01 42 84 c0 88 02 74 67 0f b6 41 01 42 84 Stack: [0x6c03a000,0x6c0bb000), sp=0x6c0b6cbc, free space=499k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x69600] strncpy+0x30 C [libmapscript.so+0x6832f] C [libmapscript.so+0x68b3a] msDBFGetValueList+0x52 C [libmapscript.so+0x6674d] msTiledSHPNextShape+0x30d C [libmapscript.so+0x918d2] msLayerNextShape+0x3e C [libmapscript.so+0x9d112] msDrawVectorLayer+0x2be C [libmapscript.so+0x9d3f9] msDrawLayer+0xb5 C [libmapscript.so+0x9e154] msDrawMap+0x1dc C [libmapscript.so+0x45f2e] Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x36 j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 j br.com.digitro.idseg.gis.model.IDSegGisMapFactory.drawMap(Ledu/umn/gis/mapscript/mapObj;Ljava/io/File;Ljava/io/File;)V+6 j br.com.digitro.idseg.gis.model.IDSegGisMapFactory.createMapa(Ledu/umn/gis/mapscript/mapObj;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+2041 j br.com.digitro.idseg.gis.rmi.GisImpl.createMapa(Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/io/File;ZLjava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+56 j sun.reflect.GeneratedMethodAccessor3.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+143 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111 j sun.rmi.server.UnicastServerRef.dispatch(Ljava/rmi/Remote;Ljava/rmi/server/RemoteCall;)V+246 j sun.rmi.transport.Transport$1.run()Ljava/lang/Object;+23 v ~StubRoutines::call_stub V [libjvm.so+0x2649ac] V [libjvm.so+0x427bc8] V [libjvm.so+0x2647df] V [libjvm.so+0x2c1efd] C [libjava.so+0x93bc] Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0x3c j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 j sun.rmi.transport.Transport.serviceCall(Ljava/rmi/server/RemoteCall;)Z+163 j sun.rmi.transport.tcp.TCPTransport.handleMessages(Lsun/rmi/transport/Connection;Z)V+185 j sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()V+685 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub V [libjvm.so+0x2649ac] V [libjvm.so+0x427bc8] V [libjvm.so+0x264205] V [libjvm.so+0x26429e] V [libjvm.so+0x2db925] V [libjvm.so+0x4c6cb3] V [libjvm.so+0x4287d8] C [libpthread.so.0+0x5371] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 j br.com.digitro.idseg.gis.model.IDSegGisMapFactory.drawMap(Ledu/umn/gis/mapscript/mapObj;Ljava/io/File;Ljava/io/File;)V+6 j br.com.digitro.idseg.gis.model.IDSegGisMapFactory.createMapa(Ledu/umn/gis/mapscript/mapObj;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+2041 j br.com.digitro.idseg.gis.rmi.GisImpl.createMapa(Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/io/File;ZLjava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+56 j sun.reflect.GeneratedMethodAccessor3.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+143 j sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 j java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111 j sun.rmi.server.UnicastServerRef.dispatch(Ljava/rmi/Remote;Ljava/rmi/server/RemoteCall;)V+246 j sun.rmi.transport.Transport$1.run()Ljava/lang/Object;+23 v ~StubRoutines::call_stub j java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 j sun.rmi.transport.Transport.serviceCall(Ljava/rmi/server/RemoteCall;)Z+163 j sun.rmi.transport.tcp.TCPTransport.handleMessages(Lsun/rmi/transport/Connection;Z)V+185 j sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()V+685 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x6a9e4068 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=31039] =>0x08277378 JavaThread "RMI TCP Connection(4)-192.168.167.93" daemon [_thread_in_native, id=30972] 0x0805d2c0 JavaThread "DestroyJavaVM" [_thread_blocked, id=30922] 0x08125060 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, id=30944] 0x6cf3a1f0 JavaThread "RMI RenewClean-[192.168.167.93:31548]" daemon [_thread_blocked, id=30942] 0x08285f68 JavaThread "RMI TCP Accept-1097" daemon [_thread_in_native, id=30940] 0x6cf03650 JavaThread "GC Daemon" daemon [_thread_blocked, id=30939] 0x6cf07e98 JavaThread "RMI Reaper" [_thread_blocked, id=30938] 0x6cf07910 JavaThread "Timer-0" daemon [_thread_blocked, id=30937] 0x6cf08338 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=30936] 0x08121290 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=30934] 0x0811fdc0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=30933] 0x0811ed18 JavaThread "CompilerThread0" daemon [_thread_blocked, id=30932] 0x0811dba0 JavaThread "AdapterThread" daemon [_thread_blocked, id=30931] 0x0811ccb8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=30930] 0x081126b8 JavaThread "Finalizer" daemon [_thread_blocked, id=30929] 0x08112158 JavaThread "Reference Handler" daemon [_thread_blocked, id=30928] Other Threads: 0x0810fc90 VMThread [id=30927] 0x08122778 WatcherThread [id=30935] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap PSYoungGen total 11392K, used 797K [0xaa4e0000, 0xabb00000, 0xb1580000) eden space 10560K, 4% used [0xaa4e0000,0xaa563668,0xaaf30000) from space 832K, 32% used [0xaaf30000,0xaaf74000,0xab000000) to space 768K, 0% used [0xaba40000,0xaba40000,0xabb00000) PSOldGen total 57664K, used 1323K [0x71f80000, 0x757d0000, 0xaa4e0000) object space 57664K, 2% used [0x71f80000,0x720caee0,0x757d0000) PSPermGen total 16384K, used 6761K [0x6df80000, 0x6ef80000, 0x71f80000) object space 16384K, 41% used [0x6df80000,0x6e61a410,0x6ef80000) Dynamic libraries: 002e3000-00346000 r-xp 00000000 08:01 191558 /usr/lib/libkrb5.so.3.2 00346000-00348000 rwxp 00063000 08:01 191558 /usr/lib/libkrb5.so.3.2 0034a000-0037b000 r-xp 00000000 08:01 377252 /lib/libssl.so.0.9.7a 0037b000-0037e000 rwxp 00031000 08:01 377252 /lib/libssl.so.0.9.7a 004ca000-0058a000 r-xp 00000000 08:01 182584 /usr/lib/libstdc++.so.6.0.3 0058a000-0058f000 rwxp 000bf000 08:01 182584 /usr/lib/libstdc++.so.6.0.3 0058f000-00595000 rwxp 0058f000 00:00 0 005cd000-005ed000 r-xp 00000000 08:01 179178 /usr/lib/libk5crypto.so.3.0 005ed000-005ee000 rwxp 00020000 08:01 179178 /usr/lib/libk5crypto.so.3.0 00617000-00645000 r-xp 00000000 08:01 193564 /usr/lib/libidn.so.11.4.6 00645000-00647000 rwxp 0002d000 08:01 193564 /usr/lib/libidn.so.11.4.6 006ad000-006c2000 r-xp 00000000 08:01 376099 /lib/ld-2.3.4.so 006c2000-006c3000 r-xp 00015000 08:01 376099 /lib/ld-2.3.4.so 006c3000-006c4000 rwxp 00016000 08:01 376099 /lib/ld-2.3.4.so 006cb000-007f0000 r-xp 00000000 08:01 376100 /lib/tls/libc-2.3.4.so 007f0000-007f1000 r-xp 00124000 08:01 376100 /lib/tls/libc-2.3.4.so 007f1000-007f4000 rwxp 00125000 08:01 376100 /lib/tls/libc-2.3.4.so 007f4000-007f6000 rwxp 007f4000 00:00 0 007fe000-0081f000 r-xp 00000000 08:01 376101 /lib/tls/libm-2.3.4.so 0081f000-00821000 rwxp 00020000 08:01 376101 /lib/tls/libm-2.3.4.so 00914000-00922000 r-xp 00000000 08:01 376103 /lib/tls/libpthread-2.3.4.so 00922000-00924000 rwxp 0000d000 08:01 376103 /lib/tls/libpthread-2.3.4.so 00924000-00926000 rwxp 00924000 00:00 0 0094d000-0095c000 r-xp 00000000 08:01 193548 /usr/lib/libz.so.1.2.1.2 0095c000-0095d000 rwxp 0000e000 08:01 193548 /usr/lib/libz.so.1.2.1.2 00aee000-00b01000 r-xp 00000000 08:01 191887 /usr/lib/libgssapi_krb5.so.2.2 00b01000-00b02000 rwxp 00013000 08:01 191887 /usr/lib/libgssapi_krb5.so.2.2 00b10000-00b2d000 r-xp 00000000 08:01 193558 /usr/lib/libexpat.so.0.5.0 00b2d000-00b2f000 rwxp 0001d000 08:01 193558 /usr/lib/libexpat.so.0.5.0 00bbe000-00bc5000 r-xp 00000000 08:01 374652 /lib/libgcc_s-3.4.6-20060404.so.1 00bc5000-00bc6000 rwxp 00007000 08:01 374652 /lib/libgcc_s-3.4.6-20060404.so.1 00c1d000-00c2f000 r-xp 00000000 08:01 376111 /lib/libnsl-2.3.4.so 00c2f000-00c31000 rwxp 00011000 08:01 376111 /lib/libnsl-2.3.4.so 00c31000-00c33000 rwxp 00c31000 00:00 0 00c80000-00c82000 r-xp 00000000 08:01 376108 /lib/libcom_err.so.2.1 00c82000-00c83000 rwxp 00001000 08:01 376108 /lib/libcom_err.so.2.1 00d53000-00d55000 r-xp 00000000 08:01 377250 /lib/libdl-2.3.4.so 00d55000-00d57000 rwxp 00001000 08:01 377250 /lib/libdl-2.3.4.so 00da9000-00db1000 r-xp 00000000 08:01 376113 /lib/tls/librt-2.3.4.so 00db1000-00db3000 rwxp 00007000 08:01 376113 /lib/tls/librt-2.3.4.so 00db3000-00dbd000 rwxp 00db3000 00:00 0 00dbf000-00dce000 r-xp 00000000 08:01 377249 /lib/libresolv-2.3.4.so 00dce000-00dd0000 rwxp 0000f000 08:01 377249 /lib/libresolv-2.3.4.so 00dd0000-00dd2000 rwxp 00dd0000 00:00 0 0620e000-062e2000 r-xp 00000000 08:01 377251 /lib/libcrypto.so.0.9.7a 062e2000-062f4000 rwxp 000d4000 08:01 377251 /lib/libcrypto.so.0.9.7a 062f4000-062f7000 rwxp 062f4000 00:00 0 08048000-08057000 r-xp 00000000 08:02 2752562 /home2/java/jre/bin/java 08057000-08059000 rwxp 0000e000 08:02 2752562 /home2/java/jre/bin/java 08059000-0a279000 rwxp 08059000 00:00 0 68ace000-68ad4000 r-xp 00000000 08:02 2769008 /home2/java/jre/lib/i386/libnio.so 68ad4000-68ad5000 rwxp 00005000 08:02 2769008 /home2/java/jre/lib/i386/libnio.so 68ad5000-68aed000 r-xp 00000000 08:02 2769003 /home2/java/jre/lib/i386/libdcpr.so 68aed000-68b00000 rwxp 00018000 08:02 2769003 /home2/java/jre/lib/i386/libdcpr.so 68b00000-68c5c000 rwxp 68b00000 00:00 0 68c5c000-68d00000 ---p 68c5c000 00:00 0 68d00000-68e00000 rwxp 68d00000 00:00 0 68f41000-68fb9000 r-xp 00000000 08:02 2769006 /home2/java/jre/lib/i386/libfontmanager.so 68fb9000-68fc3000 rwxp 00078000 08:02 2769006 /home2/java/jre/lib/i386/libfontmanager.so 68fc3000-68fc7000 rwxp 68fc3000 00:00 0 69000000-690fb000 rwxp 69000000 00:00 0 690fb000-69100000 ---p 690fb000 00:00 0 69100000-691fc000 rwxp 69100000 00:00 0 691fc000-69200000 ---p 691fc000 00:00 0 69211000-69217000 r-xp 00000000 08:02 2769024 /home2/java/jre/lib/i386/headless/libmawt.so 69217000-69218000 rwxp 00005000 08:02 2769024 /home2/java/jre/lib/i386/headless/libmawt.so 69218000-692de000 r-xp 00000000 08:02 2769011 /home2/java/jre/lib/i386/libmlib_image.so 692de000-692df000 rwxp 000c5000 08:02 2769011 /home2/java/jre/lib/i386/libmlib_image.so 69300000-693f1000 rwxp 69300000 00:00 0 693f1000-69400000 ---p 693f1000 00:00 0 69400000-694f5000 rwxp 69400000 00:00 0 694f5000-69500000 ---p 694f5000 00:00 0 69500000-696a1000 rwxp 69500000 00:00 0 696a1000-69700000 ---p 696a1000 00:00 0 69700000-69800000 rwxp 69700000 00:00 0 6983d000-698b2000 r-xp 00000000 08:02 2768992 /home2/java/jre/lib/i386/libawt.so 698b2000-698b8000 rwxp 00074000 08:02 2768992 /home2/java/jre/lib/i386/libawt.so 698b8000-698dc000 rwxp 698b8000 00:00 0 69900000-69a00000 rwxp 69900000 00:00 0 69b00000-69bf7000 rwxp 69b00000 00:00 0 69bf7000-69c00000 ---p 69bf7000 00:00 0 69d00000-69dff000 rwxp 69d00000 00:00 0 69dff000-69e00000 ---p 69dff000 00:00 0 69f00000-6a000000 rwxp 69f00000 00:00 0 6a02f000-6a05e000 r-xp 00000000 08:02 2769012 /home2/java/jre/lib/i386/libjpeg.so 6a05e000-6a05f000 rwxp 0002e000 08:02 2769012 /home2/java/jre/lib/i386/libjpeg.so 6a05f000-6a0d1000 r-xp 00000000 08:02 2769021 /home2/java/jre/lib/i386/libcmm.so 6a0d1000-6a0d4000 rwxp 00071000 08:02 2769021 /home2/java/jre/lib/i386/libcmm.so 6a100000-6a2fe000 rwxp 6a100000 00:00 0 6a2fe000-6a300000 ---p 6a2fe000 00:00 0 6a300000-6a4ff000 rwxp 6a300000 00:00 0 6a4ff000-6a500000 ---p 6a4ff000 00:00 0 6a500000-6a6f9000 rwxp 6a500000 00:00 0 6a6f9000-6a700000 ---p 6a6f9000 00:00 0 6a700000-6a900000 rwxp 6a700000 00:00 0 6a900000-6aa00000 rwxp 6a900000 00:00 0 6aa00000-6aaf6000 rwxp 6aa00000 00:00 0 6aaf6000-6ab00000 ---p 6aaf6000 00:00 0 6ac00000-6ad00000 rwxp 6ac00000 00:00 0 6ad00000-6adff000 rwxp 6ad00000 00:00 0 6adff000-6ae00000 ---p 6adff000 00:00 0 6aea7000-6aeb6000 r-xp 00000000 08:02 4899220 /home2/mapserver-5.0/fonts/lsans.ttf 6af00000-6b000000 rwxp 6af00000 00:00 0 6b000000-6b0f9000 rwxp 6b000000 00:00 0 6b0f9000-6b100000 ---p 6b0f9000 00:00 0 6b200000-6b300000 rwxp 6b200000 00:00 0 6b300000-6b3fd000 rwxp 6b300000 00:00 0 6b3fd000-6b400000 ---p 6b3fd000 00:00 0 6b500000-6b5ff000 rwxp 6b500000 00:00 0 6b5ff000-6b600000 ---p 6b5ff000 00:00 0 6b600000-6b6f0000 rwxp 6b600000 00:00 0 6b6f0000-6b700000 ---p 6b6f0000 00:00 0 6b800000-6baf8000 rwxp 6b800000 00:00 0 6baf8000-6bb00000 ---p 6baf8000 00:00 0 6bb00000-6bbff000 rwxp 6bb00000 00:00 0 6bbff000-6bc00000 ---p 6bbff000 00:00 0 6bc00000-6bd00000 rwxp 6bc00000 00:00 0 6bd00000-6be00000 rwxp 6bd00000 00:00 0 6bf00000-6bffe000 rwxp 6bf00000 00:00 0 6bffe000-6c000000 ---p 6bffe000 00:00 0 6c02c000-6c03a000 r-xp 00000000 08:02 4898978 /home2/mapserver-5.0/fonts/lsansd.ttf 6c03a000-6c03d000 ---p 6c03a000 00:00 0 6c03d000-6c0bb000 rwxp 6c03d000 00:00 0 6c0bb000-6c0be000 ---p 6c0bb000 00:00 0 6c0be000-6c13c000 rwxp 6c0be000 00:00 0 6c13c000-6c13f000 rwxp 6c13c000 00:00 0 6c13f000-6c1bd000 rwxp 6c13f000 00:00 0 6c1bd000-6c1c0000 rwxp 6c1bd000 00:00 0 6c1c0000-6c23e000 rwxp 6c1c0000 00:00 0 6c23e000-6c241000 ---p 6c23e000 00:00 0 6c241000-6c2bf000 rwxp 6c241000 00:00 0 6c2bf000-6c2c2000 rwxp 6c2bf000 00:00 0 6c2c2000-6c340000 rwxp 6c2c2000 00:00 0 6c340000-6c343000 ---p 6c340000 00:00 0 6c343000-6c3c1000 rwxp 6c343000 00:00 0 6c3c1000-6c3c2000 r-xp 00000000 08:02 2769026 /home2/java/jre/lib/i386/librmi.so 6c3c2000-6c3c3000 rwxp 00000000 08:02 2769026 /home2/java/jre/lib/i386/librmi.so 6c3c3000-6c3c6000 rwxp 6c3c3000 00:00 0 6c3c6000-6c444000 rwxp 6c3c6000 00:00 0 6c444000-6c447000 ---p 6c444000 00:00 0 6c447000-6c4c5000 rwxp 6c447000 00:00 0 6c4c5000-6c4cb000 r-xs 00000000 08:01 211959 /usr/lib/gconv/gconv-modules.cache 6c4cb000-6c5f5000 r-xp 00000000 08:02 4899199 /home2/mapserver-5.0/geos/lib/libgeos-3.0.0.so 6c5f5000-6c5fa000 rwxp 0012a000 08:02 4899199 /home2/mapserver-5.0/geos/lib/libgeos-3.0.0.so 6c5fa000-6c628000 r-xp 00000000 08:01 189118 /usr/lib/libcurl.so.3.0.0 6c628000-6c62a000 rwxp 0002d000 08:01 189118 /usr/lib/libcurl.so.3.0.0 6c62a000-6c639000 r-xp 00000000 08:02 4899202 /home2/mapserver-5.0/geos/lib/libgeos_c.so.1.4.1 6c639000-6c63a000 rwxp 0000e000 08:02 4899202 /home2/mapserver-5.0/geos/lib/libgeos_c.so.1.4.1 6c63a000-6ca8b000 r-xp 00000000 08:02 4899214 /home2/mapserver-5.0/gdal/lib/libgdal.so.1.12.0 6ca8b000-6cae1000 rwxp 00451000 08:02 4899214 /home2/mapserver-5.0/gdal/lib/libgdal.so.1.12.0 6cae1000-6cae3000 rwxp 6cae1000 00:00 0 6cae3000-6cb16000 r-xp 00000000 08:02 4898981 /home2/mapserver-5.0/proj4/lib/libproj.so.0.5.4 6cb16000-6cb18000 rwxp 00033000 08:02 4898981 /home2/mapserver-5.0/proj4/lib/libproj.so.0.5.4 6cb18000-6cb28000 r-xp 00000000 08:02 4915298 /home2/mapserver-5.0/agg/lib/libaggfontfreetype.so.2.0.4 6cb28000-6cb29000 rwxp 00010000 08:02 4915298 /home2/mapserver-5.0/agg/lib/libaggfontfreetype.so.2.0.4 6cb29000-6cb58000 r-xp 00000000 08:02 4915294 /home2/mapserver-5.0/agg/lib/libagg.so.2.0.4 6cb58000-6cb5b000 rwxp 0002e000 08:02 4915294 /home2/mapserver-5.0/agg/lib/libagg.so.2.0.4 6cb5b000-6cb7a000 r-xp 00000000 08:02 4898919 /home2/mapserver-5.0/libpng/lib/libpng12.so.0.24.0 6cb7a000-6cb7b000 rwxp 0001e000 08:02 4898919 /home2/mapserver-5.0/libpng/lib/libpng12.so.0.24.0 6cb91000-6cbf6000 r-xp 00000000 08:02 4898829 /home2/mapserver-5.0/freetype/lib/libfreetype.so.6.3.16 6cbf6000-6cbfa000 rwxp 00064000 08:02 4898829 /home2/mapserver-5.0/freetype/lib/libfreetype.so.6.3.16 6cbfa000-6cc12000 r-xp 00000000 08:02 4898950 /home2/mapserver-5.0/gd/lib/libgd.so.2.0.0 6cc12000-6cc32000 rwxp 00017000 08:02 4898950 /home2/mapserver-5.0/gd/lib/libgd.so.2.0.0 6cc32000-6cc36000 rwxp 6cc32000 00:00 0 6cc36000-6cd77000 r-xp 00000000 08:02 4915585 /home2/mapserver-5.0/mapscript/libmapscript.so 6cd77000-6cd7b000 rwxp 00140000 08:02 4915585 /home2/mapserver-5.0/mapscript/libmapscript.so 6cd7b000-6cd7d000 rwxp 6cd7b000 00:00 0 6cd7d000-6cd80000 ---p 6cd7d000 00:00 0 6cd80000-6cdfe000 rwxp 6cd80000 00:00 0 6cdfe000-6ce01000 ---p 6cdfe000 00:00 0 6ce01000-6ce7f000 rwxp 6ce01000 00:00 0 6ce7f000-6ce82000 ---p 6ce7f000 00:00 0 6ce82000-6cfff000 rwxp 6ce82000 00:00 0 6cfff000-6d000000 ---p 6cfff000 00:00 0 6d058000-6d05e000 rwxp 6d058000 00:00 0 6d05e000-6d061000 ---p 6d05e000 00:00 0 6d061000-6d0df000 rwxp 6d061000 00:00 0 6d0df000-6d0f3000 r-xp 00000000 08:02 2769002 /home2/java/jre/lib/i386/libnet.so 6d0f3000-6d0f4000 rwxp 00013000 08:02 2769002 /home2/java/jre/lib/i386/libnet.so 6d0f4000-6d14c000 r-xs 00000000 08:02 4046860 /home2/idseg-gis-server/lib/log4j-1.2.13.jar 6d14c000-6d172000 r-xs 00000000 08:02 4915586 /home2/mapserver-5.0/mapscript/mapscript.jar 6d172000-6d1a7000 r-xs 00000000 08:02 4046861 /home2/idseg-gis-server/lib/idseg-pojo-1.0.0.jar 6d1a7000-6d1c9000 r-xs 00000000 08:02 4046863 /home2/idseg-gis-server/lib/dgt-util-1.0.0.jar 6d1c9000-6d1d3000 r-xs 00000000 08:02 4046862 /home2/idseg-gis-server/lib/commons-logging-1.0.4.jar 6d1d3000-6d1dc000 r-xs 00000000 08:02 4046858 /home2/idseg-gis-server/idseg-gis-server-1.0.6.jar 6d1dc000-6d207000 r-xs 00000000 08:02 2752587 /home2/java/jre/lib/ext/sunpkcs11.jar 6d207000-6d2cb000 r-xs 00000000 08:02 2752585 /home2/java/jre/lib/ext/localedata.jar 6d2cb000-6d2f2000 r-xs 00000000 08:02 2752584 /home2/java/jre/lib/ext/sunjce_provider.jar 6d2f2000-6d2f4000 r-xs 00000000 08:02 2752586 /home2/java/jre/lib/ext/dnsns.jar 6d2f4000-6d2f5000 ---p 6d2f4000 00:00 0 6d2f5000-6d375000 rwxp 6d2f5000 00:00 0 6d375000-6d378000 ---p 6d375000 00:00 0 6d378000-6d3f6000 rwxp 6d378000 00:00 0 6d3f6000-6d3f9000 ---p 6d3f6000 00:00 0 6d3f9000-6d477000 rwxp 6d3f9000 00:00 0 6d477000-6d47a000 ---p 6d477000 00:00 0 6d47a000-6d4f8000 rwxp 6d47a000 00:00 0 6d4f8000-6d4fb000 ---p 6d4f8000 00:00 0 6d4fb000-6d579000 rwxp 6d4fb000 00:00 0 6d579000-6d57c000 ---p 6d579000 00:00 0 6d57c000-6d5fa000 rwxp 6d57c000 00:00 0 6d5fa000-6d7fa000 r-xp 00000000 08:01 182537 /usr/lib/locale/locale-archive 6d7fa000-6d7fd000 ---p 6d7fa000 00:00 0 6d7fd000-6d87b000 rwxp 6d7fd000 00:00 0 6d87b000-6d87e000 ---p 6d87b000 00:00 0 6d87e000-6d8fc000 rwxp 6d87e000 00:00 0 6d8fc000-6d8fd000 ---p 6d8fc000 00:00 0 6d8fd000-6d97d000 rwxp 6d8fd000 00:00 0 6d97d000-6d97e000 ---p 6d97d000 00:00 0 6d97e000-6d9fe000 rwxp 6d97e000 00:00 0 6d9fe000-6d9ff000 ---p 6d9fe000 00:00 0 6d9ff000-6da7f000 rwxp 6d9ff000 00:00 0 6da7f000-6da80000 ---p 6da7f000 00:00 0 6da80000-6db00000 rwxp 6da80000 00:00 0 6db00000-6db01000 ---p 6db00000 00:00 0 6db01000-6db89000 rwxp 6db01000 00:00 0 6db89000-6dba1000 rwxp 6db89000 00:00 0 6dba1000-6dbbe000 rwxp 6dba1000 00:00 0 6dbbe000-6dd64000 rwxp 6dbbe000 00:00 0 6dd64000-6dd6c000 rwxp 6dd64000 00:00 0 6dd6c000-6dd84000 rwxp 6dd6c000 00:00 0 6dd84000-6dda1000 rwxp 6dd84000 00:00 0 6dda1000-6df46000 rwxp 6dda1000 00:00 0 6df46000-6df52000 rwxp 6df46000 00:00 0 6df52000-6df7f000 rwxp 6df52000 00:00 0 6df7f000-6ef80000 rwxp 6df7f000 00:00 0 6ef80000-71f80000 rwxp 6ef80000 00:00 0 71f80000-757d0000 rwxp 71f80000 00:00 0 757d0000-aa4e0000 rwxp 757d0000 00:00 0 aa4e0000-abb00000 rwxp aa4e0000 00:00 0 abb00000-b1580000 rwxp abb00000 00:00 0 b1587000-b1590000 rwxp b1587000 00:00 0 b1590000-b1647000 rwxp b1590000 00:00 0 b1647000-b1887000 rwxp b1647000 00:00 0 b1887000-b4647000 rwxp b1887000 00:00 0 b4647000-b4eb4000 r-xs 00000000 08:02 2753066 /home2/java/jre/lib/charsets.jar b4eb4000-b4ec9000 r-xs 00000000 08:02 2753063 /home2/java/jre/lib/jce.jar b4ec9000-b4f4e000 r-xs 00000000 08:02 2753062 /home2/java/jre/lib/jsse.jar b4f4e000-b4fb7000 rwxp b4f4e000 00:00 0 b4fb7000-b75bb000 r-xs 00000000 08:02 2753054 /home2/java/jre/lib/rt.jar b75bb000-b75ce000 r-xp 00000000 08:02 2768979 /home2/java/jre/lib/i386/libzip.so b75ce000-b75d0000 rwxp 00012000 08:02 2768979 /home2/java/jre/lib/i386/libzip.so b75d0000-b75f1000 r-xp 00000000 08:02 2769001 /home2/java/jre/lib/i386/libjava.so b75f1000-b75f3000 rwxp 00020000 08:02 2769001 /home2/java/jre/lib/i386/libjava.so b75f3000-b75fc000 r-xp 00000000 08:01 374674 /lib/libnss_files-2.3.4.so b75fc000-b75fe000 rwxp 00008000 08:01 374674 /lib/libnss_files-2.3.4.so b7600000-b760b000 r-xp 00000000 08:02 2768984 /home2/java/jre/lib/i386/libverify.so b760b000-b760c000 rwxp 0000b000 08:02 2768984 /home2/java/jre/lib/i386/libverify.so b760c000-b7614000 rwxs 00000000 08:01 146611 /tmp/hsperfdata_root/30922 b7614000-b761a000 r-xp 00000000 08:02 2769018 /home2/java/jre/lib/i386/native_threads/libhpi.so b761a000-b761b000 rwxp 00006000 08:02 2769018 /home2/java/jre/lib/i386/native_threads/libhpi.so b761b000-b761c000 rwxp b761b000 00:00 0 b761c000-b761d000 r-xp b761c000 00:00 0 b761d000-b7b6e000 r-xp 00000000 08:02 2768976 /home2/java/jre/lib/i386/server/libjvm.so b7b6e000-b7bd0000 rwxp 00551000 08:02 2768976 /home2/java/jre/lib/i386/server/libjvm.so b7bd0000-b7fe9000 rwxp b7bd0000 00:00 0 b7fff000-b8000000 rwxp b7fff000 00:00 0 bfe00000-bfe03000 ---p bfe00000 00:00 0 bfe03000-c0000000 rwxp bfe03000 00:00 0 ffffe000-fffff000 ---p 00000000 00:00 0 VM Arguments: java_command: br.com.digitro.idseg.gis.rmi.GisServer Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=/usr/java/jdk JRE_HOME=/usr/java/jre CLASSPATH=/home2/idseg-gis-server/idseg-gis-server-1.0.6.jar:/home2/idseg-gis-server/lib/commons-logging-1.0.4.jar:.:/home2/idseg-gis-server/lib/dgt-util-1.0.0.jar:/home2/idseg-gis-server/lib/idseg-pojo-1.0.0.jar:/home2/idseg-gis-server/lib/mapscript.jar:/home2/idseg-gis-server/lib/log4j-1.2.13.jar PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jre/bin:/usr/java/jdk/bin:/home2/mapserver/mapscript:/root/bin:/usr/java/jre/bin:/usr/java/jdk/bin:/home2/mapserver/mapscript LD_LIBRARY_PATH=/home2/java/jre/lib/i386/server:/home2/java/jre/lib/i386:/home2/java/jre/../lib/i386:/home2/mapserver/proj4/lib:/home2/mapserver/gdal/lib:/home2/mapserver/geos/lib:/home2/mapserver/libcurl/lib:/home2/mapserver/libpng/lib:/home2/mapserver/ogdi/lib:/home2/mapserver/freetype/lib:/home2/mapserver/gd/lib:/home2/mapserver/zlib/lib:/home2/mapserver/proj4/share/proj:/home2/mapserver/mapscript:/home2/mapserver/agg/lib:/home2/mapserver/libiconv/lib/:/home2/mapserver/mapscript SHELL=/bin/bash Signal Handlers: SIGSEGV: [libjvm.so+0x5016a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGBUS: [libjvm.so+0x5016a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGFPE: [libjvm.so+0x426c00], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGPIPE: [libjvm.so+0x426c00], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGILL: [libjvm.so+0x426c00], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 SIGUSR2: [libjvm.so+0x429050], sa_mask[0]=0x00000000, sa_flags=0x14000004 SIGHUP: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGINT: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGQUIT: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 SIGTERM: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 --------------- S Y S T E M --------------- OS:Red Hat Enterprise Linux AS release 4 (Nahant Update 4) uname:Linux 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 libc:glibc 2.3.4 NPTL 2.3.4 rlimit: STACK 10240k, CORE 0k, NPROC 77824, NOFILE 1024, AS infinity load average:1.52 1.49 1.58 CPU:total 4 family 6, cmov, cx8, fxsr, mmx, sse, sse2, ht Memory: 4k page, physical 1012k(3k free), swap 1000k(302k free) vm_info: Java HotSpot(TM) Server VM (1.5.0_07-b03) for linux-x86, built on May 3 2006 00:32:58 by java_re with gcc 3.2.1-7a (J2SE release) From David.Fawcett at STATE.MN.US Fri Jan 18 05:59:12 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 18 Jan 2008 07:59:12 -0600 Subject: map_resolution in 5.0 does not work In-Reply-To: A<1ebb87870801180402m6d6bfb82yc0e68409415aa050@mail.gmail.com> Message-ID: Have you looked at the 5.0 migration guide? http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATI ON_GUIDE.TXT If not, take a look at the section titled, 'URL configuration changes'. I don't know for sure, but you might want to try something like map.resolution=25 David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: Friday, January 18, 2008 6:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work Hi list, why does the following fail against Mapserver 5.0, it used to work in previous version: map_resolution=25, for instance: http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket /dtb?map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=i mage%2Fpng&STYLES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH =1530&BBOX=%2D64210%2E0044897549%2C273591%2E761008437%2C364210%2E0044897 55%2C626408%2E238991563&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc. se_inimage Mapserver 5.0 returns: getDouble(): Symbol definition error. Parsing error near (25):(line 1) TIA. Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From hanscastorp76 at YAHOO.ES Fri Jan 18 06:41:54 2008 From: hanscastorp76 at YAHOO.ES (Hans Castorp) Date: Fri, 18 Jan 2008 15:41:54 +0100 Subject: AGG/PNG driver Message-ID: Hi to all, I have configured in my mapfile an output format in this way: OUTPUTFORMAT NAME "agg/png24" MIMETYPE "image/png; mode=24bit" DRIVER "AGG/PNG" EXTENSION "png" END But, when I try to use it, I receive the following error: OUTPUTFORMAT clause references driver AGG/PNG , but this driver isn't configured Well, the question is evident: what I have to do to configure this driver??? Thanks in advance. P.S. I am using Mapserver 4.10.1 running over Windows XP. Hans Castorp No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.6/1230 - Release Date: 17/01/2008 16:59 -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Fri Jan 18 06:36:14 2008 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 18 Jan 2008 15:36:14 +0100 Subject: Segfaults with Mapserver 5.0.0 In-Reply-To: <4790A487.7050303@digitro.com.br> Message-ID: Rodrigo, could you apply the attached patch and the post the last output of the application before the segfault? Please note that it will log an awful LOT of stuff! Regards, Umberto On Jan 18, 2008 2:07 PM, Rodrigo Del C. Andrade wrote: > Good morning all. > > I am running tests on Mapserver 5 to test its viability on our > production enviroment and I have run into some problems I am having > trouble to figure out. > > A little background, may be irrelevant, but could be useful, idk: > - We have a stand alone java server application (doing the map work > with Java Mapscript) which talks via RMI with the client part of the > app, which is running on Tomcat. We've done it this way because past > crashes on mapserver used to bring Tomcat down with it > - This mapscript binary was compiled with all the latest stable > versions of GDAL, GEOS, Proj, AGG, LibPNG, GD and Freetype. > - We are outputting the final map images with AGG. > - The source data lives in Shape files. All of them have indexes, > and I broke large areas into smaller chunks and tile indexed them with > tile4ms. > > Now, this one is the first of the the 2 different segfaults I am > experiencing with 5.0, but decided to focus on this one first because it > seems to happen more frequently. Whenever I am zooming in or out in the > map, this bugger seems to happen at random. I was'nt able to pin point a > pattern for it to happen, looks like just using it long enough will do it. > > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGSEGV (0xb) at pc=0x00734600, pid=30922, tid=1812704176 > # > # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) > # Problematic frame: > # C [libc.so.6+0x69600] strncpy+0x30 > # > > I am not any C buff by any means, but judging from a strncpy error, > I assume something in the way strings are created/handled might have > changed since 4.x (I haven't been following the list recently, forgive > me if it's old news) > Any ideas about what might be causing it? > > -- Full log is bellow the sig. > > Thanks! > > -- > > *Rodrigo Del C. Andrade* > /Programador/ > /SIC - SSE - Solu??es Seguran?a P?blica/ > > *D?GITRO TECNOLOGIA* > *E-mail:* rodrigo.andrade at digitro.com.br > > *Fone:* +55 48 3281-7314 / +55 48 3281-7000 > *Fax:* +55 48 3281-7299 > *Site:* www.digitro.com > > > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGSEGV (0xb) at pc=0x00734600, pid=30922, tid=1812704176 > # > # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) > # Problematic frame: > # C [libc.so.6+0x69600] strncpy+0x30 > # > > --------------- T H R E A D --------------- > > Current thread (0x08277378): JavaThread "RMI TCP > Connection(4)-192.168.167.93" daemon [_thread_in_native, id=30972] > > siginfo:si_signo=11, si_errno=0, si_code=2, si_addr=0x690ffd86 > > Registers: > EAX=0x69300470, EBX=0x6cd77da8, ECX=0x690ffd86, EDX=0x6930046f > ESP=0x6c0b6cbc, EBP=0x6c0b6ccc, ESI=0x00001252, EDI=0x00004949 > EIP=0x00734600, CR2=0x690ffd86, EFLAGS=0x00010202 > > Top of Stack: (sp=0x6c0b6cbc) > 0x6c0b6cbc: fffffff0 69300470 690f9a48 690ffd86 > 0x6c0b6ccc: 6c0b6cfc 6cc9e32f 69300470 690ffd86 > 0x6c0b6cdc: 00004949 0000494a 690f59c8 69300470 > 0x6c0b6cec: 00000173 6cd77da8 00000001 694bea30 > 0x6c0b6cfc: 6c0b6d2c 6cc9eb3a 00000003 00000021 > 0x6c0b6d0c: 00000003 00000000 690f93b0 8d347372 > 0x6c0b6d1c: c04a3e75 6cd77da8 00000021 092a5cb8 > 0x6c0b6d2c: 6c0b75fc 6cc9c74d 690f9a48 00000021 > > Instructions: (pc=0x00734600) > 0x007345f0: 02 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 90 > 0x00734600: 0f b6 01 42 84 c0 88 02 74 67 0f b6 41 01 42 84 > > Stack: [0x6c03a000,0x6c0bb000), sp=0x6c0b6cbc, free space=499k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native code) > C [libc.so.6+0x69600] strncpy+0x30 > C [libmapscript.so+0x6832f] > C [libmapscript.so+0x68b3a] msDBFGetValueList+0x52 > C [libmapscript.so+0x6674d] msTiledSHPNextShape+0x30d > C [libmapscript.so+0x918d2] msLayerNextShape+0x3e > C [libmapscript.so+0x9d112] msDrawVectorLayer+0x2be > C [libmapscript.so+0x9d3f9] msDrawLayer+0xb5 > C [libmapscript.so+0x9e154] msDrawMap+0x1dc > C [libmapscript.so+0x45f2e] > Java_edu_umn_gis_mapscript_mapscriptJNI_mapObj_1draw+0x36 > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > j > br.com.digitro.idseg.gis.model.IDSegGisMapFactory.drawMap(Ledu/umn/gis/mapscript/mapObj;Ljava/io/File;Ljava/io/File;)V+6 > j > br.com.digitro.idseg.gis.model.IDSegGisMapFactory.createMapa(Ledu/umn/gis/mapscript/mapObj;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+2041 > j > br.com.digitro.idseg.gis.rmi.GisImpl.createMapa(Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/io/File;ZLjava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+56 > j > sun.reflect.GeneratedMethodAccessor3.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+143 > j > sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 > j > java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111 > j > sun.rmi.server.UnicastServerRef.dispatch(Ljava/rmi/Remote;Ljava/rmi/server/RemoteCall;)V+246 > j sun.rmi.transport.Transport$1.run()Ljava/lang/Object;+23 > v ~StubRoutines::call_stub > V [libjvm.so+0x2649ac] > V [libjvm.so+0x427bc8] > V [libjvm.so+0x2647df] > V [libjvm.so+0x2c1efd] > C [libjava.so+0x93bc] > Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedExceptionAction_2Ljava_security_AccessControlContext_2+0x3c > j > java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 > j > sun.rmi.transport.Transport.serviceCall(Ljava/rmi/server/RemoteCall;)Z+163 > j > sun.rmi.transport.tcp.TCPTransport.handleMessages(Lsun/rmi/transport/Connection;Z)V+185 > j sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()V+685 > j java.lang.Thread.run()V+11 > v ~StubRoutines::call_stub > V [libjvm.so+0x2649ac] > V [libjvm.so+0x427bc8] > V [libjvm.so+0x264205] > V [libjvm.so+0x26429e] > V [libjvm.so+0x2db925] > V [libjvm.so+0x4c6cb3] > V [libjvm.so+0x4287d8] > C [libpthread.so.0+0x5371] > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(J)J+0 > j edu.umn.gis.mapscript.mapObj.draw()Ledu/umn/gis/mapscript/imageObj;+4 > j > br.com.digitro.idseg.gis.model.IDSegGisMapFactory.drawMap(Ledu/umn/gis/mapscript/mapObj;Ljava/io/File;Ljava/io/File;)V+6 > j > br.com.digitro.idseg.gis.model.IDSegGisMapFactory.createMapa(Ledu/umn/gis/mapscript/mapObj;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+2041 > j > br.com.digitro.idseg.gis.rmi.GisImpl.createMapa(Ljava/lang/String;Ljava/util/Map;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/io/File;ZLjava/util/List;Ljava/lang/String;Ljava/lang/String;)Lbr/com/digitro/idseg/gis/pojo/MapaVO;+56 > j > sun.reflect.GeneratedMethodAccessor3.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+143 > j > sun.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+6 > j > java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+111 > j > sun.rmi.server.UnicastServerRef.dispatch(Ljava/rmi/Remote;Ljava/rmi/server/RemoteCall;)V+246 > j sun.rmi.transport.Transport$1.run()Ljava/lang/Object;+23 > v ~StubRoutines::call_stub > j > java.security.AccessController.doPrivileged(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;+0 > j > sun.rmi.transport.Transport.serviceCall(Ljava/rmi/server/RemoteCall;)Z+163 > j > sun.rmi.transport.tcp.TCPTransport.handleMessages(Lsun/rmi/transport/Connection;Z)V+185 > j sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run()V+685 > j java.lang.Thread.run()V+11 > v ~StubRoutines::call_stub > > --------------- P R O C E S S --------------- > > Java Threads: ( => current thread ) > 0x6a9e4068 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=31039] > =>0x08277378 JavaThread "RMI TCP Connection(4)-192.168.167.93" daemon > [_thread_in_native, id=30972] > 0x0805d2c0 JavaThread "DestroyJavaVM" [_thread_blocked, id=30922] > 0x08125060 JavaThread "RMI LeaseChecker" daemon [_thread_blocked, > id=30944] > 0x6cf3a1f0 JavaThread "RMI RenewClean-[192.168.167.93:31548]" daemon > [_thread_blocked, id=30942] > 0x08285f68 JavaThread "RMI TCP Accept-1097" daemon [_thread_in_native, > id=30940] > 0x6cf03650 JavaThread "GC Daemon" daemon [_thread_blocked, id=30939] > 0x6cf07e98 JavaThread "RMI Reaper" [_thread_blocked, id=30938] > 0x6cf07910 JavaThread "Timer-0" daemon [_thread_blocked, id=30937] > 0x6cf08338 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, > id=30936] > 0x08121290 JavaThread "Low Memory Detector" daemon [_thread_blocked, > id=30934] > 0x0811fdc0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=30933] > 0x0811ed18 JavaThread "CompilerThread0" daemon [_thread_blocked, id=30932] > 0x0811dba0 JavaThread "AdapterThread" daemon [_thread_blocked, id=30931] > 0x0811ccb8 JavaThread "Signal Dispatcher" daemon [_thread_blocked, > id=30930] > 0x081126b8 JavaThread "Finalizer" daemon [_thread_blocked, id=30929] > 0x08112158 JavaThread "Reference Handler" daemon [_thread_blocked, > id=30928] > > Other Threads: > 0x0810fc90 VMThread [id=30927] > 0x08122778 WatcherThread [id=30935] > > VM state:not at safepoint (normal execution) > > VM Mutex/Monitor currently owned by a thread: None > > Heap > PSYoungGen total 11392K, used 797K [0xaa4e0000, 0xabb00000, > 0xb1580000) > eden space 10560K, 4% used [0xaa4e0000,0xaa563668,0xaaf30000) > from space 832K, 32% used [0xaaf30000,0xaaf74000,0xab000000) > to space 768K, 0% used [0xaba40000,0xaba40000,0xabb00000) > PSOldGen total 57664K, used 1323K [0x71f80000, 0x757d0000, > 0xaa4e0000) > object space 57664K, 2% used [0x71f80000,0x720caee0,0x757d0000) > PSPermGen total 16384K, used 6761K [0x6df80000, 0x6ef80000, > 0x71f80000) > object space 16384K, 41% used [0x6df80000,0x6e61a410,0x6ef80000) > > Dynamic libraries: > 002e3000-00346000 r-xp 00000000 08:01 191558 /usr/lib/libkrb5.so.3.2 > 00346000-00348000 rwxp 00063000 08:01 191558 /usr/lib/libkrb5.so.3.2 > 0034a000-0037b000 r-xp 00000000 08:01 377252 /lib/libssl.so.0.9.7a > 0037b000-0037e000 rwxp 00031000 08:01 377252 /lib/libssl.so.0.9.7a > 004ca000-0058a000 r-xp 00000000 08:01 182584 /usr/lib/libstdc++.so.6.0.3 > 0058a000-0058f000 rwxp 000bf000 08:01 182584 /usr/lib/libstdc++.so.6.0.3 > 0058f000-00595000 rwxp 0058f000 00:00 0 > 005cd000-005ed000 r-xp 00000000 08:01 179178 /usr/lib/libk5crypto.so.3.0 > 005ed000-005ee000 rwxp 00020000 08:01 179178 /usr/lib/libk5crypto.so.3.0 > 00617000-00645000 r-xp 00000000 08:01 193564 /usr/lib/libidn.so.11.4.6 > 00645000-00647000 rwxp 0002d000 08:01 193564 /usr/lib/libidn.so.11.4.6 > 006ad000-006c2000 r-xp 00000000 08:01 376099 /lib/ld-2.3.4.so > 006c2000-006c3000 r-xp 00015000 08:01 376099 /lib/ld-2.3.4.so > 006c3000-006c4000 rwxp 00016000 08:01 376099 /lib/ld-2.3.4.so > 006cb000-007f0000 r-xp 00000000 08:01 376100 /lib/tls/libc-2.3.4.so > 007f0000-007f1000 r-xp 00124000 08:01 376100 /lib/tls/libc-2.3.4.so > 007f1000-007f4000 rwxp 00125000 08:01 376100 /lib/tls/libc-2.3.4.so > 007f4000-007f6000 rwxp 007f4000 00:00 0 > 007fe000-0081f000 r-xp 00000000 08:01 376101 /lib/tls/libm-2.3.4.so > 0081f000-00821000 rwxp 00020000 08:01 376101 /lib/tls/libm-2.3.4.so > 00914000-00922000 r-xp 00000000 08:01 376103 > /lib/tls/libpthread-2.3.4.so > 00922000-00924000 rwxp 0000d000 08:01 376103 > /lib/tls/libpthread-2.3.4.so > 00924000-00926000 rwxp 00924000 00:00 0 > 0094d000-0095c000 r-xp 00000000 08:01 193548 /usr/lib/libz.so.1.2.1.2 > 0095c000-0095d000 rwxp 0000e000 08:01 193548 /usr/lib/libz.so.1.2.1.2 > 00aee000-00b01000 r-xp 00000000 08:01 191887 > /usr/lib/libgssapi_krb5.so.2.2 > 00b01000-00b02000 rwxp 00013000 08:01 191887 > /usr/lib/libgssapi_krb5.so.2.2 > 00b10000-00b2d000 r-xp 00000000 08:01 193558 /usr/lib/libexpat.so.0.5.0 > 00b2d000-00b2f000 rwxp 0001d000 08:01 193558 /usr/lib/libexpat.so.0.5.0 > 00bbe000-00bc5000 r-xp 00000000 08:01 374652 > /lib/libgcc_s-3.4.6-20060404.so.1 > 00bc5000-00bc6000 rwxp 00007000 08:01 374652 > /lib/libgcc_s-3.4.6-20060404.so.1 > 00c1d000-00c2f000 r-xp 00000000 08:01 376111 /lib/libnsl-2.3.4.so > 00c2f000-00c31000 rwxp 00011000 08:01 376111 /lib/libnsl-2.3.4.so > 00c31000-00c33000 rwxp 00c31000 00:00 0 > 00c80000-00c82000 r-xp 00000000 08:01 376108 /lib/libcom_err.so.2.1 > 00c82000-00c83000 rwxp 00001000 08:01 376108 /lib/libcom_err.so.2.1 > 00d53000-00d55000 r-xp 00000000 08:01 377250 /lib/libdl-2.3.4.so > 00d55000-00d57000 rwxp 00001000 08:01 377250 /lib/libdl-2.3.4.so > 00da9000-00db1000 r-xp 00000000 08:01 376113 /lib/tls/librt-2.3.4.so > 00db1000-00db3000 rwxp 00007000 08:01 376113 /lib/tls/librt-2.3.4.so > 00db3000-00dbd000 rwxp 00db3000 00:00 0 > 00dbf000-00dce000 r-xp 00000000 08:01 377249 /lib/libresolv-2.3.4.so > 00dce000-00dd0000 rwxp 0000f000 08:01 377249 /lib/libresolv-2.3.4.so > 00dd0000-00dd2000 rwxp 00dd0000 00:00 0 > 0620e000-062e2000 r-xp 00000000 08:01 377251 /lib/libcrypto.so.0.9.7a > 062e2000-062f4000 rwxp 000d4000 08:01 377251 /lib/libcrypto.so.0.9.7a > 062f4000-062f7000 rwxp 062f4000 00:00 0 > 08048000-08057000 r-xp 00000000 08:02 2752562 /home2/java/jre/bin/java > 08057000-08059000 rwxp 0000e000 08:02 2752562 /home2/java/jre/bin/java > 08059000-0a279000 rwxp 08059000 00:00 0 > 68ace000-68ad4000 r-xp 00000000 08:02 2769008 > /home2/java/jre/lib/i386/libnio.so > 68ad4000-68ad5000 rwxp 00005000 08:02 2769008 > /home2/java/jre/lib/i386/libnio.so > 68ad5000-68aed000 r-xp 00000000 08:02 2769003 > /home2/java/jre/lib/i386/libdcpr.so > 68aed000-68b00000 rwxp 00018000 08:02 2769003 > /home2/java/jre/lib/i386/libdcpr.so > 68b00000-68c5c000 rwxp 68b00000 00:00 0 > 68c5c000-68d00000 ---p 68c5c000 00:00 0 > 68d00000-68e00000 rwxp 68d00000 00:00 0 > 68f41000-68fb9000 r-xp 00000000 08:02 2769006 > /home2/java/jre/lib/i386/libfontmanager.so > 68fb9000-68fc3000 rwxp 00078000 08:02 2769006 > /home2/java/jre/lib/i386/libfontmanager.so > 68fc3000-68fc7000 rwxp 68fc3000 00:00 0 > 69000000-690fb000 rwxp 69000000 00:00 0 > 690fb000-69100000 ---p 690fb000 00:00 0 > 69100000-691fc000 rwxp 69100000 00:00 0 > 691fc000-69200000 ---p 691fc000 00:00 0 > 69211000-69217000 r-xp 00000000 08:02 2769024 > /home2/java/jre/lib/i386/headless/libmawt.so > 69217000-69218000 rwxp 00005000 08:02 2769024 > /home2/java/jre/lib/i386/headless/libmawt.so > 69218000-692de000 r-xp 00000000 08:02 2769011 > /home2/java/jre/lib/i386/libmlib_image.so > 692de000-692df000 rwxp 000c5000 08:02 2769011 > /home2/java/jre/lib/i386/libmlib_image.so > 69300000-693f1000 rwxp 69300000 00:00 0 > 693f1000-69400000 ---p 693f1000 00:00 0 > 69400000-694f5000 rwxp 69400000 00:00 0 > 694f5000-69500000 ---p 694f5000 00:00 0 > 69500000-696a1000 rwxp 69500000 00:00 0 > 696a1000-69700000 ---p 696a1000 00:00 0 > 69700000-69800000 rwxp 69700000 00:00 0 > 6983d000-698b2000 r-xp 00000000 08:02 2768992 > /home2/java/jre/lib/i386/libawt.so > 698b2000-698b8000 rwxp 00074000 08:02 2768992 > /home2/java/jre/lib/i386/libawt.so > 698b8000-698dc000 rwxp 698b8000 00:00 0 > 69900000-69a00000 rwxp 69900000 00:00 0 > 69b00000-69bf7000 rwxp 69b00000 00:00 0 > 69bf7000-69c00000 ---p 69bf7000 00:00 0 > 69d00000-69dff000 rwxp 69d00000 00:00 0 > 69dff000-69e00000 ---p 69dff000 00:00 0 > 69f00000-6a000000 rwxp 69f00000 00:00 0 > 6a02f000-6a05e000 r-xp 00000000 08:02 2769012 > /home2/java/jre/lib/i386/libjpeg.so > 6a05e000-6a05f000 rwxp 0002e000 08:02 2769012 > /home2/java/jre/lib/i386/libjpeg.so > 6a05f000-6a0d1000 r-xp 00000000 08:02 2769021 > /home2/java/jre/lib/i386/libcmm.so > 6a0d1000-6a0d4000 rwxp 00071000 08:02 2769021 > /home2/java/jre/lib/i386/libcmm.so > 6a100000-6a2fe000 rwxp 6a100000 00:00 0 > 6a2fe000-6a300000 ---p 6a2fe000 00:00 0 > 6a300000-6a4ff000 rwxp 6a300000 00:00 0 > 6a4ff000-6a500000 ---p 6a4ff000 00:00 0 > 6a500000-6a6f9000 rwxp 6a500000 00:00 0 > 6a6f9000-6a700000 ---p 6a6f9000 00:00 0 > 6a700000-6a900000 rwxp 6a700000 00:00 0 > 6a900000-6aa00000 rwxp 6a900000 00:00 0 > 6aa00000-6aaf6000 rwxp 6aa00000 00:00 0 > 6aaf6000-6ab00000 ---p 6aaf6000 00:00 0 > 6ac00000-6ad00000 rwxp 6ac00000 00:00 0 > 6ad00000-6adff000 rwxp 6ad00000 00:00 0 > 6adff000-6ae00000 ---p 6adff000 00:00 0 > 6aea7000-6aeb6000 r-xp 00000000 08:02 4899220 > /home2/mapserver-5.0/fonts/lsans.ttf > 6af00000-6b000000 rwxp 6af00000 00:00 0 > 6b000000-6b0f9000 rwxp 6b000000 00:00 0 > 6b0f9000-6b100000 ---p 6b0f9000 00:00 0 > 6b200000-6b300000 rwxp 6b200000 00:00 0 > 6b300000-6b3fd000 rwxp 6b300000 00:00 0 > 6b3fd000-6b400000 ---p 6b3fd000 00:00 0 > 6b500000-6b5ff000 rwxp 6b500000 00:00 0 > 6b5ff000-6b600000 ---p 6b5ff000 00:00 0 > 6b600000-6b6f0000 rwxp 6b600000 00:00 0 > 6b6f0000-6b700000 ---p 6b6f0000 00:00 0 > 6b800000-6baf8000 rwxp 6b800000 00:00 0 > 6baf8000-6bb00000 ---p 6baf8000 00:00 0 > 6bb00000-6bbff000 rwxp 6bb00000 00:00 0 > 6bbff000-6bc00000 ---p 6bbff000 00:00 0 > 6bc00000-6bd00000 rwxp 6bc00000 00:00 0 > 6bd00000-6be00000 rwxp 6bd00000 00:00 0 > 6bf00000-6bffe000 rwxp 6bf00000 00:00 0 > 6bffe000-6c000000 ---p 6bffe000 00:00 0 > 6c02c000-6c03a000 r-xp 00000000 08:02 4898978 > /home2/mapserver-5.0/fonts/lsansd.ttf > 6c03a000-6c03d000 ---p 6c03a000 00:00 0 > 6c03d000-6c0bb000 rwxp 6c03d000 00:00 0 > 6c0bb000-6c0be000 ---p 6c0bb000 00:00 0 > 6c0be000-6c13c000 rwxp 6c0be000 00:00 0 > 6c13c000-6c13f000 rwxp 6c13c000 00:00 0 > 6c13f000-6c1bd000 rwxp 6c13f000 00:00 0 > 6c1bd000-6c1c0000 rwxp 6c1bd000 00:00 0 > 6c1c0000-6c23e000 rwxp 6c1c0000 00:00 0 > 6c23e000-6c241000 ---p 6c23e000 00:00 0 > 6c241000-6c2bf000 rwxp 6c241000 00:00 0 > 6c2bf000-6c2c2000 rwxp 6c2bf000 00:00 0 > 6c2c2000-6c340000 rwxp 6c2c2000 00:00 0 > 6c340000-6c343000 ---p 6c340000 00:00 0 > 6c343000-6c3c1000 rwxp 6c343000 00:00 0 > 6c3c1000-6c3c2000 r-xp 00000000 08:02 2769026 > /home2/java/jre/lib/i386/librmi.so > 6c3c2000-6c3c3000 rwxp 00000000 08:02 2769026 > /home2/java/jre/lib/i386/librmi.so > 6c3c3000-6c3c6000 rwxp 6c3c3000 00:00 0 > 6c3c6000-6c444000 rwxp 6c3c6000 00:00 0 > 6c444000-6c447000 ---p 6c444000 00:00 0 > 6c447000-6c4c5000 rwxp 6c447000 00:00 0 > 6c4c5000-6c4cb000 r-xs 00000000 08:01 211959 > /usr/lib/gconv/gconv-modules.cache > 6c4cb000-6c5f5000 r-xp 00000000 08:02 4899199 > /home2/mapserver-5.0/geos/lib/libgeos-3.0.0.so > 6c5f5000-6c5fa000 rwxp 0012a000 08:02 4899199 > /home2/mapserver-5.0/geos/lib/libgeos-3.0.0.so > 6c5fa000-6c628000 r-xp 00000000 08:01 189118 /usr/lib/libcurl.so.3.0.0 > 6c628000-6c62a000 rwxp 0002d000 08:01 189118 /usr/lib/libcurl.so.3.0.0 > 6c62a000-6c639000 r-xp 00000000 08:02 4899202 > /home2/mapserver-5.0/geos/lib/libgeos_c.so.1.4.1 > 6c639000-6c63a000 rwxp 0000e000 08:02 4899202 > /home2/mapserver-5.0/geos/lib/libgeos_c.so.1.4.1 > 6c63a000-6ca8b000 r-xp 00000000 08:02 4899214 > /home2/mapserver-5.0/gdal/lib/libgdal.so.1.12.0 > 6ca8b000-6cae1000 rwxp 00451000 08:02 4899214 > /home2/mapserver-5.0/gdal/lib/libgdal.so.1.12.0 > 6cae1000-6cae3000 rwxp 6cae1000 00:00 0 > 6cae3000-6cb16000 r-xp 00000000 08:02 4898981 > /home2/mapserver-5.0/proj4/lib/libproj.so.0.5.4 > 6cb16000-6cb18000 rwxp 00033000 08:02 4898981 > /home2/mapserver-5.0/proj4/lib/libproj.so.0.5.4 > 6cb18000-6cb28000 r-xp 00000000 08:02 4915298 > /home2/mapserver-5.0/agg/lib/libaggfontfreetype.so.2.0.4 > 6cb28000-6cb29000 rwxp 00010000 08:02 4915298 > /home2/mapserver-5.0/agg/lib/libaggfontfreetype.so.2.0.4 > 6cb29000-6cb58000 r-xp 00000000 08:02 4915294 > /home2/mapserver-5.0/agg/lib/libagg.so.2.0.4 > 6cb58000-6cb5b000 rwxp 0002e000 08:02 4915294 > /home2/mapserver-5.0/agg/lib/libagg.so.2.0.4 > 6cb5b000-6cb7a000 r-xp 00000000 08:02 4898919 > /home2/mapserver-5.0/libpng/lib/libpng12.so.0.24.0 > 6cb7a000-6cb7b000 rwxp 0001e000 08:02 4898919 > /home2/mapserver-5.0/libpng/lib/libpng12.so.0.24.0 > 6cb91000-6cbf6000 r-xp 00000000 08:02 4898829 > /home2/mapserver-5.0/freetype/lib/libfreetype.so.6.3.16 > 6cbf6000-6cbfa000 rwxp 00064000 08:02 4898829 > /home2/mapserver-5.0/freetype/lib/libfreetype.so.6.3.16 > 6cbfa000-6cc12000 r-xp 00000000 08:02 4898950 > /home2/mapserver-5.0/gd/lib/libgd.so.2.0.0 > 6cc12000-6cc32000 rwxp 00017000 08:02 4898950 > /home2/mapserver-5.0/gd/lib/libgd.so.2.0.0 > 6cc32000-6cc36000 rwxp 6cc32000 00:00 0 > 6cc36000-6cd77000 r-xp 00000000 08:02 4915585 > /home2/mapserver-5.0/mapscript/libmapscript.so > 6cd77000-6cd7b000 rwxp 00140000 08:02 4915585 > /home2/mapserver-5.0/mapscript/libmapscript.so > 6cd7b000-6cd7d000 rwxp 6cd7b000 00:00 0 > 6cd7d000-6cd80000 ---p 6cd7d000 00:00 0 > 6cd80000-6cdfe000 rwxp 6cd80000 00:00 0 > 6cdfe000-6ce01000 ---p 6cdfe000 00:00 0 > 6ce01000-6ce7f000 rwxp 6ce01000 00:00 0 > 6ce7f000-6ce82000 ---p 6ce7f000 00:00 0 > 6ce82000-6cfff000 rwxp 6ce82000 00:00 0 > 6cfff000-6d000000 ---p 6cfff000 00:00 0 > 6d058000-6d05e000 rwxp 6d058000 00:00 0 > 6d05e000-6d061000 ---p 6d05e000 00:00 0 > 6d061000-6d0df000 rwxp 6d061000 00:00 0 > 6d0df000-6d0f3000 r-xp 00000000 08:02 2769002 > /home2/java/jre/lib/i386/libnet.so > 6d0f3000-6d0f4000 rwxp 00013000 08:02 2769002 > /home2/java/jre/lib/i386/libnet.so > 6d0f4000-6d14c000 r-xs 00000000 08:02 4046860 > /home2/idseg-gis-server/lib/log4j-1.2.13.jar > 6d14c000-6d172000 r-xs 00000000 08:02 4915586 > /home2/mapserver-5.0/mapscript/mapscript.jar > 6d172000-6d1a7000 r-xs 00000000 08:02 4046861 > /home2/idseg-gis-server/lib/idseg-pojo-1.0.0.jar > 6d1a7000-6d1c9000 r-xs 00000000 08:02 4046863 > /home2/idseg-gis-server/lib/dgt-util-1.0.0.jar > 6d1c9000-6d1d3000 r-xs 00000000 08:02 4046862 > /home2/idseg-gis-server/lib/commons-logging-1.0.4.jar > 6d1d3000-6d1dc000 r-xs 00000000 08:02 4046858 > /home2/idseg-gis-server/idseg-gis-server-1.0.6.jar > 6d1dc000-6d207000 r-xs 00000000 08:02 2752587 > /home2/java/jre/lib/ext/sunpkcs11.jar > 6d207000-6d2cb000 r-xs 00000000 08:02 2752585 > /home2/java/jre/lib/ext/localedata.jar > 6d2cb000-6d2f2000 r-xs 00000000 08:02 2752584 > /home2/java/jre/lib/ext/sunjce_provider.jar > 6d2f2000-6d2f4000 r-xs 00000000 08:02 2752586 > /home2/java/jre/lib/ext/dnsns.jar > 6d2f4000-6d2f5000 ---p 6d2f4000 00:00 0 > 6d2f5000-6d375000 rwxp 6d2f5000 00:00 0 > 6d375000-6d378000 ---p 6d375000 00:00 0 > 6d378000-6d3f6000 rwxp 6d378000 00:00 0 > 6d3f6000-6d3f9000 ---p 6d3f6000 00:00 0 > 6d3f9000-6d477000 rwxp 6d3f9000 00:00 0 > 6d477000-6d47a000 ---p 6d477000 00:00 0 > 6d47a000-6d4f8000 rwxp 6d47a000 00:00 0 > 6d4f8000-6d4fb000 ---p 6d4f8000 00:00 0 > 6d4fb000-6d579000 rwxp 6d4fb000 00:00 0 > 6d579000-6d57c000 ---p 6d579000 00:00 0 > 6d57c000-6d5fa000 rwxp 6d57c000 00:00 0 > 6d5fa000-6d7fa000 r-xp 00000000 08:01 182537 > /usr/lib/locale/locale-archive > 6d7fa000-6d7fd000 ---p 6d7fa000 00:00 0 > 6d7fd000-6d87b000 rwxp 6d7fd000 00:00 0 > 6d87b000-6d87e000 ---p 6d87b000 00:00 0 > 6d87e000-6d8fc000 rwxp 6d87e000 00:00 0 > 6d8fc000-6d8fd000 ---p 6d8fc000 00:00 0 > 6d8fd000-6d97d000 rwxp 6d8fd000 00:00 0 > 6d97d000-6d97e000 ---p 6d97d000 00:00 0 > 6d97e000-6d9fe000 rwxp 6d97e000 00:00 0 > 6d9fe000-6d9ff000 ---p 6d9fe000 00:00 0 > 6d9ff000-6da7f000 rwxp 6d9ff000 00:00 0 > 6da7f000-6da80000 ---p 6da7f000 00:00 0 > 6da80000-6db00000 rwxp 6da80000 00:00 0 > 6db00000-6db01000 ---p 6db00000 00:00 0 > 6db01000-6db89000 rwxp 6db01000 00:00 0 > 6db89000-6dba1000 rwxp 6db89000 00:00 0 > 6dba1000-6dbbe000 rwxp 6dba1000 00:00 0 > 6dbbe000-6dd64000 rwxp 6dbbe000 00:00 0 > 6dd64000-6dd6c000 rwxp 6dd64000 00:00 0 > 6dd6c000-6dd84000 rwxp 6dd6c000 00:00 0 > 6dd84000-6dda1000 rwxp 6dd84000 00:00 0 > 6dda1000-6df46000 rwxp 6dda1000 00:00 0 > 6df46000-6df52000 rwxp 6df46000 00:00 0 > 6df52000-6df7f000 rwxp 6df52000 00:00 0 > 6df7f000-6ef80000 rwxp 6df7f000 00:00 0 > 6ef80000-71f80000 rwxp 6ef80000 00:00 0 > 71f80000-757d0000 rwxp 71f80000 00:00 0 > 757d0000-aa4e0000 rwxp 757d0000 00:00 0 > aa4e0000-abb00000 rwxp aa4e0000 00:00 0 > abb00000-b1580000 rwxp abb00000 00:00 0 > b1587000-b1590000 rwxp b1587000 00:00 0 > b1590000-b1647000 rwxp b1590000 00:00 0 > b1647000-b1887000 rwxp b1647000 00:00 0 > b1887000-b4647000 rwxp b1887000 00:00 0 > b4647000-b4eb4000 r-xs 00000000 08:02 2753066 > /home2/java/jre/lib/charsets.jar > b4eb4000-b4ec9000 r-xs 00000000 08:02 2753063 /home2/java/jre/lib/jce.jar > b4ec9000-b4f4e000 r-xs 00000000 08:02 2753062 > /home2/java/jre/lib/jsse.jar > b4f4e000-b4fb7000 rwxp b4f4e000 00:00 0 > b4fb7000-b75bb000 r-xs 00000000 08:02 2753054 /home2/java/jre/lib/rt.jar > b75bb000-b75ce000 r-xp 00000000 08:02 2768979 > /home2/java/jre/lib/i386/libzip.so > b75ce000-b75d0000 rwxp 00012000 08:02 2768979 > /home2/java/jre/lib/i386/libzip.so > b75d0000-b75f1000 r-xp 00000000 08:02 2769001 > /home2/java/jre/lib/i386/libjava.so > b75f1000-b75f3000 rwxp 00020000 08:02 2769001 > /home2/java/jre/lib/i386/libjava.so > b75f3000-b75fc000 r-xp 00000000 08:01 374674 /lib/libnss_files-2.3.4.so > b75fc000-b75fe000 rwxp 00008000 08:01 374674 /lib/libnss_files-2.3.4.so > b7600000-b760b000 r-xp 00000000 08:02 2768984 > /home2/java/jre/lib/i386/libverify.so > b760b000-b760c000 rwxp 0000b000 08:02 2768984 > /home2/java/jre/lib/i386/libverify.so > b760c000-b7614000 rwxs 00000000 08:01 146611 /tmp/hsperfdata_root/30922 > b7614000-b761a000 r-xp 00000000 08:02 2769018 > /home2/java/jre/lib/i386/native_threads/libhpi.so > b761a000-b761b000 rwxp 00006000 08:02 2769018 > /home2/java/jre/lib/i386/native_threads/libhpi.so > b761b000-b761c000 rwxp b761b000 00:00 0 > b761c000-b761d000 r-xp b761c000 00:00 0 > b761d000-b7b6e000 r-xp 00000000 08:02 2768976 > /home2/java/jre/lib/i386/server/libjvm.so > b7b6e000-b7bd0000 rwxp 00551000 08:02 2768976 > /home2/java/jre/lib/i386/server/libjvm.so > b7bd0000-b7fe9000 rwxp b7bd0000 00:00 0 > b7fff000-b8000000 rwxp b7fff000 00:00 0 > bfe00000-bfe03000 ---p bfe00000 00:00 0 > bfe03000-c0000000 rwxp bfe03000 00:00 0 > ffffe000-fffff000 ---p 00000000 00:00 0 > > VM Arguments: > java_command: br.com.digitro.idseg.gis.rmi.GisServer > Launcher Type: SUN_STANDARD > > Environment Variables: > JAVA_HOME=/usr/java/jdk > JRE_HOME=/usr/java/jre > CLASSPATH=/home2/idseg-gis-server/idseg-gis-server-1.0.6.jar:/home2/idseg-gis-server/lib/commons-logging-1.0.4.jar:.:/home2/idseg-gis-server/lib/dgt-util-1.0.0.jar:/home2/idseg-gis-server/lib/idseg-pojo-1.0.0.jar:/home2/idseg-gis-server/lib/mapscript.jar:/home2/idseg-gis-server/lib/log4j-1.2.13.jar > PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/java/jre/bin:/usr/java/jdk/bin:/home2/mapserver/mapscript:/root/bin:/usr/java/jre/bin:/usr/java/jdk/bin:/home2/mapserver/mapscript > LD_LIBRARY_PATH=/home2/java/jre/lib/i386/server:/home2/java/jre/lib/i386:/home2/java/jre/../lib/i386:/home2/mapserver/proj4/lib:/home2/mapserver/gdal/lib:/home2/mapserver/geos/lib:/home2/mapserver/libcurl/lib:/home2/mapserver/libpng/lib:/home2/mapserver/ogdi/lib:/home2/mapserver/freetype/lib:/home2/mapserver/gd/lib:/home2/mapserver/zlib/lib:/home2/mapserver/proj4/share/proj:/home2/mapserver/mapscript:/home2/mapserver/agg/lib:/home2/mapserver/libiconv/lib/:/home2/mapserver/mapscript > SHELL=/bin/bash > > Signal Handlers: > SIGSEGV: [libjvm.so+0x5016a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGBUS: [libjvm.so+0x5016a0], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGFPE: [libjvm.so+0x426c00], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGPIPE: [libjvm.so+0x426c00], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGILL: [libjvm.so+0x426c00], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000 > SIGUSR2: [libjvm.so+0x429050], sa_mask[0]=0x00000000, sa_flags=0x14000004 > SIGHUP: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGINT: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGQUIT: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > SIGTERM: [libjvm.so+0x428a80], sa_mask[0]=0x7ffbfeff, sa_flags=0x14000004 > > > --------------- S Y S T E M --------------- > > OS:Red Hat Enterprise Linux AS release 4 (Nahant Update 4) > > uname:Linux 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:17:21 EST 2007 i686 > libc:glibc 2.3.4 NPTL 2.3.4 > rlimit: STACK 10240k, CORE 0k, NPROC 77824, NOFILE 1024, AS infinity > load average:1.52 1.49 1.58 > > CPU:total 4 family 6, cmov, cx8, fxsr, mmx, sse, sse2, ht > > Memory: 4k page, physical 1012k(3k free), swap 1000k(302k free) > > vm_info: Java HotSpot(TM) Server VM (1.5.0_07-b03) for linux-x86, built > on May 3 2006 00:32:58 by java_re with gcc 3.2.1-7a (J2SE release) > -------------- next part -------------- A non-text attachment was scrubbed... Name: debug.patch Type: text/x-patch Size: 679 bytes Desc: not available URL: From lee_keel at TRIMBLE.COM Fri Jan 18 06:43:23 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Fri, 18 Jan 2008 09:43:23 -0500 Subject: mapserver error Message-ID: Hello all. I have a new twist to my problem that I believe rules mapserver->postgres out. I added a layer last night that are the labels for the roads and I am getting both problems with this layer now as well. However, these labels are coming from TIGER shape files instead of postgres. Here is something else I have monkeyed with. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=basemap+basemap_anno) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Sorry for my newby questions and 1,000s of emails, but just trying to narrow this down. Thanks, LK Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: MapServer Workshop (panamacity)

Map Mode: Layers:
Map Control:

Legend:

Map scale 1:[scale]

Pixel size [cellsize]

Extents [minx], [miny], [maxx], [maxy]

Map size (screen) [mapsize]

Map width [mapwidth]

Map height [mapheight]

Map [map]

Layers [layers]

From bartvde at GMAIL.COM Fri Jan 18 06:44:24 2008 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Fri, 18 Jan 2008 15:44:24 +0100 Subject: map_resolution in 5.0 does not work In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB9E0@s-sp22.pca.state.mn.us> Message-ID: <FRI.18.JAN.2008.154424.0100.BARTVDEGMAIL.COM> Hi David, I did read it, but could not really find a clue in it for my problem. Are the . not typos? There are also _ examples still in there. Anyways, I tried map.resolution=25 to no avail. Best regards, Bart On Jan 18, 2008 2:59 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > Have you looked at the 5.0 migration guide? > http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT > > If not, take a look at the section titled, 'URL configuration changes'. I > don't know for sure, but you might want to try something like > map.resolution=25 > > David. > > -----Original Message----- > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] *On > Behalf Of *Bart van den Eijnden > *Sent:* Friday, January 18, 2008 6:03 AM > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > *Subject:* [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work > > Hi list, > > why does the following fail against Mapserver 5.0, it used to work in > previous version: > > map_resolution=25, for instance: > > http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket/dtb?map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH=1530&BBOX=%2D64210%2E0044897549%2C273591%2E761008437%2C364210%2E004489755%2C626408%2E238991563&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > > Mapserver 5.0 returns: > > getDouble(): Symbol definition error. Parsing error near (25):(line 1) > > TIA. > > Best regards, > Bart > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080118/12cf622f/attachment.htm> From andreas.albarello at TERRITORIUMONLINE.COM Fri Jan 18 06:49:59 2008 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Fri, 18 Jan 2008 15:49:59 +0100 Subject: AGG/PNG driver In-Reply-To: <005101c859e0$47f4efc0$6501a8c0@signo3> Message-ID: <FRI.18.JAN.2008.154959.0100.ANDREAS.ALBARELLOTERRITORIUMONLINE.COM> On 18 Jan 2008, at 15:41, Hans Castorp wrote: [...] > But, when I try to use it, I receive the following error: > > OUTPUTFORMAT clause references driver AGG/PNG > , but this driver isn't configured > > Well, the question is evident: what I have to do to configure this > driver??? > > Thanks in advance. > > P.S. I am using Mapserver 4.10.1 running over Windows XP. Hans, AGG support was added in Mapserver 5. There's no such thing for Mapserver 4.10. You need to upgrade in order to use AGG for rendering. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From ed at TOPOZONE.COM Fri Jan 18 06:58:43 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 18 Jan 2008 09:58:43 -0500 Subject: mapserver error In-Reply-To: A<944DCD961F4CD649BCEBB52E3C929F6501863C55@usd-am-xch-01.am.trimblecorp.net> Message-ID: <FRI.18.JAN.2008.095843.0500.EDTOPOZONE.COM> Lee - While you might get info here, you should also post this to the OpenLayers list to get info on "what's different in OL". - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 9:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Hello all. I have a new twist to my problem that I believe rules mapserver->postgres out. I added a layer last night that are the labels for the roads and I am getting both problems with this layer now as well. However, these labels are coming from TIGER shape files instead of postgres. Here is something else I have monkeyed with. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Sorry for my newby questions and 1,000s of emails, but just trying to narrow this down. Thanks, LK Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org> " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> From David.Fawcett at STATE.MN.US Fri Jan 18 07:02:16 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 18 Jan 2008 09:02:16 -0600 Subject: map_resolution in 5.0 does not work In-Reply-To: <1ebb87870801180644r702dd3a6ka0109b1a5abbb5a5@mail.gmail.com> Message-ID: <FRI.18.JAN.2008.090216.0600.DAVID.FAWCETTSTATE.MN.US> Bart, Apologies. I didn't notice that it was you who had posted the question. Usually, if I see that you have pointed out an issue, I assume that it is a real bug right away! A couple of thoughts: Does the GET call work if you just remove 'map_resolution=25' from your URL? The error references a 'symbol definition error' near line 25, are you sure that there isn't a syntax error in the map file? the get_double() error sounds funny because the resolution value is supposed to be an int. Is this just a problem with the WMS request, can you get this resolution substitution call to work as a mode=map request? David. -----Original Message----- From: Bart van den Eijnden [mailto:bartvde at gmail.com] Sent: Friday, January 18, 2008 8:44 AM To: Fawcett, David Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work Hi David, I did read it, but could not really find a clue in it for my problem. Are the . not typos? There are also _ examples still in there. Anyways, I tried map.resolution=25 to no avail. Best regards, Bart On Jan 18, 2008 2:59 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: Have you looked at the 5.0 migration guide? http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATI ON_GUIDE.TXT If not, take a look at the section titled, 'URL configuration changes'. I don't know for sure, but you might want to try something like map.resolution=25 David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: Friday, January 18, 2008 6:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work Hi list, why does the following fail against Mapserver 5.0, it used to work in previous version: map_resolution=25, for instance: http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket /dtb?map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=i mage%2Fpng&STYLES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH =1530&BBOX=%2D64210%2E0044897549%2C273591%2E761008437%2C364210%2E0044897 55%2C626408%2E238991563&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc. se_inimage Mapserver 5.0 returns: getDouble(): Symbol definition error. Parsing error near (25):(line 1) TIA. Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080118/c3f88b2e/attachment.htm> From David.Fawcett at STATE.MN.US Fri Jan 18 07:03:29 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 18 Jan 2008 09:03:29 -0600 Subject: mapserver error In-Reply-To: A<944DCD961F4CD649BCEBB52E3C929F6501863C55@usd-am-xch-01.am.trimblecorp.net> Message-ID: <FRI.18.JAN.2008.090329.0600.DAVID.FAWCETTSTATE.MN.US> If you use firebug to look at the request for the tile, does the URL look good? Are you getting an error message? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 8:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Hello all. I have a new twist to my problem that I believe rules mapserver->postgres out. I added a layer last night that are the labels for the roads and I am getting both problems with this layer now as well. However, these labels are coming from TIGER shape files instead of postgres. Here is something else I have monkeyed with. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Sorry for my newby questions and 1,000s of emails, but just trying to narrow this down. Thanks, LK Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org> " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> From Michael.Smith at MAINE.GOV Fri Jan 18 07:09:28 2008 From: Michael.Smith at MAINE.GOV (Smith, Michael) Date: Fri, 18 Jan 2008 10:09:28 -0500 Subject: configure WMS alias In-Reply-To: A<6246727221874A4FB8D3F9BBC37D9BD5021FB9E2@s-sp22.pca.state.mn.us> Message-ID: <FRI.18.JAN.2008.100928.0500.MICHAEL.SMITHMAINE.GOV> Using MS4W. How do I configure an alias in httpd.d folder for WMS connection? For example, I have a WMS I access with this URL http://dep-eia1pcgis1/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/naip2007. map& I would like to shorten it to: http://dep-eia1pcgis1/naip2007 I created a file httpd_wms.conf in httpd.d folder with this entry: Alias /naip2007 "/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/naip2007.map?" Restarted MS4W, ArcGIS still can't find it. I have tried other entries to no avail. *********** Michael Smith Maine DEP/OIT From bartvde at GMAIL.COM Fri Jan 18 07:11:38 2008 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Fri, 18 Jan 2008 16:11:38 +0100 Subject: map_resolution in 5.0 does not work In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB9E1@s-sp22.pca.state.mn.us> Message-ID: <FRI.18.JAN.2008.161138.0100.BARTVDEGMAIL.COM> Hi David, the GET calls works if I remove the parameter, so the MAP file works fine. If I change 25 in 50, I see 50 in Mapserver's error message, so I am 99,9% sure it is causing this error. Resolution is a double, in my OGC map files I always use 90.71. Even in a normal mode=map, Mapserver complains about the parameter. Best regards, Bart On Jan 18, 2008 4:02 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > Bart, > > Apologies. I didn't notice that it was you who had posted the question. > Usually, if I see that you have pointed out an issue, I assume that it is a > real bug right away! > > A couple of thoughts: > > Does the GET call work if you just remove 'map_resolution=25' from your > URL? > > The error references a 'symbol definition error' near line 25, are you > sure that there isn't a syntax error in the map file? > > the get_double() error sounds funny because the resolution value is > supposed to be an int. > > Is this just a problem with the WMS request, can you get this resolution > substitution call to work as a mode=map request? > > David. > > -----Original Message----- > *From:* Bart van den Eijnden [mailto:bartvde at gmail.com] > *Sent:* Friday, January 18, 2008 8:44 AM > *To:* Fawcett, David > *Cc:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work > > Hi David, > > I did read it, but could not really find a clue in it for my problem. > > Are the . not typos? There are also _ examples still in there. > > Anyways, I tried map.resolution=25 to no avail. > > Best regards, > Bart > > On Jan 18, 2008 2:59 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > > > Have you looked at the 5.0 migration guide? http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT > > > > > > If not, take a look at the section titled, 'URL configuration changes'. > > I don't know for sure, but you might want to try something like > > map.resolution=25 > > > > David. > > > > -----Original Message----- > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > *On Behalf Of *Bart van den Eijnden > > *Sent:* Friday, January 18, 2008 6:03 AM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work > > > > Hi list, > > > > why does the following fail against Mapserver 5.0, it used to work in > > previous version: > > > > map_resolution=25, for instance: > > > > http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket/dtb?map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH=1530&BBOX=%2D64210%2E0044897549%2C273591%2E761008437%2C364210%2E004489755%2C626408%2E238991563&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > > > > > Mapserver 5.0 returns: > > > > getDouble(): Symbol definition error. Parsing error near (25):(line 1) > > > > TIA. > > > > Best regards, > > Bart > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080118/2cae19b9/attachment.htm> From lee_keel at TRIMBLE.COM Fri Jan 18 07:15:16 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Fri, 18 Jan 2008 10:15:16 -0500 Subject: mapserver error Message-ID: <FRI.18.JAN.2008.101516.0500.LEE_KEELTRIMBLE.COM> Here are the URLs. They look correct to me. URL that does work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875,432515.7217625&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1590156.159945,431001.073325,1592973.40603875,432515.7217625&WIDTH=1023&HEIGHT=550> URL that does not work: http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9387535937,431947.7285984375&WIDTH=1023&HEIGHT=550 <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/panamacity/gas.map&LAYERS=basemap_anno&TRANSPARENT=true&FORMAT=image%2Fgif&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A2238&BBOX=1591212.6272301562,431569.0664890625,1591916.9387535937,431947.7285984375&WIDTH=1023&HEIGHT=550> For the URL that does not work, here is the response: <html><head><title>Error</title></head><body><head><title>Error in CGI Application</title></head> <body><h1>CGI Error</h1>The specified CGI application misbehaved by not returning a complete set of HTTP headers.</body></body></html> ________________________________ From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Fri 1/18/2008 9:03 AM To: Lee Keel; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] mapserver error If you use firebug to look at the request for the tile, does the URL look good? Are you getting an error message? David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 8:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Hello all. I have a new twist to my problem that I believe rules mapserver->postgres out. I added a layer last night that are the labels for the roads and I am getting both problems with this layer now as well. However, these labels are coming from TIGER shape files instead of postgres. Here is something else I have monkeyed with. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Sorry for my newby questions and 1,000s of emails, but just trying to narrow this down. Thanks, LK Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org <http://www.w3.org/> > " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> From Steve.Lime at DNR.STATE.MN.US Fri Jan 18 07:19:02 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 18 Jan 2008 09:19:02 -0600 Subject: map_resolution in 5.0 does not work Message-ID: <FRI.18.JAN.2008.091902.0600.STEVE.LIMEDNR.STATE.MN.US> It's possible it wasn't exposed. I'll check and fix in 5.0.1 and 5.2... Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-259-5473 >>> Bart van den Eijnden <bartvde at GMAIL.COM> 01/18/08 9:11 AM >>> Hi David, the GET calls works if I remove the parameter, so the MAP file works fine. If I change 25 in 50, I see 50 in Mapserver's error message, so I am 99,9% sure it is causing this error. Resolution is a double, in my OGC map files I always use 90.71. Even in a normal mode=map, Mapserver complains about the parameter. Best regards, Bart On Jan 18, 2008 4:02 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > Bart, > > Apologies. I didn't notice that it was you who had posted the question. > Usually, if I see that you have pointed out an issue, I assume that it is a > real bug right away! > > A couple of thoughts: > > Does the GET call work if you just remove 'map_resolution=25' from your > URL? > > The error references a 'symbol definition error' near line 25, are you > sure that there isn't a syntax error in the map file? > > the get_double() error sounds funny because the resolution value is > supposed to be an int. > > Is this just a problem with the WMS request, can you get this resolution > substitution call to work as a mode=map request? > > David. > > -----Original Message----- > *From:* Bart van den Eijnden [mailto:bartvde at gmail.com] > *Sent:* Friday, January 18, 2008 8:44 AM > *To:* Fawcett, David > *Cc:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work > > Hi David, > > I did read it, but could not really find a clue in it for my problem. > > Are the . not typos? There are also _ examples still in there. > > Anyways, I tried map.resolution=25 to no avail. > > Best regards, > Bart > > On Jan 18, 2008 2:59 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > > > Have you looked at the 5.0 migration guide? http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT > > > > > > If not, take a look at the section titled, 'URL configuration changes'. > > I don't know for sure, but you might want to try something like > > map.resolution=25 > > > > David. > > > > -----Original Message----- > > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > *On Behalf Of *Bart van den Eijnden > > *Sent:* Friday, January 18, 2008 6:03 AM > > *To:* MAPSERVER-USERS at LISTS.UMN.EDU > > *Subject:* [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work > > > > Hi list, > > > > why does the following fail against Mapserver 5.0, it used to work in > > previous version: > > > > map_resolution=25, for instance: > > > > http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket/dtb?map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYLES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH=1530&BBOX=%2D64210%2E0044897549%2C273591%2E761008437%2C364210%2E004489755%2C626408%2E238991563&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage > > > > > > Mapserver 5.0 returns: > > > > getDouble(): Symbol definition error. Parsing error near (25):(line 1) > > > > TIA. > > > > Best regards, > > Bart > > > > > > > > > > > From lee_keel at TRIMBLE.COM Fri Jan 18 07:21:26 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Fri, 18 Jan 2008 10:21:26 -0500 Subject: mapserver error Message-ID: <FRI.18.JAN.2008.102126.0500.LEE_KEELTRIMBLE.COM> Thanks Ed. I will do that. Was just trying not to cross post and hoping that there were enough of the OL guys on this list. But I will fwd on to OL list. ________________________________ From: UMN MapServer Users List on behalf of Ed McNierney Sent: Fri 1/18/2008 8:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Lee - While you might get info here, you should also post this to the OpenLayers list to get info on "what's different in OL". - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lee Keel Sent: Friday, January 18, 2008 9:43 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] mapserver error Hello all. I have a new twist to my problem that I believe rules mapserver->postgres out. I added a layer last night that are the labels for the roads and I am getting both problems with this layer now as well. However, these labels are coming from TIGER shape files instead of postgres. Here is something else I have monkeyed with. If I use http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba semap+basemap_anno) then all of my layers seem to be working at any zoom level. But if I go to my openlayers application, they don't always work. If you get a layer not working in the OL app and check the URL, it doesn't seem to be incorrect. So what is the difference between OL requesting from mapserver based on a bbox and the HTML below requesting an image from mapserver? Sorry for my newby questions and 1,000s of emails, but just trying to narrow this down. Thanks, LK Map File Settings for WEB: WEB TEMPLATE 'gas.html' IMAGEPATH "d:/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "gas.log" METADATA wms_title "WMS" wms_onlineresource "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> &" "wms_srs" "EPSG:2238" "WMS_FEATURE_INFO_MIME_TYPE" "text/html" end END Gas.HTML File that is being used: <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> "> <head> <meta name="generator" content="HTML Tidy for Windows (vers 1st June 2004), see www.w3.org <http://www.w3.org <http://www.w3.org/> > " /> <title>MapServer Workshop (panamacity)</title> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> </head> <body bgcolor="#FFFFFF" text="#000000"> <h3></h3> <!-- START OF MAPSERVER FORM --> <form name="mapserv" method="get" action="http://webserver/cgi-bin/mapserv.exe <http://webserver/cgi-bin/mapserv.exe> " id="mapserv"> <!-- HIDDEN MAPSERVER CGI VARIABLES --> <input type="hidden" name="map" value="[map]" /> <input type="hidden" name="imgext" value="[mapext]" /> <input type="hidden" name="imgxy" value="199.5 149.5" /> <table> <tr> <td> <!-- SPECIFY MAP MODE --> <div align="center">Map Mode: <select name="mode"> <option value="browse">Browse</option> <option value="map">Map</option> </select> Layers: <input type="TEXT" name="layers" value="[layers]" /> </div> </td> <td> <!-- FORM SUBMIT BUTTON --> <div align="center"> <input type="submit" name="submit" value="Refresh" /> </div> </td> <td> <!-- ZOOM/PAN CONTROLS --> <div align="center">Map Control: <select name="zoom"> <option value="4" [zoom_4_select]>Zoom In 4x</option> <option value="3" [zoom_3_select]>Zoom In 3x</option> <option value="2" [zoom_2_select]>Zoom In 2x</option> <option value="1" [zoom_1_select]>Recenter</option> <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> </select> </div> </td> <td rowspan="2" valign="top"> <!-- <p>Reference:<br /> <img name="ref" src="[ref]" id="ref" /> </p> --> <p>Legend:<br /> <img name="legend" src="[legend]" id="legend" /> </p> </td> </tr> <tr> <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> <td colspan="3" align="center" valign="top"> <input type="image" name="img" src="[img]" width="800" height="600" border="0" /> <table border="0" width="600" align="center"> <!-- DISPLAY THE SCALE BAR --> <tr> <td align="right"><!-- <img src="[scalebar]" /> --></td> </tr> </table> </td> </tr> </table> <input name="mapxy" type="text" value="[mapx] [mapy]" /> </form> <p>Map scale 1:[scale]</p> <p>Pixel size [cellsize]</p> <p>Extents [minx], [miny], [maxx], [maxy]</p> <p>Map size (screen) [mapsize]</p> <p>Map width [mapwidth]</p> <p>Map height [mapheight]</p> <p>Map [map]</p> <p>Layers [layers]</p> </body> </html> <plaintext> From Tom.Kralidis at EC.GC.CA Fri Jan 18 07:30:34 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 18 Jan 2008 10:30:34 -0500 Subject: configure WMS alias In-Reply-To: A<55D23C89537E434282BC1331F5A94D0F061F63@SOM-TEAQASMAIL6.som.w2k.state.me.us> Message-ID: <FRI.18.JAN.2008.103034.0500.TOM.KRALIDISEC.GC.CA> > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Smith, Michael > Sent: 18 January, 2008 10:09 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] configure WMS alias > > Using MS4W. > > How do I configure an alias in httpd.d folder for WMS > connection? For example, I have a WMS I access with this URL > > http://dep-eia1pcgis1/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms > /naip2007. > map& > > I would like to shorten it to: > > http://dep-eia1pcgis1/naip2007 > > I created a file > > httpd_wms.conf in httpd.d folder with this entry: > > Alias /naip2007 > "/cgi-bin/mapserv.exe?map=c:/ms4w/apps/wms/naip2007.map?" > > Restarted MS4W, ArcGIS still can't find it. > > I have tried other entries to no avail. See http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onlin e-resource-url on how to do this in Windows and UNIX environments. ..Tom From Tom.Kralidis at EC.GC.CA Fri Jan 18 07:40:59 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 18 Jan 2008 10:40:59 -0500 Subject: Trouble with OGC Workshop WFS Client Demo In-Reply-To: A<011720081959.9683.478FB39B0009B920000025D32207300033099D9A0D020A9B9B079999@comcast.net> Message-ID: <FRI.18.JAN.2008.104059.0500.TOM.KRALIDISEC.GC.CA> Hi, I'm getting the same error on my version. I seem to remember something about a path issue with a newer version of OGR, but I could be wrong. Assefa: do you remember what the cause of this is? ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Scott Wittenburg > Sent: 17 January, 2008 2:59 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Trouble with > OGC Workshop WFS Client Demo > > Hello All, > > I'm new to mapserver, and I'm having trouble getting one of > the OGC Workshop demos to work. Hopefully I'll include > enough support information here so that someone can help me > figure what I'm doing wrong. > If anything is missing, please ask and I'll provide any other > necessary details. Thanks for taking the time to read this > problem description. > > Ok, specifically, when I attempt to run the WFS client demo, > I get an error in my browser window which looks like this: > > msDrawMap(): Image handling error. Failed to draw layer named > 'envirodat'. msOGRFileOpen(): OGR error. Open failed for OGR > connection > `/ms4w/tmp/ms_tmp/e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml'. > File not found or unsupported format. > > The url that generated this error was: > > http://localhost/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fms_o > gc_workshop%2Fclient%2Fwfs%2Fdemo.map&layer=envirodat&layer=ri > vers&layer=land_shallow_topo_2048&zoomsize=2&zoomdir=1&program > =%2Fcgi-bin%2Fmapserv.exe&map_web=imagepath+%2Fms4w%2Ftmp%2Fms > _tmp%2F+imageurl+%2Fms_tmp%2F > > When I look in the directory "C:\ms4w\tmp\ms_tmp\", I see the > file in question and I've looked at it. It appears to be > valid GML, though the cygwin "ls -lt" > command shows the file permissions as > "-rwxrwx---". Is this a problem (not world readable)? > The "C:\ms4w\tmp\ms_tmp\" directory permissions are even more > restrictive: "drwx------". I've tried opening up all the > permissions on all these files and directories, but it didn't > seem to help. > > Here are some system configuration details: > > I'm running Windows XP, SP2. I installed MS4W version 2.2.6 > and the OGC Workshop version 1.0.8 into the recommended > location, "C:\" (root directory is "C:\ms4w\"). Everything > seemed to work fine, and several of the workshop demos worked > fine, but when I clicked on the WFS-Client demo link and then > clicked the "Initialize" button, I got the error message shown above. > > I noticed a message in the archives that looked very similar > to this error, but the problem was actually an extra path > separator char getting put into the tmp file path. Other > than that, I haven't really seen this problem addressed > anywhere, so most people obviously aren't seeing it. One > thing I found that people have said could be a problem is the > version of OGR/GDAL used by mapserver. I've used the > "C:\ms4w\tools\gdal-ogr\ogrinfo.exe > program to look at the tmp gml file in question: > > C:\ms4w\tools\gdal-ogr>ogrinfo.exe > C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml > > Had to open data source read-only. > INFO: Open of > 'C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml' > using driver 'GML' successfull. > 1: envirodat > > So that seems fine, doesn't it? The MS4W 2.2.6 documentation > says it includes "GDAL/OGR 1.4.2 and Utilities", so that > seems fine too. > > Here's the mapfile of the demo that caused the > problem: > > # > # $Id: demo.map,v 1.2 2006/08/08 19:02:46 tkralidi Exp $ # # > Start of map file # > > MAP > > # all temp files get prefixed with this string NAME ms_ogc_workshop > > # always returns a map > STATUS ON > > # image format options > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > # width / height of map image > SIZE 500 300 > > # projection of the INTERFACE that this mapfile supports PROJECTION > "init=epsg:4326" > END > > # minx miny maxx maxy > EXTENT -180 -90 180 90 # World > > # units of map/app > UNITS DD > > # def pointers for symbols > > SYMBOLSET "../../etc/symbols/symbols.sym" > FONTSET "../../etc/fonts/fonts.txt" > > # > # Start of web interface definition > # > WEB > > TEMPLATE "../../templates/demo.html" > HEADER "../../templates/query_header.html" > FOOTER "../../templates/query_footer.html" > > # this is set in the form which initializes the page, but > can be set here if you want > IMAGEPATH "/ms4w/tmp/ms_tmp/" > > # this is set in the form which initializes the page, but > can be set here if you want > IMAGEURL "/ms_tmp/" > END > > # > # Start of reference map > # > REFERENCE > # which image is the base image for refmaps > # a area of interest box will be drawn on top of it > IMAGE ../../graphics/refmap_world_4326.gif > > # extents of ref image (minx miny maxx maxy) > EXTENT -180 -90 180 90 > > # width / height of image > SIZE 150 75 > > # always generated > STATUS ON > > COLOR -1 -1 -1 > > # color of outline > OUTLINECOLOR 255 0 0 > END > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > TEMPLATE "../../templates/legend.html" > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 0 0 > LABEL > COLOR 0 0 0 > SIZE tiny > END > STYLE 1 > SIZE 80 2 > COLOR 0 0 0 > UNITS KILOMETERS > INTERVALS 1 > TRANSPARENT TRUE > STATUS TRUE > END > > # start of querymap object > QUERYMAP > SIZE 200 200 > STATUS ON > STYLE HILITE > COLOR 255 0 0 > END > > # start of layer definitions > > LAYER > # name of layer > NAME land_shallow_topo_2048 > GROUP "RASTER" > > # projection: if the data is NOT in the same projection as > the global > # mapfile, you must explicitly give the native projection > code of the data > # some common projections: > # lat/long: epsg:4326 > # NRCan LCC: epsg:42304 > PROJECTION > "init=epsg:4326" > END > > # what type of data is this? > TYPE RASTER > > # always returned with interface > STATUS ON > > # actual data pointer > DATA ../../data/land_shallow_topo_2048.tif > > DUMP TRUE > > HEADER "../../templates/land_shallow_topo_2048_query_header.html" > TEMPLATE "../../templates/land_shallow_topo_2048_query_body.html" > > TOLERANCE 5 > > END > > LAYER > # name of layer > NAME rivers > GROUP "VECTOR" > > # projection: if the data is NOT in the same projection as > the global > # mapfile, you must explicitly give the native projection > code of the data > # some common projections: > # lat/long: epsg:4326 > # NRCan LCC: epsg:42304 > PROJECTION > "init=epsg:4326" > END > > # what type of data is this? > TYPE LINE > > # always returned with interface > STATUS ON > > # actual data pointer > DATA ../../data/rivers > > # data is queryable > DUMP TRUE > > # query templates for HTML-based queries > HEADER ../../templates/rivers_query_header.html > TEMPLATE ../../templates/rivers_query_body.html > > TOLERANCE 5 > > # how will this data look? > CLASS > NAME "Rivers" > COLOR 0 0 255 > END > END > > LAYER > NAME envirodat > GROUP "VECTOR" > TYPE POINT > STATUS ON > # this is a remote OGC:WFS > CONNECTIONTYPE WFS > > # the server URL prefix > # MapServer will add the OGC:WMS specific > # keyword value pairs accordingly > #CONNECTION > "http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1. > 0.0&request=GetFeature" > CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" > > PROJECTION > "init=epsg:4326" > END > > # base info MapServer needs to know to generate the > # OGC:WFS GetFeature request > METADATA > > # MapServer default sends POST > # force to GET > > "wfs_request_method" "GET" > > # how long (in seconds) should MapServer use > # in issuing and receiving the data? > "wfs_connectiontimeout" "60" > > # which version of the OGC:WFS should MapServer communicate with > "wfs_version" "1.0.0" > > # service type for connection > # this info is a bit redundant > "wfs_service" "WFS" > > # what is the feature type you are querying > "wfs_typename" "envirodat" > > # what is the spatial extent? > "wfs_latlonboundingbox" "-64.6622 46.7594 -52.6808 55.2333" > # > END > # > # MapServer will then use this information to generate a > string like: > # > http://map.ns.ec.gc.ca/envdat/map.aspx?version=<wfs_version>&s ervice=<wfs_service>&request=GetFeature&typename=<wfs_typename> > # > # missing required keyword value pairs get generated according > # to the application using this mapfile, i.e.: > # &bbox, &filter, etc. > > CLASS > NAME "Water Quality Monitoring Stations" > COLOR 255 255 0 > END > END > END > From hanscastorp76 at YAHOO.ES Fri Jan 18 07:59:45 2008 From: hanscastorp76 at YAHOO.ES (Hans Castorp) Date: Fri, 18 Jan 2008 16:59:45 +0100 Subject: AGG/PNG driver In-Reply-To: <F64AA3AE-94B7-4B15-A1D5-89E315B7EC4F@territoriumonline.com> Message-ID: <FRI.18.JAN.2008.165945.0100.HANSCASTORP76YAHOO.ES> Thanks to all, Well, only a question about upgrading mapserver. My mapserver was "installed" using ms4w; what is the better way to upgrade it? Overwrite it all?? Overwrite only cgi-bin folder?? Thanks in advance. Hans Castorp. -----Mensaje original----- De: Andreas Albarello [mailto:andreas.albarello at territoriumonline.com] Enviado el: viernes, 18 de enero de 2008 15:50 Para: Hans Castorp CC: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] AGG/PNG driver On 18 Jan 2008, at 15:41, Hans Castorp wrote: [...] > But, when I try to use it, I receive the following error: > > OUTPUTFORMAT clause references driver AGG/PNG > , but this driver isn't configured > > Well, the question is evident: what I have to do to configure this > driver??? > > Thanks in advance. > > P.S. I am using Mapserver 4.10.1 running over Windows XP. Hans, AGG support was added in Mapserver 5. There's no such thing for Mapserver 4.10. You need to upgrade in order to use AGG for rendering. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.6/1230 - Release Date: 17/01/2008 16:59 No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.6/1230 - Release Date: 17/01/2008 16:59 From gregoavila at GMAIL.COM Fri Jan 18 08:04:59 2008 From: gregoavila at GMAIL.COM (=?ISO-8859-1?Q?Gregorio_Mu=F1oz?=) Date: Fri, 18 Jan 2008 17:04:59 +0100 Subject: Join SHP to DBF Message-ID: <FRI.18.JAN.2008.170459.0100.GREGOAVILAGMAIL.COM> I need join SHP to DBF. I tried this: JOIN NAME "test" TABLE "../data/link.dbf" FROM "IDEN" TO "IDEN" TYPE ONE-TO-ONE END but it doesn't work. I read the following link: http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-1-join-from-shp-file-to-dbf-file Does anyone know why it does not work? Fields in SHP: IDEN, NAME, NUMBER Fields in DBF: IDEN, PROP, COST -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080118/c59bad78/attachment.htm> From espen.isaksen at GMAIL.COM Fri Jan 18 08:17:21 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Fri, 18 Jan 2008 17:17:21 +0100 Subject: Plate Carre with latitude shift In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019887EE@ptolemy.topozone.com> Message-ID: <FRI.18.JAN.2008.171721.0100.ESPEN.ISAKSENGMAIL.COM> Hi! Sorry for not answering this for a day or so. First of all thanks to Ed and Frank for helping me out on this one! What you explain is what I figured happened. But I still do not quite understand why proj cannot transform my coordinates to the new system with the latitude shifted. I have read one similar e-mail on this list from 2005(although I cannot find it now) which asked the same question. Espen On 17/01/2008, Ed McNierney <ed at topozone.com> wrote: > Espen - > > Yes, that should be what you expect. If you change the latitude of true > scale, then you're changing the relationship between the size of a > degree of longitude at a given latitude. Normally the line of 60 > degrees North latitude is "stretched" horizontally to be larger than it > should be. It is displayed so that it appears that one degree of > longitude (at that latitude) is the same size as one degree of longitude > at the Equator (instead of being only half as long). That makes it > appear to be the same size as a degree of latitude and therefore you can > easily interpolate coordinates because they are the same size. > > When you change the latitude of true scale to 60 degrees North, you are > making every degree of longitude equal 0.5 degrees of latitude, and you > can no longer treat them as simple X/Y coordinates to read latitude and > longitude. You need to keep in mind that you are really using a > different projection, so your coordinate system is going to be > different. > > - Ed > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Espen Isaksen > Sent: Wednesday, January 16, 2008 5:41 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift > > To further discuss this topic. I created a map of Europe in a regular > EPSG:32662(proj=eqc) and one map of Europe with a latitude shift to 60 > degrees north: > > Map of Europe in 32662: > http://bildr.no/view/143324 > > Map of Europe with latitude shift: > http://bildr.no/view/143325 > > The latter is close to what I want. However, if I move my zoom in to > some part of the nordic countries, the decimal degree coordinates will > no longer correspond with my coordinates in my 32662 projection with > the latitude shift. Why is this? > > Espen > > > On 16/01/2008, Espen Isaksen <espen.isaksen at gmail.com> wrote: > > > EPSG:4326 is a geographic coordinate system, and the coordinates > are in > > > decimal degrees. +proj=eqc is a projected coordinate system and the > > > coordinates are meters. The location (-180,90) would be roughly > > > (-20000000,100000). > > > > > > Essentially eqc (ie. equidistant cylindrical or Plate Carree) is > just > > > a rescaling of EPSG:4326 from degrees to meters. > > > > > > > Ok I understand this. > > > > > I'm afraid I just don't get what you hope to accomplish with > +lat_ts=60. > > > Are you hoping to get one projected meter being one meter on the > ground > > > at 60N as opposed to it being one meter at the equator as is the > default? > > > I'm not aware of proj=eqc supporting any such option. > > > > Yes I am trying to change the projection such that it gets less > > distorted in areas near the north pole. I tried to set the mapfile > > like this: > > > > EXTENT 593674.73 6669772.29 594581.49 6670417.57 > > PROJECTION > > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 > > +datum=WGS84 +no_defs +units=m" > > END > > > > which seems to create an quite ok map. Much better than setting > > +lat_ts=0. Although I do not understand why Mapserver creates a map > > over a different area than what my original decimal degree areas > > indicates(I used proj to convert them)? > > > > By the way my original decimal degree coordinates are: > > 10.6661 59.9155 10.6824 59.9213 > > > > Perhaps what I am doing is just nonsense... > > > > Espen > > > From yassefa at DMSOLUTIONS.CA Fri Jan 18 08:34:17 2008 From: yassefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 18 Jan 2008 11:34:17 -0500 Subject: Trouble with OGC Workshop WFS Client Demo In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CEEDE@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <FRI.18.JAN.2008.113417.0500.YASSEFADMSOLUTIONS.CA> Kralidis,Tom [Burlington] wrote: > Hi, > > I'm getting the same error on my version. I seem to remember something > about a path issue with a newer version of OGR, but I could be wrong. > > Assefa: do you remember what the cause of this is? > I am not sure what the issue is and I need to dig more to see what is causing a problem of opening a OGR type file when the full path without the drive is given. Quick fix for this is to replace /ms4w/tmp/ms_tmp/ with 'c:/ms4w/tmp/ms_tmp/' (or your drive name where you installed ms4w) file to change for this problem is ms4w/apps/ms_ogc_workshop/client/wfs/demo_init.html : <input type="hidden" name="map_web" value="imagepath 'c:/ms4w/tmp/ms_tmp/' imageurl /ms_tmp/"> Best Regards > .Tom > > >> -----Original Message----- >> From: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Scott Wittenburg >> Sent: 17 January, 2008 2:59 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Trouble with >> OGC Workshop WFS Client Demo >> >> Hello All, >> >> I'm new to mapserver, and I'm having trouble getting one of >> the OGC Workshop demos to work. Hopefully I'll include >> enough support information here so that someone can help me >> figure what I'm doing wrong. >> If anything is missing, please ask and I'll provide any other >> necessary details. Thanks for taking the time to read this >> problem description. >> >> Ok, specifically, when I attempt to run the WFS client demo, >> I get an error in my browser window which looks like this: >> >> msDrawMap(): Image handling error. Failed to draw layer named >> 'envirodat'. msOGRFileOpen(): OGR error. Open failed for OGR >> connection >> `/ms4w/tmp/ms_tmp/e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml'. >> File not found or unsupported format. >> >> The url that generated this error was: >> >> http://localhost/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fms_o >> gc_workshop%2Fclient%2Fwfs%2Fdemo.map&layer=envirodat&layer=ri >> vers&layer=land_shallow_topo_2048&zoomsize=2&zoomdir=1&program >> =%2Fcgi-bin%2Fmapserv.exe&map_web=imagepath+%2Fms4w%2Ftmp%2Fms >> _tmp%2F+imageurl+%2Fms_tmp%2F >> >> When I look in the directory "C:\ms4w\tmp\ms_tmp\", I see the >> file in question and I've looked at it. It appears to be >> valid GML, though the cygwin "ls -lt" >> command shows the file permissions as >> "-rwxrwx---". Is this a problem (not world readable)? >> The "C:\ms4w\tmp\ms_tmp\" directory permissions are even more >> restrictive: "drwx------". I've tried opening up all the >> permissions on all these files and directories, but it didn't >> seem to help. >> >> Here are some system configuration details: >> >> I'm running Windows XP, SP2. I installed MS4W version 2.2.6 >> and the OGC Workshop version 1.0.8 into the recommended >> location, "C:\" (root directory is "C:\ms4w\"). Everything >> seemed to work fine, and several of the workshop demos worked >> fine, but when I clicked on the WFS-Client demo link and then >> clicked the "Initialize" button, I got the error message shown above. >> >> I noticed a message in the archives that looked very similar >> to this error, but the problem was actually an extra path >> separator char getting put into the tmp file path. Other >> than that, I haven't really seen this problem addressed >> anywhere, so most people obviously aren't seeing it. One >> thing I found that people have said could be a problem is the >> version of OGR/GDAL used by mapserver. I've used the >> "C:\ms4w\tools\gdal-ogr\ogrinfo.exe >> program to look at the tmp gml file in question: >> >> C:\ms4w\tools\gdal-ogr>ogrinfo.exe >> C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml >> >> Had to open data source read-only. >> INFO: Open of >> 'C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml' >> using driver 'GML' successfull. >> 1: envirodat >> >> So that seems fine, doesn't it? The MS4W 2.2.6 documentation >> says it includes "GDAL/OGR 1.4.2 and Utilities", so that >> seems fine too. >> >> Here's the mapfile of the demo that caused the >> problem: >> >> # >> # $Id: demo.map,v 1.2 2006/08/08 19:02:46 tkralidi Exp $ # # >> Start of map file # >> >> MAP >> >> # all temp files get prefixed with this string NAME ms_ogc_workshop >> >> # always returns a map >> STATUS ON >> >> # image format options >> OUTPUTFORMAT >> NAME png >> DRIVER "GD/PNG" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >> END >> >> # width / height of map image >> SIZE 500 300 >> >> # projection of the INTERFACE that this mapfile supports PROJECTION >> "init=epsg:4326" >> END >> >> # minx miny maxx maxy >> EXTENT -180 -90 180 90 # World >> >> # units of map/app >> UNITS DD >> >> # def pointers for symbols >> >> SYMBOLSET "../../etc/symbols/symbols.sym" >> FONTSET "../../etc/fonts/fonts.txt" >> >> # >> # Start of web interface definition >> # >> WEB >> >> TEMPLATE "../../templates/demo.html" >> HEADER "../../templates/query_header.html" >> FOOTER "../../templates/query_footer.html" >> >> # this is set in the form which initializes the page, but >> can be set here if you want >> IMAGEPATH "/ms4w/tmp/ms_tmp/" >> >> # this is set in the form which initializes the page, but >> can be set here if you want >> IMAGEURL "/ms_tmp/" >> END >> >> # >> # Start of reference map >> # >> REFERENCE >> # which image is the base image for refmaps >> # a area of interest box will be drawn on top of it >> IMAGE ../../graphics/refmap_world_4326.gif >> >> # extents of ref image (minx miny maxx maxy) >> EXTENT -180 -90 180 90 >> >> # width / height of image >> SIZE 150 75 >> >> # always generated >> STATUS ON >> >> COLOR -1 -1 -1 >> >> # color of outline >> OUTLINECOLOR 255 0 0 >> END >> >> # >> # Start of legend >> # >> LEGEND >> KEYSIZE 18 12 >> LABEL >> TYPE BITMAP >> SIZE MEDIUM >> COLOR 0 0 89 >> END >> TEMPLATE "../../templates/legend.html" >> STATUS ON >> END >> >> # >> # Start of scalebar >> # >> SCALEBAR >> IMAGECOLOR 255 0 0 >> LABEL >> COLOR 0 0 0 >> SIZE tiny >> END >> STYLE 1 >> SIZE 80 2 >> COLOR 0 0 0 >> UNITS KILOMETERS >> INTERVALS 1 >> TRANSPARENT TRUE >> STATUS TRUE >> END >> >> # start of querymap object >> QUERYMAP >> SIZE 200 200 >> STATUS ON >> STYLE HILITE >> COLOR 255 0 0 >> END >> >> # start of layer definitions >> >> LAYER >> # name of layer >> NAME land_shallow_topo_2048 >> GROUP "RASTER" >> >> # projection: if the data is NOT in the same projection as >> the global >> # mapfile, you must explicitly give the native projection >> code of the data >> # some common projections: >> # lat/long: epsg:4326 >> # NRCan LCC: epsg:42304 >> PROJECTION >> "init=epsg:4326" >> END >> >> # what type of data is this? >> TYPE RASTER >> >> # always returned with interface >> STATUS ON >> >> # actual data pointer >> DATA ../../data/land_shallow_topo_2048.tif >> >> DUMP TRUE >> >> HEADER "../../templates/land_shallow_topo_2048_query_header.html" >> TEMPLATE "../../templates/land_shallow_topo_2048_query_body.html" >> >> TOLERANCE 5 >> >> END >> >> LAYER >> # name of layer >> NAME rivers >> GROUP "VECTOR" >> >> # projection: if the data is NOT in the same projection as >> the global >> # mapfile, you must explicitly give the native projection >> code of the data >> # some common projections: >> # lat/long: epsg:4326 >> # NRCan LCC: epsg:42304 >> PROJECTION >> "init=epsg:4326" >> END >> >> # what type of data is this? >> TYPE LINE >> >> # always returned with interface >> STATUS ON >> >> # actual data pointer >> DATA ../../data/rivers >> >> # data is queryable >> DUMP TRUE >> >> # query templates for HTML-based queries >> HEADER ../../templates/rivers_query_header.html >> TEMPLATE ../../templates/rivers_query_body.html >> >> TOLERANCE 5 >> >> # how will this data look? >> CLASS >> NAME "Rivers" >> COLOR 0 0 255 >> END >> END >> >> LAYER >> NAME envirodat >> GROUP "VECTOR" >> TYPE POINT >> STATUS ON >> # this is a remote OGC:WFS >> CONNECTIONTYPE WFS >> >> # the server URL prefix >> # MapServer will add the OGC:WMS specific >> # keyword value pairs accordingly >> #CONNECTION >> "http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1. >> 0.0&request=GetFeature" >> CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" >> >> PROJECTION >> "init=epsg:4326" >> END >> >> # base info MapServer needs to know to generate the >> # OGC:WFS GetFeature request >> METADATA >> >> # MapServer default sends POST >> # force to GET >> >> "wfs_request_method" "GET" >> >> # how long (in seconds) should MapServer use >> # in issuing and receiving the data? >> "wfs_connectiontimeout" "60" >> >> # which version of the OGC:WFS should MapServer communicate with >> "wfs_version" "1.0.0" >> >> # service type for connection >> # this info is a bit redundant >> "wfs_service" "WFS" >> >> # what is the feature type you are querying >> "wfs_typename" "envirodat" >> >> # what is the spatial extent? >> "wfs_latlonboundingbox" "-64.6622 46.7594 -52.6808 55.2333" >> # >> END >> # >> # MapServer will then use this information to generate a >> string like: >> # >> http://map.ns.ec.gc.ca/envdat/map.aspx?version=<wfs_version>&s > ervice=<wfs_service>&request=GetFeature&typename=<wfs_typename> >> # >> # missing required keyword value pairs get generated according >> # to the application using this mapfile, i.e.: >> # &bbox, &filter, etc. >> >> CLASS >> NAME "Water Quality Monitoring Stations" >> COLOR 255 255 0 >> END >> END >> END >> > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ed at TOPOZONE.COM Fri Jan 18 08:34:59 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 18 Jan 2008 11:34:59 -0500 Subject: Plate Carre with latitude shift In-Reply-To: A<a4cd3760801180817k10b5bba6y5b7bca058ca24b4@mail.gmail.com> Message-ID: <FRI.18.JAN.2008.113459.0500.EDTOPOZONE.COM> Espen - I don't quite understand what you mean when you say "proj cannot transform my coordinates". Could you explain exactly what it is you're trying to do, and what you think PROJ is or is not doing? Please keep in mind that you have moved from a geographic coordinate system to a projected coordinate system, and that that is a material and substantial change. It's not simply a matter of "shifting the latitude" but of actually projecting your data to an equirectangular projection with 60N as the latitude of true scale. PROJ can certainly also transform coordinates in that projection back to a geographic coordinate system, but that's a separate task. You're asking MapServer to create a projected output map, and that output map's coordinate system will, of necessity, be the projected coordinate system. If you also need to display coordinates in a different coordinate system (such as latitude/longitude) then that is an additional task that you will need to do separate from the projection of your map image. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen Sent: Friday, January 18, 2008 11:17 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift Hi! Sorry for not answering this for a day or so. First of all thanks to Ed and Frank for helping me out on this one! What you explain is what I figured happened. But I still do not quite understand why proj cannot transform my coordinates to the new system with the latitude shifted. I have read one similar e-mail on this list from 2005(although I cannot find it now) which asked the same question. Espen On 17/01/2008, Ed McNierney <ed at topozone.com> wrote: > Espen - > > Yes, that should be what you expect. If you change the latitude of true > scale, then you're changing the relationship between the size of a > degree of longitude at a given latitude. Normally the line of 60 > degrees North latitude is "stretched" horizontally to be larger than it > should be. It is displayed so that it appears that one degree of > longitude (at that latitude) is the same size as one degree of longitude > at the Equator (instead of being only half as long). That makes it > appear to be the same size as a degree of latitude and therefore you can > easily interpolate coordinates because they are the same size. > > When you change the latitude of true scale to 60 degrees North, you are > making every degree of longitude equal 0.5 degrees of latitude, and you > can no longer treat them as simple X/Y coordinates to read latitude and > longitude. You need to keep in mind that you are really using a > different projection, so your coordinate system is going to be > different. > > - Ed > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Espen Isaksen > Sent: Wednesday, January 16, 2008 5:41 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Plate Carre with latitude shift > > To further discuss this topic. I created a map of Europe in a regular > EPSG:32662(proj=eqc) and one map of Europe with a latitude shift to 60 > degrees north: > > Map of Europe in 32662: > http://bildr.no/view/143324 > > Map of Europe with latitude shift: > http://bildr.no/view/143325 > > The latter is close to what I want. However, if I move my zoom in to > some part of the nordic countries, the decimal degree coordinates will > no longer correspond with my coordinates in my 32662 projection with > the latitude shift. Why is this? > > Espen > > > On 16/01/2008, Espen Isaksen <espen.isaksen at gmail.com> wrote: > > > EPSG:4326 is a geographic coordinate system, and the coordinates > are in > > > decimal degrees. +proj=eqc is a projected coordinate system and the > > > coordinates are meters. The location (-180,90) would be roughly > > > (-20000000,100000). > > > > > > Essentially eqc (ie. equidistant cylindrical or Plate Carree) is > just > > > a rescaling of EPSG:4326 from degrees to meters. > > > > > > > Ok I understand this. > > > > > I'm afraid I just don't get what you hope to accomplish with > +lat_ts=60. > > > Are you hoping to get one projected meter being one meter on the > ground > > > at 60N as opposed to it being one meter at the equator as is the > default? > > > I'm not aware of proj=eqc supporting any such option. > > > > Yes I am trying to change the projection such that it gets less > > distorted in areas near the north pole. I tried to set the mapfile > > like this: > > > > EXTENT 593674.73 6669772.29 594581.49 6670417.57 > > PROJECTION > > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 > > +datum=WGS84 +no_defs +units=m" > > END > > > > which seems to create an quite ok map. Much better than setting > > +lat_ts=0. Although I do not understand why Mapserver creates a map > > over a different area than what my original decimal degree areas > > indicates(I used proj to convert them)? > > > > By the way my original decimal degree coordinates are: > > 10.6661 59.9155 10.6824 59.9213 > > > > Perhaps what I am doing is just nonsense... > > > > Espen > > > From thomas.bonfort at GMAIL.COM Fri Jan 18 08:39:07 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Fri, 18 Jan 2008 17:39:07 +0100 Subject: mapserver error In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C57@usd-am-xch-01.am.trimblecorp.net> Message-ID: <FRI.18.JAN.2008.173907.0100.THOMAS.BONFORTGMAIL.COM> coming back again at my angle follow question... the layers you request, ie main and/or basemap are layer groups right, not just single layers. can you make sure that angle follow is disabled for *all* layers in the corresponding group. just checking 'cause there was a recently fixed problem here that could have multiple effects when using follow labels and non ascii characters tb On Jan 18, 2008 4:21 PM, Lee Keel <lee_keel at trimble.com> wrote: > Thanks Ed. I will do that. Was just trying not to cross post and hoping that there were enough of the OL guys on this list. But I will fwd on to OL list. > > ________________________________ > > From: UMN MapServer Users List on behalf of Ed McNierney > Sent: Fri 1/18/2008 8:58 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > Lee - > > While you might get info here, you should also post this to the > OpenLayers list to get info on "what's different in OL". > > - Ed > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel > Sent: Friday, January 18, 2008 9:43 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > Hello all. > > I have a new twist to my problem that I believe rules > mapserver->postgres out. I added a layer last night that are the labels > for the roads and I am getting both problems with this layer now as > well. However, these labels are coming from TIGER shape files instead > of postgres. > > Here is something else I have monkeyed with. If I use > http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba > semap+basemap_anno) then all of my layers seem to be working at any zoom > level. But if I go to my openlayers application, they don't always > work. If you get a layer not working in the OL app and check the URL, > it doesn't seem to be incorrect. So what is the difference between OL > requesting from mapserver based on a bbox and the HTML below requesting > an image from mapserver? > > Sorry for my newby questions and 1,000s of emails, but just trying to > narrow this down. > > Thanks, > LK > > > Map File Settings for WEB: > > WEB > TEMPLATE 'gas.html' > IMAGEPATH "d:/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > LOG "gas.log" > METADATA > wms_title "WMS" > wms_onlineresource > "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map > <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> &" > "wms_srs" "EPSG:2238" > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" > end > END > > Gas.HTML File that is being used: > <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> > "> > <head> > <meta name="generator" content="HTML Tidy for Windows (vers 1st June > 2004), see www.w3.org <http://www.w3.org <http://www.w3.org/> > " /> > > <title>MapServer Workshop (panamacity)</title> > <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" > /> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > <h3></h3> > <!-- START OF MAPSERVER FORM --> > <form name="mapserv" method="get" > action="http://webserver/cgi-bin/mapserv.exe > <http://webserver/cgi-bin/mapserv.exe> " id="mapserv"> > <!-- HIDDEN MAPSERVER CGI VARIABLES --> > <input type="hidden" name="map" value="[map]" /> > <input type="hidden" name="imgext" value="[mapext]" /> > <input type="hidden" name="imgxy" value="199.5 149.5" /> > > <table> > <tr> > <td> > <!-- SPECIFY MAP MODE --> > <div align="center">Map Mode: > <select name="mode"> > <option value="browse">Browse</option> > <option value="map">Map</option> > </select> > Layers: <input type="TEXT" name="layers" value="[layers]" /> > </div> > </td> > <td> > <!-- FORM SUBMIT BUTTON --> > <div align="center"> > <input type="submit" name="submit" value="Refresh" /> > </div> > </td> > <td> > <!-- ZOOM/PAN CONTROLS --> > <div align="center">Map Control: > <select name="zoom"> > <option value="4" [zoom_4_select]>Zoom In 4x</option> > <option value="3" [zoom_3_select]>Zoom In 3x</option> > <option value="2" [zoom_2_select]>Zoom In 2x</option> > <option value="1" [zoom_1_select]>Recenter</option> > <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> > <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> > <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> > </select> > </div> > </td> > <td rowspan="2" valign="top"> > <!-- <p>Reference:<br /> > <img name="ref" src="[ref]" id="ref" /> > </p> --> > <p>Legend:<br /> > <img name="legend" src="[legend]" id="legend" /> > </p> > </td> > </tr> > <tr> > <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> > <td colspan="3" align="center" valign="top"> > <input type="image" name="img" src="[img]" width="800" > height="600" border="0" /> > <table border="0" width="600" align="center"> > <!-- DISPLAY THE SCALE BAR --> > <tr> > <td align="right"><!-- <img src="[scalebar]" /> --></td> > </tr> > </table> > </td> > </tr> > </table> > > <input name="mapxy" type="text" value="[mapx] [mapy]" /> > </form> > > <p>Map scale 1:[scale]</p> > <p>Pixel size [cellsize]</p> > <p>Extents [minx], [miny], [maxx], [maxy]</p> > <p>Map size (screen) [mapsize]</p> > <p>Map width [mapwidth]</p> > <p>Map height [mapheight]</p> > <p>Map [map]</p> > <p>Layers [layers]</p> > </body> > </html> > <plaintext> > From jmckenna at DMSOLUTIONS.CA Fri Jan 18 08:52:43 2008 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 18 Jan 2008 11:52:43 -0500 Subject: Join SHP to DBF In-Reply-To: <f70e8e780801180804v283665alfeda3c327ccac300@mail.gmail.com> Message-ID: <FRI.18.JAN.2008.115243.0500.JMCKENNADMSOLUTIONS.CA> How are you accessing this join (what does your template file contain)? Gregorio Mu?oz wrote: > I need join SHP to DBF. > > I tried this: > > JOIN > NAME "test" > TABLE "../data/link.dbf" > FROM "IDEN" > TO "IDEN" > TYPE ONE-TO-ONE > END > > but it doesn't work. > > I read the following link: > http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-1-join-from-shp-file-to-dbf-file > <http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-1-join-from-shp-file-to-dbf-file> > > Does anyone know why it does not work? > > > Fields in SHP: IDEN, NAME, NUMBER > Fields in DBF: IDEN, PROP, COST > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From Jukka.Rahkonen at MMMTIKE.FI Fri Jan 18 09:00:54 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 18 Jan 2008 19:00:54 +0200 Subject: Cascading external WMS using basic authentication over https Message-ID: <FRI.18.JAN.2008.190054.0200.JUKKA.RAHKONENMMMTIKE.FI> Hi, Is it possible to make MapServer to cascade another WMS service that must be accessed through https and that wants to get username/password for authentication? How? Regards, -Jukka Rahkonen- From wwittenburg at COMCAST.NET Fri Jan 18 09:02:24 2008 From: wwittenburg at COMCAST.NET (Scott Wittenburg) Date: Fri, 18 Jan 2008 17:02:24 +0000 Subject: Trouble with OGC Workshop WFS Client Demo Message-ID: <FRI.18.JAN.2008.170224.0000.> This work-around did the trick! And wow, thank you Tom and Assefa for such a quick response. Cheers, Scott -------------- Original message ---------------------- From: Yewondwossen Assefa <yassefa at DMSOLUTIONS.CA> > Kralidis,Tom [Burlington] wrote: > > Hi, > > > > I'm getting the same error on my version. I seem to remember something > > about a path issue with a newer version of OGR, but I could be wrong. > > > > Assefa: do you remember what the cause of this is? > > > I am not sure what the issue is and I need to dig more to see what is > causing a problem of opening a OGR type file when the full path without > the drive is given. > Quick fix for this is to replace /ms4w/tmp/ms_tmp/ with > 'c:/ms4w/tmp/ms_tmp/' (or your drive name where you installed ms4w) > > file to change for this problem is > ms4w/apps/ms_ogc_workshop/client/wfs/demo_init.html : > > <input type="hidden" name="map_web" value="imagepath > 'c:/ms4w/tmp/ms_tmp/' imageurl /ms_tmp/"> > > Best Regards > > > .Tom > > > > > >> -----Original Message----- > >> From: UMN MapServer Users List > >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Scott Wittenburg > >> Sent: 17 January, 2008 2:59 PM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] Trouble with > >> OGC Workshop WFS Client Demo > >> > >> Hello All, > >> > >> I'm new to mapserver, and I'm having trouble getting one of > >> the OGC Workshop demos to work. Hopefully I'll include > >> enough support information here so that someone can help me > >> figure what I'm doing wrong. > >> If anything is missing, please ask and I'll provide any other > >> necessary details. Thanks for taking the time to read this > >> problem description. > >> > >> Ok, specifically, when I attempt to run the WFS client demo, > >> I get an error in my browser window which looks like this: > >> > >> msDrawMap(): Image handling error. Failed to draw layer named > >> 'envirodat'. msOGRFileOpen(): OGR error. Open failed for OGR > >> connection > >> `/ms4w/tmp/ms_tmp/e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml'. > >> File not found or unsupported format. > >> > >> The url that generated this error was: > >> > >> http://localhost/cgi-bin/mapserv.exe?map=%2Fms4w%2Fapps%2Fms_o > >> gc_workshop%2Fclient%2Fwfs%2Fdemo.map&layer=envirodat&layer=ri > >> vers&layer=land_shallow_topo_2048&zoomsize=2&zoomdir=1&program > >> =%2Fcgi-bin%2Fmapserv.exe&map_web=imagepath+%2Fms4w%2Ftmp%2Fms > >> _tmp%2F+imageurl+%2Fms_tmp%2F > >> > >> When I look in the directory "C:\ms4w\tmp\ms_tmp\", I see the > >> file in question and I've looked at it. It appears to be > >> valid GML, though the cygwin "ls -lt" > >> command shows the file permissions as > >> "-rwxrwx---". Is this a problem (not world readable)? > >> The "C:\ms4w\tmp\ms_tmp\" directory permissions are even more > >> restrictive: "drwx------". I've tried opening up all the > >> permissions on all these files and directories, but it didn't > >> seem to help. > >> > >> Here are some system configuration details: > >> > >> I'm running Windows XP, SP2. I installed MS4W version 2.2.6 > >> and the OGC Workshop version 1.0.8 into the recommended > >> location, "C:\" (root directory is "C:\ms4w\"). Everything > >> seemed to work fine, and several of the workshop demos worked > >> fine, but when I clicked on the WFS-Client demo link and then > >> clicked the "Initialize" button, I got the error message shown above. > >> > >> I noticed a message in the archives that looked very similar > >> to this error, but the problem was actually an extra path > >> separator char getting put into the tmp file path. Other > >> than that, I haven't really seen this problem addressed > >> anywhere, so most people obviously aren't seeing it. One > >> thing I found that people have said could be a problem is the > >> version of OGR/GDAL used by mapserver. I've used the > >> "C:\ms4w\tools\gdal-ogr\ogrinfo.exe > >> program to look at the tmp gml file in question: > >> > >> C:\ms4w\tools\gdal-ogr>ogrinfo.exe > >> C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml > >> > >> Had to open data source read-only. > >> INFO: Open of > >> 'C:\ms4w\tmp\ms_tmp\e80d38d9bdf59eada6d84cd0b21eb99e.tmp.gml' > >> using driver 'GML' successfull. > >> 1: envirodat > >> > >> So that seems fine, doesn't it? The MS4W 2.2.6 documentation > >> says it includes "GDAL/OGR 1.4.2 and Utilities", so that > >> seems fine too. > >> > >> Here's the mapfile of the demo that caused the > >> problem: > >> > >> # > >> # $Id: demo.map,v 1.2 2006/08/08 19:02:46 tkralidi Exp $ # # > >> Start of map file # > >> > >> MAP > >> > >> # all temp files get prefixed with this string NAME ms_ogc_workshop > >> > >> # always returns a map > >> STATUS ON > >> > >> # image format options > >> OUTPUTFORMAT > >> NAME png > >> DRIVER "GD/PNG" > >> MIMETYPE "image/png" > >> IMAGEMODE RGB > >> EXTENSION "png" > >> END > >> > >> # width / height of map image > >> SIZE 500 300 > >> > >> # projection of the INTERFACE that this mapfile supports PROJECTION > >> "init=epsg:4326" > >> END > >> > >> # minx miny maxx maxy > >> EXTENT -180 -90 180 90 # World > >> > >> # units of map/app > >> UNITS DD > >> > >> # def pointers for symbols > >> > >> SYMBOLSET "../../etc/symbols/symbols.sym" > >> FONTSET "../../etc/fonts/fonts.txt" > >> > >> # > >> # Start of web interface definition > >> # > >> WEB > >> > >> TEMPLATE "../../templates/demo.html" > >> HEADER "../../templates/query_header.html" > >> FOOTER "../../templates/query_footer.html" > >> > >> # this is set in the form which initializes the page, but > >> can be set here if you want > >> IMAGEPATH "/ms4w/tmp/ms_tmp/" > >> > >> # this is set in the form which initializes the page, but > >> can be set here if you want > >> IMAGEURL "/ms_tmp/" > >> END > >> > >> # > >> # Start of reference map > >> # > >> REFERENCE > >> # which image is the base image for refmaps > >> # a area of interest box will be drawn on top of it > >> IMAGE ../../graphics/refmap_world_4326.gif > >> > >> # extents of ref image (minx miny maxx maxy) > >> EXTENT -180 -90 180 90 > >> > >> # width / height of image > >> SIZE 150 75 > >> > >> # always generated > >> STATUS ON > >> > >> COLOR -1 -1 -1 > >> > >> # color of outline > >> OUTLINECOLOR 255 0 0 > >> END > >> > >> # > >> # Start of legend > >> # > >> LEGEND > >> KEYSIZE 18 12 > >> LABEL > >> TYPE BITMAP > >> SIZE MEDIUM > >> COLOR 0 0 89 > >> END > >> TEMPLATE "../../templates/legend.html" > >> STATUS ON > >> END > >> > >> # > >> # Start of scalebar > >> # > >> SCALEBAR > >> IMAGECOLOR 255 0 0 > >> LABEL > >> COLOR 0 0 0 > >> SIZE tiny > >> END > >> STYLE 1 > >> SIZE 80 2 > >> COLOR 0 0 0 > >> UNITS KILOMETERS > >> INTERVALS 1 > >> TRANSPARENT TRUE > >> STATUS TRUE > >> END > >> > >> # start of querymap object > >> QUERYMAP > >> SIZE 200 200 > >> STATUS ON > >> STYLE HILITE > >> COLOR 255 0 0 > >> END > >> > >> # start of layer definitions > >> > >> LAYER > >> # name of layer > >> NAME land_shallow_topo_2048 > >> GROUP "RASTER" > >> > >> # projection: if the data is NOT in the same projection as > >> the global > >> # mapfile, you must explicitly give the native projection > >> code of the data > >> # some common projections: > >> # lat/long: epsg:4326 > >> # NRCan LCC: epsg:42304 > >> PROJECTION > >> "init=epsg:4326" > >> END > >> > >> # what type of data is this? > >> TYPE RASTER > >> > >> # always returned with interface > >> STATUS ON > >> > >> # actual data pointer > >> DATA ../../data/land_shallow_topo_2048.tif > >> > >> DUMP TRUE > >> > >> HEADER "../../templates/land_shallow_topo_2048_query_header.html" > >> TEMPLATE "../../templates/land_shallow_topo_2048_query_body.html" > >> > >> TOLERANCE 5 > >> > >> END > >> > >> LAYER > >> # name of layer > >> NAME rivers > >> GROUP "VECTOR" > >> > >> # projection: if the data is NOT in the same projection as > >> the global > >> # mapfile, you must explicitly give the native projection > >> code of the data > >> # some common projections: > >> # lat/long: epsg:4326 > >> # NRCan LCC: epsg:42304 > >> PROJECTION > >> "init=epsg:4326" > >> END > >> > >> # what type of data is this? > >> TYPE LINE > >> > >> # always returned with interface > >> STATUS ON > >> > >> # actual data pointer > >> DATA ../../data/rivers > >> > >> # data is queryable > >> DUMP TRUE > >> > >> # query templates for HTML-based queries > >> HEADER ../../templates/rivers_query_header.html > >> TEMPLATE ../../templates/rivers_query_body.html > >> > >> TOLERANCE 5 > >> > >> # how will this data look? > >> CLASS > >> NAME "Rivers" > >> COLOR 0 0 255 > >> END > >> END > >> > >> LAYER > >> NAME envirodat > >> GROUP "VECTOR" > >> TYPE POINT > >> STATUS ON > >> # this is a remote OGC:WFS > >> CONNECTIONTYPE WFS > >> > >> # the server URL prefix > >> # MapServer will add the OGC:WMS specific > >> # keyword value pairs accordingly > >> #CONNECTION > >> "http://map.ns.ec.gc.ca/envdat/map.aspx?service=WFS&version=1. > >> 0.0&request=GetFeature" > >> CONNECTION "http://map.ns.ec.gc.ca/envdat/map.aspx?" > >> > >> PROJECTION > >> "init=epsg:4326" > >> END > >> > >> # base info MapServer needs to know to generate the > >> # OGC:WFS GetFeature request > >> METADATA > >> > >> # MapServer default sends POST > >> # force to GET > >> > >> "wfs_request_method" "GET" > >> > >> # how long (in seconds) should MapServer use > >> # in issuing and receiving the data? > >> "wfs_connectiontimeout" "60" > >> > >> # which version of the OGC:WFS should MapServer communicate with > >> "wfs_version" "1.0.0" > >> > >> # service type for connection > >> # this info is a bit redundant > >> "wfs_service" "WFS" > >> > >> # what is the feature type you are querying > >> "wfs_typename" "envirodat" > >> > >> # what is the spatial extent? > >> "wfs_latlonboundingbox" "-64.6622 46.7594 -52.6808 55.2333" > >> # > >> END > >> # > >> # MapServer will then use this information to generate a > >> string like: > >> # > >> http://map.ns.ec.gc.ca/envdat/map.aspx?version=<wfs_version>&s > > ervice=<wfs_service>&request=GetFeature&typename=<wfs_typename> > >> # > >> # missing required keyword value pairs get generated according > >> # to the application using this mapfile, i.e.: > >> # &bbox, &filter, etc. > >> > >> CLASS > >> NAME "Water Quality Monitoring Stations" > >> COLOR 255 255 0 > >> END > >> END > >> END > >> > > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- From Tom.Kralidis at EC.GC.CA Fri Jan 18 09:22:38 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 18 Jan 2008 12:22:38 -0500 Subject: Cascading external WMS using basic authentication over https In-Reply-To: A<CC197224AC75CE4DB23F739B16891B86E33C53@tikka.haapa.mmm.fi> Message-ID: <FRI.18.JAN.2008.122238.0500.TOM.KRALIDISEC.GC.CA> > Is it possible to make MapServer to cascade another WMS > service that must be accessed through https and that wants to > get username/password for authentication? How? > One idea is to pass along the authentication in the form of http://user:pass at example.org/cgi-bin/wms..., but that may not be the most secure approach. ..Tom From rodrigo.andrade at DIGITRO.COM.BR Fri Jan 18 09:35:38 2008 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Fri, 18 Jan 2008 15:35:38 -0200 Subject: Segfaults with Mapserver 5.0.0 In-Reply-To: <75b4b93e0801180636o21fabdb4h10664bface58606a@mail.gmail.com> Message-ID: <FRI.18.JAN.2008.153538.0200.RODRIGO.ANDRADEDIGITRO.COM.BR> Sure I can. In fact, got some results at hand. Attached is a "tail-ed" output from the last 150 lines of the log when it crashed, for comparison values. You get to see for the first page or so it processing the data during a zoom in, then you see a bit of java debug native to the application on the last few lines and when a zoom out occurs all goes down. What I've found interesting in that last line just before the app going tits up is the awfully high offset value. I don't have a clue what that value stands for, but it seems out of place comparing with the others. That layer in question is one being indexed by a tileindex, and it was split from a larger shapefile using OpenJump. Also may be worth noting that I was having problems to get it to crash with the patch. I was suspecting of a race condition being slowed down by the extra work it had writing the ouput to file, so I asked a colleague to log on and give it at go simultaneously, and that did it. It went down in 30 secs with us both just grinding the zoom button (not before spewing 220 megs of logs :) I hope it helps. Log attached. Thanks a lot, Rodrigo ps: re-sending with a smaller chunk of the log file. Previous one returned because the file was too big. Oops ;) Umberto Nicoletti wrote: > Rodrigo, could you apply the attached patch and the post the last > output of the application before the segfault? > Please note that it will log an awful LOT of stuff! > > Regards, > Umberto > > On Jan 18, 2008 2:07 PM, Rodrigo Del C. Andrade > <rodrigo.andrade at digitro.com.br> wrote: > >> Good morning all. >> >> I am running tests on Mapserver 5 to test its viability on our >> production enviroment and I have run into some problems I am having >> trouble to figure out. >> >> A little background, may be irrelevant, but could be useful, idk: >> - We have a stand alone java server application (doing the map work >> with Java Mapscript) which talks via RMI with the client part of the >> app, which is running on Tomcat. We've done it this way because past >> crashes on mapserver used to bring Tomcat down with it >> - This mapscript binary was compiled with all the latest stable >> versions of GDAL, GEOS, Proj, AGG, LibPNG, GD and Freetype. >> - We are outputting the final map images with AGG. >> - The source data lives in Shape files. All of them have indexes, >> and I broke large areas into smaller chunks and tile indexed them with >> tile4ms. >> >> Now, this one is the first of the the 2 different segfaults I am >> experiencing with 5.0, but decided to focus on this one first because it >> seems to happen more frequently. Whenever I am zooming in or out in the >> map, this bugger seems to happen at random. I was'nt able to pin point a >> pattern for it to happen, looks like just using it long enough will do it. >> >> # >> # An unexpected error has been detected by HotSpot Virtual Machine: >> # >> # SIGSEGV (0xb) at pc=0x00734600, pid=30922, tid=1812704176 >> # >> # Java VM: Java HotSpot(TM) Server VM (1.5.0_07-b03 mixed mode) >> # Problematic frame: >> # C [libc.so.6+0x69600] strncpy+0x30 >> # >> >> I am not any C buff by any means, but judging from a strncpy error, >> I assume something in the way strings are created/handled might have >> changed since 4.x (I haven't been following the list recently, forgive >> me if it's old news) >> Any ideas about what might be causing it? >> >> -- Full log is bellow the sig. >> >> Thanks! >> >> -- >> >> *Rodrigo Del C. Andrade* >> /Programador/ >> /SIC - SSE - Solu??es Seguran?a P?blica/ >> >> *D?GITRO TECNOLOGIA* >> *E-mail:* rodrigo.andrade at digitro.com.br >> <mailto:rodrigo.andrade at digitro.com.br> >> *Fone:* +55 48 3281-7314 / +55 48 3281-7000 >> *Fax:* +55 48 3281-7299 >> *Site:* www.digitro.com <http://www.digitro.com -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: gis-server-debug-end.log URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080118/0ed2b5fa/attachment.ksh> From lee_keel at TRIMBLE.COM Fri Jan 18 10:40:49 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Fri, 18 Jan 2008 13:40:49 -0500 Subject: mapserver error Message-ID: <FRI.18.JAN.2008.134049.0500.LEE_KEELTRIMBLE.COM> Thomas, The main layer is a single layer. It is not a group layer and I have removed all labels. The basemap is a group layer that is coming from tilecache as a base layer. The basemap layer works 100% of the time, its the main that is not working. So even though the basemap is working all the time, could that be causing the other layer to not work? Meanwhile, I will continue to follow all the layers from the groups and make sure they don't have the angle follow. Thanks, Lee ________________________________ From: thomas bonfort [mailto:thomas.bonfort at gmail.com] Sent: Fri 1/18/2008 10:39 AM To: Lee Keel Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] mapserver error coming back again at my angle follow question... the layers you request, ie main and/or basemap are layer groups right, not just single layers. can you make sure that angle follow is disabled for *all* layers in the corresponding group. just checking 'cause there was a recently fixed problem here that could have multiple effects when using follow labels and non ascii characters tb On Jan 18, 2008 4:21 PM, Lee Keel <lee_keel at trimble.com> wrote: > Thanks Ed. I will do that. Was just trying not to cross post and hoping that there were enough of the OL guys on this list. But I will fwd on to OL list. > > ________________________________ > > From: UMN MapServer Users List on behalf of Ed McNierney > Sent: Fri 1/18/2008 8:58 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > > > Lee - > > While you might get info here, you should also post this to the > OpenLayers list to get info on "what's different in OL". > > - Ed > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lee Keel > Sent: Friday, January 18, 2008 9:43 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] mapserver error > > Hello all. > > I have a new twist to my problem that I believe rules > mapserver->postgres out. I added a layer last night that are the labels > for the roads and I am getting both problems with this layer now as > well. However, these labels are coming from TIGER shape files instead > of postgres. > > Here is something else I have monkeyed with. If I use > http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map&layers=ba > semap+basemap_anno) then all of my layers seem to be working at any zoom > level. But if I go to my openlayers application, they don't always > work. If you get a layer not working in the OL app and check the URL, > it doesn't seem to be incorrect. So what is the difference between OL > requesting from mapserver based on a bbox and the HTML below requesting > an image from mapserver? > > Sorry for my newby questions and 1,000s of emails, but just trying to > narrow this down. > > Thanks, > LK > > > Map File Settings for WEB: > > WEB > TEMPLATE 'gas.html' > IMAGEPATH "d:/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > LOG "gas.log" > METADATA > wms_title "WMS" > wms_onlineresource > "http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map > <http://webserver/cgi-bin/mapserv.exe?map=/mapserver/pc/gas.map> &" > "wms_srs" "EPSG:2238" > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" > end > END > > Gas.HTML File that is being used: > <html xmlns="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> > "> > <head> > <meta name="generator" content="HTML Tidy for Windows (vers 1st June > 2004), see www.w3.org <http://www.w3.org <http://www.w3.org%20%3chttp//www.w3.org/> > > " /> > > <title>MapServer Workshop (panamacity)</title> > <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" > /> > </head> > <body bgcolor="#FFFFFF" text="#000000"> > <h3></h3> > <!-- START OF MAPSERVER FORM --> > <form name="mapserv" method="get" > action="http://webserver/cgi-bin/mapserv.exe > <http://webserver/cgi-bin/mapserv.exe> " id="mapserv"> > <!-- HIDDEN MAPSERVER CGI VARIABLES --> > <input type="hidden" name="map" value="[map]" /> > <input type="hidden" name="imgext" value="[mapext]" /> > <input type="hidden" name="imgxy" value="199.5 149.5" /> > > <table> > <tr> > <td> > <!-- SPECIFY MAP MODE --> > <div align="center">Map Mode: > <select name="mode"> > <option value="browse">Browse</option> > <option value="map">Map</option> > </select> > Layers: <input type="TEXT" name="layers" value="[layers]" /> > </div> > </td> > <td> > <!-- FORM SUBMIT BUTTON --> > <div align="center"> > <input type="submit" name="submit" value="Refresh" /> > </div> > </td> > <td> > <!-- ZOOM/PAN CONTROLS --> > <div align="center">Map Control: > <select name="zoom"> > <option value="4" [zoom_4_select]>Zoom In 4x</option> > <option value="3" [zoom_3_select]>Zoom In 3x</option> > <option value="2" [zoom_2_select]>Zoom In 2x</option> > <option value="1" [zoom_1_select]>Recenter</option> > <option value="-2" [zoom_-2_select]>Zoom Out 2x</option> > <option value="-3" [zoom_-3_select]>Zoom Out 3x</option> > <option value="-4" [zoom_-4_select]>Zoom Out 4x</option> > </select> > </div> > </td> > <td rowspan="2" valign="top"> > <!-- <p>Reference:<br /> > <img name="ref" src="[ref]" id="ref" /> > </p> --> > <p>Legend:<br /> > <img name="legend" src="[legend]" id="legend" /> > </p> > </td> > </tr> > <tr> > <!-- DISPLAY THE MAPSERVER-CREATED MAP IMAGE --> > <td colspan="3" align="center" valign="top"> > <input type="image" name="img" src="[img]" width="800" > height="600" border="0" /> > <table border="0" width="600" align="center"> > <!-- DISPLAY THE SCALE BAR --> > <tr> > <td align="right"><!-- <img src="[scalebar]" /> --></td> > </tr> > </table> > </td> > </tr> > </table> > > <input name="mapxy" type="text" value="[mapx] [mapy]" /> > </form> > > <p>Map scale 1:[scale]</p> > <p>Pixel size [cellsize]</p> > <p>Extents [minx], [miny], [maxx], [maxy]</p> > <p>Map size (screen) [mapsize]</p> > <p>Map width [mapwidth]</p> > <p>Map height [mapheight]</p> > <p>Map [map]</p> > <p>Layers [layers]</p> > </body> > </html> > <plaintext> > From Jukka.Rahkonen at MMMTIKE.FI Fri Jan 18 10:44:44 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Fri, 18 Jan 2008 20:44:44 +0200 Subject: Cascading external WMS using basic authentication over https Message-ID: <FRI.18.JAN.2008.204444.0200.JUKKA.RAHKONENMMMTIKE.FI> >> Is it possible to make MapServer to cascade another WMS >> service that must be accessed through https and that wants to >> get username/password for authentication? How? > >One idea is to pass along the authentication in the form of >http://user:pass at example.org/cgi-bin/wms..., but that may not be the >most secure approach. Well, our MapServer should be a client for the secured one and send usernames and passwords. And that must happen through https, the other end does not listen http. I was just thinking that it cannot be as easy as setting mapfile like CONNNECTIONTYPE WMS CONNECTION "https://user:pass at example.com/etc." I have found some previous postings telling that Mapserver is supporting https if curl supports it, but not any concrete examples about how to do it. -Jukka- From Tom.Kralidis at EC.GC.CA Fri Jan 18 10:59:58 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 18 Jan 2008 13:59:58 -0500 Subject: Cascading external WMS using basic authentication over https In-Reply-To: <CC197224AC75CE4DB23F739B16891B86E33C54@tikka.haapa.mmm.fi> Message-ID: <FRI.18.JAN.2008.135958.0500.TOM.KRALIDISEC.GC.CA> > >> Is it possible to make MapServer to cascade another WMS > service that > >> must be accessed through https and that wants to get > >> username/password for authentication? How? > > > > >One idea is to pass along the authentication in the form of > >http://user:pass at example.org/cgi-bin/wms..., but that may not be the > >most secure approach. > > Well, our MapServer should be a client for the secured one > and send usernames and passwords. And that must happen > through https, the other end does not listen http. I was just > thinking that it cannot be as easy as setting mapfile like > CONNNECTIONTYPE WMS CONNECTION "https://user:pass at example.com/etc." > > I have found some previous postings telling that Mapserver is > supporting https if curl supports it, but not any concrete > examples about how to do it. > I wonder if anyone has or can setup a demo WMS through https? ..Tom From warmerdam at POBOX.COM Fri Jan 18 11:05:16 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 18 Jan 2008 14:05:16 -0500 Subject: Cascading external WMS using basic authentication over https In-Reply-To: <CC197224AC75CE4DB23F739B16891B86E33C53@tikka.haapa.mmm.fi> Message-ID: <FRI.18.JAN.2008.140516.0500.WARMERDAMPOBOX.COM> Rahkonen Jukka wrote: > Hi, > > Is it possible to make MapServer to cascade another WMS service that must be > accessed through https and that wants to get username/password for > authentication? How? Jukka, I'm not sure what others ways are possible, but I found that to get MapServer able to talk to a password protected WMS (or perhaps WFS?) I had to hack the code to pass some extra options to curl. Ideally we would provide a mechanism to do this directly from the mapserver if there is no better way. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From julieknoll at GMAIL.COM Fri Jan 18 11:11:48 2008 From: julieknoll at GMAIL.COM (Julie) Date: Fri, 18 Jan 2008 13:11:48 -0600 Subject: encoding html Message-ID: <FRI.18.JAN.2008.131148.0600.JULIEKNOLLGMAIL.COM> Hi, I am using PHP mapscript and processTemplate() When one of the variable's contains html code it encodes the characters, how do I stop this? Julie From Steve.Lime at DNR.STATE.MN.US Fri Jan 18 15:49:51 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 18 Jan 2008 17:49:51 -0600 Subject: map_resolution in 5.0 does not work In-Reply-To: <47906F060200008F000139F3@co5.dnr.state.mn.us> Message-ID: <FRI.18.JAN.2008.174951.0600.STEVE.LIMEDNR.STATE.MN.US> This is a different problem. The variable is exposed. It's a problem in mapfile.c that needs fixing. I'll file a bug and target 5.0.1 which should be on track for early next week. Steve >>> On 1/18/2008 at 9:19 AM, in message <47906F060200008F000139F3 at co5.dnr.state.mn.us>, Steve Lime <Steve.Lime at DNR.STATE.MN.US> wrote: > It's possible it wasn't exposed. I'll check and fix in 5.0.1 and 5.2... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 >>>> Bart van den Eijnden <bartvde at GMAIL.COM> 01/18/08 9:11 AM >>> > Hi David, > > the GET calls works if I remove the parameter, so the MAP file works fine. > > If I change 25 in 50, I see 50 in Mapserver's error message, so I am 99,9% > sure it is causing this error. > > Resolution is a double, in my OGC map files I always use 90.71. > > Even in a normal mode=map, Mapserver complains about the parameter. > > Best regards, > Bart > > On Jan 18, 2008 4:02 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > >> Bart, >> >> Apologies. I didn't notice that it was you who had posted the question. >> Usually, if I see that you have pointed out an issue, I assume that it is a >> real bug right away! >> >> A couple of thoughts: >> >> Does the GET call work if you just remove 'map_resolution=25' from your >> URL? >> >> The error references a 'symbol definition error' near line 25, are you >> sure that there isn't a syntax error in the map file? >> >> the get_double() error sounds funny because the resolution value is >> supposed to be an int. >> >> Is this just a problem with the WMS request, can you get this resolution >> substitution call to work as a mode=map request? >> >> David. >> >> -----Original Message----- >> *From:* Bart van den Eijnden [mailto:bartvde at gmail.com] >> *Sent:* Friday, January 18, 2008 8:44 AM >> *To:* Fawcett, David >> *Cc:* MAPSERVER-USERS at lists.umn.edu >> *Subject:* Re: [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work >> >> Hi David, >> >> I did read it, but could not really find a clue in it for my problem. >> >> Are the . not typos? There are also _ examples still in there. >> >> Anyways, I tried map.resolution=25 to no avail. >> >> Best regards, >> Bart >> >> On Jan 18, 2008 2:59 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: >> >> > Have you looked at the 5.0 migration guide? > http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE > .TXT >> > >> > >> > If not, take a look at the section titled, 'URL configuration changes'. >> > I don't know for sure, but you might want to try something like >> > map.resolution=25 >> > >> > David. >> > >> > -----Original Message----- >> > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> > *On Behalf Of *Bart van den Eijnden >> > *Sent:* Friday, January 18, 2008 6:03 AM >> > *To:* MAPSERVER-USERS at LISTS.UMN.EDU >> > *Subject:* [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work >> > >> > Hi list, >> > >> > why does the following fail against Mapserver 5.0, it used to work in >> > previous version: >> > >> > map_resolution=25, for instance: >> > >> > > http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket/dtb? > map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYL > ES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH=1530&BBOX=%2D64210%2E004 > 4897549%2C273591%2E761008437%2C364210%2E004489755%2C626408%2E238991563&TRANSPA > RENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >> > >> > >> > Mapserver 5.0 returns: >> > >> > getDouble(): Symbol definition error. Parsing error near (25):(line 1) >> > >> > TIA. >> > >> > Best regards, >> > Bart >> > >> > >> > >> > >> > >> From walker at MFGIS.COM Fri Jan 18 17:54:54 2008 From: walker at MFGIS.COM (Steve Walker) Date: Fri, 18 Jan 2008 19:54:54 -0600 Subject: MINSCALE/MAXSCALE - confusion on my part - or is this a Ka-Map question? Message-ID: <FRI.18.JAN.2008.195454.0600.WALKERMFGIS.COM> Greetings, I am a moderately capable Mapserver user, so I hope to have a modest understanding of the basis of the following issue..... I have been working on fine-tuning a map's cartographic display under the Ka-Map environment which has a discrete set of available map scales. In this particular case, I have been working on the 1:50,000 scale, whose neighbors are the 1:25,000 and 1:100,000 scales. Since I'm fine-tuning my map for this scale, I wanted to set MINSCALE and MAXSCALE values such that a particular layer would display only at 1:50,000 - not at 1:25,000 nor at 1:100,000. Thinking I knew what I was doing, I set a MINSCALE value of 25010 and a MAXSCALE value of 50010. However, this particular layer kept displaying itself on the 1:100,000 scale map. After much head scratching and consternation on my part, I changed the MAXSCALE value from 50010 to 70000. The results were as expected. The layer did not draw at 1:100000. To repeat, the only change (to the best of my ??) in the mapfile was: from: MAXSCALE 50010 to : MAXSCALE 70000 in order to keep a layer from displaying at 1:100,000 Thank you for any insights. Of course I can pass along the mapfile and url's should anybody so desire. -steve From nelsong at MAIL.UTEXAS.EDU Sat Jan 19 07:08:47 2008 From: nelsong at MAIL.UTEXAS.EDU (Nelson Guda) Date: Sat, 19 Jan 2008 09:08:47 -0600 Subject: calculating bbox & coordinates for getfeatureinfo query with PHP In-Reply-To: <MAPSERVER-USERS%200801190001080750.D910@LISTS.UMN.EDU> Message-ID: <SAT.19.JAN.2008.090847.0600.NELSONGMAIL.UTEXAS.EDU> Calculating bbox & coordinates for getfeatureinfo query with PHP: Well, nobody replied to my question about this, but in the meantime I found some other resources and figured it out. I posted a short note about it on the google maps group here: http://groups.google.com/group/Google-Maps-API/browse_thread/thread/ 1da5ef9409649e4f/e6586f8fdf034e90#e6586f8fdf034e90 nelson From 2voodoo at GMX.DE Sat Jan 19 12:22:51 2008 From: 2voodoo at GMX.DE (Tom Kazimiers) Date: Sat, 19 Jan 2008 21:22:51 +0100 Subject: Can mapfiles be generated dynamically? Message-ID: <SAT.19.JAN.2008.212251.0100.2VOODOOGMX.DE> Hi, I am relatively new to mapserver and am currently playing around to find out what is possible and what is not. Currently I develop an application which should be run on a mobile device like a PDA. One aim is that there is something like a "MapServer-Layer" which gives the opportunity to 1. get information which shapefiles and rasterdata is available on the server 2. one should be able to choose one or more layers out of 1. which then should be displayed according to position, zoom level, etc. So in my opinion this implies that the mapfiles which hold information about what layers can be displayed, in which order and so on could be generated dynamically (which must also be possible if I want to change the order). Is there already a way in mapserver (or an application) to accomplish this? If not the way to got would possibly be writing an application which does the generation, right? Maybe I have misunderstood something, but mapfiles are not available for all the applications or the whole mapserver, but are available to the belongig application? Therefore it is unlikely to find something like this already in mapserver, but maybe in an available application. Thanks for your time, Tom From szekerest at GMAIL.COM Sat Jan 19 13:33:18 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Sat, 19 Jan 2008 22:33:18 +0100 Subject: Can mapfiles be generated dynamically? In-Reply-To: <47925C1A.8090008@gmx.de> Message-ID: <SAT.19.JAN.2008.223318.0100.SZEKERESTGMAIL.COM> 2008/1/19, Tom Kazimiers <2voodoo at gmx.de>: > Hi, > > I am relatively new to mapserver and am currently playing around to find > out what is possible and what is not. > Currently I develop an application which should be run on a mobile > device like a PDA. One aim is that there is something like a > "MapServer-Layer" which gives the opportunity to > 1. get information which shapefiles and rasterdata is available on the > server > 2. one should be able to choose one or more layers out of 1. which then > should be displayed according to position, zoom level, etc. > > So in my opinion this implies that the mapfiles which hold information > about what layers can be displayed, in which order and so on could be > generated dynamically (which must also be possible if I want to change > the order). Is there already a way in mapserver (or an application) to > accomplish this? > > If not the way to got would possibly be writing an application which > does the generation, right? You can easily set up a map object and save the state of this object as a mapfile using the mapscript API in various languages right now. However I don't think mapfile is the most appropriate format to exchange metadata between a server and the client application. Why don't you use something more conventional like utilizing the WMS GetCapabilities and GetMap services that mapserver can provide? > Maybe I have misunderstood something, but mapfiles are not available for > all the applications or the whole mapserver, but are available to the > belongig application? Therefore it is unlikely to find something like > this already in mapserver, but maybe in an available application. > Mapsever + mapscript fully support reading or writing mapfiles and provide API to do such things for various applications and platforms, but mobile devices and PDAs are not supported at the moment. Best regards, Tamas From 2voodoo at GMX.DE Sun Jan 20 03:58:25 2008 From: 2voodoo at GMX.DE (Tom Kazimiers) Date: Sun, 20 Jan 2008 12:58:25 +0100 Subject: Can mapfiles be generated dynamically? In-Reply-To: <f3b73b7d0801191333v7da56b4bj4c575b96f02ff09e@mail.gmail.com> Message-ID: <SUN.20.JAN.2008.125825.0100.2VOODOOGMX.DE> Tamas, thanks for your reply. Tamas Szekeres wrote: > 2008/1/19, Tom Kazimiers <2voodoo at gmx.de>: > >> Hi, >> >> I am relatively new to mapserver and am currently playing around to find >> out what is possible and what is not. >> Currently I develop an application which should be run on a mobile >> device like a PDA. One aim is that there is something like a >> "MapServer-Layer" which gives the opportunity to >> 1. get information which shapefiles and rasterdata is available on the >> server >> 2. one should be able to choose one or more layers out of 1. which then >> should be displayed according to position, zoom level, etc. >> >> So in my opinion this implies that the mapfiles which hold information >> about what layers can be displayed, in which order and so on could be >> generated dynamically (which must also be possible if I want to change >> the order). Is there already a way in mapserver (or an application) to >> accomplish this? >> >> If not the way to got would possibly be writing an application which >> does the generation, right? >> > > You can easily set up a map object and save the state of this object > as a mapfile using the mapscript API in various languages right now. > However I don't think mapfile is the most appropriate format to > exchange metadata between a server and the client application. Why > don't you use something more conventional like utilizing the WMS > GetCapabilities and GetMap services that mapserver can provide? > Ok, GetCapabilities and GetMap seem to be something like I was looking for. Still it would be nice if you could clarify something. Currently, as I understand, the steps I have to take are: 1. Set up a mapfile with all the shapefiles and rasterdata files I want to be offered to the client side (the PDA). For this I do not need to build a "MapServer Application, do I? 2. I have to query the MapServer with GetCapabilities for the offered layers. Is the path to the mapfile in the URL relative to the MapServer binary? 3. On the client side I have to choose which layers I want to be shown and prepare a request with GetMap 4. In return I get an image I can display Are those steps correct? What if I want to change the order of the layers? >> Maybe I have misunderstood something, but mapfiles are not available for >> all the applications or the whole mapserver, but are available to the >> belongig application? Therefore it is unlikely to find something like >> this already in mapserver, but maybe in an available application. >> >> > > Mapsever + mapscript fully support reading or writing mapfiles and > provide API to do such things for various applications and platforms, > but mobile devices and PDAs are not supported at the moment. > Good to know - but if I would take the way with the creation of mapfiles I think I should create a MapServer application to which I make a request from the PDA and which serves me the resulting image. Thanks in advance, Tom From Steve.Lime at DNR.STATE.MN.US Sun Jan 20 08:16:44 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 20 Jan 2008 10:16:44 -0600 Subject: map_resolution in 5.0 does not work Message-ID: <SUN.20.JAN.2008.101644.0600.STEVE.LIMEDNR.STATE.MN.US> This has been fixed in 5.0.1 and the main trunk. A missing call to the lexer that set tokenizing state was the culprit. Steve >>> Steve Lime <Steve.Lime at DNR.STATE.MN.US> 01/18/08 5:49 PM >>> This is a different problem. The variable is exposed. It's a problem in mapfile.c that needs fixing. I'll file a bug and target 5.0.1 which should be on track for early next week. Steve >>> On 1/18/2008 at 9:19 AM, in message <47906F060200008F000139F3 at co5.dnr.state.mn.us>, Steve Lime <Steve.Lime at DNR.STATE.MN.US> wrote: > It's possible it wasn't exposed. I'll check and fix in 5.0.1 and 5.2... > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-259-5473 >>>> Bart van den Eijnden <bartvde at GMAIL.COM> 01/18/08 9:11 AM >>> > Hi David, > > the GET calls works if I remove the parameter, so the MAP file works fine. > > If I change 25 in 50, I see 50 in Mapserver's error message, so I am 99,9% > sure it is causing this error. > > Resolution is a double, in my OGC map files I always use 90.71. > > Even in a normal mode=map, Mapserver complains about the parameter. > > Best regards, > Bart > > On Jan 18, 2008 4:02 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > >> Bart, >> >> Apologies. I didn't notice that it was you who had posted the question. >> Usually, if I see that you have pointed out an issue, I assume that it is a >> real bug right away! >> >> A couple of thoughts: >> >> Does the GET call work if you just remove 'map_resolution=25' from your >> URL? >> >> The error references a 'symbol definition error' near line 25, are you >> sure that there isn't a syntax error in the map file? >> >> the get_double() error sounds funny because the resolution value is >> supposed to be an int. >> >> Is this just a problem with the WMS request, can you get this resolution >> substitution call to work as a mode=map request? >> >> David. >> >> -----Original Message----- >> *From:* Bart van den Eijnden [mailto:bartvde at gmail.com] >> *Sent:* Friday, January 18, 2008 8:44 AM >> *To:* Fawcett, David >> *Cc:* MAPSERVER-USERS at lists.umn.edu >> *Subject:* Re: [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work >> >> Hi David, >> >> I did read it, but could not really find a clue in it for my problem. >> >> Are the . not typos? There are also _ examples still in there. >> >> Anyways, I tried map.resolution=25 to no avail. >> >> Best regards, >> Bart >> >> On Jan 18, 2008 2:59 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: >> >> > Have you looked at the 5.0 migration guide? > http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE > .TXT >> > >> > >> > If not, take a look at the section titled, 'URL configuration changes'. >> > I don't know for sure, but you might want to try something like >> > map.resolution=25 >> > >> > David. >> > >> > -----Original Message----- >> > *From:* UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> > *On Behalf Of *Bart van den Eijnden >> > *Sent:* Friday, January 18, 2008 6:03 AM >> > *To:* MAPSERVER-USERS at LISTS.UMN.EDU >> > *Subject:* [UMN_MAPSERVER-USERS] map_resolution in 5.0 does not work >> > >> > Hi list, >> > >> > why does the following fail against Mapserver 5.0, it used to work in >> > previous version: >> > >> > map_resolution=25, for instance: >> > >> > > http://test.intranet.rijkswaterstaat.nl/services/geoservices/basispakket/dtb? > map_resolution=25&LAYERS=AAA161&REQUEST=GetMap&SERVICE=WMS&FORMAT=image%2Fpng&STYL > ES=default&HEIGHT=1260&VERSION=1.1.1&SRS=EPSG:28992&WIDTH=1530&BBOX=%2D64210%2E004 > 4897549%2C273591%2E761008437%2C364210%2E004489755%2C626408%2E238991563&TRANSPA > RENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage >> > >> > >> > Mapserver 5.0 returns: >> > >> > getDouble(): Symbol definition error. Parsing error near (25):(line 1) >> > >> > TIA. >> > >> > Best regards, >> > Bart >> > >> > >> > >> > >> > >> From Steve.Lime at DNR.STATE.MN.US Sun Jan 20 08:20:41 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Sun, 20 Jan 2008 10:20:41 -0600 Subject: encoding html Message-ID: <SUN.20.JAN.2008.102041.0600.STEVE.LIMEDNR.STATE.MN.US> You need to do append _raw to the template substitution and no escaping will happen. E.g. [itemname_raw] Steve >>> Julie <julieknoll at GMAIL.COM> 01/18/08 1:11 PM >>> Hi, I am using PHP mapscript and processTemplate() When one of the variable's contains html code it encodes the characters, how do I stop this? Julie From bradley_mclain at DEBORTOLIWINES.COM Sun Jan 20 19:54:02 2008 From: bradley_mclain at DEBORTOLIWINES.COM (Bradley McLain) Date: Mon, 21 Jan 2008 14:54:02 +1100 Subject: Installing Mapserver on Fedora 8 Message-ID: <MON.21.JAN.2008.145402.1100.BRADLEY_MCLAINDEBORTOLIWINES.COM> Just a simple question here it seems that I can install most of the things required by mapserver through yum, is it also possible to install mapserver through yum or must it be compiled from source? Installed Packages httpd httpd-devel byacc flex php php-devel postgresql postgresql-contrib postgresql-server postgresql-devel python python-devel gcc-c++ curl curl-devel gd gd-devel php-gd php-dbase mysql mtsql-server phpmyadmin mapserver php-mapserver I have done a "yum install mapserver" but I don't know where to go from here. Where are the config files located and how do I set things up? Pretty much what steps are required after yum is used to download the packages, and if necessary what other packages are required? Cheers Brad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080121/bb27a187/attachment.htm> From yatendra.jaiswal at GMAIL.COM Sun Jan 20 22:46:46 2008 From: yatendra.jaiswal at GMAIL.COM (yatendra) Date: Sun, 20 Jan 2008 22:46:46 -0800 Subject: Please help me SDE C# asp.net and mapserver connection problem.... In-Reply-To: <f3b73b7d0801180230s13570672gf2c4df701386e055@mail.gmail.com> Message-ID: <SUN.20.JAN.2008.224646.0800.YATENDRA.JAISWALGMAIL.COM> Dear Tamas, Thanks for reply. I am trying as you suggested, but the problem is the same. I am still getting same error. Does any one have built mapserver sde and asp.net application successfully? Thanks Regards Tamas Szekeres wrote: > > 2008/1/18, yatendra <yatendra.jaiswal at gmail.com>: >> Here is my mapfile layer.... >> LAYER >> ........ >> CONNECTION "host=GEN387 port:5151 user=****** password=****** >> dbname=****" >> CONNECTIONTYPE SDE >> CONNECTIONTYPE PLUGIN >> PLUGIN >> "C:\ms4w\Apache\specialplugins\msplugin_sde_92.dll" >> >> DATA "sde.SDE.TILE,SHAPE,sde.DEFAULT" >> STATUS on >> TYPE line >> ......... >> END >> > > Your application is possibly running under the context of the ASPNET > user that may have limited security rights to access files outside of > the application directory. > You might want to copy this dll into you appdir as > On Windows 2003: %SYSTEMROOT%\System32\inetsrv > On WIndows XP: %SYTEMROOT%\Microsoft.NET\Framework\[framework version] > whatever. > And change your plugin definition as > PLUGIN "msplugin_sde_92.dll" > >> If its because of asp.net version (64 bit), then what can be the >> solution??? >> please let me know.. > > This might be an issue only if your application is running on 64bit > windows. > In this case you should force to use the 32 bit version of the .NET > framework and recompile mapscript by adding /platform:x86 to the csc > command line in the /csharp/makefile.vc. > This is because you cannot compile msplugin_sde_92.dll as an x64 image > right now. > > Best regards, > > Tamas > > -- View this message in context: http://www.nabble.com/Please-help-me-SDE-C--asp.net-and-mapserver-connection-problem....-tp14749790p14992030.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at MMMTIKE.FI Sun Jan 20 23:53:16 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 21 Jan 2008 09:53:16 +0200 Subject: Cascading external WMS using basic authentication over https In-Reply-To: A<4790F86C.7060700@pobox.com> Message-ID: <MON.21.JAN.2008.095316.0200.JUKKA.RAHKONENMMMTIKE.FI> > Frank Warmerdam wrote > Rahkonen Jukka wrote: > > Hi, > > > > Is it possible to make MapServer to cascade another WMS > service that > > must be accessed through https and that wants to get > username/password > > for authentication? How? > > Jukka, > > I'm not sure what others ways are possible, but I found that > to get MapServer able to talk to a password protected WMS (or > perhaps WFS?) I had to hack the code to pass some extra > options to curl. Ideally we would provide a mechanism to do > this directly from the mapserver if there is no better way. Direct way from mapserver would be very convenient for us. Should I make make a feature request and hope for the best or what? -Jukka- From gregoavila at GMAIL.COM Mon Jan 21 00:21:32 2008 From: gregoavila at GMAIL.COM (=?ISO-8859-1?Q?Gregorio_Mu=F1oz?=) Date: Mon, 21 Jan 2008 09:21:32 +0100 Subject: Join SHP to DBF In-Reply-To: <f70e8e780801210017q39e1cae7l933108dfade81053@mail.gmail.com> Message-ID: <MON.21.JAN.2008.092132.0100.GREGOAVILAGMAIL.COM> This is my template: <tr bgcolor="#EFEFEF"> <td align="left">[IDEN]</td> <td align="left">[PROP]</td> </tr> Any idea? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080121/a20230eb/attachment.htm> From espen.isaksen at GMAIL.COM Mon Jan 21 01:45:13 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Mon, 21 Jan 2008 10:45:13 +0100 Subject: Plate Carre with latitude shift In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019887FB@ptolemy.topozone.com> Message-ID: <MON.21.JAN.2008.104513.0100.ESPEN.ISAKSENGMAIL.COM> Hi again! This is what I try to do. I understand that I am now using a projected coordinate system with 60N as my latitude of true scale. First I create a mapfile using EPSG:4326 and output a map of a smaller area from this mapfile. Then I take the same extent as as I use in my geographic mapfile and put those coordinates in a textfile. Then I use the following command to transform these coordinates to my new projected coordinate system: proj +proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 + ellips=WGS84 +datum=WGS84 +no_defs +units=m < test.txt I get my new coordinates as my output. I then create a mapfile, now using the projected coordinate system instead of EPSG:4326 and using my new coordinates for my extent. Creating an output map for this mapfile creates a map from a very different area than my former mapfile using 4326. Doing the same, just converting to UTM32 instead creates a map of the same area as 4326 does. This leads me to believe that I am doing the right thing with my mapfile. Espen On 18/01/2008, Ed McNierney <ed at topozone.com> wrote: > Espen - > > I don't quite understand what you mean when you say "proj cannot transform my coordinates". Could you explain exactly what it is you're trying to do, and what you think PROJ is or is not doing? > > Please keep in mind that you have moved from a geographic coordinate system to a projected coordinate system, and that that is a material and substantial change. It's not simply a matter of "shifting the latitude" but of actually projecting your data to an equirectangular projection with 60N as the latitude of true scale. PROJ can certainly also transform coordinates in that projection back to a geographic coordinate system, but that's a separate task. You're asking MapServer to create a projected output map, and that output map's coordinate system will, of necessity, be the projected coordinate system. > > If you also need to display coordinates in a different coordinate system (such as latitude/longitude) then that is an additional task that you will need to do separate from the projection of your map image. > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > From cheung.jackey at GMAIL.COM Mon Jan 21 02:09:31 2008 From: cheung.jackey at GMAIL.COM (Jackey Cheung) Date: Mon, 21 Jan 2008 18:09:31 +0800 Subject: text alignment in label? Message-ID: <MON.21.JAN.2008.180931.0800.CHEUNG.JACKEYGMAIL.COM> Hi all, I'm just wondering is it possible to use text alignment in labels. Say, currently, if I wrap labels on comma, when rendering "this, is a test", it appears like this: this is a test But I want it rendered as: this is a test Is this possible? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080121/d8dd69af/attachment.htm> From gregoavila at GMAIL.COM Mon Jan 21 03:17:33 2008 From: gregoavila at GMAIL.COM (Gregorio Mu=?WINDOWS-1252?Q?=C3=B1oz?=) Date: Mon, 21 Jan 2008 05:17:33 -0600 Subject: Join SHP to DBF Message-ID: <MON.21.JAN.2008.051733.0600.GREGOAVILAGMAIL.COM> I need OGC:GML response. Are templates necessary? From beyhan at DEPREM.GOV.TR Mon Jan 21 07:18:10 2008 From: beyhan at DEPREM.GOV.TR (Murat Beyhan) Date: Mon, 21 Jan 2008 17:18:10 +0200 Subject: is it possible to draw grd file using Mapserver In-Reply-To: <LISTSERV%200801210517334802.E536@LISTS.UMN.EDU> Message-ID: <MON.21.JAN.2008.171810.0200.BEYHANDEPREM.GOV.TR> Dear Friend, Is it possible to draw grd file using mapserver. Actually, I have point data (stored in mysql database), and I desire to obtain grd file of point data first by using Mapserver. If it's not possible to obtain grd file by using Mapserver, no problem. I have an another tool to obtain grd file from point data. Then I would like to draw grd file and point data of the villages. The grd file has been plotted diveded into several zones on the map. Then I would like to match zones and point of villages. Which villages placed in which zones. I use mysql too, to keep data. Are there any way to do what I'm intending to do... Regards... Murat -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From garbageboxe at GMAIL.COM Mon Jan 21 07:16:21 2008 From: garbageboxe at GMAIL.COM (Jacques Tati) Date: Mon, 21 Jan 2008 09:16:21 -0600 Subject: PHP Mapscript runtime error after compiling Message-ID: <MON.21.JAN.2008.091621.0600.GARBAGEBOXEGMAIL.COM> Hi, I've successfuly built mapserver 4.10.3 from Howard Buttler's buildkit number 101807 using Visual C++ 8 under XP pro. The only change i made is setting the maximum number of layers in map.h to a higher value (too bad there is no config file for such variables). I'm a total C++ newbie so it took me pretty much time. I tried to update my ms4w installation with the new mapserv.exe and maplib.exe (simply replacing them in ms4w cgi-bin folder - ms4w version was 4.10.0). Now I get the following errors when i call my php script: First, an error dialog box: "Runtime error! Program ...\php.exe - R6034 An application has made an attempt to load the C runtime library incorrectly. Please contact..." Then, an error from PHP4: "<b>Warning</b>: dl() [<a href='function.dl'>function.dl</a>]: Unable to load dynamic library 'C:\\ms4w\Apache\php\extensions\php_mapscript_4.10.0.dll' - A dynamic link library (DLL) initialization routine failed." Is it that I incorrectly "installed" the new version? Must I also manage to compile php_mapscript :( ? I've got no clue of that error cause. If someone could give me some light, It would be *greatly* appreciated. Thanks, jaq From warmerdam at POBOX.COM Mon Jan 21 08:22:41 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 21 Jan 2008 11:22:41 -0500 Subject: Cascading external WMS using basic authentication over https In-Reply-To: <CC197224AC75CE4DB23F739B16891B866E75C8@tikka.haapa.mmm.fi> Message-ID: <MON.21.JAN.2008.112241.0500.WARMERDAMPOBOX.COM> Rahkonen Jukka wrote: >> Frank Warmerdam wrote >> Rahkonen Jukka wrote: >>> Hi, >>> >>> Is it possible to make MapServer to cascade another WMS >> service that >>> must be accessed through https and that wants to get >> username/password >>> for authentication? How? >> Jukka, >> >> I'm not sure what others ways are possible, but I found that >> to get MapServer able to talk to a password protected WMS (or >> perhaps WFS?) I had to hack the code to pass some extra >> options to curl. Ideally we would provide a mechanism to do >> this directly from the mapserver if there is no better way. > > Direct way from mapserver would be very convenient for us. Should I > make make a feature request and hope for the best or what? Jukka, I would be willing to implement this if you are willing to help with some research, RFC writing and testing. In particular we need to isolate what extra curl options such as, but possibly not limited to, userid and password we should be able to pass through. Then we can write up an RFC based on doing this through layer metadata. Then - once approved - I can implement and you could test. As I think back, I realize the other time I did something like this it was actually using a digital certificate rather than simple userid/password protection. Ideally we would address both cases. If this effort level exceeds the amount of effort you want to invest, then filing an enhancement ticket at least summarizing some of these ideas would be a good start. PS. If implemented we would presumably do it in a way that applied to WFS and WMS client layers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From paul_pag00 at HOTMAIL.COM Mon Jan 21 08:45:57 2008 From: paul_pag00 at HOTMAIL.COM (Paul Alarcon) Date: Mon, 21 Jan 2008 16:45:57 +0000 Subject: featureitemquery help Message-ID: <MON.21.JAN.2008.164557.0000.PAUL_PAG00HOTMAIL.COM> Hello I am new here and i am having some problems with this kind of query , when, I`m using html for the page and postgis to create the layers but when i made the query a lot of map display each time and dont show me the information please could you help me, Here is the html and the map files HTML <html> <head> <title>Busqueda por CANTON</title> <body> <form name="consulta" method=GET action="/cgi-bin/mapserv"> <input name="program" value="/cgi-bin/mapserv" type="hidden"> <input name="map" value="/home/test/testexpression.map" type="hidden"> <!-- parametros pasados en hidden --> <input name="mode" value="itemfeaturequery" type="hidden"> <input name="slayer" value="cantones" type="hidden"> <input name="qitem" value="non_canton" type="hidden"> <input type="hidden" name="mapshape" value=""> <input type="hidden" name="imgshape" value=""> <input type="hidden" name="imgbox" value=""> <input type="hidden" name="shapeindex" value=""> <!-- parametros de busqueda --> Seleccione un Cant&oacute;n: <br> <select name="qstring" > <option value="non_canton like 'LAGO AGRIO'">LAGO AGRIO</option> <option value="non_canton like 'SUCUMBIOS'">SUCUMBIOS</option> <option value="non_canton like 'GONZALO PIZARRO'">GONZALO PIZARRO</option> <option value="non_canton like 'CASCALES'">CASCALES</option> <option value="non_canton like 'SHUSHUFINDI'">SHUSHUFINDI</option> <option value="non_canton like 'CUYABENO'">CUYABENO</option> <option value="non_canton like 'PUTUMAYO'">PUTUMAYO</option></select> <p> <input value="BUSCAR" type="submit"> </form> </body> </html> MAP FILE MAP NAME test #MapFile testing possible bug on itemquery STATUS ON SIZE 800 600 EXTENT 836705.704288 9999113.003817 1143436.012879 10051849.051893 STATUS ON #SHAPEPATH "/home/mapdata/Pichincha/pruebas/POLITICO 2002/" IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "/srv/www/htdocs/ka-map/fontset.txt" ################################################# WEB IMAGEPATH "/srv/www/htdocs/temp/" IMAGEURL "/temp/" TEMPLATE "querytemplate.html" END # End of Web Interface ################################################# # Symbol para lineas gruesas SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol para puntos # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### #Symbol cuadrado base SYMBOL NAME "Cuadro" TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 0 0 END FILLED TRUE END ######################################## #SYMBOL circulo SYMBOL NAME "punkt" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END ########################################### querymap status ON SIZE 400 300 style SELECTED END ############################################# LAYER NAME cantones STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from cantones" LABELCACHE on TOLERANCE 0 METADATA qstring_validation_pattern '.' END LABELITEM "non_canton" TEMPLATE "querytemplate.html" CLASS NAME "None" OUTLINECOLOR 0 0 0 COLOR 187 212 201 END END #end layer ############################################################3 LAYER NAME parroquias STATUS DEFAULT TYPE line CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from parroquias" STATUS default #METADATA # qstring_validation_pattern '.' #END LABELITEM "parroquia" #DATA 'parroquial' CLASS NAME "None" #OUTLINECOLOR 100 0 0 COLOR 0 5 5 END END #end layer ################# LAYER NAME PROVINCIAS STATUS DEFAULT TYPE line #METADATA # qstring_validation_pattern '.' #END #LABELITEM "PARROQUIA" #DATA 'provincial' CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from provincial" CLASS NAME "None" #OUTLINECOLOR 100 0 0 COLOR 0 0 5 STYLE SYMBOL "BigLine" SIZE 4 #COLOR 50 212 51 OUTLINECOLOR 12 0 0 END END END #end layer ##################################### LAYER NAME "Escuelas" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from sucumbios" STATUS default TYPE point LABELITEM "plantel" LABELCACHE on HEADER "/srv/www/htdocs/head_plan.html" FOOTER "/srv/www/htdocs/foot_plan.html" CLASSITEM "nivel" METADATA qstring_validation_pattern '.' "queryable" "true" "searchfield" "canton" # "fields" "canton:CANTON,parroqui_1:PARROQUIA,nombre_esc:NOMBRE" END GROUP "PLANTELES" CLASS NAME "PREPRIMARIO" TEMPLATE "querytemplate.html" EXPRESSION "Preprimario" STYLE SYMBOL "cuadro" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "punkt" SIZE 8 COLOR 204 204 255 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END #label END #clase CLASS NAME "PRIMARIO" TEMPLATE "querytemplate.html" EXPRESSION "Primario" STYLE SYMBOL "cuadro" SIZE 10 COLOR 0 255 0 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "punkt" SIZE 8 COLOR 204 204 255 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END #label END # Clase CLASS NAME "MEDIO" TEMPLATE "querytemplate.html" EXPRESSION /^Medio/ STYLE SYMBOL "cuadro" SIZE 10 COLOR 0 0 255 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "punkt" SIZE 8 COLOR 204 204 255 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END END CLASS NAME "S/Dato" TEMPLATE "querytemplate.html" EXPRESSION " " STYLE SYMBOL "Circle" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 50 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END END END #LAYER ########################################################################### END #end mapfile _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ From rosario.carbone at IPL.COM Mon Jan 21 08:52:27 2008 From: rosario.carbone at IPL.COM (The Bun) Date: Mon, 21 Jan 2008 08:52:27 -0800 Subject: TYPE truetype Message-ID: <MON.21.JAN.2008.085227.0800.ROSARIO.CARBONEIPL.COM> Hi list, I am having problems with the labels: Text with the following configuration is showed correctly but not orientated with streets and buildings, it is all orizzontal. As far as I know the only type you can define an angle (orientation) should be the TRUETYPE, well if I uncomment the line with TYPE truetype then my map is not displayed at all, the weird thing is I cannot find any message in the error log of Apache, surely I am missing something. Here you are the LAYER portion: LAYER NAME cartotext TYPE POINT STATUS DEFAULT LABELCACHE ON LABELITEM "textstring" DEBUG ON CONNECTIONTYPE OGR CONNECTION "MySQL:test,user=root,host=localhost,password=password,port=3306" DATA "mm_cartographictext_topo" CLASS STYLE # It is actually the point COLOR 255 0 0 ANTIALIAS TRUE END LABEL # Is the text ANGLE AUTO COLOR 0 153 0 #TYPE truetype FONT "arial-bold" POSITION AUTO BUFFER 4 ANTIALIAS TRUE PARTIALS FALSE END # end of label END END I hope someone can help I have tried at least 50 different configuration and noone works. Regards Rosario -- View this message in context: http://www.nabble.com/TYPE-truetype-tp15001513p15001513.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tim.Nolte at IPCSWIRELESSINC.COM Mon Jan 21 09:07:54 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 21 Jan 2008 12:07:54 -0500 Subject: TYPE truetype In-Reply-To: A<15001513.post@talk.nabble.com> Message-ID: <MON.21.JAN.2008.120754.0500.TIM.NOLTEIPCSWIRELESSINC.COM> This is an example of what I am using and it work: LABEL FONT "sans" TYPE TRUETYPE POSITION CC OFFSET 0 0 ANGLE FOLLOW SIZE 6 BUFFER 3 MINDISTANCE 300 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 242 236 230 #ANTIALIAS TRUE PARTIALS FALSE END ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of The Bun Sent: Monday, January 21, 2008 11:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TYPE truetype Hi list, I am having problems with the labels: Text with the following configuration is showed correctly but not orientated with streets and buildings, it is all orizzontal. As far as I know the only type you can define an angle (orientation) should be the TRUETYPE, well if I uncomment the line with TYPE truetype then my map is not displayed at all, the weird thing is I cannot find any message in the error log of Apache, surely I am missing something. Here you are the LAYER portion: LAYER NAME cartotext TYPE POINT STATUS DEFAULT LABELCACHE ON LABELITEM "textstring" DEBUG ON CONNECTIONTYPE OGR CONNECTION "MySQL:test,user=root,host=localhost,password=password,port=3306" DATA "mm_cartographictext_topo" CLASS STYLE # It is actually the point COLOR 255 0 0 ANTIALIAS TRUE END LABEL # Is the text ANGLE AUTO COLOR 0 153 0 #TYPE truetype FONT "arial-bold" POSITION AUTO BUFFER 4 ANTIALIAS TRUE PARTIALS FALSE END # end of label END END I hope someone can help I have tried at least 50 different configuration and noone works. Regards Rosario -- View this message in context: http://www.nabble.com/TYPE-truetype-tp15001513p15001513.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tim.Nolte at IPCSWIRELESSINC.COM Mon Jan 21 09:09:38 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 21 Jan 2008 12:09:38 -0500 Subject: TYPE truetype In-Reply-To: A<15001513.post@talk.nabble.com> Message-ID: <MON.21.JAN.2008.120938.0500.TIM.NOLTEIPCSWIRELESSINC.COM> OK, I just reread your post and noticed that you are talking about a POINT here and not a line. My code is for a line, sorry. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of The Bun Sent: Monday, January 21, 2008 11:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] TYPE truetype Hi list, I am having problems with the labels: Text with the following configuration is showed correctly but not orientated with streets and buildings, it is all orizzontal. As far as I know the only type you can define an angle (orientation) should be the TRUETYPE, well if I uncomment the line with TYPE truetype then my map is not displayed at all, the weird thing is I cannot find any message in the error log of Apache, surely I am missing something. Here you are the LAYER portion: LAYER NAME cartotext TYPE POINT STATUS DEFAULT LABELCACHE ON LABELITEM "textstring" DEBUG ON CONNECTIONTYPE OGR CONNECTION "MySQL:test,user=root,host=localhost,password=password,port=3306" DATA "mm_cartographictext_topo" CLASS STYLE # It is actually the point COLOR 255 0 0 ANTIALIAS TRUE END LABEL # Is the text ANGLE AUTO COLOR 0 153 0 #TYPE truetype FONT "arial-bold" POSITION AUTO BUFFER 4 ANTIALIAS TRUE PARTIALS FALSE END # end of label END END I hope someone can help I have tried at least 50 different configuration and noone works. Regards Rosario -- View this message in context: http://www.nabble.com/TYPE-truetype-tp15001513p15001513.html Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at DMSOLUTIONS.CA Mon Jan 21 09:31:59 2008 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 21 Jan 2008 12:31:59 -0500 Subject: Join SHP to DBF In-Reply-To: <f70e8e780801210021x7f78b2d3ha766ab511ed45cc3@mail.gmail.com> Message-ID: <MON.21.JAN.2008.123159.0500.JMCKENNADMSOLUTIONS.CA> Your template should refer to the join as [joinname_columnname], as described in http://mapserver.gis.umn.edu/docs/reference/mapfile/join -jeff Gregorio Mu?oz wrote: > This is my template: > > <tr bgcolor="#EFEFEF"> > <td align="left">[IDEN]</td> > <td align="left">[PROP]</td> > </tr> > > > Any idea? > From nospam420 at YAHOO.COM Mon Jan 21 10:29:45 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 21 Jan 2008 10:29:45 -0800 Subject: text alignment in label? In-Reply-To: <bfb704a40801210209m6835c1e7o82597fd3f20ffc1d@mail.gmail.com> Message-ID: <MON.21.JAN.2008.102945.0800.NOSPAM420YAHOO.COM> Jackey Cheung wrote: > > I'm just wondering is it possible to use text alignment in labels. > It appears to be under consideration for mapserver 5.2: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-40/ https://trac.osgeo.org/mapserver/ticket/2383 For now, the only method supported is wrapping with LABEL.WRAP: http://mapserver.gis.umn.edu/docs/reference/mapfile/label I've considered faking things by preprocessing the data and inserting newlines and spaces appropriately in desired labels to emulate crude center justification. - Rich -- View this message in context: http://www.nabble.com/text-alignment-in-label--tp14994412p15003353.html Sent from the Mapserver - User mailing list archive at Nabble.com. From tian.jay at GMAIL.COM Mon Jan 21 10:44:08 2008 From: tian.jay at GMAIL.COM (Jie Tian) Date: Mon, 21 Jan 2008 13:44:08 -0500 Subject: Please sign me out. Message-ID: <MON.21.JAN.2008.134408.0500.TIAN.JAYGMAIL.COM> Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080121/b852db1e/attachment.htm> From fpgutierrez6 at HOTMAIL.COM Mon Jan 21 10:50:08 2008 From: fpgutierrez6 at HOTMAIL.COM (Florencia Gutierrez) Date: Mon, 21 Jan 2008 18:50:08 +0000 Subject: Please Sign me out Message-ID: <MON.21.JAN.2008.185008.0000.FPGUTIERREZ6HOTMAIL.COM> Please remove me from the list-serve. Thanks, Florencia Gutierrez _________________________________________________________________ Connect and share in new ways with Windows Live. http://www.windowslive.com/share.html?ocid=TXT_TAGHM_Wave2_sharelife_012008 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080121/83239f47/attachment.htm> From nospam420 at YAHOO.COM Mon Jan 21 13:22:05 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Mon, 21 Jan 2008 13:22:05 -0800 Subject: one way roads, drawing spaced arrows Message-ID: <MON.21.JAN.2008.132205.0800.NOSPAM420YAHOO.COM> I'm trying to mark the direction of travel of one way roads. My preference is to use a LABEL and a LAYER of TYPE ANNOTATION (since then the spacing will take into account the rest of the labels), but after a bit of experimentation I've given up on this (although if anyone has any thoughts about this, feel free to respond). I've managed to get this working somewhat in two different ways with a LAYER of TYPE LINE. In the first case, I defined a pair of vector SYMBOLs: SYMBOL NAME 'backArrow' TYPE vector POINTS 0 1 1 0 -99 -99 0 1 1 2 -99 -99 0 1 4 1 END END SYMBOL NAME 'fwdArrow' TYPE vector POINTS 4 1 3 0 -99 -99 4 1 3 2 -99 -99 4 1 0 1 END END and in the second case, I defined a pair of truetype SYMBOLs: SYMBOL NAME "fwdArrowFont" TYPE truetype FONT verdana CHARACTER ">" END SYMBOL NAME "backArrowFont" TYPE truetype FONT verdana CHARACTER "<" END (I'd eventually use a font with a real arrow marker, but this is sufficient for testing.) The problem in both cases is that there are too many arrows, there is no spacing between them. For the vector case, I tried putting the following within the SYMBOL: PATTERN 1 1 END or even this (I'm not sure if the numbers refer to repeats of the symbol, or pixels): PATTERN 5 5 END but neither had any effect. Is SYMBOL.PATTERN not supported with TYPE vector? It works as expected for me with TYPE simple. For the truetype case, I tried the following within the SYMBOL: GAP 5 While this does indeed introduce some spacing, a side effect is that the symbols are no longer properly rotated along the orientation of the line. They are now just always written horizontally. This seems to be the case for any GAP value other than 0 (or no GAP value, as 0 is the default). Any ideas what I'm doing wrong, or other approaches to take? I found a few related questions on the mailing list (one of these is where I decided to try the truetype solution), but nothing that I've been able to use to get this to fully work: http://www.nabble.com/Arrow-for-a-line-to3560206.html#a3560206 http://www.nabble.com/draw-a-line-with-arrows-indicating-direction-of-tavel...-to4800664.html#a4801215 http://www.nabble.com/symbol-point-with-vector-to3049629.html#a3049629 http://www.nabble.com/One-way-roads-to6507366.html#a6507366 Thanks in advance for any help anyone might have. This is with a locally compiled version of mapserver 5.0.0, using locally compiled versions of gd 2.0.35 and agg 2.5, with everything else from Debian packages on debian 3.1 (sarge), configured as such: MapServer version 5.0.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=THREADS INPUT=POSTGIS INPUT=SHAPEFILE - Rich -- View this message in context: http://www.nabble.com/one-way-roads%2C-drawing-spaced-arrows-tp15006747p15006747.html Sent from the Mapserver - User mailing list archive at Nabble.com. From lpzhao at NETZERO.NET Mon Jan 21 14:38:41 2008 From: lpzhao at NETZERO.NET (lpzhao@netzero.net) Date: Mon, 21 Jan 2008 22:38:41 GMT Subject: Please sign me out Message-ID: <MON.21.JAN.2008.223841.GMT.LPZHAONETZERO.NET> Thanks! _____________________________________________________________ Click here to obtain free information on accredited degrees. http://thirdpartyoffers.netzero.net/TGL2211/fc/Ioyw6ijlTK5dfYX7V3acKkNK8cu93NINXr9TASUAtjT44uV9blsYIc/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080121/7a6cc960/attachment.htm> From fx.gamoy at GEOMATIKA.FR Mon Jan 21 15:10:36 2008 From: fx.gamoy at GEOMATIKA.FR (FX GAMOY) Date: Tue, 22 Jan 2008 00:10:36 +0100 Subject: mapinfo to postgis problem Message-ID: <TUE.22.JAN.2008.001036.0100.FX.GAMOYGEOMATIKA.FR> Hello world, i am using ogr2ogr in order to translate mapinfo tab files into postgis database.. Everything is nice but .... i work with polylines representing a water network ( system ).. i would like to draw on the map the way the line has been vectorized with mapinfo.. using some arrows But this way seem to be sometimes changed by the ogr2ogr translation or by mapserver when computing the map. i will be very pleased if anybody could give me suggest! Best regards, fx From fx.gamoy at GEOMATIKA.FR Mon Jan 21 15:19:44 2008 From: fx.gamoy at GEOMATIKA.FR (FX GAMOY) Date: Tue, 22 Jan 2008 00:19:44 +0100 Subject: annotation styleitem auto and mapinfo files with php_mapscript Message-ID: <TUE.22.JAN.2008.001944.0100.FX.GAMOYGEOMATIKA.FR> Hello world i use somes layers of type ANNOTATION with STYLEITEM "AUTO" in order to render mapinfo text style file with mapserver.. The display is nice... When using php_mapscript, I would like to get for each object of this layer, the text string contained in the mapinfo text object.. for each shape on the layer i can obtain only a MAPKEY attribute and i am not able to get the text value. is it a way to get it? thanks, best regards, fx From mgleahy at ALUMNI.UWATERLOO.CA Mon Jan 21 16:23:28 2008 From: mgleahy at ALUMNI.UWATERLOO.CA (Mike Leahy) Date: Tue, 22 Jan 2008 13:23:28 +1300 Subject: Ideal web server configuration Message-ID: <TUE.22.JAN.2008.132328.1300.MGLEAHYALUMNI.UWATERLOO.CA> Hello list, I'm looking at ordering a new web server for the office I'm in, and I'm wondering if anyone has any suggestions regarding the hardware that I should choose. Normally, I've worked with hardware that was already available to me, so I've never really had to put consideration into this upfront. I know this may be a bit off-topic for this list, but I figure people on this list will likely have some experience with this. The application we're working on will involve multiple simultaneous users interacting with a chameleon-based map interface. The communication between the client and server will generally involve AJAX requests and downloading of updated map images generated by MapServer. On the server side, we'll be running Apache, PHP (with MapScript), and a PostgreSQL/PostGIS server that will be receiving frequent queries/updates. There will likely be some high resolution imagery, as well as a variety of vector layers used in the map that is displayed. Given that I have a relatively modest budget to work with, what I'd really like to know is how I should prioritize the different hardware specs that I can choose from (e.g., multiple CPUs/core, RAM, SATA/SAS and/or RAID disk configurations, etc.). Thanks in advance for any suggestions, Mike From Jacob.Delfos at MAUNSELL.COM Mon Jan 21 16:57:18 2008 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 22 Jan 2008 09:57:18 +0900 Subject: Ideal web server configuration Message-ID: <TUE.22.JAN.2008.095718.0900.JACOB.DELFOSMAUNSELL.COM> Hi Mike, It sounds like you are doing very similar things to us (chameleon, php_mapscript, AJAX, and postgresql). I'm nowhere near as qualified as some to answer this, but I would focus on: - at least two harddisks setup as RAID, to ensure fast reading speed. This will help a lot in general, especially reading large images from the disk. - lower-clockspeed quad core processors (comparatively cheap), in preference of high-speed dual core processors, because you would expect many, shortlived, simultaneous processes, rather than just a few intensive long-lasting processes. An expensive dual-core buys you two quad core processors. We prefer the latter. - 4GB of RAM is good, although we rarely need it all. I guess it depends on what you call a "modest budget", but I would focus on what you bottlenecks would be. In your case, I'd say disk speed (especially for chameleon, which does lots of reads and writes), then CPU, then RAM. We recently bought our server based on these principles, and it works well for us. regards, Jacob -----Original Message----- From: UMN MapServer Users List on behalf of Mike Leahy Sent: Tue 22/01/2008 09:23 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Ideal web server configuration Hello list, I'm looking at ordering a new web server for the office I'm in, and I'm wondering if anyone has any suggestions regarding the hardware that I should choose. Normally, I've worked with hardware that was already available to me, so I've never really had to put consideration into this upfront. I know this may be a bit off-topic for this list, but I figure people on this list will likely have some experience with this. The application we're working on will involve multiple simultaneous users interacting with a chameleon-based map interface. The communication between the client and server will generally involve AJAX requests and downloading of updated map images generated by MapServer. On the server side, we'll be running Apache, PHP (with MapScript), and a PostgreSQL/PostGIS server that will be receiving frequent queries/updates. There will likely be some high resolution imagery, as well as a variety of vector layers used in the map that is displayed. Given that I have a relatively modest budget to work with, what I'd really like to know is how I should prioritize the different hardware specs that I can choose from (e.g., multiple CPUs/core, RAM, SATA/SAS and/or RAID disk configurations, etc.). Thanks in advance for any suggestions, Mike This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080122/6eb6b0c2/attachment.htm> From hal at MOBILEGEOGRAPHICS.COM Mon Jan 21 21:02:58 2008 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Mon, 21 Jan 2008 21:02:58 -0800 Subject: Ideal web server configuration In-Reply-To: <4997F456680DAD4DA1E042C40C46361101179F94@auper1ex002.au.aecomnet.com> Message-ID: <MON.21.JAN.2008.210258.0800.HALMOBILEGEOGRAPHICS.COM> I would put RAM at the top of the priority list, since you're going to be running a database. Make sure that thing never swaps. Then disk access speed, then CPU. Hal From beyhan at DEPREM.GOV.TR Mon Jan 21 23:05:31 2008 From: beyhan at DEPREM.GOV.TR (Murat Beyhan) Date: Tue, 22 Jan 2008 09:05:31 +0200 Subject: is it possible to draw grd file using Mapserver In-Reply-To: <4794BA0D.3050200@pobox.com> Message-ID: <TUE.22.JAN.2008.090531.0200.BEYHANDEPREM.GOV.TR> Dear Frank and Friend, Ok, I'm trying to explain my problem as possible as clearly. I have two layer both type are points. like peak ground acceleration file. lat lon acceleration (gal) 40.356 35.651 450 40.357 35.652 445 40.358 35.653 440 ... .... .... and village point file. lat lon name 40.125 35.159 Village_name1 40.250 35.254 Village_name2 40.857 35.654 Village_name3 As you see both file actually are txt and column file. So I draw both layer by using it's .shp .dbf file. As you see both are point file. But I need to know if I draw both on the one map, Which villages placed which zones. Zones could created by using acceleration. For example 0-100 gal is zone 1, 101-200gal is zone2, etc. I guess, If you draw acceleration using point data you could not distinguish data as zone. May be by using point data I can obtain grid file or polygon file than I can determine the village point place on the polygon. When you draw acceleration distribution the shape of the distribution seems circular area then when you classify zones you can get result of the distribution which are divided into several level. I try to draw point acceleration data as countered data. So I have tried to convert point data to grid file to obtain countered map.... I hope I can explain What I'm trying to do. Regards Murat Frank Warmerdam wrote: > Murat Beyhan wrote: >> Dear Friend, >> >> Is it possible to draw grd file using mapserver. >> Actually, I have point data (stored in mysql database), and I desire >> to obtain grd file of point data first by using Mapserver. >> If it's not possible to obtain grd file by using Mapserver, no >> problem. I have an another tool to obtain grd file from point data. >> Then I would like to draw grd file and point data of the villages. >> The grd file has been plotted diveded into several zones on the map. >> Then I would like to match zones and point of villages. >> Which villages placed in which zones. >> I use mysql too, to keep data. Are there any way to do what I'm >> intending to do... > > Murat, > > I'm reasonably knowledgable about formats, but I'm not sure what you mean > by a "grd" file. Is this a specific file format? raster? vector? > > I'm afraid your whole question above doesn't provide concrete enough > information to provide any help. > > Best regards, -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From guillaume.sueur at NEOGEO-ONLINE.NET Tue Jan 22 00:00:01 2008 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Tue, 22 Jan 2008 09:00:01 +0100 Subject: is it possible to draw grd file using Mapserver In-Reply-To: <479595BB.1000508@deprem.gov.tr> Message-ID: <TUE.22.JAN.2008.090001.0100.GUILLAUME.SUEURNEOGEOONLINE.NET> Merhaba Murat, Frankly I'm not sure to understand what you want to draw as point and what as polygons, but anyway, this can probably help you... What about using OpenLayers VectorLayer to render your points ? This way, you could directly use your text file and then have full control on the client side to render them properly, by small or large circles for example. Have a look to http://www.openlayers.org/dev/examples/vector-features.html and http://www.openlayers.org/dev/examples/markersTextLayer.html to see some live demos. You can still use MapServer to generate your background layers. Hope that helps, Guillaume Murat Beyhan a ?crit : > Dear Frank and Friend, > > Ok, I'm trying to explain my problem as possible as clearly. > I have two layer both type are points. > like > peak ground acceleration file. > lat lon acceleration (gal) > 40.356 35.651 450 > 40.357 35.652 445 > 40.358 35.653 440 > ... .... .... > and > village point file. > lat lon name > 40.125 35.159 Village_name1 > 40.250 35.254 Village_name2 > 40.857 35.654 Village_name3 > As you see both file actually are txt and column file. > > So I draw both layer by using it's .shp .dbf file. > As you see both are point file. > But I need to know if I draw both on the one map, Which villages > placed which zones. > Zones could created by using acceleration. For example 0-100 gal is zone > 1, 101-200gal is zone2, etc. > > I guess, If you draw acceleration using point data you could not > distinguish data as zone. > May be by using point data I can obtain grid file or polygon file than > I can determine the village point place on the polygon. > When you draw acceleration distribution the shape of the distribution > seems circular area then when you classify zones you can get result of > the distribution which are divided into several level. > > I try to draw point acceleration data as countered data. So I have tried > to convert point data to grid file to obtain countered map.... > > I hope I can explain What I'm trying to do. > > Regards > Murat > > Frank Warmerdam wrote: >> Murat Beyhan wrote: >>> Dear Friend, >>> >>> Is it possible to draw grd file using mapserver. >>> Actually, I have point data (stored in mysql database), and I desire >>> to obtain grd file of point data first by using Mapserver. >>> If it's not possible to obtain grd file by using Mapserver, no >>> problem. I have an another tool to obtain grd file from point data. >>> Then I would like to draw grd file and point data of the villages. >>> The grd file has been plotted diveded into several zones on the map. >>> Then I would like to match zones and point of villages. >>> Which villages placed in which zones. >>> I use mysql too, to keep data. Are there any way to do what I'm >>> intending to do... >> >> Murat, >> >> I'm reasonably knowledgable about formats, but I'm not sure what you mean >> by a "grd" file. Is this a specific file format? raster? vector? >> >> I'm afraid your whole question above doesn't provide concrete enough >> information to provide any help. >> >> Best regards, > > -- From carla.fernandezb at GMAIL.COM Tue Jan 22 00:02:29 2008 From: carla.fernandezb at GMAIL.COM (cfb) Date: Tue, 22 Jan 2008 00:02:29 -0800 Subject: raster representation problems Message-ID: <TUE.22.JAN.2008.000229.0800.CARLA.FERNANDEZBGMAIL.COM> Hi there, I've some problems with the representation of a raster image (.img). I've clasiffied it by its pixels, but when I zoom it I get white areas with no data (and if I make the GetFeatureInfo I get: "msQueryByPoint(): Search returned no results. No matching record(s) found" in the ms_error file. I've been trying with several processing directives, but it doesn't change anything. The image is ok, and I don't know where is the problem... Here it is the layer object of my .map LAYER NAME 'precipitacion_anual' DATA 'D:\datos_prueba\precimed.img' #STATUS on GROUP "MEDIO TERRESTRE" TYPE RASTER TRANSPARENCY ALPHA #PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "DITHER=YES" #PROCESSING "SCALE_1=1,255" #PROCESSING "SCALE_2=2,255" #PROCESSING "SCALE_3=3,255" #OFFSITE 255 255 255 #PROCESSING "SCALE=AUTO" #PROCESSING "DITHER=YES" TOLERANCE 3 TOLERANCEUNITS pixels DUMP TRUE OFFSITE 255 255 255 DEBUG ON TEMPLATE "D:\ms4w\maps\etc\template.html" MINSCALE 8000 http://www.nabble.com/file/p15001007/image_p.png #MAXSCALE 1300000 METADATA "WMS_SRS" "EPSG:23029 EPSG:23030 EPSG:4230 EPSG:4324 EPSG:4326 EPSG:32629 EPSG:32630 EPSG:4267 EPSG:4269 EPSG:4258 EPSG:3035 EPSG:3034" "WMS_TITLE" "Precipitaci?n media anual (mm). Periodo 1961-1980 " "WMS_ABSTRACT" "Total medio anual de precipitaci?n para el periodo 1961-1980, representado por el fondo de colores de la superficie emergida." "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_keywordlist" "WMS, servidor de mapas en red, Andaluc?a, Medio Ambiente, mapas, clima, climatolog?a, hidrolog?a, precipitaci?n atmosf?rica, temperatura" "wms_extent" "101003 3816667 628642 4288082" #"wms_metadataurl_href" "http://idena.navarra.es/busquedas/xml/c_toponimia.xml" #URL donde se recogen m?s metadatos sobre la capa #"wms_metadataurl_type" "TC211" #Norma de Metadatos el valor: "TC211" equivale a ISO 19115 #"wms_metadataurl_format" "xml" # #"wms_dataurl_href" "...." # Direcci?n URL de los datos asociados #"wms_dataurl_format" "xml" # Formato de los datos "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_dataurl_format" "image/png" "wms_metadataurl_format" "text/html" #"gml_featureid" "FID" #"gml_include_items" "CODIGO,DESCRIPCIO" END #METADATA PROJECTION "init=epsg:23030" #Proyecci?n UTM European Datum 50 Huso 30 N "init=epsg:23029" #Proyecci?n UTM European Datum 50 Huso 29 N "init=epsg:4230" #Coordenadas Geogr?ficas ED50 "init=epsg:4324" #Coordenadas Geogr?ficas WGS 72BE TRANSIT BROADCAST EPHEMERIS "init=epsg:4326" #Coordenadas Geogr?ficas WGS 84 "init=epsg:32629" #Proyecci?n UTM WGS 84 Huso 29 N "init=epsg:32630" #Proyecci?n UTM WGS 84 Huso 30 N "init=epsg:4267" #Coordenadas Geogr?ficas North American Datum 1927 (NAD 27) "init=epsg:4269" #Coordenadas Geogr?ficas North American Datum 1983 (NAD 83) "init=epsg:4258" #Coordenadas Elipsoidales ETRS89 IDEE "init=epsg:3035" #ETRS89/ETRS-LAEA Para representaci?n y an?lisis estad?stico pan-Europeos IDEE "init=epsg:3034" #ETRS89/ETRS-LCC Para la cartograf?a pan-Europeo a escalas menores o iguales a 1:500.000 IDEE END #CLASES A PARTIR DE LA COMPOSICI?N RGB DE LA PALETA CLASSITEM "[pixel]" CLASS NAME "<100 " EXPRESSION ([pixel] < 100) STYLE COLOR 230 153 0 END END CLASS NAME "100-200 " EXPRESSION ([pixel] >= 100 AND [pixel] < 200) STYLE COLOR 227 161 39 END END CLASS NAME "200-300 " EXPRESSION ([pixel] >= 200 AND [pixel] < 300) STYLE COLOR 224 173 63 END END CLASS NAME "300-400 " EXPRESSION ([pixel] >= 300 AND [pixel] < 400) STYLE COLOR 219 184 86 END END CLASS NAME "400-500 " EXPRESSION ([pixel] >= 400 AND [pixel] < 500) STYLE COLOR 214 193 109 END END CLASS NAME "500-600 " EXPRESSION ([pixel] >= 500 AND [pixel] < 600) STYLE COLOR 207 204 132 END END CLASS NAME "600-700 " EXPRESSION ([pixel] >= 600 AND [pixel] < 700) STYLE COLOR 198 214 156 END END CLASS NAME "700-800 " EXPRESSION ([pixel] >= 700 AND [pixel] < 800) STYLE COLOR 189 204 163 END END CLASS NAME "800-900 " EXPRESSION ([pixel] >= 800 AND [pixel] < 900) STYLE COLOR 179 194 169 END END CLASS NAME "900-1000 " EXPRESSION ([pixel] >= 900 AND [pixel] < 1000) STYLE COLOR 169 184 174 END END CLASS NAME "1000-1100 " EXPRESSION ([pixel] >= 1000 AND [pixel] < 1100) STYLE COLOR 161 176 181 END END CLASS NAME "1100-1200 " EXPRESSION ([pixel] >= 1100 AND [pixel] < 1200) STYLE COLOR 151 166 186 END END CLASS NAME "1200-1300 " EXPRESSION ([pixel] >= 1200 AND [pixel] < 1300) STYLE COLOR 140 156 191 END END CLASS NAME "1300-1400 " EXPRESSION ([pixel] >= 1300 AND [pixel] < 1400) STYLE COLOR 130 147 196 END END CLASS NAME "1400-1500 " EXPRESSION ([pixel] >= 1400 AND [pixel] < 1500) STYLE COLOR 117 138 207 END END CLASS NAME "1500-1600 " EXPRESSION ([pixel] >= 1500 AND [pixel] < 1600) STYLE COLOR 105 131 207 END END CLASS NAME "1600-1700 " EXPRESSION ([pixel] >= 1600 AND [pixel] < 1700) STYLE COLOR 93 123 212 END END CLASS NAME "1700-1800 " EXPRESSION ([pixel] >= 1700 AND [pixel] < 1800) STYLE COLOR 78 115 217 END END CLASS NAME "1800-1900 " EXPRESSION ([pixel] >= 1800 AND [pixel] < 1900) STYLE COLOR 61 106 219 END END CLASS NAME "1900-2000 " EXPRESSION ([pixel] >= 1900 AND [pixel] < 2000) STYLE COLOR 43 100 224 END END CLASS NAME "2000-2100 " EXPRESSION ([pixel] >= 2000 AND [pixel] <= 2100) STYLE COLOR 0 92 230 END END END #LAYER -- View this message in context: http://www.nabble.com/raster-representation-problems-tp15001007p15001007.html Sent from the Mapserver - User mailing list archive at Nabble.com. From carla.fernandezb at GMAIL.COM Tue Jan 22 00:06:09 2008 From: carla.fernandezb at GMAIL.COM (cfb) Date: Tue, 22 Jan 2008 00:06:09 -0800 Subject: raster representation problems Message-ID: <TUE.22.JAN.2008.000609.0800.CARLA.FERNANDEZBGMAIL.COM> Hi there, I've some problems with the representation of a raster image (.img). I've clasiffied it by its pixels, but when I zoom it I get white areas with no data (and if I make the GetFeatureInfo I get: "msQueryByPoint(): Search returned no results. No matching record(s) found" in the ms_error file. I've been trying with several processing directives, but it doesn't change anything. The image is ok, and I don't know where is the problem... Here it is the layer object of my .map LAYER NAME 'precipitacion_anual' DATA 'D:\datos_prueba\precimed.img' #STATUS on GROUP "MEDIO TERRESTRE" TYPE RASTER TRANSPARENCY ALPHA #PROCESSING "CLOSE_CONNECTION=DEFER" PROCESSING "DITHER=YES" #PROCESSING "SCALE_1=1,255" #PROCESSING "SCALE_2=2,255" #PROCESSING "SCALE_3=3,255" #OFFSITE 255 255 255 #PROCESSING "SCALE=AUTO" #PROCESSING "DITHER=YES" TOLERANCE 3 TOLERANCEUNITS pixels DUMP TRUE OFFSITE 255 255 255 DEBUG ON TEMPLATE "D:\ms4w\maps\etc\template.html" MINSCALE 8000 #MAXSCALE 1300000 METADATA "WMS_SRS" "EPSG:23029 EPSG:23030 EPSG:4230 EPSG:4324 EPSG:4326 EPSG:32629 EPSG:32630 EPSG:4267 EPSG:4269 EPSG:4258 EPSG:3035 EPSG:3034" "WMS_TITLE" "Precipitaci?n media anual (mm). Periodo 1961-1980 " "WMS_ABSTRACT" "Total medio anual de precipitaci?n para el periodo 1961-1980, representado por el fondo de colores de la superficie emergida." "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_keywordlist" "WMS, servidor de mapas en red, Andaluc?a, Medio Ambiente, mapas, clima, climatolog?a, hidrolog?a, precipitaci?n atmosf?rica, temperatura" "wms_extent" "101003 3816667 628642 4288082" #"wms_metadataurl_type" "TC211" #Norma de Metadatos el valor: "TC211" equivale a ISO 19115 #"wms_metadataurl_format" "xml" # #"wms_dataurl_href" "...." # Direcci?n URL de los datos asociados #"wms_dataurl_format" "xml" # Formato de los datos "WMS_FEATURE_INFO_MIME_TYPE" "text/html" "wms_dataurl_format" "image/png" "wms_metadataurl_format" "text/html" #"gml_featureid" "FID" #"gml_include_items" "CODIGO,DESCRIPCIO" END #METADATA PROJECTION "init=epsg:23030" #Proyecci?n UTM European Datum 50 Huso 30 N "init=epsg:23029" #Proyecci?n UTM European Datum 50 Huso 29 N "init=epsg:4230" #Coordenadas Geogr?ficas ED50 "init=epsg:4324" #Coordenadas Geogr?ficas WGS 72BE TRANSIT BROADCAST EPHEMERIS "init=epsg:4326" #Coordenadas Geogr?ficas WGS 84 "init=epsg:32629" #Proyecci?n UTM WGS 84 Huso 29 N "init=epsg:32630" #Proyecci?n UTM WGS 84 Huso 30 N "init=epsg:4267" #Coordenadas Geogr?ficas North American Datum 1927 (NAD 27) "init=epsg:4269" #Coordenadas Geogr?ficas North American Datum 1983 (NAD 83) "init=epsg:4258" #Coordenadas Elipsoidales ETRS89 IDEE "init=epsg:3035" #ETRS89/ETRS-LAEA Para representaci?n y an?lisis estad?stico pan-Europeos IDEE "init=epsg:3034" #ETRS89/ETRS-LCC Para la cartograf?a pan-Europeo a escalas menores o iguales a 1:500.000 IDEE END #CLASES A PARTIR DE LA COMPOSICI?N RGB DE LA PALETA CLASSITEM "[pixel]" CLASS NAME "<100 " EXPRESSION ([pixel] < 100) STYLE COLOR 230 153 0 END END CLASS NAME "100-200 " EXPRESSION ([pixel] >= 100 AND [pixel] < 200) STYLE COLOR 227 161 39 END END CLASS NAME "200-300 " EXPRESSION ([pixel] >= 200 AND [pixel] < 300) STYLE COLOR 224 173 63 END END CLASS NAME "300-400 " EXPRESSION ([pixel] >= 300 AND [pixel] < 400) STYLE COLOR 219 184 86 END END CLASS NAME "400-500 " EXPRESSION ([pixel] >= 400 AND [pixel] < 500) STYLE COLOR 214 193 109 END END CLASS NAME "500-600 " EXPRESSION ([pixel] >= 500 AND [pixel] < 600) STYLE COLOR 207 204 132 END END CLASS NAME "600-700 " EXPRESSION ([pixel] >= 600 AND [pixel] < 700) STYLE COLOR 198 214 156 END END CLASS NAME "700-800 " EXPRESSION ([pixel] >= 700 AND [pixel] < 800) STYLE COLOR 189 204 163 END END CLASS NAME "800-900 " EXPRESSION ([pixel] >= 800 AND [pixel] < 900) STYLE COLOR 179 194 169 END END CLASS NAME "900-1000 " EXPRESSION ([pixel] >= 900 AND [pixel] < 1000) STYLE COLOR 169 184 174 END END CLASS NAME "1000-1100 " EXPRESSION ([pixel] >= 1000 AND [pixel] < 1100) STYLE COLOR 161 176 181 END END CLASS NAME "1100-1200 " EXPRESSION ([pixel] >= 1100 AND [pixel] < 1200) STYLE COLOR 151 166 186 END END CLASS NAME "1200-1300 " EXPRESSION ([pixel] >= 1200 AND [pixel] < 1300) STYLE COLOR 140 156 191 END END CLASS NAME "1300-1400 " EXPRESSION ([pixel] >= 1300 AND [pixel] < 1400) STYLE COLOR 130 147 196 END END CLASS NAME "1400-1500 " EXPRESSION ([pixel] >= 1400 AND [pixel] < 1500) STYLE COLOR 117 138 207 END END CLASS NAME "1500-1600 " EXPRESSION ([pixel] >= 1500 AND [pixel] < 1600) STYLE COLOR 105 131 207 END END CLASS NAME "1600-1700 " EXPRESSION ([pixel] >= 1600 AND [pixel] < 1700) STYLE COLOR 93 123 212 END END CLASS NAME "1700-1800 " EXPRESSION ([pixel] >= 1700 AND [pixel] < 1800) STYLE COLOR 78 115 217 END END CLASS NAME "1800-1900 " EXPRESSION ([pixel] >= 1800 AND [pixel] < 1900) STYLE COLOR 61 106 219 END END CLASS NAME "1900-2000 " EXPRESSION ([pixel] >= 1900 AND [pixel] < 2000) STYLE COLOR 43 100 224 END END CLASS NAME "2000-2100 " EXPRESSION ([pixel] >= 2000 AND [pixel] <= 2100) STYLE COLOR 0 92 230 END END END #LAYER -- View this message in context: http://www.nabble.com/raster-representation-problems-tp15014226p15014226.html Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at ZEELANDNET.NL Tue Jan 22 00:25:50 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Tue, 22 Jan 2008 09:25:50 +0100 Subject: Falling of the Globe Message-ID: <TUE.22.JAN.2008.092550.0100.MLINDENZEELANDNET.NL> Hello list! I am working with an ecw world map combined with a mapinfo vector file with borders. My customer noticed that for Fiji and Kiribati (which cross the 180/-180 meridian) the borders are not displayed correctly. Is there any way to stop these islands from falling of the globe ;-)? From rosario.carbone at IPL.COM Tue Jan 22 01:05:14 2008 From: rosario.carbone at IPL.COM (The Bun) Date: Tue, 22 Jan 2008 01:05:14 -0800 Subject: TYPE truetype In-Reply-To: <1532456BD081F146A176FB6929E6B0D1BAA29D@KTWMAIL.ilpcs.com> Message-ID: <TUE.22.JAN.2008.010514.0800.ROSARIO.CARBONEIPL.COM> > Nolte, Tim wrote: > > OK, I just reread your post and noticed that you are talking about a > POINT here and not a line. My code is for a line, sorry. > Hi Tim thank you for your help, my layer is actually a POINT one. The layer is one that comes from Ordnance Survey which is the Britain's nationla mapping agency, it is part of a topographic GML that contains other layers, I am quite confused as I am not sure 1--% this is the right label layer for bulding numbers, road names, parks names etc, but I can see them. My feelinf is that probably the same POINT layer may be seen in a different way from MapServer I read somewhere that a layer type like ANNOTATION may be used as far as you have an angle column which I have though I have values in the column quite weird, for example: 1977, 2814 etc. Anyway I have seen people using LABELANGLEITEM do you know anything like that? Regards Rosario -- View this message in context: http://www.nabble.com/TYPE-truetype-tp15001513p15014974.html Sent from the Mapserver - User mailing list archive at Nabble.com. From samiazmi at GMAIL.COM Tue Jan 22 01:36:37 2008 From: samiazmi at GMAIL.COM (samiazmi) Date: Tue, 22 Jan 2008 01:36:37 -0800 Subject: Union two Shape files !!! Message-ID: <TUE.22.JAN.2008.013637.0800.SAMIAZMIGMAIL.COM> Hi List, I am stuck with Union in Mapserver. Is there anything in Mapserver to union two SHAPE FILES, the current method in the API is to UNION two geometries, I need something that can directly take two shapefiles and give the ouptut as their Union. Looking forward for some comments on this Thanks in advance. Samee -- View this message in context: http://www.nabble.com/Union-two-Shape-files-%21%21%21-tp15015247p15015247.html Sent from the Mapserver - User mailing list archive at Nabble.com. From guillaume.sueur at NEOGEO-ONLINE.NET Tue Jan 22 01:40:21 2008 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Tue, 22 Jan 2008 10:40:21 +0100 Subject: Union two Shape files !!! In-Reply-To: <15015247.post@talk.nabble.com> Message-ID: <TUE.22.JAN.2008.104021.0100.GUILLAUME.SUEURNEOGEOONLINE.NET> Hi, I think it's called merge and not union. why not using two layers, each of them using one of the shapefiles, and both having the same representation ? Guillaume samiazmi a ?crit : > Hi List, > > I am stuck with Union in Mapserver. > > Is there anything in Mapserver to union two SHAPE FILES, the current method > in the API is to UNION two geometries, I need something that can directly > take two shapefiles and give the ouptut as their Union. > > Looking forward for some comments on this > > Thanks in advance. > Samee -------------- next part -------------- A non-text attachment was scrubbed... Name: guillaume.sueur.vcf Type: text/x-vcard Size: 286 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080122/5a5ad2df/attachment.vcf> From szekerest at GMAIL.COM Tue Jan 22 01:51:04 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 22 Jan 2008 10:51:04 +0100 Subject: annotation styleitem auto and mapinfo files with php_mapscript In-Reply-To: <200801220019.45075.fx.gamoy@geomatika.fr> Message-ID: <TUE.22.JAN.2008.105104.0100.SZEKERESTGMAIL.COM> Hi, You can possibly use shape.getValue("OGR:LabelText") to access the text of the OGR label style. Best regards, Tamas 2008/1/22, FX GAMOY <fx.gamoy at geomatika.fr>: > Hello world > > i use somes layers of type ANNOTATION with STYLEITEM "AUTO" in order to render > mapinfo text style file with mapserver.. > > The display is nice... > > When using php_mapscript, I would like to get for each object of this layer, > the text string contained in the mapinfo text object.. > > > for each shape on the layer i can obtain only a MAPKEY attribute and i am not > able to get the text value. > > is it a way to get it? > > thanks, > best regards, > fx > From szekerest at GMAIL.COM Tue Jan 22 02:00:26 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 22 Jan 2008 11:00:26 +0100 Subject: [gdal-dev] mapinfo to postgis problem In-Reply-To: <200801220010.37025.fx.gamoy@geomatika.fr> Message-ID: <TUE.22.JAN.2008.110026.0100.SZEKERESTGMAIL.COM> 2008/1/22, FX GAMOY <fx.gamoy at geomatika.fr>: > i work with polylines representing a water network ( system ).. > i would like to draw on the map the way the line has been vectorized with > mapinfo.. using some arrows > > But this way seem to be sometimes changed by the ogr2ogr translation or by > mapserver when computing the map. > Could you describe the behaviour of the change? Best regards, Tamas From hwang at I-FONE.NET Tue Jan 22 01:01:08 2008 From: hwang at I-FONE.NET (hwang at I-FONE.NET) Date: Tue, 22 Jan 2008 17:01:08 +0800 Subject: File vs DB Message-ID: <TUE.22.JAN.2008.170108.0800.> If I have some data in .shp format and I imported it to MySQL with org2org. Which data source will be faster? File or DB? Thanks. From fx.gamoy at GEOMATIKA.FR Tue Jan 22 02:06:37 2008 From: fx.gamoy at GEOMATIKA.FR (Fx Gamoy) Date: Tue, 22 Jan 2008 11:06:37 +0100 Subject: annotation styleitem auto and mapinfo files with php_mapscript In-Reply-To: <f3b73b7d0801220151s44a7d35bw4c0c291cf593ef5d@mail.gmail.com> Message-ID: <TUE.22.JAN.2008.110637.0100.> Hi Tamas thanks a lot i've tried this : $mylabeltext=$oShape->getvalue($oLayer,"OGR:LabelText"); but nothing occur .. my string is empty.. Any idea?? Best regards, fx Tamas Szekeres <szekerest at gmail.com> a ?crit?: > Hi, > > You can possibly use shape.getValue("OGR:LabelText") to access the > text of the OGR label style. > > Best regards, > > Tamas > > > > 2008/1/22, FX GAMOY <fx.gamoy at geomatika.fr>: >> Hello world >> >> i use somes layers of type ANNOTATION with STYLEITEM "AUTO" in >> order to render >> mapinfo text style file with mapserver.. >> >> The display is nice... >> >> When using php_mapscript, I would like to get for each object of this layer, >> the text string contained in the mapinfo text object.. >> >> >> for each shape on the layer i can obtain only a MAPKEY attribute >> and i am not >> able to get the text value. >> >> is it a way to get it? >> >> thanks, >> best regards, >> fx >> > From map.user at YAHOO.COM Tue Jan 22 02:59:31 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Tue, 22 Jan 2008 04:59:31 -0600 Subject: mapserver compatibility Message-ID: <TUE.22.JAN.2008.045931.0600.MAP.USERYAHOO.COM> is mapserver comapatible with sql server 2008. please reply. i m thinking of transfering my data to sql server 2008. From carla.fernandezb at GMAIL.COM Tue Jan 22 03:23:40 2008 From: carla.fernandezb at GMAIL.COM (cfb) Date: Tue, 22 Jan 2008 03:23:40 -0800 Subject: loadMap(): Web application error. CGI variable "map" is not set. Message-ID: <TUE.22.JAN.2008.032340.0800.CARLA.FERNANDEZBGMAIL.COM> Hi again I'm having problems with the publication of a WMS. I've copied the mapserv.exe and rename it in the cgi-bin folder of ms4w, and included "SetEnvIf Request_URI "/cgi-bin/wms_landsat04.exe" MS_MAPFILE=D:\ms4w\maps\map\wms-landsat04.map" in the httpd.conf. I've changed the onlineresource of the header of the .map and also the data of each layer object. Finally I've restarted the apache monitor... But it doesn't work. At the ms_error file I get: loadMap(): Web application error. CGI variable "map" is not set. Does anyone knows a solution? Thanks!! -- View this message in context: http://www.nabble.com/loadMap%28%29%3A-Web-application-error.-CGI-variable-%22map%22-is-not-set.-tp15016852p15016852.html Sent from the Mapserver - User mailing list archive at Nabble.com. From szekerest at GMAIL.COM Tue Jan 22 04:13:17 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 22 Jan 2008 13:13:17 +0100 Subject: mapserver compatibility In-Reply-To: <LISTSERV%200801220459314670.EEB1@LISTS.UMN.EDU> Message-ID: <TUE.22.JAN.2008.131317.0100.SZEKERESTGMAIL.COM> Hi, There has been an MSSQL 2008 driver added to the latest development version. You can try this out and see whether it can satisfy with your requirements. Best regards, Tamas 2008/1/22, SUBSCRIBE MAPSERVER-USERS mapuser <map.user at yahoo.com>: > is mapserver comapatible with sql server 2008. please reply. i m > thinking of transfering my data to sql server 2008. > From szekerest at GMAIL.COM Tue Jan 22 04:21:14 2008 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 22 Jan 2008 13:21:14 +0100 Subject: annotation styleitem auto and mapinfo files with php_mapscript In-Reply-To: <20080122110637.eacf7tao95skc844@webmail.anotherlight.com> Message-ID: <TUE.22.JAN.2008.132114.0100.SZEKERESTGMAIL.COM> Hi, You should perhaps ensure this label is actually fetched from the data source, by specifying it in LABELITEM for example. In case the problem still arise then you can file a ticket to get it fixed. Best regards, Tamas 2008/1/22, Fx Gamoy <fx.gamoy at geomatika.fr>: > Hi Tamas > thanks a lot > > i've tried this : > > $mylabeltext=$oShape->getvalue($oLayer,"OGR:LabelText"); > > but nothing occur .. my string is empty.. > > Any idea?? > > Best regards, > fx > > Tamas Szekeres <szekerest at gmail.com> a ?crit: > > > Hi, > > > > You can possibly use shape.getValue("OGR:LabelText") to access the > > text of the OGR label style. > > > > Best regards, > > > > Tamas > > > > > > > > 2008/1/22, FX GAMOY <fx.gamoy at geomatika.fr>: > >> Hello world > >> > >> i use somes layers of type ANNOTATION with STYLEITEM "AUTO" in > >> order to render > >> mapinfo text style file with mapserver.. > >> > >> The display is nice... > >> > >> When using php_mapscript, I would like to get for each object of this layer, > >> the text string contained in the mapinfo text object.. > >> > >> > >> for each shape on the layer i can obtain only a MAPKEY attribute > >> and i am not > >> able to get the text value. > >> > >> is it a way to get it? > >> > >> thanks, > >> best regards, > >> fx > >> > > > From plieger at KNMI.NL Tue Jan 22 05:22:30 2008 From: plieger at KNMI.NL (Maarten Plieger) Date: Tue, 22 Jan 2008 13:22:30 +0000 Subject: MapServer 5.0.0, GDAL 1.5.0 and HDF5 1.6.6 problem Message-ID: <TUE.22.JAN.2008.132230.0000.PLIEGERKNMI.NL> Hi All, I am trying to display HDF5 files directly in MapServer without converting them. To test the HDF library with GDAL, I first converted a subset (gdal_translate -of GTiff HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/image_preview meteopreview.tif). This tiff can be viewed with MapServer, so i assume the HDF5 library is correctly implemented in GDAL. Now I want to directly open the HDF5 file in mapserver. This gives me an error. (" The server encountered an internal error or misconfiguration and was unable to complete your request.") The Apache error log looks like this: Appache Error Log: [Tue Jan 22 11:45:34 2008] [error] [client 145.23.130.25] malformed header from script. Bad header=szFilenname /nobackup/users/pl: mapserverhdf.cgi [Tue Jan 22 11:45:34 2008] [error] Failed to change_hat to 'HANDLING_UNTRUSTED_INPUT' And the mapfile looks like this (part of): MapFile: LAYER NAME preview DATA 'HDF5:/nobackup/users/plieger/mapdata/METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5://image1/image_preview' #DATA 'meteopreview.tif' DUMP TRUE TYPE RASTER PROCESSING "BANDS=1" PROJECTION proj=nsper lon_0=0.000000 lat_0=0 h=35807.250000 a=6378.134766 b=6356.750488 END END (When i switch the data statement to tiff it works, otherwise it gives me an error (see the # sign).) I use a script that sets the LD_LIBRARY_PATH and the LD_RUN_PATH to the correct path, this script calls in turn mapserver. Therefore I think that there is no problem with the libraries. It also works with all the other libraries. I have to use this script because I have no admin rights, (and i won't get them). Can anyone help me with this problem, or had the same problem? Thanks in advance, Maarten Software: - UMN MapServer 5.0.0 - GDAL 1.5.0 - HDF5 1.6.6 - proj 4.6.0 - geos 3.0.0 - szip 2.1 - zlib 1.2.1 - GDAL has been compiled without CURL... GDALINFO: gdalinfo METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5: SUBDATASET_0_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://classification1/classification_image SUBDATASET_0_DESC=[2512x2512] //classification1/classification_image (8-bit unsigned character) SUBDATASET_1_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://classification1/classification_table SUBDATASET_1_DESC=[2x2] //classification1/classification_table (Unknown) SUBDATASET_2_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/calibration/calibration_table SUBDATASET_2_DESC=[2x2] //image1/calibration/calibration_table (32-bit floating-point) SUBDATASET_3_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/image_data SUBDATASET_3_DESC=[2512x2512] //image1/image_data (8-bit unsigned character) SUBDATASET_4_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://image1/image_preview SUBDATASET_4_DESC=[251x251] //image1/image_preview (8-bit unsigned character) SUBDATASET_5_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://overview/dataset_sample SUBDATASET_5_DESC=[3x628x628] //overview/dataset_sample (8-bit unsigned character) SUBDATASET_6_NAME=HDF5:"METEOSAT_7_MVIRI_GLOBEWV_2003_02_20_12_00_00.h5"://visualisation1/color_palette SUBDATASET_6_DESC=[255x3] //visualisation1/color_palette (8-bit unsigned character) WMS Request: mapserverhdf.cgi?SERVICE=WMS&VERSION=1.0.0&REQUEST=GetMap&BBOX=90,85,180,90&LAYERS=preview&WIDTH=900&HEIGHT=900&SRS=EPSG:4326&STYLES= Error from browser: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.</p> <p>More information about this error may be available in the server error log.</p> <p>Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.</p> <hr> <address>Apache/2.2.0 (Linux/SUSE) Server at bhw047.knmi.nl Port 80</address> </body></html> From rosario.carbone at IPL.COM Tue Jan 22 06:20:52 2008 From: rosario.carbone at IPL.COM (The Bun) Date: Tue, 22 Jan 2008 06:20:52 -0800 Subject: TYPE truetype In-Reply-To: <1532456BD081F146A176FB6929E6B0D1BAA299@KTWMAIL.ilpcs.com> Message-ID: <TUE.22.JAN.2008.062052.0800.ROSARIO.CARBONEIPL.COM> Hi It took many hours of work but at the end I solved. There are 4 important things to keep in mind: 1) My layer is a POINT layer but can be used as ANNOTATION layer, a LINE layer may also be used as ANNOTATION, but differently from a LINE layer a POINT layer hasn't an embedded orientation in the feature. 2) The TYPE TRUETYPE raised an error because the fonts.list file wasn't seen by MapServer, and in this case I cannot understand why, but now I added the full path: FONTSET "C:\ms4w\apps\gmap\htdocs\fonts\fonts.list" and it is OK. 3) Angle degrees in the my orientation column in my table were from 0 to 3600 and then I needed to divide by 10. Ordnance Survey set the orientation precisely, keep in consideration decimal degrees. 4) Finally in the 5.0 version of MapServer LABELANGLEITEM, ANGLEITEM and other macros for the mapfile have been dropped and replaced with new ones, in this case the macro to use was ANGLE, in the LABEL section, anyway this is a working example: LAYER NAME cartotext DEBUG 3 TYPE ANNOTATION STATUS ON CONNECTIONTYPE OGR CONNECTION "MySQL:test,user=root,host=localhost,password=password,port=3306" DATA "mm_cartographictext_topo" UNITS METERS MAXSCALE 5000 TOLERANCEUNITS DD SIZEUNITS PIXELS LABELITEM "textstring" LABELCACHE ON CLASS NAME "text class" STYLE # It is actually the point COLOR 255 0 0 ANTIALIAS TRUE END LABEL TYPE TRUETYPE ANGLE [orientatio] FONT "arial" MINSIZE 10 MAXSIZE 20 PARTIALS FALSE MINDISTANCE 20 COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END END N.B. "orientatio" is the name of a column in my table. Regards Rosario -- View this message in context: http://www.nabble.com/TYPE-truetype-tp15001513p15019487.html Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Tue Jan 22 06:42:24 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 22 Jan 2008 09:42:24 -0500 Subject: MapServer 5.0.0, GDAL 1.5.0 and HDF5 1.6.6 problem In-Reply-To: <4795EE16.80404@knmi.nl> Message-ID: <TUE.22.JAN.2008.094224.0500.WARMERDAMPOBOX.COM> Maarten Plieger wrote: > The Apache error log looks like this: Appache Error Log: > [Tue Jan 22 11:45:34 2008] [error] [client 145.23.130.25] malformed > header from script. Bad header=szFilenname /nobackup/users/pl: > mapserverhdf.cgi > [Tue Jan 22 11:45:34 2008] [error] Failed to change_hat to > 'HANDLING_UNTRUSTED_INPUT' Maarten, Line 360 of gdal/frmts/hdf5/hdf5imagedataset.cpp is: printf("szFilenname %s\n",szFilename); Try commenting this line out and rebuilding/installing the GDAL 1.5.0. I think this printf is getting emitted and it is screwing up the http headers for your return result. I have created a bug ticket for this problem, and will correct for the next release: http://trac.osgeo.org/gdal/ticket/2166 Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From map.user at YAHOO.COM Tue Jan 22 06:47:48 2008 From: map.user at YAHOO.COM (SUBSCRIBE MAPSERVER-USERS mapuser) Date: Tue, 22 Jan 2008 08:47:48 -0600 Subject: mapserver compatibility Message-ID: <TUE.22.JAN.2008.084748.0600.MAP.USERYAHOO.COM> hi, then what settings will be the connection and connectionType should have. thanks for any help. From warmerdam at POBOX.COM Tue Jan 22 07:02:30 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 22 Jan 2008 10:02:30 -0500 Subject: raster representation problems In-Reply-To: <15014226.post@talk.nabble.com> Message-ID: <TUE.22.JAN.2008.100230.0500.WARMERDAMPOBOX.COM> cfb wrote: > Hi there, > > I've some problems with the representation of a raster image (.img). I've > clasiffied it by its pixels, but when I zoom it I get white areas with no > data (and if I make the GetFeatureInfo I get: "msQueryByPoint(): Search > returned no results. No matching record(s) found" in the ms_error file. > > I've been trying with several processing directives, but it doesn't change > anything. The image is ok, and I don't know where is the problem... > > Here it is the layer object of my .map > > LAYER > TRANSPARENCY ALPHA Carla, What is TRANSPARENCY ALPHA supposed to do? I'm sure I *should* know this. > #PROCESSING "CLOSE_CONNECTION=DEFER" > PROCESSING "DITHER=YES" > #PROCESSING "SCALE_1=1,255" > #PROCESSING "SCALE_2=2,255" > #PROCESSING "SCALE_3=3,255" > #OFFSITE 255 255 255 > #PROCESSING "SCALE=AUTO" > #PROCESSING "DITHER=YES" When using explicit [pixel] classification, it is inappropriate to use scaling directives and they might screw stuff up. > TOLERANCE 3 > TOLERANCEUNITS pixels > DUMP TRUE > OFFSITE 255 255 255 I don't think OFFSITE is going to work properly in a classification situation. You might want to omit this. However, fundamentally I don't know why you are getting the problem you get. I assume the GetFeatureInfo is for a point that should have data? You have a template and dump set to true so it seems that all the basic requirements are in place. If you can boil your mapfile and data down to something that could be provided to me along with a particular GetFeatureInfo request that is failing I could dig into it a bit. But you need to pass things over in a form that I can get the problem reproduced easily or I will get distracted before getting any deeper. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ed at TOPOZONE.COM Tue Jan 22 07:04:53 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 22 Jan 2008 10:04:53 -0500 Subject: Ideal web server configuration In-Reply-To: A<47953780.6090107@alumni.uwaterloo.ca> Message-ID: <TUE.22.JAN.2008.100453.0500.EDTOPOZONE.COM> Mike - You've gotten good advice so far, but if you're running PostgreSQL/PostGIS on the same machine, a lot depends on what "frequent" means in "frequent queries/updates". As far as your GIS data goes, MapServer is basically a read-only application, and it's relatively easy to design a good disk subsystem (the slowest component in your server) for that application. A good disk configuration for a highly interactive database with reads AND writes happening "frequently" is much more complicated, and harder (but more important) to get right. Just as an example data point, I have long used 3Ware ATA RAID controllers with 8-disk RAID-5 arrays for raster data storage. These provide an inexpensive solution with excellent read performance, and I essentially use those arrays as read-only volumes. Write performance is much poorer on those volumes, and simultaneous read/write performance - as when I need to do a data update while a volume is in production - is TERRIBLE. The writes are prioritized and they work OK but reading almost comes to a standstill. None of this is surprising, and it's an appropriate design compromise. But my PostgreSQL/PostGIS server does NOT use that same disk architecture <g>! I never generalize, but I would not be surprised to find that the task of optimizing your hardware for your database application will do everything you need to optimize your hardware for your entire application suite. Pay attention to that database first. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike Leahy Sent: Monday, January 21, 2008 7:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Ideal web server configuration Hello list, I'm looking at ordering a new web server for the office I'm in, and I'm wondering if anyone has any suggestions regarding the hardware that I should choose. Normally, I've worked with hardware that was already available to me, so I've never really had to put consideration into this upfront. I know this may be a bit off-topic for this list, but I figure people on this list will likely have some experience with this. The application we're working on will involve multiple simultaneous users interacting with a chameleon-based map interface. The communication between the client and server will generally involve AJAX requests and downloading of updated map images generated by MapServer. On the server side, we'll be running Apache, PHP (with MapScript), and a PostgreSQL/PostGIS server that will be receiving frequent queries/updates. There will likely be some high resolution imagery, as well as a variety of vector layers used in the map that is displayed. Given that I have a relatively modest budget to work with, what I'd really like to know is how I should prioritize the different hardware specs that I can choose from (e.g., multiple CPUs/core, RAM, SATA/SAS and/or RAID disk configurations, etc.). Thanks in advance for any suggestions, Mike From warmerdam at POBOX.COM Tue Jan 22 07:13:33 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 22 Jan 2008 10:13:33 -0500 Subject: is it possible to draw grd file using Mapserver In-Reply-To: <479595BB.1000508@deprem.gov.tr> Message-ID: <TUE.22.JAN.2008.101333.0500.WARMERDAMPOBOX.COM> Murat Beyhan wrote: > So I draw both layer by using it's .shp .dbf file. > As you see both are point file. > But I need to know if I draw both on the one map, Which villages > placed which zones. > Zones could created by using acceleration. For example 0-100 gal is zone > 1, 101-200gal is zone2, etc. > > I guess, If you draw acceleration using point data you could not > distinguish data as zone. > May be by using point data I can obtain grid file or polygon file than > I can determine the village point place on the polygon. > When you draw acceleration distribution the shape of the distribution > seems circular area then when you classify zones you can get result of > the distribution which are divided into several level. Murat, It sounds like you need an algorithm to generate a raster by interpolation from your acceleration point data. There are many options to do this, but three that come to mind are GRASS, GMT or the gdal_grid program new in GDAL 1.5. Once you have an interpolated raster grid of the accelerations you could draw each class/range in a distinct color using classes to give a visual indication of the zones. If you want to know what the zone is for each village I would suggest doing this as a distinct processing step. Something where you sample the grid for each village location and attach a new column with the actual value, or the corresponding zone. This might be accomplished as a GDAL/OGR script (eg. in python). I'm sure this is also something that can be accomplished in GRASS and perhaps in GMT. I guess my main point is that you need to do various preprocessing steps before visualization and that these are best done in other packages more suited to the task. As we say "MapServer is not a GIS" which means we aren't trying to replicate all sorts of GIS processing in MapServer. All that said, in theory you could accomplish something vaguely similar in MapServer by writing a complicated mapscript script that for each village did a search for the nearest point and apply a zonation on that basis. But I wouldn't advise this approach for performance, complexity and inexactness reasons. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Jukka.Rahkonen at MMMTIKE.FI Tue Jan 22 07:14:10 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 22 Jan 2008 17:14:10 +0200 Subject: Different GetCapabilities and GetMap onlineresources in WMS Message-ID: <TUE.22.JAN.2008.171410.0200.JUKKA.RAHKONENMMMTIKE.FI> Hi, I have faced a WMS service that is configured to use different onlineresources for GetCapabilities, GetMap and GetFeatureInfo requests. I do not have a live access to the service yet so I have to ask: When Mapserver is used as a WMS client, does it parse the onlineresource URLs from the GetCapabilities document or is it just using the same base URL for all requests? Or is there a possibility to give this essential information with some metadata entry like "wms_GetMap_onlineresource"? -Jukka Rahkonen- From Tom.Kralidis at EC.GC.CA Tue Jan 22 07:22:54 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 22 Jan 2008 10:22:54 -0500 Subject: Different GetCapabilities and GetMap onlineresources in WMS In-Reply-To: A<CC197224AC75CE4DB23F739B16891B86E33C67@tikka.haapa.mmm.fi> Message-ID: <TUE.22.JAN.2008.102254.0500.TOM.KRALIDISEC.GC.CA> > I have faced a WMS service that is configured to use > different onlineresources for GetCapabilities, GetMap and > GetFeatureInfo requests. I do not have a live access to the > service yet so I have to ask: When Mapserver is used as a WMS > client, does it parse the onlineresource URLs from the > GetCapabilities document or is it just using the same base > URL for all requests? Or is there a possibility to give this > essential information with some metadata entry like > "wms_GetMap_onlineresource"? The latter. As a WMS Client, MapServer does not parse the remote WMS' Capabilities XML, but uses the CONNECTION directive within LAYER. That said, there are cases (not many, but there are) where OnlineResource's differ between operations. So, in this case, you would use the OnlineResource for GetMap as the CONNECTION in your mapfile. ..Tom From Jukka.Rahkonen at MMMTIKE.FI Tue Jan 22 07:34:03 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 22 Jan 2008 17:34:03 +0200 Subject: Different GetCapabilities and GetMap onlineresources in WMS Message-ID: <TUE.22.JAN.2008.173403.0200.JUKKA.RAHKONENMMMTIKE.FI> Kralidis,Tom [Burlington] >> I have faced a WMS service that is configured to use >> different onlineresources for GetCapabilities, GetMap and >> GetFeatureInfo requests. I do not have a live access to the >> service yet so I have to ask: When Mapserver is used as a WMS >> client, does it parse the onlineresource URLs from the >> GetCapabilities document or is it just using the same base >> URL for all requests? Or is there a possibility to give this >> essential information with some metadata entry like >> "wms_GetMap_onlineresource"? >The latter. As a WMS Client, MapServer does not parse the remote WMS' >Capabilities XML, but uses the CONNECTION directive within LAYER. That >said, there are cases (not many, but there are) where OnlineResource's >differ between operations. >So, in this case, you would use the OnlineResource for GetMap as the >CONNECTION in your mapfile. Oh, naturally. I was thinking about how to pass on the GetCapabilities info, but with cascading WMS it is me who is generating and sending that info for the clients. And if I remember right, GetFeatureInfo does not work with cascading WMS so it does not matter if Mapserver does not know where to send those requests. -Jukka- From David.Fawcett at STATE.MN.US Tue Jan 22 07:34:49 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 22 Jan 2008 09:34:49 -0600 Subject: featureitemquery help In-Reply-To: A<BAY141-F333B151C87601654DF6056EE3D0@phx.gbl> Message-ID: <TUE.22.JAN.2008.093449.0600.DAVID.FAWCETTSTATE.MN.US> Someone else had almost the same question recently. Check out this thread: http://lists.umn.edu/cgi-bin/wa?A2=ind0801&L=mapserver-users&T=0&F=&S=&P=12017 You have likely put the image tag in your main query template, if you move it to the header template or the footer template, it will only be displayed once for each query. If you are not seeing data values returned in your query, you may not have placed the column names in your query template, or they may not be specified properly. The column names may be case sensitive. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Alarcon Sent: Monday, January 21, 2008 10:46 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] featureitemquery help Hello I am new here and i am having some problems with this kind of query , when, I`m using html for the page and postgis to create the layers but when i made the query a lot of map display each time and dont show me the information please could you help me, Here is the html and the map files HTML <html> <head> <title>Busqueda por CANTON</title> <body> <form name="consulta" method=GET action="/cgi-bin/mapserv"> <input name="program" value="/cgi-bin/mapserv" type="hidden"> <input name="map" value="/home/test/testexpression.map" type="hidden"> <!-- parametros pasados en hidden --> <input name="mode" value="itemfeaturequery" type="hidden"> <input name="slayer" value="cantones" type="hidden"> <input name="qitem" value="non_canton" type="hidden"> <input type="hidden" name="mapshape" value=""> <input type="hidden" name="imgshape" value=""> <input type="hidden" name="imgbox" value=""> <input type="hidden" name="shapeindex" value=""> <!-- parametros de busqueda --> Seleccione un Cant&oacute;n: <br> <select name="qstring" > <option value="non_canton like 'LAGO AGRIO'">LAGO AGRIO</option> <option value="non_canton like 'SUCUMBIOS'">SUCUMBIOS</option> <option value="non_canton like 'GONZALO PIZARRO'">GONZALO PIZARRO</option> <option value="non_canton like 'CASCALES'">CASCALES</option> <option value="non_canton like 'SHUSHUFINDI'">SHUSHUFINDI</option> <option value="non_canton like 'CUYABENO'">CUYABENO</option> <option value="non_canton like 'PUTUMAYO'">PUTUMAYO</option></select> <p> <input value="BUSCAR" type="submit"> </form> </body> </html> MAP FILE MAP NAME test #MapFile testing possible bug on itemquery STATUS ON SIZE 800 600 EXTENT 836705.704288 9999113.003817 1143436.012879 10051849.051893 STATUS ON #SHAPEPATH "/home/mapdata/Pichincha/pruebas/POLITICO 2002/" IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "/srv/www/htdocs/ka-map/fontset.txt" ################################################# WEB IMAGEPATH "/srv/www/htdocs/temp/" IMAGEURL "/temp/" TEMPLATE "querytemplate.html" END # End of Web Interface ################################################# # Symbol para lineas gruesas SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol para puntos # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### #Symbol cuadrado base SYMBOL NAME "Cuadro" TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 0 0 END FILLED TRUE END ######################################## #SYMBOL circulo SYMBOL NAME "punkt" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END ########################################### querymap status ON SIZE 400 300 style SELECTED END ############################################# LAYER NAME cantones STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from cantones" LABELCACHE on TOLERANCE 0 METADATA qstring_validation_pattern '.' END LABELITEM "non_canton" TEMPLATE "querytemplate.html" CLASS NAME "None" OUTLINECOLOR 0 0 0 COLOR 187 212 201 END END #end layer ############################################################3 LAYER NAME parroquias STATUS DEFAULT TYPE line CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from parroquias" STATUS default #METADATA # qstring_validation_pattern '.' #END LABELITEM "parroquia" #DATA 'parroquial' CLASS NAME "None" #OUTLINECOLOR 100 0 0 COLOR 0 5 5 END END #end layer ################# LAYER NAME PROVINCIAS STATUS DEFAULT TYPE line #METADATA # qstring_validation_pattern '.' #END #LABELITEM "PARROQUIA" #DATA 'provincial' CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from provincial" CLASS NAME "None" #OUTLINECOLOR 100 0 0 COLOR 0 0 5 STYLE SYMBOL "BigLine" SIZE 4 #COLOR 50 212 51 OUTLINECOLOR 12 0 0 END END END #end layer ##################################### LAYER NAME "Escuelas" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from sucumbios" STATUS default TYPE point LABELITEM "plantel" LABELCACHE on HEADER "/srv/www/htdocs/head_plan.html" FOOTER "/srv/www/htdocs/foot_plan.html" CLASSITEM "nivel" METADATA qstring_validation_pattern '.' "queryable" "true" "searchfield" "canton" # "fields" "canton:CANTON,parroqui_1:PARROQUIA,nombre_esc:NOMBRE" END GROUP "PLANTELES" CLASS NAME "PREPRIMARIO" TEMPLATE "querytemplate.html" EXPRESSION "Preprimario" STYLE SYMBOL "cuadro" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "punkt" SIZE 8 COLOR 204 204 255 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END #label END #clase CLASS NAME "PRIMARIO" TEMPLATE "querytemplate.html" EXPRESSION "Primario" STYLE SYMBOL "cuadro" SIZE 10 COLOR 0 255 0 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "punkt" SIZE 8 COLOR 204 204 255 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END #label END # Clase CLASS NAME "MEDIO" TEMPLATE "querytemplate.html" EXPRESSION /^Medio/ STYLE SYMBOL "cuadro" SIZE 10 COLOR 0 0 255 OUTLINECOLOR 0 0 0 END STYLE SYMBOL "punkt" SIZE 8 COLOR 204 204 255 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END END CLASS NAME "S/Dato" TEMPLATE "querytemplate.html" EXPRESSION " " STYLE SYMBOL "Circle" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 50 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END END END #LAYER ########################################################################### END #end mapfile _________________________________________________________________ MSN Amor: busca tu ? naranja http://latam.msn.com/amor/ From jmckenna at DMSOLUTIONS.CA Tue Jan 22 08:12:37 2008 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 22 Jan 2008 11:12:37 -0500 Subject: loadMap(): Web application error. CGI variable "map" is not set. In-Reply-To: <15016852.post@talk.nabble.com> Message-ID: <TUE.22.JAN.2008.111237.0500.JMCKENNADMSOLUTIONS.CA> I had no problems trying this just now with the GMap add-on application for MS4W. You should do the same steps and check that it works with that same application: - download the "PHP/MapScript Sample Application" from http://www.maptools.org/ms4w/index.phtml?page=downloads.html - extract that at the same drive root as your existing ms4w install - edit /htdocs/gmap75_wms.map and remove the MAP parameter from its onlineresource metadata: "wms_onlineresource" "http://127.0.0.1/cgi-bin/mapserv.exe?" - edit /Apache/conf/httpd.conf and add: SetEnvIf Request_URI "/cgi-bin/mapserv.exe" MS_MAPFILE=/ms4w/apps/gmap/htdocs/gmap75_wms.map - restart apache - try a GetCapabilities request without the MAP parameter: http://127.0.0.1/cgi-bin/mapserv.exe?SERVICE=wms&VERSION=1.1.1&REQUEST=GetCapabilities -jeff cfb wrote: > Hi again > > > I'm having problems with the publication of a WMS. I've copied the > mapserv.exe and rename it in the cgi-bin folder of ms4w, and included > "SetEnvIf Request_URI "/cgi-bin/wms_landsat04.exe" > MS_MAPFILE=D:\ms4w\maps\map\wms-landsat04.map" > in the httpd.conf. > > I've changed the onlineresource of the header of the .map and also the data > of each layer object. Finally I've restarted the apache monitor... > > But it doesn't work. At the ms_error file I get: > loadMap(): Web application error. CGI variable "map" is not set. > > Does anyone knows a solution? > > Thanks!! > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From 2voodoo at GMX.DE Tue Jan 22 09:26:54 2008 From: 2voodoo at GMX.DE (Tom Kazimiers) Date: Tue, 22 Jan 2008 18:26:54 +0100 Subject: WMS: Can I change the order of the layers? In-Reply-To: <47933761.5050900@gmx.de> Message-ID: <TUE.22.JAN.2008.182654.0100.2VOODOOGMX.DE> Hi, I just started using MapServer and think I got the basics with mapfiles, WMS and so on. One question, regarding WMS, I could not find an answer to is how (or even if) I can change the order the layers appear in the result of GetMap(). I just created a mapfile with about 5 layers which do also appear in the returned XML file of GetCapabilities() and now I want to show them with GetMap() and maybe want to change the order the leayers appear (make the lowest come up, etc.). Is there a way without changing the whole mapfile to do this? Thanks in advance, Tom From project10 at PROJECT10.NET Tue Jan 22 09:27:18 2008 From: project10 at PROJECT10.NET (Shawn Gervais) Date: Tue, 22 Jan 2008 11:27:18 -0600 Subject: WMS: Can I change the order of the layers? In-Reply-To: <4796275E.3090005@gmx.de> Message-ID: <TUE.22.JAN.2008.112718.0600.PROJECT10PROJECT10.NET> > I just created a mapfile with about 5 layers which do also appear in the > returned XML file of GetCapabilities() and now I want to show them with > GetMap() and maybe want to change the order the leayers appear (make the > lowest come up, etc.). > Is there a way without changing the whole mapfile to do this? Yes - the draw order of layers is taken from the LAYERS= parameter in the GetMap request. The first layer in that list is drawn first, the second second, etc ... -Shawn From julieknoll at GMAIL.COM Tue Jan 22 10:35:35 2008 From: julieknoll at GMAIL.COM (Julie) Date: Tue, 22 Jan 2008 12:35:35 -0600 Subject: encoding html Message-ID: <TUE.22.JAN.2008.123535.0600.JULIEKNOLLGMAIL.COM> I tried that, but it's still doing the same thing. On Sun, 20 Jan 2008 10:20:41 -0600, Steve Lime <Steve.Lime at DNR.STATE.MN.US> wrote: >You need to do append _raw to the template substitution and no escaping will happen. E.g. [itemname_raw] > >Steve > >>>> Julie <julieknoll at GMAIL.COM> 01/18/08 1:11 PM >>> >Hi, > >I am using PHP mapscript and processTemplate() When one of the variable's >contains html code it encodes the characters, how do I stop this? > >Julie From espen.isaksen at GMAIL.COM Tue Jan 22 10:44:30 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Tue, 22 Jan 2008 19:44:30 +0100 Subject: proj=eqc with change of latitute Message-ID: <TUE.22.JAN.2008.194430.0100.ESPEN.ISAKSENGMAIL.COM> Hi! This question originates from this earlier thread: http://lists.umn.edu/cgi-bin/wa?A2=ind0801&L=mapserver-users&D=1&T=0&P=37923 But since I learned a lot during that thread and because the thread is full of all kinds of questions now I would like to ask a very specific question again in a new thread. I have also checked out the archives at this list and the PROJ list. I have found one similar question on this list in 2005: http://lists.umn.edu/cgi-bin/wa?A2=ind0504&L=MAPSERVER-USERS&P=R75005 Here is my question: I have set up a mapfile with projection parameters like this: EXTENT 10.6661 59.9155 10.6824 59.9213 PROJECTION "init:epsg:4326" END From nospam420 at YAHOO.COM Tue Jan 22 10:46:01 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 22 Jan 2008 10:46:01 -0800 Subject: one way roads, drawing spaced arrows In-Reply-To: <15006747.post@talk.nabble.com> Message-ID: <TUE.22.JAN.2008.104601.0800.NOSPAM420YAHOO.COM> thomas bonfort wrote: > > try > GAP -5 > > regards, > thomas > Indeed, GAP -5 preserves the angle properly, while GAP 5 does not. Is this the intended behavior, or just a workaround given some bug? I can't find anything in the documentation that suggest this. I would have thought that a negative gap would have flipped everything around in the opposite direction. From http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pages --- begin --- GAP [int] Given in pixels. This defines a distance between symbols for TrueType lines. As of MapServer 5.0 this also applies to PixMap symbols. When drawing the symbol along a line segment, a negative GAP will will add 180 degress to the angle. The TrueType and PixMap symbols are always oriented along the line. A GAP of 0 (the default value) will cause MapServer to use the symbol as a brush to draw the line. --- end --- - Rich -- View this message in context: http://www.nabble.com/one-way-roads%2C-drawing-spaced-arrows-tp15006747p15025423.html Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas.bonfort at GMAIL.COM Tue Jan 22 11:05:41 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 22 Jan 2008 20:05:41 +0100 Subject: one way roads, drawing spaced arrows In-Reply-To: <15025423.post@talk.nabble.com> Message-ID: <TUE.22.JAN.2008.200541.0100.THOMAS.BONFORTGMAIL.COM> you're right the documentation is a bit off. for line symbology, the rule is GAP>0: symbols face north (or rotated wrt north by their ANGLE parameter) GAP =0: symbol is used to 'texture' the line (useful with pixmap or vector symbols) GAP<0: symbol is oriented according to the line direction (this can also be modified with the ANGLE parameter, eg to rectify an arrow pointing 90 degrees off) regards, thomas On Jan 22, 2008 7:46 PM, rich.fromm <nospam420 at yahoo.com> wrote: > thomas bonfort wrote: > > > > try > > GAP -5 > > > > regards, > > thomas > > > > Indeed, GAP -5 preserves the angle properly, while GAP 5 does not. > > Is this the intended behavior, or just a workaround given some bug? I can't > find anything in the documentation that suggest this. I would have thought > that a negative gap would have flipped everything around in the opposite > direction. > > From > http://mapserver.gis.umn.edu/docs/reference/symbology/referencemanual-all-pages > > --- begin --- > GAP [int] > > Given in pixels. This defines a distance between symbols for TrueType > lines. As of MapServer 5.0 this also applies to PixMap symbols. > > When drawing the symbol along a line segment, a negative GAP will will > add 180 degress to the angle. The TrueType and PixMap symbols are always > oriented along the line. A GAP of 0 (the default value) will cause MapServer > to use the symbol as a brush to draw the line. > --- end --- > > - Rich > > -- > View this message in context: http://www.nabble.com/one-way-roads%2C-drawing-spaced-arrows-tp15006747p15025423.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > From nospam420 at YAHOO.COM Tue Jan 22 11:30:19 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 22 Jan 2008 11:30:19 -0800 Subject: one way roads, drawing spaced arrows In-Reply-To: <d2b988930801221105l3413a783p39241b71fa1d6461@mail.gmail.com> Message-ID: <TUE.22.JAN.2008.113019.0800.NOSPAM420YAHOO.COM> tbonfort wrote: > > you're right the documentation is a bit off. > for line symbology, the rule is > GAP>0: symbols face north (or rotated wrt north by their ANGLE parameter) > GAP =0: symbol is used to 'texture' the line (useful with pixmap or > vector symbols) > GAP<0: symbol is oriented according to the line direction (this can > also be modified with the ANGLE parameter, eg to rectify an arrow > pointing 90 degrees off) > Okay, that indeed worked for a truetype symbol. Thanks. But do you know about a vector symbol? That is slightly my preference here, but I can't get any spacing to work. If I try PATTERN (formerly STYLE, I believe), it has no effect. The symbol is repeated as before. If I instead try GAP, anything (either positive or negative) other than 0 (the presumed default) causes the symbol to not even be drawn at all. - Rich -- View this message in context: http://www.nabble.com/one-way-roads%2C-drawing-spaced-arrows-tp15006747p15026218.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ed at TOPOZONE.COM Tue Jan 22 12:01:21 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 22 Jan 2008 15:01:21 -0500 Subject: proj=eqc with change of latitute In-Reply-To: A<a4cd3760801221044xefb5fd6xa23536886f43ce6f@mail.gmail.com> Message-ID: <TUE.22.JAN.2008.150121.0500.EDTOPOZONE.COM> Espen - Those EXTENT values look odd. Your projection's X-origin is still at 0 degrees longitude. If your X coordinates are 10 degrees East, then the projected coordinates (in meters) shouldn't be about 37,000. That would mean you're about 37 km east of the prime meridian, and you're not. At 60 degrees North latitude one degree of longitude is 55.8 km, so if you're 10 degrees East you should have an X coordinate of about 558,000 meters (a little more, since you're more than 10 degrees East). When I use PROJ or CS2CS to project your values I get exactly the same Y values but very different X values: cs2cs +from +init=epsg:4326 +to +proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +no_defs +units=m 10.6661 59.9155 593672.41 6669762.95 0.00 10.6824 59.9213 594579.66 6670408.60 0.00 These X values seem reasonable for your projection. The command line you give for PROJ shouldn't actually work as given - the quotes get in the way. You should be using a command like the one above to CS2CS, or: proj +proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +no_defs +units=m for the conversion. I'm a little puzzled as to how you're getting those results. Could you try both the PROJ and CS2CS command lines above to double-check, and report the version of PROJ you're using? There's probably something obvious here but I'm not seeing it. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen Sent: Tuesday, January 22, 2008 1:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] proj=eqc with change of latitute Hi! This question originates from this earlier thread: http://lists.umn.edu/cgi-bin/wa?A2=ind0801&L=mapserver-users&D=1&T=0&P=37923 But since I learned a lot during that thread and because the thread is full of all kinds of questions now I would like to ask a very specific question again in a new thread. I have also checked out the archives at this list and the PROJ list. I have found one similar question on this list in 2005: http://lists.umn.edu/cgi-bin/wa?A2=ind0504&L=MAPSERVER-USERS&P=R75005 Here is my question: I have set up a mapfile with projection parameters like this: EXTENT 10.6661 59.9155 10.6824 59.9213 PROJECTION "init:epsg:4326" END From paul_pag00 at HOTMAIL.COM Tue Jan 22 12:17:10 2008 From: paul_pag00 at HOTMAIL.COM (Pa=?ISO-8859-1?Q?=C3=BAl_A.?=) Date: Tue, 22 Jan 2008 14:17:10 -0600 Subject: itemnquery problems Message-ID: <TUE.22.JAN.2008.141710.0600.PAUL_PAG00HOTMAIL.COM> Hello Friend im ahve the same probelm did you could show the information of your query, i mean the data of the database and the graphics? From thomas.bonfort at GMAIL.COM Tue Jan 22 13:25:25 2008 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Tue, 22 Jan 2008 22:25:25 +0100 Subject: one way roads, drawing spaced arrows In-Reply-To: <15026218.post@talk.nabble.com> Message-ID: <TUE.22.JAN.2008.222525.0100.THOMAS.BONFORTGMAIL.COM> Pattern has no effect on symbology, it's only used for drawing dashed solid lines. vector should show up however. what's your symbol definition and your corresponding STYLE block ? tb On Jan 22, 2008 8:30 PM, rich.fromm <nospam420 at yahoo.com> wrote: > tbonfort wrote: > > > > you're right the documentation is a bit off. > > for line symbology, the rule is > > GAP>0: symbols face north (or rotated wrt north by their ANGLE parameter) > > GAP =0: symbol is used to 'texture' the line (useful with pixmap or > > vector symbols) > > GAP<0: symbol is oriented according to the line direction (this can > > also be modified with the ANGLE parameter, eg to rectify an arrow > > pointing 90 degrees off) > > > > Okay, that indeed worked for a truetype symbol. Thanks. > > But do you know about a vector symbol? That is slightly my preference here, > but I can't get any spacing to work. If I try PATTERN (formerly STYLE, I > believe), it has no effect. The symbol is repeated as before. If I instead > try GAP, anything (either positive or negative) other than 0 (the presumed > default) causes the symbol to not even be drawn at all. > > - Rich > > -- > View this message in context: http://www.nabble.com/one-way-roads%2C-drawing-spaced-arrows-tp15006747p15026218.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > From alan.hale at BTCLICK.COM Tue Jan 22 13:40:48 2008 From: alan.hale at BTCLICK.COM (Alan Hale) Date: Tue, 22 Jan 2008 21:40:48 +0000 Subject: Controlling transparency - php mapscript In-Reply-To: <d2b988930801221325r2a9f4bb6ofb83af7c689f453e@mail.gmail.com> Message-ID: <TUE.22.JAN.2008.214048.0000.ALAN.HALEBTCLICK.COM> Hi I've just learned how to set the transparency for a layer - $myLayer->set("transparency", 20); But what I really want to do is set a semi-transparent fill for square polygons that I'm drawing on the fly from a MySQL database, but keep the outline of the squares opaque. Is this possible - and how? Many thanks Alan Hale Aberystwyth Wales From David.Fawcett at STATE.MN.US Tue Jan 22 13:45:43 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 22 Jan 2008 15:45:43 -0600 Subject: Controlling transparency - php mapscript In-Reply-To: A<479662E0.5040609@btclick.com> Message-ID: <TUE.22.JAN.2008.154543.0600.DAVID.FAWCETTSTATE.MN.US> I believe that at this time, transparency is only set at the layer level. In the future, there will hopefully be class-level transparency. I would guess that the only way to accomplish this would be to create two layers, one for the outline and one for the semi-transparent fill. You could then group them. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Alan Hale Sent: Tuesday, January 22, 2008 3:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Controlling transparency - php mapscript Hi I've just learned how to set the transparency for a layer - $myLayer->set("transparency", 20); But what I really want to do is set a semi-transparent fill for square polygons that I'm drawing on the fly from a MySQL database, but keep the outline of the squares opaque. Is this possible - and how? Many thanks Alan Hale Aberystwyth Wales From ed at TOPOZONE.COM Tue Jan 22 14:05:51 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 22 Jan 2008 17:05:51 -0500 Subject: Ideal web server configuration In-Reply-To: <47965EB0.3020203@alumni.uwaterloo.ca> Message-ID: <TUE.22.JAN.2008.170551.0500.EDTOPOZONE.COM> Mike - Please always reply to the list; there are lots of other people out there with more database expertise than I! "RAID" isn't just one thing - RAID-1, RAID-5, RAID-10, etc. all have very different goals and features/disadvantages. I'm not actually recommending anything for your database; first, I don't have enough information on your application to do that, and while I certainly have opinions I don't have a broad range of experience in PostgreSQL/PostGIS applications. I know how to make MINE work well, but not everyone's application is like mine... There are quite a few folks on the list with PostgreSQL/PostGIS expertise, so if you can describe your usage of those applications in specific detail you will make it easier for us to give advice. For example "frequent queries/updates" means very different things to different people - is "frequent" one update every day, or one per minute? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: Mike Leahy [mailto:mgl.gis at gmail.com] On Behalf Of Mike Leahy Sent: Tuesday, January 22, 2008 4:23 PM To: Ed McNierney Subject: Re: [UMN_MAPSERVER-USERS] Ideal web server configuration Ed, Thanks for the feedback. I'm still not entirely clear on what disk configuration you would recommend for the database. From what you're saying, RAID is generally not so good for scenarios that involve many writes to the disk...am I understanding this correctly? If so, would it make sense to use a RAID setup for storage of static data (e.g., system files, imagery, etc.), plus an additional disk to hold the database and other read-write resources (e.g., PHP session files etc.)? Ideally, I figure we would want different components of our application to be arranged on separate servers...but I don't think that's going to be an option in our case. Regards, Mike Ed McNierney wrote: > Mike - > > You've gotten good advice so far, but if you're running PostgreSQL/PostGIS on the same machine, a lot depends on what "frequent" means in "frequent queries/updates". As far as your GIS data goes, MapServer is basically a read-only application, and it's relatively easy to design a good disk subsystem (the slowest component in your server) for that application. A good disk configuration for a highly interactive database with reads AND writes happening "frequently" is much more complicated, and harder (but more important) to get right. > > Just as an example data point, I have long used 3Ware ATA RAID controllers with 8-disk RAID-5 arrays for raster data storage. These provide an inexpensive solution with excellent read performance, and I essentially use those arrays as read-only volumes. Write performance is much poorer on those volumes, and simultaneous read/write performance - as when I need to do a data update while a volume is in production - is TERRIBLE. The writes are prioritized and they work OK but reading almost comes to a standstill. None of this is surprising, and it's an appropriate design compromise. But my PostgreSQL/PostGIS server does NOT use that same disk architecture <g>! > > I never generalize, but I would not be surprised to find that the task of optimizing your hardware for your database application will do everything you need to optimize your hardware for your entire application suite. Pay attention to that database first. > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mike Leahy > Sent: Monday, January 21, 2008 7:23 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Ideal web server configuration > > Hello list, > > I'm looking at ordering a new web server for the office I'm in, and I'm > wondering if anyone has any suggestions regarding the hardware that I > should choose. Normally, I've worked with hardware that was already > available to me, so I've never really had to put consideration into this > upfront. I know this may be a bit off-topic for this list, but I figure > people on this list will likely have some experience with this. > > The application we're working on will involve multiple simultaneous > users interacting with a chameleon-based map interface. The > communication between the client and server will generally involve AJAX > requests and downloading of updated map images generated by MapServer. > On the server side, we'll be running Apache, PHP (with MapScript), and a > PostgreSQL/PostGIS server that will be receiving frequent > queries/updates. There will likely be some high resolution imagery, as > well as a variety of vector layers used in the map that is displayed. > > Given that I have a relatively modest budget to work with, what I'd > really like to know is how I should prioritize the different hardware > specs that I can choose from (e.g., multiple CPUs/core, RAM, SATA/SAS > and/or RAID disk configurations, etc.). > > Thanks in advance for any suggestions, > Mike > From espen.isaksen at GMAIL.COM Tue Jan 22 14:16:44 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Tue, 22 Jan 2008 23:16:44 +0100 Subject: proj=eqc with change of latitute In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988815@ptolemy.topozone.com> Message-ID: <TUE.22.JAN.2008.231644.0100.ESPEN.ISAKSENGMAIL.COM> You are right, it was quite obvious. First of all, I made an error in my e-mail since I was actually using lon_0=10 and not 0. But my main problem was that proj was returning a wrong y-coordinate. The error is the same as I mentioned in my first e-mail. Using cs2cs instead gave me the correct coordinate, and those coordinates makes my map correct :-) Thanks for all you help Ed! Espen On 22/01/2008, Ed McNierney <ed at topozone.com> wrote: > Espen - > > Those EXTENT values look odd. Your projection's X-origin is still at 0 degrees longitude. If your X coordinates are 10 degrees East, then the projected coordinates (in meters) shouldn't be about 37,000. That would mean you're about 37 km east of the prime meridian, and you're not. At 60 degrees North latitude one degree of longitude is 55.8 km, so if you're 10 degrees East you should have an X coordinate of about 558,000 meters (a little more, since you're more than 10 degrees East). > > When I use PROJ or CS2CS to project your values I get exactly the same Y values but very different X values: > > cs2cs +from +init=epsg:4326 +to +proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +no_defs +units=m > 10.6661 59.9155 > 593672.41 6669762.95 0.00 > 10.6824 59.9213 > 594579.66 6670408.60 0.00 > > These X values seem reasonable for your projection. The command line you give for PROJ shouldn't actually work as given - the quotes get in the way. You should be using a command like the one above to CS2CS, or: > > proj +proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +no_defs +units=m > > for the conversion. I'm a little puzzled as to how you're getting those results. Could you try both the PROJ and CS2CS command lines above to double-check, and report the version of PROJ you're using? There's probably something obvious here but I'm not seeing it. > > - Ed > > Ed McNierney > Chief Mapmaker > Demand Media / TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > Phone: +1 (978) 251-4242 > Fax: +1 (978) 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen > Sent: Tuesday, January 22, 2008 1:45 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] proj=eqc with change of latitute > > Hi! > > This question originates from this earlier thread: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0801&L=mapserver-users&D=1&T=0&P=37923 > > But since I learned a lot during that thread and because the thread is > full of all kinds of questions now I would like to ask a very specific > question again in a new thread. > > I have also checked out the archives at this list and the PROJ list. I > have found one similar question on this list in 2005: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0504&L=MAPSERVER-USERS&P=R75005 > > Here is my question: > > I have set up a mapfile with projection parameters like this: > > EXTENT 10.6661 59.9155 10.6824 59.9213 > PROJECTION > "init:epsg:4326" > END > > From this mapfile I get a map over an small area in Oslo, Norway(I > cannot publish the data since the data is not free) > > Then I change my map file to this: > > EXTENT 37074.96 6669762.95 37982.21 6670408.60 > PROJECTION > "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 > +datum=WGS84 +no_defs +units=m" > END > > The extent is calculated by using PROJ like this: > proj "+proj=eqc +lat_ts=60 +lon_0=0 +x_0=0 +y_0=0 +ellps=WGS84 > +datum=WGS84 +no_defs +units=m" < test.txt > > where test.txt consists of the geographic coordinates in my first map file. > > This mapfile creates a map about 18000 meters north of my first > mapfile. This is similar to the post from 2005. Longitude seems to be > correct. > > I do not understand why Mapserver does not create approximatly the > same map in both map files? Is it not possible to use PROJ to convert > coordinates like this? If I set lat_ts=0 I do of course get the same > map, but that is not the projection I would like to use. > > And if I cannot do it like this, how can I calculate the shift in the > y-coordinate(about 18000 meters in this example)? > > Kind regards, > Espen > From maurerj at NSIDC.ORG Tue Jan 22 14:30:11 2008 From: maurerj at NSIDC.ORG (John Maurer) Date: Tue, 22 Jan 2008 16:30:11 -0600 Subject: Anybody successfully using Perl MapScript for OGC services? Message-ID: <TUE.22.JAN.2008.163011.0600.MAURERJNSIDC.ORG> Dear MapServer-Users, Is anybody successfully using Perl MapScript to provide OGC services (WMS, WFS, and WCS)? I just read online that "there is currently no wrapping for binary buffers so you cannot call msIO_getStdoutBufferBytes(), and so cannot manipulate binary results." http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript/#perl-example Does this mean that you cannot produce image files (PNG, GIF, etc.) for WMS nor GeoTIFF files for WCS using Perl MapScript?? Thanks for any help you can provide! Cheers, John Maurer -- John Maurer Web/Database Applications Engineer National Snow and Ice Data Center (NSIDC) University of Colorado at Boulder http://cires.colorado.edu/~maurerj +1-303-735-5316 ------------------------------------ "Without geography, you're nowhere!" From project10 at PROJECT10.NET Tue Jan 22 14:43:16 2008 From: project10 at PROJECT10.NET (Shawn Gervais) Date: Tue, 22 Jan 2008 16:43:16 -0600 Subject: Anybody successfully using Perl MapScript for OGC services? In-Reply-To: <LISTSERV%200801221630114176.F8D4@LISTS.UMN.EDU> Message-ID: <TUE.22.JAN.2008.164316.0600.PROJECT10PROJECT10.NET> John Maurer wrote: > Does this mean that you cannot produce image files (PNG, GIF, etc.) for WMS > nor GeoTIFF files for WCS using Perl MapScript?? Thanks for any help you can > provide! No, this doesn't mean that - you just can't fetch the image into a buffer and manipulate it. You can, however, just dump the image to stdout (msIO_ioGetStdoutBufferBytes()). This is what I do with my WxS wrappers usign mapscript. -Shawn From lee_keel at TRIMBLE.COM Tue Jan 22 15:37:02 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Tue, 22 Jan 2008 18:37:02 -0500 Subject: Use of multiple sid files Message-ID: <TUE.22.JAN.2008.183702.0500.LEE_KEELTRIMBLE.COM> Just wanted to ask the list for some opinions on what the best approach would be: Problem: I am serving aerial images for areas around larger cities. I am using Tiger shapes for the area around where I don't have images. These images are several hundred gig worth of sid files that I am serving through tilecache. So, once I seed the cache, these files won't be accessed again until I get new sid files. What I am currently doing: I am currently using a tool that creates a bunch of batch files (http://sourceforge.net/projects/batchsplitter/). These batch files use gdal_translate and gdaladdo to create individual tiled tif files, then using gdaltindex and shptree I create an index shape file for the tifs. As you can imagine, this is very costly in space and has grown to have some complications. Namely that there are holes in my overall shape file but there should be images available. Just curious: I was wondering if I could do something with tile4ms, but I don't know anything about it and wasn't sure it would be the solution I was looking for. I am open to any suggestions regarding the best way to serve these images. Thanks, Lee Keel From nospam420 at YAHOO.COM Tue Jan 22 16:26:59 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Tue, 22 Jan 2008 16:26:59 -0800 Subject: one way roads, drawing spaced arrows In-Reply-To: <d2b988930801221325r2a9f4bb6ofb83af7c689f453e@mail.gmail.com> Message-ID: <TUE.22.JAN.2008.162659.0800.NOSPAM420YAHOO.COM> tbonfort wrote: > > vector should show up however. > what's your symbol definition and your corresponding STYLE block ? > using a truetype symbol, i have something like the following, thanks to your previous tip: --- begin 1a --- SYMBOL NAME "fwdArrowFont" TYPE truetype # XXX eventually we should use some arrow specific font FONT verdana-bold CHARACTER ">" GAP -10 END --- end 1a --- this works, and has some spacing between the "arrows", as desired. if i switch to using a vector symbol, like the following: --- begin 2a --- SYMBOL NAME 'fwdArrow' TYPE vector POINTS 4 1 3 0 -99 -99 4 1 3 2 -99 -99 4 1 0 1 END END --- end 2a --- this sort of works, but the arrows touch each other, with no spacing. if i add a negative GAP to the vector symbol, like i did for the truetype: --- begin 2b --- SYMBOL NAME 'fwdArrow' TYPE vector POINTS 4 1 3 0 -99 -99 4 1 3 2 -99 -99 4 1 0 1 END GAP -10 END --- end 2b --- then no symbols show up at all. same result (no symbols) if i change to GAP 10. if i change to GAP 0, the result is the same as having no GAP at all (symbols are present, with no spacings). the corresponding STYLE blocks are this: --- begin 1b --- STYLE COLOR 102 153 204 SIZE 5 SYMBOL 'fwdArrowFont' END --- end 1b --- and this: --- begin 2c --- STYLE COLOR 102 153 204 SIZE 5 SYMBOL 'fwdArrow' END --- end 2c --- respectively. - rich -- View this message in context: http://www.nabble.com/one-way-roads%2C-drawing-spaced-arrows-tp15006747p15032264.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Jacob.Delfos at MAUNSELL.COM Tue Jan 22 18:28:33 2008 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Wed, 23 Jan 2008 11:28:33 +0900 Subject: Queries on values ending in ".0": 10 != 10.0 Message-ID: <WED.23.JAN.2008.112833.0900.JACOB.DELFOSMAUNSELL.COM> Hi List, Simple question: how come that in a mapserver query (php function queryByAttributes), the following does not hold true: 2400=2400.0 (does not return a result. Only way to get this value is searching for 2400.0) In other words, if the value stored in the shapefile's DBF is 2400.0 (stored as a number with 1 decimal), searching for 2400 will not return that value. I guess you could say there is a difference of precision, but one could argue that the value is exactly the same. Is there a way around this? I do not feel like using "string contains", because this gives undesirable results (for example, searching for "2" will return "2, 200, 232, 5562, etc). Regards, Jacob Jacob Delfos | GIS Analyst Maunsell Australia New Zealand Asia 629 Newcastle St, Leederville, Western Australia 6007 PO Box 81, Leederville, Western Australia 6902 P +61 8 9281 6185 F +61 8 9281 6298 E jacob.delfos at maunsell.com www.maunsell.com <http://www.maunsell.com/> This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/e1b931e5/attachment.htm> From sylvain.perrinel at AGRICULTURE.GOUV.FR Wed Jan 23 06:43:17 2008 From: sylvain.perrinel at AGRICULTURE.GOUV.FR (Sylvain Perrinel) Date: Wed, 23 Jan 2008 08:43:17 -0600 Subject: Mapscript and dynamic charting capability Message-ID: <WED.23.JAN.2008.084317.0600.SYLVAIN.PERRINELAGRICULTURE.GOUV.FR> Hello, I was testing dynamic charting with phpmapscript. The constant 'MS_LAYER_CHART' and the directives 'CHART_SIZE' and 'CHART_TYPE' work well. But I've a problem with the keyword 'SIZE' in the style properties. You can put for this parameter an attribute of your layer like : SIZE [attribute]. However, the parameter "size" in phpmascript is defined as a long, not a string. So, mapscript does not want to write the parameter SIZE in the mapfile. Is anybody meet this problem and resolve it ? Or is it a bug of mapscript ? I didn't find anything about that on mapserver site. Thanks, PS : I've used this How-To located at this page http://mapserver.gis.umn.edu/docs/howto/dynamic-charting From dmorissette at MAPGEARS.COM Wed Jan 23 07:06:32 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 23 Jan 2008 10:06:32 -0500 Subject: Mapscript and dynamic charting capability In-Reply-To: <LISTSERV%200801230843176980.0121@LISTS.UMN.EDU> Message-ID: <WED.23.JAN.2008.100632.0500.DMORISSETTEMAPGEARS.COM> Sylvain Perrinel wrote: > > But I've a problem with the keyword 'SIZE' in the style properties. You can > put for this parameter an attribute of your layer like : SIZE [attribute]. > However, the parameter "size" in phpmascript is defined as a long, not a > string. So, mapscript does not want to write the parameter SIZE in the mapfile. > You need to use $style->setBinding(MS_STYLE_BINDING_SIZE, 'attribute') to bind the size to an attribute. The PHP MapScript docs on the website haven't been updated with those new methods added in 5.0 yet so I have added a comment in the docs about them at: http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/styleobj int setBinding(const stylebinding, string value) Set the attribute binding for a specfiled style property. Returns true on success. Example: $oStyle->setbinding(MS_STYLE_BINDING_COLOR, "FIELD_NAME_COLOR"); This would bind the color parameter with the data (ie will extract the value of the color from the field called "FIELD_NAME_COLOR" int removeBinding(const stylebinding) Remove the attribute binding for a specfiled style property. Returns true on success. Example: $oStyle->removebinding(MS_STYLE_BINDING_COLOR); Daniel -- Daniel Morissette http://www.mapgears.com/ From earevaloch at GMAIL.COM Wed Jan 23 08:06:39 2008 From: earevaloch at GMAIL.COM (=?ISO-8859-1?Q?Eduardo_Ar=E9valo?=) Date: Wed, 23 Jan 2008 11:06:39 -0500 Subject: Browse mistake Message-ID: <WED.23.JAN.2008.110639.0500.EAREVALOCHGMAIL.COM> Hola: Get in the Browse : http://10.1.6.18/cgi-bin/mapserv?map=basico_23_01_08.map&layer=limites&mode=map Leaves this error: msLoadMap(): Premature End-of-File. Help please -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/9db5dae9/attachment.htm> From lee_keel at TRIMBLE.COM Wed Jan 23 10:08:59 2008 From: lee_keel at TRIMBLE.COM (Lee Keel) Date: Wed, 23 Jan 2008 13:08:59 -0500 Subject: Use of multiple sid files Message-ID: <WED.23.JAN.2008.130859.0500.LEE_KEELTRIMBLE.COM> I have figured out that I cannot use tile4ms directly with the sid files, but can I use it to create an index of an index file? In other words: can I create an index shape file for a group of the sid files then use tile4ms to create a "master" index shape file with group of the sid shape files in it? Thanks in advance for any suggestions, Lee Keel ________________________________ From: UMN MapServer Users List on behalf of Lee Keel Sent: Tue 1/22/2008 5:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Use of multiple sid files Just wanted to ask the list for some opinions on what the best approach would be: Problem: I am serving aerial images for areas around larger cities. I am using Tiger shapes for the area around where I don't have images. These images are several hundred gig worth of sid files that I am serving through tilecache. So, once I seed the cache, these files won't be accessed again until I get new sid files. What I am currently doing: I am currently using a tool that creates a bunch of batch files (http://sourceforge.net/projects/batchsplitter/). These batch files use gdal_translate and gdaladdo to create individual tiled tif files, then using gdaltindex and shptree I create an index shape file for the tifs. As you can imagine, this is very costly in space and has grown to have some complications. Namely that there are holes in my overall shape file but there should be images available. Just curious: I was wondering if I could do something with tile4ms, but I don't know anything about it and wasn't sure it would be the solution I was looking for. I am open to any suggestions regarding the best way to serve these images. Thanks, Lee Keel From ritesh.linux at GMAIL.COM Wed Jan 23 10:47:32 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 23 Jan 2008 10:47:32 -0800 Subject: Map file with 35,000+ Lines... management issue Message-ID: <WED.23.JAN.2008.104732.0800.RITESH.LINUXGMAIL.COM> Dear Readers, I have developed a map file with more than 35,000 Lines. Its size will grow by double/triple in next few months. Now, I am trying to tune my map file by removing unwanted lines. Still, I am bit confused about its maintenance. Please throw some lights over writing map files by following best practices. Thanks in advance. Regards, Ritz -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issue-tp15048892p15048892.html Sent from the Mapserver - User mailing list archive at Nabble.com. From nospam420 at YAHOO.COM Wed Jan 23 10:54:25 2008 From: nospam420 at YAHOO.COM (rich.fromm) Date: Wed, 23 Jan 2008 10:54:25 -0800 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <15048892.post@talk.nabble.com> Message-ID: <WED.23.JAN.2008.105425.0800.NOSPAM420YAHOO.COM> riteshambastha wrote: > > I have developed a map file with more than 35,000 Lines. > > Please throw some lights over writing map files by following best > practices. > Have you considered more than one map file, depending on the circumstances, each one a bit smaller, rather than one huge map file? It's hard to say how appropriate that may or may not be without knowing more about your circumstances, but that's what I have. - Rich -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issue-tp15048892p15048896.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at GMAIL.COM Wed Jan 23 10:59:24 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 23 Jan 2008 10:59:24 -0800 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <15048896.post@talk.nabble.com> Message-ID: <WED.23.JAN.2008.105924.0800.RITESH.LINUXGMAIL.COM> Thanks Rich, Yeah, even I am trying to solve this issue by separating the huge map file with smaller chunks of many map files. Am bit confused if it will lead to performance issues. Warm Regards, Ritz rich.fromm wrote: > > > riteshambastha wrote: >> >> I have developed a map file with more than 35,000 Lines. >> >> Please throw some lights over writing map files by following best >> practices. >> > > Have you considered more than one map file, depending on the > circumstances, each one a bit smaller, rather than one huge map file? > > It's hard to say how appropriate that may or may not be without knowing > more about your circumstances, but that's what I have. > > - Rich > > -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issue-tp15048892p15048905.html Sent from the Mapserver - User mailing list archive at Nabble.com. From David.Fawcett at STATE.MN.US Wed Jan 23 11:07:33 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 23 Jan 2008 13:07:33 -0600 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: A<15048905.post@talk.nabble.com> Message-ID: <WED.23.JAN.2008.130733.0600.DAVID.FAWCETTSTATE.MN.US> Everything is a performance issue, the question is, 'Is the performance acceptable to you?'... You have built a pretty massive map file. I would look at stripping it down to only what is needed for a particular application. For questions about how to improve performance, you may want to look at: http://mapserver.gis.umn.edu/docs/howto/mapfiletuning David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of riteshambastha Sent: Wednesday, January 23, 2008 12:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... management issue Thanks Rich, Yeah, even I am trying to solve this issue by separating the huge map file with smaller chunks of many map files. Am bit confused if it will lead to performance issues. Warm Regards, Ritz rich.fromm wrote: > > > riteshambastha wrote: >> >> I have developed a map file with more than 35,000 Lines. >> >> Please throw some lights over writing map files by following best >> practices. >> > > Have you considered more than one map file, depending on the > circumstances, each one a bit smaller, rather than one huge map file? > > It's hard to say how appropriate that may or may not be without > knowing more about your circumstances, but that's what I have. > > - Rich > > -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issu e-tp15048892p15048905.html Sent from the Mapserver - User mailing list archive at Nabble.com. From espen.isaksen at GMAIL.COM Wed Jan 23 11:26:10 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Wed, 23 Jan 2008 20:26:10 +0100 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBA0A@s-sp22.pca.state.mn.us> Message-ID: <WED.23.JAN.2008.202610.0100.ESPEN.ISAKSENGMAIL.COM> Regarding this, is it possible to "include" a map file inside another map file? Espen On 23/01/2008, Fawcett, David <David.Fawcett at state.mn.us> wrote: > Everything is a performance issue, the question is, 'Is the performance > acceptable to you?'... > > You have built a pretty massive map file. I would look at stripping it > down to only what is needed for a particular application. > > For questions about how to improve performance, you may want to look at: > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of riteshambastha > Sent: Wednesday, January 23, 2008 12:59 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... > management issue > > > Thanks Rich, > > Yeah, even I am trying to solve this issue by separating the huge map > file with smaller chunks of many map files. Am bit confused if it will > lead to performance issues. > > Warm Regards, > Ritz > > > > rich.fromm wrote: > > > > > > riteshambastha wrote: > >> > >> I have developed a map file with more than 35,000 Lines. > >> > >> Please throw some lights over writing map files by following best > >> practices. > >> > > > > Have you considered more than one map file, depending on the > > circumstances, each one a bit smaller, rather than one huge map file? > > > > It's hard to say how appropriate that may or may not be without > > knowing more about your circumstances, but that's what I have. > > > > - Rich > > > > > > -- > View this message in context: > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issu > e-tp15048892p15048905.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From iansgis at GMAIL.COM Wed Jan 23 11:26:41 2008 From: iansgis at GMAIL.COM (Ian) Date: Wed, 23 Jan 2008 11:26:41 -0800 Subject: Tiff world file question Message-ID: <WED.23.JAN.2008.112641.0800.IANSGISGMAIL.COM> SRTM3 data (.img format w/index) for a basemap is slow, so to speed up our draw times I'm using a script to make smaller tiles of this data. My script writes the images to .tif format and works, but I also need to generate tiff world files to maintain spatial reference. The definition I found for the .tfw format is: First row is x-pixel resolution Second and third rows are "rotational components" but are set to zero in the case of an unrotated map. The fourth row is the y-pixel resolution. The negative sign indicates that the image y-axis is positive down which is the opposite from real world coordinates. The 5th and 6th rows are the Easting and Northing of the upper left pixel (0,0 in image coordinates) So for SRTM3 data which is 90m resolution I am creating a .tfw file like: 90.00 0.00 0.00 -90.00 ??? ??? The last two rows are confusing me. Do I need to calculate the pixel position of the upper left corner of each new tile with respect to the pixels of ALL SRTM3 files? That calculation could be problematic. Also if there is another tiling solution that maintains spatial reference I'm all ears. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/47097015/attachment.htm> From Tom.Kralidis at EC.GC.CA Wed Jan 23 11:28:35 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 23 Jan 2008 14:28:35 -0500 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: A<a4cd3760801231126l3d043c7bl88580bdad3f004fe@mail.gmail.com> Message-ID: <WED.23.JAN.2008.142835.0500.TOM.KRALIDISEC.GC.CA> > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen > Sent: 23 January, 2008 2:26 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ > Lines... management issue > > Regarding this, is it possible to "include" a map file inside > another map file? > One can do just this with the INCLUDE directive. See http://mapserver.gis.umn.edu/docs/reference/mapfile/Include ..Tom > Espen > > On 23/01/2008, Fawcett, David <David.Fawcett at state.mn.us> wrote: > > Everything is a performance issue, the question is, 'Is the > > performance acceptable to you?'... > > > > You have built a pretty massive map file. I would look at > stripping > > it down to only what is needed for a particular application. > > > > For questions about how to improve performance, you may > want to look at: > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > > > David. > > > > -----Original Message----- > > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of riteshambastha > > Sent: Wednesday, January 23, 2008 12:59 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... > > management issue > > > > > > Thanks Rich, > > > > Yeah, even I am trying to solve this issue by separating > the huge map > > file with smaller chunks of many map files. Am bit confused > if it will > > lead to performance issues. > > > > Warm Regards, > > Ritz > > > > > > > > rich.fromm wrote: > > > > > > > > > riteshambastha wrote: > > >> > > >> I have developed a map file with more than 35,000 Lines. > > >> > > >> Please throw some lights over writing map files by > following best > > >> practices. > > >> > > > > > > Have you considered more than one map file, depending on the > > > circumstances, each one a bit smaller, rather than one > huge map file? > > > > > > It's hard to say how appropriate that may or may not be without > > > knowing more about your circumstances, but that's what I have. > > > > > > - Rich > > > > > > > > > > -- > > View this message in context: > > > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-is > > su > > e-tp15048892p15048905.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > From espen.isaksen at GMAIL.COM Wed Jan 23 11:30:35 2008 From: espen.isaksen at GMAIL.COM (Espen Isaksen) Date: Wed, 23 Jan 2008 20:30:35 +0100 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F036CEF15@ecburexch1.ontario.int.ec.gc.ca> Message-ID: <WED.23.JAN.2008.203035.0100.ESPEN.ISAKSENGMAIL.COM> Thanks! Don't know how I missed that one... Espen On 23/01/2008, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote: > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen > > Sent: 23 January, 2008 2:26 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ > > Lines... management issue > > > > Regarding this, is it possible to "include" a map file inside > > another map file? > > > > One can do just this with the INCLUDE directive. See > http://mapserver.gis.umn.edu/docs/reference/mapfile/Include > > ..Tom > > > > Espen > > > > On 23/01/2008, Fawcett, David <David.Fawcett at state.mn.us> wrote: > > > Everything is a performance issue, the question is, 'Is the > > > performance acceptable to you?'... > > > > > > You have built a pretty massive map file. I would look at > > stripping > > > it down to only what is needed for a particular application. > > > > > > For questions about how to improve performance, you may > > want to look at: > > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > > > > > David. > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On Behalf Of riteshambastha > > > Sent: Wednesday, January 23, 2008 12:59 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... > > > management issue > > > > > > > > > Thanks Rich, > > > > > > Yeah, even I am trying to solve this issue by separating > > the huge map > > > file with smaller chunks of many map files. Am bit confused > > if it will > > > lead to performance issues. > > > > > > Warm Regards, > > > Ritz > > > > > > > > > > > > rich.fromm wrote: > > > > > > > > > > > > riteshambastha wrote: > > > >> > > > >> I have developed a map file with more than 35,000 Lines. > > > >> > > > >> Please throw some lights over writing map files by > > following best > > > >> practices. > > > >> > > > > > > > > Have you considered more than one map file, depending on the > > > > circumstances, each one a bit smaller, rather than one > > huge map file? > > > > > > > > It's hard to say how appropriate that may or may not be without > > > > knowing more about your circumstances, but that's what I have. > > > > > > > > - Rich > > > > > > > > > > > > > > -- > > > View this message in context: > > > > > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-is > > > su > > > e-tp15048892p15048905.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > From ed at TOPOZONE.COM Wed Jan 23 11:32:02 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 23 Jan 2008 14:32:02 -0500 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: A<a4cd3760801231130j3d3f5b8eoc20d490c92562b1b@mail.gmail.com> Message-ID: <WED.23.JAN.2008.143202.0500.EDTOPOZONE.COM> However, that technique is a management solution, NOT a performance solution! - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen Sent: Wednesday, January 23, 2008 2:31 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... management issue Thanks! Don't know how I missed that one... Espen On 23/01/2008, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote: > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen > > Sent: 23 January, 2008 2:26 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ > > Lines... management issue > > > > Regarding this, is it possible to "include" a map file inside > > another map file? > > > > One can do just this with the INCLUDE directive. See > http://mapserver.gis.umn.edu/docs/reference/mapfile/Include > > ..Tom > > > > Espen > > > > On 23/01/2008, Fawcett, David <David.Fawcett at state.mn.us> wrote: > > > Everything is a performance issue, the question is, 'Is the > > > performance acceptable to you?'... > > > > > > You have built a pretty massive map file. I would look at > > stripping > > > it down to only what is needed for a particular application. > > > > > > For questions about how to improve performance, you may > > want to look at: > > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > > > > > David. > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On Behalf Of riteshambastha > > > Sent: Wednesday, January 23, 2008 12:59 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... > > > management issue > > > > > > > > > Thanks Rich, > > > > > > Yeah, even I am trying to solve this issue by separating > > the huge map > > > file with smaller chunks of many map files. Am bit confused > > if it will > > > lead to performance issues. > > > > > > Warm Regards, > > > Ritz > > > > > > > > > > > > rich.fromm wrote: > > > > > > > > > > > > riteshambastha wrote: > > > >> > > > >> I have developed a map file with more than 35,000 Lines. > > > >> > > > >> Please throw some lights over writing map files by > > following best > > > >> practices. > > > >> > > > > > > > > Have you considered more than one map file, depending on the > > > > circumstances, each one a bit smaller, rather than one > > huge map file? > > > > > > > > It's hard to say how appropriate that may or may not be without > > > > knowing more about your circumstances, but that's what I have. > > > > > > > > - Rich > > > > > > > > > > > > > > -- > > > View this message in context: > > > > > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-is > > > su > > > e-tp15048892p15048905.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > From Bob.Basques at CI.STPAUL.MN.US Wed Jan 23 11:34:57 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 23 Jan 2008 13:34:57 -0600 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <smtpd.4f43.47978bc9.48957.e@mta-w2.tc.umn.edu> Message-ID: <WED.23.JAN.2008.133457.0600.BOB.BASQUESCI.STPAUL.MN.US> Ritz, Whew, 35k lines, that big. How many layers is that anyway? The Googlish mapfile I just did only has 1100 lines in it, and that's mostly for readability. I could probably get it down to half that size if I tried. Don't know what I can contribute as a "Best Practice", because I feel that in most cases, that form follows function, if you need a capability, you build it. Anyway, here are some of my thoughts. These same sorts of performance questions crossed my mind too. The Googlish mapfile I've been working on has 72 separate STYLE definitions for example. Mostly ranged around threshholding of certain styles. I can see that adding in the Water bodies, Railroad, Parks, and such, is really going to make this thing big. I may just do those as separate MapFiles though since GeoMoose handles things like these separations very nicely. These are some of the primary reasons that contributed to the way we've built GeoMoose as a client and why it runs against MapServer CGI, so that it can abstract the layer calls in this fashion. We're running 135+ layers internally at the moment, and they all have their own MAPFILE and are all called separately from the client. It has made life much easier with regard to MapFile creation and maintenance, since each data custodian handles their respective MAPFILE. The performance issues are minimized well since even the data intensive layers are not too bad from a performance standpoint. But even my Googlish looking mapfile got prettty big (in my opinion) for simply displaying centerlines of streets. I've learned quite a bit from these exercises about these types of questions. While I have yet to attack the performance side of things, I anticpate that I'll need to segregate the data out at differing thresholds in order to gain some performance boots. We're all about doing dynamic requests here since many of our datasets change very frequently, in some cases, down to the minute. I may look into tiling at some point in the future, but it will still be only for some of the layers, there will still be a need to have this dynamic request structure in place. bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE >>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: Dear Readers, I have developed a map file with more than 35,000 Lines. Its size will grow by double/triple in next few months. Now, I am trying to tune my map file by removing unwanted lines. Still, I am bit confused about its maintenance. Please throw some lights over writing map files by following best practices. Thanks in advance. Regards, Ritz -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issue-tp15048892p15048892.html Sent from the Mapserver - User mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/11983176/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/11983176/attachment.gif> From Bob.Basques at CI.STPAUL.MN.US Wed Jan 23 11:42:44 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 23 Jan 2008 13:42:44 -0600 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <smtpd.2bd3.479795e0.7eb9b.11@mta-m2.tc.umn.edu> Message-ID: <WED.23.JAN.2008.134244.0600.BOB.BASQUESCI.STPAUL.MN.US> Espen, What if any are the performance hits with this approach? Is the Mapfile assembled before any sort of reading if it is attempted, and it's simply the opening of the additional files that affect the performance? I do have a system like this in place, but it's for some rather simple looking cartography and it works well with a request handler (Not GeoMoose) that assembles the INCLUDE chunk upon request to build the MAPFILE on the fly for the MapSERVER CGI request, this is real borderline DataBase stuff too, as it's really getting close to the point of putting it into a DB instead of keeping in FLAT files. This applies to my previous message too about the abundance of layers in our applications. It would be far easier to build a Webified version of a MAPFILE builder, that still maintained the option(s) of letting each data custodian handle their own cartography for example. This would certainly be a way of removing the some of the MAPFILE complexities from the average data custodians. It's something we have been thinking about doing as a module for GeoMoose for example. Just haven't got it all quite figured out completely yet. There are some other similar systems for this too that I need to review first as well. But in the interest of getting the MAPFILE smaller and more manageable . . . :c) bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE >>> Espen Isaksen <espen.isaksen at GMAIL.COM> wrote: Thanks! Don't know how I missed that one... Espen On 23/01/2008, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote: > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen > > Sent: 23 January, 2008 2:26 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ > > Lines... management issue > > > > Regarding this, is it possible to "include" a map file inside > > another map file? > > > > One can do just this with the INCLUDE directive. See > http://mapserver.gis.umn.edu/docs/reference/mapfile/Include > > ..Tom > > > > Espen > > > > On 23/01/2008, Fawcett, David <David.Fawcett at state.mn.us> wrote: > > > Everything is a performance issue, the question is, 'Is the > > > performance acceptable to you?'... > > > > > > You have built a pretty massive map file. I would look at > > stripping > > > it down to only what is needed for a particular application. > > > > > > For questions about how to improve performance, you may > > want to look at: > > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > > > > > David. > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On Behalf Of riteshambastha > > > Sent: Wednesday, January 23, 2008 12:59 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... > > > management issue > > > > > > > > > Thanks Rich, > > > > > > Yeah, even I am trying to solve this issue by separating > > the huge map > > > file with smaller chunks of many map files. Am bit confused > > if it will > > > lead to performance issues. > > > > > > Warm Regards, > > > Ritz > > > > > > > > > > > > rich.fromm wrote: > > > > > > > > > > > > riteshambastha wrote: > > > >> > > > >> I have developed a map file with more than 35,000 Lines. > > > >> > > > >> Please throw some lights over writing map files by > > following best > > > >> practices. > > > >> > > > > > > > > Have you considered more than one map file, depending on the > > > > circumstances, each one a bit smaller, rather than one > > huge map file? > > > > > > > > It's hard to say how appropriate that may or may not be without > > > > knowing more about your circumstances, but that's what I have. > > > > > > > > - Rich > > > > > > > > > > > > > > -- > > > View this message in context: > > > > > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-is > > > su > > > e-tp15048892p15048905.html > > > Sent from the Mapserver - User mailing list archive at Nabble.com. > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/5967882e/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/5967882e/attachment.gif> From ritesh.linux at GMAIL.COM Wed Jan 23 11:43:39 2008 From: ritesh.linux at GMAIL.COM (ritesh ambastha) Date: Thu, 24 Jan 2008 01:13:39 +0530 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <47974281.163B.00A8.0@ci.stpaul.mn.us> Message-ID: <THU.24.JAN.2008.011339.0530.RITESH.LINUXGMAIL.COM> Thanks Bob, The map file consists of 658 Layers. It runs with openlayers and postgis. Now, am trying to sort out the best way for solving this issue. Your reply helped me to view at the problems+solutions in broad spectrum.. Warm Regards, Ritesh On Jan 24, 2008 1:04 AM, Bob Basques <Bob.Basques at ci.stpaul.mn.us> wrote: > > > Ritz, > > Whew, 35k lines, that big. How many layers is that anyway? The Googlish > mapfile I just did only has 1100 lines in it, and that's mostly for > readability. I could probably get it down to half that size if I tried. > > Don't know what I can contribute as a "Best Practice", because I feel that > in most cases, that form follows function, if you need a capability, you > build it. Anyway, here are some of my thoughts. > > These same sorts of performance questions crossed my mind too. The Googlish > mapfile I've been working on has 72 separate STYLE definitions for example. > Mostly ranged around threshholding of certain styles. I can see that adding > in the Water bodies, Railroad, Parks, and such, is really going to make this > thing big. I may just do those as separate MapFiles though since GeoMoose > handles things like these separations very nicely. > > These are some of the primary reasons that contributed to the way we've > built GeoMoose as a client and why it runs against MapServer CGI, so that it > can abstract the layer calls in this fashion. We're running 135+ layers > internally at the moment, and they all have their own MAPFILE and are all > called separately from the client. It has made life much easier with regard > to MapFile creation and maintenance, since each data custodian handles their > respective MAPFILE. The performance issues are minimized well since even > the data intensive layers are not too bad from a performance standpoint. > > But even my Googlish looking mapfile got prettty big (in my opinion) for > simply displaying centerlines of streets. I've learned quite a bit from > these exercises about these types of questions. While I have yet to attack > the performance side of things, I anticpate that I'll need to segregate the > data out at differing thresholds in order to gain some performance boots. > We're all about doing dynamic requests here since many of our datasets > change very frequently, in some cases, down to the minute. I may look into > tiling at some point in the future, but it will still be only for some of > the layers, there will still be a need to have this dynamic request > structure in place. > > bobb > > > > > > > Bob Basques > GIS Systems Developer > City of Saint Paul, MN > > > GISmo > Powered by > GeoMOOSE > > > >>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: > > Dear Readers, > > I have developed a map file with more than 35,000 Lines. Its size will grow > by double/triple in next few months. Now, I am trying to tune my map file by > removing unwanted lines. Still, I am bit confused about its maintenance. > > > Please throw some lights over writing map files by following best practices. > > Thanks in advance. > > Regards, > Ritz > -- > View this message in context: > http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issue-tp15048892p15048892.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > -- Ritesh Ambastha, Project Manager Mobiance Technologies, Bangalore +91-80-41264755 From ed at TOPOZONE.COM Wed Jan 23 11:59:19 2008 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 23 Jan 2008 14:59:19 -0500 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: A<135fc07d0801231143p1a412c2fvac37ec54751dedb1@mail.gmail.com> Message-ID: <WED.23.JAN.2008.145919.0500.EDTOPOZONE.COM> Ritesh - Obviously you cannot possibly need 658 layers to respond to a single map request. The first thing to do is figure out how to split up this one map file into multiple map files and then use some front-end logic to select the appropriate map file to serve a particular request. You may find the INCLUDE directive helpful, but you should simply begin by eliminating the unnecessary. The theoretical ideal would be that a single MapServer request would specify a map file that contained nothing more than the symbols, fonts, and layers required to serve that single request - nothing more. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ritesh ambastha Sent: Wednesday, January 23, 2008 2:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... management issue Thanks Bob, The map file consists of 658 Layers. It runs with openlayers and postgis. Now, am trying to sort out the best way for solving this issue. Your reply helped me to view at the problems+solutions in broad spectrum.. Warm Regards, Ritesh On Jan 24, 2008 1:04 AM, Bob Basques <Bob.Basques at ci.stpaul.mn.us> wrote: > > > Ritz, > > Whew, 35k lines, that big. How many layers is that anyway? The Googlish > mapfile I just did only has 1100 lines in it, and that's mostly for > readability. I could probably get it down to half that size if I tried. > > Don't know what I can contribute as a "Best Practice", because I feel that > in most cases, that form follows function, if you need a capability, you > build it. Anyway, here are some of my thoughts. > > These same sorts of performance questions crossed my mind too. The Googlish > mapfile I've been working on has 72 separate STYLE definitions for example. > Mostly ranged around threshholding of certain styles. I can see that adding > in the Water bodies, Railroad, Parks, and such, is really going to make this > thing big. I may just do those as separate MapFiles though since GeoMoose > handles things like these separations very nicely. > > These are some of the primary reasons that contributed to the way we've > built GeoMoose as a client and why it runs against MapServer CGI, so that it > can abstract the layer calls in this fashion. We're running 135+ layers > internally at the moment, and they all have their own MAPFILE and are all > called separately from the client. It has made life much easier with regard > to MapFile creation and maintenance, since each data custodian handles their > respective MAPFILE. The performance issues are minimized well since even > the data intensive layers are not too bad from a performance standpoint. > > But even my Googlish looking mapfile got prettty big (in my opinion) for > simply displaying centerlines of streets. I've learned quite a bit from > these exercises about these types of questions. While I have yet to attack > the performance side of things, I anticpate that I'll need to segregate the > data out at differing thresholds in order to gain some performance boots. > We're all about doing dynamic requests here since many of our datasets > change very frequently, in some cases, down to the minute. I may look into > tiling at some point in the future, but it will still be only for some of > the layers, there will still be a need to have this dynamic request > structure in place. > > bobb > > > > > > > Bob Basques > GIS Systems Developer > City of Saint Paul, MN > > > GISmo > Powered by > GeoMOOSE > > > >>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: > > Dear Readers, > > I have developed a map file with more than 35,000 Lines. Its size will grow > by double/triple in next few months. Now, I am trying to tune my map file by > removing unwanted lines. Still, I am bit confused about its maintenance. > > > Please throw some lights over writing map files by following best practices. > > Thanks in advance. > > Regards, > Ritz > -- > View this message in context: > http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issue-tp15048892p15048892.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > -- Ritesh Ambastha, Project Manager Mobiance Technologies, Bangalore +91-80-41264755 From James.Leveille at MTQ.GOUV.QC.CA Wed Jan 23 11:28:08 2008 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Wed, 23 Jan 2008 14:28:08 -0500 Subject: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... management issue In-Reply-To: A<a4cd3760801231126l3d043c7bl88580bdad3f004fe@mail.gmail.com> Message-ID: <WED.23.JAN.2008.142808.0500.JAMES.LEVEILLEMTQ.GOUV.QC.CA> As simple as #INCLUDE INCLUDE "other_map_file.map" ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Espen Isaksen Envoy? : 23 janvier 2008 14:26 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... management issue Regarding this, is it possible to "include" a map file inside another map file? Espen On 23/01/2008, Fawcett, David <David.Fawcett at state.mn.us> wrote: > Everything is a performance issue, the question is, 'Is the > performance acceptable to you?'... > > You have built a pretty massive map file. I would look at stripping > it down to only what is needed for a particular application. > > For questions about how to improve performance, you may want to look > at: http://mapserver.gis.umn.edu/docs/howto/mapfiletuning > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of riteshambastha > Sent: Wednesday, January 23, 2008 12:59 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... > management issue > > > Thanks Rich, > > Yeah, even I am trying to solve this issue by separating the huge map > file with smaller chunks of many map files. Am bit confused if it will > lead to performance issues. > > Warm Regards, > Ritz > > > > rich.fromm wrote: > > > > > > riteshambastha wrote: > >> > >> I have developed a map file with more than 35,000 Lines. > >> > >> Please throw some lights over writing map files by following best > >> practices. > >> > > > > Have you considered more than one map file, depending on the > > circumstances, each one a bit smaller, rather than one huge map > > file? > > > > It's hard to say how appropriate that may or may not be without > > knowing more about your circumstances, but that's what I have. > > > > - Rich > > > > > > -- > View this message in context: > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-is > su > e-tp15048892p15048905.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > From Bob.Basques at CI.STPAUL.MN.US Wed Jan 23 12:15:34 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 23 Jan 2008 14:15:34 -0600 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <smtpd.2bd3.47979c9d.e3a91.17@mta-m2.tc.umn.edu> Message-ID: <WED.23.JAN.2008.141534.0600.BOB.BASQUESCI.STPAUL.MN.US> Ed, While I do have 72 STYLE def's, I only have 11 layers defined in my Googlish mapfile, that's 11 layer definitions for essentially the same data type, Street centerlines. That would equate to approximately 60 real layers being queried, granted, the googlish mapfile I've been working on is somewhat complex, but I would venture that most layers could be as complex with similar cartographic needs. A couple of the layers i have are for Legends and such for additional output control, and if the control were not a big factor, they could be removed altogether if needed. But it does point to the need in some circles (like those of us who fancy ourselves as some sort of fancy "Cartographer" ;c) to be able to add in our flourishes to the outputs that do indeed require defining more than one layer. Some instances will require these mapfiles to get very large, and the standards bar is being risen very fast IMHO, and is getting harder and harder to keep up with some of the average user expectations for readability as well as printabilty of online maps. This is a high priority item with me, mostly because I don't want to be stuck doing cartography day in and day out. I'm hoping that there will be some discussion to come out of this Thread related to developing some different methods for applying styles that may end up being easier to maintain as well as easier to teach to others. bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE >>> Ed McNierney <ed at TOPOZONE.COM> wrote: Ritesh - Obviously you cannot possibly need 658 layers to respond to a single map = request. The first thing to do is figure out how to split up this one = map file into multiple map files and then use some front-end logic to = select the appropriate map file to serve a particular request. You may = find the INCLUDE directive helpful, but you should simply begin by = eliminating the unnecessary. The theoretical ideal would be that a = single MapServer request would specify a map file that contained nothing = more than the symbols, fonts, and layers required to serve that single = request - nothing more. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA=A0 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On = Behalf Of ritesh ambastha Sent: Wednesday, January 23, 2008 2:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... = management issue Thanks Bob, The map file consists of 658 Layers. It runs with openlayers and postgis. Now, am trying to sort out the best way for solving this issue. Your reply helped me to view at the problems+solutions in broad = spectrum.. Warm Regards, Ritesh On Jan 24, 2008 1:04 AM, Bob Basques <Bob.Basques at ci.stpaul.mn.us> = wrote: > > > Ritz, > > Whew, 35k lines, that big. How many layers is that anyway? The = Googlish > mapfile I just did only has 1100 lines in it, and that's mostly for > readability. I could probably get it down to half that size if I = tried. > > Don't know what I can contribute as a "Best Practice", because I feel = that > in most cases, that form follows function, if you need a capability, = you > build it. Anyway, here are some of my thoughts. > > These same sorts of performance questions crossed my mind too. The = Googlish > mapfile I've been working on has 72 separate STYLE definitions for = example. > Mostly ranged around threshholding of certain styles. I can see that = adding > in the Water bodies, Railroad, Parks, and such, is really going to = make this > thing big. I may just do those as separate MapFiles though since = GeoMoose > handles things like these separations very nicely. > > These are some of the primary reasons that contributed to the way = we've > built GeoMoose as a client and why it runs against MapServer CGI, so = that it > can abstract the layer calls in this fashion. We're running 135+ = layers > internally at the moment, and they all have their own MAPFILE and are = all > called separately from the client. It has made life much easier with = regard > to MapFile creation and maintenance, since each data custodian handles = their > respective MAPFILE. The performance issues are minimized well since = even > the data intensive layers are not too bad from a performance = standpoint. > > But even my Googlish looking mapfile got prettty big (in my opinion) = for > simply displaying centerlines of streets. I've learned quite a bit = from > these exercises about these types of questions. While I have yet to = attack > the performance side of things, I anticpate that I'll need to = segregate the > data out at differing thresholds in order to gain some performance = boots. > We're all about doing dynamic requests here since many of our datasets > change very frequently, in some cases, down to the minute. I may look = into > tiling at some point in the future, but it will still be only for some = of > the layers, there will still be a need to have this dynamic request > structure in place. > > bobb > > > > > > > Bob Basques > GIS Systems Developer > City of Saint Paul, MN > > > GISmo > Powered by > GeoMOOSE > > > >>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: > > Dear Readers, > > I have developed a map file with more than 35,000 Lines. Its size will = grow > by double/triple in next few months. Now, I am trying to tune my map = file by > removing unwanted lines. Still, I am bit confused about its = maintenance. > > > Please throw some lights over writing map files by following best = practices. > > Thanks in advance. > > Regards, > Ritz > -- > View this message in context: > = http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issue-tp1= 5048892p15048892.html > > Sent from the Mapserver - User mailing list archive at Nabble.com. > --=20 Ritesh Ambastha, Project Manager Mobiance Technologies, Bangalore +91-80-41264755 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/b612555c/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/b612555c/attachment.gif> From woodbri at SWOODBRIDGE.COM Wed Jan 23 12:46:36 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 23 Jan 2008 15:46:36 -0500 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <135fc07d0801231143p1a412c2fvac37ec54751dedb1@mail.gmail.com> Message-ID: <WED.23.JAN.2008.154636.0500.WOODBRISWOODBRIDGE.COM> Ok, I need to ask the obvious question, WHY? do you feel you need 658 layers. Is this because you have lots of shapefiles? and most of the layer definitions are the same except for the data source? For Tiger data I have 33000 shapefiles, but I only have about 20+- layers. Are you using tileindexes? Do you know what they are? Just trying to diagnose your situation a little better so we can help. -Steve W ritesh ambastha wrote: > Thanks Bob, > > The map file consists of 658 Layers. > It runs with openlayers and postgis. > > Now, am trying to sort out the best way for solving this issue. > Your reply helped me to view at the problems+solutions in broad spectrum.. > > Warm Regards, > Ritesh > > On Jan 24, 2008 1:04 AM, Bob Basques <Bob.Basques at ci.stpaul.mn.us> wrote: >> >> Ritz, >> >> Whew, 35k lines, that big. How many layers is that anyway? The Googlish >> mapfile I just did only has 1100 lines in it, and that's mostly for >> readability. I could probably get it down to half that size if I tried. >> >> Don't know what I can contribute as a "Best Practice", because I feel that >> in most cases, that form follows function, if you need a capability, you >> build it. Anyway, here are some of my thoughts. >> >> These same sorts of performance questions crossed my mind too. The Googlish >> mapfile I've been working on has 72 separate STYLE definitions for example. >> Mostly ranged around threshholding of certain styles. I can see that adding >> in the Water bodies, Railroad, Parks, and such, is really going to make this >> thing big. I may just do those as separate MapFiles though since GeoMoose >> handles things like these separations very nicely. >> >> These are some of the primary reasons that contributed to the way we've >> built GeoMoose as a client and why it runs against MapServer CGI, so that it >> can abstract the layer calls in this fashion. We're running 135+ layers >> internally at the moment, and they all have their own MAPFILE and are all >> called separately from the client. It has made life much easier with regard >> to MapFile creation and maintenance, since each data custodian handles their >> respective MAPFILE. The performance issues are minimized well since even >> the data intensive layers are not too bad from a performance standpoint. >> >> But even my Googlish looking mapfile got prettty big (in my opinion) for >> simply displaying centerlines of streets. I've learned quite a bit from >> these exercises about these types of questions. While I have yet to attack >> the performance side of things, I anticpate that I'll need to segregate the >> data out at differing thresholds in order to gain some performance boots. >> We're all about doing dynamic requests here since many of our datasets >> change very frequently, in some cases, down to the minute. I may look into >> tiling at some point in the future, but it will still be only for some of >> the layers, there will still be a need to have this dynamic request >> structure in place. >> >> bobb >> >> >> >> >> >> >> Bob Basques >> GIS Systems Developer >> City of Saint Paul, MN >> >> >> GISmo >> Powered by >> GeoMOOSE >> >> >>>>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: >> Dear Readers, >> >> I have developed a map file with more than 35,000 Lines. Its size will grow >> by double/triple in next few months. Now, I am trying to tune my map file by >> removing unwanted lines. Still, I am bit confused about its maintenance. >> >> >> Please throw some lights over writing map files by following best practices. >> >> Thanks in advance. >> >> Regards, >> Ritz >> -- >> View this message in context: >> http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issue-tp15048892p15048892.html >> >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > > From Bob.Basques at CI.STPAUL.MN.US Wed Jan 23 12:48:27 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 23 Jan 2008 14:48:27 -0600 Subject: No subject Message-ID: <WED.23.JAN.2008.144827.0600.BOB.BASQUESCI.STPAUL.MN.US> All, A new version of the Googlish MapFile is available for Download. It's essentially the same as the previous version, but has the completed thresholding (as far as the local dataset allows for anyway). Some more comments added throughout as well. http://www.geomoose.org/moose/download/mapfiles-for-mapserver Enjoy . . . bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/43cfa78e/attachment.htm> From Bob.Basques at CI.STPAUL.MN.US Wed Jan 23 12:51:03 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 23 Jan 2008 14:51:03 -0600 Subject: Googlish MapFile V0.02 Message-ID: <WED.23.JAN.2008.145103.0600.BOB.BASQUESCI.STPAUL.MN.US> Dang it!, forgot the Subject: -------------------- All, A new version of the Googlish MapFile is available for Download. It's essentially the same as the previous version, but has the completed thresholding (as far as the local dataset allows for anyway). Some more comments added throughout as well. http://www.geomoose.org/moose/download/mapfiles-for-mapserver Enjoy . . . bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080123/6ae2c1ef/attachment.htm> From ritesh.linux at GMAIL.COM Wed Jan 23 13:29:11 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 23 Jan 2008 13:29:11 -0800 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <a4cd3760801231130j3d3f5b8eoc20d490c92562b1b@mail.gmail.com> Message-ID: <WED.23.JAN.2008.132911.0800.RITESH.LINUXGMAIL.COM> Dear Espen, you can use 'include' for including multiple map files. Make one master map file, write extents etc there.. eg: MAP NAME 'include' EXTENT 0 0 500 500 SIZE 250 250 INCLUDE "c:/ms4w/apps/partners/trialPost.map" INCLUDE "c:/ms4w/apps/partners/bangPost.map" END Then, in the included map files, just add the LAYER parts. Thats all ! Regard, Ritz Espen Isaksen wrote: > > Thanks! Don't know how I missed that one... > > Espen > > On 23/01/2008, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote: >> >> >> >> > -----Original Message----- >> > From: UMN MapServer Users List >> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Espen Isaksen >> > Sent: 23 January, 2008 2:26 PM >> > To: MAPSERVER-USERS at LISTS.UMN.EDU >> > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ >> > Lines... management issue >> > >> > Regarding this, is it possible to "include" a map file inside >> > another map file? >> > >> >> One can do just this with the INCLUDE directive. See >> http://mapserver.gis.umn.edu/docs/reference/mapfile/Include >> >> ..Tom >> >> >> > Espen >> > >> > On 23/01/2008, Fawcett, David <David.Fawcett at state.mn.us> wrote: >> > > Everything is a performance issue, the question is, 'Is the >> > > performance acceptable to you?'... >> > > >> > > You have built a pretty massive map file. I would look at >> > stripping >> > > it down to only what is needed for a particular application. >> > > >> > > For questions about how to improve performance, you may >> > want to look at: >> > > http://mapserver.gis.umn.edu/docs/howto/mapfiletuning >> > > >> > > David. >> > > >> > > -----Original Message----- >> > > From: UMN MapServer Users List >> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> > > On Behalf Of riteshambastha >> > > Sent: Wednesday, January 23, 2008 12:59 PM >> > > To: MAPSERVER-USERS at LISTS.UMN.EDU >> > > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... >> > > management issue >> > > >> > > >> > > Thanks Rich, >> > > >> > > Yeah, even I am trying to solve this issue by separating >> > the huge map >> > > file with smaller chunks of many map files. Am bit confused >> > if it will >> > > lead to performance issues. >> > > >> > > Warm Regards, >> > > Ritz >> > > >> > > >> > > >> > > rich.fromm wrote: >> > > > >> > > > >> > > > riteshambastha wrote: >> > > >> >> > > >> I have developed a map file with more than 35,000 Lines. >> > > >> >> > > >> Please throw some lights over writing map files by >> > following best >> > > >> practices. >> > > >> >> > > > >> > > > Have you considered more than one map file, depending on the >> > > > circumstances, each one a bit smaller, rather than one >> > huge map file? >> > > > >> > > > It's hard to say how appropriate that may or may not be without >> > > > knowing more about your circumstances, but that's what I have. >> > > > >> > > > - Rich >> > > > >> > > > >> > > >> > > -- >> > > View this message in context: >> > > >> > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-is >> > > su >> > > e-tp15048892p15048905.html >> > > Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > >> > >> > > -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issue-tp15048892p15053008.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at GMAIL.COM Wed Jan 23 13:30:58 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 23 Jan 2008 13:30:58 -0800 Subject: Googlish MapFile V0.02 In-Reply-To: <s7975473.071@snoopy.ci.stpaul.mn.us> Message-ID: <WED.23.JAN.2008.133058.0800.RITESH.LINUXGMAIL.COM> thanks Bob Bob Basques wrote: > > Dang it!, forgot the Subject: > > -------------------- > > All, > > A new version of the Googlish MapFile is available for Download. It's > essentially the same as the previous version, but has the completed > thresholding (as far as the local dataset allows for anyway). Some > more comments added throughout as well. > > http://www.geomoose.org/moose/download/mapfiles-for-mapserver > > Enjoy . . . > > bobb > > > -- View this message in context: http://www.nabble.com/Googlish-MapFile-V0.02-tp15052225p15053035.html Sent from the Mapserver - User mailing list archive at Nabble.com. From ritesh.linux at GMAIL.COM Wed Jan 23 13:36:15 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Wed, 23 Jan 2008 13:36:15 -0800 Subject: Dynamic Point In-Reply-To: <14916276.post@talk.nabble.com> Message-ID: <WED.23.JAN.2008.133615.0800.RITESH.LINUXGMAIL.COM> Dear friend, Follow this: Add this layer in your map file: LAYER NAME selpoint TYPE POINT TRANSPARENCY 0 STATUS DEFAULT PROJECTION "init=epsg:4326" #lon/latwgs84 END CLASS NAME "selpoint" STYLE SYMBOL '/ms4w/apps/partners/images/bubble.png' #path where you will keep the marker image END LABEL #defines the font, colors etc. of the text FONT vera TYPE TRUETYPE SIZE 8 BUFFER 1 COLOR 178 34 34 POSITION AUTO BACKGROUNDSHADOWCOLOR 41 41 41 BACKGROUNDSHADOWSIZE 3 3 END END END Add this in your php file: $layer_name = "selpoint"; //layer name, in above snippet layer name is 'selpoint' $point = ms_newPointObj(); $point->setXY($longitude,$latitude); $line = ms_newLineObj(); $line->add($point); $feature = ms_newShapeObj(0); $feature->set('text', 'abcd'); $feature->add($line); $layer = $map->getLayerByName($layer_name); $layer->addFeature($feature); $layer->set("transparency", 1000); This is all ! You are done ! Cheers, Ritz tamajayus wrote: > > i want to add some in my map, this point can be added by user in php and > store in database.... > i'm using phpmapscipt to create my map.. is there any way that i could add > point in my map???? > i've tried used pointObj() but i still can't used it.. > -- View this message in context: http://www.nabble.com/Dynamic-Point-tp14916276p15053161.html Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at MAPGEARS.COM Wed Jan 23 14:33:18 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 23 Jan 2008 17:33:18 -0500 Subject: MapServer 5.0.1 released Message-ID: <WED.23.JAN.2008.173318.0500.DMORISSETTEMAPGEARS.COM> MapServer 5.0.1 has just been released. This new release addresses a few issues that were fixed since version 5.0.0 and contains no new functionality. The list of fixes since 5.0.0 is included at the end of this message, the full change log can also be browsed online at http://mapserver.gis.umn.edu/download/current/HISTORY.TXT The source package is available in the MapServer downloads page: http://mapserver.gis.umn.edu/download/current/ Precompiled binaries should be available shortly at the usual locations (also linked from the download page above). Daniel Version 5.0.1 (2008-01-23) -------------------------- - PDF: Set linecaps to round to fix disjoint lines. - PHP/Mapscript: on a shape object union_geos function should be called union (#2466) - SLD using a single BBOX filter should generate an SQL ststement for oracle/postgis/ogr (#2450) - add missing space on dashed polygon outlines with svg (#2429) - Restored behavior of MS 4.10 and made WMS STYLES parameter optional again in GetMap and GetFeatureInfo requests (#2427) - fixed symbolsetObj not to set the SWIG immutable flag permanently don't expose refcount and the symbol attributes (Ticket #2407) - mappdf.c: support output in fastcgi case via msIO_fwrite() (#2406) - Avoid crash when generating error message (#2389) - Added 1.0.1 to list of supported versions for connectiontype WMS layers (#2385) - fixed blue/green color swapping for space delimited strings bound to an attribute. (#2378) - [WMS Context] Fixed crash when loading a context file (#2372) - Fixed legend icons not drawing when using maxscaledenom - Fixed modulus operator in the parser (#2323) - maprasterquery.c: Fix crash when queryies on done on raster layers with no styles (#2343) - Improve out of memory handling in mapdrawgdal.c, and mapgd.c. (#2351) - don't bail out in map parsing if the outputformat had to be modified (#2321) - Improve configuration logic for fastcgi (#2355). - mapdraw.c,mapquery.c: Reset layer->project flag for each full layer drawing or query so that need to reproject will be reconsidered (#673). - mapogr.cpp: Use pooling api to ensure per-thread sharing of connections only (#2408) - mapresample.c: Fixed support for multi-band data in RAW mode for bilinear and nearest neighbour resamplers (#2364). - Fixed generation of nested layers in WMS Capabilities when using wms_layer_group metadata (#2312) From ritesh.linux at GMAIL.COM Thu Jan 24 07:16:02 2008 From: ritesh.linux at GMAIL.COM (riteshambastha) Date: Thu, 24 Jan 2008 07:16:02 -0800 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <4797A7AC.1060204@swoodbridge.com> Message-ID: <THU.24.JAN.2008.071602.0800.RITESH.LINUXGMAIL.COM> Dear Stephen, The number of layers exceeded much because I am including each individual shapefile multiple times for different Maxcale/Minscale values. So, a shapefile is now called by 3-4 layers, each layer having different Maxscale/Minscale values. I hope I made my point clear. Regards, Ritz Stephen Woodbridge wrote: > > Ok, I need to ask the obvious question, WHY? do you feel you need 658 > layers. Is this because you have lots of shapefiles? and most of the > layer definitions are the same except for the data source? > > For Tiger data I have 33000 shapefiles, but I only have about 20+- > layers. Are you using tileindexes? Do you know what they are? Just > trying to diagnose your situation a little better so we can help. > > -Steve W > > ritesh ambastha wrote: >> Thanks Bob, >> >> The map file consists of 658 Layers. >> It runs with openlayers and postgis. >> >> Now, am trying to sort out the best way for solving this issue. >> Your reply helped me to view at the problems+solutions in broad >> spectrum.. >> >> Warm Regards, >> Ritesh >> >> On Jan 24, 2008 1:04 AM, Bob Basques <Bob.Basques at ci.stpaul.mn.us> wrote: >>> >>> Ritz, >>> >>> Whew, 35k lines, that big. How many layers is that anyway? The >>> Googlish >>> mapfile I just did only has 1100 lines in it, and that's mostly for >>> readability. I could probably get it down to half that size if I tried. >>> >>> Don't know what I can contribute as a "Best Practice", because I feel >>> that >>> in most cases, that form follows function, if you need a capability, you >>> build it. Anyway, here are some of my thoughts. >>> >>> These same sorts of performance questions crossed my mind too. The >>> Googlish >>> mapfile I've been working on has 72 separate STYLE definitions for >>> example. >>> Mostly ranged around threshholding of certain styles. I can see that >>> adding >>> in the Water bodies, Railroad, Parks, and such, is really going to make >>> this >>> thing big. I may just do those as separate MapFiles though since >>> GeoMoose >>> handles things like these separations very nicely. >>> >>> These are some of the primary reasons that contributed to the way we've >>> built GeoMoose as a client and why it runs against MapServer CGI, so >>> that it >>> can abstract the layer calls in this fashion. We're running 135+ layers >>> internally at the moment, and they all have their own MAPFILE and are >>> all >>> called separately from the client. It has made life much easier with >>> regard >>> to MapFile creation and maintenance, since each data custodian handles >>> their >>> respective MAPFILE. The performance issues are minimized well since >>> even >>> the data intensive layers are not too bad from a performance standpoint. >>> >>> But even my Googlish looking mapfile got prettty big (in my opinion) for >>> simply displaying centerlines of streets. I've learned quite a bit >>> from >>> these exercises about these types of questions. While I have yet to >>> attack >>> the performance side of things, I anticpate that I'll need to segregate >>> the >>> data out at differing thresholds in order to gain some performance >>> boots. >>> We're all about doing dynamic requests here since many of our datasets >>> change very frequently, in some cases, down to the minute. I may look >>> into >>> tiling at some point in the future, but it will still be only for some >>> of >>> the layers, there will still be a need to have this dynamic request >>> structure in place. >>> >>> bobb >>> >>> >>> >>> >>> >>> >>> Bob Basques >>> GIS Systems Developer >>> City of Saint Paul, MN >>> >>> >>> GISmo >>> Powered by >>> GeoMOOSE >>> >>> >>>>>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: >>> Dear Readers, >>> >>> I have developed a map file with more than 35,000 Lines. Its size will >>> grow >>> by double/triple in next few months. Now, I am trying to tune my map >>> file by >>> removing unwanted lines. Still, I am bit confused about its maintenance. >>> >>> >>> Please throw some lights over writing map files by following best >>> practices. >>> >>> Thanks in advance. >>> >>> Regards, >>> Ritz >>> -- >>> View this message in context: >>> http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issue-tp15048892p15048892.html >>> >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> >> >> >> > > -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issue-tp15048892p15065742.html Sent from the Mapserver - User mailing list archive at Nabble.com. From woodbri at SWOODBRIDGE.COM Thu Jan 24 07:28:00 2008 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 24 Jan 2008 10:28:00 -0500 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <15065742.post@talk.nabble.com> Message-ID: <THU.24.JAN.2008.102800.0500.WOODBRISWOODBRIDGE.COM> OK, I think there is a simple solution for you, You need to create tileindexes. tileindexes are a way to group a collection of shapefiles that have the same content like roads into a single layer. Say you have a file structure like: data/city1/roads.shp data/city2/roads.shp data/city3/roads.shp etc And if you have a layer for each city/roads.shp you can combine all these into a single layer like this: find data -name roads.shp -print > roads-idx.in tile4ms roads-idx.in roads-idx.shp shptree roads-idx.shp And in your mapfile create a layer like: LAYER ... TILEINDEX "roads-idx.shp" # instead of a DATA statement ... END Now all these shapefiles in the tileindex will be considered in a very efficient manner. -Steve riteshambastha wrote: > Dear Stephen, > > The number of layers exceeded much because I am including each individual > shapefile multiple times for different Maxcale/Minscale values. So, a > shapefile is now called by 3-4 layers, each layer having different > Maxscale/Minscale values. > > I hope I made my point clear. > > Regards, > Ritz > > > Stephen Woodbridge wrote: >> Ok, I need to ask the obvious question, WHY? do you feel you need 658 >> layers. Is this because you have lots of shapefiles? and most of the >> layer definitions are the same except for the data source? >> >> For Tiger data I have 33000 shapefiles, but I only have about 20+- >> layers. Are you using tileindexes? Do you know what they are? Just >> trying to diagnose your situation a little better so we can help. >> >> -Steve W >> >> ritesh ambastha wrote: >>> Thanks Bob, >>> >>> The map file consists of 658 Layers. >>> It runs with openlayers and postgis. >>> >>> Now, am trying to sort out the best way for solving this issue. >>> Your reply helped me to view at the problems+solutions in broad >>> spectrum.. >>> >>> Warm Regards, >>> Ritesh >>> >>> On Jan 24, 2008 1:04 AM, Bob Basques <Bob.Basques at ci.stpaul.mn.us> wrote: >>>> Ritz, >>>> >>>> Whew, 35k lines, that big. How many layers is that anyway? The >>>> Googlish >>>> mapfile I just did only has 1100 lines in it, and that's mostly for >>>> readability. I could probably get it down to half that size if I tried. >>>> >>>> Don't know what I can contribute as a "Best Practice", because I feel >>>> that >>>> in most cases, that form follows function, if you need a capability, you >>>> build it. Anyway, here are some of my thoughts. >>>> >>>> These same sorts of performance questions crossed my mind too. The >>>> Googlish >>>> mapfile I've been working on has 72 separate STYLE definitions for >>>> example. >>>> Mostly ranged around threshholding of certain styles. I can see that >>>> adding >>>> in the Water bodies, Railroad, Parks, and such, is really going to make >>>> this >>>> thing big. I may just do those as separate MapFiles though since >>>> GeoMoose >>>> handles things like these separations very nicely. >>>> >>>> These are some of the primary reasons that contributed to the way we've >>>> built GeoMoose as a client and why it runs against MapServer CGI, so >>>> that it >>>> can abstract the layer calls in this fashion. We're running 135+ layers >>>> internally at the moment, and they all have their own MAPFILE and are >>>> all >>>> called separately from the client. It has made life much easier with >>>> regard >>>> to MapFile creation and maintenance, since each data custodian handles >>>> their >>>> respective MAPFILE. The performance issues are minimized well since >>>> even >>>> the data intensive layers are not too bad from a performance standpoint. >>>> >>>> But even my Googlish looking mapfile got prettty big (in my opinion) for >>>> simply displaying centerlines of streets. I've learned quite a bit >>>> from >>>> these exercises about these types of questions. While I have yet to >>>> attack >>>> the performance side of things, I anticpate that I'll need to segregate >>>> the >>>> data out at differing thresholds in order to gain some performance >>>> boots. >>>> We're all about doing dynamic requests here since many of our datasets >>>> change very frequently, in some cases, down to the minute. I may look >>>> into >>>> tiling at some point in the future, but it will still be only for some >>>> of >>>> the layers, there will still be a need to have this dynamic request >>>> structure in place. >>>> >>>> bobb >>>> >>>> >>>> >>>> >>>> >>>> >>>> Bob Basques >>>> GIS Systems Developer >>>> City of Saint Paul, MN >>>> >>>> >>>> GISmo >>>> Powered by >>>> GeoMOOSE >>>> >>>> >>>>>>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: >>>> Dear Readers, >>>> >>>> I have developed a map file with more than 35,000 Lines. Its size will >>>> grow >>>> by double/triple in next few months. Now, I am trying to tune my map >>>> file by >>>> removing unwanted lines. Still, I am bit confused about its maintenance. >>>> >>>> >>>> Please throw some lights over writing map files by following best >>>> practices. >>>> >>>> Thanks in advance. >>>> >>>> Regards, >>>> Ritz >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issue-tp15048892p15048892.html >>>> >>>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>>> >>> >>> >> > From ritesh.linux at GMAIL.COM Thu Jan 24 07:38:57 2008 From: ritesh.linux at GMAIL.COM (ritesh ambastha) Date: Thu, 24 Jan 2008 21:08:57 +0530 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBA11@s-sp22.pca.state.mn.us> Message-ID: <THU.24.JAN.2008.210857.0530.RITESH.LINUXGMAIL.COM> Yeah, you pointed out a very valid point. As open layers handled my map file in an efficient manner, I didn't overloaded myself with implementation of Tiling. But, there is one more serious thought. Lets try to understand this problem: Example: Layer 1 : [shapefile] Roads of a country. The attributes of this road layer changes w.r.t. zoom-levels. For instance, at higher zoom level roads seems thinner, and at lower it seems broader. So, for these zoom-levels, I used Maxscale/Minscale values and developed multiple layers for this Layer. Layer 2: [shapefile] Roads of a state The above case is true with this layer too. I hope this could magnify my problem. Regards, Ritz On Jan 24, 2008 8:55 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: > You mention creating individual layers for each shapefile. So, does > this mean that if you have a shapefile of road data for each state you > are creating a MapServer layer for each shapefile? > > If this is the case, you can definitely reduce the number of layers (and > likely increase performance) by using a tileindex. > > A tileindex is a polygon dataset, usually a shapefile, with a polygon > that defines the boundaries of each individual dataset. In other words, > you would use a utility to create a new shapefile with polygons that > define the boundaries of each of your state road shapefiles. In the > attribute table of your tileindex, there is a column that tells > MapServer where to find the actual shapefile represented by a particular > feature. > > You then create just one layer using the tileindex as the data source. > Take a look at: http://mapserver.gis.umn.edu/docs/howto/tileindex if > you haven't already. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of riteshambastha > Sent: Thursday, January 24, 2008 9:16 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... > management issue > > > Dear Stephen, > > The number of layers exceeded much because I am including each > individual shapefile multiple times for different Maxcale/Minscale > values. So, a shapefile is now called by 3-4 layers, each layer having > different Maxscale/Minscale values. > > I hope I made my point clear. > > Regards, > Ritz > > > Stephen Woodbridge wrote: > > > > Ok, I need to ask the obvious question, WHY? do you feel you need 658 > > layers. Is this because you have lots of shapefiles? and most of the > > layer definitions are the same except for the data source? > > > > For Tiger data I have 33000 shapefiles, but I only have about 20+- > > layers. Are you using tileindexes? Do you know what they are? Just > > trying to diagnose your situation a little better so we can help. > > > > -Steve W > > > > ritesh ambastha wrote: > >> Thanks Bob, > >> > >> The map file consists of 658 Layers. > >> It runs with openlayers and postgis. > >> > >> Now, am trying to sort out the best way for solving this issue. Your > >> reply helped me to view at the problems+solutions in broad spectrum.. > >> > >> Warm Regards, > >> Ritesh > >> > >> On Jan 24, 2008 1:04 AM, Bob Basques <Bob.Basques at ci.stpaul.mn.us> > >> wrote: > >>> > >>> Ritz, > >>> > >>> Whew, 35k lines, that big. How many layers is that anyway? The > >>> Googlish > >>> mapfile I just did only has 1100 lines in it, and that's mostly for > >>> readability. I could probably get it down to half that size if I > >>> tried. > >>> > >>> Don't know what I can contribute as a "Best Practice", because I > >>> feel that in most cases, that form follows function, if you need a > >>> capability, you build it. Anyway, here are some of my thoughts. > >>> > >>> These same sorts of performance questions crossed my mind too. The > >>> Googlish mapfile I've been working on has 72 separate STYLE > >>> definitions for example. > >>> Mostly ranged around threshholding of certain styles. I can see > that > >>> adding > >>> in the Water bodies, Railroad, Parks, and such, is really going to > make > >>> this > >>> thing big. I may just do those as separate MapFiles though since > >>> GeoMoose > >>> handles things like these separations very nicely. > >>> > >>> These are some of the primary reasons that contributed to the way > >>> we've built GeoMoose as a client and why it runs against MapServer > >>> CGI, so that it can abstract the layer calls in this fashion. We're > > >>> running 135+ layers internally at the moment, and they all have > >>> their own MAPFILE and are all > >>> called separately from the client. It has made life much easier > with > >>> regard > >>> to MapFile creation and maintenance, since each data custodian > handles > >>> their > >>> respective MAPFILE. The performance issues are minimized well since > >>> even > >>> the data intensive layers are not too bad from a performance > standpoint. > >>> > >>> But even my Googlish looking mapfile got prettty big (in my opinion) > for > >>> simply displaying centerlines of streets. I've learned quite a bit > >>> from > >>> these exercises about these types of questions. While I have yet to > > >>> attack the performance side of things, I anticpate that I'll need to > > >>> segregate the > >>> data out at differing thresholds in order to gain some performance > >>> boots. > >>> We're all about doing dynamic requests here since many of our > datasets > >>> change very frequently, in some cases, down to the minute. I may > look > >>> into > >>> tiling at some point in the future, but it will still be only for > some > >>> of > >>> the layers, there will still be a need to have this dynamic request > >>> structure in place. > >>> > >>> bobb > >>> > >>> > >>> > >>> > >>> > >>> > >>> Bob Basques > >>> GIS Systems Developer > >>> City of Saint Paul, MN > >>> > >>> > >>> GISmo > >>> Powered by > >>> GeoMOOSE > >>> > >>> > >>>>>> riteshambastha <ritesh.linux at GMAIL.COM> wrote: > >>> Dear Readers, > >>> > >>> I have developed a map file with more than 35,000 Lines. Its size > >>> will grow by double/triple in next few months. Now, I am trying to > >>> tune my map file by > >>> removing unwanted lines. Still, I am bit confused about its > maintenance. > >>> > >>> > >>> Please throw some lights over writing map files by following best > >>> practices. > >>> > >>> Thanks in advance. > >>> > >>> Regards, > >>> Ritz > >>> -- > >>> View this message in context: > >>> http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issu > >>> e-tp15048892p15048892.html > >>> > >>> Sent from the Mapserver - User mailing list archive at Nabble.com. > >>> > >> > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issu > e-tp15048892p15065742.html > Sent from the Mapserver - User mailing list archive at Nabble.com. > -- Ritesh Ambastha, Project Manager Mobiance Technologies, Bangalore +91-80-41264755 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080124/2b3e1306/attachment.htm> From David.Fawcett at STATE.MN.US Thu Jan 24 07:58:42 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 24 Jan 2008 09:58:42 -0600 Subject: Map file with 35,000+ Lines... management issue In-Reply-To: A<135fc07d0801240738l3f7bad1fgdb5d8243604289a1@mail.gmail.com> Message-ID: <THU.24.JAN.2008.095842.0600.DAVID.FAWCETTSTATE.MN.US> I would suggest a tileindex to display all of the individual shapefiles that make up your state_roads layer in one layer. Same thing for your country_roads layer if it is split up in to smaller data files. You may even want to put MINSCALE/MAXSCALE values in place so your state_roads doesn't display when zoomed out too far. Then, for symbology purposes, you can create multiple classes for each layer, each with their own MINSCALE/MAXSCALE values so you can style your roads differently based on how far you are zoomed into. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ritesh ambastha Sent: Thursday, January 24, 2008 9:39 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... management issue Yeah, you pointed out a very valid point. As open layers handled my map file in an efficient manner, I didn't overloaded myself with implementation of Tiling. But, there is one more serious thought. Lets try to understand this problem: Example: Layer 1 : [shapefile] Roads of a country. The attributes of this road layer changes w.r.t. zoom-levels. For instance, at higher zoom level roads seems thinner, and at lower it seems broader. So, for these zoom-levels, I used Maxscale/Minscale values and developed multiple layers for this Layer. Layer 2: [shapefile] Roads of a state The above case is true with this layer too. I hope this could magnify my problem. Regards, Ritz On Jan 24, 2008 8:55 PM, Fawcett, David <David.Fawcett at state.mn.us> wrote: You mention creating individual layers for each shapefile. So, does this mean that if you have a shapefile of road data for each state you are creating a MapServer layer for each shapefile? If this is the case, you can definitely reduce the number of layers (and likely increase performance) by using a tileindex. A tileindex is a polygon dataset, usually a shapefile, with a polygon that defines the boundaries of each individual dataset. In other words, you would use a utility to create a new shapefile with polygons that define the boundaries of each of your state road shapefiles. In the attribute table of your tileindex, there is a column that tells MapServer where to find the actual shapefile represented by a particular feature. You then create just one layer using the tileindex as the data source. Take a look at: http://mapserver.gis.umn.edu/docs/howto/tileindex if you haven't already. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU ] On Behalf Of riteshambastha Sent: Thursday, January 24, 2008 9:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map file with 35,000+ Lines... management issue Dear Stephen, The number of layers exceeded much because I am including each individual shapefile multiple times for different Maxcale/Minscale values. So, a shapefile is now called by 3-4 layers, each layer having different Maxscale/Minscale values. I hope I made my point clear. Regards, Ritz Stephen Woodbridge wrote: > > Ok, I need to ask the obvious question, WHY? do you feel you need 658 > layers. Is this because you have lots of shapefiles? and most of the > layer definitions are the same except for the data source? > > For Tiger data I have 33000 shapefiles, but I only have about 20+- > layers. Are you using tileindexes? Do you know what they are? Just > trying to diagnose your situation a little better so we can help. > > -Steve W > > ritesh ambastha wrote: >> Thanks Bob, >> >> The map file consists of 658 Layers. >> It runs with openlayers and postgis. >> >> Now, am trying to sort out the best way for solving this issue. Your >> reply helped me to view at the problems+solutions in broad spectrum.. >> >> Warm Regards, >> Ritesh >> >> On Jan 24, 2008 1:04 AM, Bob Basques < Bob.Basques at ci.stpaul.mn.us <mailto:Bob.Basques at ci.stpaul.mn.us> > >> wrote: >>> >>> Ritz, >>> >>> Whew, 35k lines, that big. How many layers is that anyway? The >>> Googlish >>> mapfile I just did only has 1100 lines in it, and that's mostly for >>> readability. I could probably get it down to half that size if I >>> tried. >>> >>> Don't know what I can contribute as a "Best Practice", because I >>> feel that in most cases, that form follows function, if you need a >>> capability, you build it. Anyway, here are some of my thoughts. >>> >>> These same sorts of performance questions crossed my mind too. The >>> Googlish mapfile I've been working on has 72 separate STYLE >>> definitions for example. >>> Mostly ranged around threshholding of certain styles. I can see that >>> adding >>> in the Water bodies, Railroad, Parks, and such, is really going to make >>> this >>> thing big. I may just do those as separate MapFiles though since >>> GeoMoose >>> handles things like these separations very nicely. >>> >>> These are some of the primary reasons that contributed to the way >>> we've built GeoMoose as a client and why it runs against MapServer >>> CGI, so that it can abstract the layer calls in this fashion. We're >>> running 135+ layers internally at the moment, and they all have >>> their own MAPFILE and are all >>> called separately from the client. It has made life much easier with >>> regard >>> to MapFile creation and maintenance, since each data custodian handles >>> their >>> respective MAPFILE. The performance issues are minimized well since >>> even >>> the data intensive layers are not too bad from a performance standpoint. >>> >>> But even my Googlish looking mapfile got prettty big (in my opinion) for >>> simply displaying centerlines of streets. I've learned quite a bit >>> from >>> these exercises about these types of questions. While I have yet to >>> attack the performance side of things, I anticpate that I'll need to >>> segregate the >>> data out at differing thresholds in order to gain some performance >>> boots. >>> We're all about doing dynamic requests here since many of our datasets >>> change very frequently, in some cases, down to the minute. I may look >>> into >>> tiling at some point in the future, but it will still be only for some >>> of >>> the layers, there will still be a need to have this dynamic request >>> structure in place. >>> >>> bobb >>> >>> >>> >>> >>> >>> >>> Bob Basques >>> GIS Systems Developer >>> City of Saint Paul, MN >>> >>> >>> GISmo >>> Powered by >>> GeoMOOSE >>> >>> >>>>>> riteshambastha < ritesh.linux at GMAIL.COM> wrote: >>> Dear Readers, >>> >>> I have developed a map file with more than 35,000 Lines. Its size >>> will grow by double/triple in next few months. Now, I am trying to >>> tune my map file by >>> removing unwanted lines. Still, I am bit confused about its maintenance. >>> >>> >>> Please throw some lights over writing map files by following best >>> practices. >>> >>> Thanks in advance. >>> >>> Regards, >>> Ritz >>> -- >>> View this message in context: >>> http://www.nabble.com/Map-file-with-35,000+-Lines...-management-issu >>> e-tp15048892p15048892.html >>> >>> Sent from the Mapserver - User mailing list archive at Nabble.com. >>> >> >> >> > > -- View this message in context: http://www.nabble.com/Map-file-with-35%2C000%2B-Lines...-management-issu e-tp15048892p15065742.html Sent from the Mapserver - User mailing list archive at Nabble.com. -- Ritesh Ambastha, Project Manager Mobiance Technologies, Bangalore +91-80-41264755 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080124/c66918a8/attachment.htm> From James.Leveille at MTQ.GOUV.QC.CA Thu Jan 24 10:53:06 2008 From: James.Leveille at MTQ.GOUV.QC.CA (=?iso-8859-1?Q?L=E9veill=E9=2C_James?=) Date: Thu, 24 Jan 2008 13:53:06 -0500 Subject: Problem with collisions in annotations Message-ID: <THU.24.JAN.2008.135306.0500.JAMES.LEVEILLEMTQ.GOUV.QC.CA> Hi all, Context : road network. I have a MapFile with 3 ANNOTATION LAYERS. The first one is used to display highway shields (symbol) while the two others are used to display specific warnings (2 different symbols). Even if they have a different names, all sources (data_a, data_b and data_c) are exactly the same (linear). When a particular road segment has a shield and one (or even 2) warning, we often (always ???) have a collision (see example below). Any way to prevent this, knowing that when a road segment has a shield and/or a warning (or two warnings), all the symbols HAVE TO BE DISPLAYED ? LAYER # Highway shield ... TYPE ANNOTATION DATA "/data_a" FORCE TRUE LABELITEM "NOROUTE" ... END LAYER # Warnings 1 - Related to roads that are closed to trucks ... TYPE ANNOTATION DATA "/data_b" FORCE TRUE ... END LAYER # Warnings 2 - Related to special warnings due to poor weather conditions ... TYPE ANNOTATION DATA "/data_c" FORCE TRUE ... END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca <mailto:james.leveille at mtq.gouv.qc.ca> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080124/832b1952/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: Outlook.bmp Type: image/bmp Size: 19278 bytes Desc: Outlook.bmp URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080124/832b1952/attachment.bin> From bhudspeth at EDAC.UNM.EDU Thu Jan 24 10:42:57 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Thu, 24 Jan 2008 11:42:57 -0700 Subject: Problems with installation of Mapserver 5.0.0 Message-ID: <THU.24.JAN.2008.114257.0700.BHUDSPETHEDAC.UNM.EDU> Hello, Am trying to install Mapserver 5.0.0 on a machine running SUSE Linux 10.1. The failure of the installation seems to be associated with GEOS: /include -I/usr/local/gdal/include -I/usr/local/pgsql/include -I/usr/local/geos/include shp2img.o -L. -lmapserver -L/usr/local/gd/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -L/usr/local/proj/lib -lproj -ljpeg -L/usr/local/gdal/lib -lgdal -L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljasper -ljpeg -ltiff -lpng -L/usr/local/grass-6.0.2/lib -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lpq -L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/geos/lib -lgeos_c -lc -lz -lm -lstdc++ -o shp2img ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I had previously installed GEOS 3.0.0 with the following argument to configure: --with-geos=/usr/local/geos/bin/geos-config I would appreciate any insight. Thanks, Bill From guillaume.sueur at NEOGEO-ONLINE.NET Thu Jan 24 11:27:10 2008 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Thu, 24 Jan 2008 20:27:10 +0100 Subject: Problems with installation of Mapserver 5.0.0 In-Reply-To: <1201200177.4701.23.camel@localhost> Message-ID: <THU.24.JAN.2008.202710.0100.GUILLAUME.SUEURNEOGEOONLINE.NET> I don't know for that particular point, but I remember having had this kind of issues with geos 3.0.0rc4 which I didn't had with rc3. Maybe just try it, for a test. Guillaume William Hudspeth a ?crit : > Hello, > > Am trying to install Mapserver 5.0.0 on a machine running SUSE Linux > 10.1. > > The failure of the installation seems to be associated with GEOS: > > /include -I/usr/local/gdal/include -I/usr/local/pgsql/include > -I/usr/local/geos/include shp2img.o -L. -lmapserver > -L/usr/local/gd/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > -lfreetype -lpng -lz -L/usr/local/proj/lib -lproj -ljpeg > -L/usr/local/gdal/lib -lgdal -L/usr/lib -lgeos_c -I/usr/include > -lsqlite3 -L/usr/lib -lexpat -ljasper -ljpeg -ltiff -lpng > -L/usr/local/grass-6.0.2/lib -lgrass_vect -lgrass_dig2 -lgrass_dgl > -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase > -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis > -lgrass_datetime -lpq -L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl > -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/pgsql/lib > -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz > -L/usr/local/geos/lib -lgeos_c -lc -lz -lm -lstdc++ -o shp2img > ./libmapserver.a(mapgeos.o): In function `msGEOSLength': > mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' > ./libmapserver.a(mapgeos.o): In function `msGEOSArea': > mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > I had previously installed GEOS 3.0.0 with the following argument to > configure: > > --with-geos=/usr/local/geos/bin/geos-config > > I would appreciate any insight. Thanks, Bill > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From bhudspeth at EDAC.UNM.EDU Thu Jan 24 12:05:42 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Thu, 24 Jan 2008 14:05:42 -0600 Subject: Problems with installation of Mapserver 5.0.0 Message-ID: <THU.24.JAN.2008.140542.0600.BHUDSPETHEDAC.UNM.EDU> Guillaume, Thank you for your suggestion. I tried installing GEOS 3.00rc3, and unfortunately, got the same errors. Je vous remercie, Bill From Steve.Lime at DNR.STATE.MN.US Thu Jan 24 13:29:17 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 24 Jan 2008 15:29:17 -0600 Subject: Problem with collisions in annotations Message-ID: <THU.24.JAN.2008.152917.0600.STEVE.LIMEDNR.STATE.MN.US> What do the label objects look like? It sounds like you need to put three labels at the same spot, right (since they same the same linework)? One idea would be to be use explicit label positions and offsets. For example, the shield is CC, one warning always is UR and the other UL. Label offsets could push the warning icons far enough away from the shield for readability. Might help to post an image example. Steve >>> L?veill?, James <James.Leveille at MTQ.GOUV.QC.CA> 01/24/08 12:53 PM >>> Hi all, Context : road network. I have a MapFile with 3 ANNOTATION LAYERS. The first one is used to display highway shields (symbol) while the two others are used to display specific warnings (2 different symbols). Even if they have a different names, all sources (data_a, data_b and data_c) are exactly the same (linear). When a particular road segment has a shield and one (or even 2) warning, we often (always ???) have a collision (see example below). Any way to prevent this, knowing that when a road segment has a shield and/or a warning (or two warnings), all the symbols HAVE TO BE DISPLAYED ? LAYER # Highway shield ... TYPE ANNOTATION DATA "/data_a" FORCE TRUE LABELITEM "NOROUTE" ... END LAYER # Warnings 1 - Related to roads that are closed to trucks ... TYPE ANNOTATION DATA "/data_b" FORCE TRUE ... END LAYER # Warnings 2 - Related to special warnings due to poor weather conditions ... TYPE ANNOTATION DATA "/data_c" FORCE TRUE ... END ______________________________________________________ JAMES L?VEILL? Service des syst?mes de Mission Direction des technologies de l'information Minist?re des Transports du Qu?bec 5833, boul. Pierre-Bertrand, 2i?me ?tage Qu?bec (Qu?bec) G2K 1K7 T?l?phone: (418) 380-2005 poste 227 T?l?copieur: (418) 644-6653 james.leveille at mtq.gouv.qc.ca <mailto:james.leveille at mtq.gouv.qc.ca> From bhudspeth at EDAC.UNM.EDU Thu Jan 24 14:06:38 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Thu, 24 Jan 2008 16:06:38 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <THU.24.JAN.2008.160638.0600.BHUDSPETHEDAC.UNM.EDU> Hello, Am trying to install Mapserver 5.0.0 on a machine running SUSE Linux 10.1. The failure of the installation seems to be associated with GEOS: /include -I/usr/local/gdal/include -I/usr/local/pgsql/include -I/usr/local/geos/include shp2img.o -L. -lmapserver -L/usr/local/gd/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -L/usr/local/proj/lib -lproj -ljpeg -L/usr/local/gdal/lib -lgdal -L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljasper -ljpeg -ltiff -lpng -L/usr/local/grass-6.0.2/lib -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lpq -L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/geos/lib -lgeos_c -lc -lz -lm -lstdc++ -o shp2img ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I had previously installed GEOS 3.0.0 with the following argument to configure: --with-geos=/usr/local/geos/bin/geos-config I would appreciate any insight. Thanks, Bill From Steve.Lime at DNR.STATE.MN.US Thu Jan 24 14:48:48 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 24 Jan 2008 16:48:48 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <THU.24.JAN.2008.164848.0600.STEVE.LIMEDNR.STATE.MN.US> This is GEOS 3.0? I believe there were some earlier versions that were missing those functions in the C API. Steve >>> William Hudspeth <bhudspeth at EDAC.UNM.EDU> 01/24/08 4:06 PM >>> Hello, Am trying to install Mapserver 5.0.0 on a machine running SUSE Linux 10.1. The failure of the installation seems to be associated with GEOS: /include -I/usr/local/gdal/include -I/usr/local/pgsql/include -I/usr/local/geos/include shp2img.o -L. -lmapserver -L/usr/local/gd/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -L/usr/local/proj/lib -lproj -ljpeg -L/usr/local/gdal/lib -lgdal -L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljasper -ljpeg -ltiff -lpng -L/usr/local/grass-6.0.2/lib -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lpq -L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/geos/lib -lgeos_c -lc -lz -lm -lstdc++ -o shp2img ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I had previously installed GEOS 3.0.0 with the following argument to configure: --with-geos=/usr/local/geos/bin/geos-config I would appreciate any insight. Thanks, Bill From Steve.Lime at DNR.STATE.MN.US Thu Jan 24 15:18:53 2008 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 24 Jan 2008 17:18:53 -0600 Subject: Browse mistake Message-ID: <THU.24.JAN.2008.171853.0600.STEVE.LIMEDNR.STATE.MN.US> You're missing an END someplace... I can't be more specific though... Steve >>> Eduardo Ar?valo <earevaloch at GMAIL.COM> 01/23/08 10:06 AM >>> Hola: Get in the Browse : http://10.1.6.18/cgi-bin/mapserv?map=basico_23_01_08.map&layer=limites&mode=map Leaves this error: msLoadMap(): Premature End-of-File. Help please From sunsear at GMAIL.COM Thu Jan 24 21:30:36 2008 From: sunsear at GMAIL.COM (Martin van Dijken) Date: Fri, 25 Jan 2008 06:30:36 +0100 Subject: Combining PHP/Mapscript and PHP image layers In-Reply-To: <2b9adc200801232243j34e6d583n4cc8c6425fb4d0a0@mail.gmail.com> Message-ID: <FRI.25.JAN.2008.063036.0100.SUNSEARGMAIL.COM> I've been trying to combine PHP mapscript images with images created in PHP itself using the image library. Both PHP mapscript and the PHP image library seem to be based on SD, so I should be able to paste an image from PHP into a mapserver generated image or the other way around. The API unfortunately doesn't seem to allow that although it looks to be quite possible. Does anybody have any thoughts on how to accomplish the combination of PHP created images and mapserver created images? Thanks in advance, Martin van Dijken -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080125/083f9ad8/attachment.htm> From perrygeo at GMAIL.COM Thu Jan 24 23:30:25 2008 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Thu, 24 Jan 2008 23:30:25 -0800 Subject: Use of multiple sid files In-Reply-To: <944DCD961F4CD649BCEBB52E3C929F6501863C84@usd-am-xch-01.am.trimblecorp.net> Message-ID: <THU.24.JAN.2008.233025.0800.PERRYGEOGMAIL.COM> On Jan 23, 2008 10:08 AM, Lee Keel <lee_keel at trimble.com> wrote: > I have figured out that I cannot use tile4ms directly with the sid files, but can I use it to create an index of an index file? In other words: can I create an index shape file for a group of the sid files then use tile4ms to create a "master" index shape file with group of the sid shape files in it? > If you have gdal built with mrsid support, you can use the gdaltindex utility directly on the .sid files instead of using tile4ms. -- Matthew T. Perry http://www.perrygeo.net From frequens at GMAIL.COM Thu Jan 24 23:46:01 2008 From: frequens at GMAIL.COM (frequens) Date: Fri, 25 Jan 2008 08:46:01 +0100 Subject: problem compiling 5.0.1 Message-ID: <FRI.25.JAN.2008.084601.0100.FREQUENSGMAIL.COM> Hi list, I have problems compiling 5.0.1 on two separate machines. Absolutely nothing changed on the machines and on both the 5.0.0 version compiled with identical configure (and still does) and worked just fine. The first one complains: "/usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: 'span1' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: 'span2' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_abs_diff, 8u>]': /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: 'span1' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: 'span2' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_saddle<8u>, 8u>]': /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: 'span1' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: 'span2' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_linear<8u>, 8u>]': /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: 'span1' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: 'span2' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = agg::scanline_p8, AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, AddSpanFunctor2 = agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, CombineSpansFunctor = agg::sbool_unite_spans_aa<agg::scanline_p8, agg::scanline_p8, agg::scanline_p8, 8u>]': /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: 'span1' may be used uninitialized in this function /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: 'span2' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h: In function 'void drawPolylineMarkers(imageObj*, shapeObj*, symbolSetObj*, styleObj*, double)': /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h: In function 'void msDrawMarkerSymbolAGG(symbolSetObj*, imageObj*, pointObj*, styleObj*, double)': /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used uninitialized in this function /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used uninitialized in this function! and then dies with: "./libmapserver.a(mapfile.o): In function `getSymbol': mapfile.c:(.text+0x2dc): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getString': mapfile.c:(.text+0x3bd): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getDouble': mapfile.c:(.text+0x42e): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getInteger': mapfile.c:(.text+0x4a3): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getCharacter': mapfile.c:(.text+0x516): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x700): more undefined references to `msyylineno' follow collect2: ld returned 1 exit status make: *** [shp2img] Error 1". The second machine does not complain at all and simply dies: "flex --nounistd -Pmsyy -i -omaplexer.c maplexer.l flex: unknown flag '-'. For usage, try flex --help make: *** [maplexer.c] Error 1" Any help would be much appreciated. Regards, frequens -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080125/838f0313/attachment.htm> From rdeimann at GMX.DE Fri Jan 25 02:39:01 2008 From: rdeimann at GMX.DE (Roman Deimann) Date: Fri, 25 Jan 2008 11:39:01 +0100 Subject: problem compiling 5.0.1 In-Reply-To: <2482247e0801242346n46fdeb6fx5043ebd0c52e609@mail.gmail.com> Message-ID: <FRI.25.JAN.2008.113901.0100.RDEIMANNGMX.DE> Hallo list, I have the same problem. It looks like a problem with flex version 2.5.4a and previous. Flex 2.5.4 does not have the ??nounistd? parameter. Thanks, Roman -------- Original-Nachricht -------- > Datum: Fri, 25 Jan 2008 08:46:01 +0100 > Von: frequens <frequens at GMAIL.COM> > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: [UMN_MAPSERVER-USERS] problem compiling 5.0.1 > Hi list, > > I have problems compiling 5.0.1 on two separate machines. Absolutely > nothing > changed on the machines and on both the 5.0.0 version compiled with > identical configure (and still does) and worked just fine. > > The first one complains: > > "/usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_abs_diff, > 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_saddle<8u>, > 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_linear<8u>, > 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_unite_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h: In function 'void > drawPolylineMarkers(imageObj*, shapeObj*, symbolSetObj*, styleObj*, > double)': > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h: In function 'void > msDrawMarkerSymbolAGG(symbolSetObj*, imageObj*, pointObj*, styleObj*, > double)': > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function! > > and then dies with: > > "./libmapserver.a(mapfile.o): In function `getSymbol': > mapfile.c:(.text+0x2dc): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getString': > mapfile.c:(.text+0x3bd): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getDouble': > mapfile.c:(.text+0x42e): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getInteger': > mapfile.c:(.text+0x4a3): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getCharacter': > mapfile.c:(.text+0x516): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x700): more undefined > references to `msyylineno' follow > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1". > > > The second machine does not complain at all and simply dies: > > "flex --nounistd -Pmsyy -i -omaplexer.c maplexer.l > flex: unknown flag '-'. For usage, try > flex --help > make: *** [maplexer.c] Error 1" > > > Any help would be much appreciated. > > Regards, > > frequens From arevaco90 at YAHOO.ES Fri Jan 25 03:55:59 2008 From: arevaco90 at YAHOO.ES (=?UTF-8?Q?Juan_Ar=C3=A9valo?=) Date: Fri, 25 Jan 2008 03:55:59 -0800 Subject: arcsde 9.0 support ms4w2.2.6 Message-ID: <FRI.25.JAN.2008.035559.0800.AREVACO90YAHOO.ES> Hi folks, I installed the ms4w 2.2.6 mapserver package and works fine. I?ve also installed ARCSDE 9.0 client APIs in the same machine in order to allow mapserver the connection. However, I went through the readme install notes from the package and I only found the Steps to Enable SDE 9.1 and 9.2 Support but not SDE 9.0. Does anyone know how to set up the connection for arcsde 9.0? In theory, the connection should be possible as it says on mapserver site. Thanks for your help, much appreciated!! Juan Ar?valo. -- View this message in context: http://www.nabble.com/arcsde-9.0-support-ms4w2.2.6-tp15086305p15086305.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adams at TERRESTRIS.DE Fri Jan 25 04:45:45 2008 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 25 Jan 2008 13:45:45 +0100 Subject: arcsde 9.0 support ms4w2.2.6 In-Reply-To: <15086305.post@talk.nabble.com> Message-ID: <FRI.25.JAN.2008.134545.0100.ADAMSTERRESTRIS.DE> Juan Ar?valo schrieb: >Hi folks, > >I installed the ms4w 2.2.6 mapserver package and works fine. I?ve also >installed ARCSDE 9.0 client APIs in the same machine in order to allow >mapserver the connection. However, I went through the readme install notes >from the package and I only found the Steps to Enable SDE 9.1 and 9.2 >Support but not SDE 9.0. Does anyone know how to set up the connection for >arcsde 9.0? > >In theory, the connection should be possible as it says on mapserver site. > >Thanks for your help, much appreciated!! > >Juan Ar?valo. > > > > > Juan, you have to find (ask the list) a windows "mapserv.exe" which has the (optional) ArcSDE-Support buildt in. To check this open control panel -> execute -> cmd (dos-box) type # cd c:/ms4w/apache/cgi-bin/ # mapserv.exe -v This shows you the capabilities of your mapserv.exe. Normally the ms4w package doesn't have ArcSDE support built in. Regards, Till ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From frequens at GMAIL.COM Fri Jan 25 05:10:35 2008 From: frequens at GMAIL.COM (frequens) Date: Fri, 25 Jan 2008 14:10:35 +0100 Subject: problem compiling 5.0.1 Message-ID: <FRI.25.JAN.2008.141035.0100.FREQUENSGMAIL.COM> This solves the second one. First one still to go.... R frequens Hallo list, I have the same problem. It looks like a problem with flex version 2.5.4a and previous. Flex 2.5.4 does not have the '?nounistd' parameter. Thanks, Roman -------- Original-Nachricht -------- > Datum: Fri, 25 Jan 2008 08:46:01 +0100 > Von: frequens <frequens at GMAIL.COM> > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: [UMN_MAPSERVER-USERS] problem compiling 5.0.1 > Hi list, > > I have problems compiling 5.0.1 on two separate machines. Absolutely > nothing > changed on the machines and on both the 5.0.0 version compiled with > identical configure (and still does) and worked just fine. > > The first one complains: > > "/usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_abs_diff, > 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_saddle<8u>, > 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_linear<8u>, > 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void > agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&, > AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 = > agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline = > agg::scanline_p8, > AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8, > agg::scanline_p8>, AddSpanFunctor2 = > agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>, > CombineSpansFunctor = agg::sbool_unite_spans_aa<agg::scanline_p8, > agg::scanline_p8, agg::scanline_p8, 8u>]': > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning: > 'span1' > may be used uninitialized in this function > /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning: > 'span2' > may be used uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h: In function 'void > drawPolylineMarkers(imageObj*, shapeObj*, symbolSetObj*, styleObj*, > double)': > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h: In function 'void > msDrawMarkerSymbolAGG(symbolSetObj*, imageObj*, pointObj*, styleObj*, > double)': > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used > uninitialized in this function > /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used > uninitialized in this function! > > and then dies with: > > "./libmapserver.a(mapfile.o): In function `getSymbol': > mapfile.c:(.text+0x2dc): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getString': > mapfile.c:(.text+0x3bd): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getDouble': > mapfile.c:(.text+0x42e): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getInteger': > mapfile.c:(.text+0x4a3): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o): In function `getCharacter': > mapfile.c:(.text+0x516): undefined reference to `msyylineno' > ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x700): more undefined > references to `msyylineno' follow > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1". From jim.dahl at MAIL.CO.DOUGLAS.MN.US Fri Jan 25 06:18:31 2008 From: jim.dahl at MAIL.CO.DOUGLAS.MN.US (Jim Dahl) Date: Fri, 25 Jan 2008 08:18:31 -0600 Subject: Googlish MapFile V0.02 - additional files Message-ID: <FRI.25.JAN.2008.081831.0600.JIM.DAHLMAIL.CO.DOUGLAS.MN.US> I apologize if I made a double post, I have not replied on this list before so I am learning. Bob, I think you may have posted this info earlier, but don't recall. Is the fontset available? Is the data a download from tiger? I plan on using this with our own road data, so I will need to change the field items to match our codes from MNDOT, is that right? Jim From dmorissette at MAPGEARS.COM Fri Jan 25 06:01:44 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 25 Jan 2008 09:01:44 -0500 Subject: problem compiling 5.0.1 In-Reply-To: <2482247e0801250510yd7903ch65fdf38b0f4c51c6@mail.gmail.com> Message-ID: <FRI.25.JAN.2008.090144.0500.DMORISSETTEMAPGEARS.COM> frequens wrote: > This solves the second one. First one still to go.... > Um... I think the problem is that maplexer.l has been modified for ticket #2331 but maplexer.c has not been updated in subversion (and in the release), so your system tries to regenerate it using your local copy of flex, which is possibly too old and that explains the errors you get. The release should have contained the updated maplexer.c but it did not. I have generated a new maplexer.c, can you please download it to your local source tree and try building again? You can use the following URL to download it: http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/maplexer.c?format=txt If you confirm that this solves the issue then we'll have to release 5.0.2 right away with that fix. Daniel -- Daniel Morissette http://www.mapgears.com/ From frequens at GMAIL.COM Fri Jan 25 06:56:21 2008 From: frequens at GMAIL.COM (frequens) Date: Fri, 25 Jan 2008 15:56:21 +0100 Subject: problem compiling 5.0.1 In-Reply-To: <4799EBC8.2020708@mapgears.com> Message-ID: <FRI.25.JAN.2008.155621.0100.FREQUENSGMAIL.COM> Yeep. This solved also the first one. The first machine has flex 2.5.33-21 installed (too old?!), the second one 2.5.4a (rather old, I agree). Is there any way it would work also with the 2.5.4a or alike? Upgrading it requires turning the world upside down (production machine, glibc, then gnome, then...) Thank you very much for all....-) BR frequens On Jan 25, 2008 3:01 PM, Daniel Morissette <dmorissette at mapgears.com> wrote: > frequens wrote: > > This solves the second one. First one still to go.... > > > > Um... I think the problem is that maplexer.l has been modified for > ticket #2331 but maplexer.c has not been updated in subversion (and in > the release), so your system tries to regenerate it using your local > copy of flex, which is possibly too old and that explains the errors you > get. > > The release should have contained the updated maplexer.c but it did not. > I have generated a new maplexer.c, can you please download it to your > local source tree and try building again? You can use the following URL > to download it: > > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/maplexer.c?format=txt > > If you confirm that this solves the issue then we'll have to release > 5.0.2 right away with that fix. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > From frequens at GMAIL.COM Fri Jan 25 07:08:14 2008 From: frequens at GMAIL.COM (frequens) Date: Fri, 25 Jan 2008 16:08:14 +0100 Subject: problem compiling 5.0.1 In-Reply-To: <2482247e0801250656g30f203f1i296ff8e43436557d@mail.gmail.com> Message-ID: <FRI.25.JAN.2008.160814.0100.FREQUENSGMAIL.COM> Actually the fix works also with flex 2.5.4a.... Both machines up and running, correctly at a first glance... BR frequens On Jan 25, 2008 3:56 PM, frequens <frequens at gmail.com> wrote: > Yeep. This solved also the first one. > > The first machine has flex 2.5.33-21 installed (too old?!), the second > one 2.5.4a (rather old, I agree). > Is there any way it would work also with the 2.5.4a or alike? > Upgrading it requires turning the world upside down (production > machine, glibc, then gnome, then...) > > Thank you very much for all....-) > > BR > > frequens > > > On Jan 25, 2008 3:01 PM, Daniel Morissette <dmorissette at mapgears.com> wrote: > > frequens wrote: > > > This solves the second one. First one still to go.... > > > > > > > Um... I think the problem is that maplexer.l has been modified for > > ticket #2331 but maplexer.c has not been updated in subversion (and in > > the release), so your system tries to regenerate it using your local > > copy of flex, which is possibly too old and that explains the errors you > > get. > > > > The release should have contained the updated maplexer.c but it did not. > > I have generated a new maplexer.c, can you please download it to your > > local source tree and try building again? You can use the following URL > > to download it: > > > > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/maplexer.c?format=txt > > > > If you confirm that this solves the issue then we'll have to release > > 5.0.2 right away with that fix. > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.com/ > > > From Bob.Basques at CI.STPAUL.MN.US Fri Jan 25 07:11:58 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 25 Jan 2008 09:11:58 -0600 Subject: Googlish MapFile V0.02 - additional files In-Reply-To: <smtpd.3888.4799efc0.b69af.3@mta-w2.tc.umn.edu> Message-ID: <FRI.25.JAN.2008.091158.0600.BOB.BASQUESCI.STPAUL.MN.US> Jim, The current download contains only the MapFile. The highway shield TrueType font is one I pulled from the State of Minnesota website, and I'm still looking at what fonts I can redistribute. We have some in the GeoMoose install, so I'm going to look at those as a replacement for the ones I'm using, which are questionable as far as reuse/licensing goes. bobb Bob Basques GIS Systems Developer City of Saint Paul, MN GISmo Powered by GeoMOOSE >>> Jim Dahl <jim.dahl at MAIL.CO.DOUGLAS.MN.US> wrote: I apologize if I made a double post, I have not replied on this list befo= re so I=20 am learning. Bob, I think you may have posted this info earlier, but don't recall. Is= the=20 fontset available? Is the data a download from tiger? I plan on using t= his=20 with our own road data, so I will need to change the field items to match= our=20 codes from MNDOT, is that right? Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080125/b141bc2f/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 11946 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080125/b141bc2f/attachment.gif> From pete at MDSC.COM Fri Jan 25 07:12:15 2008 From: pete at MDSC.COM (Pete Deffendol) Date: Fri, 25 Jan 2008 08:12:15 -0700 Subject: problem compiling 5.0.1 In-Reply-To: <4799EBC8.2020708@mapgears.com> Message-ID: <FRI.25.JAN.2008.081215.0700.PETEMDSC.COM> Daniel Morissette wrote: > The release should have contained the updated maplexer.c but it did > not. I have generated a new maplexer.c, can you please download it to > your local source tree and try building again? You can use the > following URL to download it: Having experienced the same difficulty, I've downloaded your new maplexer.c and confirmed that it works on CentOS 5, with the stock flex 2.5.4a installed. Pete -- Pete Deffendol Software Engineer Multimedia Data Services Corp. pete at mdsc.com From dmorissette at MAPGEARS.COM Fri Jan 25 07:26:43 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 25 Jan 2008 10:26:43 -0500 Subject: problem compiling 5.0.1 In-Reply-To: <2482247e0801250708g55bc867eg555b7d65a082bee8@mail.gmail.com> Message-ID: <FRI.25.JAN.2008.102643.0500.DMORISSETTEMAPGEARS.COM> frequens wrote: > Actually the fix works also with flex 2.5.4a.... > Both machines up and running, correctly at a first glance... > Thanks for confirming the fix. FYI, the reason why that works on both of your systems is that flex is not used any more once you use the updated file (the new maplexer.c is more recent than maplexer.l so the Makefile does not try to call flex to generate maplexer.c any more). Daniel -- Daniel Morissette http://www.mapgears.com/ From bhudspeth at EDAC.UNM.EDU Fri Jan 25 08:08:59 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Fri, 25 Jan 2008 10:08:59 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <FRI.25.JAN.2008.100859.0600.BHUDSPETHEDAC.UNM.EDU> Hello again, I have downloaded Mapserver 5.0.1, and have tried compiling and making with three different versions of GEOS. All give me more or less the same errors. The configure arguments and versions (obtained from running geos-config --version) for my various attempts include: --with-geos=/usr/local/geos/bin/geos-config 3.0.0 --with-geos=/usr/local/geos2_2_3/bin/geos-config 2.2.3 --with-geos=/usr/local/geos3_rc3/bin/geos-config 3.0.0rc3 The errors common to all installation attempts are: ./libmapserver.a(mapfile.o): In function `getCharacter': mapfile.c:(.text+0x748): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getInteger': mapfile.c:(.text+0x7d8): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getDouble': mapfile.c:(.text+0x855): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getString': mapfile.c:(.text+0xa64): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `loadHashTable': mapfile.c:(.text+0x4dcd): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x5b8d): more undefined references to `msyylineno' follow ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' ./libmapserver.a(maplexer.o): In function `.L439': maplexer.c:(.text+0x10cf): undefined reference to `msyylineno' ./libmapserver.a(mapsymbol.o): In function `loadSymbol': mapsymbol.c:(.text+0x24b2): undefined reference to `msyylineno' mapsymbol.c:(.text+0x2553): undefined reference to `msyylineno' mapsymbol.c:(.text+0x2c33): undefined reference to `msyylineno' ./libmapserver.a(mapsymbol.o): In function `loadSymbolSet': mapsymbol.c:(.text+0x2d52): undefined reference to `msyylineno' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 From arndw at WTAL.DE Fri Jan 25 09:19:58 2008 From: arndw at WTAL.DE (Arnd Wippermann) Date: Fri, 25 Jan 2008 18:19:58 +0100 Subject: AW: [UMN_MAPSERVER-USERS] Tiff world file question In-Reply-To: <5b61c6c50801231126g3ba59c4bv4fe5b689a29b9fe5@mail.gmail.com> Message-ID: <FRI.25.JAN.2008.181958.0100.ARNDWWTAL.DE> Hi, you work with georeferenced data and not with images. Therefor you have to declare in the tfw-file the coordinate of the left upper pixel in the correct projection. It could be that the gdal-tools have a program to cut an georeferenced image into georeferenced tiles. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ _____ Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Ian Gesendet: Mittwoch, 23. Januar 2008 20:27 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Tiff world file question SRTM3 data (.img format w/index) for a basemap is slow, so to speed up our draw times I'm using a script to make smaller tiles of this data. My script writes the images to .tif format and works, but I also need to generate tiff world files to maintain spatial reference. The definition I found for the .tfw format is: First row is x-pixel resolution Second and third rows are "rotational components" but are set to zero in the case of an unrotated map. The fourth row is the y-pixel resolution. The negative sign indicates that the image y-axis is positive down which is the opposite from real world coordinates. The 5th and 6th rows are the Easting and Northing of the upper left pixel (0,0 in image coordinates) So for SRTM3 data which is 90m resolution I am creating a .tfw file like: 90.00 0.00 0.00 -90.00 ??? ??? The last two rows are confusing me. Do I need to calculate the pixel position of the upper left corner of each new tile with respect to the pixels of ALL SRTM3 files? That calculation could be problematic. Also if there is another tiling solution that maintains spatial reference I'm all ears. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080125/5eea6e57/attachment.htm> From mhoward at AKIMEKATECH.COM Fri Jan 25 12:07:01 2008 From: mhoward at AKIMEKATECH.COM (Mark Howard) Date: Fri, 25 Jan 2008 10:07:01 -1000 Subject: SID vs ECW In-Reply-To: A<20080125172002.9F7EE106903@smtp.tal.de> Message-ID: <FRI.25.JAN.2008.100701.1000.MHOWARDAKIMEKATECH.COM> Has anyone compared performance between SID and ECW images? I have data in both formats, but it SEEMS that the ECW works MUCH better with mapserv. For example, I have two layers with similar data. Both are served with a tileindex. LAYER1 -- SID 1Meter color ,6x6km /cell,7Mb per image Initial display @1:100k 8-10 seconds Pan @1:100k 8-10 seconds Initial display @1:10k 8-10 seconds Pan @1:10k 4 seconds ------------------------------------------------------------------------ -------------------------------------------- LAYER 2 -- ECW 6 inch color ,12x12km /cell,9Mb per image Initial display @1:100k 3-4 seconds Pan @1:100k 3-4 seconds Initial display @1:10k 2-3 seconds Pan @1:10k 2-3 seconds The ECW images render MUCH faster than the SID images. This is pretty incredible since the ECW images have 36x the resolution (6x X 6x) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080125/7d3c8cc4/attachment.htm> From bartvde at GMAIL.COM Sun Jan 27 08:53:07 2008 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Sun, 27 Jan 2008 17:53:07 +0100 Subject: TRANSPARENCY 0 and MS 5.0 Message-ID: <SUN.27.JAN.2008.175307.0100.BARTVDEGMAIL.COM> Hi list, last Friday I ran into the problem that when using existing MAP files with Mapserver 5.0, some of the layers were not drawn anymore. Those layers had TRANSPARENCY 0, and using Mapserver 4.X they did draw. If I read the migration guide, I would not expect this behaviour. Is somebody able to elaborate on this? Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080127/50c496a2/attachment.htm> From williampaul28 at YAHOO.COM Sun Jan 27 09:20:45 2008 From: williampaul28 at YAHOO.COM (william paul) Date: Sun, 27 Jan 2008 09:20:45 -0800 Subject: zoom rectangle (or dynamic zoom) with python mapscript Message-ID: <SUN.27.JAN.2008.092045.0800.WILLIAMPAUL28YAHOO.COM> Hello: I am trying to learn mapscript and I am using the Python version. I have found good examples and it's working OK so far, but I have a few questions: - how can I create dynamic zoom in mapscript, so I can draw a rectangle on the screen and zoom in in that area? Do I need javascript or is done by mapscript Thank you, William ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080127/cb85a0c0/attachment.htm> From bartvde at GMAIL.COM Sun Jan 27 09:47:25 2008 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Sun, 27 Jan 2008 18:47:25 +0100 Subject: zoom rectangle (or dynamic zoom) with python mapscript In-Reply-To: <91851.69873.qm@web38410.mail.mud.yahoo.com> Message-ID: <SUN.27.JAN.2008.184725.0100.BARTVDEGMAIL.COM> You will need javascript anyway, so I recommend looking at the excellent OpenLayers library instead of creating your own: http://www.openlayers.org Best regards, Bart On Jan 27, 2008 6:20 PM, william paul <williampaul28 at yahoo.com> wrote: > Hello: > > I am trying to learn mapscript and I am using the Python version. I have > found good examples and it's working OK so far, but I have a few questions: > - how can I create dynamic zoom in mapscript, so I can draw a rectangle on > the screen and zoom in in that area? Do I need javascript or is done by > mapscript > > Thank you, > > William > > > > ------------------------------ > Looking for last minute shopping deals? Find them fast with Yahoo! Search.<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping> > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080127/c88d153f/attachment.htm> From williampaul28 at YAHOO.COM Sun Jan 27 10:18:39 2008 From: williampaul28 at YAHOO.COM (william paul) Date: Sun, 27 Jan 2008 10:18:39 -0800 Subject: zoom rectangle (or dynamic zoom) with python mapscript Message-ID: <SUN.27.JAN.2008.101839.0800.WILLIAMPAUL28YAHOO.COM> Thank you Bart: I will and I will try to use also dbox for dynamic pan and zoom William ----- Original Message ---- From: Bart van den Eijnden <bartvde at GMAIL.COM> To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sunday, January 27, 2008 7:47:25 PM Subject: Re: [UMN_MAPSERVER-USERS] zoom rectangle (or dynamic zoom) with python mapscript You will need javascript anyway, so I recommend looking at the excellent OpenLayers library instead of creating your own: http://www.openlayers.org Best regards, Bart On Jan 27, 2008 6:20 PM, william paul <williampaul28 at yahoo.com> wrote: Hello: I am trying to learn mapscript and I am using the Python version. I have found good examples and it's working OK so far, but I have a few questions: - how can I create dynamic zoom in mapscript, so I can draw a rectangle on the screen and zoom in in that area? Do I need javascript or is done by mapscript Thank you, William Looking for last minute shopping deals? Find them fast with Yahoo! Search. ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080127/2631bb84/attachment.htm> From IANT at NAPIER.GOVT.NZ Sun Jan 27 12:03:52 2008 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Mon, 28 Jan 2008 09:03:52 +1300 Subject: Rendering with SSL Message-ID: <MON.28.JAN.2008.090352.1300.IANTNAPIER.GOVT.NZ> Hi All, I have just enabled SSL on my MapServer and now when using SSL the page isn't rendering properly. This could be an Apache problem, but I am not sure. I am running MapServer 4.10 on Ubuntu Linux 7.04 and PHP 5.2. The problem is that images, and other files (style sheet) are not always being rendered (read) by the web browser. The problem is more pronounced with MS Internet Explorer. Any ideas??? The URL is http://maps.napier.govt.nz/ and https://maps.napier.govt.nz/ Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080128/64b4a7d4/attachment.htm> From beyhan at DEPREM.GOV.TR Sun Jan 27 23:56:51 2008 From: beyhan at DEPREM.GOV.TR (Murat Beyhan) Date: Mon, 28 Jan 2008 09:56:51 +0200 Subject: is it possible to draw grd file using Mapserver In-Reply-To: <4796081D.6020909@pobox.com> Message-ID: <MON.28.JAN.2008.095651.0200.BEYHANDEPREM.GOV.TR> Dear Friend, I have solved the problem which I published to the list. Frank, As you said I have used GMT(grdtrack) to interpolate two layers. Thank you very much for your interest. Actually I was wondered to do this by mapServer because it is easy to create dynamic map using mapserver. Regards... Murat Frank Warmerdam wrote: > Murat Beyhan wrote: >> So I draw both layer by using it's .shp .dbf file. >> As you see both are point file. >> But I need to know if I draw both on the one map, Which villages >> placed which zones. >> Zones could created by using acceleration. For example 0-100 gal is >> zone 1, 101-200gal is zone2, etc. >> >> I guess, If you draw acceleration using point data you could not >> distinguish data as zone. >> May be by using point data I can obtain grid file or polygon file >> than I can determine the village point place on the polygon. >> When you draw acceleration distribution the shape of the distribution >> seems circular area then when you classify zones you can get result >> of the distribution which are divided into several level. > > Murat, > > It sounds like you need an algorithm to generate a raster by > interpolation > from your acceleration point data. There are many options to do this, > but three that come to mind are GRASS, GMT or the gdal_grid program new > in GDAL 1.5. > > Once you have an interpolated raster grid of the accelerations you could > draw each class/range in a distinct color using classes to give a visual > indication of the zones. > > If you want to know what the zone is for each village I would suggest > doing this as a distinct processing step. Something where you sample the > grid for each village location and attach a new column with the actual > value, or the corresponding zone. This might be accomplished as a > GDAL/OGR script (eg. in python). I'm sure this is also something that > can be accomplished in GRASS and perhaps in GMT. > > I guess my main point is that you need to do various preprocessing steps > before visualization and that these are best done in other packages more > suited to the task. As we say "MapServer is not a GIS" which means we > aren't > trying to replicate all sorts of GIS processing in MapServer. > > All that said, in theory you could accomplish something vaguely > similar in > MapServer by writing a complicated mapscript script that for each village > did a search for the nearest point and apply a zonation on that > basis. But > I wouldn't advise this approach for performance, complexity and > inexactness > reasons. > > Best regards, -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From fx.gamoy at GEOMATIKA.FR Mon Jan 28 05:13:02 2008 From: fx.gamoy at GEOMATIKA.FR (FX GAMOY) Date: Mon, 28 Jan 2008 14:13:02 +0100 Subject: [gdal-dev] mapinfo to postgis problem Message-ID: <MON.28.JAN.2008.141302.0100.FX.GAMOYGEOMATIKA.FR> Hello Tamas, i ve made two screenshots the first one image_reseau_test_sens.png has been made using mapinfo. (initial data) the mapinfo tab has been translated into postgis using ogr2ogr.. The second one (sens_mapserver.png) is computed by mapserver. look a the red network. You can notice that somtimes the arrows in the two screenshots are not computed on the same way. Thanks fx Le Tuesday 22 January 2008 11:00:26 Tamas Szekeres, vous avez ?crit?: > 2008/1/22, FX GAMOY <fx.gamoy at geomatika.fr>: > > i work with polylines representing a water network ( system ).. > > i would like to draw on the map the way the line has been vectorized with > > mapinfo.. using some arrows > > > > But this way seem to be sometimes changed by the ogr2ogr translation or > > by mapserver when computing the map. > > Could you describe the behaviour of the change? > > > Best regards, > > Tamas -------------- next part -------------- A non-text attachment was scrubbed... Name: image_reseau_test_sens.png Type: image/png Size: 36858 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080128/b3045eae/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: sens_mapserver.png Type: image/png Size: 18076 bytes Desc: not available URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080128/b3045eae/attachment-0001.png> From Jukka.Rahkonen at MMMTIKE.FI Mon Jan 28 05:28:22 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Mon, 28 Jan 2008 15:28:22 +0200 Subject: Cascading external WMS using basic authentication over https In-Reply-To: A<4794C6D1.9000807@pobox.com> Message-ID: <MON.28.JAN.2008.152822.0200.JUKKA.RAHKONENMMMTIKE.FI> Frank Warmerdam wrote >Rahkonen Jukka wrote: >>> Frank Warmerdam wrote >>> Rahkonen Jukka wrote: >>>> Hi, >>>> >>>> Is it possible to make MapServer to cascade another WMS >>> service that >>>> must be accessed through https and that wants to get >>> username/password >>>> for authentication? How? >>> Jukka, >>> >>> I'm not sure what others ways are possible, but I found that to get >>> MapServer able to talk to a password protected WMS (or perhaps WFS?) >>> I had to hack the code to pass some extra options to curl. Ideally >>> we would provide a mechanism to do this directly from the mapserver >>> if there is no better way. > >> Direct way from mapserver would be very convenient for us. Should I >> make make a feature request and hope for the best or what? > Jukka, > I would be willing to implement this if you are willing to help with > some research, RFC writing and testing. In particular we need to > isolate what extra curl options such as, but possibly not limited to, > userid and password we should be able to pass through. Then we can > write up an RFC based on doing this through layer metadata. Then - > once approved - I can implement and you could test. > As I think back, I realize the other time I did something like this it > was actually using a digital certificate rather than simple > userid/password protection. Ideally we would address both cases. > If this effort level exceeds the amount of effort you want to invest, > then filing an enhancement ticket at least summarizing some of these > ideas would be a good start. > PS. If implemented we would presumably do it in a way that applied to > WFS and WMS client layers. Hi, I got the following answer from our developer: "I don't see anything special here, in addition to pass on the username and password, but to check if the server certificate is to be trusted. If Mapserver is using curl then it is possible to give a (list of ?) certificate provider(s) whos certificates should be accepted." And then he sent me an excerpt from curl manual --cacert <CA certificate> (HTTPS) Tells curl to use the specified certificate file to verify the peer. The file may contain multiple CA certificates. The certificate(s) must be in PEM format. His conclusion was that in order to use https / basic-auth combination these three items would be needed: - username - password - file that contains the trusted certificates. I hope this makes sense. -Jukka- From josem.lucas2 at CARM.ES Mon Jan 28 05:08:46 2008 From: josem.lucas2 at CARM.ES (LUCAS BERNAL, JOSE MIGUEL) Date: Mon, 28 Jan 2008 14:08:46 +0100 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <MON.28.JAN.2008.140846.0100.JOSEM.LUCAS2CARM.ES> Hello, Try with "geos-3.0.0rc4" with Mapserver 5.0. I installed in Suse Linux 9. Best Regards; -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de William Hudspeth Enviado el: viernes, 25 de enero de 2008 17:09 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] Mapserver 5.0.0 installation fails at GEOS Hello again, I have downloaded Mapserver 5.0.1, and have tried compiling and making with three different versions of GEOS. All give me more or less the same errors. The configure arguments and versions (obtained from running geos-config --version) for my various attempts include: --with-geos=/usr/local/geos/bin/geos-config 3.0.0 --with-geos=/usr/local/geos2_2_3/bin/geos-config 2.2.3 --with-geos=/usr/local/geos3_rc3/bin/geos-config 3.0.0rc3 The errors common to all installation attempts are: ./libmapserver.a(mapfile.o): In function `getCharacter': mapfile.c:(.text+0x748): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getInteger': mapfile.c:(.text+0x7d8): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getDouble': mapfile.c:(.text+0x855): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `getString': mapfile.c:(.text+0xa64): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o): In function `loadHashTable': mapfile.c:(.text+0x4dcd): undefined reference to `msyylineno' ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x5b8d): more undefined references to `msyylineno' follow ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' ./libmapserver.a(maplexer.o): In function `.L439': maplexer.c:(.text+0x10cf): undefined reference to `msyylineno' ./libmapserver.a(mapsymbol.o): In function `loadSymbol': mapsymbol.c:(.text+0x24b2): undefined reference to `msyylineno' mapsymbol.c:(.text+0x2553): undefined reference to `msyylineno' mapsymbol.c:(.text+0x2c33): undefined reference to `msyylineno' ./libmapserver.a(mapsymbol.o): In function `loadSymbolSet': mapsymbol.c:(.text+0x2d52): undefined reference to `msyylineno' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 From peter.loewe at GMX.DE Mon Jan 28 06:33:03 2008 From: peter.loewe at GMX.DE (Peter Loewe) Date: Mon, 28 Jan 2008 15:33:03 +0100 Subject: mapserver doesnt't see libgdal Message-ID: <MON.28.JAN.2008.153303.0100.> Hi, I am trying to compile MS from the 5.0.1 source on a remote (webhosting) system (i have no root priviliges there). For some unknown reason, mapserver refuses to acknowledge the location of libgdal [GDAL itself was built from the sources (1.5.0) and shows no problems]: ---MS-Configure: LDFLAGS='-L/home/pacs/aho02/users/loewe01/homemade/lib -L/lib -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -Wl,-rpath=/home/pacs/xxx/homemade/lib' \ ./configure \ --prefix=/home/pacs/xxx/homemade/lib \ --enable-runpath \ --with-gd=/home/pacs/xxx/homebuilt/gd-2.0.33 \ --with-proj \ --with-gdal=/home/pacs/xxx/homemade/bin/gdal-config \ --without-ogr \ --without-wcs \ --with-wmsclient \ --with-wms \ --without-wfs \ --without-wfsclient \ --with-xml2-config=/usr/bin/xml2-config \ --without-sos \ --with-pdf=/home/pacs/xxx/homebuilt/PDFlib-6.0.3p5-Linux/bind/c \ --with-php=/usr/local/share/php/5.1.1 MS compiles nicely. Unfortunately, this is what ldd mapserv has to tell: ldd mapserv linux-gate.so.1 => (0xb7f68000) libgd.so.2 => /home/pacs/xxx/homebuilt/gd-2.0.33/.libs/libgd.so.2 (0xb7f17000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7eeb000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e81000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e5e000) libz.so.1 => /usr/lib/libz.so.1 (0xb7e4a000) libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7e3a000) libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d4e000) libproj.so.0 => /usr/lib/libproj.so.0 (0xb7d18000) libgdal.so.1 => not found Yet, libgdal.so.1 _does_ exist: ls -l ~/homemade/lib/ -rw-r--r-- 1 libgdal.a -rwxr-xr-x 1 libgdal.la lrwxrwxrwx 1 libgdal.so -> libgdal.so.1.12.0 lrwxrwxrwx 1 libgdal.so.1 -> libgdal.so.1.12.0 -rwxr-xr-x 1 libgdal.so.1.12.0 -rw-r--r-- 1 libpdf.a Has anybody encountered this before ? ANY suggestion would be much appreciated! Peter -- Dr. Peter L?we <peter.loewe at gmx.de> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From guillaume.sueur at NEOGEO-ONLINE.NET Mon Jan 28 06:36:20 2008 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Mon, 28 Jan 2008 15:36:20 +0100 Subject: mapserver doesnt't see libgdal In-Reply-To: <20080128143303.98840@gmx.net> Message-ID: <MON.28.JAN.2008.153620.0100.GUILLAUME.SUEURNEOGEOONLINE.NET> just a clue : add your ~/homemade/lib/ to /etc/ld.so.conf and run ldconfig as root Guillaume Peter Loewe a ?crit : > Hi, > > I am trying to compile MS from the 5.0.1 source on a remote (webhosting) system (i have no root priviliges there). > > For some unknown reason, mapserver refuses to acknowledge the location of libgdal [GDAL itself was built from the sources (1.5.0) and shows no problems]: > > ---MS-Configure: > > LDFLAGS='-L/home/pacs/aho02/users/loewe01/homemade/lib -L/lib -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib -Wl,-rpath=/home/pacs/xxx/homemade/lib' \ > ./configure \ > --prefix=/home/pacs/xxx/homemade/lib \ > --enable-runpath \ > --with-gd=/home/pacs/xxx/homebuilt/gd-2.0.33 \ > --with-proj \ > --with-gdal=/home/pacs/xxx/homemade/bin/gdal-config \ > --without-ogr \ > --without-wcs \ > --with-wmsclient \ > --with-wms \ > --without-wfs \ > --without-wfsclient \ > --with-xml2-config=/usr/bin/xml2-config \ > --without-sos \ > --with-pdf=/home/pacs/xxx/homebuilt/PDFlib-6.0.3p5-Linux/bind/c \ > --with-php=/usr/local/share/php/5.1.1 > > MS compiles nicely. > > Unfortunately, this is what ldd mapserv has to tell: > ldd mapserv > linux-gate.so.1 => (0xb7f68000) > libgd.so.2 => /home/pacs/xxx/homebuilt/gd-2.0.33/.libs/libgd.so.2 (0xb7f17000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7eeb000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e81000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e5e000) > libz.so.1 => /usr/lib/libz.so.1 (0xb7e4a000) > libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7e3a000) > libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d4e000) > libproj.so.0 => /usr/lib/libproj.so.0 (0xb7d18000) > libgdal.so.1 => not found > > Yet, libgdal.so.1 _does_ exist: > > ls -l ~/homemade/lib/ > > -rw-r--r-- 1 libgdal.a > -rwxr-xr-x 1 libgdal.la > lrwxrwxrwx 1 libgdal.so -> libgdal.so.1.12.0 > lrwxrwxrwx 1 libgdal.so.1 -> libgdal.so.1.12.0 > -rwxr-xr-x 1 libgdal.so.1.12.0 > -rw-r--r-- 1 libpdf.a > > Has anybody encountered this before ? > > ANY suggestion would be much appreciated! > > Peter > > > From warmerdam at POBOX.COM Mon Jan 28 06:41:56 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 28 Jan 2008 09:41:56 -0500 Subject: mapserver doesnt't see libgdal In-Reply-To: <20080128143303.98840@gmx.net> Message-ID: <MON.28.JAN.2008.094156.0500.WARMERDAMPOBOX.COM> Peter Loewe wrote: > Hi, > > I am trying to compile MS from the 5.0.1 source on a remote (webhosting) system (i have no root priviliges there). > > For some unknown reason, mapserver refuses to acknowledge the location of libgdal [GDAL itself was built from the sources (1.5.0) and shows no problems]: > Unfortunately, this is what ldd mapserv has to tell: > ldd mapserv > linux-gate.so.1 => (0xb7f68000) > libgd.so.2 => /home/pacs/xxx/homebuilt/gd-2.0.33/.libs/libgd.so.2 (0xb7f17000) > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7eeb000) > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e81000) > libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e5e000) > libz.so.1 => /usr/lib/libz.so.1 (0xb7e4a000) > libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7e3a000) > libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d4e000) > libproj.so.0 => /usr/lib/libproj.so.0 (0xb7d18000) > libgdal.so.1 => not found > > Yet, libgdal.so.1 _does_ exist: > > ls -l ~/homemade/lib/ > > -rw-r--r-- 1 libgdal.a > -rwxr-xr-x 1 libgdal.la > lrwxrwxrwx 1 libgdal.so -> libgdal.so.1.12.0 > lrwxrwxrwx 1 libgdal.so.1 -> libgdal.so.1.12.0 > -rwxr-xr-x 1 libgdal.so.1.12.0 > -rw-r--r-- 1 libpdf.a > > Has anybody encountered this before ? > > ANY suggestion would be much appreciated! Peter, Setup the LD_LIBRARY_PATH environment variable to point to /home/pacs/xxx/homemade/lib. You can try this at the commandline initially but you will likely want to accomplish it with a wrapper script around mapserv when you are ready to deploy things as a cgi. (assuming you also can't modify the apache configuration). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at MAPGEARS.COM Mon Jan 28 06:46:41 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 28 Jan 2008 09:46:41 -0500 Subject: [gdal-dev] mapinfo to postgis problem In-Reply-To: <200801281413.02551.fx.gamoy@geomatika.fr> Message-ID: <MON.28.JAN.2008.094641.0500.DMORISSETTEMAPGEARS.COM> FX GAMOY wrote: > > look a the red network. You can notice that somtimes the arrows in the two > screenshots are not computed on the same way. > Try using a negative GAP value in your symbol definition. More details in this post: http://www.nabble.com/Re%3A-one-way-roads%2C-drawing-spaced-arrows-p15025908.html Daniel -- Daniel Morissette http://www.mapgears.com/ From peter.loewe at GMX.DE Mon Jan 28 06:51:16 2008 From: peter.loewe at GMX.DE (=?iso-8859-1?Q?=22Peter_L=F6we=22?=) Date: Mon, 28 Jan 2008 15:51:16 +0100 Subject: mapserver doesnt't see libgdal In-Reply-To: <479DE9B4.6070202@pobox.com> Message-ID: <MON.28.JAN.2008.155116.0100.PETER.LOEWEGMX.DE> Frank, thanks for the hint, it has been already tried and did not help: If a wrapper is used, mapserv falls into some sort of an ugly infinite loop. BTW: gdal-config is obviously aware of the correct locations of the libs: ~/homemade/bin$ ./gdal-config --libs -L/home/pacs/xxx/homemade/lib -lgdal Still puzzled, Peter -------- Original-Nachricht -------- > Datum: Mon, 28 Jan 2008 09:41:56 -0500 > Von: Frank Warmerdam <warmerdam at pobox.com> > An: peter.loewe at GMX.DE > CC: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] mapserver doesnt\'t see libgdal > Peter Loewe wrote: > > Hi, > > > > I am trying to compile MS from the 5.0.1 source on a remote (webhosting) > system (i have no root priviliges there). > > > > For some unknown reason, mapserver refuses to acknowledge the location > of libgdal [GDAL itself was built from the sources (1.5.0) and shows no > problems]: > > > Unfortunately, this is what ldd mapserv has to tell: > > ldd mapserv > > linux-gate.so.1 => (0xb7f68000) > > libgd.so.2 => > /home/pacs/xxx/homebuilt/gd-2.0.33/.libs/libgd.so.2 (0xb7f17000) > > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7eeb000) > > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e81000) > > libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e5e000) > > libz.so.1 => /usr/lib/libz.so.1 (0xb7e4a000) > > libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7e3a000) > > libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d4e000) > > libproj.so.0 => /usr/lib/libproj.so.0 (0xb7d18000) > > libgdal.so.1 => not found > > > > Yet, libgdal.so.1 _does_ exist: > > > > ls -l ~/homemade/lib/ > > > > -rw-r--r-- 1 libgdal.a > > -rwxr-xr-x 1 libgdal.la > > lrwxrwxrwx 1 libgdal.so -> libgdal.so.1.12.0 > > lrwxrwxrwx 1 libgdal.so.1 -> libgdal.so.1.12.0 > > -rwxr-xr-x 1 libgdal.so.1.12.0 > > -rw-r--r-- 1 libpdf.a > > > > Has anybody encountered this before ? > > > > ANY suggestion would be much appreciated! > > Peter, > > Setup the LD_LIBRARY_PATH environment variable to point to > /home/pacs/xxx/homemade/lib. You can try this at the commandline > initially but you will likely want to accomplish it with a wrapper > script around mapserv when you are ready to deploy things as a cgi. > (assuming you also can't modify the apache configuration). > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org -- Dr. Peter L?we <peter.loewe at gmx.de> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f?r Modem und ISDN: http://www.gmx.net/de/go/smartsurfer From peter.loewe at GMX.DE Mon Jan 28 06:54:06 2008 From: peter.loewe at GMX.DE (=?iso-8859-1?Q?=22Peter_L=F6we=22?=) Date: Mon, 28 Jan 2008 15:54:06 +0100 Subject: mapserver doesnt't see libgdal In-Reply-To: <479DE864.3020403@neogeo-online.net> Message-ID: <MON.28.JAN.2008.155406.0100.PETER.LOEWEGMX.DE> Guillaume, thanks for the hint, but I have no root-priviliges. Cheers, Peter -------- Original-Nachricht -------- > Datum: Mon, 28 Jan 2008 15:36:20 +0100 > Von: Guillaume Sueur <guillaume.sueur at neogeo-online.net> > An: peter.loewe at GMX.DE, MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] mapserver doesnt\'t see libgdal > just a clue : > > add your ~/homemade/lib/ to /etc/ld.so.conf and run ldconfig as root > > Guillaume > > Peter Loewe a ?crit : > > Hi, > > > > I am trying to compile MS from the 5.0.1 source on a remote (webhosting) > system (i have no root priviliges there). > > > > For some unknown reason, mapserver refuses to acknowledge the location > of libgdal [GDAL itself was built from the sources (1.5.0) and shows no > problems]: > > > > ---MS-Configure: > > > > LDFLAGS='-L/home/pacs/aho02/users/loewe01/homemade/lib -L/lib -L/usr/lib > -L/usr/local/lib -L/usr/X11R6/lib -Wl,-rpath=/home/pacs/xxx/homemade/lib' > \ > > ./configure \ > > --prefix=/home/pacs/xxx/homemade/lib \ > > --enable-runpath \ > > --with-gd=/home/pacs/xxx/homebuilt/gd-2.0.33 \ > > --with-proj \ > > --with-gdal=/home/pacs/xxx/homemade/bin/gdal-config \ > > --without-ogr \ > > --without-wcs \ > > --with-wmsclient \ > > --with-wms \ > > --without-wfs \ > > --without-wfsclient \ > > --with-xml2-config=/usr/bin/xml2-config \ > > --without-sos \ > > --with-pdf=/home/pacs/xxx/homebuilt/PDFlib-6.0.3p5-Linux/bind/c \ > > --with-php=/usr/local/share/php/5.1.1 > > > > MS compiles nicely. > > > > Unfortunately, this is what ldd mapserv has to tell: > > ldd mapserv > > linux-gate.so.1 => (0xb7f68000) > > libgd.so.2 => > /home/pacs/xxx/homebuilt/gd-2.0.33/.libs/libgd.so.2 (0xb7f17000) > > libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7eeb000) > > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7e81000) > > libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7e5e000) > > libz.so.1 => /usr/lib/libz.so.1 (0xb7e4a000) > > libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7e3a000) > > libX11.so.6 => /usr/lib/libX11.so.6 (0xb7d4e000) > > libproj.so.0 => /usr/lib/libproj.so.0 (0xb7d18000) > > libgdal.so.1 => not found > > > > Yet, libgdal.so.1 _does_ exist: > > > > ls -l ~/homemade/lib/ > > > > -rw-r--r-- 1 libgdal.a > > -rwxr-xr-x 1 libgdal.la > > lrwxrwxrwx 1 libgdal.so -> libgdal.so.1.12.0 > > lrwxrwxrwx 1 libgdal.so.1 -> libgdal.so.1.12.0 > > -rwxr-xr-x 1 libgdal.so.1.12.0 > > -rw-r--r-- 1 libpdf.a > > > > Has anybody encountered this before ? > > > > ANY suggestion would be much appreciated! > > > > Peter > > > > > > -- Dr. Peter L?we <peter.loewe at gmx.de> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail From fx.gamoy at GEOMATIKA.FR Mon Jan 28 07:12:17 2008 From: fx.gamoy at GEOMATIKA.FR (Fx Gamoy) Date: Mon, 28 Jan 2008 16:12:17 +0100 Subject: [gdal-dev] mapinfo to postgis problem In-Reply-To: <479DEAD1.3040000@mapgears.com> Message-ID: <MON.28.JAN.2008.161217.0100.> SOLVED GAP did the work... Daniel , u know what? u are the best :-) many thanks, Best regards, fx http://www.geomatika.fr/ Daniel Morissette <dmorissette at mapgears.com> a ?crit?: > FX GAMOY wrote: >> >> look a the red network. You can notice that somtimes the arrows in >> the two screenshots are not computed on the same way. > > Try using a negative GAP value in your symbol definition. > > More details in this post: > > http://www.nabble.com/Re%3A-one-way-roads%2C-drawing-spaced-arrows-p15025908.html > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Mon Jan 28 08:14:54 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 28 Jan 2008 11:14:54 -0500 Subject: MapServer 5.0.2 released Message-ID: <MON.28.JAN.2008.111454.0500.DMORISSETTEMAPGEARS.COM> MapServer 5.0.2 has just been released. This new release solves a build problem that was reported with v5.0.1 released last week. It does not contain any other bug fix or new feature. If you were able to build MapServer 5.0.1 on your system then you probably do not need to upgrade. Otherwise if you encountered build problems related to maplexer.c with MapServer 5.0.1 last week then this 5.0.2 release is for you. The source package is available in the MapServer downloads page: http://mapserver.gis.umn.edu/download/current/ Precompiled binaries should be available shortly at the usual locations (also linked from the download page above). Daniel From paul_pag00 at HOTMAIL.COM Mon Jan 28 09:48:08 2008 From: paul_pag00 at HOTMAIL.COM (Paul Alarcon) Date: Mon, 28 Jan 2008 17:48:08 +0000 Subject: msDrawMap(): Image handling error Message-ID: <MON.28.JAN.2008.174808.0000.PAUL_PAG00HOTMAIL.COM> Hello everyone I?m using a html template to make search in mapserver, the problem is that I change the table from one of the shapes and now I have this error"msDrawMap(): Image handling error. Failed to draw layer named 'Escuelas'." when I make a query a dont tell me nothing more, i used other table for "Escuelas" and it work but with this one dont work I used this one for display information and it works. but for query i have that error Here is the map file Help me please MAP NAME test #MapFile testing possible bug on itemquery STATUS ON SIZE 800 600 EXTENT 836705.704288 9999113.003817 1143436.012879 10051849.051893 STATUS ON #SHAPEPATH "/home/mapdata/Pichincha/pruebas/POLITICO 2002/" IMAGECOLOR 255 255 255 IMAGETYPE PNG FONTSET "/srv/www/htdocs/ka-map/fontset.txt" ################################################# WEB HEADER "/srv/www/htdocs/headersuc.html" FOOTER "/srv/www/htdocs/footersuc.html" IMAGEPATH "/srv/www/htdocs/temp/" IMAGEURL "/temp/" TEMPLATE "somthing.html" EMPTY "/emptysuc.html" LOG "/srv/www/htdocs/temp/sucumbios" END # End of Web Interface ################################################# # Reference map###################### REFERENCE STATUS ON IMAGE "/srv/www/htdocs/php_test/provincias/sucumbios/sucumbios_base.gif" SIZE 200 198 EXTENT 835105.70 9949113.00 1145436.01 10071849.05 COLOR -1 -1 -1 OUTLINECOLOR 255 0 100 MINBOXSIZE 3 MAXBOXSIZE 0 MARKER 0 MARKERSIZE 0 END ######################################## #Legend LEGEND STATUS on #IMAGECOLOR 65 171 49 POSITION LL LABEL TYPE truetype FONT "blbi____" COLOR 0 0 0 SIZE 10 ANTIALIAS true END END # Symbol para lineas gruesas SYMBOL NAME "BigLine" TYPE ELLIPSE POINTS 1 1 END END ##################################### # Symbol para puntos # SYMBOL NAME "Circle" FILLED true TYPE ellipse POINTS 1 1 END END ##################################### #Symbol cuadrado base SYMBOL NAME "Cuadro" TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 0 0 END FILLED TRUE END ######################################## #SYMBOL circulo SYMBOL NAME "punkt" TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END ########################################### querymap status on SIZE 700 500 style SELECTED END ############################################# LAYER NAME cantones STATUS DEFAULT TYPE POLYGON CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from cantones" LABELCACHE on TOLERANCE 0 METADATA qstring_validation_pattern '.' END LABELITEM "non_canton" CLASS TEMPLATE "/srv/www/htdocs/querytemplate2.html" NAME "Canton" OUTLINECOLOR 0 0 0 COLOR 187 212 201 END END #end layer ############################################################# LAYER NAME parroquias STATUS DEFAULT TYPE polygon CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from parroquias" STATUS default METADATA qstring_validation_pattern '.' END LABELITEM "parroquia" #DATA 'parroquial' TOLERANCE 0 CLASS NAME "Parroquia" TEMPLATE "/srv/www/htdocs/querytemplate3.html" OUTLINECOLOR 100 0 0 COLOR -1 -1 -1 END END #end layer ################# LAYER NAME PROVINCIAS STATUS DEFAULT TYPE line #METADATA # qstring_validation_pattern '.' #END #LABELITEM "PARROQUIA" #DATA 'provincial' CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from provincial" CLASS NAME "Provincia" #OUTLINECOLOR 100 0 0 COLOR 0 0 5 STYLE SYMBOL "BigLine" SIZE 4 #COLOR 50 212 51 OUTLINECOLOR 12 0 0 END END END #end layer ##################################### LAYER NAME "Escuelas" CONNECTIONTYPE postgis CONNECTION "host=localhost port=5432 dbname=demo_postgis user=postgres password=" DATA "the_geom from gis_plantel" STATUS default TYPE point #LABELITEM "plan_nombre" LABELCACHE on TOLERANCE 0 HEADER "/srv/www/htdocs/head_plan.html" FOOTER "/srv/www/htdocs/foot_plan.html" CLASSITEM "pla_nivel" METADATA qstring_validation_pattern '.' END DEBUG on GROUP "PLANTELES" CLASS NAME "PREPRIMARIO" TEMPLATE "/srv/www/htdocs/querytemplate.html" EXPRESSION "PREPRIMARIO" STYLE END STYLE SYMBOL "punkt" SIZE 6 COLOR 204 204 0 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END #label END #clase CLASS NAME "PRIMARIO" TEMPLATE "/srv/www/htdocs/querytemplate.html" EXPRESSION "PRIMARIO" STYLE END STYLE SYMBOL "punkt" SIZE 6 COLOR 142 94 94 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END #label END # Clase CLASS NAME "MEDIO" TEMPLATE "/srv/www/htdocs/querytemplate.html" EXPRESSION /^MEDIO/ STYLE END STYLE SYMBOL "punkt" SIZE 6 COLOR 0 204 255 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 20 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END END CLASS NAME "S/Dato" TEMPLATE "/srv/www/htdocs/querytemplate.html" EXPRESSION " " STYLE SYMBOL "Circle" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END LABEL TYPE truetype FONT "DejaVuSerif" SIZE 8 COLOR 0 0 0 #OUTLINECOLOR 0 0 0 #BACKGROUNDCOLOR 255 255 255 MINDISTANCE 50 POSITION uc ANGLE 0.00 ANTIALIAS false BUFFER 20 END END ############################################################################# END #LAYER LAYER NAME "gridlayer" TYPE LINE STATUS DEFAULT CLASS COLOR 0 0 0 LABEL COLOR 0 0 0 SIZE SMALL OUTLINECOLOR 255 255 255 END END GRID LABELFORMAT "DDMM" MININTERVAL 50000 END END # Layer END _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us From Josh.Hevenor at DPRA.COM Mon Jan 28 11:20:18 2008 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Mon, 28 Jan 2008 13:20:18 -0600 Subject: querying a layer by multiple attributes Message-ID: <MON.28.JAN.2008.132018.0600.JOSH.HEVENORDPRA.COM> . . . If I want to use PHP MapScript to query a SDE layer by two attributes what format do I use? Is there documentation available on this query format? My first attempt(s) look something like: if($layer->queryByAttributes("(attr1,attr2)", "trade_no=$tradeArea, level_x='1'", MS_MULTIPLE)==MS_SUCCESS){ $numRes = $layer->getNumResults(); // . . . the rest } And I'm receiving an error stating that "msSDELayerInitItemInfo(): A specified CLASSITEM, FILTERITEM, or expression key cannot be found in C:\Inetpub\wwwroot\project\csy.php on line 9214" Thanks in advance, Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information 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 DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080128/ecb770d9/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3247 bytes Desc: image001.jpg URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080128/ecb770d9/attachment.jpg> From Bob.Basques at CI.STPAUL.MN.US Mon Jan 28 13:35:41 2008 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 28 Jan 2008 15:35:41 -0600 Subject: Googlish MapFile test site update. Message-ID: <MON.28.JAN.2008.153541.0600.BOB.BASQUESCI.STPAUL.MN.US> All, I got a couple of reports that some of the layers were being authenticated on the outside. I think I have them all exposed now, so they should all be viewable for those that were interested in comparing the AGG 24bit PNG and GD 8bit PNG outputs which both have transparent backgrounds enabled, side by side. See here for the test site: http://gis.ci.stpaul.mn.us/gis/gismo_public/html/?mapbook=/datasets/CONFIGS/SAINT_PAUL/PUBLIC_WORKS/MAPBOOKS/TS/gismo3_test_public.xml# If someone could test this real quick and get back to the list, it would be appreciated. bobb From pmoen at OFFROADSOFTWARE.COM Tue Jan 29 10:49:17 2008 From: pmoen at OFFROADSOFTWARE.COM (Paul Moen) Date: Tue, 29 Jan 2008 12:49:17 -0600 Subject: Mapserver PostGIS Custom SRID Problem Message-ID: <TUE.29.JAN.2008.124917.0600.PMOENOFFROADSOFTWARE.COM> I get the following error when trying to draw a layer that exists in postgis. [MapServer Error]: msPOSTGISLayerWhichShapes(): Error executing POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from mt_counties WHERE the_geom && setSRID('BOX3D(1792876.6493994 343910,2160707.3506006 612229)'::BOX3D, 1038007 ) -ERROR: Operation on two geometries with different SRIDs If I issue the following sql command in postgis two rows are returned rather than the error. SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from mt_counties WHERE the_geom && setSRID('BOX3D(1792876.6493994 343910,2160707.3506006 612229)'::BOX3D, 1038007 ) The custom SRID has been added to the spatial_ref_sys table in postgis and the epsg file in the proj resources. These layers display exactly the way I want when viewing with Qgis connected as postGIS layers. Does anyone have any ideas on what I can do to further troubleshoot this? Is this a problem with mapserver, postgis, or something I am doing? Version info. Mac OS 10.4.11 "POSTGIS="1.2.1" GEOS="3.0.0rc4-CAPI-1.3.3" PROJ="Rel. 4.5.0, 22 Oct 2006" USE_STATS" MapServer Version MapServer version 4.10.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.260.2.1 $ $Date: 2006/11/22 19:34:45 $) Thanks, Paul From bhudspeth at EDAC.UNM.EDU Tue Jan 29 12:59:11 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Tue, 29 Jan 2008 14:59:11 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <TUE.29.JAN.2008.145911.0600.BHUDSPETHEDAC.UNM.EDU> Hello, Thanks for all of your suggestions, but I continue to get basically the same errors regardless of which version of GEOS is installed. I would certainly appreciate anyone's help on this problem. Mapserver 5.0.1 is just not happy with any of the GEOS packages... The latest GEOS rc4, gives the following errors on make: mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' ./libmapserver.a(maplexer.o): In function `.L439': maplexer.c:(.text+0x10cf): undefined reference to `msyylineno' ./libmapserver.a(mapsymbol.o): In function `loadSymbol': mapsymbol.c:(.text+0x24b2): undefined reference to `msyylineno' mapsymbol.c:(.text+0x2553): undefined reference to `msyylineno' mapsymbol.c:(.text+0x2c33): undefined reference to `msyylineno' ./libmapserver.a(mapsymbol.o): In function `loadSymbolSet': mapsymbol.c:(.text+0x2d52): undefined reference to `msyylineno' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Thank you, Bill From naci0002 at UMN.EDU Tue Jan 29 13:02:36 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Tue, 29 Jan 2008 15:02:36 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS In-Reply-To: <LISTSERV%200801291459113304.4A36@LISTS.UMN.EDU> Message-ID: <TUE.29.JAN.2008.150236.0600.NACI0002UMN.EDU> Hi Bill, Try the new MapServer 5.0.2. I think that one was released just for you. ;) -Perry William Hudspeth wrote: > Hello, > > Thanks for all of your suggestions, but I continue to get basically the same > errors regardless of which version of GEOS is installed. I would certainly > appreciate anyone's help on this problem. Mapserver 5.0.1 is just not happy > with any of the GEOS packages... > > The latest GEOS rc4, gives the following errors on make: > > mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' > ./libmapserver.a(maplexer.o): In function `.L439': > maplexer.c:(.text+0x10cf): undefined reference to `msyylineno' > ./libmapserver.a(mapsymbol.o): In function `loadSymbol': > mapsymbol.c:(.text+0x24b2): undefined reference to `msyylineno' > mapsymbol.c:(.text+0x2553): undefined reference to `msyylineno' > mapsymbol.c:(.text+0x2c33): undefined reference to `msyylineno' > ./libmapserver.a(mapsymbol.o): In function `loadSymbolSet': > mapsymbol.c:(.text+0x2d52): undefined reference to `msyylineno' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > Thank you, Bill > From pmoen at OFFROADSOFTWARE.COM Tue Jan 29 15:53:00 2008 From: pmoen at OFFROADSOFTWARE.COM (Paul Moen) Date: Tue, 29 Jan 2008 17:53:00 -0600 Subject: Mapserver PostGIS Custom SRID Problem In-Reply-To: <479FB7C6.4010206@refractions.net> Message-ID: <TUE.29.JAN.2008.175300.0600.PMOENOFFROADSOFTWARE.COM> This is my layer. LAYER NAME "Montana" PROJECTION "init=epsg:1038007" END CONNECTION "user=postgres dbname=1038007 host=127.0.0.1 port=5432" CONNECTIONTYPE postgis DATA "the_geom from mt_counties using unique gid using SRID=1038007" TYPE POLYGON STATUS ON CLASS NAME "MT counties" STYLE COLOR 245 245 245 OUTLINECOLOR 200 200 200 END END END I am using the user postgres for the sql statement . This is the actual command that I used from the command line. psql -d 1038007 -U postgres -c "SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from mt_counties WHERE the_geom && setSRID('BOX3D(1792876.6493994 343910,2160707.3506006 612229)'::BOX3D, 1038007 )" These are all performed on the same server that PostgreSQL is running. I do have the database named 1038007. Is there a problem with database names being all numerals within PostgreSQL? Everything seems to work fine except when mapserver is making the call. On Jan 29, 2008, at 5:33 PM, Paul Ramsey wrote: > There's something wrong, because the same SQL should return the same > result... there should not be a non-deterministic difference > depending on from where you enter it. Are you sure you're entering > it in the same database, using the same user, as mapserver is? > > P > > Paul Moen wrote: >> 1 row equal to 1038007 >> On Jan 29, 2008, at 3:46 PM, Paul Ramsey wrote: >>> what does >>> >>> SELECT DISTINCT SRID(the_geom) from mt_counties; >>> >>> return? >>> >>> what does >>> >>> SELECT * FROM geometry_columns WHERE f_table_name = 'mt_counties'; >>> >>> return? >>> >>> Paul Moen wrote: >>>> I get the following error when trying to draw a layer that exists >>>> in postgis. >>>> [MapServer Error]: msPOSTGISLayerWhichShapes(): Error executing >>>> POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY >>>> CURSOR FOR SELECT >>>> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >>>> from mt_counties WHERE the_geom && setSRID('BOX3D(1792876.6493994 >>>> 343910,2160707.3506006 612229)'::BOX3D, 1038007 ) >>>> -ERROR: Operation on two geometries with different SRIDs >>>> If I issue the following sql command in postgis two rows are >>>> returned rather than the error. >>>> SELECT >>>> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >>>> from mt_counties WHERE the_geom && setSRID('BOX3D(1792876.6493994 >>>> 343910,2160707.3506006 612229)'::BOX3D, 1038007 ) >>>> The custom SRID has been added to the spatial_ref_sys table in >>>> postgis and the epsg file in the proj resources. These layers >>>> display exactly the way I want when viewing with Qgis connected >>>> as postGIS layers. >>>> Does anyone have any ideas on what I can do to further >>>> troubleshoot this? Is this a problem with mapserver, postgis, or >>>> something I am doing? Version info. >>>> Mac OS 10.4.11 >>>> "POSTGIS="1.2.1" GEOS="3.0.0rc4-CAPI-1.3.3" PROJ="Rel. 4.5.0, 22 >>>> Oct 2006" USE_STATS" >>>> MapServer Version MapServer version 4.10.1 OUTPUT=GIF >>>> OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF >>>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >>>> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >>>> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS INPUT=EPPL7 >>>> INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>> PHP MapScript Version ($Revision: 1.260.2.1 $ $Date: >>>> 2006/11/22 19:34:45 $) >>>> Thanks, >>>> Paul >>> >>> >>> -- >>> >>> Paul Ramsey >>> Refractions Research >>> http://www.refractions.net >>> pramsey at refractions.net >>> Phone: 250-383-3022 >>> Cell: 250-885-0632 > > > -- > > Paul Ramsey > Refractions Research > http://www.refractions.net > pramsey at refractions.net > Phone: 250-383-3022 > Cell: 250-885-0632 From pmoen at OFFROADSOFTWARE.COM Tue Jan 29 17:02:53 2008 From: pmoen at OFFROADSOFTWARE.COM (Paul Moen) Date: Tue, 29 Jan 2008 19:02:53 -0600 Subject: Mapserver PostGIS Custom SRID Problem In-Reply-To: <DEE4C3C4-8C2F-4B68-B116-1E1721006103@OFFROADSOFTWARE.COM> Message-ID: <TUE.29.JAN.2008.190253.0600.PMOENOFFROADSOFTWARE.COM> My own error was causing the problem. I was editing a mapfile that wasn't actually being used. On Jan 29, 2008, at 5:53 PM, Paul Moen wrote: > This is my layer. > LAYER > NAME "Montana" > PROJECTION > "init=epsg:1038007" > END > CONNECTION "user=postgres dbname=1038007 host=127.0.0.1 > port=5432" > CONNECTIONTYPE postgis > DATA "the_geom from mt_counties using unique gid using > SRID=1038007" > TYPE POLYGON > STATUS ON > CLASS > NAME "MT counties" > STYLE > COLOR 245 245 245 > OUTLINECOLOR 200 200 200 > END > END > END > > I am using the user postgres for the sql statement . > > This is the actual command that I used from the command line. > > psql -d 1038007 -U postgres -c "SELECT > asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from > mt_counties WHERE the_geom && setSRID('BOX3D(1792876.6493994 > 343910,2160707.3506006 612229)'::BOX3D, 1038007 )" > > > These are all performed on the same server that PostgreSQL is running. > > > I do have the database named 1038007. Is there a problem with > database names being all numerals within PostgreSQL? Everything > seems to work fine except when mapserver is making the call. > > On Jan 29, 2008, at 5:33 PM, Paul Ramsey wrote: > >> There's something wrong, because the same SQL should return the >> same result... there should not be a non-deterministic difference >> depending on from where you enter it. Are you sure you're entering >> it in the same database, using the same user, as mapserver is? >> >> P >> >> Paul Moen wrote: >>> 1 row equal to 1038007 >>> On Jan 29, 2008, at 3:46 PM, Paul Ramsey wrote: >>>> what does >>>> >>>> SELECT DISTINCT SRID(the_geom) from mt_counties; >>>> >>>> return? >>>> >>>> what does >>>> >>>> SELECT * FROM geometry_columns WHERE f_table_name = 'mt_counties'; >>>> >>>> return? >>>> >>>> Paul Moen wrote: >>>>> I get the following error when trying to draw a layer that >>>>> exists in postgis. >>>>> [MapServer Error]: msPOSTGISLayerWhichShapes(): Error executing >>>>> POSTGIS SQL statement (in FETCH ALL): DECLARE mycursor BINARY >>>>> CURSOR FOR SELECT >>>>> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >>>>> from mt_counties WHERE the_geom && >>>>> setSRID('BOX3D(1792876.6493994 343910,2160707.3506006 >>>>> 612229)'::BOX3D, 1038007 ) >>>>> -ERROR: Operation on two geometries with different SRIDs >>>>> If I issue the following sql command in postgis two rows are >>>>> returned rather than the error. >>>>> SELECT >>>>> asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text >>>>> from mt_counties WHERE the_geom && >>>>> setSRID('BOX3D(1792876.6493994 343910,2160707.3506006 >>>>> 612229)'::BOX3D, 1038007 ) >>>>> The custom SRID has been added to the spatial_ref_sys table in >>>>> postgis and the epsg file in the proj resources. These layers >>>>> display exactly the way I want when viewing with Qgis connected >>>>> as postGIS layers. >>>>> Does anyone have any ideas on what I can do to further >>>>> troubleshoot this? Is this a problem with mapserver, postgis, >>>>> or something I am doing? Version info. >>>>> Mac OS 10.4.11 >>>>> "POSTGIS="1.2.1" GEOS="3.0.0rc4-CAPI-1.3.3" PROJ="Rel. 4.5.0, 22 >>>>> Oct 2006" USE_STATS" >>>>> MapServer Version MapServer version 4.10.1 OUTPUT=GIF >>>>> OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF >>>>> OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >>>>> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >>>>> SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=GEOS >>>>> INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>>> PHP MapScript Version ($Revision: 1.260.2.1 $ $Date: >>>>> 2006/11/22 19:34:45 $) >>>>> Thanks, >>>>> Paul >>>> >>>> >>>> -- >>>> >>>> Paul Ramsey >>>> Refractions Research >>>> http://www.refractions.net >>>> pramsey at refractions.net >>>> Phone: 250-383-3022 >>>> Cell: 250-885-0632 >> >> >> -- >> >> Paul Ramsey >> Refractions Research >> http://www.refractions.net >> pramsey at refractions.net >> Phone: 250-383-3022 >> Cell: 250-885-0632 From josem.lucas2 at CARM.ES Tue Jan 29 23:41:49 2008 From: josem.lucas2 at CARM.ES (LUCAS BERNAL, JOSE MIGUEL) Date: Wed, 30 Jan 2008 08:41:49 +0100 Subject: getFeatureInfo in WMS with shapefile Message-ID: <WED.30.JAN.2008.084149.0100.JOSEM.LUCAS2CARM.ES> Hello all, I've got a mapfile with a WMS service that publishes a layer from an ESRI shapefile (type point). I work with Mapserver 5.0 in Suse Linux. I can't get the data (using getFeatureInfo service) where I click on a point of the map using a WMS client as ArcMap and others. I'd like to get a complete example for the getFeatureInfo in WMS. Thanks you very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/3f760521/attachment.htm> From ml.dje at GEOCONTENT.DE Wed Jan 30 00:21:10 2008 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Wed, 30 Jan 2008 09:21:10 +0100 Subject: Defining no data areas using a Shape Message-ID: <WED.30.JAN.2008.092110.0100.ML.DJEGEOCONTENT.DE> Hello, we setup up a mapserver project with several ECW images (approx. 60). Since the some of the images overlap and are not completely filled with image data, I am looking for a way to define the "no data" part of the image. The OFFSITE option does not work due to the lossy compression which results in a "fuzzy" collar around the image data. Is there any way to get rid of this collar? Since we have a shape containing the exact boundary of the imagery, I thought about using that shape to specify the no data area. Is this possible using mapserver? If not, is there another way to get rid of the compression artifacts around the imagery? Since this is an issue with all lossy compressed imagery, I think that this might be an interesting feature not only for ecw files. By the way, using uncompressed imagery or a lossless compression is not an option for us, due to the amount of data. Thanks for any help, Dirk From mikesaunt at GMAIL.COM Wed Jan 30 04:10:52 2008 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Wed, 30 Jan 2008 12:10:52 +0000 Subject: ITEMNQUERY - speed / thoughts Message-ID: <WED.30.JAN.2008.121052.0000.MIKESAUNTGMAIL.COM> Hi All I've got a requirement to be able to 'select' multiple features and then perform a query against them to find features from other layers that intersect. The goal is for an interactive tool to select polygons which will be highlighted on every map redraw (using itemnquery) and when the user chooses to have a feature query (itemfeaturequery) against them all. Our issue is that our selectable layer could have in excess of 1.5 million features and the speed for each map refresh / feature qwould be too long. We're testing agaisnt MapInfo TAB but can have the layer in Shape or PostGIS. Questions therefore are: Can we have an attribute index built against the field for the layer somehow that MapServer can read and therefore become ALOT faster? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/19df4cdb/attachment.htm> From mikesaunt at GMAIL.COM Wed Jan 30 04:12:32 2008 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Wed, 30 Jan 2008 12:12:32 +0000 Subject: ITEMNQUERY - speed / thoughts In-Reply-To: <5a9686e80801300410q7e4ea83drba3af5b91f67e531@mail.gmail.com> Message-ID: <WED.30.JAN.2008.121232.0000.MIKESAUNTGMAIL.COM> I hit send preamtureley! Second question is - would it be better to have the layer in PostGIS? If so I'm not sure on how to query two layers agaisnt each other (unless like a SLAYER query) Any thoughts would be greatly appreciated. Kind regards Mike On 30/01/2008, Mike Saunt <mikesaunt at gmail.com> wrote: > > Hi All > > I've got a requirement to be able to 'select' multiple features and then > perform a query against them to find features from other layers that > intersect. The goal is for an interactive tool to select polygons which > will be highlighted on every map redraw (using itemnquery) and when the user > chooses to have a feature query (itemfeaturequery) against them all. > > Our issue is that our selectable layer could have in excess of 1.5 million > features and the speed for each map refresh / feature qwould be too long. > We're testing agaisnt MapInfo TAB but can have the layer in Shape or > PostGIS. > > Questions therefore are: > Can we have an attribute index built against the field for the layer > somehow that MapServer can read and therefore become ALOT faster? > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/bb4ddcbb/attachment.htm> From daniel.teske at WEB.DE Wed Jan 30 04:41:33 2008 From: daniel.teske at WEB.DE (danielt) Date: Wed, 30 Jan 2008 04:41:33 -0800 Subject: Filter Encoding with special character Message-ID: <WED.30.JAN.2008.044133.0800.DANIEL.TESKEWEB.DE> dear list.. I want to use SLDs to design my Geodata. In the SLD i'm using Filter Encoding to filter Geometries. The problem is that there are special character in the ogc:Literal here's a very simple example: <ogc:Filter> <ogc:PropertyIsEqualTo> <ogc:PropertyName>KATEGORIE</ogc:PropertyName> <ogc:Literal>?kologisch</ogc:Literal> </ogc:PropertyIsEqualTo> </ogc:Filter> I also tried to use the ogc:PropertyIsLike, but in this case every Object will be grant (bug?) here's the example for this try: <ogc:Filter> <ogc:PropertyIsLike wildCard="*" singleChar="_" escapeChar="!"> <ogc:PropertyName>KATEGORIE</ogc:PropertyName> <ogc:Literal>*koligisch</ogc:Literal> </ogc:PropertyIsLike> </ogc:Filter> On the other hand, the singleChar "_" has no effect <ogc:Literal>_koligisch</ogc:Literal> This problem appear with every special character, e.g. {?, ?, ?, ?, ?, ?, ?} thank you very much for your response and best regards.. ..Daniel -- View this message in context: http://www.nabble.com/Filter-Encoding-with-special-character-tp15181113p15181113.html Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at EC.GC.CA Wed Jan 30 05:19:39 2008 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 30 Jan 2008 08:19:39 -0500 Subject: getFeatureInfo in WMS with shapefile In-Reply-To: A<E160B04416159649937B63B5264A7F033FEBE0@CORREO05.carm.msda> Message-ID: <WED.30.JAN.2008.081939.0500.TOM.KRALIDISEC.GC.CA> Does your LAYER object have the following defined: - TEMPLATE - DUMP TRUE Check out the section "Configuring for GetFeatureInfo Requests" within http://mapserver.gis.umn.edu/docs/howto/wms_server/#setup-a-mapfile-for- your-wms for more info. If you are still having problems, post relevant parts of your mapfile. ..Tom ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of LUCAS BERNAL, JOSE MIGUEL Sent: 30 January, 2008 2:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] getFeatureInfo in WMS with shapefile Hello all, I've got a mapfile with a WMS service that publishes a layer from an ESRI shapefile (type point). I work with Mapserver 5.0 in Suse Linux. I can't get the data (using getFeatureInfo service) where I click on a point of the map using a WMS client as ArcMap and others. I'd like to get a complete example for the getFeatureInfo in WMS. Thanks you very much. From daniel.teske at WEB.DE Wed Jan 30 06:57:34 2008 From: daniel.teske at WEB.DE (danielt) Date: Wed, 30 Jan 2008 06:57:34 -0800 Subject: an easy question.... In-Reply-To: <15181862.post@talk.nabble.com> Message-ID: <WED.30.JAN.2008.065734.0800.DANIEL.TESKEWEB.DE> hi, this seems not to be a network problem, and have nothing to do with the mapserver. your URL is only reachable on your local PC (think about the word "localhost") try to find out your ip address or host name. for this you must open the console (start -> run -> write "cmd") and write the command "ipconfig" to get information about your ip address or "hostname" to get your PCs host name. then you can modify your link http://[host name]/maplab_projects/gmf_apps/piss/piss.phtml or http://[ip address]/maplab_projects/gmf_apps/piss/piss.phtml best regards, ..daniel egg wrote: > > Hi all forum, Well I've done my first work in mapserver, and then using > Mapfactory I've got the next URL link: > http://localhost/maplab_projects/gmf_apps/piss/piss.phtml, and this work > fine, but just in my Pc when I tried to open in another pc it doesn't > work. My question is How can I get that my map created open on any pc? > > Thanks in advanced. > > Saludos > -- View this message in context: http://www.nabble.com/an-easy-question....-tp15181862p15183249.html Sent from the Mapserver - User mailing list archive at Nabble.com. From adams at TERRESTRIS.DE Wed Jan 30 07:24:05 2008 From: adams at TERRESTRIS.DE (Till Adams) Date: Wed, 30 Jan 2008 16:24:05 +0100 Subject: an easy question.... In-Reply-To: <15183249.post@talk.nabble.com> Message-ID: <WED.30.JAN.2008.162405.0100.ADAMSTERRESTRIS.DE> more interesting is the thing with the name of your application... ;-) >hi, >this seems not to be a network problem, and have nothing to do with the >mapserver. >your URL is only reachable on your local PC (think about the word >"localhost") > >try to find out your ip address or host name. >for this you must open the console (start -> run -> write "cmd") and write >the command "ipconfig" to get information about your ip address or >"hostname" to get your PCs host name. > >then you can modify your link >http://[host name]/maplab_projects/gmf_apps/piss/piss.phtml or >http://[ip address]/maplab_projects/gmf_apps/piss/piss.phtml > >best regards, >..daniel > > >egg wrote: > > >>Hi all forum, Well I've done my first work in mapserver, and then using >>Mapfactory I've got the next URL link: >>http://localhost/maplab_projects/gmf_apps/_*piss/piss*_.phtml, and this work >>fine, but just in my Pc when I tried to open in another pc it doesn't >>work. My question is How can I get that my map created open on any pc? >> >>Thanks in advanced. >> >>Saludos >> >> >> > > > -- ***************************************** terrestris ist umgezogen! Die neue Adresse ab 01.07.2007 lautet: Irmintrudisstra?e 17, 53111 Bonn http://www.terrestris.de ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From Josh.Hevenor at DPRA.COM Wed Jan 30 07:35:13 2008 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Wed, 30 Jan 2008 09:35:13 -0600 Subject: documentation generator Message-ID: <WED.30.JAN.2008.093513.0600.JOSH.HEVENORDPRA.COM> Has there been consideration into using a documentation generator like Doxygen to aid in keeping the class references up to date? I've come across a few examples where parameters to class functions are not intuitively named (for newbs like me at least) and aren't described elsewhere. I'm only familiar with the PHP class reference so maybe there are other resources that I'm missing. Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information 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 DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/367c594b/attachment.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3247 bytes Desc: image001.jpg URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/367c594b/attachment.jpg> From Josh.Hevenor at DPRA.COM Wed Jan 30 08:32:01 2008 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Wed, 30 Jan 2008 10:32:01 -0600 Subject: queryByShape Problem Message-ID: <WED.30.JAN.2008.103201.0600.JOSH.HEVENORDPRA.COM> Good morning, I'm having trouble getting a response from PHP MapScript's Layer::queryByShape() I'm trying to query an OGR point layer by a Polygon Shape that I got from querying a different layer. queryByAttribute on the same OGR Point layer is working properly. My code looks like: if($bannerLayer->queryByShape($tradeAreaShape)==MS_SUCCESS){ /// . . . } else { Echo "FOUND NOTHING!"; } The WKT of tradeAreaShape is POLYGON ((-63.5931228499999290 44.6328285400000480, -63.5947725799999260 44.6335656500000940, -63.5951314899999720 44.6341621000000830, -63.5957245999999260 44.6340256500000690, -63.5965530599999620 44.6338150900000410, -63.5968179299999290 44.6337532300000820, -63.5977474799999530 44.6335363100000680, -63.5982376599999380 44.6333897900000810, -63.5988134899999410 44.6332354000000460, -63.5987020099999540 44.6332166200000420, -63.5971723199999700 44.6327559600000540, -63.5969579099999580 44.6327936700000690, -63.5964623699999270 44.6323998900000450, -63.5946525499999780 44.6317434200000780, -63.5938438599999360 44.6315586800000690, -63.5932997099999400 44.6312995200000840, -63.5928279799999250 44.6307981100000570, -63.5924848199999250 44.6305387700000440, -63.5919616199999500 44.6299659500000420, -63.5916053899999270 44.6296526400000740, -63.5909086899999350 44.6292868500000850, -63.5899865099999600 44.6291208900000810, -63.5892757299999400 44.6286565300000580, -63.5884524599999280 44.6282188300000940, -63.5874521599999410 44.6277828000000910, -63.5860267299999580 44.6277003300000390, -63.5850517499999340 44.6273278300000700, -63.5841646099999590 44.6268552600000700, -63.5839624399999370 44.6268111700000530, -63.5838486099999610 44.6267392600000790, -63.5831529099999670 44.6265364200000930, -63.5826986099999660 44.6264936700000590, -63.5820406399999460 44.6262448900000660, -63.5816217099999220 44.6259225200000740, -63.5814790499999280 44.6255455100000520, -63.5812254099999450 44.6253663000000530, -63.5807831799999690 44.6253010900000500, -63.5812146799999600 44.6263535200000660, -63.5815108999999550 44.6275863300000420, -63.5816280799999730 44.6279660300000390, -63.5816691499999250 44.6280994700000520, -63.5816917799999710 44.6291450300000750, -63.5818721599999320 44.6295401500000820, -63.5820067699999640 44.6298511200000690, -63.5822121299999590 44.6303349300000600, -63.5823497599999430 44.6306541100000800, -63.5833684999999490 44.6304058400000940, -63.5843872299999480 44.6301575700000510, -63.5853932299999660 44.6299183500000820, -63.5862579099999720 44.6318944600000690, -63.5867230999999720 44.6330173000000630, -63.5868909099999660 44.6334035400000740, -63.5909856299999770 44.6318880900000750, -63.5927758399999450 44.6326734800000510, -63.5931228499999290 44.6328285400000480)) And a point that should be found is POINT (-63.573535919189 44.637145996094) Thanks once again, Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information 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 DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/f6ab21c9/attachment.htm> From guillaume.sueur at NEOGEO-ONLINE.NET Wed Jan 30 08:35:41 2008 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 30 Jan 2008 17:35:41 +0100 Subject: queryByShape Problem In-Reply-To: <49B9846C39F25A4FA901064970861610D47D59@mhk-ex1.ad.dpra.com> Message-ID: <WED.30.JAN.2008.173541.0100.GUILLAUME.SUEURNEOGEOONLINE.NET> Hi Josh, See mapscript documentation about this function : Query layer based on a single shape, the shape has to be a polygon at this point. Sorry ! Josh Hevenor a ?crit : > Good morning, > > > > I?m having trouble getting a response from PHP MapScript?s > Layer::queryByShape() > > > > I?m trying to query an OGR point layer by a Polygon Shape that I got > from querying a different layer. queryByAttribute on the same OGR Point > layer is working properly. > > > > My code looks like: > > > > > if($bannerLayer->queryByShape($tradeAreaShape)==MS_SUCCESS){ > > > /// . . . > > } else { > > Echo ?FOUND NOTHING!?; > > } > > > > The WKT of tradeAreaShape is > > POLYGON ((-63.5931228499999290 44.6328285400000480, -63.5947725799999260 44.6335656500000940, -63.5951314899999720 44.6341621000000830, -63.5957245999999260 44.6340256500000690, -63.5965530599999620 44.6338150900000410, -63.5968179299999290 44.6337532300000820, -63.5977474799999530 44.6335363100000680, -63.5982376599999380 44.6333897900000810, -63.5988134899999410 44.6332354000000460, -63.5987020099999540 44.6332166200000420, -63.5971723199999700 44.6327559600000540, -63.5969579099999580 44.6327936700000690, -63.5964623699999270 44.6323998900000450, -63.5946525499999780 44.6317434200000780, -63.5938438599999360 44.6315586800000690, -63.5932997099999400 44.6312995200000840, -63.5928279799999250 44.6307981100000570, -63.5924848199999250 44.6305387700000440, -63.5919616199999500 44.6299659500000420, -63.5916053899999270 44.6296526400000740, -63.5909086899999350 44.6292868500000850, -63.5899865099999600 44.6291208900000810, -63.5892757299999400 44.6286565300000580, -63.58845245 99999280 44.6282188300000940, -63.5874521599999410 44.6277828000000910, -63.5860267299999580 44.6277003300000390, -63.5850517499999340 44.6273278300000700, -63.5841646099999590 44.6268552600000700, -63.5839624399999370 44.6268111700000530, -63.5838486099999610 44.6267392600000790, -63.5831529099999670 44.6265364200000930, -63.5826986099999660 44.6264936700000590, -63.5820406399999460 44.6262448900000660, -63.5816217099999220 44.6259225200000740, -63.5814790499999280 44.6255455100000520, -63.5812254099999450 44.6253663000000530, -63.5807831799999690 44.6253010900000500, -63.5812146799999600 44.6263535200000660, -63.5815108999999550 44.6275863300000420, -63.5816280799999730 44.6279660300000390, -63.5816691499999250 44.6280994700000520, -63.5816917799999710 44.6291450300000750, -63.5818721599999320 44.6295401500000820, -63.5820067699999640 44.6298511200000690, -63.5822121299999590 44.6303349300000600, -63.5823497599999430 44.6306541100000800, -63.5833684999999490 44.630405840000 0940, -63.5843872299999480 44.6301575700000510, -63.5853932299999660 44.6299183500000820, -63.5862579099999720 44.6318944600000690, -63.5867230999999720 44.6330173000000630, -63.5868909099999660 44.6334035400000740, -63.5909856299999770 44.6318880900000750, -63.5927758399999450 44.6326734800000510, -63.5931228499999290 44.6328285400000480)) > > > > And a point that should be found is > > > > POINT (-63.573535919189 44.637145996094) > > > > Thanks once again, > > Josh Hevenor > Application Developer > ____________________________________________ > 5230 South Service Road > Burlington, Ontario > L7L 5K2 Canada > **Email: josh.hevenor at dpra.com*** > *Internet: http://www.dpra.com* > > * > > > > > > > **Attention:*** > *Privileged/Confidential Information may be contained in this message. > Disclosure to any person other than the named recipient is unauthorized. > If you are not the intended recipient, please delete all copies of this > information 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 DPRA shall be understood as neither given nor > endorsed by it. DPRA and any of its subsidiaries reserve the right to > monitor all e-mail communications through its networks. Thank you. > > > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From guillaume.sueur at NEOGEO-ONLINE.NET Wed Jan 30 08:45:11 2008 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 30 Jan 2008 17:45:11 +0100 Subject: queryByShape Problem In-Reply-To: <47A0A75D.30601@neogeo-online.net> Message-ID: <WED.30.JAN.2008.174511.0100.GUILLAUME.SUEURNEOGEOONLINE.NET> Oups ! read the stuff too fast. The query object IS a polygon. In fact your point does'nt seem to be INTO the polygon. Have a check with OpenLayers vector capabilities, in which you can test WKTs : http://www.openlayers.org/dev/examples/vector-formats.html Guillaume Sueur a ?crit : > Hi Josh, > > See mapscript documentation about this function : > Query layer based on a single shape, the shape has to be a polygon > at this point. > > Sorry ! > > > Josh Hevenor a ?crit : >> Good morning, >> >> >> >> I?m having trouble getting a response from PHP MapScript?s >> Layer::queryByShape() >> >> >> >> I?m trying to query an OGR point layer by a Polygon Shape that I got >> from querying a different layer. queryByAttribute on the same OGR >> Point layer is working properly. >> >> >> >> My code looks like: >> >> >> >> >> if($bannerLayer->queryByShape($tradeAreaShape)==MS_SUCCESS){ >> >> >> /// . . . >> >> } else { >> >> Echo ?FOUND NOTHING!?; >> >> } >> >> >> >> The WKT of tradeAreaShape is >> >> POLYGON ((-63.5931228499999290 44.6328285400000480, >> -63.5947725799999260 44.6335656500000940, -63.5951314899999720 >> 44.6341621000000830, -63.5957245999999260 44.6340256500000690, >> -63.5965530599999620 44.6338150900000410, -63.5968179299999290 >> 44.6337532300000820, -63.5977474799999530 44.6335363100000680, >> -63.5982376599999380 44.6333897900000810, -63.5988134899999410 >> 44.6332354000000460, -63.5987020099999540 44.6332166200000420, >> -63.5971723199999700 44.6327559600000540, -63.5969579099999580 >> 44.6327936700000690, -63.5964623699999270 44.6323998900000450, >> -63.5946525499999780 44.6317434200000780, -63.5938438599999360 >> 44.6315586800000690, -63.5932997099999400 44.6312995200000840, >> -63.5928279799999250 44.6307981100000570, -63.5924848199999250 >> 44.6305387700000440, -63.5919616199999500 44.6299659500000420, >> -63.5916053899999270 44.6296526400000740, -63.5909086899999350 >> 44.6292868500000850, -63.5899865099999600 44.6291208900000810, >> -63.5892757299999400 44.6286565300000580, -63.58845245 > 99999280 44.6282188300000940, -63.5874521599999410 44.6277828000000910, > -63.5860267299999580 44.6277003300000390, -63.5850517499999340 > 44.6273278300000700, -63.5841646099999590 44.6268552600000700, > -63.5839624399999370 44.6268111700000530, -63.5838486099999610 > 44.6267392600000790, -63.5831529099999670 44.6265364200000930, > -63.5826986099999660 44.6264936700000590, -63.5820406399999460 > 44.6262448900000660, -63.5816217099999220 44.6259225200000740, > -63.5814790499999280 44.6255455100000520, -63.5812254099999450 > 44.6253663000000530, -63.5807831799999690 44.6253010900000500, > -63.5812146799999600 44.6263535200000660, -63.5815108999999550 > 44.6275863300000420, -63.5816280799999730 44.6279660300000390, > -63.5816691499999250 44.6280994700000520, -63.5816917799999710 > 44.6291450300000750, -63.5818721599999320 44.6295401500000820, > -63.5820067699999640 44.6298511200000690, -63.5822121299999590 > 44.6303349300000600, -63.5823497599999430 44.6306541100000800, > -63.5833684999999490 44.630405840000 > 0940, -63.5843872299999480 44.6301575700000510, -63.5853932299999660 > 44.6299183500000820, -63.5862579099999720 44.6318944600000690, > -63.5867230999999720 44.6330173000000630, -63.5868909099999660 > 44.6334035400000740, -63.5909856299999770 44.6318880900000750, > -63.5927758399999450 44.6326734800000510, -63.5931228499999290 > 44.6328285400000480)) >> >> >> >> And a point that should be found is >> >> >> >> POINT (-63.573535919189 44.637145996094) >> >> >> >> Thanks once again, >> Josh Hevenor >> Application Developer >> ____________________________________________ >> 5230 South Service Road >> Burlington, Ontario >> L7L 5K2 Canada >> **Email: josh.hevenor at dpra.com*** >> *Internet: http://www.dpra.com* >> >> * >> >> >> >> >> >> >> **Attention:*** >> *Privileged/Confidential Information may be contained in this message. >> Disclosure to any person other than the named recipient is >> unauthorized. If you are not the intended recipient, please delete all >> copies of this information 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 DPRA shall be >> understood as neither given nor endorsed by it. DPRA and any of its >> subsidiaries reserve the right to monitor all e-mail communications >> through its networks. Thank you. >> >> >> > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From Josh.Hevenor at DPRA.COM Wed Jan 30 08:46:47 2008 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Wed, 30 Jan 2008 10:46:47 -0600 Subject: queryByShape Problem In-Reply-To: <47A0A75D.30601@neogeo-online.net> Message-ID: <WED.30.JAN.2008.104647.0600.JOSH.HEVENORDPRA.COM> Thanks for the reply Guillaume, So you're saying that in order to use this function I need $anyLayer->queryByShape($polygonShape) Which is what I'm doing, or does this function require $polygonLayer->queryByShape($someShape) Which won't work for me? I've also tried queryByRect, which also fails. Is there something else I should consider? I've tried to ensure that projections and tolerances are set properly... Mapserver 5.0, windows -----Original Message----- From: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Sent: Wednesday, January 30, 2008 11:36 AM To: Josh Hevenor Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByShape Problem Hi Josh, See mapscript documentation about this function : Query layer based on a single shape, the shape has to be a polygon at this point. Sorry ! Josh Hevenor a ?crit : > Good morning, > > > > I'm having trouble getting a response from PHP MapScript's > Layer::queryByShape() > > > > I'm trying to query an OGR point layer by a Polygon Shape that I got > from querying a different layer. queryByAttribute on the same OGR Point > layer is working properly. > > > > My code looks like: > > > > > if($bannerLayer->queryByShape($tradeAreaShape)==MS_SUCCESS){ > > > /// . . . > > } else { > > Echo "FOUND NOTHING!"; > > } > > > > The WKT of tradeAreaShape is > > POLYGON ((-63.5931228499999290 44.6328285400000480, -63.5947725799999260 44.6335656500000940, -63.5951314899999720 44.6341621000000830, -63.5957245999999260 44.6340256500000690, -63.5965530599999620 44.6338150900000410, -63.5968179299999290 44.6337532300000820, -63.5977474799999530 44.6335363100000680, -63.5982376599999380 44.6333897900000810, -63.5988134899999410 44.6332354000000460, -63.5987020099999540 44.6332166200000420, -63.5971723199999700 44.6327559600000540, -63.5969579099999580 44.6327936700000690, -63.5964623699999270 44.6323998900000450, -63.5946525499999780 44.6317434200000780, -63.5938438599999360 44.6315586800000690, -63.5932997099999400 44.6312995200000840, -63.5928279799999250 44.6307981100000570, -63.5924848199999250 44.6305387700000440, -63.5919616199999500 44.6299659500000420, -63.5916053899999270 44.6296526400000740, -63.5909086899999350 44.6292868500000850, -63.5899865099999600 44.6291208900000810, -63.5892757299999400 44.6286565300000580, -63.58845245 99999280 44.6282188300000940, -63.5874521599999410 44.6277828000000910, -63.5860267299999580 44.6277003300000390, -63.5850517499999340 44.6273278300000700, -63.5841646099999590 44.6268552600000700, -63.5839624399999370 44.6268111700000530, -63.5838486099999610 44.6267392600000790, -63.5831529099999670 44.6265364200000930, -63.5826986099999660 44.6264936700000590, -63.5820406399999460 44.6262448900000660, -63.5816217099999220 44.6259225200000740, -63.5814790499999280 44.6255455100000520, -63.5812254099999450 44.6253663000000530, -63.5807831799999690 44.6253010900000500, -63.5812146799999600 44.6263535200000660, -63.5815108999999550 44.6275863300000420, -63.5816280799999730 44.6279660300000390, -63.5816691499999250 44.6280994700000520, -63.5816917799999710 44.6291450300000750, -63.5818721599999320 44.6295401500000820, -63.5820067699999640 44.6298511200000690, -63.5822121299999590 44.6303349300000600, -63.5823497599999430 44.6306541100000800, -63.5833684999999490 44.630405840000 0940, -63.5843872299999480 44.6301575700000510, -63.5853932299999660 44.6299183500000820, -63.5862579099999720 44.6318944600000690, -63.5867230999999720 44.6330173000000630, -63.5868909099999660 44.6334035400000740, -63.5909856299999770 44.6318880900000750, -63.5927758399999450 44.6326734800000510, -63.5931228499999290 44.6328285400000480)) > > > > And a point that should be found is > > > > POINT (-63.573535919189 44.637145996094) > > > > Thanks once again, > > Josh Hevenor > Application Developer > ____________________________________________ > 5230 South Service Road > Burlington, Ontario > L7L 5K2 Canada > **Email: josh.hevenor at dpra.com*** > *Internet: http://www.dpra.com* > > * > > > > > > > **Attention:*** > *Privileged/Confidential Information may be contained in this message. > Disclosure to any person other than the named recipient is unauthorized. > If you are not the intended recipient, please delete all copies of this > information 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 DPRA shall be understood as neither given nor > endorsed by it. DPRA and any of its subsidiaries reserve the right to > monitor all e-mail communications through its networks. Thank you. > > > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From warmerdam at POBOX.COM Wed Jan 30 08:47:15 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 30 Jan 2008 11:47:15 -0500 Subject: documentation generator In-Reply-To: <49B9846C39F25A4FA901064970861610D47D48@mhk-ex1.ad.dpra.com> Message-ID: <WED.30.JAN.2008.114715.0500.WARMERDAMPOBOX.COM> Josh Hevenor wrote: > Has there been consideration into using a documentation generator like > Doxygen to aid in keeping the class references up to date? I?ve come > across a few examples where parameters to class functions are not > intuitively named (for newbs like me at least) and aren?t described > elsewhere. I?m only familiar with the PHP class reference so maybe there > are other resources that I?m missing. Josh, I think Doxygen is most useful when it can take advantage of Doxygen's understanding of c/c++ declarations and when we can put the source documentation right in the source code. I don't think this works so well for mapscript because the mapscript constructs are fairly different than how things work at the C API level in MapServer. Also, the PHP and non-PHP mapscript bindings are implemented quite different and so it is hard to have one set of docs that would apply to both. So, I'm not personally all that keen on using Doxygen for this. I might change my opinion if we got more serious about publishing a firmly defined C API for MapServer and tieing mapscript more directly to it. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From mlinden at ZEELANDNET.NL Wed Jan 30 08:48:26 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 30 Jan 2008 17:48:26 +0100 Subject: WMS GetFeatureInfo Message-ID: <WED.30.JAN.2008.174826.0100.MLINDENZEELANDNET.NL> Hello list, I have been spending 4 hours looking around the mapserver website and various other resources but no luck. As a Mapserver WMS client I am using flamingo-mc. flamingo-mc is able to perform a getFeatureInfo and requires gml as response. For now I have some sort of response because with qGIS I get: WMS identify result for 225, 337 --------------- GetFeatureInfo results: Layer 'percelen' Feature 507: But it is clearly no gml and I haven't set the fields from the table to be returned. So: - What do I have to put in my (currently empty) TEMPLATE file? - Can I enter all the GML that I need to return in my TEMPLATE and does anyone have a sample for this? - How can I make sure that the information returned is in the gml mime-type? Any help would be appreciated! Kind regards, Milo van der Linden From mlinden at ZEELANDNET.NL Wed Jan 30 08:50:05 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 30 Jan 2008 17:50:05 +0100 Subject: Falling of the Globe In-Reply-To: <A64440F1-5E89-48C8-96E5-A20308060895@grid.unep.ch> Message-ID: <WED.30.JAN.2008.175005.0100.MLINDENZEELANDNET.NL> Hello Stefan! No, I didn't get a response yet. I decided to take it as it is for now... But I would like to know if there are any general ideas about this. Stefan Schwarzer schreef: > Hi Milo, > > did you get any response to your question? > > I wonder since longtime why it is not possible to continue panning the > map of the world once I reach its eastern or western "end".... > Finally, it's a globe, it's not flat and has distinctive boundaries. > > Stef > > On Jan 22, 2008, at 9:25 AM, Milo van der Linden wrote: > >> Hello list! >> >> I am working with an ecw world map combined with a mapinfo vector >> file with borders. >> My customer noticed that for Fiji and Kiribati (which cross the >> 180/-180 meridian) the borders are not displayed correctly. >> >> Is there any way to stop these islands from falling of the globe ;-)? > > From seethaler_lyle at BAH.COM Wed Jan 30 08:41:45 2008 From: seethaler_lyle at BAH.COM (Seethaler, Lyle [USA]) Date: Wed, 30 Jan 2008 11:41:45 -0500 Subject: Libgd.so.2 -> Library not found Message-ID: <WED.30.JAN.2008.114145.0500.SEETHALER_LYLEBAH.COM> As a result of restrictions on the container I am working I can not build libraries into the /usr/lib/ directories. As a result the libraries that I built for MapServer (gd, curl, etc) are in a different location. I specify these locations in the configuration file and the makefile lists these locations correctly and runs fine. However once I test the mapserv executable it does not see these libraries. Am I missing a parameter for setting these library locations into the cgi? Should i be setting an environment variable with these locations? Any help in this issue is much appreciated. Thanks in advance! Lyle # mapserv ld.so.1: mapserv: fatal: libgd.so.2: open failed: No such file or directory # ldd mapserv libgd.so.2 => (file not found) libjpeg.so.62 => /usr/lib/libjpeg.so.62 libfreetype.so.6 => /usr/sfw/lib/libfreetype.so.6 libpng.so.3 => /usr/lib/libpng.so.3 libz.so.1 => /usr/lib/libz.so.1 libXpm.so.4 => /usr/lib/libXpm.so.4 libX11.so.4 => /usr/lib/libX11.so.4 libtiff.so.3 => /usr/lib/libtiff.so.3 libproj.so.0 => (file not found) libgdal.so.1 => (file not found) libpq.so.5 => (file not found) librt.so.1 => /usr/lib/librt.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libcurl.so.4 => (file not found) libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7 libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7 libldap.so.5 => /usr/lib/libldap.so.5 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libclntsh.so.10.1 => (file not found) libgeos_c.so.1 => (file not found) libpthread.so.1 => /usr/lib/libpthread.so.1 libxml2.so.2 => /usr/lib/libxml2.so.2 libm.so.2 => /usr/lib/libm.so.2 libstdc++.so.6 => /usr/sfw/lib/libstdc++.so.6 libc.so.1 => /usr/lib/libc.so.1 libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1 libXext.so.0 => /usr/openwin/lib/libXext.so.0 libaio.so.1 => /lib/libaio.so.1 libmd5.so.1 => /lib/libmd5.so.1 libsasl.so.1 => /usr/lib/libsasl.so.1 libnspr4.so => /usr/lib/mps/libnspr4.so libplc4.so => /usr/lib/mps/libplc4.so libnss3.so => /usr/lib/mps/libnss3.so libssl3.so => /usr/lib/mps/libssl3.so libmp.so.2 => /lib/libmp.so.2 libscf.so.1 => /lib/libscf.so.1 libthread.so.1 => /lib/libthread.so.1 libsoftokn3.so => /usr/lib/mps/libsoftokn3.so libplds4.so => /usr/lib/mps/libplds4.so libdoor.so.1 => /lib/libdoor.so.1 libuutil.so.1 => /lib/libuutil.so.1 libbsm.so.1 => /lib/libbsm.so.1 libsecdb.so.1 => /lib/libsecdb.so.1 libtsol.so.2 => /lib/libtsol.so.2 libcmd.so.1 => /lib/libcmd.so.1 /platform/SUNW,Sun-Fire-480R/lib/libc_psr.so.1 /platform/SUNW,Sun-Fire-480R/lib/libmd5_psr.so.1 /usr/lib/mps/cpu/sparcv8plus/libnspr_flt4.so Example taken from Makefile: GDFONT_OBJ=gd-1.2/gdfontt.o gd-1.2/gdfonts.o gd-1.2/gdfontmb.o gd-1.2/gdfontl.o gd-1.2/gdfontg.o GD_INC= -I/var/usrtmp/local/include GD_LIB= -L/var/usrtmp/local/lib -lgd -L/usr/lib -ljpeg -lfreetype -lpng -lz -lXpm -lX11 GD= -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS GD_STATIC = -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/c95b913c/attachment.htm> From bhudspeth at EDAC.UNM.EDU Wed Jan 30 09:12:33 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Wed, 30 Jan 2008 11:12:33 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <WED.30.JAN.2008.111233.0600.BHUDSPETHEDAC.UNM.EDU> Hello Perry, Unfortunately, I am getting the same errors with Mapserver 5.0.2!!! Bill From hobu.inc at GMAIL.COM Wed Jan 30 09:21:56 2008 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Wed, 30 Jan 2008 11:21:56 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS In-Reply-To: <LISTSERV%200801301112330286.55FA@LISTS.UMN.EDU> Message-ID: <WED.30.JAN.2008.112156.0600.HOBU.INCGMAIL.COM> On Jan 30, 2008, at 11:12 AM, William Hudspeth wrote: > Hello Perry, > > Unfortunately, I am getting the same errors with Mapserver 5.0.2!!! > > Bill I have a suspicion this is related to the 'make clean' target wiping out the maplexer.c output, and flex then rebuilding your maplexer.c when you issue 'make'. Compounding this is your flex isn't new enough to be generating the maplexer.c that you need (MapServer needs a bleeding-edge flex). One thing to try is to fetch http://svn.osgeo.org/mapserver/branches/branch-5-0/mapserver/maplexer.c and overwrite your existing one and then reissue make. Hopefully this gets you on your way. Howard From bartvde at GMAIL.COM Wed Jan 30 09:31:23 2008 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Wed, 30 Jan 2008 18:31:23 +0100 Subject: WMS GetFeatureInfo In-Reply-To: <47A0AA5A.2010104@zeelandnet.nl> Message-ID: <WED.30.JAN.2008.183123.0100.BARTVDEGMAIL.COM> Milo, the WMS client determines the info_format. I assume QGIS is asking for MIME or text/plain. You need to add the following METADATA to your layers: OWS_INCLUDE_ITEMS "all" Maybe even GML_INCLUDE_ITEMS "all" I am not sure. Give it a try. If Flamingo wants GML, it will request with info_format=application/vnd.ogc.gml. If it doesn't you can probably set the default/MIME format of Mapserver to this (METADATA at the WEB level called feature_info_mime_type). Template can remain empty, I always TEMPLATE blank.html where blank.htmldoes not even exist on the filesystem. Best regards, Bart On Jan 30, 2008 5:48 PM, Milo van der Linden <mlinden at zeelandnet.nl> wrote: > Hello list, > > I have been spending 4 hours looking around the mapserver website and > various other resources but no luck. > > As a Mapserver WMS client I am using flamingo-mc. flamingo-mc is able to > perform a getFeatureInfo and requires gml as response. > > For now I have some sort of response because with qGIS I get: > WMS identify result for 225, 337 > > --------------- > > GetFeatureInfo results: > > Layer 'percelen' > > Feature 507: > > > But it is clearly no gml and I haven't set the fields from the table to > be returned. > > So: > > - What do I have to put in my (currently empty) TEMPLATE file? > - Can I enter all the GML that I need to return in my TEMPLATE and does > anyone have a sample for this? > > - How can I make sure that the information returned is in the gml > mime-type? > > > Any help would be appreciated! > > Kind regards, > > Milo van der Linden > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/b477fbf7/attachment.htm> From bhudspeth at EDAC.UNM.EDU Wed Jan 30 11:28:12 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Wed, 30 Jan 2008 13:28:12 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <WED.30.JAN.2008.132812.0600.BHUDSPETHEDAC.UNM.EDU> Hello again, I ran make clean, copied the new version of maplexer.c into my mapserver source directory, ran configure again, then make... still the same errors! Thanks for everyone's help so far... Bill if test -r libmapserver.so ; then \ make shared ; \ fi gcc -c -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/gd/include -I/usr/local/proj46/include -I/usr/local/gdal/include -I/usr/local/pgsql/include -I/usr/local/geos-3.0.0rc4/include shp2img.c -o shp2img.o g++ -O2 -fPIC -Wall -DNEED_NONBLOCKING_STDERR -DHAVE_VSNPRINTF -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV -DUSE_POSTGIS -DUSE_ZLIB -I/usr/local/gd/include -I/usr/local/proj46/include -I/usr/local/gdal/include -I/usr/local/pgsql/include -I/usr/local/geos-3.0.0rc4/include shp2img.o -L. -lmapserver -L/usr/local/gd/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -L/usr/local/proj46/lib -lproj -ljpeg -L/usr/local/gdal/lib -lgdal -L/usr/lib -lgeos_c -I/usr/include -lsqlite3 -L/usr/lib -lexpat -ljasper -ljpeg -ltiff -lpng -L/usr/local/grass-6.0.2/lib -lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase -lgrass_I -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime -lpq -L/usr/local/pgsql/lib -lpq -lz -lm -lrt -ldl -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/pgsql/lib -lpq -L/usr/lib -lcurl -lidn -lssl -lcrypto -ldl -lz -L/usr/local/geos-3.0.0rc4/lib -lgeos_c -lc -lz -lm -lstdc++ -o shp2img ./libmapserver.a(mapgeos.o): In function `msGEOSLength': mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' ./libmapserver.a(mapgeos.o): In function `msGEOSArea': mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 From jill.recla at JAX.ORG Wed Jan 30 11:21:45 2008 From: jill.recla at JAX.ORG (Jill Recla) Date: Wed, 30 Jan 2008 14:21:45 -0500 Subject: MapServer 4.x tutorial error Message-ID: <WED.30.JAN.2008.142145.0500.JILL.RECLAJAX.ORG> Hi everyone, I'm looking for help with the MapServer 4.x tutorial. I recently tried to install the uncompiled version of MapServer 5.0.2 on my Windows machine. I was able to download the source code and GD library, but the link to the Regex library FTP site does not work. I then decided to install a precompiled version of MapServer. I already had Apache and PHP installed on my machine, so I did not want to install MS4W over it. Instead I installed FWTools, which came with MapServer 4.9. I tested MapServer by typing "mapserv -v" in the command prompt, and by checking the URL. Both tests indicated that MapServer had been installed correctly. However, I cannot get the 4.x demo to run. I edited the necessary variables in the index.html file, but I get the following error: loadWeb(): Unknown identifier. Parsing error near (/Web/WebServer/Apache2/htdocs/tmp/):(line 1) I have checked the forum archives for information regarding this problem. There are several posts regarding similar problems, but there is no clear answer as to how to fix it, and the tutorial is relatively vague. The code for my index.html file is provided below. Does anyone know how to get around this problem?? Thank you in advance. Kind regards, Jill Recla --------------------------------------------------------------------------- --------------------------------------------------------------------------- <!-- EDIT THE FORM ACTION --> <form name="demo" method="GET" action="/cgi-bin/FWTools2.0.4/bin/mapserv.exe" onSubmit="submit_form()"> <input type="hidden" name="layer" value="lakespy2"> <input type="hidden" name="layer" value="dlgstln2"> <input type="hidden" name="zoomsize" value="2"> <!-- EDIT THESE HIDDEN VARIABLES --> <input type="hidden" name="map" value="/Web/WebServer/Apache2/htdocs/workshop4x/itasca.map"> <input type="hidden" name="program" value="/cgi-bin/FWTools2.0.4/bin/mapserv.exe"> <input type="hidden" name="root" value="/Web/WebServer/Apache2"> <input type="hidden" name="map_web_imagepath" value="/Web/WebServer/Apache2/htdocs/tmp/"> <input type="hidden" name="map_web_imageurl" value="/tmp/"> <select name="map_web_template" size="1"> <option value="itasca_basic.html"> Basic Application <option value="itasca_adds_scalebar.html"> &nbsp;&nbsp;-- Adds second scalebar <option value="itasca_adds_pan.html"> &nbsp;&nbsp;-- Adds pan controls <option value="itasca_adds_frames.html"> &nbsp;&nbsp;-- Adds frames <option value="itasca_adds_dhtml.html"> &nbsp;&nbsp;-- Adds dhtml rubber-band box </select> <input type="submit" value="Initialize"></center> </form> --------------------------------------------------------------------------- --------------------------------------------------------------------------- -- ***************************************************** *****Jill M. Recla****UMaine Functional Genomics***** ***jill.recla at jax.org*****************906-282-8033*** ***************************************************** From dmorissette at MAPGEARS.COM Wed Jan 30 11:57:45 2008 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 30 Jan 2008 14:57:45 -0500 Subject: Mapserver 5.0.0 installation fails at GEOS In-Reply-To: <LISTSERV%200801301328125890.01DE@LISTS.UMN.EDU> Message-ID: <WED.30.JAN.2008.145745.0500.DMORISSETTEMAPGEARS.COM> William Hudspeth wrote: > Hello again, > > I ran make clean, copied the new version of maplexer.c into my mapserver > source directory, ran configure again, then make... still the same errors! > Thanks for everyone's help so far... > [...] > ./libmapserver.a(mapgeos.o): In function `msGEOSLength': > mapgeos.c:(.text+0xf22): undefined reference to `GEOSLength' > ./libmapserver.a(mapgeos.o): In function `msGEOSArea': > mapgeos.c:(.text+0xf92): undefined reference to `GEOSArea' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 Not exactly the same errors... you used to also have msyylex* errors which are gone now. That being said, I have never seen this GEOS error and am not sure what to suggest. Daniel -- Daniel Morissette http://www.mapgears.com/ From Josh.Hevenor at DPRA.COM Wed Jan 30 13:14:49 2008 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Wed, 30 Jan 2008 15:14:49 -0600 Subject: queryByShape Problem In-Reply-To: <47A0A997.3080907@neogeo-online.net> Message-ID: <WED.30.JAN.2008.151449.0600.JOSH.HEVENORDPRA.COM> A good point was made here. My use of union_geos wasn't doing what I thought it was. I've decided to manually calculate the boundary of my initial query result (just looking for min{x|y}, max{x|y}) and trying to find the points in that bounding box and still have had no luck. I've checked http://www.openlayers.org/dev/examples/vector-formats.html that the points I expect really are supposed to be returned. My bounding box is POLYGON ((-63.60658536 44.61749653, -63.60658536 44.6555663, - 63.55962575 44.6555663, -63.55962575 44.61749653, -63.60658536 44.61749653)) The points that should be returned by the query are POINT (-63.5735359191895 44.6371459960938) POINT (-63.5701866149902 44.6374168395996) I'm using MapServer 5 on windows server 2003. The point layer is OGR with the FID set. I'm attempting to use the same function with other layers and I'm not having any better luck. I must be using this wrong. $taBounds = ms_newRectObj(); $taBounds->setextent($taBoundMinX, $taBoundMinY, $taBoundMaxX, $taBoundMaxY); @$bannerLayer->queryByRect($taBounds); $numRes = $bannerLayer ->getNumResults(); If($numRes > 0){ . . . } Your help is appreciated, Josh -----Original Message----- From: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] Sent: Wednesday, January 30, 2008 11:45 AM To: Josh Hevenor; MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] queryByShape Problem Oups ! read the stuff too fast. The query object IS a polygon. In fact your point does'nt seem to be INTO the polygon. Have a check with OpenLayers vector capabilities, in which you can test WKTs : http://www.openlayers.org/dev/examples/vector-formats.html Guillaume Sueur a ?crit : > Hi Josh, > > See mapscript documentation about this function : > Query layer based on a single shape, the shape has to be a polygon > at this point. > > Sorry ! > > > Josh Hevenor a ?crit : >> Good morning, >> >> >> >> I'm having trouble getting a response from PHP MapScript's >> Layer::queryByShape() >> >> >> >> I'm trying to query an OGR point layer by a Polygon Shape that I got >> from querying a different layer. queryByAttribute on the same OGR >> Point layer is working properly. >> >> >> >> My code looks like: >> >> >> >> >> if($bannerLayer->queryByShape($tradeAreaShape)==MS_SUCCESS){ >> >> >> /// . . . >> >> } else { >> >> Echo "FOUND NOTHING!"; >> >> } >> >> >> >> The WKT of tradeAreaShape is >> >> POLYGON ((-63.5931228499999290 44.6328285400000480, >> -63.5947725799999260 44.6335656500000940, -63.5951314899999720 >> 44.6341621000000830, -63.5957245999999260 44.6340256500000690, >> -63.5965530599999620 44.6338150900000410, -63.5968179299999290 >> 44.6337532300000820, -63.5977474799999530 44.6335363100000680, >> -63.5982376599999380 44.6333897900000810, -63.5988134899999410 >> 44.6332354000000460, -63.5987020099999540 44.6332166200000420, >> -63.5971723199999700 44.6327559600000540, -63.5969579099999580 >> 44.6327936700000690, -63.5964623699999270 44.6323998900000450, >> -63.5946525499999780 44.6317434200000780, -63.5938438599999360 >> 44.6315586800000690, -63.5932997099999400 44.6312995200000840, >> -63.5928279799999250 44.6307981100000570, -63.5924848199999250 >> 44.6305387700000440, -63.5919616199999500 44.6299659500000420, >> -63.5916053899999270 44.6296526400000740, -63.5909086899999350 >> 44.6292868500000850, -63.5899865099999600 44.6291208900000810, >> -63.5892757299999400 44.6286565300000580, -63.58845245 > 99999280 44.6282188300000940, -63.5874521599999410 44.6277828000000910, > -63.5860267299999580 44.6277003300000390, -63.5850517499999340 > 44.6273278300000700, -63.5841646099999590 44.6268552600000700, > -63.5839624399999370 44.6268111700000530, -63.5838486099999610 > 44.6267392600000790, -63.5831529099999670 44.6265364200000930, > -63.5826986099999660 44.6264936700000590, -63.5820406399999460 > 44.6262448900000660, -63.5816217099999220 44.6259225200000740, > -63.5814790499999280 44.6255455100000520, -63.5812254099999450 > 44.6253663000000530, -63.5807831799999690 44.6253010900000500, > -63.5812146799999600 44.6263535200000660, -63.5815108999999550 > 44.6275863300000420, -63.5816280799999730 44.6279660300000390, > -63.5816691499999250 44.6280994700000520, -63.5816917799999710 > 44.6291450300000750, -63.5818721599999320 44.6295401500000820, > -63.5820067699999640 44.6298511200000690, -63.5822121299999590 > 44.6303349300000600, -63.5823497599999430 44.6306541100000800, > -63.5833684999999490 44.630405840000 > 0940, -63.5843872299999480 44.6301575700000510, -63.5853932299999660 > 44.6299183500000820, -63.5862579099999720 44.6318944600000690, > -63.5867230999999720 44.6330173000000630, -63.5868909099999660 > 44.6334035400000740, -63.5909856299999770 44.6318880900000750, > -63.5927758399999450 44.6326734800000510, -63.5931228499999290 > 44.6328285400000480)) >> >> >> >> And a point that should be found is >> >> >> >> POINT (-63.573535919189 44.637145996094) >> >> >> >> Thanks once again, >> Josh Hevenor >> Application Developer >> ____________________________________________ >> 5230 South Service Road >> Burlington, Ontario >> L7L 5K2 Canada >> **Email: josh.hevenor at dpra.com*** >> *Internet: http://www.dpra.com* >> >> * >> >> >> >> >> >> >> **Attention:*** >> *Privileged/Confidential Information may be contained in this message. >> Disclosure to any person other than the named recipient is >> unauthorized. If you are not the intended recipient, please delete all >> copies of this information 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 DPRA shall be >> understood as neither given nor endorsed by it. DPRA and any of its >> subsidiaries reserve the right to monitor all e-mail communications >> through its networks. Thank you. >> >> >> > -- Guillaume SUEUR Expert SIG et OpenSource NEOGEO 46 RUE MATABIAU 31000 TOULOUSE 06 74 91 95 20 Site web : http://www.neogeo-online.net From guillaume.sueur at NEOGEO-ONLINE.NET Wed Jan 30 13:29:08 2008 From: guillaume.sueur at NEOGEO-ONLINE.NET (Guillaume Sueur) Date: Wed, 30 Jan 2008 22:29:08 +0100 Subject: queryByShape Problem In-Reply-To: <49B9846C39F25A4FA901064970861610D47D94@mhk-ex1.ad.dpra.com> Message-ID: <WED.30.JAN.2008.222908.0100.GUILLAUME.SUEURNEOGEOONLINE.NET> Does your mapfile contains the TEMPLATE item for the queryable layers ? I bet not ! Guillaume Josh Hevenor a ?crit : > A good point was made here. My use of union_geos wasn't doing what I thought it was. I've decided to manually calculate the boundary of my initial query result (just looking for min{x|y}, max{x|y}) and trying to find the points in that bounding box and still have had no luck. > > I've checked http://www.openlayers.org/dev/examples/vector-formats.html that the points I expect really are supposed to be returned. My bounding box is > > POLYGON ((-63.60658536 44.61749653, -63.60658536 44.6555663, - 63.55962575 44.6555663, -63.55962575 44.61749653, -63.60658536 44.61749653)) > > The points that should be returned by the query are > > POINT (-63.5735359191895 44.6371459960938) > POINT (-63.5701866149902 44.6374168395996) > > I'm using MapServer 5 on windows server 2003. The point layer is OGR with the FID set. I'm attempting to use the same function with other layers and I'm not having any better luck. I must be using this wrong. > > > $taBounds = ms_newRectObj(); > $taBounds->setextent($taBoundMinX, $taBoundMinY, $taBoundMaxX, $taBoundMaxY); > > @$bannerLayer->queryByRect($taBounds); > $numRes = $bannerLayer ->getNumResults(); > If($numRes > 0){ > . . . > } > > Your help is appreciated, > > Josh > > > -----Original Message----- > From: Guillaume Sueur [mailto:guillaume.sueur at neogeo-online.net] > Sent: Wednesday, January 30, 2008 11:45 AM > To: Josh Hevenor; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] queryByShape Problem > > Oups ! read the stuff too fast. The query object IS a polygon. > In fact your point does'nt seem to be INTO the polygon. Have a check > with OpenLayers vector capabilities, in which you can test WKTs : > http://www.openlayers.org/dev/examples/vector-formats.html > > > > Guillaume Sueur a ?crit : >> Hi Josh, >> >> See mapscript documentation about this function : >> Query layer based on a single shape, the shape has to be a polygon >> at this point. >> >> Sorry ! >> >> >> Josh Hevenor a ?crit : >>> Good morning, >>> >>> >>> >>> I'm having trouble getting a response from PHP MapScript's >>> Layer::queryByShape() >>> >>> >>> >>> I'm trying to query an OGR point layer by a Polygon Shape that I got >>> from querying a different layer. queryByAttribute on the same OGR >>> Point layer is working properly. >>> >>> >>> >>> My code looks like: >>> >>> >>> >>> >>> if($bannerLayer->queryByShape($tradeAreaShape)==MS_SUCCESS){ >>> >>> >>> /// . . . >>> >>> } else { >>> >>> Echo "FOUND NOTHING!"; >>> >>> } >>> >>> >>> >>> The WKT of tradeAreaShape is >>> >>> POLYGON ((-63.5931228499999290 44.6328285400000480, >>> -63.5947725799999260 44.6335656500000940, -63.5951314899999720 >>> 44.6341621000000830, -63.5957245999999260 44.6340256500000690, >>> -63.5965530599999620 44.6338150900000410, -63.5968179299999290 >>> 44.6337532300000820, -63.5977474799999530 44.6335363100000680, >>> -63.5982376599999380 44.6333897900000810, -63.5988134899999410 >>> 44.6332354000000460, -63.5987020099999540 44.6332166200000420, >>> -63.5971723199999700 44.6327559600000540, -63.5969579099999580 >>> 44.6327936700000690, -63.5964623699999270 44.6323998900000450, >>> -63.5946525499999780 44.6317434200000780, -63.5938438599999360 >>> 44.6315586800000690, -63.5932997099999400 44.6312995200000840, >>> -63.5928279799999250 44.6307981100000570, -63.5924848199999250 >>> 44.6305387700000440, -63.5919616199999500 44.6299659500000420, >>> -63.5916053899999270 44.6296526400000740, -63.5909086899999350 >>> 44.6292868500000850, -63.5899865099999600 44.6291208900000810, >>> -63.5892757299999400 44.6286565300000580, -63.58845245 >> 99999280 44.6282188300000940, -63.5874521599999410 44.6277828000000910, >> -63.5860267299999580 44.6277003300000390, -63.5850517499999340 >> 44.6273278300000700, -63.5841646099999590 44.6268552600000700, >> -63.5839624399999370 44.6268111700000530, -63.5838486099999610 >> 44.6267392600000790, -63.5831529099999670 44.6265364200000930, >> -63.5826986099999660 44.6264936700000590, -63.5820406399999460 >> 44.6262448900000660, -63.5816217099999220 44.6259225200000740, >> -63.5814790499999280 44.6255455100000520, -63.5812254099999450 >> 44.6253663000000530, -63.5807831799999690 44.6253010900000500, >> -63.5812146799999600 44.6263535200000660, -63.5815108999999550 >> 44.6275863300000420, -63.5816280799999730 44.6279660300000390, >> -63.5816691499999250 44.6280994700000520, -63.5816917799999710 >> 44.6291450300000750, -63.5818721599999320 44.6295401500000820, >> -63.5820067699999640 44.6298511200000690, -63.5822121299999590 >> 44.6303349300000600, -63.5823497599999430 44.6306541100000800, >> -63.5833684999999490 44.630405840000 >> 0940, -63.5843872299999480 44.6301575700000510, -63.5853932299999660 >> 44.6299183500000820, -63.5862579099999720 44.6318944600000690, >> -63.5867230999999720 44.6330173000000630, -63.5868909099999660 >> 44.6334035400000740, -63.5909856299999770 44.6318880900000750, >> -63.5927758399999450 44.6326734800000510, -63.5931228499999290 >> 44.6328285400000480)) >>> >>> >>> And a point that should be found is >>> >>> >>> >>> POINT (-63.573535919189 44.637145996094) >>> >>> >>> >>> Thanks once again, >>> Josh Hevenor >>> Application Developer >>> ____________________________________________ >>> 5230 South Service Road >>> Burlington, Ontario >>> L7L 5K2 Canada >>> **Email: josh.hevenor at dpra.com*** >>> *Internet: http://www.dpra.com* >>> >>> * >>> >>> >>> >>> >>> >>> >>> **Attention:*** >>> *Privileged/Confidential Information may be contained in this message. >>> Disclosure to any person other than the named recipient is >>> unauthorized. If you are not the intended recipient, please delete all >>> copies of this information 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 DPRA shall be >>> understood as neither given nor endorsed by it. DPRA and any of its >>> subsidiaries reserve the right to monitor all e-mail communications >>> through its networks. Thank you. >>> >>> >>> > From naci0002 at UMN.EDU Wed Jan 30 15:16:59 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 30 Jan 2008 17:16:59 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS In-Reply-To: <LISTSERV%200801301112330286.55FA@LISTS.UMN.EDU> Message-ID: <WED.30.JAN.2008.171659.0600.NACI0002UMN.EDU> William Hudspeth wrote: > Hello Perry, > > Unfortunately, I am getting the same errors with Mapserver 5.0.2!!! > > Bill > Hey Bill, Sorry to hear that. Am I correct in assuming that you have multiple versions of GEOS in your system? If so, you might want to make sure the headers and library symlinks are correct for the particular version you're linking to. In particular, is libgeos_c.so symlinked to /usr/local/geos-3.0.0rc4/lib/libgeos_c.so.1.x.x? Is /usr/local/geos-3.0.0rc4/lib in your library path (in /etc/ld.so.conf)? You can check with "ldconfig -v | grep geos". You can also define LD_LIBRARY_PATH to include /usr/local/geos-3.0.0rc4, if this path isn't defined anywhere. That's all I can think of right now. I hope it helps. -Perry From naci0002 at UMN.EDU Wed Jan 30 15:29:44 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Wed, 30 Jan 2008 17:29:44 -0600 Subject: MapServer 4.x tutorial error In-Reply-To: <47A0CE49.6060705@jax.org> Message-ID: <WED.30.JAN.2008.172944.0600.NACI0002UMN.EDU> Hi Jill, Looks like your MapServer installation is working so that's good. Unfortunately, there are some changes to the way mapfile variables are defined via URL between MapServer 4.x and MapServer 5.x. If you want to track the changes yourself, have a look at http://mapserver.gis.umn.edu/development/rfc/ms-rfc-31. Or you can just download the MapServer 5.x demo at http://maps.dnr.state.mn.us/mapserver_demos/workshop-5.0.zip. The documentation will hopefully be updated soon. -Perry Jill Recla wrote: > Hi everyone, > > I'm looking for help with the MapServer 4.x tutorial. I recently > tried to install the uncompiled version of MapServer 5.0.2 on my > Windows machine. I was able to download the source code and GD > library, but the link to the Regex library FTP site does not work. I > then decided to install a precompiled version of MapServer. I already > had Apache and PHP installed on my machine, so I did not want to > install MS4W over it. Instead I installed FWTools, which came with > MapServer 4.9. I tested MapServer by typing "mapserv -v" in the > command prompt, and by checking the URL. Both tests indicated that > MapServer had been installed correctly. However, I cannot get the 4.x > demo to run. I edited the necessary variables in the index.html file, > but I get the following error: > > loadWeb(): Unknown identifier. Parsing error near > (/Web/WebServer/Apache2/htdocs/tmp/):(line 1) > > I have checked the forum archives for information regarding this > problem. There are several posts regarding similar problems, but > there is no clear answer as to how to fix it, and the tutorial is > relatively vague. The code for my index.html file is provided below. > Does anyone know how to get around this problem?? > > Thank you in advance. > > Kind regards, > Jill Recla > > > --------------------------------------------------------------------------- > > --------------------------------------------------------------------------- > > > <!-- EDIT THE FORM ACTION --> > <form name="demo" method="GET" > action="/cgi-bin/FWTools2.0.4/bin/mapserv.exe" onSubmit="submit_form()"> > > <input type="hidden" name="layer" value="lakespy2"> > <input type="hidden" name="layer" value="dlgstln2"> > <input type="hidden" name="zoomsize" value="2"> > > <!-- EDIT THESE HIDDEN VARIABLES --> > <input type="hidden" name="map" > value="/Web/WebServer/Apache2/htdocs/workshop4x/itasca.map"> > <input type="hidden" name="program" > value="/cgi-bin/FWTools2.0.4/bin/mapserv.exe"> > <input type="hidden" name="root" value="/Web/WebServer/Apache2"> > <input type="hidden" name="map_web_imagepath" > value="/Web/WebServer/Apache2/htdocs/tmp/"> > <input type="hidden" name="map_web_imageurl" value="/tmp/"> > > <select name="map_web_template" size="1"> > <option value="itasca_basic.html"> Basic Application > <option value="itasca_adds_scalebar.html"> &nbsp;&nbsp;-- Adds > second scalebar > <option value="itasca_adds_pan.html"> &nbsp;&nbsp;-- Adds pan > controls > <option value="itasca_adds_frames.html"> &nbsp;&nbsp;-- Adds frames > <option value="itasca_adds_dhtml.html"> &nbsp;&nbsp;-- Adds > dhtml rubber-band box > </select> > <input type="submit" value="Initialize"></center> > > </form> > > --------------------------------------------------------------------------- > > --------------------------------------------------------------------------- > > From iansgis at GMAIL.COM Wed Jan 30 17:28:52 2008 From: iansgis at GMAIL.COM (Ian) Date: Wed, 30 Jan 2008 17:28:52 -0800 Subject: SRTM3 > tiled, georeferenced images Message-ID: <WED.30.JAN.2008.172852.0800.IANSGISGMAIL.COM> I want to speed up my basemaps by "flattening" SRTM3 rasters and NHD shapefiles together into tiled georeferenced images that will reduce processing time. Are there solutions available to do this? My current solution is a script that makes MS calls and creates .tif images from the result, but spatial reference is preventing gdaltindex from indexing these files. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080130/33b2f949/attachment.htm> From Jukka.Rahkonen at MMMTIKE.FI Wed Jan 30 22:02:44 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 31 Jan 2008 08:02:44 +0200 Subject: SRTM3 > tiled, georeferenced images Message-ID: <THU.31.JAN.2008.080244.0200.JUKKA.RAHKONENMMMTIKE.FI> > I want to speed up my basemaps by "flattening" SRTM3 rasters and NHD > shapefiles together into tiled georeferenced images that will reduce > processing time. Are there solutions available to do this? > My current solution is a script that makes MS calls and creates .tif images > from the result, but spatial reference is preventing gdaltindex from >indexing these files. Hi, I wonder why spatial reference is preventing indexing? Usually lack of that is the problem. And that problem can be avoided by defining the OUTPUTFORMAT as GeoTIFF. -Jukka Rahkonen- From mlinden at ZEELANDNET.NL Thu Jan 31 01:50:52 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 31 Jan 2008 10:50:52 +0100 Subject: WMS GetFeatureInfo In-Reply-To: <1ebb87870801300931j8faf4dcv6e89164ba254b235@mail.gmail.com> Message-ID: <THU.31.JAN.2008.105052.0100.MLINDENZEELANDNET.NL> Hello Bart, I think that is what I already did. Instead of feature_info_mime_type, I got wms_feature_mime_type; can that be a typo? I added feature_info_mime_type to the web section to test, but there is no effect, still no featureinfo. I am also posting on the flamingo-mc forum to see if they got some suggestions. In the Map section I got: ---- snippet ---- WEB IMAGEPATH 'E:/maptemp/' IMAGEURL '/ms_tmp/' HEADER "./templates/query_header.html" FOOTER "./templates/query_footer.html" METADATA "wms_title" "Bouwfonds - Digitale kaart" "wms_onlineresource" "http://www.xx.xx/cgi-bin/mapserv.exe?map=E:\\mapconfig\\bouwfonds.map" "wms_srs" "EPSG:4326 EPSG:28992" "ows_schemas_location" "http://schemas.opengis.net" "wms_feature_mime_type" "application/vnd.ogc.gml" END END And for my Layer: ---- snippet ---- LAYER NAME 'percelen' TYPE POLYGON DUMP TRUE TEMPLATE 'ttt' DATA '.\mapdata\rga\percelen_laag_poly_merged.shp' METADATA "wms_title" "percelen" "wms_srs" "EPSG:28992" "gml_featureid" "id" "gml_include_items" "all" END STATUS ON TRANSPARENCY 100 PROJECTION "init=epsg:28992" END CLASS NAME 'percelen' STYLE SYMBOL 0 SIZE 6 OUTLINECOLOR 180 208 208 #COLOR 180 208 208 END END END Bart van den Eijnden schreef: > Milo, > > the WMS client determines the info_format. I assume QGIS is asking for > MIME or text/plain. > > You need to add the following METADATA to your layers: > > OWS_INCLUDE_ITEMS "all" > > Maybe even GML_INCLUDE_ITEMS "all" I am not sure. Give it a try. > > If Flamingo wants GML, it will request with > info_format=application/vnd.ogc.gml. If it doesn't you can probably > set the default/MIME format of Mapserver to this (METADATA at the WEB > level called feature_info_mime_type). > > Template can remain empty, I always TEMPLATE blank.html where > blank.html does not even exist on the filesystem. > > Best regards, > Bart > > On Jan 30, 2008 5:48 PM, Milo van der Linden <mlinden at zeelandnet.nl > <mailto:mlinden at zeelandnet.nl>> wrote: > > Hello list, > > I have been spending 4 hours looking around the mapserver website and > various other resources but no luck. > > As a Mapserver WMS client I am using flamingo-mc. flamingo-mc is > able to > perform a getFeatureInfo and requires gml as response. > > For now I have some sort of response because with qGIS I get: > WMS identify result for 225, 337 > > --------------- > > GetFeatureInfo results: > > Layer 'percelen' > > Feature 507: > > > But it is clearly no gml and I haven't set the fields from the > table to > be returned. > > So: > > - What do I have to put in my (currently empty) TEMPLATE file? > - Can I enter all the GML that I need to return in my TEMPLATE and > does > anyone have a sample for this? > > - How can I make sure that the information returned is in the gml > mime-type? > > > Any help would be appreciated! > > Kind regards, > > Milo van der Linden > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080131/8a5d6d8e/attachment.htm> From josem.lucas2 at CARM.ES Thu Jan 31 05:13:05 2008 From: josem.lucas2 at CARM.ES (LUCAS BERNAL, JOSE MIGUEL) Date: Thu, 31 Jan 2008 14:13:05 +0100 Subject: Libgd.so.2 -> Library not found Message-ID: <THU.31.JAN.2008.141305.0100.JOSEM.LUCAS2CARM.ES> Hello, -- Edit /etc/ld.so.conf -- Add a line with the library path "/example/lib" -- Run "ldconfig" I hope to help you. Best Regards; ________________________________ De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Seethaler, Lyle [USA] Enviado el: mi?rcoles, 30 de enero de 2008 17:42 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] Libgd.so.2 -> Library not found As a result of restrictions on the container I am working I can not build libraries into the /usr/lib/ directories. As a result the libraries that I built for MapServer (gd, curl, etc) are in a different location. I specify these locations in the configuration file and the makefile lists these locations correctly and runs fine. However once I test the mapserv executable it does not see these libraries. Am I missing a parameter for setting these library locations into the cgi? Should i be setting an environment variable with these locations? Any help in this issue is much appreciated. Thanks in advance! Lyle # mapserv ld.so.1: mapserv: fatal: libgd.so.2: open failed: No such file or directory # ldd mapserv libgd.so.2 => (file not found) libjpeg.so.62 => /usr/lib/libjpeg.so.62 libfreetype.so.6 => /usr/sfw/lib/libfreetype.so.6 libpng.so.3 => /usr/lib/libpng.so.3 libz.so.1 => /usr/lib/libz.so.1 libXpm.so.4 => /usr/lib/libXpm.so.4 libX11.so.4 => /usr/lib/libX11.so.4 libtiff.so.3 => /usr/lib/libtiff.so.3 libproj.so.0 => (file not found) libgdal.so.1 => (file not found) libpq.so.5 => (file not found) librt.so.1 => /usr/lib/librt.so.1 libdl.so.1 => /usr/lib/libdl.so.1 libcurl.so.4 => (file not found) libssl.so.0.9.7 => /usr/sfw/lib/libssl.so.0.9.7 libcrypto.so.0.9.7 => /usr/sfw/lib/libcrypto.so.0.9.7 libldap.so.5 => /usr/lib/libldap.so.5 libsocket.so.1 => /usr/lib/libsocket.so.1 libnsl.so.1 => /usr/lib/libnsl.so.1 libclntsh.so.10.1 => (file not found) libgeos_c.so.1 => (file not found) libpthread.so.1 => /usr/lib/libpthread.so.1 libxml2.so.2 => /usr/lib/libxml2.so.2 libm.so.2 => /usr/lib/libm.so.2 libstdc++.so.6 => /usr/sfw/lib/libstdc++.so.6 libc.so.1 => /usr/lib/libc.so.1 libgcc_s.so.1 => /usr/sfw/lib/libgcc_s.so.1 libXext.so.0 => /usr/openwin/lib/libXext.so.0 libaio.so.1 => /lib/libaio.so.1 libmd5.so.1 => /lib/libmd5.so.1 libsasl.so.1 => /usr/lib/libsasl.so.1 libnspr4.so => /usr/lib/mps/libnspr4.so libplc4.so => /usr/lib/mps/libplc4.so libnss3.so => /usr/lib/mps/libnss3.so libssl3.so => /usr/lib/mps/libssl3.so libmp.so.2 => /lib/libmp.so.2 libscf.so.1 => /lib/libscf.so.1 libthread.so.1 => /lib/libthread.so.1 libsoftokn3.so => /usr/lib/mps/libsoftokn3.so libplds4.so => /usr/lib/mps/libplds4.so libdoor.so.1 => /lib/libdoor.so.1 libuutil.so.1 => /lib/libuutil.so.1 libbsm.so.1 => /lib/libbsm.so.1 libsecdb.so.1 => /lib/libsecdb.so.1 libtsol.so.2 => /lib/libtsol.so.2 libcmd.so.1 => /lib/libcmd.so.1 /platform/SUNW,Sun-Fire-480R/lib/libc_psr.so.1 /platform/SUNW,Sun-Fire-480R/lib/libmd5_psr.so.1 /usr/lib/mps/cpu/sparcv8plus/libnspr_flt4.so Example taken from Makefile: GDFONT_OBJ=gd-1.2/gdfontt.o gd-1.2/gdfonts.o gd-1.2/gdfontmb.o gd-1.2/gdfontl.o gd-1.2/gdfontg.o GD_INC= -I/var/usrtmp/local/include GD_LIB= -L/var/usrtmp/local/lib -lgd -L/usr/lib -ljpeg -lfreetype -lpng -lz -lXpm -lX11 GD= -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS GD_STATIC = -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080131/01ce226a/attachment.htm> From rdeimann at GMX.DE Thu Jan 31 06:36:54 2008 From: rdeimann at GMX.DE (Roman Deimann) Date: Thu, 31 Jan 2008 15:36:54 +0100 Subject: Reference map object Message-ID: <THU.31.JAN.2008.153654.0100.RDEIMANNGMX.DE> Hallo list, how can I set the extent of a reference map object with PHP/Mapscript. If is I use the ?set()? function I get the error: ?PHP Fatal error: Property 'extent' is an object and cannot be set using set(). Use the extent object's methods instead.? But I can?t find an ?extent()? or ?setextent()? function. Thanks for any help, Roman From bea at IXSEA.COM Thu Jan 31 07:15:06 2008 From: bea at IXSEA.COM (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 31 Jan 2008 16:15:06 +0100 Subject: Problem with shape file rendering Message-ID: <THU.31.JAN.2008.161506.0100.BEAIXSEA.COM> Hi everyone ! I'm trying to render a shapefile with mapserver but I have some problems with the final result. So my shapefile contains points. -------------------------------------------------------------------------------- The projection used seems to be PROJCS[ "United Kingdom - ED50 / TM 0 NE - 1311 / 23090", GEOGCS[ "ED50_UK_1311", DATUM[ "D_ED50_UK_1311", SPHEROID[ "International_1924", 6378388, 297.0000000000601] ], PRIMEM[ "Greenwich", 0], UNIT[ "Degree", 0.017453292519943295] ], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",0], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["Meter",1] ] This projection, translated in Proj4's format should be : +proj=tmerc +lat_0=0 +lon_0=0 +k=0.999600 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs. -------------------------------------------------------------------------------- Now, my map file which only contains one layer is : MAP Name"Shell" CONFIG "PROJ_LIB" "c:\Inetpub\wwwroot\Cgi\proj_lib\" EXTENT 277486 5873890 691772 6823080 SIZE 512 512 IMAGETYPE PNG24 IMAGECOLOR 255 255 255 UNITS METERS OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END PROJECTION "+proj=tmerc +lat_0=0 +lon_0=0 +k=0.999600 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs" END WEB IMAGEPATH "c:\ms_tmp\" IMAGEURL "http://ACQUISITIONTEST/ms_tmp" METADATA "wms_title" "Ob135_200" "wms_srs" "epsg:4326" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=8" END END SYMBOL NAME "quadrat" TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 END FILLED TRUE END LAYER NAME "Vector" TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "C:/temp/bch/gbr_rigs.shp" PROJECTION "+proj=tmerc +lat_0=0 +lon_0=0 +k=0.999600 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs" END DATA "gbr_rigs" CLASS SYMBOL "quadrat" COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 6 END END END -------------------------------------------------------------------------------- Given all this, I first tried to render this with a web browser by writing directly my request : http://acquisitiontest/CGI/bin/mapserv.exe?request=GetMap&map=C:/temp/bch/Shell.map&request=GetMap&layers=Vector&srs=EPSG:4326&version=1.1.1&styles= By not giving the extent nor width and height, I am expecting to take the full bounding box of the map file as width and height. I am already doing this for raster layers so I won't be surprised to make it work for shape files. But, unfortunately, the result remains empty whatever I try. So, I remembered to use the shp2img to make a render and there I have a correct result. From Jukka.Rahkonen at MMMTIKE.FI Thu Jan 31 09:11:24 2008 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 31 Jan 2008 19:11:24 +0200 Subject: Problem with shape file rendering Message-ID: <THU.31.JAN.2008.191124.0200.JUKKA.RAHKONENMMMTIKE.FI> Beno?t Andrieu wrote: > Given all this, I first tried to render this with a web browser by writing directly my request : > http://acquisitiontest/CGI/bin/mapserv.exe?request=GetMap&map=C:/temp/bch/Shell.map&request=GetMap&layers=Vector&srs=EPSG:4326&version=1.1.1&styles= > By not giving the extent nor width and height, I am expecting to take the full bounding box of the map file as width and height. > I am already doing this for raster layers so I won't be surprised to make it work for shape files. > But, unfortunately, the result remains empty whatever I try. Hi, This is mostly guessing, but could it be that there is some conflict due to that you are using epsg:4326 in your request but mapfile extents are in some other projection? What happens if you change the SRS in the request to suit the map level projection? Of course it must be added to wms_srs list first. -Jukka- MAP Name"Shell" CONFIG "PROJ_LIB" "c:\Inetpub\wwwroot\Cgi\proj_lib\" EXTENT 277486 5873890 691772 6823080 SIZE 512 512 IMAGETYPE PNG24 IMAGECOLOR 255 255 255 UNITS METERS OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END PROJECTION "+proj=tmerc +lat_0=0 +lon_0=0 +k=0.999600 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs" END WEB IMAGEPATH "c:\ms_tmp\" IMAGEURL "http://ACQUISITIONTEST/ms_tmp" METADATA "wms_title" "Ob135_200" "wms_srs" "epsg:4326" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=8" END END SYMBOL NAME "quadrat" TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 END FILLED TRUE END LAYER NAME "Vector" TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "C:/temp/bch/gbr_rigs.shp" PROJECTION "+proj=tmerc +lat_0=0 +lon_0=0 +k=0.999600 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs" END DATA "gbr_rigs" CLASS SYMBOL "quadrat" COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 6 END END END -------------------------------------------------------------------------------- Given all this, I first tried to render this with a web browser by writing directly my request : http://acquisitiontest/CGI/bin/mapserv.exe?request=GetMap&map=C:/temp/bch/Shell.map&request=GetMap&layers=Vector&srs=EPSG:4326&version=1.1.1&styles= By not giving the extent nor width and height, I am expecting to take the full bounding box of the map file as width and height. I am already doing this for raster layers so I won't be surprised to make it work for shape files. But, unfortunately, the result remains empty whatever I try. So, I remembered to use the shp2img to make a render and there I have a correct result. From bea at IXSEA.COM Thu Jan 31 09:25:10 2008 From: bea at IXSEA.COM (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Thu, 31 Jan 2008 18:25:10 +0100 Subject: Problem with shape file rendering In-Reply-To: <CC197224AC75CE4DB23F739B16891B86E33C8F@tikka.haapa.mmm.fi> Message-ID: <THU.31.JAN.2008.182510.0100.BEAIXSEA.COM> Oh shit !! You're right ! By not providing a bounding box in the url, I think that mapserver is doing a mistake and takes the coordinates of the extent present in the map file and converts them into the srs of the request ! So by simply puting -180,-90,180,90 in the url as the bounding box, I now see my points !!!! Really sorry for those unnecessary emails ! Thank you for having helped me ! ;) Beno?t ----- Original Message ----- From: "Rahkonen Jukka" <Jukka.Rahkonen at MMMTIKE.FI> To: <MAPSERVER-USERS at LISTS.UMN.EDU> Sent: Thursday, January 31, 2008 6:11 PM Subject: Re: [UMN_MAPSERVER-USERS] Problem with shape file rendering Beno?t Andrieu wrote: > Given all this, I first tried to render this with a web browser by writing > directly my request : > http://acquisitiontest/CGI/bin/mapserv.exe?request=GetMap&map=C:/temp/bch/Shell.map&request=GetMap&layers=Vector&srs=EPSG:4326&version=1.1.1&styles= > By not giving the extent nor width and height, I am expecting to take the > full bounding box of the map file as width and height. > I am already > doing this for raster layers so I won't be surprised to make it work for > shape files. > But, unfortunately, the result remains empty whatever I try. Hi, This is mostly guessing, but could it be that there is some conflict due to that you are using epsg:4326 in your request but mapfile extents are in some other projection? What happens if you change the SRS in the request to suit the map level projection? Of course it must be added to wms_srs list first. -Jukka- MAP Name"Shell" CONFIG "PROJ_LIB" "c:\Inetpub\wwwroot\Cgi\proj_lib\" EXTENT 277486 5873890 691772 6823080 SIZE 512 512 IMAGETYPE PNG24 IMAGECOLOR 255 255 255 UNITS METERS OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END PROJECTION "+proj=tmerc +lat_0=0 +lon_0=0 +k=0.999600 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs" END WEB IMAGEPATH "c:\ms_tmp\" IMAGEURL "http://ACQUISITIONTEST/ms_tmp" METADATA "wms_title" "Ob135_200" "wms_srs" "epsg:4326" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=8" END END SYMBOL NAME "quadrat" TYPE VECTOR POINTS 0 0 0 1 1 1 1 0 END FILLED TRUE END LAYER NAME "Vector" TYPE POINT STATUS ON CONNECTIONTYPE OGR CONNECTION "C:/temp/bch/gbr_rigs.shp" PROJECTION "+proj=tmerc +lat_0=0 +lon_0=0 +k=0.999600 +x_0=500000 +y_0=0 +ellps=intl +units=m +no_defs" END DATA "gbr_rigs" CLASS SYMBOL "quadrat" COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 6 END END END -------------------------------------------------------------------------------- Given all this, I first tried to render this with a web browser by writing directly my request : http://acquisitiontest/CGI/bin/mapserv.exe?request=GetMap&map=C:/temp/bch/Shell.map&request=GetMap&layers=Vector&srs=EPSG:4326&version=1.1.1&styles= By not giving the extent nor width and height, I am expecting to take the full bounding box of the map file as width and height. I am already doing this for raster layers so I won't be surprised to make it work for shape files. But, unfortunately, the result remains empty whatever I try. So, I remembered to use the shp2img to make a render and there I have a correct result. From egeografo at HOTMAIL.COM Thu Jan 31 09:37:51 2008 From: egeografo at HOTMAIL.COM (egg) Date: Thu, 31 Jan 2008 09:37:51 -0800 Subject: an easy question.... In-Reply-To: <15181862.post@talk.nabble.com> Message-ID: <THU.31.JAN.2008.093751.0800.EGEOGRAFOHOTMAIL.COM> Thanks for your answer Daniel, I did it, I changed the localhost for my Hostname and works fine but just in my Intranet. But if I would like open my app directly on Internet what are the steps? If it isn't too much trouble. Saludos. -- View this message in context: http://www.nabble.com/an-easy-question....-tp15181862p15209480.html Sent from the Mapserver - User mailing list archive at Nabble.com. From bhudspeth at EDAC.UNM.EDU Thu Jan 31 10:57:04 2008 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Thu, 31 Jan 2008 12:57:04 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS Message-ID: <THU.31.JAN.2008.125704.0600.BHUDSPETHEDAC.UNM.EDU> Perry, OK, so far so good. Your suggestion fixed the build problem, and it appears to be installed. I got rid of all older packages of GEOS, including in /usr/lib, and took care of the ld.so.conf issues. I am now trying to get PHP mapscript up and running, but am having a problem. I had to create an "extension" directory where I built PHP /usr/local/php5/lib/php/extension I copied the php_mapscript.so file to this location, added the directory path to "extension_dir" in php.ini, and restarted apache. When I include the following in a *.php file dl('php_mapscript.so'); I get these errors: Warning: dl() [function.dl]: Unable to load dynamic library '/usr/local/php5/lib/php/extension/php_mapscript.so' - libgeos.so.2: cannot open shared object file: No such file or directory in /usr/local/apache2/htdocs/hello.php on line 3 Obviously something to do with shared objects, and am guessing it had something to do with a configuration option in either PHP or Mapserver???? Thanks a million, Bill From jill.recla at JAX.ORG Thu Jan 31 11:18:50 2008 From: jill.recla at JAX.ORG (Jill Recla) Date: Thu, 31 Jan 2008 14:18:50 -0500 Subject: MapServer 5.0 demo problem Message-ID: <THU.31.JAN.2008.141850.0500.JILL.RECLAJAX.ORG> Hi everyone, I decided to uninstall everything I had and start from scratch. I installed MS4W with MapServer 5.0 and am now trying to get the 5.x demo to work. MapServer and all of the other MS4W components are working properly, and the initial index.html page loads. When I try to initialize the webpage, however, I get this error: msSaveImageGD(): Unable to access file. Unable to open file /usr/local/www/docs_maps/tmp/ITASCA12018069395076.png for writing I have changed my index.html file to look like this: <!-- EDIT THE FORM ACTION --> <form name="demo" method="GET" action="/cgi-bin/mapserv.exe" onSubmit="configure()"> <input type="hidden" name="layer" value="lakespy2"> <input type="hidden" name="layer" value="dlgstln2"> <input type="hidden" name="zoomsize" value=2> <input type="hidden" name="map_web" value=""> <!-- EDIT THESE HIDDEN VARIABLES --> <input type="hidden" name="map" value="C:/ms4w/Apache/htdocs/workshop-5.0/itasca.map"> <input type="hidden" name="program" value="/cgi-bin/mapserv.exe"> <input type="hidden" name="root" value="C:/ms4w/Apache/htdocs/workshop-5.0/"> Does anyone know how to fix this?? There must be something simple I'm not changing, but I can't figure out what it is..... Thanks, Jill -- ***************************************************** *****Jill M. Recla****UMaine Functional Genomics***** ***jill.recla at jax.org*****************906-282-8033*** ***************************************************** From jayzee.smith at GMAIL.COM Thu Jan 31 11:38:49 2008 From: jayzee.smith at GMAIL.COM (John Smith) Date: Thu, 31 Jan 2008 14:38:49 -0500 Subject: [GENERAL][UMN_MAPSERVER-USERS] query postgres AND oracle Message-ID: <THU.31.JAN.2008.143849.0500.JAYZEE.SMITHGMAIL.COM> guys, i got geometry in postgres, some other data in oracle. is it possible to filter postgres geometry based on oracle data (without using services)? cheers, jzs From rdmailings at DUIF.NET Thu Jan 31 11:50:18 2008 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Thu, 31 Jan 2008 20:50:18 +0100 Subject: WMS GetFeatureInfo In-Reply-To: <47A199FC.8020808@zeelandnet.nl> Message-ID: <THU.31.JAN.2008.205018.0100.RDMAILINGSDUIF.NET> Hi Milo, did you succeed? I've mapserver running here with a flamingo client example. All configs below, hope this is helpfull: This is de layer def from the mapfile: LAYER NAME pc4p DEBUG ON TRANSPARENCY ALPHA TOLERANCE 15 DUMP TRUE METADATA "wms_title" "PC4CODE" "wms_feature_info_mime_type" "text/html" "gml_featureid" "oid" ## REQUIRED "ows_feature_info_mime_type" "text/html" "ows_include_items" "all" #"gml_include_items" "PC4NAAM" "gml_include_items" "all" "wms_include_items" "all" END # METADATA # query templates for queries # MUST BE AVAILABLE FOR GETFEATUREINFO REQUESTS # responds to OGC:WMS request=GetFeatureInfo......&info_format=text/html HEADER "C:\ms4w\Apache\htdocs\ol\pc_header.html" TEMPLATE "C:\ms4w\Apache\htdocs\ol\pc.html" FOOTER "C:\ms4w\Apache\htdocs\ol\pc_footer.html" TYPE POINT STATUS ON CLASSITEM 'HUISHOUDEN' DATA pc4 PROJECTION "init=epsg:28992" END CLASS EXPRESSION ([HUISHOUDEN] > 10000) STYLE SYMBOL 'punt' SIZE 60 COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END CLASS EXPRESSION ([HUISHOUDEN] > 2000) STYLE ANTIALIAS TRUE SYMBOL 'punt' SIZE 15 COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END This is the kind of url's flamingo is firing: http://localhost/cgi-bin/mapserv.exe?map=test.map&REQUEST=GetFeatureInfo&SERVICE=WMS&FEATURE_COUNT=10&Y=177&X=407&SRS=EPSG:28992&VERSION=1.1.1&EXCEPTIONS=application/vnd.ogc.se_xml&INFO_FORMAT=application/vnd.ogc.gml&QUERY_LAYERS=pc4p&LAYERS=pc4p&HEIGHT=333&WIDTH=916&BBOX=-297620.12012012,300000,582620.12012012,620000 This is the gml output of mapserver which is nicely shown in flamingo: <?xml version="1.0" encoding="ISO-8859-1"?> <msGMLOutput xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <pc4p_layer> <pc4p_feature> <gml:boundedBy> <gml:Box srsName="EPSG:28992"> <gml:coordinates>88589.000000,463018.000000 88589.000000,463018.000000</gml:coordinates> </gml:Box> </gml:boundedBy> <PC4CODE>2241</PC4CODE> <PC4NR>2241</PC4NR> <PC4NAAM>ZIJLWATERING EN HAVEN</PC4NAAM> <XCOORD>88589</XCOORD> <YCOORD>463018</YCOORD> <PC3CODE>224</PC3CODE> <PC2CODE>22</PC2CODE> <PC1CODE>2</PC1CODE> <PROVC>28</PROVC> <PROVC_NM>Zuid-Holland</PROVC_NM> <GEMCODE>0629</GEMCODE> <GEMNR>629</GEMNR> <GEMNAAM>Wassenaar</GEMNAAM> <WOONPLAATS>WASSENAAR</WOONPLAATS> <HUISHOUDEN>4557</HUISHOUDEN> <NETNUMMER>070</NETNUMMER> </pc4p_feature> <pc4p_feature> <gml:boundedBy> <gml:Box srsName="EPSG:28992"> <gml:coordinates>87278.000000,438832.000000 87278.000000,438832.000000</gml:coordinates> </gml:Box> </gml:boundedBy> <PC4CODE>3125</PC4CODE> <PC4NR>3125</PC4NR> <PC4NAAM>INDUSTRIEGEBIED T.N.V. RIJKSWEG2</PC4NAAM> <XCOORD>87278</XCOORD> <YCOORD>438832</YCOORD> <PC3CODE>312</PC3CODE> <PC2CODE>31</PC2CODE> <PC1CODE>3</PC1CODE> <PROVC>28</PROVC> <PROVC_NM>Zuid-Holland</PROVC_NM> <GEMCODE>0606</GEMCODE> <GEMNR>606</GEMNR> <GEMNAAM>Schiedam</GEMNAAM> <WOONPLAATS>SCHIEDAM</WOONPLAATS> <HUISHOUDEN>151</HUISHOUDEN> <NETNUMMER>010</NETNUMMER> </pc4p_feature> </pc4p_layer> </msGMLOutput> This is the corresponding flamingo config: <?xml version="1.0" encoding="UTF-8"?> <FLAMINGO xmlns:fmc="fmc" lang="en" tooltipdelay="500" > <YGUIDE id="my" y="50%"/> <XGUIDE id="mx" x="50%"/> <XGUIDE id="x10" x="10"/> <fmc:ToolGroup listento="map1" left="x10" top="10"> <fmc:ToolPan left="30" clickdelay="0" pandelay="0"/> <fmc:ToolZoomin left="60" zoomdelay="0" clickdelay="0"/> <fmc:ToolZoomout left="90" zoomdelay="0" clickdelay="0"/> <fmc:ToolIdentify left="120"/> </fmc:ToolGroup> <!-- identify window --> <fmc:Window left="90" top="10" width="200" height="350" visible="false" skin="g" canclose="true" canresize="true" showresizebutton="true" defocusalpha="70"> <string id="title" en="Informatie:"/> <fmc:Identifyresults width="100%" height="100%" listento="map1"> <!-- progress gebeuren, bij mij (engels) zie je nu lekker niks --> <string id="startidentify" en="" nl="Info wordt opgehaald"/> <string id="identify" en="" nl="[progress]%"/> <string id="finishidentify" en="" nl="Informatie"/> <!--<string id="startidentify" en="Loading" nl="Info wordt opgehaald"/> <string id="identify" en="[progress]%" nl="[progress]%"/> <string id="finishidentify" en="Information" nl="Informatie"/>--> </fmc:Identifyresults> </fmc:Window> <fmc:MonitorLayer id="monitor" left="150" top="15" listento="map1"/> <!-- <fmc:Debugger listento="map1" left="50%" top="0" height="50%" right="right" /> <fmc:Debugger listento="pc4" left="50%" top="50%" height="50%" right="right" /> --> <fmc:Map id="map1" left="0" top="0" bottom="bottom" right="75%" visible="true" extent="-15000,300000, 300000, 620000" fullextent="-15000,300000, 300000, 620000"> <fmc:LayerIdentifyIcon id="identifyicon" /> <fmc:LayerGrid id="grid" gridwidth="10" gridheight="10"/> <!--<fmc:LayerOGWMS id="pc4" visible="true" url="http://localhost/cgi-bin/mapserv.exe?map=test.map" service="WMS" version="1.1.1" srs="EPSG:28992" query_layers="" layers="pc4"/>--> <fmc:LayerOGWMS id="pc4" visible="true" url="http://localhost/cgi-bin/mapserv.exe?map=test.map" service="WMS" version="1.1.1" srs="EPSG:28992" query_layers="pc4p" layers="pc4,pc4p"/> <fmc:LayerOGWMS id="ref" visible="true" url="http://localhost/cgi-bin/mapserv.exe?map=ontrackreferentie.map" service="WMS" version="1.1.1" srs="EPSG:28992" query_layers="" layers="top25,top50,top250v,nlbasis,plaatsen"/> </fmc:Map> </FLAMINGO> Hope this is helpfull ;-) Richard Duivenvoorde Milo van der Linden wrote: > Hello Bart, > > I think that is what I already did. Instead of feature_info_mime_type, I > got wms_feature_mime_type; can that be a typo? > I added feature_info_mime_type to the web section to test, but there is > no effect, still no featureinfo. I am also posting on the flamingo-mc > forum to see if they got some suggestions. > > In the Map section I got: > > ---- snippet ---- > WEB > IMAGEPATH 'E:/maptemp/' > IMAGEURL '/ms_tmp/' > HEADER "./templates/query_header.html" > FOOTER "./templates/query_footer.html" > > METADATA > "wms_title" "Bouwfonds - Digitale kaart" > "wms_onlineresource" > "http://www.xx.xx/cgi-bin/mapserv.exe?map=E:\\mapconfig\\bouwfonds.map" > "wms_srs" "EPSG:4326 EPSG:28992" > "ows_schemas_location" "http://schemas.opengis.net" > "wms_feature_mime_type" "application/vnd.ogc.gml" > END > END > > And for my Layer: > > ---- snippet ---- > LAYER > NAME 'percelen' > TYPE POLYGON > DUMP TRUE > TEMPLATE 'ttt' > DATA '.\mapdata\rga\percelen_laag_poly_merged.shp' > METADATA > "wms_title" "percelen" > "wms_srs" "EPSG:28992" > "gml_featureid" "id" > "gml_include_items" "all" > END > STATUS ON > TRANSPARENCY 100 > PROJECTION > "init=epsg:28992" > END > CLASS > NAME 'percelen' > STYLE > SYMBOL 0 > SIZE 6 > OUTLINECOLOR 180 208 208 > #COLOR 180 208 208 > END > END > END > > > Bart van den Eijnden schreef: >> Milo, >> >> the WMS client determines the info_format. I assume QGIS is asking for >> MIME or text/plain. >> >> You need to add the following METADATA to your layers: >> >> OWS_INCLUDE_ITEMS "all" >> >> Maybe even GML_INCLUDE_ITEMS "all" I am not sure. Give it a try. >> >> If Flamingo wants GML, it will request with >> info_format=application/vnd.ogc.gml. If it doesn't you can probably >> set the default/MIME format of Mapserver to this (METADATA at the WEB >> level called feature_info_mime_type). >> >> Template can remain empty, I always TEMPLATE blank.html where >> blank.html does not even exist on the filesystem. >> >> Best regards, >> Bart >> >> On Jan 30, 2008 5:48 PM, Milo van der Linden <mlinden at zeelandnet.nl >> <mailto:mlinden at zeelandnet.nl>> wrote: >> >> Hello list, >> >> I have been spending 4 hours looking around the mapserver website and >> various other resources but no luck. >> >> As a Mapserver WMS client I am using flamingo-mc. flamingo-mc is >> able to >> perform a getFeatureInfo and requires gml as response. >> >> For now I have some sort of response because with qGIS I get: >> WMS identify result for 225, 337 >> >> --------------- >> >> GetFeatureInfo results: >> >> Layer 'percelen' >> >> Feature 507: >> >> >> But it is clearly no gml and I haven't set the fields from the >> table to >> be returned. >> >> So: >> >> - What do I have to put in my (currently empty) TEMPLATE file? >> - Can I enter all the GML that I need to return in my TEMPLATE and >> does >> anyone have a sample for this? >> >> - How can I make sure that the information returned is in the gml >> mime-type? >> >> >> Any help would be appreciated! >> >> Kind regards, >> >> Milo van der Linden >> >> > From David.Fawcett at STATE.MN.US Thu Jan 31 11:54:02 2008 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 31 Jan 2008 13:54:02 -0600 Subject: MapServer 5.0 demo problem In-Reply-To: A<47A21F1A.7000109@jax.org> Message-ID: <THU.31.JAN.2008.135402.0600.DAVID.FAWCETTSTATE.MN.US> Jill, It looks like you need to modify your map file. You need to change the value for imagepath to reflect the path to your mapserver temp directory. The value should likely be "C:\ms4w\tmp\ms_tmp" or "C:\ms4w\tmp". David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jill Recla Sent: Thursday, January 31, 2008 1:19 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer 5.0 demo problem Hi everyone, I decided to uninstall everything I had and start from scratch. I installed MS4W with MapServer 5.0 and am now trying to get the 5.x demo to work. MapServer and all of the other MS4W components are working properly, and the initial index.html page loads. When I try to initialize the webpage, however, I get this error: msSaveImageGD(): Unable to access file. Unable to open file /usr/local/www/docs_maps/tmp/ITASCA12018069395076.png for writing I have changed my index.html file to look like this: <!-- EDIT THE FORM ACTION --> <form name="demo" method="GET" action="/cgi-bin/mapserv.exe" onSubmit="configure()"> <input type="hidden" name="layer" value="lakespy2"> <input type="hidden" name="layer" value="dlgstln2"> <input type="hidden" name="zoomsize" value=2> <input type="hidden" name="map_web" value=""> <!-- EDIT THESE HIDDEN VARIABLES --> <input type="hidden" name="map" value="C:/ms4w/Apache/htdocs/workshop-5.0/itasca.map"> <input type="hidden" name="program" value="/cgi-bin/mapserv.exe"> <input type="hidden" name="root" value="C:/ms4w/Apache/htdocs/workshop-5.0/"> Does anyone know how to fix this?? There must be something simple I'm not changing, but I can't figure out what it is..... Thanks, Jill -- ***************************************************** *****Jill M. Recla****UMaine Functional Genomics***** ***jill.recla at jax.org*****************906-282-8033*** ***************************************************** From Michael.Smith at MAINE.GOV Thu Jan 31 12:25:52 2008 From: Michael.Smith at MAINE.GOV (Smith, Michael) Date: Thu, 31 Jan 2008 15:25:52 -0500 Subject: active directory authentication in MS4W Message-ID: <THU.31.JAN.2008.152552.0500.MICHAEL.SMITHMAINE.GOV> I hope this isn't a dumb question, but I need to authenticate users to an MS4W application from Active Directory. I.e. limit access to the application to a certain AD group. I see several examples on the 'net but they inevitably deal with getting Apache on UNIX/Linux to authenticate via Kerberos. I'm running Apache on Windows, is there some simple thing I'm missing? Any advice? *********** Michael Smith Maine Office of GIS -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080131/9948cee2/attachment.htm> From pramsey at REFRACTIONS.NET Thu Jan 31 12:46:21 2008 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 31 Jan 2008 12:46:21 -0800 Subject: active directory authentication in MS4W In-Reply-To: <55D23C89537E434282BC1331F5A94D0F062054@SOM-TEAQASMAIL6.som.w2k.state.me.us> Message-ID: <THU.31.JAN.2008.124621.0800.PRAMSEYREFRACTIONS.NET> It's not really a Mapserver problem, it's an Apache problem ... I doubt there's a simple thing you're missing, although the simplest possible thing could be to serve your mapserv.exe application out of IIS instead of Apache. It is just a CGI program, after all. Swim with the current, rather than against it. P. http://thomas-howard.com/Reference/Articles/Apache+AD/ http://support.microsoft.com/kb/555092 On 31-Jan-08, at 12:25 PM, Smith, Michael wrote: > I hope this isn't a dumb question, but I need to authenticate users > to an MS4W application from Active Directory. I.e. limit access to > the application to a certain AD group. > > I see several examples on the 'net but they inevitably deal with > getting Apache on UNIX/Linux to authenticate via Kerberos. I'm > running Apache on Windows, is there some simple thing I'm missing? > > Any advice? > > *********** > Michael Smith > Maine Office of GIS > > From Tim.Nolte at IPCSWIRELESSINC.COM Thu Jan 31 12:58:32 2008 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Thu, 31 Jan 2008 15:58:32 -0500 Subject: MapServer, MapScript, WFS Message-ID: <THU.31.JAN.2008.155832.0500.TIM.NOLTEIPCSWIRELESSINC.COM> I've been struggling trough trying to get a WFS service setup. I have a working MapServer. I've setup a pretty basic mapfile. Most of the interaction works, however once I select a feature to load it just sort of hangs and then eventually dies. My goal is to be able to serve up points from our Oracle Spatial database to the MapInfo Professional client. Can anyone give me any pointers. I'm using PHP MapScript to do some wrapping. sites.map: MAP NAME "iPCS Wireless MapServer" EXTENT -104.29 29.71 -71.55 52.63 UNITS DD FONTSET "../etc/fonts/fonts.txt" IMAGECOLOR 255 255 255 SYMBOLSET "../etc/symbols.sym" CONFIG PROJ_LIB "/usr/local/share/proj" SHAPEPATH "../data" SIZE 768 576 #1000 700 #1200 800 #600 400 STATUS ON # ================================================== # Web Interface Definition # ================================================== WEB METADATA "wfs_title" "iPCS Wireless MapServer - Cell Sites" "wfs_abstract" "iPCS cell sites as currently set in EON" "wfs_onlineresource" "http://mapserver.ilpcs.com/cgi-bin/mapserv?map=/export/home/www/ipcs/ma p/sites.map&SERVICE=WFS&VERSION=1.0.0" "wfs_srs" "EPSG:4269 EPSG:42304 EPSG:42101 EPSG:4326" "ows_schemas_location" "http://ogc.dmsolutions.ca" END IMAGEPATH "/export/home/www/ipcs/mapserver/.cache/ms_tmp/" IMAGEURL "/ms_tmp/" END # ================================================== # Projection Definition # ================================================== PROJECTION "init=epsg:4269" END # ================================================== # Layer: iPCS Cell Sites # ================================================== LAYER GROUP "Cell Sites" NAME InAcquisition TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "username/password at SID" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id = 2) USING SRID 8307" LABELITEM "bts_nbr" METADATA "wfs_title" "In Acquisition" "wfs_featureid" "bts_nbr" "wfs_include_items" "all" "gml_featureid" "bts_nbr" "gml_include_items" "all" END DUMP TRUE PROJECTION "init=epsg:42304" END CLASS NAME "In Acquisition" STYLE SYMBOL "circle" COLOR 0 0 0 OUTLINECOLOR 255 255 255 SIZE 12 END LABEL TYPE TRUETYPE FONT "sans" SIZE 7 POSITION CR OFFSET 0 2 ANGLE AUTO BUFFER 3 MINDISTANCE 30 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 3 3 BACKGROUNDSHADOWSIZE 1 -1 END END END LAYER GROUP "Cell Sites" NAME InConstruction TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "username/password at SID" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id = 3) USING SRID 8307" LABELITEM "bts_nbr" METADATA "wfs_title" "In Construction" "wfs_featureid" "bts_nbr" "wfs_include_items" "all" "gml_featureid" "bts_nbr" "gml_include_items" "all" END DUMP TRUE PROJECTION "init=epsg:42304" END CLASS NAME "In Construction" STYLE SYMBOL "circle" COLOR 30 0 255 OUTLINECOLOR 255 255 255 SIZE 12 END LABEL TYPE TRUETYPE FONT "sans" SIZE 7 POSITION CR OFFSET 0 2 ANGLE AUTO BUFFER 3 MINDISTANCE 30 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 3 3 BACKGROUNDSHADOWSIZE 1 -1 END END END LAYER GROUP "Cell Sites" NAME OnAir TYPE POINT STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "username/password at SID" PROCESSING "CLOSE_CONNECTION=DEFER" DATA "geom FROM (SELECT st.bts_nbr, sgt.geom FROM site_tab st, site_geom_tab sgt WHERE st.site_id = sgt.site_id AND st.site_status_id IN (4,7)) USING SRID 8307" LABELITEM "bts_nbr" METADATA "wfs_title" "On-Air" "wfs_featureid" "bts_nbr" "wfs_include_items" "all" "gml_featureid" "bts_nbr" "gml_include_items" "all" END DUMP TRUE PROJECTION "init=epsg:42304" END CLASS NAME "On-Air" STYLE SYMBOL "circle" COLOR 22 129 17 OUTLINECOLOR 255 255 255 SIZE 12 END LABEL TYPE TRUETYPE FONT "sans" SIZE 7 POSITION CR OFFSET 0 2 ANGLE AUTO BUFFER 3 MINDISTANCE 30 MINFEATURESIZE 10 COLOR 0 0 0 OUTLINECOLOR 245 245 231 SHADOWSIZE 3 3 BACKGROUNDSHADOWSIZE 1 -1 END END END END # Map File wfs.php: <?php /* Desc: WFS Service Author: Timothy J Nolte - tnolte at ilpcs.com Change Log: */ ini_set('display_errors','Off'); /*$request = ms_newowsrequestobj(); $request->loadparams();*/ $request = ms_newOwsRequestObj(); foreach ($_GET as $k=>$v) { $request->setParameter($k, $v); } /* example on how to modify the parameters */ $request->setParameter("SERVICE","WFS"); $request->setParameter("VERSION","1.0.0"); ms_ioinstallstdouttobuffer(); $oMap = ms_newMapObj("../map/sites.map"); $oMap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); $buffer = ms_iogetstdoutbufferstring(); header('Content-Type: text/xml'); echo $buffer; ms_ioresethandlers(); ?> ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From mlinden at ZEELANDNET.NL Thu Jan 31 13:33:56 2008 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 31 Jan 2008 22:33:56 +0100 Subject: WMS GetFeatureInfo In-Reply-To: <47A2267A.6070408@duif.net> Message-ID: <THU.31.JAN.2008.223356.0100.MLINDENZEELANDNET.NL> Hi Richard! (Nice to see you active here too ;-)) Yes! I did it! I appreciate the effort you and Bart put in helping me, I didn't succeed at first, but you kept me triggered! I have added the missing metadata you provided to my LAYER in the mapfile. I have no template file, instead I just state TEMPLATE 'ttt' as Bart said, this works. I think it mainly had to do with the call to mapserver getting doubled by what I did and what flamingo adds itself. I added query_layers="percelen" to the flamingo fmc:OGWMSLayer clause. After that I stripped the default parameters that I attached to the URL (I had these already in my URL call: ....&VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&TRANSPARENT=TRUE&BGCOLOR=0xF0F0F0&") and then it worked! Richard Duivenvoorde schreef: > Hi Milo, > did you succeed? > > I've mapserver running here with a flamingo client example. > All configs below, hope this is helpfull: > > > This is de layer def from the mapfile: > > LAYER > NAME pc4p > DEBUG ON > TRANSPARENCY ALPHA > TOLERANCE 15 > DUMP TRUE > METADATA > "wms_title" "PC4CODE" > "wms_feature_info_mime_type" "text/html" > "gml_featureid" "oid" ## REQUIRED > "ows_feature_info_mime_type" "text/html" > "ows_include_items" "all" > #"gml_include_items" "PC4NAAM" > "gml_include_items" "all" > "wms_include_items" "all" > END # METADATA > # query templates for queries > # MUST BE AVAILABLE FOR GETFEATUREINFO REQUESTS > # responds to OGC:WMS > request=GetFeatureInfo......&info_format=text/html > HEADER "C:\ms4w\Apache\htdocs\ol\pc_header.html" > TEMPLATE "C:\ms4w\Apache\htdocs\ol\pc.html" > FOOTER "C:\ms4w\Apache\htdocs\ol\pc_footer.html" > TYPE POINT > STATUS ON > CLASSITEM 'HUISHOUDEN' > DATA pc4 > PROJECTION > "init=epsg:28992" > END > CLASS > EXPRESSION ([HUISHOUDEN] > 10000) > STYLE > SYMBOL 'punt' > SIZE 60 > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > END > CLASS > EXPRESSION ([HUISHOUDEN] > 2000) > STYLE > ANTIALIAS TRUE > SYMBOL 'punt' > SIZE 15 > COLOR 255 0 0 > OUTLINECOLOR 255 0 0 > END > END > > This is the kind of url's flamingo is firing: > http://localhost/cgi-bin/mapserv.exe?map=test.map&REQUEST=GetFeatureInfo&SERVICE=WMS&FEATURE_COUNT=10&Y=177&X=407&SRS=EPSG:28992&VERSION=1.1.1&EXCEPTIONS=application/vnd.ogc.se_xml&INFO_FORMAT=application/vnd.ogc.gml&QUERY_LAYERS=pc4p&LAYERS=pc4p&HEIGHT=333&WIDTH=916&BBOX=-297620.12012012,300000,582620.12012012,620000 > > > This is the gml output of mapserver which is nicely shown in flamingo: > > <?xml version="1.0" encoding="ISO-8859-1"?> > > <msGMLOutput > xmlns:gml="http://www.opengis.net/gml" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > <pc4p_layer> > <pc4p_feature> > <gml:boundedBy> > <gml:Box srsName="EPSG:28992"> > <gml:coordinates>88589.000000,463018.000000 > 88589.000000,463018.000000</gml:coordinates> > </gml:Box> > </gml:boundedBy> > <PC4CODE>2241</PC4CODE> > <PC4NR>2241</PC4NR> > <PC4NAAM>ZIJLWATERING EN HAVEN</PC4NAAM> > <XCOORD>88589</XCOORD> > <YCOORD>463018</YCOORD> > <PC3CODE>224</PC3CODE> > <PC2CODE>22</PC2CODE> > <PC1CODE>2</PC1CODE> > <PROVC>28</PROVC> > <PROVC_NM>Zuid-Holland</PROVC_NM> > <GEMCODE>0629</GEMCODE> > <GEMNR>629</GEMNR> > <GEMNAAM>Wassenaar</GEMNAAM> > <WOONPLAATS>WASSENAAR</WOONPLAATS> > <HUISHOUDEN>4557</HUISHOUDEN> > <NETNUMMER>070</NETNUMMER> > </pc4p_feature> > <pc4p_feature> > <gml:boundedBy> > <gml:Box srsName="EPSG:28992"> > <gml:coordinates>87278.000000,438832.000000 > 87278.000000,438832.000000</gml:coordinates> > </gml:Box> > </gml:boundedBy> > <PC4CODE>3125</PC4CODE> > <PC4NR>3125</PC4NR> > <PC4NAAM>INDUSTRIEGEBIED T.N.V. RIJKSWEG2</PC4NAAM> > <XCOORD>87278</XCOORD> > <YCOORD>438832</YCOORD> > <PC3CODE>312</PC3CODE> > <PC2CODE>31</PC2CODE> > <PC1CODE>3</PC1CODE> > <PROVC>28</PROVC> > <PROVC_NM>Zuid-Holland</PROVC_NM> > <GEMCODE>0606</GEMCODE> > <GEMNR>606</GEMNR> > <GEMNAAM>Schiedam</GEMNAAM> > <WOONPLAATS>SCHIEDAM</WOONPLAATS> > <HUISHOUDEN>151</HUISHOUDEN> > <NETNUMMER>010</NETNUMMER> > </pc4p_feature> > </pc4p_layer> > </msGMLOutput> > > This is the corresponding flamingo config: > <?xml version="1.0" encoding="UTF-8"?> > <FLAMINGO xmlns:fmc="fmc" lang="en" tooltipdelay="500" > > <YGUIDE id="my" y="50%"/> > <XGUIDE id="mx" x="50%"/> > <XGUIDE id="x10" x="10"/> > <fmc:ToolGroup listento="map1" left="x10" top="10"> > <fmc:ToolPan left="30" clickdelay="0" pandelay="0"/> > <fmc:ToolZoomin left="60" zoomdelay="0" clickdelay="0"/> > <fmc:ToolZoomout left="90" zoomdelay="0" clickdelay="0"/> > <fmc:ToolIdentify left="120"/> > </fmc:ToolGroup> > <!-- identify window --> > <fmc:Window left="90" top="10" width="200" height="350" > visible="false" skin="g" canclose="true" canresize="true" > showresizebutton="true" defocusalpha="70"> > <string id="title" en="Informatie:"/> > <fmc:Identifyresults width="100%" height="100%" listento="map1"> > <!-- progress gebeuren, bij mij (engels) zie je nu lekker niks > --> > <string id="startidentify" en="" nl="Info wordt opgehaald"/> > <string id="identify" en="" nl="[progress]%"/> > <string id="finishidentify" en="" nl="Informatie"/> > <!--<string id="startidentify" en="Loading" nl="Info wordt > opgehaald"/> > <string id="identify" en="[progress]%" nl="[progress]%"/> > <string id="finishidentify" en="Information" > nl="Informatie"/>--> > </fmc:Identifyresults> > </fmc:Window> > > <fmc:MonitorLayer id="monitor" left="150" top="15" listento="map1"/> > <!-- > <fmc:Debugger listento="map1" left="50%" top="0" height="50%" > right="right" /> > <fmc:Debugger listento="pc4" left="50%" top="50%" height="50%" > right="right" /> > --> > <fmc:Map id="map1" left="0" top="0" bottom="bottom" right="75%" > visible="true" extent="-15000,300000, 300000, 620000" > fullextent="-15000,300000, 300000, 620000"> > <fmc:LayerIdentifyIcon id="identifyicon" /> > <fmc:LayerGrid id="grid" gridwidth="10" gridheight="10"/> > <!--<fmc:LayerOGWMS id="pc4" visible="true" > url="http://localhost/cgi-bin/mapserv.exe?map=test.map" service="WMS" > version="1.1.1" srs="EPSG:28992" query_layers="" layers="pc4"/>--> > <fmc:LayerOGWMS id="pc4" visible="true" > url="http://localhost/cgi-bin/mapserv.exe?map=test.map" service="WMS" > version="1.1.1" srs="EPSG:28992" query_layers="pc4p" layers="pc4,pc4p"/> > <fmc:LayerOGWMS id="ref" visible="true" > url="http://localhost/cgi-bin/mapserv.exe?map=ontrackreferentie.map" > service="WMS" version="1.1.1" srs="EPSG:28992" query_layers="" > layers="top25,top50,top250v,nlbasis,plaatsen"/> > > </fmc:Map> > </FLAMINGO> > > Hope this is helpfull ;-) > > Richard Duivenvoorde > > Milo van der Linden wrote: >> Hello Bart, >> >> I think that is what I already did. Instead of >> feature_info_mime_type, I got wms_feature_mime_type; can that be a typo? >> I added feature_info_mime_type to the web section to test, but there >> is no effect, still no featureinfo. I am also posting on the >> flamingo-mc forum to see if they got some suggestions. >> >> In the Map section I got: >> >> ---- snippet ---- >> WEB >> IMAGEPATH 'E:/maptemp/' >> IMAGEURL '/ms_tmp/' >> HEADER "./templates/query_header.html" >> FOOTER "./templates/query_footer.html" >> >> METADATA >> "wms_title" "Bouwfonds - Digitale kaart" >> "wms_onlineresource" >> "http://www.xx.xx/cgi-bin/mapserv.exe?map=E:\\mapconfig\\bouwfonds.map" >> "wms_srs" "EPSG:4326 EPSG:28992" >> "ows_schemas_location" "http://schemas.opengis.net" >> "wms_feature_mime_type" "application/vnd.ogc.gml" >> END >> END >> >> And for my Layer: >> >> ---- snippet ---- >> LAYER >> NAME 'percelen' >> TYPE POLYGON >> DUMP TRUE >> TEMPLATE 'ttt' >> DATA '.\mapdata\rga\percelen_laag_poly_merged.shp' >> METADATA >> "wms_title" "percelen" >> "wms_srs" "EPSG:28992" >> "gml_featureid" "id" >> "gml_include_items" "all" >> END >> STATUS ON >> TRANSPARENCY 100 >> PROJECTION >> "init=epsg:28992" >> END >> CLASS >> NAME 'percelen' >> STYLE >> SYMBOL 0 >> SIZE 6 >> OUTLINECOLOR 180 208 208 >> #COLOR 180 208 208 >> END >> END >> END >> >> >> Bart van den Eijnden schreef: >>> Milo, >>> >>> the WMS client determines the info_format. I assume QGIS is asking >>> for MIME or text/plain. >>> >>> You need to add the following METADATA to your layers: >>> >>> OWS_INCLUDE_ITEMS "all" >>> >>> Maybe even GML_INCLUDE_ITEMS "all" I am not sure. Give it a try. >>> >>> If Flamingo wants GML, it will request with >>> info_format=application/vnd.ogc.gml. If it doesn't you can probably >>> set the default/MIME format of Mapserver to this (METADATA at the >>> WEB level called feature_info_mime_type). >>> >>> Template can remain empty, I always TEMPLATE blank.html where >>> blank.html does not even exist on the filesystem. >>> >>> Best regards, >>> Bart >>> >>> On Jan 30, 2008 5:48 PM, Milo van der Linden <mlinden at zeelandnet.nl >>> <mailto:mlinden at zeelandnet.nl>> wrote: >>> >>> Hello list, >>> >>> I have been spending 4 hours looking around the mapserver >>> website and >>> various other resources but no luck. >>> >>> As a Mapserver WMS client I am using flamingo-mc. flamingo-mc is >>> able to >>> perform a getFeatureInfo and requires gml as response. >>> >>> For now I have some sort of response because with qGIS I get: >>> WMS identify result for 225, 337 >>> >>> --------------- >>> >>> GetFeatureInfo results: >>> >>> Layer 'percelen' >>> >>> Feature 507: >>> >>> >>> But it is clearly no gml and I haven't set the fields from the >>> table to >>> be returned. >>> >>> So: >>> >>> - What do I have to put in my (currently empty) TEMPLATE file? >>> - Can I enter all the GML that I need to return in my TEMPLATE and >>> does >>> anyone have a sample for this? >>> >>> - How can I make sure that the information returned is in the gml >>> mime-type? >>> >>> >>> Any help would be appreciated! >>> >>> Kind regards, >>> >>> Milo van der Linden >>> >>> >> > From naci0002 at UMN.EDU Thu Jan 31 14:03:01 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 31 Jan 2008 16:03:01 -0600 Subject: Mapserver 5.0.0 installation fails at GEOS In-Reply-To: <LISTSERV%200801311257045922.0A0D@LISTS.UMN.EDU> Message-ID: <THU.31.JAN.2008.160301.0600.NACI0002UMN.EDU> Good to hear you got it compiled. Is the mapserv CGI program working or do you get the same error messages as the PHP/Mapscript? If so, the library (libgeos.so.2) you're linking to isn't in your system paths. If you want you can just symlink to the newer libgeos in /usr/lib (or /usr/local/lib), ex: ln -s /usr/lib/libgeos.so.3.0.0 /usr/lib/libgeos.so.2. I have a feeling that another library is linked to the old libgeos.so.2 (gdal or postgis, perhaps) so you might want to recompile those with the new GEOS. Good luck! -Perry William Hudspeth wrote: > Perry, > > OK, so far so good. Your suggestion fixed the build problem, and it appears > to be installed. I got rid of all older packages of GEOS, including in > /usr/lib, and took care of the ld.so.conf issues. I am now trying to get PHP > mapscript up and running, but am having a problem. > > I had to create an "extension" directory where I built PHP > > /usr/local/php5/lib/php/extension > > I copied the php_mapscript.so file to this location, added the directory > path to "extension_dir" in php.ini, and restarted apache. > > When I include the following in a *.php file > > dl('php_mapscript.so'); > > I get these errors: > > Warning: dl() [function.dl]: Unable to load dynamic library > '/usr/local/php5/lib/php/extension/php_mapscript.so' - libgeos.so.2: cannot > open shared object file: No such file or directory in > /usr/local/apache2/htdocs/hello.php on line 3 > > Obviously something to do with shared objects, and am guessing it had > something to do with a configuration option in either PHP or Mapserver???? > > Thanks a million, Bill > From naci0002 at UMN.EDU Thu Jan 31 14:07:21 2008 From: naci0002 at UMN.EDU (Pericles S. Nacionales) Date: Thu, 31 Jan 2008 16:07:21 -0600 Subject: MapServer 5.0 demo problem In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FBA57@s-sp22.pca.state.mn.us> Message-ID: <THU.31.JAN.2008.160721.0600.NACI0002UMN.EDU> Jill, The IMAGEPATH and IMAGEURL variables are defined in the Javascript code near the top of index.html. Change the paths there and you should be set. -Perry Fawcett, David wrote: > Jill, > > It looks like you need to modify your map file. You need to change the > value for imagepath to reflect the path to your mapserver temp > directory. The value should likely be "C:\ms4w\tmp\ms_tmp" or > "C:\ms4w\tmp". > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jill Recla > Sent: Thursday, January 31, 2008 1:19 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MapServer 5.0 demo problem > > > Hi everyone, > > I decided to uninstall everything I had and start from scratch. I > installed MS4W with MapServer 5.0 and am now trying to get the 5.x demo > to work. MapServer and all of the other MS4W components are working > properly, and the initial index.html page loads. When I try to > initialize the webpage, however, I get this error: > > msSaveImageGD(): Unable to access file. Unable to open file > /usr/local/www/docs_maps/tmp/ITASCA12018069395076.png for writing > > I have changed my index.html file to look like this: > > <!-- EDIT THE FORM ACTION --> > <form name="demo" method="GET" action="/cgi-bin/mapserv.exe" > onSubmit="configure()"> > > <input type="hidden" name="layer" value="lakespy2"> > <input type="hidden" name="layer" value="dlgstln2"> > <input type="hidden" name="zoomsize" value=2> > <input type="hidden" name="map_web" value=""> > > <!-- EDIT THESE HIDDEN VARIABLES --> > <input type="hidden" name="map" > value="C:/ms4w/Apache/htdocs/workshop-5.0/itasca.map"> > <input type="hidden" name="program" value="/cgi-bin/mapserv.exe"> > <input type="hidden" name="root" > value="C:/ms4w/Apache/htdocs/workshop-5.0/"> > > Does anyone know how to fix this?? There must be something simple I'm > not changing, but I can't figure out what it is..... > > Thanks, > Jill > > From vishu_73ns at YAHOO.COM Thu Jan 31 20:07:32 2008 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Thu, 31 Jan 2008 22:07:32 -0600 Subject: my own program Message-ID: <THU.31.JAN.2008.220732.0600.VISHU_73NSYAHOO.COM> I have a mapserver installation running using openlayers library. I wish to add my own functionality to it at the server end. Using the information of the height layer. (feature info). How do i pass this info from mapserver to my program and how should i display the output. I saw an example of Mapserver where it calculated the shortest path between two places. I wish to do something similar where do I add my algorithm and calculations. Regards, Vishal From gregor at HOSTGIS.COM Thu Jan 31 22:32:54 2008 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 31 Jan 2008 23:32:54 -0700 Subject: BSB/PAK files Message-ID: <THU.31.JAN.2008.233254.0700.GREGORHOSTGIS.COM> Hi, all. I have a set of nautical maps in BSB format (.PAK files). I am very familiar with doing tileindexes and the like on TIFFs, but when I try to use these PAKs, I get nothing but white space. I've double-checked that the coordinates and SRS are correct... Are there any caveats to using BSB/PAKs? I can't find anything on Google about folks using them in Mapserver, only mention that GDAL supports them. -- Gregor Mosheh / Greg Allensworth, BS, A+ System Administrator HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From warmerdam at POBOX.COM Thu Jan 31 22:41:48 2008 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 1 Feb 2008 01:41:48 -0500 Subject: BSB/PAK files In-Reply-To: <47A2BD16.8010809@hostgis.com> Message-ID: <FRI.1.FEB.2008.014148.0500.WARMERDAMPOBOX.COM> Gregor Mosheh wrote: > Hi, all. > I have a set of nautical maps in BSB format (.PAK files). I am very > familiar with doing tileindexes and the like on TIFFs, but when I try to > use these PAKs, I get nothing but white space. I've double-checked that > the coordinates and SRS are correct... > > Are there any caveats to using BSB/PAKs? I can't find anything on Google > about folks using them in Mapserver, only mention that GDAL supports them. Gregor, Could you perhaps provide the gdalinfo report on one of the files? The main problem with using BSB files in MapServer is that GDAL treats them as lat/long with a set of four (or so) ground control points. This georeferencing model is not supported by MapServer. One option is to gdalwarp them into more normal "origin and pixel size" form. Another approach would be to improve the driver to actually understand the underlying projection (Mercator most of the time I think) and represent the files georeferencing properly in that coordinate system. Also, be warned that many modern BSB files are not supported by GDAL as some of the data vendors have added new encryption schemes to prevent data purchasers from having meaningful access to their data. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From gregor at HOSTGIS.COM Thu Jan 31 22:52:32 2008 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 31 Jan 2008 23:52:32 -0700 Subject: BSB/PAK files In-Reply-To: <47A2BF2C.20206@pobox.com> Message-ID: <THU.31.JAN.2008.235232.0700.GREGORHOSTGIS.COM> Frank Warmerdam wrote: > Could you perhaps provide the gdalinfo report on one of the files? Sure; see below. > The main problem with using BSB files in MapServer is that GDAL treats > them as lat/long with a set of four (or so) ground control points. > This georeferencing model is not supported by MapServer. Ah, so GDAL supports them but Mapserver does not? Fair enough. I did try gdal_translate to make TIFFs, but it wasn't writing georeferencing info into the header. In fact, the gdalinfo from the TIFFs was identical to that of the PAKs, and gdaltindex wouldn't touch them because they weren't georefed. Driver: BSB/Maptech BSB Nautical Charts Size is 12105, 9247 Coordinate System is `' GCP Projection = GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG",7030]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY["EPSG",6326]],PRIMEM["Greenwich",0,AUTHORITY["EPSG",8901]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG",9108]],AXIS["Lat",NORTH],AXIS["Long",EAST],AUTHORITY["EPSG",4326]] GCP[ 0]: Id=GCP_1, Info= (2415,834) -> (-79,35,0) GCP[ 1]: Id=GCP_2, Info= (11102,8183) -> (-68,27,0) GCP[ 2]: Id=GCP_3, Info= (11103,834) -> (-68,35,0) GCP[ 3]: Id=GCP_4, Info= (2417,8180) -> (-79,27,0) GCP[ 4]: Id=GCP_5, Info= (3208,834) -> (-78,35,0) GCP[ 5]: Id=GCP_6, Info= (3997,832) -> (-77,35,0) GCP[ 6]: Id=GCP_7, Info= (4789,832) -> (-76,35,0) GCP[ 7]: Id=GCP_8, Info= (2415,1786) -> (-79,34,0) GCP[ 8]: Id=GCP_9, Info= (3208,1785) -> (-78,34,0) GCP[ 9]: Id=GCP_10, Info= (4787,1785) -> (-76,34,0) GCP[ 10]: Id=GCP_11, Info= (5577,1784) -> (-75,34,0) GCP[ 11]: Id=GCP_12, Info= (7158,1787) -> (-73,34,0) GCP[ 12]: Id=GCP_13, Info= (7941,1788) -> (-72,34,0) GCP[ 13]: Id=GCP_14, Info= (8733,1787) -> (-71,34,0) GCP[ 14]: Id=GCP_15, Info= (9524,1788) -> (-70,34,0) GCP[ 15]: Id=GCP_16, Info= (10313,1787) -> (-69,34,0) GCP[ 16]: Id=GCP_17, Info= (11105,1787) -> (-68,34,0) GCP[ 17]: Id=GCP_18, Info= (2414,2729) -> (-79,33,0) GCP[ 18]: Id=GCP_19, Info= (3207,2727) -> (-78,33,0) GCP[ 19]: Id=GCP_20, Info= (3997,2727) -> (-77,33,0) GCP[ 20]: Id=GCP_21, Info= (4787,2727) -> (-76,33,0) GCP[ 21]: Id=GCP_22, Info= (6367,2728) -> (-74,33,0) GCP[ 22]: Id=GCP_23, Info= (7159,2731) -> (-73,33,0) GCP[ 23]: Id=GCP_24, Info= (7942,2731) -> (-72,33,0) GCP[ 24]: Id=GCP_25, Info= (8733,2732) -> (-71,33,0) GCP[ 25]: Id=GCP_26, Info= (9524,2732) -> (-70,33,0) GCP[ 26]: Id=GCP_27, Info= (10313,2731) -> (-69,33,0) GCP[ 27]: Id=GCP_28, Info= (11104,2731) -> (-68,33,0) GCP[ 28]: Id=GCP_29, Info= (7944,3664) -> (-72,32,0) GCP[ 29]: Id=GCP_30, Info= (2417,4584) -> (-79,31,0) GCP[ 30]: Id=GCP_31, Info= (3207,4585) -> (-78,31,0) GCP[ 31]: Id=GCP_32, Info= (3997,4584) -> (-77,31,0) GCP[ 32]: Id=GCP_33, Info= (4786,4584) -> (-76,31,0) GCP[ 33]: Id=GCP_34, Info= (5577,4583) -> (-75,31,0) GCP[ 34]: Id=GCP_35, Info= (6366,4582) -> (-74,31,0) GCP[ 35]: Id=GCP_36, Info= (7943,4585) -> (-72,31,0) GCP[ 36]: Id=GCP_37, Info= (8733,4585) -> (-71,31,0) GCP[ 37]: Id=GCP_38, Info= (9524,4586) -> (-70,31,0) GCP[ 38]: Id=GCP_39, Info= (10312,4586) -> (-69,31,0) GCP[ 39]: Id=GCP_40, Info= (11104,4586) -> (-68,31,0) GCP[ 40]: Id=GCP_41, Info= (2416,6404) -> (-79,29,0) GCP[ 41]: Id=GCP_42, Info= (3996,6403) -> (-77,29,0) GCP[ 42]: Id=GCP_43, Info= (4787,6402) -> (-76,29,0) GCP[ 43]: Id=GCP_44, Info= (5577,6402) -> (-75,29,0) GCP[ 44]: Id=GCP_45, Info= (6367,6403) -> (-74,29,0) GCP[ 45]: Id=GCP_46, Info= (7157,6404) -> (-73,29,0) GCP[ 46]: Id=GCP_47, Info= (7942,6405) -> (-72,29,0) GCP[ 47]: Id=GCP_48, Info= (8734,6405) -> (-71,29,0) GCP[ 48]: Id=GCP_49, Info= (9524,6404) -> (-70,29,0) GCP[ 49]: Id=GCP_50, Info= (10312,6405) -> (-69,29,0) GCP[ 50]: Id=GCP_51, Info= (11103,6405) -> (-68,29,0) GCP[ 51]: Id=GCP_52, Info= (2416,7292) -> (-79,28,0) GCP[ 52]: Id=GCP_53, Info= (3207,7293) -> (-78,28,0) GCP[ 53]: Id=GCP_54, Info= (3997,7293) -> (-77,28,0) GCP[ 54]: Id=GCP_55, Info= (4787,7293) -> (-76,28,0) GCP[ 55]: Id=GCP_56, Info= (5577,7293) -> (-75,28,0) GCP[ 56]: Id=GCP_57, Info= (6366,7294) -> (-74,28,0) GCP[ 57]: Id=GCP_58, Info= (7158,7294) -> (-73,28,0) GCP[ 58]: Id=GCP_59, Info= (7943,7294) -> (-72,28,0) GCP[ 59]: Id=GCP_60, Info= (8733,7294) -> (-71,28,0) GCP[ 60]: Id=GCP_61, Info= (9523,7294) -> (-70,28,0) GCP[ 61]: Id=GCP_62, Info= (10313,7296) -> (-69,28,0) GCP[ 62]: Id=GCP_63, Info= (11101,7297) -> (-68,28,0) GCP[ 63]: Id=GCP_64, Info= (3206,8181) -> (-78,27,0) GCP[ 64]: Id=GCP_65, Info= (835,6401) -> (-81,29,0) GCP[ 65]: Id=GCP_66, Info= (836,5496) -> (-81,30,0) GCP[ 66]: Id=GCP_67, Info= (838,4583) -> (-81,31,0) GCP[ 67]: Id=GCP_68, Info= (1628,3664) -> (-80,32,0) GCP[ 68]: Id=GCP_69, Info= (1629,4585) -> (-80,31,0) GCP[ 69]: Id=GCP_70, Info= (1627,5496) -> (-80,30,0) GCP[ 70]: Id=GCP_71, Info= (1628,6402) -> (-80,29,0) GCP[ 71]: Id=GCP_72, Info= (1626,7292) -> (-80,28,0) GCP[ 72]: Id=GCP_73, Info= (308,8734) -> (-81.6666666667,26.3666666667,0) GCP[ 73]: Id=GCP_74, Info= (836,8734) -> (-81,26.3666666667,0) GCP[ 74]: Id=GCP_75, Info= (2416,8734) -> (-79,26.3666666667,0) GCP[ 75]: Id=GCP_76, Info= (3999,8733) -> (-77,26.3666666667,0) GCP[ 76]: Id=GCP_77, Info= (5577,8729) -> (-75,26.3666666667,0) GCP[ 77]: Id=GCP_78, Info= (7154,8732) -> (-73,26.3666666667,0) GCP[ 78]: Id=GCP_79, Info= (8731,8732) -> (-71,26.3666666667,0) GCP[ 79]: Id=GCP_80, Info= (10312,8734) -> (-69,26.3666666667,0) GCP[ 80]: Id=GCP_81, Info= (11760,8734) -> (-67.1666666667,26.3666666667,0) GCP[ 81]: Id=GCP_82, Info= (11762,7298) -> (-67.1666666667,28,0) GCP[ 82]: Id=GCP_83, Info= (11761,5499) -> (-67.1666666667,30,0) GCP[ 83]: Id=GCP_84, Info= (11760,3665) -> (-67.1666666667,32,0) GCP[ 84]: Id=GCP_85, Info= (11760,1787) -> (-67.1666666667,34,0) GCP[ 85]: Id=GCP_86, Info= (11761,512) -> (-67.1666666667,35.3333333333,0) GCP[ 86]: Id=GCP_87, Info= (10312,512) -> (-69,35.3333333333,0) GCP[ 87]: Id=GCP_88, Info= (8734,513) -> (-71,35.3333333333,0) GCP[ 88]: Id=GCP_89, Info= (7156,514) -> (-73,35.3333333333,0) GCP[ 89]: Id=GCP_90, Info= (5579,514) -> (-75,35.3333333333,0) GCP[ 90]: Id=GCP_91, Info= (3997,513) -> (-77,35.3333333333,0) GCP[ 91]: Id=GCP_92, Info= (2414,513) -> (-79,35.3333333333,0) GCP[ 92]: Id=GCP_93, Info= (307,512) -> (-81.6666666667,35.3333333333,0) GCP[ 93]: Id=GCP_94, Info= (311,1785) -> (-81.6666666667,34,0) GCP[ 94]: Id=GCP_95, Info= (312,3662) -> (-81.6666666667,32,0) GCP[ 95]: Id=GCP_96, Info= (309,5496) -> (-81.6666666667,30,0) GCP[ 96]: Id=GCP_97, Info= (307,7291) -> (-81.6666666667,28,0) Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 9247.0) Upper Right (12105.0, 0.0) Lower Right (12105.0, 9247.0) Center ( 6052.5, 4623.5) Band 1 Block=12105x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 11 entries) 0: 0,0,0,255 1: 255,255,255,255 2: 209,221,239,255 3: 244,232,193,255 4: 214,219,201,255 5: 0,178,178,255 6: 114,114,114,255 7: 188,188,188,255 8: 150,175,155,255 9: 94,153,193,255 10: 219,73,150,255