From gpouilly at VALENCIENNES-METROPOLE.FR Fri Oct 1 02:52:51 2004 From: gpouilly at VALENCIENNES-METROPOLE.FR (Guillaume Pouilly) Date: Fri, 1 Oct 2004 11:52:51 +0200 Subject: Mapinfo Message-ID: Hi, I'm a newbye, with mapserver. I have to use mapserver with mapinfo (tab) files. I use OGR, but mapserver always draw an empty map Someone has an idea ? Thanks Here is my mapfile # # Start of map file # # NAME romania_ogr_demo STATUS ON SIZE 500 300 SYMBOLSET /tmp/symbols_mapinfo.sym EXTENT 24.995716 46.984584 26.008563 47.353092 UNITS DD SHAPEPATH "./data/" IMAGECOLOR 255 255 255 #FONTSET etc/fonts.txt # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/gmap.log" TEMPLATE demo.html METADATA "TITLE" "MapServer OGR/TAB Test Demo" END END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 4 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 3 STATUS ON END # # Querymap settings # # Style is one of NORMAL, HILITE, or SELECTED # QUERYMAP STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME Romania TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/var/www/html/itasca/data/606_Parcelles.TAB" # CLASSITEM "Cfactor" # LABELITEM "Code" # LABELMAXSCALE 160000.0 CLASS COLOR 232 232 255 OUTLINECOLOR 32 32 255 END END # Layer END #map Guillaume Pouilly Direction des syst?mes d'information Valenciennes M?tropole 2 Place de l'h?pital g?n?ral 59300 VALENCIENNES T?l :03 27 200 200 Fax :03 27 200 201 www.valenciennes-metropole.fr gpouilly at valenciennes-metropole.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 4764 bytes Desc: image001.jpg URL: From ottacher at MULTIMEDIAPLAN.AT Fri Oct 1 03:44:27 2004 From: ottacher at MULTIMEDIAPLAN.AT (Christiane Ottacher (MULTIMEDIAPLAN.AT)) Date: Fri, 1 Oct 2004 12:44:27 +0200 Subject: displaying of mapfiles Message-ID: Hi, currently I try to install and configure the UMN MapServer. I use the Apache 1.3.31 and the MapServer 4.2 for win32. The web server is running and the MapServer too (when I type: http://localhost/cgi-bin/mapserv? I receive: No query information to decode. QUERY_STRING is set, but empty). After downloading the demo version for the MapServer, I did the relevant changes. When I open the index.html it works, but when I click to the "Basic Application" it doesn't. --> The site can't be displayed. Can anybody help me and tell me what I did wrong or what the problem is? Additionally I habe downloaded and installed the PHP and the PHP Mapscript. Do I really need it to install it seperatly or is it integrated in the version of the MapServer. What changes do I have to make? Thanks, Christiane From jcastil1 at TRAGSA.ES Fri Oct 1 03:46:13 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo) Date: Fri, 1 Oct 2004 05:46:13 -0500 Subject: CGI error while trying to execute masperver from ms42oracle.zip: Message-ID: Hi all; I just unzip the ms42oracle.zip file and I followed the install intriuctions and when I try to execute the exe aplication (mapserver.exe) an error appears... CGI error The sppicipied CGI application misbehaved by not returning a complete set of HTTP headers. Currently I'm working ( and itworks marvelous ) with mapserver 42, IIS aon w2k and if I try to do the same (just execute the .exe) the error is a QUERY_STRING error. I tried usion the parameters neede to genenrate the img but the CGI error persist Thanks Javier From j.l.h.hartmann at UVA.NL Fri Oct 1 04:26:24 2004 From: j.l.h.hartmann at UVA.NL (jan hartmann) Date: Fri, 1 Oct 2004 13:26:24 +0200 Subject: Tiling Large Rasters In-Reply-To: <20040928164038.GA10828@mother> Message-ID: Titus von der Malsburg wrote: > Hi, > > normally I tile raster images with a little script that uses netpbm to > load the data und cut out the tiles. But now I have an image to tile > that is too large to be loaded into memory. > > Actually it should be possible to do the tiling with constant memory > consumption (ammount of memory not depending on the size of the image). > > Is there any software out there that accomplishes this task? > > I looked briefly into the documentation of Grass but couldn't find > anything. > > Thanks, > Titus > Hi Titus, You can gdal_translate to cut out tiles (gdal_translate -projwin x1 y2 x2 y1) and put that in a script looping over the x/y values. AFAIK gdal_translate only reads the current line into memory. Note that in the parameter list upper y precedes lower y Jan From woodbri at SWOODBRIDGE.COM Fri Oct 1 05:20:37 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 1 Oct 2004 08:20:37 -0400 Subject: Shapefile questions In-Reply-To: Message-ID: Sandeep Bashyal wrote: > Hello, > > I have the following questions about shapefiles and mapserver: > > 1. Does Mapserver support "merged" polygons in shapefiles? E.g. arcview > allows you to merge two or more NON-ADJACENT polygons, such that they are > treated as a single shape and point to the same rows in the attribute > table. I was wondering if mapserver supports such shapefiles with merged > non-adjacent polygons. Yes, this should not be a problem. > 2. Is there a way to assign shapeindex for shapes in a layer from one of > the fields in the attribute table (like in the mapfile or by dnamically > adding a layer with phpmapscript)? I have a layer with over 4000 polygons > whose attribute ID's do not correspond to the shapeindex returned from > query results. I need the attribute ID's to link to a external database > and display results. You can access and attribute in a query and in fact I think you can do a join of any attribute in a query result with and external database. Read up on JOIN in the mapfile reference. > Any advice on an easy way to write shapeindexes into a field in the > attribute table would also be helpful. > > Thanks in advance. > > -- > Sandeep Bashyal > -- > National GIS Officer > Humanitarian Assistance Information System (HAIS) > United Nations (NEP/01/008) > UN House, Pulchowk > G.P.O. Box 107 > Kathmandu, Nepal > Tel: (+977) 01 5543957 > (+977) 01 5554304 > Cell:(+977) 9841270854 > Fax: (+977) 01 5528059 > -------------------------------------------------- > mailto:gis at undphais.org.np > mailto:sandeep at earthmapping.com > http://www.undp.org.np > From lfilak at MEDINACO.ORG Fri Oct 1 05:42:44 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 1 Oct 2004 08:42:44 -0400 Subject: Shapefile questions Message-ID: The following message was sent by Sandeep Bashyal on Fri, 1 Oct 2004 10:35:33 +0545. > Hello, > > I have the following questions about shapefiles and mapserver: > > 1. Does Mapserver support "merged" polygons in shapefiles? E.g. arcview > allows you to merge two or more NON-ADJACENT polygons, such that they are > treated as a single shape and point to the same rows in the attribute > table. I was wondering if mapserver supports such shapefiles with merged > non-adjacent polygons. > > 2. Is there a way to assign shapeindex for shapes in a layer from one of > the fields in the attribute table (like in the mapfile or by dnamically > adding a layer with phpmapscript)? I have a layer with over 4000 polygons > whose attribute ID's do not correspond to the shapeindex returned from > query results. I need the attribute ID's to link to a external database > and display results. > > Any advice on an easy way to write shapeindexes into a field in the > attribute table would also be helpful. > > Thanks in advance. > > -- > Sandeep Bashyal Sandeep, I don't know about #1. I, think, technically because a shape is not actually defined as a polygon it could actually be composed of many polygons. However there are many on this list more qualified to answer this. For #2. If the records in the attribute table you are trying to relate have a 1:1 relationship with the shapes in the shapefile then you may be able to add the shape index to the attribute table as a sequential number If the attribute records are loaded in the same sequence as the shapes occur. The more probable solution is have the ID as a field in the DBF that is associated with the SHP file and use the shape index to extract the ID from the DBF and then extract the attributes from the table. HTH Lowell From lfilak at MEDINACO.ORG Fri Oct 1 06:09:50 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 1 Oct 2004 09:09:50 -0400 Subject: CGI QUERY & NQUERY -vs- mapscript queryByRect & queryByShape Message-ID: The following message was sent by "Ryan, Adam" on Thu, 30 Sep 2004 14:07:10 -0700. > Just a quick question. Why are there QUERY and NQUERY CGI MODE options, but > there is no mode parameter (SINGLE/MULTIPLE) in the mapscript queryByRect > and queryByShape methods? > > Adam Adam, Good question. My question: What does "nearest" mean when selecting by rectangle or shape? Shouldn't it require "multiple". Lowell From Tom.Kralidis at EC.GC.CA Fri Oct 1 06:12:35 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 1 Oct 2004 09:12:35 -0400 Subject: FW: 2004 Web Mapping Contest - Now Open! Message-ID: FYI -- it would be great to see (the many nice) MapServer apps in this contest. ..Tom -----Original Message----- From: Directions Magazine [mailto:newsletters at directionsmag.com] Sent: Friday, 01 October, 2004 02:36 To: Kralidis,Tom [Burlington] Subject: 2004 Web Mapping Contest - Now Open! Web Mapping Contest - NOW OFFICIALLY OPEN Starting today, October 1st, and continuing through October 31st, 2004, Directions Magazine and Microsoft Corporation will present the 2004 edition of our highly successful Web Mapping Contest that we first presented in 2003. PHASE I PHASE I: SUBMIT YOUR WEBSITE NOW and through October 20th, 2004. Each entry must be accompanies by the following: Title Date Contest Category: Business, Government, or Miscellaneous Industry: Select from a list of approximately 40 industry classes. Brief Description: Approximately 250 words. Client-side technologies: For example: Java, JavaScript, HTML Server-side technologies: For example: JSP, ASP, PHP, XML Server-side Applications: For example: Microsoft Location Server, MapQuest Enterprise, MapServer, Envinsa Database technology: For example: Microsoft SQL Server, Oracle, IBM DB2, MySQL, PostgreSQL Web Mapping Software used: For example: ArcIMS, GeoMedia Web Map, Autodesk MapGuide, MapInfo MapXtreme, AltaMap, Push 'N See, BeyondGeo, or others... Time invested in development: Approximate time spent to build the web application Maximum number of concurrent users (if a limit exists) Name, Title, Company or Organization, email, and mailing address Only one submission per category per contestant is allowed. Entries from 2003 will be disallowed. CHECK HERE FOR OFFICIAL GUIDELINES If you would like to see examples of the 100+ websites submitted in our 2003 contest, please go to our Web Mapping Gallery, as all of the entrants have their websites posted there. We hope you can participate. With the holiday season approaching, you will not want to miss out on the unique prizes that we have selected this year: Smartphones will be given to each category winners (one prize per category) PHASE II PHASE II: VOTE FOR THE WINNERS IN EACH CATEGORY -- You, the readers of Directions Magazine, vote for the winners! Between October 21st and October 31st vote for one website in each category (only one vote per category for each entrant is permitted, all duplicate email entries will be disallowed). A random drawing from this pool of voters will be held. One 15" Flat Screen TV will be given away to a random winner! There will be five second place random winners -- They will receive one copy of Microsoft Streets and Trips with a GPS receiver! So, check back often during October to see the contest entries and get ready to vote on October 21st! BOOKMARK THE CONTEST WEBSITE! From jerl.simpso at GMAIL.COM Fri Oct 1 06:14:09 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 1 Oct 2004 08:14:09 -0500 Subject: Map wrap around?? In-Reply-To: <415C6580.2040306@pobox.com> Message-ID: Thanks for the link to the wiki. I was hoping there was a directive I could give, it's no big deal really. We have worked out a fix for this from the client side. I am running a WMS server and we are using it to create rastered tiles of the world. Then we browse those images via our web interface. I appreciate the assistance. Jerl On Thu, 30 Sep 2004 15:58:56 -0400, Frank Warmerdam wrote: > > > Jerl Simpson wrote: > > Hi guys, > > > > I am wonding if there is a way to get the map to wrap back around. > > I have looked through documentation, and I have either completely > > missed what I need, or didn't realize it was what I needed. > > > > The problem I have now, is when I get to the "edge" of the map, it > > just keeps going off into nowhere land. Is there a way to join up the > > edges? This way if I want to pan across the Pacific and follow a > > specific route, I can. > > Jerl, > > There is some discussion of this in the wiki in: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WorldMappingIssues > > There are many challenges with mapping over the antimeridian. If you can > provide details of the projection you are mapping in, the projection of > the data, type type of data (lines, raster) and the behaviour you are > seeing we might be able to give some specific advice. > > I am keen on seeing global mapping work better in MapServer but it gets > very sticky. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From Tom.Kralidis at EC.GC.CA Fri Oct 1 06:48:25 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 1 Oct 2004 09:48:25 -0400 Subject: FW: 2004 Web Mapping Contest - Now Open! Message-ID: Whoops -- here's the URL: http://www.directionsmag.com/web.mapping.contest/ ..Tom > -----Original Message----- > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > Sent: Friday, 01 October, 2004 09:47 > To: Kralidis,Tom [Burlington] > Subject: Re: [UMN_MAPSERVER-USERS] FW: 2004 Web Mapping > Contest - Now Open! > > > Hi Tom, > > Do you have the regular URL of this site? I think I'm going to follow > your suggestion! > > Jan > > > Kralidis,Tom [Burlington] wrote: > > FYI -- it would be great to see (the many nice) MapServer > apps in this > > contest. > > > > ..Tom > > > > > > > > -----Original Message----- > > From: Directions Magazine [mailto:newsletters at directionsmag.com] > > Sent: Friday, 01 October, 2004 02:36 > > To: Kralidis,Tom [Burlington] > > Subject: 2004 Web Mapping Contest - Now Open! > > > > > > > > > > > > Web Mapping Contest - NOW OFFICIALLY OPEN > > Starting today, October 1st, and continuing through October 31st, > > 2004, Directions Magazine and Microsoft Corporation will > present the > > 2004 edition of our highly successful Web Mapping Contest that we > > first presented in 2003. > > PHASE I > > > > > > > > > > PHASE I: SUBMIT YOUR WEBSITE NOW and through October 20th, > 2004. Each > > entry must be accompanies by the following: > > > > Title > > Date > > Contest Category: Business, Government, or Miscellaneous > > > > Industry: Select from a list of approximately 40 industry classes. > > Brief Description: Approximately 250 words. > > Client-side technologies: For example: Java, JavaScript, HTML > > Server-side technologies: For example: JSP, ASP, PHP, XML > > > > Server-side Applications: For example: Microsoft Location Server, > > MapQuest Enterprise, MapServer, Envinsa Database technology: For > > example: Microsoft SQL Server, Oracle, IBM DB2, MySQL, PostgreSQL > > Web Mapping Software used: For example: ArcIMS, GeoMedia Web Map, > > Autodesk MapGuide, MapInfo MapXtreme, AltaMap, Push 'N See, > BeyondGeo, > > or others... > > Time invested in development: Approximate time spent to > build the web > > application > > > > Maximum number of concurrent users (if a limit exists) > > Name, Title, Company or Organization, email, and mailing address > > > > Only one submission per category per contestant is allowed. Entries > > from 2003 will be disallowed. > > > > CHECK HERE FOR OFFICIAL GUIDELINES > > > > If you would like to see examples of the 100+ websites submitted in > > our 2003 contest, please go to our Web Mapping Gallery, as > all of the > > entrants have their websites posted there. We hope you can > > participate. With the holiday season approaching, you will > not want to > > miss out on the unique prizes that we have selected this year: > > Smartphones will be given to each category winners (one prize per > > category) > > > > > > > > PHASE II > > > > PHASE II: VOTE FOR THE WINNERS IN EACH CATEGORY -- You, the > readers of > > Directions Magazine, vote for the winners! Between October 21st and > > October 31st vote for one website in each category (only > one vote per > > category for each entrant is permitted, all duplicate email entries > > will be disallowed). A random drawing from this pool of > voters will be > > held. One 15" Flat Screen TV will be given away to a random winner! > > There will be five second place random winners -- They will receive > > one copy of Microsoft Streets and Trips with a GPS receiver! > > > > So, check back often during October to see the contest > entries and get > > ready to vote on October 21st! > > > > BOOKMARK THE CONTEST WEBSITE! > > > > From sobomsawin at KASSINI.COM Fri Oct 1 06:51:39 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 1 Oct 2004 09:51:39 -0400 Subject: [UMN_MAPSERVER-USERS] imgbox (what needs to be sent with ? In-Reply-To: <415C7502.6090903@ci.stpaul.mn.us> Message-ID: Bob, In order to use the IMGBOX option, you must have at least an IMGEXT (coordinate extents) and a mapsize (map size in pixels). Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Bob Basques Envoy??: 30 septembre 2004 17:05 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] imgbox (what needs to be sent with ? All, If I wanted to use IMGBOX (for a custom Zoom operation), what other pieces of the CGI need to be sent along with it? IMGEXT? IMGSIZE? bobb --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.770 / Virus Database: 517 - Release Date: 2004-09-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.770 / Virus Database: 517 - Release Date: 2004-09-27 From jerl.simpso at GMAIL.COM Fri Oct 1 07:47:15 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 1 Oct 2004 09:47:15 -0500 Subject: Editing shape files...or altering output. Message-ID: Hello, I'm having a display issue that I need to work out. I am wondering the best way to go about it. Here's the issue. I have an ESRI shape file with US roads. In this file, the US highways are listed as, "United States Highway 400". When you have a lot of those on the map, it gets very messy. I would like to replace "United States Highway 400" with "US 400" or even "US Hwy 400". Is it best to change the .dbf file? Or can I do this on the fly? I have no idea how to do this on the fly, but here are my thoughts on the dbf file. Use shapelib to open and read the dbf file, read in the values, compare, change if needed, then spit out to a new dbf file. Currently I would work at writing something to do this, after much reading of the documentation. Has anyone done this before? I suspect there might be a utility to do just this type of thing. Thanks in advance, Jerl From woodbri at SWOODBRIDGE.COM Fri Oct 1 08:08:36 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 1 Oct 2004 11:08:36 -0400 Subject: Editing shape files...or altering output. In-Reply-To: Message-ID: You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which might be the easiest way to do this. Your plan below is exactly how to do it, but Perl might be easier to write if you are familiar with it. I am not aware of any generic utilities that do this. -Steve W. Jerl Simpson wrote: > Hello, > > I'm having a display issue that I need to work out. I am wondering > the best way to go about it. Here's the issue. > I have an ESRI shape file with US roads. In this file, the US > highways are listed as, "United States Highway 400". When you have a > lot of those on the map, it gets very messy. I would like to replace > "United States Highway 400" with "US 400" or even "US Hwy 400". > Is it best to change the .dbf file? Or can I do this on the fly? > I have no idea how to do this on the fly, but here are my thoughts on > the dbf file. > > Use shapelib to open and read the dbf file, read in the values, > compare, change if needed, then spit out to a new dbf file. > Currently I would work at writing something to do this, after much > reading of the documentation. > Has anyone done this before? I suspect there might be a utility to do > just this type of thing. > > Thanks in advance, > > Jerl > From joanvp at YAHOO.COM Fri Oct 1 08:32:19 2004 From: joanvp at YAHOO.COM (joanvp) Date: Fri, 1 Oct 2004 08:32:19 -0700 Subject: tile indexing large numbre of images Message-ID: Hi list! I've written twice or three times last week asking about the same problem. Some people have answered me, so I'm thinking I'm stupid... :(. I start dealing with my problem.... I've a large number of heavy image files (*.tif, orthophotos, 75Mb each one). And I want to represent them in my map at certain scale. I thought with tile4ms it was possible, but not!!! I wrote Ed McNierney's code but I got a lot of blank shp files. Frank Warmerdam told me that It was possible with Gdaltindex but I can get it throw internet. Where is it? How can I get it? and How can I use it with msdos commands? Sorry, but I'm desperate... Thank you _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From ed at TOPOZONE.COM Fri Oct 1 08:44:22 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 1 Oct 2004 11:44:22 -0400 Subject: tile indexing large numbre of images Message-ID: Joan - You should use gdaltindex just as Frank suggested (I misread the message and typed "tile4ms" instead of "gdaltindex" in the command line, and Frank corrected that error). You can download GDAL and its associated utilities from http://www.remotesensing.org:16080/gdal/download.html - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of joanvp Sent: Friday, October 01, 2004 11:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] tile indexing large numbre of images Hi list! I've written twice or three times last week asking about the same problem. Some people have answered me, so I'm thinking I'm stupid... :(. I start dealing with my problem.... I've a large number of heavy image files (*.tif, orthophotos, 75Mb each one). And I want to represent them in my map at certain scale. I thought with tile4ms it was possible, but not!!! I wrote Ed McNierney's code but I got a lot of blank shp files. Frank Warmerdam told me that It was possible with Gdaltindex but I can get it throw internet. Where is it? How can I get it? and How can I use it with msdos commands? Sorry, but I'm desperate... Thank you _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From manjiri_r at HOTMAIL.COM Fri Oct 1 08:45:07 2004 From: manjiri_r at HOTMAIL.COM (Manjiri Andhare) Date: Fri, 1 Oct 2004 10:45:07 -0500 Subject: problems with the demoversion for mapserver Message-ID: Hi!! I'm also facing the same problem. I'm using Windows 2000 OS and IIS Server to run the workshop demo application. When i load the index.html, it shows me the page, but when i try first 3 options ("Basic Application","Add Second scalebar" and "Adds Pan Controls"), it gives me the "File Download" dialouge , and asks whether to OPEN/SAVE/CANCEL/More Info for the "mapserv.exe" file. If I click "open", DOS prmomt comes for a moment and goes off. But if i select"Adds dhtml rubber band box", and click "Initialize" button, it shows me html page with 1 big red box on left and one small red box on right down corners and few radio buttons for Action and Zooming, it aslo shows one dropdown to select the Layers to display. But when i select one of those layers to display, and click the"Refresh Map" button, it really doesn't do anything. Can anyone help with this? Thank you, Manjiri On Fri, 1 Oct 2004 08:56:43 +0200, Christiane Ottacher (MULTIMEDIAPLAN.AT) wrote: >Hi, > >currently I try to install and configure the UMN MapServer. I use the Apache >1.3.31 and the MapServer 4.2 for win32. The web server is running and the >MapServer too (when I type: http://localhost/cgi-bin/mapserv? I receive: No >query information to decode. QUERY_STRING is set, but empty). After >downloading the demo version for the MapServer, I did the relevant changes. >When I open the index.html it works, but when I click to the "Basic >Application" it doesn't. --> The site can't be displayed. >Can anyone help me and tell me what I did wrong or what the problem is? > >Thanks, Christiane Hi!! I'm also facing the same problem. I'm using Windows 2000 OS and IIS Server to run the workshop demo application. When i load the index.html, it shows me the page, but when i try first 3 options ("Basic Application","Add Second scalebar" and "Adds Pan Controls"), it gives me the "File Download" dialouge , and asks whether to OPEN/SAVE/CANCEL/More Info for the "mapserv.exe" file. If I click "open", DOS prmomt comes for a moment and goes off. But if i select"Adds dhtml rubber band box", and click "Initialize" button, it shows me html page with 1 big red box on left and one small red box on right down corners and few radio buttons for Action and Zooming, it aslo shows one dropdown to select the Layers to display. But when i select one of those layers to display, and click the"Refresh Map" button, it really doesn't do anything. Can anyone help with this? From woodbri at SWOODBRIDGE.COM Fri Oct 1 08:42:15 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 1 Oct 2004 11:42:15 -0400 Subject: tile indexing large numbre of images In-Reply-To: <20041001153219.94968.qmail@web50307.mail.yahoo.com> Message-ID: http://gdal.maptools.org/index.html It is one of the gdal utilities. -Steve W. joanvp wrote: > Hi list! > > I've written twice or three times last week asking > about the same problem. Some people have answered me, > so I'm thinking I'm stupid... :(. > > I start dealing with my problem.... > > I've a large number of heavy image files (*.tif, > orthophotos, 75Mb each one). And I want to represent > them in my map at certain scale. > > I thought with tile4ms it was possible, but not!!! I > wrote Ed McNierney's code but I got a lot of blank shp > files. > > Frank Warmerdam told me that It was possible with > Gdaltindex but I can get it throw internet. Where is > it? How can I get it? and How can I use it with msdos > commands? > > Sorry, but I'm desperate... > > Thank you > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > From mms at GNETCONSULTING.COM Fri Oct 1 08:52:41 2004 From: mms at GNETCONSULTING.COM (MapServer List) Date: Fri, 1 Oct 2004 11:52:41 -0400 Subject: Editing shape files...or altering output. Message-ID: Hello list: I need to do something similar, except I need to add a record to the DBF and save it, using PHP/MapScript. Would I use the same steps? Or would it be easier to do it in a DBF editor of some sort? My platform is Linux 9/PHP/MapServer 4.2.1. Thanks. Joel ----- Original Message ----- From: "Stephen Woodbridge" To: Sent: Friday, October 01, 2004 11:08 AM Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. > You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which > might be the easiest way to do this. Your plan below is exactly how to > do it, but Perl might be easier to write if you are familiar with it. > > I am not aware of any generic utilities that do this. > > -Steve W. > > Jerl Simpson wrote: > > > Hello, > > > > I'm having a display issue that I need to work out. I am wondering > > the best way to go about it. Here's the issue. > > I have an ESRI shape file with US roads. In this file, the US > > highways are listed as, "United States Highway 400". When you have a > > lot of those on the map, it gets very messy. I would like to replace > > "United States Highway 400" with "US 400" or even "US Hwy 400". > > Is it best to change the .dbf file? Or can I do this on the fly? > > I have no idea how to do this on the fly, but here are my thoughts on > > the dbf file. > > > > Use shapelib to open and read the dbf file, read in the values, > > compare, change if needed, then spit out to a new dbf file. > > Currently I would work at writing something to do this, after much > > reading of the documentation. > > Has anyone done this before? I suspect there might be a utility to do > > just this type of thing. > > > > Thanks in advance, > > > > Jerl > > > From sgillies at FRII.COM Fri Oct 1 09:15:25 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 1 Oct 2004 10:15:25 -0600 Subject: Exceptions for Java, Ruby, C# mapscript in 4.4 Message-ID: I posted this to the developers list yesterday and am now looking for input from mapscript users. Please not that this does not concern PHP mapscript, only the SWIG-based flavors. Some have asked about Perl exceptions. SWIG's exception library for Perl uses croak(). Each method call will peek into the mapserver error stack, and if an error is found, execution will stop and Perl will croak with the mapserver error message. Sean Begin forwarded message: > From: Sean Gillies > Date: September 30, 2004 3:32:04 PM MDT > To: MapServer-Dev > Subject: Exceptions for Java, Ruby, C# mapscript in 4.4 > > Hi all, > > Thanks to work by Umberto Nicoletti there will be exceptions in > Java mapscript using SWIG's exception library > > http://www.swig.org/Doc1.3/Customization.html#Customization_nn7 > > Do Ruby and C# developers and users want exceptions? I won't add > them unless someone speaks up on behalf of their favorite map-scripting > language. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From jerl.simpso at GMAIL.COM Fri Oct 1 09:44:46 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 1 Oct 2004 11:44:46 -0500 Subject: Editing shape files...or altering output. In-Reply-To: <415D72F4.4080301@swoodbridge.com> Message-ID: Thanks, I'll look into Perl for this. It looks like one of the perl dBase modules might help me out here too. On Fri, 01 Oct 2004 11:08:36 -0400, Stephen Woodbridge wrote: > You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which > might be the easiest way to do this. Your plan below is exactly how to > do it, but Perl might be easier to write if you are familiar with it. > > I am not aware of any generic utilities that do this. > > -Steve W. > > > > Jerl Simpson wrote: > > > Hello, > > > > I'm having a display issue that I need to work out. I am wondering > > the best way to go about it. Here's the issue. > > I have an ESRI shape file with US roads. In this file, the US > > highways are listed as, "United States Highway 400". When you have a > > lot of those on the map, it gets very messy. I would like to replace > > "United States Highway 400" with "US 400" or even "US Hwy 400". > > Is it best to change the .dbf file? Or can I do this on the fly? > > I have no idea how to do this on the fly, but here are my thoughts on > > the dbf file. > > > > Use shapelib to open and read the dbf file, read in the values, > > compare, change if needed, then spit out to a new dbf file. > > Currently I would work at writing something to do this, after much > > reading of the documentation. > > Has anyone done this before? I suspect there might be a utility to do > > just this type of thing. > > > > Thanks in advance, > > > > Jerl > > > > From jerl.simpso at GMAIL.COM Fri Oct 1 09:46:07 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 1 Oct 2004 11:46:07 -0500 Subject: Editing shape files...or altering output. In-Reply-To: <00a501c4a7ce$af3ae2b0$1400a8c0@desktop> Message-ID: I notice in the shapelib library, there are example programs to add records to the dbf file (dbfadd) I believe. That might help you out. Jerl On Fri, 1 Oct 2004 11:52:41 -0400, MapServer List wrote: > Hello list: > > I need to do something similar, except I need to add a record to > the DBF and save it, using PHP/MapScript. Would I use the same > steps? Or would it be easier to do it in a DBF editor of some sort? > > My platform is Linux 9/PHP/MapServer 4.2.1. Thanks. > > Joel > > > > ----- Original Message ----- > From: "Stephen Woodbridge" > To: > Sent: Friday, October 01, 2004 11:08 AM > Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. > > > You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which > > might be the easiest way to do this. Your plan below is exactly how to > > do it, but Perl might be easier to write if you are familiar with it. > > > > I am not aware of any generic utilities that do this. > > > > -Steve W. > > > > Jerl Simpson wrote: > > > > > Hello, > > > > > > I'm having a display issue that I need to work out. I am wondering > > > the best way to go about it. Here's the issue. > > > I have an ESRI shape file with US roads. In this file, the US > > > highways are listed as, "United States Highway 400". When you have a > > > lot of those on the map, it gets very messy. I would like to replace > > > "United States Highway 400" with "US 400" or even "US Hwy 400". > > > Is it best to change the .dbf file? Or can I do this on the fly? > > > I have no idea how to do this on the fly, but here are my thoughts on > > > the dbf file. > > > > > > Use shapelib to open and read the dbf file, read in the values, > > > compare, change if needed, then spit out to a new dbf file. > > > Currently I would work at writing something to do this, after much > > > reading of the documentation. > > > Has anyone done this before? I suspect there might be a utility to do > > > just this type of thing. > > > > > > Thanks in advance, > > > > > > Jerl > > > > > > From joanvp at YAHOO.COM Fri Oct 1 10:03:11 2004 From: joanvp at YAHOO.COM (joanvp) Date: Fri, 1 Oct 2004 10:03:11 -0700 Subject: tile indexing large numbre of images In-Reply-To: <16629291-EBCF-471F-BAAE-36DC37BBAD26@topozone.com> Message-ID: Oh my god, I can't belive it!!! I have achieved my goal! Thanks to all! Thanks to the new verion of OpenEV (1.80). I had tried it with 1.7 and gdaltindex was missed. Have a nice weekend! --- Ed McNierney wrote: > Joan - > > You should use gdaltindex just as Frank suggested (I > misread the message and typed "tile4ms" instead of > "gdaltindex" in the command line, and Frank > corrected that error). You can download GDAL and > its associated utilities from > http://www.remotesensing.org:16080/gdal/download.html > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > ed at topozone.com > (978) 251-4242 > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > joanvp > Sent: Friday, October 01, 2004 11:32 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] tile indexing large > numbre of images > > Hi list! > > I've written twice or three times last week asking > about the same problem. Some people have answered > me, so I'm thinking I'm stupid... :(. > > I start dealing with my problem.... > > I've a large number of heavy image files (*.tif, > orthophotos, 75Mb each one). And I want to represent > them in my map at certain scale. > > I thought with tile4ms it was possible, but not!!! I > wrote Ed McNierney's code but I got a lot of blank > shp files. > > Frank Warmerdam told me that It was possible with > Gdaltindex but I can get it throw internet. Where is > it? How can I get it? and How can I use it with > msdos commands? > > Sorry, but I'm desperate... > > Thank you > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From siki at AGT.BME.HU Fri Oct 1 13:26:40 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 1 Oct 2004 19:26:40 -0100 Subject: tile indexing large numbre of images {Scanned} {Scanned} In-Reply-To: <20041001153219.94968.qmail@web50307.mail.yahoo.com> Message-ID: Hi, gdaltindex and other gdal utilities are involved in openEV project. Download openEV from www.remotesensing.org/gdal/download.html Bye Zoltan On Fri, 1 Oct 2004, joanvp wrote: > Hi list! > > I've written twice or three times last week asking > about the same problem. Some people have answered me, > so I'm thinking I'm stupid... :(. > > I start dealing with my problem.... > > I've a large number of heavy image files (*.tif, > orthophotos, 75Mb each one). And I want to represent > them in my map at certain scale. > > I thought with tile4ms it was possible, but not!!! I > wrote Ed McNierney's code but I got a lot of blank shp > files. > > Frank Warmerdam told me that It was possible with > Gdaltindex but I can get it throw internet. Where is > it? How can I get it? and How can I use it with msdos > commands? > > Sorry, but I'm desperate... > > Thank you > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.com > From ealpert at DIGITALGLOBE.COM Fri Oct 1 11:02:50 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 1 Oct 2004 12:02:50 -0600 Subject: Mapinfo Message-ID: The first thing to check is that your EXTENT is the same as your TAB file. The second thing to check is to make sure since you didn't specify a projection for your tab file that the data in the tab file is in the same units as your EXTENT. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Guillaume Pouilly Sent: Friday, October 01, 2004 3:53 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapinfo Hi, I'm a newbye, with mapserver. I have to use mapserver with mapinfo (tab) files. I use OGR, but mapserver always draw an empty map Someone has an idea ? Thanks Here is my mapfile # # Start of map file # # NAME romania_ogr_demo STATUS ON SIZE 500 300 SYMBOLSET /tmp/symbols_mapinfo.sym EXTENT 24.995716 46.984584 26.008563 47.353092 UNITS DD SHAPEPATH "./data/" IMAGECOLOR 255 255 255 #FONTSET etc/fonts.txt # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" LOG "/tmp/gmap.log" TEMPLATE demo.html METADATA "TITLE" "MapServer OGR/TAB Test Demo" END END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 4 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 3 STATUS ON END # # Querymap settings # # Style is one of NORMAL, HILITE, or SELECTED # QUERYMAP STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME Romania TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "/var/www/html/itasca/data/606_Parcelles.TAB" # CLASSITEM "Cfactor" # LABELITEM "Code" # LABELMAXSCALE 160000.0 CLASS COLOR 232 232 255 OUTLINECOLOR 32 32 255 END END # Layer END #map Guillaume Pouilly Direction des syst?mes d'information Valenciennes M?tropole 2 Place de l'h?pital g?n?ral 59300 VALENCIENNES T?l :03 27 200 200 Fax :03 27 200 201 www.valenciennes-metropole.fr gpouilly at valenciennes-metropole.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 4764 bytes Desc: image001.jpg URL: From covariance at SHAW.CA Fri Oct 1 12:04:29 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Fri, 1 Oct 2004 14:04:29 -0500 Subject: Help with displaying a single RASTER image Message-ID: I am reviewing the tutorial and re-learning the MapServer by looking over work that I had done previously on another computer and converting examples that I had done with my own data (and that previously worked) to the new paths on this computer. Now I am finding that I cannot get the server to display a single GeoTIFF image under some vector data. I can see the vector data but the raster image won't draw for some reason. I hope that someone out there has some suggestion as to why the raster isn't appearing. I have checked my path to the raster data and it is correct. I have tried settings with processing the COLOR_MATCH_THRESHOLD and it didn't work. I even tried turning off INTERLACE in the map image and it didn't work. The strange thing is that when I jump ahead to an example that I had done with image tiles, this works and displays the raster tiles. But I can't seem to get it to work with a single image. I also can't get the raster in the standard tutorial35 to display. Does anyone out there have an answer to my problem? My MapServer configuration is: C:\Apache\htdocs\MapserverTutorial>..\CGI-BIN\MAPSERV.EXE -v MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My map file is: NAME T12R02E_s2ex2 EXTENT 620000 5535000 631000 5547350 SIZE 400 400 # SHAPEPATH "C:/Apache/htdocs/MapserverTutorial/TilesWWinnipeg/t12r02e" SHAPEPATH "C:/Apache/htdocs/MapserverTutorial/TilesWWinnipeg" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END IMAGETYPE png LAYER # Single ortho image display NAME "6205531GeoTIFF" DATA "t12r02e/orthodata/6205531G.tiff" # STATUS DEFAULT TYPE RASTER STATUS ON PROCESSING "SCALE=AUTO" # OFFSITE 0 0 0 PROCESSING "COLOR_MATCH_THRESHOLD=8" END LAYER # DLS Polys NAME "DLSPolys" DATA t12r02e/t12r02ev03_DLSPolygons STATUS DEFAULT TYPE POLYGON CLASSITEM "PART" CLASS # Whole DLS Parcel STATUS OFF NAME "WHOLE DLSPOLY" EXPRESSION "" COLOR 255 202 149 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object CLASS # Part DLS Parcel NAME "PART DLSPOLY" EXPRESSION "PT" COLOR 255 164 72 OUTLINECOLOR 0 0 0 END # end of Part DLS Parcel class object END # end of layer object LAYER # Plan Parcel Layer NAME "Plan Parcels" DATA t12r02e/t12r02ev03_LotPolygons STATUS DEFAULT TYPE POLYGON CLASSITEM "PART" CLASS # Whole Plan Parcels NAME "Whole Plan Parcels" EXPRESSION "" COLOR 212 178 176 OUTLINECOLOR 0 0 0 END # end of Whole Plan Parcels class CLASS # Part Plan Parcels NAME "Part Plan Parcels" EXPRESSION "PT" COLOR 170 103 100 OUTLINECOLOR 0 0 0 END # end of Whole Plan Parcels class END # end of water features layer END # end of map file and the line in my HTML file that runs the MapServer is: thanks in advance for your help. Bob Bruce From ealpert at DIGITALGLOBE.COM Fri Oct 1 12:16:25 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 1 Oct 2004 13:16:25 -0600 Subject: Help with displaying a single RASTER image Message-ID: Make sure the units/projection of your geotiff are the same as your EXTENT. Gdalinfo is your friend.... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Bruce Sent: Friday, October 01, 2004 1:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help with displaying a single RASTER image I am reviewing the tutorial and re-learning the MapServer by looking over work that I had done previously on another computer and converting examples that I had done with my own data (and that previously worked) to the new paths on this computer. Now I am finding that I cannot get the server to display a single GeoTIFF image under some vector data. I can see the vector data but the raster image won't draw for some reason. I hope that someone out there has some suggestion as to why the raster isn't appearing. I have checked my path to the raster data and it is correct. I have tried settings with processing the COLOR_MATCH_THRESHOLD and it didn't work. I even tried turning off INTERLACE in the map image and it didn't work. The strange thing is that when I jump ahead to an example that I had done with image tiles, this works and displays the raster tiles. But I can't seem to get it to work with a single image. I also can't get the raster in the standard tutorial35 to display. Does anyone out there have an answer to my problem? My MapServer configuration is: C:\Apache\htdocs\MapserverTutorial>..\CGI-BIN\MAPSERV.EXE -v MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE My map file is: NAME T12R02E_s2ex2 EXTENT 620000 5535000 631000 5547350 SIZE 400 400 # SHAPEPATH "C:/Apache/htdocs/MapserverTutorial/TilesWWinnipeg/t12r02e" SHAPEPATH "C:/Apache/htdocs/MapserverTutorial/TilesWWinnipeg" OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 EXTENSION "png" FORMATOPTION "INTERLACE=OFF" END IMAGETYPE png LAYER # Single ortho image display NAME "6205531GeoTIFF" DATA "t12r02e/orthodata/6205531G.tiff" # STATUS DEFAULT TYPE RASTER STATUS ON PROCESSING "SCALE=AUTO" # OFFSITE 0 0 0 PROCESSING "COLOR_MATCH_THRESHOLD=8" END LAYER # DLS Polys NAME "DLSPolys" DATA t12r02e/t12r02ev03_DLSPolygons STATUS DEFAULT TYPE POLYGON CLASSITEM "PART" CLASS # Whole DLS Parcel STATUS OFF NAME "WHOLE DLSPOLY" EXPRESSION "" COLOR 255 202 149 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object CLASS # Part DLS Parcel NAME "PART DLSPOLY" EXPRESSION "PT" COLOR 255 164 72 OUTLINECOLOR 0 0 0 END # end of Part DLS Parcel class object END # end of layer object LAYER # Plan Parcel Layer NAME "Plan Parcels" DATA t12r02e/t12r02ev03_LotPolygons STATUS DEFAULT TYPE POLYGON CLASSITEM "PART" CLASS # Whole Plan Parcels NAME "Whole Plan Parcels" EXPRESSION "" COLOR 212 178 176 OUTLINECOLOR 0 0 0 END # end of Whole Plan Parcels class CLASS # Part Plan Parcels NAME "Part Plan Parcels" EXPRESSION "PT" COLOR 170 103 100 OUTLINECOLOR 0 0 0 END # end of Whole Plan Parcels class END # end of water features layer END # end of map file and the line in my HTML file that runs the MapServer is: thanks in advance for your help. Bob Bruce From mklein at WAPA.GOV Fri Oct 1 13:20:10 2004 From: mklein at WAPA.GOV (Michael Klein) Date: Fri, 1 Oct 2004 15:20:10 -0500 Subject: Internal Server error when processing TIFF images Message-ID: I have recently compiled mapserver 4.2.3 cgi using the Mapserver wiki article "RedHat9 And Mapserver40b" as a template but using the following versions of support "libraries" listed below. We get correct information displayed initally (roads, state lines, symbols, etc. none are tiff images) but when we all tiff image layers, we receive Internal Server Error. All of the data, html and mapfile were copied from our "live" server using mapserver 3.6.4 cgi with apache 2.0.47 compiled from source. The files were modified to reflect the new server urls. The mapserver string from view source of the initial page is: In the error log, the beginning of the error is "Premature end of script headers: mapserv, referer: . Any pointers as to what could cause this would be appreciated. Mike Klein RedHat ES 3.0 with all available updates through up2date Apache web server 2.0.50 (compiled from source and using mostly default settings curl 7.12.1 gd 2.0.28 gdal 1.2.0 PDFlib-Lite 6.0.0p1 php 5.0.1 proj 4.4.8 no ming support From warmerdam at POBOX.COM Fri Oct 1 14:01:18 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 1 Oct 2004 17:01:18 -0400 Subject: Internal Server error when processing TIFF images In-Reply-To: Message-ID: Michael Klein wrote: > I have recently compiled mapserver 4.2.3 cgi using the Mapserver wiki > article "RedHat9 And Mapserver40b" as a template but using the following > versions of support "libraries" listed below. We get correct information > displayed initally (roads, state lines, symbols, etc. none are tiff images) > but when we all tiff image layers, we receive Internal Server Error. All > of the data, html and mapfile were copied from our "live" server using > mapserver 3.6.4 cgi with apache 2.0.47 compiled from source. The files > were modified to reflect the new server urls. The mapserver string from > view source of the initial page is: > In the error log, the beginning of the error is "Premature end of script > headers: mapserv, referer: . > Any pointers as to what could cause this would be appreciated. Michael, Whew, I think this needs to go into the FAQ! Try it without pdf support. The PDFLib 6.0 includes a copy of libtiff that conflicts with other instances. This is almost certainly causing your problem. Also, please update the appropriate wiki topic to warn about this or to just not include the pdf step anymore. Note, the PDFLib maintainers assure me they will soon issue a maintenance release with this issue corrected. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jerl.simpso at GMAIL.COM Fri Oct 1 14:04:33 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 1 Oct 2004 16:04:33 -0500 Subject: Editing shape files...or altering output. In-Reply-To: Message-ID: Hello, I don't know if anyone is interested, but I have written a Perl script to perform the function I was looking for earlier. If you like, I can send it to you, it's also very short, so I could post the code to the list if requested. It works like: dbfreplace.pl dbfile field "search string" "replace string" Let me know if you are interested in such a thing. Jerl On Fri, 1 Oct 2004 11:46:07 -0500, Jerl Simpson wrote: > I notice in the shapelib library, there are example programs to add > records to the dbf file (dbfadd) I believe. > That might help you out. > > Jerl > > > > > On Fri, 1 Oct 2004 11:52:41 -0400, MapServer List > wrote: > > Hello list: > > > > I need to do something similar, except I need to add a record to > > the DBF and save it, using PHP/MapScript. Would I use the same > > steps? Or would it be easier to do it in a DBF editor of some sort? > > > > My platform is Linux 9/PHP/MapServer 4.2.1. Thanks. > > > > Joel > > > > > > > > ----- Original Message ----- > > From: "Stephen Woodbridge" > > To: > > Sent: Friday, October 01, 2004 11:08 AM > > Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. > > > > > You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which > > > might be the easiest way to do this. Your plan below is exactly how to > > > do it, but Perl might be easier to write if you are familiar with it. > > > > > > I am not aware of any generic utilities that do this. > > > > > > -Steve W. > > > > > > Jerl Simpson wrote: > > > > > > > Hello, > > > > > > > > I'm having a display issue that I need to work out. I am wondering > > > > the best way to go about it. Here's the issue. > > > > I have an ESRI shape file with US roads. In this file, the US > > > > highways are listed as, "United States Highway 400". When you have a > > > > lot of those on the map, it gets very messy. I would like to replace > > > > "United States Highway 400" with "US 400" or even "US Hwy 400". > > > > Is it best to change the .dbf file? Or can I do this on the fly? > > > > I have no idea how to do this on the fly, but here are my thoughts on > > > > the dbf file. > > > > > > > > Use shapelib to open and read the dbf file, read in the values, > > > > compare, change if needed, then spit out to a new dbf file. > > > > Currently I would work at writing something to do this, after much > > > > reading of the documentation. > > > > Has anyone done this before? I suspect there might be a utility to do > > > > just this type of thing. > > > > > > > > Thanks in advance, > > > > > > > > Jerl > > > > > > > > > > From uli.mueller at GMX.CH Fri Oct 1 13:57:58 2004 From: uli.mueller at GMX.CH (uli) Date: Fri, 1 Oct 2004 22:57:58 +0200 Subject: server error with gdal/raster data Message-ID: Hello I installed MapServer 4.2. With vector data everythings seems ok, however when I try to display raster data (currently various TIFF files) I get an "Internal Server Error". With shp2img I get the following when I switch debugging on: pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg) - succeeded ...and many more... pj_open_lib(epsg): call fopen(/usr/local/share/proj/epsg) - succeeded GDAL: DALOpen(/geodata/somepath/tk500_co.tif) succeeds as GTiff. Segmentation fault gdalinfo reports: GDAL: GDALOpen(/geodata/somepath/tk500_co.tif) succeeds as GTiff. GDAL: GDALClose(/geodata/somepath/tk500_co.tif) GDAL: GDALDeregister_GTiff() called. Driver: GTiff/GeoTIFF Size is 12013, 14005 Coordinate System is `' Origin = (3379789.006523,5530041.081373) Pixel Size = (19.99679007,-19.99679007) Metadata: TIFFTAG_SOFTWARE=Arc/Info TIFFTAG_XRESOLUTION=0.050000001 TIFFTAG_YRESOLUTION=0.050000001 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 3379789.007, 5530041.081) Lower Left ( 3379789.007, 5249986.036) Upper Right ( 3620010.446, 5530041.081) Lower Right ( 3620010.446, 5249986.036) Center ( 3499899.726, 5390013.559) Band 1 Block=12013x1 Type=Byte, ColorInterp=Palette Color Table (RGB with 256 entries) 0: 255,255,255,255 1: 0,0,0,255 ........ 253: 0,0,0,255 254: 255,147,147,255 255: 147,255,255,255 GDAL: GDALClose(/geodata/somepath/tk500_co.tif) GDAL: GDALDeregister_GTiff() called. The MapServer and Apache log files are not of much help: - MapServer.log: Fri Oct 1 11:05:54 2004,3099,80.131.230.167,maptitle,3,3388285.000000 5259535.666667 3610085.000000 5518214.333333,-1.000000 -1.000000,,normal execution - Apache2.log: [Fri Oct 01 15:24:06 2004] [error] [client 80.131.230.167] Premature end of script headers: mapserv My system: LINUX SuSE9.1 Apache2 MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE GDAL 1.2.1, formats:gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk bsb gif jpeg png MapFile extract: LAYER NAME "Topographie" TYPE raster STATUS default PROJECTION "init=epsg:31467" END DATA "/geodata/somepath/tk500_co.tif" END Any help appreciated! Thanks! Uli From woodbri at SWOODBRIDGE.COM Fri Oct 1 14:10:30 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 1 Oct 2004 17:10:30 -0400 Subject: Editing shape files...or altering output. In-Reply-To: Message-ID: Yes, this would be great, send it to me. Why not post it to the wiki! -Steve Jerl Simpson wrote: > Hello, > > I don't know if anyone is interested, but I have written a Perl script > to perform the function I was looking for earlier. > If you like, I can send it to you, it's also very short, so I could > post the code to the list if requested. > > It works like: > > dbfreplace.pl dbfile field "search string" "replace string" > > > Let me know if you are interested in such a thing. > > Jerl > > On Fri, 1 Oct 2004 11:46:07 -0500, Jerl Simpson wrote: > >>I notice in the shapelib library, there are example programs to add >>records to the dbf file (dbfadd) I believe. >>That might help you out. >> >>Jerl >> >> >> >> >>On Fri, 1 Oct 2004 11:52:41 -0400, MapServer List >> wrote: >> >>>Hello list: >>> >>>I need to do something similar, except I need to add a record to >>>the DBF and save it, using PHP/MapScript. Would I use the same >>>steps? Or would it be easier to do it in a DBF editor of some sort? >>> >>>My platform is Linux 9/PHP/MapServer 4.2.1. Thanks. >>> >>>Joel >>> >>> >>> >>>----- Original Message ----- >>>From: "Stephen Woodbridge" >>>To: >>>Sent: Friday, October 01, 2004 11:08 AM >>>Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. >>> >>> >>>>You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which >>>>might be the easiest way to do this. Your plan below is exactly how to >>>>do it, but Perl might be easier to write if you are familiar with it. >>>> >>>>I am not aware of any generic utilities that do this. >>>> >>>>-Steve W. >>>> >>>>Jerl Simpson wrote: >>>> >>>> >>>>>Hello, >>>>> >>>>>I'm having a display issue that I need to work out. I am wondering >>>>>the best way to go about it. Here's the issue. >>>>>I have an ESRI shape file with US roads. In this file, the US >>>>>highways are listed as, "United States Highway 400". When you have a >>>>>lot of those on the map, it gets very messy. I would like to replace >>>>>"United States Highway 400" with "US 400" or even "US Hwy 400". >>>>>Is it best to change the .dbf file? Or can I do this on the fly? >>>>>I have no idea how to do this on the fly, but here are my thoughts on >>>>>the dbf file. >>>>> >>>>>Use shapelib to open and read the dbf file, read in the values, >>>>>compare, change if needed, then spit out to a new dbf file. >>>>>Currently I would work at writing something to do this, after much >>>>>reading of the documentation. >>>>>Has anyone done this before? I suspect there might be a utility to do >>>>>just this type of thing. >>>>> >>>>>Thanks in advance, >>>>> >>>>>Jerl >>>>> >>>> > From warmerdam at POBOX.COM Fri Oct 1 14:14:21 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 1 Oct 2004 17:14:21 -0400 Subject: server error with gdal/raster data In-Reply-To: <415DC4D6.3010909@gmx.ch> Message-ID: uli wrote: > MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Uli, I imagine your problem is PDFLib 6.0. Try dropping the PDFlib support from your build. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jerl.simpso at GMAIL.COM Fri Oct 1 14:26:50 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Fri, 1 Oct 2004 16:26:50 -0500 Subject: Editing shape files...or altering output. In-Reply-To: <415DC7C6.7050604@swoodbridge.com> Message-ID: I would need to find a good area in the wiki to post it to. On Fri, 01 Oct 2004 17:10:30 -0400, Stephen Woodbridge wrote: > Yes, this would be great, send it to me. Why not post it to the wiki! > > -Steve > > Jerl Simpson wrote: > > > Hello, > > > > I don't know if anyone is interested, but I have written a Perl script > > > > to perform the function I was looking for earlier. > > If you like, I can send it to you, it's also very short, so I could > > post the code to the list if requested. > > > > It works like: > > > > dbfreplace.pl dbfile field "search string" "replace string" > > > > > > Let me know if you are interested in such a thing. > > > > Jerl > > > > On Fri, 1 Oct 2004 11:46:07 -0500, Jerl Simpson wrote: > > > >>I notice in the shapelib library, there are example programs to add > >>records to the dbf file (dbfadd) I believe. > >>That might help you out. > >> > >>Jerl > >> > >> > >> > >> > >>On Fri, 1 Oct 2004 11:52:41 -0400, MapServer List > >> wrote: > >> > >>>Hello list: > >>> > >>>I need to do something similar, except I need to add a record to > >>>the DBF and save it, using PHP/MapScript. Would I use the same > >>>steps? Or would it be easier to do it in a DBF editor of some sort? > >>> > >>>My platform is Linux 9/PHP/MapServer 4.2.1. Thanks. > >>> > >>>Joel > >>> > >>> > >>> > >>>----- Original Message ----- > >>>From: "Stephen Woodbridge" > >>>To: > >>>Sent: Friday, October 01, 2004 11:08 AM > >>>Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. > >>> > >>> > >>>>You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which > >>>>might be the easiest way to do this. Your plan below is exactly how to > >>>>do it, but Perl might be easier to write if you are familiar with it. > >>>> > >>>>I am not aware of any generic utilities that do this. > >>>> > >>>>-Steve W. > >>>> > >>>>Jerl Simpson wrote: > >>>> > >>>> > >>>>>Hello, > >>>>> > >>>>>I'm having a display issue that I need to work out. I am wondering > >>>>>the best way to go about it. Here's the issue. > >>>>>I have an ESRI shape file with US roads. In this file, the US > >>>>>highways are listed as, "United States Highway 400". When you have a > >>>>>lot of those on the map, it gets very messy. I would like to replace > >>>>>"United States Highway 400" with "US 400" or even "US Hwy 400". > >>>>>Is it best to change the .dbf file? Or can I do this on the fly? > >>>>>I have no idea how to do this on the fly, but here are my thoughts on > >>>>>the dbf file. > >>>>> > >>>>>Use shapelib to open and read the dbf file, read in the values, > >>>>>compare, change if needed, then spit out to a new dbf file. > >>>>>Currently I would work at writing something to do this, after much > >>>>>reading of the documentation. > >>>>>Has anyone done this before? I suspect there might be a utility to do > >>>>>just this type of thing. > >>>>> > >>>>>Thanks in advance, > >>>>> > >>>>>Jerl > >>>>> > >>>> > > > > From gsw at GLOBEXPLORER.COM Fri Oct 1 14:25:18 2004 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Fri, 1 Oct 2004 14:25:18 -0700 Subject: Editing shape files...or altering output. Message-ID: Agreed ! Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM] Sent: Fri 10/1/2004 2:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. Yes, this would be great, send it to me. Why not post it to the wiki! -Steve Jerl Simpson wrote: > Hello, > > I don't know if anyone is interested, but I have written a Perl script > to perform the function I was looking for earlier. > If you like, I can send it to you, it's also very short, so I could > post the code to the list if requested. > > It works like: > > dbfreplace.pl dbfile field "search string" "replace string" > > > Let me know if you are interested in such a thing. > > Jerl > > On Fri, 1 Oct 2004 11:46:07 -0500, Jerl Simpson wrote: > >>I notice in the shapelib library, there are example programs to add >>records to the dbf file (dbfadd) I believe. >>That might help you out. >> >>Jerl >> >> >> >> >>On Fri, 1 Oct 2004 11:52:41 -0400, MapServer List >> wrote: >> >>>Hello list: >>> >>>I need to do something similar, except I need to add a record to >>>the DBF and save it, using PHP/MapScript. Would I use the same >>>steps? Or would it be easier to do it in a DBF editor of some sort? >>> >>>My platform is Linux 9/PHP/MapServer 4.2.1. Thanks. >>> >>>Joel >>> >>> >>> >>>----- Original Message ----- >>>From: "Stephen Woodbridge" >>>To: >>>Sent: Friday, October 01, 2004 11:08 AM >>>Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. >>> >>> >>>>You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which >>>>might be the easiest way to do this. Your plan below is exactly how to >>>>do it, but Perl might be easier to write if you are familiar with it. >>>> >>>>I am not aware of any generic utilities that do this. >>>> >>>>-Steve W. >>>> >>>>Jerl Simpson wrote: >>>> >>>> >>>>>Hello, >>>>> >>>>>I'm having a display issue that I need to work out. I am wondering >>>>>the best way to go about it. Here's the issue. >>>>>I have an ESRI shape file with US roads. In this file, the US >>>>>highways are listed as, "United States Highway 400". When you have a >>>>>lot of those on the map, it gets very messy. I would like to replace >>>>>"United States Highway 400" with "US 400" or even "US Hwy 400". >>>>>Is it best to change the .dbf file? Or can I do this on the fly? >>>>>I have no idea how to do this on the fly, but here are my thoughts on >>>>>the dbf file. >>>>> >>>>>Use shapelib to open and read the dbf file, read in the values, >>>>>compare, change if needed, then spit out to a new dbf file. >>>>>Currently I would work at writing something to do this, after much >>>>>reading of the documentation. >>>>>Has anyone done this before? I suspect there might be a utility to do >>>>>just this type of thing. >>>>> >>>>>Thanks in advance, >>>>> >>>>>Jerl >>>>> >>>> > From uli.mueller at GMX.CH Fri Oct 1 15:15:20 2004 From: uli.mueller at GMX.CH (uli) Date: Sat, 2 Oct 2004 00:15:20 +0200 Subject: server error with gdal/raster data In-Reply-To: <415DC8AD.4070106@pobox.com> Message-ID: That was it! Frank, thank you! Frank Warmerdam wrote: > uli wrote: > >> MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > Uli, > > I imagine your problem is PDFLib 6.0. Try dropping the PDFlib support from > your build. > > Best regards, > > -- > ---------------------------------------+-------------------------------------- > > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > > From Andrea.Giacomelli at CH2M.COM Fri Oct 1 09:29:55 2004 From: Andrea.Giacomelli at CH2M.COM (Andrea Giacomelli) Date: Fri, 1 Oct 2004 18:29:55 +0200 Subject: imagemap mode: is this available with the windows binary ? Message-ID: Hi, this is just to check if the windows binary for mapserver available for download includes the possibility of generating imagemap output. I tried the example suggested in the mapwiki page. Even though mapserver does not give an error code, I get an error from the PHP include which should embed the imagemap code. The error reports that the file under the tmp directory cannot be found, so I assume that no actual output is produced by mapserver. TIA for any suggestions, ======================================== ...mapserv -v MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLI ENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ===================================== Andrea From warmerdam at POBOX.COM Fri Oct 1 21:17:19 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 2 Oct 2004 00:17:19 -0400 Subject: imagemap mode: is this available with the windows binary ? In-Reply-To: Message-ID: Andrea Giacomelli wrote: > Hi, > > this is just to check if the windows binary for mapserver available for > download includes the possibility of generating imagemap output. > > I tried the example suggested in the mapwiki page. > > Even though mapserver does not give an error code, I get an error from > the PHP include which should embed the imagemap code. > The error reports that the file under the tmp directory cannot be found, > so I assume that no actual output is produced by mapserver. > Andrea, My understanding is that imagemap support is always compiled in by default. You might want to try a simpler / more direct test to verify that and then try to narrow down PHP related issues. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From e9625730 at STUD3.TUWIEN.AC.AT Sat Oct 2 03:40:44 2004 From: e9625730 at STUD3.TUWIEN.AC.AT (Elisabeth Nolz) Date: Sat, 2 Oct 2004 12:40:44 +0200 Subject: center map on x,y coordinates Message-ID: hi list. i posted this problem months ago, and altough i got lots of answers (thanx to all) i couldn't solve it. but now i need this function again and have to get it working as soon as possible. i want to center my map on x,y coordinates. this is the link i use: http://localhost/cgi-bin/mapserv?map=map.map&mode=map&mapxy=339989.20+1646.20&scale=20000 i can see the background-color of the map, but nothing else. here's an abstract of my mapfile: NAME TEST STATUS ON SIZE 400 300 EXTENT 1150 340000 1900 339550 UNITS meters SHAPEPATH "data" IMAGECOLOR 230 230 230 IMAGETYPE GIF LAYER NAME "strasse" GROUP "Eintausend" METADATA LYRNAME "Strasse" END MINSCALE 500 MAXSCALE 1000 DATA "vektor/strasse" STATUS ON TYPE POLYGON CLASSITEM "ID" CLASS NAME "Strasse" EXPRESSION /./ OUTLINECOLOR 0 0 0 # COLOR 0 0 0 END END please, can someone figure out whats going wrong? thx, elisabeth. From j.l.h.hartmann at UVA.NL Sat Oct 2 05:25:52 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Sat, 2 Oct 2004 14:25:52 +0200 Subject: Help with displaying a single RASTER image In-Reply-To: Message-ID: Bob Bruce wrote: > I am reviewing the tutorial and re-learning the MapServer by looking over > work that I had done previously on another computer and converting examples > that I had done with my own data (and that previously worked) to the new > paths on this computer. Now I am finding that I cannot get the server to > display a single GeoTIFF image under some vector data. I can see the vector > data but the raster image won't draw for some reason. I hope that someone > out there has some suggestion as to why the raster isn't appearing. I have > checked my path to the raster data and it is correct. I have tried settings > with processing the COLOR_MATCH_THRESHOLD and it didn't work. I even tried > turning off INTERLACE in the map image and it didn't work. > > The strange thing is that when I jump ahead to an example that I had done > with image tiles, this works and displays the raster tiles. But I can't seem > to get it to work with a single image. I also can't get the raster in the > standard tutorial35 to display. > > Does anyone out there have an answer to my problem? > Hi Bob, Why did you comment out "STATUS DEFAULT" in the raster layer and replaced it by "STATUS ON"? This way, the layer will not be displayed, unless you specifically mention it in the url. Jan From j.l.h.hartmann at UVA.NL Sat Oct 2 06:06:40 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Sat, 2 Oct 2004 15:06:40 +0200 Subject: center map on x,y coordinates In-Reply-To: Message-ID: Elisabeth, There are several reasons why this MapFile cannot work with this URL: - The layer's STATUS is ON, which means that it has to be added to the URL to be visible ("http:?/..&layer=strasse). Only layers with STATUS DEFAULT are always displayed. - the EXTENT is wrong. EXTENT should be set as "x1 y1 x2 y2", where x2 and y2 are both higher than x1/y1. Your y2 is smaller than y1. - the MAPXY parameter seems to have switched x/y compared with the EXTENT. - You give a scale of 20000 in the URL, but you limit the layer between scales 500 and 1000. This means the layer will not be displayed. - The expression in the CLASS statement will only select streets with an ID of exactly *one* letter. If you want to select all streets, the expression has to be /.*/ - Are you sure your streets are polygons? Perhaps you could start with a rudimentary MapFile: set STATUS DEFAULT, comment out MAXSCALE and MINSCALE and set the CLASS expression to /.*/. Then call this with only "map=map.map&mode=map" in the URL. If you still don't see anything, check if the extent of the vector file matches that of the MapFile and if its type is polygon. (e.g. by using ogrinfo). Also try giving the complete path to the shapefile (as specified here it should be: /..../cgi-bin/data/vector/strasse.shp). As soon as you can see a picture of the whole map, you can try to center it on a given coordinate. My way would be to recompute the extent. Say, you want a map centered around 1500/337000. A 200*200m map around this point can ge generated by an extent of 1400 336900 1600 337100. In my experience this is much easier to compute than MAPXY and SCALE. Hope this helps, Jan Elisabeth Nolz wrote: > hi list. > > i posted this problem months ago, and altough i got lots of answers (thanx to > all) i couldn't solve it. but now i need this function again and have to get > it working as soon as possible. > > i want to center my map on x,y coordinates. this is the link i use: > http://localhost/cgi-bin/mapserv?map=map.map&mode=map&mapxy=339989.20+1646.20&scale=20000 > > i can see the background-color of the map, but nothing else. here's an > abstract of my mapfile: > NAME TEST > STATUS ON > SIZE 400 300 > EXTENT 1150 340000 1900 339550 > UNITS meters > SHAPEPATH "data" > IMAGECOLOR 230 230 230 > IMAGETYPE GIF > > LAYER > NAME "strasse" > GROUP "Eintausend" > METADATA > LYRNAME "Strasse" > END > MINSCALE 500 > MAXSCALE 1000 > DATA "vektor/strasse" > STATUS ON > TYPE POLYGON > CLASSITEM "ID" > CLASS > NAME "Strasse" > EXPRESSION /./ > OUTLINECOLOR 0 0 0 > # COLOR 0 0 0 > END > END > > please, can someone figure out whats going wrong? > thx, > elisabeth. > From superbla3000 at GMX.NET Sat Oct 2 06:55:01 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sat, 2 Oct 2004 15:55:01 +0200 Subject: showing 2 landsat utm geotiff Message-ID: hello, I have landsat utm geotiffs zone 32 and 33 and would like to show them both. I can show only either 32 or 33... Whats wrong? joerg mapfile: MAP IMAGETYPE jpeg EXTENT 203700.00 5700000.00 800000.00 6000000.00 UNITS METERS SIZE 800 400 IMAGECOLOR 112 135 148 DEBUG ON WEB LOG "C:\ms_tmp\logfile.txt" IMAGEPATH "C:\ms_tmp\" IMAGEURL "/ms_tmp/" TEMPLATE "northTempl_2.html" END LAYER NAME landsathamburgz32 STATUS DEFAULT DATA "data/raster/landsat/z32_etmMosaic_halftone.tif" #OFFSITE 0 0 0 TYPE RASTER DEBUG ON END LAYER NAME landsatberlinz33 STATUS ON DATA "data/raster/landsat/z33_etmMosaic_halftone.tif" #OFFSITE 0 0 0 TYPE RASTER DEBUG ON END END # Map File From j.l.h.hartmann at UVA.NL Sat Oct 2 07:01:22 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Sat, 2 Oct 2004 16:01:22 +0200 Subject: showing 2 landsat utm geotiff In-Reply-To: <415EB335.5050807@gmx.net> Message-ID: Joerg, You have two layers in different projections. This means that you have to define a projection block in each layer *plus* an output projection in the "map" part of the mapfile. I'm not sure what that last one should be; probably some sort of global German epsg projection. And then: both layers have to be STATUS DEFAULT! Jan joerg p wrote: > hello, > > I have landsat utm geotiffs zone 32 and 33 and would like to show them > both. I can show only either 32 or 33... Whats wrong? > > joerg > > mapfile: > MAP > > IMAGETYPE jpeg > EXTENT 203700.00 5700000.00 800000.00 6000000.00 > UNITS METERS > SIZE 800 400 > IMAGECOLOR 112 135 148 > DEBUG ON > > WEB > LOG "C:\ms_tmp\logfile.txt" > IMAGEPATH "C:\ms_tmp\" > IMAGEURL "/ms_tmp/" > TEMPLATE "northTempl_2.html" > END > > LAYER > NAME landsathamburgz32 > STATUS DEFAULT > DATA "data/raster/landsat/z32_etmMosaic_halftone.tif" > #OFFSITE 0 0 0 > TYPE RASTER > DEBUG ON > END > LAYER > NAME landsatberlinz33 > STATUS ON > DATA "data/raster/landsat/z33_etmMosaic_halftone.tif" > #OFFSITE 0 0 0 > TYPE RASTER > DEBUG ON > END > > END # Map File > From superbla3000 at GMX.NET Sat Oct 2 07:29:26 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sat, 2 Oct 2004 16:29:26 +0200 Subject: showing 2 landsat utm geotiff In-Reply-To: <415EB4B2.3010506@uva.nl> Message-ID: ok, I got it. This means I have to tell mapserver to project z32 as zone=32 and z33 as zone=33. The map I projected as zone=32, so now it takes a long time to reproject z33. So this is why using utm for a larger area isn't good..hhmmm... what should I use instead? LatLong? Joerg Jan Hartmann wrote: > Joerg, > > You have two layers in different projections. This means that you have > to define a projection block in each layer *plus* an output projection > in the "map" part of the mapfile. I'm not sure what that last one should > be; probably some sort of global German epsg projection. > > And then: both layers have to be STATUS DEFAULT! > > Jan > > > joerg p wrote: > >> hello, >> >> I have landsat utm geotiffs zone 32 and 33 and would like to show them >> both. I can show only either 32 or 33... Whats wrong? >> >> joerg >> >> mapfile: >> MAP >> >> IMAGETYPE jpeg >> EXTENT 203700.00 5700000.00 800000.00 6000000.00 >> UNITS METERS >> SIZE 800 400 >> IMAGECOLOR 112 135 148 >> DEBUG ON >> >> WEB >> LOG "C:\ms_tmp\logfile.txt" >> IMAGEPATH "C:\ms_tmp\" >> IMAGEURL "/ms_tmp/" >> TEMPLATE "northTempl_2.html" >> END >> >> LAYER >> NAME landsathamburgz32 >> STATUS DEFAULT >> DATA "data/raster/landsat/z32_etmMosaic_halftone.tif" >> #OFFSITE 0 0 0 >> TYPE RASTER >> DEBUG ON >> END >> LAYER >> NAME landsatberlinz33 >> STATUS ON >> DATA "data/raster/landsat/z33_etmMosaic_halftone.tif" >> #OFFSITE 0 0 0 >> TYPE RASTER >> DEBUG ON >> END >> >> END # Map File >> > > From j.l.h.hartmann at UVA.NL Sat Oct 2 07:37:05 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Sat, 2 Oct 2004 16:37:05 +0200 Subject: showing 2 landsat utm geotiff In-Reply-To: <415EBB46.4050101@gmx.net> Message-ID: joerg p wrote: > ok, I got it. This means I have to tell mapserver to project z32 as > zone=32 and z33 as zone=33. The map I projected as zone=32, so now it > takes a long time to reproject z33. > > So this is why using utm for a larger area isn't good..hhmmm... what > should I use instead? LatLong? > > Joerg > Reprojecting one UTM zone into another is not a good idea, because the projected image gets distorted. Ideally you should project *both* into an appropriate projection for the whole region covered. You can look up the available projections in a good atlas of the region you are interested in. Of course, this will take even more time. As a rule, it is not a good idea to let MapServer do projections on the fly. Once you know your target projection, us gdalwarp to project both base images into projected ones. Gdalwarp can even combine them into one, and tile it in smaller tiles for efficient rendering by MapServer. It is really an amazing program. Jan From covariance at SHAW.CA Sat Oct 2 10:59:16 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Sat, 2 Oct 2004 12:59:16 -0500 Subject: Help with displaying a single RASTER image Message-ID: On Sat, 2 Oct 2004 14:25:52 +0200, Jan Hartmann wrote: Thank you very much Jan. This worked. I don't know why I had put STATUS ON in my map file but that was what was causing the problem. Bob >Bob Bruce wrote: > >> I am reviewing the tutorial and re-learning the MapServer by looking over >> work that I had done previously on another computer and converting examples >> that I had done with my own data (and that previously worked) to the new >> paths on this computer. Now I am finding that I cannot get the server to >> display a single GeoTIFF image under some vector data. I can see the vector >> data but the raster image won't draw for some reason. I hope that someone >> out there has some suggestion as to why the raster isn't appearing. I have >> checked my path to the raster data and it is correct. I have tried settings >> with processing the COLOR_MATCH_THRESHOLD and it didn't work. I even tried >> turning off INTERLACE in the map image and it didn't work. >> >> The strange thing is that when I jump ahead to an example that I had done >> with image tiles, this works and displays the raster tiles. But I can't seem >> to get it to work with a single image. I also can't get the raster in the >> standard tutorial35 to display. >> >> Does anyone out there have an answer to my problem? >> > >Hi Bob, > >Why did you comment out "STATUS DEFAULT" in the raster layer and >replaced it by "STATUS ON"? This way, the layer will not be displayed, >unless you specifically mention it in the url. > >Jan From e9625730 at STUD3.TUWIEN.AC.AT Sat Oct 2 14:01:38 2004 From: e9625730 at STUD3.TUWIEN.AC.AT (Elisabeth Nolz) Date: Sat, 2 Oct 2004 23:01:38 +0200 Subject: center map on x,y coordinates Message-ID: dear jan, thanks for your help. you were right, there were some problems in my mapfile. now the map can be displayed with "http://localhost/cgi-bin/mapserv?map=map.map&mode=map". but unfortunately it can't be centered with "..&mode=map&mapxy=339989.20+1646.20&scale=20000". your hint to center the map by changing the extent sounds good, but i need to do it with this link, because the coordinates are a result of a database-query. the variables are passed through this link. perhaps someone knows how i could do this. thx, elisabeth. Jan Hartmann schrieb: Elisabeth, There are several reasons why this MapFile cannot work with this URL: - The layer's STATUS is ON, which means that it has to be added to the URL to be visible ("http:?/..&layer=strasse). Only layers with STATUS DEFAULT are always displayed. - the EXTENT is wrong. EXTENT should be set as "x1 y1 x2 y2", where x2 and y2 are both higher than x1/y1. Your y2 is smaller than y1. - the MAPXY parameter seems to have switched x/y compared with the EXTENT. - You give a scale of 20000 in the URL, but you limit the layer between scales 500 and 1000. This means the layer will not be displayed. - The expression in the CLASS statement will only select streets with an ID of exactly *one* letter. If you want to select all streets, the expression has to be /.*/ - Are you sure your streets are polygons? Perhaps you could start with a rudimentary MapFile: set STATUS DEFAULT, comment out MAXSCALE and MINSCALE and set the CLASS expression to /.*/. Then call this with only "map=map.map&mode=map" in the URL. If you still don't see anything, check if the extent of the vector file matches that of the MapFile and if its type is polygon. (e.g. by using ogrinfo). Also try giving the complete path to the shapefile (as specified here it should be: /..../cgi-bin/data/vector/strasse.shp). As soon as you can see a picture of the whole map, you can try to center it on a given coordinate. My way would be to recompute the extent. Say, you want a map centered around 1500/337000. A 200*200m map around this point can ge generated by an extent of 1400 336900 1600 337100. In my experience this is much easier to compute than MAPXY and SCALE. Hope this helps, Jan From w.blanken at GEON.NL Sun Oct 3 07:40:14 2004 From: w.blanken at GEON.NL (Wim Blanken) Date: Sun, 3 Oct 2004 09:40:14 -0500 Subject: Problems with multiple join Message-ID: Hello list, We've had some problems using the CGI Mapserver one-to-many join function to a dbf file. In the wiki there is a good introduction to this functionality but it seems not to work perfectly with the 4.2.x edition of mapserver. I did everything according to this document but I got a mapserver error (mapserv.exe error). After an hour or so I came to the conclusion that the sub-template (the template with the joined data) should not contain carriage returns. So if you type it all in once sentence it works very good but if you use an enter in the code the error is generated. I did not test this on linux...... Is this a bug? Regards, Wim Blanken From greg at FOTONOTES.NET Mon Oct 4 01:53:32 2004 From: greg at FOTONOTES.NET (Greg Elin) Date: Mon, 4 Oct 2004 04:53:32 -0400 Subject: (Newbie) returning lat/long of click? Message-ID: We've installed MapServer and PHP MapScript. A big requirement we have is to return the lat/long of a mouse click on the map into a form for submission. In other words, we are using the map to make it easy for end-users to get a lat/long. In looking through documentation, I found this link: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapscriptSnippet1 Can anyone point me to other relevant documentation regarding returning latitude longitude of a mouse click? Examples or How To's? Thanks!!! Greg Greg Elin greg at fotonotes.net 917-304-3488 865-342-9048 fax http://fotonotes.net - "Because photos have stories.(tm)" blog: http://duhblog.com - "Articulate the obvious." From aborruso at TIN.IT Mon Oct 4 02:14:14 2004 From: aborruso at TIN.IT (andrea) Date: Mon, 4 Oct 2004 11:14:14 +0200 Subject: [layers] parameter Message-ID: Hi all, I have a strange problem problem. The [layers] parameter give me only the last active layer. I have this problem only in my linux server. If I move the same code in windows I have no problem, I have all the active layers. This is my linux mapserver version: MapServer version 4.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Do you know something about this error? Thank you, Andrea From norbert.thieme at ILMENAU.BAW.DE Mon Oct 4 05:25:14 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Mon, 4 Oct 2004 14:25:14 +0200 Subject: Mapscript + PNG: filled symbol has only a partly filled output Message-ID: Hello, I have a simple symbol like in the mapfile reference: SYMBOL NAME 'circle' TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END and I use it in a class in my mapfile: CLASS ... STYLE COLOR 80 80 160 SYMBOL 'circle' SIZE 30 END END The problem is that it is not completly filled - see circle_symbol.png. This only happens with mapscript. In CGI mode the output is fine. I tried GD/PNG and GDAL/PNG as OUTPUTFORMAT but the problem is the same in both results. When I use JPEG as outputfformat it is completly filled. I'm using MS v4.2.2 on Linux with Apache2 and PHP 4.3.6. The outputformat is like: OUTPUTFORMAT NAME png MIMETYPE image/png DRIVER GDAL/PNG # DRIVER GD/PNG EXTENSION png IMAGEMODE PC256 END Do anyone know the effect? Am I doing something wrong or is there another problem? Thanks in advance, Norbert -------------- next part -------------- A non-text attachment was scrubbed... Name: circle_symbol.png Type: image/png Size: 2362 bytes Desc: not available URL: From j.l.h.hartmann at UVA.NL Mon Oct 4 05:50:41 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 4 Oct 2004 14:50:41 +0200 Subject: center map on x,y coordinates In-Reply-To: Message-ID: Elisabeth Nolz wrote: > dear jan, > > thanks for your help. you were right, there were some problems in my mapfile. > now the map can be displayed with > "http://localhost/cgi-bin/mapserv?map=map.map&mode=map". but unfortunately it > can't be centered with "..&mode=map&mapxy=339989.20+1646.20&scale=20000". > > your hint to center the map by changing the extent sounds good, but i need to > do it with this link, because the coordinates are a result of a > database-query. the variables are passed through this link. > > perhaps someone knows how i could do this. > You can put the extent in the url: http://...?map=map.map&mode=map&mapext=1400 336900 1600 337100 I find this easier, but if you want to to this with mapxy, you should put x before y. Also, try out wat the actual scale is for the full map (use the [scale] template, so you have a reference from which to compute the zoom-scale Jan From mapserver at GEOWORLD.DE Mon Oct 4 08:48:48 2004 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Mon, 4 Oct 2004 17:48:48 +0200 Subject: WKT projection definition string Message-ID: Hi List, Does anybody have a OGC WKT projection definition string which is valid to use it with the method setWKTProjection() of PHP mapscript? The one i found PROJCS[ NAD_1983_UTM_Zone_10N , GEOGCS[ GCS_North_American_1983 , DATUM[ D_North_American_1983 , SPHEROID[ GRS_1980 ,6378137,298.257222101]], PRIMEM[ Greenwich ,0], UNIT[ Degree ,0.0174532925199433]], PROJECTION[ Transverse_Mercator ], PARAMETER[ False_Easting ,500000.0], PARAMETER[ False_Northing ,0.0], PARAMETER[ Central_Meridian ,-123.0], PARAMETER[ Scale_Factor ,0.9996], PARAMETER[ Latitude_of_Origin ,0.0], UNIT[ Meter ,1.0]] in the Simple Features specification did not work. The method $layer -> getProjection() returns false. Many thanks Nicol From warmerdam at POBOX.COM Mon Oct 4 07:50:27 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 4 Oct 2004 10:50:27 -0400 Subject: WKT projection definition string In-Reply-To: <1096904928.878.42.camel@emil.intranet.gdv.com> Message-ID: Nicol Hermann wrote: > Hi List, > > Does anybody have a OGC WKT projection definition string which is valid > to use it with the method setWKTProjection() of PHP mapscript? > The one i found > > PROJCS[ NAD_1983_UTM_Zone_10N , > GEOGCS[ GCS_North_American_1983 , > DATUM[ D_North_American_1983 , > SPHEROID[ GRS_1980 ,6378137,298.257222101]], > PRIMEM[ Greenwich ,0], > UNIT[ Degree ,0.0174532925199433]], > PROJECTION[ Transverse_Mercator ], > PARAMETER[ False_Easting ,500000.0], > PARAMETER[ False_Northing ,0.0], > PARAMETER[ Central_Meridian ,-123.0], > PARAMETER[ Scale_Factor ,0.9996], > PARAMETER[ Latitude_of_Origin ,0.0], > UNIT[ Meter ,1.0]] > > in the Simple Features specification did not work. The method > $layer -> getProjection() > returns false. Nicol, Hmm, that worked for me going through a slightly different way to the same low level code. The massaged form of this definition it gave base was as follows. Try that. PROJCS["NAD_1983_UTM_Zone_10N",GEOGCS["GCS_North_American_1983",DATUM["D_North_American_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-123.0],PARAMETER["Scale_Factor",0.9996],PARAMETER["Latitude_of_Origin",0.0],UNIT["Meter",1.0]] Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From karel.vondracek at CENTRUM.CZ Mon Oct 4 07:43:17 2004 From: karel.vondracek at CENTRUM.CZ (SUBSCRIBE MAPSERVER-USERS Karel) Date: Mon, 4 Oct 2004 09:43:17 -0500 Subject: classitem Message-ID: Hello, I'm not good in english language. How I can change the classification of polygon layer by different CLASSITEM. For example I want classify the same layer once by the COLL_1 (first column) and at second time by the COLL_2 (second column). May I use more then one CLASSITEM in the LAYER classification and change it by the URL. Thanks Karel V. From claudio.trevisani at PMMG.MG.GOV.BR Mon Oct 4 10:10:01 2004 From: claudio.trevisani at PMMG.MG.GOV.BR (Claudio Cesar Trevisani) Date: Mon, 4 Oct 2004 12:10:01 -0500 Subject: QueryByAttributes with postgresql Message-ID: Hi, I'm from Brazil. For first, excuse my english!!! When I use the function "querybyattributes" in a shapefile, everthing is OK!!! Wherever, after export my shapefile to postgresql (use shp2pgsql), this function (querybyattributes) don't work...(nothing appear); This is my php code: $oLayBairro = $map->getLayerByName("lotes"); $expressao = "entityid=".$GET_["PARCEL-NUMBER"]; echo $expressao; if (($oLayBairro->querybyattributes("entityid",$expressao, MS_SINGLE))==MS_SUCCESS){ echo "passou"; $oResult = $oLayBairro->getResult(0); $oLayBairro->open(); //echo $oLayBairro->getclass(0); $oZoomTo = $oLayBairro->getShape(-1,$oResult->shapeindex); $nminx = $oZoomTo->bounds->minx - 100; $nminy = $oZoomTo->bounds->miny - 100; $nmaxx = $oZoomTo->bounds->maxx + 100; $nmaxy = $oZoomTo->bounds->maxy + 100; $map->setextent($nminx, $nminy, $nmaxx, $nmaxy); Somebody Help me, please. Claudio C. Trevisani. From mandhare at STATE.PA.US Mon Oct 4 10:24:07 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Mon, 4 Oct 2004 12:24:07 -0500 Subject: Map files creation prerequisits Message-ID: Hi! I wan to create a Map file. I have installed mapserv.exe and I'm using IIS on Windows2000. I want to know about what else do i need to create a map file and where should i edit it. Can i edit the map file using notepad or there is some tool which i could use to build a map file? And is it neccessary to have php to work with map files and mapserver software? Thank you, Manjiri From lfilak at MEDINACO.ORG Mon Oct 4 10:52:20 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 4 Oct 2004 13:52:20 -0400 Subject: Map files creation prerequisits Message-ID: The following message was sent by Manjiri Andhare on Mon, 4 Oct 2004 12:24:07 -0500. > Hi! > I wan to create a Map file. I have installed mapserv.exe and I'm using IIS > on Windows2000. I want to know about what else do i need to create a map > file and where should i edit it. Can i edit the map file using notepad or > there is some tool which i could use to build a map file? And is it > neccessary to have php to work with map files and mapserver software? > Thank you, > Manjiri Manjiri, "what else do i need to create a map"? You could start with the demo mapfile (http://mapserver.gis.umn.edu/dload.html). "where should i edit it"? I think the best location is the same directory as the mapserv.exe. "Can i edit the map file using notepad"? Yes. "is some tool which i could use to build a map file"? Yes, AveiN & gix-export_tool are a couple tools I can think of, I think there are also some syntax plugins for various text editors. http://sourceforge.net/projects/avein/ http://gix.sourceforge.net/ http://mapserver.gis.umn.edu/contributed.html "is it neccessary to have php to work with map files and mapserver software"? No. http://mapserver.gis.umn.edu/doc42/mapfile-reference.html http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?QuickstartGuide HTH Lowell From lfilak at MEDINACO.ORG Mon Oct 4 11:04:28 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 4 Oct 2004 14:04:28 -0400 Subject: Fwd: RE: [UMN_MAPSERVER-USERS] Map files creation prerequisits Message-ID: > Yes, I stared with the "workshop" demo before couple of days, but its > not working!! I tries running the demo for first 4 options from the > list, and when I click initialize button, File Open/Save dialogue box > comes up. And for the last option, I get the page, but without map and > legend, I see the red boxes instead of the map and legend. > I have given the permission for the mapserv.exe to execute, and I > checked it for index.html and other files and folders(including script > folder in c:/Inetpub/script for execution permission. And I don't know > why the application is not running after making changes to hidden > variables!! If you have any idea about it, please guide me! > Cheers!! > Manjiri > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Lowell Filak > Sent: Monday, October 04, 2004 1:52 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Map files creation prerequisits > > The following message was sent by Manjiri Andhare > on Mon, 4 Oct 2004 12:24:07 -0500. > > > Hi! > > I wan to create a Map file. I have installed mapserv.exe and I'm using > IIS > > on Windows2000. I want to know about what else do i need to create a > map > > file and where should i edit it. Can i edit the map file using notepad > or > > there is some tool which i could use to build a map file? And is it > > neccessary to have php to work with map files and mapserver software? > > Thank you, > > Manjiri > > Manjiri, > > "what else do i need to create a map"? > > You could start with the demo mapfile > (http://mapserver.gis.umn.edu/dload.html). > > "where should i edit it"? > > I think the best location is the same directory as the mapserv.exe. > > "Can i edit the map file using notepad"? > > Yes. > > "is some tool which i could use to build a map file"? > > Yes, AveiN & gix-export_tool are a couple tools I can think of, I think > there are also some syntax plugins for various text editors. > http://sourceforge.net/projects/avein/ > http://gix.sourceforge.net/ > http://mapserver.gis.umn.edu/contributed.html > > "is it neccessary to have php to work with map files and mapserver > software"? > > No. > http://mapserver.gis.umn.edu/doc42/mapfile-reference.html > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?QuickstartGuide > > HTH > > Lowell From dylan at IICI.NO-IP.ORG Mon Oct 4 11:18:18 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Mon, 4 Oct 2004 11:18:18 -0700 Subject: gdalindex question Message-ID: Greetings! I have a pile of DOQQ images that i would like to use with my map, and wanted to use gdalindex to setup an efficient way for these images to be loaded. note that everything is in the same projection. after running: gdaltindex doqq_index.shp *.tiff i am left with a shapfile with entries for all of the images.... seems ok. ...looking at the output in QGIS: http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg ...all seems fine (except for a few mssing images) however mapserver is not rendering the tiff files based on the index: http://169.237.35.250/~dylan/temp/tile_index.png here is my layer defs in my map file: ----------------------------snip---------------------------- LAYER NAME "DOQQ_index" TYPE RASTER TILEINDEX "imagery/doqq/tiled/doqq_index.shp" TILEITEM "Location" #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" STATUS DEFAULT #remove the black (no_data) pixels! CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] == 0 ) COLOR 255 255 255 END #render the rest of the pixel values! CLASS NAME "DOQQ" END END ----------------------------snip---------------------------- any ideas>? thanks in advance!! Dylan Beaudette Soil Science Grad Group University of California at Davis From sobomsawin at KASSINI.COM Mon Oct 4 11:27:41 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 4 Oct 2004 14:27:41 -0400 Subject: [UMN_MAPSERVER-USERS] center map on x,y coordinates In-Reply-To: <41614721.6040000@uva.nl> Message-ID: By the way, I think you need a PROJECTION block in your map file if you want to use meters coordinates... My guess... Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Jan Hartmann Envoy??: 4 octobre 2004 08:51 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] center map on x,y coordinates Elisabeth Nolz wrote: > dear jan, > > thanks for your help. you were right, there were some problems in my mapfile. > now the map can be displayed with > "http://localhost/cgi-bin/mapserv?map=map.map&mode=map". but unfortunately it > can't be centered with "..&mode=map&mapxy=339989.20+1646.20&scale=20000". > > your hint to center the map by changing the extent sounds good, but i need to > do it with this link, because the coordinates are a result of a > database-query. the variables are passed through this link. > > perhaps someone knows how i could do this. > You can put the extent in the url: http://...?map=map.map&mode=map&mapext=1400 336900 1600 337100 I find this easier, but if you want to to this with mapxy, you should put x before y. Also, try out wat the actual scale is for the full map (use the [scale] template, so you have a reference from which to compute the zoom-scale Jan --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.771 / Virus Database: 518 - Release Date: 2004-09-28 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.771 / Virus Database: 518 - Release Date: 2004-09-28 From ed at TOPOZONE.COM Mon Oct 4 11:37:37 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 4 Oct 2004 14:37:37 -0400 Subject: gdalindex question In-Reply-To: <200410041118.18040.dylan@iici.no-ip.org> Message-ID: Dylan - Thanks for asking a well-documented question! Your MapServer output looks like you're using the tile index layer as a POLYGON layer, and doesn't seem to match up with the map file fragment you post (i.e. there's no TYPE POLYGON layer with labels there). The filenames that are appearing as labels look a little funny - are you sure those are the correct filenames? Also, you're causing all black pixels to be displayed as white, which won't "remove" them. You may want to use the OFFSITE statement to cause black pixels to be transparent, letting overlapped data show through. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com At 02:18 PM 10/4/2004, Dylan Beaudette wrote: >Greetings! > >I have a pile of DOQQ images that i would like to use with my map, and wanted >to use gdalindex to setup an efficient way for these images to be loaded. > >note that everything is in the same projection. > >after running: >gdaltindex doqq_index.shp *.tiff > >i am left with a shapfile with entries for all of the images.... seems ok. > >...looking at the output in QGIS: >http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg >...all seems fine (except for a few mssing images) > >however mapserver is not rendering the tiff files based on the index: >http://169.237.35.250/~dylan/temp/tile_index.png > >here is my layer defs in my map file: >----------------------------snip---------------------------- >LAYER > NAME "DOQQ_index" > TYPE RASTER > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > TILEITEM "Location" > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > STATUS DEFAULT > > #remove the black (no_data) pixels! > CLASSITEM "[pixel]" > CLASS > EXPRESSION ([pixel] == 0 ) > COLOR 255 255 255 > END > > #render the rest of the pixel values! > CLASS > NAME "DOQQ" > END >END >----------------------------snip---------------------------- > > >any ideas>? > >thanks in advance!! > >Dylan Beaudette >Soil Science Grad Group >University of California at Davis From sobomsawin at KASSINI.COM Mon Oct 4 11:53:31 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 4 Oct 2004 14:53:31 -0400 Subject: [UMN_MAPSERVER-USERS] QueryByAttributes with postgresql In-Reply-To: Message-ID: Claudio, Take a look at the case of your column name... Most of the time, the shp2pgsql change the case of the columns name and you must adjust your code in consequence... Hope this will help. Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Claudio Cesar Trevisani Envoy??: 4 octobre 2004 13:10 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] QueryByAttributes with postgresql Hi, I'm from Brazil. For first, excuse my english!!! When I use the function "querybyattributes" in a shapefile, everthing is OK!!! Wherever, after export my shapefile to postgresql (use shp2pgsql), this function (querybyattributes) don't work...(nothing appear); This is my php code: $oLayBairro = $map->getLayerByName("lotes"); $expressao = "entityid=".$GET_["PARCEL-NUMBER"]; echo $expressao; if (($oLayBairro->querybyattributes("entityid",$expressao, MS_SINGLE))==MS_SUCCESS){ echo "passou"; $oResult = $oLayBairro->getResult(0); $oLayBairro->open(); //echo $oLayBairro->getclass(0); $oZoomTo = $oLayBairro->getShape(-1,$oResult->shapeindex); $nminx = $oZoomTo->bounds->minx - 100; $nminy = $oZoomTo->bounds->miny - 100; $nmaxx = $oZoomTo->bounds->maxx + 100; $nmaxy = $oZoomTo->bounds->maxy + 100; $map->setextent($nminx, $nminy, $nmaxx, $nmaxy); Somebody Help me, please. Claudio C. Trevisani. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.771 / Virus Database: 518 - Release Date: 2004-09-28 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.771 / Virus Database: 518 - Release Date: 2004-09-28 From jerl.simpso at GMAIL.COM Mon Oct 4 12:58:38 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Mon, 4 Oct 2004 14:58:38 -0500 Subject: Editing shape files...or altering output. In-Reply-To: <71E37EF6B7DCC1499CEA0316A256832801D4B8E2@loki.wc.globexplorer.net> Message-ID: So where in the wiki would something like this go? On Fri, 1 Oct 2004 14:25:18 -0700, Gregory S. Williamson wrote: > Agreed ! > > Greg Williamson > DBA > GlobeXplorer LLC > > > > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at SWOODBRIDGE.COM] > Sent: Fri 10/1/2004 2:10 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. > Yes, this would be great, send it to me. Why not post it to the wiki! > > -Steve > > Jerl Simpson wrote: > > > Hello, > > > > I don't know if anyone is interested, but I have written a Perl script > > to perform the function I was looking for earlier. > > If you like, I can send it to you, it's also very short, so I could > > post the code to the list if requested. > > > > It works like: > > > > dbfreplace.pl dbfile field "search string" "replace string" > > > > > > Let me know if you are interested in such a thing. > > > > Jerl > > > > On Fri, 1 Oct 2004 11:46:07 -0500, Jerl Simpson wrote: > > > >>I notice in the shapelib library, there are example programs to add > >>records to the dbf file (dbfadd) I believe. > >>That might help you out. > >> > >>Jerl > >> > >> > >> > >> > >>On Fri, 1 Oct 2004 11:52:41 -0400, MapServer List > >> wrote: > >> > >>>Hello list: > >>> > >>>I need to do something similar, except I need to add a record to > >>>the DBF and save it, using PHP/MapScript. Would I use the same > >>>steps? Or would it be easier to do it in a DBF editor of some sort? > >>> > >>>My platform is Linux 9/PHP/MapServer 4.2.1. Thanks. > >>> > >>>Joel > >>> > >>> > >>> > >>>----- Original Message ----- > >>>From: "Stephen Woodbridge" > >>>To: > >>>Sent: Friday, October 01, 2004 11:08 AM > >>>Subject: Re: [UMN_MAPSERVER-USERS] Editing shape files...or altering output. > >>> > >>> > >>>>You can do this in Perl using Geo::ShapeFile or Geo::Shapelib which > >>>>might be the easiest way to do this. Your plan below is exactly how to > >>>>do it, but Perl might be easier to write if you are familiar with it. > >>>> > >>>>I am not aware of any generic utilities that do this. > >>>> > >>>>-Steve W. > >>>> > >>>>Jerl Simpson wrote: > >>>> > >>>> > >>>>>Hello, > >>>>> > >>>>>I'm having a display issue that I need to work out. I am wondering > >>>>>the best way to go about it. Here's the issue. > >>>>>I have an ESRI shape file with US roads. In this file, the US > >>>>>highways are listed as, "United States Highway 400". When you have a > >>>>>lot of those on the map, it gets very messy. I would like to replace > >>>>>"United States Highway 400" with "US 400" or even "US Hwy 400". > >>>>>Is it best to change the .dbf file? Or can I do this on the fly? > >>>>>I have no idea how to do this on the fly, but here are my thoughts on > >>>>>the dbf file. > >>>>> > >>>>>Use shapelib to open and read the dbf file, read in the values, > >>>>>compare, change if needed, then spit out to a new dbf file. > >>>>>Currently I would work at writing something to do this, after much > >>>>>reading of the documentation. > >>>>>Has anyone done this before? I suspect there might be a utility to do > >>>>>just this type of thing. > >>>>> > >>>>>Thanks in advance, > >>>>> > >>>>>Jerl > >>>>> > >>>> > > > From dylan at IICI.NO-IP.ORG Mon Oct 4 13:45:27 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Mon, 4 Oct 2004 13:45:27 -0700 Subject: gdalindex question In-Reply-To: <6.1.2.0.0.20041004143437.01dd1e10@strabo11> Message-ID: Ed- Thanks for the quick reply! The mapserver output looks a litte funny because I am displaying the tile index as a polygon layer, so that I know that it actually exists, and is projected corectly. The labels do look like strange file names, but they are indeed correct... when i attempt to access the rasters individually: DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" ...it works fine: http://169.237.35.250/~dylan/temp/tile_index_with_1_raster.jpg ...but the rasters are not loaded via the TILEINDEX method. here is the updated layer definition (thanks for the OFFSITE idea!!) ----------------snip------------------ LAYER NAME "DOQQ_index" TYPE RASTER TILEINDEX "imagery/doqq/tiled/doqq_index.shp" TILEITEM "Location" #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" STATUS DEFAULT #ignore black pixels (treat as transparent) OFFSITE 0 0 0 #render the rest of the pixel values! CLASS NAME "DOQQ" END END ----------------snip------------------ ...still no success with the rasters this way... any ideas? thanks again! Dylan On Monday 04 October 2004 11:37 am, Ed McNierney wrote: > Dylan - > > Thanks for asking a well-documented question! > > Your MapServer output looks like you're using the tile index layer as a > POLYGON layer, and doesn't seem to match up with the map file fragment you > post (i.e. there's no TYPE POLYGON layer with labels there). The filenames > that are appearing as labels look a little funny - are you sure those are > the correct filenames? > > Also, you're causing all black pixels to be displayed as white, which won't > "remove" them. You may want to use the OFFSITE statement to cause black > pixels to be transparent, letting overlapped data show through. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com > > At 02:18 PM 10/4/2004, Dylan Beaudette wrote: > >Greetings! > > > >I have a pile of DOQQ images that i would like to use with my map, and > > wanted to use gdalindex to setup an efficient way for these images to be > > loaded. > > > >note that everything is in the same projection. > > > >after running: > >gdaltindex doqq_index.shp *.tiff > > > >i am left with a shapfile with entries for all of the images.... seems ok. > > > >...looking at the output in QGIS: > >http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg > >...all seems fine (except for a few mssing images) > > > >however mapserver is not rendering the tiff files based on the index: > >http://169.237.35.250/~dylan/temp/tile_index.png > > > >here is my layer defs in my map file: > >----------------------------snip---------------------------- > >LAYER > > NAME "DOQQ_index" > > TYPE RASTER > > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > > TILEITEM "Location" > > > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > STATUS DEFAULT > > > > #remove the black (no_data) pixels! > > CLASSITEM "[pixel]" > > CLASS > > EXPRESSION ([pixel] == 0 ) > > COLOR 255 255 255 > > END > > > > #render the rest of the pixel values! > > CLASS > > NAME "DOQQ" > > END > >END > >----------------------------snip---------------------------- > > > > > >any ideas>? > > > >thanks in advance!! > > > >Dylan Beaudette > >Soil Science Grad Group > >University of California at Davis From keon at NACSE.ORG Mon Oct 4 13:50:32 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Mon, 4 Oct 2004 13:50:32 -0700 Subject: gdalindex question In-Reply-To: <200410041345.27675.dylan@iici.no-ip.org> Message-ID: Hi Dylan :-) After upgrading to 4.2.x or so, I found I had to use absolute paths for tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX declaration. So, try: TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" and see if that makes a difference. Also, are you sure it's TILEITEM "Location" instead of "location"? It may be case sensitive, I can't remember. --Dylan On 10/04/2004 01:45 PM, Dylan Beaudette wrote: > Ed- > > Thanks for the quick reply! > > The mapserver output looks a litte funny because I am displaying the tile > index as a polygon layer, so that I know that it actually exists, and is > projected corectly. The labels do look like strange file names, but they are > indeed correct... > > when i attempt to access the rasters individually: > DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > ...it works fine: > http://169.237.35.250/~dylan/temp/tile_index_with_1_raster.jpg > > ...but the rasters are not loaded via the TILEINDEX method. > > here is the updated layer definition (thanks for the OFFSITE idea!!) > ----------------snip------------------ > LAYER > NAME "DOQQ_index" > TYPE RASTER > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > TILEITEM "Location" > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > STATUS DEFAULT > > #ignore black pixels (treat as transparent) > OFFSITE 0 0 0 > > > #render the rest of the pixel values! > CLASS > NAME "DOQQ" > END > END > > ----------------snip------------------ > > ...still no success with the rasters this way... > > any ideas? > > thanks again! > > Dylan > > > On Monday 04 October 2004 11:37 am, Ed McNierney wrote: > >>Dylan - >> >>Thanks for asking a well-documented question! >> >>Your MapServer output looks like you're using the tile index layer as a >>POLYGON layer, and doesn't seem to match up with the map file fragment you >>post (i.e. there's no TYPE POLYGON layer with labels there). The filenames >>that are appearing as labels look a little funny - are you sure those are >>the correct filenames? >> >>Also, you're causing all black pixels to be displayed as white, which won't >>"remove" them. You may want to use the OFFSITE statement to cause black >>pixels to be transparent, letting overlapped data show through. >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com >> >>At 02:18 PM 10/4/2004, Dylan Beaudette wrote: >> >>>Greetings! >>> >>>I have a pile of DOQQ images that i would like to use with my map, and >>>wanted to use gdalindex to setup an efficient way for these images to be >>>loaded. >>> >>>note that everything is in the same projection. >>> >>>after running: >>>gdaltindex doqq_index.shp *.tiff >>> >>>i am left with a shapfile with entries for all of the images.... seems ok. >>> >>>...looking at the output in QGIS: >>>http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg >>>...all seems fine (except for a few mssing images) >>> >>>however mapserver is not rendering the tiff files based on the index: >>>http://169.237.35.250/~dylan/temp/tile_index.png >>> >>>here is my layer defs in my map file: >>>----------------------------snip---------------------------- >>>LAYER >>> NAME "DOQQ_index" >>> TYPE RASTER >>> TILEINDEX "imagery/doqq/tiled/doqq_index.shp" >>> TILEITEM "Location" >>> >>> #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" >>> STATUS DEFAULT >>> >>> #remove the black (no_data) pixels! >>> CLASSITEM "[pixel]" >>> CLASS >>> EXPRESSION ([pixel] == 0 ) >>> COLOR 255 255 255 >>> END >>> >>> #render the rest of the pixel values! >>> CLASS >>> NAME "DOQQ" >>> END >>>END >>>----------------------------snip---------------------------- >>> >>> >>>any ideas>? >>> >>>thanks in advance!! >>> >>>Dylan Beaudette >>>Soil Science Grad Group >>>University of California at Davis -- ************************************************************** Dylan Keon - GIS Coordinator Northwest Alliance for Computational Science and Engineering Oregon State University Corvallis, OR 97331 keon at nacse.org voice: 541-737-6608 fax: 541-737-6609 http://gis.nacse.org ************************************************************** From dylan at IICI.NO-IP.ORG Mon Oct 4 13:58:45 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Mon, 4 Oct 2004 13:58:45 -0700 Subject: gdalindex question In-Reply-To: <4161B798.8010201@nacse.org> Message-ID: Not many people out there with this name! Nice to meet you. ...well i tried your suggestions, but no change in the output. here is my layer defs now: --------------------------- LAYER NAME "DOQQ_index" TYPE RASTER TILEINDEX "/home/dylan/public_html/mapserver/mapunit/data/imagery/doqq/tiled/doqq_index.shp" (line wrapped by email client) TILEITEM "location" #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" STATUS DEFAULT #ignore black pixels (treat as transparent) OFFSITE 0 0 0 #render the rest of the pixel values! CLASS NAME "DOQQ" END END ------------------------------ not sure what to try next, but it must be something simple! thanks, Dylan On Monday 04 October 2004 01:50 pm, Dylan Keon wrote: > Hi Dylan :-) > > After upgrading to 4.2.x or so, I found I had to use absolute paths for > tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX > declaration. So, try: > > TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" > > and see if that makes a difference. Also, are you sure it's TILEITEM > "Location" instead of "location"? It may be case sensitive, I can't > remember. > > --Dylan > > On 10/04/2004 01:45 PM, Dylan Beaudette wrote: > > Ed- > > > > Thanks for the quick reply! > > > > The mapserver output looks a litte funny because I am displaying the tile > > index as a polygon layer, so that I know that it actually exists, and is > > projected corectly. The labels do look like strange file names, but they > > are indeed correct... > > > > when i attempt to access the rasters individually: > > DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > > > ...it works fine: > > http://169.237.35.250/~dylan/temp/tile_index_with_1_raster.jpg > > > > ...but the rasters are not loaded via the TILEINDEX method. > > > > here is the updated layer definition (thanks for the OFFSITE idea!!) > > ----------------snip------------------ > > LAYER > > NAME "DOQQ_index" > > TYPE RASTER > > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > > TILEITEM "Location" > > > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > STATUS DEFAULT > > > > #ignore black pixels (treat as transparent) > > OFFSITE 0 0 0 > > > > > > #render the rest of the pixel values! > > CLASS > > NAME "DOQQ" > > END > > END > > > > ----------------snip------------------ > > > > ...still no success with the rasters this way... > > > > any ideas? > > > > thanks again! > > > > Dylan > > > > On Monday 04 October 2004 11:37 am, Ed McNierney wrote: > >>Dylan - > >> > >>Thanks for asking a well-documented question! > >> > >>Your MapServer output looks like you're using the tile index layer as a > >>POLYGON layer, and doesn't seem to match up with the map file fragment > >> you post (i.e. there's no TYPE POLYGON layer with labels there). The > >> filenames that are appearing as labels look a little funny - are you > >> sure those are the correct filenames? > >> > >>Also, you're causing all black pixels to be displayed as white, which > >> won't "remove" them. You may want to use the OFFSITE statement to cause > >> black pixels to be transparent, letting overlapped data show through. > >> > >> - Ed > >> > >>Ed McNierney > >>President and Chief Mapmaker > >>TopoZone.com > >> > >>At 02:18 PM 10/4/2004, Dylan Beaudette wrote: > >>>Greetings! > >>> > >>>I have a pile of DOQQ images that i would like to use with my map, and > >>>wanted to use gdalindex to setup an efficient way for these images to be > >>>loaded. > >>> > >>>note that everything is in the same projection. > >>> > >>>after running: > >>>gdaltindex doqq_index.shp *.tiff > >>> > >>>i am left with a shapfile with entries for all of the images.... seems > >>> ok. > >>> > >>>...looking at the output in QGIS: > >>>http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg > >>>...all seems fine (except for a few mssing images) > >>> > >>>however mapserver is not rendering the tiff files based on the index: > >>>http://169.237.35.250/~dylan/temp/tile_index.png > >>> > >>>here is my layer defs in my map file: > >>>----------------------------snip---------------------------- > >>>LAYER > >>> NAME "DOQQ_index" > >>> TYPE RASTER > >>> TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > >>> TILEITEM "Location" > >>> > >>> #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > >>> STATUS DEFAULT > >>> > >>> #remove the black (no_data) pixels! > >>> CLASSITEM "[pixel]" > >>> CLASS > >>> EXPRESSION ([pixel] == 0 ) > >>> COLOR 255 255 255 > >>> END > >>> > >>> #render the rest of the pixel values! > >>> CLASS > >>> NAME "DOQQ" > >>> END > >>>END > >>>----------------------------snip---------------------------- > >>> > >>> > >>>any ideas>? > >>> > >>>thanks in advance!! > >>> > >>>Dylan Beaudette > >>>Soil Science Grad Group > >>>University of California at Davis From David.Fawcett at STATE.MN.US Mon Oct 4 13:56:45 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Mon, 4 Oct 2004 15:56:45 -0500 Subject: gdalindex question Message-ID: I was wondering if you had a SHAPEPATH in the MAP object. Does your app know where to look for the images listed in your tileindex? David. David J. Fawcett MN Office of Environmental Assistance >>> Dylan Keon 10/4/2004 3:50:32 PM >>> Hi Dylan :-) After upgrading to 4.2.x or so, I found I had to use absolute paths for tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX declaration. So, try: TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" and see if that makes a difference. Also, are you sure it's TILEITEM "Location" instead of "location"? It may be case sensitive, I can't remember. --Dylan On 10/04/2004 01:45 PM, Dylan Beaudette wrote: > Ed- > > Thanks for the quick reply! > > The mapserver output looks a litte funny because I am displaying the tile > index as a polygon layer, so that I know that it actually exists, and is > projected corectly. The labels do look like strange file names, but they are > indeed correct... > > when i attempt to access the rasters individually: > DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > ...it works fine: > http://169.237.35.250/~dylan/temp/tile_index_with_1_raster.jpg > > ...but the rasters are not loaded via the TILEINDEX method. > > here is the updated layer definition (thanks for the OFFSITE idea!!) > ----------------snip------------------ > LAYER > NAME "DOQQ_index" > TYPE RASTER > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > TILEITEM "Location" > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > STATUS DEFAULT > > #ignore black pixels (treat as transparent) > OFFSITE 0 0 0 > > > #render the rest of the pixel values! > CLASS > NAME "DOQQ" > END > END > > ----------------snip------------------ > > ...still no success with the rasters this way... > > any ideas? > > thanks again! > > Dylan > > > On Monday 04 October 2004 11:37 am, Ed McNierney wrote: > >>Dylan - >> >>Thanks for asking a well-documented question! >> >>Your MapServer output looks like you're using the tile index layer as a >>POLYGON layer, and doesn't seem to match up with the map file fragment you >>post (i.e. there's no TYPE POLYGON layer with labels there). The filenames >>that are appearing as labels look a little funny - are you sure those are >>the correct filenames? >> >>Also, you're causing all black pixels to be displayed as white, which won't >>"remove" them. You may want to use the OFFSITE statement to cause black >>pixels to be transparent, letting overlapped data show through. >> >> - Ed >> >>Ed McNierney >>President and Chief Mapmaker >>TopoZone.com >> >>At 02:18 PM 10/4/2004, Dylan Beaudette wrote: >> >>>Greetings! >>> >>>I have a pile of DOQQ images that i would like to use with my map, and >>>wanted to use gdalindex to setup an efficient way for these images to be >>>loaded. >>> >>>note that everything is in the same projection. >>> >>>after running: >>>gdaltindex doqq_index.shp *.tiff >>> >>>i am left with a shapfile with entries for all of the images.... seems ok. >>> >>>...looking at the output in QGIS: >>>http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg >>>...all seems fine (except for a few mssing images) >>> >>>however mapserver is not rendering the tiff files based on the index: >>>http://169.237.35.250/~dylan/temp/tile_index.png >>> >>>here is my layer defs in my map file: >>>----------------------------snip---------------------------- >>>LAYER >>> NAME "DOQQ_index" >>> TYPE RASTER >>> TILEINDEX "imagery/doqq/tiled/doqq_index.shp" >>> TILEITEM "Location" >>> >>> #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" >>> STATUS DEFAULT >>> >>> #remove the black (no_data) pixels! >>> CLASSITEM "[pixel]" >>> CLASS >>> EXPRESSION ([pixel] == 0 ) >>> COLOR 255 255 255 >>> END >>> >>> #render the rest of the pixel values! >>> CLASS >>> NAME "DOQQ" >>> END >>>END >>>----------------------------snip---------------------------- >>> >>> >>>any ideas>? >>> >>>thanks in advance!! >>> >>>Dylan Beaudette >>>Soil Science Grad Group >>>University of California at Davis -- ************************************************************** Dylan Keon - GIS Coordinator Northwest Alliance for Computational Science and Engineering Oregon State University Corvallis, OR 97331 keon at nacse.org voice: 541-737-6608 fax: 541-737-6609 http://gis.nacse.org ************************************************************** From keon at NACSE.ORG Mon Oct 4 14:21:34 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Mon, 4 Oct 2004 14:21:34 -0700 Subject: gdalindex question In-Reply-To: <200410041358.45781.dylan@iici.no-ip.org> Message-ID: On 10/04/2004 01:58 PM, Dylan Beaudette wrote: > Not many people out there with this name! > > Nice to meet you. Likewise! > ...well i tried your suggestions, but no change in the output. > > here is my layer defs now: > --------------------------- > LAYER > NAME "DOQQ_index" > TYPE RASTER > TILEINDEX > "/home/dylan/public_html/mapserver/mapunit/data/imagery/doqq/tiled/doqq_index.shp" > (line wrapped by email client) > > TILEITEM "location" > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > STATUS DEFAULT > > #ignore black pixels (treat as transparent) > OFFSITE 0 0 0 > > > #render the rest of the pixel values! > CLASS > NAME "DOQQ" > END > END > ------------------------------ > > not sure what to try next, but it must be something simple! For the moment, you might as well comment out OFFSITE and your CLASS block to see if either of those makes any difference. I doubt you need that CLASS block in there anyway. Here is a simple tileindex layer def that works for me: LAYER NAME "drg_index" STATUS ON TYPE RASTER OFFSITE 0 0 0 TILEINDEX "/a1/data/or/shp/drg_index.shp" TILEITEM "location" END Did you compile mapserver using the --with-gdal and --without-tiff options? Have you been able to display single georeferenced TIFFs? --Dylan From steve.lime at DNR.STATE.MN.US Mon Oct 4 17:21:57 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 4 Oct 2004 19:21:57 -0500 Subject: Problems with multiple join Message-ID: Wim: Hmmm... The code was written and tested on a Mac and has been used on Linux. Can you package up your data as a test case? Steve >>> Wim Blanken 10/03/04 9:40 AM >>> Hello list, We've had some problems using the CGI Mapserver one-to-many join function to a dbf file. In the wiki there is a good introduction to this functionality but it seems not to work perfectly with the 4.2.x edition of mapserver. I did everything according to this document but I got a mapserver error (mapserv.exe error). After an hour or so I came to the conclusion that the sub-template (the template with the joined data) should not contain carriage returns. So if you type it all in once sentence it works very good but if you use an enter in the code the error is generated. I did not test this on linux...... Is this a bug? Regards, Wim Blanken From gis at UNDPHAIS.ORG.NP Mon Oct 4 20:48:45 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Tue, 5 Oct 2004 09:33:45 +0545 Subject: Shapefile questions In-Reply-To: <20041001124221.551A41A65A5@mail.medinaco.org> Message-ID: On Fri, 1 Oct 2004 08:42:44 -0400, Lowell Filak wrote: > The following message was sent by Sandeep Bashyal > on Fri, 1 Oct 2004 10:35:33 +0545. > >> Hello, >> >> I have the following questions about shapefiles and mapserver: >> >> 1. Does Mapserver support "merged" polygons in shapefiles? E.g. arcview >> allows you to merge two or more NON-ADJACENT polygons, such that they >> are >> treated as a single shape and point to the same rows in the attribute >> table. I was wondering if mapserver supports such shapefiles with >> merged >> non-adjacent polygons. >> >> 2. Is there a way to assign shapeindex for shapes in a layer from one of >> the fields in the attribute table (like in the mapfile or by dnamically >> adding a layer with phpmapscript)? I have a layer with over 4000 >> polygons >> whose attribute ID's do not correspond to the shapeindex returned from >> query results. I need the attribute ID's to link to a external database >> and display results. >> >> Any advice on an easy way to write shapeindexes into a field in the >> attribute table would also be helpful. >> >> Thanks in advance. >> >> -- >> Sandeep Bashyal > > Sandeep, > > I don't know about #1. I, think, technically because a shape is not > actually defined as a polygon it could actually be composed of many > polygons. However there are many on this list more qualified to answer > this. > For #2. If the records in the attribute table you are trying to relate > have a 1:1 relationship with the shapes in the shapefile then you may be > able to add the shape index to the attribute table as a sequential > number If the attribute records are loaded in the same sequence as the > shapes occur. The more probable solution is have the ID as a field in > the DBF that is associated with the SHP file and use the shape index to > extract the ID from the DBF and then extract the attributes from the > table. > > HTH > > Lowell > Thanks for the response. I was able to get the shapeindex as a feild in the attribute table. I'm thinking of creating an sql table containing the shapeindex and the corresponding ID (or using the dbf file itself) and extracting the the corresponding ID's to display query results from an external database. Is there an easier way to do this? Can I get attribute values back into php directly from query results? -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From gis at UNDPHAIS.ORG.NP Mon Oct 4 21:17:05 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Tue, 5 Oct 2004 10:02:05 +0545 Subject: Shapefile questions In-Reply-To: Message-ID: On Tue, 05 Oct 2004 09:33:32 +0545, Sandeep Bashyal wrote: > On Fri, 1 Oct 2004 08:20:37 -0400, Stephen Woodbridge > wrote: > >> Sandeep Bashyal wrote: > >>> 2. Is there a way to assign shapeindex for shapes in a layer from one >>> of >>> the fields in the attribute table (like in the mapfile or by >>> dynamically >>> adding a layer with phpmapscript)? I have a layer with over 4000 >>> polygons >>> whose attribute ID's do not correspond to the shapeindex returned from >>> query results. I need the attribute ID's to link to a external database >>> and display results. >> >> You can access and attribute in a query and in fact I think you can do a >> join of any attribute in a query result with and external database. Read >> up on JOIN in the mapfile reference. > > Thanks for the help. I was initially thinking of using JOIN databases > and displaying query results using templates. But the table I need to > join to is a result of an sql query of a time series database and the > table name changes depending on the sql query (eg. > table_01_2004_05_2004). There was no reference in the phpmapscript > reference to modifying the JOIN object of a map. So I will be using php > for displaying all query results. For this I need an "ID" value from the > dbf file of the shapefile. Presently I'm thinking of creating a table > containing the shapeindex and the corresponding "ID" and extracting this > ID using the shapeindex returned by query results. Is there an easier > way to do this? Can I access dbf file attribute values from php without > using templates? > > Thanks. > Please disregard the above post. I can get the ID using $shape->values["ID"]. I should have read the docs more carefully. Thanks for your help again. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From gis at UNDPHAIS.ORG.NP Mon Oct 4 21:18:41 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Tue, 5 Oct 2004 10:03:41 +0545 Subject: Shapefile questions In-Reply-To: Message-ID: On Tue, 5 Oct 2004 09:33:45 +0545, Sandeep Bashyal wrote: > On Fri, 1 Oct 2004 08:42:44 -0400, Lowell Filak > wrote: > >> The following message was sent by Sandeep Bashyal >> on Fri, 1 Oct 2004 10:35:33 +0545. >> >>> Hello, >>> >>> I have the following questions about shapefiles and mapserver: >>> >>> 1. Does Mapserver support "merged" polygons in shapefiles? E.g. arcview >>> allows you to merge two or more NON-ADJACENT polygons, such that they >>> are >>> treated as a single shape and point to the same rows in the attribute >>> table. I was wondering if mapserver supports such shapefiles with >>> merged >>> non-adjacent polygons. >>> >>> 2. Is there a way to assign shapeindex for shapes in a layer from one >>> of >>> the fields in the attribute table (like in the mapfile or by dnamically >>> adding a layer with phpmapscript)? I have a layer with over 4000 >>> polygons >>> whose attribute ID's do not correspond to the shapeindex returned from >>> query results. I need the attribute ID's to link to a external database >>> and display results. >>> >>> Any advice on an easy way to write shapeindexes into a field in the >>> attribute table would also be helpful. >>> >>> Thanks in advance. >>> >>> -- >>> Sandeep Bashyal >> >> Sandeep, >> >> I don't know about #1. I, think, technically because a shape is not >> actually defined as a polygon it could actually be composed of many >> polygons. However there are many on this list more qualified to answer >> this. >> For #2. If the records in the attribute table you are trying to relate >> have a 1:1 relationship with the shapes in the shapefile then you may be >> able to add the shape index to the attribute table as a sequential >> number If the attribute records are loaded in the same sequence as the >> shapes occur. The more probable solution is have the ID as a field in >> the DBF that is associated with the SHP file and use the shape index to >> extract the ID from the DBF and then extract the attributes from the >> table. >> >> HTH >> >> Lowell >> > > Thanks for the response. I was able to get the shapeindex as a feild in > the attribute table. I'm thinking of creating an sql table containing the > shapeindex and the corresponding ID (or using the dbf file itself) and > extracting the the corresponding ID's to display query results from an > external database. Is there an easier way to do this? Can I get attribute > values back into php directly from query results? Please disregard the above post. I can get the ID using $shape->values["ID"]. I should have read the docs more carefully. Thanks for your help again. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From siki at AGT.BME.HU Tue Oct 5 02:55:22 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 5 Oct 2004 08:55:22 -0100 Subject: gdalindex question {Scanned} In-Reply-To: <200410041345.27675.dylan@iici.no-ip.org> Message-ID: Hi, What is in the location column in the dbf file? If it is a relative path to the raszters then it should start from the directory of the map file not the directory of the tile index. Bye Zoltan On Mon, 4 Oct 2004, Dylan Beaudette wrote: > Ed- > > Thanks for the quick reply! > > The mapserver output looks a litte funny because I am displaying the tile > index as a polygon layer, so that I know that it actually exists, and is > projected corectly. The labels do look like strange file names, but they are > indeed correct... > > when i attempt to access the rasters individually: > DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > ...it works fine: > http://169.237.35.250/~dylan/temp/tile_index_with_1_raster.jpg > > ...but the rasters are not loaded via the TILEINDEX method. > > here is the updated layer definition (thanks for the OFFSITE idea!!) > ----------------snip------------------ > LAYER > NAME "DOQQ_index" > TYPE RASTER > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > TILEITEM "Location" > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > STATUS DEFAULT > > #ignore black pixels (treat as transparent) > OFFSITE 0 0 0 > > > #render the rest of the pixel values! > CLASS > NAME "DOQQ" > END > END > > ----------------snip------------------ > > ...still no success with the rasters this way... > > any ideas? > > thanks again! > > Dylan > > > On Monday 04 October 2004 11:37 am, Ed McNierney wrote: > > Dylan - > > > > Thanks for asking a well-documented question! > > > > Your MapServer output looks like you're using the tile index layer as a > > POLYGON layer, and doesn't seem to match up with the map file fragment you > > post (i.e. there's no TYPE POLYGON layer with labels there). The filenames > > that are appearing as labels look a little funny - are you sure those are > > the correct filenames? > > > > Also, you're causing all black pixels to be displayed as white, which won't > > "remove" them. You may want to use the OFFSITE statement to cause black > > pixels to be transparent, letting overlapped data show through. > > > > - Ed > > > > Ed McNierney > > President and Chief Mapmaker > > TopoZone.com > > > > At 02:18 PM 10/4/2004, Dylan Beaudette wrote: > > >Greetings! > > > > > >I have a pile of DOQQ images that i would like to use with my map, and > > > wanted to use gdalindex to setup an efficient way for these images to be > > > loaded. > > > > > >note that everything is in the same projection. > > > > > >after running: > > >gdaltindex doqq_index.shp *.tiff > > > > > >i am left with a shapfile with entries for all of the images.... seems ok. > > > > > >...looking at the output in QGIS: > > >http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg > > >...all seems fine (except for a few mssing images) > > > > > >however mapserver is not rendering the tiff files based on the index: > > >http://169.237.35.250/~dylan/temp/tile_index.png > > > > > >here is my layer defs in my map file: > > >----------------------------snip---------------------------- > > >LAYER > > > NAME "DOQQ_index" > > > TYPE RASTER > > > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > > > TILEITEM "Location" > > > > > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > > STATUS DEFAULT > > > > > > #remove the black (no_data) pixels! > > > CLASSITEM "[pixel]" > > > CLASS > > > EXPRESSION ([pixel] == 0 ) > > > COLOR 255 255 255 > > > END > > > > > > #render the rest of the pixel values! > > > CLASS > > > NAME "DOQQ" > > > END > > >END > > >----------------------------snip---------------------------- > > > > > > > > >any ideas>? > > > > > >thanks in advance!! > > > > > >Dylan Beaudette > > >Soil Science Grad Group > > >University of California at Davis > From e9625730 at STUD3.TUWIEN.AC.AT Tue Oct 5 00:25:43 2004 From: e9625730 at STUD3.TUWIEN.AC.AT (Elisabeth Nolz) Date: Tue, 5 Oct 2004 09:25:43 +0200 Subject: Fw: [UMN_MAPSERVER-USERS] center map on x,y coordinates Message-ID: dear jan, the solution with the mapext in the link works fine. >http://...?map=map.map&mode=map&mapext=1400 336900 1600 337100 thank you very much for your help. greets, elisabeth. From asimpson at I-55.COM Tue Oct 5 04:59:38 2004 From: asimpson at I-55.COM (Simpson) Date: Tue, 5 Oct 2004 06:59:38 -0500 Subject: gdalindex question In-Reply-To: <200410041358.45781.dylan@iici.no-ip.org> Message-ID: Try commenting out the CLASS definition... -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Dylan Beaudette Sent: Monday, October 04, 2004 3:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] gdalindex question Not many people out there with this name! Nice to meet you. ...well i tried your suggestions, but no change in the output. here is my layer defs now: --------------------------- LAYER NAME "DOQQ_index" TYPE RASTER TILEINDEX "/home/dylan/public_html/mapserver/mapunit/data/imagery/doqq/tiled/doqq_inde x.shp" (line wrapped by email client) TILEITEM "location" #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" STATUS DEFAULT #ignore black pixels (treat as transparent) OFFSITE 0 0 0 #render the rest of the pixel values! CLASS NAME "DOQQ" END END ------------------------------ not sure what to try next, but it must be something simple! thanks, Dylan On Monday 04 October 2004 01:50 pm, Dylan Keon wrote: > Hi Dylan :-) > > After upgrading to 4.2.x or so, I found I had to use absolute paths for > tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX > declaration. So, try: > > TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" > > and see if that makes a difference. Also, are you sure it's TILEITEM > "Location" instead of "location"? It may be case sensitive, I can't > remember. > > --Dylan > > On 10/04/2004 01:45 PM, Dylan Beaudette wrote: > > Ed- > > > > Thanks for the quick reply! > > > > The mapserver output looks a litte funny because I am displaying the tile > > index as a polygon layer, so that I know that it actually exists, and is > > projected corectly. The labels do look like strange file names, but they > > are indeed correct... > > > > when i attempt to access the rasters individually: > > DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > > > ...it works fine: > > http://169.237.35.250/~dylan/temp/tile_index_with_1_raster.jpg > > > > ...but the rasters are not loaded via the TILEINDEX method. > > > > here is the updated layer definition (thanks for the OFFSITE idea!!) > > ----------------snip------------------ > > LAYER > > NAME "DOQQ_index" > > TYPE RASTER > > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > > TILEITEM "Location" > > > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > STATUS DEFAULT > > > > #ignore black pixels (treat as transparent) > > OFFSITE 0 0 0 > > > > > > #render the rest of the pixel values! > > CLASS > > NAME "DOQQ" > > END > > END > > > > ----------------snip------------------ > > > > ...still no success with the rasters this way... > > > > any ideas? > > > > thanks again! > > > > Dylan > > > > On Monday 04 October 2004 11:37 am, Ed McNierney wrote: > >>Dylan - > >> > >>Thanks for asking a well-documented question! > >> > >>Your MapServer output looks like you're using the tile index layer as a > >>POLYGON layer, and doesn't seem to match up with the map file fragment > >> you post (i.e. there's no TYPE POLYGON layer with labels there). The > >> filenames that are appearing as labels look a little funny - are you > >> sure those are the correct filenames? > >> > >>Also, you're causing all black pixels to be displayed as white, which > >> won't "remove" them. You may want to use the OFFSITE statement to cause > >> black pixels to be transparent, letting overlapped data show through. > >> > >> - Ed > >> > >>Ed McNierney > >>President and Chief Mapmaker > >>TopoZone.com > >> > >>At 02:18 PM 10/4/2004, Dylan Beaudette wrote: > >>>Greetings! > >>> > >>>I have a pile of DOQQ images that i would like to use with my map, and > >>>wanted to use gdalindex to setup an efficient way for these images to be > >>>loaded. > >>> > >>>note that everything is in the same projection. > >>> > >>>after running: > >>>gdaltindex doqq_index.shp *.tiff > >>> > >>>i am left with a shapfile with entries for all of the images.... seems > >>> ok. > >>> > >>>...looking at the output in QGIS: > >>>http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg > >>>...all seems fine (except for a few mssing images) > >>> > >>>however mapserver is not rendering the tiff files based on the index: > >>>http://169.237.35.250/~dylan/temp/tile_index.png > >>> > >>>here is my layer defs in my map file: > >>>----------------------------snip---------------------------- > >>>LAYER > >>> NAME "DOQQ_index" > >>> TYPE RASTER > >>> TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > >>> TILEITEM "Location" > >>> > >>> #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > >>> STATUS DEFAULT > >>> > >>> #remove the black (no_data) pixels! > >>> CLASSITEM "[pixel]" > >>> CLASS > >>> EXPRESSION ([pixel] == 0 ) > >>> COLOR 255 255 255 > >>> END > >>> > >>> #render the rest of the pixel values! > >>> CLASS > >>> NAME "DOQQ" > >>> END > >>>END > >>>----------------------------snip---------------------------- > >>> > >>> > >>>any ideas>? > >>> > >>>thanks in advance!! > >>> > >>>Dylan Beaudette > >>>Soil Science Grad Group > >>>University of California at Davis From Gerhard.Engel at SBG.AC.AT Tue Oct 5 06:42:44 2004 From: Gerhard.Engel at SBG.AC.AT (Engel Gerhard) Date: Tue, 5 Oct 2004 15:42:44 +0200 Subject: AW: Solution to Displaying AcInfo Grids Message-ID: Hi, Finally here comes the unexpected solution to my problem of displaying ArcInfo binary grids: All parameters being set correctly it was a 'blank' in my path to the data source on Apache 1.3 (default installation path: c:\programme\apache group\apache\...) which MapServer did not seem to like. After re-installing on 'c:\apache' everything worked out as expected. Thanks to all suggestions pointing in other directions (especially to Frank being endlessly patient with me; sorry, I didn't mean to annoy you) - you made me learn a lot about MapServer utilities. Happily, :-) Gerhard From warmerdam at POBOX.COM Tue Oct 5 07:16:06 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Oct 2004 10:16:06 -0400 Subject: gdalindex question In-Reply-To: <4161B798.8010201@nacse.org> Message-ID: Dylan Keon wrote: > Hi Dylan :-) > > After upgrading to 4.2.x or so, I found I had to use absolute paths for > tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX > declaration. So, try: > > TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" > > and see if that makes a difference. Also, are you sure it's TILEITEM > "Location" instead of "location"? It may be case sensitive, I can't > remember. Dylan (or Dylan), I would appreciate confirmation if this is the issue. There seem to have been alot of problems with paths and tileindexes in 4.2 and later but I am not aware of these issues being confirmed as bugs and filed as such. In particular, I would like to ensure none of these problems exist in 4.4 when we release it. We might also be able to roll fixes into 4.2.4 or later. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From info at GEO-IT.COM Tue Oct 5 06:41:59 2004 From: info at GEO-IT.COM (GeoIT) Date: Tue, 5 Oct 2004 15:41:59 +0200 Subject: WFS spatial Filter support Message-ID: Hi, We have MapServer Version 4.3 dev installed to test its WFS-capabilities. We tried to perform a spatial filter as defined in the XML-file below via curl: ############################################################################ ############# rtgis:GEOM 4394954.9510,5319204.3811 4394993.6108,5319198.3668 4394986.7379,5319163.4837 4394957.5283,5319165.7176 4394954.9510,5319204.3811 rtgis:GEOM 4394954.9510,5319204.3811 4394993.6108,5319198.3668 4394986.7379,5319163.4837 4394957.5283,5319165.7176 4394954.9510,5319204.3811 ############################################################################ ############# Mapserver is not able to handle this filter request. It returns the following exception-report: ############################################################################ ############# msWFSGetFeature(): WFS server error. Invalid or Unsupported FILTER in GetFeature : <Filter> <Intersects> <Polygon srsName="31468"> <outerBoundaryIs> <LinearRing> <coordinates cs="," decimal="." ts=" ">4394954.9510,5319204.3811 4394993.6108,5319198.3668 4394986.7379,5319163.4837 4394957.5283,5319165.7176 4394954.9510,5319204.3811</coordinates> </LinearRing> </outerBoundaryIs> </Polygon> </Intersects> </Filter> ############################################################################ ############# Are there any plans to implement this functionality in future releases ? Regards, Daniel ************************************************************************* Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ************************************************************************* From fcestari at CFM.OHIO-STATE.EDU Tue Oct 5 06:38:17 2004 From: fcestari at CFM.OHIO-STATE.EDU (Felix Cestari) Date: Tue, 5 Oct 2004 09:38:17 -0400 Subject: Mapserver image support Message-ID: Does mapserver support .nef images? -Felix From warmerdam at POBOX.COM Tue Oct 5 07:26:21 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Oct 2004 10:26:21 -0400 Subject: Mapserver image support In-Reply-To: <4162A3C9.6040806@cfm.ohio-state.edu> Message-ID: Felix Cestari wrote: > Does mapserver support .nef images? > > -Felix Felix, I gather .nef is the Nikon digital camera raw image format? The answer is that MapServer does not support .net files. You might want to look at the "denef" utility which can convert the files to .ppm files which can be used in MapServer (with GDAL) or further converted to other formats easily. http://www.cheeseplant.org/~daniel/pages/denef.html Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at TOPOZONE.COM Tue Oct 5 08:39:55 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 5 Oct 2004 11:39:55 -0400 Subject: gdalindex question In-Reply-To: <4162ACA6.8060808@pobox.com> Message-ID: Frank - It's entirely possible that I haven't been looking, but I'm not aware of a clear specification on how relative paths are SUPPOSED to work. I am under the impression that relative paths are somewhat vulerable to how the Web server is configured and how the MapServer CGI is referenced relative to that Web server. In the absence of a SHAPEPATH and/or IMAGEPATH statement, it's been my impression that the behavior of relative paths is not specified. There have been recent changes to MapServer that have changed this behavior (at least in some cases I've observed) but I can't say that I thought either the earlier or the newer behavior was "wrong". If we intend to have relative paths behave in some consistent, predictable way (e.g. always relative to the directory containing the mapfile) we should be sure that's well-specified before trying to fix the code. I apologize if that's already been done and I've overlooked it, but I'm not aware of it. - Ed ----- Original Message ----- From: Frank Warmerdam To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tue, 5 Oct 2004 10:16:06 -0400 Subject: Re: [UMN_MAPSERVER-USERS] gdalindex question > Dylan Keon wrote: > > Hi Dylan :-) > > > > After upgrading to 4.2.x or so, I found I had to use absolute paths for > > tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX > > declaration. So, try: > > > > TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" > > > > and see if that makes a difference. Also, are you sure it's TILEITEM > > "Location" instead of "location"? It may be case sensitive, I can't > > remember. > > Dylan (or Dylan), > > I would appreciate confirmation if this is the issue. There seem to have > been alot of problems with paths and tileindexes in 4.2 and later but I am > not aware of these issues being confirmed as bugs and filed as such. In > particular, I would like to ensure none of these problems exist in 4.4 > when we release it. We might also be able to roll fixes into 4.2.4 or later. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From warmerdam at POBOX.COM Tue Oct 5 08:50:53 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Oct 2004 11:50:53 -0400 Subject: gdalindex question In-Reply-To: <20041005113955.b9b6d76b@strabo11> Message-ID: Ed McNierney wrote: > Frank - > > It's entirely possible that I haven't been looking, but I'm not aware of a clear specification on how relative paths are SUPPOSED to work. I am under the impression that relative paths are somewhat vulerable to how the Web server is configured and how the MapServer CGI is referenced relative to that Web server. > > In the absence of a SHAPEPATH and/or IMAGEPATH statement, it's been my impression that the behavior of relative paths is not specified. There have been recent changes to MapServer that have changed this behavior (at least in some cases I've observed) but I can't say that I thought either the earlier or the newer behavior was "wrong". > > If we intend to have relative paths behave in some consistent, predictable way (e.g. always relative to the directory containing the mapfile) we should be sure that's well-specified before trying to fix the code. I apologize if that's already been done and I've overlooked it, but I'm not aware of it. Ed, In the code substantial change were made (for 4.0 I think, or possibly 4.2) to use msBuildPath() to build paths to files. It basically "tries" to find the file relative to the shapepath, or failing that relative to the map or failing that taking it as an absolute path. And there is an additional version for taking names in tile indexes relative to the tile index file I think. So, I think, at the least real files should work if accessed relative to the SHAPEPATH location. That should include tileindexes. If at least that much isn't working then I would like to know. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From gerry.creager at TAMU.EDU Tue Oct 5 08:59:07 2004 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Tue, 5 Oct 2004 10:59:07 -0500 Subject: gdalindex question In-Reply-To: <20041005113955.b9b6d76b@strabo11> Message-ID: Ed, What you're describing is the normal||aberent behavior of webservers with regard to relative paths vice fully qualified paths. It's also why I've evolved to using fully qualified paths everywhere I need paths... realizing I'm still finding some in odd spaces in old mapfiles! Regards, Gerry Ed McNierney wrote: > Frank - > > It's entirely possible that I haven't been looking, but I'm not aware of a clear specification on how relative paths are SUPPOSED to work. I am under the impression that relative paths are somewhat vulerable to how the Web server is configured and how the MapServer CGI is referenced relative to that Web server. > > In the absence of a SHAPEPATH and/or IMAGEPATH statement, it's been my impression that the behavior of relative paths is not specified. There have been recent changes to MapServer that have changed this behavior (at least in some cases I've observed) but I can't say that I thought either the earlier or the newer behavior was "wrong". > > If we intend to have relative paths behave in some consistent, predictable way (e.g. always relative to the directory containing the mapfile) we should be sure that's well-specified before trying to fix the code. I apologize if that's already been done and I've overlooked it, but I'm not aware of it. > > - Ed > > ----- Original Message ----- > From: Frank Warmerdam > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Tue, 5 Oct 2004 10:16:06 -0400 > Subject: Re: [UMN_MAPSERVER-USERS] gdalindex question > > > >>Dylan Keon wrote: >> >>>Hi Dylan :-) >>> >>>After upgrading to 4.2.x or so, I found I had to use absolute paths for >>>tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX >>>declaration. So, try: >>> >>> TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" >>> >>>and see if that makes a difference. Also, are you sure it's TILEITEM >>>"Location" instead of "location"? It may be case sensitive, I can't >>>remember. >> >>Dylan (or Dylan), >> >>I would appreciate confirmation if this is the issue. There seem to have >>been alot of problems with paths and tileindexes in 4.2 and later but I am >>not aware of these issues being confirmed as bugs and filed as such. In >>particular, I would like to ensure none of these problems exist in 4.4 >>when we release it. We might also be able to roll fixes into 4.2.4 or later. -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From keon at NACSE.ORG Tue Oct 5 09:05:41 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Tue, 5 Oct 2004 09:05:41 -0700 Subject: gdalindex question In-Reply-To: <4162ACA6.8060808@pobox.com> Message-ID: Frank Warmerdam wrote: > Dylan Keon wrote: > >> Hi Dylan :-) >> >> After upgrading to 4.2.x or so, I found I had to use absolute paths for >> tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX >> declaration. So, try: >> >> TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" >> >> and see if that makes a difference. Also, are you sure it's TILEITEM >> "Location" instead of "location"? It may be case sensitive, I can't >> remember. > > > Dylan (or Dylan), > > I would appreciate confirmation if this is the issue. There seem to have > been alot of problems with paths and tileindexes in 4.2 and later but I am > not aware of these issues being confirmed as bugs and filed as such. In > particular, I would like to ensure none of these problems exist in 4.4 > when we release it. We might also be able to roll fixes into 4.2.4 or > later. Frank, A few minutes ago I tried reverting to using a TILEINDEX relative to SHAPEPATH, and it's working fine now. I'm using 4.2.3. It must have been an earlier version that was only working with absolute paths (one of the earlier 4.2.x releases, I think). --Dylan From ed at TOPOZONE.COM Tue Oct 5 09:35:49 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 5 Oct 2004 12:35:49 -0400 Subject: gdalindex question In-Reply-To: <4162C2DD.5070307@pobox.com> Message-ID: Frank - In my experience things work fine relative to SHAPEPATHs. I suspect that most of the "strange" behavior reported is in cases without SHAPEPATHs, and it is possible that the chief problem is the lack of a easy-to-find algorithm for locating files (including TILEINDEX-referenced files) for new users. - Ed ----- Original Message ----- From: Frank Warmerdam To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tue, 5 Oct 2004 11:50:53 -0400 Subject: Re: [UMN_MAPSERVER-USERS] gdalindex question > Ed McNierney wrote: > > Frank - > > > > It's entirely possible that I haven't been looking, but I'm not aware of a > clear specification on how relative paths are SUPPOSED to work. I am under the > impression that relative paths are somewhat vulerable to how the Web server is > configured and how the MapServer CGI is referenced relative to that Web server. > > > > In the absence of a SHAPEPATH and/or IMAGEPATH statement, it's been my > impression that the behavior of relative paths is not specified. There have > been recent changes to MapServer that have changed this behavior (at least in > some cases I've observed) but I can't say that I thought either the earlier or > the newer behavior was "wrong". > > > > If we intend to have relative paths behave in some consistent, predictable way > (e.g. always relative to the directory containing the mapfile) we should be sure > that's well-specified before trying to fix the code. I apologize if that's > already been done and I've overlooked it, but I'm not aware of it. > > Ed, > > In the code substantial change were made (for 4.0 I think, or possibly > 4.2) to use msBuildPath() to build paths to files. It basically "tries" > to find the file relative to the shapepath, or failing that relative to the > map or failing that taking it as an absolute path. And there is an additional > version for taking names in tile indexes relative to the tile index file > I think. > > So, I think, at the least real files should work if accessed relative to the > SHAPEPATH location. That should include tileindexes. If at least that much > isn't working then I would like to know. > > Best regards, > > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From jerl.simpso at GMAIL.COM Tue Oct 5 10:07:37 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Tue, 5 Oct 2004 12:07:37 -0500 Subject: ogrinfo/ogr2ogr problem/question Message-ID: Hello, I have some TIGER/Line files I am trying to convert to ESRI Shape files using ogr2ogr. Normally this is not a problem, but I'm running into issues with it now. I have ogr2ogr compiled from gdal 1.2.1 TIGER/Line files from 2003 The problem is when it starts to do the conversion, I get the error: ERROR 3: Failed to read record 5218 of TGR02240.RT2 And stops. I thought, ogr2ogr has "-skipfailures" but this seems to have no affect, it still dies at this point and gives no more data. Is this the intended behavior? Is there a way around this? Thanks for the help. Jerl From jerl.simpso at GMAIL.COM Tue Oct 5 11:17:27 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Tue, 5 Oct 2004 13:17:27 -0500 Subject: ogrinfo/ogr2ogr problem/question In-Reply-To: Message-ID: Frank, I submitted the bug. It looks like it was sent directly to you, if you need more information. Please contact me. Thanks, Jerl On Tue, 5 Oct 2004 12:07:37 -0500, Jerl Simpson wrote: > Hello, > > I have some TIGER/Line files I am trying to convert to ESRI Shape > files using ogr2ogr. Normally this is not a problem, but I'm running > into issues with it now. > > I have ogr2ogr compiled from gdal 1.2.1 > TIGER/Line files from 2003 > > The problem is when it starts to do the conversion, I get the error: > ERROR 3: Failed to read record 5218 of TGR02240.RT2 > And stops. > I thought, ogr2ogr has "-skipfailures" but this seems to have no > affect, it still dies at this point and gives no more data. > Is this the intended behavior? Is there a way around this? > > Thanks for the help. > > Jerl > From dylan at IICI.NO-IP.ORG Tue Oct 5 11:42:13 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 5 Oct 2004 11:42:13 -0700 Subject: gdalindex question In-Reply-To: Message-ID: On Monday 04 October 2004 01:56 pm, David Fawcett wrote: > I was wondering if you had a SHAPEPATH in the MAP object. Does your app > know where to look for the images listed in your tileindex? > > David. > > David J. Fawcett > MN Office of Environmental Assistance > That was it! My SHAPEPATH directive was pointing to the base of all my other data, which of course did not point to my image files. I am not sure if this is correct, but my map file now contains a SHAPEPATH directive pointing to the folder that contains the raster images referenced by the tile index, and all of my other data is referenced via absolute paths. Thanks for all the help! Dylan > >>> Dylan Keon 10/4/2004 3:50:32 PM >>> > > Hi Dylan :-) > > After upgrading to 4.2.x or so, I found I had to use absolute paths > for > tileindexes. That is, SHAPEPATH wouldn't work with my TILEINDEX > declaration. So, try: > > TILEINDEX "/full/path/to/imagery/doqq/tiled/doqq_index.shp" > > and see if that makes a difference. Also, are you sure it's TILEITEM > "Location" instead of "location"? It may be case sensitive, I can't > remember. > > --Dylan > > On 10/04/2004 01:45 PM, Dylan Beaudette wrote: > > Ed- > > > > Thanks for the quick reply! > > > > The mapserver output looks a litte funny because I am displaying the > > tile > > > index as a polygon layer, so that I know that it actually exists, and > > is > > > projected corectly. The labels do look like strange file names, but > > they are > > > indeed correct... > > > > when i attempt to access the rasters individually: > > DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > > > ...it works fine: > > http://169.237.35.250/~dylan/temp/tile_index_with_1_raster.jpg > > > > ...but the rasters are not loaded via the TILEINDEX method. > > > > here is the updated layer definition (thanks for the OFFSITE idea!!) > > ----------------snip------------------ > > LAYER > > NAME "DOQQ_index" > > TYPE RASTER > > TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > > TILEITEM "Location" > > > > #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > > STATUS DEFAULT > > > > #ignore black pixels (treat as transparent) > > OFFSITE 0 0 0 > > > > > > #render the rest of the pixel values! > > CLASS > > NAME "DOQQ" > > END > > END > > > > ----------------snip------------------ > > > > ...still no success with the rasters this way... > > > > any ideas? > > > > thanks again! > > > > Dylan > > > > On Monday 04 October 2004 11:37 am, Ed McNierney wrote: > >>Dylan - > >> > >>Thanks for asking a well-documented question! > >> > >>Your MapServer output looks like you're using the tile index layer as > > a > > >>POLYGON layer, and doesn't seem to match up with the map file > > fragment you > > >>post (i.e. there's no TYPE POLYGON layer with labels there). The > > filenames > > >>that are appearing as labels look a little funny - are you sure those > > are > > >>the correct filenames? > >> > >>Also, you're causing all black pixels to be displayed as white, which > > won't > > >>"remove" them. You may want to use the OFFSITE statement to cause > > black > > >>pixels to be transparent, letting overlapped data show through. > >> > >> - Ed > >> > >>Ed McNierney > >>President and Chief Mapmaker > >>TopoZone.com > >> > >>At 02:18 PM 10/4/2004, Dylan Beaudette wrote: > >>>Greetings! > >>> > >>>I have a pile of DOQQ images that i would like to use with my map, > > and > > >>>wanted to use gdalindex to setup an efficient way for these images > > to be > > >>>loaded. > >>> > >>>note that everything is in the same projection. > >>> > >>>after running: > >>>gdaltindex doqq_index.shp *.tiff > >>> > >>>i am left with a shapfile with entries for all of the images.... > > seems ok. > > >>>...looking at the output in QGIS: > >>>http://169.237.35.250/~dylan/temp/gdalindex_problems.jpg > >>>...all seems fine (except for a few mssing images) > >>> > >>>however mapserver is not rendering the tiff files based on the > > index: > >>>http://169.237.35.250/~dylan/temp/tile_index.png > >>> > >>>here is my layer defs in my map file: > >>>----------------------------snip---------------------------- > >>>LAYER > >>> NAME "DOQQ_index" > >>> TYPE RASTER > >>> TILEINDEX "imagery/doqq/tiled/doqq_index.shp" > >>> TILEITEM "Location" > >>> > >>> #DATA "imagery/doqq/tiled/o38122f1nw.tif.temp.tiff" > >>> STATUS DEFAULT > >>> > >>> #remove the black (no_data) pixels! > >>> CLASSITEM "[pixel]" > >>> CLASS > >>> EXPRESSION ([pixel] == 0 ) > >>> COLOR 255 255 255 > >>> END > >>> > >>> #render the rest of the pixel values! > >>> CLASS > >>> NAME "DOQQ" > >>> END > >>>END > >>>----------------------------snip---------------------------- > >>> > >>> > >>>any ideas>? > >>> > >>>thanks in advance!! > >>> > >>>Dylan Beaudette > >>>Soil Science Grad Group > >>>University of California at Davis > > -- > ************************************************************** > Dylan Keon - GIS Coordinator > Northwest Alliance for Computational Science and Engineering > Oregon State University > Corvallis, OR 97331 > keon at nacse.org voice: 541-737-6608 fax: 541-737-6609 > http://gis.nacse.org > ************************************************************** From mandhare at STATE.PA.US Tue Oct 5 12:25:36 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Tue, 5 Oct 2004 14:25:36 -0500 Subject: msSaveImage(): Unable to access file error Message-ID: I'm trying to run Itasc workshop demo, on Windows 2000 with IIS. I'm getting this error message: msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\MapServer\Docs\tmp\ITASCA10970029431608.png) My wokshop demo files are in C:\Inetpub\wwwroot\MapServer\ And my mapserver program i.e. mapserv.exe is in : C:\Inetpub\wwwroot\MapSErver\cgi-bin\mapserv.exe I have created folder Docs\tmp under C:\Inetpub\wwwroot\MapServer, and i have given read/write rights to Doc\tmp folder. As per my knowledge, I'm using c:\Inetpub\wwwroot\MapServer\Docs\tmp\ to store the files created by mapserver i.e. for "map_web_imagepath" in index.html. But when i run the application, I'm getting the error that "Unable to access file. Do i need to specify anything else? From mtperry78 at SBCGLOBAL.NET Tue Oct 5 12:44:53 2004 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Tue, 5 Oct 2004 12:44:53 -0700 Subject: ECW on Linux/Unix In-Reply-To: Message-ID: Hi folks, Is it possible to build GDAL with ECW raster support on a Linux/Unix box? According to the GDAL site, ECW support can be built into GDAL but only on Windows. I noticed on the ER Mapper site, they have a C/C++ library for Solaris (http://www.ermapper.com/downloads/download_view.aspx?PRODUCT_VERSION_ID=72) Has anyone successfully compiled this on any other UNIX? If so, does this allow GDAL read access to ECW files? Thanks for the help, Matt Perry Humboldt State University From bryon at PEOPLEGIS.COM Tue Oct 5 12:55:57 2004 From: bryon at PEOPLEGIS.COM (Bryon) Date: Tue, 5 Oct 2004 14:55:57 -0500 Subject: Adding an Event Theme/Layer Message-ID: Question: As an ArcView user, I am used to being able to integrate what is called an event theme into a map view. An event theme is nothing more than a database with x and y attribute fields. The application sees these fields and maps the points. My question is is there a way to map a database using PHP Mapscript to create a Layer? My databases are generally in dBase format. Does anybody have any suggestions or examples? Sincerely, Bryon From warmerdam at POBOX.COM Tue Oct 5 13:16:49 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 5 Oct 2004 16:16:49 -0400 Subject: ECW on Linux/Unix In-Reply-To: <20041005194453.51497.qmail@web80108.mail.yahoo.com> Message-ID: Matthew Perry wrote: > Hi folks, > > Is it possible to build GDAL with ECW raster support > on a Linux/Unix box? > > According to the GDAL site, ECW support can be built > into GDAL but only on Windows. I noticed on the ER > Mapper site, they have a C/C++ library for Solaris > (http://www.ermapper.com/downloads/download_view.aspx?PRODUCT_VERSION_ID=72) > > Has anyone successfully compiled this on any other > UNIX? If so, does this allow GDAL read access to ECW > files? Matt, My understanding is that ERMapper have not released a version of their SDK built for Linux. GDAL does support the Solaris version. My understanding is also that ERMapper will be releasing the source to the ECW SDK once their long running ECW SDK 3.0 beta is complete. At that point it should be straight forward to build the SDK and GDAL+ECW on Linux. I don't know then that will happen, or even if I have misconstrued their intentions. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From assefa at DMSOLUTIONS.CA Tue Oct 5 14:25:10 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 5 Oct 2004 17:25:10 -0400 Subject: Adding an Event Theme/Layer In-Reply-To: Message-ID: Bryon, Here are some functions that might help you acheive what you want. This code was taken from the php mapscript workshop at the Mapserver user meeting (http://www.omsug.ca/osgis2004/proceedings.html). Hope it helps. Later, /* * CreateLayer() */ function CreateLayer($szDataName) { $oMap = $GLOBALS["goMap"]; //create layer and set members $oLayer = ms_newLayerObj($oMap); $oLayer->set("name", "canada_cities"); $oLayer->set("status", MS_ON); $oLayer->set("data", $szDataName); $oLayer->set("type", MS_LAYER_POINT); $oLayer->setMetaData("DESCRIPTION", "New Cities Layer"); //projection is latlong $oLayer->setProjection("init=epsg:4326"); $oLayer->set("labelitem", "NAME"); $oLayer->set("classitem", "CAPITAL"); //Country capital //create class $oClass = ms_newClassObj($oLayer); $oClass->set("name", "Capital"); $oClass->setexpression("/1/"); //create style $oStyle = ms_newStyleObj($oClass); $oStyle->set("symbol", 2); $oStyle->set("size", 8); $oStyle->color->setRGB(255, 0, 0); //set label object $oClass->label->set("font", "fritqat-italic"); $oClass->label->set("type", MS_TRUETYPE); $oClass->label->set("size", 8); $oClass->label->color->setRGB(255, 0 , 0); $oClass->label->set("position", MS_AUTO); $oClass->label->set("partials", MS_FALSE); //provincial capitals $oClass = ms_newClassObj($oLayer); $oClass->set("name", "Provincial Capital"); $oClass->setexpression("/2|3/"); $oStyle = ms_newStyleObj($oClass); $oStyle->set("symbol", 7); $oStyle->set("size", 6); $oStyle->color->setRGB(0, 0, 0); //set label object $oClass->label->set("font", "fritqat"); $oClass->label->set("type", MS_TRUETYPE); $oClass->label->set("size", 8); $oClass->label->color->setRGB(0, 0 , 0); $oClass->label->set("position", MS_AUTO); $oClass->label->set("partials", MS_FALSE); } /* * AddDynamicLayer() */ function AddDynamicLayer() { //Creating the shapefiles $oMap = $GLOBALS["goMap"]; $szFileName = $oMap->web->imagepath . uniqid(""); $oShapFile = ms_newShapeFileObj($szFileName, MS_SHP_POINT); //create a new DBF attached with few attributes $hDbf = dbase_create($szFileName.".dbf", array(array("POP_RANGE", "N", 5, 0), array("NAME", "C", 50, 0), array("CAPITAL", "N", 5, 0))); if (!$hDbf) return; //open the original dbf file $szOrginalDbfName = "../data/canada_cities.dbf"; $hOrigDbf = dbase_open($szOrginalDbfName, 0); if (!$hOrigDbf) return; $nRecords = dbase_numrecords($hOrigDbf); for ($i=1; $i<=$nRecords; $i++) { //retreive field attributes $aRecord = dbase_get_record_with_names($hOrigDbf, $i); $dfLat = floatval($aRecord["LAT"]); $dfLong = floatval($aRecord["LONG"]); $nPopRange = intval($aRecord["POP_RANGE"]); $szName = strval($aRecord["NAME"]); $nCapital = intval($aRecord["CAPITAL"]); //create a point for each record and add it to the shapefile $oShp = ms_newShapeObj(MS_SHP_POINT); $oLine = ms_newLineObj(); $oLine->addXY($dfLong, $dfLat); $oShp->add( $oLine ); $oShapFile->addShape($oShp); //add a record to the DBF $aAttValues[0] = $nPopRange; $aAttValues[1] = $szName; $aAttValues[2] = $nCapital; dbase_add_record($hDbf, $aAttValues); $oShp->free(); } dbase_close($hOrigDbf); dbase_close($hDbf); $oShapFile->free(); //Add a new layer in the map CreateLayer($szFileName); } Bryon wrote: > Question: > As an ArcView user, I am used to being able to integrate what is called an > event theme into a map view. An event theme is nothing more than a > database with x and y attribute fields. The application sees these fields > and maps the points. My question is is there a way to map a database > using PHP Mapscript to create a Layer? My databases are generally in > dBase format. > > Does anybody have any suggestions or examples? > > Sincerely, > Bryon > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From andy_canfield at HOTMAIL.COM Tue Oct 5 14:55:38 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Tue, 5 Oct 2004 14:55:38 -0700 Subject: Mapserver CGI question Message-ID: Is there a way to pass Mapserver the base CGI ( not using it as a wms ) some parameter and have it not return an image but instead return information about the mapfile like the available layer names, current extents and that sort of thing? sort of along the lines of (psuedo code) http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=Layernames _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From Tom.Kralidis at EC.GC.CA Tue Oct 5 15:56:37 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 5 Oct 2004 18:56:37 -0400 Subject: Mapserver CGI question Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD > Sent: Tuesday, 05 October, 2004 17:56 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI question > > > Is there a way to pass Mapserver the base CGI ( not using it > as a wms ) some parameter and have it not return an image but > instead return information about the mapfile like the > available layer names, current extents and that sort of thing? > One option is to produce a web template as an XML document, i.e.: ... ..and have MapServer CGI return the XML document, which you can do whatever you please with. ..Tom > sort of along the lines of (psuedo code) > http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=L ayernames _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ARyan at CO.LINN.OR.US Tue Oct 5 16:11:23 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 5 Oct 2004 16:11:23 -0700 Subject: Mapserver CGI question Message-ID: > -----Original Message----- > From: ANDY CANFIELD [mailto:andy_canfield at HOTMAIL.COM] > Sent: Tuesday, October 05, 2004 2:56 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI question > > > Is there a way to pass Mapserver the base CGI ( not using it > as a wms ) some parameter and have it not return an image but > instead return information about the mapfile like the > available layer names, current extents and that sort of thing? > > sort of along the lines of (psuedo code) > http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=Layer names Andy, This may not be what your looking for, but you might be able to use javascript in a generic legend template such that it would grab all available tags, test for null, and spit out a report. I havn't tried this but I have used javascript to process the sent parameters in a legend template and I would think this is possible, though time consuming. It would be cheating slightly, but you'd then do...?map=myMap.map&mode=legend&map_legend_template=report.htm Maybe? Adam From andy_canfield at HOTMAIL.COM Tue Oct 5 17:17:18 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Tue, 5 Oct 2004 17:17:18 -0700 Subject: Mapserver CGI question Message-ID: Thanks guys. I think the XML would work just fine for me. I'll give that a go. The requests going to the mapserver CGI are from a wireless phone application so I can't use Java script in a web page or anything in a web page really. But I can parse XML and anything else an http connection can return. So basically unless I want to write my own CGI that extends Mapserver I'm stuck with the very basic basic CGI functionality of Mapserver. Which is a lot of functionality but it's feels constraining after using mapserver through it's php scripting interface. >From: "Ryan, Adam" >To: ANDY CANFIELD , >MAPSERVER-USERS at LISTS.UMN.EDU >Subject: RE: [UMN_MAPSERVER-USERS] Mapserver CGI question >Date: Tue, 5 Oct 2004 16:11:23 -0700 > > > > -----Original Message----- > > From: ANDY CANFIELD [mailto:andy_canfield at HOTMAIL.COM] > > Sent: Tuesday, October 05, 2004 2:56 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI question > > > > > > Is there a way to pass Mapserver the base CGI ( not using it > > as a wms ) some parameter and have it not return an image but > > instead return information about the mapfile like the > > available layer names, current extents and that sort of thing? > > > > sort of along the lines of (psuedo code) > > >http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=Layer >names > >Andy, > >This may not be what your looking for, but you might be able to use >javascript in a generic legend template such that it would grab all >available tags, test for null, and spit out a report. I havn't tried this >but I have used javascript to process the sent parameters in a legend >template and I would think this is possible, though time consuming. > >It would be cheating slightly, but you'd then >do...?map=myMap.map&mode=legend&map_legend_template=report.htm > >Maybe? > >Adam >From: "Kralidis,Tom [Burlington]" >To: "ANDY CANFIELD" >, >Subject: RE: [UMN_MAPSERVER-USERS] Mapserver CGI question >Date: Tue, 5 Oct 2004 18:56:37 -0400 > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD > > Sent: Tuesday, 05 October, 2004 17:56 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI question > > > > > > Is there a way to pass Mapserver the base CGI ( not using it > > as a wms ) some parameter and have it not return an image but > > instead return information about the mapfile like the > > available layer names, current extents and that sort of thing? > > > >One option is to produce a web template as an XML document, i.e.: > > > > > >... > > >..and have MapServer CGI return the XML document, which you can do >whatever you please with. > >..Tom > > > sort of along the lines of (psuedo code) > > >http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=L >ayernames > _________________________________________________________________ Get ready for school! Find articles, homework help and more in the Back to School Guide! http://special.msn.com/network/04backtoschool.armx From ed at TOPOZONE.COM Tue Oct 5 18:08:09 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 5 Oct 2004 21:08:09 -0400 Subject: Mapserver CGI question In-Reply-To: Message-ID: Andy - You should learn about the OGC interfaces to MapServer. The WMS interface's GetCapabilities request, for example, is a simple HTTP GET request that returns a huge amount of information about the map service - a list of available layers, for example - in XML, no less! - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: ANDY CANFIELD To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tue, 5 Oct 2004 20:17:18 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Mapserver CGI question > Thanks guys. I think the XML would work just fine for me. I'll give that a > go. The requests going to the mapserver CGI are from a wireless phone > application so I can't use Java script in a web page or anything in a web > page really. But I can parse XML and anything else an http connection can > return. So basically unless I want to write my own CGI that extends > Mapserver I'm stuck with the very basic basic CGI functionality of > Mapserver. Which is a lot of functionality but it's feels constraining after > using mapserver through it's php scripting interface. > > > >From: "Ryan, Adam" > >To: ANDY CANFIELD , > >MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: RE: [UMN_MAPSERVER-USERS] Mapserver CGI question > >Date: Tue, 5 Oct 2004 16:11:23 -0700 > > > > > > > -----Original Message----- > > > From: ANDY CANFIELD [mailto:andy_canfield at HOTMAIL.COM] > > > Sent: Tuesday, October 05, 2004 2:56 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI question > > > > > > > > > Is there a way to pass Mapserver the base CGI ( not using it > > > as a wms ) some parameter and have it not return an image but > > > instead return information about the mapfile like the > > > available layer names, current extents and that sort of thing? > > > > > > sort of along the lines of (psuedo code) > > > > >http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=Layer > >names > > > >Andy, > > > >This may not be what your looking for, but you might be able to use > >javascript in a generic legend template such that it would grab all > >available tags, test for null, and spit out a report. I havn't tried this > >but I have used javascript to process the sent parameters in a legend > >template and I would think this is possible, though time consuming. > > > >It would be cheating slightly, but you'd then > >do...?map=myMap.map&mode=legend&map_legend_template=report.htm > > > >Maybe? > > > >Adam > > > >From: "Kralidis,Tom [Burlington]" > >To: "ANDY CANFIELD" > >, > >Subject: RE: [UMN_MAPSERVER-USERS] Mapserver CGI question > >Date: Tue, 5 Oct 2004 18:56:37 -0400 > > > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD > > > Sent: Tuesday, 05 October, 2004 17:56 > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI question > > > > > > > > > Is there a way to pass Mapserver the base CGI ( not using it > > > as a wms ) some parameter and have it not return an image but > > > instead return information about the mapfile like the > > > available layer names, current extents and that sort of thing? > > > > > > >One option is to produce a web template as an XML document, i.e.: > > > > > > > > > > > >... > > > > > >..and have MapServer CGI return the XML document, which you can do > >whatever you please with. > > > >..Tom > > > > > sort of along the lines of (psuedo code) > > > > >http://mySite.com/cgi-bin/mapserv.exe?map=myMap.map&mode=info&infotype=L > >ayernames > > > > _________________________________________________________________ > Get ready for school! Find articles, homework help and more in the Back to > School Guide! http://special.msn.com/network/04backtoschool.armx > From dabner at OPTUSNET.COM.AU Tue Oct 5 19:55:05 2004 From: dabner at OPTUSNET.COM.AU (Nick Dabner) Date: Wed, 6 Oct 2004 12:55:05 +1000 Subject: Guess this Projection Message-ID: Hello all, Have one nasty little raster here that is apparently in AMG66 Zone 55 (epsg:20253), according to Mapinfo. I cannot get it to display in mapserver unless I warp it, but doing so results in an image that is incorrectly registered and skewed (also out by 1500km or so). I am trying to output in WGS84 / GDA94 in line with my vectors. Gdalinfo output is shown below. I can provide a copy by email if anyone would care to take a closer look. This has been causing me problems for months now. Mapfile is below. Any help greatly appreciated, Nick Driver: GTiff/GeoTIFF Size is 4809, 4075 Coordinate System is: PROJCS["unnamed", GEOGCS["unnamed", DATUM["unknown", SPHEROID["unretrievable - using WGS84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT[,0.0174532925199433], AUTHORITY["EPSG","0"]], UNIT["unknown",1], AUTHORITY["EPSG","0"]] Origin = (1857716.251568,5544261.870844) Pixel Size = (317.52333125,-317.52333125) Metadata: TIFFTAG_IMAGEDESCRIPTION= TIFFTAG_DATETIME=2004:01:05 22:39:05 TIFFTAG_XRESOLUTION=300 TIFFTAG_YRESOLUTION=300 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Corner Coordinates: Upper Left ( 1857716.252, 5544261.871) (106439300d44'382252089395.85"E,317662805d42'1142461300788.73"N) Lower Left ( 1857716.252, 4250354.296) (106439300d44'382252089395.85"E,243527362d35'876173328429.93"N) Upper Right ( 3384685.952, 5544261.871) (193928220d 0'700079669251.66"E,317662805d42'1142461300788.73"N) Lower Right ( 3384685.952, 4250354.296) (193928220d 0'700079669251.66"E,243527362d35'876173328429.93"N) Center ( 2621201.102, 4897308.083) (150183760d22'541165879323.76"E,280595084d 9'1009317314579.33"N) Band 1 Block=4809x1 Type=Byte, ColorInterp=Palette The mapfile looks roughly like this (originally based on the itasca demo): # # Start of map file # NAME DEMO STATUS ON SIZE 600 600 EXTENT 144.5 -37.5 145.5 -38 UNITS KILOMETERS SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION "init=epsg:4326" END WEB HEADER demo_header.html TEMPLATE demo.html FOOTER demo_footer.html IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" END QUERYMAP SIZE 200 200 STATUS ON STYLE HILITE COLOR 255 0 0 END SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END LAYER PROJECTION "init=epsg:4202" # Also Zone 53 "20253" END CONNECTIONTYPE OGR CONNECTION "ADELBRIS.TIF" TYPE RASTER STATUS DEFAULT UNITS METERS END END # Map File From jcastil1 at TRAGSA.ES Wed Oct 6 00:21:43 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Wed, 6 Oct 2004 09:21:43 +0200 Subject: msSaveImage(): Unable to access file error Message-ID: I had the same problem I resolve it by addin permissions on de IIS adminiostrator tool.... Well that was my problem and now it's working! hope this will help you REgards Javier -----Mensaje original----- De: Manjiri Andhare [mailto:mandhare at STATE.PA.US] Enviado el: martes, 05 de octubre de 2004 21:26 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] msSaveImage(): Unable to access file error I'm trying to run Itasc workshop demo, on Windows 2000 with IIS. I'm getting this error message: msSaveImage(): Unable to access file. (C:\Inetpub\wwwroot\MapServer\Docs\tmp\ITASCA10970029431608.png) My wokshop demo files are in C:\Inetpub\wwwroot\MapServer\ And my mapserver program i.e. mapserv.exe is in : C:\Inetpub\wwwroot\MapSErver\cgi-bin\mapserv.exe I have created folder Docs\tmp under C:\Inetpub\wwwroot\MapServer, and i have given read/write rights to Doc\tmp folder. As per my knowledge, I'm using c:\Inetpub\wwwroot\MapServer\Docs\tmp\ to store the files created by mapserver i.e. for "map_web_imagepath" in index.html. But when i run the application, I'm getting the error that "Unable to access file. Do i need to specify anything else? From dabner at OPTUSNET.COM.AU Wed Oct 6 03:29:38 2004 From: dabner at OPTUSNET.COM.AU (Nick Dabner) Date: Wed, 6 Oct 2004 20:29:38 +1000 Subject: Guess this Projection In-Reply-To: <000e01c4ab63$6fcd6420$0300a8c0@homer3> Message-ID: Thanks for your help Peter. I misquoted the zone - it is actually 53, and I adjusted your parameters to suit. No luck unfortunately. The tiff is sourced straight of the Melways (eg Ausways / Sydways) CD. As I said, I can provide the sample file to a worthy challenger ;-) Nick On 06/10/2004, at 3:15 PM, Peter Bayley wrote: > Nick, > > The AMG66 Zone 55 Projection needs to be placed in the LAYER object in > the > map file: > > Taking the proj4text vales from the spatial_ref_sys table in postgis, > you > can construct the > projection of the layer as: > > LAYER > PROJECTION > "proj=utm" > "zone=55" > "ellps=aust_SA" > "south" > "units=m" > END > CONNECTIONTYPE OGR > CONNECTION "ADELBRIS.TIF" > TYPE RASTER > STATUS DEFAULT > UNITS METERS > END > > The Projection in the LAYER should be the projection of its dataset. > By the > way, 20253 is Zone 53 not 55 > The projection you want everything delivered in should be in the MAP > section > > Regards > > Peter Bayley > Sydney > Australia > > ----- Original Message ----- > From: "Nick Dabner" > To: > Sent: Wednesday, October 06, 2004 12:55 PM > Subject: [UMN_MAPSERVER-USERS] Guess this Projection > > >> Hello all, >> >> Have one nasty little raster here that is apparently in AMG66 Zone 55 >> (epsg:20253), according to Mapinfo. I cannot get it to display in >> mapserver unless I warp it, but doing so results in an image that is >> incorrectly registered and skewed (also out by 1500km or so). I am >> trying to output in WGS84 / GDA94 in line with my vectors. Gdalinfo >> output is shown below. I can provide a copy by email if anyone would >> care to take a closer look. This has been causing me problems for >> months now. Mapfile is below. Any help greatly appreciated, Nick >> >> Driver: GTiff/GeoTIFF >> Size is 4809, 4075 >> Coordinate System is: >> PROJCS["unnamed", >> GEOGCS["unnamed", >> DATUM["unknown", >> SPHEROID["unretrievable - using >> WGS84",6378137,298.257223563]], >> PRIMEM["Greenwich",0], >> UNIT[,0.0174532925199433], >> AUTHORITY["EPSG","0"]], >> UNIT["unknown",1], >> AUTHORITY["EPSG","0"]] >> Origin = (1857716.251568,5544261.870844) >> Pixel Size = (317.52333125,-317.52333125) >> Metadata: >> TIFFTAG_IMAGEDESCRIPTION= >> TIFFTAG_DATETIME=2004:01:05 22:39:05 >> TIFFTAG_XRESOLUTION=300 >> TIFFTAG_YRESOLUTION=300 >> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) >> Corner Coordinates: >> Upper Left ( 1857716.252, 5544261.871) >> (106439300d44'382252089395.85"E,317662805d42'1142461300788.73"N) >> Lower Left ( 1857716.252, 4250354.296) >> (106439300d44'382252089395.85"E,243527362d35'876173328429.93"N) >> Upper Right ( 3384685.952, 5544261.871) (193928220d >> 0'700079669251.66"E,317662805d42'1142461300788.73"N) >> Lower Right ( 3384685.952, 4250354.296) (193928220d >> 0'700079669251.66"E,243527362d35'876173328429.93"N) >> Center ( 2621201.102, 4897308.083) >> (150183760d22'541165879323.76"E,280595084d 9'1009317314579.33"N) >> Band 1 Block=4809x1 Type=Byte, ColorInterp=Palette >> >> >> The mapfile looks roughly like this (originally based on the itasca >> demo): >> >> # >> # Start of map file >> # >> >> NAME DEMO >> STATUS ON >> SIZE 600 600 >> EXTENT 144.5 -37.5 145.5 -38 >> UNITS KILOMETERS >> SHAPEPATH "data" >> IMAGECOLOR 255 255 255 >> >> PROJECTION >> "init=epsg:4326" >> END >> >> WEB >> HEADER demo_header.html >> TEMPLATE demo.html >> FOOTER demo_footer.html >> IMAGEPATH "set in demo_init.html" >> IMAGEURL "set in demo_init.html" >> END >> >> QUERYMAP >> SIZE 200 200 >> STATUS ON >> STYLE HILITE >> COLOR 255 0 0 >> END >> >> SYMBOL >> NAME 'circle' >> TYPE ELLIPSE >> POINTS 1 1 END >> FILLED TRUE >> END >> >> LAYER >> PROJECTION >> "init=epsg:4202" # Also Zone 53 "20253" >> END >> CONNECTIONTYPE OGR >> CONNECTION "ADELBRIS.TIF" >> TYPE RASTER >> STATUS DEFAULT >> UNITS METERS >> END >> >> END # Map File > > From Frank.Broniewski at MNHA.ETAT.LU Wed Oct 6 05:07:01 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Wed, 6 Oct 2004 14:07:01 +0200 Subject: Trouble with queryby... Message-ID: Hello I am experiencing problems with the query-methods of phpmapscript. I always get the errormessage: "Error in msQueryByPoint(): No matching record(s) found." My querycode is: $MapObj->queryByRect($myPixelRectObj); and $MapObj->queryByPoint($myPointObj, MS_SINGLE, 0); I controlled already the coordinates of $myPixelRectObj which are ok. The layer which I query is default off in the mapfile, but turned on later dynamically. It is displayed correctly in my map. I use the rosa applet to interact with the user. When I change my code for the pointquery to the following: $myLayer = $MapObj->getLayerByName("Points"); $myLayer->set("status",1); $myLayer->queryByPoint($myPointObj, MS_SINGLE, 0); I get a result. But if I comment out the line $myLayer->set("status",1); I get also the above mentioned error. The query with queryByRect just won't work with this workaround. My question is now: How do I get my queries working with the $map Mapobject? Does anyone see a reason, why the layerquery works for point, but not for rect? Is there a particular order in building the map when I want to query? Like first draw the map then query? Make layers active (status = on) then query? But they are already drawn on the queried map?! Why can I not query the mapobject but a single layer? I work with Apache 2.0.50 on Windows XP Home and php 4.3.8. Mapserver Version: MapServer version 4.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE MapScript version: ($Revision: 1.194.2.4 $ $Date: 2004/07/07 19:37:19 $) Many Thanks for any tipps which shed light on my problem Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC 241, Rue de Luxembourg L-8077 Bertrange From lfilak at MEDINACO.ORG Wed Oct 6 05:16:20 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 6 Oct 2004 08:16:20 -0400 Subject: Trouble with queryby... Message-ID: The following message was sent by Frank Broniewski on Wed, 6 Oct 2004 14:07:01 +0200. > Hello > > I am experiencing problems with the query-methods of phpmapscript. I > always > get the errormessage: "Error in msQueryByPoint(): No matching record(> s) > found." > > My querycode is: > $MapObj->queryByRect($myPixelRectObj); > and > $MapObj->queryByPoint($myPointObj, MS_SINGLE, 0); > > I controlled already the coordinates of $myPixelRectObj which are ok.> The > layer which I query is default off in the mapfile, but turned on late> r > dynamically. It is displayed correctly in my map. I use the rosa appl> et to > interact with the user. > > When I change my code for the pointquery to the following: > $myLayer = $MapObj->getLayerByName("Points"); > $myLayer->set("status",1); > $myLayer->queryByPoint($myPointObj, MS_SINGLE, 0); > I get a result. But if I comment out the line $myLayer->set("status",> 1); I > get also the above mentioned error. The query with queryByRect just w> on't > work with this workaround. > > My question is now: How do I get my queries working with the $map Map> object? > Does anyone see a reason, why the layerquery works for point, but not> for > rect? Is there a particular order in building the map when I want to > query? > Like first draw the map then query? Make layers active (status = on> ) then > query? But they are already drawn on the queried map?! Why can I not > query > the mapobject but a single layer? > > I work with Apache 2.0.50 on Windows XP Home and php 4.3.8. > Mapserver Version: > MapServer version 4.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPU> T=WBMP > OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORT> S=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INP> UT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > MapScript version: > ($Revision: 1.194.2.4 $ $Date: 2004/07/07 19:37:19 $) > > Many Thanks for any tipps which shed light on my problem Frank, Do you have a "template" set for the layer? Lowell From Frank.Broniewski at MNHA.ETAT.LU Wed Oct 6 05:21:47 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Wed, 6 Oct 2004 14:21:47 +0200 Subject: [UMN_MAPSERVER-USERS] Trouble with queryby... In-Reply-To: <20041006121602.7AB201A65A5@mail.medinaco.org> Message-ID: Hello Yes of course ;-) Template "dasistegal.html" It is a dummy template LAYER Name "Points" Data epc/points Status Off Type Point Tolerance 5 Template "dasistegal.html" Group "Compl?ments" Metadata access "2" database "tbl_point" End Class Name "Points" # Template "dasistegal.html" Style symbol "circle" color 0 255 0 size 2 End End END This is the complete layer definition. Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Lowell Filak Envoy? : mercredi 6 octobre 2004 13:16 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Trouble with queryby... Frank, Do you have a "template" set for the layer? Lowell From Frank.Broniewski at MNHA.ETAT.LU Wed Oct 6 06:02:54 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Wed, 6 Oct 2004 15:02:54 +0200 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Trouble with queryby... In-Reply-To: <4163E7FC.1060102@ilmenau.baw.de> Message-ID: Hallo Quote: I don't know if this could be a problem but I think you have to put the status of your layer to on to query it. After the query you can set it to off again. Is the status of the layer not On by default when I can see it in my map? Quote: The other thing is that you use layer->query where you get results and in the other case you use map->query. Where is the difference? Layer->query queries only one layer, map->query queries all active layers? I want to use map->query to query all active layers in my map instead of cycling through each layer and query it one by one. And why does $myLayer = $MapObj->getLayerByName("Points"); $myLayer->set("status",1); $myLayer->queryByRect($myPixelRectObj); return also the error "Error in msQueryByRect(): No matching record(s) found" while the point query works? Quote: ... the location is not in Pixel in this case instead it is in map coords I converted the pixel coordinates to map coordinates with a function similar to the function found in the gmap demo. There by the way they use also $map->query ... which does not find a result in my code (see above) I am rather helpless here. As I searched the newsgroup archives, there seem to be a lot of people using $map->query in their code. I wonder if I have to "prepare" the map somehow to query it, like setting all layers to active or something similar in advance. Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC T?l: +352 260 281-21 241, Rue de Luxembourg L-8077 Bertrange -----Message d'origine----- De : Norbert Thieme [mailto:norbert.thieme at ilmenau.baw.de] Envoy? : mercredi 6 octobre 2004 13:42 ? : Frank Broniewski Objet : Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Trouble with queryby... I don't know if this could be a problem but I think you have to put the status of your layer to on to query it. After the query you can set it to off again. The other thing is that you use layer->query where you get results and in the other case you use map->query. Like I understand: http://mapserver.gis.umn.edu/doc42/phpmapscript-class-guide.html#MapObj the location is not in Pixel in this case instead it is in map coords. Regards, Norbert From ivano.picco at AQUPI.TK Wed Oct 6 05:56:32 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Wed, 6 Oct 2004 07:56:32 -0500 Subject: Creating SVG from Shapefile, Oracle Spatial, ArcSDE Message-ID: Hi all, I'm a newbie user, I try to find the answer to my problems in the ML archives, but i can't find anything for these questions: I trying to build a new WebGis application that can be used instead ArcIMS based ones to perform a reliable, robust and fast map rendering. I'm looking to MapServer. Since 1 month I spent my time to learn it and test it in some situations, such as rendering png, export WMS map and feature, rendering SVG map. In my test I see the best performance achieved by using shapefile, but I have to use layer from different sources, also in the same time, like ArcSDE or Oracle Spatial. On rendering pngs, my benchmark from a shapefile (260 Mbyte, 198401 features) hits a 7,62 seconds spent to load all features. I know, this isn't a real-world application, but i'm still in test-mode, however it's very good. With ArcSDE the same layer tooks 40,73 seconds ( ArcIMS ~47 seconds). GREAT! But with Oracle Spatial, the native support on MapServer 102,1 seconds and the OGR 119,51!!! Why? When I compared the rendering time of a png and a SVG from the same layer (352.708 byte and 3 features, maybe a real-world problem, isn't it?) I saw a 0,116 seconds for the png and 7,034 for SVG (!), what do I have to do to speed up the SVG creation? On "rendering" SVGs, with a query on a QUERY layer like an example found on ML, from Shapefile, ArcSDE and Oracle Spatial (2,7 Mbyte, 4886 features) the time was respectively : 3,104 seconds, 19,110 seconds and about 11 minutes !!! With top I see the CGI resources during an Oracle Spatial query: it reachs about 700Mbyte of Physical Memory and 2,2 Gbyte of Stack..... what's happened? Using ogr2ogr it tooks 3 seconds to create a shapefile from Oracle Spatial table containing the 260 Mbyte layer! with this I can bypass the problem converting from Oracle to Shapefile, and using this as the QUERY Layer ( in example above, this kind of application tooks 3,104 seconds (SVG rendering) plus the time for conversion (milliseconds?), instead 11 minutes!). But it's a very poor solution, isn't it? What do I have to do to solve this performance problem? Thanks for your help, Ivano Picco This is my configuration: NAME DEMO STATUS ON SIZE 600 600 EXTENT 313263.000000 4879724.000000 517049.000000 5145994.000000 UNITS METERS DEBUG ON WEB log "/tmp/CTR_map.log" IMAGEPATH '/home/mapserver/public_html/tmp/' IMAGEURL 'http://as2:18091/tmp/' TEMPLATE 'template.html' METADATA WMS_TITLE "UMN MapServer Itasca Demo" WMS_ABSTRACT "This is the UMN MapServer demonstration application for Itasca County located in north central Minnesota." WMS_ACCESSCONSTRAINTS none # change this value to match your setup WMS_ONLINERESOURCE "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" WMS_SRS "EPSG:32632" END HEADER 'header.svg' FOOTER 'footer.svg' QUERYFORMAT 'image/svg+xml' END LAYER NAME SVG_SDE STATUS ON CONNECTION "gea,port:5151,esri_sde,sde,sde" CONNECTIONTYPE SDE DATA "sde.fiumi,SHAPE" TYPE QUERY TEMPLATE county.svg METADATA WMS_TITLE "Regione SVG" WMS_ABSTRACT "Esempio per la generazione di SVG" END END LAYER NAME SVG_SDO STATUS ON CONNECTION "OCI:sdo/sdo at GEA" CONNECTIONTYPE OGR DATA "SELECT OBJECTID,GEOMETRY FROM fiumi" TYPE QUERY TEMPLATE county.svg METADATA WMS_TITLE "Regione SVG" WMS_ABSTRACT "Esempio per la generazione di SVG" END END LAYER NAME bound_10k TYPE POLYGON DATA shape/bound_10 STATUS ON CLASS OUTLINECOLOR 0 0 255 SIZE 4 END METADATA WMS_TITLE "County Boundary" WMS_ABSTRACT "Example og County Boundary" WMS_SRS "EPSG:32632" END END END # Map File My query is: http://as2:18091/cgi-bin/mapserv?map=/home/mapserver/dati/CTR/CTR.map&mode=itemnquery&qitem=OBJECTID&qstring=/./&qlayer=SVG-SDO My Application Server (as2): Red Hat Linux Advanced Server release 2.1AS, kernel 2.4.9-e.3smp, 4 CPUs, 1 Gbyte RAM, 3Gbyte SWAP, Apache 1.3.26, MapServer 4.2.3 From superbla3000 at GMX.NET Wed Oct 6 06:40:07 2004 From: superbla3000 at GMX.NET (joerg p) Date: Wed, 6 Oct 2004 15:40:07 +0200 Subject: overlaping geotiff white area problem Message-ID: hello, I reprojected two utm geotiffs to geo latlong geotiffs. The geotiffs are overlapping and now, reprojected, they have curved sides. But now each geotiff is surrounded by a white area, and i can't set it transparent with offset 255 255 255. So I have several white areas on my map. What should I do? Joerg From ed at TOPOZONE.COM Wed Oct 6 06:40:59 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 6 Oct 2004 09:40:59 -0400 Subject: overlaping geotiff white area problem In-Reply-To: <4163F5B7.5070405@gmx.net> Message-ID: Joerg - The map file statement you want is OFFSITE, not OFFSET. If that doesn't work, tell us how you reprojected the files. - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: joerg p To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wed, 6 Oct 2004 09:40:07 -0400 Subject: [UMN_MAPSERVER-USERS] overlaping geotiff white area problem > hello, > > I reprojected two utm geotiffs to geo latlong geotiffs. The geotiffs are > overlapping and now, reprojected, they have curved sides. > > But now each geotiff is surrounded by a white area, and i can't set it > transparent with offset 255 255 255. > > So I have several white areas on my map. What should I do? > > Joerg > From ed at TOPOZONE.COM Wed Oct 6 06:53:43 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 6 Oct 2004 09:53:43 -0400 Subject: overlaping geotiff white area problem In-Reply-To: <4163F8E6.2020704@gmx.net> Message-ID: Joerg - You should open the new geotiffs in a graphics program that will let you read pixel values, and make sure that those pixels really have a RGB (or palette) value of 255 255 255. They may be "almost white" but OFFSITE requires an exact match. - Ed ----- Original Message ----- From: joerg p To: Ed McNierney Sent: Wed, 6 Oct 2004 09:53:42 -0400 Subject: Re: [UMN_MAPSERVER-USERS] overlaping geotiff white area problem > I already had OFFSITE, offset was a mistake. > > I reprojected the file with globalmapper, by switiching the projection > from utm to geographic, datum:wgs84 and planar units:arc degrees. > > joerg > > > > Ed McNierney wrote: > > Joerg - > > > > The map file statement you want is OFFSITE, not OFFSET. If that doesn't work, > tell us how you reprojected the files. > > > > - Ed > > > > Ed McNierney > > TopoZone.com > > > > ----- Original Message ----- > > From: joerg p > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Sent: Wed, 6 Oct 2004 09:40:07 -0400 > > Subject: [UMN_MAPSERVER-USERS] overlaping geotiff white area problem > > > > > > > >>hello, > >> > >>I reprojected two utm geotiffs to geo latlong geotiffs. The geotiffs are > >>overlapping and now, reprojected, they have curved sides. > >> > >>But now each geotiff is surrounded by a white area, and i can't set it > >>transparent with offset 255 255 255. > >> > >>So I have several white areas on my map. What should I do? > >> > >>Joerg > >> > > > > > > > > From superbla3000 at GMX.NET Wed Oct 6 07:07:42 2004 From: superbla3000 at GMX.NET (joerg p) Date: Wed, 6 Oct 2004 16:07:42 +0200 Subject: overlaping geotiff white area problem In-Reply-To: <20041006095343.6eb88608@strabo11> Message-ID: thanks, it was 255 255 204... joerg Ed McNierney wrote: > Joerg - > > You should open the new geotiffs in a graphics program that will let you read pixel values, and make sure that those pixels really have a RGB (or palette) value of 255 255 255. They may be "almost white" but OFFSITE requires an exact match. > > - Ed > > ----- Original Message ----- > From: joerg p > To: Ed McNierney > Sent: Wed, 6 Oct 2004 09:53:42 -0400 > Subject: Re: [UMN_MAPSERVER-USERS] overlaping geotiff white area problem > > > >>I already had OFFSITE, offset was a mistake. >> >>I reprojected the file with globalmapper, by switiching the projection >>from utm to geographic, datum:wgs84 and planar units:arc degrees. >> >>joerg >> >> >> >>Ed McNierney wrote: >> >>>Joerg - >>> >>>The map file statement you want is OFFSITE, not OFFSET. If that doesn't work, >> >>tell us how you reprojected the files. >> >>> - Ed >>> >>>Ed McNierney >>>TopoZone.com >>> >>>----- Original Message ----- >>>From: joerg p >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Sent: Wed, 6 Oct 2004 09:40:07 -0400 >>>Subject: [UMN_MAPSERVER-USERS] overlaping geotiff white area problem >>> >>> >>> >>> >>>>hello, >>>> >>>>I reprojected two utm geotiffs to geo latlong geotiffs. The geotiffs are >>>>overlapping and now, reprojected, they have curved sides. >>>> >>>>But now each geotiff is surrounded by a white area, and i can't set it >>>>transparent with offset 255 255 255. >>>> >>>>So I have several white areas on my map. What should I do? >>>> >>>>Joerg >>>> >>> >>> >>> >> > > From nicolas.fortin at EC.GC.CA Wed Oct 6 08:27:37 2004 From: nicolas.fortin at EC.GC.CA (Nicolas Fortin) Date: Wed, 6 Oct 2004 10:27:37 -0500 Subject: Mapserver 4.2.3 compiled for Oracle ? Message-ID: Did someone already compile 4.2.3 with Oracle support ? If yes, where can I fond it? I checked the maptools.org site and saw a file named mapserver-4.3-win32-php4.3.7_oracle.zip ... as far as I know, there's no v4.3 yet !? Thanks, Nicolas From lfilak at MEDINACO.ORG Wed Oct 6 09:20:09 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 6 Oct 2004 12:20:09 -0400 Subject: [UMN_MAPSERVER-USERS] Trouble with queryby... Message-ID: The following message was sent by Frank Broniewski on Wed, 6 Oct 2004 14:21:47 +0200. > Hello > > Yes of course ;-) > > Template "dasistegal.html" > > It is a dummy template > > LAYER > Name "Points" > Data epc/points > Status Off > Type Point > Tolerance 5 > Template "dasistegal.html" > Group "Compl?ments" > > Metadata > access "2" > database "tbl_point" > End > > Class > Name "Points" > # Template "dasistegal.html" > Style > symbol "circle" > color 0 255 0 > size 2 > End > End > END > > > This is the complete layer definition. > > Frank Broniewski > Mus?e National d'Histoire et d'Art > Section Pr?histoire / Projet EPC > T?l: +352 260 281-21 > 241, Rue de Luxembourg > L-8077 Bertrange > > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > De la > part de Lowell Filak > Envoy? : mercredi 6 octobre 2004 13:16 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] Trouble with queryby... > > > Frank, > > Do you have a "template" set for the layer? > > Lowell Frank, I it could be a few things then. As others already suggested, are you certain the layer is turned on before the query? It sounds like you have verified that the query coordinates being used are in map coordinates vs pixel coordinates.? Could it be a projection issue or is all the data in the same projection? Lowell From querada499 at HOTMAIL.COM Wed Oct 6 09:11:31 2004 From: querada499 at HOTMAIL.COM (Robin Robin) Date: Wed, 6 Oct 2004 16:11:31 +0000 Subject: metadata url Message-ID: hi all, does anyone know what variable has to be in the map file for the metadata url variable to be filled in the popup? For example, in the bilingual sample with Chameleon, by clicking on a layer name, a window opens with layer name, title, data url, metadata url etc. I know that by setting WMS_title 'layer title' in the metadata, this field will be filled in the popup window. I am interested in filling the other values but the variable names are not obvious. I tried WMS_Metadata_url and WMS_MetadataURL and WMS_URL but none of these had any results. Any ideas? Thanks in advance. Robin _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From Tom.Kralidis at EC.GC.CA Wed Oct 6 09:26:00 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 6 Oct 2004 12:26:00 -0400 Subject: metadata url Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Robin Robin > Sent: Wednesday, 06 October, 2004 12:12 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] metadata url > > > hi all, > > does anyone know what variable has to be in the map file for > the metadata url variable to be filled in the popup? For > example, in the bilingual sample with Chameleon, by clicking > on a layer name, a window opens with layer name, title, data > url, metadata url etc. I know that by setting WMS_title > 'layer title' in the metadata, this field will be filled in > the popup window. I am interested in filling the other > values but the variable names are not obvious. I tried > WMS_Metadata_url and WMS_MetadataURL and WMS_URL but none of > these had any results. Any ideas? > I know these are available, i.e. something like: "wms_metadataurl_format" "text/xml" "wms_metadataurl_href" "http://host/metadata.xml" "wms_dataurl_format" "text/html" "wms_dataurl_href" "http://host/data.html" ...this is supported by MapServer's Web Map Context Documents (WMC) support, but not in WMS or WFS yet for Capabilities. ..Tom > Thanks in advance. > > Robin > > _________________________________________________________________ > Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail From superbla3000 at GMX.NET Wed Oct 6 09:58:36 2004 From: superbla3000 at GMX.NET (joerg p) Date: Wed, 6 Oct 2004 18:58:36 +0200 Subject: tile and overview Message-ID: hello, I downloaded several overlapping europe etm+ mosaics, reprojected them to geo. Each file is around 1.2 GB. For better performance I know I have to tile them and build overviews. To tile and remove the overlapping, i would like to first combine all images and then to tile them. It's gonna be a really huge file during this process, around 18 GB, does this work? Could someone give me an example of this gdal combine command? I can't find it. How many overview steps should I build, is there a rule of thumb? thanks joerg From dylan at IICI.NO-IP.ORG Wed Oct 6 10:21:09 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Wed, 6 Oct 2004 10:21:09 -0700 Subject: tile and overview In-Reply-To: <4164243C.5060502@gmx.net> Message-ID: Hi -- try the command gdal_merge.py: Usage: gdal_merge.py [-o out_filename] [-of out_format] [-co NAME=VALUE]* ? ? ? ? ? ? ? ? ? ? ?[-ps pixelsize_x pixelsize_y] [-separate] [-v] [-pct] ? ? ? ? ? ? ? ? ? ? ?[-ul_lr ulx uly lrx lry] [-n nodata_value] [-init value] ? ? ? ? ? ? ? ? ? ? ?input_files note that you have to compile gdal with python support for this to work. Cheers! Dylan On Wednesday 06 October 2004 09:58 am, joerg p wrote: > hello, > > I downloaded several overlapping europe etm+ mosaics, reprojected them > to geo. Each file is around 1.2 GB. For better performance I know I have > to tile them and build overviews. > > To tile and remove the overlapping, i would like to first combine all > images and then to tile them. > It's gonna be a really huge file during this process, around 18 GB, does > this work? > Could someone give me an example of this gdal combine command? I can't > find it. > > How many overview steps should I build, is there a rule of thumb? > > thanks > joerg From ealpert at DIGITALGLOBE.COM Wed Oct 6 10:58:08 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 6 Oct 2004 11:58:08 -0600 Subject: How do you get the image out of imageObj without having to save it? Message-ID: $img = $map->draw(); Now I just want to return the image with the correct content type from my CGI. Do I really need to save it first to do this? -e From lfilak at MEDINACO.ORG Wed Oct 6 11:45:33 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 6 Oct 2004 14:45:33 -0400 Subject: How do you get the image out of imageObj without having to save it? Message-ID: The following message was sent by Ethan Alpert on Wed, 6 Oct 2004 11:58:08 -0600. > $img = $map->draw(); > > Now I just want to return the image with the correct content type from > my CGI. Do I really need to save it first to do this? > > -e Ethan, Yes. This is another typemap issue that I think is being worked on elsewhere.? However, the solution actually resides in the archives but has not been incorporated into the source yet. http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0305/msg00581.html Lowell From sgillies at FRII.COM Wed Oct 6 11:50:17 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 6 Oct 2004 12:50:17 -0600 Subject: How do you get the image out of imageObj without having to save it? In-Reply-To: Message-ID: On Oct 6, 2004, at 12:45 PM, Lowell Filak wrote: > The following message was sent by Ethan Alpert > on Wed, 6 Oct 2004 11:58:08 -0600. > >> $img = $map->draw(); >> >> Now I just want to return the image with the correct content type from >> my CGI. Do I really need to save it first to do this? >> >> -e > > Ethan, > > Yes. This is another typemap issue that I think is being worked on > elsewhere.? > However, the solution actually resides in the archives but has not been > incorporated into the source yet. > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0305/ > msg00581.html > > Lowell > > Lowell, Ethan, All it takes is for one of you to create an enhancement issue in Bugzilla and then attach a working patch against the current CVS head. You could have the feature in 4.4 and I'm happy to help make it happen. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From lfilak at MEDINACO.ORG Wed Oct 6 11:59:54 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 6 Oct 2004 14:59:54 -0400 Subject: How do you get the image out of imageObj without having to save it? Message-ID: The following message was sent by Sean Gillies on Wed, 6 Oct 2004 12:50:17 -0600. > On Oct 6, 2004, at 12:45 PM, Lowell Filak wrote: > > > The following message was sent by Ethan Alpert > > on Wed, 6 Oct 2004 11:58:08 -0600. > > > >> $img = $map->draw(); > >> > >> Now I just want to return the image with the correct content type from > >> my CGI. Do I really need to save it first to do this? > >> > >> -e > > > > Ethan, > > > > Yes. This is another typemap issue that I think is being worked on > > elsewhere.? > > However, the solution actually resides in the archives but has not been > > incorporated into the source yet. > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0305/ > > msg00581.html > > > > Lowell > > > > > > Lowell, Ethan, > > All it takes is for one of you to create an enhancement issue in > Bugzilla > and then attach a working patch against the current CVS head. You could > have the feature in 4.4 and I'm happy to help make it happen. > > cheers, > Sean Sean, Please don't misunderstand. This wasn't directed toward you. There are quite a few people, including myself, who could/should be helping with placing things like this into source and aren't. Lowell From sgillies at FRII.COM Wed Oct 6 12:09:34 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 6 Oct 2004 13:09:34 -0600 Subject: How do you get the image out of imageObj without having to save it? In-Reply-To: Message-ID: On Oct 6, 2004, at 12:59 PM, Lowell Filak wrote: > The following message was sent by Sean Gillies on > Wed, 6 Oct 2004 12:50:17 -0600. > >> On Oct 6, 2004, at 12:45 PM, Lowell Filak wrote: >> >>> The following message was sent by Ethan Alpert >>> on Wed, 6 Oct 2004 11:58:08 -0600. >>> >>>> $img = $map->draw(); >>>> >>>> Now I just want to return the image with the correct content type >>>> from >>>> my CGI. Do I really need to save it first to do this? >>>> >>>> -e >>> >>> Ethan, >>> >>> Yes. This is another typemap issue that I think is being worked on >>> elsewhere.? >>> However, the solution actually resides in the archives but has not >>> been >>> incorporated into the source yet. >>> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0305/ >>> msg00581.html >>> >>> Lowell >>> >>> >> >> Lowell, Ethan, >> >> All it takes is for one of you to create an enhancement issue in >> Bugzilla >> and then attach a working patch against the current CVS head. You >> could >> have the feature in 4.4 and I'm happy to help make it happen. >> >> cheers, >> Sean > > Sean, > > Please don't misunderstand. This wasn't directed toward you. There are > quite a few people, including myself, who could/should be helping with > placing things like this into source and aren't. > > Lowell > OK, just a friendly reminder. I was discussing this with Ethan on IRC, I'll cc you on any new issue that gets created in the tracker. cheers, Sean From jim at E-MASI.COM Wed Oct 6 14:09:49 2004 From: jim at E-MASI.COM (Jim) Date: Wed, 6 Oct 2004 17:09:49 -0400 Subject: How do you get the image out of imageObj without having to save it? Message-ID: No, just use Content type image/jpeg Jim Burnett Free Visual Basic.NET GIS http://www.visualbasicgis.com/ ----- Original Message ----- From: "Ethan Alpert" To: Sent: Wednesday, October 06, 2004 1:58 PM Subject: [UMN_MAPSERVER-USERS] How do you get the image out of imageObj without having to save it? > $img = $map->draw(); > > Now I just want to return the image with the correct content type from > my CGI. Do I really need to save it first to do this? > > -e From ealpert at DIGITALGLOBE.COM Wed Oct 6 14:31:50 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 6 Oct 2004 15:31:50 -0600 Subject: How do you get the image out of imageObj without having to save it? Message-ID: print $q->header(-type=>'image/png'); . . . $img = $map->draw(); $out = "/usr/local/apache/htdocs/tmp/$$_myaction.png"; $img->save($out); $myimg = Slurp::to_scalar($out); print $myimg; -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jim Sent: Wednesday, October 06, 2004 3:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How do you get the image out of imageObj without having to save it? No, just use Content type image/jpeg Jim Burnett Free Visual Basic.NET GIS http://www.visualbasicgis.com/ ----- Original Message ----- From: "Ethan Alpert" To: Sent: Wednesday, October 06, 2004 1:58 PM Subject: [UMN_MAPSERVER-USERS] How do you get the image out of imageObj without having to save it? > $img = $map->draw(); > > Now I just want to return the image with the correct content type from > my CGI. Do I really need to save it first to do this? > > -e From vaiod at BERLOY.COM Wed Oct 6 15:32:36 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Wed, 6 Oct 2004 15:32:36 -0700 Subject: Conversion Problem Message-ID: I am trying to figure out how to take a point on my map and convert it to a GPS format (e.g. 34d21'12" 112d43'12"). Can anybody point me in a direction as to how to accomplish this.. I am using nad83:202 projection if that helps at all. Eric From ARyan at CO.LINN.OR.US Wed Oct 6 15:58:37 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 6 Oct 2004 15:58:37 -0700 Subject: Conversion Problem Message-ID: > -----Original Message----- > From: Eric Katherman [mailto:vaiod at BERLOY.COM] > Sent: Wednesday, October 06, 2004 3:33 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Conversion Problem > > > I am trying to figure out how to take a point on my map and > convert it to a GPS format (e.g. 34d21'12" 112d43'12"). Can > anybody point me in a direction as to how to accomplish > this.. I am using nad83:202 projection if that helps at all. > > Eric > Eric, According to http://mapserver.gis.umn.edu/doc42/template-reference.html " if the MapServer was compiled with PROJ support and a projection is defined in the mapfile " you can use [minlon], [minlat], [maxlon] [maxlat] together with your image height and width to get the lat lon with a mousemove or click or whatever. Note that the accuracy of this depends on scale, and probably a few other things that others can elaborate on. Zoom out too far and this technique is not so hot. Adam From 39507 at MAIL.MUNI.CZ Wed Oct 6 15:59:51 2004 From: 39507 at MAIL.MUNI.CZ (Michal =?ISO-8859-2?Q?Krupi=E8ka?=) Date: Thu, 7 Oct 2004 00:59:51 +0200 Subject: Displaying grass cell files Message-ID: Hi all, this is my first question here. I am trying to display grass cell file. The only thing i see in my browser is this: msDrawMap(): Image handling error. Failed to draw layer named 'edges'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /home/michal/grass/global/PERMANENT/cell/edges is not an EPPL file. this is declaration in my .map file: LAYER NAME edges TYPE raster STATUS ON DATA "/home/michal/grass/global/PERMANENT/cell/edges" END after command ./mapserv -v : MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Could anyone please help me with this problem? Thanks for your time. Mike From keon at NACSE.ORG Wed Oct 6 16:14:01 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 6 Oct 2004 16:14:01 -0700 Subject: Displaying grass cell files In-Reply-To: <1097103588-39507-511.091441847384-12858@mail.muni.cz> Message-ID: On 10/06/2004 03:59 PM, Michal Krupi?ka wrote: > Hi all, > this is my first question here. I am trying to display grass cell file. > The only thing i see in my browser is this: > > msDrawMap(): Image handling error. Failed to draw layer named 'edges'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image format > drawEPP(): Image handling error. /home/michal/grass/global/PERMANENT/cell/edges > is not an EPPL file. > > this is declaration in my .map file: > > LAYER > NAME edges > TYPE raster > STATUS ON > DATA "/home/michal/grass/global/PERMANENT/cell/edges" > END > > > after command ./mapserv -v : > > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Could anyone please help me with this problem? > Thanks for your time. Always compile --without-tiff if you're compiling --with-gdal. Give that a try first. As long as you're recompiling, you might as well upgrade to 4.2.3 too. --Dylan From 39507 at MAIL.MUNI.CZ Wed Oct 6 16:21:45 2004 From: 39507 at MAIL.MUNI.CZ (Michal =?ISO-8859-2?Q?Krupi=E8ka?=) Date: Thu, 7 Oct 2004 01:21:45 +0200 Subject: Displaying grass cell files In-Reply-To: <41647C39.8030206@nacse.org> Message-ID: > On 10/06/2004 03:59 PM, Michal Krupi?ka wrote: > > Hi all, > > this is my first question here. I am trying to display grass cell file. > > The only thing i see in my browser is this: > > > > msDrawMap(): Image handling error. Failed to draw layer named 'edges'. > > msDrawRaster(): Image handling error. Unrecognized or unsupported image format > > drawEPP(): Image handling error. /home/michal/grass/global/PERMANENT/cell/edges > > is not an EPPL file. > > > > this is declaration in my .map file: > > > > LAYER > > NAME edges > > TYPE raster > > STATUS ON > > DATA "/home/michal/grass/global/PERMANENT/cell/edges" > > END > > > > > > after command ./mapserv -v : > > > > MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT > > INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > Could anyone please help me with this problem? > > Thanks for your time. > > > Always compile --without-tiff if you're compiling --with-gdal. Give > that a try first. > Ok, i am going to try, but will i be able to display .tiff images if i use --without-tiff option? Thanks Mike > As long as you're recompiling, you might as well upgrade to 4.2.3 > too. > > --Dylan From keon at NACSE.ORG Wed Oct 6 16:27:41 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 6 Oct 2004 16:27:41 -0700 Subject: Displaying grass cell files In-Reply-To: <1097104903-39507-380.883898120373-21867@mail.muni.cz> Message-ID: On 10/06/2004 04:21 PM, Michal Krupi?ka wrote: >>On 10/06/2004 03:59 PM, Michal Krupi?ka wrote: >> >>>Hi all, >>> this is my first question here. I am trying to display grass cell file. >>> The only thing i see in my browser is this: >>> >>> msDrawMap(): Image handling error. Failed to draw layer named 'edges'. >>> msDrawRaster(): Image handling error. Unrecognized or unsupported image format >>> drawEPP(): Image handling error. /home/michal/grass/global/PERMANENT/cell/edges >>>is not an EPPL file. >>> >>> this is declaration in my .map file: >>> >>> LAYER >>> NAME edges >>> TYPE raster >>> STATUS ON >>> DATA "/home/michal/grass/global/PERMANENT/cell/edges" >>>END >>> >>> >>>after command ./mapserv -v : >>> >>>MapServer version 4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ >>>SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT >>>INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>>Could anyone please help me with this problem? >>>Thanks for your time. >> >> >>Always compile --without-tiff if you're compiling --with-gdal. Give >>that a try first. >> > > Ok, i am going to try, but will i be able to display .tiff images if i use > --without-tiff option? > Thanks Mike Yes, if you compile GDAL with libtiff and libgeotiff support. I always compile GDAL using --with-libtiff=internal and --with-geotiff=internal. Actually, I'm not sure if those declarations are necessary, or whether GDAL has tiff support built-in by default. In any case, it's a good idea to use GDAL's internal tiff support. --Dylan From vaiod at BERLOY.COM Wed Oct 6 16:47:41 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Wed, 6 Oct 2004 16:47:41 -0700 Subject: Conversion Problem In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A845AC65@linnms.co.linn.or.us> Message-ID: I do have MS compiled with PROJ support and am using mapscript. Could you give me a quick example as to how I go about using the minlon minlat.... in a one or two line statement. Is it a class item or is it something I would put in my mapfile? I haven't found anything about it under the mapscript docs yet. Eric > > -----Original Message----- > > From: Eric Katherman [mailto:vaiod at BERLOY.COM] > > Sent: Wednesday, October 06, 2004 3:33 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Conversion Problem > > > > > > I am trying to figure out how to take a point on my map and > > convert it to a GPS format (e.g. 34d21'12" 112d43'12"). Can > > anybody point me in a direction as to how to accomplish > > this.. I am using nad83:202 projection if that helps at all. > > > > Eric > > Eric, > > According to http://mapserver.gis.umn.edu/doc42/template-reference.html > > " if the MapServer was compiled with PROJ support and a projection is > defined in the mapfile " you can use [minlon], [minlat], [maxlon] [maxlat] > together with your image height and width to get the lat lon with a > mousemove or click or whatever. Note that the accuracy of this depends on > scale, and probably a few other things that others can elaborate on. Zoom > out too far and this technique is not so hot. > > Adam From pbay6343 at BIGPOND.NET.AU Thu Oct 7 00:29:03 2004 From: pbay6343 at BIGPOND.NET.AU (Peter Bayley) Date: Thu, 7 Oct 2004 17:29:03 +1000 Subject: Creating SVG from Shapefile, Oracle Spatial, ArcSDE Message-ID: Have you built spatial indexes for your tables in the Oracle database? I use PostgreSQL and PostGIS and it's faster than Shape or TAB files Peter ----- Original Message ----- From: "Ivano Picco" To: Sent: Wednesday, October 06, 2004 10:56 PM Subject: [UMN_MAPSERVER-USERS] Creating SVG from Shapefile, Oracle Spatial, ArcSDE > Hi all, > I'm a newbie user, I try to find the answer to my problems in the ML > archives, but i can't find anything for these questions: > I trying to build a new WebGis application that can be used instead ArcIMS > based ones to perform a reliable, robust and fast map rendering. I'm looking > to MapServer. Since 1 month I spent my time to learn it and test it in some > situations, such as rendering png, export WMS map and feature, rendering SVG > map. > In my test I see the best performance achieved by using shapefile, but I > have to use layer from different sources, also in the same time, like ArcSDE > or Oracle Spatial. > On rendering pngs, my benchmark from a shapefile (260 Mbyte, 198401 > features) hits a 7,62 seconds spent to load all features. I know, this isn't > a real-world application, but i'm still in test-mode, however it's very good. > With ArcSDE the same layer tooks 40,73 seconds ( ArcIMS ~47 seconds). GREAT! > But with Oracle Spatial, the native support on MapServer 102,1 seconds and > the OGR 119,51!!! > Why? > When I compared the rendering time of a png and a SVG from the same layer > (352.708 byte and 3 features, maybe a real-world problem, isn't it?) I saw a > 0,116 seconds for the png and 7,034 for SVG (!), what do I have to do to > speed up the SVG creation? > On "rendering" SVGs, with a query on a QUERY layer like an example found on > ML, from Shapefile, ArcSDE and Oracle Spatial (2,7 Mbyte, 4886 features) the > time was respectively : 3,104 seconds, 19,110 seconds and about 11 minutes > !!! With top I see the CGI resources during an Oracle Spatial query: it > reachs about 700Mbyte of Physical Memory and 2,2 Gbyte of Stack..... what's > happened? > Using ogr2ogr it tooks 3 seconds to create a shapefile from Oracle Spatial > table containing the 260 Mbyte layer! with this I can bypass the problem > converting from Oracle to Shapefile, and using this as the QUERY Layer ( in > example above, this kind of application tooks 3,104 seconds (SVG rendering) > plus the time for conversion (milliseconds?), instead 11 minutes!). But it's > a very poor solution, isn't it? > What do I have to do to solve this performance problem? > > Thanks for your help, > Ivano Picco > > This is my configuration: > > NAME DEMO > STATUS ON > SIZE 600 600 > EXTENT 313263.000000 4879724.000000 517049.000000 5145994.000000 > UNITS METERS > > DEBUG ON > > WEB > log "/tmp/CTR_map.log" > IMAGEPATH '/home/mapserver/public_html/tmp/' > IMAGEURL 'http://as2:18091/tmp/' > TEMPLATE 'template.html' > METADATA > WMS_TITLE "UMN MapServer Itasca Demo" > WMS_ABSTRACT "This is the UMN MapServer demonstration application for > Itasca County located in north central Minnesota." > WMS_ACCESSCONSTRAINTS none > # change this value to match your setup > WMS_ONLINERESOURCE > "http://localhost.localdomain/mapserver_demos/itasca/demo_init.html" > WMS_SRS "EPSG:32632" > END > HEADER 'header.svg' > FOOTER 'footer.svg' > QUERYFORMAT 'image/svg+xml' > END > > LAYER > NAME SVG_SDE > STATUS ON > CONNECTION "gea,port:5151,esri_sde,sde,sde" > CONNECTIONTYPE SDE > DATA "sde.fiumi,SHAPE" > TYPE QUERY > TEMPLATE county.svg > METADATA > WMS_TITLE "Regione SVG" > WMS_ABSTRACT "Esempio per la generazione di SVG" > END > END > > LAYER > NAME SVG_SDO > STATUS ON > CONNECTION "OCI:sdo/sdo at GEA" > CONNECTIONTYPE OGR > DATA "SELECT OBJECTID,GEOMETRY FROM fiumi" > TYPE QUERY > TEMPLATE county.svg > METADATA > WMS_TITLE "Regione SVG" > WMS_ABSTRACT "Esempio per la generazione di SVG" > END > END > > LAYER > NAME bound_10k > TYPE POLYGON > DATA shape/bound_10 > STATUS ON > CLASS > OUTLINECOLOR 0 0 255 > SIZE 4 > END > METADATA > WMS_TITLE "County Boundary" > WMS_ABSTRACT "Example og County Boundary" > WMS_SRS "EPSG:32632" > END > END > END # Map File > > My query is: > http://as2:18091/cgi-bin/mapserv?map=/home/mapserver/dati/CTR/CTR.map&mode=itemnquery&qitem=OBJECTID&qstring=/./&qlayer=SVG-SDO > > My Application Server (as2): > Red Hat Linux Advanced Server release 2.1AS, kernel 2.4.9-e.3smp, 4 CPUs, 1 > Gbyte RAM, 3Gbyte SWAP, Apache 1.3.26, MapServer 4.2.3 > From ivano.picco at AQUPI.TK Thu Oct 7 01:18:40 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Thu, 7 Oct 2004 03:18:40 -0500 Subject: Creating SVG from Shapefile, Oracle Spatial, ArcSDE Message-ID: Yes, I have spatial indexes for all tables. I'm quite sure is not a problem involving some kind of problem during Oracle Connection, because the OCI driver do the same thing both on Mapserver and on Ogr2Ogr (and ogrinfo too) and it's quite fast, also the connection trough ArcSDE is slowly than the Shapefile access, especially during the SVG rendering test. Maybe there's a problem with Mapserver, maybe it's my configuration. Thanks, Ivano picco On Thu, 7 Oct 2004 17:29:03 +1000, Peter Bayley wrote: >Have you built spatial indexes for your tables in the Oracle database? I >use PostgreSQL and PostGIS and it's faster than Shape or TAB files > >Peter > From jcastil1 at TRAGSA.ES Thu Oct 7 01:49:24 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo) Date: Thu, 7 Oct 2004 03:49:24 -0500 Subject: sdo GTYPE Message-ID: hI ALL I'm having problems trying to load data from sph file to SDO oracle Spatial.... I'm working on a w2k system, IIS 6 and mapserv42(with oracle) and oracle 817 I use shp2sdo, sqlldr ands execute sdomigrate..... I obtain my shp file from ArcView. I do the process to loaddata : shp2sdo, load the data, sqlldr and I have no errors but If I try to execute sde_migrate..._to81x I have an error ... unable to create the spatial object.... I have a polygon with a hole... and in the sdo i have sdo_gtype= 7 I have another polygon without hole and in the SDA I've sdo_gtype = 3 If I load the data on separates loads I have NO errors but If i mix both I obtain the error.... I know that the polygon whit a hole should be 3 but instead of that I obtain 7... Any Idea of: 1.- Why I obtain 7 from a polygon whit a hole 2.- How can I mix polygons with and witout holes Thanks! From info at GEO-IT.COM Thu Oct 7 02:18:40 2004 From: info at GEO-IT.COM (GeoIT) Date: Thu, 7 Oct 2004 11:18:40 +0200 Subject: SWIGMapScript: mapObj.processTemplate Input Parameters Message-ID: Hi Mapserver experts, I want to use mapObj.processTemplate from Java Mapscript to receive the processed HTML Template and let mapserver produce the according images. I managed to get a valid typemapping so that I can supply the necessary parameters to the method in the form of int and String[]. Now the question: What do the parameters "String[] names", "String[] values" and "int numitems" mean ? What "items", "names" and "values" are meant here ? Please advise. Kind regards Andreas Paukner-Ruzicka ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** From Michael.Smith at ERDC.USACE.ARMY.MIL Thu Oct 7 06:14:50 2004 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Thu, 7 Oct 2004 08:14:50 -0500 Subject: Creating SVG from Shapefile, Oracle Spa tial, ArcSDE Message-ID: You should (for Oracle spatial speed) increase the ARRAY_SIZE parameter in maporaclespatial.c and recompile Mapserver. I would recommend ~ 100-1000. This very important as this will dramitically reduce the number of roundtrips between the mapserver and the database. Mike Mike Smith GIS Specialist/Physical Scientist/Oracle Developer Remote Sensing/GIS Center of Expertise Army Engineer Research & Development Center Hanover, NH (603) 646-4765 michael.smith at erdc.usace.army.mil -----Original Message----- From: Ivano Picco [mailto:ivano.picco at AQUPI.TK] Sent: Thursday, October 07, 2004 4:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Creating SVG from Shapefile, Oracle Spatial, ArcSDE Yes, I have spatial indexes for all tables. I'm quite sure is not a problem involving some kind of problem during Oracle Connection, because the OCI driver do the same thing both on Mapserver and on Ogr2Ogr (and ogrinfo too) and it's quite fast, also the connection trough ArcSDE is slowly than the Shapefile access, especially during the SVG rendering test. Maybe there's a problem with Mapserver, maybe it's my configuration. Thanks, Ivano picco On Thu, 7 Oct 2004 17:29:03 +1000, Peter Bayley wrote: >Have you built spatial indexes for your tables in the Oracle database? >I use PostgreSQL and PostGIS and it's faster than Shape or TAB files > >Peter > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivano.picco at AQUPI.TK Thu Oct 7 06:42:32 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Thu, 7 Oct 2004 08:42:32 -0500 Subject: Creating SVG from Shapefile, Oracle Spa tial, ArcSDE Message-ID: Yes, it's just set to 1000, I seen this on another post some days ago. I try it, my tests have been made with this setup. Thanks, Ivano Picco On Thu, 7 Oct 2004 08:14:50 -0500, Smith, Michael ERDC-CRREL-NH wrote: >You should (for Oracle spatial speed) increase the ARRAY_SIZE parameter in >maporaclespatial.c and recompile Mapserver. I would recommend ~ 100-1000. >This very important as this will dramitically reduce the number of >roundtrips between the mapserver and the database. > >Mike > >Mike Smith >GIS Specialist/Physical Scientist/Oracle Developer >Remote Sensing/GIS Center of Expertise >Army Engineer Research & Development Center >Hanover, NH >(603) 646-4765 >michael.smith at erdc.usace.army.mil > From j.l.h.hartmann at UVA.NL Thu Oct 7 06:54:38 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Thu, 7 Oct 2004 15:54:38 +0200 Subject: gdalwarp for tiling rasters (was: showing 2 landsat utm geotiff) In-Reply-To: <415EBB46.4050101@gmx.net> Message-ID: joerg p wrote: > hello, > I downloaded several overlapping europe etm+ mosaics, reprojected them > to geo. Each file is around 1.2 GB. For better performance I know I > have to tile them and build overviews. > To tile and remove the overlapping, i would like to first combine all > images and then to tile them. > It's gonna be a really huge file during this process, around 18 GB, > does this work? > Could someone give me an example of this gdal combine command? I can't > find it. > How many overview steps should I build, is there a rule of thumb? You can use gdalwarp to create tiles from many input files without combining these first into one huge file. The thing to remember is that gdalwarp can warp *into* an existing output file. In that case, all settings of that file (extent, pixel size, projection etc) are conserved, and the content of the input file is copied to the appropriate locations. Gdalwarp does not need to read complete rasters into memory, so you can tile as large a region as you wish. So if you use the following gdalwarp parameters -te xmin ymin xmax ymax -tr xres yres you can create as many tiles as you like and fill them with the input files. A brute force method would be to warp all input files into all output files; a somewhat more clever one would be to check for the extent of the input files first and only warp them into the relevant output tiles. As to the number of overviews: my simple rule of thumb is to resample in factors of two: a 10000*10000 raster gets overviews at 5000*5000, 2500*2500, 1250*1250 and 625*625. There should be no need to go below that. I tile all files in tiles of 2000*2000, although this number is perhaps a bit too small. I would appreciate to hear from others how they do this. Perhaps this functionality of gdalwarp could be explained a bit more in detail in the manual page. For now it only says: "Mosaicing into an existing output file is supported if the output file already exists". This is really a very important and powerful aspect of the program and it is very easy to overlook this line. At least that is what I did for a considerable length of time. Jan From sgillies at FRII.COM Thu Oct 7 07:14:45 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 7 Oct 2004 08:14:45 -0600 Subject: SWIGMapScript: mapObj.processTemplate Input Parameters In-Reply-To: Message-ID: On Oct 7, 2004, at 3:18 AM, GeoIT wrote: > Hi Mapserver experts, > I want to use mapObj.processTemplate from Java Mapscript to receive the > processed HTML Template and let mapserver produce the according images. > I managed to get a valid typemapping so that I can supply the necessary > parameters to the method in the form of int and String[]. > Now the question: What do the parameters "String[] names", "String[] > values" > and "int numitems" mean ? > What "items", "names" and "values" are meant here ? > > Please advise. > > Kind regards > Andreas Paukner-Ruzicka > As you noticed, template processing in SWIG mapscript doesn't really work without these typemaps. I really don't know why the method has remained for so long in a non-working state, but clearly people have not been using it. Otherwise the typemaps would exist. I think that most users use a better templating system in their applications. That would be HTML::Template or Mason for Perl, PSP or Zope page templates for Python. I'm sure that Java has a wide array of templating libraries, and strongly suggest that you use these. They are more powerful and flexible than Mapserver's templating and because they have larger user bases, will be better tested and have fewer bugs. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From spiff88gis at HOTMAIL.COM Thu Oct 7 07:15:19 2004 From: spiff88gis at HOTMAIL.COM (Brian Johnson) Date: Thu, 7 Oct 2004 09:15:19 -0500 Subject: [OT] Landsat WMS not working? Message-ID: I don't know when it will be back online - but I know it has been getting hit pretty hard by a new piece of software called WorldWind. Check it out at http://learn.arc.nasa.gov/worldwind/index.html. It is a 260MB download - but this program is amazing. A true 3D earth model that you can rotate, zoomin, fly over. Download multiple layers of data at various resolutions, connect to WMS servers, and have STRM data for elevations. Currently - the Landsat and STRM servers were being overloaded - and I think are in the process of being upgraded. Brian Johnson > WMS on http://wms.jpl.nasa.gov/wms.cgi stopped responding...... >I use this WMS in some of my test sites, does anybody know what happened and >will it be back online? > >Can someone please point out some free and interesting WMS servers on the >internet covering Europe > >Thanks, > >Goran From info at GEO-IT.COM Thu Oct 7 08:20:25 2004 From: info at GEO-IT.COM (GeoIT) Date: Thu, 7 Oct 2004 17:20:25 +0200 Subject: SWIGMapscript: How to access resultCacheObj after queryByAttribut es ? Message-ID: Dear experts, In Mapserver 4.0 it was possible to get the resultCacheObj after a queryByAttribute using layerObj.getResultcache(). This method is no longer available in 4.2.2. How can I get a resultCacheObj in 4.2.2 SWIGMapscript ? Kind regards Andreas Paukner-Ruzicka ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** From sgillies at FRII.COM Thu Oct 7 08:51:12 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 7 Oct 2004 09:51:12 -0600 Subject: SWIGMapscript: How to access resultCacheObj after queryByAttribut es ? In-Reply-To: Message-ID: On Oct 7, 2004, at 9:20 AM, GeoIT wrote: > Dear experts, > In Mapserver 4.0 it was possible to get the resultCacheObj after a > queryByAttribute using layerObj.getResultcache(). > This method is no longer available in 4.2.2. > > How can I get a resultCacheObj in 4.2.2 SWIGMapscript ? > > Kind regards > Andreas Paukner-Ruzicka Like this: layer.query(...) numresults = layer.getNumResults() for i in range(numresults): result = layer.getResult(i) ... MapServer 4.2.4 is going to be released soon. Has some major fixes for Java mapscript, and also for querying. It re-exposes the resultcache so that users can access the spatial bounds of a set of results layer.query(...) results = layer.resultcache bounds = results.bounds # a mascript.rectObj This release will be out within a week and i strongly recommend that you upgrade when it is available. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From jerl.simpso at GMAIL.COM Thu Oct 7 10:02:16 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Thu, 7 Oct 2004 12:02:16 -0500 Subject: ogrinfo/ogr2ogr problem/question In-Reply-To: Message-ID: I can't for the life of me find the place on the webpage for GDAL with CVS instructions. Am I losing my mind? Thanks, Jerl On Tue, 5 Oct 2004 13:17:27 -0500, Jerl Simpson wrote: > Frank, > > I submitted the bug. It looks like it was sent directly to you, if > you need more information. Please contact me. > > Thanks, > > Jerl > > > > > On Tue, 5 Oct 2004 12:07:37 -0500, Jerl Simpson wrote: > > Hello, > > > > I have some TIGER/Line files I am trying to convert to ESRI Shape > > files using ogr2ogr. Normally this is not a problem, but I'm running > > into issues with it now. > > > > I have ogr2ogr compiled from gdal 1.2.1 > > TIGER/Line files from 2003 > > > > The problem is when it starts to do the conversion, I get the error: > > ERROR 3: Failed to read record 5218 of TGR02240.RT2 > > And stops. > > I thought, ogr2ogr has "-skipfailures" but this seems to have no > > affect, it still dies at this point and gives no more data. > > Is this the intended behavior? Is there a way around this? > > > > Thanks for the help. > > > > Jerl > > > From jerl.simpso at GMAIL.COM Thu Oct 7 10:03:38 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Thu, 7 Oct 2004 12:03:38 -0500 Subject: ogrinfo/ogr2ogr problem/question In-Reply-To: Message-ID: Sorry about that guys. Didn't mean to send here. AND I found the instruction an idiosecond after I hit send. On Thu, 7 Oct 2004 12:02:16 -0500, Jerl Simpson wrote: > I can't for the life of me find the place on the webpage for GDAL with > CVS instructions. > Am I losing my mind? > > Thanks, > > Jerl > > On Tue, 5 Oct 2004 13:17:27 -0500, Jerl Simpson wrote: > > Frank, > > > > > > I submitted the bug. It looks like it was sent directly to you, if > > you need more information. Please contact me. > > > > Thanks, > > > > Jerl > > > > > > > > > > On Tue, 5 Oct 2004 12:07:37 -0500, Jerl Simpson wrote: > > > Hello, > > > > > > I have some TIGER/Line files I am trying to convert to ESRI Shape > > > files using ogr2ogr. Normally this is not a problem, but I'm running > > > into issues with it now. > > > > > > I have ogr2ogr compiled from gdal 1.2.1 > > > TIGER/Line files from 2003 > > > > > > The problem is when it starts to do the conversion, I get the error: > > > ERROR 3: Failed to read record 5218 of TGR02240.RT2 > > > And stops. > > > I thought, ogr2ogr has "-skipfailures" but this seems to have no > > > affect, it still dies at this point and gives no more data. > > > Is this the intended behavior? Is there a way around this? > > > > > > Thanks for the help. > > > > > > Jerl > > > > > > From Godwinl at AGR.GC.CA Thu Oct 7 10:29:04 2004 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Thu, 7 Oct 2004 13:29:04 -0400 Subject: GEOS and Mapserver Message-ID: I've cross-posted this to various lists, so I'm sorry to those who are getting duplicates. I'd like to beef up my Mapserver applications with some geoprocessing functionality - buffers at present, other functions will follow. For now I am playing with PostGIS and having great sucess, IF my features are all stored in the database. What I'd like to be able to do though, is take a feature from WMS getFeatureInfo or WFS and be able to buffer that. As a test of this, I took the GML from a getFeatureInfo request and parsed it manually to be a WKT string. Then used PostGIS to run the buffer. Apart from slight precision differences, it appeared to be close to what PostGIS would have done with it's own feature (the WMS request was done against the same feature through MapServer). Now that I confirmed this is all possible, what I am missing is that I'd like to be able to a.. do the conversion from GML to WKT with some script/library b.. do this with a GML stream c.. ultimately do this without PostGIS database dependancy. I figure that GEOS can do the geometry format conversions, is this right? Has anyone written a library for linux/windows that will let me talk to it with PHP? I'm prodding these lists in hopes of finding out what else is going on out there in this area. It would be fabulous if this was all built into Mapserver, but from what I can tell, it's just a thought right now. Thanks!! Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Oct 7 10:41:02 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 7 Oct 2004 13:41:02 -0400 Subject: [geos-devel] GEOS and Mapserver In-Reply-To: <482A7044F4DB2740884BAF6AFD7416092043D6@onncrxms2.agr.gc.ca> Message-ID: Godwin, Elizabeth wrote: > What I'd like to be able to do though, is take a feature from WMS > getFeatureInfo or WFS and be able to buffer that. As a test of this, I > took the GML from a getFeatureInfo request and parsed it manually to be > a WKT string. Then used PostGIS to run the buffer. Apart from slight > precision differences, it appeared to be close to what PostGIS would > have done with it's own feature (the WMS request was done against the > same feature through MapServer). > > Now that I confirmed this is all possible, what I am missing is that I'd > like to be able to > a.. do the conversion from GML to WKT with some script/library > b.. do this with a GML stream > c.. ultimately do this without PostGIS database dependancy. > > I figure that GEOS can do the geometry format conversions, is this right? > Has anyone written a library for linux/windows that will let me talk to > it with PHP? > > I'm prodding these lists in hopes of finding out what else is going on > out there in this area. It would be fabulous if this was all built into > Mapserver, but from what I can tell, it's just a thought right now. Liz, Steve Lime is doing some work to add GEOS support within MapServer itself. I'm not clear on exactly what he plans or how he will expose it for use. Hopefully he will respond as well. The OGR library has also recently added support for a variety of GEOS operations. Currently these are exposed to the OGR Python bindings, but not to the OGR PHP bindings which are not really being actively maintained. OGR can also consume GML files and return them as OGR features on which you can invoke GEOS operations. I will however note that the OGR GML support is a bit flakey. It might be fine if you are working against well known WFS or WMS servers with well behaved GML. The GML handling in OGR includes support for whole GML files as a layer of features as well as low level support for turning a single GML geometry definition into an OGR geometry object. If you are interested in having the OGR PHP bindings extended to support the GEOS operations, we could talk about that. It is possible that DM Solutions would be willing to do the update (they wrote those bindings), or I might even get past my current PHP phobia and do it myself. Or better yet, someone in your organization! Another possibility would be to switch some of your work to Python, but I know that mixed scripting environments can be quite a mess. One final note, I understand the there is work going on for an AsGML() operator for PostGIS. I am not sure if they are planning a corresponding operator to read in a GML geometry and convert it to PostGIS format. If they did that, you could stay focused on doing the operations within PostGIS. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pagameba at MAGMA.CA Thu Oct 7 11:18:20 2004 From: pagameba at MAGMA.CA (Paul Spencer) Date: Thu, 7 Oct 2004 14:18:20 -0400 Subject: [geos-devel] GEOS and Mapserver In-Reply-To: <482A7044F4DB2740884BAF6AFD7416092043D6@onncrxms2.agr.gc.ca> Message-ID: Liz, there is a php_ogr library that we built, it is just a set of php wrappers for ogr functionality. Frank added GEOS support to OGR recently. It should be possible to extend the php_ogr wrappers to wrap the ogr functions that talk to GEOS. You could then use OGR to open any suitable format, perform GEOS operations like buffer, union, etc and then write the results out to a supported format. It would also be an interesting exercise to add GEOS support into php_mapscript if OGR is built with GEOS support. It should be possible to use mapscript shapeObjs with OGR/GEOS and perform suitable operations that way. The php_ogr stuff is available on www.maptools.org/dl/php_ogr. Cheers, Paul Godwin, Elizabeth wrote: > I've cross-posted this to various lists, so I'm sorry to those who are > getting duplicates. > > I'd like to beef up my Mapserver applications with some geoprocessing > functionality - buffers at present, other functions will follow. For > now I am playing with PostGIS and having great sucess, IF my features > are all stored in the database. > > What I'd like to be able to do though, is take a feature from WMS > getFeatureInfo or WFS and be able to buffer that. As a test of this, I > took the GML from a getFeatureInfo request and parsed it manually to be > a WKT string. Then used PostGIS to run the buffer. Apart from slight > precision differences, it appeared to be close to what PostGIS would > have done with it's own feature (the WMS request was done against the > same feature through MapServer). > > Now that I confirmed this is all possible, what I am missing is that I'd > like to be able to > a.. do the conversion from GML to WKT with some script/library > b.. do this with a GML stream > c.. ultimately do this without PostGIS database dependancy. > > I figure that GEOS can do the geometry format conversions, is this right? > Has anyone written a library for linux/windows that will let me talk to > it with PHP? > > I'm prodding these lists in hopes of finding out what else is going on > out there in this area. It would be fabulous if this was all built into > Mapserver, but from what I can tell, it's just a thought right now. > > Thanks!! > > Liz Godwin > > > ------------------------------------------------------------------------ > > _______________________________________________ > geos-devel mailing list > geos-devel at geos.refractions.net > http://geos.refractions.net/mailman/listinfo/geos-devel -- ----------------------------------------------------------------- |Paul Spencer pspencer at dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From steve.lime at DNR.STATE.MN.US Thu Oct 7 11:27:50 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 7 Oct 2004 13:27:50 -0500 Subject: [geos-devel] GEOS and Mapserver Message-ID: I've got a skeletal setup in MapServer now. Nothing functional just a setup of how this will work. Basically I propose extending the standard shapeObj to contain a GEOS geometry. Then I have to write the code to go between GEOS geometries and shapeObj's. The wrappers for the GEOS functionality then become really easy. You'll see things like msGEOSBufferShape and so on. You'll never see the GEOS geometry and will deal with shapeObj's. That way you can draw or use those features easily with existing MapServer code. I also plan to make use of the PROCESSING block as a mechanism to trigger processing. For example you might do something like: PROCESSING BUFFER 500 END Which would trigger all features to be buffered before being released to MapServer or MapScript. MapScript would then gain a whole bunch of geospatial analysis methods attached to shapeObjs. That's what I'm planning anyways. Now just to find the time to write the converters. WKT will likely be too slow for this purpose. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Godwinl at AGR.GC.CA 10/7/2004 12:29:04 PM >>> I've cross-posted this to various lists, so I'm sorry to those who are getting duplicates. I'd like to beef up my Mapserver applications with some geoprocessing functionality - buffers at present, other functions will follow. For now I am playing with PostGIS and having great sucess, IF my features are all stored in the database. What I'd like to be able to do though, is take a feature from WMS getFeatureInfo or WFS and be able to buffer that. As a test of this, I took the GML from a getFeatureInfo request and parsed it manually to be a WKT string. Then used PostGIS to run the buffer. Apart from slight precision differences, it appeared to be close to what PostGIS would have done with it's own feature (the WMS request was done against the same feature through MapServer). Now that I confirmed this is all possible, what I am missing is that I'd like to be able to a.. do the conversion from GML to WKT with some script/library b.. do this with a GML stream c.. ultimately do this without PostGIS database dependancy. I figure that GEOS can do the geometry format conversions, is this right? Has anyone written a library for linux/windows that will let me talk to it with PHP? I'm prodding these lists in hopes of finding out what else is going on out there in this area. It would be fabulous if this was all built into Mapserver, but from what I can tell, it's just a thought right now. Thanks!! Liz Godwin From bigfoot at MAIN-TASK.COM Thu Oct 7 11:33:19 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Thu, 7 Oct 2004 13:33:19 -0500 Subject: [geos-devel] GEOS and Mapserver In-Reply-To: <4165886C.7000505@magma.ca> Message-ID: I've got a question about this: It could be possible with this library, to make a join in mapserver? What I need is to relate spatial information stored in shapefiles, or in postgis tables, with information stored in Oracle. (I don't want to use Oracle Spatial). Is this possible? Thanks a lot, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com Paul Spencer wrote: > Liz, > > there is a php_ogr library that we built, it is just a set of php > wrappers for ogr functionality. Frank added GEOS support to OGR > recently. It should be possible to extend the php_ogr wrappers to wrap > the ogr functions that talk to GEOS. You could then use OGR to open any > suitable format, perform GEOS operations like buffer, union, etc and > then write the results out to a supported format. > > It would also be an interesting exercise to add GEOS support into > php_mapscript if OGR is built with GEOS support. It should be possible > to use mapscript shapeObjs with OGR/GEOS and perform suitable operations > that way. > > The php_ogr stuff is available on www.maptools.org/dl/php_ogr. > > Cheers, > > Paul > > Godwin, Elizabeth wrote: > >> I've cross-posted this to various lists, so I'm sorry to those who are >> getting duplicates. >> >> I'd like to beef up my Mapserver applications with some geoprocessing >> functionality - buffers at present, other functions will follow. For >> now I am playing with PostGIS and having great sucess, IF my features >> are all stored in the database. >> >> What I'd like to be able to do though, is take a feature from WMS >> getFeatureInfo or WFS and be able to buffer that. As a test of this, I >> took the GML from a getFeatureInfo request and parsed it manually to be >> a WKT string. Then used PostGIS to run the buffer. Apart from slight >> precision differences, it appeared to be close to what PostGIS would >> have done with it's own feature (the WMS request was done against the >> same feature through MapServer). >> >> Now that I confirmed this is all possible, what I am missing is that I'd >> like to be able to >> a.. do the conversion from GML to WKT with some script/library >> b.. do this with a GML stream >> c.. ultimately do this without PostGIS database dependancy. >> >> I figure that GEOS can do the geometry format conversions, is this >> right? >> Has anyone written a library for linux/windows that will let me talk to >> it with PHP? >> >> I'm prodding these lists in hopes of finding out what else is going on >> out there in this area. It would be fabulous if this was all built into >> Mapserver, but from what I can tell, it's just a thought right now. >> >> Thanks!! >> >> Liz Godwin >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> geos-devel mailing list >> geos-devel at geos.refractions.net >> http://geos.refractions.net/mailman/listinfo/geos-devel > > > -- > ----------------------------------------------------------------- > |Paul Spencer pspencer at dmsolutions.ca | > |-----------------------------------------------------------------| > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > ----------------------------------------------------------------- > > From ealpert at DIGITALGLOBE.COM Thu Oct 7 11:36:20 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 7 Oct 2004 12:36:20 -0600 Subject: [geos-devel] GEOS and Mapserver Message-ID: You can do this with mapscript by getting the shape from a layer, build a GeometryFromText() string from the vertices and calling postgis. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Vladimir Guzm?n Sent: Thursday, October 07, 2004 12:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] [geos-devel] GEOS and Mapserver I've got a question about this: It could be possible with this library, to make a join in mapserver? What I need is to relate spatial information stored in shapefiles, or in postgis tables, with information stored in Oracle. (I don't want to use Oracle Spatial). Is this possible? Thanks a lot, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com Paul Spencer wrote: > Liz, > > there is a php_ogr library that we built, it is just a set of php > wrappers for ogr functionality. Frank added GEOS support to OGR > recently. It should be possible to extend the php_ogr wrappers to > wrap the ogr functions that talk to GEOS. You could then use OGR to > open any suitable format, perform GEOS operations like buffer, union, > etc and then write the results out to a supported format. > > It would also be an interesting exercise to add GEOS support into > php_mapscript if OGR is built with GEOS support. It should be > possible to use mapscript shapeObjs with OGR/GEOS and perform suitable > operations that way. > > The php_ogr stuff is available on www.maptools.org/dl/php_ogr. > > Cheers, > > Paul > > Godwin, Elizabeth wrote: > >> I've cross-posted this to various lists, so I'm sorry to those who >> are getting duplicates. >> >> I'd like to beef up my Mapserver applications with some geoprocessing >> functionality - buffers at present, other functions will follow. For >> now I am playing with PostGIS and having great sucess, IF my features >> are all stored in the database. >> >> What I'd like to be able to do though, is take a feature from WMS >> getFeatureInfo or WFS and be able to buffer that. As a test of this, >> I took the GML from a getFeatureInfo request and parsed it manually >> to be a WKT string. Then used PostGIS to run the buffer. Apart from >> slight precision differences, it appeared to be close to what PostGIS >> would have done with it's own feature (the WMS request was done >> against the same feature through MapServer). >> >> Now that I confirmed this is all possible, what I am missing is that >> I'd like to be able to a.. do the conversion from GML to WKT with >> some script/library b.. do this with a GML stream >> c.. ultimately do this without PostGIS database dependancy. >> >> I figure that GEOS can do the geometry format conversions, is this >> right? Has anyone written a library for linux/windows that will let >> me talk to it with PHP? >> >> I'm prodding these lists in hopes of finding out what else is going >> on out there in this area. It would be fabulous if this was all built >> into Mapserver, but from what I can tell, it's just a thought right >> now. >> >> Thanks!! >> >> Liz Godwin >> >> >> --------------------------------------------------------------------- >> --- >> >> _______________________________________________ >> geos-devel mailing list >> geos-devel at geos.refractions.net >> http://geos.refractions.net/mailman/listinfo/geos-devel > > > -- > ----------------------------------------------------------------- > |Paul Spencer pspencer at dmsolutions.ca | > |-----------------------------------------------------------------| > |Applications & Software Development | > |DM Solutions Group Inc http://www.dmsolutions.ca/| > ----------------------------------------------------------------- > > From pagameba at MAGMA.CA Thu Oct 7 11:48:19 2004 From: pagameba at MAGMA.CA (Paul Spencer) Date: Thu, 7 Oct 2004 14:48:19 -0400 Subject: [geos-devel] GEOS and Mapserver In-Reply-To: <41658BEF.7000207@main-task.com> Message-ID: no. php_ogr runs as a separate entity and there is no way to pass anything between php_ogr and php_mapscript, nor is it likely that this would ever happen. Cheers, Paul Vladimir Guzm?n wrote: > I've got a question about this: > It could be possible with this library, to make a join in mapserver? > What I need is to relate spatial information stored in shapefiles, or in > postgis tables, with information stored in Oracle. > (I don't want to use Oracle Spatial). > > Is this possible? > > Thanks a lot, > -- ----------------------------------------------------------------- |Paul Spencer pspencer at dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From pvoudouris at EXORCORP.COM Thu Oct 7 12:09:09 2004 From: pvoudouris at EXORCORP.COM (Pano Voudouris) Date: Thu, 7 Oct 2004 14:09:09 -0500 Subject: php4_mapscript.dll Message-ID: Hi all, I have downloaded ms42oracle.zip from the website but the php4_mapscript.dll is nowhere to be found. Am I looking in the right place? Just getting my feet wet with mapserver (and php actually) so any help will be greatly appreciated. Thanks in advance, Pano From sgillies at FRII.COM Thu Oct 7 12:55:49 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 7 Oct 2004 13:55:49 -0600 Subject: [geos-devel] GEOS and Mapserver In-Reply-To: Message-ID: Steve, There already exists, for mapscript users, a SWIG interface to the GEOS library. It's in the GEOS CVS. I think this is what programmers should use rather than processing directives, which are only really needed for the CGI program. Sean On Oct 7, 2004, at 12:27 PM, Steve Lime wrote: > I've got a skeletal setup in MapServer now. Nothing functional just a > setup of how this will work. Basically I propose extending the standard > shapeObj to contain a GEOS geometry. Then I have to write the code to > go > between GEOS geometries and shapeObj's. The wrappers for the GEOS > functionality then become really easy. You'll see things like > msGEOSBufferShape and so on. You'll never see the GEOS geometry and > will > deal with shapeObj's. That way you can draw or use those features > easily > with existing MapServer code. I also plan to make use of the PROCESSING > block as a mechanism to trigger processing. For example you might do > something like: > > PROCESSING > BUFFER 500 > END > > Which would trigger all features to be buffered before being released > to MapServer or MapScript. MapScript would then gain a whole bunch of > geospatial analysis methods attached to shapeObjs. That's what I'm > planning anyways. Now just to find the time to write the converters. > WKT > will likely be too slow for this purpose. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > >>>> Godwinl at AGR.GC.CA 10/7/2004 12:29:04 PM >>> > I've cross-posted this to various lists, so I'm sorry to those who are > getting duplicates. > > I'd like to beef up my Mapserver applications with some geoprocessing > functionality - buffers at present, other functions will follow. For > now I am playing with PostGIS and having great sucess, IF my features > are all stored in the database. > > What I'd like to be able to do though, is take a feature from WMS > getFeatureInfo or WFS and be able to buffer that. As a test of this, > I > took the GML from a getFeatureInfo request and parsed it manually to > be > a WKT string. Then used PostGIS to run the buffer. Apart from slight > precision differences, it appeared to be close to what PostGIS would > have done with it's own feature (the WMS request was done against the > same feature through MapServer). > > Now that I confirmed this is all possible, what I am missing is that > I'd > like to be able to > a.. do the conversion from GML to WKT with some script/library > b.. do this with a GML stream > c.. ultimately do this without PostGIS database dependancy. > > I figure that GEOS can do the geometry format conversions, is this > right? > Has anyone written a library for linux/windows that will let me talk > to > it with PHP? > > I'm prodding these lists in hopes of finding out what else is going on > out there in this area. It would be fabulous if this was all built > into > Mapserver, but from what I can tell, it's just a thought right now. > > Thanks!! > > Liz Godwin > _______________________________________________ > geos-devel mailing list > geos-devel at geos.refractions.net > http://geos.refractions.net/mailman/listinfo/geos-devel > From superbla3000 at GMX.NET Thu Oct 7 13:39:20 2004 From: superbla3000 at GMX.NET (joerg p) Date: Thu, 7 Oct 2004 22:39:20 +0200 Subject: gdalwarp for tiling rasters In-Reply-To: <41654A9E.6010309@uva.nl> Message-ID: Jan Hartmann wrote: > joerg p wrote: > > > hello, > > > I downloaded several overlapping europe etm+ mosaics, reprojected them > > to geo. Each file is around 1.2 GB. For better performance I know I > > have to tile them and build overviews. > > > To tile and remove the overlapping, i would like to first combine all > > images and then to tile them. > > It's gonna be a really huge file during this process, around 18 GB, > > does this work? > > Could someone give me an example of this gdal combine command? I can't > > find it. > > > How many overview steps should I build, is there a rule of thumb? > > You can use gdalwarp to create tiles from many input files without > combining these first into one huge file. The thing to remember is that > gdalwarp can warp *into* an existing output file. In that case, all > settings of that file (extent, pixel size, projection etc) are > conserved, and the content of the input file is copied to the > appropriate locations. Gdalwarp does not need to read complete rasters > into memory, so you can tile as large a region as you wish. > > So if you use the following gdalwarp parameters > > -te xmin ymin xmax ymax > -tr xres yres > > you can create as many tiles as you like and fill them with the input > files. A brute force method would be to warp all input files into all > output files; a somewhat more clever one would be to check for the > extent of the input files first and only warp them into the relevant > output tiles. > > As to the number of overviews: my simple rule of thumb is to resample in > factors of two: a 10000*10000 raster gets overviews at 5000*5000, > 2500*2500, 1250*1250 and 625*625. There should be no need to go below > that. I tile all files in tiles of 2000*2000, although this number is > perhaps a bit too small. I would appreciate to hear from others how they > do this. > > Perhaps this functionality of gdalwarp could be explained a bit more in > detail in the manual page. For now it only says: "Mosaicing into an > existing output file is supported if the output file already exists". > This is really a very important and powerful aspect of the program and > it is very easy to overlook this line. At least that is what I did for a > considerable length of time. > > Jan > > Thanks a lot for your explanation! But I thought, since I have lots of overlapping parts, I should first merge and than tile? Joerg From steve.lime at DNR.STATE.MN.US Thu Oct 7 14:25:35 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 7 Oct 2004 16:25:35 -0500 Subject: SWIGMapScript: mapObj.processTemplate Input Parameters Message-ID: While I agree that there are other more powerful templating libraries there is also a lot of code behind MapServer templates that make this worthwhile to fix. Regardless of how powerful the external tool is one will still have to write 100's of lines of code to do what MapServer templates already do. Seems stupid to require folks to do that. I can't believe there aren't standard typemaps in SWIG to convert arrays of strings to char **. Seems that just about everyone would want that. My vote would be to file a bug and get this fixed... BTW The names and values arrays are web application parameter lists. Templates should run ok without them for the most part. What would be lost is pass through substitutions like [map]. Steve >>> Sean Gillies 10/7/2004 9:14:45 AM >>> On Oct 7, 2004, at 3:18 AM, GeoIT wrote: > Hi Mapserver experts, > I want to use mapObj.processTemplate from Java Mapscript to receive the > processed HTML Template and let mapserver produce the according images. > I managed to get a valid typemapping so that I can supply the necessary > parameters to the method in the form of int and String[]. > Now the question: What do the parameters "String[] names", "String[] > values" > and "int numitems" mean ? > What "items", "names" and "values" are meant here ? > > Please advise. > > Kind regards > Andreas Paukner-Ruzicka > As you noticed, template processing in SWIG mapscript doesn't really work without these typemaps. I really don't know why the method has remained for so long in a non-working state, but clearly people have not been using it. Otherwise the typemaps would exist. I think that most users use a better templating system in their applications. That would be HTML::Template or Mason for Perl, PSP or Zope page templates for Python. I'm sure that Java has a wide array of templating libraries, and strongly suggest that you use these. They are more powerful and flexible than Mapserver's templating and because they have larger user bases, will be better tested and have fewer bugs. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From mathieuparent at INFONIE.FR Thu Oct 7 15:20:26 2004 From: mathieuparent at INFONIE.FR (Mathieu Parent) Date: Fri, 8 Oct 2004 00:20:26 +0200 Subject: Perhaps OFF-TOPIC: how to query dbase files Message-ID: On windows I use the "MicrosoftDBase ODBC Driver" to make sql SELECT queries. I want to do the same things with Linux Is there a free linux ODBC driver for dBase files (.dbf) ? I use PHP/Mapscript (I have some dbf without shp). I have compiled PHP 5 with iODBC. I don't want to use the php dbase extension because it doesn't support queries. Thanks From yecarrillo at YAHOO.COM Thu Oct 7 16:25:11 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Thu, 7 Oct 2004 18:25:11 -0500 Subject: WMS Server SetEnvIf + Apache Message-ID: I'm trying to configure a WMS server under Apache+WinXP. I used SetEnvIf directive to pass mapfile name (MS_MAPFILE), without results. Any hints? ***http.conf**** ... SetEnvIf Request_URI /maps/mywms MS_MAPFILE=C:/maps/basic.map ... _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From yecarrillo at YAHOO.COM Thu Oct 7 16:42:53 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Thu, 7 Oct 2004 18:42:53 -0500 Subject: Gix, exporting ArcView views to MapServer mapfiles Message-ID: In the past days I announce Gix Export tool (gix.sourceforge.net). It has been more than 100 downloads but just one reply email. Have somebody found it useful? Please let'me know your experiences to support it's development. Thank You Eduin _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From Tom.Kralidis at EC.GC.CA Thu Oct 7 17:44:04 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 7 Oct 2004 20:44:04 -0400 Subject: WMS Server SetEnvIf + Apache Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Eduin Carrillo > Sent: Thursday, 07 October, 2004 19:25 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WMS Server SetEnvIf + Apache > > > I'm trying to configure a WMS server under Apache+WinXP. I > used SetEnvIf directive to pass mapfile name (MS_MAPFILE), > without results. Any hints? > > ***http.conf**** > ... > SetEnvIf Request_URI /maps/mywms MS_MAPFILE=C:/maps/basic.map ... > 1./ Does http://localhost/maps/mywms give you the MapServer message: "No query information to decode. QUERY_STRING is set, but empty." 2./ Try double quoting your request url? i.e.: SetEnvIf Request_URI "/maps/mywms" MS_MAPFILE=C:/maps/basic.map ... 2./ Does SetEnvIfNoCase work? i.e.: SetEnvIfNoCase Request_URI "/cgi-bin/ms_ogc_workshop" MS_MAPFILE=/ms4w/apps/ms_ogc_workshop/service/config.map This works for me under Apache on WinXP as expected. ..Tom > _________________________________________________________ > Do You Yahoo!? > Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! > Noticias. Vis?tanos en http://noticias.espanol.yahoo.com > From thomas at REDMILENIO.COM Thu Oct 7 20:52:31 2004 From: thomas at REDMILENIO.COM (Thomas Shaw) Date: Thu, 7 Oct 2004 23:52:31 -0400 Subject: Extracting nearest point data with queryByPoint Message-ID: Hello!!, I'm actually building an application with mapserver mapscript php, what I'm trying to do is to get a point from a database (lat, lon) and use that point to make a query of data in a layer as follows: map file code: # # Start of map file # MAP NAME mapa_de_mexico STATUS ON SIZE 575 468 SYMBOLSET /usr/local/mapserver_4/www/trackerweb/modules/Localiza/symbols_mapinfo.sym #EXTENT -1379278.62 1514480.13 1909424.41 3854862.92 EXTENT -117.53926633136 8.7749367751593 -86.256395549464 34.869751589975 FONTSET "data/fonts/fonts.list" #se definen los nombres cortos de los tipos de letra UNITS DD SHAPEPATH "data/" IMAGECOLOR 107 181 255 TRANSPARENT off IMAGETYPE PNG # # Start of web interface definition # WEB IMAGEPATH "/usr/local/mapserver_4/www/trackerweb/modules/Localiza/tmp/" IMAGEURL "http://192.168.1.3/trackerweb/modules/Localiza/tmp/" END LAYER NAME puntosMunicipios GROUP "mex" TYPE point STATUS on CONNECTIONTYPE OGR CONNECTION "data/mx_pts1.shp" MAXSCALE 280000 LABELITEM "FULL_NAME" SYMBOLSCALE 280000 CLASS COLOR 248 242 135 OUTLINECOLOR 0 0 0 LABEL COLOR 0 0 0 TYPE TRUETYPE FONT georgia ANTIALIAS TRUE MINSIZE 8 MAXSIZE 9 END END # fin de CLASS CLASS NAME "puntosMunicipios" COLOR 255 255 255 OUTLINECOLOR 0 0 0 END END php mapscript: dl('php_mapscript.so'); $map = ms_newMapObj("/usr/local/mapserver_4/www/mexmap.map") $cond = "select * from lat_lon where grupo='$cve_user' and id_loc='$numloc'"; $res = $db->sql_query ($cond); $row = $db->sql_fetchrow($res2); $qx = $row[lon]; $qy = $row[lat]; $point = ms_newpointOBj(); $point->setXY($qx, $qy); $layer = $map->getLayerByName("puntosMunicipios"); $data = $layer->queryByPoint($point, MS_SINGLE, -1); $result = $layer->getResult(0); $layer->open(); $items = $layer->getitems(); $shape =$layer->getShape($result->tileindex, $result->shapeindex); $layer->close(); $data_val = $shape->values; foreach($data_val as $data){ echo $data; } and the thing I get is: "Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. " and the $data variable, contains an array with all the fields of the dbf-shp, but it only presents the first registry of the dbf table, and the registry I need is the one that is nearest from the $point (the one I fetched from lat_lon db). I heard somewhere that I need a Template to query, but I don't really know how to do it, and also I think that in mapscript is not necessary isn't it? I thought that it is only for mapsever cgi. One other thing to consider, is that the "$point", doesn't exactly matches one coordinate point in the layer "puntosMunicipios", that's because I used "queryByPoint" to find the nearest point. Hope that my explanation is enogh clear. I'll appreciate a lot if anyone can help me with this. Greetings Thank you ----------- Thomas Shaw From steve.lime at DNR.STATE.MN.US Thu Oct 7 21:12:43 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 7 Oct 2004 23:12:43 -0500 Subject: [geos-devel] GEOS and Mapserver Message-ID: I spared the GEOS guys the reply. I don't envision working in just GEOS, it's a support library for MapServer so there will likely always need to be translation to/from shapeObj's. Pure GEOS is better served with Sean's SWIG interface. That said your idea has merit. WKT could be considered as an alternative definition format for inline features and layers. I've created a bug (#948) so as not to loose the idea. This won't make into 4.4 but perhaps the next release. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Ferdinando Villa 10/07/04 3:42 PM >>> If I can chime in with an almost unrelated one... what about adding a WKT layer type to mapserver - should be simple if GEOS is being worked in. Unless things have changed recently, the only way to specify a shape was by means of explicit points or polygons. The WKT layer would make specifying a generic shape a lot easier - particularly if a program writes the mapfile, as mine do all the time (and you should see the 150+ LAYER sections for the USA polygon... :) cheers, ferdinando On Thu, 2004-10-07 at 14:27, Steve Lime wrote: > I've got a skeletal setup in MapServer now. Nothing functional just a > setup of how this will work. Basically I propose extending the standard > shapeObj to contain a GEOS geometry. Then I have to write the code to go > between GEOS geometries and shapeObj's. The wrappers for the GEOS > functionality then become really easy. You'll see things like > msGEOSBufferShape and so on. You'll never see the GEOS geometry and will > deal with shapeObj's. That way you can draw or use those features easily > with existing MapServer code. I also plan to make use of the PROCESSING > block as a mechanism to trigger processing. For example you might do > something like: > > PROCESSING > BUFFER 500 > END > > Which would trigger all features to be buffered before being released > to MapServer or MapScript. MapScript would then gain a whole bunch of > geospatial analysis methods attached to shapeObjs. That's what I'm > planning anyways. Now just to find the time to write the converters. WKT > will likely be too slow for this purpose. > > Steve > > Stephen Lime > Data & Applications Manager > > Minnesota DNR > 500 Lafayette Road > St. Paul, MN 55155 > 651-297-2937 > > >>> Godwinl at AGR.GC.CA 10/7/2004 12:29:04 PM >>> > I've cross-posted this to various lists, so I'm sorry to those who are > getting duplicates. > > I'd like to beef up my Mapserver applications with some geoprocessing > functionality - buffers at present, other functions will follow. For > now I am playing with PostGIS and having great sucess, IF my features > are all stored in the database. > > What I'd like to be able to do though, is take a feature from WMS > getFeatureInfo or WFS and be able to buffer that. As a test of this, > I > took the GML from a getFeatureInfo request and parsed it manually to > be > a WKT string. Then used PostGIS to run the buffer. Apart from slight > precision differences, it appeared to be close to what PostGIS would > have done with it's own feature (the WMS request was done against the > same feature through MapServer). > > Now that I confirmed this is all possible, what I am missing is that > I'd > like to be able to > a.. do the conversion from GML to WKT with some script/library > b.. do this with a GML stream > c.. ultimately do this without PostGIS database dependancy. > > I figure that GEOS can do the geometry format conversions, is this > right? > Has anyone written a library for linux/windows that will let me talk > to > it with PHP? > > I'm prodding these lists in hopes of finding out what else is going on > out there in this area. It would be fabulous if this was all built > into > Mapserver, but from what I can tell, it's just a thought right now. > > Thanks!! > > Liz Godwin > _______________________________________________ > geos-devel mailing list > geos-devel at geos.refractions.net > http://geos.refractions.net/mailman/listinfo/geos-devel -- Ferdinando Villa, Ph.D., Associate Research Professor, Ecoinformatics Gund Institute for Ecological Economics and Dept of Botany, Univ. of Vermont http://ecoinformatics.uvm.edu _______________________________________________ geos-devel mailing list geos-devel at geos.refractions.net http://geos.refractions.net/mailman/listinfo/geos-devel From uli.mueller at GMX.CH Fri Oct 8 00:18:21 2004 From: uli.mueller at GMX.CH (uli) Date: Fri, 8 Oct 2004 09:18:21 +0200 Subject: [OT] Landsat WMS not working? In-Reply-To: Message-ID: Got this mail from one of the NASA people two days ago: Hi, Thank you for your interest! The OnEarth server is simply overloaded due to a 3D virtual planet software that used this server as a data source, software called worldwind (http://learn.arc.nasa.gov/worldwind). We are working on server improvements, but the only thing that will insure its availability to the open public is indeed moving it to a mission critical (or "productive") state. These plans have not been made and it might take a while before access will be restored. Lucian Brian Johnson wrote: > I don't know when it will be back online - but I know it has been getting > hit pretty hard by a new piece of software called WorldWind. Check it out > at http://learn.arc.nasa.gov/worldwind/index.html. It is a 260MB download - > but this program is amazing. A true 3D earth model that you can rotate, > zoomin, fly over. Download multiple layers of data at various resolutions, > connect to WMS servers, and have STRM data for elevations. Currently - the > Landsat and STRM servers were being overloaded - and I think are in the > process of being upgraded. > > Brian Johnson > > > > >>WMS on http://wms.jpl.nasa.gov/wms.cgi stopped responding...... >>I use this WMS in some of my test sites, does anybody know what happened > > and > >>will it be back online? >> >>Can someone please point out some free and interesting WMS servers on the >>internet covering Europe >> >>Thanks, >> >>Goran > > > > From j.l.h.hartmann at UVA.NL Fri Oct 8 04:30:55 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Fri, 8 Oct 2004 13:30:55 +0200 Subject: gdalwarp for tiling rasters In-Reply-To: <4165A978.7020206@gmx.net> Message-ID: joerg p wrote: > > Thanks a lot for your explanation! > > But I thought, since I have lots of overlapping parts, I should first > merge and than tile? > > Joerg > No, that doesn't make any difference. If you merge two files with overlapping parts, the second one will hide everything from the first one in the overlapping part. THe same goes for gdalwarp, only here you have more possibilities to set the extent etc of the output file. Actually, I'm not sure if gdalwarp couldn't do everything that gdal_merge.py does now. gdal_merge.py has a few extra options, but couldn't these easily be added to gdalwarp? In that case we would have a general merging and warping tool without dependencies on python. Jan From mandhare at STATE.PA.US Fri Oct 8 05:41:13 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Fri, 8 Oct 2004 07:41:13 -0500 Subject: legend file Message-ID: Hello All, I'm trying to run the Itasca workshop demo on Windows 2000 with IIS. I caould see the first page index.html. And the page after that i.e. depending upon the selection from the droptdown menu, i could see the next pages... itasca_basic.html,itasca_adds_pan.html. etc. But when i click the button for "Refresh/Query" I get File Open/Save dialogue for mapserv.exe Another thing is, mapserver is not creating .png file for legend. Its not get stored in Docs\tmp folder which i have created under c:\Inetpub\wwwroot\MapServer. Can anyone help me pointing aboput why mapserver is not creating .png file for legend as it does for map and scalebar? Thank you all for support, Manjiri From saso.celarc at HERMES-PLUS.SI Fri Oct 8 06:42:26 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Fri, 8 Oct 2004 08:42:26 -0500 Subject: Tutorial examples problem Message-ID: When want to running examples from tutorial I get in browser: "Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request..." In Apache error_log i get when running example1-3.map: "malformed header from script. Bad header=?PNG: d:/oracle/ora92/apache/apache/cgi-bin/mapserv.exe" When I comment line IMAGETYPE PNG (-> #IMAGETYPE PNG) i get the right picture. when running example1-4.map I get In Apache error_log: "malformed header from script. Bad header=?PNG: d:/oracle/ora92/apache/apache/cgi-bin/mapserv.exe" after I comment IMAGETYPE PNG I get: "malformed header from script. Bad header=GIF87a? , ?: d:/oracle/ora92/apache/apache/cgi-bin/mapserv.exe" I also think there is problems whit fonts where labeling. I have Windows XP, MapServer 4.2, Oracle Http server Apache 1.3.22 Any idea, what is wrong Sa?o Celarc From yecarrillo at YAHOO.COM Fri Oct 8 08:08:39 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Fri, 8 Oct 2004 10:08:39 -0500 Subject: Gix, exporting ArcView views to MapServer mapfiles In-Reply-To: <93314684F5E1D546A2E8EEA4EE795D75A585C8@cartero1.tragsa.es> Message-ID: Desc?rguela de http://gix.sourceforge.net Download it from http://gix.sourceforge.net Eduin desde Colombia --- Javier Castillejo Montes escribi?: > Hi Eduin. > > I didn't note anithing about "Gix Export tool" do you mind to show me where > to download it. > > thanks in advance! > > -----Mensaje original----- > De: Eduin Carrillo [mailto:yecarrillo at YAHOO.COM] > Enviado el: viernes, 08 de octubre de 2004 1:43 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: [UMN_MAPSERVER-USERS] Gix, exporting ArcView views to MapServer > mapfiles > > > In the past days I announce Gix Export tool (gix.sourceforge.net). It has > been > more than 100 downloads but just one reply email. Have somebody found it > useful? Please let'me know your experiences to support it's development. > > Thank You > > Eduin > > > > _________________________________________________________ > Do You Yahoo!? > Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. > Vis?tanos en http://noticias.espanol.yahoo.com > _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From greg at AGOG.COM Fri Oct 8 06:58:49 2004 From: greg at AGOG.COM (Greg Cockroft) Date: Fri, 8 Oct 2004 09:58:49 -0400 Subject: Mapjunction beta release Message-ID: I released a beta of the mapjunction source tree. www.mapjunction.com The Massachusetts sample shows off mapserver serving up over 300 Gig of Aerial photos for the entire state at 1/2 meter color overlayed with every road in the state. -greg. From yecarrillo at YAHOO.COM Fri Oct 8 08:54:10 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Fri, 8 Oct 2004 10:54:10 -0500 Subject: WMS Server SetEnvIf + Apache In-Reply-To: <2576812186CDD411BF1500508B6DCE95073677DB@ecnwri1.ontario.int.ec.gc.ca> Message-ID: --- "Kralidis,Tom [Burlington]" escribi?: Thanks 1. Yes 2. Does not work What I'm doing is more complicated: use one exe file with different maps, depending of dummy exe file requested Mapserver file: C:/Archivos de programa/Apache Group/Apache2/cgi-bin/mapserv.exe MapFile: C:/WEBSITES/central/mapas/basica.map Test url: http://localhost/mapas/basica?REQUEST=GetCapabilities (Does Not work) Answer: loadMap(): Web application error. CGI variable "map" is not set. httpd.conf ---------- SetEnvIfNoCase Request_URI "/mapas/basica" MS_MAPFILE=C:/WEBSITES/central/mapas/basica.map ScriptAlias /mapas/ "C:/Archivos de programa/Apache Group/Apache2/cgi-bin/" AllowOverride All Options FollowSymLinks RewriteEngine on RewriteBase /mapas RewriteRule basica mapserv.exe Thanks Eduin Yesid Carrillo From zhou_naijun at HOTMAIL.COM Fri Oct 8 08:58:49 2004 From: zhou_naijun at HOTMAIL.COM (Naijun Zhou) Date: Fri, 8 Oct 2004 10:58:49 -0500 Subject: MapObject's extent after zoomIn Message-ID: Hi, I'm using Chameleon. I tried to allow WMSBrowser.widget.php to obtain the mapobject's extent (minx,miny,maxx,maxy) every time after the zoomIn (map_navigator.php). For example, I can get the map's new extent in the map_navigator.php after the zoomrectangle: $oMap->zoomrectangle($oPixelRect, $oMap->width, $oMap->height, $oCurrentExt); However, it seems the map extent in WMSBrowser is delayed after the map_navigator.php. That is, in both functions of InitDefaults() and ParseURL(), when the map extent is obtained, the extent is acutally the previous zoomed extent. Is there a way that I can get the extent from the WMSBrowser? Thank you very much! N.Zhou _________________________________________________________________ Check out Election 2004 for up-to-date election news, plus voter tools and more! http://special.msn.com/msn/election2004.armx From yecarrillo at YAHOO.COM Fri Oct 8 09:07:29 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Fri, 8 Oct 2004 11:07:29 -0500 Subject: Gix, exporting ArcView views to MapServer mapfiles In-Reply-To: <20041008002534.59143.qmail@web80103.mail.yahoo.com> Message-ID: --- Matthew Perry escribi?: > Eduin, > I have used it in testing... very nice extension. > It is the best .map creation tool I've used. > > For it to be truly useful, I need to be able to modify > the avenue code to tweak the mapfile output. Could you > distribute the ArcView .apr project so that it could > be modified?? I would be glad to help develop some > more functionality: > > 1. change path names for instances where data will be > moved to another server > > 2. change fonts and symbols to not rely on copyrighted > ESRI or Windows fonts (again for when I move it to a > Linux server) > > 3. automatically generate mapserver query templates > for each layer. > > I have a fairly good idea about how to make this > happen if you would be willing to send me the .apr. > > Thanks for such wonderful work, > > Matt Perry > Humboldt State University > You can download zip source code (Avenue Scripts + Dialogs) from the project website. Thanks for your feedback. Eduin Yesid Carrillo Corporaci?n Aut?noma Regional de Santander CAS http://www.cas.gov.co _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From blaine_hack1 at YAHOO.COM Fri Oct 8 13:45:10 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Fri, 8 Oct 2004 13:45:10 -0700 Subject: Spatial Query on VirtualSpatial layer Message-ID: All Is there any way to do a spatial query on a VirtualSpatialData layer? I tried a general mapserver query like you use on a shapefile and got this error. "mapserv(): Web application error. No way to generate a valid map extent from selected shapes." This looks bad to me. Am I out of luck or just doing it wrong? Thanks Blaine _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From warmerdam at POBOX.COM Fri Oct 8 13:56:56 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 8 Oct 2004 16:56:56 -0400 Subject: Spatial Query on VirtualSpatial layer In-Reply-To: <20041008204510.39977.qmail@web41107.mail.yahoo.com> Message-ID: Blaine Hackett wrote: > All > > Is there any way to do a spatial query on a > VirtualSpatialData layer? > > I tried a general mapserver query like you use on a > shapefile and got this error. > "mapserv(): Web application error. No way to generate > a valid map extent from selected shapes." > > This looks bad to me. Am I out of luck or just doing > it wrong? Blaine, As long as you have spatial information available on the virtual layer (for instance by picking x and y columns from the original table) you should be able to do spatial queries against the virtual layer. Tracking through the code it looks like you might get this error if you did a query and got no results back. Is that possible? Or, if you query results had no spatial information. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From thomas at REDMILENIO.COM Fri Oct 8 14:53:41 2004 From: thomas at REDMILENIO.COM (Thomas Shaw) Date: Fri, 8 Oct 2004 17:53:41 -0400 Subject: Extracting nearest point data with queryByPoint Message-ID: Hello!!, I'm actually building an application with mapserver mapscript php, what I'm trying to do is to get a point from a database (lat, lon) and use that point to make a query of data in a layer as follows: map file code: # # Start of map file # MAP NAME mapa_de_mexico STATUS ON SIZE 575 468 SYMBOLSET /usr/local/mapserver_4/www/trackerweb/modules/Localiza/symbols_mapinfo.sym #EXTENT -1379278.62 1514480.13 1909424.41 3854862.92 EXTENT -117.53926633136 8.7749367751593 -86.256395549464 34.869751589975 FONTSET "data/fonts/fonts.list" #se definen los nombres cortos de los tipos de letra UNITS DD SHAPEPATH "data/" IMAGECOLOR 107 181 255 TRANSPARENT off IMAGETYPE PNG # # Start of web interface definition # WEB IMAGEPATH "/usr/local/mapserver_4/www/trackerweb/modules/Localiza/tmp/" IMAGEURL "http://192.168.1.3/trackerweb/modules/Localiza/tmp/" END LAYER NAME puntosMunicipios GROUP "mex" TYPE point STATUS on CONNECTIONTYPE OGR CONNECTION "data/mx_pts1.shp" MAXSCALE 280000 LABELITEM "FULL_NAME" SYMBOLSCALE 280000 CLASS COLOR 248 242 135 OUTLINECOLOR 0 LABEL COLOR 0 TYPE TRUETYPE FONT georgia ANTIALIAS TRUE MINSIZE 8 MAXSIZE 9 END END # fin de CLASS CLASS NAME "puntosMunicipios" COLOR 255 255 255 OUTLINECOLOR 0 END END php mapscript: dl('php_mapscript.so'); $map = ms_newMapObj("/usr/local/mapserver_4/www/mexmap.map") $cond = "select * from lat_lon where grupo='$cve_user' and id_loc='$numloc'"; $res = $db->sql_query ($cond); $row = $db->sql_fetchrow($res2); $qx = $row[lon]; $qy = $row[lat]; $point = ms_newpointOBj(); $point->setXY($qx, $qy); $layer = $map->getLayerByName("puntosMunicipios"); $data = $layer->queryByPoint($point, MS_SINGLE, -1); $result = $layer->getResult(0); $layer->open(); $items = $layer->getitems(); $shape =$layer->getShape($result->tileindex, $result->shapeindex); $layer->close(); $data_val = $shape->values; foreach($data_val as $data){ echo $data; } and the thing I get is: "Warning: MapServer Error in msQueryByPoint(): No matching record(s) found. " and the $data variable, contains an array with all the fields of the dbf-shp, but it only presents the first registry of the dbf table, and the registry I need is the one that is nearest from the $point (the one I fetched from lat_lon db). I heard somewhere that I need a Template to query, but I don't really know how to do it, and also I think that in mapscript is not necessary isn't it? I thought that it is only for mapsever cgi. One other thing to consider, is that the "$point", doesn't exactly matches one coordinate point in the layer "puntosMunicipios", that's because I used "queryByPoint" to find the nearest point. Hope that my explanation is enogh clear. I'll appreciate a lot if anyone can help me with this. Greetings Thank you ----------- Thomas Shaw From thomaschesky at YAHOO.COM Sat Oct 9 14:58:13 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sat, 9 Oct 2004 14:58:13 -0700 Subject: TILEINDEX problem Message-ID: I have some problem with using Tileindex in the layer def. as follows: I have the Census 2000 School District boundary shapefiles in a directory. I created a tile index on them with "ogrtindex ti.shp *.shp" Then I created a test map file using TILEINDEX and it fails. Below is the detailed list of setup and config. * Tile index shape is created in/by: cd /usr/local/mapdata/schooldistrict/ ogrtindex ti.shp *.shp (only shapefiles; should I do ogrtindex ti.shp * rather?) * Shape files and tile index shape file is in: /usr/local/mapdata/schooldistrict/ * Map file is /usr/local/mapapp/schdist.map MAP NAME SchoolDistrict SHAPEPATH "/usr/local/mapdata/" SIZE 600 400 IMAGETYPE PNG24 IMAGECOLOR 0 0 0 LAYER NAME schooldistrict STATUS OFF TYPE POLYGON TILEINDEX /usr/local/mapdata/schooldistrict/ti.shp CLASS COLOR 255 255 255 OUTLINECOLOR 255 255 255 END PROJECTION "init=epsg:4326" END END END * CGI params used in test mapserv?mode=map&map=/usr/local/mapapp/schdist.map&layer=schooldistrict&mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize=600+400&map_projection=init%3Depsg:4326 * Error Message by MapServer Somehow it tries to find the files in /usr/local/mapapp/ and /usr/local/mapdata/ rather than in /usr/local/mapapp/schooldistrict/ . Wierd. msDrawMap(): Image handling error. Failed to draw layer named 'schooldistrict'. msTiledSHPOpenFile(): Shapefile error. Unable to open a single tile to use as a template in layer schooldistrict. msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn72_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn72_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn56_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn56_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn55_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn55_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn54_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn54_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn53_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn53_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapapp/sn51_d00.shp,0) msSHPOpenFile(): Unable to access file. (/usr/local/mapdata/sn51_d00.shp,0) ... [rest skipped, goes all the way to sn51_d00.shp ] * "ogrinfo -al ti.shp" shows INFO: Open of `ti.shp' using driver `ESRI Shapefile' successful. Layer name: ti Geometry: Polygon Feature Count: 52 Extent: (-179.147340, 17.884813) - (179.778470, 71.352561) Layer SRS WKT: (unknown) LOCATION: String (80.0) OGRFeature(ti):0 LOCATION (String) = sn01_d00.shp,0 POLYGON ((-88.47322700 30.22113200,-88.47322700 35.00802800,-84.89089430 35.00 802800,-84.89089430 30.22113200,-88.47322700 30.22113200)) OGRFeature(ti):1 LOCATION (String) = sn02_d00.shp,0 POLYGON ((-179.14734000 51.21986200,-179.14734000 71.35256064,179.77847000 71. 35256064,179.77847000 51.21986200,-179.14734000 51.21986200)) ... [skipped] OGRFeature(ti):51 LOCATION (String) = sn72_d00.shp,0 POLYGON ((-67.95411900 17.88481300,-67.95411900 18.51575700,-65.22111000 18.51 575700,-65.22111000 17.88481300,-67.95411900 17.88481300)) ... [skipped] is normal OGRFeature def., I skipped to make the email smaller Any idea? Thanks --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at NUCOMP.COM Sat Oct 9 16:25:37 2004 From: jb at NUCOMP.COM (John Bolster) Date: Sat, 9 Oct 2004 19:25:37 -0400 Subject: symbols changing color Message-ID: Hi all, I defined a gif image as an interstate shield used in an annotation layer. Now when I zoom in and out the color of the shields change on the output map. The bulk of each shield should be pure blue, yet it becomes purple sometimes and a light blue other times. They vary when I change the line color of the underlying interstate line layer and also when I turn on and off other layers (county lines and place polygons). Below are how my symbol and annotation layer are defined. I can't see how mapserver is changing the color of the gif--any suggestions on how I can get it to stay the same color at all scales? MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Thanks in advance, John Bolster SYMBOL NAME 'int' TYPE pixmap IMAGE "./intsh.gif" END LAYER NAME intlabels GROUP "hwy" TYPE annotation STATUS off DATA nhpn PROJECTION proj=latlong END CLASSITEM 'type' LABELITEM 'num' LABELMAXSCALE 4000000 CLASS EXPRESSION "I" COLOR 0 0 0 SYMBOL "int" LABEL SIZE tiny POSITION CC BUFFER 2 MINDISTANCE 200 COLOR 255 255 255 END END END From dabner at OPTUSNET.COM.AU Sun Oct 10 00:47:01 2004 From: dabner at OPTUSNET.COM.AU (Nick Dabner) Date: Sun, 10 Oct 2004 17:47:01 +1000 Subject: Guess this Projection In-Reply-To: Message-ID: Used libgeo to make a .tfw file of the raster. Very strange output: 2.5390625000 0.0000000000 0.0000000000 -2.5390625000 2478259.8695312501 4427159.8914062502 Could the results be random. I cannot recognise the format, and proj4 returns a bus error. This raster is a citymap of central Melbourne, Australia at around 137E -40S WGS84. ND On 06/10/2004, at 8:29 PM, Nick Dabner wrote: > Thanks for your help Peter. I misquoted the zone - it is actually 53, > and I adjusted your parameters to suit. No luck unfortunately. The tiff > is sourced straight of the Melways (eg Ausways / Sydways) CD. > > As I said, I can provide the sample file to a worthy challenger ;-) > > Nick > > On 06/10/2004, at 3:15 PM, Peter Bayley wrote: > >> Nick, >> >> The AMG66 Zone 55 Projection needs to be placed in the LAYER object in >> the >> map file: >> >> Taking the proj4text vales from the spatial_ref_sys table in postgis, >> you >> can construct the >> projection of the layer as: >> >> LAYER >> PROJECTION >> "proj=utm" >> "zone=55" >> "ellps=aust_SA" >> "south" >> "units=m" >> END >> CONNECTIONTYPE OGR >> CONNECTION "ADELBRIS.TIF" >> TYPE RASTER >> STATUS DEFAULT >> UNITS METERS >> END >> >> The Projection in the LAYER should be the projection of its dataset. >> By the >> way, 20253 is Zone 53 not 55 >> The projection you want everything delivered in should be in the MAP >> section >> >> Regards >> >> Peter Bayley >> Sydney >> Australia >> >> ----- Original Message ----- >> From: "Nick Dabner" >> To: >> Sent: Wednesday, October 06, 2004 12:55 PM >> Subject: [UMN_MAPSERVER-USERS] Guess this Projection >> >> >>> Hello all, >>> >>> Have one nasty little raster here that is apparently in AMG66 Zone 55 >>> (epsg:20253), according to Mapinfo. I cannot get it to display in >>> mapserver unless I warp it, but doing so results in an image that is >>> incorrectly registered and skewed (also out by 1500km or so). I am >>> trying to output in WGS84 / GDA94 in line with my vectors. Gdalinfo >>> output is shown below. I can provide a copy by email if anyone would >>> care to take a closer look. This has been causing me problems for >>> months now. Mapfile is below. Any help greatly appreciated, Nick >>> >>> Driver: GTiff/GeoTIFF >>> Size is 4809, 4075 >>> Coordinate System is: >>> PROJCS["unnamed", >>> GEOGCS["unnamed", >>> DATUM["unknown", >>> SPHEROID["unretrievable - using >>> WGS84",6378137,298.257223563]], >>> PRIMEM["Greenwich",0], >>> UNIT[,0.0174532925199433], >>> AUTHORITY["EPSG","0"]], >>> UNIT["unknown",1], >>> AUTHORITY["EPSG","0"]] >>> Origin = (1857716.251568,5544261.870844) >>> Pixel Size = (317.52333125,-317.52333125) >>> Metadata: >>> TIFFTAG_IMAGEDESCRIPTION= >>> TIFFTAG_DATETIME=2004:01:05 22:39:05 >>> TIFFTAG_XRESOLUTION=300 >>> TIFFTAG_YRESOLUTION=300 >>> TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) >>> Corner Coordinates: >>> Upper Left ( 1857716.252, 5544261.871) >>> (106439300d44'382252089395.85"E,317662805d42'1142461300788.73"N) >>> Lower Left ( 1857716.252, 4250354.296) >>> (106439300d44'382252089395.85"E,243527362d35'876173328429.93"N) >>> Upper Right ( 3384685.952, 5544261.871) (193928220d >>> 0'700079669251.66"E,317662805d42'1142461300788.73"N) >>> Lower Right ( 3384685.952, 4250354.296) (193928220d >>> 0'700079669251.66"E,243527362d35'876173328429.93"N) >>> Center ( 2621201.102, 4897308.083) >>> (150183760d22'541165879323.76"E,280595084d 9'1009317314579.33"N) >>> Band 1 Block=4809x1 Type=Byte, ColorInterp=Palette >>> >>> >>> The mapfile looks roughly like this (originally based on the itasca >>> demo): >>> >>> # >>> # Start of map file >>> # >>> >>> NAME DEMO >>> STATUS ON >>> SIZE 600 600 >>> EXTENT 144.5 -37.5 145.5 -38 >>> UNITS KILOMETERS >>> SHAPEPATH "data" >>> IMAGECOLOR 255 255 255 >>> >>> PROJECTION >>> "init=epsg:4326" >>> END >>> >>> WEB >>> HEADER demo_header.html >>> TEMPLATE demo.html >>> FOOTER demo_footer.html >>> IMAGEPATH "set in demo_init.html" >>> IMAGEURL "set in demo_init.html" >>> END >>> >>> QUERYMAP >>> SIZE 200 200 >>> STATUS ON >>> STYLE HILITE >>> COLOR 255 0 0 >>> END >>> >>> SYMBOL >>> NAME 'circle' >>> TYPE ELLIPSE >>> POINTS 1 1 END >>> FILLED TRUE >>> END >>> >>> LAYER >>> PROJECTION >>> "init=epsg:4202" # Also Zone 53 "20253" >>> END >>> CONNECTIONTYPE OGR >>> CONNECTION "ADELBRIS.TIF" >>> TYPE RASTER >>> STATUS DEFAULT >>> UNITS METERS >>> END >>> >>> END # Map File >> >> > From w.blanken at GEON.NL Sun Oct 10 01:26:33 2004 From: w.blanken at GEON.NL (Wim Blanken) Date: Sun, 10 Oct 2004 10:26:33 +0200 Subject: symbols changing color Message-ID: Hello John, Seems this is the problem with the maximum of assigned colors (256) that is possible using gif. Have you tried setting the output IMAGETYPE to png24. Regards, Wim Blanken GIS consultant from the Netherlands ----- Original Message ----- From: "John Bolster" To: Sent: Sunday, October 10, 2004 1:25 AM Subject: [UMN_MAPSERVER-USERS] symbols changing color > Hi all, > > I defined a gif image as an interstate shield used in an annotation layer. > Now when I zoom in and out the color of the shields change on the output > map. The bulk of each shield should be pure blue, yet it becomes purple > sometimes and a light blue other times. They vary when I change the line > color of the underlying interstate line layer and also when I turn on and > off other layers (county lines and place polygons). Below are how my > symbol > and annotation layer are defined. I can't see how mapserver is changing > the > color of the gif--any suggestions on how I can get it to stay the same > color > at all scales? > > MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > Thanks in advance, > John Bolster > > SYMBOL > NAME 'int' > TYPE pixmap > IMAGE "./intsh.gif" > END > > LAYER > NAME intlabels > GROUP "hwy" > TYPE annotation > STATUS off > DATA nhpn > PROJECTION proj=latlong END > CLASSITEM 'type' > LABELITEM 'num' > LABELMAXSCALE 4000000 > CLASS > EXPRESSION "I" > COLOR 0 0 0 > SYMBOL "int" > LABEL > SIZE tiny > POSITION CC > BUFFER 2 > MINDISTANCE 200 > COLOR 255 255 255 > END > END > END > > From superbla3000 at GMX.NET Sun Oct 10 03:25:43 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sun, 10 Oct 2004 12:25:43 +0200 Subject: global border shape file Message-ID: hello, I am searching a shape file with the global borders but without the coastline. Do you have a link? Thanks Joerg From mapserver at SEAN-KELLY.COM Sun Oct 10 11:58:11 2004 From: mapserver at SEAN-KELLY.COM (Sean Kelly) Date: Sun, 10 Oct 2004 13:58:11 -0500 Subject: Display DOQ at max resolution Message-ID: Hi all, I'm working on a setup where the initial display is a WMS layer. (DOQ from TerraServer.) With the help of Google and the online examples I have been able to hack together a setup with php and mapscript where I can display a DOQ from TerraServer as a raster layer. The image is centered on a given lat/long. Panning and zooming (out) will be allowed from this starting point. (map projection is in latlong and map units are in decimal degrees). My problem is I don't seem to be able to calculate extents from my center point that allow me to get all the way in to the 1 meter per pixel resolution that should be available in the TerraServer image. I can get close, bu I seem to either fall a little short of the desired resolution or end up too far in and beyond the scale at which MapServer can render the image. I currently have minscale in the WMS layer set to a very low level so it will not interfere with my testing. I guess my questions are: I'm computing my extents using estimations of lat/long offsets from center that will get me "in the ball park" for the resolution I want. Have I missed some facility in mapscript that will calculate extents based upon a desired center point and scale? How might I properly calculate the extents based upon a center point such that I can take advantage of the maximum resolution available from the DOQ in the raster layer without exceeding the display limits? Thanks for any help in advance. Sean From ed at TOPOZONE.COM Sun Oct 10 12:24:51 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 10 Oct 2004 15:24:51 -0400 Subject: Display DOQ at max resolution In-Reply-To: Message-ID: Sean - Are you requesting the images in UTM projection, or in "geographic" projection? It doesn't make sense to think about the "geographic" projection as being "1-meter" resolution, since the image has been warped and distorted from the original UTM into a different projection. The image quality will degrade when that is done, and the pixels in the new image are NOT a "square" number of meters high and wide. Their width and height are the same number of *degrees*, one of longitude and one of latitude. All of Microsoft's TerraServer DOQs are JPEG-compressed to begin with, so some data loss is inevitable. But you should be able to get good image quality when requesting 1-meter resolution in a UTM projection. - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: Sean Kelly To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Sun, 10 Oct 2004 14:58:11 -0400 Subject: [UMN_MAPSERVER-USERS] Display DOQ at max resolution > Hi all, > > I'm working on a setup where the initial display is a WMS layer. (DOQ from > TerraServer.) > > With the help of Google and the online examples I have been able to hack > together a setup with php and mapscript where I can display a DOQ from > TerraServer as a raster layer. The image is centered on a given lat/long. > Panning and zooming (out) will be allowed from this starting point. (map > projection is in latlong and map units are in decimal degrees). > > My problem is I don't seem to be able to calculate extents from my center > point that allow me to get all the way in to the 1 meter per pixel > resolution that should be available in the TerraServer image. I can get > close, bu I seem to either fall a little short of the desired resolution > or end up too far in and beyond the scale at which MapServer can render > the image. I currently have minscale in the WMS layer set to a very low > level so it will not interfere with my testing. > > I guess my questions are: > > I'm computing my extents using estimations of lat/long offsets from center > that will get me "in the ball park" for the resolution I want. Have I > missed some facility in mapscript that will calculate extents based upon a > desired center point and scale? > > How might I properly calculate the extents based upon a center point such > that I can take advantage of the maximum resolution available from the DOQ > in the raster layer without exceeding the display limits? > > Thanks for any help in advance. > > Sean > From superbla3000 at GMX.NET Sun Oct 10 14:03:47 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sun, 10 Oct 2004 23:03:47 +0200 Subject: (command line) adjust color Message-ID: hello, is there actually a tool to adjust the colors of a geotiff? I have several 1.2 GB geotiffs and would like to have the red values more blue and the green not so strong... I could open them with Photoshop, but this would take ages... Thanks Joerg From dabner at OPTUSNET.COM.AU Sun Oct 10 22:58:34 2004 From: dabner at OPTUSNET.COM.AU (Nick Dabner) Date: Mon, 11 Oct 2004 15:58:34 +1000 Subject: Projection - how to specify? Message-ID: How would this VicGrid/AGD66 projection be specified in mapserver? It is an Australian projection focused around the state of Victoria. Lambert Conformal Conic ????????????? Std Parallel 1: ??????????????? 36S ????????????? Std Parallel 2: ??????????????? 38S ????????????? Central Meridian: ??????????? 145E ????????????? Origin:??????????????????????????????????? 37S ????????????? Unit: ???????????????????????????? Metre ????????????? False Easting: ??????????????? 2,500,000 m ????????????? False Northing:?????????????? 4,500,000 m Many thanks in advance. Nick Dabner -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 826 bytes Desc: not available URL: From saso.celarc at HERMES-PLUS.SI Mon Oct 11 01:04:18 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 11 Oct 2004 03:04:18 -0500 Subject: Tutorial examples problem Message-ID: When I downloaded the Windows binaries (thanks to information in this forum) from http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html the problems were solved. I can continue with examples. Sa?o Celarc From 39507 at MAIL.MUNI.CZ Mon Oct 11 03:06:08 2004 From: 39507 at MAIL.MUNI.CZ (Michal =?ISO-8859-2?Q?Krupi=E8ka?=) Date: Mon, 11 Oct 2004 12:06:08 +0200 Subject: editing shapefiles, changing them Message-ID: Hi all, I am not sure, if this conference is the right place for my question. The problem: I have shapefile with some objects, but they were made in bad resolution. It was my fault during digitalization. But now when the shapefile is created i need to change its resolution. I need to raise all object five times and save it back to shapefile. This problem appears in scalebar, where the wrong values are now. Thanks Mike From superbla3000 at GMX.NET Mon Oct 11 03:23:44 2004 From: superbla3000 at GMX.NET (joerg p) Date: Mon, 11 Oct 2004 12:23:44 +0200 Subject: global border shape file In-Reply-To: <200410100832.42818.tylermitchell@shaw.ca> Message-ID: hallo Tyler, thanks, but this is the same shp as i have. I would like to have it without the coastline, so just the borders between the countries. But how do you get the cloud layer? And do you know another landsat wms? I asked the webmaster, and he said, that the landsat wms needs a hardware update and this will take some time.... Joerg Tyler Mitchell wrote: > Joerg, > I don't think I have exactly what you are looking for, but have a look at > http://spatialguru.com/maps/apps/global - let me know if you want the country > boundaries layer. They are from the freegis world data layer. > > Tyler > > On October 10, 2004 03:25 am, joerg p wrote: > >>hello, >> >>I am searching a shape file with the global borders but without the >>coastline. >> >>Do you have a link? >> >>Thanks >>Joerg > > > From temiz at DEPREM.GOV.TR Mon Oct 11 04:45:12 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 11 Oct 2004 14:45:12 +0300 Subject: zoom problem Message-ID: hello my php-mapscript zoom function doesn't work properly. Although "zoom-in" works normally, "zoom-out" does not work. $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height, $my_extent); I checked zoom factor. When it is negative value, it does not make the map smaller. echo '$zoom_factor ',$zoom_factor; ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From w.blanken at GEON.NL Mon Oct 11 05:03:23 2004 From: w.blanken at GEON.NL (Wim Blanken) Date: Mon, 11 Oct 2004 07:03:23 -0500 Subject: query a mygis layer Message-ID: Hello list, I was playing with the mygis option and it works fine (I tested it with a 15 MB line shapefile). When I query the layer i get a internal server error. Is it possible to use the mygis connector with the query functionality. If not then I will update the WIKI as it says it does support all mapserver functionality. Regards, Wim From temiz at DEPREM.GOV.TR Mon Oct 11 05:00:38 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 11 Oct 2004 15:00:38 +0300 Subject: compilation error ? Message-ID: hello I tried to compile mapserver nightly built. It failed . However, version 4.2.3 has been built properly with same configuration. ./configure \ --with-gdal \ --without-tiff \ --with-freetype \ --with-gd=/usr/local/gd-2.0.28/ \ --with-proj=/usr/local/proj-4.4.8/ \ --with-php=/usr/local/php-5.0.0/ developing version gives: ~~~~~~~~~~~ configure: error: "Could not find gd.h or libgd.a/libgd.so in /usr/local/gd-2.0.28/. Make sure GD 2.0.12 or higher is compiled before calling configure." ~~~~~~~~~~~ I checked the libraries concerned. They reside in their places. what might be the problem ? regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From pram at PRAMCENTRAL.COM Mon Oct 11 06:15:55 2004 From: pram at PRAMCENTRAL.COM (Prashanth Ram) Date: Mon, 11 Oct 2004 08:15:55 -0500 Subject: compilation error ? Message-ID: I think you need to specify the location of gdal-config. ./configure --with-gdal=/usr/local/bin/gdal-config -Prashanth ----- Original Message ----- > I tried to compile mapserver nightly built. It failed . > However, version 4.2.3 has been built properly with same > configuration. > > ./configure \ > --with-gdal \ > --without-tiff \ > --with-freetype \ > --with-gd=/usr/local/gd-2.0.28/ \ > --with-proj=/usr/local/proj-4.4.8/ \ > --with-php=/usr/local/php-5.0.0/ > > developing version gives: > ~~~~~~~~~~~ > configure: error: "Could not find gd.h or libgd.a/libgd.so in > /usr/local/gd-2.0.28/. Make sure GD 2.0.12 or higher is compiled before > calling configure." > ~~~~~~~~~~~ -- HTMLX.com Mapserver, Mapscript, PHP Hosting From temiz at DEPREM.GOV.TR Mon Oct 11 06:52:16 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 11 Oct 2004 16:52:16 +0300 Subject: zoomscale usage Message-ID: hello I am not clear on using zoomscale. I construct tha command in this way: $map->zoomscale($scale,$my_point,$map->width,$map->height, $my_extent); but I am not sure how $scale is implemented. any examples will be useful. regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From Tom.Kralidis at EC.GC.CA Mon Oct 11 07:02:30 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 11 Oct 2004 10:02:30 -0400 Subject: (command line) adjust color Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of joerg p > Sent: Sunday, 10 October, 2004 17:04 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] (command line) adjust color > > > hello, > > is there actually a tool to adjust the colors of a geotiff? I > have several 1.2 GB geotiffs and would like to have the red > values more blue and the green not so strong... > > I could open them with Photoshop, but this would take ages... You could classify them in your mapfile -- see http://mapserver.gis.umn.edu/doc42/raster-howto.html in "Classifying Rasters". ..Tom > > Thanks > Joerg > From Tom.Kralidis at EC.GC.CA Mon Oct 11 07:05:50 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 11 Oct 2004 10:05:50 -0400 Subject: compilation error ? Message-ID: You might want to point to /usr/local only, i.e. here's my compile: ./configure --with-freetype=/usr/local/bin/freetype-config --with-zlib=/usr/local --with-png=/usr/local --with-jpeg=/usr/local --with-xpm=/usr/local --with-g d=/usr/local --with-pdf=/usr/local --with-eppl --with-proj=/usr/local --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-pos tgis=/usr/local/pgsql/bin/pg_config --with-wfs --with-wcs --with-wmsclient --with-wfsclient --without-tiff --with-curl-config=/usr/local/bin/curl-config ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Prashanth Ram > Sent: Monday, 11 October, 2004 09:16 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] compilation error ? > > > I think you need to specify the location of gdal-config. > > ./configure --with-gdal=/usr/local/bin/gdal-config > > -Prashanth > > ----- Original Message ----- > > > I tried to compile mapserver nightly built. It failed . However, > > version 4.2.3 has been built properly with same configuration. > > > > ./configure \ > > --with-gdal \ > > --without-tiff \ > > --with-freetype \ > > --with-gd=/usr/local/gd-2.0.28/ \ > --with-proj=/usr/local/proj-4.4.8/ \ > > --with-php=/usr/local/php-5.0.0/ > > > > developing version gives: > > ~~~~~~~~~~~ > > configure: error: "Could not find gd.h or libgd.a/libgd.so in > > /usr/local/gd-2.0.28/. Make sure GD 2.0.12 or higher is compiled > > before calling configure." ~~~~~~~~~~~ > > > -- > HTMLX.com > Mapserver, Mapscript, PHP Hosting > From jb at NUCOMP.COM Mon Oct 11 07:09:35 2004 From: jb at NUCOMP.COM (John Bolster) Date: Mon, 11 Oct 2004 10:09:35 -0400 Subject: REQUIRE and GROUP Message-ID: Hi all, Is there some conflict between the keywords REQUIRE and GROUP? I have some layers that are turned on or off through the URL in cgi mapserver by specifying the name of the group they are in, as in "&layers=groupname+otherlayer...". However the REQUIRE keyword doesn't appear to work either in these layers or in any other layer that's requiring one of them. Here's an example: URL: "...&layers=thegroup..." LAYER GROUP "thegroup" NAME "firstlayer" STATUS off rest of layer definition... END LAYER REQUIRES "[firstlayer]" TYPE annotation STATUS default rest of layer definition END In this example, both layers work fine independently of one another, but I can't get the annotation layer to respond to the firstlayer. I've tried the REQUIRES expression with "[firstlayer]" and with "[thegroup]" and neither do anything. It's like it's ignored. I haven't found any bug report on this so I'm wondering what I'm missing. Thanks, John Bolster From tylermitchell at SHAW.CA Mon Oct 11 08:37:59 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 11 Oct 2004 08:37:59 -0700 Subject: editing shapefiles, changing them In-Reply-To: <1097489167-39507-457.917948719114-1317@mail.muni.cz> Message-ID: Mike, It sounds like you have set the wrong 'units' during digitizing? And you want to 'scale' the data to fit a wider part of the earth -- is that right? I have some ideas of how you could do this by setting your PROJECTION options for that layer using the right UNITS. It might not be possible though. Can you make your file available for others to have a peek at? Tyler On October 11, 2004 03:06 am, Michal Krupi?ka wrote: > Hi all, > I am not sure, if this conference is the right place for my question. > The problem: I have shapefile with some objects, but they were made in bad > resolution. It was my fault during digitalization. But now when the > shapefile is created i need to change its resolution. I need to raise all > object five times and save it back to shapefile. This problem appears in > scalebar, where the wrong values are now. > Thanks Mike From pdrake at GMAIL.COM Mon Oct 11 08:54:15 2004 From: pdrake at GMAIL.COM (Peter Drake) Date: Mon, 11 Oct 2004 11:54:15 -0400 Subject: query a mygis layer In-Reply-To: Message-ID: I have the same issue. Attila Csipa (author of mygis) said he would try to check into it but it has been a couple weeks since then and I've not heard anything more. Peter On Mon, 11 Oct 2004 07:03:23 -0500, Wim Blanken wrote: > Hello list, > > I was playing with the mygis option and it works fine (I tested it with a > 15 MB line shapefile). When I query the layer i get a internal server error. > Is it possible to use the mygis connector with the query functionality. If > not then I will update the WIKI as it says it does support all mapserver > functionality. > > Regards, > > Wim > From ikebrian at YAHOO.COM Mon Oct 11 09:38:31 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Mon, 11 Oct 2004 09:38:31 -0700 Subject: Class Error Message-ID: Hello, I am trying to classify the a polygon and have the following codes but was given me error messages.Could anyone help me to debug it? # # Start of layer definitions # LAYER NAME "prov_bound" STATUS ON DATA "province" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "DESCRIPTION" "Province" END CLASSITEM 'SYMBOL' # SYMBOL needs single quotes because it's both a field name in the shapefile and a keyword for .MAP files CLASS COLOR 255 120 120 SYMBOL 0 EXPRESSION ([REG_CODE]=10) NAME "Terre-Neuve" END CLASS COLOR 120 255 120 SYMBOL 0 EXPRESSION ([REG_CODE]=11) NAME "Ile-du-Prince-Edouard" END CLASS COLOR 120 120 255 SYMBOL 0 EXPRESSION ([REG_CODE]=12) NAME "Nouvelle-Ecosse" END Thank you very much hoping to hear from you --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Mon Oct 11 10:09:44 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 11 Oct 2004 12:09:44 -0500 Subject: About REGEX. Message-ID: All, I have a set of 1 foot contours that I would like to publish. I had thought about setting up more than one source file for different resolutions. But, if I can use a REGEX to filter for say 5 and ten foot elevations (attributes) I can get it all done with a single layer. Can I filter on the values or characters in some way for display/labelling? Some desired layers: All the Contours. Every 2 feet. (even values) Every 5 feet. (values ending in "0" or "5") Every 10 feet. (values ending in "0") The Elevation value will be an attribute to the (polyline). Or, Is it better to build a different dataset for each desired output? Thanks bobb From jb at NUCOMP.COM Mon Oct 11 09:40:52 2004 From: jb at NUCOMP.COM (John Bolster) Date: Mon, 11 Oct 2004 12:40:52 -0400 Subject: FW: [UMN_MAPSERVER-USERS] symbols changing color Message-ID: Steve, One final question on this: the dummy layer seems to draw one copy of the symbol centered at 0,0 at the top left of the image, so part of it shows in the corner of the map. Is there any way to make this not visible? Thanks, John -----Original Message----- From: John Bolster [mailto:jb at nucomp.com] Sent: Sunday, October 10, 2004 11:02 AM To: Stephen Woodbridge Subject: RE: [UMN_MAPSERVER-USERS] symbols changing color Thank you so much. Your dummy layers completely handles my problem. John > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Saturday, October 09, 2004 7:52 PM > To: John Bolster > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] symbols changing color > > > This is a know problem. > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 > Read the bug, I posted some workarounds. > > -Steve W. > > John Bolster wrote: > > > Hi all, > > > > I defined a gif image as an interstate shield used in an > annotation layer. > > Now when I zoom in and out the color of the shields change on the output > > map. The bulk of each shield should be pure blue, yet it becomes purple > > sometimes and a light blue other times. They vary when I change the line > > color of the underlying interstate line layer and also when I > turn on and > > off other layers (county lines and place polygons). Below are > how my symbol > > and annotation layer are defined. I can't see how mapserver is > changing the > > color of the gif--any suggestions on how I can get it to stay > the same color > > at all scales? > > > > MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > > > Thanks in advance, > > John Bolster > > > > SYMBOL > > NAME 'int' > > TYPE pixmap > > IMAGE "./intsh.gif" > > END > > > > LAYER > > NAME intlabels > > GROUP "hwy" > > TYPE annotation > > STATUS off > > DATA nhpn > > PROJECTION proj=latlong END > > CLASSITEM 'type' > > LABELITEM 'num' > > LABELMAXSCALE 4000000 > > CLASS > > EXPRESSION "I" > > COLOR 0 0 0 > > SYMBOL "int" > > LABEL > > SIZE tiny > > POSITION CC > > BUFFER 2 > > MINDISTANCE 200 > > COLOR 255 255 255 > > END > > END > > END > > > > From dannys at ANYWHERE.CO.IL Mon Oct 11 10:02:55 2004 From: dannys at ANYWHERE.CO.IL (Danny Stopel (Anywhere Ltd)) Date: Mon, 11 Oct 2004 19:02:55 +0200 Subject: Hebrew Characters Support Message-ID: Hello! I have a problem displaying Hebrew characters as Label text, I get a lot of strange symbols instead. I believe it is a simple encoding problem. I've tried to use a lot of different TT fonts, but nothing helped. I tried to search in various documentations about the solution of such issue, and I got the impression that there is NO support for multibyte (encoding issue) in MapServer, If this is wrong please suggest me where to check the properties, If I'm right please suggest where approximately in the source code of Mapserver I can look in order to add an encoding feature (at least only for Hebrew). Thank you ahead! Danny Stopel email: dannys at anywhere.co.il -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Mon Oct 11 10:25:26 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 11 Oct 2004 12:25:26 -0500 Subject: Class Error Message-ID: What were the error messages? Also, if you're just doing single value comparisons I'd use string expressions. E.g: CLASSITEM 'REG_CODE' CLASS EXPRESSION '10' ... END CLASS EXPRESSION '11' ... END and so on... Much faster that way. Steve >>> Ike Brian 10/11/2004 11:38:31 AM >>> Hello, I am trying to classify the a polygon and have the following codes but was given me error messages.Could anyone help me to debug it? # # Start of layer definitions # LAYER NAME "prov_bound" STATUS ON DATA "province" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "DESCRIPTION" "Province" END CLASSITEM 'SYMBOL' # SYMBOL needs single quotes because it's both a field name in the shapefile and a keyword for .MAP files CLASS COLOR 255 120 120 SYMBOL 0 EXPRESSION ([REG_CODE]=10) NAME "Terre-Neuve" END CLASS COLOR 120 255 120 SYMBOL 0 EXPRESSION ([REG_CODE]=11) NAME "Ile-du-Prince-Edouard" END CLASS COLOR 120 120 255 SYMBOL 0 EXPRESSION ([REG_CODE]=12) NAME "Nouvelle-Ecosse" END Thank you very much hoping to hear from you --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! From tylermitchell at SHAW.CA Mon Oct 11 11:53:22 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 11 Oct 2004 11:53:22 -0700 Subject: Projection - how to specify? In-Reply-To: <95E76760-1B4A-11D9-A7DA-000393AFE4BA@optusnet.com.au> Message-ID: I'm not a projections guru, but I suspect it will look something like the following. Note that I'm just throwing this together to give you an idea - and to give others something to correct :) Hope it helps you! Tyler PROJECTION "proj=lcc" # Projection name "lat_0=-37" # Latitude origin "lon_0=145" # Central meridian "lat_1=-36" "lat_2=-38" "x_0=2500000" "y_0=4500000" "unit=meters" END On October 10, 2004 10:58 pm, Nick Dabner wrote: > How would this VicGrid/AGD66 projection be specified in mapserver? It > is an Australian projection focused around the state of Victoria. > > Lambert Conformal Conic > > ????????????? Std Parallel 1: ??????????????? 36S > > ????????????? Std Parallel 2: ??????????????? 38S > > ????????????? Central Meridian: ??????????? 145E > > ????????????? Origin:??????????????????????????????????? 37S > > ????????????? Unit: ???????????????????????????? Metre > > ????????????? False Easting: ??????????????? 2,500,000 m > > ????????????? False Northing:?????????????? 4,500,000 m > > > Many thanks in advance. > > Nick Dabner From sgillies at FRII.COM Mon Oct 11 12:34:29 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 11 Oct 2004 13:34:29 -0600 Subject: MapServer 4.2.4 Release Message-ID: MapServer 4.2.4 has been released. Although the website has not yet been updated, the download is available from: http://cvs.gis.umn.edu/dist/mapserver-4.2.4.tar.gz So, what makes this version worth downloading and installing? Easy UNIX/Linux Java mapscript compilation with testable examples, repaired pixmap symbol transparency for 24-bit output images, and OWS and SDE bug fixes. If you intend to use MapServer within long running or multi- threaded processes, you *must* upgrade. Many memory leaks have been plugged, and several potential threading problems have been found and eliminated. Here is the top of the change log: Version 4.2.4 (2004-10-10) -------------------------- - Protect users from 3 potential sources of threading problems: parsing expression strings outside of msLoadMap, evaluating mapserver logical expressions, and loading symbol set files outside of msLoadMap (bug 339). - Various fixes allowing unit tests to run leak free under valgrind on i686. Memory is now properly freed when exiting from common error states (bug 927). - Restored ability to render transparent (indexed or alpha) pixmap symbols on RGB map images, including annotation layers and embedded scalebars. This feature remains OFF by default for map layers and is enabled by specifying TRANSPARENCY ALPHA (bugs 926, 490). - New and improved Java mapscript build provided by unicoletti at prometeo.it, and examples contributed by Y.K. Choo (bug 876). - Fixed bug 863: Output MapContext parameters (SRS and DataURL) in the order required by the spec. - searchImageCache() in mapgd.c now checks all three style colors before using a cached brush image (bug 868). - Fixed bug 857: Fix msDecodeHTMLEntities to not skip characters after each decoding. - Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE tables Thanks to all that reported, confirmed, and fixed these issues! Enjoy, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From vaiod at BERLOY.COM Mon Oct 11 13:08:37 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Mon, 11 Oct 2004 13:08:37 -0700 Subject: Multi Query Guidance Message-ID: Okay I am trying to figure out how to find the nearest intersecting streets on a map. I am looking for these streets based on a point (408979.83058915, 897117.98180317). What advise or information could you give me on how to get the nearest intersection of a given point. I am using 4.2.3 with projection, PHP, and MySQL although I am not using mygis quite yet (having trouble with shp2mysql.pl) The queries I am doing right now are all based on PHP/MySQL stored points and the point the user clicked, and they work great. I just need to know how to get the nearest intersection at the point clicked as well. Any advise would be very helpfull.. Thanks From dmorissette at DMSOLUTIONS.CA Mon Oct 11 14:35:47 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 11 Oct 2004 17:35:47 -0400 Subject: [layers] parameter In-Reply-To: <41611466.5060201@tin.it> Message-ID: andrea wrote: > Hi all, > I have a strange problem problem. The [layers] parameter give me only > the last active layer. I have this problem only in my linux server. If I > move the same code in windows I have no problem, I have all the active > layers. > This is my linux mapserver version: > MapServer version 4.2.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Do you know something about this error? > I think you have run into bug 738 which was fixed in version 4.2.2. Please try an upgrade to 4.2.4. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Oct 11 14:39:55 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 11 Oct 2004 17:39:55 -0400 Subject: Mapscript + PNG: filled symbol has only a partly filled output In-Reply-To: <4161412A.3010905@ilmenau.baw.de> Message-ID: Norbert Thieme wrote: > > The problem is that it is not completly filled - see circle_symbol.png. > This only happens with mapscript. In CGI mode the output is fine. I > tried GD/PNG and GDAL/PNG as OUTPUTFORMAT but the problem is the same in > both results. When I use JPEG as outputfformat it is completly filled. > I'm using MS v4.2.2 on Linux with Apache2 and PHP 4.3.6. > If this happens only with PHP MapScript and not with the CGI then I woud suspect that conflicting versions of GD or libpng are used by MapServer and by PHP. If you have the PHP GD module enabled then try disabling it, or rebuilding PHP using the same GD and libpng that you used to build MapServer and php_mapscript.so Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From siki at AGT.BME.HU Mon Oct 11 17:50:04 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 11 Oct 2004 23:50:04 -0100 Subject: About REGEX. {Scanned} In-Reply-To: <416ABE58.6030002@ci.stpaul.mn.us> Message-ID: Hi, On Mon, 11 Oct 2004, Bob Basques wrote: > All, > > I have a set of 1 foot contours that I would like to publish. > > I had thought about setting up more than one source file for different > resolutions. But, if I can use a REGEX to filter for say 5 and ten foot > elevations (attributes) I can get it all done with a single layer. > > Can I filter on the values or characters in some way for display/labelling? > > Some desired layers: > > All the Contours. > Every 2 feet. (even values) EXPRESSION /[02468]$/ > Every 5 feet. (values ending in "0" or "5") EXPRESSION /[05]$/ > Every 10 feet. (values ending in "0") EXPRESSION /0$/ These regexp will work if you have integer values for the elevation. Bye Zoltan From bob.basques at CI.STPAUL.MN.US Mon Oct 11 15:02:55 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 11 Oct 2004 17:02:55 -0500 Subject: About REGEX. {Scanned} In-Reply-To: Message-ID: Siki Zoltan wrote: Thanks, this should work just fine. Now I need to figure out how to put a Tile index in front of a SHP file. Supposedly it can be done. So "$" is the last CHAR. What would I use for the First CHAR? Just put the $ in the front of the Bracketed stuff? Thanks Again. bobb > >> >>All the Contours. >>Every 2 feet. (even values) >> >> > >EXPRESSION /[02468]$/ > > > >>Every 5 feet. (values ending in "0" or "5") >> >> > >EXPRESSION /[05]$/ > > > >>Every 10 feet. (values ending in "0") >> >> > >EXPRESSION /0$/ > >These regexp will work if you have integer values for the elevation. > >Bye >Zoltan > > > From dmorissette at DMSOLUTIONS.CA Mon Oct 11 14:58:51 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 11 Oct 2004 17:58:51 -0400 Subject: Mapserver 4.2.3 compiled for Oracle ? In-Reply-To: Message-ID: Nicolas Fortin wrote: > > If yes, where can I fond it? I checked the maptools.org site and saw a file > named mapserver-4.3-win32-php4.3.7_oracle.zip ... as far as I know, there's > no v4.3 yet !? > 4.3 is the development version so this build doesn't correspond to any formal 4.3 release, it's just a snapshot of the development version as of a given date (looking at the date of the file on maptools, it would be from June 16). BTW, the 4.3 development version will be released as a "stable" 4.4 by the end of this year. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From siki at AGT.BME.HU Mon Oct 11 17:58:42 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 11 Oct 2004 23:58:42 -0100 Subject: About REGEX. {Scanned} In-Reply-To: <416B030F.7060607@ci.stpaul.mn.us> Message-ID: Hi, On Mon, 11 Oct 2004, Bob Basques wrote: > Siki Zoltan wrote: > > Thanks, this should work just fine. > > Now I need to figure out how to put a Tile index in front of a SHP > file. Supposedly it can be done. > > So "$" is the last CHAR. What would I use for the First CHAR? Just put > the $ in the front of the Bracketed stuff? No, use ^ to mask the start > > > > >> > >>All the Contours. > >>Every 2 feet. (even values) > >> > >> > > > >EXPRESSION /[02468]$/ > > > > > > > >>Every 5 feet. (values ending in "0" or "5") > >> > >> > > > >EXPRESSION /[05]$/ > > > > > > > >>Every 10 feet. (values ending in "0") > >> > >> > > > >EXPRESSION /0$/ > > > >These regexp will work if you have integer values for the elevation. > > > >Bye > >Zoltan > > > > > > > From dmorissette at DMSOLUTIONS.CA Mon Oct 11 15:26:09 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 11 Oct 2004 18:26:09 -0400 Subject: Hebrew Characters Support In-Reply-To: <004501c4afb4$26fc2790$2e01a8c0@DannyS> Message-ID: Danny Stopel (Anywhere Ltd) wrote: > > got the impression that there is NO support for multibyte (encoding > issue) in MapServer, If this is wrong please suggest me where to check > the properties, > > If I'm right please suggest where approximately in the source code of > Mapserver I can look in order to add an encoding feature (at least only > for Hebrew). > > I don't know much about Hebrew encoding requirements, but support for encondings has been recently added in 4.3 (development version) and tested with Japanese, Chinese and Thai characters. See bug 858 for more details: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=858 Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From orsolarte at HOTMAIL.COM Mon Oct 11 16:22:15 2004 From: orsolarte at HOTMAIL.COM (Orlando Giovanny Solarte Delgado) Date: Mon, 11 Oct 2004 18:22:15 -0500 Subject: thematic map with table dbf Message-ID: Hi. I am new in mapserver and I would like to know if thematic maps can be made with the fields of a table dbf using a join to the layer. I have data stored in a MS-SQLServer database and the shapefiles stored in postgis. Is possible to make a to classify for colors of a map of polygons with the data stored in a table dbf (coming from a select of the database)?. Can I use the ClassItem with a field of the table dbf using the join to the layer? How I can do it? Thank's for you collaboration. Excuse my bad english, it isn't my first language. Greetings. From ikebrian at YAHOO.COM Mon Oct 11 18:43:30 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Mon, 11 Oct 2004 18:43:30 -0700 Subject: Esri ArcMap and Mapserver Message-ID: Hello, I would like to know if it is possible to import works done by Esri ArcMap into mapserver. Thank you very much --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Mon Oct 11 20:07:30 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 11 Oct 2004 20:07:30 -0700 Subject: Debian package ?? Message-ID: Anyone know of a debian package for MapServer? Tyler From ikebrian at YAHOO.COM Mon Oct 11 20:58:54 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Mon, 11 Oct 2004 20:58:54 -0700 Subject: Error using phtml Message-ID: Hello, I am trying to use phtml to view maps but when I runned the file I had an error message "Fatal error: Call to undefined function ms_newmapobj() in ..\ms4w\Apache\htdocs\usa.phtml" I would like to know how to rectify this problem.Any suggestion? Isaac --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Mon Oct 11 21:18:17 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 11 Oct 2004 21:18:17 -0700 Subject: Esri ArcMap and Mapserver In-Reply-To: <20041012034238.38262.qmail@web60503.mail.yahoo.com> Message-ID: On October 11, 2004 08:42 pm, you wrote: > Hello, > Thank you for your reply, please does that mean that mapserver cant process > mxd file. Not that I know of. Someone may have hacked something together, but I haven't seen it at all. Certainly not be default!!! > If so in which other format of ArcMap can mapserver process. I > want to publish pie/bar chart maps. What do you want to be able to do with MapServer? I don't quite understand what you mean. I guess that you want to create chart maps and save them in a format that you can add as a layer to MapServer -- right? I would try File > Export, then try to save as a TIFF or Geotiff. In one of them you can tell it to create a world file, I think. That image should be able to be used within MapServer. If you have a sample, I'd love to see it. I don't have ArcMap in front of me at the moment, but when I do next time, I'll check into it for you. Tyler From tylermitchell at SHAW.CA Mon Oct 11 22:03:59 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 11 Oct 2004 22:03:59 -0700 Subject: Debian package ?? In-Reply-To: <416B4D2B.8070502@swoodbridge.com> Message-ID: Cool - thanks. On October 11, 2004 08:19 pm, Stephen Woodbridge wrote: > http://www.google.com/search?hl=en&q=mapserver+debian&btnG=Google+Search > > Tyler Mitchell wrote: > > Anyone know of a debian package for MapServer? > > > > Tyler From tylermitchell at SHAW.CA Mon Oct 11 20:07:09 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 11 Oct 2004 20:07:09 -0700 Subject: Esri ArcMap and Mapserver In-Reply-To: <20041012014331.58236.qmail@web60505.mail.yahoo.com> Message-ID: On October 11, 2004 06:43 pm, Ike Brian wrote: > Hello, > I would like to know if it is possible to import works done by Esri ArcMap > into mapserver. Thank you very much You can create data with ArcMap and save it in a format that MapServer can read. I think can also export data from a layout into a georeferenced image, but I haven't heard of anyone taking a mxd Arcmap document into MapServer. Did you have something specific in mind when you said "import works" ? Tyler From 2BJOERNS at GMX.DE Tue Oct 12 01:36:35 2004 From: 2BJOERNS at GMX.DE (=?UTF-8?B?QmrDtnJuIFNjaGFmZnJhdGg=?=) Date: Tue, 12 Oct 2004 10:36:35 +0200 Subject: Esri ArcMap and Mapserver In-Reply-To: <200410112118.17078.tylermitchell@shaw.ca> Message-ID: Tyler Mitchell schrieb: > On October 11, 2004 08:42 pm, you wrote: > >>Hello, >>Thank you for your reply, please does that mean that mapserver cant process >>mxd file. > > > Not that I know of. Someone may have hacked something together, but I haven't > seen it at all. Certainly not be default!!! > > >>If so in which other format of ArcMap can mapserver process. I >>want to publish pie/bar chart maps. > > > What do you want to be able to do with MapServer? I don't quite understand > what you mean. I guess that you want to create chart maps and save them in > a format that you can add as a layer to MapServer -- right? > > I would try File > Export, then try to save as a TIFF or Geotiff. In one of > them you can tell it to create a world file, I think. That image should be > able to be used within MapServer. > > If you have a sample, I'd love to see it. I don't have ArcMap in front of me > at the moment, but when I do next time, I'll check into it for you. > > Tyler > > hi, for arcview 3.x (!) exists a commercial extension called "DiagramWizard" for exporting charts to shapes - so you can use it for web mapping apps. shapes gives you the ability to query the charts - if that makes sense for your purposes. there is a demo available, but I don?t know the limitations of the demo. (http://www.alta4.com/de/produkte/download.html) a another but complicated way is a graphic program (if you have) with dxf-export and diagram building functionality where you can create your charts manually. then import in gis, georeference the shapes/dxf, reclass the parts of the charts with your id?s manually. this is only practicable with a small dataset. I would prefer Tyler?s suggestion with a georeferend chart raster layer. hope that helps. Bj?rn Schaffrath (sorry for bad english) From norbert.thieme at ILMENAU.BAW.DE Tue Oct 12 01:58:10 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Tue, 12 Oct 2004 10:58:10 +0200 Subject: Mapscript + PNG: filled symbol has only a partly filled output In-Reply-To: <416AFDAB.8070805@dmsolutions.ca> Message-ID: Daniel Morissette schrieb: > Norbert Thieme wrote: > >> >> The problem is that it is not completly filled - see circle_symbol.png. >> This only happens with mapscript. In CGI mode the output is fine. I >> tried GD/PNG and GDAL/PNG as OUTPUTFORMAT but the problem is the same in >> both results. When I use JPEG as outputfformat it is completly filled. >> I'm using MS v4.2.2 on Linux with Apache2 and PHP 4.3.6. >> > > If this happens only with PHP MapScript and not with the CGI then I > woud suspect that conflicting versions of GD or libpng are used by > MapServer and by PHP. If you have the PHP GD module enabled then try > disabling it, or rebuilding PHP using the same GD and libpng that you > used to build MapServer and php_mapscript.so > > Daniel Daniel, thanks for the response. I think I found the problem. I just looked in the changelog from PHP and found that there seem to be a bug in PHP: "Bug #27995 imagefilltoborder fails to fill a polygon" --> http://bugs.php.net/bug.php?id=27995 This bug seem to be limited to version 4.3.6. I get the newer version and now it work. Regards, Norbert From temiz at DEPREM.GOV.TR Tue Oct 12 04:05:16 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 12 Oct 2004 14:05:16 +0300 Subject: urgent need - on zoom problem Message-ID: this expression: < $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,$my_extent); > works properly when ($zoom_factor> 0) it enlarges the map. but doesn't work properly when ($zoom_factor< 0) it contracts the map. I will appreciate if anyone helps regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From sobomsawin at KASSINI.COM Tue Oct 12 06:39:36 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Tue, 12 Oct 2004 09:39:36 -0400 Subject: [UMN_MAPSERVER-USERS] urgent need - on zoom problem In-Reply-To: <416BBA6C.1050208@deprem.gov.tr> Message-ID: Your expression is good. Look at your variables and watch if you don't have a $zoom_factor = abs($zoom_factor); somewhere in your code. It looks like your $zoom_factor is absolute... Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de temiz Envoy??: 12 octobre 2004 07:05 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] urgent need - on zoom problem this expression: < $map->zoompoint($zoom_factor,$my_point,$map->width,$map->height,$my_extent); > works properly when ($zoom_factor> 0) it enlarges the map. but doesn't work properly when ($zoom_factor< 0) it contracts the map. I will appreciate if anyone helps regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 From sobomsawin at KASSINI.COM Tue Oct 12 06:43:24 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Tue, 12 Oct 2004 09:43:24 -0400 Subject: [UMN_MAPSERVER-USERS] Error using phtml In-Reply-To: <20041012035854.7889.qmail@web60504.mail.yahoo.com> Message-ID: Look at the beginning of your code if you load the php mapscript: dl('php_mapscript_40.so'); # On Linux dl('php_mapscript_40.dll'); # On Win The PHP Mapscript application must be in the extension folder of PHP. Be sure you have compiled correctly PHP, Apache and Mapserver Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Ike Brian Envoy? : 11 octobre 2004 23:59 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Error using phtml Hello, I am trying to use phtml to view maps but when I runned the file I had an error message "Fatal error: Call to undefined function ms_newmapobj() in ..\ms4w\Apache\htdocs\usa.phtml" I would like to know how to rectify this problem.Any suggestion? Isaac _____ Do you Yahoo!? HYPERLINK "http://us.rd.yahoo.com/mail_us/taglines/aac/*http:/promotions.yahoo.com/new _mail/static/ease.html"Yahoo! Mail Address AutoComplete - You start. We finish. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yecarrillo at YAHOO.COM Tue Oct 12 07:07:23 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Tue, 12 Oct 2004 09:07:23 -0500 Subject: Gix, exporting ArcView views to MapServer mapfiles In-Reply-To: <41663C48.5040905@terrestris.de> Message-ID: --- Till Adams escribi?: Hi. > Eduin, > > sorry for no reply: Yes I found it useful - but sometimes a little bit > ... complicated in generating the output. > Some people think contrary, they said "more easy, just two steps" > I've created AveiN! an ArView extension, which does the same (have a > look on sourceforge -> AveiN!). > Yes, I have used it in the past. It is a enchanced version of Ross Searle's extension (available at Mapserver user contributed utilities) Something that I had not understood is what is the license schema of Avein. Yo've hosted it at SF, but you sell it at the same time at terrestris for a big price. > Maybe it's worth about taking some of the elements of your extension and > some of mine together (your symbol creator is great!!) > I think it is not possible. Avein is not GPL licensed (it is commercial, or at least confuse licensing method), so, you can't use it at all or part into Avein. > In them opment we start to work on an ArcGIS extension - do you also > have plans to do something in that field? > Yes. I have a little interface for ArcGis, not public available yet. > Greetings from Germany, > and more feedback in calmer times, OK? > Thank you. I hope ear more about you soon! > Till > (orry for my bad english) Eduin Yesid Carrillo Civil Engineer COLOMBIA ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From jtk at YAHOO.COM Tue Oct 12 08:33:31 2004 From: jtk at YAHOO.COM (Jeff Kowalczyk) Date: Tue, 12 Oct 2004 10:33:31 -0500 Subject: building Mapserver on Gentoo: with-proj doesn't see files Message-ID: I'm trying to build mapserver on Gentoo linux, in preparation to attempt an ebuild installation package for it. I have dev-libs/proj-4.4.8 installed, which I presume is the dependency for with-proj. I need information on the expectation of the with-proj argument: ./configure --with-proj=/usr/lib configure: checking whether we should include PROJ.4 support...... configure: error: "Could not find projects.h or libproj.a/libproj.so in /usr/lib." Same result for /usr/bin, /usr/share/proj, etc. Its almost like the make file doesn't see any of those files, but they are present. Any suggestions? Here is the Gentoo file manifest for an installed proj-4.4.8: # qpkg -l proj dev-libs/proj-4.4.8 * CONTENTS: /usr /usr/bin /usr/bin/geod /usr/bin/proj /usr/bin/cs2cs /usr/bin/nad2bin /usr/bin/nad2nad /usr/bin/invgeod -> geod /usr/bin/invproj -> proj /usr/lib /usr/lib/libproj.so.0.4.2 /usr/lib/libproj.a /usr/lib/libproj.la /usr/lib/libproj.so -> libproj.so.0.4.2 /usr/share /usr/share/doc /usr/share/doc/proj-4.4.8 /usr/share/doc/proj-4.4.8/README.NADUS.gz /usr/share/doc/proj-4.4.8/README.gz /usr/share/doc/proj-4.4.8/NEWS.gz /usr/share/doc/proj-4.4.8/INSTALL.gz /usr/share/doc/proj-4.4.8/AUTHORS.gz /usr/share/doc/proj-4.4.8/README.NAD.gz /usr/share/doc/proj-4.4.8/ChangeLog.gz /usr/share/man /usr/share/man/man1 /usr/share/man/man1/cs2cs.1.gz /usr/share/man/man1/geod.1.gz /usr/share/man/man1/proj.1.gz /usr/share/man/man1/nad2nad.1.gz /usr/share/man/man3 /usr/share/man/man3/pj_init.3.gz /usr/share/proj /usr/share/proj/FL /usr/share/proj/MD /usr/share/proj/TN /usr/share/proj/WI /usr/share/proj/WO /usr/share/proj/GL27 /usr/share/proj/epsg /usr/share/proj/esri /usr/share/proj/prvi /usr/share/proj/proj_def.dat /usr/share/proj/conus /usr/share/proj/nad27 /usr/share/proj/nad83 /usr/share/proj/world /usr/share/proj/pj_out83.dist /usr/share/proj/alaska /usr/share/proj/nad.lst /usr/share/proj/hawaii /usr/share/proj/pj_out27.dist /usr/share/proj/test27 /usr/share/proj/test83 /usr/share/proj/stlrnc /usr/share/proj/stpaul /usr/share/proj/stgeorge /usr/share/proj/ntv1_can.dat /usr/include /usr/include/nad_list.h /usr/include/proj_api.h /usr/include/projects.h /usr/lib/libproj.so.0 -> libproj.so.0.4.2 From mj at SCI.FI Tue Oct 12 10:23:09 2004 From: mj at SCI.FI (Mike Jackson) Date: Tue, 12 Oct 2004 20:23:09 +0300 Subject: newbie needs help correcting distorted map Message-ID: Hi All, I've just completed the tutorial, and tried to hack together my first maps, but they seem to be distorted, especially the northern countries. I tried the epsg 4326, and many others, just to experiment, but none of them really had much effect on the output. I'm using the countries.shp from freegis world data. Here is my .map file: MAP IMAGETYPE PNG EXTENT -179.999900 -89.999900 179.999900 83.627357 SIZE 1390 900 # fits my browser nicely SHAPEPATH "geodata" IMAGECOLOR 0 0 128 # navy blue PROJECTION "init=epsg:4326" END LAYER NAME countries_interior DATA countries STATUS DEFAULT TYPE POLYGON CLASS COLOR 82 82 82 # gray32 END PROJECTION "init=epsg:4326" END END LAYER NAME countries DATA countries STATUS DEFAULT TYPE LINE CLASS COLOR 255 255 0 # yellow END PROJECTION "init=epsg:4326" END END END Here is the head output from ogrinfo -al: INFO: Open of `countries.shp' using driver `ESRI Shapefile' successful. Layer name: countries Geometry: Polygon Feature Count: 27320 Extent: (-179.999900, -89.999900) - (179.999900, 83.627357) Layer SRS WKT: GEOGCS["wgs84", DATUM["unknown", SPHEROID["wgs84",6378137,298.257223563]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] cat: Integer (11.0) na2: String (80.0) Any ideas what I am doing wrong, and better yet how to correct it? Thanks! Mike From jtk at YAHOO.COM Tue Oct 12 08:35:17 2004 From: jtk at YAHOO.COM (Jeff Kowalczyk) Date: Tue, 12 Oct 2004 10:35:17 -0500 Subject: building Mapserver on Gentoo: with-httpd Message-ID: I'm trying to build mapserver on Gentoo linux, in preparation to attempt an ebuild installation package for it. I have net-www/apache-2.0.52 installed. I need information on the expectation of the with-httpd argument: On Gentoo linux, and perhaps with httpd-2.x in general, there doesn't seem to be an 'httpd' program etc. What is that argument looking for? With the apr or axps options work instead (configure help says disabled)? Thanks. Here is the (abbreviated) Gentoo file manifest for an installed apache-2.0.52: # qpkg -l apache | more net-www/apache-2.0.52 * CONTENTS: /etc /etc/conf.d /etc/conf.d/apache2 /etc/init.d /etc/init.d/apache2 /etc/apache2 /etc/apache2/conf /etc/apache2/conf/magic /etc/apache2/conf/modules.d /etc/apache2/conf/modules.d/40_mod_ssl.conf /etc/apache2/conf/modules.d/00_apache_manual.conf /etc/apache2/conf/modules.d/45_mod_dav.conf /etc/apache2/conf/modules.d/46_mod_ldap.conf /etc/apache2/conf/modules.d/41_mod_ssl.default-vhost.conf /etc/apache2/conf/commonapache2.conf /etc/apache2/conf/vhosts /etc/apache2/conf/vhosts/vhosts.conf /etc/apache2/conf/vhosts/virtual-homepages.conf /etc/apache2/conf/vhosts/dynamic-vhosts.conf /etc/apache2/conf/apache2.conf /etc/apache2/conf/mime.types /etc/apache2/apache2-builtin-mods /var /var/www /var/www/localhost /var/www/localhost/error /var/www/localhost/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var (...) /var/www/localhost/error/HTTP_NOT_FOUND.html.var /var/www/localhost/icons /var/www/localhost/icons/generic.sec.gif (...) /var/www/localhost/icons/c.gif /var/www/localhost/htdocs /var/www/localhost/htdocs/index.html.var /var/www/localhost/htdocs/index.html.he.iso8859-8 /var/www/localhost/htdocs/index.html.lb.utf8 /var/www/localhost/htdocs/index.html.zh-tw.big5 /var/www/localhost/htdocs/apache_pb.gif /var/www/localhost/htdocs/apache_pb.png (...) /var/www/localhost/cgi-bin /var/www/localhost/cgi-bin/test-cgi /var/www/localhost/cgi-bin/printenv /usr /usr/bin /usr/bin/apu-config /usr/bin/apr-config /usr/lib /usr/lib/ssl /usr/lib/ssl/apache2-mod_ssl /usr/lib/ssl/apache2-mod_ssl/gentestcrt.sh /usr/lib/libapr-0.la /usr/lib/libapr-0.so -> libapr-0.so.0.9.5 /usr/lib/libaprutil-0.so.0 -> libaprutil-0.so.0.9.5 /usr/lib/libapr-0.so.0 -> libapr-0.so.0.9.5 /usr/lib/libaprutil-0.la /usr/lib/libaprutil-0.so -> libaprutil-0.so.0.9.5 /usr/lib/libapr-0.so.0.9.5 /usr/lib/libapr-0.a /usr/lib/aprutil.exp /usr/lib/apache2-extramodules /usr/lib/apache2-extramodules/mod_ssl.so /usr/lib/apache2-extramodules/mod_auth_ldap.so /usr/lib/apache2-extramodules/mod_ldap.so /usr/lib/libaprutil-0.so.0.9.5 /usr/lib/apache2 /usr/lib/apache2/lib -> /usr/lib /usr/lib/apache2/conf -> /etc/apache2/conf /usr/lib/apache2/logs -> /var/log/apache2 /usr/lib/apache2/build /usr/lib/apache2/build/apr_rules.mk /usr/lib/apache2/build/envvars-std /usr/lib/apache2/build/libtool /usr/lib/apache2/build/config_vars.mk /usr/lib/apache2/build/envvars /usr/lib/apache2/build/special.mk /usr/lib/apache2/build/rules.mk /usr/lib/apache2/build/program.mk /usr/lib/apache2/build/instdso.sh /usr/lib/apache2/build/ltlib.mk /usr/lib/apache2/build/config.nice /usr/lib/apache2/build/library.mk /usr/lib/apache2/modules /usr/lib/apache2/modules/mod_file_cache.so (...) /usr/lib/apache2/modules/httpd.exp (...) /usr/lib/apache2/extramodules -> /usr/lib/apache2-extramodules /usr/lib/libaprutil-0.a /usr/lib/apr.exp /usr/sbin /usr/sbin/ab2 /usr/sbin/apxs2 /usr/sbin/htdbm /usr/sbin/logresolve2 /usr/sbin/logresolve2.pl /usr/sbin/apache2ctl /usr/sbin/htpasswd2 /usr/sbin/suexec2 /usr/sbin/apache2logserverstatus /usr/sbin/list_hooks2.pl /usr/sbin/split-logfile2 /usr/sbin/ab2-ssl /usr/sbin/apache2splitlogfile /usr/sbin/dbmmanage2 /usr/sbin/rotatelogs2 /usr/sbin/checkgid2 /usr/sbin/htdigest2 /usr/sbin/apache2 /usr/sbin/log_server_status /usr/share /usr/share/doc /usr/share/doc/apache-2.0.52 (...) /usr/share/man (...) /usr/include/apache2 /usr/include/apache2/apr_general.h /usr/include/apache2/apr_support.h (...) /usr/include/apache2/httpd.h (...) /var/www/localhost/htdocs/manual -> /usr/share/doc/apache-2.0.52/manual From ed at TOPOZONE.COM Tue Oct 12 09:35:52 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 12 Oct 2004 12:35:52 -0400 Subject: newbie needs help correcting distorted map In-Reply-To: <416C12FD.5090607@sci.fi> Message-ID: Mike - It sounds like nothing's wrong at all, except your choice of output projection. The "geographic" projection has MANY limitations, including the fact that it badly distorts areas far from the Equator. But all projections have strong points and weak points - that's why there are several to choose from. You should try to do some research on what a good output projection would be. If you're particularly interested in northern Europe, then look for the projections that are popular in those countries. You can then change the MAP-level PROJECTION, UNITS, and EXTENT to reflect the *output* projection you want, while leaving the LAYER definitions alone, since those do accurately describe the *input* projection of your source data. - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: Mike Jackson To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tue, 12 Oct 2004 13:23:09 -0400 Subject: [UMN_MAPSERVER-USERS] newbie needs help correcting distorted map > Hi All, > I've just completed the tutorial, and tried to hack together my first > maps, but they seem to be distorted, especially the northern countries. > I tried the epsg 4326, and many others, just to experiment, but none of > them really had much effect on the output. I'm using the countries.shp > from freegis world data. > > Here is my .map file: > > MAP > IMAGETYPE PNG > EXTENT -179.999900 -89.999900 179.999900 83.627357 > SIZE 1390 900 # fits my browser nicely > SHAPEPATH "geodata" > IMAGECOLOR 0 0 128 # navy blue > PROJECTION > "init=epsg:4326" > END > > LAYER > NAME countries_interior > DATA countries > STATUS DEFAULT > TYPE POLYGON > CLASS > COLOR 82 82 82 # gray32 > END > PROJECTION > "init=epsg:4326" > END > END > > LAYER > NAME countries > DATA countries > STATUS DEFAULT > TYPE LINE > CLASS > COLOR 255 255 0 # yellow > END > PROJECTION > "init=epsg:4326" > END > END > END > > > > Here is the head output from ogrinfo -al: > > INFO: Open of `countries.shp' > using driver `ESRI Shapefile' successful. > > Layer name: countries > Geometry: Polygon > Feature Count: 27320 > Extent: (-179.999900, -89.999900) - (179.999900, 83.627357) > Layer SRS WKT: > GEOGCS["wgs84", > DATUM["unknown", > SPHEROID["wgs84",6378137,298.257223563]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]] > cat: Integer (11.0) > na2: String (80.0) > > > Any ideas what I am doing wrong, and better yet how to correct it? > > Thanks! > Mike > From Godwinl at AGR.GC.CA Tue Oct 12 10:39:06 2004 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Tue, 12 Oct 2004 13:39:06 -0400 Subject: [geos-devel] GEOS and Mapserver - thanks Message-ID: Thanks for all the responses! Now I have to sift through the new info and see if I can get it all to work. :-) Liz Godwin -----Original Message----- From: geos-devel-bounces at geos.refractions.net [mailto:geos-devel-bounces at geos.refractions.net] On Behalf Of Godwin, Elizabeth Sent: October 7, 2004 1:29 PM To: mapserver-users at lists.umn.edu; geos-devel at geos.refractions.net Cc: Geng, Xiaoyuan; Debbie Pagurek Subject: [geos-devel] GEOS and Mapserver I've cross-posted this to various lists, so I'm sorry to those who are getting duplicates. I'd like to beef up my Mapserver applications with some geoprocessing functionality - buffers at present, other functions will follow. For now I am playing with PostGIS and having great sucess, IF my features are all stored in the database. What I'd like to be able to do though, is take a feature from WMS getFeatureInfo or WFS and be able to buffer that. As a test of this, I took the GML from a getFeatureInfo request and parsed it manually to be a WKT string. Then used PostGIS to run the buffer. Apart from slight precision differences, it appeared to be close to what PostGIS would have done with it's own feature (the WMS request was done against the same feature through MapServer). Now that I confirmed this is all possible, what I am missing is that I'd like to be able to a.. do the conversion from GML to WKT with some script/library b.. do this with a GML stream c.. ultimately do this without PostGIS database dependancy. I figure that GEOS can do the geometry format conversions, is this right? Has anyone written a library for linux/windows that will let me talk to it with PHP? I'm prodding these lists in hopes of finding out what else is going on out there in this area. It would be fabulous if this was all built into Mapserver, but from what I can tell, it's just a thought right now. Thanks!! Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at DMSOLUTIONS.CA Tue Oct 12 10:39:31 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 12 Oct 2004 13:39:31 -0400 Subject: Mapscript + PNG: filled symbol has only a partly filled output In-Reply-To: <416B9CA2.7050008@ilmenau.baw.de> Message-ID: Norbert Thieme wrote: > > thanks for the response. I think I found the problem. I just looked in > the changelog from PHP and found that there seem to be a bug in PHP: > > "Bug #27995 imagefilltoborder fails to fill a polygon" --> > http://bugs.php.net/bug.php?id=27995 > > This bug seem to be limited to version 4.3.6. I get the newer version > and now it work. > This PHP bug would explain the partially filled circles, but you should still avoid using the PHP bundled GD together with php_mapscript.so: you should compile your PHP using the system GD as well. The reason is that php_mapscript.so is compiled with the system GD. If your PHP is compiled with its own bundled GD then you end up with two slightly different copies of the same library with the same conflicting function and data structure names. Depending on execution context, functions from one of from the other can be used, which can lead to unpredictable behaviors or crashes. The problem you ran into here was a good demonstration of that: php_mapscript (compiled with system GD) ended up drawing its symbols using a function from the PHP bundled GD. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Tue Oct 12 11:25:00 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 12 Oct 2004 14:25:00 -0400 Subject: building Mapserver on Gentoo: with-proj doesn't see files In-Reply-To: Message-ID: Jeff Kowalczyk wrote: > > I need information on the expectation of the with-proj argument: > > ./configure --with-proj=/usr/lib > configure: checking whether we should include PROJ.4 support...... > configure: error: "Could not find projects.h or libproj.a/libproj.so in > /usr/lib." > > Same result for /usr/bin, /usr/share/proj, etc. Its almost like the make > file doesn't see any of those files, but they are present. Any > suggestions? > You should use "--with-proj=/usr". Just "--with-proj" would do as well since your proj appears to be installed in the default system directories and MapServer's configure will look there by default. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Tue Oct 12 11:33:09 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 12 Oct 2004 14:33:09 -0400 Subject: building Mapserver on Gentoo: with-httpd In-Reply-To: Message-ID: Jeff Kowalczyk wrote: > I'm trying to build mapserver on Gentoo linux, in preparation to attempt > an ebuild installation package for it. I have net-www/apache-2.0.52 > installed. > > I need information on the expectation of the with-httpd argument: > > On Gentoo linux, and perhaps with httpd-2.x in general, there doesn't seem > to be an 'httpd' program etc. What is that argument looking for? With the > apr or axps options work instead (configure help says disabled)? Thanks. > > Here is the (abbreviated) Gentoo file manifest for an installed > apache-2.0.52: > Just omit it. The reason why --with-httpd was added was due to a bug in Apache2 that was fixed in Apache 2.0.49. In your case you have 2.0.52 so you shouldn't need it. For the benefits of the list archive, the --with-httpd argument expects the path to the httpd executable. I'm guessing that on Gentoo it seems to be /usr/sbin/apache2, so if you needed it then the argument would have been --with-httpd=/usr/sbin/apache2. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Tue Oct 12 13:03:57 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 12 Oct 2004 16:03:57 -0400 Subject: Hebrew Characters Support In-Reply-To: <001b01c4b03c$fe413870$2e01a8c0@DannyS> Message-ID: Danny Stopel (Anywhere Ltd) wrote: > Hello again Daniel! > > Sorry to disturb you, but I succeeded to download binaries of MS4.3 > (from http://www.maptools.org/dl/) > I also succeeded to display Hebrew, but backwards :( > Hebrew is a right to left language. I've tried all possible encodings > from > http://www.gnu.org/software/libiconv/ > but none of them worked right. The only thing I need is some property of > label to reverse the string before displaying it. Is such thing exists > in MS? > Danny, I'm not aware of any way to automatically reverse the strings in MapServer... I think it's something that will need to be worked on, I have entered a bug so that we don't forget: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=956 I'm hoping that iconv would have some flags that MapServer could use to decide if it needs to reverse the strings or not for a given encoding and we could solve the problem this way... that's just a guess though, I haven't looked into this yet. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From ed at TOPOZONE.COM Tue Oct 12 14:08:05 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 12 Oct 2004 17:08:05 -0400 Subject: newbie needs help correcting distorted map In-Reply-To: <416C590E.5050808@sci.fi> Message-ID: Mike - Because MapServer supports projections defined parametrically (i.e. by specifying the family of projection and its parameters), it - practically speaking - supports any projection you want. The European Petroleum Survey Group (EPSG) maintains a database of projections with a unique integer ID associated with each (the "EPSG code") and several products (including MapServer) support this "shorthand" way of describing projections. "EPSG:4326" is EPSG code 4326, which is the "decimal degrees, WGS84 datum" projection. If YOU don't know what projection you want, it's hard for any of us to know. It sounds like you might be best served by just living with the "geographic" projection you're using for a while, until you better understand what you want. Read the MapServer documentation to learn more about extents. Normally, a MapServer request will include the extents (in the coordinates of the output map projection). Finally, please ALWAYS reply to the group. This allows others to participate in the discussion (the first person to answer your first question may not know the answers to all your questions), allows others to learn from the information so the question doesn't need to be asked again, puts the answers in the archives, and prevents the first person to reply from feeling like they've acquired a personal lifetime support commitment just because they answered one question . - Ed ----- Original Message ----- From: Mike Jackson To: Ed McNierney Sent: Tue, 12 Oct 2004 18:22:06 -0400 Subject: Re: [UMN_MAPSERVER-USERS] newbie needs help correcting distorted map > Ed McNierney wrote: > > >Mike - > > > >It sounds like nothing's wrong at all, except your choice of output projection. > The "geographic" projection has MANY limitations, including the fact that it > badly distorts areas far from the Equator. But all projections have strong > points and weak points - that's why there are several to choose from. > > > > > > > How do I tell which projection mapserver is using? Where is the list of > supported projections? > > >You should try to do some research on what a good output projection would be. > If you're particularly interested in northern Europe, then look for the > projections that are popular in those countries. You can then change the > MAP-level PROJECTION, UNITS, and EXTENT to reflect the *output* projection you > want, while leaving the LAYER definitions alone, since those do accurately > describe the *input* projection of your source data. > > > > > > I researched for a while and came up empty. Perhaps I don't know the > keywords to search for. > > If a shapefile mentions an extent, then how can I know how to determine > an arbitrary extent that I would like to see? For example, what would > the extent be if I wanted to view Great Britain? > > Thanks, > Mike > > From jb at NUCOMP.COM Tue Oct 12 14:17:37 2004 From: jb at NUCOMP.COM (John Bolster) Date: Tue, 12 Oct 2004 17:17:37 -0400 Subject: Map image size Message-ID: Dear Steve, I was looking at your Tiger Data Browser and I noticed that for roughly the same image size, with roughly the same features drawn, your map image is somewhere in the region of 12K whereas mine is nearly 70K. Any ideas how that could be? Here are the urls I used to compare: Yours: http://imaptools.com/tiger/?PREVIOUS_MODE=1&txtZoomFactor=2&ROSA_CMD=ZOOM_IN &PrevStateKey=BBOX%3D-83.1391875%2C27.10938125%2C-82.137234375%2C28.11094375 %7CSRS%3Dproj%3Dlatlong%7CMAPSIZE%3D500%2C500%7CLAYERS%3D0%2C1%2C2%2C3%2C4%2 C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C15%2C16%2C17%2C18%2C19%2C20%2C21%2C22%2C 23%2C24%2C25%2C26%2C27%2C28%2C29%2C30&NotFirstLoad=1&RosaMode=0&INPUT_TYPE=& INPUT_COORD=263%2C302&QueryString=&mainmap.x=239&mainmap.y=242 Mine: http://www.sunnydaysmarketing.com/cgi-bin/mapserv?map=sdm.map&mapext=-82.656 573+27.359223+-82.656573+27.859223&mode=map&map_projection=proj=sinu,lon_0=- 82.656573&layers=counties+places+statelines+hwy+native+water+misc Thanks for any hints you might have on this. John Bolster From mj at SCI.FI Tue Oct 12 16:19:50 2004 From: mj at SCI.FI (Mike Jackson) Date: Wed, 13 Oct 2004 02:19:50 +0300 Subject: newbie needs help correcting distorted map In-Reply-To: <20041012170805.c1e3dd48@strabo11> Message-ID: Ed McNierney wrote: >Read the MapServer documentation to learn more about extents. Normally, a MapServer request will include the extents (in the coordinates of the output map projection). > > > Ok, thanks. I'll try to dig into it a bit more. >Finally, please ALWAYS reply to the group. This allows others to participate in the discussion (the first person to answer your first question may not know the answers to all your questions), allows others to learn from the information so the question doesn't need to be asked again, puts the answers in the archives, and prevents the first person to reply from feeling like they've acquired a personal lifetime support commitment just because they answered one question . > > Hehe. Sorry about that. Making a personal reply to you was not my intention; I didn't even realize that I had done it until reading your note. Why isn't the list address in the Reply-To field? I am used to mailing lists where you click reply, and it goes to the list, e.g. the mailing list manager sets Reply-To properly. (This coming from a person who formerly managed over 500 mailing lists with ezmlm). Thanks, -- Mike From Dave at DBWILLIAMS.COM Tue Oct 12 16:32:15 2004 From: Dave at DBWILLIAMS.COM (Dave Williams) Date: Tue, 12 Oct 2004 17:32:15 -0600 Subject: State Plane Virginia South Projection Question Message-ID: Hello Group. Is there a known and available resource that explains the specifics for applying US State Plane projections to the MapServer .map file? I have consulted the proj 4 documentation as well as any examples I can find on the web and have not had too much luck. Any help, examples or insight is greatly appreciated. Thanks! -- Dave B. Williams www.dbwilliams.com From nacional at CBS.UMN.EDU Tue Oct 12 15:13:31 2004 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Tue, 12 Oct 2004 17:13:31 -0500 Subject: building Mapserver on Gentoo: with-httpd In-Reply-To: Message-ID: Hi, Good to hear someone is putting together a MapServer ebuild for Gentoo. In Gentoo, the Apache httpd daemon is called apache (for versions 1.3.x) or apache2 (for versions 2.0.x). So, the argument would be "--with- httpd=/usr/sbin/apache2" Good luck! -Perry N. On Tue, 2004-10-12 at 10:35 -0500, Jeff Kowalczyk wrote: > I'm trying to build mapserver on Gentoo linux, in preparation to attempt > an ebuild installation package for it. I have net-www/apache-2.0.52 > installed. > > I need information on the expectation of the with-httpd argument: > > On Gentoo linux, and perhaps with httpd-2.x in general, there doesn't seem > to be an 'httpd' program etc. What is that argument looking for? With the > apr or axps options work instead (configure help says disabled)? Thanks. > > Here is the (abbreviated) Gentoo file manifest for an installed > apache-2.0.52: > > # qpkg -l apache | more > net-www/apache-2.0.52 * > CONTENTS: > /etc > /etc/conf.d > /etc/conf.d/apache2 > /etc/init.d > /etc/init.d/apache2 > /etc/apache2 > /etc/apache2/conf > /etc/apache2/conf/magic > /etc/apache2/conf/modules.d > /etc/apache2/conf/modules.d/40_mod_ssl.conf > /etc/apache2/conf/modules.d/00_apache_manual.conf > /etc/apache2/conf/modules.d/45_mod_dav.conf > /etc/apache2/conf/modules.d/46_mod_ldap.conf > /etc/apache2/conf/modules.d/41_mod_ssl.default-vhost.conf > /etc/apache2/conf/commonapache2.conf > /etc/apache2/conf/vhosts > /etc/apache2/conf/vhosts/vhosts.conf > /etc/apache2/conf/vhosts/virtual-homepages.conf > /etc/apache2/conf/vhosts/dynamic-vhosts.conf > /etc/apache2/conf/apache2.conf > /etc/apache2/conf/mime.types > /etc/apache2/apache2-builtin-mods > /var > /var/www > /var/www/localhost > /var/www/localhost/error > /var/www/localhost/error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var (...) > /var/www/localhost/error/HTTP_NOT_FOUND.html.var /var/www/localhost/icons > /var/www/localhost/icons/generic.sec.gif (...) > /var/www/localhost/icons/c.gif > /var/www/localhost/htdocs > /var/www/localhost/htdocs/index.html.var > /var/www/localhost/htdocs/index.html.he.iso8859-8 > /var/www/localhost/htdocs/index.html.lb.utf8 > /var/www/localhost/htdocs/index.html.zh-tw.big5 > /var/www/localhost/htdocs/apache_pb.gif > /var/www/localhost/htdocs/apache_pb.png (...) /var/www/localhost/cgi-bin > /var/www/localhost/cgi-bin/test-cgi > /var/www/localhost/cgi-bin/printenv > /usr > /usr/bin > /usr/bin/apu-config > /usr/bin/apr-config > /usr/lib > /usr/lib/ssl > /usr/lib/ssl/apache2-mod_ssl > /usr/lib/ssl/apache2-mod_ssl/gentestcrt.sh /usr/lib/libapr-0.la > /usr/lib/libapr-0.so -> libapr-0.so.0.9.5 /usr/lib/libaprutil-0.so.0 -> > libaprutil-0.so.0.9.5 /usr/lib/libapr-0.so.0 -> libapr-0.so.0.9.5 > /usr/lib/libaprutil-0.la > /usr/lib/libaprutil-0.so -> libaprutil-0.so.0.9.5 > /usr/lib/libapr-0.so.0.9.5 > /usr/lib/libapr-0.a > /usr/lib/aprutil.exp > /usr/lib/apache2-extramodules > /usr/lib/apache2-extramodules/mod_ssl.so > /usr/lib/apache2-extramodules/mod_auth_ldap.so > /usr/lib/apache2-extramodules/mod_ldap.so /usr/lib/libaprutil-0.so.0.9.5 > /usr/lib/apache2 > /usr/lib/apache2/lib -> /usr/lib > /usr/lib/apache2/conf -> /etc/apache2/conf /usr/lib/apache2/logs -> > /var/log/apache2 /usr/lib/apache2/build > /usr/lib/apache2/build/apr_rules.mk > /usr/lib/apache2/build/envvars-std > /usr/lib/apache2/build/libtool > /usr/lib/apache2/build/config_vars.mk /usr/lib/apache2/build/envvars > /usr/lib/apache2/build/special.mk > /usr/lib/apache2/build/rules.mk > /usr/lib/apache2/build/program.mk > /usr/lib/apache2/build/instdso.sh > /usr/lib/apache2/build/ltlib.mk > /usr/lib/apache2/build/config.nice > /usr/lib/apache2/build/library.mk > /usr/lib/apache2/modules > /usr/lib/apache2/modules/mod_file_cache.so (...) > /usr/lib/apache2/modules/httpd.exp (...) /usr/lib/apache2/extramodules -> > /usr/lib/apache2-extramodules /usr/lib/libaprutil-0.a > /usr/lib/apr.exp > /usr/sbin > /usr/sbin/ab2 > /usr/sbin/apxs2 > /usr/sbin/htdbm > /usr/sbin/logresolve2 > /usr/sbin/logresolve2.pl > /usr/sbin/apache2ctl > /usr/sbin/htpasswd2 > /usr/sbin/suexec2 > /usr/sbin/apache2logserverstatus > /usr/sbin/list_hooks2.pl > /usr/sbin/split-logfile2 > /usr/sbin/ab2-ssl > /usr/sbin/apache2splitlogfile > /usr/sbin/dbmmanage2 > /usr/sbin/rotatelogs2 > /usr/sbin/checkgid2 > /usr/sbin/htdigest2 > /usr/sbin/apache2 > /usr/sbin/log_server_status > /usr/share > /usr/share/doc > /usr/share/doc/apache-2.0.52 (...) > /usr/share/man (...) > /usr/include/apache2 > /usr/include/apache2/apr_general.h > /usr/include/apache2/apr_support.h (...) /usr/include/apache2/httpd.h > (...) > /var/www/localhost/htdocs/manual -> /usr/share/doc/apache-2.0.52/manual -- Pericles S. Nacionales From kurtward at YAHOO.COM Tue Oct 12 19:01:55 2004 From: kurtward at YAHOO.COM (Kurt Ward) Date: Tue, 12 Oct 2004 19:01:55 -0700 Subject: State Plane Virginia South Projection Question In-Reply-To: <416C697F.20604@dbwilliams.com> Message-ID: Hi, new to the list and to MapServer, GIS, et. al.. I am NOT new however to programming (and CAD if that helps?). I have a project to develop that will display a relatively small map (say Lake Michigan or comparable) and need the ability to plot a path (line segments) based on GPS coordinates over a period of time (2-3 days with a new line segment (or point) every hour). Based on what I have read so far, it seems MapServer would be a good choice. Correct? If so, what recommendations can you provide to help me over the learning curve? I am planning on using the PHP Mapscript interface and possibly Rosa and/or the SWF output and Flash. Many thanks in advance. Kurt From ed at TOPOZONE.COM Tue Oct 12 19:20:08 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 12 Oct 2004 22:20:08 -0400 Subject: Not at all about State Plane Virginia South Projection Question In-Reply-To: <416C8C93.7050305@yahoo.com> Message-ID: Kurt - Welcome to the list! And feel free to start a new topic if you're not actually interested in the State Plane Virginia South Projection . Have you downloaded the MapServer tutorial and read the documentation on the Web site? They're two great places to start. - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: Kurt Ward To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tue, 12 Oct 2004 22:01:55 -0400 Subject: Re: [UMN_MAPSERVER-USERS] State Plane Virginia South Projection Question > Hi, new to the list and to MapServer, GIS, et. al.. I am NOT new > however to programming (and CAD if that helps?). > I have a project to develop that will display a relatively small map > (say Lake Michigan or comparable) and need the ability > to plot a path (line segments) based on GPS coordinates over a period of > time (2-3 days with a new line segment (or point) every hour). > Based on what I have read so far, it seems MapServer would be a good > choice. Correct? If so, what recommendations can you provide > to help me over the learning curve? I am planning on using the PHP > Mapscript interface and possibly Rosa and/or the SWF output and Flash. > > Many thanks in advance. > Kurt > From 39507 at MAIL.MUNI.CZ Tue Oct 12 19:26:36 2004 From: 39507 at MAIL.MUNI.CZ (Michal =?ISO-8859-2?Q?Krupi=E8ka?=) Date: Wed, 13 Oct 2004 04:26:36 +0200 Subject: compiling 4.2.3 on Mandrake Message-ID: Hi all I am not able to compile mapserver_4.2.3, can anyone help me, please? My operating system is Mandrake 9.2. Thanks a lot, Mike. This the first step: $ . configure --without-tiff --with-gdal=/usr/bin/gdal-config --with-httpd=/usr/sbin/httpd2 checking for gcc... (cached) gcc checking for C compiler default output... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... (cached) o checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ANSI C... (cached) none needed checking whether we are using the GNU C++ compiler... (cached) yes checking whether g++ accepts -g... (cached) yes checking for ranlib... (cached) ranlib checking for flex... (cached) flex checking lex output file root... (cached) lex.yy checking whether yytext is a pointer... (cached) yes checking for bison... (cached) bison -y checking if compiler supports -R... (cached) no checking for exp in -lm... (cached) yes checking for __gxx_personality_v0 in -lstdc++... (cached) yes checking how to run the C preprocessor... gcc -E checking for egrep... (cached) grep -E checking for ANSI C header files... (cached) yes checking for strcasecmp... (cached) yes checking for strncasecmp... (cached) yes checking for strdup... (cached) yes checking for strlcat... (cached) no bash: checking where FreeType 2.x is installed...... checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. bash: checking where Zlib is installed...... checking for zlibVersion in -lz... yes using libz from system libs. bash: checking where PNG is installed...... checking for png_init_io in -lpng... yes using libpng from system libs. bash: checking whether we should include JPEG support...... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. bash: checking where libiconv is installed...... checking for libiconv_open in -liconv... no libiconv library cannot be found, possibly needed for GD bash: checking for GD 2.0.12 or higher...... checking for gdImageSetAntiAliased in -lgd... yes using libgd 2.0.12 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs. bash: checking whether we should include PDF support...... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no libpdf not found... PDF support not included. bash: checking whether we should include EPPL7 support...... including EPPL7 support. bash: checking whether we should include PROJ.4 support...... PROJ.4 support not requested. bash: checking whether we should include thread safe support...... thread safe support disabled. bash: checking whether we should include ESRI SDE support...... ESRI SDE support not requested. bash: checking whether we should compile in MPATROL support...... MPATROL support not requested. bash: checking whether we should include OGR support...... OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes, user supplied gdal-config (/usr/bin/gdal-config) checking checking ms JPEG output... no we, have GDAL available. bash: checking whether we should include TIFF support...... disabled by --without-tiff checking if PostGIS support requested... no checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no bash: checking whether we should include WMS Server support...... OGC WMS Compatibility not enabled (PROJ.4 is required for WMS). bash: checking whether we should include WFS Server support...... OGC WFS Server support not requested. bash: checking whether we should include WMS Client Connections support...... OGC WMS Client Connections not enabled (PROJ.4 and libcurl required). bash: checking whether we should include WFS Client Connections support...... OGC WFS Client Connections not enabled (PROJ.4, libcurl and OGR required). bash: checking for curl-config... bash: checking HTTPD server (Apache) version... using user-supplied httpd (/usr/sbin/httpd2) /usr/sbin/httpd2 version is Apache-AdvancedExtranetServer/2.0.47 (2000047). Compiling with -DIGNORE_MISSING_DATA. bash: checking whether we should enable debug features...... bash: checking for PHP/MapScript module options...... PHP/MapScript module not configured. bash: creating ./config.status config.status: creating Makefile and the second: $ make gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maptemplate.c -o maptemplate.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapbits.c -o mapbits.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maphash.c -o maphash.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapshape.c -o mapshape.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapxbase.c -o mapxbase.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapparser.c -o mapparser.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maplexer.c -o maplexer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maptree.c -o maptree.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapsearch.c -o mapsearch.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapstring.c -o mapstring.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapsymbol.c -o mapsymbol.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapfile.c -o mapfile.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maplegend.c -o maplegend.o maplegend.c: In function `msDrawLegendIcon': maplegend.c:20: warning: implicit declaration of function `gdImageSetClip' maplegend.c:46: warning: implicit declaration of function `gdImageCopyResampled' gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maputil.c -o maputil.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapscale.c -o mapscale.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapquery.c -o mapquery.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maplabel.c -o maplabel.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maperror.c -o maperror.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapprimitive.c -o mapprimitive.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapproject.c -o mapproject.o mapproject.c: In function `msGetEPSGProj': mapproject.c:471: warning: return makes pointer from integer without a cast mapproject.c: At top level: mapproject.c:480: warning: `msProjFinder' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapraster.c -o mapraster.o mapraster.c: In function `msAddColorGD': mapraster.c:236: warning: implicit declaration of function `gdTrueColor' mapraster.c: At top level: mapraster.c:1073: warning: `drawERD' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapsde.c -o mapsde.o g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapogr.cpp -o mapogr.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mappostgis.c -o mappostgis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapmygis.c -o mapmygis.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maplayer.c -o maplayer.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapresample.c -o mapresample.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapwms.c -o mapwms.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapwmslayer.c -o mapwmslayer.o mapwmslayer.c:131: warning: `msSetWMSParamString' defined but not used mapwmslayer.c:154: warning: `msSetWMSParamInt' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include maporaclespatial.c -o maporaclespatial.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapgml.c -o mapgml.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapprojhack.c -o mapprojhack.o mapprojhack.c:71: warning: `ConvertProjUnitStringToMS' defined but not used gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapthread.c -o mapthread.o gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapdraw.c -o mapdraw.o mapdraw.c: In function `msDrawMap': mapdraw.c:107: warning: unused variable `lastconnectiontype' gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_GDAL -I/usr/include -I/usr/include mapgd.c -o mapgd.o mapgd.c: In function `msImageCreateGD': mapgd.c:85: warning: implicit declaration of function `gdImageCreateTrueColor' mapgd.c:85: warning: assignment makes pointer from integer without a cast mapgd.c:86: warning: implicit declaration of function `gdImageAlphaBlending' mapgd.c: In function `msImageInitGD': mapgd.c:131: warning: implicit declaration of function `gdTrueColorAlpha' mapgd.c:133: warning: implicit declaration of function `gdTrueColor' mapgd.c:137: error: structure has no member named `tpixels' mapgd.c: In function `createBrush': mapgd.c:307: warning: assignment makes pointer from integer without a cast mapgd.c: In function `ImageFilledPolygonAA': mapgd.c:381: warning: implicit declaration of function `gdImageSetAntiAliasedDontBlend' mapgd.c:382: error: `gdAntiAliased' undeclared (first use in this function) mapgd.c:382: error: (Each undeclared identifier is reported only once mapgd.c:382: error: for each function it appears in.) mapgd.c: In function `msDrawMarkerSymbolGD': mapgd.c:1073: warning: implicit declaration of function `gdImageCopyResampled' mapgd.c: In function `msDrawLineSymbolGD': mapgd.c:1299: warning: implicit declaration of function `gdImageSetAntiAliased' mapgd.c:1300: error: `gdAntiAliased' undeclared (first use in this function) mapgd.c: In function `msDrawShadeSymbolGD': mapgd.c:1362: error: `gdAntiAliased' undeclared (first use in this function) mapgd.c: In function `RenderCartoLine': mapgd.c:1687: error: `gdAntiAliased' undeclared (first use in this function) mapgd.c: In function `msDrawTextGD': mapgd.c:2157: error: structure has no member named `alphaBlendingFlag' mapgd.c: In function `msSaveImageGD': mapgd.c:2494: warning: implicit declaration of function `gdImageSaveAlpha' mapgd.c: In function `msFixedImageCopy': mapgd.c:2607: error: `gdAlphaOpaque' undeclared (first use in this function) mapgd.c: In function `msImageCopyMerge': mapgd.c:2639: warning: implicit declaration of function `gdTrueColorGetAlpha' mapgd.c:2642: error: `gdAlphaTransparent' undeclared (first use in this function) mapgd.c:2659: warning: implicit declaration of function `gdTrueColorGetRed' mapgd.c:2662: warning: implicit declaration of function `gdTrueColorGetGreen' mapgd.c:2665: warning: implicit declaration of function `gdTrueColorGetBlue' make: *** [mapgd.o] Error From ed at TOPOZONE.COM Tue Oct 12 19:30:07 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 12 Oct 2004 22:30:07 -0400 Subject: Map image size In-Reply-To: Message-ID: John - I'm not Steve, but I'm a friend of his - is that close enough ? The image I get from that URL is not 70K. Did you change the image format to GIF (possibly changing it from JPEG)? GIF and PNG are very good choices for "line art" images (not photographs or scanned maps) and JPEG is a better choice for imagery (scanned maps and photos). You will commonly see a 3x to 5x difference in file size if you use the "wrong" image type. - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: John Bolster To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tue, 12 Oct 2004 17:17:37 -0400 Subject: [UMN_MAPSERVER-USERS] Map image size > Dear Steve, > > I was looking at your Tiger Data Browser and I noticed that for roughly the > same image size, with roughly the same features drawn, your map image is > somewhere in the region of 12K whereas mine is nearly 70K. Any ideas how > that could be? Here are the urls I used to compare: > > Yours: > http://imaptools.com/tiger/?PREVIOUS_MODE=1&txtZoomFactor=2&ROSA_CMD=ZOOM_IN > &PrevStateKey=BBOX%3D-83.1391875%2C27.10938125%2C-82.137234375%2C28.11094375 > %7CSRS%3Dproj%3Dlatlong%7CMAPSIZE%3D500%2C500%7CLAYERS%3D0%2C1%2C2%2C3%2C4%2 > C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C15%2C16%2C17%2C18%2C19%2C20%2C21%2C22%2C > 23%2C24%2C25%2C26%2C27%2C28%2C29%2C30&NotFirstLoad=1&RosaMode=0&INPUT_TYPE=& > INPUT_COORD=263%2C302&QueryString=&mainmap.x=239&mainmap.y=242 > > Mine: > http://www.sunnydaysmarketing.com/cgi-bin/mapserv?map=sdm.map&mapext=-82.656 > 573+27.359223+-82.656573+27.859223&mode=map&map_projection=proj=sinu,lon_0=- > 82.656573&layers=counties+places+statelines+hwy+native+water+misc > > Thanks for any hints you might have on this. > > John Bolster > From ed at TOPOZONE.COM Tue Oct 12 19:33:38 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 12 Oct 2004 22:33:38 -0400 Subject: newbie needs help correcting distorted map In-Reply-To: <416C6696.60400@sci.fi> Message-ID: Mike - As far as mail servers go, some do and some don't - you may have experience with 500 lists, but with one mailer, which presumably handled them all the same way. I don't expect consistency from the lists I'm on (and I'm not disappointed) so I just keep an eye out for what's happening. Setting the reply-to to be the group makes it hard to reply to only one person (which is, nonetheless, sometimes appropriate) whereas requiring "reply to all" makes it easier to go either way - but at the cost of making the user pay a bit more attention! - Ed ----- Original Message ----- From: Mike Jackson To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tue, 12 Oct 2004 19:19:50 -0400 Subject: Re: [UMN_MAPSERVER-USERS] newbie needs help correcting distorted map > Ed McNierney wrote: > > >Read the MapServer documentation to learn more about extents. Normally, a > MapServer request will include the extents (in the coordinates of the output map > projection). > > > > > > > Ok, thanks. I'll try to dig into it a bit more. > > >Finally, please ALWAYS reply to the group. This allows others to participate > in the discussion (the first person to answer your first question may not know > the answers to all your questions), allows others to learn from the information > so the question doesn't need to be asked again, puts the answers in the > archives, and prevents the first person to reply from feeling like they've > acquired a personal lifetime support commitment just because they answered one > question . > > > > > > Hehe. Sorry about that. Making a personal reply to you was not my > intention; I didn't even realize that I had done it until reading your > note. Why isn't the list address in the Reply-To field? I am used to > mailing lists where you click reply, and it goes to the list, e.g. the > mailing list manager sets Reply-To properly. (This coming from a person > who formerly managed over 500 mailing lists with ezmlm). > > Thanks, > -- > Mike > From lorna_grimm at YAHOO.COM.AU Tue Oct 12 20:32:46 2004 From: lorna_grimm at YAHOO.COM.AU (Lorna) Date: Tue, 12 Oct 2004 22:32:46 -0500 Subject: Win32 binaries with SDE, anyone ? Message-ID: Hi I'm hoping someone can offer a copy of their latest win32 Mapserv binary compiled with SDE support. I have SDE 8.3 client software installed, I just dont have the tools to compile Mapserver under windows. I want to use Mapserver to server spatial data, instead of ARCIMS but if I cant get MapServer with SDE enabled I'll have to scrap this idea, which is a real shame ! Thanks, Lorna From tylermitchell at SHAW.CA Tue Oct 12 23:40:34 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 12 Oct 2004 23:40:34 -0700 Subject: Mapserver Debian In-Reply-To: <9910534257.20041013073000@gmx.de> Message-ID: Thanks a lot for the link Wolfgang. Tyler > Hello Tyler, > > I found a MapServer Debian (Woody) package at: > > deb http://agrogeomatic.educagri.fr/debian/ stable main > > There you can get cgi-mapserver and php-mapscript (4.2.2.1). > > > Regards, > > Wolfgang > > > Date: Mon, 11 Oct 2004 20:07:30 -0700 > > From: Tyler Mitchell > > Subject: Debian package ?? > > > > Anyone know of a debian package for MapServer? > > > > Tyler > > Wolfgang From newland at VT.EDU Wed Oct 13 01:19:16 2004 From: newland at VT.EDU (Newland Agbenowosi) Date: Wed, 13 Oct 2004 01:19:16 -0700 Subject: State Plane Virginia South Projection Question In-Reply-To: <416C697F.20604@dbwilliams.com> Message-ID: You can use one of the following for state plane south the necessary parameters can be found the epsg file that comes with the installation of proj4. see an example attached file. PROJECTION "proj=lcc" "lat_1=36.333333333" "lat_2=-78.500000000" "lat_0=37.966666667" "lon_0=36.766666667" "x_0=3500000.000" "y_0=1000000.000" "ellps=GRS80" "datum=NAD83" "units=m" END or PROJECTION "init=epsg:32147" END -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Dave Williams Sent: Tuesday, October 12, 2004 4:32 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] State Plane Virginia South Projection Question Hello Group. Is there a known and available resource that explains the specifics for applying US State Plane projections to the MapServer .map file? I have consulted the proj 4 documentation as well as any examples I can find on the web and have not had too much luck. Any help, examples or insight is greatly appreciated. Thanks! -- Dave B. Williams www.dbwilliams.com -------------- next part -------------- A non-text attachment was scrubbed... Name: epsg Type: application/octet-stream Size: 194742 bytes Desc: not available URL: From unicoletti at PROMETEO.IT Wed Oct 13 04:23:26 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 13 Oct 2004 13:23:26 +0200 Subject: building Mapserver on Gentoo: with-httpd In-Reply-To: <416C2365.4080807@dmsolutions.ca> Message-ID: I am running Gentoo linux too and can confirm that the path to httpd for apache2 is: /usr/sbin/apache2 (in path only for root) Regards, Umberto On Tue, 2004-10-12 at 20:33, Daniel Morissette wrote: > Jeff Kowalczyk wrote: > > I'm trying to build mapserver on Gentoo linux, in preparation to attempt > > an ebuild installation package for it. I have net-www/apache-2.0.52 > > installed. > > > > I need information on the expectation of the with-httpd argument: > > > > On Gentoo linux, and perhaps with httpd-2.x in general, there doesn't seem > > to be an 'httpd' program etc. What is that argument looking for? With the > > apr or axps options work instead (configure help says disabled)? Thanks. > > > > Here is the (abbreviated) Gentoo file manifest for an installed > > apache-2.0.52: > > > > Just omit it. The reason why --with-httpd was added was due to a bug in > Apache2 that was fixed in Apache 2.0.49. In your case you have 2.0.52 so > you shouldn't need it. > > For the benefits of the list archive, the --with-httpd argument expects > the path to the httpd executable. I'm guessing that on Gentoo it seems > to be /usr/sbin/apache2, so if you needed it then the argument would > have been --with-httpd=/usr/sbin/apache2. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ From jb at NUCOMP.COM Wed Oct 13 04:54:32 2004 From: jb at NUCOMP.COM (John Bolster) Date: Wed, 13 Oct 2004 07:54:32 -0400 Subject: FW: [UMN_MAPSERVER-USERS] Map image size Message-ID: -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Tuesday, October 12, 2004 6:33 PM To: John Bolster Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Map image size John, I am not sure, but here are the differences: Mine: 500X500, PNG8, 32.4 KB Yours: 500X350, GIF8, 65.0 KB I'm guessing it has something to do with probably a combination of various things: 1) the compression algorithm 2) the color lookup table sizes 3) your have larger text and a shadow text and these and possibly you are using truetype antialias will cause a significant area of your map to not compress well. You can very the effect of 3) by commenting out your annotation in the mapfile and see what happens. For 1) switch the image type to PNG8 and see what happens. Beyond that, I would defer to some of the other image experts on the list. -Steve ps: forward this to the list, I have been blocked from posting, temporarily I hope. John Bolster wrote: > Dear Steve, > > I was looking at your Tiger Data Browser and I noticed that for roughly the > same image size, with roughly the same features drawn, your map image is > somewhere in the region of 12K whereas mine is nearly 70K. Any ideas how > that could be? Here are the urls I used to compare: > > Yours: > http://imaptools.com/tiger/?PREVIOUS_MODE=1&txtZoomFactor=2&ROSA_CMD=ZOOM_IN > &PrevStateKey=BBOX%3D-83.1391875%2C27.10938125%2C-82.137234375%2C28.11094375 > %7CSRS%3Dproj%3Dlatlong%7CMAPSIZE%3D500%2C500%7CLAYERS%3D0%2C1%2C2%2C3%2C4%2 > C5%2C6%2C7%2C8%2C9%2C10%2C11%2C12%2C15%2C16%2C17%2C18%2C19%2C20%2C21%2C22%2C > 23%2C24%2C25%2C26%2C27%2C28%2C29%2C30&NotFirstLoad=1&RosaMode=0&INPUT_TYPE=& > INPUT_COORD=263%2C302&QueryString=&mainmap.x=239&mainmap.y=242 > > Mine: > http://www.sunnydaysmarketing.com/cgi-bin/mapserv?map=sdm.map&mapext=-82.656 > 573+27.359223+-82.656573+27.859223&mode=map&map_projection=proj=sinu,lon_0=- > 82.656573&layers=counties+places+statelines+hwy+native+water+misc > > Thanks for any hints you might have on this. > > John Bolster > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Re_ [UMN_MAPSERVER-USERS] Map image size.txt URL: From pramsey at REFRACTIONS.NET Wed Oct 13 08:31:59 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 13 Oct 2004 08:31:59 -0700 Subject: Win32 binaries with SDE, anyone ? In-Reply-To: Message-ID: Lorna, We have some binaries but are currently debugging the new fcgi support and its interaction with the SDE support. If you are patient, you can have copies of our binaries when we have them working. Paul Lorna wrote: > Hi > > I'm hoping someone can offer a copy of their latest win32 Mapserv binary > compiled with SDE support. > > I have SDE 8.3 client software installed, I just dont have the tools to > compile Mapserver under windows. I want to use Mapserver to server spatial > data, instead of ARCIMS but if I cant get MapServer with SDE enabled I'll > have to scrap this idea, which is a real shame ! > > Thanks, Lorna From sobomsawin at KASSINI.COM Wed Oct 13 09:13:15 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 13 Oct 2004 12:13:15 -0400 Subject: [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? In-Reply-To: <416D4A6F.9030004@refractions.net> Message-ID: You are working on fcgi support in Mapserver? I'm very interested to test any feature which will improve performance of Mapserver since a have a road Postgis database of about 10Gb to display... Thanks to keep in touch! Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Paul Ramsey Envoy??: 13 octobre 2004 11:32 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? Lorna, We have some binaries but are currently debugging the new fcgi support and its interaction with the SDE support. If you are patient, you can have copies of our binaries when we have them working. Paul Lorna wrote: > Hi > > I'm hoping someone can offer a copy of their latest win32 Mapserv binary > compiled with SDE support. > > I have SDE 8.3 client software installed, I just dont have the tools to > compile Mapserver under windows. I want to use Mapserver to server spatial > data, instead of ARCIMS but if I cant get MapServer with SDE enabled I'll > have to scrap this idea, which is a real shame ! > > Thanks, Lorna --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 From jerl.simpso at GMAIL.COM Wed Oct 13 09:34:33 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Wed, 13 Oct 2004 11:34:33 -0500 Subject: WMS Client problem Message-ID: Hello, I have asked this question here before, but never found a good solution to the problem. So sorry for the repeat. I have a layer setup like: LAYER NAME "ENC WMS" TYPE RASTER STATUS DEFAULT CONNECTION "http:///enc/servlet/RMServlet?" CONNECTIONTYPE WMS MAXSCALE 8000000 METADATA WMS_TITLE "USenc" "wms_srs" "EPSG:4326" "wms_name" "Electronic+Navigational+Charts:Fusion,Soundings:Fusion,Navigation+Aids:Fusion" "wms_server_version" "1.1.1" "wms_formatlist" "image/gif" "wms_format" "image/gif" END END sorry for any wrapping. The problem comes in with the wms_name, it has a ":" in it that seems to get translated to "%3A". My layer name is "Soundings:Fusion" for instance and the WMS server looks for the ":" and won't convert "%3A" back to the colon. So the layer name that ends up back at the server is "Soundings" rather than "Soundings:Fusion" my mapserv -v output is: MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE compiled with gdal version 1.2.1 Is there something I can do to get around this? Thanks, Jerl From steve.hall at MERCATORGEOSYSTEMS.CO.UK Wed Oct 13 07:11:46 2004 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Wed, 13 Oct 2004 15:11:46 +0100 Subject: Unicode support Message-ID: Hi all, Does anyone out there know what level of Unicode (UTF-8) support is present in Mapserver? I'm looking to start a project based in one of the Far Eastern countries (not decided which yet - possibly Thailand) and the map output will need to be localised (i.e labels in local font, unicode etc). I've proven some of the other parts of the project (Apache, PHP, Postgres, Oracle etc) but i'm not sure about Mapserver right now. If I have a number of unicode data sources (OGR MapInfo TAB, Oracle Spatial, PostGIS) is support present for all of them or am I likely to be struggling!? Are there any docs on the subject that i've missed? Many thanks, Steve H -------------- next part -------------- An HTML attachment was scrubbed... URL: From pramsey at REFRACTIONS.NET Wed Oct 13 09:39:31 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 13 Oct 2004 09:39:31 -0700 Subject: [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? In-Reply-To: <001101c4b13f$8bcb77c0$6402a8c0@jebediah> Message-ID: Skweda, FCGI support is already in Mapserver CVS HEAD, Frank Warmerdam did the implementation. You will not find that it makes more than 0.1second per invocation difference for your PostGIS data, PostGIS has a very low connection overhead. FCGI will only help performance for people with high loads (lots of incoming requests) not people with large data sets. If you have a huge PostGIS database, tuning at the PostgreSQL and operating system level will be more salutary than fcgi. Paul Skweda O'Bomsawin wrote: > You are working on fcgi support in Mapserver? I'm very interested to test > any feature which will improve performance of Mapserver since a have a road > Postgis database of about 10Gb to display... > > Thanks to keep in touch! > > Skweda O'Bomsawin > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Paul Ramsey > Envoy? : 13 octobre 2004 11:32 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? > > Lorna, > We have some binaries but are currently debugging the new fcgi support > and its interaction with the SDE support. If you are patient, you can > have copies of our binaries when we have them working. > Paul > > Lorna wrote: > > >>Hi >> >>I'm hoping someone can offer a copy of their latest win32 Mapserv binary >>compiled with SDE support. >> >>I have SDE 8.3 client software installed, I just dont have the tools to >>compile Mapserver under windows. I want to use Mapserver to server spatial >>data, instead of ARCIMS but if I cant get MapServer with SDE enabled I'll >>have to scrap this idea, which is a real shame ! >> >>Thanks, Lorna > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 > > From sobomsawin at KASSINI.COM Wed Oct 13 10:14:24 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 13 Oct 2004 13:14:24 -0400 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? In-Reply-To: <416D5A43.4060200@refractions.net> Message-ID: Thanks Paul, That?s what I thought... I already made all the tuning in Postgresql and I'm satisfied of the results (12 seconds with Mapserver and PostGIS compared to about 50 seconds in Mapinfo to display the same dataset), but my clients are very demanding... Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Paul Ramsey Envoy??: 13 octobre 2004 12:40 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? Skweda, FCGI support is already in Mapserver CVS HEAD, Frank Warmerdam did the implementation. You will not find that it makes more than 0.1second per invocation difference for your PostGIS data, PostGIS has a very low connection overhead. FCGI will only help performance for people with high loads (lots of incoming requests) not people with large data sets. If you have a huge PostGIS database, tuning at the PostgreSQL and operating system level will be more salutary than fcgi. Paul Skweda O'Bomsawin wrote: > You are working on fcgi support in Mapserver? I'm very interested to test > any feature which will improve performance of Mapserver since a have a road > Postgis database of about 10Gb to display... > > Thanks to keep in touch! > > Skweda O'Bomsawin > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Paul Ramsey > Envoy? : 13 octobre 2004 11:32 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? > > Lorna, > We have some binaries but are currently debugging the new fcgi support > and its interaction with the SDE support. If you are patient, you can > have copies of our binaries when we have them working. > Paul > > Lorna wrote: > > >>Hi >> >>I'm hoping someone can offer a copy of their latest win32 Mapserv binary >>compiled with SDE support. >> >>I have SDE 8.3 client software installed, I just dont have the tools to >>compile Mapserver under windows. I want to use Mapserver to server spatial >>data, instead of ARCIMS but if I cant get MapServer with SDE enabled I'll >>have to scrap this idea, which is a real shame ! >> >>Thanks, Lorna > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 > > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 From pramsey at REFRACTIONS.NET Wed Oct 13 10:27:21 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Wed, 13 Oct 2004 10:27:21 -0700 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? In-Reply-To: <001801c4b148$16d906e0$6402a8c0@jebediah> Message-ID: Incidentally, some notes for the list on performance for large data sets: 1 - For very large data sets, nothing will help you more that fast disk IO. SCSI disks, spinning as fast as possible, and an IO subsystem can can handle them, will be the most effective thing you can buy. 2 - After that, lots of memory will allow your operating system to cache important pieces of data (like indexes!) in memory, again speeding up your system. 3 - Tuning your database to take advantage of the memory, for PostgreSQL, check out http://www.varlena.com/varlena/GeneralBits/Tidbits/perf.html effective_cache_size is an oft-overlooked parameter, in addition to the popular shared_buffers parameter. 4 - CPU speed can help in the final render process, if you are rendering complex enough maps. 5 - Check your map file for performance bottlenecks. Are there times you are drawing 10000 high res features when 100 low res features would provide the same effect? (We are going to commit some patches for 4.4 that put layer timings into the DEBUG logs to make this optimization process easier.) Paul Skweda O'Bomsawin wrote: > Thanks Paul, > > That?s what I thought... I already made all the tuning in Postgresql and > I'm satisfied of the results (12 seconds with Mapserver and PostGIS compared > to about 50 seconds in Mapinfo to display the same dataset), but my clients > are very demanding... > > Skweda O'Bomsawin > > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Paul Ramsey > Envoy? : 13 octobre 2004 12:40 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Win32 binaries > with SDE, anyone ? > > Skweda, > FCGI support is already in Mapserver CVS HEAD, Frank Warmerdam did the > implementation. You will not find that it makes more than 0.1second per > invocation difference for your PostGIS data, PostGIS has a very low > connection overhead. FCGI will only help performance for people with > high loads (lots of incoming requests) not people with large data sets. > If you have a huge PostGIS database, tuning at the PostgreSQL and > operating system level will be more salutary than fcgi. > Paul > > Skweda O'Bomsawin wrote: > > >>You are working on fcgi support in Mapserver? I'm very interested to test >>any feature which will improve performance of Mapserver since a have a > > road > >>Postgis database of about 10Gb to display... >> >>Thanks to keep in touch! >> >>Skweda O'Bomsawin >> >>-----Message d'origine----- >>De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la >>part de Paul Ramsey >>Envoy? : 13 octobre 2004 11:32 >>? : MAPSERVER-USERS at LISTS.UMN.EDU >>Objet : Re: [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? >> >>Lorna, >>We have some binaries but are currently debugging the new fcgi support >>and its interaction with the SDE support. If you are patient, you can >>have copies of our binaries when we have them working. >>Paul >> >>Lorna wrote: >> >> >> >>>Hi >>> >>>I'm hoping someone can offer a copy of their latest win32 Mapserv binary >>>compiled with SDE support. >>> >>>I have SDE 8.3 client software installed, I just dont have the tools to >>>compile Mapserver under windows. I want to use Mapserver to server spatial >>>data, instead of ARCIMS but if I cant get MapServer with SDE enabled I'll >>>have to scrap this idea, which is a real shame ! >>> >>>Thanks, Lorna >> >> >>--- >>Incoming mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 >> >> >>--- >>Outgoing mail is certified Virus Free. >>Checked by AVG anti-virus system (http://www.grisoft.com). >>Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 >> >> > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 > > From jerl.simpso at GMAIL.COM Wed Oct 13 11:26:46 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Wed, 13 Oct 2004 13:26:46 -0500 Subject: WMS Client problem followup Message-ID: Hello, I discovered my problem from earlier. It looked like the colon was causing the problem, but my "+" conversion for spaces was the problem. I took those out and the error went away. Now I have a different problem...still on the WMS though. Now I get a blank image from the enc WMS server. And when I use my mapserver as a WMS Server with the enc layer in question turned on, it fails and gives this error: msHTTPExecuteRequests(): HTTP request error. Can't open output file 1097688254560150.img.tmp. If I set the status of this layer to "OFF" then no error. At this point I'm not sure what to provide as information. Any help is appreciated. Thanks, jerl From dmorissette at DMSOLUTIONS.CA Wed Oct 13 11:47:33 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 13 Oct 2004 14:47:33 -0400 Subject: WMS Client problem In-Reply-To: Message-ID: Jerl Simpson wrote: > > The problem comes in with the wms_name, it has a ":" in it that seems > to get translated to "%3A". My layer name is "Soundings:Fusion" for > instance and the WMS server looks for the ":" and won't convert "%3A" > back to the colon. So the layer name that ends up back at the server > is "Soundings" rather than "Soundings:Fusion" > You made me doubt for a sec, but I did a quick research and it seems that the problem is at the server end: any CGI script or program should know how to decode *any* %xx value in a URL. MapServer is required to encode any unsafe character (see RFC-1738) in the GetMap URL. The ':' is a reserved character, and RFC-1738 says: "Thus, only alphanumerics, the special characters "$-_.+!*'(),", and reserved characters used for their reserved purposes may be used unencoded within a URL." This means that the ':' is required to be encoded in the context of the LAYERS parameter in a GetMap URL. Even if it wasn't required to encode the character, it would still be legal to encode it: "On the other hand, characters that are not required to be encoded (including alphanumerics) may be encoded within the scheme-specific part of a URL, as long as they are not being used for a reserved purpose." There is not much you can do about this other than trying to have the server fixed. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Wed Oct 13 11:52:28 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 13 Oct 2004 14:52:28 -0400 Subject: WMS Client problem followup In-Reply-To: Message-ID: Jerl Simpson wrote: > Hello, > > I discovered my problem from earlier. It looked like the colon was > causing the problem, but my "+" conversion for spaces was the problem. > I took those out and the error went away. > Yeah, that would explain it: as I explained in my previous reply, MapServer takes care of encoding the layer name and that includes the spaces. So if you already replaced the spaces with + then they were encoded twice. > Now I have a different problem...still on the WMS though. > > Now I get a blank image from the enc WMS server. And when I use my > mapserver as a WMS Server with the enc layer in question turned on, it > fails and gives this error: > > msHTTPExecuteRequests(): HTTP request error. Can't open output file > 1097688254560150.img.tmp. > The WMS client code uses the IMAGEPATH directory to temporarily store the image returned by the remote WMS server. So you should make sure that IMAGEPATH is set to point to a directory that the web server has permissions to write to. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Wed Oct 13 11:54:15 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 13 Oct 2004 14:54:15 -0400 Subject: Unicode support In-Reply-To: <00f001c4b12e$9353a140$0a0a0a0a@Frink> Message-ID: Steve Hall wrote: > > Does anyone out there know what level of Unicode (UTF-8) support is > present in Mapserver? I'm looking to start a project based in one of > the Far Eastern countries (not decided which yet - possibly Thailand) > and the map output will need to be localised (i.e labels in local font, > unicode etc). I've proven some of the other parts of the project > (Apache, PHP, Postgres, Oracle etc) but i'm not sure about Mapserver > right now. If I have a number of unicode data sources (OGR MapInfo TAB, > Oracle Spatial, PostGIS) is support present for all of them or am I > likely to be struggling!? Are there any docs on the subject that i've > missed? > Support for labelling maps using Japanese, Chinese and Thai has been added to MapServer 4.3 recently. You'll find more info, including docs in bug 858: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=858 Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bob.basques at CI.STPAUL.MN.US Wed Oct 13 12:49:13 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 13 Oct 2004 14:49:13 -0500 Subject: Contours again. Message-ID: All, Well I tried out a composite file before asking this question. I just ran a 550+meg SHP file for our Contour data. There is only one attribute in the DBF, which is the elevation. a Typical request takes around 120 sec to complete. so I'm going to try and tile the shp file out into smaller version and use a tile index on top of that. Are there any pitfalls I should watch out for during the process of tiling a SHP file? Also, how do I label with a INTEGER vs a REAL for the elevations. I'm getting 14 decimal places in the labels. :c) Thanks bobb From 39507 at MAIL.MUNI.CZ Wed Oct 13 14:14:53 2004 From: 39507 at MAIL.MUNI.CZ (Michal =?ISO-8859-2?Q?Krupi=E8ka?=) Date: Wed, 13 Oct 2004 23:14:53 +0200 Subject: Mapserver Debian In-Reply-To: <200410122340.34757.tylermitchell@shaw.ca> Message-ID: Hi, can I ask please, don't you know any equivallent or similar page, where i can get packages for Mandrake? Thanks a lot Mike > Thanks a lot for the link Wolfgang. > > Tyler > > > Hello Tyler, > > > > I found a MapServer Debian (Woody) package at: > > > > deb http://agrogeomatic.educagri.fr/debian/ stable main > > > > There you can get cgi-mapserver and php-mapscript (4.2.2.1). > > > > > > Regards, > > > > Wolfgang > > > > > Date: Mon, 11 Oct 2004 20:07:30 -0700 > > > From: Tyler Mitchell > > > Subject: Debian package ?? > > > > > > Anyone know of a debian package for MapServer? > > > > > > Tyler > > > > Wolfgang From armin.burger at GMX.NET Wed Oct 13 14:22:48 2004 From: armin.burger at GMX.NET (Armin Burger) Date: Wed, 13 Oct 2004 23:22:48 +0200 Subject: Contours again. Message-ID: Bob, you could also try just creating a spatial index for the shapefile using shptree. 2 minutes looks like there is no existing spatial index and more or less all features of the shapefile are read all the time. Maybe this index already speeds up things sufficiently. Instead of splitting up the contour lines into seperate shapefiles that have then to be put together with a shapeindex, it might be an alternative to intersect the contour lines with a regular grid. E.g. like the sheets for topographic maps or a rectangular one with arbitrary extent you create on your own. That way very long lines with huge amount of vertices are split up into smaller chunks. The time to read such features is much less than for the large ones, but you still have everything in a single shapefile. If you want just display the values as integer, it might be the easiest way to add a new integer column in the dbf file and copy the values from the float column. And then use the new integer column for the labeling. armin > All, > Well I tried out a composite file before asking this question. > I just ran a 550+meg SHP file for our Contour data. There is only one > attribute in the DBF, which is the elevation. > a Typical request takes around 120 sec to complete. so I'm going to try > and tile the shp file out into smaller version and use a tile index on > top of that. Are there any pitfalls I should watch out for during the > process of tiling a SHP file? > Also, how do I label with a INTEGER vs a REAL for the elevations. I'm > getting 14 decimal places in the labels. :c) > Thanks > bobb From bob.basques at CI.STPAUL.MN.US Wed Oct 13 14:56:00 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 13 Oct 2004 16:56:00 -0500 Subject: Contours again. In-Reply-To: Message-ID: Armin Burger wrote: >Bob, > >you could also try just creating a spatial index for the shapefile using s= >hptree. 2 minutes looks like there is no existing spatial index and more o= >r less all features of the shapefile are read all the time. > Yes I think this is correct. >Maybe this ind= >ex already speeds up things sufficiently. > >Instead of splitting up the contour lines into seperate shapefiles that ha= >ve then to be put together with a shapeindex, it might be an alternative t= >o intersect the contour lines with a regular grid. E.g. like the sheets fo= >r topographic maps or a rectangular one with arbitrary extent you create o= >n your own. That way very long lines with huge amount of vertices are spli= >t up into smaller chunks. > I actually started out with something like that in the AutoCAD world. Each tile (1/2 sq. mile) was brought together into a single coverage. I didn't do any joins on the linework, I just let them be seperate entities. I figured that was better than joining them anyway. > The time to read such features is much less than= > for the large ones, but you still have everything in a single shapefile. > >If you want just display the values as integer, it might be the easiest wa= >y to add a new integer column in the dbf file and copy the values from the= > float column. And then use the new integer column for the labeling. > > Good idea, although I think I'll just get rid of the old column afterwards. I tried some things with the data writer(AutoCAD Map) but nothing seemed to help with the labelling. I think your idea will work though. I can load the DBF up and add a column easy enough. Thanks for the suggestions bobb >armin > > > >>All, >> >> > > > >>Well I tried out a composite file before asking this question. >> >> > > > >>I just ran a 550+meg SHP file for our Contour data. There is only one >>attribute in the DBF, which is the elevation. >> >> > > > >>a Typical request takes around 120 sec to complete. so I'm going to try >>and tile the shp file out into smaller version and use a tile index on >>top of that. Are there any pitfalls I should watch out for during the >>process of tiling a SHP file? >> >> > > > > >>Also, how do I label with a INTEGER vs a REAL for the elevations. I'm >>getting 14 decimal places in the labels. :c) >> >> > > > > >>Thanks >> >> > > > >>bobb >> >> > > > From ed at TOPOZONE.COM Wed Oct 13 16:13:35 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 13 Oct 2004 19:13:35 -0400 Subject: Contours again. In-Reply-To: <416DA470.2000506@ci.stpaul.mn.us> Message-ID: Bob - I'm not entirely sure from your reply that you understood that Armin's first suggestion is to simply use shptree to create a spatial index for your single shapefile. In the directory where your shapefile is stored, simply use the command shptree shapefile.shp and a file with the same base name and the extension .qix will be created. Then you can run your test again - creating the index will just take a few moments and you don't have to do anything with your data organization. I'm assuming, by the way, that your test request is actually displaying only a small portion of the entire shapefile. If you're trying to draw the entire 550 MB shapefile in a single image, you have different problems . - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: Bob Basques To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wed, 13 Oct 2004 17:56:00 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Contours again. > Armin Burger wrote: > > >Bob, > > > >you could also try just creating a spatial index for the shapefile using s= > >hptree. 2 minutes looks like there is no existing spatial index and more o= > >r less all features of the shapefile are read all the time. > > > Yes I think this is correct. > > >Maybe this ind= > >ex already speeds up things sufficiently. > > > >Instead of splitting up the contour lines into seperate shapefiles that ha= > >ve then to be put together with a shapeindex, it might be an alternative t= > >o intersect the contour lines with a regular grid. E.g. like the sheets fo= > >r topographic maps or a rectangular one with arbitrary extent you create o= > >n your own. That way very long lines with huge amount of vertices are spli= > >t up into smaller chunks. > > > I actually started out with something like that in the AutoCAD world. > Each tile (1/2 sq. mile) was brought together into a single coverage. I > didn't do any joins on the linework, I just let them be seperate > entities. I figured that was better than joining them anyway. > > > The time to read such features is much less than= > > for the large ones, but you still have everything in a single shapefile. > > > >If you want just display the values as integer, it might be the easiest wa= > >y to add a new integer column in the dbf file and copy the values from the= > > float column. And then use the new integer column for the labeling. > > > > > Good idea, although I think I'll just get rid of the old column > afterwards. I tried some things with the data writer(AutoCAD Map) but > nothing seemed to help with the labelling. > > I think your idea will work though. I can load the DBF up and add a > column easy enough. > > Thanks for the suggestions > > bobb > > >armin > > > > > > > >>All, > >> > >> > > > > > > > >>Well I tried out a composite file before asking this question. > >> > >> > > > > > > > >>I just ran a 550+meg SHP file for our Contour data. There is only one > >>attribute in the DBF, which is the elevation. > >> > >> > > > > > > > >>a Typical request takes around 120 sec to complete. so I'm going to try > >>and tile the shp file out into smaller version and use a tile index on > >>top of that. Are there any pitfalls I should watch out for during the > >>process of tiling a SHP file? > >> > >> > > > > > > > > > >>Also, how do I label with a INTEGER vs a REAL for the elevations. I'm > >>getting 14 decimal places in the labels. :c) > >> > >> > > > > > > > > > >>Thanks > >> > >> > > > > > > > >>bobb > >> > >> > > > > > > > From brendwal2004 at YAHOO.CA Wed Oct 13 16:25:21 2004 From: brendwal2004 at YAHOO.CA (Brendan Walashek) Date: Wed, 13 Oct 2004 18:25:21 -0500 Subject: WMS UTM vs Lat/Long problem crashes mapserver Message-ID: My Lat/Long WMS Mapserver file works fine when added as a WMS layer in a GIS program (MapInfo or ArcMap) , my exact same with UTM mapfile and UTM shapefile hangs/times out when added as a WMS layer to MapInfo or ArcMap. The 2 shapefilea are in the appropriate projections. What is wrong??? Why Why Why?!??!?! I've tried SO many things...played around with extents, copied the epsg file all over the server....I'm stumped. It must be something simple. I really appreciate anyone's help. I get the following error in my Apache error logfile: Premature end of script headers: mapserv.exe Details: I have 2 shapefiles and 2 .map files. One is in Lat/long (EPSG:4326), the other is in UTM NAD83 Zone10 (EPSG:26910). So I have the following: http://209.139.230.212/cgi-bin/mapserv.exe? map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map& http://209.139.230.212/cgi-bin/mapserv.exe? map=c:/progra~1/apache~1/apache2/htdocs/Test_LL.map& I add the Test_LL version in ArcMap or MapInfo as the URL, and it works fine. I try the Test_UTM and it doesn't add the layer. A GetCapabilities Request works for both. And I can manually type in a long URL string such as a GetMap request for both UTM and LL versions in a webbrowser and it also works fine eg. http://209.139.230.212/cgi-bin/mapserv.exe? map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map&request=getmap&version =1.1.1&format=image/png&layers=Land_UTM Here is the mapfile for both: DOES WORK (Lat/Long) filename is Test_LL.map: MAP NAME Test_LL SIZE 600 400 STATUS ON PROJECTION "init=epsg:4326" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # [minx_left] [miny_bottom] [maxx_right] [maxy_top] EXTENT -123.201046 49.109843 -122.920768 49.203412 # Start of web interface definition WEB IMAGEPATH "c:/progra~1/apache~1/apache2/htdocs/temp/" IMAGEURL "/temp/" METADATA "wms_title" "Testbox_VanLand_LL" "wms_abstract" "Testbox_VanLand_LL" "wms_keywordlist" "ortho,orthophoto,airphoto,gis,vancouver" "wms_onlineresource" "http://209.139.230.212/cgi-bin/mapserv.exe? map=c:/progra~1/apache~1/apache2/htdocs/Test_LL.map&" "wms_srs" "EPSG:4326" END END # start of layer definitions LAYER NAME Land_LL TYPE POLYGON STATUS ON DATA "C:\Program Files\Apache Group\Apache2\htdocs\test\VanLand_LL" PROJECTION "init=epsg:4326" END METADATA "wms_title" "Land_LL" "wms_abstract" "Land" "wms_srs" "EPSG:4326" "wms_name" "Land_LL" "wms_onlineresource" "http://209.139.230.212/cgi-bin/mapserv.exe? map=c:/progra~1/apache~1/apache2/htdocs/Test_LL.map&" END CLASS NAME "Land" COLOR 0 100 255 END END END **************************************************** The following UTM version DOES NOT WORK - filename Test_UTM.map: **************************************************** MAP NAME Test_UTM SIZE 600 400 STATUS ON PROJECTION "init=epsg:26910" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END # [minx_left] [miny_bottom] [maxx_right] [maxy_top] EXTENT 485332.481821 5439674.749936 505772.503299 5450070.263959 WEB IMAGEPATH "c:/progra~1/apache~1/apache2/htdocs/temp/" IMAGEURL "/temp/" METADATA "wms_title" "Testbox_VanLand_UTM" "wms_abstract" "Testbox_VanLand_UTM" "wms_keywordlist" "ortho,orthophoto,airphoto,gis,vancouver" "wms_onlineresource" "http://209.139.230.212/cgi-bin/mapserv.exe? map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map&" "wms_srs" "EPSG:26910" END END # start of layer definitions LAYER NAME Land_UTM PROJECTION "init=epsg:26910" END TYPE POLYGON STATUS ON DATA "C:\Program Files\Apache Group\Apache2\htdocs\test\VanLand_UTM" METADATA "wms_title" "Land_UTM" "wms_abstract" "Land" "wms_srs" "EPSG:26910" "wms_name" "Land_UTM" "wms_onlineresource" "http://209.139.230.212/cgi-bin/mapserv.exe? map=c:/progra~1/apache~1/apache2/htdocs/Test_UTM.map&" END CLASS NAME "Land" COLOR 100 100 255 END END END Thanks so much for any help....I'm stumped! :-( ___________________ Brendan Walashek GIS / Mapping / Custom Applications McElhanney Consulting Services Vancouver Office (604) 683-8521 ext.278 From thomas at REDMILENIO.COM Wed Oct 13 12:41:50 2004 From: thomas at REDMILENIO.COM (Thomas Shaw) Date: Wed, 13 Oct 2004 15:41:50 -0400 Subject: about ZoomScale! Message-ID: Hello, I'm trying to use the zoomscale() method, to zoom to a specific point, in a specific scale, but I don't know exactly how to do it. The thing I need, is that when the map is loading, zoom by default to a (lat, lon) point, but I looked at the mapscript doc, and I read that the pintobj, parameter has to be in pixel, and not in (lat, lon), so how could I convert the (lat,lon)point, to pixel point, so I can load it in the zoomscale() "pointobj" parameter? I hope that you can help me with this! Thank you in advance. Thom Shaw From thomas at REDMILENIO.COM Wed Oct 13 17:26:31 2004 From: thomas at REDMILENIO.COM (Thomas Shaw) Date: Wed, 13 Oct 2004 20:26:31 -0400 Subject: zoomscale, convert lat/lon to pixel Message-ID: Hello, In the zoomscale method, one of the parameters is the Pixpel position (pointObj), but it has to be in pixels, how do I convert a point in georeferenced map coordinates(lat/lon) to pixels? so I can load that pixels as the "pixel position" parameter of the zoomscale. I hope that you can help me with this! Thank you in advance. Tom Shaw From LVN at GISPRO.DK Wed Oct 13 23:41:45 2004 From: LVN at GISPRO.DK (Lars V. Nielsen) Date: Thu, 14 Oct 2004 08:41:45 +0200 Subject: Advise wanted: Mapserver 4 and MS/SQL Message-ID: I'm building an app with Mapserver, that needs to thmatically visualize circa 51000 km suare cells covering Denmark. Each cell needs to be colored differently (max. 10 colors), and need to display a count as a label in each cell's center. The map layer is a MapInfo table with a cell ID as first text column. Unfortunately the color and count info is stored on a Microsft SQL Server without any spatial capabilities whatsoever. What is the best way to tackle this problem ? All suggestions are welcome. What I can't do (have tried) is programmatically set the class expression to filter the IDs. If the expression states more than 100 IDs, Mapserver refuses. What I would rather not do, is issue 51000 queries to fetch the color and count info for each cell seperately. Mapserver displays the 51000 cells in 2 seconds if the color coding is an attribute in the table, but the specific color+count changes per definition for each user hit, so I can't use static map layer attribute content. Please advise. Using: PHP 4.3.2 and MapScript 4.0 on Windows 2000 Best regards Lars V. Nielsen GisPro From sudip_mca at SIFY.COM Thu Oct 14 02:38:21 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Thu, 14 Oct 2004 14:38:21 +0500 Subject: to calculate distance between two point data Message-ID: hello... i am working upon a GIS project using PHP-mapscript and mapserver.Now i need to calculate the distance between two point type data of the mapserver generated map . But i don\\\'t know how to proceed and that\\\'s why want your attention. Any suggesation and code will be greatfully accepted. Thanking you ............. Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From sudip_mca at SIFY.COM Thu Oct 14 03:49:00 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Thu, 14 Oct 2004 15:49:00 +0500 Subject: query by rectangle Message-ID: hello...... i am working upon a gis project using php-mapscript and mapserver. Though the task of query by point is working properly in my project but it is becoming very difficult for me to add the facility of query by rectangle. Any code and suggesation regarding this will be greatfully accepted. Thanking you ..............Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From ljiljana at FESB.HR Thu Oct 14 03:35:06 2004 From: ljiljana at FESB.HR (Ljiljana) Date: Thu, 14 Oct 2004 12:35:06 +0200 Subject: Displaying GRASS Message-ID: Is it posible to display several differnet Grass locations in mapserver, since .grassrc5 can only point to single location? How can I have diferent html pages showing diferent locations? regards Ljiljana Bodrozic -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at UVA.NL Thu Oct 14 05:27:45 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Thu, 14 Oct 2004 14:27:45 +0200 Subject: Displaying GRASS In-Reply-To: <00b501c4b1d9$7bb781e0$58a835a1@fire> Message-ID: Ljiljana wrote: > Is it posible to display several differnet Grass locations in mapserver, > since .grassrc5 can only point to single location? > How can I have diferent html pages showing diferent locations? > regards > Ljiljana Bodrozic In my experience, GRASS raster files can be displayed by setting the DATA statement in the MapFile to the *full* path of the raster in the cellhd subdirectory. In that case, the information in the .grassrc5 file is not used. Jan From nasirmaan at HOTMAIL.COM Thu Oct 14 05:29:50 2004 From: nasirmaan at HOTMAIL.COM (Nasir Mahmood) Date: Thu, 14 Oct 2004 07:29:50 -0500 Subject: php_mapscript.dll Message-ID: I am newly married with Mapserver. I have installed: -PHP version 4.3.9 -Apache 2.0 -MapServer the following line of code works But the problem is that in installation instruction for PHP/Mapscript module, there is a file named php_mapscript.dll which i have to copy into extensions folder of php. I haven't been able to find it anywhere. Can anyone tell me from where to find it out and is my installation is complete to play with helloworld example with Mapserver. Thanks a lot in advance. and looking forward for some cool reply Regards, Nasir Mahmood OvG, Germany From Tim.Pascoe at EC.GC.CA Thu Oct 14 06:19:13 2004 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Thu, 14 Oct 2004 09:19:13 -0400 Subject: SLD TextSymbolizer Question Message-ID: I've been working on a way to incorporate a dynamically generated SLD, which I am using to provide custom filter capabilities on a point layer. I've managed to get a simple widget (using Chameleon) developed which passes a form variable to the SLD script file, permitting a dynamic filter value to be passed. It works great, but now I'm having trouble getting the TextSymbolizer in the SLD to correctly format the labels. The TextSymbolizer will change the color of the labels, but not the font or the point size - the font is installed with Mapserver in the correct directory. The map file layer, and appropriate SLD script is below. Thanks for any suggestions - I'm sure I'm missing something simple...... Here is the extract of the TextSymbolizer script: $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " site"; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " vera"; $strScriptOut = $strScriptOut . " normal"; $strScriptOut = $strScriptOut . " normal"; $strScriptOut = $strScriptOut . " 8"; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " #000000"; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " 0.5"; $strScriptOut = $strScriptOut . " 0.5"; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " 20"; $strScriptOut = $strScriptOut . " 10"; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " 20"; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; $strScriptOut = $strScriptOut . " "; Here is the Mapfile layer: LAYER NAME "CABINPoints" GROUP "Sample Points" STATUS ON TYPE RASTER TOLERANCE 5 TOLERANCEUNITS PIXELS TEMPLATE "tt.html" CONNECTIONTYPE WMS CONNECTION "http://localhost/scripts/mapserv.exe?map=C:/Documents%20and%20Settings/TimP/My%20Documents/CABIN/Maps/map/pointswms.map" METADATA "wms_onlineresource" "http://localhost/scripts/mapserv.exe?" "wms_sld_url" "" "wms_title" "CABIN Points test layer" "wms_abstract" "Test Access to CABIN SQL-Server Database on ECBURAS1" "wms_srs" "EPSG:42304" "wms_name" "CABINPoints" # Eventually change this to the name of the Project being mapped?? "wms_formatlist" "image/png,image/gif,image/jpeg,image/wbmp" "wms_format" "image/png" "selected" "0" "wms_server_version" "1.1.1" "wms_title" "Site Location" END LABELITEM "site" CLASS name 'CABINPoints' LABEL COLOR 0 0 0 TYPE TRUETYPE FONT fritqat SIZE 8 POSITION LR END END PROJECTION "init=epsg:4326" END DUMP TRUE END Timothy Pascoe Environment Canada / Environnement Canada Canada Centre for Inland Waters / Centre Canadien des Eaux Int?rieures 867 Lakeshore Road / 867, chemin Lakeshore Burlington, Ontario / Burlington (Ontario) L7R 4A6 Tel/T?l: (905) 336-6239 Fax/T?l?c: (905) 336-4699 E-mail/C. ?lec: tim.pascoe at ec.gc.ca Government of Canada/Gouvernement du Canada -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mike.Elstermann at ITC-HALLE.DE Thu Oct 14 05:55:41 2004 From: Mike.Elstermann at ITC-HALLE.DE (Elstermann, Mike) Date: Thu, 14 Oct 2004 14:55:41 +0200 Subject: Problem with ogr2ogr Message-ID: Hi MapServers, I have a problem with OGR2OGR. I try to convert DGN-Files in ESRI-Shape-Files with this usage: /usr/local/bin/ogr2ogr -skipfailures -f "ESRI Shapefile" -nlt POLYGON /susepool2/xxxpolygon /test.dgn Many polygons were converted, but app. 50% were not converted. I've got only Error-Messages for POINT and LINESTRING, but not for POLYGON. a sniplett ERROR 1: Attempt to write non-polygon (POINT) geometry to type shapefile. ERROR 1: Attempt to write non-polygon (LINESTRING) geometry to type shapefile. ERROR 1: Attempt to write non-polygon (LINESTRING) geometry to type shapefile. ERROR 1: Attempt to write non-polygon (POINT) geometry to type shapefile. ERROR 1: Attempt to write non-polygon (LINESTRING) geometry to type shapefile. ERROR 1: Attempt to write non-polygon (LINESTRING) geometry to type shapefile. ArcView/CAD-Reader shows all polygon! In the DBF i can see the Item ENTITY with the values "Cell", "Circle", "Line String" und "Shape". My convert lost all polygons with the entity "LINE STRING". But the coversion with the option "-nlt LINESTRING" brings only Line-Shapes. Is there anywhere a tip? F?r R?ckfragen stehe ich Ihnen gern zur Verf?gung. ::: mfg. Mike Elstermann [mikeE.], Teamleiter GIS/e-Solutions ::: IT-Consult Halle GmbH, Bornknechtstra?e 5, 06108 Halle (Saale) ::: Tel.: +49 345 581 7128, Fax: +49 345 581 1737, mobil: +49 160 71 545 02 ::: mike.elstermann at itc-halle.de ::: http://www.itc-halle.de ::: GeoDaten Online? -> http://halgis.halle.de; http://umweltatlas.halle.de From assefa at DMSOLUTIONS.CA Thu Oct 14 06:59:39 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 14 Oct 2004 09:59:39 -0400 Subject: php_mapscript.dll In-Reply-To: Message-ID: you can download it from http://www.maptools.org/php_mapscript/ Later, Nasir Mahmood wrote: > I am newly married with Mapserver. I have installed: > > -PHP version 4.3.9 > -Apache 2.0 > -MapServer > > the following line of code works > > > But the problem is that in installation instruction for PHP/Mapscript > module, there is a file named php_mapscript.dll which i have to copy into > extensions folder of php. I haven't been able to find it anywhere. > > Can anyone tell me from where to find it out and is my installation is > complete to play with helloworld example with Mapserver. > > Thanks a lot in advance. and looking forward for some cool reply > > Regards, > Nasir Mahmood > OvG, Germany > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From j.l.h.hartmann at UVA.NL Thu Oct 14 07:07:44 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Thu, 14 Oct 2004 16:07:44 +0200 Subject: Displaying GRASS] Message-ID: Ljiljana wrote: > Does it work for you? At my server it does not work. I can se only data > from the location described in .grassrc5 Other locations are not > recognized as grass data. > Ljiljana Bodrozic > Well, I tried it out with the following MapFile and it worked: layer name a1 status default type raster data /grass/refmaps/roads/cellhd/reference end layer name a2 status default type raster data /grass/kadaster/plans/cellhd/a3 end As you see, both rasters are even in different GRASS databases, and they just show up fine, Are you sure you put the *full* path in your MapFile? Jan From temiz at DEPREM.GOV.TR Thu Oct 14 07:13:37 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 14 Oct 2004 17:13:37 +0300 Subject: example with rubberband Message-ID: hello for zooming, I want to build rubberband. How can I get an example which contain rubberband for zooming ? kind regards Ahmet temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From warmerdam at POBOX.COM Thu Oct 14 07:48:06 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 14 Oct 2004 10:48:06 -0400 Subject: Problem with ogr2ogr In-Reply-To: <8BC0EAF5B383D711B69E0006293896C701756F43@ZEVHNT6> Message-ID: Elstermann, Mike wrote: > Hi MapServers, > > > I have a problem with OGR2OGR. > I try to convert DGN-Files in ESRI-Shape-Files with this usage: > > /usr/local/bin/ogr2ogr -skipfailures -f "ESRI Shapefile" -nlt POLYGON > /susepool2/xxxpolygon /test.dgn > > Many polygons were converted, but app. 50% were not converted. I've got only > Error-Messages for POINT and LINESTRING, but not for POLYGON. Mike, DGN files can contain a variety of geometry types in one layer. Shapefiles can only have one geometry type in a file. You will need to do a translation for each type of geometry you want to capture. Something like: /usr/local/bin/ogr2ogr -skipfailures -f "ESRI Shapefile" -nlt POLYGON \ /susepool2/xxxpolygon.shp /test.dgn /usr/local/bin/ogr2ogr -skipfailures -f "ESRI Shapefile" -nlt LINESTRING \ /susepool2/xxxline.shp /test.dgn /usr/local/bin/ogr2ogr -skipfailures -f "ESRI Shapefile" -nlt POINT \ /susepool2/xxxpoint.shp /test.dgn PS. this is really an OGR question and would be better addressed to the gdal-dev mailing list. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From richard.greenwood at GMAIL.COM Thu Oct 14 09:30:43 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 14 Oct 2004 10:30:43 -0600 Subject: example with rubberband In-Reply-To: <416E8991.5060307@deprem.gov.tr> Message-ID: On Thu, 14 Oct 2004 17:13:37 +0300, temiz wrote: > hello > > for zooming, I want to build rubberband. > How can I get an example which contain rubberband for zooming ? > > kind regards > > Ahmet temiz > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's own > and do not necessarily represent the views and the opinions of Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > Java and DHTML are the commomn options. Check out jBox at: http://mapserver.gis.umn.edu/doc42/jbox-howto.html and http://maptools.org/rosa/index.phtml For Java solutions and search the archives for 'dBox' for a really nice DHTML solution. (There are quite a few others, too> Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Thu Oct 14 09:34:34 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 14 Oct 2004 10:34:34 -0600 Subject: Displaying GRASS] In-Reply-To: <416E8830.2070403@uva.nl> Message-ID: On Thu, 14 Oct 2004 16:07:44 +0200, Jan Hartmann wrote: > Ljiljana wrote: > > > Does it work for you? At my server it does not work. I can se only data > > from the location described in .grassrc5 Other locations are not > > recognized as grass data. > > Ljiljana Bodrozic > > > > Well, I tried it out with the following MapFile and it worked: > > layer > name a1 > status default > type raster > data /grass/refmaps/roads/cellhd/reference > end > > layer > name a2 > status default > type raster > data /grass/kadaster/plans/cellhd/a3 > end > > As you see, both rasters are even in different GRASS databases, and they > just show up fine, Are you sure you put the *full* path in your MapFile? > > Jan > Jan, I know you have suggested using the full path in the past, but I never got it to work. I have always relied upon the .grassrc5 file in htdocs. I wonder if there is anything else unique to your configuration that allows the full path approach to work for you, but not for the rest of us? Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From durso at PLANETEK.IT Thu Oct 14 09:03:27 2004 From: durso at PLANETEK.IT (Giglio D'Urso) Date: Thu, 14 Oct 2004 18:03:27 +0200 Subject: cgi variables for layer list and extent Message-ID: Hi All, I have map file and I'm tryng to use cgi variables to get the layer's list and the map extent. I try to do it using a template but I need the templete to be an another server and therefore I would to specify url for template. Anybody has any idea? Thanks in advance Giglio -------------------------------------------------------- Giglio D'Urso Planetek Italia Via Massaua, 12 - 70123 Bari, Italy Tel. +39 080 5343750 Fax +39 080 5340280 web : http:\\www.planetek.it e-mail : durso at planetek.it From j.l.h.hartmann at UVA.NL Thu Oct 14 10:12:47 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Thu, 14 Oct 2004 19:12:47 +0200 Subject: Displaying GRASS] In-Reply-To: Message-ID: Richard Greenwood wrote: > > Jan, > > I know you have suggested using the full path in the past, but I never > got it to work. I have always relied upon the .grassrc5 file in > htdocs. I wonder if there is anything else unique to your > configuration that allows the full path approach to work for you, but > not for the rest of us? > Hi Rich, Well, I looked and didn't find a .grassrc5 file in my server environment. According to the libgrass README the MapServer-GRASS interface will read information about Location, Mapset and Database from $DOCUMENT_ROOT/.grassrc5. I would have thought that this was only done with relative pathnames, as in the standalone GDAL utilities, but perhaps it also happens with full pathnames. In that case it is a bug. You could try to remove .grassrc in $DOCUMENT_ROOT, and see if you can access GRASS rasters with with their full path in MapServer. I have been doing it for years! Jan From kgrootendorst at BAIRD.COM Thu Oct 14 11:52:07 2004 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 14 Oct 2004 13:52:07 -0500 Subject: MapServer usage stats Message-ID: Hello List, I'm putting together a brief presentation on MapServer for my company and I would like to include info about the following: 1. Number of current users of MapServer 2. Major US and Canadian companies that have used (or are using) MapServer (eg. USACE, Natural Resources Canada) 3. Attendance at first user conference vs. second user conference 4. Percent increase in users since ~2000 (or some time in the late 1990's)? Could anybody out there help to answer these questions for me? Thanks. Kevin From vaiod at BERLOY.COM Thu Oct 14 12:14:59 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Thu, 14 Oct 2004 12:14:59 -0700 Subject: Intersections Message-ID: Can someone please give me some idea or a sample on how one would begin to find an intersection of two lines, streets in my case. Info on finding intersecting lines with other data besides streets could be helpful as well. I ultimately want to give a user the option to enter two street names and then zoom to that intersection. Any suggestions or examples? Eric From sobomsawin at KASSINI.COM Thu Oct 14 12:30:20 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 14 Oct 2004 15:30:20 -0400 Subject: [UMN_MAPSERVER-USERS] Intersections In-Reply-To: <200410141214.59381.vaiod@berloy.com> Message-ID: An Idea: 1- Create a point layer from intersections 2- In the point layer, add two columns corresponding to the name of the two roads intersecting 3- Make two drop-down on your web page where your users can select intersections (correspondig to columns in the point layer table) 4- Zoom to that point with a buffer in extents to be at a reasonable scale As simple as it is I think! Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Eric Katherman Envoy??: 14 octobre 2004 15:15 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Intersections Can someone please give me some idea or a sample on how one would begin to find an intersection of two lines, streets in my case. Info on finding intersecting lines with other data besides streets could be helpful as well. I ultimately want to give a user the option to enter two street names and then zoom to that intersection. Any suggestions or examples? Eric --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.773 / Virus Database: 520 - Release Date: 2004-10-05 From bob.basques at CI.STPAUL.MN.US Thu Oct 14 12:42:29 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 14 Oct 2004 14:42:29 -0500 Subject: Intersections In-Reply-To: Message-ID: What does your Street centerline data look like now? Is it a seperate line segment per city block or polylines or ??? bobb Eric Katherman wrote: >Can someone please give me some idea or a sample on how one would begin to >find an intersection of two lines, streets in my case. Info on finding >intersecting lines with other data besides streets could be helpful as well. >I ultimately want to give a user the option to enter two street names and >then zoom to that intersection. Any suggestions or examples? > >Eric > > > From teb at MALLIT.FR.UMN.EDU Thu Oct 14 13:02:48 2004 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Thu, 14 Oct 2004 15:02:48 -0500 Subject: MapServer usage stats Message-ID: >X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM >X-Umn-Remote-Mta: [N] mhub-m6.tc.umn.edu [160.94.23.36] #+LO+NM+UF+CL+OF (L,-) >X-Umn-Report-As-Spam: >X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM >Date: Thu, 14 Oct 2004 13:52:07 -0500 >From: Kevin Grootendorst >Subject: [UMN_MAPSERVER-USERS] MapServer usage stats >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Hello List, >I'm putting together a brief presentation on MapServer for my company and I >would like to include info about the following: > >1. Number of current users of MapServer Unknown. We've had up to 1200 on the users list. Some multiple of that. >2. Major US and Canadian companies that have used (or are using) MapServer >(eg. USACE, Natural Resources Canada) >3. Attendance at first user conference vs. second user conference Roughly 1st was 120, 2nd was 220 >4. Percent increase in users since ~2000 (or some time in the late 1990's)? > A rough, probably conservative, guess would be 1000%. Users list has probably grown by 500%+ in that time. I throw these out as a starting point. Tom >Could anybody out there help to answer these questions for me? > >Thanks. > >Kevin > From sgillies at FRII.COM Thu Oct 14 13:59:31 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 14 Oct 2004 14:59:31 -0600 Subject: new imageObj::write(), user contributions needed Message-ID: Greetings mapscripters, The SWIG mapscript modules for the 4.4 release will contain a new imageObj::write() method that can be used to write image data to an open filehandle. This method requires, for each target language, a SWIG typemap to convert between your favorite language's file object and a C FILE*. I've written the one for Python, and this is it: // Translate Python's built-in file object to FILE * %typemap(python,in) FILE * { if (!PyFile_Check($input)) { PyErr_SetString(PyExc_TypeError, "Input is not file"); return NULL; } $1 = PyFile_AsFile($input); } I don't do any mapscripting with languages other than Python, and so am neither motivated nor well prepared to test typemaps for other languages. This is why I am looking for user contributions! Please contribute patches against mapscript.i to issue 941 in our bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=941 cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From bob.basques at CI.STPAUL.MN.US Thu Oct 14 14:33:28 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 14 Oct 2004 16:33:28 -0500 Subject: Intersections In-Reply-To: <200410141408.06421.vaiod@berloy.com> Message-ID: Eric Katherman wrote: >The linetypes are LINE and I just started playing with postgis and have >successfully been able to draw the centerlines from the DB if that helps at >all. I am not sure if the line segments are city blocks or not, I got the >data from my county. > >Here are two lines from ogrinfo. > > This is very similar to what I started with for our centerline file. The way I handle the intersections is to create a new SQL table from the Segment data. In my dataset though, I have the Names of the street as a text field. It also has the FROM and TO street names in it as well. With these three piece of data a nd the endpoint coordinates, one can assemble a new TABLE with a self join SQL request that builds a point database with the name of each street name that ends at each corrosponding line segment or SuperNODE (SNODE). Note: this will get all street names at every intersectionn, not just those that cross each other. Notice further down, that DALE, COMO and FRONT all intersect each other at the same intersection. The end results look something like this? SQL> desc snodes; Name Null? Type ----------------------------------------- -------- ---------------------------- ID CHAR(9) X NUMBER(6) Y NUMBER(6) INTERS CHAR(100) SQL> select * from snodes where rownum < 5; ID X Y --------- ---------- ---------- INTERS -------------------------------------------------------------------------------- 301000001 546326 171797 COMO AV and HUNTING VALLEY RD 301000003 546801 171503 COMO AV and EUSTIS ST 301000004 548524 171520 ID X Y --------- ---------- ---------- INTERS -------------------------------------------------------------------------------- BRANSTON ST 301000005 548959 171546 DUDLEY AV and GRANTHAM ST SQL> select * from snodes where inters like '%COMO%' and inters like '%FRONT%'; ID X Y --------- ---------- ---------- INTERS -------------------------------------------------------------------------------- 312000057 564421 165392 COMO PL and FRONT AV 901500906 566512 165392 COMO AV and FRONT AV and N DALE ST ---------------------------------------------------- The create statement (for Oracle, your's will be different I'm sure) would look something like this: create view snode as select fnode_ snode, streetname, cityrigt, cityleft, x1, y1, z1 from tlg_county union select tnode_, streetname, cityrigt, cityleft, x2, y2, z2 from tlg_county Your data will obviously be different, but hopefully this helps you in the right direction. Once you have a SNODE file then you can just add it as another layer behind MapServ that can be selected via the StreetNames or via an ID from some other process, we use a PERL CGI for this against the database, and then zoom to the spot with MapServ, but it could all just be done inside of MapServ too. --------------------------------------------------- The TLG_COUNTY table referenced above looks like this: SQL> desc tlg_county Name Null? Type ----------------------------------------------------- -------- ------------------------------------ GEOM MDSYS.SDO_GEOMETRY FNODE_ FLOAT(126) TNODE_ FLOAT(126) LPOLY_ FLOAT(126) RPOLY_ FLOAT(126) LENGTH FLOAT(126) TLGRDS_ FLOAT(126) TLGRDS_ID FLOAT(126) L_F_ADD FLOAT(126) R_F_ADD FLOAT(126) L_T_ADD FLOAT(126) R_T_ADD FLOAT(126) STREETALL VARCHAR2(35) F_CLASS VARCHAR2(6) ALT_NAM1 VARCHAR2(36) ALT_NAM2 VARCHAR2(36) CENCTY_L FLOAT(126) CENMUN_L FLOAT(126) CENCTY_R FLOAT(126) CENMUN_R FLOAT(126) ZIP5_L FLOAT(126) ZIP5_R FLOAT(126) CITYLEFT VARCHAR2(20) CITYRIGT VARCHAR2(20) PREDIR VARCHAR2(2) STREETNAME VARCHAR2(20) TYPE VARCHAR2(8) SUFDIR VARCHAR2(2) CTYLABRV VARCHAR2(3) CTYRABRV VARCHAR2(3) SPEED_LIM FLOAT(126) ONEWAY FLOAT(126) TLGID FLOAT(126) X1 FLOAT(126) Y1 FLOAT(126) Z1 FLOAT(126) X2 FLOAT(126) Y2 FLOAT(126) Z2 FLOAT(126) bobb > >OGRFeature(Streets):4 > OBJECTID (Integer) = 13 > LENGTH (Real) = 449.92674416700 > ADD1_L (Integer) = 0 > ADD1_R (Integer) = 0 > ADD2_L (Integer) = 0 > ADD2_R (Integer) = 0 > DATE_ (Integer) = 19970705 > SOURCE (Integer) = 2 > MAP (Integer) = 8 > COMMUNITY (String) = Maricopa County > TYPE (String) = (null) > NAME (String) = Apartment > LINESTRING (459403.220 1075050.365,459434.741 1074948.799,459520.438 >1074768.288,459596.252 1074646.142) > >OGRFeature(Streets):5 > OBJECTID (Integer) = 14 > LENGTH (Real) = 787.59510637000 > ADD1_L (Integer) = 0 > ADD1_R (Integer) = 0 > ADD2_L (Integer) = 0 > ADD2_R (Integer) = 0 > DATE_ (Integer) = 19970705 > SOURCE (Integer) = 2 > MAP (Integer) = 8 > COMMUNITY (String) = Maricopa County > TYPE (String) = (null) > NAME (String) = Apartment > LINESTRING (459382.095 1075094.728,459287.050 1075056.376,459285.226 >1074952.446,459294.343 1074888.628,459478.501 1074564 >.073,459596.252 1074646.142) > > > >>What does your Street centerline data look like now? >> >>Is it a seperate line segment per city block or polylines or ??? >> >>bobb >> >>Eric Katherman wrote: >> >> >>>Can someone please give me some idea or a sample on how one would begin to >>>find an intersection of two lines, streets in my case. Info on finding >>>intersecting lines with other data besides streets could be helpful as >>>well. I ultimately want to give a user the option to enter two street >>>names and then zoom to that intersection. Any suggestions or examples? >>> >>>Eric >>> >>> > > > > From ErwinVanderBij at CS.COM Thu Oct 14 14:28:37 2004 From: ErwinVanderBij at CS.COM (Erwin v.d. Bij) Date: Thu, 14 Oct 2004 17:28:37 EDT Subject: SRID = null; how to to convert coordinates from millimeters to meters? Message-ID: Hello all, I have an Oracle Spatial database with a table A which have an SDO_GEOMETRY column, called geomm, which contains polygons. There is a spatial index on it. However we are forced to use SRID is NULL (!) but the coordinates are in millimeters. Are there easy ways to show the polygons with mapserver, knowing that mapserver accepts no millimeters? Is there a config parameter with mapserver to handle this or is there a query in oracle spatial to handle tihs? Erwin From chodgson at REFRACTIONS.NET Thu Oct 14 14:59:00 2004 From: chodgson at REFRACTIONS.NET (Chris Hodgson) Date: Thu, 14 Oct 2004 14:59:00 -0700 Subject: "MsDrawMap():Failed to Draw Layer" Error Message-ID: I'm getting the error: "MsDrawMap(): Failed to draw layer named 'orthophoto'. Sometimes, depending on where I happen to be zoomed in to. Here is my layer definition: LAYER NAME "orthophoto" METADATA "wms_title" "orthophoto" END STATUS ON TILEINDEX "tiles.shp" TILEITEM "Location" TYPE RASTER PROCESSING "BANDS=1,1,1,2" PROJECTION "init=epsg:42102" END END I'm using Mapserver as a WMS 1.0 server, and my image files are greyscale jpeg-2000 files with an alpha channel. The tileindex was built with gdaltindex, and all the files were created with gdal as well. It works fine in some areas, and not in others. How can I find more about the cause of the error? I looked in the apache error_log, nothing there. I tried turning DEBUG ON in the mapfile, no help. Thanks, Chris From vaiod at BERLOY.COM Thu Oct 14 15:35:52 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Thu, 14 Oct 2004 15:35:52 -0700 Subject: Intersections In-Reply-To: <416EF0A8.6050405@ci.stpaul.mn.us> Message-ID: My streets table contains the following fields which contain basically everything but the to and from name. gid INT4 objectid INT8 length NUMERIC (e.g. 208.98332212) add1_l INT8 (e.g. 27656) add1_r INT8 (e.g. 27657) add2_l INT8 (e.g. 27720) add2_r INT8 (e.g. 27721) date_ VARCHAR source INT4 map INT4 community VARCHAR type VARCHAR (e.g. Rd) name VARCHAR (the street name) the_geom GEOMETRY Unfortunately my table doesn't have as much detail as your's appears to, although with what I see, in theroy I should be able to create an "snode" table from where any point in the "the_geom" table matches another and then get the names from them right? If Central and 5th intersect then there would be a record for both Central and 5th that should have that corresponding point in it. The problem that I had when trying to test a select statement using the_geom table returned this: SQL>select name from streets where the_geom LIKE '475151.296'; ERROR:operator does not exist: geometry ~~ "unknown" HINT:No operator matches the given name and argument type(s). You may need to add explicit type casts. Eric > Eric Katherman wrote: > >The linetypes are LINE and I just started playing with postgis and have > >successfully been able to draw the centerlines from the DB if that helps > > at all. I am not sure if the line segments are city blocks or not, I got > > the data from my county. > > > >Here are two lines from ogrinfo. > > This is very similar to what I started with for our centerline file. > The way I handle the intersections is to create a new SQL table from the > Segment data. In my dataset though, I have the Names of the street as > a text field. It also has the FROM and TO street names in it as well. > With these three piece of data a nd the endpoint coordinates, one can > assemble a new TABLE with a self join SQL request that builds a point > database with the name of each street name that ends at each > corrosponding line segment or SuperNODE (SNODE). Note: this will get > all street names at every intersectionn, not just those that cross each > other. Notice further down, that DALE, COMO and FRONT all intersect each > other at the same intersection. > > > The end results look something like this? > > SQL> desc snodes; > Name Null? Type > ----------------------------------------- -------- > ---------------------------- > ID CHAR(9) > X NUMBER(6) > Y NUMBER(6) > INTERS CHAR(100) > > SQL> select * from snodes where rownum < 5; > > ID X Y > --------- ---------- ---------- > INTERS > --------------------------------------------------------------------------- >----- 301000001 546326 171797 > COMO AV and HUNTING VALLEY RD > > > 301000003 546801 171503 > COMO AV and EUSTIS ST > > > 301000004 548524 171520 > > ID X Y > --------- ---------- ---------- > INTERS > --------------------------------------------------------------------------- >----- BRANSTON ST > > > 301000005 548959 171546 > DUDLEY AV and GRANTHAM ST > > > > SQL> select * from snodes where inters like '%COMO%' and inters like > '%FRONT%'; > > ID X Y > --------- ---------- ---------- > INTERS > --------------------------------------------------------------------------- >----- 312000057 564421 165392 > COMO PL and FRONT AV > > > 901500906 566512 165392 > COMO AV and FRONT AV and N DALE ST > > > > ---------------------------------------------------- > > The create statement (for Oracle, your's will be different I'm sure) > would look something like this: > > create view snode as > select fnode_ snode, streetname, cityrigt, cityleft, x1, y1, z1 > from tlg_county > union > select tnode_, streetname, cityrigt, cityleft, x2, y2, z2 > from tlg_county > > Your data will obviously be different, but hopefully this helps you in > the right direction. > > Once you have a SNODE file then you can just add it as another layer > behind MapServ that can be selected via the StreetNames or via an ID > from some other process, we use a PERL CGI for this against the > database, and then zoom to the spot with MapServ, but it could all just > be done inside of MapServ too. > > --------------------------------------------------- > > The TLG_COUNTY table referenced above looks like this: > > SQL> desc tlg_county > Name Null? Type > ----------------------------------------------------- -------- > ------------------------------------ > GEOM > MDSYS.SDO_GEOMETRY > FNODE_ FLOAT(126) > TNODE_ FLOAT(126) > LPOLY_ FLOAT(126) > RPOLY_ FLOAT(126) > LENGTH FLOAT(126) > TLGRDS_ FLOAT(126) > TLGRDS_ID FLOAT(126) > L_F_ADD FLOAT(126) > R_F_ADD FLOAT(126) > L_T_ADD FLOAT(126) > R_T_ADD FLOAT(126) > STREETALL > VARCHAR2(35) F_CLASS > VARCHAR2(6) ALT_NAM1 > VARCHAR2(36) ALT_NAM2 > VARCHAR2(36) CENCTY_L > FLOAT(126) CENMUN_L > FLOAT(126) CENCTY_R > FLOAT(126) CENMUN_R > FLOAT(126) ZIP5_L > FLOAT(126) ZIP5_R > FLOAT(126) CITYLEFT > VARCHAR2(20) CITYRIGT > VARCHAR2(20) PREDIR > VARCHAR2(2) STREETNAME > VARCHAR2(20) TYPE > VARCHAR2(8) SUFDIR > VARCHAR2(2) CTYLABRV > VARCHAR2(3) CTYRABRV > VARCHAR2(3) SPEED_LIM > FLOAT(126) ONEWAY > FLOAT(126) TLGID > FLOAT(126) X1 > FLOAT(126) Y1 > FLOAT(126) Z1 > FLOAT(126) X2 > FLOAT(126) Y2 > FLOAT(126) Z2 > FLOAT(126) > > > bobb > > >OGRFeature(Streets):4 > > OBJECTID (Integer) = 13 > > LENGTH (Real) = 449.92674416700 > > ADD1_L (Integer) = 0 > > ADD1_R (Integer) = 0 > > ADD2_L (Integer) = 0 > > ADD2_R (Integer) = 0 > > DATE_ (Integer) = 19970705 > > SOURCE (Integer) = 2 > > MAP (Integer) = 8 > > COMMUNITY (String) = Maricopa County > > TYPE (String) = (null) > > NAME (String) = Apartment > > LINESTRING (459403.220 1075050.365,459434.741 1074948.799,459520.438 > >1074768.288,459596.252 1074646.142) > > > >OGRFeature(Streets):5 > > OBJECTID (Integer) = 14 > > LENGTH (Real) = 787.59510637000 > > ADD1_L (Integer) = 0 > > ADD1_R (Integer) = 0 > > ADD2_L (Integer) = 0 > > ADD2_R (Integer) = 0 > > DATE_ (Integer) = 19970705 > > SOURCE (Integer) = 2 > > MAP (Integer) = 8 > > COMMUNITY (String) = Maricopa County > > TYPE (String) = (null) > > NAME (String) = Apartment > > LINESTRING (459382.095 1075094.728,459287.050 1075056.376,459285.226 > >1074952.446,459294.343 1074888.628,459478.501 1074564 > >.073,459596.252 1074646.142) > > > >>What does your Street centerline data look like now? > >> > >>Is it a seperate line segment per city block or polylines or ??? > >> > >>bobb > >> > >>Eric Katherman wrote: > >>>Can someone please give me some idea or a sample on how one would begin > >>> to find an intersection of two lines, streets in my case. Info on > >>> finding intersecting lines with other data besides streets could be > >>> helpful as well. I ultimately want to give a user the option to enter > >>> two street names and then zoom to that intersection. Any suggestions > >>> or examples? > >>> > >>>Eric From bob.basques at CI.STPAUL.MN.US Thu Oct 14 15:50:18 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 14 Oct 2004 17:50:18 -0500 Subject: Intersections In-Reply-To: Message-ID: Eric Katherman wrote: >My streets table contains the following fields which contain basically >everything but the to and from name. > >gid INT4 >objectid INT8 >length NUMERIC (e.g. 208.98332212) >add1_l INT8 (e.g. 27656) >add1_r INT8 (e.g. 27657) >add2_l INT8 (e.g. 27720) >add2_r INT8 (e.g. 27721) >date_ VARCHAR >source INT4 >map INT4 >community VARCHAR >type VARCHAR (e.g. Rd) >name VARCHAR (the street name) >the_geom GEOMETRY > >Unfortunately my table doesn't have as much detail as your's appears to, >although with what I see, in theroy I should be able to create an "snode" >table from where any point in the "the_geom" table matches another and then >get the names from them right? If Central and 5th intersect then there would >be a record for both Central and 5th that should have that corresponding >point in it. > > that's the idea. then you let the user figure out which record they want to use. We even do some generalizing after the select by grouping all location less than 150 feet from each other into a single point. This works well for those spots that have two raodways crossing each other in both direction, wher typically you would get back four different intersection points. >The problem that I had when trying to test a select statement using the_geom >table returned this: > >SQL>select name from streets where the_geom LIKE '475151.296'; >ERROR:operator does not exist: geometry ~~ "unknown" >HINT:No operator matches the given name and argument type(s). You may need to >add explicit type casts. > > Are the numbers stored as Ascii or actual numbers? If the GEOMETRY is anything like ORACLE, it's a bit harder to get at it directly with a SQL select. You may need a procedure of sort to get at the actual values. bobb >Eric > > > >>Eric Katherman wrote: >> >> >>>The linetypes are LINE and I just started playing with postgis and have >>>successfully been able to draw the centerlines from the DB if that helps >>>at all. I am not sure if the line segments are city blocks or not, I got >>>the data from my county. >>> >>>Here are two lines from ogrinfo. >>> >>> >>This is very similar to what I started with for our centerline file. >>The way I handle the intersections is to create a new SQL table from the >>Segment data. In my dataset though, I have the Names of the street as >>a text field. It also has the FROM and TO street names in it as well. >>With these three piece of data a nd the endpoint coordinates, one can >>assemble a new TABLE with a self join SQL request that builds a point >>database with the name of each street name that ends at each >>corrosponding line segment or SuperNODE (SNODE). Note: this will get >>all street names at every intersectionn, not just those that cross each >>other. Notice further down, that DALE, COMO and FRONT all intersect each >>other at the same intersection. >> >> >>The end results look something like this? >> >>SQL> desc snodes; >> Name Null? Type >> ----------------------------------------- -------- >>---------------------------- >> ID CHAR(9) >> X NUMBER(6) >> Y NUMBER(6) >> INTERS CHAR(100) >> >>SQL> select * from snodes where rownum < 5; >> >>ID X Y >>--------- ---------- ---------- >>INTERS >>--------------------------------------------------------------------------- >>----- 301000001 546326 171797 >>COMO AV and HUNTING VALLEY RD >> >> >>301000003 546801 171503 >>COMO AV and EUSTIS ST >> >> >>301000004 548524 171520 >> >>ID X Y >>--------- ---------- ---------- >>INTERS >>--------------------------------------------------------------------------- >>----- BRANSTON ST >> >> >>301000005 548959 171546 >>DUDLEY AV and GRANTHAM ST >> >> >> >>SQL> select * from snodes where inters like '%COMO%' and inters like >>'%FRONT%'; >> >>ID X Y >>--------- ---------- ---------- >>INTERS >>--------------------------------------------------------------------------- >>----- 312000057 564421 165392 >>COMO PL and FRONT AV >> >> >>901500906 566512 165392 >>COMO AV and FRONT AV and N DALE ST >> >> >> >>---------------------------------------------------- >> >>The create statement (for Oracle, your's will be different I'm sure) >>would look something like this: >> >>create view snode as >> select fnode_ snode, streetname, cityrigt, cityleft, x1, y1, z1 >> from tlg_county >>union >> select tnode_, streetname, cityrigt, cityleft, x2, y2, z2 >> from tlg_county >> >>Your data will obviously be different, but hopefully this helps you in >>the right direction. >> >>Once you have a SNODE file then you can just add it as another layer >>behind MapServ that can be selected via the StreetNames or via an ID >>from some other process, we use a PERL CGI for this against the >>database, and then zoom to the spot with MapServ, but it could all just >>be done inside of MapServ too. >> >>--------------------------------------------------- >> >>The TLG_COUNTY table referenced above looks like this: >> >>SQL> desc tlg_county >> Name Null? Type >> ----------------------------------------------------- -------- >>------------------------------------ >> GEOM >>MDSYS.SDO_GEOMETRY >> FNODE_ FLOAT(126) >> TNODE_ FLOAT(126) >> LPOLY_ FLOAT(126) >> RPOLY_ FLOAT(126) >> LENGTH FLOAT(126) >> TLGRDS_ FLOAT(126) >> TLGRDS_ID FLOAT(126) >> L_F_ADD FLOAT(126) >> R_F_ADD FLOAT(126) >> L_T_ADD FLOAT(126) >> R_T_ADD FLOAT(126) >> STREETALL >>VARCHAR2(35) F_CLASS >>VARCHAR2(6) ALT_NAM1 >>VARCHAR2(36) ALT_NAM2 >>VARCHAR2(36) CENCTY_L >>FLOAT(126) CENMUN_L >>FLOAT(126) CENCTY_R >>FLOAT(126) CENMUN_R >>FLOAT(126) ZIP5_L >>FLOAT(126) ZIP5_R >>FLOAT(126) CITYLEFT >>VARCHAR2(20) CITYRIGT >>VARCHAR2(20) PREDIR >>VARCHAR2(2) STREETNAME >>VARCHAR2(20) TYPE >>VARCHAR2(8) SUFDIR >>VARCHAR2(2) CTYLABRV >>VARCHAR2(3) CTYRABRV >>VARCHAR2(3) SPEED_LIM >>FLOAT(126) ONEWAY >>FLOAT(126) TLGID >>FLOAT(126) X1 >>FLOAT(126) Y1 >>FLOAT(126) Z1 >>FLOAT(126) X2 >>FLOAT(126) Y2 >>FLOAT(126) Z2 >>FLOAT(126) >> >> >>bobb >> >> >> >>>OGRFeature(Streets):4 >>> OBJECTID (Integer) = 13 >>> LENGTH (Real) = 449.92674416700 >>> ADD1_L (Integer) = 0 >>> ADD1_R (Integer) = 0 >>> ADD2_L (Integer) = 0 >>> ADD2_R (Integer) = 0 >>> DATE_ (Integer) = 19970705 >>> SOURCE (Integer) = 2 >>> MAP (Integer) = 8 >>> COMMUNITY (String) = Maricopa County >>> TYPE (String) = (null) >>> NAME (String) = Apartment >>> LINESTRING (459403.220 1075050.365,459434.741 1074948.799,459520.438 >>>1074768.288,459596.252 1074646.142) >>> >>>OGRFeature(Streets):5 >>> OBJECTID (Integer) = 14 >>> LENGTH (Real) = 787.59510637000 >>> ADD1_L (Integer) = 0 >>> ADD1_R (Integer) = 0 >>> ADD2_L (Integer) = 0 >>> ADD2_R (Integer) = 0 >>> DATE_ (Integer) = 19970705 >>> SOURCE (Integer) = 2 >>> MAP (Integer) = 8 >>> COMMUNITY (String) = Maricopa County >>> TYPE (String) = (null) >>> NAME (String) = Apartment >>> LINESTRING (459382.095 1075094.728,459287.050 1075056.376,459285.226 >>>1074952.446,459294.343 1074888.628,459478.501 1074564 >>>.073,459596.252 1074646.142) >>> >>> >>> >>>>What does your Street centerline data look like now? >>>> >>>>Is it a seperate line segment per city block or polylines or ??? >>>> >>>>bobb >>>> >>>>Eric Katherman wrote: >>>> >>>> >>>>>Can someone please give me some idea or a sample on how one would begin >>>>>to find an intersection of two lines, streets in my case. Info on >>>>>finding intersecting lines with other data besides streets could be >>>>>helpful as well. I ultimately want to give a user the option to enter >>>>>two street names and then zoom to that intersection. Any suggestions >>>>>or examples? >>>>> >>>>>Eric >>>>> >>>>> > > > From vaiod at BERLOY.COM Thu Oct 14 15:47:53 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Thu, 14 Oct 2004 15:47:53 -0700 Subject: Intersections In-Reply-To: <416F02AA.8050705@ci.stpaul.mn.us> Message-ID: The GEOMETRY fields contain data in this format: SRID=-1;MULTILINESTRING((496255.079 867186.461,496255.641 867285.9,496257.078 867536.466)) All with varying lengths obviously. I wanted to just do comparisons with that data but Postgres doesn't like a simple LIKE '%mynumber%'... I will see if I can find any info on that on the web. Thanks for your prompt help Bob, I appreciate it. Eric > Eric Katherman wrote: > >My streets table contains the following fields which contain basically > >everything but the to and from name. > > > >gid INT4 > >objectid INT8 > >length NUMERIC (e.g. 208.98332212) > >add1_l INT8 (e.g. 27656) > >add1_r INT8 (e.g. 27657) > >add2_l INT8 (e.g. 27720) > >add2_r INT8 (e.g. 27721) > >date_ VARCHAR > >source INT4 > >map INT4 > >community VARCHAR > >type VARCHAR (e.g. Rd) > >name VARCHAR (the street name) > >the_geom GEOMETRY > > > >Unfortunately my table doesn't have as much detail as your's appears to, > >although with what I see, in theroy I should be able to create an "snode" > >table from where any point in the "the_geom" table matches another and > > then get the names from them right? If Central and 5th intersect then > > there would be a record for both Central and 5th that should have that > > corresponding point in it. > > that's the idea. then you let the user figure out which record they > want to use. We even do some generalizing after the select by grouping > all location less than 150 feet from each other into a single point. > This works well for those spots that have two raodways crossing each > other in both direction, wher typically you would get back four > different intersection points. > > >The problem that I had when trying to test a select statement using > > the_geom table returned this: > > > >SQL>select name from streets where the_geom LIKE '475151.296'; > >ERROR:operator does not exist: geometry ~~ "unknown" > >HINT:No operator matches the given name and argument type(s). You may need > > to add explicit type casts. > > Are the numbers stored as Ascii or actual numbers? If the GEOMETRY is > anything like ORACLE, it's a bit harder to get at it directly with a SQL > select. You may need a procedure of sort to get at the actual values. > > bobb > > >Eric > > > >>Eric Katherman wrote: > >>>The linetypes are LINE and I just started playing with postgis and have > >>>successfully been able to draw the centerlines from the DB if that helps > >>>at all. I am not sure if the line segments are city blocks or not, I got > >>>the data from my county. > >>> > >>>Here are two lines from ogrinfo. > >> > >>This is very similar to what I started with for our centerline file. > >>The way I handle the intersections is to create a new SQL table from the > >>Segment data. In my dataset though, I have the Names of the street as > >>a text field. It also has the FROM and TO street names in it as well. > >>With these three piece of data a nd the endpoint coordinates, one can > >>assemble a new TABLE with a self join SQL request that builds a point > >>database with the name of each street name that ends at each > >>corrosponding line segment or SuperNODE (SNODE). Note: this will get > >>all street names at every intersectionn, not just those that cross each > >>other. Notice further down, that DALE, COMO and FRONT all intersect each > >>other at the same intersection. > >> > >> > >>The end results look something like this? > >> > >>SQL> desc snodes; > >> Name Null? Type > >> ----------------------------------------- -------- > >>---------------------------- > >> ID CHAR(9) > >> X NUMBER(6) > >> Y NUMBER(6) > >> INTERS CHAR(100) > >> > >>SQL> select * from snodes where rownum < 5; > >> > >>ID X Y > >>--------- ---------- ---------- > >>INTERS > >>------------------------------------------------------------------------- > >>-- ----- 301000001 546326 171797 > >>COMO AV and HUNTING VALLEY RD > >> > >> > >>301000003 546801 171503 > >>COMO AV and EUSTIS ST > >> > >> > >>301000004 548524 171520 > >> > >>ID X Y > >>--------- ---------- ---------- > >>INTERS > >>------------------------------------------------------------------------- > >>-- ----- BRANSTON ST > >> > >> > >>301000005 548959 171546 > >>DUDLEY AV and GRANTHAM ST > >> > >> > >> > >>SQL> select * from snodes where inters like '%COMO%' and inters like > >>'%FRONT%'; > >> > >>ID X Y > >>--------- ---------- ---------- > >>INTERS > >>------------------------------------------------------------------------- > >>-- ----- 312000057 564421 165392 > >>COMO PL and FRONT AV > >> > >> > >>901500906 566512 165392 > >>COMO AV and FRONT AV and N DALE ST > >> > >> > >> > >>---------------------------------------------------- > >> > >>The create statement (for Oracle, your's will be different I'm sure) > >>would look something like this: > >> > >>create view snode as > >> select fnode_ snode, streetname, cityrigt, cityleft, x1, y1, z1 > >> from tlg_county > >>union > >> select tnode_, streetname, cityrigt, cityleft, x2, y2, z2 > >> from tlg_county > >> > >>Your data will obviously be different, but hopefully this helps you in > >>the right direction. > >> > >>Once you have a SNODE file then you can just add it as another layer > >>behind MapServ that can be selected via the StreetNames or via an ID > >>from some other process, we use a PERL CGI for this against the > >>database, and then zoom to the spot with MapServ, but it could all just > >>be done inside of MapServ too. > >> > >>--------------------------------------------------- > >> > >>The TLG_COUNTY table referenced above looks like this: > >> > >>SQL> desc tlg_county > >> Name Null? Type > >> ----------------------------------------------------- -------- > >>------------------------------------ > >> GEOM > >>MDSYS.SDO_GEOMETRY > >> FNODE_ > >> FLOAT(126) TNODE_ > >> FLOAT(126) LPOLY_ > >> FLOAT(126) RPOLY_ > >> FLOAT(126) LENGTH > >> FLOAT(126) TLGRDS_ > >> FLOAT(126) TLGRDS_ID > >> FLOAT(126) L_F_ADD > >> FLOAT(126) R_F_ADD > >> FLOAT(126) L_T_ADD > >> FLOAT(126) R_T_ADD > >> FLOAT(126) STREETALL > >>VARCHAR2(35) F_CLASS > >>VARCHAR2(6) ALT_NAM1 > >>VARCHAR2(36) ALT_NAM2 > >>VARCHAR2(36) CENCTY_L > >>FLOAT(126) CENMUN_L > >>FLOAT(126) CENCTY_R > >>FLOAT(126) CENMUN_R > >>FLOAT(126) ZIP5_L > >>FLOAT(126) ZIP5_R > >>FLOAT(126) CITYLEFT > >>VARCHAR2(20) CITYRIGT > >>VARCHAR2(20) PREDIR > >>VARCHAR2(2) STREETNAME > >>VARCHAR2(20) TYPE > >>VARCHAR2(8) SUFDIR > >>VARCHAR2(2) CTYLABRV > >>VARCHAR2(3) CTYRABRV > >>VARCHAR2(3) SPEED_LIM > >>FLOAT(126) ONEWAY > >>FLOAT(126) TLGID > >>FLOAT(126) X1 > >>FLOAT(126) Y1 > >>FLOAT(126) Z1 > >>FLOAT(126) X2 > >>FLOAT(126) Y2 > >>FLOAT(126) Z2 > >>FLOAT(126) > >> > >> > >>bobb > >> > >>>OGRFeature(Streets):4 > >>> OBJECTID (Integer) = 13 > >>> LENGTH (Real) = 449.92674416700 > >>> ADD1_L (Integer) = 0 > >>> ADD1_R (Integer) = 0 > >>> ADD2_L (Integer) = 0 > >>> ADD2_R (Integer) = 0 > >>> DATE_ (Integer) = 19970705 > >>> SOURCE (Integer) = 2 > >>> MAP (Integer) = 8 > >>> COMMUNITY (String) = Maricopa County > >>> TYPE (String) = (null) > >>> NAME (String) = Apartment > >>> LINESTRING (459403.220 1075050.365,459434.741 1074948.799,459520.438 > >>>1074768.288,459596.252 1074646.142) > >>> > >>>OGRFeature(Streets):5 > >>> OBJECTID (Integer) = 14 > >>> LENGTH (Real) = 787.59510637000 > >>> ADD1_L (Integer) = 0 > >>> ADD1_R (Integer) = 0 > >>> ADD2_L (Integer) = 0 > >>> ADD2_R (Integer) = 0 > >>> DATE_ (Integer) = 19970705 > >>> SOURCE (Integer) = 2 > >>> MAP (Integer) = 8 > >>> COMMUNITY (String) = Maricopa County > >>> TYPE (String) = (null) > >>> NAME (String) = Apartment > >>> LINESTRING (459382.095 1075094.728,459287.050 1075056.376,459285.226 > >>>1074952.446,459294.343 1074888.628,459478.501 1074564 > >>>.073,459596.252 1074646.142) > >>> > >>>>What does your Street centerline data look like now? > >>>> > >>>>Is it a seperate line segment per city block or polylines or ??? > >>>> > >>>>bobb > >>>> > >>>>Eric Katherman wrote: > >>>>>Can someone please give me some idea or a sample on how one would > >>>>> begin to find an intersection of two lines, streets in my case. Info > >>>>> on finding intersecting lines with other data besides streets could > >>>>> be helpful as well. I ultimately want to give a user the option to > >>>>> enter two street names and then zoom to that intersection. Any > >>>>> suggestions or examples? > >>>>> > >>>>>Eric From gsw at GLOBEXPLORER.COM Thu Oct 14 15:53:06 2004 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Thu, 14 Oct 2004 15:53:06 -0700 Subject: Intersections Message-ID: Not sure i like your approach as LIKE is an expensive operator, but this works for me: gex_vector=# select gid,name from texas_rivers where AsText(the_geom) like '%4274417%'; gid | name -----+-------- 3 | Brazos (1 row) Use the AsText to get the WKT representation of the geometry column ... HTH, Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Eric Katherman [mailto:vaiod at BERLOY.COM] Sent: Thu 10/14/2004 3:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Intersections The GEOMETRY fields contain data in this format: SRID=-1;MULTILINESTRING((496255.079 867186.461,496255.641 867285.9,496257.078 867536.466)) All with varying lengths obviously. I wanted to just do comparisons with that data but Postgres doesn't like a simple LIKE '%mynumber%'... I will see if I can find any info on that on the web. Thanks for your prompt help Bob, I appreciate it. Eric > Eric Katherman wrote: > >My streets table contains the following fields which contain basically > >everything but the to and from name. > > > >gid INT4 > >objectid INT8 > >length NUMERIC (e.g. 208.98332212) > >add1_l INT8 (e.g. 27656) > >add1_r INT8 (e.g. 27657) > >add2_l INT8 (e.g. 27720) > >add2_r INT8 (e.g. 27721) > >date_ VARCHAR > >source INT4 > >map INT4 > >community VARCHAR > >type VARCHAR (e.g. Rd) > >name VARCHAR (the street name) > >the_geom GEOMETRY > > > >Unfortunately my table doesn't have as much detail as your's appears to, > >although with what I see, in theroy I should be able to create an "snode" > >table from where any point in the "the_geom" table matches another and > > then get the names from them right? If Central and 5th intersect then > > there would be a record for both Central and 5th that should have that > > corresponding point in it. > > that's the idea. then you let the user figure out which record they > want to use. We even do some generalizing after the select by grouping > all location less than 150 feet from each other into a single point. > This works well for those spots that have two raodways crossing each > other in both direction, wher typically you would get back four > different intersection points. > > >The problem that I had when trying to test a select statement using > > the_geom table returned this: > > > >SQL>select name from streets where the_geom LIKE '475151.296'; > >ERROR:operator does not exist: geometry ~~ "unknown" > >HINT:No operator matches the given name and argument type(s). You may need > > to add explicit type casts. > > Are the numbers stored as Ascii or actual numbers? If the GEOMETRY is > anything like ORACLE, it's a bit harder to get at it directly with a SQL > select. You may need a procedure of sort to get at the actual values. > > bobb > > >Eric > > > >>Eric Katherman wrote: > >>>The linetypes are LINE and I just started playing with postgis and have > >>>successfully been able to draw the centerlines from the DB if that helps > >>>at all. I am not sure if the line segments are city blocks or not, I got > >>>the data from my county. > >>> > >>>Here are two lines from ogrinfo. > >> > >>This is very similar to what I started with for our centerline file. > >>The way I handle the intersections is to create a new SQL table from the > >>Segment data. In my dataset though, I have the Names of the street as > >>a text field. It also has the FROM and TO street names in it as well. > >>With these three piece of data a nd the endpoint coordinates, one can > >>assemble a new TABLE with a self join SQL request that builds a point > >>database with the name of each street name that ends at each > >>corrosponding line segment or SuperNODE (SNODE). Note: this will get > >>all street names at every intersectionn, not just those that cross each > >>other. Notice further down, that DALE, COMO and FRONT all intersect each > >>other at the same intersection. > >> > >> > >>The end results look something like this? > >> > >>SQL> desc snodes; > >> Name Null? Type > >> ----------------------------------------- -------- > >>---------------------------- > >> ID CHAR(9) > >> X NUMBER(6) > >> Y NUMBER(6) > >> INTERS CHAR(100) > >> > >>SQL> select * from snodes where rownum < 5; > >> > >>ID X Y > >>--------- ---------- ---------- > >>INTERS > >>------------------------------------------------------------------------- > >>-- ----- 301000001 546326 171797 > >>COMO AV and HUNTING VALLEY RD > >> > >> > >>301000003 546801 171503 > >>COMO AV and EUSTIS ST > >> > >> > >>301000004 548524 171520 > >> > >>ID X Y > >>--------- ---------- ---------- > >>INTERS > >>------------------------------------------------------------------------- > >>-- ----- BRANSTON ST > >> > >> > >>301000005 548959 171546 > >>DUDLEY AV and GRANTHAM ST > >> > >> > >> > >>SQL> select * from snodes where inters like '%COMO%' and inters like > >>'%FRONT%'; > >> > >>ID X Y > >>--------- ---------- ---------- > >>INTERS > >>------------------------------------------------------------------------- > >>-- ----- 312000057 564421 165392 > >>COMO PL and FRONT AV > >> > >> > >>901500906 566512 165392 > >>COMO AV and FRONT AV and N DALE ST > >> > >> > >> > >>---------------------------------------------------- > >> > >>The create statement (for Oracle, your's will be different I'm sure) > >>would look something like this: > >> > >>create view snode as > >> select fnode_ snode, streetname, cityrigt, cityleft, x1, y1, z1 > >> from tlg_county > >>union > >> select tnode_, streetname, cityrigt, cityleft, x2, y2, z2 > >> from tlg_county > >> > >>Your data will obviously be different, but hopefully this helps you in > >>the right direction. > >> > >>Once you have a SNODE file then you can just add it as another layer > >>behind MapServ that can be selected via the StreetNames or via an ID > >>from some other process, we use a PERL CGI for this against the > >>database, and then zoom to the spot with MapServ, but it could all just > >>be done inside of MapServ too. > >> > >>--------------------------------------------------- > >> > >>The TLG_COUNTY table referenced above looks like this: > >> > >>SQL> desc tlg_county > >> Name Null? Type > >> ----------------------------------------------------- -------- > >>------------------------------------ > >> GEOM > >>MDSYS.SDO_GEOMETRY > >> FNODE_ > >> FLOAT(126) TNODE_ > >> FLOAT(126) LPOLY_ > >> FLOAT(126) RPOLY_ > >> FLOAT(126) LENGTH > >> FLOAT(126) TLGRDS_ > >> FLOAT(126) TLGRDS_ID > >> FLOAT(126) L_F_ADD > >> FLOAT(126) R_F_ADD > >> FLOAT(126) L_T_ADD > >> FLOAT(126) R_T_ADD > >> FLOAT(126) STREETALL > >>VARCHAR2(35) F_CLASS > >>VARCHAR2(6) ALT_NAM1 > >>VARCHAR2(36) ALT_NAM2 > >>VARCHAR2(36) CENCTY_L > >>FLOAT(126) CENMUN_L > >>FLOAT(126) CENCTY_R > >>FLOAT(126) CENMUN_R > >>FLOAT(126) ZIP5_L > >>FLOAT(126) ZIP5_R > >>FLOAT(126) CITYLEFT > >>VARCHAR2(20) CITYRIGT > >>VARCHAR2(20) PREDIR > >>VARCHAR2(2) STREETNAME > >>VARCHAR2(20) TYPE > >>VARCHAR2(8) SUFDIR > >>VARCHAR2(2) CTYLABRV > >>VARCHAR2(3) CTYRABRV > >>VARCHAR2(3) SPEED_LIM > >>FLOAT(126) ONEWAY > >>FLOAT(126) TLGID > >>FLOAT(126) X1 > >>FLOAT(126) Y1 > >>FLOAT(126) Z1 > >>FLOAT(126) X2 > >>FLOAT(126) Y2 > >>FLOAT(126) Z2 > >>FLOAT(126) > >> > >> > >>bobb > >> > >>>OGRFeature(Streets):4 > >>> OBJECTID (Integer) = 13 > >>> LENGTH (Real) = 449.92674416700 > >>> ADD1_L (Integer) = 0 > >>> ADD1_R (Integer) = 0 > >>> ADD2_L (Integer) = 0 > >>> ADD2_R (Integer) = 0 > >>> DATE_ (Integer) = 19970705 > >>> SOURCE (Integer) = 2 > >>> MAP (Integer) = 8 > >>> COMMUNITY (String) = Maricopa County > >>> TYPE (String) = (null) > >>> NAME (String) = Apartment > >>> LINESTRING (459403.220 1075050.365,459434.741 1074948.799,459520.438 > >>>1074768.288,459596.252 1074646.142) > >>> > >>>OGRFeature(Streets):5 > >>> OBJECTID (Integer) = 14 > >>> LENGTH (Real) = 787.59510637000 > >>> ADD1_L (Integer) = 0 > >>> ADD1_R (Integer) = 0 > >>> ADD2_L (Integer) = 0 > >>> ADD2_R (Integer) = 0 > >>> DATE_ (Integer) = 19970705 > >>> SOURCE (Integer) = 2 > >>> MAP (Integer) = 8 > >>> COMMUNITY (String) = Maricopa County > >>> TYPE (String) = (null) > >>> NAME (String) = Apartment > >>> LINESTRING (459382.095 1075094.728,459287.050 1075056.376,459285.226 > >>>1074952.446,459294.343 1074888.628,459478.501 1074564 > >>>.073,459596.252 1074646.142) > >>> > >>>>What does your Street centerline data look like now? > >>>> > >>>>Is it a seperate line segment per city block or polylines or ??? > >>>> > >>>>bobb > >>>> > >>>>Eric Katherman wrote: > >>>>>Can someone please give me some idea or a sample on how one would > >>>>> begin to find an intersection of two lines, streets in my case. Info > >>>>> on finding intersecting lines with other data besides streets could > >>>>> be helpful as well. I ultimately want to give a user the option to > >>>>> enter two street names and then zoom to that intersection. Any > >>>>> suggestions or examples? > >>>>> > >>>>>Eric From vaiod at BERLOY.COM Thu Oct 14 16:11:36 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Thu, 14 Oct 2004 16:11:36 -0700 Subject: Intersections In-Reply-To: <71E37EF6B7DCC1499CEA0316A256832801D4B997@loki.wc.globexplorer.net> Message-ID: That helps a great deal Gregory, I planned on using LIKE just for the initial creation of my "intersections" table which can be used for a quick SELECT queries later. Thanks, Eric From ed at TOPOZONE.COM Thu Oct 14 17:23:03 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 14 Oct 2004 20:23:03 -0400 Subject: MapServer usage stats In-Reply-To: Message-ID: Kevin - I don't know if you could count us as a "major company", but TopoZone has one of the largest commercial production MapServer installations around, at least among companies who admit they're using MapServer ;-) We've been using MapServer for various applications since 2001, and currently run all our TopoZone web site, custom map download, and WMS web services with MapServer. We serve hundreds of thousands of maps every day, from a library that's now up to 24+ terabytes of vector and raster data. - Ed Ed McNierney TopoZone.com ----- Original Message ----- From: Kevin Grootendorst To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thu, 14 Oct 2004 14:52:07 -0400 Subject: [UMN_MAPSERVER-USERS] MapServer usage stats > Hello List, > I'm putting together a brief presentation on MapServer for my company and I > would like to include info about the following: > > 1. Number of current users of MapServer > 2. Major US and Canadian companies that have used (or are using) MapServer > (eg. USACE, Natural Resources Canada) > 3. Attendance at first user conference vs. second user conference > 4. Percent increase in users since ~2000 (or some time in the late 1990's)? > > Could anybody out there help to answer these questions for me? > > Thanks. > > Kevin > From gsw at GLOBEXPLORER.COM Thu Oct 14 17:33:29 2004 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Thu, 14 Oct 2004 17:33:29 -0700 Subject: MapServer usage stats Message-ID: Kevin, As far as your second question, we are using MapServer (although not for the general public just yet) to produce maps with our imagery and various vector datasets (flood maps, parcel data, crime stats, streets and the like). We are a fairly large provider of satellite and aerial photography and look to MapServer as an integral part of our toolkit. Greg Williamson DBA GlobeXplorer LLC -----Original Message----- From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] Sent: Thu 10/14/2004 11:52 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] MapServer usage stats Hello List, I'm putting together a brief presentation on MapServer for my company and I would like to include info about the following: 1. Number of current users of MapServer 2. Major US and Canadian companies that have used (or are using) MapServer (eg. USACE, Natural Resources Canada) 3. Attendance at first user conference vs. second user conference 4. Percent increase in users since ~2000 (or some time in the late 1990's)? Could anybody out there help to answer these questions for me? Thanks. Kevin From simon at INF.UNIVALI.BR Thu Oct 14 18:01:40 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Thu, 14 Oct 2004 22:01:40 -0300 Subject: SRID = null; how to to convert coordinates from millimeters to meters? In-Reply-To: <1b8.37d68a2.2ea04985@cs.com> Message-ID: Hi Erwin, I don't know if I understood you doubt, but I will try to explain. I believe that you can use two ways. The first is using projection in your mapfile and layer definition. The second way is using the two functions: SDO_CS.TRANSFORM and SDO_CS.VIEWPORT_TRANSFORM. Perhaps you need to use the two functions of conjugated form. The first function don't accept data with NULL SRID values, but you can use the second function to transform your data for a defined SRID and use it how a input of first function. Can be, you need to test your data with the srid that you want. The way how I suggested to use the functions can be the wrong way but can help you. I don't know if I helped you. Thank's. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Erwin v.d. Bij wrote: >Hello all, > >I have an Oracle Spatial database with a table A which have an SDO_GEOMETRY >column, called geomm, which contains polygons. There is a spatial index on >it. >However we are forced to use SRID is NULL (!) but the coordinates are in >millimeters. >Are there easy ways to show the polygons with mapserver, knowing that >mapserver >accepts no millimeters? Is there a config parameter with mapserver to handle >this or is there a query in oracle spatial to handle tihs? > >Erwin > > > From dylan at IICI.NO-IP.ORG Thu Oct 14 18:08:12 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Thu, 14 Oct 2004 18:08:12 -0700 Subject: MapServer usage stats In-Reply-To: <71E37EF6B7DCC1499CEA0316A256832801D4B99A@loki.wc.globexplorer.net> Message-ID: Kevin, We are developing ways to use mapserver and PHP/MySQL to provide online soil surveys with data from the NRCS. Although we are not a company, we expect to have a product that is opensource and portable for the general public. Dylan Beaudette Soil Science Grad Group University of California at Davis Davis, CA > -----Original Message----- > From: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] > Sent: Thu 10/14/2004 11:52 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Subject: [UMN_MAPSERVER-USERS] MapServer usage stats > Hello List, > I'm putting together a brief presentation on MapServer for my company and I > would like to include info about the following: > > 1. Number of current users of MapServer > 2. Major US and Canadian companies that have used (or are using) MapServer > (eg. USACE, Natural Resources Canada) > 3. Attendance at first user conference vs. second user conference > 4. Percent increase in users since ~2000 (or some time in the late > 1990's)? > > Could anybody out there help to answer these questions for me? > > Thanks. > > Kevin From richard.greenwood at GMAIL.COM Thu Oct 14 19:23:30 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 15 Oct 2004 02:23:30 +0000 Subject: Displaying GRASS] In-Reply-To: <416EB38F.9070305@uva.nl> Message-ID: On Thu, 14 Oct 2004 19:12:47 +0200, Jan Hartmann wrote: > Richard Greenwood wrote: > > > > > Jan, > > > > I know you have suggested using the full path in the past, but I never > > got it to work. I have always relied upon the .grassrc5 file in > > htdocs. I wonder if there is anything else unique to your > > configuration that allows the full path approach to work for you, but > > not for the rest of us? > > > > Hi Rich, > > Well, I looked and didn't find a .grassrc5 file in my server > environment. According to the libgrass README the MapServer-GRASS > interface will read information about Location, Mapset and Database from > $DOCUMENT_ROOT/.grassrc5. I would have thought that this was only done > with relative pathnames, as in the standalone GDAL utilities, but > perhaps it also happens with full pathnames. In that case it is a bug. > You could try to remove .grassrc in $DOCUMENT_ROOT, and see if you can > access GRASS rasters with with their full path in MapServer. I have been > doing it for years! > > Jan > Well I tried a few things, and for me, I still seem to need the .grassrc5 in htdocs. Using the full path I was able to point at a different MAPSET than the one defined in .grassrc5, however the MAPSET defined in .grassrc must still be a valid, existing mapset. My gdal version is 1.2.0.0. This situation does not cause me any trouble, I am just sharing my experience in case it is useful in Ljiljana's situation. Jan, you don't by any chance set the GISDBASE, LOCATION_NAME, or MAPSET as environment variables do you? Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From gis at UNDPHAIS.ORG.NP Thu Oct 14 21:01:37 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Fri, 15 Oct 2004 09:46:37 +0545 Subject: example with rubberband In-Reply-To: <416E8991.5060307@deprem.gov.tr> Message-ID: On Thu, 14 Oct 2004 17:13:37 +0300, temiz wrote: > hello > > for zooming, I want to build rubberband. > How can I get an example which contain rubberband for zooming ? > > kind regards > > Ahmet temiz > > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's > own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > Ahmet, I've found the rubberband zoom box by Gayathri Swaminathan to be simple and quite useful. You can download it here: http://mapserver.gis.umn.edu/user_utilities/RBand.zip Just call startRubber and stopRubber functions on mouseDown and mouseUp events on the main map image and put hidden form elements containing the width and height of the "rubberband" layer. Works pretty well for my limited knowledge of javascript and mapserver :). Regards. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From gis at UNDPHAIS.ORG.NP Thu Oct 14 21:13:32 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Fri, 15 Oct 2004 09:58:32 +0545 Subject: Advise wanted: Mapserver 4 and MS/SQL In-Reply-To: <001901c4b1b8$e3710430$6e01a8c0@odin> Message-ID: On Thu, 14 Oct 2004 08:41:45 +0200, Lars V. Nielsen wrote: > > What I can't do (have tried) is programmatically set the class > expression to > filter the IDs. If the expression states more than 100 IDs, Mapserver > refuses. > I'm perhaps off topic put I might have the same problem. I have to classify about 4000 polygons using an external database by using an expression like: /10000|03000|56430... and so on.../ Does this mean that if I have more than 100 id's in the expression it wont work? -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From mike.and.kerry at GMAIL.COM Thu Oct 14 22:06:41 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Thu, 14 Oct 2004 21:06:41 -0800 Subject: Win32 binaries with SDE, anyone ? In-Reply-To: Message-ID: I am in the same position... We have an existing Mapserver site running mainly from shapefiles. Moving to SDE based data is a must for our organization to continue use of Mapserver. Unfortunately I haven't been able to get authorization to install the tools necessary to build a custom install including SDE support. If someone does happen to have a win32 binary available for testing I would appreciate it. On a related note... does anyone know anything about the image support in SDE 9.0? I would love to be able to access the same imagery set I am serving up to ESRI users. I imagine there might be some speed gains to be had as well. Thanks in advance Mike Davis GIS Specialist Fort Richardson, Ak On Tue, 12 Oct 2004 22:32:46 -0500, Lorna wrote: > Hi > > I'm hoping someone can offer a copy of their latest win32 Mapserv binary > compiled with SDE support. > > I have SDE 8.3 client software installed, I just dont have the tools to > compile Mapserver under windows. I want to use Mapserver to server spatial > data, instead of ARCIMS but if I cant get MapServer with SDE enabled I'll > have to scrap this idea, which is a real shame ! > > Thanks, Lorna > From tylermitchell at SHAW.CA Thu Oct 14 22:39:38 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 14 Oct 2004 22:39:38 -0700 Subject: MapServer usage stats In-Reply-To: Message-ID: On October 14, 2004 11:52 am, Kevin Grootendorst wrote: > Hello List, > I'm putting together a brief presentation on MapServer for my company and I > would like to include info about the following: > > 1. Number of current users of MapServer Here is one perspective on that question: http://www.moximedia.com:8080/imf-ows/imf.jsp?site=ms_users > 2. Major US and Canadian companies that have used (or are using) MapServer > (eg. USACE, Natural Resources Canada) I personally know of some major usage at the University of Northern British Columbia (UNBC). They have even built some great products on top of it: http://datashare.gis.unbc.ca/openigf/index.php Others can comment on the depth of use at Canadian government. Good luck on your presentation - I'd love see what you come up with. Tyler From siki at AGT.BME.HU Fri Oct 15 02:14:16 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 15 Oct 2004 08:14:16 -0100 Subject: MapServer usage stats {Scanned} In-Reply-To: Message-ID: Hi, You can find it in the web server log. There is a very good analyzer tool called webalizer, it is free, open source. It is configurable and creates html pages with charts. Bye Zoltan On Thu, 14 Oct 2004, Kevin Grootendorst wrote: > Hello List, > I'm putting together a brief presentation on MapServer for my company and I > would like to include info about the following: > > 1. Number of current users of MapServer > 2. Major US and Canadian companies that have used (or are using) MapServer > (eg. USACE, Natural Resources Canada) > 3. Attendance at first user conference vs. second user conference > 4. Percent increase in users since ~2000 (or some time in the late 1990's)? > > Could anybody out there help to answer these questions for me? > > Thanks. > > Kevin > From mj at SCI.FI Fri Oct 15 01:19:43 2004 From: mj at SCI.FI (Mike Jackson) Date: Fri, 15 Oct 2004 11:19:43 +0300 Subject: coordinates as alttext or in status bar? Message-ID: Hi, Are there any examples of how coordinates can be dynamically displayed by mouseover (as alttext), or in the status bar? I'd want to do it without requiring full java, just javascript or php. Thanks, Mike From ErwinVanderBij at CS.COM Thu Oct 14 23:53:29 2004 From: ErwinVanderBij at CS.COM (Erwin v.d. Bij) Date: Fri, 15 Oct 2004 02:53:29 -0400 Subject: SRID = null; how to to convert coordinates from millimeters to meters? Message-ID: Hello Fernando, Thanks for your response. See my reaction below. > I believe that you can use two ways. The first is using projection in >your mapfile and layer definition. I've looked in in it, but still don't how to do this. > The second way is using the two functions: SDO_CS.TRANSFORM and >SDO_CS.VIEWPORT_TRANSFORM. Perhaps you need to use the two functions of >conjugated form. The first function don't accept data with NULL SRID >values, but you can use the second function to transform your data for a >defined SRID and use it how a input of first function. Can be, you need >to test your data with the srid that you want. As far a I understand is the SDO_CS.VIEWPORT_TRANSFORM function a one time action that converts geometry columns to SRID defined gemoetries. However, I have a database which is updated each minute with new records and each record contains a gemoetry column with coordinates in millimeters. If for each database update we have to run SDO_CS.VIEWPORT_TRANSFORM, it will be very timeconsuming. Maybe, I don't understand it correctly. I'm still a newbie on Mapserver and Oracle Spatial as well. Kind regards, Erwin > The way how I suggested to use the functions can be the wrong way but >can help you. > I don't know if I helped you. > Thank's. > >---------------------------------------------------------------- >Fernando Simon - simon at inf.univali.br >Mapserver and Oracle Spatial developer >G10 - Laboratorio de Computacao Aplicada >http://g10.cttmar.univali.br >---------------------------------------------------------------- > >Erwin v.d. Bij wrote: > >>Hello all, >> >>I have an Oracle Spatial database with a table A which have an SDO_GEOMETRY >>column, called geomm, which contains polygons. There is a spatial index on >>it. >>However we are forced to use SRID is NULL (!) but the coordinates are in >>millimeters. >>Are there easy ways to show the polygons with mapserver, knowing that >>mapserver >>accepts no millimeters? Is there a config parameter with mapserver to handle >>this or is there a query in oracle spatial to handle tihs? >> >>Erwin >> >> >> > From temiz at DEPREM.GOV.TR Fri Oct 15 00:21:03 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 15 Oct 2004 10:21:03 +0300 Subject: example with rubberband In-Reply-To: Message-ID: hello Mr.Sandeep, thank you for your help. I have examined the javascript code you suggested. Unfortunately I have also little knowledge about javascript. So, I coudn't manage to get rectangle coordinates drawn as rubberband. I think getting coord. values is the way for zooming. Do you have any idea about how coord values can get? best wishes Bashyal wrote: > On Thu, 14 Oct 2004 17:13:37 +0300, temiz wrote: > >> hello >> >> for zooming, I want to build rubberband. >> How can I get an example which contain rubberband for zooming ? >> >> kind regards >> >> Ahmet temiz >> >> >> ______________________________________ >> Inflex - installed on mailserver for domain @deprem.gov.tr >> Queries to: postmaster at deprem.gov.tr >> >> ______________________________________ >> The views and opinions expressed in this e-mail message are the sender's >> own >> and do not necessarily represent the views and the opinions of >> Earthquake Research Dept. >> of General Directorate of Disaster Affairs. >> >> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >> olarak T.C. >> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >> nitelikte degildir. >> > > Ahmet, > > I've found the rubberband zoom box by Gayathri Swaminathan to be simple > and quite useful. You can download it here: > http://mapserver.gis.umn.edu/user_utilities/RBand.zip > Just call startRubber and stopRubber functions on mouseDown and mouseUp > events on the main map image and put hidden form elements containing the > width and height of the "rubberband" layer. > > Works pretty well for my limited knowledge of javascript and mapserver > :). > > Regards. > > -- > Sandeep Bashyal > -- > National GIS Officer > Humanitarian Assistance Information System (HAIS) > United Nations (NEP/01/008) > UN House, Pulchowk > G.P.O. Box 107 > Kathmandu, Nepal > Tel: (+977) 01 5543957 > (+977) 01 5554304 > Cell:(+977) 9841270854 > Fax: (+977) 01 5528059 > -------------------------------------------------- > mailto:gis at undphais.org.np > mailto:sandeep at earthmapping.com > http://www.undp.org.np > > ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From edspremolla at ANTEL.COM.UY Fri Oct 15 05:27:04 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Fri, 15 Oct 2004 10:27:04 -0200 Subject: Intersections In-Reply-To: <200410141611.36255.vaiod@berloy.com> Message-ID: This is what I do with Postgis: select distinct a from (select the_geom as a from calles_mvd where nombre='TRABAJO') as uno, (select the_geom as b from calles_mvd where nombre='LIBERTAD') as dos where distance(a,b)< 0.0001; That give me the segment of the firs street that hit the second, good to zoom center in it with some buffer. El jue, 14-10-2004 a las 21:11, Eric Katherman escribi?: > That helps a great deal Gregory, I planned on using LIKE just for the initial > creation of my "intersections" table which can be used for a quick SELECT > queries later. > > Thanks, > Eric -- Eduardo Spremolla Antel I+D From simon at INF.UNIVALI.BR Fri Oct 15 05:49:34 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Fri, 15 Oct 2004 09:49:34 -0300 Subject: SRID = null; how to to convert coordinates from millimeters to meters? In-Reply-To: <098F8988.1E4B9C09.BE2B12DA@cs.com> Message-ID: Hi Erwin, You don't need to execute the SDO_CS.VIEWPORT_TRANSFORM function every time that you update the database with the new records. You can define your data layer as: data "geom from (select SDO_CS.TRANSFORM(SDO_CS.VIEWPORT_TRANSFORM(, ), ) as geom from )". Using this way you don't need to update your database, you use the return of the function how as source of the geometry. Remember this way can be worst, but in your case can work very well. Thank's. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Erwin v.d. Bij wrote: >Hello Fernando, > >Thanks for your response. See my reaction below. > > > >> I believe that you can use two ways. The first is using projection in >>your mapfile and layer definition. >> >> > >I've looked in in it, but still don't how to do this. > > > >> The second way is using the two functions: SDO_CS.TRANSFORM and >>SDO_CS.VIEWPORT_TRANSFORM. Perhaps you need to use the two functions of >>conjugated form. The first function don't accept data with NULL SRID >>values, but you can use the second function to transform your data for a >>defined SRID and use it how a input of first function. Can be, you need >>to test your data with the srid that you want. >> >> > >As far a I understand is the SDO_CS.VIEWPORT_TRANSFORM function a one time action that converts geometry columns to SRID defined gemoetries. However, I have a database which is updated each minute with new records and each record contains a gemoetry column with coordinates in millimeters. If for each database update we have to run SDO_CS.VIEWPORT_TRANSFORM, it will be very timeconsuming. Maybe, I don't understand it correctly. I'm still a newbie on Mapserver and Oracle Spatial as well. > >Kind regards, > >Erwin > > >> The way how I suggested to use the functions can be the wrong way but >>can help you. >> I don't know if I helped you. >> Thank's. >> >>---------------------------------------------------------------- >>Fernando Simon - simon at inf.univali.br >>Mapserver and Oracle Spatial developer >>G10 - Laboratorio de Computacao Aplicada >>http://g10.cttmar.univali.br >>---------------------------------------------------------------- >> >>Erwin v.d. Bij wrote: >> >> >> >>>Hello all, >>> >>>I have an Oracle Spatial database with a table A which have an SDO_GEOMETRY >>>column, called geomm, which contains polygons. There is a spatial index on >>>it. >>>However we are forced to use SRID is NULL (!) but the coordinates are in >>>millimeters. >>>Are there easy ways to show the polygons with mapserver, knowing that >>>mapserver >>>accepts no millimeters? Is there a config parameter with mapserver to handle >>>this or is there a query in oracle spatial to handle tihs? >>> >>>Erwin >>> >>> >>> >>> >>> > > > From warmerdam at POBOX.COM Fri Oct 15 06:19:27 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 15 Oct 2004 09:19:27 -0400 Subject: "MsDrawMap():Failed to Draw Layer" Error In-Reply-To: <416EF6A4.4010303@refractions.net> Message-ID: Chris Hodgson wrote: > I'm getting the error: > > "MsDrawMap(): Failed to draw layer named 'orthophoto'. > > Sometimes, depending on where I happen to be zoomed in to. Here is my > layer definition: > > LAYER > NAME "orthophoto" > METADATA > "wms_title" "orthophoto" > END > STATUS ON > TILEINDEX "tiles.shp" > TILEITEM "Location" > TYPE RASTER > PROCESSING "BANDS=1,1,1,2" > PROJECTION > "init=epsg:42102" > END > END > > I'm using Mapserver as a WMS 1.0 server, and my image files are > greyscale jpeg-2000 files with an alpha channel. The tileindex was built > with gdaltindex, and all the files were created with gdal as well. It > works fine in some areas, and not in others. > > How can I find more about the cause of the error? I looked in the apache > error_log, nothing there. I tried turning DEBUG ON in the mapfile, no help. Chris, You might want to try adding something like the following at the beginning of your mapfile to get extra GDAL level debug info. CONFIG CPL_DEBUG "ON" You didn't mention what version of MapServer you are working with, 4.3 from CVS recently? If you can reproduce the problem reliably in a minimal configuration (say with just a single data file instead of a tile index) then let me know and I will dig into what is going wrong. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pramsey at REFRACTIONS.NET Fri Oct 15 07:36:59 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 15 Oct 2004 07:36:59 -0700 Subject: Win32 binaries with SDE, anyone ? In-Reply-To: <631c85c10410142206292b654d@mail.gmail.com> Message-ID: Mike, we are currently scraping the last of the bugs off the CVS version with support for fcgi. Once we have a working copy, we will distribute it for you and Lorna to you. Paul On 14-Oct-04, at 10:06 PM, Mike Davis wrote: > I am in the same position... We have an existing Mapserver site > running mainly from shapefiles. Moving to SDE based data is a must > for our organization to continue use of Mapserver. Unfortunately I > haven't been able to get authorization to install the tools necessary > to build a custom install including SDE support. If someone does > happen to have a win32 binary available for testing I would appreciate > it. > > On a related note... does anyone know anything about the image support > in SDE 9.0? I would love to be able to access the same imagery set I > am serving up to ESRI users. I imagine there might be some speed > gains to be had as well. > > Thanks in advance > > Mike Davis > GIS Specialist > Fort Richardson, Ak > > > On Tue, 12 Oct 2004 22:32:46 -0500, Lorna > wrote: >> Hi >> >> I'm hoping someone can offer a copy of their latest win32 Mapserv >> binary >> compiled with SDE support. >> >> I have SDE 8.3 client software installed, I just dont have the tools >> to >> compile Mapserver under windows. I want to use Mapserver to server >> spatial >> data, instead of ARCIMS but if I cant get MapServer with SDE enabled >> I'll >> have to scrap this idea, which is a real shame ! >> >> Thanks, Lorna >> From ed at TOPOZONE.COM Fri Oct 15 07:49:06 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 15 Oct 2004 10:49:06 -0400 Subject: Contours again. In-Reply-To: <416E959E.2060007@ci.stpaul.mn.us> Message-ID: Bob - After you run shptree you will see a new file with a .qix extension. You should then rerun your tests and see a difference. - Ed ----- Original Message ----- From: Bob Basques To: Ed McNierney Sent: Thu, 14 Oct 2004 11:05:02 -0400 Subject: Re: Contours again. > Ed McNierney wrote: > > >Bob - > > > >I'm not entirely sure from your reply that you understood that Armin's f= > >irst suggestion is to simply use shptree to create a spatial index for y= > >our single shapefile. In the directory where your shapefile is stored, = > >simply use the command > > > > shptree shapefile.shp > > > > > I tried this and nothing is produced, the prompt sits there (crewating > index of new LSB format) for a while then just returns. > > I'm running on REDHAT Fedora Core. > > Is there some special syntax to look out for? > > Some notes: I have the data on a NAS mounted on the WebServer. I'm > running the SHPTREE command on the Server into the home directory of the > login. Don't know if this might be causing write problems or not. > > >and a file with the same base name and the extension .qix will be create= > >d. Then you can run your test again - creating the index will just take= > > a few moments and you don't have to do anything with your data organiza= > >tion. > > > >I'm assuming, by the way, that your test request is actually displaying = > >only a small portion of the entire shapefile. > > > Yup, I plan on making a couple of generalized layers for the wider area > views. > > > If you're trying to draw = > >the entire 550 MB shapefile in a single image, you have different proble= > >ms . > > > > > Nope. Just trying to see if this is going to be a performance problem > or not right now. > > bobb > > > - Ed > > > >Ed McNierney > >TopoZone.com > > > >----- Original Message ----- > >From: Bob Basques > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Sent: Wed, 13 Oct 2004 17:56:00 -0400 > >Subject: Re: [UMN=5FMAPSERVER-USERS] Contours again. > > > > > > > > > >>Armin Burger wrote: > >>=20 > >> > >> > >>>Bob, > >>> > >>>you could also try just creating a spatial index for the shapefile us= > >>> > >>> > >ing s=3D > > > > > >>>hptree. 2 minutes looks like there is no existing spatial index and m= > >>> > >>> > >ore o=3D > > > > > >>>r less all features of the shapefile are read all the time. > >>> > >>> > >>> > >>Yes I think this is correct. > >>=20 > >> > >> > >>>Maybe this ind=3D > >>>ex already speeds up things sufficiently. > >>> > >>>Instead of splitting up the contour lines into seperate shapefiles th= > >>> > >>> > >at ha=3D > > > > > >>>ve then to be put together with a shapeindex, it might be an alternat= > >>> > >>> > >ive t=3D > > > > > >>>o intersect the contour lines with a regular grid. E.g. like the shee= > >>> > >>> > >ts fo=3D > > > > > >>>r topographic maps or a rectangular one with arbitrary extent you cre= > >>> > >>> > >ate o=3D > > > > > >>>n your own. That way very long lines with huge amount of vertices are= > >>> > >>> > > spli=3D > > > > > >>>t up into smaller chunks. > >>> > >>> > >>> > >>I actually started out with something like that in the AutoCAD world. > >>Each tile (1/2 sq. mile) was brought together into a single coverage. = > >> > >> > > I > > > > > >>didn't do any joins on the linework, I just let them be seperate > >>entities. I figured that was better than joining them anyway. > >>=20 > >> > >> > >>>The time to read such features is much less than=3D > >>>for the large ones, but you still have everything in a single shapef= > >>> > >>> > >ile. > > > > > >>>If you want just display the values as integer, it might be the easie= > >>> > >>> > >st wa=3D > > > > > >>>y to add a new integer column in the dbf file and copy the values fro= > >>> > >>> > >m the=3D > > > > > >>>float column. And then use the new integer column for the labeling. > >>> > >>> > >>> > >>> > >>Good idea, although I think I'll just get rid of the old column > >>afterwards. I tried some things with the data writer(AutoCAD Map) but > >>nothing seemed to help with the labelling. > >>=20 > >>I think your idea will work though. I can load the DBF up and add a > >>column easy enough. > >>=20 > >>Thanks for the suggestions > >>=20 > >>bobb > >>=20 > >> > >> > >>>armin > >>> > >>> > >>> > >>> > >>> > >>>>All, > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>>Well I tried out a composite file before asking this question. > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>>I just ran a 550+meg SHP file for our Contour data. There is only o= > >>>> > >>>> > >ne > > > > > >>>>attribute in the DBF, which is the elevation. > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>>a Typical request takes around 120 sec to complete. so I'm going to= > >>>> > >>>> > > try > > > > > >>>>and tile the shp file out into smaller version and use a tile index = > >>>> > >>>> > >on > > > > > >>>>top of that. Are there any pitfalls I should watch out for during t= > >>>> > >>>> > >he > > > > > >>>>process of tiling a SHP file=3F > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>>>Also, how do I label with a INTEGER vs a REAL for the elevations. I= > >>>> > >>>> > >'m > > > > > >>>>getting 14 decimal places in the labels. :c) > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >>>>Thanks > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>>>bobb > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>=20 > >> > >> > > > > > > > > From bob.basques at CI.STPAUL.MN.US Fri Oct 15 08:01:17 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 15 Oct 2004 10:01:17 -0500 Subject: Contours again. In-Reply-To: <20041015104906.03d33395@strabo11> Message-ID: Ed McNierney wrote: >Bob - > >After you run shptree you will see a new file with a .qix extension. You should then rerun your tests and see a difference. > > It shaved off about 30 sec for the search. Is there a way to verify whether the new index is even being used ? I also tried with some different tree values (24, 30) and they didn't seem to make a difference either way., this is one reason I would like to verify if the index is even being used. Does it need to be specified anywhere in a MAPfile or ??? bobb > - Ed > >----- Original Message ----- >From: Bob Basques >To: Ed McNierney >Sent: Thu, 14 Oct 2004 11:05:02 -0400 >Subject: Re: Contours again. > > > > >>Ed McNierney wrote: >> >> >> >>>Bob - >>> >>>I'm not entirely sure from your reply that you understood that Armin's f= >>>irst suggestion is to simply use shptree to create a spatial index for y= >>>our single shapefile. In the directory where your shapefile is stored, = >>>simply use the command >>> >>> shptree shapefile.shp >>> >>> >>> >>> >>I tried this and nothing is produced, the prompt sits there (crewating >>index of new LSB format) for a while then just returns. >> >>I'm running on REDHAT Fedora Core. >> >>Is there some special syntax to look out for? >> >>Some notes: I have the data on a NAS mounted on the WebServer. I'm >>running the SHPTREE command on the Server into the home directory of the >>login. Don't know if this might be causing write problems or not. >> >> >> >>>and a file with the same base name and the extension .qix will be create= >>>d. Then you can run your test again - creating the index will just take= >>>a few moments and you don't have to do anything with your data organiza= >>>tion. >>> >>>I'm assuming, by the way, that your test request is actually displaying = >>>only a small portion of the entire shapefile. >>> >>> >>> >>Yup, I plan on making a couple of generalized layers for the wider area >>views. >> >> >> >>> If you're trying to draw = >>>the entire 550 MB shapefile in a single image, you have different proble= >>>ms . >>> >>> >>> >>> >>Nope. Just trying to see if this is going to be a performance problem >>or not right now. >> >>bobb >> >> >> >>> - Ed >>> >>>Ed McNierney >>>TopoZone.com >>> >>>----- Original Message ----- >>>From: Bob Basques >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Sent: Wed, 13 Oct 2004 17:56:00 -0400 >>>Subject: Re: [UMN=5FMAPSERVER-USERS] Contours again. >>> >>> >>> >>> >>> >>> >>>>Armin Burger wrote: >>>>=20 >>>> >>>> >>>> >>>> >>>>>Bob, >>>>> >>>>>you could also try just creating a spatial index for the shapefile us= >>>>> >>>>> >>>>> >>>>> >>>ing s=3D >>> >>> >>> >>> >>>>>hptree. 2 minutes looks like there is no existing spatial index and m= >>>>> >>>>> >>>>> >>>>> >>>ore o=3D >>> >>> >>> >>> >>>>>r less all features of the shapefile are read all the time. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>Yes I think this is correct. >>>>=20 >>>> >>>> >>>> >>>> >>>>>Maybe this ind=3D >>>>>ex already speeds up things sufficiently. >>>>> >>>>>Instead of splitting up the contour lines into seperate shapefiles th= >>>>> >>>>> >>>>> >>>>> >>>at ha=3D >>> >>> >>> >>> >>>>>ve then to be put together with a shapeindex, it might be an alternat= >>>>> >>>>> >>>>> >>>>> >>>ive t=3D >>> >>> >>> >>> >>>>>o intersect the contour lines with a regular grid. E.g. like the shee= >>>>> >>>>> >>>>> >>>>> >>>ts fo=3D >>> >>> >>> >>> >>>>>r topographic maps or a rectangular one with arbitrary extent you cre= >>>>> >>>>> >>>>> >>>>> >>>ate o=3D >>> >>> >>> >>> >>>>>n your own. That way very long lines with huge amount of vertices are= >>>>> >>>>> >>>>> >>>>> >>>spli=3D >>> >>> >>> >>> >>>>>t up into smaller chunks. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>I actually started out with something like that in the AutoCAD world. >>>>Each tile (1/2 sq. mile) was brought together into a single coverage. = >>>> >>>> >>>> >>>> >>>I >>> >>> >>> >>> >>>>didn't do any joins on the linework, I just let them be seperate >>>>entities. I figured that was better than joining them anyway. >>>>=20 >>>> >>>> >>>> >>>> >>>>>The time to read such features is much less than=3D >>>>>for the large ones, but you still have everything in a single shapef= >>>>> >>>>> >>>>> >>>>> >>>ile. >>> >>> >>> >>> >>>>>If you want just display the values as integer, it might be the easie= >>>>> >>>>> >>>>> >>>>> >>>st wa=3D >>> >>> >>> >>> >>>>>y to add a new integer column in the dbf file and copy the values fro= >>>>> >>>>> >>>>> >>>>> >>>m the=3D >>> >>> >>> >>> >>>>>float column. And then use the new integer column for the labeling. >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>Good idea, although I think I'll just get rid of the old column >>>>afterwards. I tried some things with the data writer(AutoCAD Map) but >>>>nothing seemed to help with the labelling. >>>>=20 >>>>I think your idea will work though. I can load the DBF up and add a >>>>column easy enough. >>>>=20 >>>>Thanks for the suggestions >>>>=20 >>>>bobb >>>>=20 >>>> >>>> >>>> >>>> >>>>>armin >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>All, >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Well I tried out a composite file before asking this question. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>I just ran a 550+meg SHP file for our Contour data. There is only o= >>>>>> >>>>>> >>>>>> >>>>>> >>>ne >>> >>> >>> >>> >>>>>>attribute in the DBF, which is the elevation. >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>a Typical request takes around 120 sec to complete. so I'm going to= >>>>>> >>>>>> >>>>>> >>>>>> >>>try >>> >>> >>> >>> >>>>>>and tile the shp file out into smaller version and use a tile index = >>>>>> >>>>>> >>>>>> >>>>>> >>>on >>> >>> >>> >>> >>>>>>top of that. Are there any pitfalls I should watch out for during t= >>>>>> >>>>>> >>>>>> >>>>>> >>>he >>> >>> >>> >>> >>>>>>process of tiling a SHP file=3F >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Also, how do I label with a INTEGER vs a REAL for the elevations. I= >>>>>> >>>>>> >>>>>> >>>>>> >>>'m >>> >>> >>> >>> >>>>>>getting 14 decimal places in the labels. :c) >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Thanks >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>bobb >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>=20 >>>> >>>> >>>> >>>> >>> >>> >>> >>> >> >> > > > > From jb at NUCOMP.COM Fri Oct 15 08:08:44 2004 From: jb at NUCOMP.COM (John Bolster) Date: Fri, 15 Oct 2004 11:08:44 -0400 Subject: classes drawing order Message-ID: Hi all, I need to understand the sequence in which different elements are drawn onto the map. I understand that layers are drawn from top to bottom in the mapfile, so a feature in a later layer can overlap a feature in an earlier layer, but within one layer, are the classes drawn top down, or as they are encountered as mapserv goes through the shapefile? It's looking like the classes are just drawn as they are encountered, and this is producing my problem: All my roads are drawn with a black circle symbol of, let's say, 5px, with a white circle symbol of, let's say, 3px on top. That makes for a nice outlined road. Let's say my highways are a black circle symbol of 11px with a colored circle symbol on top of 9px. So the highways are colored and have a black outline. But where a road intersects with a highway, if the road gets drawn first it's good because the highway is drawn over the top of it, but if the highway gets drawn first a little of the white of the road (half a circle of it) is drawn out into the intersection, over the top of the highway fill color. As it stands, the roads and the highways are both classes of the same layer. How do you all overcome this? Thanks, John Bolster From mdoggett at COAS.OREGONSTATE.EDU Fri Oct 15 08:40:53 2004 From: mdoggett at COAS.OREGONSTATE.EDU (Matt Doggett) Date: Fri, 15 Oct 2004 08:40:53 -0700 Subject: Displaying GRASS] In-Reply-To: Message-ID: My experience is similar to Richards. If I don't have a .grassrc5 file in DocumentRoot, then my GRASS rasters won't show up, regardless of specifying complete pathname to the raster. The grassrc5 file must point to a valid location/mapset that the webserver can access. Perhaps it depends on what OS you're running? I'm using RH Linux. Matt Mapserver 4.2.3, Gdal 1.2.1, RH Linux 8.0, PHP 4.3.4 >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Richard Greenwood >Sent: Thursday, October 14, 2004 7:24 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Displaying GRASS] > >On Thu, 14 Oct 2004 19:12:47 +0200, Jan Hartmann >wrote: >> Richard Greenwood wrote: >> >> > >> > Jan, >> > >> > I know you have suggested using the full path in the past, but I never >> > got it to work. I have always relied upon the .grassrc5 file in >> > htdocs. I wonder if there is anything else unique to your >> > configuration that allows the full path approach to work for you, but >> > not for the rest of us? >> > >> >> Hi Rich, >> >> Well, I looked and didn't find a .grassrc5 file in my server >> environment. According to the libgrass README the MapServer-GRASS >> interface will read information about Location, Mapset and Database from >> $DOCUMENT_ROOT/.grassrc5. I would have thought that this was only done >> with relative pathnames, as in the standalone GDAL utilities, but >> perhaps it also happens with full pathnames. In that case it is a bug. >> You could try to remove .grassrc in $DOCUMENT_ROOT, and see if you can >> access GRASS rasters with with their full path in MapServer. I have been >> doing it for years! >> >> Jan >> > >Well I tried a few things, and for me, I still seem to need the >.grassrc5 in htdocs. Using the full path I was able to point at a >different MAPSET than the one defined in .grassrc5, however the >MAPSET defined in .grassrc must still be a valid, existing mapset. My >gdal version is 1.2.0.0. > >This situation does not cause me any trouble, I am just sharing my >experience in case it is useful in Ljiljana's situation. > >Jan, you don't by any chance set the GISDBASE, LOCATION_NAME, or >MAPSET as environment variables do you? > >Regards, >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com From ed at TOPOZONE.COM Fri Oct 15 09:09:33 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 15 Oct 2004 12:09:33 -0400 Subject: Contours again. In-Reply-To: <416FE63D.2010400@ci.stpaul.mn.us> Message-ID: Bob - If things got 25% faster, the index is being used - you don't need to do anything other than create it. Do you have a feel for what level of bandwidth you're getting from the NAS server? Roughly what percentage of the vectors in the shapefile are being used to draw your test image? Don't mess around with different values yet - just use the default. It sounds like you're suffering from either excessively-detailed data (needs simplification for the scales you're using), a test that draws a large percentage of the vectors in the file, and/or poor throughput to the file server. A simple test would be to copy the shapefile to the local disk just to see if there's a difference. - Ed ----- Original Message ----- From: Bob Basques To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Fri, 15 Oct 2004 11:01:17 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Contours again. > Ed McNierney wrote: > > >Bob - > > > >After you run shptree you will see a new file with a .qix extension. You > should then rerun your tests and see a difference. > > > > > It shaved off about 30 sec for the search. Is there a way to verify > whether the new index is even being used ? I also tried with some > different tree values (24, 30) and they didn't seem to make a difference > either way., this is one reason I would like to verify if the index is > even being used. Does it need to be specified anywhere in a MAPfile or ??? > > bobb > > > - Ed > > > >----- Original Message ----- > >From: Bob Basques > >To: Ed McNierney > >Sent: Thu, 14 Oct 2004 11:05:02 -0400 > >Subject: Re: Contours again. > > > > > > > > > >>Ed McNierney wrote: > >> > >> > >> > >>>Bob - > >>> > >>>I'm not entirely sure from your reply that you understood that Armin's f= > >>>irst suggestion is to simply use shptree to create a spatial index for y= > >>>our single shapefile. In the directory where your shapefile is stored, = > >>>simply use the command > >>> > >>> shptree shapefile.shp > >>> > >>> > >>> > >>> > >>I tried this and nothing is produced, the prompt sits there (crewating > >>index of new LSB format) for a while then just returns. > >> > >>I'm running on REDHAT Fedora Core. > >> > >>Is there some special syntax to look out for? > >> > >>Some notes: I have the data on a NAS mounted on the WebServer. I'm > >>running the SHPTREE command on the Server into the home directory of the > >>login. Don't know if this might be causing write problems or not. > >> > >> > >> > >>>and a file with the same base name and the extension .qix will be create= > >>>d. Then you can run your test again - creating the index will just take= > >>>a few moments and you don't have to do anything with your data organiza= > >>>tion. > >>> > >>>I'm assuming, by the way, that your test request is actually displaying = > >>>only a small portion of the entire shapefile. > >>> > >>> > >>> > >>Yup, I plan on making a couple of generalized layers for the wider area > >>views. > >> > >> > >> > >>> If you're trying to draw = > >>>the entire 550 MB shapefile in a single image, you have different proble= > >>>ms . > >>> > >>> > >>> > >>> > >>Nope. Just trying to see if this is going to be a performance problem > >>or not right now. > >> > >>bobb > >> > >> > >> > >>> - Ed > >>> > >>>Ed McNierney > >>>TopoZone.com > >>> > >>>----- Original Message ----- > >>>From: Bob Basques > >>>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>Sent: Wed, 13 Oct 2004 17:56:00 -0400 > >>>Subject: Re: [UMN=5FMAPSERVER-USERS] Contours again. > >>> > >>> > >>> > >>> > >>> > >>> > >>>>Armin Burger wrote: > >>>>=20 > >>>> > >>>> > >>>> > >>>> > >>>>>Bob, > >>>>> > >>>>>you could also try just creating a spatial index for the shapefile us= > >>>>> > >>>>> > >>>>> > >>>>> > >>>ing s=3D > >>> > >>> > >>> > >>> > >>>>>hptree. 2 minutes looks like there is no existing spatial index and m= > >>>>> > >>>>> > >>>>> > >>>>> > >>>ore o=3D > >>> > >>> > >>> > >>> > >>>>>r less all features of the shapefile are read all the time. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>Yes I think this is correct. > >>>>=20 > >>>> > >>>> > >>>> > >>>> > >>>>>Maybe this ind=3D > >>>>>ex already speeds up things sufficiently. > >>>>> > >>>>>Instead of splitting up the contour lines into seperate shapefiles th= > >>>>> > >>>>> > >>>>> > >>>>> > >>>at ha=3D > >>> > >>> > >>> > >>> > >>>>>ve then to be put together with a shapeindex, it might be an alternat= > >>>>> > >>>>> > >>>>> > >>>>> > >>>ive t=3D > >>> > >>> > >>> > >>> > >>>>>o intersect the contour lines with a regular grid. E.g. like the shee= > >>>>> > >>>>> > >>>>> > >>>>> > >>>ts fo=3D > >>> > >>> > >>> > >>> > >>>>>r topographic maps or a rectangular one with arbitrary extent you cre= > >>>>> > >>>>> > >>>>> > >>>>> > >>>ate o=3D > >>> > >>> > >>> > >>> > >>>>>n your own. That way very long lines with huge amount of vertices are= > >>>>> > >>>>> > >>>>> > >>>>> > >>>spli=3D > >>> > >>> > >>> > >>> > >>>>>t up into smaller chunks. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>I actually started out with something like that in the AutoCAD world. > >>>>Each tile (1/2 sq. mile) was brought together into a single coverage. = > >>>> > >>>> > >>>> > >>>> > >>>I > >>> > >>> > >>> > >>> > >>>>didn't do any joins on the linework, I just let them be seperate > >>>>entities. I figured that was better than joining them anyway. > >>>>=20 > >>>> > >>>> > >>>> > >>>> > >>>>>The time to read such features is much less than=3D > >>>>>for the large ones, but you still have everything in a single shapef= > >>>>> > >>>>> > >>>>> > >>>>> > >>>ile. > >>> > >>> > >>> > >>> > >>>>>If you want just display the values as integer, it might be the easie= > >>>>> > >>>>> > >>>>> > >>>>> > >>>st wa=3D > >>> > >>> > >>> > >>> > >>>>>y to add a new integer column in the dbf file and copy the values fro= > >>>>> > >>>>> > >>>>> > >>>>> > >>>m the=3D > >>> > >>> > >>> > >>> > >>>>>float column. And then use the new integer column for the labeling. > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>Good idea, although I think I'll just get rid of the old column > >>>>afterwards. I tried some things with the data writer(AutoCAD Map) but > >>>>nothing seemed to help with the labelling. > >>>>=20 > >>>>I think your idea will work though. I can load the DBF up and add a > >>>>column easy enough. > >>>>=20 > >>>>Thanks for the suggestions > >>>>=20 > >>>>bobb > >>>>=20 > >>>> > >>>> > >>>> > >>>> > >>>>>armin > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>All, > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Well I tried out a composite file before asking this question. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>I just ran a 550+meg SHP file for our Contour data. There is only o= > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>ne > >>> > >>> > >>> > >>> > >>>>>>attribute in the DBF, which is the elevation. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>a Typical request takes around 120 sec to complete. so I'm going to= > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>try > >>> > >>> > >>> > >>> > >>>>>>and tile the shp file out into smaller version and use a tile index = > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>on > >>> > >>> > >>> > >>> > >>>>>>top of that. Are there any pitfalls I should watch out for during t= > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>he > >>> > >>> > >>> > >>> > >>>>>>process of tiling a SHP file=3F > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Also, how do I label with a INTEGER vs a REAL for the elevations. I= > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>'m > >>> > >>> > >>> > >>> > >>>>>>getting 14 decimal places in the labels. :c) > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Thanks > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>bobb > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>=20 > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>> > >> > >> > > > > > > > > > From j.l.h.hartmann at UVA.NL Fri Oct 15 09:26:55 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Fri, 15 Oct 2004 18:26:55 +0200 Subject: Displaying GRASS] In-Reply-To: <004601c4b2cd$5abcf7f0$2441c180@oce.orst.edu> Message-ID: Matt Doggett wrote: > My experience is similar to Richards. If I don't have a .grassrc5 file > in DocumentRoot, then my GRASS rasters won't show up, regardless of > specifying complete pathname to the raster. The grassrc5 file must point > to a valid location/mapset that the webserver can access. Perhaps it > depends on what OS you're running? I'm using RH Linux. > I don't understand it. I am running MapServer CGI 4.0 on three nodes of our Beowulf cluster (Debian) with GDAL 1.1 and libgrass5-1.0.0, running both Apache 1.3.26 and 2.0.47 . All six Web-environments are completely separate and perfectly standard (they are provided by the University Computing Center), and none of them has a .grassrc5 file. On all servers I can access GRASS rasters with absolute pathnames. Adding .grassrc5 in DocumentRoot doesn't make any difference and does *not* allow me to give paths relative to the directories in that file. I like it that way, but I don't understand why it is different for you and me. Jan Jan Hartmann Department of Geography University of Amsterdam From warmerdam at POBOX.COM Fri Oct 15 09:45:34 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 15 Oct 2004 12:45:34 -0400 Subject: Contours again. In-Reply-To: <20041015120933.d4106be2@strabo11> Message-ID: Ed McNierney wrote: > Bob - > > If things got 25% faster, the index is being used - you don't need to do anything other than create it. Do you have a feel for what level of bandwidth you're getting from the NAS server? Roughly what percentage of the vectors in the shapefile are being used to draw your test image? > > Don't mess around with different values yet - just use the default. It sounds like you're suffering from either excessively-detailed data (needs simplification for the scales you're using), a test that draws a large percentage of the vectors in the file, and/or poor throughput to the file server. A simple test would be to copy the shapefile to the local disk just to see if there's a difference. Guys, I haven't followed this discussion very closely, so I may have missed something. But one issue I have encountered with contours is that they often end up being very large polygons. For instance, a "zero elevation" coastal contour might well be continental sized. Really big "rings" get pushed way up the the spatial index tree and will have to be read from disk and rendered even if the current map view is just somewhere inside the contour ring such that the contour won't actually be visible, but the bounding rectangles of the contour and the view area will overlap. If this is Bob's problem, he will really be much better off to split the contours into shortish line segments instead of keeping as massive single geometries as this would allow the spatial index to localize things much better. I didn't speak up about this before because it wasn't clear if this has already been done. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ed at TOPOZONE.COM Fri Oct 15 09:58:10 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 15 Oct 2004 12:58:10 -0400 Subject: Contours again. In-Reply-To: <416FFEAE.1040803@pobox.com> Message-ID: Frank - Thanks for chiming in! You're right, of course; Bob made the comment earlier: "I actually started out with something like that in the AutoCAD world. Each tile (1/2 sq. mile) was brought together into a single coverage. I didn't do any joins on the linework, I just let them be seperate entities. I figured that was better than joining them anyway." from which I concluded that these were a lot of small, independent objects. But I'm now not sure that's really the case, so, Bob, can you confirm the arrangement of your data? I ran into a similar situation a few years ago with US street map data, which was originally organized as one shapefile per layer type per state. I was surprised at how noticeable the improvement was when I switched to one shapefile per layer type per COUNTY, as it helped prune large objects (interstates, rivers). - Ed ----- Original Message ----- From: Frank Warmerdam To: Ed McNierney Cc: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Fri, 15 Oct 2004 12:45:34 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Contours again. > Ed McNierney wrote: > > Bob - > > > > If things got 25% faster, the index is being used - you don't need to do > anything other than create it. Do you have a feel for what level of bandwidth > you're getting from the NAS server? Roughly what percentage of the vectors in > the shapefile are being used to draw your test image? > > > > Don't mess around with different values yet - just use the default. It sounds > like you're suffering from either excessively-detailed data (needs > simplification for the scales you're using), a test that draws a large > percentage of the vectors in the file, and/or poor throughput to the file > server. A simple test would be to copy the shapefile to the local disk just to > see if there's a difference. > > > Guys, > > I haven't followed this discussion very closely, so I may have missed > something. But one issue I have encountered with contours is that they > often end up being very large polygons. For instance, a "zero elevation" > coastal contour might well be continental sized. Really big "rings" get > pushed way up the the spatial index tree and will have to be read from > disk and rendered even if the current map view is just somewhere inside > the contour ring such that the contour won't actually be visible, but > the bounding rectangles of the contour and the view area will overlap. > > If this is Bob's problem, he will really be much better off to split the > contours into shortish line segments instead of keeping as massive single > geometries as this would allow the spatial index to localize things > much better. > > I didn't speak up about this before because it wasn't clear if this has > already been done. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From bob.basques at CI.STPAUL.MN.US Fri Oct 15 10:56:30 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 15 Oct 2004 12:56:30 -0500 Subject: Contours again. In-Reply-To: Message-ID: Ed McNierney wrote: >Frank - > >Thanks for chiming in! You're right, of course; Bob made the comment ea= >rlier: > >"I actually started out with something like that in the AutoCAD world. >Each tile (1/2 sq. mile) was brought together into a single coverage. I >didn't do any joins on the linework, I just let them be seperate >entities. I figured that was better than joining them anyway." > >from which I concluded that these were a lot of small, independent objec= >ts. But I'm now not sure that's really the case, so, Bob, can you confi= >rm the arrangement of your data=3F > > Yes, the source data was all organized into 1/2 x 1/2 mile tiles (2000 x 2000 ft). When assembled into a single SHP file they were NOT joined together. They are still polylines though. I'm starting to wonder now though about exploding them into their respective line segments. The data size will double though if I do that with all the extra end points to take manage. Even though the contours are chopped up by 1/2 mile increments, they are still quite large polylines, with hundreds of vertices each. I could chop them up further, down to 500 foot grid tile perhaps. The big concern for me was labelling. I didn't want to end up with seperate segments that were labelled to often. I could get away with a single label per object with the tiling method of aggregation. Seperating every segment out seems like going backwards for some reason. :c) I don't recall now if I mentioned this or not, but the contours are at one foot increments, quite dense and 560+ megs for the *.SHP file. The qix file was 4+ megs. As a matter of fact, this is the densest dataset that I need to publish ( so far ) I have the DEM next that was used to generate the Contours. :c) bobb >I ran into a similar situation a few years ago with US street map data, = >which was originally organized as one shapefile per layer type per state= >. I was surprised at how noticeable the improvement was when I switched= > to one shapefile per layer type per COUNTY, as it helped prune large ob= >jects (interstates, rivers). > > - Ed > >----- Original Message ----- >From: Frank Warmerdam >To: Ed McNierney >Cc: MAPSERVER-USERS at LISTS.UMN.EDU >Sent: Fri, 15 Oct 2004 12:45:34 -0400 >Subject: Re: [UMN=5FMAPSERVER-USERS] Contours again. > > > > >>Ed McNierney wrote: >> >> >>>Bob - >>>=20 >>>If things got 25% faster, the index is being used - you don't need t= >>> >>> >o do > > >>anything other than create it. Do you have a feel for what level of b= >> >> >andwidth > > >>you're getting from the NAS server=3F Roughly what percentage of the = >> >> >vectors in > > >>the shapefile are being used to draw your test image=3F >> >> >>>=20 >>>Don't mess around with different values yet - just use the default. = >>> >>> > It sounds > > >>like you're suffering from either excessively-detailed data (needs >>simplification for the scales you're using), a test that draws a large >>percentage of the vectors in the file, and/or poor throughput to the f= >> >> >ile > > >>server. A simple test would be to copy the shapefile to the local dis= >> >> >k just to > > >>see if there's a difference. >>=20 >>=20 >>Guys, >>=20 >>I haven't followed this discussion very closely, so I may have missed >>something. But one issue I have encountered with contours is that the= >> >> >y > > >>often end up being very large polygons. For instance, a "zero elevati= >> >> >on" > > >>coastal contour might well be continental sized. Really big "rings" g= >> >> >et > > >>pushed way up the the spatial index tree and will have to be read from >>disk and rendered even if the current map view is just somewhere insid= >> >> >e > > >>the contour ring such that the contour won't actually be visible, but >>the bounding rectangles of the contour and the view area will overlap. >>=20 >>If this is Bob's problem, he will really be much better off to split t= >> >> >he > > >>contours into shortish line segments instead of keeping as massive sin= >> >> >gle > > >>geometries as this would allow the spatial index to localize things >>much better. >>=20 >>I didn't speak up about this before because it wasn't clear if this ha= >> >> >s > > >>already been done. >>=20 >>Best regards, >>--=20 >>---------------------------------------+------------------------------= >> >> >-------- > > >>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at po= >> >> >box.com > > >>light and sound - activate the windows | http://pobox.com/~warmerdam >>and watch the world go round - Rush | Geospatial Programmer for Ren= >> >> >t > > >>=20 >>=20 >> >> > > > From ed at TOPOZONE.COM Fri Oct 15 11:29:41 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 15 Oct 2004 14:29:41 -0400 Subject: Contours again. In-Reply-To: <41700F4E.3080704@ci.stpaul.mn.us> Message-ID: Bob - Thanks for the info - here are some thoughts: 1. Is there a particular reason you need to merge all those tiles into a single shapefile? Since you're not merging the polylines inside that shapefile, there isn't much benefit (and a bit of harm) in merging them. If you keep each file as a separate tile, you can use a TILEINDEX to combine all the tiles into a single logical layer - as if they were a single shapefile. You can then use shptree on each of those individual tiles to create a spatial index for it. The combination bascially provides a two-level index that can be very efficient. 2. The contour interval has an effect, but so does the granularity of the data. If your source data is at a higher resolution than the output image then you can often end up drawing multiple polyline segments all of which live inside a single output pixel! This is where generalizing the data to a level appropriate to the output can help. If your data has a much higher resolution than the output image, it will simply slow things down - 100 polylines in one pixel looks exactly the same as only 1 polyline in that same pixel. There's no improvement in quality. 3. What is the physical image size (in pixels) and the geographic extent (in feet) of your test image? - Ed ----- Original Message ----- From: Bob Basques To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Fri, 15 Oct 2004 13:56:30 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Contours again. > Ed McNierney wrote: > > >Frank - > > > >Thanks for chiming in! You're right, of course; Bob made the comment ea= > >rlier: > > > >"I actually started out with something like that in the AutoCAD world. > >Each tile (1/2 sq. mile) was brought together into a single coverage. I > >didn't do any joins on the linework, I just let them be seperate > >entities. I figured that was better than joining them anyway." > > > >from which I concluded that these were a lot of small, independent objec= > >ts. But I'm now not sure that's really the case, so, Bob, can you confi= > >rm the arrangement of your data=3F > > > > > Yes, the source data was all organized into 1/2 x 1/2 mile tiles (2000 x > 2000 ft). When assembled into a single SHP file they were NOT joined > together. They are still polylines though. I'm starting to wonder now > though about exploding them into their respective line segments. The > data size will double though if I do that with all the extra end points > to take manage. > > Even though the contours are chopped up by 1/2 mile increments, they are > still quite large polylines, with hundreds of vertices each. I could > chop them up further, down to 500 foot grid tile perhaps. The big > concern for me was labelling. I didn't want to end up with seperate > segments that were labelled to often. I could get away with a single > label per object with the tiling method of aggregation. Seperating > every segment out seems like going backwards for some reason. :c) > > I don't recall now if I mentioned this or not, but the contours are at > one foot increments, quite dense and 560+ megs for the *.SHP file. The > qix file was 4+ megs. As a matter of fact, this is the densest dataset > that I need to publish ( so far ) I have the DEM next that was used to > generate the Contours. :c) > > bobb > > >I ran into a similar situation a few years ago with US street map data, = > >which was originally organized as one shapefile per layer type per state= > >. I was surprised at how noticeable the improvement was when I switched= > > to one shapefile per layer type per COUNTY, as it helped prune large ob= > >jects (interstates, rivers). > > > > - Ed > > > >----- Original Message ----- > >From: Frank Warmerdam > >To: Ed McNierney > >Cc: MAPSERVER-USERS at LISTS.UMN.EDU > >Sent: Fri, 15 Oct 2004 12:45:34 -0400 > >Subject: Re: [UMN=5FMAPSERVER-USERS] Contours again. > > > > > > > > > >>Ed McNierney wrote: > >> > >> > >>>Bob - > >>>=20 > >>>If things got 25% faster, the index is being used - you don't need t= > >>> > >>> > >o do > > > > > >>anything other than create it. Do you have a feel for what level of b= > >> > >> > >andwidth > > > > > >>you're getting from the NAS server=3F Roughly what percentage of the = > >> > >> > >vectors in > > > > > >>the shapefile are being used to draw your test image=3F > >> > >> > >>>=20 > >>>Don't mess around with different values yet - just use the default. = > >>> > >>> > > It sounds > > > > > >>like you're suffering from either excessively-detailed data (needs > >>simplification for the scales you're using), a test that draws a large > >>percentage of the vectors in the file, and/or poor throughput to the f= > >> > >> > >ile > > > > > >>server. A simple test would be to copy the shapefile to the local dis= > >> > >> > >k just to > > > > > >>see if there's a difference. > >>=20 > >>=20 > >>Guys, > >>=20 > >>I haven't followed this discussion very closely, so I may have missed > >>something. But one issue I have encountered with contours is that the= > >> > >> > >y > > > > > >>often end up being very large polygons. For instance, a "zero elevati= > >> > >> > >on" > > > > > >>coastal contour might well be continental sized. Really big "rings" g= > >> > >> > >et > > > > > >>pushed way up the the spatial index tree and will have to be read from > >>disk and rendered even if the current map view is just somewhere insid= > >> > >> > >e > > > > > >>the contour ring such that the contour won't actually be visible, but > >>the bounding rectangles of the contour and the view area will overlap. > >>=20 > >>If this is Bob's problem, he will really be much better off to split t= > >> > >> > >he > > > > > >>contours into shortish line segments instead of keeping as massive sin= > >> > >> > >gle > > > > > >>geometries as this would allow the spatial index to localize things > >>much better. > >>=20 > >>I didn't speak up about this before because it wasn't clear if this ha= > >> > >> > >s > > > > > >>already been done. > >>=20 > >>Best regards, > >>--=20 > >>---------------------------------------+------------------------------= > >> > >> > >-------- > > > > > >>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at po= > >> > >> > >box.com > > > > > >>light and sound - activate the windows | http://pobox.com/~warmerdam > >>and watch the world go round - Rush | Geospatial Programmer for Ren= > >> > >> > >t > > > > > >>=20 > >>=20 > >> > >> > > > > > > > From warmerdam at POBOX.COM Fri Oct 15 12:04:11 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 15 Oct 2004 15:04:11 -0400 Subject: Contours again. In-Reply-To: <41700F4E.3080704@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > Yes, the source data was all organized into 1/2 x 1/2 mile tiles (2000 x > 2000 ft). When assembled into a single SHP file they were NOT joined > together. They are still polylines though. I'm starting to wonder now > though about exploding them into their respective line segments. The > data size will double though if I do that with all the extra end points > to take manage. > > Even though the contours are chopped up by 1/2 mile increments, they are > still quite large polylines, with hundreds of vertices each. I could > chop them up further, down to 500 foot grid tile perhaps. The big > concern for me was labelling. I didn't want to end up with seperate > segments that were labelled to often. I could get away with a single > label per object with the tiling method of aggregation. Seperating > every segment out seems like going backwards for some reason. :c) > > I don't recall now if I mentioned this or not, but the contours are at > one foot increments, quite dense and 560+ megs for the *.SHP file. The > qix file was 4+ megs. As a matter of fact, this is the densest dataset > that I need to publish ( so far ) I have the DEM next that was used to > generate the Contours. :c) Bob, I'm really surprised that the qix file gave you so little speed improvement given that your data would appear to be very well organized for spatial indexing. I don't think exploding things into individual line segements will help in any useful way, and it will make labelling hell. De-densification might be called for though. Splitting into tiles with a tileindex and a spatial index for the tileindex, and each tile shapefile could help some. However, the modest performance gain you got with the spatial index suggests to me that the bottleneck might not be where would expect it to be. Some profiling might be in order. I am assuming that your map view request is for a small area of the total dataset, right? An overview render of this dataset will inevitably require a *huge* amount of work in the reading and rendering. If you felt like dumping a working mapfile and the full dataset on a CD and sending it to me, I could try and do a bit of profiling to see what is happening. As Paul Ramsey discovered with his "label cache collision checking" performance issue, the bottleneck isn't always where you think it will be. Umm, you aren't labelling these contours are you? I feel bad asking all these questions that you and Ed already hashed through but it is often the un-asked question that would unearth the real issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bob.basques at CI.STPAUL.MN.US Fri Oct 15 12:15:17 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 15 Oct 2004 14:15:17 -0500 Subject: Contours again. In-Reply-To: Message-ID: Ed McNierney wrote: >Bob - > >Thanks for the info - here are some thoughts: > >1. Is there a particular reason you need to merge all those tiles into a= > single shapefile=3F Since you're not merging the polylines inside that= > shapefile, there isn't much benefit (and a bit of harm) in merging them= >. If you keep each file as a separate tile, you can use a TILEINDEX to = >combine all the tiles into a single logical layer - as if they were a si= >ngle shapefile. You can then use shptree on each of those individual ti= >les to create a spatial index for it. The combination bascially provide= >s a two-level index that can be very efficient. > > Actaully that was my first thought. I do this already with Aerial Photo layers. This was really an experiment to guage performance. It's still impressive (to me) that the request comes back as quick as it does, considering the data amounts. >2. The contour interval has an effect, but so does the granularity of th= >e data. If your source data is at a higher resolution than the output i= >mage then you can often end up drawing multiple polyline segments all of= > which live inside a single output pixel! > That's not an issue at the test viewings. I'm also planning on generating multiple resolutions of the contours data for just this reason. Doing a Contour map of the whole City for example. > This is where generalizing th= >e data to a level appropriate to the output can help. > Understood. I do this now for the aerial photo's too. where I have multiple tile sets for the same LAYER at different source resaolutions that are used for different viewing scales. I've not tried this same technique with the SHP file though. Are there any pitfalls to look out for? > If your data has = >a much higher resolution than the output image, it will simply slow thin= >gs down - 100 polylines in one pixel looks exactly the same as only 1 po= >lyline in that same pixel. There's no improvement in quality. > >3. What is the physical image size (in pixels) and the geographic extent= > (in feet) of your test image=3F > > 1600 x 1300 feet (extents) and 800 x 650 pixels. Right in the correct neighborhood for the source data. I'm also labelling the lines, but I don't think that's a significant overhead overall. The biggest issue seems to be the fact that the Layer resided on a network mounted device. (This is the same for the Aerial photo datasets as well.) The smaller I can make the initial loading the better I think. So the TileIndex seems to be the way to go, in my case anyways. bobb > - Ed > >----- Original Message ----- >From: Bob Basques >To: MAPSERVER-USERS at LISTS.UMN.EDU >Sent: Fri, 15 Oct 2004 13:56:30 -0400 >Subject: Re: [UMN=5FMAPSERVER-USERS] Contours again. > > > > >>Ed McNierney wrote: >>=20 >> >> >>>Frank - >>> >>>Thanks for chiming in! You're right, of course; Bob made the comment= >>> >>> > ea=3D > > >>>rlier: >>> >>>"I actually started out with something like that in the AutoCAD world= >>> >>> >. > > >>>Each tile (1/2 sq. mile) was brought together into a single coverage.= >>> >>> > I > > >>>didn't do any joins on the linework, I just let them be seperate >>>entities. I figured that was better than joining them anyway." >>> >>> >>> >>>from which I concluded that these were a lot of small, independent ob= >> >> >jec=3D > > >>>ts. But I'm now not sure that's really the case, so, Bob, can you co= >>> >>> >nfi=3D > > >>>rm the arrangement of your data=3D3F >>> >>> >>> >>> >>Yes, the source data was all organized into 1/2 x 1/2 mile tiles (2000= >> >> > x > > >>2000 ft). When assembled into a single SHP file they were NOT joined >>together. They are still polylines though. I'm starting to wonder no= >> >> >w > > >>though about exploding them into their respective line segments. The >>data size will double though if I do that with all the extra end point= >> >> >s > > >>to take manage. >>=20 >>Even though the contours are chopped up by 1/2 mile increments, they a= >> >> >re > > >>still quite large polylines, with hundreds of vertices each. I could >>chop them up further, down to 500 foot grid tile perhaps. The big >>concern for me was labelling. I didn't want to end up with seperate >>segments that were labelled to often. I could get away with a single >>label per object with the tiling method of aggregation. Seperating >>every segment out seems like going backwards for some reason. :c) >>=20 >>I don't recall now if I mentioned this or not, but the contours are at >>one foot increments, quite dense and 560+ megs for the *.SHP file. Th= >> >> >e > > >>qix file was 4+ megs. As a matter of fact, this is the densest datase= >> >> >t > > >>that I need to publish ( so far ) I have the DEM next that was used t= >> >> >o > > >>generate the Contours. :c) >>=20 >>bobb >>=20 >> >> >>>I ran into a similar situation a few years ago with US street map dat= >>> >>> >a, =3D > > >>>which was originally organized as one shapefile per layer type per st= >>> >>> >ate=3D > > >>>. I was surprised at how noticeable the improvement was when I switc= >>> >>> >hed=3D > > >>>to one shapefile per layer type per COUNTY, as it helped prune large= >>> >>> > ob=3D > > >>>jects (interstates, rivers). >>> >>> - Ed >>> >>>----- Original Message ----- >>>From: Frank Warmerdam >>>To: Ed McNierney >>>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>>Sent: Fri, 15 Oct 2004 12:45:34 -0400 >>>Subject: Re: [UMN=3D5FMAPSERVER-USERS] Contours again. >>> >>> >>> >>> >>> >>> >>>>Ed McNierney wrote: >>>> >>>> >>>> >>>> >>>>>Bob - >>>>>=3D20 >>>>>If things got 25% faster, the index is being used - you don't need = >>>>> >>>>> >t=3D > > >>>>> >>>>> >>>o do >>> >>> >>> >>> >>>>anything other than create it. Do you have a feel for what level of= >>>> >>>> > b=3D > > >>>> >>>> >>>andwidth >>> >>> >>> >>> >>>>you're getting from the NAS server=3D3F Roughly what percentage of = >>>> >>>> >the =3D > > >>>> >>>> >>>vectors in >>> >>> >>> >>> >>>>the shapefile are being used to draw your test image=3D3F >>>> >>>> >>>> >>>> >>>>>=3D20 >>>>>Don't mess around with different values yet - just use the default.= >>>>> >>>>> > =3D > > >>>>> >>>>> >>>It sounds >>> >>> >>> >>> >>>>like you're suffering from either excessively-detailed data (needs >>>>simplification for the scales you're using), a test that draws a lar= >>>> >>>> >ge > > >>>>percentage of the vectors in the file, and/or poor throughput to the= >>>> >>>> > f=3D > > >>>> >>>> >>>ile >>> >>> >>> >>> >>>>server. A simple test would be to copy the shapefile to the local d= >>>> >>>> >is=3D > > >>>> >>>> >>>k just to >>> >>> >>> >>> >>>>see if there's a difference. >>>>=3D20 >>>>=3D20 >>>>Guys, >>>>=3D20 >>>>I haven't followed this discussion very closely, so I may have misse= >>>> >>>> >d > > >>>>something. But one issue I have encountered with contours is that t= >>>> >>>> >he=3D > > >>>> >>>> >>>y >>> >>> >>> >>> >>>>often end up being very large polygons. For instance, a "zero eleva= >>>> >>>> >ti=3D > > >>>> >>>> >>>on" >>> >>> >>> >>> >>>>coastal contour might well be continental sized. Really big "rings"= >>>> >>>> > g=3D > > >>>> >>>> >>>et >>> >>> >>> >>> >>>>pushed way up the the spatial index tree and will have to be read fr= >>>> >>>> >om > > >>>>disk and rendered even if the current map view is just somewhere ins= >>>> >>>> >id=3D > > >>>> >>>> >>>e >>> >>> >>> >>> >>>>the contour ring such that the contour won't actually be visible, bu= >>>> >>>> >t > > >>>>the bounding rectangles of the contour and the view area will overla= >>>> >>>> >p. > > >>>>=3D20 >>>>If this is Bob's problem, he will really be much better off to split= >>>> >>>> > t=3D > > >>>> >>>> >>>he >>> >>> >>> >>> >>>>contours into shortish line segments instead of keeping as massive s= >>>> >>>> >in=3D > > >>>> >>>> >>>gle >>> >>> >>> >>> >>>>geometries as this would allow the spatial index to localize things >>>>much better. >>>>=3D20 >>>>I didn't speak up about this before because it wasn't clear if this = >>>> >>>> >ha=3D > > >>>> >>>> >>>s >>> >>> >>> >>> >>>>already been done. >>>>=3D20 >>>>Best regards, >>>>--=3D20 >>>>---------------------------------------+----------------------------= >>>> >>>> >--=3D > > >>>> >>>> >>>-------- >>> >>> >>> >>> >>>>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@= >>>> >>>> >po=3D > > >>>> >>>> >>>box.com >>> >>> >>> >>> >>>>light and sound - activate the windows | http://pobox.com/~warmerdam >>>>and watch the world go round - Rush | Geospatial Programmer for R= >>>> >>>> >en=3D > > >>>> >>>> >>>t >>> >>> >>> >>> >>>>=3D20 >>>>=3D20 >>>> >>>> >>>> >>>> >>> >>> >>> >>=20 >> >> > > > From ed at TOPOZONE.COM Fri Oct 15 12:18:16 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 15 Oct 2004 15:18:16 -0400 Subject: Contours again. In-Reply-To: <417021C5.8040902@ci.stpaul.mn.us> Message-ID: Bob - If you are looking for a 1600x1300-foot area and producing an 800x650-pixel map, something's slowing you down. There's no reason that request should take that long, and I share Frank's suspicion that the problem's somewhere else. Can you try my earlier suggestion of copying the data to a non-network drive, just for comparison? The TILEINDEX route should help you, but as Frank says your data appears to be well-structured for handling this kind of display request quite easily. - Ed ----- Original Message ----- From: Bob Basques To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Fri, 15 Oct 2004 15:15:17 -0400 Subject: Re: [UMN_MAPSERVER-USERS] Contours again. > Ed McNierney wrote: > > >Bob - > > > >Thanks for the info - here are some thoughts: > > > >1. Is there a particular reason you need to merge all those tiles into a= > > single shapefile=3F Since you're not merging the polylines inside that= > > shapefile, there isn't much benefit (and a bit of harm) in merging them= > >. If you keep each file as a separate tile, you can use a TILEINDEX to = > >combine all the tiles into a single logical layer - as if they were a si= > >ngle shapefile. You can then use shptree on each of those individual ti= > >les to create a spatial index for it. The combination bascially provide= > >s a two-level index that can be very efficient. > > > > > Actaully that was my first thought. I do this already with Aerial Photo > layers. This was really an experiment to guage performance. It's still > impressive (to me) that the request comes back as quick as it does, > considering the data amounts. > > >2. The contour interval has an effect, but so does the granularity of th= > >e data. If your source data is at a higher resolution than the output i= > >mage then you can often end up drawing multiple polyline segments all of= > > which live inside a single output pixel! > > > That's not an issue at the test viewings. I'm also planning on > generating multiple resolutions of the contours data for just this > reason. Doing a Contour map of the whole City for example. > > > This is where generalizing th= > >e data to a level appropriate to the output can help. > > > Understood. I do this now for the aerial photo's too. where I have > multiple tile sets for the same LAYER at different source resaolutions > that are used for different viewing scales. I've not tried this same > technique with the SHP file though. Are there any pitfalls to look out for? > > > If your data has = > >a much higher resolution than the output image, it will simply slow thin= > >gs down - 100 polylines in one pixel looks exactly the same as only 1 po= > >lyline in that same pixel. There's no improvement in quality. > > > >3. What is the physical image size (in pixels) and the geographic extent= > > (in feet) of your test image=3F > > > > > 1600 x 1300 feet (extents) and 800 x 650 pixels. Right in the correct > neighborhood for the source data. I'm also labelling the lines, but I > don't think that's a significant overhead overall. > > The biggest issue seems to be the fact that the Layer resided on a > network mounted device. (This is the same for the Aerial photo datasets > as well.) The smaller I can make the initial loading the better I > think. So the TileIndex seems to be the way to go, in my case anyways. > > bobb > > > - Ed > > > >----- Original Message ----- > >From: Bob Basques > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Sent: Fri, 15 Oct 2004 13:56:30 -0400 > >Subject: Re: [UMN=5FMAPSERVER-USERS] Contours again. > > > > > > > > > >>Ed McNierney wrote: > >>=20 > >> > >> > >>>Frank - > >>> > >>>Thanks for chiming in! You're right, of course; Bob made the comment= > >>> > >>> > > ea=3D > > > > > >>>rlier: > >>> > >>>"I actually started out with something like that in the AutoCAD world= > >>> > >>> > >. > > > > > >>>Each tile (1/2 sq. mile) was brought together into a single coverage.= > >>> > >>> > > I > > > > > >>>didn't do any joins on the linework, I just let them be seperate > >>>entities. I figured that was better than joining them anyway." > >>> > >>> > >>> > >>>from which I concluded that these were a lot of small, independent ob= > >> > >> > >jec=3D > > > > > >>>ts. But I'm now not sure that's really the case, so, Bob, can you co= > >>> > >>> > >nfi=3D > > > > > >>>rm the arrangement of your data=3D3F > >>> > >>> > >>> > >>> > >>Yes, the source data was all organized into 1/2 x 1/2 mile tiles (2000= > >> > >> > > x > > > > > >>2000 ft). When assembled into a single SHP file they were NOT joined > >>together. They are still polylines though. I'm starting to wonder no= > >> > >> > >w > > > > > >>though about exploding them into their respective line segments. The > >>data size will double though if I do that with all the extra end point= > >> > >> > >s > > > > > >>to take manage. > >>=20 > >>Even though the contours are chopped up by 1/2 mile increments, they a= > >> > >> > >re > > > > > >>still quite large polylines, with hundreds of vertices each. I could > >>chop them up further, down to 500 foot grid tile perhaps. The big > >>concern for me was labelling. I didn't want to end up with seperate > >>segments that were labelled to often. I could get away with a single > >>label per object with the tiling method of aggregation. Seperating > >>every segment out seems like going backwards for some reason. :c) > >>=20 > >>I don't recall now if I mentioned this or not, but the contours are at > >>one foot increments, quite dense and 560+ megs for the *.SHP file. Th= > >> > >> > >e > > > > > >>qix file was 4+ megs. As a matter of fact, this is the densest datase= > >> > >> > >t > > > > > >>that I need to publish ( so far ) I have the DEM next that was used t= > >> > >> > >o > > > > > >>generate the Contours. :c) > >>=20 > >>bobb > >>=20 > >> > >> > >>>I ran into a similar situation a few years ago with US street map dat= > >>> > >>> > >a, =3D > > > > > >>>which was originally organized as one shapefile per layer type per st= > >>> > >>> > >ate=3D > > > > > >>>. I was surprised at how noticeable the improvement was when I switc= > >>> > >>> > >hed=3D > > > > > >>>to one shapefile per layer type per COUNTY, as it helped prune large= > >>> > >>> > > ob=3D > > > > > >>>jects (interstates, rivers). > >>> > >>> - Ed > >>> > >>>----- Original Message ----- > >>>From: Frank Warmerdam > >>>To: Ed McNierney > >>>Cc: MAPSERVER-USERS at LISTS.UMN.EDU > >>>Sent: Fri, 15 Oct 2004 12:45:34 -0400 > >>>Subject: Re: [UMN=3D5FMAPSERVER-USERS] Contours again. > >>> > >>> > >>> > >>> > >>> > >>> > >>>>Ed McNierney wrote: > >>>> > >>>> > >>>> > >>>> > >>>>>Bob - > >>>>>=3D20 > >>>>>If things got 25% faster, the index is being used - you don't need = > >>>>> > >>>>> > >t=3D > > > > > >>>>> > >>>>> > >>>o do > >>> > >>> > >>> > >>> > >>>>anything other than create it. Do you have a feel for what level of= > >>>> > >>>> > > b=3D > > > > > >>>> > >>>> > >>>andwidth > >>> > >>> > >>> > >>> > >>>>you're getting from the NAS server=3D3F Roughly what percentage of = > >>>> > >>>> > >the =3D > > > > > >>>> > >>>> > >>>vectors in > >>> > >>> > >>> > >>> > >>>>the shapefile are being used to draw your test image=3D3F > >>>> > >>>> > >>>> > >>>> > >>>>>=3D20 > >>>>>Don't mess around with different values yet - just use the default.= > >>>>> > >>>>> > > =3D > > > > > >>>>> > >>>>> > >>>It sounds > >>> > >>> > >>> > >>> > >>>>like you're suffering from either excessively-detailed data (needs > >>>>simplification for the scales you're using), a test that draws a lar= > >>>> > >>>> > >ge > > > > > >>>>percentage of the vectors in the file, and/or poor throughput to the= > >>>> > >>>> > > f=3D > > > > > >>>> > >>>> > >>>ile > >>> > >>> > >>> > >>> > >>>>server. A simple test would be to copy the shapefile to the local d= > >>>> > >>>> > >is=3D > > > > > >>>> > >>>> > >>>k just to > >>> > >>> > >>> > >>> > >>>>see if there's a difference. > >>>>=3D20 > >>>>=3D20 > >>>>Guys, > >>>>=3D20 > >>>>I haven't followed this discussion very closely, so I may have misse= > >>>> > >>>> > >d > > > > > >>>>something. But one issue I have encountered with contours is that t= > >>>> > >>>> > >he=3D > > > > > >>>> > >>>> > >>>y > >>> > >>> > >>> > >>> > >>>>often end up being very large polygons. For instance, a "zero eleva= > >>>> > >>>> > >ti=3D > > > > > >>>> > >>>> > >>>on" > >>> > >>> > >>> > >>> > >>>>coastal contour might well be continental sized. Really big "rings"= > >>>> > >>>> > > g=3D > > > > > >>>> > >>>> > >>>et > >>> > >>> > >>> > >>> > >>>>pushed way up the the spatial index tree and will have to be read fr= > >>>> > >>>> > >om > > > > > >>>>disk and rendered even if the current map view is just somewhere ins= > >>>> > >>>> > >id=3D > > > > > >>>> > >>>> > >>>e > >>> > >>> > >>> > >>> > >>>>the contour ring such that the contour won't actually be visible, bu= > >>>> > >>>> > >t > > > > > >>>>the bounding rectangles of the contour and the view area will overla= > >>>> > >>>> > >p. > > > > > >>>>=3D20 > >>>>If this is Bob's problem, he will really be much better off to split= > >>>> > >>>> > > t=3D > > > > > >>>> > >>>> > >>>he > >>> > >>> > >>> > >>> > >>>>contours into shortish line segments instead of keeping as massive s= > >>>> > >>>> > >in=3D > > > > > >>>> > >>>> > >>>gle > >>> > >>> > >>> > >>> > >>>>geometries as this would allow the spatial index to localize things > >>>>much better. > >>>>=3D20 > >>>>I didn't speak up about this before because it wasn't clear if this = > >>>> > >>>> > >ha=3D > > > > > >>>> > >>>> > >>>s > >>> > >>> > >>> > >>> > >>>>already been done. > >>>>=3D20 > >>>>Best regards, > >>>>--=3D20 > >>>>---------------------------------------+----------------------------= > >>>> > >>>> > >--=3D > > > > > >>>> > >>>> > >>>-------- > >>> > >>> > >>> > >>> > >>>>I set the clouds in motion - turn up | Frank Warmerdam, warmerdam@= > >>>> > >>>> > >po=3D > > > > > >>>> > >>>> > >>>box.com > >>> > >>> > >>> > >>> > >>>>light and sound - activate the windows | http://pobox.com/~warmerdam > >>>>and watch the world go round - Rush | Geospatial Programmer for R= > >>>> > >>>> > >en=3D > > > > > >>>> > >>>> > >>>t > >>> > >>> > >>> > >>> > >>>>=3D20 > >>>>=3D20 > >>>> > >>>> > >>>> > >>>> > >>> > >>> > >>> > >>=20 > >> > >> > > > > > > > From vaiod at BERLOY.COM Fri Oct 15 12:32:12 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Fri, 15 Oct 2004 12:32:12 -0700 Subject: Zoom to Real Point Message-ID: Okay, I have been looking into this for over 24 hours now and can't find the solution and am sure there is one. I have a real point (e.g. 623421.1121, 921128.2021) and want to zoom centered to that point. What am I missing? Eric From yannick.doiron at CIPANB.CA Fri Oct 15 12:50:19 2004 From: yannick.doiron at CIPANB.CA (Yannick Doiron) Date: Fri, 15 Oct 2004 14:50:19 -0500 Subject: jBox zoom problem Message-ID: Hi List, This my first message to the forum. I've installed the jBox applet by following the jBox How-To found in the Mapserver documentation page. Now i am in the "Fine Tunning with Javascript" section like turning the Box dragging on and off. With my little knowledge in Javascript, i tried to figure it out but with no success. I am getting an error with Internet Explorer when i am using the code bellow "...Failure to evaluate reset_handler('jBox',-1.0,-1.0,-1.0,-1.0);". Can someone help me complete or change what I have so fare to have jBox working correctly? I am using mapserver 4.0 as CGI on winxp pro Here's the codes I am using right now. ....here's the jBox applet section... ...here's the radio buttons for the zooms... Query Browse

Pan

Zoom In

Zoom Out

Zoom size ...and here's the hidden input type option value.... Any help will ben greatly appreciate, I am turning around with this for a while.. Yannick Doiron Technicien en g?omatique CIPA inc. 1040, rue du Parc, pi?ce 1 Paquetville (Nouveau-Brunswick) E8R 1J7 T?l?phone: (506) 764-1030 T?l?copieur: (506) 764-1039 www.cipanb.ca From vaiod at BERLOY.COM Fri Oct 15 13:45:24 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Fri, 15 Oct 2004 13:45:24 -0700 Subject: Zoom to Real Point In-Reply-To: <907DDD78335655428D36618B5DA4D1FD1B7C67@s2-ssm-r1.GLFC.Forestry.CA> Message-ID: Yea that is sort of what I am doing now... I have it so that the point is zoomed to but I don't have it centered quite yet... I am using PHP to generate the maps. Here is a part of what I am using: (It makes no sense to my not so math friendly brain what this is doing) $right_brdr = ($link[0] + ($_COOKIE["CONF-HEIGHT"] *2)); $left_brdr = ($link[0] - ($_COOKIE["GIS_CONF-HEIGHT"] )); $top_brdr = ($link[1] + ($_COOKIE["GIS_CONF-WIDTH"] /2)); $bottom_brdr = ($link[1] - ($_COOKIE["GIS_CONF-HEIGHT"] *2)); The cookie values are set currently at 800x600. I then just either take the user to the map or present them with links if several answers to the query are available (e.g. Central & 7th Ave or 7th St) > Brute force approach? > figure out the new window extents that surround the point and use those as > the extents to draw the new map. > > > ---------- > > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > > on behalf of Eric Katherman[SMTP:vaiod at BERLOY.COM] > > Reply To: Eric Katherman > > Sent: Friday, October 15, 2004 3:32 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Zoom to Real Point > > > > Okay, I have been looking into this for over 24 hours now and can't find > > the > > solution and am sure there is one. I have a real point (e.g. > > 623421.1121, 921128.2021) and want to zoom centered to that point. What > > am I missing? > > > > Eric From klawrenc at NRCAN.GC.CA Fri Oct 15 13:38:36 2004 From: klawrenc at NRCAN.GC.CA (Lawrence, Kevin) Date: Fri, 15 Oct 2004 16:38:36 -0400 Subject: Zoom to Real Point Message-ID: Brute force approach? figure out the new window extents that surround the point and use those as the extents to draw the new map. > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Eric Katherman[SMTP:vaiod at BERLOY.COM] > Reply To: Eric Katherman > Sent: Friday, October 15, 2004 3:32 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Zoom to Real Point > > Okay, I have been looking into this for over 24 hours now and can't find > the > solution and am sure there is one. I have a real point (e.g. 623421.1121, > 921128.2021) and want to zoom centered to that point. What am I missing? > > Eric > From richard.greenwood at GMAIL.COM Fri Oct 15 14:09:42 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 15 Oct 2004 15:09:42 -0600 Subject: jBox zoom problem In-Reply-To: Message-ID: On Fri, 15 Oct 2004 14:50:19 -0500, Yannick Doiron wrote: > Hi List, > > This my first message to the forum. I've installed the jBox applet by > following the jBox How-To found in the Mapserver documentation page. Now i > am in the "Fine Tunning with Javascript" section like turning the Box > dragging on and off. With my little knowledge in Javascript, i tried to > figure it out but with no success. I am getting an error with Internet > Explorer when i am using the code bellow "...Failure to evaluate > reset_handler('jBox',-1.0,-1.0,-1.0,-1.0);". > > Can someone help me complete or change what I have so fare to have jBox > working correctly? > > I am using mapserver 4.0 as CGI on winxp pro > > Here's the codes I am using right now. > > > > ....here's the jBox applet section... > > > > codebase="/java/jBox" > archive="jBoxPNG.jar,png.jar" > code="jBoxPNG.class" > width="570" > height="570" > name="jBox" > MAYSCRIPT> > > > > > ...here's the radio buttons for the zooms... > > Query > Browse

> > [zoomdir_0_check]> Pan

> Zoom In

> [zoomdir_-1_check]> Zoom Out

> Zoom size > > ...and here's the hidden input type option value.... > > > > > > > > > > > Any help will ben greatly appreciate, I am turning around with this for a > while.. > > Yannick Doiron > Technicien en g?omatique > CIPA inc. > 1040, rue du Parc, pi?ce 1 > Paquetville (Nouveau-Brunswick) E8R 1J7 > T?l?phone: (506) 764-1030 T?l?copieur: (506) 764-1039 > www.cipanb.ca > Just add an empty reset handler function (below) to your page. function reset_handler(name, minx, miny, maxx, maxy) { } Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mike.and.kerry at GMAIL.COM Fri Oct 15 14:26:20 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Fri, 15 Oct 2004 13:26:20 -0800 Subject: Zoom to Real Point In-Reply-To: <200410151232.12984.vaiod@berloy.com> Message-ID: I use a pop up window that accepts UTM or MGRS coordinates and then re-draws the parent map to that location. What I do is take the supplied x and y values and use them to create a new mapext value. So: xmin = xvalue - 250 xmax= xvalue + 250 ymin= yvalue - 250 ymax= yvalue + 250 (250 is a variable number depending on what scale you want the map to zoom to) I use these to set the parent windows mapext value using: window.opener.document.mapserv.mapext.value = xmin + ' ' + ymin + ' ' + xmax + ' ' + ymax then is is just a matter of submitting the mapserv form in the parent window using: window.opener.document.mapserv.submit(); and your off and running. So far is seems to work pretty well Good luck Mike Davis GIS Specialist Fort Richardson, AK On Fri, 15 Oct 2004 12:32:12 -0700, Eric Katherman wrote: > Okay, I have been looking into this for over 24 hours now and can't find the > solution and am sure there is one. I have a real point (e.g. 623421.1121, > 921128.2021) and want to zoom centered to that point. What am I missing? > > Eric > From ErwinVanderBij at CS.COM Fri Oct 15 14:59:45 2004 From: ErwinVanderBij at CS.COM (Erwin v.d. Bij) Date: Fri, 15 Oct 2004 17:59:45 EDT Subject: Antw: Re: [UMN_MAPSERVER-USERS] SRID = null; how to to convert coordinates fr... Message-ID: Hello Fernando, Your suggestion : data "geom from (select SDO_CS.TRANSFORM(SDO_CS.VIEWPORT_TRANSFORM(, ), ) as geom from )". seems to work! Many thanks! I did consider this option before, but I thought this would be not possible. The documentation of SDO_CS.VIEWPORT_TRANSFORM talks about "optimized rectangles" to be used for for this function. So, I thought polygons would not work. Kind regards, Erwin From thomas at REDMILENIO.COM Fri Oct 15 15:13:51 2004 From: thomas at REDMILENIO.COM (Thomas Shaw) Date: Fri, 15 Oct 2004 18:13:51 -0400 Subject: zooming at specific scale to a latlon point Message-ID: Hello, I'm developing an application with mapserver 4 / phpmapscript,and it does the following: A user introduce, lat lon values to an input textbox, and then that values are inserted in a MySQL DB, so I fetch that values from DB and the thing I'm doing, is to create a pointobj, with that lat lon. The reason why I need that pointobj, is for two things: 1.- I add that point in a new layer, to show it on the map, 2.- I want to make a zoomscale to that point, because I want that the point be zoomed to an initial scale. The first thing is already working good, but my problem is in the second. The way I do that is as follows: 1.- Convert the latlon point to pixel 2.- zoomscale introducing the latlon2pixel pointobj parameter mapscript code: dl('php_mapscript.so'); $map_path="/usr/local/mapserver_4/www/trackerweb/modules/Localiza/"; $map_file="mexico.map"; $map = ms_newMapObj($map_path.$map_file); $extminx = $map->extent->minx; $extminy = $map->extent->miny; $extmaxx = $map->extent->maxx; $extmaxy = $map->extent->maxy; ////ZOOMSCALE $x = $longitud; // this is taken from database $y = $latitud; // this is taken from database $col = $map->width; $row = $map->height; $px = ( ($x-$extminx) * $col ) / ($extmaxx - $extminx); //this converts from latlon to pix x $py = ( ($extmaxy-$y) * $row ) / ($extmaxy - $extminy); //this converts from latlon to pix y $point2 = ms_newpointobj(); $point2->setXY($px, $py); $extent1 = ms_newrectObj(); $extent1->setextent(doubleval($extminx),doubleval($extminy), doubleval($extmaxx), doubleval($extmaxy)); $scale = '150000'; $zoom1= $map->zoomscale($scale, $point2, $map->width, $map->height, $extent1); When I convert the latlon to pixel, it seems that they are well converted, because de zoomscale presents the point centered in the map, but it only happens in a 1:2000000 scale, but if I put a 1:90000 scale, the pointobj doesn't appears in the center of the map, and if I put a 1:5000 scale, the point just does not appears in the map. When I convert latlon to pixel, it results (x,y) pixel values with 6 decimal each one and with that values, I create a pointobj point and use it as a parameter of the zoomscale method, but I think that the zoomscale takes only the integer value of the (x,y) pixel values, and that's why it has an error that at a 1:5000 scale is greater because at that scale the extent is at a nearest to the point. That's because at a 1:2000000 scale the error apparently does not appears. So I hope that I was clear enogh with my explanation, and also hope that someone can help me to solve that error. Thanks in advance Tom Shaw From simon at INF.UNIVALI.BR Fri Oct 15 15:20:25 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Fri, 15 Oct 2004 19:20:25 -0300 Subject: Antw: Re: [UMN_MAPSERVER-USERS] SRID = null; how to to convert coordinates fr... In-Reply-To: Message-ID: Hi Erwin, Another suggestion. Can't you define your map unit for meters? Thank's. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- ErwinVanderBij at cs.com wrote: >Hello Fernando, > >Your suggestion : > >data "geom from (select >SDO_CS.TRANSFORM(SDO_CS.VIEWPORT_TRANSFORM(, millimeters>), ) as geom from )". > >seems to work! > >Many thanks! > >I did consider this option before, but I thought this would be not possible. >The documentation of SDO_CS.VIEWPORT_TRANSFORM talks about "optimized >rectangles" to be used for for this function. So, I thought polygons would not work. > >Kind regards, > >Erwin > > > From Tom.Kralidis at EC.GC.CA Fri Oct 15 16:59:53 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 15 Oct 2004 19:59:53 -0400 Subject: Creating querymap via CGI parameters Message-ID: Hi, In the itasca demo, querying features displays a standard querymap, as well as cached query. Looking at the HTML, it looks like: Standard querymap: ms_tmp/DEMO10978846173120.gif Cached query: /cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfile=c:/ms4w/ tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln2&mode=map& size=200+200 How can one replicate this behaviour (i.e. output a querymap) with CGI parameters through MapServer CGI? Thanks ..Tom ========================= Tom Kralidis Systems Scientist Environment Canada Tel: +01-905-336-4409 http://www.ec.gc.ca/ From andy_canfield at HOTMAIL.COM Fri Oct 15 17:01:58 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Fri, 15 Oct 2004 17:01:58 -0700 Subject: Win32 binaries with SDE, anyone ? Message-ID: I know you guys are working on the fcgi for win32 but if they want something sooner there is another option. DM Solutions can do custom builds for people at their hourly support rate. I sat down and worked it out once. I could get all kinds of custom stuff put into the build at their rate for much less than if you factor in all the time it would take me to get it all set up to compile. ( At the time I was just trying to get more layers into mapserver ) I believe they produce nightly WIN32 binaries so I wonder if it would just be faster fot these folks to get a custom compiled binary? We have found the rate more than reasonable and it gives us more time to actually build applications against the binaries rather than using that same time trying to get something to compile just to begin testing against. That way they could have a solution up and going and tested and then in the future they could get the fcgi binaries from you guys. Just a thought anyway. >From: Paul Ramsey >Reply-To: Paul Ramsey >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Win32 binaries with SDE, anyone ? >Date: Fri, 15 Oct 2004 07:36:59 -0700 > >Mike, we are currently scraping the last of the bugs off the CVS >version with support for fcgi. Once we have a working copy, we will >distribute it for you and Lorna to you. >Paul > >On 14-Oct-04, at 10:06 PM, Mike Davis wrote: > >>I am in the same position... We have an existing Mapserver site >>running mainly from shapefiles. Moving to SDE based data is a must >>for our organization to continue use of Mapserver. Unfortunately I >>haven't been able to get authorization to install the tools necessary >>to build a custom install including SDE support. If someone does >>happen to have a win32 binary available for testing I would appreciate >>it. >> >>On a related note... does anyone know anything about the image support >>in SDE 9.0? I would love to be able to access the same imagery set I >>am serving up to ESRI users. I imagine there might be some speed >>gains to be had as well. >> >>Thanks in advance >> >>Mike Davis >>GIS Specialist >>Fort Richardson, Ak >> >> >>On Tue, 12 Oct 2004 22:32:46 -0500, Lorna >>wrote: >>>Hi >>> >>>I'm hoping someone can offer a copy of their latest win32 Mapserv >>>binary >>>compiled with SDE support. >>> >>>I have SDE 8.3 client software installed, I just dont have the tools >>>to >>>compile Mapserver under windows. I want to use Mapserver to server >>>spatial >>>data, instead of ARCIMS but if I cant get MapServer with SDE enabled >>>I'll >>>have to scrap this idea, which is a real shame ! >>> >>>Thanks, Lorna >>> _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From ikebrian at YAHOO.COM Fri Oct 15 20:13:19 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Fri, 15 Oct 2004 20:13:19 -0700 Subject: Mapserver and ArcMap Works Message-ID: Hello, I would like to know if mapserver can map projects/works done in ArcMap.I would like know know its possibility. Thank you very much. --------------------------------- Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ikebrian at YAHOO.COM Fri Oct 15 20:20:16 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Fri, 15 Oct 2004 20:20:16 -0700 Subject: Statistical Maps Message-ID: Hello, I would like to know if it is possible to map Pie and Bar Charts using mapserver and if so I would need a helping hand in writing the codes. Thank you very much. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Fri Oct 15 21:05:15 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 15 Oct 2004 21:05:15 -0700 Subject: Mapserver and ArcMap Works In-Reply-To: <20041016031319.40782.qmail@web60510.mail.yahoo.com> Message-ID: I have confirmed that you can EXPORT any map from ArcMap into an image file like TIFF or JPEG. If you select the option to create a "world file", then the image can be used in MapServer as a layer. On October 15, 2004 08:13 pm, Ike Brian wrote: > Hello, > I would like to know if mapserver can map projects/works done in ArcMap.I > would like know know its possibility. Thank you very much. > > > --------------------------------- > Do you Yahoo!? > Express yourself with Y! Messenger! Free. Download now. From pcreso at PCRESO.COM Fri Oct 15 21:20:11 2004 From: pcreso at PCRESO.COM (Brent Wood) Date: Fri, 15 Oct 2004 21:20:11 -0700 Subject: help novice getting Itasca demo working Message-ID: Hi, I have a fair bit of GIS experience, but no html or webserver experience, so am asking for some help to get the mapserver itasca demo running. I'm using SuSE Linux v9.1. /srv/www seems to be where SuSE is set up apache to run from.... I have got the initial screen OK on my browser, at http://192.168.1.17/mapserver_demos/itasca/index.html I thought I had set up the permissions & paths correctly, as described in the instructions at http://mapserver.gis.umn.edu/demo_readme.html#init but when I click the initialise button, the image is blank, as are the Legend & icon at the bottom of the RHS dialog area. my index.html file is edited to The *.png images of the legend, scale & map are being written to /srv/www/htdocs/tmp/, but are not displayed by the browser. Any advice appreciated... Thanks, Brent Wood From mj at SCI.FI Sat Oct 16 05:52:45 2004 From: mj at SCI.FI (Mike Jackson) Date: Sat, 16 Oct 2004 15:52:45 +0300 Subject: Creating querymap via CGI parameters In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367858@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: >Hi, > >In the itasca demo, querying features displays a standard querymap, as >well as cached query. > >Looking at the HTML, it looks like: > >Standard querymap: ms_tmp/DEMO10978846173120.gif > >Cached query: >/cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfile=c:/ms4w/ >tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln2&mode=map& >size=200+200 > >How can one replicate this behaviour (i.e. output a querymap) with CGI >parameters through MapServer CGI? > Hi Tom, I think this might be what you're looking for: -- mike From mj at SCI.FI Sat Oct 16 06:11:42 2004 From: mj at SCI.FI (Mike Jackson) Date: Sat, 16 Oct 2004 16:11:42 +0300 Subject: help novice getting Itasca demo working In-Reply-To: <20041016042011.86971.qmail@web12206.mail.yahoo.com> Message-ID: Brent Wood wrote: > > my index.html file is edited to > > > value="/srv/www/htdocs/mapserver_demos/itasca/itasca.map"> > > > value="/srv/www/htdocs/tmp/"> > > > > The *.png images of the legend, scale & map are being written to > /srv/www/htdocs/tmp/, but are not displayed by the browser. Hi, What does the WEB section in your mapfile look like? You should have something like this: WEB TEMPLATE 'foo.html' IMAGEPATH '/srv/www/htdocs/tmp/' IMAGEURL '/tmp/' END HTH, -- mike From j.l.h.hartmann at UVA.NL Sat Oct 16 09:01:56 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Sat, 16 Oct 2004 18:01:56 +0200 Subject: Bug in CLASS expression in 4.2.4 ?? In-Reply-To: <416FFEAE.1040803@pobox.com> Message-ID: Can others comfirm this very weird problem with CLASS expressions in 4.2.4? I'm using the following elementary MapFile: layer name municipalities type polygon status default data "municipalities.shp" class expression([GEM_NUM] < 500) color 255 0 0 outlinecolor 0 0 0 end class expression([GEM_NUM] >= 500) color 0 255 0 outlinecolor 0 0 0 end end It should show Dutch municipalities with administrative numbers (variable GEM_NUM) below 500 in red and above in green. It works in 4.2.3, but not in 4.2.4 (see attached gifs). In 4.2.4 everything gets assigned to the first class, whatever the expression. However, simple expressions, with a CLASSITEM and a string or a regex, are correct in both versions. I can't imagine that this has gone unnoticed, but I can't imagine either what I could have done wrong. It is an extremely simple MapFile. I had the same problem with a much more complex PostGIS case, so I first thought it was the PostGIS connector, but it is the same for a simple shapefile. Any ideas? Jan Jan Hartmann Department of Geography University of Amsterdam -------------- next part -------------- A non-text attachment was scrubbed... Name: ms4.2.3.gif Type: image/gif Size: 10909 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms4.2.4.gif Type: image/gif Size: 10188 bytes Desc: not available URL: From tylermitchell at SHAW.CA Sat Oct 16 09:39:13 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sat, 16 Oct 2004 09:39:13 -0700 Subject: help novice getting Itasca demo working In-Reply-To: <20041016042011.86971.qmail@web12206.mail.yahoo.com> Message-ID: > I'm using SuSE Linux v9.1. We are running the exact same platform here. > Note there is a typo in the path above - should be "/srv/www/cgi-bin" you are missing the leading slash. > The *.png images of the legend, scale & map are being written to > /srv/www/htdocs/tmp/, but are not displayed by the browser. Can you try to load the image manually from a URL, i.e. http://192.168.1.17/tmp/.png ? I'm wondering too what your map file looks like. Glad to see you getting into this Brent - are you going to post us some great GMT maps? Tyler From Tom.Kralidis at EC.GC.CA Sat Oct 16 09:47:05 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sat, 16 Oct 2004 12:47:05 -0400 Subject: Creating querymap via CGI parameters Message-ID: > -----Original Message----- > From: Mike Jackson [mailto:mj at sci.fi] > Sent: Saturday, 16 October, 2004 08:53 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Creating querymap via CGI > parameters > > > Kralidis,Tom [Burlington] wrote: > > >Hi, > > > >In the itasca demo, querying features displays a standard > querymap, as > >well as cached query. > > > >Looking at the HTML, it looks like: > > > >Standard querymap: ms_tmp/DEMO10978846173120.gif > > > >Cached query: > >/cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfi > le=c:/ms4w > >/ > >tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln > 2&mode=map& > >size=200+200 > > > >How can one replicate this behaviour (i.e. output a > querymap) with CGI > >parameters through MapServer CGI? > > > > Hi Tom, > I think this might be what you're looking for: > > > Didn't work. I'm trying to do this via GET, i.e.: http://host/cgi-bin/mapserv?map=map/config.map&mode=querymap&img.x=291&i mg.y=184&imgext=-86.82379248688089%2042.77901146125532%20-80.82379248631 712%2046.52901146160768&qlayer=man_OHMI&buffer=20&savequery=true But the result I get is: msQueryByPoint(): Search returned no results. No matching record(s) found. If I do the exact same query as OGC:WMS GetFeatureInfo, I get records back. So I'm guessing something in my CGI GET call is incorrect? What I'm trying to do is, when an OGC:WMS client makes a GetFeatureInfo request with format text/html, the HTML returned (via templates defined in mapfile) has a small image of the features highlighted inline in the HTML. ..Tom > -- > mike > From pcreso at PCRESO.COM Sat Oct 16 11:57:44 2004 From: pcreso at PCRESO.COM (Brent Wood) Date: Sat, 16 Oct 2004 11:57:44 -0700 Subject: help novice getting Itasca demo working In-Reply-To: <200410160939.13466.tylermitchell@shaw.ca> Message-ID: --- Tyler Mitchell wrote: Hi Tyler.... Nice to meet you here :-) > > I'm using SuSE Linux v9.1. > > We are running the exact same platform here. I switched from Mandrake to use LinGis. I see there is now a DebianGIS sub-project as well.... > > > > > Note there is a typo in the path above - should be "/srv/www/cgi-bin" you are > missing the leading slash. Very close, I fixed that. After a good night's sleep I revisited the thing, the line was missing the trailing slash on "/tmp/" which casued the wrong path to the image... "view source" on my browser was the obvious thing to try that never occurred to me yesterday... Now all better! > > > Glad to see you getting into this Brent - are you going to post us some great > GMT maps? Well, now that you mention it :-) (BTW, did you get the GMT earthquake plotter working?) A local project I am involved with is about complete. To provide a freely redistributable vector topographic dataset of all the digitised features on the 1:50,000 topo map set covering New Zealand. 2 CD's of bz2'd shapefiles. Road, rail, golf courses, caves, quarries, rivers, streams, lakes, boat ramps... I'm extracting all the spot elevation data & the 20m elevation contour vertices to derive a DEM with GMT. Looks to be about 80,000,000 points (Oh for OGR to have GMT format support!). All the coastline vertices added with elevation 0. From nhv at CAPE.COM Sat Oct 16 12:15:29 2004 From: nhv at CAPE.COM (Norman Vine) Date: Sat, 16 Oct 2004 15:15:29 -0400 Subject: help novice getting Itasca demo working In-Reply-To: <20041016185744.50233.qmail@web12202.mail.yahoo.com> Message-ID: Brent Wood writes: > > 2 CD's of bz2'd shapefiles. Road, rail, golf courses, caves, quarries, rivers, > streams, lakes, boat ramps... I'm extracting all the spot elevation data & the > 20m elevation contour vertices to derive a DEM with GMT. Looks to be about > 80,000,000 points (Oh for OGR to have GMT format support!). Brent If you use Python then these two packages in conjunction with the GDAL Python extension should be all you need to get a GMT grid into GDAL and more :-) http://starship.python.net/crew/hinsen/scientific.html http://starship.python.net/crew/jhauser/NCfns.py.html If you want something more interactive then this might help http://w3.ualg.pt/~jluis/mirone/ HTH Norman From tylermitchell at SHAW.CA Sat Oct 16 23:13:00 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sat, 16 Oct 2004 23:13:00 -0700 Subject: v4.2.4 - Typo on MapServer download page Message-ID: Noticed the recent announcement re: 4.2.4 http://mapserver.gis.umn.edu/dload.html has an href to the 4.2.4 tar ball but the text still says: mapserver-4.2.3.tar.gz: source code/demo. Obviously a copy/paste from the last release but only the ref was updated. Tyler From mj at SCI.FI Sun Oct 17 08:58:02 2004 From: mj at SCI.FI (Mike Jackson) Date: Sun, 17 Oct 2004 18:58:02 +0300 Subject: v4.2.4 - Typo on MapServer download page In-Reply-To: <200410162313.00660.tylermitchell@shaw.ca> Message-ID: Tyler Mitchell wrote: > Noticed the recent announcement re: 4.2.4 > > http://mapserver.gis.umn.edu/dload.html has an href to the 4.2.4 tar ball but > the text still says: > > mapserver-4.2.3.tar.gz: source code/demo. I tried 4.2.4, and it seems to have a bug with handling numerical class expressions, such as EXPRESSION ([POPULATION] < 500000) ... EXPRESSION ([POPULATION] >= 500000 and [POPULATION] < 1000000 ) ... EXPRESSION ([POPULATION] >= 1000000) I have those in seperate layers, and regardless which layer was applied, the top equation ([POPULATION] < 500000) was used. This is working correctly for me in 4.2.3. Perhaps somebody else can verify this. Or perhaps the EXPRESSION interface has changed in 4.2.4... BR, -- mike From el at VINKO.CL Sun Oct 17 11:35:13 2004 From: el at VINKO.CL (Vinko Vrsalovic) Date: Sun, 17 Oct 2004 15:35:13 -0300 Subject: SymbolObj PHP/Mapscript In-Reply-To: <200410162313.00660.tylermitchell@shaw.ca> Message-ID: Hello, I have some questions about symbols and in particular with PHP MapScript implementation of them. From what I gather at the documentation there's no way to supply the image path for a PIXMAP symbols (which means you have to have a symbolfile laying around if you'll use images as symbols). Is this correct? Also, I couldn't find in the docs what a CARTOLINE symbol or a SIMPLE symbol is. Any info on this would be greatly appreciated. Thanks a lot, -- Vinko Vrsalovic From el at VINKO.CL Sun Oct 17 16:49:25 2004 From: el at VINKO.CL (Vinko Vrsalovic) Date: Sun, 17 Oct 2004 20:49:25 -0300 Subject: Statistical Maps In-Reply-To: <20041016032016.64487.qmail@web60505.mail.yahoo.com> Message-ID: On Fri, Oct 15, 2004 at 08:20:16PM -0700, Ike Brian wrote: > Hello, > I would like to know if it is possible to map Pie and Bar Charts using mapserver and if so I would need a helping hand in writing the codes. > Thank you very much. I have done it with PHP MapScript and JpGraph. I build the graphs from the data using JpGraph, and then I place the graphs as a point layer using the generated graphs as PIXMAP symbols, adding them to the symbolfile dynamically. -- MSc Vinko Vrsalovic From gis at UNDPHAIS.ORG.NP Sun Oct 17 22:53:10 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Mon, 18 Oct 2004 11:38:10 +0545 Subject: example with rubberband In-Reply-To: <416F7A5F.6030700@deprem.gov.tr> Message-ID: On Fri, 15 Oct 2004 10:21:03 +0300, temiz wrote: > hello Mr.Sandeep, > > thank you for your help. > I have examined the javascript code you suggested. > Unfortunately I have also little knowledge about javascript. So, I > coudn't > manage to get rectangle coordinates drawn as rubberband. > I think getting coord. values is the way for zooming. > > Do you have any idea about how coord values can get? > > best wishes > > Bashyal wrote: > >> On Thu, 14 Oct 2004 17:13:37 +0300, temiz wrote: >> >>> hello >>> >>> for zooming, I want to build rubberband. >>> How can I get an example which contain rubberband for zooming ? >>> >>> kind regards >>> >>> Ahmet temiz >>> >>> >>> ______________________________________ >>> Inflex - installed on mailserver for domain @deprem.gov.tr >>> Queries to: postmaster at deprem.gov.tr >>> >>> ______________________________________ >>> The views and opinions expressed in this e-mail message are the >>> sender's >>> own >>> and do not necessarily represent the views and the opinions of >>> Earthquake Research Dept. >>> of General Directorate of Disaster Affairs. >>> >>> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >>> olarak T.C. >>> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >>> nitelikte degildir. >>> >> >> Ahmet, >> >> I've found the rubberband zoom box by Gayathri Swaminathan to be simple >> and quite useful. You can download it here: >> http://mapserver.gis.umn.edu/user_utilities/RBand.zip >> Just call startRubber and stopRubber functions on mouseDown and mouseUp >> events on the main map image and put hidden form elements containing the >> width and height of the "rubberband" layer. >> >> Works pretty well for my limited knowledge of javascript and mapserver >> :). >> >> Regards. >> >> -- Sandeep Bashyal >> -- National GIS Officer >> Humanitarian Assistance Information System (HAIS) >> United Nations (NEP/01/008) >> UN House, Pulchowk >> G.P.O. Box 107 >> Kathmandu, Nepal >> Tel: (+977) 01 5543957 >> (+977) 01 5554304 >> Cell:(+977) 9841270854 >> Fax: (+977) 01 5528059 >> -------------------------------------------------- >> mailto:gis at undphais.org.np >> mailto:sandeep at earthmapping.com >> http://www.undp.org.np >> >> > > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's > own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > > Ahmet, I'm new to javascript too and could not quite understand how the rubberband zoom box works in the included example file. This is how I improvised: Contents of rubberband.js: --------------------------- function startRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = 0; r.style.height = 0; r.style.pixelLeft = event.x; r.style.pixelTop = event.y; r.style.visibility = 'visible'; } else if (document.layers) { var r = document.rubberBand; r.clip.width = 0; r.clip.height = 0; r.left = evt.x; r.top = evt.y; r.visibility = 'show'; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = 0; r.style.height = 0; r.style.left = evt.clientX + 'px'; r.style.top = evt.clientY + 'px'; r.style.visibility = 'visible'; } document.captureEvents(Event.MOUSEMOVE); document.onmousemove = moveRubber; } function moveRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = event.x - r.style.pixelLeft - 2; r.style.height = event.y - r.style.pixelTop - 2; var f = document.forms('viewmap'); f.w.value = r.style.width; f.h.value = r.style.height; } else if (document.layers) { var r = document.rubberBand; r.clip.width = evt.x - r.left - 2 ; r.clip.height = evt.y - r.top - 2; r.document.open(); r.document.write('
<\/td><\/tr><\/table>'); r.document.close(); var f = document.forms('viewmap'); f.w.value = r.clip.width; f.h.value = r.clip.height; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = evt.clientX - parseInt(r.style.left) - 2; r.style.height = evt.clientY - parseInt(r.style.top) - 2; var ht = document.getElementById('h'); var wt = document.getElementById('w'); wt.value = r.style.width; ht.value = r.style.height; } } function stopRubber (evt) { document.releaseEvents(Event.MOUSEMOVE); document.onmousemove = null; } Contents of the form: ---------------------------------------------------
Zooming to rectangle (I'm using php mapscript): ----------------------------------------------------- $zoom_rect = ms_newRectObj(); $zoom_rect->setextent($_POST["mapa_x"] - $_POST["w"],$_POST["mapa_y"], $_POST["mapa_x"],$_POST["mapa_y"]-$_POST["h"]); $map->zoomrectangle($zoom_rect,$map->width,$map->height,$current_extent); //where $current_extent is a rectangular object with the current extent of the map. Hope this helps a bit. I've tested it on IE6, NS7, Opera7.5 and Firefox0.93. Regards. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From ikebrian at YAHOO.COM Sun Oct 17 22:41:04 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Sun, 17 Oct 2004 22:41:04 -0700 Subject: Mapserver and ArcMap Works In-Reply-To: <200410152105.15784.tylermitchell@shaw.ca> Message-ID: Thank you very much its working as you told. Tyler Mitchell wrote:I have confirmed that you can EXPORT any map from ArcMap into an image file like TIFF or JPEG. If you select the option to create a "world file", then the image can be used in MapServer as a layer. On October 15, 2004 08:13 pm, Ike Brian wrote: > Hello, > I would like to know if mapserver can map projects/works done in ArcMap.I > would like know know its possibility. Thank you very much. > > > --------------------------------- > Do you Yahoo!? > Express yourself with Y! Messenger! Free. Download now. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From aynstyn065 at YAHOO.COM Mon Oct 18 03:19:42 2004 From: aynstyn065 at YAHOO.COM (Ng Seah Chew) Date: Mon, 18 Oct 2004 05:19:42 -0500 Subject: Installation Failure with Proj.dll entry Problem Message-ID: I am running on Windows 2k3 with Apache 1.3.31. I have followed the instructions on installing the MapServer 4.2 ReadMe file. The MapServer 4.2 is a Win32 binary installer. I extracted the files to C:/MapServer, moved the "proj" folder to C:/Proj and copied the mapserv.exe under "bin" directory to the apache cgi-bin directory. and set the PATH environment variable to "C:\MapServer\lib" when run from web browser, I get an Internal Server Error Message, and if i double click on the Exe file, i get the following message: "The procedure entry point pj_units could not be located in the dynamic link library PROJ.DLL" What have i left out during the installation? Please help. Thanks. From imd_listuser at COMCAST.NET Mon Oct 18 05:31:53 2004 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Mon, 18 Oct 2004 08:31:53 -0400 Subject: Shptree running out of memory Message-ID: Greetings, I would like to be able to use a shapefile with about 2 million point features in it in my mapserver application. I tried to index the shapefile with shptree with no success. The error I received was that virtual memory was low, then shptree crashed. Is it reasonable to expect shptree to be able to index this file or should I find another way of displaying the features? Thanks Charlie From gerry.creager at TAMU.EDU Mon Oct 18 05:54:25 2004 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Mon, 18 Oct 2004 07:54:25 -0500 Subject: Shptree running out of memory In-Reply-To: <90264B8395BF154DB2CB12B068DFFAE9052CB1@westward.im-design.net> Message-ID: What OS, and hardware (especially memory and swap) config do you have? A low VM warning is a clear indication you were trying to overrun the capabilities of the machine gerry IMD Listuser wrote: > Greetings, > > I would like to be able to use a shapefile with about 2 million point > features in it in my mapserver application. > > I tried to index the shapefile with shptree with no success. The error I > received was that virtual memory was low, then shptree crashed. Is it > reasonable to expect shptree to be able to index this file or should I > find another way of displaying the features? > > Thanks > > Charlie > -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From warjac_warjac at HOTMAIL.COM Mon Oct 18 05:48:58 2004 From: warjac_warjac at HOTMAIL.COM (Floyd) Date: Mon, 18 Oct 2004 07:48:58 -0500 Subject: Scaling Max Min problem Message-ID: Hello List I'am having problems, with the zooming function of my wms server(mapserver). The mapfile below shows the current parameter and values which have been used. Problem: When zooming using the wms client of mapinfo the define value of Min 8 Km and Max 20 Km are not correct. Question : Are the UNITS = Meters as defined within the given mapfile correct? NAME "Stuttgart" SIZE 600 600 STATUS ON EXTENT 470272.59 5371627.91 554886.94 5427997.07 UNITS METERS #IMAGECOLOR 255 255 255 #IMAGETYPE png SYMBOLSET "/var/www/mapserver/config/symbols.sym" FONTSET "/var/www/mapserver/config/fonts.txt" SHAPEPATH "/var/www/mapserver/maps/stuttgart/maps" WEB IMAGEPATH "/var/www/mapserver/tmp/" #IMAGEURL "/mapserver/tmp/" METADATA "wms_title" "Stuttgart WMS" "wms_onlineresource" "http://192.168.1.1/cgi-bin/mapserv?map=/var/www/mapserver/maps/stuttgart/mapfile/stuttgart.map&" END #END OF METADATA END # END OF WEB PROJECTION "init=epsg:32632" END # END OF PROJECTION LAYER NAME "Topographische Karte 1:25.000" STATUS on TILEINDEX "tk25/tk25.shp" TYPE RASTER MINSCALE 8000 MAXSCALE 20000 METADATA "wms_title" "Topographische Karte 1:25.000" "wms_onlineresource" "http://192.168.1.1/cgi-bin/mapserv?map=/var/www/mapserver/maps/stuttgart/maps/tk25/tk25.shp&" END # END OF LAYER END # END OF METADATA END # END OF MAPFILE From j.l.h.hartmann at UVA.NL Mon Oct 18 06:21:44 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 18 Oct 2004 15:21:44 +0200 Subject: dumping shape coordinates In-Reply-To: <2576812186CDD411BF1500508B6DCE950736775B@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi, Is there a simple way to dump the coordinates of a shape in *image* coordinates. I can use the [shpxy] template to get the world coordinates, but is it possible to get these transformed in pixel-coordinates? Jan From bluecarto at FREE.FR Mon Oct 18 06:47:13 2004 From: bluecarto at FREE.FR (Pierre GIRAUD) Date: Mon, 18 Oct 2004 15:47:13 +0200 Subject: query on oraclespatial using OGR/OCI In-Reply-To: <4173C368.7090603@uva.nl> Message-ID: Hello, Following the good advices of Frank Warmerdam, I improve in using oracle spatial data with spatial indexes. For now, I know that I should not use sql statements in the mapfile but queries directly to the table : DATA "my_table" instead of DATA "select * from my_table" Both return the same images. Shapes are well drawn, and labeling is correct. But the first (more performant) statement doesn't give good results to a query. The data returned doesn't correspond to what is expected. And no shape is highlighted. Do someone using Oracle have same problems ? Pierre GIRAUD camptocamp.com From imd_listuser at COMCAST.NET Mon Oct 18 06:47:23 2004 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Mon, 18 Oct 2004 09:47:23 -0400 Subject: Shptree running out of memory Message-ID: Hi The machine is a laptop, Pentium M, 1.3gHz. 1 GB Ram, Windows XP sp2 Charlie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gerry Creager N5JXS Sent: Monday, October 18, 2004 8:54 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Shptree running out of memory What OS, and hardware (especially memory and swap) config do you have? A low VM warning is a clear indication you were trying to overrun the capabilities of the machine gerry IMD Listuser wrote: > Greetings, > > I would like to be able to use a shapefile with about 2 million point > features in it in my mapserver application. > > I tried to index the shapefile with shptree with no success. The error > I received was that virtual memory was low, then shptree crashed. Is > it reasonable to expect shptree to be able to index this file or > should I find another way of displaying the features? > > Thanks > > Charlie > -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From mandhare at STATE.PA.US Mon Oct 18 06:50:09 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Mon, 18 Oct 2004 08:50:09 -0500 Subject: map images source location Message-ID: Hello!! I'm trying to learn the working of mapserver. When I run the Itasca demo, some files get created in the tmp folder(which i have created). My question is, when mapserver draws the map in the browser, from where does it get the different images(Itasca map,scalebar,legend,reference etc.)? For the time being, i have set the path in different html files (itasca_basic.html,itasca_adds_frames.html etc.) to the files that are created under the tmp folder(for scalebar,reference,map etc). But I'm not sure about whether to hard code these paths to temporary files created by Mapserver. Because when i go throught itasca.map, I see that for reference, there is a "image" object which is set to the path in the graphics folder. So, could anybody tell me that from where mapserver takes the map/images to draw in the browser... from tmemporary files which it creates or from the graphics foder? Thank you, Manjiri From sobomsawin at KASSINI.COM Mon Oct 18 07:00:35 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 18 Oct 2004 10:00:35 -0400 Subject: [UMN_MAPSERVER-USERS] Creating querymap via CGI parameters In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367858@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I never be able to get Mapserver 4.0 works in querymap mode (error 500). I finally succeeded with Mapserver 4.2. My URL looks like this: http://localhost/cgi-bin/mapserv_42?map=/var/www/html/demo.map&layers=poly+ bkgd+lakes+roads&mapsize=791+749&imgext=-2341026.679536+-976279.0592349669+3 029014.36292+4108266.1303309673&mode=nquerymap&imgbox=53+221+664+721 Coordinates are in Lambert (meters). You can also cache some variables like mode and mapsize. You need a dummy query layer in your mapfile (or in hidden tag). I use an imgbox because this is a nquerymap (query with a rubberband square). Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Kralidis,Tom [Burlington] Envoy??: 15 octobre 2004 20:00 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Creating querymap via CGI parameters Hi, In the itasca demo, querying features displays a standard querymap, as well as cached query. Looking at the HTML, it looks like: Standard querymap: ms_tmp/DEMO10978846173120.gif Cached query: /cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfile=c:/ms4w/ tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln2&mode=map& size=200+200 How can one replicate this behaviour (i.e. output a querymap) with CGI parameters through MapServer CGI? Thanks ..Tom ========================= Tom Kralidis Systems Scientist Environment Canada Tel: +01-905-336-4409 http://www.ec.gc.ca/ --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 From jhare at BEER.COM Mon Oct 18 06:54:02 2004 From: jhare at BEER.COM (Jason Hare) Date: Mon, 18 Oct 2004 09:54:02 -0400 Subject: trouble navigating ms4w directories Message-ID: An HTML attachment was scrubbed... URL: From nhv at CAPE.COM Mon Oct 18 08:30:29 2004 From: nhv at CAPE.COM (Norman Vine) Date: Mon, 18 Oct 2004 11:30:29 -0400 Subject: dumping shape coordinates In-Reply-To: <4173C368.7090603@uva.nl> Message-ID: Jan Hartmann writes: > > Is there a simple way to dump the coordinates of a shape in *image* > coordinates. I can use the [shpxy] template to get the world > coordinates, but is it possible to get these transformed in > pixel-coordinates? Hi Jan, There is no direct support for this that I know of but .... I think that if you request an ImageMap you could parse the transformed coordinates from that fairly easily. Note I have never tried this. HTH Norman From vaiod at BERLOY.COM Mon Oct 18 10:41:35 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Mon, 18 Oct 2004 10:41:35 -0700 Subject: Zoom to Real Point In-Reply-To: <907DDD78335655428D36618B5DA4D1FD1B7C6B@s2-ssm-r1.GLFC.Forestry.CA> Message-ID: Yes and no, I am able to zoom to the point relatively closely by creating the extents with these lines: $right_brdr = ($link[0] + ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] *2)); $left_brdr = ($link[0] - ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] /2)); $top_brdr = ($link[1] + ($_COOKIE["CTRENCH_GIS_CONF-WIDTH"] /2)); $bottom_brdr = ($link[1] - ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] *4)); Why, I don't know because I thought initially I would just need to divide each one by two and add the diff to each side of the point. That was zooming to the point but it was in the bottom right every time. What I have above seems to take me close to centering that point. If anybody has a better way I would love to hear your opinion. Mike's suggestion seems sound although I should be able to get the same result with PHP and setting the extent with setextent(). Eric > with what Mike Davis and I wrote were you able to get this thing figured > out? > > KL > > > ---------- > > From: Eric Katherman[SMTP:vaiod at berloy.com] > > Sent: Friday, October 15, 2004 4:45 PM > > To: Lawrence, Kevin > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to Real Point > > > > Yea that is sort of what I am doing now... I have it so that the point is > > zoomed to but I don't have it centered quite yet... > > > > I am using PHP to generate the maps. > > > > Here is a part of what I am using: (It makes no sense to my not so math > > friendly brain what this is doing) > > > > $right_brdr = ($link[0] + ($_COOKIE["CONF-HEIGHT"] *2)); > > $left_brdr = ($link[0] - ($_COOKIE["GIS_CONF-HEIGHT"] )); > > $top_brdr = ($link[1] + ($_COOKIE["GIS_CONF-WIDTH"] /2)); > > $bottom_brdr = ($link[1] - ($_COOKIE["GIS_CONF-HEIGHT"] *2)); > > > > The cookie values are set currently at 800x600. > > > > I then just either take the user to the map or present them with links if > > several answers to the query are available (e.g. Central & 7th Ave or 7th > > St) > > > > > Brute force approach? > > > figure out the new window extents that surround the point and use those > > > > as > > > > > the extents to draw the new map. > > > > > > > ---------- > > > > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > > > > on behalf of Eric Katherman[SMTP:vaiod at BERLOY.COM] > > > > Reply To: Eric Katherman > > > > Sent: Friday, October 15, 2004 3:32 PM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: [UMN_MAPSERVER-USERS] Zoom to Real Point > > > > > > > > Okay, I have been looking into this for over 24 hours now and can't > > > > find > > > > > > the > > > > solution and am sure there is one. I have a real point (e.g. > > > > 623421.1121, 921128.2021) and want to zoom centered to that point. > > > > What > > > > > > am I missing? > > > > > > > > Eric From mike.and.kerry at GMAIL.COM Mon Oct 18 19:19:16 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Mon, 18 Oct 2004 18:19:16 -0800 Subject: Zoom to Real Point In-Reply-To: <200410181041.35119.vaiod@berloy.com> Message-ID: I am not sure I follow your code exactly but I think you are multiplying by two when you should be dividing eg: $right_brdr = ($link[0] + ($_COOKIE["CTRENCH_GIS_CONF-WIDTH"] /2)); $left_brdr = ($link[0] - ($_COOKIE["CTRENCH_GIS_CONF-WIDTH"] /2)); $top_brdr = ($link[1] + ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] /2)); $bottom_brdr = ($link[1] - ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] /2)); If I follow your intent correctly you want to set the border extents equal to "CTRENCH_GIS_HEIGHT" x "CTRENCH_GIS_WIDTH" so you want to add half the height to the top, subtract half the height from the bottom, add half the width to the right and subtract half the width from the left. By multiplying by two instead of dividing you are positioning your desired point 1/4 of the way across the screen. But it is the end of a long day and I might be code drunk -Mike From vaiod at BERLOY.COM Mon Oct 18 20:21:15 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Mon, 18 Oct 2004 20:21:15 -0700 Subject: Zoom to Real Point In-Reply-To: <631c85c104101819192236c5@mail.gmail.com> Message-ID: Yea the example I posted was the math that seems to work, albeit conceptually wrong. I initially started doing exactly what you are talking about 800/2 = 400 so add 400 to the right and subtract from the left and apply the same concept to top/bottom. It worked kind of but centered the point on the bottom right corner. I must be overlooking something but what I have seems to work for whatever reason... I wonder why there isn't a builtin function for that e.g. pointcenter(x,y) that would make this easy. Eric > I am not sure I follow your code exactly but I think you are > multiplying by two when you should be dividing eg: > > $right_brdr = ($link[0] + ($_COOKIE["CTRENCH_GIS_CONF-WIDTH"] /2)); > $left_brdr = ($link[0] - ($_COOKIE["CTRENCH_GIS_CONF-WIDTH"] /2)); > $top_brdr = ($link[1] + ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] /2)); > $bottom_brdr = ($link[1] - ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] /2)); > > If I follow your intent correctly you want to set the border extents > equal to "CTRENCH_GIS_HEIGHT" x "CTRENCH_GIS_WIDTH" so you want to add > half the height to the top, subtract half the height from the bottom, > add half the width to the right and subtract half the width from the > left. By multiplying by two instead of dividing you are positioning > your desired point 1/4 of the way across the screen. > > But it is the end of a long day and I might be code drunk > > -Mike From jacob.delfos at MAUNSELL.COM Mon Oct 18 21:20:05 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 19 Oct 2004 12:20:05 +0800 Subject: Installation Failure with Proj.dll entry Problem Message-ID: If you want to make sure it is not a problem of the file not being found, then copy your proj.dll file into c:\windows\system32 I always copy all DLL's there, because path statements can get a bit messed up sometimes. If the problem still occurs, then double-check you have the correct version of the dll. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ng Seah Chew Sent: 18 October 2004 18:20 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Installation Failure with Proj.dll entry Problem I am running on Windows 2k3 with Apache 1.3.31. I have followed the instructions on installing the MapServer 4.2 ReadMe file. The MapServer 4.2 is a Win32 binary installer. I extracted the files to C:/MapServer, moved the "proj" folder to C:/Proj and copied the mapserv.exe under "bin" directory to the apache cgi-bin directory. and set the PATH environment variable to "C:\MapServer\lib" when run from web browser, I get an Internal Server Error Message, and if i double click on the Exe file, i get the following message: "The procedure entry point pj_units could not be located in the dynamic link library PROJ.DLL" What have i left out during the installation? Please help. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Mon Oct 18 22:10:20 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 19 Oct 2004 00:10:20 -0500 Subject: v4.2.4 - Typo on MapServer download page Message-ID: The typo has been fixed... >>> Tyler Mitchell 10/17/04 1:13 AM >>> Noticed the recent announcement re: 4.2.4 http://mapserver.gis.umn.edu/dload.html has an href to the 4.2.4 tar ball but the text still says: mapserver-4.2.3.tar.gz: source code/demo. Obviously a copy/paste from the last release but only the ref was updated. Tyler From steve.lime at DNR.STATE.MN.US Mon Oct 18 22:18:07 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 19 Oct 2004 00:18:07 -0500 Subject: classes drawing order Message-ID: Classes are indeed drawn as they are encountered. The order of the classes is significant in that the first expression matched is used for any given feature. Therefore classes do not have to be mutually exclusive. Roads can indeed be tricky to render. Sounds to me like you need to control the order of the shapes in the shapefile. The last features in the shapefile are rendered last and you can take advantage of that fact. For instance you can sort the shapefile based on road type so that highways are last and therefore show up on top of roads. There is a sortshp utility included in the MapServer distribution that will allow you to re-order a shapefile based on an attribute. The other option you have is to use seperate layers (i.e. draw roads and then draw highways). You have to step through the file twice, but often that doesn't kill performance if your data are indexed and perhaps tiled. Steve >>> John Bolster 10/15/04 10:08 AM >>> Hi all, I need to understand the sequence in which different elements are drawn onto the map. I understand that layers are drawn from top to bottom in the mapfile, so a feature in a later layer can overlap a feature in an earlier layer, but within one layer, are the classes drawn top down, or as they are encountered as mapserv goes through the shapefile? It's looking like the classes are just drawn as they are encountered, and this is producing my problem: All my roads are drawn with a black circle symbol of, let's say, 5px, with a white circle symbol of, let's say, 3px on top. That makes for a nice outlined road. Let's say my highways are a black circle symbol of 11px with a colored circle symbol on top of 9px. So the highways are colored and have a black outline. But where a road intersects with a highway, if the road gets drawn first it's good because the highway is drawn over the top of it, but if the highway gets drawn first a little of the white of the road (half a circle of it) is drawn out into the intersection, over the top of the highway fill color. As it stands, the roads and the highways are both classes of the same layer. How do you all overcome this? Thanks, John Bolster From steve.lime at DNR.STATE.MN.US Mon Oct 18 22:21:16 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 19 Oct 2004 00:21:16 -0500 Subject: Statistical Maps Message-ID: Do you mean placing charts as markers? I suppose anything is possible but certainly not out-of-the-box. Within MapScript I suppose you could feed data per feature to a charting tool like OWTChart and have it create a marker for you, you'd then reference that marker when drawing. Steve >>> Ike Brian 10/15/04 10:20 PM >>> Hello, I would like to know if it is possible to map Pie and Bar Charts using mapserver and if so I would need a helping hand in writing the codes. Thank you very much. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From sudip_mca at SIFY.COM Tue Oct 19 02:36:57 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Tue, 19 Oct 2004 14:36:57 +0500 Subject: distanceToSegment Message-ID: hello, i am working upon a Gis project using PHP-mapscript 4.3.4 and mapserver 4.0.1 in windows environment. My task is to calculate the distance between two places in the map.For that i am trying to use distanceToSegment function.But while using this i only faced the error message \"call to undefined function \". Any suggesation or code in solving this will be greatfuly accepted. Thanking you ........Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at UVA.NL Tue Oct 19 06:01:44 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Tue, 19 Oct 2004 15:01:44 +0200 Subject: Bug in CLASS expression in 4.2.4 ?? In-Reply-To: Message-ID: Steve Lime wrote: > Jan: Have you tried the CVS version? I'm curious if the problem has > made it into the CVS HEAD. I've not made any changes in expression > handling recently, and certainly not in the 4.2.x branch. > > Steve > I just checked out CVS and it worked OK. This seems to be Mapserver 4.3, so I don't know what happened between 4.2.3, 4.2.4 and 4.3. The bug in 4.2.4 has been confirmed a few days ago by Mike Jackson: http://lists.umn.edu/cgi-bin/wa?A2=ind0410&L=mapserver-users&T=0&O=D&X=7D35330D95ED1AACB7 I'll adapt my bug report in Bugzilla Jan From temiz at DEPREM.GOV.TR Tue Oct 19 06:09:25 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 19 Oct 2004 16:09:25 +0300 Subject: zooming problem continues In-Reply-To: Message-ID: thank you I followed the procedure you offered I can draw rubberband. But zooming is not still working. I will appreciate if you find what the wrong is ? regards here is the complete php code: getLayerByName("jeo"); $jeoClass0 = $jeolayer->getClass(9); $jeoStyle = $jeoClass0->getStyle("*"); $jeoStyle->color->setRGB(0,255,0); $jeolayer ->set("status",1); if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !isset($HTTP_POST_VARS["full"]) ) { $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $zoom_rect = ms_newRectObj(); $zoom_rect->setextent($_POST["mapa_x"] - $_POST["w"],$_POST["mapa_y"], $_POST["mapa_x"],$_POST["mapa_y"]-$_POST["h"]); $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); } $image=$map->draw(); $image_url=$image->saveWebImage(); $extent_to_html = $map->extent->minx." ".$map->extent->miny." " .$map->extent->maxx." ".$map->extent->maxy; ?> karab?k
>
zoom
orkun
ORKUN
coordinat
Sandeep Bashyal wrote: > On Fri, 15 Oct 2004 10:21:03 +0300, temiz wrote: > >> hello Mr.Sandeep, >> >> thank you for your help. >> I have examined the javascript code you suggested. >> Unfortunately I have also little knowledge about javascript. So, I >> coudn't >> manage to get rectangle coordinates drawn as rubberband. >> I think getting coord. values is the way for zooming. >> >> Do you have any idea about how coord values can get? >> >> best wishes >> >> Bashyal wrote: >> >>> On Thu, 14 Oct 2004 17:13:37 +0300, temiz wrote: >>> >>>> hello >>>> >>>> for zooming, I want to build rubberband. >>>> How can I get an example which contain rubberband for zooming ? >>>> >>>> kind regards >>>> >>>> Ahmet temiz >>>> >>>> >>>> ______________________________________ >>>> Inflex - installed on mailserver for domain @deprem.gov.tr >>>> Queries to: postmaster at deprem.gov.tr >>>> >>>> ______________________________________ >>>> The views and opinions expressed in this e-mail message are the >>>> sender's >>>> own >>>> and do not necessarily represent the views and the opinions of >>>> Earthquake Research Dept. >>>> of General Directorate of Disaster Affairs. >>>> >>>> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >>>> olarak T.C. >>>> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >>>> nitelikte degildir. >>>> >>> >>> Ahmet, >>> >>> I've found the rubberband zoom box by Gayathri Swaminathan to be simple >>> and quite useful. You can download it here: >>> http://mapserver.gis.umn.edu/user_utilities/RBand.zip >>> Just call startRubber and stopRubber functions on mouseDown and mouseUp >>> events on the main map image and put hidden form elements containing >>> the >>> width and height of the "rubberband" layer. >>> >>> Works pretty well for my limited knowledge of javascript and >>> mapserver :). >>> >>> Regards. >>> >>> -- Sandeep Bashyal >>> -- National GIS Officer >>> Humanitarian Assistance Information System (HAIS) >>> United Nations (NEP/01/008) >>> UN House, Pulchowk >>> G.P.O. Box 107 >>> Kathmandu, Nepal >>> Tel: (+977) 01 5543957 >>> (+977) 01 5554304 >>> Cell:(+977) 9841270854 >>> Fax: (+977) 01 5528059 >>> -------------------------------------------------- >>> mailto:gis at undphais.org.np >>> mailto:sandeep at earthmapping.com >>> http://www.undp.org.np >>> >>> >> >> >> ______________________________________ >> Inflex - installed on mailserver for domain @deprem.gov.tr >> Queries to: postmaster at deprem.gov.tr >> >> ______________________________________ >> The views and opinions expressed in this e-mail message are the >> sender's own >> and do not necessarily represent the views and the opinions of >> Earthquake Research Dept. >> of General Directorate of Disaster Affairs. >> >> Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal >> olarak T.C. >> B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici >> nitelikte degildir. >> >> > Ahmet, > > I'm new to javascript too and could not quite understand how the > rubberband zoom box works in the included example file. This is how I > improvised: > > Contents of rubberband.js: > --------------------------- > function startRubber (evt) { > if (document.all) { > var r = document.all.rubberBand; > r.style.width = 0; > r.style.height = 0; > r.style.pixelLeft = event.x; > r.style.pixelTop = event.y; > r.style.visibility = 'visible'; > } > > else if (document.layers) { > var r = document.rubberBand; > r.clip.width = 0; r.clip.height = 0; > r.left = evt.x; > r.top = evt.y; > r.visibility = 'show'; > } > > else if (document.getElementById) { > var r = document.getElementById('rubberBand'); > r.style.width = 0; > r.style.height = 0; > r.style.left = evt.clientX + 'px'; > r.style.top = evt.clientY + 'px'; > r.style.visibility = 'visible'; > } > document.captureEvents(Event.MOUSEMOVE); > document.onmousemove = moveRubber; > } > > function moveRubber (evt) { > if (document.all) { > var r = document.all.rubberBand; > r.style.width = event.x - r.style.pixelLeft - 2; > r.style.height = event.y - r.style.pixelTop - 2; > var f = document.forms('viewmap'); > f.w.value = r.style.width; > f.h.value = r.style.height; > } > > else if (document.layers) { > var r = document.rubberBand; > r.clip.width = evt.x - r.left - 2 ; > r.clip.height = evt.y - r.top - 2; > r.document.open(); > r.document.write('
<\/td><\/tr><\/table>'); > r.document.close(); > var f = document.forms('viewmap'); > f.w.value = r.clip.width; > f.h.value = r.clip.height; > } > > else if (document.getElementById) { > var r = document.getElementById('rubberBand'); > r.style.width = evt.clientX - parseInt(r.style.left) - 2; > r.style.height = evt.clientY - parseInt(r.style.top) - 2; > var ht = document.getElementById('h'); > var wt = document.getElementById('w'); > wt.value = r.style.width; > ht.value = r.style.height; > } > } > > function stopRubber (evt) { > document.releaseEvents(Event.MOUSEMOVE); > document.onmousemove = null; > } > > Contents of the form: > --------------------------------------------------- >
action=""> > > > src="" onMouseDown="startRubber(event)" > onMouseUp="stopRubber(event)" /> >
>
> > Zooming to rectangle (I'm using php mapscript): > ----------------------------------------------------- > $zoom_rect = ms_newRectObj(); > $zoom_rect->setextent($_POST["mapa_x"] - $_POST["w"],$_POST["mapa_y"], > $_POST["mapa_x"],$_POST["mapa_y"]-$_POST["h"]); > $map->zoomrectangle($zoom_rect,$map->width,$map->height,$current_extent); > //where $current_extent is a rectangular object with the current > extent of the map. > > Hope this helps a bit. I've tested it on IE6, NS7, Opera7.5 and > Firefox0.93. > > Regards. ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. -------------- next part -------------- An HTML attachment was scrubbed... URL: From klawrenc at NRCAN.GC.CA Tue Oct 19 06:17:55 2004 From: klawrenc at NRCAN.GC.CA (Lawrence, Kevin) Date: Tue, 19 Oct 2004 09:17:55 -0400 Subject: Zoom to Real Point Message-ID: Eric You may want to check out the values of the link, width and height as well as the resultant extents. You may be able to get an eroneous value look like it is working and have that be the confusing point. KL > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Eric Katherman[SMTP:vaiod at BERLOY.COM] > Reply To: Eric Katherman > Sent: Monday, October 18, 2004 11:21 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Zoom to Real Point > > Yea the example I posted was the math that seems to work, albeit > conceptually > wrong. I initially started doing exactly what you are talking about 800/2 > = > 400 so add 400 to the right and subtract from the left and apply the same > concept to top/bottom. It worked kind of but centered the point on the > bottom right corner. I must be overlooking something but what I have > seems > to work for whatever reason... I wonder why there isn't a builtin function > for that e.g. pointcenter(x,y) that would make this easy. > > Eric > > > I am not sure I follow your code exactly but I think you are > > multiplying by two when you should be dividing eg: > > > > $right_brdr = ($link[0] + ($_COOKIE["CTRENCH_GIS_CONF-WIDTH"] /2)); > > $left_brdr = ($link[0] - ($_COOKIE["CTRENCH_GIS_CONF-WIDTH"] /2)); > > $top_brdr = ($link[1] + ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] /2)); > > $bottom_brdr = ($link[1] - ($_COOKIE["CTRENCH_GIS_CONF-HEIGHT"] /2)); > > > > If I follow your intent correctly you want to set the border extents > > equal to "CTRENCH_GIS_HEIGHT" x "CTRENCH_GIS_WIDTH" so you want to add > > half the height to the top, subtract half the height from the bottom, > > add half the width to the right and subtract half the width from the > > left. By multiplying by two instead of dividing you are positioning > > your desired point 1/4 of the way across the screen. > > > > But it is the end of a long day and I might be code drunk > > > > -Mike > From sgillies at FRII.COM Tue Oct 19 07:10:02 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 19 Oct 2004 08:10:02 -0600 Subject: Bug in CLASS expression in 4.2.4 ?? In-Reply-To: Message-ID: On Oct 19, 2004, at 7:01 AM, Jan Hartmann wrote: > Steve Lime wrote: > >> Jan: Have you tried the CVS version? I'm curious if the problem has >> made it into the CVS HEAD. I've not made any changes in expression >> handling recently, and certainly not in the 4.2.x branch. >> >> Steve >> > > I just checked out CVS and it worked OK. This seems to be Mapserver > 4.3, > so I don't know what happened between 4.2.3, 4.2.4 and 4.3. The bug in > 4.2.4 has been confirmed a few days ago by Mike Jackson: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0410&L=mapserver- > users&T=0&O=D&X=7D35330D95ED1AACB7 > > I'll adapt my bug report in Bugzilla > > Jan > > Jan, This bug is my fault. Assefa and Daniel pointed out the issue to me in the 4.3 branch and I fixed it there, but overlooked the fix for the 4.2 branch. I'll get it fixed immediately and prepare a 4.2.5 release. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sobomsawin at KASSINI.COM Tue Oct 19 07:28:28 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Tue, 19 Oct 2004 10:28:28 -0400 Subject: [UMN_MAPSERVER-USERS] zooming problem continues In-Reply-To: <41751205.8070909@deprem.gov.tr> Message-ID: Temiz, You need an onMouseMove event in your image to draw the rectangle and have minx != maxx: Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de temiz Envoy? : 19 octobre 2004 09:09 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] zooming problem continues thank you I followed the procedure you offered I can draw rubberband. But zooming is not still working. I will appreciate if you find what the wrong is ? regards here is the complete php code: getLayerByName("jeo"); $jeoClass0 = $jeolayer->getClass(9); $jeoStyle = $jeoClass0->getStyle("*"); $jeoStyle->color->setRGB(0,255,0); $jeolayer ->set("status",1); if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) && !isset($HTTP_POST_VARS["full"]) ) { $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); $map->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $my_extent = ms_newrectObj(); $my_extent->setextent($extent_to_set[0],$extent_to_set[1], $extent_to_set[2],$extent_to_set[3]); $zoom_rect = ms_newRectObj(); $zoom_rect->setextent($_POST["mapa_x"] - $_POST["w"],$_POST["mapa_y"], $_POST["mapa_x"],$_POST["mapa_y"]-$_POST["h"]); $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); } $image=$map->draw(); $image_url=$image->saveWebImage(); $extent_to_html = $map->extent->minx." ".$map->extent->miny." " .$map->extent->maxx." ".$map->extent->maxy; ?> karab?k
>
zoom
orkun
ORKUN
coordinat
Sandeep Bashyal wrote: On Fri, 15 Oct 2004 10:21:03 +0300, temiz wrote: hello Mr.Sandeep, thank you for your help. I have examined the javascript code you suggested. Unfortunately I have also little knowledge about javascript. So, I coudn't manage to get rectangle coordinates drawn as rubberband. I think getting coord. values is the way for zooming. Do you have any idea about how coord values can get? best wishes Bashyal wrote: On Thu, 14 Oct 2004 17:13:37 +0300, temiz wrote: hello for zooming, I want to build rubberband. How can I get an example which contain rubberband for zooming ? kind regards Ahmet temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. Ahmet, I've found the rubberband zoom box by Gayathri Swaminathan to be simple and quite useful. You can download it here: http://mapserver.gis.umn.edu/user_utilities/RBand.zip Just call startRubber and stopRubber functions on mouseDown and mouseUp events on the main map image and put hidden form elements containing the width and height of the "rubberband" layer. Works pretty well for my limited knowledge of javascript and mapserver :). Regards. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. Ahmet, I'm new to javascript too and could not quite understand how the rubberband zoom box works in the included example file. This is how I improvised: Contents of rubberband.js: --------------------------- function startRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = 0; r.style.height = 0; r.style.pixelLeft = event.x; r.style.pixelTop = event.y; r.style.visibility = 'visible'; } else if (document.layers) { var r = document.rubberBand; r.clip.width = 0; r.clip.height = 0; r.left = evt.x; r.top = evt.y; r.visibility = 'show'; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = 0; r.style.height = 0; r.style.left = evt.clientX + 'px'; r.style.top = evt.clientY + 'px'; r.style.visibility = 'visible'; } document.captureEvents(Event.MOUSEMOVE); document.onmousemove = moveRubber; } function moveRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = event.x - r.style.pixelLeft - 2; r.style.height = event.y - r.style.pixelTop - 2; var f = document.forms('viewmap'); f.w.value = r.style.width; f.h.value = r.style.height; } else if (document.layers) { var r = document.rubberBand; r.clip.width = evt.x - r.left - 2 ; r.clip.height = evt.y - r.top - 2; r.document.open(); r.document.write(' [zonejoin]: [zonejoin_ZONING]
<\/td><\/tr><\/table>'); r.document.close(); var f = document.forms('viewmap'); f.w.value = r.clip.width; f.h.value = r.clip.height; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = evt.clientX - parseInt(r.style.left) - 2; r.style.height = evt.clientY - parseInt(r.style.top) - 2; var ht = document.getElementById('h'); var wt = document.getElementById('w'); wt.value = r.style.width; ht.value = r.style.height; } } function stopRubber (evt) { document.releaseEvents(Event.MOUSEMOVE); document.onmousemove = null; } Contents of the form: ---------------------------------------------------
Zooming to rectangle (I'm using php mapscript): ----------------------------------------------------- $zoom_rect = ms_newRectObj(); $zoom_rect->setextent($_POST["mapa_x"] - $_POST["w"],$_POST["mapa_y"], $_POST["mapa_x"],$_POST["mapa_y"]-$_POST["h"]); $map->zoomrectangle($zoom_rect,$map->width,$map->height,$current_extent); //where $current_extent is a rectangular object with the current extent of the map. Hope this helps a bit. I've tested it on IE6, NS7, Opera7.5 and Firefox0.93. Regards. ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ikebrian at YAHOO.COM Tue Oct 19 07:50:04 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Tue, 19 Oct 2004 07:50:04 -0700 Subject: Statistical Maps In-Reply-To: Message-ID: Thank you for you reply, what I want to do is to creat Bar and Pie chart of data over the polygon layer so that in viewing one will see the Bar/Pie chart per polygon. I have OWTchart but does not know how to use it. Could you help me out if it is possible for the the charts Steve Lime wrote:Do you mean placing charts as markers? I suppose anything is possible but certainly not out-of-the-box. Within MapScript I suppose you could feed data per feature to a charting tool like OWTChart and have it create a marker for you, you'd then reference that marker when drawing. Steve >>> Ike Brian 10/15/04 10:20 PM >>> Hello, I would like to know if it is possible to map Pie and Bar Charts using mapserver and if so I would need a helping hand in writing the codes. Thank you very much. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerry.creager at TAMU.EDU Tue Oct 19 08:04:50 2004 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Tue, 19 Oct 2004 10:04:50 -0500 Subject: Statistical Maps In-Reply-To: <20041019145004.31226.qmail@web60509.mail.yahoo.com> Message-ID: Random thought, but what about using something like JGraph or PHPgraph to create the statistical graphics and then load them as a raster layer? gerry Ike Brian wrote: > Thank you for you reply, what I want to do is to creat Bar and Pie chart > of data over the polygon layer so that in viewing one will see the > Bar/Pie chart per polygon. I have OWTchart but does not know how to use > it. Could you help me out if it is possible for the the charts > > */Steve Lime /* wrote: > > Do you mean placing charts as markers? I suppose anything is possible > but certainly not out-of-the-box. Within MapScript I suppose you could > feed data per feature to a charting tool like OWTChart and have it > create a marker for you, you'd then reference that marker when drawing. > > Steve > > > >>> Ike Brian 10/15/04 10:20 PM >>> > Hello, > I would like to know if it is possible to map Pie and Bar Charts using > mapserver and if so I would need a helping hand in writing the codes. > Thank you very much. > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > ------------------------------------------------------------------------ > Do you Yahoo!? > Yahoo! Mail Address AutoComplete > > - You start. We finish. -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From David.Fawcett at STATE.MN.US Tue Oct 19 08:08:10 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 19 Oct 2004 10:08:10 -0500 Subject: Bug in CLASS expression in 4.2.4 ?? Message-ID: I can confirm this in 4.2 too. I noticed it in a WFS app, and thought that it may possibly have something to do with the way that WFS is rendered. I don't think that it is related to WFS. I had three poly layers. If I symbolized them with a solid color, they rendered as expected. If I used an outlinecolor with no fill, the default 1 pixel outline rendered in the expected color. Finally, if I used a circle symbol, all polys rendered with the expected line thickness, but they all had the color set in the first layer. I can submit a mapfile clip and more specifics to Bugzilla if that would be helpful. David. David J. Fawcett MN Office of Environmental Assistance >>> Jan Hartmann 10/19/04 8:01 AM >>> Steve Lime wrote: > Jan: Have you tried the CVS version? I'm curious if the problem has > made it into the CVS HEAD. I've not made any changes in expression > handling recently, and certainly not in the 4.2.x branch. > > Steve > I just checked out CVS and it worked OK. This seems to be Mapserver 4.3, so I don't know what happened between 4.2.3, 4.2.4 and 4.3. The bug in 4.2.4 has been confirmed a few days ago by Mike Jackson: http://lists.umn.edu/cgi-bin/wa?A2=ind0410&L=mapserver-users&T=0&O=D&X=7D35330D95ED1AACB7 I'll adapt my bug report in Bugzilla Jan From David.Fawcett at STATE.MN.US Tue Oct 19 08:11:23 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 19 Oct 2004 10:11:23 -0500 Subject: Installation Failure with Proj.dll entry Problem Message-ID: You can also use the CONFIG setting in the MAP object to tell mapserver where to look for your proj file. http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#map David. David J. Fawcett MN Office of Environmental Assistance >>> Jacob Delfos 10/18/04 11:20 PM >>> If you want to make sure it is not a problem of the file not being found, then copy your proj.dll file into c:\windows\system32 I always copy all DLL's there, because path statements can get a bit messed up sometimes. If the problem still occurs, then double-check you have the correct version of the dll. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ng Seah Chew Sent: 18 October 2004 18:20 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Installation Failure with Proj.dll entry Problem I am running on Windows 2k3 with Apache 1.3.31. I have followed the instructions on installing the MapServer 4.2 ReadMe file. The MapServer 4.2 is a Win32 binary installer. I extracted the files to C:/MapServer, moved the "proj" folder to C:/Proj and copied the mapserv.exe under "bin" directory to the apache cgi-bin directory. and set the PATH environment variable to "C:\MapServer\lib" when run from web browser, I get an Internal Server Error Message, and if i double click on the Exe file, i get the following message: "The procedure entry point pj_units could not be located in the dynamic link library PROJ.DLL" What have i left out during the installation? Please help. Thanks. From warmerdam at POBOX.COM Tue Oct 19 08:51:14 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 19 Oct 2004 11:51:14 -0400 Subject: Installation Failure with Proj.dll entry Problem In-Reply-To: <001101c4b592$e97ccf20$5d2815ac@auper1pc364> Message-ID: Jacob Delfos wrote: > If you want to make sure it is not a problem of the file not being > found, then copy your proj.dll file into > c:\windows\system32 > I always copy all DLL's there, because path statements can get a bit > messed up sometimes. > > If the problem still occurs, then double-check you have the correct > version of the dll. Jacob, Obviously users are in charge of their own machines and can do what they want, but I would like to go on the record as saying this practice scares the "heck" out of me. For instance, I package and distribute OpenEV_FW releases. I take great care to provide all required libraries and DLLs in the package. I carefully set the PATH environment variable when the package is being used, so that my DLLs will be used to avoid conflicts. But if you have a PROJ.DLL in C:\windows\system32 it will be used in preference to the one I have so carefully placed at the front of the path and I will end up getting weird reports of problems I have no chance of being able to correct from my end. Many DLLs, including stuff like PROJ, and GDAL do not have version specific names (and anyways people make snapshots between releases) and so it is very easy for the wrong version of a DLL to get used and to cause the most annoying sorts of problems. My point is, folks who dump stuff willy-nilly into windows\system32 should think twice before reporting problems because it may be a configuration issue on your side that the software developers or distributors don't have a fair chance to have avoided. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From j.l.h.hartmann at UVA.NL Tue Oct 19 09:33:35 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Tue, 19 Oct 2004 18:33:35 +0200 Subject: Creating transparent gifs with PHP-Mapscript In-Reply-To: Message-ID: Hi, I'm not sure if I am overlooking something here. I'm working with a completely PHP-based map, i.e. without any Mapfile at all. I can set everything from PHP, except for the "transparent" option of the predefined "gif" outputformat. This setting seems to be read-only, like everything else in the outputformat object, except the additional formatoptions. Setting transparency at the *mapObj"-level doesn't work either. I could use the pasteimg() method, but it would be much simpler if I could do it just like in a regular MapFile, by setting TRANSPARENT ON in the outputformat. Is this possible? Jan From yecarrillo at YAHOO.COM Tue Oct 19 09:44:11 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Tue, 19 Oct 2004 11:44:11 -0500 Subject: Gix, exporting ArcView views to MapServer mapfiles In-Reply-To: <4174B588.3070308@terrestris.de> Message-ID: --- Till Adams escribi?: > Dear Eduin, > > I want to make some things clear.... > > Indeed, you did not understand the license of AveiN!. AveiN! is GNU GPL, > what we sell on our homepage is NOT the software, it is just the manual > as paper-back coming with a CD. The download of the software and the > source is free. > Your explaination is too clear, thanks. I think it is enought for List users. However, two things could make things more clear for Avein potential users: -Avein Project hasn't been categorized at Sourceforge Trove Software Map, where you did specify the licensing method -Avein SF home page (http://avein.sourceforge.net/) points to nowhere. SF visitors can get more info about Avein if this url points to Terretris Avein info page. > s.a. + If you install AveiN! you'll have to agree with the GNU GPL, if > you download it, you'll see, that you get the full sources. What more > should I do, in order to make clear which license?? > We also offer the download of AveiN! on our homepage, because many of > the people administratives in Germany searching for such a tool don't > know anything about SF and platforms like this. But the download package > is exactly the same as on SF. > All right. > We have some project-partners, willing to invest some money in a GNU GPL > based tool for ArcGIS. I think it would be worth thinking about throwing > some work together at this point. What do you think? > > Greetings, Till > An ArcGis version of Gix is under development. I think, we can mixup our resources to make a good product. Let'me know on private email more details about how we can do that. Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From vaiod at BERLOY.COM Tue Oct 19 14:05:39 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Tue, 19 Oct 2004 14:05:39 -0700 Subject: Speeding Up Queries Message-ID: Does anybody have any pointers for speeding up the time MS takes to draw a map based on PostGIS queries? I have shapefiles for all the parcels in my city and when I am zoomed into a smaller area it still seems to calculate everything outside of my extents, can I limit this based on extents somehow maybe? Eric From vaiod at BERLOY.COM Tue Oct 19 14:10:24 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Tue, 19 Oct 2004 14:10:24 -0700 Subject: Combining Polygons Message-ID: As a possible solution to my previous speed post, it would seem to make sense if I could take say all of the parcels in one city block area and combine them into one parcel. Does anybody have a suggestion as to how I could approach that, the adjacent polygons surely have some common "key" which could be used. Eric From pramsey at REFRACTIONS.NET Tue Oct 19 14:13:06 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 19 Oct 2004 14:13:06 -0700 Subject: Speeding Up Queries In-Reply-To: <200410191405.39619.vaiod@berloy.com> Message-ID: Eric, You need to provide more information in your question. Your map file, and what URL you are using to hit it, would give some ideas. Plus, if you are using PostGIS, the output of \d on the tables you are using. Paul Eric Katherman wrote: > Does anybody have any pointers for speeding up the time MS takes to draw a map > based on PostGIS queries? I have shapefiles for all the parcels in my city > and when I am zoomed into a smaller area it still seems to calculate > everything outside of my extents, can I limit this based on extents somehow > maybe? > > Eric From vaiod at BERLOY.COM Tue Oct 19 14:23:30 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Tue, 19 Oct 2004 14:23:30 -0700 Subject: Speeding Up Queries In-Reply-To: <41758362.2060301@refractions.net> Message-ID: Here is the result of \d (Note I am calling parceldata) List of relations Schema | Name | Type | Owner --------+--------------------+----------+---------- public | geometry_columns | table | postgres public | parceldata | table | postgres public | parceldata_gid_seq | sequence | postgres public | pga_diagrams | table | postgres public | pga_forms | table | postgres public | pga_graphs | table | postgres public | pga_images | table | postgres public | pga_layout | table | postgres public | pga_queries | table | postgres public | pga_reports | table | postgres public | pga_scripts | table | postgres public | spatial_ref_sys | table | postgres public | streets | table | postgres public | streets_gid_seq | sequence | postgres (14 rows) The call in the mapfile looks like this: LAYER GROUP Parcels NAME parcels DATA "the_geom from parceldata" CONNECTION "user=postgres password=guess dbname=gis host=localhost port=5432" CONNECTIONTYPE postgis STATUS On TYPE POLYGON PROJECTION "init=/usr/local/share/proj/nad83:202" END CLASS COLOR 238 230 222 OUTLINECOLOR 172 157 139 END END The url contains the extent as well as some other switches I am using to turn layers on and off. I am using PHP as well. Everything renders as expected but it seems wastefull to generate the entire map (or at least it seems to) for a small area. Eric > Eric, > You need to provide more information in your question. Your map file, > and what URL you are using to hit it, would give some ideas. Plus, if > you are using PostGIS, the output of \d on the tables you are using. > Paul > > Eric Katherman wrote: > > Does anybody have any pointers for speeding up the time MS takes to draw > > a map based on PostGIS queries? I have shapefiles for all the parcels in > > my city and when I am zoomed into a smaller area it still seems to > > calculate everything outside of my extents, can I limit this based on > > extents somehow maybe? > > > > Eric From vaiod at BERLOY.COM Tue Oct 19 14:27:10 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Tue, 19 Oct 2004 14:27:10 -0700 Subject: Speeding Up Queries In-Reply-To: <417585E4.9010101@refractions.net> Message-ID: Sorry... Table "public.parceldata" Column | Type | Modifiers ------------+----------------------+------------------------------------------------------------- gid | integer | not null default nextval('public.parceldata_gid_seq'::text) area | numeric | address | character varying | dbt_end | character varying(8) | dbt_begin | character varying(8) | end_date | character varying(8) | begin_date | character varying(8) | filename | character varying | floor | bigint | apn | character varying | id | bigint | the_geom | geometry | Indexes: "parceldata_pkey" primary key, btree (gid) Check constraints: "enforce_srid_the_geom" CHECK (srid(the_geom) = -1) "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL) > \d parceldata ? > > Eric Katherman wrote: > > Here is the result of \d (Note I am calling parceldata) > > > > List of relations > > Schema | Name | Type | Owner > > --------+--------------------+----------+---------- > > public | geometry_columns | table | postgres > > public | parceldata | table | postgres > > public | parceldata_gid_seq | sequence | postgres > > public | pga_diagrams | table | postgres > > public | pga_forms | table | postgres > > public | pga_graphs | table | postgres > > public | pga_images | table | postgres > > public | pga_layout | table | postgres > > public | pga_queries | table | postgres > > public | pga_reports | table | postgres > > public | pga_scripts | table | postgres > > public | spatial_ref_sys | table | postgres > > public | streets | table | postgres > > public | streets_gid_seq | sequence | postgres > > (14 rows) > > > > > > The call in the mapfile looks like this: > > LAYER > > GROUP Parcels > > NAME parcels > > DATA "the_geom from parceldata" > > CONNECTION "user=postgres password=guess dbname=gis host=localhost > > port=5432" > > CONNECTIONTYPE postgis > > STATUS On > > TYPE POLYGON > > > > PROJECTION > > "init=/usr/local/share/proj/nad83:202" > > END > > > > CLASS > > COLOR 238 230 222 > > OUTLINECOLOR 172 157 139 > > END > > END > > > > > > The url contains the extent as well as some other switches I am using to > > turn layers on and off. I am using PHP as well. Everything renders as > > expected but it seems wastefull to generate the entire map (or at least > > it seems to) for a small area. > > > > Eric > > > >>Eric, > >>You need to provide more information in your question. Your map file, > >>and what URL you are using to hit it, would give some ideas. Plus, if > >>you are using PostGIS, the output of \d on the tables you are using. > >>Paul > >> > >>Eric Katherman wrote: > >>>Does anybody have any pointers for speeding up the time MS takes to draw > >>>a map based on PostGIS queries? I have shapefiles for all the parcels > >>> in my city and when I am zoomed into a smaller area it still seems to > >>> calculate everything outside of my extents, can I limit this based on > >>> extents somehow maybe? > >>> > >>>Eric From vaiod at BERLOY.COM Tue Oct 19 14:28:46 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Tue, 19 Oct 2004 14:28:46 -0700 Subject: Speeding Up Queries In-Reply-To: <200410191423.30632.vaiod@berloy.com> Message-ID: Here is a sample record from that table just for good measure. gid | area | address | dbt_end | dbt_begin | end_date | begin_date | filename | floor | apn | id | the_geom -----+-------+---------------------+----------+-----------+----------+------------+----------+-------+----------+-------+----------------------------------------------------------------------------------------------------------------------------------------- 100 | 52581 | 11333 W WINSLOW AVE | 99991231 | 20021018 | 99991231 | 19000101 | 1012101 | 1 | 10121028 | 37040 | SRID=-1;MULTIPOLYGON(((582058.524 880137.609,582060.794 879835.702,581886.216 879832.266,581884.737 880134.033,582058.524 880137.609))) (1 row) From vaiod at BERLOY.COM Tue Oct 19 14:31:26 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Tue, 19 Oct 2004 14:31:26 -0700 Subject: Speeding Up Queries In-Reply-To: <41758694.5010009@refractions.net> Message-ID: Oh yea... That made the difference... could you explain what that did. It obviously make an INDEX for something that it had to make on its own everytime. > CREATE INDEX parceldata_gix ON parceldata USING GIST ( the_geom > gist_geometry_ops) From vaiod at BERLOY.COM Tue Oct 19 14:32:36 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Tue, 19 Oct 2004 14:32:36 -0700 Subject: Combining Polygons In-Reply-To: <200410191410.24164.vaiod@berloy.com> Message-ID: Please disregard this, although it would be a nice thing to know, my speed problem was solved with the previous post (Speeding Up Queries). Thanks Paul! Eric > As a possible solution to my previous speed post, it would seem to make > sense if I could take say all of the parcels in one city block area and > combine them into one parcel. Does anybody have a suggestion as to how I > could approach that, the adjacent polygons surely have some common "key" > which could be used. > > Eric From gsw at GLOBEXPLORER.COM Tue Oct 19 14:32:22 2004 From: gsw at GLOBEXPLORER.COM (Gregory S. Williamson) Date: Tue, 19 Oct 2004 14:32:22 -0700 Subject: Speeding Up Queries Message-ID: Try adding a spatial index on the parceldata table with something like this: CREATE INDEX parcels_sptl_ndx ON parceldata USING GIST ( the_geom GIST_GEOMETRY_OPS); and then update the stats for the table: SELECT * FROM update_geometry_stats('parceldata','the_geom'); HTH, Greg Wiliamson DBA GlobeXplorer LLC -----Original Message----- From: Eric Katherman [mailto:vaiod at BERLOY.COM] Sent: Tue 10/19/2004 2:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Speeding Up Queries Sorry... Table "public.parceldata" Column | Type | Modifiers ------------+----------------------+------------------------------------------------------------- gid | integer | not null default nextval('public.parceldata_gid_seq'::text) area | numeric | address | character varying | dbt_end | character varying(8) | dbt_begin | character varying(8) | end_date | character varying(8) | begin_date | character varying(8) | filename | character varying | floor | bigint | apn | character varying | id | bigint | the_geom | geometry | Indexes: "parceldata_pkey" primary key, btree (gid) Check constraints: "enforce_srid_the_geom" CHECK (srid(the_geom) = -1) "enforce_geotype_the_geom" CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL) > \d parceldata ? > > Eric Katherman wrote: > > Here is the result of \d (Note I am calling parceldata) > > > > List of relations > > Schema | Name | Type | Owner > > --------+--------------------+----------+---------- > > public | geometry_columns | table | postgres > > public | parceldata | table | postgres > > public | parceldata_gid_seq | sequence | postgres > > public | pga_diagrams | table | postgres > > public | pga_forms | table | postgres > > public | pga_graphs | table | postgres > > public | pga_images | table | postgres > > public | pga_layout | table | postgres > > public | pga_queries | table | postgres > > public | pga_reports | table | postgres > > public | pga_scripts | table | postgres > > public | spatial_ref_sys | table | postgres > > public | streets | table | postgres > > public | streets_gid_seq | sequence | postgres > > (14 rows) > > > > > > The call in the mapfile looks like this: > > LAYER > > GROUP Parcels > > NAME parcels > > DATA "the_geom from parceldata" > > CONNECTION "user=postgres password=guess dbname=gis host=localhost > > port=5432" > > CONNECTIONTYPE postgis > > STATUS On > > TYPE POLYGON > > > > PROJECTION > > "init=/usr/local/share/proj/nad83:202" > > END > > > > CLASS > > COLOR 238 230 222 > > OUTLINECOLOR 172 157 139 > > END > > END > > > > > > The url contains the extent as well as some other switches I am using to > > turn layers on and off. I am using PHP as well. Everything renders as > > expected but it seems wastefull to generate the entire map (or at least > > it seems to) for a small area. > > > > Eric > > > >>Eric, > >>You need to provide more information in your question. Your map file, > >>and what URL you are using to hit it, would give some ideas. Plus, if > >>you are using PostGIS, the output of \d on the tables you are using. > >>Paul > >> > >>Eric Katherman wrote: > >>>Does anybody have any pointers for speeding up the time MS takes to draw > >>>a map based on PostGIS queries? I have shapefiles for all the parcels > >>> in my city and when I am zoomed into a smaller area it still seems to > >>> calculate everything outside of my extents, can I limit this based on > >>> extents somehow maybe? > >>> > >>>Eric From dylan at IICI.NO-IP.ORG Tue Oct 19 14:50:35 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 19 Oct 2004 14:50:35 -0700 Subject: Combining Polygons In-Reply-To: <200410191432.36663.vaiod@berloy.com> Message-ID: Actually, I would be interested in knowing if there is some way to do with opensource software, what the ESRI world calls a "Dissolve". i.e. merge all contiguous polygons with a common key into a single polygon... any ideas? Thanks, Dylan On Tuesday 19 October 2004 02:32 pm, Eric Katherman wrote: > Please disregard this, although it would be a nice thing to know, my speed > problem was solved with the previous post (Speeding Up Queries). > > Thanks Paul! > > Eric > > > As a possible solution to my previous speed post, it would seem to make > > sense if I could take say all of the parcels in one city block area and > > combine them into one parcel. Does anybody have a suggestion as to how I > > could approach that, the adjacent polygons surely have some common "key" > > which could be used. > > > > Eric From yecarrillo at YAHOO.COM Tue Oct 19 14:57:53 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Tue, 19 Oct 2004 16:57:53 -0500 Subject: Gix, exporting ArcView views to MapServer mapfiles In-Reply-To: <4174B588.3070308@terrestris.de> Message-ID: More about Avein. Looking into Avein code, I can express that it is violating copyright of an extension I've created at 2001. At 2001 (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0105/msg00094.html), I wrote an enchanced version of Ross Searle's Arcview utility . This extension has never reliesed to public domain. I just send a few emails to some interested users with the extension for testing purpouses. At this email I expressed that the extension can't be reproduced and must keep as "private". However, can I see that Avein include most of my Avenue scripts without mention my work. I think this is a copyright violation. Ms.DefFont, Ms.DefPath, MS.GetExtent, MS.AddEpsg, MS.Settings are the original names I gave to the scripts. Avein contains these scripts with almost all code I wrote!!!! I don't wanna make a big problem of this, but you should consider be more careful when takes the other's work.!!!! --- Till Adams escribi?: > Dear Eduin, > Indeed, you did not understand the license of AveiN!. AveiN! is GNU GPL, > what we sell on our homepage is NOT the software, it is just the manual > as paper-back coming with a CD. The download of the software and the > source is free. > I think GPL'ed work means "anybody can do what they want with your code, less do appers your work as they work". Additionally, you talk at Terretris page of "Freeware", wath differs of "Open Source" software. Eduin Yesid Carrillo yecarrillo at yahoo.com ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From kjohnson at CDAID.ORG Tue Oct 19 15:18:18 2004 From: kjohnson at CDAID.ORG (Kirk Johnson) Date: Tue, 19 Oct 2004 17:18:18 -0500 Subject: Can I join two DBF's spatially? Message-ID: Hello everyone, I'm attempting to build a map that will allow users to enter in their address, and it will report back their coresponding local zoning information. I can only get the text query to return information from the Addresses layer, and none from the desired zoning layer. (an NQuery will successfully return info from both layers) The addresses are contained in a shapefile/dbf combo named kcstruCDA.shp and kcstruCDA.dbf. The Zoning information is in a separate layer (shape file/dbf) named zone2004.dbf and zone2004.shp. My html to trigger the search is as follows:
Find your Address height="[mapheight]" border="0" alt="this is the map"> -->
My results template is as follows: (attempting to get zoning to display from a Join....)
[lrn][ADDRESS][SERIAL][PARCEL_ID]
[lrn][ZONING]
And lastly, my mapfile is as follows: MAP NAME "zonequery" STATUS ON # EXTENT 2340177.48963 2183849.25496 2395237.64752 2220590.24535 EXTENT 2350177.48963 2193849.25496 2386237.64752 2210590.24535 SIZE 600 600 SHAPEPATH "C:\Inetpub\wwwroot\cdagis\zoning2004" SYMBOLSET "C:\Inetpub\wwwroot\cdagis\tutorial\etc\symbols.sym" FONTSET "C:\Inetpub\wwwroot\cdagis\tutorial\etc\fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS Meters WEB # IMAGEPATH "c:\inetpub\wwwroot\tmp\" # IMAGEURL "c:\inetpub\wwwroot\tmp\" TEMPLATE "C:\Inetpub\wwwroot\cdagis\zonebasic.html" ERROR "c:\inetpub\wwwroot\tmp\zonequeryerr.log" LOG "c:\inetpub\wwwroot\tmp\zonequery.log" EMPTY "http://localhost/cdagis/zoning2004/templates/noresults.html" MINSCALE 1000 MAXSCALE 1550000 END OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END QUERYMAP STATUS ON STYLE HILITE COLOR 255 0 51 END LAYER NAME "BASE" STATUS ON DATA "./basemap" TYPE LINE UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "Basemap" STYLE SYMBOL 0 COLOR 220 230 240 SIZE 1 # MINSIZE 1 # MAXSIZE 100 END END END LAYER NAME "ADDRESS" STATUS ON DATA "./kcstruCDA" TYPE POINT SIZEUNITS PIXELS TOLERANCE 10 TOLERANCEUNITS PIXELS CLASS NAME 'ADDRESS' # EXPRESSION "Address" TEMPLATE "C:\Inetpub\wwwroot\cdagis\zoning2004\templates\addressq.html" # END # class STYLE SYMBOL 'circle' COLOR 1 1 1 SIZE 15 END # style END HEADER "C:\Inetpub\wwwroot\cdagis\zoning2004\templates\addressq_header.html" FOOTER "C:\Inetpub\wwwroot\cdagis\zoning2004\templates\addressq_footer.html" JOIN NAME "zonejoin" TABLE "C:\Inetpub\wwwroot\cdagis\zoning2004\r-8a.dbf" FROM ADDRESS TO ZONING # TEMPLATE "C:\Inetpub\wwwroot\cdagis\zoning2004\templates\addressq.html" TYPE SINGLE END # join END LAYER NAME "R-8" STATUS ON DATA "./r-8a" TYPE POLYGON UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS CLASS NAME "R-8" TEMPLATE "C:\Inetpub\wwwroot\cdagis\zoning2004\templates\zone2004.html" STYLE SYMBOL 0 COLOR 000 255 000 SIZE 1 # MINSIZE 1 # MAXSIZE 100 END END HEADER "C:\Inetpub\wwwroot\cdagis\zoning2004\templates\zone2004_header.html" FOOTER "C:\Inetpub\wwwroot\cdagis\zoning2004\templates\zone2004_footer.html" END END Thank you for any input Kirk Johnson From pramsey at REFRACTIONS.NET Tue Oct 19 15:50:28 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 19 Oct 2004 15:50:28 -0700 Subject: Combining Polygons In-Reply-To: <200410191450.35323.dylan@iici.no-ip.org> Message-ID: In postgis, select geomunion(the_geom) from the_table group by the_categorical_attribute Paul Dylan Beaudette wrote: > Actually, I would be interested in knowing if there is some way to do with > opensource software, what the ESRI world calls a "Dissolve". i.e. merge all > contiguous polygons with a common key into a single polygon... > > any ideas? > > Thanks, > > Dylan > > On Tuesday 19 October 2004 02:32 pm, Eric Katherman wrote: > >>Please disregard this, although it would be a nice thing to know, my speed >>problem was solved with the previous post (Speeding Up Queries). >> >>Thanks Paul! >> >>Eric >> >> >>>As a possible solution to my previous speed post, it would seem to make >>>sense if I could take say all of the parcels in one city block area and >>>combine them into one parcel. Does anybody have a suggestion as to how I >>>could approach that, the adjacent polygons surely have some common "key" >>>which could be used. >>> >>>Eric From sgillies at FRII.COM Tue Oct 19 16:26:48 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 19 Oct 2004 17:26:48 -0600 Subject: MapServer 4.2.5 Release Message-ID: MapServer 4.2.5 is available now from http://cvs.gis.umn.edu/dist/mapserver-4.2.5.tar.gz This release fixes the mapserver logical expressions which were broken in the 4.2.4 release. I apologize for the time and resources that you may have expended with that particular release. Our unit testing suite has been modified to perform logical expression tests and so future releases are less likely to lose functionality in such a suprising way. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ikebrian at YAHOO.COM Tue Oct 19 17:34:41 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Tue, 19 Oct 2004 17:34:41 -0700 Subject: Solaris Platform Message-ID: Hello, I would like to know if mapserver is stable or can run on Sun Solaris platform. Thank you --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Tue Oct 19 19:10:06 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 20 Oct 2004 10:10:06 +0800 Subject: Installation Failure with Proj.dll entry Problem Message-ID: Frank, Don't get me wrong, it wasn't my intention to make your life as a developer difficult. I was only trying to help out someone who was stuck (and I did; he mentioned to me that it worked). If the dll's are in the same directory as the executable, these will be used rather than those in the system directory. I normally use that approach if I need to avoid a version problem. I don't like to rely on path statements, because I have spent heaps of time on debugging path related problems. In windows, the path environment variable can be a bit unreliable. Applications can modify it when you install them, or write lines to your autoexec.bat file that will overwrite the system path variable (e.g. ultraedit, apple quicktime, etc.....). Or sometimes it downright doesn't work. I think that's why there are so many dll related posts. Whenever I do have an issue, I check whether my dll's are the same version as the original package (as I did suggest), before reporting anything. Best regards, Jacob -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: 19 October 2004 23:51 To: Jacob Delfos Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installation Failure with Proj.dll entry Problem Jacob Delfos wrote: > If you want to make sure it is not a problem of the file not being > found, then copy your proj.dll file into > c:\windows\system32 > I always copy all DLL's there, because path statements can get a bit > messed up sometimes. > > If the problem still occurs, then double-check you have the correct > version of the dll. Jacob, Obviously users are in charge of their own machines and can do what they want, but I would like to go on the record as saying this practice scares the "heck" out of me. For instance, I package and distribute OpenEV_FW releases. I take great care to provide all required libraries and DLLs in the package. I carefully set the PATH environment variable when the package is being used, so that my DLLs will be used to avoid conflicts. But if you have a PROJ.DLL in C:\windows\system32 it will be used in preference to the one I have so carefully placed at the front of the path and I will end up getting weird reports of problems I have no chance of being able to correct from my end. Many DLLs, including stuff like PROJ, and GDAL do not have version specific names (and anyways people make snapshots between releases) and so it is very easy for the wrong version of a DLL to get used and to cause the most annoying sorts of problems. My point is, folks who dump stuff willy-nilly into windows\system32 should think twice before reporting problems because it may be a configuration issue on your side that the software developers or distributors don't have a fair chance to have avoided. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Tue Oct 19 22:06:13 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 20 Oct 2004 13:06:13 +0800 Subject: Installation Failure with Proj.dll entry Problem Message-ID: Frank, Don't worry. You are friendly compared to how I treat my users when they mistreat my creations.... I did some testing. Path behaviour is different for dll's than for .exe: For executable, it first takes what is in the application directory. Then it searches through the paths sequentially. So if the system directory is at the end of the path statement, it will be searched last. For DLL's, it first takes what is in the executable directory. Then looks in the system directory. Then the rest of the path statement. So it seems that only for DLL's does the system directory take presedence of the other paths. regards, Jacob -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: 20 October 2004 12:35 To: Jacob Delfos Subject: Re: [UMN_MAPSERVER-USERS] Installation Failure with Proj.dll entry Problem Jacob Delfos wrote: > Frank, > > Don't get me wrong, it wasn't my intention to make your life as a > developer difficult. I was only trying to help out someone who was stuck > (and I did; he mentioned to me that it worked). > > If the dll's are in the same directory as the executable, these will be > used rather than those in the system directory. Jacob, Perhaps I have been mislead. My understanding is that DLLs in the working directory of the process take precidence over the ones in the system directory, but that the system directory takes precidence over the PATH. I also didn't *think* that the directory the executable was in took precidence over the system directories though of course for many folks the directory the executable is in is the system directory. Am I wrong? Hmm, now that I look through my distribution, the one executable that isn't the same directory with all the DLLs is python.exe. Perhaps if I just dumped it in the bin directory with all my other executables I would have a lot less conflict problems with users of OpenEV_FW. Also, sorry if I came across as being crabby and I can sympathize with how hard it is to get PATH environment variables into cgi programs and other odd places. I have had this too. It's just the soup of DLLs scares me. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent -------------- next part -------------- An HTML attachment was scrubbed... URL: From saintsjd at YAHOO.COM Tue Oct 19 22:40:54 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 19 Oct 2004 22:40:54 -0700 Subject: Install on Gentoo Linux Message-ID: Hi I am very new to mapserver. I have built it sucessfully from source code several time. Now i am trying to create an ebuild (automatic install script) for the gentoo linux distribution to install mapserver. I am getting the compile error: "/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lmap" Any ideas? Thanks Jon From wesp at GDV.COM Wed Oct 20 00:44:29 2004 From: wesp at GDV.COM (Oliver Wesp) Date: Wed, 20 Oct 2004 09:44:29 +0200 Subject: Solaris Platform In-Reply-To: <20041020003441.81759.qmail@web60502.mail.yahoo.com> Message-ID: Yes it can. We're using Mapserver on Solaris 8 and Solaris 9 without any problems. Just follow the Unix/Linux-Documentation. best regards Oliver Ike Brian wrote: > Hello, > I would like to know if mapserver is stable or can run on Sun Solaris > platform. > Thank you > > ------------------------------------------------------------------------ > Do you Yahoo!? > vote.yahoo.com - Register online to vote today! -- Dipl.-Geogr. Oliver Wesp Gesellschaft fuer geografische Datenverarbeitung Binger Strasse 49-51 D-55218 Ingelheim fon: +49 6132 714818 fax: +49 6132 714828 http: www.gdv.com From uli.rothstein at CCGIS.DE Wed Oct 20 00:59:23 2004 From: uli.rothstein at CCGIS.DE (Uli Rothstein (CCGIS)) Date: Wed, 20 Oct 2004 09:59:23 +0200 Subject: WFS - PropertyIsLike Message-ID: Hi list, does someone know which attributes I can use with in wfs-requests or where I can get a documentation? I've tested the following request: http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo _postgresql_wfs.map&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=St aatsgrenze&FILTER=popycounG As result I get all objects beginning with "G". It seems that mapserver ignores the attribute 'wildcard' and uses a wildcard at the end of each search item. Additionally I want to use the wildcard at the beginning of the search item. But this does't seem to work with mapserver. Best regards Uli Rothstein -------------------------------- Ulrich Rothstein CCGIS GbR Siemensstra?e 8 53121 Bonn GERMANY -------------------------------- ulrich.rothstein at ccgis.de www.ccgis.de -------------------------------- Zentrale: ++49 (0) 228 90826 0 Durchwahl: ++49 (0) 228 90826 17 Fax: ++49 (0) 228 90826 11 -------------------------------- From temiz at DEPREM.GOV.TR Wed Oct 20 01:15:52 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Wed, 20 Oct 2004 11:15:52 +0300 Subject: [UMN_MAPSERVER-USERS] zooming problem continues In-Reply-To: <001401c4b5e7$e8d2abd0$ec02a8c0@jebediah> Message-ID: hello again I am sorry to extend the question. I think I can get pixel coord of the rectangle drawn with rubberband (for example $zoom_rect gives [minx] => 171 [miny] => 223 [maxx] => 231 [maxy] => 175). here is the current extent: [minx] => 414562.225 [miny] => 4510820 [maxx] => 521317.775 [maxy] => 4617510 $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); this command doesn't bring about any change. I get same image. I hesitate on: - $zoom_rect is in image(pixel) coord (or geographic coord). What might be the problem ? regards Skweda O'Bomsawin wrote: > Temiz, > > > > You need an onMouseMove event in your image to draw the rectangle and > have minx != maxx: > > > > > src="" onMouseDown="startRubber(event)" > > onMouseMove="moveRubber(event) onMouseUp="stopRubber(event)" > > > > > > > Skweda O'Bomsawin > > > > > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > De la part de temiz > Envoy? : 19 octobre 2004 09:09 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] zooming problem continues > > > > thank you > I followed the procedure you offered > I can draw rubberband. But zooming is not still working. > > I will appreciate if you find what the wrong is ? > > regards > > here is the complete php code: > > if (!extension_loaded('php_mapscript.so')) { > if (!dl('php_mapscript.so')) { > exit; > } > } > > $map_file="./kara.map"; > global $map; > global $result; > $map = ms_newMapObj($map_file); > > > $jeolayer = $map->getLayerByName("jeo"); > $jeoClass0 = $jeolayer->getClass(9); > $jeoStyle = $jeoClass0->getStyle("*"); > $jeoStyle->color->setRGB(0,255,0); > $jeolayer ->set("status",1); > > if ( isset($HTTP_POST_VARS["mapa_x"]) && isset($HTTP_POST_VARS["mapa_y"]) > && !isset($HTTP_POST_VARS["full"]) ) { > > > $extent_to_set = explode(" ",$HTTP_POST_VARS["extent"]); > > $map->setextent($extent_to_set[0],$extent_to_set[1], > $extent_to_set[2],$extent_to_set[3]); > > > $my_extent = ms_newrectObj(); > > $my_extent->setextent($extent_to_set[0],$extent_to_set[1], > $extent_to_set[2],$extent_to_set[3]); > > $zoom_rect = ms_newRectObj(); > > $zoom_rect->setextent($_POST["mapa_x"] - $_POST["w"],$_POST["mapa_y"], > $_POST["mapa_x"],$_POST["mapa_y"]-$_POST["h"]); > > > $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); > > } > > $image=$map->draw(); > $image_url=$image->saveWebImage(); > $extent_to_html = $map->extent->minx." ".$map->extent->miny." " > .$map->extent->maxx." ".$map->extent->maxy; > > > ?> > > > > karab?k > > > > > > > > > >
> >
> $HTTP_SERVER_VARS['PHP_SELF']?>> > > > > > > > > > > > > > > > > > > > > > > > >
> >
zoom
> > > > > src="" onMouseDown="startRubber(event)" > onMouseUp="stopRubber(event)" > > orkun
ORKUN
> > > >
coordinat > > >
> > > > > > > > Sandeep Bashyal wrote: > > On Fri, 15 Oct 2004 10:21:03 +0300, temiz > wrote: > > hello Mr.Sandeep, > > thank you for your help. > I have examined the javascript code you suggested. > Unfortunately I have also little knowledge about javascript. So, I > coudn't > manage to get rectangle coordinates drawn as rubberband. > I think getting coord. values is the way for zooming. > > Do you have any idea about how coord values can get? > > best wishes > > Bashyal wrote: > > On Thu, 14 Oct 2004 17:13:37 +0300, temiz > wrote: > > hello > > for zooming, I want to build rubberband. > How can I get an example which contain rubberband for zooming ? > > kind regards > > Ahmet temiz > > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the sender's > own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > > > Ahmet, > > I've found the rubberband zoom box by Gayathri Swaminathan to be simple > and quite useful. You can download it here: > http://mapserver.gis.umn.edu/user_utilities/RBand.zip > Just call startRubber and stopRubber functions on mouseDown and mouseUp > events on the main map image and put hidden form elements containing the > width and height of the "rubberband" layer. > > Works pretty well for my limited knowledge of javascript and mapserver > :). > > Regards. > > -- Sandeep Bashyal > -- National GIS Officer > Humanitarian Assistance Information System (HAIS) > United Nations (NEP/01/008) > UN House, Pulchowk > G.P.O. Box 107 > Kathmandu, Nepal > Tel: (+977) 01 5543957 > (+977) 01 5554304 > Cell:(+977) 9841270854 > Fax: (+977) 01 5528059 > -------------------------------------------------- > mailto:gis at undphais.org.np > mailto:sandeep at earthmapping.com > http://www.undp.org.np > > > > ______________________________________ > Inflex - installed on mailserver for domain @deprem.gov.tr > Queries to: postmaster at deprem.gov.tr > > ______________________________________ > The views and opinions expressed in this e-mail message are the > sender's own > and do not necessarily represent the views and the opinions of > Earthquake Research Dept. > of General Directorate of Disaster Affairs. > > Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal > olarak T.C. > B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici > nitelikte degildir. > > Ahmet, > > I'm new to javascript too and could not quite understand how the > rubberband zoom box works in the included example file. This is how I > improvised: > > Contents of rubberband.js: > --------------------------- > function startRubber (evt) { > if (document.all) { > var r = document.all.rubberBand; > r.style.width = 0; > r.style.height = 0; > r.style.pixelLeft = event.x; > r.style.pixelTop = event.y; > r.style.visibility = 'visible'; > } > > else if (document.layers) { > var r = document.rubberBand; > r.clip.width = 0; r.clip.height = 0; > r.left = evt.x; > r.top = evt.y; > r.visibility = 'show'; > } > > else if (document.getElementById) { > var r = document.getElementById('rubberBand'); > r.style.width = 0; > r.style.height = 0; > r.style.left = evt.clientX + 'px'; > r.style.top = evt.clientY + 'px'; > r.style.visibility = 'visible'; > } > document.captureEvents(Event.MOUSEMOVE); > document.onmousemove = moveRubber; > } > > function moveRubber (evt) { > if (document.all) { > var r = document.all.rubberBand; > r.style.width = event.x - r.style.pixelLeft - 2; > r.style.height = event.y - r.style.pixelTop - 2; > var f = document.forms('viewmap'); > f.w.value = r.style.width; > f.h.value = r.style.height; > } > > else if (document.layers) { > var r = document.rubberBand; > r.clip.width = evt.x - r.left - 2 ; > r.clip.height = evt.y - r.top - 2; > r.document.open(); > r.document.write('
<\/td><\/tr><\/table>'); > r.document.close(); > var f = document.forms('viewmap'); > f.w.value = r.clip.width; > f.h.value = r.clip.height; > } > > else if (document.getElementById) { > var r = document.getElementById('rubberBand'); > r.style.width = evt.clientX - parseInt(r.style.left) - 2; > r.style.height = evt.clientY - parseInt(r.style.top) - 2; > var ht = document.getElementById('h'); > var wt = document.getElementById('w'); > wt.value = r.style.width; > ht.value = r.style.height; > } > } > > function stopRubber (evt) { > document.releaseEvents(Event.MOUSEMOVE); > document.onmousemove = null; > } > > Contents of the form: > --------------------------------------------------- >
action=""> > > > src="" onMouseDown="startRubber(event)" > onMouseUp="stopRubber(event)" /> >
>
> > Zooming to rectangle (I'm using php mapscript): > ----------------------------------------------------- > $zoom_rect = ms_newRectObj(); > $zoom_rect->setextent($_POST["mapa_x"] - $_POST["w"],$_POST["mapa_y"], > $_POST["mapa_x"],$_POST["mapa_y"]-$_POST["h"]); > $map->zoomrectangle($zoom_rect,$map->width,$map->height,$current_extent); > //where $current_extent is a rectangular object with the current > extent of the map. > > Hope this helps a bit. I've tested it on IE6, NS7, Opera7.5 and > Firefox0.93. > > Regards. > > > > > > > >______________________________________ > >Inflex - installed on mailserver for domain @deprem.gov.tr > >Queries to: postmaster at deprem.gov.tr > > > >______________________________________ > >The views and opinions expressed in this e-mail message are the sender's own > >and do not necessarily represent the views and the opinions of Earthquake Research Dept. > >of General Directorate of Disaster Affairs. > > > >Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. > >B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. > > > > > > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 > ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. -------------- next part -------------- An HTML attachment was scrubbed... URL: From holzmeier at CONTERRA.DE Wed Oct 20 02:59:56 2004 From: holzmeier at CONTERRA.DE (Richard Holzmeier) Date: Wed, 20 Oct 2004 04:59:56 -0500 Subject: WMS/SLD: UserLayer & RemoteWFS Message-ID: Hi, does anybody know if the current version (4.2.5) or any version below supports UserLayer (i.e. remote WFS) in a WMS/SLD getMap request? Thanks, Richard From berend.veldkamp at ARIS.NL Wed Oct 20 03:29:19 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Wed, 20 Oct 2004 12:29:19 +0200 Subject: Support for spatial filters in WFS Message-ID: Hi, I see that the Mapserver nightly build supports spatial filters in WMS GetMap requests. Can I also use spatial filters when doing a WFS GetFeature request? Thanks, Berend -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From temiz at DEPREM.GOV.TR Wed Oct 20 06:16:42 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Wed, 20 Oct 2004 16:16:42 +0300 Subject: Getting geographic coordinates with javascript Message-ID: hello How might a javascript that changes image coordinates to geographic coordinates be ? regards Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. From josh at OKLIEB.NET Wed Oct 20 06:19:13 2004 From: josh at OKLIEB.NET (Joshua Lieberman) Date: Wed, 20 Oct 2004 09:19:13 -0400 Subject: SWF output from Mapserver WMS In-Reply-To: Message-ID: I am running Mapserver 4.2.0 on RedHat 9 and have linked in the Ming (0.3beta1) library (OUTPUT=SWF). The data sources are PostGIS 0.8.2 layers. The flash output format shows up in GetCapabilities; A nice map is returned for jpg or png formatsl but the swf output always seems to be blank. This is the same for (OUTPUT_MOVIE=SINGLE) or (OUTPUT_MOVIE=MULTIPLE). Does the flash output work with WMS ? Thanks, Josh Joshua Lieberman josh at oklieb.net tel (857) 919-1071 fax (775) 514-6621 From fchen at NE.RSGS.AC.CN Wed Oct 20 07:08:17 2004 From: fchen at NE.RSGS.AC.CN (Fu Chen) Date: Wed, 20 Oct 2004 22:08:17 +0800 Subject: Difference between of size in mapfile and mapscript In-Reply-To: <200410191410.24164.vaiod@berloy.com> Message-ID: Hi! I really can't understand what's the difference between of size in mapfile and mapscript? In php script, I try to setExtent and set "width" and "height" of mapobject to an output image. At first I guess the "width" and "height" in script just replace the SIZE element in mapfile. But it's wrong. If I change the size in the mapfile but keep the value in script not changed, I get quite different result images. I dont know what's the relation of those variables. Can anyone give me a hint? Thank you! some statement in my script: $gpoMap->setExtent($minx, $miny, $maxx, $maxy); $dfWidthPix = $w; $dfHeightPix = $h; $gpoMap->set("width",$dfWidthPix); $gpoMap->set("height",$dfHeightPix); From woodbri at SWOODBRIDGE.COM Wed Oct 20 10:40:57 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 20 Oct 2004 13:40:57 -0400 Subject: Debian GIS Sub-Project started. Message-ID: The following might be of interest to some/all of our mapserver users. Might we also want to get Mapserver included as part of this project? -Steve W. --------------------------------------------------------------------------- Debian Weekly News http://www.debian.org/News/weekly/2004/41/ Debian Weekly News - October 19th, 2004 --------------------------------------------------------------------------- [snip] Debian GIS Sub-Project started. Francesco Lovergine [5]announced the launch of DebianGis as new Debian sub-project. The goal is to create a [6]custom Debian distribution oriented to serious [7]Geographical Information Systems (GIS) users and applications. Coordination currently takes place on [8]Alioth. 5. http://lists.debian.org/debian-devel-announce/2004/10/msg00007.html 6. http://wiki.debian.net/index.cgi?CustomDebian 7. http://en.wikipedia.org/wiki/Gis 8. http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-general [snip] From bartvde at XS4ALL.NL Wed Oct 20 11:08:07 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 20 Oct 2004 20:08:07 +0200 Subject: SWF output from Mapserver WMS In-Reply-To: Message-ID: Hi Josh, there were some changes done for this by DMSG in June 2004. See: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=781 Don't know what the current status is though. Best regards, Bart On Wed, 20 Oct 2004 09:19:13 -0400, Joshua Lieberman wrote: > I am running Mapserver 4.2.0 on RedHat 9 and have linked in the Ming > (0.3beta1) library (OUTPUT=SWF). The data sources are PostGIS 0.8.2 > layers. > > > The flash output format shows up in GetCapabilities; A nice map is > returned for jpg or png formatsl but the swf output always seems to be > blank. This is the same for (OUTPUT_MOVIE=SINGLE) or > (OUTPUT_MOVIE=MULTIPLE). > > Does the flash output work with WMS ? > > Thanks, > > Josh > > > Joshua Lieberman > josh at oklieb.net > tel (857) 919-1071 > fax (775) 514-6621 > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From assefa at DMSOLUTIONS.CA Wed Oct 20 11:40:51 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 20 Oct 2004 14:40:51 -0400 Subject: WMS/SLD: UserLayer & RemoteWFS In-Reply-To: Message-ID: UserLayer are not supported in any versions in mapserver. Richard Holzmeier wrote: > Hi, > > does anybody know if the current version (4.2.5) or any version below > supports UserLayer (i.e. remote WFS) in a WMS/SLD getMap request? > > Thanks, Richard > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Wed Oct 20 12:00:24 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 20 Oct 2004 15:00:24 -0400 Subject: Support for spatial filters in WFS In-Reply-To: <41763DFF.8070800@aris.nl> Message-ID: Spatial filters are available for wfs too. There is a link to a howto from the wiki that can help you start: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FilterEncodingMapServer Berend Veldkamp wrote: > Hi, > > I see that the Mapserver nightly build supports spatial filters in WMS > GetMap requests. Can I also use spatial filters when doing a WFS > GetFeature request? > > Thanks, Berend > > > -- > ____________________________ > > Berend Veldkamp - ARIS > http://www.aris.nl/ > ____________________________ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ganny_3 at REDIFFMAIL.COM Wed Oct 20 13:33:11 2004 From: ganny_3 at REDIFFMAIL.COM (Ganesh P) Date: Wed, 20 Oct 2004 20:33:11 -0000 Subject: Pixel/Color values in Raster Image Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- Hello Everyone, We are using PHP/Mapscript for our application. I have a question regarding the Raster Image layer (Images with 7 bands). Is there a way to get the Pixel values (for example, R,G,B values) of a point on the raster image according to the selected bands? Any help is greatly appreciated. Thanks in advance Ganesh From woodbri at SWOODBRIDGE.COM Wed Oct 20 14:28:05 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 20 Oct 2004 17:28:05 -0400 Subject: TILEINDEX behavior Message-ID: Hi all, I seem to bang my head against this on a regular basis. Has this been changed and I'm just stupidly working on an old version (4.01) and should upgrade? Relative paths in Tileindexes NEED to be relative to the location of the Tileindex! Why? because it is needed to modularize your deployment of data. I create a directory that has a bunch of data in a sub tree and then create the tileindexes in that directory. If I want to reference that directory in a lot of other map configs using symlinks it can get linked into a different levels in the overall directory structure. If the paths are relative to the DATAPATH or the mapfile location then is almost always breaks. I typically have All mapfiles are in a common directory like "/u/mapfiles/" DATAPATH "/u/data/" TILEINDEX "tiger-maps/roads-tile" and paths in "roads-tile.shp" are like: ./data/01/001/roads.shp ./data/01/003/roads.shp and /u/data/tiger-maps/data/01/... BUT mapserver seems to look for files in: /u/mapfiles/./data/01/001/roads.shp /u/data/./data/01/001/roads.shp tiger-maps might also get referenced in another map like: /u/data/world/us/tiger-maps -> /u/data/tiger-maps DATAPATH "/u/data/world/" TILEINDEX "us/tiger-maps/roads-tile" This is a natural thing to do with making data and tileindexes reusable, but it requires the relative paths in tileindexes to be relative to the tileindex location. -Steve W. From ikebrian at YAHOO.COM Wed Oct 20 17:25:28 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Wed, 20 Oct 2004 17:25:28 -0700 Subject: Output Data Formats Message-ID: Hello, I would like to know the other output data formats that mapserver can create apart from png. Thank you very much. Ike __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chodgson at REFRACTIONS.NET Wed Oct 20 17:48:22 2004 From: chodgson at REFRACTIONS.NET (Chris Hodgson) Date: Wed, 20 Oct 2004 17:48:22 -0700 Subject: gdalwarp with alpha band masking Message-ID: I'd like to share a fun project I've been working on lately with Mapserver and GDAL, for the interest and potential benefit of others. BEWARE - Long post follows... My task was to take a somewhat disorganized collection of orthophotos in tiff format and setup a WMS to serve a mosaic of these photos for use as a backdrop to support operators conflating road networks. This at first seemed like it would be an exceptionally simple task, just get all the images, run gdaltindex to make a tileindex for mapserver, setup the mapfile, and it's done. However, there were several problems that needed to be overcome in particular the quantity of data, and the mixed projections of the images. There is 2-4TB of orthophotos to work with. We were able to reduce this somewhat because we only need orthophotos that overlap with both of the road networks we are conflating, but it is still more data than we want to deal with. We decided to solve this by compressing to JPEG-2000 format - at a rate of 10:1, I cannot tell the difference between the original image and the compressed one. We are using the Kakadu library and gdal_translate to do this conversion, however, since we are using a lossy compression we needed to do all of the image processing before the compression in order to minimize image degradation. Next problem - not all of the images were in the same projection, most were in UTM, but I wanted them all in BC Albers. gdalwarp solves the reprojection problem quite nicely, however, the output images have empty "collars" around the edges where data is missing due to the reprojected image not filling the entire bounding box of the image in the new projection. One way around this would be to put all the tiles together beforehand with something like gdal_merge.py, then reproject them, then slice them up into new tiles afterward. However, due to the quantity of the data, this was not an ideal solution. In fact, you don't even need to put them all together, all you need to build one tile is itself and its eight neighbors - however, this requires far more processing than our final solution for effectively the same result. The final solution was to ask Frank to add an alpha band mask to the output of gdalwarp, so that instead of a black collar, there is transparency. With an additional change to mapserver to automatically use this alpha band channel (it already did for colour images, just not for greyscale images), a tiled layer of these reprojected images looks as though it has been mosaicked together - in fact, mapserver is basically doing the mosaicking on the fly. Note that the reprojected images all overlap eachother, but the overlapping areas are mostly transparent. A couple things which aren't addressed in this solution are color balance/histogram equalization, and fixing seams with morphing/warping. The histogram equalization might be easily solved with imageMagik, but I'm not sure. The seaming is trickier stuff, but I suspect OSSIM might be able to do this sort of thing. In fact, OSSIM might be able to do all of this, but I didn't want try to learn a whole new piece of software on a rush-project. In the end, here is my processing stream: - use imageMagik to convert to grayscale if not already so: convert -colorspace GRAY $in_file $out_file - use gdalwarp to convert to the right projection, and add transparency to existing and resulting nodata areas: gdalwarp -dstalpha -srcnodata 0 -co 'ALPHA=YES' -s_srs 'epsg:26910' -t_srs 'epsg:42102' -rc $in_file $out_file - use gdal_translate to convert the reprojected file to jpeg 2000 using kakadu - options are from the kakadu examples site, they seem to work well but then I haven't found options that don't work well: gdal_translate -of JP2KAK -co 'Clayers=20' -co 'Clevels=8' -co 'Corder=RPCL' -co 'Cprecincts={256,256},{256,256},{128,128}' -co 'ORGgen_plt=yes' -co 'ORGtparts=R' -co 'Cblk={32,32}' -co 'Creversible=no' -co 'quality=10' $in_file out_file - build a tileindex of all of the files for mapserver: gdaltindex tiles.shp *.jp2 - setup my layer in mapserver: LAYER NAME "orthophoto" METADATA "wms_title" "orthophoto" END STATUS ON TILEINDEX "tiles.shp" TILEITEM "Location" TYPE RASTER PROJECTION "init=epsg:42102" END END Right now I have 1389 jp2 tiles totalling 45.5GB, and mapserver can render a screen-size view of all of them in about 15 seconds - the machine is an Athlon 64 3500+ with 2GB RAM and a pair of 7200RPM 250GB SATA drives in software RAID 1 on Fedora Core 2 x86_64. The render time seems to be pretty proportional down to around 1 second... ie. if you look at half of it, it takes 7 seconds, a fifteenth of it takes 1 second, and basically any zoom level smaller than that takes about 1 second or less. JP2K files (especially with the options I specified above) are created with multi-resolution and spatial indexing in mind, so every jp2 file effectively is internally tiled and has many overview layers, at little to no extra cost in file size - this contributes greatly to the speed, I'm sure. I'm still processing data right now, but once I'm all done I will use gdal_merge.py to create an overview layer. It will be slightly degraded since I will have to base it on the lossily-compressed jp2s, but the quality of the overview isn't important. With an overview layer in place (or maybe two), I expect to be able to provide sub-second response time to render any bounding box at screen resolution. Thanks to Frank Warmerdam for adding the new features into GDAL and Mapserver that made this all possible. Sorry, but I can't share the final result due to licensing agreements on the orthophotos. Hope this was worth the read for some of you :-) Chris Hodgson Refractions Research Inc. From woodbri at SWOODBRIDGE.COM Wed Oct 20 20:36:55 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 20 Oct 2004 23:36:55 -0400 Subject: Tiger Maps... In-Reply-To: Message-ID: Prasad, I am CCing the mapserver list. They have lots of people that can help you with questions related to that. I assume you have looked at http://imaptools.com/tiger/ The concepts around vector maps is similar but different than raster maps. In the URL above I am serving 18 GBs of tiger data covering the whole US and the maps are about 32 KB for each map view which will perform well even on dialup lines. I have the data organized by state and county like /u/data/tiger/data/state/county/shapefiles /u/data/tiger/tileindexes I use a tileindex to pull all the files together into layers In the mapfile you need to set minscale and maxscale so an appropriate level of detail is displayed at the various zoom scales you are working with. I'm sure other will have more advice for you if you ask. -Steve W. Anantha Prasad wrote: > Hello Stephen: > We (US Forest Service) are in the process of developing a MapServer > application that seeks to get coordinate input of Emerald Ash Borer (EAB) > pest infestations from the general public. I was looking at your tiger map > applications and realized that I am doing something similar and had a few > questions, if I may take the liberty. > > I have developed an application (using PHP Mapscript) that displays DOQQ > and DRG images for quads in Ohio (the map file is changed on-the-fly based > on which quad the user clicks, thus loading DOQQ and DRG files for only > that quad). However, we realized that even this is too much for > non-broadband users (and many folks in rural Ohio do not have broadband). > So we wanted to develop an alternate application for dial-up users that > uses Tiger 2000 Road/Rail/Hydro/KeyGeographicLocation shapefiles for > identification purposes. > > Now my question is, since Tiger files are county based, it would still be > too large if I were to load all county data when the user is just > interested in seeing the roads in a particular quad (the scale at which EAB > infestations can be identified) . I see in your application that the roads > are displayed only when the user zooms in enough. However, my understanding > (pls. correct me if I am wrong) is that the maps are loaded even though you > have a MINSCALE/MAXSCALE associated with the layer - only that it > "displays" within the scale-range. How do I minimize bandwidth requirements > for dialup users (ie., not load the county maps until they have zoomed > enough)? Will MINSCALE/MAXSCALE achieve this or should I be looking at > cookie-cutting the Tiger county data to quads (which is fraught with > problems since the application is going to be Ohio-wide). Is there any > other way? > > Any suggestions or help would be greatly appreciated and acknowledged. > Thanks much in advance. > Best regards, > Prasad > > ***************************************************************** > Anantha Prasad, Ecologist/GIS Specialist > USDA Forest Service, Northeastern Research Station > 359 Main Rd., Delaware OHIO 43015 USA > Ph: 740-368-0103 Email: aprasad at fs.fed.us > Web: http://www.fs.fed.us/ne/delaware/4153/4153.html > Don't Miss Climate Change Tree Atlas at: > http://www.fs.fed.us/ne/delaware/atlas/index.html > ****************************************************************** > > From warmerdam at POBOX.COM Wed Oct 20 21:48:09 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 21 Oct 2004 00:48:09 -0400 Subject: gdalwarp with alpha band masking In-Reply-To: <41770756.7020909@refractions.net> Message-ID: Chris, Thanks for walking folks through this. I'm sure it helps others get an idea of what is possible, and what some of the issues are. I'll just add a few comments for everyone. > - use imageMagik to convert to grayscale if not already so: > convert -colorspace GRAY $in_file $out_file I believe Chris was using this to strip off greyscale colormaps on some of his files. The colormaps were just simple greyscale ramps, but sort of messed up later processing. It was preferable to just strip them down to plain greyscale images. > - use gdalwarp to convert to the right projection, and add transparency > to existing and resulting nodata areas: > gdalwarp -dstalpha -srcnodata 0 -co 'ALPHA=YES' -s_srs 'epsg:26910' > -t_srs 'epsg:42102' -rc $in_file $out_file The -dstalpha switch is new. It should appear in GDAL 1.2.4. The -co ALPHA=YES is a special clue to the GTIFF driver to mark the second band as alpha at creation time for Greyscale+alpha images. This is really a hack to work around limits in GDAL for dynamically marking a band as alpha. > Right now I have 1389 jp2 tiles totalling 45.5GB, and mapserver can > render a screen-size view of all of them in about 15 seconds - the I would like to stress that rendering an overview from so many files is inherently "high overhead". As Chris notes you should try and produce at least one overview mosaic at high enough resolution that once you go "below it" you will only be accessing a few of the full resolution files (say 5-10). > machine is an Athlon 64 3500+ with 2GB RAM and a pair of 7200RPM 250GB > SATA drives in software RAID 1 on Fedora Core 2 x86_64. The render time > seems to be pretty proportional down to around 1 second... ie. if you > look at half of it, it takes 7 seconds, a fifteenth of it takes 1 > second, and basically any zoom level smaller than that takes about 1 > second or less. JP2K files (especially with the options I specified > above) are created with multi-resolution and spatial indexing in mind, > so every jp2 file effectively is internally tiled and has many overview > layers, at little to no extra cost in file size - this contributes > greatly to the speed, I'm sure. > > I'm still processing data right now, but once I'm all done I will use > gdal_merge.py to create an overview layer. It will be slightly degraded > since I will have to base it on the lossily-compressed jp2s, but the > quality of the overview isn't important. With an overview layer in place > (or maybe two), I expect to be able to provide sub-second response time > to render any bounding box at screen resolution. I would add that it might be practical to extract the overview image just by issuing a WMS request to the server, though some steps might be required to assign georeferencing to the resulting image. PS. the greyscale+alpha support in MapServer is in 4.3 now. The RGB+alpha support is already in 4.2. I think generating and using alpha bands can have many applications for masking rasters with MapServer. Alpha blending of rasters is only supported for files read via the MapServe GDAL linkage. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Wed Oct 20 21:50:00 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 21 Oct 2004 00:50:00 -0400 Subject: Output Data Formats In-Reply-To: <20041021002528.13624.qmail@web60510.mail.yahoo.com> Message-ID: Ike Brian wrote: > Hello, > I would like to know the other output data formats that mapserver can > create apart from png. > Thank you very much. > Ike Ike, It depends somewhat on how you build mapserver. Depending on options it can include JPEG, PNG, GIF, WBMP, PDF, SWF (flash), DXf, "imagemaps", and any raster format that GDAL supports writing that is written to one data file. So that includes various things like GeoTIFF, Imagine, JPEG2000 ... Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Wed Oct 20 21:59:28 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 21 Oct 2004 00:59:28 -0400 Subject: Pixel/Color values in Raster Image In-Reply-To: <20041020203311.3914.qmail@webmail7.rediffmail.com> Message-ID: Ganesh P wrote: > Hello Everyone, > > We are using PHP/Mapscript for our application. I have a question regarding the Raster Image layer (Images with 7 bands). Is there a way to get the Pixel values (for example, R,G,B values) of a point on the raster image according to the selected bands? Any help is greatly appreciated. > > Thanks in advance > Ganesh Ganesh, Have you looked at the raster query support? It is new in 4.3. I think it will select an arbitrary number of bands of pixel data based on the BANDS PROCESING directive. So if you wanted only particular bands out of a multispectral image. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery Contact me if you need details or run into problems. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Wed Oct 20 21:53:52 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 21 Oct 2004 00:53:52 -0400 Subject: TILEINDEX behavior In-Reply-To: <4176D865.70509@swoodbridge.com> Message-ID: Stephen Woodbridge wrote: > Hi all, > > I seem to bang my head against this on a regular basis. Has this been > changed and I'm just stupidly working on an old version (4.01) and > should upgrade? > > Relative paths in Tileindexes NEED to be relative to the location of the > Tileindex! Steve, This is a completely reasonable request, and I don't think it has been made to work as you would desire in 4.3 (though it is a bit hard to tell since the code is complex). Please submit a bug report on this, and assign it to me. I will see what I can do to make it work before the 4.4 release. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From berend.veldkamp at ARIS.NL Thu Oct 21 01:35:42 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Thu, 21 Oct 2004 10:35:42 +0200 Subject: Support for spatial filters in WFS In-Reply-To: <4176B5C8.9090709@dmsolutions.ca> Message-ID: Thanks, I got it working now. Any idea which official version will incorporate the changes you made to mapogcfilter, 4.3? Berend Yewondwossen Assefa wrote: > Spatial filters are available for wfs too. There is a link to a howto > from the wiki that can help you start: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FilterEncodingMapServer > > Berend Veldkamp wrote: > -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From assefa at DMSOLUTIONS.CA Thu Oct 21 01:46:45 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 21 Oct 2004 04:46:45 -0400 Subject: Support for spatial filters in WFS In-Reply-To: <417774DE.2080403@aris.nl> Message-ID: Mapsever 4.4 would be the next official release. Details of the relase are at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ReleasePlan44 Berend Veldkamp wrote: > Thanks, I got it working now. > Any idea which official version will incorporate the changes you made to > mapogcfilter, 4.3? > > Berend > > Yewondwossen Assefa wrote: > >> Spatial filters are available for wfs too. There is a link to a howto >> from the wiki that can help you start: >> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FilterEncodingMapServer >> >> Berend Veldkamp wrote: >> > > -- > ____________________________ > > Berend Veldkamp - ARIS > http://www.aris.nl/ > ____________________________ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bartvde at XS4ALL.NL Thu Oct 21 02:50:40 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 21 Oct 2004 11:50:40 +0200 Subject: RGBA and transparency Message-ID: Hi list, does anybody know the status of RGBA output mode and transparency, as noted in the following e-mail by Sean? http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00579.html Is there a bug report (feature enhancement) for this one? Best regards, Bart From bluecarto at FREE.FR Thu Oct 21 03:34:29 2004 From: bluecarto at FREE.FR (Pierre GIRAUD) Date: Thu, 21 Oct 2004 12:34:29 +0200 Subject: query on oraclespatial using OGR/OCI In-Reply-To: <1098107233.4173c961e46e3@imp1-q.free.fr> Message-ID: I'm still having difficulties to use mapserver queries on a oracle layer. Before I report a bug, I would like someone to test the following SQL statement and mapfile, and agree that something is going wrong, or tell me I am missing something obvious. Thx Pierre GIRAUD camptocamp.com ---------SQL statement-------------- DROP table mytable; CREATE TABLE MYTABLE ( GID VARCHAR(20), geometry MDSYS.SDO_GEOMETRY); insert into MYTABLE (GID,GEOMETRY) values ( '1', mdsys.sdo_geometry( '2003', null, null, mdsys.sdo_elem_info_array(1,1003,1), mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) ); insert into MYTABLE (GID,GEOMETRY) values ( '2', mdsys.sdo_geometry( '2003', null, null, mdsys.sdo_elem_info_array(1,1003,1), mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) ); insert into MYTABLE (GID,GEOMETRY) values ( '3', mdsys.sdo_geometry( '2003', null, null, mdsys.sdo_elem_info_array(1,1003,1), mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) ); delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; insert into user_sdo_geom_metadata (table_name,column_name,diminfo,srid) values ('MYTABLE','GEOMETRY', mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), NULL); drop index q_mytable; create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is MDSYS.spatial_index parameters ('SDO_LEVEL=6'); ---------mapfile--------------- NAME DEMO STATUS ON SIZE 500 300 EXTENT 0 0 10 10 IMAGECOLOR 255 255 255 WEB IMAGEPATH "/var/www/cartoserver_DGI_flash/www-data/images/" IMAGEURL "cartogfx/" END LAYER NAME squares TYPE POLYGON STATUS ON # CONNECTIONTYPE oraclespatial # CONNECTION "pierre/xbe9a51h at 192.168.226.149:1521/orcl" CONNECTION "OCI:pierre/xbe9a51h at 192.168.226.149:1521/orcl" CONNECTIONTYPE OGR # DATA "select * from mytable" DATA "mytable" TEMPLATE "ttt" CLASS SIZE 10 COLOR 255 255 255 OUTLINECOLOR 200 200 200 END END END Selon bluecarto at free.fr: > Hello, > > Following the good advices of Frank Warmerdam, I improve in using oracle > spatial > data with spatial indexes. For now, I know that I should not use sql > statements > in the mapfile but queries directly to the table : > > DATA "my_table" > instead of > DATA "select * from my_table" > > Both return the same images. Shapes are well drawn, and labeling is correct. > > But the first (more performant) statement doesn't give good results to a > query. > The data returned doesn't correspond to what is expected. And no shape is > highlighted. > > Do someone using Oracle have same problems ? > > Pierre GIRAUD > camptocamp.com > > From j.l.h.hartmann at UVA.NL Thu Oct 21 04:22:52 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Thu, 21 Oct 2004 13:22:52 +0200 Subject: gdalwarp with alpha band masking In-Reply-To: <41770756.7020909@refractions.net> Message-ID: Thanks Chris (and Frank). This is exacly the scenario for my historical cadastral mapping project. Thanks for sharing! Jan Jan Hartmann Department of Geography University of Amsterdam Chris Hodgson wrote: > Hope this was worth the read for some of you :-) > I'd like to share a fun project I've been working on lately with > Mapserver and GDAL, for the interest and potential benefit of others. > BEWARE - Long post follows... > > My task was to take a somewhat disorganized collection of orthophotos in > tiff format and setup a WMS to serve a mosaic of these photos for use as > a backdrop to support operators conflating road networks. This at first > seemed like it would be an exceptionally simple task, just get all the > images, run gdaltindex to make a tileindex for mapserver, setup the > mapfile, and it's done. However, there were several problems that needed > to be overcome in particular the quantity of data, and the mixed > projections of the images. > > There is 2-4TB of orthophotos to work with. We were able to reduce this > somewhat because we only need orthophotos that overlap with both of the > road networks we are conflating, but it is still more data than we want > to deal with. We decided to solve this by compressing to JPEG-2000 > format - at a rate of 10:1, I cannot tell the difference between the > original image and the compressed one. We are using the Kakadu library > and gdal_translate to do this conversion, however, since we are using a > lossy compression we needed to do all of the image processing before the > compression in order to minimize image degradation. > > Next problem - not all of the images were in the same projection, most > were in UTM, but I wanted them all in BC Albers. gdalwarp solves the > reprojection problem quite nicely, however, the output images have empty > "collars" around the edges where data is missing due to the reprojected > image not filling the entire bounding box of the image in the new > projection. One way around this would be to put all the tiles together > beforehand with something like gdal_merge.py, then reproject them, then > slice them up into new tiles afterward. However, due to the quantity of > the data, this was not an ideal solution. In fact, you don't even need > to put them all together, all you need to build one tile is itself and > its eight neighbors - however, this requires far more processing than > our final solution for effectively the same result. The final solution > was to ask Frank to add an alpha band mask to the output of gdalwarp, so > that instead of a black collar, there is transparency. With an > additional change to mapserver to automatically use this alpha band > channel (it already did for colour images, just not for greyscale > images), a tiled layer of these reprojected images looks as though it > has been mosaicked together - in fact, mapserver is basically doing the > mosaicking on the fly. Note that the reprojected images all overlap > eachother, but the overlapping areas are mostly transparent. > > A couple things which aren't addressed in this solution are color > balance/histogram equalization, and fixing seams with morphing/warping. > The histogram equalization might be easily solved with imageMagik, but > I'm not sure. The seaming is trickier stuff, but I suspect OSSIM might > be able to do this sort of thing. In fact, OSSIM might be able to do all > of this, but I didn't want try to learn a whole new piece of software on > a rush-project. > > In the end, here is my processing stream: > > - use imageMagik to convert to grayscale if not already so: > convert -colorspace GRAY $in_file $out_file > > - use gdalwarp to convert to the right projection, and add transparency > to existing and resulting nodata areas: > gdalwarp -dstalpha -srcnodata 0 -co 'ALPHA=YES' -s_srs 'epsg:26910' > -t_srs 'epsg:42102' -rc $in_file $out_file > > - use gdal_translate to convert the reprojected file to jpeg 2000 using > kakadu - options are from the kakadu examples site, they seem to work > well but then I haven't found options that don't work well: > gdal_translate -of JP2KAK -co 'Clayers=20' -co 'Clevels=8' -co > 'Corder=RPCL' > -co 'Cprecincts={256,256},{256,256},{128,128}' > -co 'ORGgen_plt=yes' > -co 'ORGtparts=R' -co 'Cblk={32,32}' -co > 'Creversible=no' -co 'quality=10' $in_file out_file > > - build a tileindex of all of the files for mapserver: > gdaltindex tiles.shp *.jp2 > > - setup my layer in mapserver: > LAYER > NAME "orthophoto" > METADATA > "wms_title" "orthophoto" > END > STATUS ON > TILEINDEX "tiles.shp" > TILEITEM "Location" > TYPE RASTER > PROJECTION > "init=epsg:42102" > END > END > > Right now I have 1389 jp2 tiles totalling 45.5GB, and mapserver can > render a screen-size view of all of them in about 15 seconds - the > machine is an Athlon 64 3500+ with 2GB RAM and a pair of 7200RPM 250GB > SATA drives in software RAID 1 on Fedora Core 2 x86_64. The render time > seems to be pretty proportional down to around 1 second... ie. if you > look at half of it, it takes 7 seconds, a fifteenth of it takes 1 > second, and basically any zoom level smaller than that takes about 1 > second or less. JP2K files (especially with the options I specified > above) are created with multi-resolution and spatial indexing in mind, > so every jp2 file effectively is internally tiled and has many overview > layers, at little to no extra cost in file size - this contributes > greatly to the speed, I'm sure. > > I'm still processing data right now, but once I'm all done I will use > gdal_merge.py to create an overview layer. It will be slightly degraded > since I will have to base it on the lossily-compressed jp2s, but the > quality of the overview isn't important. With an overview layer in place > (or maybe two), I expect to be able to provide sub-second response time > to render any bounding box at screen resolution. > > Thanks to Frank Warmerdam for adding the new features into GDAL and > Mapserver that made this all possible. > Sorry, but I can't share the final result due to licensing agreements on > the orthophotos. > > Hope this was worth the read for some of you :-) > > Chris Hodgson > Refractions Research Inc. > From steve.lime at DNR.STATE.MN.US Thu Oct 21 06:00:58 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 21 Oct 2004 08:00:58 -0500 Subject: Statistical Maps Message-ID: I've used OWTChart only once, worked great. I'm not an expert by any means. Best thing to do is start experimenting with it. I have created bar charts with it as part of reports generated using templates so it can be done. Steve >>> Ike Brian 10/19/04 9:50 AM >>> Thank you for you reply, what I want to do is to creat Bar and Pie chart of data over the polygon layer so that in viewing one will see the Bar/Pie chart per polygon. I have OWTchart but does not know how to use it. Could you help me out if it is possible for the the charts Steve Lime wrote:Do you mean placing charts as markers? I suppose anything is possible but certainly not out-of-the-box. Within MapScript I suppose you could feed data per feature to a charting tool like OWTChart and have it create a marker for you, you'd then reference that marker when drawing. Steve >>> Ike Brian 10/15/04 10:20 PM >>> Hello, I would like to know if it is possible to map Pie and Bar Charts using mapserver and if so I would need a helping hand in writing the codes. Thank you very much. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------- Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. From gbrauen at CONNECT.CARLETON.CA Thu Oct 21 05:53:54 2004 From: gbrauen at CONNECT.CARLETON.CA (Glenn Brauen) Date: Thu, 21 Oct 2004 07:53:54 -0500 Subject: SWF output from Mapserver WMS Message-ID: I'm running mapserver 4.2.0 on debian with ming-0.2a and it does work. There were API changes in Ming between 0.2a and 0.3beta1. When I worked on this in June 2004, the support for Ming in mapserver was still using the older API so 0.3beta1 was incompatible. Cheers, Glenn From geoffrey.rowland at NOAA.GOV Thu Oct 21 06:09:30 2004 From: geoffrey.rowland at NOAA.GOV (Geoffrey Rowland) Date: Thu, 21 Oct 2004 09:09:30 -0400 Subject: php mapscript binaries for php5? Message-ID: Are there any windows binaries out for php mapscript that will work under php5? Thanks, Geoff -- Geoffrey Rowland Technical Officer Climate Information Project NOAA Research Office of Global Programs http://www.cip.noaa.gov Contractor, RGII Technologies, Inc., a Computer Horizons Company http://www.rg2.com Phone: 301-427-2089x186 Fax : 301-427-2082 geoffrey.rowland at noaa.gov From josh at OKLIEB.NET Thu Oct 21 06:25:02 2004 From: josh at OKLIEB.NET (Joshua Lieberman) Date: Thu, 21 Oct 2004 09:25:02 -0400 Subject: SWF output from Mapserver WMS In-Reply-To: Message-ID: Bart, Thanks for your information. It does appear as if the output of the swf file is somehow disabled, as the mime type is set correctly in the headers, the flash browser plug-in loads, but no content arrives. I didn't find anything explicit in a quick perusal of the WMS code about this, but will also try the developer's list for more information. Josh On Oct 20, 2004, at 2:08 PM, Bart van den Eijnden wrote: > Hi Josh, > > there were some changes done for this by DMSG in June 2004. > > See: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=781 > > Don't know what the current status is though. > > Best regards, > Bart > > On Wed, 20 Oct 2004 09:19:13 -0400, Joshua Lieberman > wrote: > >> I am running Mapserver 4.2.0 on RedHat 9 and have linked in the Ming >> (0.3beta1) library (OUTPUT=SWF). The data sources are PostGIS 0.8.2 >> layers. >> >> >> The flash output format shows up in GetCapabilities; A nice map is >> returned for jpg or png formatsl but the swf output always seems to be >> blank. This is the same for (OUTPUT_MOVIE=SINGLE) or >> (OUTPUT_MOVIE=MULTIPLE). >> >> Does the flash output work with WMS ? >> >> Thanks, >> >> Josh >> >> >> Joshua Lieberman >> josh at oklieb.net >> tel (857) 919-1071 >> fax (775) 514-6621 >> > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > Joshua Lieberman, Ph.D. geospatial architect josh at oklieb.net tel (857) 919-1071 fax (775) 514-6621 From simon at INF.UNIVALI.BR Thu Oct 21 06:23:00 2004 From: simon at INF.UNIVALI.BR (FERNANDO SIMON) Date: Thu, 21 Oct 2004 11:23:00 -0200 Subject: query on oraclespatial using OGR/OCI In-Reply-To: <1098354869.417790b5819b8@imp3-q.free.fr> Message-ID: Hi Pierre, I don't use OGR but your problem can be with the spatial index. I saw this problem with the 10G version. In the 10G version the Oracle don't recommend use SDO_LEVEL when you create the spatial index. In my tests problems appears when I set the SDO_LEVEL, the result doesn't correspond whant I expected. I don't know if the problem occur with others Oracle Spatial versions. But you can try with or without SDO_LEVEL. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Quoting Pierre GIRAUD : > I'm still having difficulties to use mapserver queries on a oracle layer. > Before I report a bug, I would like someone to test the following SQL > statement > and mapfile, and agree that something is going wrong, or tell me I am > missing > something obvious. > > Thx > > Pierre GIRAUD > camptocamp.com > > ---------SQL statement-------------- > DROP table mytable; > > CREATE TABLE MYTABLE ( > GID VARCHAR(20), > geometry MDSYS.SDO_GEOMETRY); > > > > insert into MYTABLE (GID,GEOMETRY) values ( > '1', > mdsys.sdo_geometry( > '2003', > null, > null, > mdsys.sdo_elem_info_array(1,1003,1), > mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) > ); > > insert into MYTABLE (GID,GEOMETRY) values ( > '2', > mdsys.sdo_geometry( > '2003', > null, > null, > mdsys.sdo_elem_info_array(1,1003,1), > mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) > ); > > insert into MYTABLE (GID,GEOMETRY) values ( > '3', > mdsys.sdo_geometry( > '2003', > null, > null, > mdsys.sdo_elem_info_array(1,1003,1), > mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) > ); > > delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; > > insert into user_sdo_geom_metadata (table_name,column_name,diminfo,srid) > values ('MYTABLE','GEOMETRY', > mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), > mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), > NULL); > > drop index q_mytable; > > create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is > MDSYS.spatial_index > parameters ('SDO_LEVEL=6'); > > ---------mapfile--------------- > NAME DEMO > STATUS ON > SIZE 500 300 > EXTENT 0 0 10 10 > IMAGECOLOR 255 255 255 > > > WEB > IMAGEPATH "/var/www/cartoserver_DGI_flash/www-data/images/" > IMAGEURL "cartogfx/" > END > > LAYER > NAME squares > TYPE POLYGON > STATUS ON > # CONNECTIONTYPE oraclespatial > # CONNECTION "pierre/xbe9a51h at 192.168.226.149:1521/orcl" > CONNECTION "OCI:pierre/xbe9a51h at 192.168.226.149:1521/orcl" > CONNECTIONTYPE OGR > # DATA "select * from mytable" > DATA "mytable" > TEMPLATE "ttt" > CLASS > SIZE 10 > COLOR 255 255 255 > OUTLINECOLOR 200 200 200 > END > END > > END > > > > Selon bluecarto at free.fr: > > > Hello, > > > > Following the good advices of Frank Warmerdam, I improve in using oracle > > spatial > > data with spatial indexes. For now, I know that I should not use sql > > statements > > in the mapfile but queries directly to the table : > > > > DATA "my_table" > > instead of > > DATA "select * from my_table" > > > > Both return the same images. Shapes are well drawn, and labeling is > correct. > > > > But the first (more performant) statement doesn't give good results to a > > query. > > The data returned doesn't correspond to what is expected. And no shape is > > highlighted. > > > > Do someone using Oracle have same problems ? > > > > Pierre GIRAUD > > camptocamp.com > > > > > ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From dirk at ADVTECHME.COM Thu Oct 21 06:21:05 2004 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Thu, 21 Oct 2004 08:21:05 -0500 Subject: PHP Mapscript module and RegEx Message-ID: On Fri, 24 Sep 2004 16:05:36 -0600, Anthony Best wrote: >I'm looking into fixing the problem with PHP4s Bundled RegEx and Mapscript. [...] >Is anyone else working on this? I had that in mind. I couldn't find any news with regards to your try on this mailing list. Did you find a solution? >I'm willing to put the time and effort into fixing this issue (as well >as other issues). Me too. How far did you came? Best regards, Dirk. From warmerdam at POBOX.COM Thu Oct 21 06:34:25 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 21 Oct 2004 09:34:25 -0400 Subject: RGBA and transparency In-Reply-To: <21327.212.238.227.182.1098352240.squirrel@webmail.xs4all.nl> Message-ID: Bart van den Eijnden wrote: > Hi list, > > does anybody know the status of RGBA output mode and transparency, as > noted in the following e-mail by Sean? > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00579.html > > Is there a bug report (feature enhancement) for this one? Bart, I believe it has been corrected by Sean. I was cc:ed on a bug report for something like this but didn't follow it closely since it was in a part of the code that is pretty esoteric to me. I don't know the bug number, but you can dig through bugzilla to find it. Make sure you include closed bugs in your query. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From sgillies at FRII.COM Thu Oct 21 06:57:08 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 21 Oct 2004 07:57:08 -0600 Subject: RGBA and transparency In-Reply-To: Message-ID: On Oct 21, 2004, at 3:50 AM, Bart van den Eijnden wrote: > Hi list, > > does anybody know the status of RGBA output mode and transparency, as > noted in the following e-mail by Sean? > > http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/ > msg00579.html > > Is there a bug report (feature enhancement) for this one? > > Best regards, > Bart > > Bart, I've fixed two bugs in 4.2.4 and 4.3. From HISTORY.TXT: ... - Restored ability to render transparent (indexed or alpha) pixmap symbols on RGB map images, including annotation layers and embedded scalebars. This feature remains OFF by default for map layers and is enabled by specifying TRANSPARENCY ALPHA (bugs 926, 490). ... If you use transparent pixmap symbols to style a layer, set TRANSPARENCY ALPHA for that layer. This behavior is left off by default because it is somewhat expensive to use it when it isn't needed. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From temiz at DEPREM.GOV.TR Thu Oct 21 07:03:08 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 21 Oct 2004 17:03:08 +0300 Subject: image coordinates to geographic coordinates Message-ID: hello Despite all my efforts, I can not correctly convert image coordinates to geographic coordinates (UTM). what might the javascript code be ? here is my code: x_pct = (evt.clientX / width); y_pct = 1 - (evt.clientY / height); x_map = ext0 + ( (ext2 - ext0) * x_pct); y_map = ext1+ ( (ext3 - ext1) * y_pct); thanks in advance Ahmet Temiz ______________________________________ Inflex - installed on mailserver for domain @deprem.gov.tr Queries to: postmaster at deprem.gov.tr ______________________________________ The views and opinions expressed in this e-mail message are the sender's own and do not necessarily represent the views and the opinions of Earthquake Research Dept. of General Directorate of Disaster Affairs. Bu e-postadaki fikir ve gorusler gonderenin sahsina ait olup, yasal olarak T.C. B.I.B. Afet Isleri Gn.Mud. Deprem Arastirma Dairesi'ni baglayici nitelikte degildir. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.l.h.hartmann at UVA.NL Thu Oct 21 07:29:48 2004 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Thu, 21 Oct 2004 16:29:48 +0200 Subject: image coordinates to geographic coordinates In-Reply-To: <4177C19C.2050605@deprem.gov.tr> Message-ID: temiz wrote: > > Despite all my efforts, I can not correctly convert image coordinates > to geographic coordinates (UTM). > what might the javascript code be ? > > here is my code: > x_pct = (evt.clientX / width); > y_pct = 1 - (evt.clientY / height); > x_map = ext0 + ( (ext2 - ext0) * x_pct); > y_map = ext1+ ( (ext3 - ext1) * y_pct); > This should work, provided that width and height are the current values of the image's MAPSIZE and ext-ext3 the current values of MAPEXT. A problem could be that you use global coordinates for the click: clientX and clientY are measured from the upper left corner of the browser window. If your image is somewhere else on the page, you need to subtract the coordinates of its upper left corner from the global click coordinates. For simple web pages (without nested HTML-elements) you can do this simply by: Hope this helps, Jan Jan Hartmann Department of Geography University of Amsterdam From bluecarto at FREE.FR Thu Oct 21 07:34:04 2004 From: bluecarto at FREE.FR (Pierre GIRAUD) Date: Thu, 21 Oct 2004 16:34:04 +0200 Subject: query on oraclespatial using OGR/OCI In-Reply-To: <1098364980.4177b8345297d@webmail.cttmar.univali.br> Message-ID: First question : how can you query oracle layers if you don't use OGR ? I mean the function are not implemented for oraclespatial connectiontype. I had already try you suggestion (ommitting the SDO_LEVEL parameter). That could be a good idea, but, sadly, it doesn't give any better result. I'm using Oracle 10g on Debian or Oracle 9.2 on RedHat. In my sample the result given seem to be the first record in the table. Regards Pierre Selon FERNANDO SIMON : > Hi Pierre, > I don't use OGR but your problem can be with the spatial index. I saw > this > problem with the 10G version. > In the 10G version the Oracle don't recommend use SDO_LEVEL when you > create > the spatial index. In my tests problems appears when I set the SDO_LEVEL, the > result doesn't correspond whant I expected. > I don't know if the problem occur with others Oracle Spatial versions. > But > you can try with or without SDO_LEVEL. > > > ---------------------------------------------------------------- > Fernando Simon - simon at inf.univali.br > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada > http://g10.cttmar.univali.br > ---------------------------------------------------------------- > > > Quoting Pierre GIRAUD : > > > I'm still having difficulties to use mapserver queries on a oracle layer. > > Before I report a bug, I would like someone to test the following SQL > > statement > > and mapfile, and agree that something is going wrong, or tell me I am > > missing > > something obvious. > > > > Thx > > > > Pierre GIRAUD > > camptocamp.com > > > > ---------SQL statement-------------- > > DROP table mytable; > > > > CREATE TABLE MYTABLE ( > > GID VARCHAR(20), > > geometry MDSYS.SDO_GEOMETRY); > > > > > > > > insert into MYTABLE (GID,GEOMETRY) values ( > > '1', > > mdsys.sdo_geometry( > > '2003', > > null, > > null, > > mdsys.sdo_elem_info_array(1,1003,1), > > mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) > > ); > > > > insert into MYTABLE (GID,GEOMETRY) values ( > > '2', > > mdsys.sdo_geometry( > > '2003', > > null, > > null, > > mdsys.sdo_elem_info_array(1,1003,1), > > mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) > > ); > > > > insert into MYTABLE (GID,GEOMETRY) values ( > > '3', > > mdsys.sdo_geometry( > > '2003', > > null, > > null, > > mdsys.sdo_elem_info_array(1,1003,1), > > mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) > > ); > > > > delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; > > > > insert into user_sdo_geom_metadata (table_name,column_name,diminfo,srid) > > values ('MYTABLE','GEOMETRY', > > mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), > > mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), > > NULL); > > > > drop index q_mytable; > > > > create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is > > MDSYS.spatial_index > > parameters ('SDO_LEVEL=6'); > > > > ---------mapfile--------------- > > NAME DEMO > > STATUS ON > > SIZE 500 300 > > EXTENT 0 0 10 10 > > IMAGECOLOR 255 255 255 > > > > > > WEB > > IMAGEPATH "/var/www/images/" > > IMAGEURL "images/" > > END > > > > LAYER > > NAME squares > > TYPE POLYGON > > STATUS ON > > # CONNECTIONTYPE oraclespatial > > # CONNECTION "scott/tiger at orcl" > > CONNECTION "OCI:scott/tiger at orcl" > > CONNECTIONTYPE OGR > > # DATA "select * from mytable" > > DATA "mytable" > > TEMPLATE "ttt" > > CLASS > > SIZE 10 > > COLOR 255 255 255 > > OUTLINECOLOR 200 200 200 > > END > > END > > > > END > > > > > > > > Selon bluecarto at free.fr: > > > > > Hello, > > > > > > Following the good advices of Frank Warmerdam, I improve in using oracle > > > spatial > > > data with spatial indexes. For now, I know that I should not use sql > > > statements > > > in the mapfile but queries directly to the table : > > > > > > DATA "my_table" > > > instead of > > > DATA "select * from my_table" > > > > > > Both return the same images. Shapes are well drawn, and labeling is > > correct. > > > > > > But the first (more performant) statement doesn't give good results to a > > > query. > > > The data returned doesn't correspond to what is expected. And no shape is > > > highlighted. > > > > > > Do someone using Oracle have same problems ? > > > > > > Pierre GIRAUD > > > camptocamp.com > > > > > > > > > > > > > ------------------------------------------------ > Este e-mail foi enviado pelo webmail do curso de > Ci?ncia da Computa??o - UNIVALI > From bt at CCGIS.DE Thu Oct 21 09:39:43 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Thu, 21 Oct 2004 18:39:43 +0200 Subject: Compile-Error 4.3-nightly on SuSE Message-ID: Hi, I successfully built nightly builds from 24.09.04, 04.10.04 and 21.10.04 on FreeBSD 4.10. But on SuSE 9.0 building fails with the error message below. Building 4.2.5 on SuSE is successful. As I thought, the error could have something to do with an old libiconv (1.9.1), I installed libiconv-1.9.2, but it didn't help it. Thing is, we need the hatching function of mapserver on SuSE :-(. Somebody any idea? I appreciate any hint! Thanks very much, Ben gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include/pgsql shp2img.c -o shp2img.o gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include/pgsql shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal.1.1 -L/usr/lib -lpq -L/usr/lib -lcurl -L/usr/ssl/lib -lz -lssl -lcrypto -ldl -lz -lc -lm -lstdc++ -o shp2img ./libmap.a(mapgd.o)(.text+0xa4d1): In function `msGetEncodedString': : undefined reference to `libiconv_open' ./libmap.a(mapgd.o)(.text+0xa576): In function `msGetEncodedString': : undefined reference to `libiconv' ./libmap.a(mapgd.o)(.text+0xa5a5): In function `msGetEncodedString': : undefined reference to `libiconv_close' ./libmap.a(mapgd.o)(.text+0xa5cd): In function `msGetEncodedString': : undefined reference to `libiconv_close' ./libmap.a(mapgd.o)(.text+0xa5fd): In function `msGetEncodedString': : undefined reference to `libiconv_close' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 From hhan at YORKU.CA Thu Oct 21 10:13:35 2004 From: hhan at YORKU.CA (Henry Han) Date: Thu, 21 Oct 2004 13:13:35 -0400 Subject: Why Demo in Tutorial only support GIF imagetype? Message-ID: Hi, I installed MapServer 4.2 binary with IIS and try to run example maps in the tutorial. Take example 1-1.map as an example, I can only display GIF type map. If I change the imagetype in the example1-1.map to PNG, JPEG or whatever, it does not work and return me a below error(if the imagetype=JPEG). CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ???? If change the imagetype =PNG, then returns CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ?PNG  I checked "Mapserv -v" command, it shows that it support PNG, GIF, JPEG,GDAL, etc. Anyone canhelp me on this? Thanks a lot Henry -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon at INF.UNIVALI.BR Thu Oct 21 09:30:35 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Thu, 21 Oct 2004 14:30:35 -0200 Subject: query on oraclespatial using OGR/OCI In-Reply-To: <1098369244.4177c8dc194b2@imp3-q.free.fr> Message-ID: Hi Pierre, The query functions can be possible in the next version of the Oracle Spatial support. I implemented these functions here in my computer and I believe that this functions will be include in the next version of native support. I don't know how the OGR implement the query function but this problem appear when you use functions that use the primary filter like SDO_FILTER. Here the problem disappear when I recreate the indexes without SDO_LEVEL. Another point is the tolerance, you can try set a small value for Tolerance like 0.00001. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- bluecarto at free.fr wrote: >First question : how can you query oracle layers if you don't use OGR ? I mean >the function are not implemented for oraclespatial connectiontype. > >I had already try you suggestion (ommitting the SDO_LEVEL parameter). That could >be a good idea, but, sadly, it doesn't give any better result. > >I'm using Oracle 10g on Debian or Oracle 9.2 on RedHat. > >In my sample the result given seem to be the first record in the table. > >Regards > >Pierre > >Selon FERNANDO SIMON : > > > >>Hi Pierre, >> I don't use OGR but your problem can be with the spatial index. I saw >>this >>problem with the 10G version. >> In the 10G version the Oracle don't recommend use SDO_LEVEL when you >>create >>the spatial index. In my tests problems appears when I set the SDO_LEVEL, the >>result doesn't correspond whant I expected. >> I don't know if the problem occur with others Oracle Spatial versions. >>But >>you can try with or without SDO_LEVEL. >> >> >>---------------------------------------------------------------- >>Fernando Simon - simon at inf.univali.br >>Mapserver and Oracle Spatial developer >>G10 - Laboratorio de Computacao Aplicada >>http://g10.cttmar.univali.br >>---------------------------------------------------------------- >> >> >>Quoting Pierre GIRAUD : >> >> >> >>> I'm still having difficulties to use mapserver queries on a oracle layer. >>> Before I report a bug, I would like someone to test the following SQL >>>statement >>>and mapfile, and agree that something is going wrong, or tell me I am >>>missing >>>something obvious. >>> >>> Thx >>> >>> Pierre GIRAUD >>> camptocamp.com >>> >>>---------SQL statement-------------- >>>DROP table mytable; >>> >>>CREATE TABLE MYTABLE ( >>> GID VARCHAR(20), >>> geometry MDSYS.SDO_GEOMETRY); >>> >>> >>> >>>insert into MYTABLE (GID,GEOMETRY) values ( >>> '1', >>> mdsys.sdo_geometry( >>> '2003', >>> null, >>> null, >>> mdsys.sdo_elem_info_array(1,1003,1), >>> mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) >>>); >>> >>>insert into MYTABLE (GID,GEOMETRY) values ( >>> '2', >>> mdsys.sdo_geometry( >>> '2003', >>> null, >>> null, >>> mdsys.sdo_elem_info_array(1,1003,1), >>> mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) >>>); >>> >>>insert into MYTABLE (GID,GEOMETRY) values ( >>> '3', >>> mdsys.sdo_geometry( >>> '2003', >>> null, >>> null, >>> mdsys.sdo_elem_info_array(1,1003,1), >>> mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) >>>); >>> >>>delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; >>> >>>insert into user_sdo_geom_metadata (table_name,column_name,diminfo,srid) >>>values ('MYTABLE','GEOMETRY', >>>mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), >>>mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), >>>NULL); >>> >>>drop index q_mytable; >>> >>>create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is >>>MDSYS.spatial_index >>>parameters ('SDO_LEVEL=6'); >>> >>>---------mapfile--------------- >>>NAME DEMO >>>STATUS ON >>>SIZE 500 300 >>>EXTENT 0 0 10 10 >>>IMAGECOLOR 255 255 255 >>> >>> >>>WEB >>> IMAGEPATH "/var/www/images/" >>> IMAGEURL "images/" >>>END >>> >>>LAYER >>> NAME squares >>> TYPE POLYGON >>> STATUS ON >>># CONNECTIONTYPE oraclespatial >>># CONNECTION "scott/tiger at orcl" >>> CONNECTION "OCI:scott/tiger at orcl" >>> CONNECTIONTYPE OGR >>># DATA "select * from mytable" >>> DATA "mytable" >>> TEMPLATE "ttt" >>> CLASS >>> SIZE 10 >>> COLOR 255 255 255 >>> OUTLINECOLOR 200 200 200 >>> END >>>END >>> >>>END >>> >>> >>> >>>Selon bluecarto at free.fr: >>> >>> >>> >>>> Hello, >>>> >>>>Following the good advices of Frank Warmerdam, I improve in using oracle >>>>spatial >>>>data with spatial indexes. For now, I know that I should not use sql >>>>statements >>>>in the mapfile but queries directly to the table : >>>> >>>> DATA "my_table" >>>>instead of >>>> DATA "select * from my_table" >>>> >>>>Both return the same images. Shapes are well drawn, and labeling is >>>> >>>> >>>correct. >>> >>> >>>>But the first (more performant) statement doesn't give good results to a >>>>query. >>>>The data returned doesn't correspond to what is expected. And no shape is >>>>highlighted. >>>> >>>>Do someone using Oracle have same problems ? >>>> >>>>Pierre GIRAUD >>>>camptocamp.com >>>> >>>> >>>> >>>> >> >> >>------------------------------------------------ >>Este e-mail foi enviado pelo webmail do curso de >> Ci?ncia da Computa??o - UNIVALI >> >> >> > > > > From woodbri at SWOODBRIDGE.COM Thu Oct 21 10:30:17 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 21 Oct 2004 13:30:17 -0400 Subject: Layer conditional on some other layer(s) being drawn Message-ID: Hi all, I would like to be able to draw a layer, BUT only if some other layer(s) got drawn. The purpose for this is to be able to generate conditional copyrights on the map. Here is the scenario, I have multiple vendor data sets all pulled together into a mapfile, but depending on scale and location I might only render data from some of the vendor data. Then as the last layers being drawn are the copyrights, I only want to place the copyrights required based on the data that was actually rendered. I'm thinking of a mechanism like: LAYER NAME "abc" SET_IF_DRAWN vendor1 1 ... END LAYER NAME "xyz" SET_IF_DRAWN vendor2 1 ... END ... LAYER NAME "copyright1" STATUS OFF IF vendor1 and not vendor2 STATUS ON ... END LAYER NAME "copyright2" STATUS OFF IF vendor2 and not vendor1 STATUS ON ... END LAYER NAME "copyright3" STATUS OFF IF vendor1 and vendor2 STATUS ON ... END -- OR -- LAYER NAME "copyright" STATUS DEFAULT ... IF vendor1 and not vendor2 TEXT "bla bla bla 1" IF vendor2 and not vendor1 TEXT "bla bla bla 2" IF vendor1 and vendor2 TEXT " bla bla bla 1 and 2" ... END I think that there are probably other good uses of this besides the example above. The key to this is that the variable only gets set if data is actually rendered into the image. If later layer obliterates what was drawn, that can be ignored and the variable would stay set. Would this be useful to others? Any ideas how to hack something like this with todays tools? Opened a bug you can add comments to: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=980 -Steve From kenlord at GMAIL.COM Thu Oct 21 10:52:23 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 21 Oct 2004 10:52:23 -0700 Subject: Directions Magazine Contest - Support MapServer! Message-ID: Hello List, The Directions Magazine 2004 Web Mapping contest is in full swing. The entry deadline has passed and the Voting phase has begun. www.directionsmag.com/web.mapping.contest/ 80 websites have been entered in the contest. In the Business category 2 of those 19 entries have been made using MapServer. In the Government category 3 of 45 entries list the use of MapServer. And in the Misc. category 3 of 16 entries list the use of MapServer. I would like to call upon the MapServer Community to support your favourite software in this contest, and help drive a MapServer based website to the winning position in the contest. A winner will be picked from each category based on the votes received from the public. (a quick free registration is required when you vote) Now for the shameless personal plug ... If my efforts have been worthy, I would really appreciate it if your choice in the Business category was my website. My website is titled: 'MapServer - For Gold Exploration and Investor Education' and can be found on the following page of entrants: http://www.directionsmag.com/web.mapping.contest/?page=2&sort=2&cat=2&view=pages&find=&findStr= Thank you for your support, Ken Lord ============================== Ken Lord B.Sc., A.Dipl.T.H. Vancouver BC, Canada kenlord at gmail.com P.S. I've made a few nifty tools using JavaScript and ASP to control how map layers are activated and symbolized, such as the 'Soil Samples by Percentile' layer that allows you to choose which of 32 elements is used for symbolization. This is effectively 32 different map layers described by a single layer in the Map configuration file. Passing parameters in the URL can work wonders. The website operates in frames to allow the map to refresh faster without reloading the full website. Soil samples, drill holes and BC Minfile and Assement report data can be queried, generating drill hole assay tables dynamically and linking to drill hole cross sections, or leading you directly to the government historical reports. Over 100 map layers are available that allow a viewer to see how different types of gold exploration data relate on the mine property, in particular by allowing you to quickly overlay different soil assay elements with geophysics, drill hole locations, geology, underground mine levels, claims, and a 0.25m Orthomosaic. The site has been used by company geologists to plan ongoing gold exploration work where anomolous data hasn't been followed up with ground work. I'd be happy to answer any questions regarding how I've put things together if it would be a help to anyone. Ken From Tom.Kralidis at EC.GC.CA Thu Oct 21 11:05:46 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 21 Oct 2004 14:05:46 -0400 Subject: [UMN_MAPSERVER-USERS] Creating querymap via CGI parameters Message-ID: This doesn't work either for me. Basically, I'm looking for a CGI GET style URL format, which will give me a map with my query highlighted. Almost like a OGC:WMS GetFeatureInfo, but returned as an image (n.b. only text-based results are supported in MapServer WMS). My inputs would be: Layername Bbox img.x (of queried point) img.y (of queried point) ...which I've tried to replicate with: http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?map=/usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv/services/ecows/config.map&mode=querymap&img.x=289&img.y=268&imgext=-96.49999999971898%2042.00000000017564%20-72.50000000028102%2056.99999999982436&layer=star_phosphorous&buffer=20 ..but get nothing. Doing this via OGC:WMS GetFeatureInfo gives me results, so I know data is there: http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A4326&BBOX=-96.49999999971898,42.00000000017564,-72.50000000028102,56.99999999982436&WIDTH=560&HEIGHT=350&LAYERS=star_phosphorous&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&QUERY_LAYERS=star_phosphorous&INFO_FORMAT=text%2Fhtml&X=289&Y=268&FEATURE_COUNT=5 ..Tom > -----Original Message----- > From: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] > Sent: Monday, 18 October, 2004 10:01 > To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE : [UMN_MAPSERVER-USERS] Creating querymap via CGI > parameters > > > I never be able to get Mapserver 4.0 works in querymap mode > (error 500). I finally succeeded with Mapserver 4.2. My URL > looks like this: > > http://localhost/cgi-bin/mapserv_42?map=/var/www/html/demo.map > &layers=poly+ > bkgd+lakes+roads&mapsize=791+749&imgext=-2341026.679536+-97627 > 9.05923496 > bkgd+lakes+69+3 > 029014.36292+4108266.1303309673&mode=nquerymap&imgbox=53+221+664+721 > > Coordinates are in Lambert (meters). You can also cache some > variables like mode and mapsize. You need a dummy query > layer in your mapfile (or in hidden tag). I use an imgbox > because this is a nquerymap (query with a rubberband square). > > Skweda O'Bomsawin > > -----Message d'origine----- > De?: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de > Kralidis,Tom [Burlington] Envoy??: 15 octobre 2004 20:00 ??: > MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] > Creating querymap via CGI parameters > > Hi, > > In the itasca demo, querying features displays a standard > querymap, as well as cached query. > > Looking at the HTML, it looks like: > > Standard querymap: ms_tmp/DEMO10978846173120.gif > > Cached query: > /cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfil > e=c:/ms4w/ > tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln2 > &mode=map& > size=200+200 > > How can one replicate this behaviour (i.e. output a querymap) > with CGI parameters through MapServer CGI? > > Thanks > > ..Tom > > ========================= > Tom Kralidis > Systems Scientist > Environment Canada > Tel: +01-905-336-4409 > http://www.ec.gc.ca/ > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.777 / Virus Database: 524 - Release Date: 2004-10-14 > > > From bob.basques at CI.STPAUL.MN.US Thu Oct 21 12:03:04 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 21 Oct 2004 14:03:04 -0500 Subject: query hilighting, how to control output. Message-ID: All, How do I control how the hilighting function operates. How to set the hilight colors and such. Can the hilight be pushed through interation via the CGI parameters? I'm not find much info about this anywhere. I did find a couple of references to the "hilight" value as a Mapfile component. Thanks bobb From Tom.Kralidis at EC.GC.CA Thu Oct 21 12:10:15 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 21 Oct 2004 15:10:15 -0400 Subject: Legend alignment issue Message-ID: Hi, (This was originally thought to be a development bug, but, after much sifting, it looks like something is up with my config) Using the itasca demo, asking for a legend image, i.e.: http://localhost/cgi-bin/mapserv.exe?mode=legend&layer=lakespy2&map=c%3A%2Fms4w%2Fapps%2Fitasca%2Fdemo.map&savequery=true&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=c%3A%2Fms4w%2Ftmp%2Fms_tmp%2F&map_web_imageurl=%2Fms_tmp/ Gives me back a legend graphic of one layer with graphics/text positioned like: -------------- |Graphic text| -------------- For my own apps, etc., when I issue a mode=legend request, i.e.: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/service/config.map&mode=legend&layer=rivers ...I get back a legend graphic of one layer with graphics/text posotioned like: -------------- |Graphic | | text | -------------- I would like my legend graphics to come out like case 1 (expected results). Here's the CLASS snippet from my mapfile CLASSITEM "NAME" CLASS EXPRESSION /Great Bear/ NAME 'Great Bear' COLOR 0 0 255 END CLASS EXPRESSION /Japura/ NAME 'Japura' COLOR 0 0 255 END END What is misaligning my legend images? Cheers ..Tom From Tom.Kralidis at EC.GC.CA Thu Oct 21 12:22:16 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 21 Oct 2004 15:22:16 -0400 Subject: Legend alignment issue Message-ID: Well, it seems that you have to define a LEGEND object in the mapfile for this to work properly. I was not defining LEGEND in my mapfile because I wasn't creating an application with a legend, just a WMS instance. If I add a LEGEND object, this works as expected. ..Tom > -----Original Message----- > From: Kralidis,Tom [Burlington] > Sent: Thursday, 21 October, 2004 15:10 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: 'Valik Sol?rzano Barboza' > Subject: Legend alignment issue > > > > Hi, > > (This was originally thought to be a development bug, but, > after much sifting, it looks like something is up with my config) > > Using the itasca demo, asking for a legend image, i.e.: > http://localhost/cgi-bin/mapserv.exe?mode=legend&layer=lakespy2&map=c%3A%2Fms4w%2Fapps%2Fitasca%2Fdemo.map&savequery=true&program=%2Fcgi-bin%2Fmapserv.exe&map_web_imagepath=c%3A%2Fms4w%2Ftmp%2Fms_tmp%2F&map_web_imageurl=%2Fms_tmp/ Gives me back a legend graphic of one layer with graphics/text positioned like: -------------- |Graphic text| -------------- For my own apps, etc., when I issue a mode=legend request, i.e.: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/apps/ms_ogc_workshop/service/config.map&mode=legend&layer=rivers ...I get back a legend graphic of one layer with graphics/text posotioned like: -------------- |Graphic | | text | -------------- I would like my legend graphics to come out like case 1 (expected results). Here's the CLASS snippet from my mapfile CLASSITEM "NAME" CLASS EXPRESSION /Great Bear/ NAME 'Great Bear' COLOR 0 0 255 END CLASS EXPRESSION /Japura/ NAME 'Japura' COLOR 0 0 255 END END What is misaligning my legend images? Cheers ..Tom From suqingbai at GMAIL.COM Thu Oct 21 12:25:08 2004 From: suqingbai at GMAIL.COM (Suqing Bai) Date: Thu, 21 Oct 2004 15:25:08 -0400 Subject: mapserv.exe works in Apache while broken in Tomcat In-Reply-To: <59047FD0-2226-11D9-B6A1-000D9329D732@frii.com> Message-ID: Hi list, Help needed urgently. I got everything working correctly by calling mapserv.exe from Java Servlet when the mapserv.exe running in Apache. However, I need to get mapserv.exe running as a cgi program within my web application which is deployed on tomcat. I have correctly configure mapserv.exe as a cgi program of tomcat in the sense that if I send wrong parameters (e.g. wrong path of .map file), the error message of MapServer will show in my browser. However, I couldn't get the map images show correctly in my browser with the correct parameter. The images (main map, legend, and ref_map) show like mosaic. When I check the images in folder IMAGEURL, the main map and legend images are black. where ref_map is fine. The error in Tomcat log like this 2004-10-21 14:27:50 cgi: runCGI: 1 lines received on stderr I have went through the list but couldn't find the answer. Any help will be greatly appreciated. Thanks a lot in advance. In addition, the following configure found in httpd.conf of Apache SetEnv PROJ_LIB /ms4w/proj/nad/ How should I set it in Tomcat if I need? Regards Sue From Tom.Kralidis at EC.GC.CA Thu Oct 21 12:53:46 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 21 Oct 2004 15:53:46 -0400 Subject: sorting output by titles in OGC Capabilities Message-ID: Hi, Is there a facility in MapServer, when providing OGC:WMS and OGC:WFS to sort output alphabetically, by layer, or by layer group/layer? Things appear to be organized as they appear top-down in mapfiles. I'd like something like this: Groupa alayer zlayer mlayer Groupx alayer zlayer mlayer Groupd alayer zlayer mlayer ...to come out like this: Groupa alayer mlayer zlayer Groupd alayer mlayer zlayer Groupx alayer mlayer zlayer Cheers ..Tom From bob.basques at CI.STPAUL.MN.US Thu Oct 21 15:03:21 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 21 Oct 2004 17:03:21 -0500 Subject: About custom legends and such. . . Message-ID: All, What options are available for customizing the legend output. I would like to add in some Javscript tot the legend entries. Would/should this be done in the legend template? I'm at a bit of a loss as to how to place some specific legend javascript on each theme. Thanks bobb From ummmmm at MYREALBOX.COM Thu Oct 21 15:48:50 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Thu, 21 Oct 2004 17:48:50 -0500 Subject: PHP MapScript hangs or performance degradation Message-ID: We've got a PHP MapScript application that seems to regularly hang or at least start responding *very* slowly. We're now at MapServer/MapScript 4.2.5 (have tried several previous fix levels), with PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS 0.8.2, Apache 2.0.51, Fedora Core 2 SMP (Dual CPU 2GHz P4). Our MapScript basically does a map->draw(), followed by a couple of queryByRect() on non-shown layers, manual point->draw()s with custom, numbered labels, then a map->save(). (Somebody else wrote the code, so I'm trying to summarize my understanding the best I can in his absence.) Most of the time, this code seems to work fine and respond decently, although never "fast" for the particular locations that have lots of individual points to be numbered. When things are "normal", I can see one or two active php processes at any given point in time, none of which are older than the current minute. According to the "top" command, each such process does seem to use 100% of (one of?) the CPU while it's running, but that doesn't seem to prevent the system from otherwise responding normally. But fairly regularly, the php processes, and their owning httpd processes, start stacking up and not finishing or going away. When this happens, queries to the php scripts start timing out and writing errors to Apache's stderr: [Thu Oct 21 16:47:30 2004] [error] [client 32.83.226.185] PHP Fatal error: Maximum execution time of 30 seconds exceeded in /var/www/html/offender/map.php on line 87 (Line 87 is the map->draw() call) When this happens, *sometimes* the problem seems to eventually fix itself where the scripts start responding normally again. But often the only way we're able to fix the problem is by stopping and re-starting Apache. One other interesting symptom is that even when these errors start occurring, some queries, those that are faster, seem to still work, and at a normal speed. The slower ones don't come back at all. It acts like there's a resource deadlock or bottleneck somewhere, but I can't imagine a place which would block some queries and not others. Oh - the layers that we let map->draw() handle are in shapefiles. The layers that we queryByRect() are in PostgreS/PostGIS. So, first, has anyone seen these kinds of symptoms before? Is there some obvious problem they indicate? If not, is there some obvious problem in the flow/configuration/algorithm I've described? I appreciate any help the community can offer. We're currently having to recycle Apache 3-5 times per day because of these problems. Doug From r0ss at SHAW.CA Thu Oct 21 16:41:52 2004 From: r0ss at SHAW.CA (ross s) Date: Thu, 21 Oct 2004 17:41:52 -0600 Subject: Problems with 4.2.0 Windows Binaries Message-ID: Hi all, I believe the Win 32 binaries currently available for download off the MapServer web site are corrupt. When i download the two zip files: ms42pg.zip ms42oracle.zip all of the MapServer binaries are 116kb or less versus the 2.0 Mb plus of the previous versions. As well when I install and try use the new binaries i receive a cryptic error message about about a problem in the CGI header. Yes I know I could build my own binaries but as newbie I am hestitant to go down that road. Has one else had problems with the Win 32 4.2.0 binaries? Thanks for the assistance Ross -------------- next part -------------- An embedded message was scrubbed... From: ross s Subject: Problems with 4.2.0 Windows Binaries Date: Wed, 20 Oct 2004 10:36:00 -0600 Size: 1172 URL: From boris at BROOKNET.COM.AU Thu Oct 21 20:55:37 2004 From: boris at BROOKNET.COM.AU (Sam Lawrance) Date: Fri, 22 Oct 2004 13:55:37 +1000 Subject: image coordinates to geographic coordinates In-Reply-To: <4177C7DC.1030409@uva.nl> Message-ID: On Thu, 2004-10-21 at 16:29 +0200, Jan Hartmann wrote: > temiz wrote: > > > > Despite all my efforts, I can not correctly convert image coordinates > > to geographic coordinates (UTM). > > what might the javascript code be ? > > > > here is my code: > > x_pct = (evt.clientX / width); > > y_pct = 1 - (evt.clientY / height); > > x_map = ext0 + ( (ext2 - ext0) * x_pct); > > y_map = ext1+ ( (ext3 - ext1) * y_pct); > > > > This should work, provided that width and height are the current values > of the image's MAPSIZE and ext-ext3 the current values of MAPEXT. A > problem could be that you use global coordinates for the click: clientX > and clientY are measured from the upper left corner of the browser > window. If your image is somewhere else on the page, you need to > subtract the coordinates of its upper left corner from the global click > coordinates. For simple web pages (without nested HTML-elements) you can > do this simply by: > > > > Remember that offsetLeft and offsetTop are relative to the parent node of an element. So if your map is nested in other elements, you need to walk up the tree and add the offsets. See http://www.faqts.com/knowledge_base/view.phtml/aid/29359 for functions to do this for you. Do offsets = getOffsets(event), then use offsets.offsetX and Y in place of evt.clientX and Y in your code above. From tapani.laiho at TURKU.FI Thu Oct 21 22:53:15 2004 From: tapani.laiho at TURKU.FI (Tapani Laiho) Date: Fri, 22 Oct 2004 08:53:15 +0300 Subject: image coordinates to geographic coordinates Message-ID: With GMap PHP/MapScript demo's Rosa applet "Poly" I use this: in gmap75.inc.php: printf("\n"); in gmap75.phtml: function xysCoord() { document.forms[0].submit(); } extent->maxx-$gpoMap->extent->minx)/$gpoMap->width); $xys = preg_split('/[;]+/', $INPUT_COORD, -1, PREG_SPLIT_NO_EMPTY); foreach($xys as $xy) { list($x, $y) = split('[,]', $xy); $x=($x/$divider+$minx); $y=($y/$divider+$miny); echo "x: $x; y: $y
\n"; } ?> Tapani ----- Original Message ----- From: "Sam Lawrance" To: Sent: Friday, October 22, 2004 6:55 AM Subject: Re: [UMN_MAPSERVER-USERS] image coordinates to geographic coordinates On Thu, 2004-10-21 at 16:29 +0200, Jan Hartmann wrote: > temiz wrote: > > > > Despite all my efforts, I can not correctly convert image coordinates > > to geographic coordinates (UTM). > > what might the javascript code be ? > > > > here is my code: > > x_pct = (evt.clientX / width); > > y_pct = 1 - (evt.clientY / height); > > x_map = ext0 + ( (ext2 - ext0) * x_pct); > > y_map = ext1+ ( (ext3 - ext1) * y_pct); > > > > This should work, provided that width and height are the current values > of the image's MAPSIZE and ext-ext3 the current values of MAPEXT. A > problem could be that you use global coordinates for the click: clientX > and clientY are measured from the upper left corner of the browser > window. If your image is somewhere else on the page, you need to > subtract the coordinates of its upper left corner from the global click > coordinates. For simple web pages (without nested HTML-elements) you can > do this simply by: > > > > Remember that offsetLeft and offsetTop are relative to the parent node of an element. So if your map is nested in other elements, you need to walk up the tree and add the offsets. See http://www.faqts.com/knowledge_base/view.phtml/aid/29359 for functions to do this for you. Do offsets = getOffsets(event), then use offsets.offsetX and Y in place of evt.clientX and Y in your code above. From jcastil1 at TRAGSA.ES Fri Oct 22 00:03:21 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Fri, 22 Oct 2004 09:03:21 +0200 Subject: query on oraclespatial using OGR/OCI Message-ID: Hi Fernando, I understand that you did some work on the mapserver files and now, your queries are working? As Pierre knows I'm using mapserver with oracle spatial and my next step is "The Queries".... If you need any help do not hesitate to told me. I'm starting with "The Queries" work, but I will try to help. I think that I'm going to use php to generate the queries. It isn't the best way, but, for now, Is the only way I know. THanks -----Mensaje original----- De: Fernando S. [mailto:simon at INF.UNIVALI.BR] Enviado el: jueves, 21 de octubre de 2004 18:31 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] query on oraclespatial using OGR/OCI Hi Pierre, The query functions can be possible in the next version of the Oracle Spatial support. I implemented these functions here in my computer and I believe that this functions will be include in the next version of native support. I don't know how the OGR implement the query function but this problem appear when you use functions that use the primary filter like SDO_FILTER. Here the problem disappear when I recreate the indexes without SDO_LEVEL. Another point is the tolerance, you can try set a small value for Tolerance like 0.00001. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- bluecarto at free.fr wrote: >First question : how can you query oracle layers if you don't use OGR ? I mean >the function are not implemented for oraclespatial connectiontype. > >I had already try you suggestion (ommitting the SDO_LEVEL parameter). That could >be a good idea, but, sadly, it doesn't give any better result. > >I'm using Oracle 10g on Debian or Oracle 9.2 on RedHat. > >In my sample the result given seem to be the first record in the table. > >Regards > >Pierre > >Selon FERNANDO SIMON : > > > >>Hi Pierre, >> I don't use OGR but your problem can be with the spatial index. I saw >>this >>problem with the 10G version. >> In the 10G version the Oracle don't recommend use SDO_LEVEL when you >>create >>the spatial index. In my tests problems appears when I set the SDO_LEVEL, the >>result doesn't correspond whant I expected. >> I don't know if the problem occur with others Oracle Spatial versions. >>But >>you can try with or without SDO_LEVEL. >> >> >>---------------------------------------------------------------- >>Fernando Simon - simon at inf.univali.br >>Mapserver and Oracle Spatial developer >>G10 - Laboratorio de Computacao Aplicada >>http://g10.cttmar.univali.br >>---------------------------------------------------------------- >> >> >>Quoting Pierre GIRAUD : >> >> >> >>> I'm still having difficulties to use mapserver queries on a oracle layer. >>> Before I report a bug, I would like someone to test the following SQL >>>statement >>>and mapfile, and agree that something is going wrong, or tell me I am >>>missing >>>something obvious. >>> >>> Thx >>> >>> Pierre GIRAUD >>> camptocamp.com >>> >>>---------SQL statement-------------- >>>DROP table mytable; >>> >>>CREATE TABLE MYTABLE ( >>> GID VARCHAR(20), >>> geometry MDSYS.SDO_GEOMETRY); >>> >>> >>> >>>insert into MYTABLE (GID,GEOMETRY) values ( >>> '1', >>> mdsys.sdo_geometry( >>> '2003', >>> null, >>> null, >>> mdsys.sdo_elem_info_array(1,1003,1), >>> mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) >>>); >>> >>>insert into MYTABLE (GID,GEOMETRY) values ( >>> '2', >>> mdsys.sdo_geometry( >>> '2003', >>> null, >>> null, >>> mdsys.sdo_elem_info_array(1,1003,1), >>> mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) >>>); >>> >>>insert into MYTABLE (GID,GEOMETRY) values ( >>> '3', >>> mdsys.sdo_geometry( >>> '2003', >>> null, >>> null, >>> mdsys.sdo_elem_info_array(1,1003,1), >>> mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) >>>); >>> >>>delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; >>> >>>insert into user_sdo_geom_metadata (table_name,column_name,diminfo,srid) >>>values ('MYTABLE','GEOMETRY', >>>mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), >>>mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), >>>NULL); >>> >>>drop index q_mytable; >>> >>>create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is >>>MDSYS.spatial_index >>>parameters ('SDO_LEVEL=6'); >>> >>>---------mapfile--------------- >>>NAME DEMO >>>STATUS ON >>>SIZE 500 300 >>>EXTENT 0 0 10 10 >>>IMAGECOLOR 255 255 255 >>> >>> >>>WEB >>> IMAGEPATH "/var/www/images/" >>> IMAGEURL "images/" >>>END >>> >>>LAYER >>> NAME squares >>> TYPE POLYGON >>> STATUS ON >>># CONNECTIONTYPE oraclespatial >>># CONNECTION "scott/tiger at orcl" >>> CONNECTION "OCI:scott/tiger at orcl" >>> CONNECTIONTYPE OGR >>># DATA "select * from mytable" >>> DATA "mytable" >>> TEMPLATE "ttt" >>> CLASS >>> SIZE 10 >>> COLOR 255 255 255 >>> OUTLINECOLOR 200 200 200 >>> END >>>END >>> >>>END >>> >>> >>> >>>Selon bluecarto at free.fr: >>> >>> >>> >>>> Hello, >>>> >>>>Following the good advices of Frank Warmerdam, I improve in using oracle >>>>spatial >>>>data with spatial indexes. For now, I know that I should not use sql >>>>statements >>>>in the mapfile but queries directly to the table : >>>> >>>> DATA "my_table" >>>>instead of >>>> DATA "select * from my_table" >>>> >>>>Both return the same images. Shapes are well drawn, and labeling is >>>> >>>> >>>correct. >>> >>> >>>>But the first (more performant) statement doesn't give good results to a >>>>query. >>>>The data returned doesn't correspond to what is expected. And no shape is >>>>highlighted. >>>> >>>>Do someone using Oracle have same problems ? >>>> >>>>Pierre GIRAUD >>>>camptocamp.com >>>> >>>> >>>> >>>> >> >> >>------------------------------------------------ >>Este e-mail foi enviado pelo webmail do curso de >> Ci?ncia da Computa??o - UNIVALI >> >> >> > > > > From bartvde at XS4ALL.NL Fri Oct 22 00:10:20 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 22 Oct 2004 09:10:20 +0200 Subject: Problems with 4.2.0 Windows Binaries In-Reply-To: <1d7f7a01d7fda5.1d7fda51d7f7a0@shaw.ca> Message-ID: Hi Ross, there is a new dll in there called libmap.dll if I am not mistaken. That explains the size difference. The CGI error is probably because you miss that dll (or a msvc runtime type of dll). Try the maptools.org binaries from DM Solutions instead if you are still having problems: mapserver 4.2.5: http://www.maptools.org/dl/mapserver-4.2.5-win32-php4.3.7.zip Or the download overview page: http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html Best regards, Bart > Hi all, > > I believe the Win 32 binaries currently available for download off the > MapServer web site are corrupt. When i download the two zip files: > > ms42pg.zip > ms42oracle.zip > > all of the MapServer binaries are 116kb or less versus the 2.0 Mb plus of > the previous versions. As well when I install and try use the new > binaries i receive a cryptic error message about about a problem in the > CGI header. > > Yes I know I could build my own binaries but as newbie I am hestitant to > go down that road. Has one else had problems with the Win 32 4.2.0 > binaries? > > Thanks for the assistance > > Ross > > > From Frank.Broniewski at MNHA.ETAT.LU Fri Oct 22 00:08:23 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Fri, 22 Oct 2004 09:08:23 +0200 Subject: [UMN_MAPSERVER-USERS] Problems with 4.2.0 Windows Binaries In-Reply-To: <1d7f7a01d7fda5.1d7fda51d7f7a0@shaw.ca> Message-ID: Hello Actually I don't know why you have the corrupted files. I checked mine I downloaded some time ago, since the 4.2.0 isn't the most recent release, and they were ok, the mapserv.exe has app. 4mb. You can try to download the version from http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html where the most recent version is 4.2.5 Or you can try the ms4w package, which comes with easy to install webserver, php and of course mapserver with mapscript. You can get it here: http://www.maptools.org/ms4w/index.phtml?page=downloads.html Frank Broniewski Mus?e National d'Histoire et d'Art Luxembourg Section Pr?histoire / Projet EPC -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de ross s Envoy? : Freitag, 22. Oktober 2004 00:42 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Problems with 4.2.0 Windows Binaries Hi all, I believe the Win 32 binaries currently available for download off the MapServer web site are corrupt. When i download the two zip files: ms42pg.zip ms42oracle.zip all of the MapServer binaries are 116kb or less versus the 2.0 Mb plus of the previous versions. As well when I install and try use the new binaries i receive a cryptic error message about about a problem in the CGI header. Yes I know I could build my own binaries but as newbie I am hestitant to go down that road. Has one else had problems with the Win 32 4.2.0 binaries? Thanks for the assistance Ross From astrid.emde at CCGIS.DE Fri Oct 22 01:07:32 2004 From: astrid.emde at CCGIS.DE (Astrid Emde) Date: Fri, 22 Oct 2004 10:07:32 +0200 Subject: About custom legends and such. . . In-Reply-To: <41783229.9010009@ci.stpaul.mn.us> Message-ID: Bob Basques wrote: > All, > > What options are available for customizing the legend output. I would > like to add in some Javscript tot the legend entries. Would/should this > be done in the legend template? > > I'm at a bit of a loss as to how to place some specific legend > javascript on each theme. > > Thanks > > bobb > Hi , that's how I get my legend. http://wms1.ccgis.de/mapbender2/metadata/UMN%20USER.html the html-script looks like that. Here I can put in my javascript. -------------------------------------- Legend

Legend UMN User



-------------------------------------- Hope this can help you. Astrid Emde -------------------------------------- Astrid Emde CCGIS GbR Siemensstra?e 8 53121 Bonn Germany ---------------------------------- astrid.emde at ccgis.de www.ccgis.de ---------------------------------- Tel.: ++49 (0) 228 90826 19 Fax.: ++49 (0) 228 90826 11 Zentrale: ++49 (0) 228 90826 0 ---------------------------------- From assefa at DMSOLUTIONS.CA Fri Oct 22 06:56:52 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 22 Oct 2004 09:56:52 -0400 Subject: WFS - PropertyIsLike In-Reply-To: Message-ID: I am looking into it now. I have entered a bug in mapsever 987. You should join the bug to follow progress. Thanks, Uli Rothstein (CCGIS) wrote: > Hi list, > > does someone know which attributes I can use with in > wfs-requests or where I can get a documentation? > > I've tested the following request: > > http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo > _postgresql_wfs.map&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=St > aatsgrenze&FILTER= singleChar="?" > escape="\">popycounG Literal> > > As result I get all objects beginning with "G". It seems that mapserver > ignores the attribute 'wildcard' and uses a wildcard at the end of each > search item. > > Additionally I want to use the wildcard at the beginning of the search item. > But this does't seem to work with mapserver. > > Best regards > > Uli Rothstein > > > -------------------------------- > Ulrich Rothstein > CCGIS GbR > Siemensstra?e 8 > 53121 Bonn > GERMANY > -------------------------------- > > ulrich.rothstein at ccgis.de > www.ccgis.de > -------------------------------- > Zentrale: ++49 (0) 228 90826 0 > Durchwahl: ++49 (0) 228 90826 17 > Fax: ++49 (0) 228 90826 11 > -------------------------------- > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From mandhare at STATE.PA.US Fri Oct 22 07:50:16 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Fri, 22 Oct 2004 09:50:16 -0500 Subject: Arcview view to mapfile extension Message-ID: Hello!! I'm working on ArcGIS 9, ArcView. I went to the site you suggested (http://gix.sourceforge.net/), and downloaded the extention(export tool version 0.2). And I understand that you said that its meant to export ArcGIS 3.x files to .map files, but i just wanted to check if it works with ArcView 9, but it dosn't seem to work with ArcView 9. When I went to ArcMap 9, and tryed to load the extention, it didn't give me the choice to add "Gix MTS Tools" i.e. I don't see the check box for"Gix MTS Tools" to select. I think this is probably because this export tool is not for ArcView 9. And if it is supposed to work with ArcView 9, what is the way to load this extention? Or if you know any other tool like this, that will work under ArcView 9, please let me know, Thank you, Manjiri Andhare GIS Coordinator PA Fish & Boat Commision. From normanb at COMSINE.CO.UK Fri Oct 22 08:12:32 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Fri, 22 Oct 2004 16:12:32 +0100 Subject: MapServer WCS Message-ID: Hi, I posted something about a windows version of the MapServer WCS some time ago. A linux box has come into my hands and I am eager to try to use the WCS now. Can you point me again to how to configure and set this up in Linux. Can I use the 4.2.5 version of MapServer or just the development version. I will be looking to serve 16 bit geotiff dems. Many thanks, Norman Barker From flavio at TYDAC.CH Fri Oct 22 08:14:08 2004 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri, 22 Oct 2004 17:14:08 +0200 Subject: Arcview view to mapfile extension In-Reply-To: Message-ID: Hi Manjiri I'm pretty sure it will not work with ArcViw 9.x. There are however some talks over here to create such a toll for ArcView 9.x ... won't be today or tomorrow I suppose ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ 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 ---------------------------------------------------------------- -----Original Message----- From: Manjiri Andhare To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Fri, 22 Oct 2004 09:50:16 -0500 Subject: Re: [UMN_MAPSERVER-USERS] Arcview view to mapfile extension > Hello!! > I'm working on ArcGIS 9, ArcView. I went to the site you suggested > (http://gix.sourceforge.net/), and downloaded the extention(export > tool > version 0.2). And I understand that you said that its meant to export > ArcGIS 3.x files to .map files, but i just wanted to check if it > works with > ArcView 9, but it dosn't seem to work with ArcView 9. > When I went to ArcMap 9, and tryed to load the extention, it didn't > give me > the choice to add "Gix MTS Tools" i.e. I don't see the check box > for"Gix > MTS Tools" to select. > I think this is probably because this export tool is not for ArcView > 9. And > if it is supposed to work with ArcView 9, what is the way to load > this > extention? Or if you know any other tool like this, that will work > under > ArcView 9, please let me know, > Thank you, > Manjiri Andhare > GIS Coordinator > PA Fish & Boat Commision. From toddbirkey at YAHOO.COM Fri Oct 22 08:09:22 2004 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Fri, 22 Oct 2004 08:09:22 -0700 Subject: Problems with 4.0 tutorial on XP Message-ID: I am new to Mapserver and the concept of GIS in general. I think I followed the install procedure and checked the FAQ but must have overlooked something. Here is my setup.. Windows XP with IIS Installed ms42pg.zip (Mapserver Windows Binary Build) My IIS folders C:\Inetpub\tmp\ Temp folder C:\Inetpub\wwwroot\tutorial\ tutorial location C:\Inetpub\wwwroot\tutorial\data data folder C:\Inetpub\scripts\mapserver.exe and mapserv.exe URL http://localhost/tutorial/ http://localhost/tmp/ temp folder http://localhost/scripts/mapserv.exe or mapserver.exe When I go to http://localhost/scripts/mapserv.exe I get the correct result of No query information to decode. QUERY_STRING not set. I installed the MapServer Itasca demo and as far as I can tell it is working. I get an image and PNG files are placed in my tmp folder. Here is my problem.. I can not get the 4.0 Tutorial to work. I edited my example1-1.html image src to point to my mapfile src="/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=map" > The image url generated by example1-1.html is http://localhost/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=map Here is my edited mapfile /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ MAP IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\tutorial\data" DEBUG on IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END # States polygon layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file/object /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ When I access example1-1html I get the HTML tutorial but only a small box with a red x in it where the image was to be. When I go the URL http://localhost/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=map I get this error message CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: ?PNG I am sure I forgot to install something or overlooked something clearly in some documentation but I have been struggling with this for several day?s Can anybody help. Thank You Todd Birkenholtz __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From assefa at DMSOLUTIONS.CA Fri Oct 22 08:46:58 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 22 Oct 2004 11:46:58 -0400 Subject: WFS - PropertyIsLike In-Reply-To: Message-ID: Hi There, I have adressed this issue (Bug 987). Please let me know if it works for you (or even better, you can update the bug). Thanks. Uli Rothstein (CCGIS) wrote: > Hi list, > > does someone know which attributes I can use with in > wfs-requests or where I can get a documentation? > > I've tested the following request: > > http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo > _postgresql_wfs.map&REQUEST=GetFeature&VERSION=1.0.0&SERVICE=WFS&TYPENAME=St > aatsgrenze&FILTER= singleChar="?" > escape="\">popycounG Literal> > > As result I get all objects beginning with "G". It seems that mapserver > ignores the attribute 'wildcard' and uses a wildcard at the end of each > search item. > > Additionally I want to use the wildcard at the beginning of the search item. > But this does't seem to work with mapserver. > > Best regards > > Uli Rothstein > > > -------------------------------- > Ulrich Rothstein > CCGIS GbR > Siemensstra?e 8 > 53121 Bonn > GERMANY > -------------------------------- > > ulrich.rothstein at ccgis.de > www.ccgis.de > -------------------------------- > Zentrale: ++49 (0) 228 90826 0 > Durchwahl: ++49 (0) 228 90826 17 > Fax: ++49 (0) 228 90826 11 > -------------------------------- > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From bfraser at GEOANALYTIC.COM Fri Oct 22 09:21:32 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 22 Oct 2004 10:21:32 -0600 Subject: TileIndexes and paths - a proposal Message-ID: To tileindex users, With the addition of a new LAYER type (TYPE TILEINDEX) by Steve Lime, and the recent posts regarding TILEIDEX paths, I thought I would revisit path construction of tiles and make a proposal. Here are the map file variables that we might want to affect the path construction to a tile (any others?): 1. [Location of the map file] 2. SHAPEPATH 3. LAYER (tileindex):DATA (minus the tileindex filename) 4. LAYER (tiles):DATA 5. LAYER:TILEITEM contents Proposed rules: ============= 1. The path to a tile is constructed using the values of the above variables in order: [Location of the map file] / SHAPEPATH / LAYER (tileindex):DATA / LAYER (tiles):DATA / LAYER:TILEITEM contents 2. An absolute path in any of the variables would cause those to the left of that variable in Rule 1 not to be used in the path construction. Some examples: ============= A. The Steve Woodbridge senario: ----------------------------------------- 1. [Location of the map file] = /u/mapfiles/ 2. SHAPEPATH = "/u/data" 3. LAYER (tileIndex) : DATA = "tiger-maps/roads-tile" 4. LAYER (tiles): DATA = "" 5. LAYER: TILEITEM contents = "./data/01/001/roads.shp" would result in a tile path of /u/data/tiger-maps/./data/01/001/roads.shp B. Everything in one directory (yikes!): ----------------------------------------- 1. [Location of the map file] = C:\temp 2. SHAPEPATH = "" 3. LAYER (tileIndex) : DATA = "my-tiles" (the file is C:\temp\my-tiles.shp) 4. LAYER (tiles): DATA = "" 5. LAYER: TILEITEM contents = "map1.shp" would result in a tile path of C:\temp\map1.shp Some Questions: ============== Any desired data configuration where this would not work? Do we attempt to maintain backwards compatibility with the current method of path construction? Is anyone happy with it?. Thanks to all... Brent Fraser GeoAnalytic Inc. Tel:(403) 213-2700 bfraser at geoanalytic.com www.geoanalytic.com From aborruso at TIN.IT Fri Oct 22 10:14:12 2004 From: aborruso at TIN.IT (andrea) Date: Fri, 22 Oct 2004 19:14:12 +0200 Subject: Problems with 4.0 tutorial on XP In-Reply-To: <20041022150922.6909.qmail@web40629.mail.yahoo.com> Message-ID: An HTML attachment was scrubbed... URL: From querada499 at HOTMAIL.COM Fri Oct 22 10:19:35 2004 From: querada499 at HOTMAIL.COM (Robin Robin) Date: Fri, 22 Oct 2004 17:19:35 +0000 Subject: DEM Layers Message-ID: Hello all, I have downloaded data from a website and I wish to use it in my .map file. The downloaded files are .dem. Is there any special way they need to be added to my map? I tried adding similar to a raster layer in .tif but got an error. Any suggestions? Thanks Robin _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.com/ From woodbri at SWOODBRIDGE.COM Fri Oct 22 10:23:42 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 22 Oct 2004 13:23:42 -0400 Subject: TileIndexes and paths - a proposal In-Reply-To: <186601c4b853$31cab0e0$020002c0@SHARK> Message-ID: Brent, I have one variant on my example: Brent Fraser wrote: > Some examples: > ============= > A. The Steve Woodbridge senario: > ----------------------------------------- > 1. [Location of the map file] = /u/mapfiles/ > 2. SHAPEPATH = "/u/data" > 3. LAYER (tileIndex) : DATA = "tiger-maps/roads-tile" > 4. LAYER (tiles): DATA = "" > 5. LAYER: TILEITEM contents = "./data/01/001/roads.shp" > > would result in a tile path of > /u/data/tiger-maps/./data/01/001/roads.shp 1. [Location of the map file] = /u/mapfiles/ 2. SHAPEPATH = "/u/data" 3. LAYER (tileIndex) : DATA = "tiger-maps/county-tile" 4. LAYER (tiles): DATA = "roads" 5. LAYER: TILEITEM contents = "./data/01/001" would result in a tile path of /u/data/tiger-maps/./data/01/001/roads[.shp] I have found that often a spatial area (like a county) has many layers in it and they can all share the the same tileindex and then I use the DATA to select the specific file for the layer. ie. the tile represents the extents of the data in the directory and then you can have multiple layers in the directory. I think you description implies this would happen anyway, but I just wanted to make sure. Thank you for taking the lead on this. -Steve W. From woodbri at SWOODBRIDGE.COM Fri Oct 22 10:31:05 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 22 Oct 2004 13:31:05 -0400 Subject: DEM Layers In-Reply-To: Message-ID: http://www.google.com/search?hl=en&q=dem+tiff+convert&btnG=Google+Search Robin Robin wrote: > Hello all, > > I have downloaded data from a website and I wish to use it in my .map file. > The downloaded files are .dem. Is there any special way they need to be > added to my map? I tried adding similar to a raster layer in .tif but got > an error. Any suggestions? Thanks > > Robin > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar - get it now! > http://toolbar.msn.com/ > From abest at DIGITALFLEX.NET Fri Oct 22 10:45:12 2004 From: abest at DIGITALFLEX.NET (Anthony Best) Date: Fri, 22 Oct 2004 11:45:12 -0600 Subject: PHP Mapscript module and RegEx In-Reply-To: Message-ID: Dirk Tilger wrote: >On Fri, 24 Sep 2004 16:05:36 -0600, Anthony Best >wrote: > > >>I'm looking into fixing the problem with PHP4s Bundled RegEx and Mapscript. >> >> >[...] > > >>Is anyone else working on this? >> >> > >I had that in mind. I couldn't find any news with regards to your try on >this mailing list. Did you find a solution? > > > >>I'm willing to put the time and effort into fixing this issue (as well >>as other issues). >> >> > >Me too. How far did you came? > >Best regards, >Dirk. > > I made a patch a while back, it was rejected by the list (due to size). I haven't been able to test it yet, and it's not very correct. Presently I'm working on another project and had to put this on hold for a while. The attached patch was made against cvs rel-4-2-3. Anthony Best -------------- next part -------------- A non-text attachment was scrubbed... Name: regex-bundle.patch.bz2 Type: application/octet-stream Size: 47411 bytes Desc: not available URL: From bfraser at GEOANALYTIC.COM Fri Oct 22 11:25:22 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 22 Oct 2004 12:25:22 -0600 Subject: TileIndexes and paths - a proposal Message-ID: Ahh yes, now I remember why the path construction rules were set up that way. In your scenario, you've got "tiles-by-theme": tile1 / (eg Madison county) theme1.shp (eg roads.shp) theme2.shp tile2 / ( eg another county) theme1.shp theme2.shp and you would not store the theme-name/file-name in the tileindex location column. You'd set the filename in the DATA variable and have one LAYER for each theme (and could point to one tileindex). In scenario mine, I've got "tiles-by-geography": theme1 / (eg 1:250k topos) tile1.tif (eg c370.tif) tile2.tif theme2 / (eg 1:24k topos) tile1.tif (eg o370.tif) tile2.tif My filenames are in the tileindex location column (and in the above example I would have two tileindex files). If I have another layer with the same tiling scheme but different content (say terrain-shaded topos) I would simply copy the tileindex or create a new one using gdaltindex. Hmm, maybe that's not very efficient... Well, I guess we could swap the "LAYER (tiles): DATA" and "LAYER: TILEITEM contents" in my rules. That would make it somewhat backward compatible too. So now the proposal is 1. [Location of the map file] 2. SHAPEPATH 3. LAYER (tileindex):DATA (minus the tileindex filename portion) 4. LAYER:TILEITEM contents 5. LAYER (tiles):DATA Proposed rules (V2): ============= 1. The path to a tile is constructed using the values of the above variables in order: [Location of the map file] / SHAPEPATH / LAYER (tileindex):DATA / LAYER:TILEITEM contents / LAYER (tiles):DATA 2. An absolute path in any of the variables would cause those to the left of that variable in Rule 1 not to be used in the path construction. (As in the original proposal). =============== The above change requires that the tileindex is in the same location as the tile dir (which I think is not too bad). And maybe I can convince Frank W. to add an option to gdaltindex/ogrtindex to not add the actual filename (only the path as given on the command line) to the location value. A couple of more questions... ====================== 1. What if the tileindex is a database? 2. What if the tileindex is in a different coordinate system than the tiles? Brent ----- Original Message ----- From: "Stephen Woodbridge" To: Sent: Friday, October 22, 2004 11:23 AM Subject: Re: [UMN_MAPSERVER-USERS] TileIndexes and paths - a proposal > Brent, > > I have one variant on my example: > > Brent Fraser wrote: > > > Some examples: > > ============= > > A. The Steve Woodbridge senario: > > ----------------------------------------- > > 1. [Location of the map file] = /u/mapfiles/ > > 2. SHAPEPATH = "/u/data" > > 3. LAYER (tileIndex) : DATA = "tiger-maps/roads-tile" > > 4. LAYER (tiles): DATA = "" > > 5. LAYER: TILEITEM contents = "./data/01/001/roads.shp" > > > > would result in a tile path of > > /u/data/tiger-maps/./data/01/001/roads.shp > > 1. [Location of the map file] = /u/mapfiles/ > 2. SHAPEPATH = "/u/data" > 3. LAYER (tileIndex) : DATA = "tiger-maps/county-tile" > 4. LAYER (tiles): DATA = "roads" > 5. LAYER: TILEITEM contents = "./data/01/001" > > would result in a tile path of > /u/data/tiger-maps/./data/01/001/roads[.shp] > > I have found that often a spatial area (like a county) has many layers > in it and they can all share the the same tileindex and then I use the > DATA to select the specific file for the layer. ie. the tile represents > the extents of the data in the directory and then you can have multiple > layers in the directory. > > I think you description implies this would happen anyway, but I just > wanted to make sure. > > Thank you for taking the lead on this. > > -Steve W. From hhan at YORKU.CA Fri Oct 22 11:39:53 2004 From: hhan at YORKU.CA (Henry Han) Date: Fri, 22 Oct 2004 13:39:53 -0500 Subject: Problems with 4.0 tutorial on XP Message-ID: i also got stuck with exact the same problem for 2 days. check the size of your mapserv.exe. if it is only 116k, update a new one. i think the reason is because mapserv.exe is not complete by whatever reason. henry From simon at INF.UNIVALI.BR Fri Oct 22 11:57:04 2004 From: simon at INF.UNIVALI.BR (FERNANDO SIMON) Date: Fri, 22 Oct 2004 16:57:04 -0200 Subject: query on oraclespatial using OGR/OCI In-Reply-To: <5582A7B5F8F0AF49860B9EDE1AED1EB61202CF@cartero1.tragsa.es> Message-ID: Hi Javier, Yes, "the querys" are working correctly now, I tested the query functions with cgi mode an mapscript functions and both kinds work correctly. The query support is finished, now I'm working with others supports for the oraclespatial. So I believe that the querry support will be include in the next version of mapserver. Thank's for the help. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Quoting Javier Castillejo Montes : > Hi Fernando, > > I understand that you did some work on the mapserver files and now, your > queries are working? > > As Pierre knows I'm using mapserver with oracle spatial and my next step is > "The Queries".... If you need any help do not hesitate to told me. I'm > starting with "The Queries" work, but I will try to help. > > I think that I'm going to use php to generate the queries. It isn't the best > way, but, for now, Is the only way I know. > > THanks > > > > > > > -----Mensaje original----- > De: Fernando S. [mailto:simon at INF.UNIVALI.BR] > Enviado el: jueves, 21 de octubre de 2004 18:31 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: Re: [UMN_MAPSERVER-USERS] query on oraclespatial using OGR/OCI > > > Hi Pierre, > The query functions can be possible in the next version of the > Oracle Spatial support. I implemented these functions here in my > computer and I believe that this functions will be include in the next > version of native support. > I don't know how the OGR implement the query function but this > problem appear when you use functions that use the primary filter like > SDO_FILTER. > Here the problem disappear when I recreate the indexes without > SDO_LEVEL. Another point is the tolerance, you can try set a small > value for Tolerance like 0.00001. > > ---------------------------------------------------------------- > Fernando Simon - simon at inf.univali.br > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada > http://g10.cttmar.univali.br > ---------------------------------------------------------------- > > > bluecarto at free.fr wrote: > > >First question : how can you query oracle layers if you don't use OGR ? I > mean > >the function are not implemented for oraclespatial connectiontype. > > > >I had already try you suggestion (ommitting the SDO_LEVEL parameter). That > could > >be a good idea, but, sadly, it doesn't give any better result. > > > >I'm using Oracle 10g on Debian or Oracle 9.2 on RedHat. > > > >In my sample the result given seem to be the first record in the table. > > > >Regards > > > >Pierre > > > >Selon FERNANDO SIMON : > > > > > > > >>Hi Pierre, > >> I don't use OGR but your problem can be with the spatial index. I saw > >>this > >>problem with the 10G version. > >> In the 10G version the Oracle don't recommend use SDO_LEVEL when you > >>create > >>the spatial index. In my tests problems appears when I set the SDO_LEVEL, > the > >>result doesn't correspond whant I expected. > >> I don't know if the problem occur with others Oracle Spatial > versions. > >>But > >>you can try with or without SDO_LEVEL. > >> > >> > >>---------------------------------------------------------------- > >>Fernando Simon - simon at inf.univali.br > >>Mapserver and Oracle Spatial developer > >>G10 - Laboratorio de Computacao Aplicada > >>http://g10.cttmar.univali.br > >>---------------------------------------------------------------- > >> > >> > >>Quoting Pierre GIRAUD : > >> > >> > >> > >>> I'm still having difficulties to use mapserver queries on a oracle > layer. > >>> Before I report a bug, I would like someone to test the following SQL > >>>statement > >>>and mapfile, and agree that something is going wrong, or tell me I am > >>>missing > >>>something obvious. > >>> > >>> Thx > >>> > >>> Pierre GIRAUD > >>> camptocamp.com > >>> > >>>---------SQL statement-------------- > >>>DROP table mytable; > >>> > >>>CREATE TABLE MYTABLE ( > >>> GID VARCHAR(20), > >>> geometry MDSYS.SDO_GEOMETRY); > >>> > >>> > >>> > >>>insert into MYTABLE (GID,GEOMETRY) values ( > >>> '1', > >>> mdsys.sdo_geometry( > >>> '2003', > >>> null, > >>> null, > >>> mdsys.sdo_elem_info_array(1,1003,1), > >>> mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) > >>>); > >>> > >>>insert into MYTABLE (GID,GEOMETRY) values ( > >>> '2', > >>> mdsys.sdo_geometry( > >>> '2003', > >>> null, > >>> null, > >>> mdsys.sdo_elem_info_array(1,1003,1), > >>> mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) > >>>); > >>> > >>>insert into MYTABLE (GID,GEOMETRY) values ( > >>> '3', > >>> mdsys.sdo_geometry( > >>> '2003', > >>> null, > >>> null, > >>> mdsys.sdo_elem_info_array(1,1003,1), > >>> mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) > >>>); > >>> > >>>delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; > >>> > >>>insert into user_sdo_geom_metadata (table_name,column_name,diminfo,srid) > >>>values ('MYTABLE','GEOMETRY', > >>>mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), > >>>mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), > >>>NULL); > >>> > >>>drop index q_mytable; > >>> > >>>create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is > >>>MDSYS.spatial_index > >>>parameters ('SDO_LEVEL=6'); > >>> > >>>---------mapfile--------------- > >>>NAME DEMO > >>>STATUS ON > >>>SIZE 500 300 > >>>EXTENT 0 0 10 10 > >>>IMAGECOLOR 255 255 255 > >>> > >>> > >>>WEB > >>> IMAGEPATH "/var/www/images/" > >>> IMAGEURL "images/" > >>>END > >>> > >>>LAYER > >>> NAME squares > >>> TYPE POLYGON > >>> STATUS ON > >>># CONNECTIONTYPE oraclespatial > >>># CONNECTION "scott/tiger at orcl" > >>> CONNECTION "OCI:scott/tiger at orcl" > >>> CONNECTIONTYPE OGR > >>># DATA "select * from mytable" > >>> DATA "mytable" > >>> TEMPLATE "ttt" > >>> CLASS > >>> SIZE 10 > >>> COLOR 255 255 255 > >>> OUTLINECOLOR 200 200 200 > >>> END > >>>END > >>> > >>>END > >>> > >>> > >>> > >>>Selon bluecarto at free.fr: > >>> > >>> > >>> > >>>> Hello, > >>>> > >>>>Following the good advices of Frank Warmerdam, I improve in using > oracle > >>>>spatial > >>>>data with spatial indexes. For now, I know that I should not use sql > >>>>statements > >>>>in the mapfile but queries directly to the table : > >>>> > >>>> DATA "my_table" > >>>>instead of > >>>> DATA "select * from my_table" > >>>> > >>>>Both return the same images. Shapes are well drawn, and labeling is > >>>> > >>>> > >>>correct. > >>> > >>> > >>>>But the first (more performant) statement doesn't give good results to > a > >>>>query. > >>>>The data returned doesn't correspond to what is expected. And no shape > is > >>>>highlighted. > >>>> > >>>>Do someone using Oracle have same problems ? > >>>> > >>>>Pierre GIRAUD > >>>>camptocamp.com > >>>> > >>>> > >>>> > >>>> > >> > >> > >>------------------------------------------------ > >>Este e-mail foi enviado pelo webmail do curso de > >> Ci?ncia da Computa??o - UNIVALI > >> > >> > >> > > > > > > > > > ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From nasirmaan at HOTMAIL.COM Fri Oct 22 12:31:50 2004 From: nasirmaan at HOTMAIL.COM (nasir maan) Date: Fri, 22 Oct 2004 19:31:50 +0000 Subject: php_mapscript_42.dll configuration? Message-ID: An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Fri Oct 22 12:37:58 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Fri, 22 Oct 2004 15:37:58 -0400 Subject: php_mapscript_42.dll configuration? In-Reply-To: Message-ID: MS4W contains exactly your desired packages (phpmapscript 4.2, apache2, and php4.3.7) and it is a simple unzip, start apache, and go. you might want to take a look at it. http://www.maptools.org/ms4w/index.phtml?page=downloads.html jeff nasir maan wrote: > Hi, > > I have installed > > MapServer 4.2, Apache 2.0 and PHP 4.3.7 > > but when I copy php_mapscript_42.dll into C:/php4 or extensions folder > and try to check installation through this command: > dl("php_mapscript_42.dll"), it gives the following error > > *Warning*: dl(): Unable to load dynamic library > 'c:\php4\php_mapscript_42.dll' - The specified module could not be > found. in *C:\Program Files\Apache Group\Apache2\htdocs\phpinfo.php* on > line *2* > > Can anyone help me to solve it? > > *Regards, * > Mahmood, Nasir > > *J.-G.-NATHUSIUS-RING 1/408 * > *39106, Magdeburg* > *Germany.* > *Phone: +49-391-2428300 (Home)* > * +49-176-24211916 (Mobile)* > * * > > > ------------------------------------------------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger > Download today it's FREE! -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From warmerdam at POBOX.COM Fri Oct 22 12:32:54 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 22 Oct 2004 15:32:54 -0400 Subject: TileIndexes and paths - a proposal In-Reply-To: <18e401c4b864$7e3c2dd0$020002c0@SHARK> Message-ID: Brent, If we can agree on how the tile index names, I am happy to implement it. I haven't thought through your proposal carefully yet, but hopefully I will get a chance to. Brent Fraser wrote: > A couple of more questions... > ====================== > 1. What if the tileindex is a database? I presume you mean, what if the tileindex dosn't have a meaningful path? Good question. The other side of this is to keep in mind that the names in the tileindex aren't necessarily filenames. In the case of GDAL formats, they could be a gltp: url for OGDI data, or a DODS url for DODS servers. > 2. What if the tileindex is in a different coordinate system than the > tiles? At this time that is not permitted. All tiles in a tile index have to be in the same coordinate system as the tileindex. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From toddbirkey at YAHOO.COM Fri Oct 22 12:47:47 2004 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Fri, 22 Oct 2004 12:47:47 -0700 Subject: Problems with 4.0 tutorial on XP In-Reply-To: <41793FE4.5070906@tin.it> Message-ID: Andrea I think so. I copied all 12 DLL's to my c:\winnt\system32 folder from c:\mapserver\lib I also have in my path c:\mapserver\bin I can however run shp2img -m example1-1.map -o test.png and it works. --- andrea wrote: --------------------------------- Hi todd, do you have extracted all the dlls in a folder of the windows PATH(i.e. c:\windows\system32) Regards, Andrea Todd Birkenholtz wrote: I am new to Mapserver and the concept of GIS ingeneral.I think I followed the install procedure and checkedthe FAQ but must have overlooked something.Here is my setup..Windows XP with IISInstalled ms42pg.zip (Mapserver Windows Binary Build)My IIS foldersC:\Inetpub\tmp\ Temp folderC:\Inetpub\wwwroot\tutorial\ tutorial locationC:\Inetpub\wwwroot\tutorial\data data folderC:\Inetpub\scripts\mapserver.exe and mapserv.exeURLhttp://localhost/tutorial/http://localhost/tmp/ temp folderhttp://localhost/scripts/mapserv.exe or mapserver.exeWhen I go to http://localhost/scripts/mapserv.exe Iget the correct result ofNo query information to decode. QUERY_STRING not set.I installed the MapServer Itasca demo and as far as Ican tell it is working.I get an image and PNG files are placed in my tmpfolder.Here is my problem..I can not get the 4.0 Tutorial to work.I edited my example1-1.html image src to point to mymapfilesrc="/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=map" The image url generated by example1-1.html ishttp://localhost/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=mapHere is my edited mapfile/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\MAP IMAGETYPE PNG EXTENT 201621.496941 -294488.2853331425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "C:\Inetpub\wwwroot\tutorial\data" DEBUG on IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS--------------------------------------------- LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END # States polygon layer ends here # End of LAYER DEFINITIONS-------------------------------END # end of map file/object/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\When I access example1-1htmlI get the HTML tutorial but only a small box with ared x in it where the image was to be.When I go the URLhttp://localhost/scripts/mapserver.exe?map=c:\inetpub\wwwroot\tutorial\example1-1.map&mode=mapI get this error messageCGI ErrorThe specified CGI application misbehaved by notreturning a complete set of HTTP headers. The headersit did return are:#8240;PNGI am sure I forgot to install something or overlookedsomething clearly in some documentation but I havebeen struggling with this for several day#8217;sCan anybody help.Thank YouTodd Birkenholtz__________________________________Do you Yahoo!?Yahoo! Mail Address AutoComplete - You start. We finish.http://promotions.yahoo.com/new_mail _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From bfraser at GEOANALYTIC.COM Fri Oct 22 15:18:59 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 22 Oct 2004 16:18:59 -0600 Subject: TileIndexes and paths - a proposal Message-ID: ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Friday, October 22, 2004 1:32 PM Subject: Re: [UMN_MAPSERVER-USERS] TileIndexes and paths - a proposal > Brent, > > If we can agree on how the tile index names, I am happy to implement it. > I haven't thought through your proposal carefully yet, but hopefully I > will get a chance to. > > Brent Fraser wrote: > > A couple of more questions... > > ====================== > > 1. What if the tileindex is a database? > > I presume you mean, what if the tileindex dosn't have a meaningful path? > Good question. > At the first MUM, Sean G. had asked about using a database as a tileindex, but at that time it was no-go due to the single layer architecture for the tileindex and tiles. Since Steve L. added the two layer architechure for the tileindex and tiles, this looks more feasible, but my guess is that it is not implemented. So let's say it could be done. How would that impact the tile paths? One solution is to ignore the DATA object in the tileindex LAYER (have to, since it's not a path), so basically the full path is kept in the database (except for the optional DATA object, AKA the filename, in the layer definition). If you move the tiles, you would need to issue an Update SQL statement. Not great, but OK. > The other side of this is to keep in mind that the names in the tileindex > aren't necessarily filenames. In the case of GDAL formats, they could > be a gltp: url for OGDI data, or a DODS url for DODS servers. > My thought is that the fully qualified tile path should be something that at least one of the GDAL drivers could open. For example suppose I wanted to serve up VMAP0 data in it's original format (probably not a good idea performance-wise). Currently I think the mapserver code has some logic to determine if the path is relative or absolute; it would have to be enhanced to recognize the following as an absolute path: gltp:/vrf/usr4/mpp1/v0eur/vmaplv0/eurnasia 'watrcrsl at hydro(*)_line' and pass it the GDAL library. Likely some other issues as well. On the other hand, I don't think anyone has asked about this, so maybe it is not an issue.... > > 2. What if the tileindex is in a different coordinate system than the > > tiles? > > At this time that is not permitted. All tiles in a tile index have to > be in the same coordinate system as the tileindex. This is an enhancement that I would like to see. I implemented it in my local copy of MS 4.0 and could pass the source to some brave soul willing to integrate it into CVS. Basically it required having a .prj file with the tileindex and ensuring the tiles themselves had georeferencing (either internal for GeoTiffs, or .prj files for shapefiles etc.). The reason I didn't submit the code is that I believe the .prj file code should actually be in GDAL so formats without built-in coordinate system definition support could be more easily manipulated. See my email from May 12, 2003 "Projection AUTO, GDAL and ECW files". So many enhance requests, so little time... Brent From jgrimes at GI.ALASKA.EDU Fri Oct 22 15:18:14 2004 From: jgrimes at GI.ALASKA.EDU (Jason Grimes) Date: Fri, 22 Oct 2004 14:18:14 -0800 Subject: Problems getting raster data to display Message-ID: Hi, I'm new with MapServer and I'm trying to get a raster image to display in a layer. I'm using Chameleon to build my web interface and running MapServer as a CGI script. I have compiled MapServer with GDAL support and GDAL has GeoTiff support. I'm running MapServer version 4.2.4 and GDAL version 1.2.3 I'm also using PROJ and everything works great. All my shape files can be displayed and queried with no problems. The image I'm trying to display was originally created with ARC and is in Imagine format. Here is my map file entry for the raster layer... LAYER NAME "a_line_ab" DATA "a_line_ab_proj.img" TYPE RASTER STATUS on PROCESSING "BANDS=1,2,3" DEBUG on PROJECTION "init=epsg:102003" END END When I try and display it Chameleon responds with the following error... DrawMap: MapServer IO Error: (a_line_ab_proj.img) Now I have tried just about everything I can think of including converting the image to TIFF format and trying that, but I get the same error. I have also used ArcMap to set the projection on the file so it matches all of the other shape files, but still the same error. When I call MapServer with the map file alone without Chameleon nothing displays and no errors are generated. This is using the following command... http://phobos.gina.alaska.edu/cgi-bin/mapserv?map=/usr/local/apache2/htdocs/landman/chameleon/htdocs/landman.map&mode=map Here is what MapServer and GDAL report their compiled support is... ./mapserv -v MapServer version 4.2.4 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk bsb gif jpeg png Any ideas would be most welcome, thank you. Jason From bob.basques at CI.STPAUL.MN.US Fri Oct 22 15:39:20 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri, 22 Oct 2004 17:39:20 -0500 Subject: legend icons Message-ID: All, I think I saw some postings about this but didn't pay them any mind at the time. Why would a symbol in the Legend be rendered upside down vs the symbol in the map? bobb From bob.basques at CI.STPAUL.MN.US Fri Oct 22 15:41:34 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri, 22 Oct 2004 17:41:34 -0500 Subject: text behind linework. Message-ID: All, How can TEXT be placed behind the linework? I want to have a backgroud text layer. I tried adding the layer to the top of the MAP file and then moved it to the bottom. It displayed different in relation to other text layers, but still stays above the linework layers that I want it to be below. Maybe Grouping will help. But how to index the GROUP name in the MAP file bobb From kenlord at GMAIL.COM Fri Oct 22 16:05:48 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 22 Oct 2004 16:05:48 -0700 Subject: text behind linework. In-Reply-To: <41798C9E.1030808@ci.stpaul.mn.us> Message-ID: Hey Blammo, take a close look at the documentation and some of these things are listed. The text is on top because of label settings in the map file either set or defaulted to force labels to be drawn last. Turn it off and the text will be at the level of its layer in the mapfile. Cheers Ken On Fri, 22 Oct 2004 17:41:34 -0500, Blammo wrote: > All, > > How can TEXT be placed behind the linework? > > I want to have a backgroud text layer. I tried adding the layer to the > top of the MAP file and then moved it to the bottom. It displayed > different in relation to other text layers, but still stays above the > linework layers that I want it to be below. > > Maybe Grouping will help. But how to index the GROUP name in the MAP file > > bobb > -- ============================== Ken Lord B.Sc., A.Dipl.T.H. Burnaby BC, From tylermitchell at SHAW.CA Fri Oct 22 21:39:44 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 22 Oct 2004 21:39:44 -0700 Subject: text behind linework. In-Reply-To: <55dd01fa041022160551852ab4@mail.gmail.com> Message-ID: On October 22, 2004 04:05 pm, Ken Lord wrote: > The text is on top because of label settings in the map file either > set or defaulted to force labels to be drawn last. Turn it off and > the text will be at the level of its layer in the mapfile. I assume you are referring to disabling cached labels, right? Tyler From bob.basques at CI.STPAUL.MN.US Sat Oct 23 00:01:20 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Sat, 23 Oct 2004 02:01:20 -0500 Subject: text behind linework. In-Reply-To: Message-ID: Tyler Mitchell wrote: >On October 22, 2004 04:05 pm, Ken Lord wrote: > > >>The text is on top because of label settings in the map file either >>set or defaulted to force labels to be drawn last. Turn it off and >>the text will be at the level of its layer in the mapfile. >> >> > >I assume you are referring to disabling cached labels, right? > > Yup, the LABELCACHE OFF did what I needed it to do. First time I've used that setting. thanks Ken & Tyler bobb >Tyler > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bob.basques at CI.STPAUL.MN.US Sat Oct 23 02:09:38 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Sat, 23 Oct 2004 04:09:38 -0500 Subject: legends. Message-ID: I'm trying to get a legend template working. I have the CLASS names displaying, but how do I get the LAYER names to return? In the Map File : LAYER NAME 'tgr2k_mnplacepoly_alb' DATA '/var/www/lehdmap_data/tgr2k_mnplacepoly_alb' TYPE POLYGON STATUS OFF CLASS *NAME 'Cities & Towns'* ##COLOR 0 0 255 OUTLINECOLOR 0 0 255 END MAXSCALE 2000000 END and in the legend template: [leg_class_html] [leg_class_name]
[/leg_class_html] This displays the "*NAME 'Cities & Towns'" above just fine, but how do I get at the LAYER-NAME above, *NAME 'tgr2k_mnplacepoly_alb', I need to have them both output, can this be done in the template? Thanks bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at NUCOMP.COM Sat Oct 23 14:39:30 2004 From: jb at NUCOMP.COM (John Bolster) Date: Sat, 23 Oct 2004 17:39:30 -0400 Subject: shapefile creation Message-ID: Hello, I need to plot dynamically created points on my map. I don't have mapscript installed. I've been trying to dynamically create a shapefile. I'm on a commercially hosted server and I don't have root access and they are telling me that they can't get mapserver reinstalled with mapscript, so I'm stuck without it. The shapefile format didn't look too complicated to generate directly from php, but I haven't been able to get it to work. I keep getting the record lengths wrong. Any ideas for alternative ways to get a dynamic layer drawn? Is there another format of data file I could create in PHP and point my map file to with CGI parameters? Is it possible to get a precomiled binary for mapscript? I can plot individual features by dynamically creating features through the URL, but that won't work for 500 or so points. Thanks for any suggestions. John Bolster From bob.basques at CI.STPAUL.MN.US Sat Oct 23 19:01:39 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Sat, 23 Oct 2004 21:01:39 -0500 Subject: legends. In-Reply-To: Message-ID: All, My partner in crime made some progress with the legend display. This at least seems to display things correctly. [leg_layer_html] [/leg_layer_html] [leg_class_html visibility_flag=15] [leg_class_name]
[/leg_class_html] Now, how to make the checkboxes work . . . . It's a never ending cycle, I swear. . . . :c) bobb Blammo wrote: >This is a multi-part message in MIME format. >--------------030901030101000705020301 >Content-Type: text/plain; charset=us-ascii; format=flowed >Content-Transfer-Encoding: 7bit > >I'm trying to get a legend template working. > >I have the CLASS names displaying, but how do I get the LAYER names to >return? > >In the Map File : > >LAYER > NAME 'tgr2k_mnplacepoly_alb' > DATA '/var/www/lehdmap_data/tgr2k_mnplacepoly_alb' > TYPE POLYGON > STATUS OFF > CLASS > *NAME 'Cities & Towns'* > ##COLOR 0 0 255 > OUTLINECOLOR 0 0 255 > END > MAXSCALE 2000000 > END > >and in the legend template: > > > [leg_class_html] > value=1 [if name=layer_status oper=eq value=2]CHECKED[/if] > > [leg_class_name]
> [/leg_class_html] > >This displays the "*NAME 'Cities & Towns'" above just fine, but how do I >get at the LAYER-NAME above, *NAME 'tgr2k_mnplacepoly_alb', I need to >have them both output, can this be done in the template? > >Thanks > > > >bobb > > >--------------030901030101000705020301 >Content-Type: text/html; charset=us-ascii >Content-Transfer-Encoding: 7bit > > > > > > > > >I'm trying to get a legend template working.
>
>I have the CLASS names displaying, but how do I get the LAYER names to >return?
>
>In the Map File :
>
>LAYER
>    NAME 'tgr2k_mnplacepoly_alb'
>    DATA '/var/www/lehdmap_data/tgr2k_mnplacepoly_alb'
>    TYPE POLYGON
>    STATUS OFF
>    CLASS
>      NAME 'Cities & Towns'
>      ##COLOR 0 0 255
>      OUTLINECOLOR 0 0 255
>    END
>    MAXSCALE 2000000
>  END
>
>and in the legend template:
>
>
>   [leg_class_html]
>      <input type=checkbox name="map_[leg_class_name]_status"
>            value=1 [if name=layer_status oper=eq value=2]CHECKED[/if] >><img src=[leg_icon]> [leg_class_name]<br>
>   [/leg_class_html]
>
>This displays the "NAME 'Cities & Towns'" above just fine, but >how do I get at the LAYER-NAME above, NAME >'tgr2k_mnplacepoly_alb', I need to have them both output, can this be >done in the template?
>
>Thanks
>
>
>
>bobb
>
> > > >--------------030901030101000705020301-- > > > > From woodbri at SWOODBRIDGE.COM Sat Oct 23 20:22:03 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 23 Oct 2004 23:22:03 -0400 Subject: shapefile creation In-Reply-To: Message-ID: John, Take a look at this: http://www.phpclasses.org/browse/package/1741.html It is a PHP class for reading shapefiles. You might be able to use the read as an example of how to write them, and enhance the class for writing. I haven't looked at the code so it might not be worth much, but it is an idea. -Steve John Bolster wrote: > Hello, > > I need to plot dynamically created points on my map. I don't have mapscript > installed. I've been trying to dynamically create a shapefile. I'm on a > commercially hosted server and I don't have root access and they are telling > me that they can't get mapserver reinstalled with mapscript, so I'm stuck > without it. The shapefile format didn't look too complicated to generate > directly from php, but I haven't been able to get it to work. I keep getting > the record lengths wrong. > > Any ideas for alternative ways to get a dynamic layer drawn? Is there > another format of data file I could create in PHP and point my map file to > with CGI parameters? Is it possible to get a precomiled binary for > mapscript? > > I can plot individual features by dynamically creating features through the > URL, but that won't work for 500 or so points. > > Thanks for any suggestions. > > John Bolster > From normanb at COMSINE.CO.UK Sun Oct 24 03:34:23 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Sun, 24 Oct 2004 11:34:23 +0100 Subject: WCS Message-ID: Sorry to repost so soon, but I am pretty desparate to get this working. Can someone point me to a set of instructions on how to compile and install MapServer WCS. In particular I am looking to see how I can set up the XML files to support the GetCapabilities DescribeCoverage GetCoverage operations. Many thanks, Norman Barker From dirk at ADVTECHME.COM Sun Oct 24 07:12:24 2004 From: dirk at ADVTECHME.COM (Dirk Tilger) Date: Sun, 24 Oct 2004 18:12:24 +0400 Subject: PHP Mapscript module and RegEx Message-ID: Anthony Best wrote: > I made a patch a while back, it was rejected by the list (due to > size). I haven't been able to test it yet, and it's not very correct. So, if I see this right, your solution was to bundle regex into mapserver as well. What was the symptom you discovered? I created a patch that made mapscript compile accordingly against php4-bundled-regex, but I'm getting SEGV's at the moment. So I still cannot prove, that I made something useful. :-| Anthony, are you at the dev-list as well (I'm not approved yet)? Dirk. From dmorissette at DMSOLUTIONS.CA Sun Oct 24 09:32:27 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Sun, 24 Oct 2004 12:32:27 -0400 Subject: Compile-Error 4.3-nightly on SuSE In-Reply-To: <4177E64F.5010505@ccgis.de> Message-ID: Benjamin Thelen wrote: > Hi, > > I successfully built nightly builds from 24.09.04, 04.10.04 and > 21.10.04 on FreeBSD 4.10. But on SuSE 9.0 building fails with the > error message below. Building 4.2.5 on SuSE is successful. > > As I thought, the error could have something to do with an old > libiconv (1.9.1), I installed libiconv-1.9.2, but it didn't help it. > This sounds very much like bug 909: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=909 The problem would be that your system comes with the iconv functions as part of glibc and when you install a second libiconv on your system you end up with duplicate symbols. I'd suggest removing the libiconv-1.9.2 that you installed and trying configure/make again. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Tom.Kralidis at EC.GC.CA Sun Oct 24 09:37:31 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 24 Oct 2004 12:37:31 -0400 Subject: Compile-Error 4.3-nightly on SuSE Message-ID: Some more info on this issue. I ran into this (hence bug 909). Note that you'll have to recompile everything on your system which was compiled with the second libiconv, i.e. I ended up having to recompile Apache, etc. with the default libiconv. Cheers ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Morissette > Sent: Sunday, 24 October, 2004 12:32 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Compile-Error 4.3-nightly on SuSE > > > Benjamin Thelen wrote: > > Hi, > > > > I successfully built nightly builds from 24.09.04, 04.10.04 and > > 21.10.04 on FreeBSD 4.10. But on SuSE 9.0 building fails with the > > error message below. Building 4.2.5 on SuSE is successful. > > > > As I thought, the error could have something to do with an old > > libiconv (1.9.1), I installed libiconv-1.9.2, but it didn't help it. > > > > This sounds very much like bug 909: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=909 The problem would be that your system comes with the iconv functions as part of glibc and when you install a second libiconv on your system you end up with duplicate symbols. I'd suggest removing the libiconv-1.9.2 that you installed and trying configure/make again. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Tom.Kralidis at EC.GC.CA Sun Oct 24 09:39:09 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 24 Oct 2004 12:39:09 -0400 Subject: WCS Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Norman Barker > Sent: Sunday, 24 October, 2004 06:34 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WCS > > > Sorry to repost so soon, but I am pretty desparate to get > this working. > > Can someone point me to a set of instructions on how to > compile and install MapServer WCS. In particular I am > looking to see how I can set up the XML files to support the > Compile MapServer with the --with-wcs directive. For mapfile configuration for WCS, see: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WCSMapServer ..Tom > GetCapabilities > DescribeCoverage > GetCoverage > > operations. > > Many thanks, > > Norman Barker > From siki at AGT.BME.HU Sun Oct 24 13:20:49 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 24 Oct 2004 19:20:49 -0100 Subject: multiple join {Scanned} Message-ID: Hi List, I try to use multiple join between a shape file and a dbf. I was able to join one-to-one (single), but after changing it to multiple join, no errors, no result. part of my map file # parcels LAYER NAME "kafold" DATA "alapterkep/kafold.shp" STATUS ON GROUP "telkek" TYPE POLYGON CLASS COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 TEMPLATE "telek_cim.html" END HEADER "telek_cim_header.html" FOOTER "telek_cim_footer.html" JOIN NAME cim TABLE "cimek/ujcimek1.shp" FROM HRSZ TO HRSZ TYPE multiple TEMPLATE "cim_template.html" END END and the template for join

Address: [cim_CIM]

No part of the template for multiple join displayed. If I remove the TYPE and TEMPLATE rows from the map file it works, of course I add the cim_CIM column to the other template. MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I've tried with 4.0, the result is the same. Any suggestion? Thanx Zoltan From bt at CCGIS.DE Sun Oct 24 11:20:25 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Sun, 24 Oct 2004 20:20:25 +0200 Subject: Compile-Error 4.3-nightly on SuSE In-Reply-To: <417BD91B.7080408@dmsolutions.ca> Message-ID: Daniel Morissette wrote: > Benjamin Thelen wrote: > >> Hi, >> >> I successfully built nightly builds from 24.09.04, 04.10.04 and >> 21.10.04 on FreeBSD 4.10. But on SuSE 9.0 building fails with the >> error message below. Building 4.2.5 on SuSE is successful. >> >> As I thought, the error could have something to do with an old >> libiconv (1.9.1), I installed libiconv-1.9.2, but it didn't help it. >> > > This sounds very much like bug 909: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=909 > > The problem would be that your system comes with the iconv functions as > part of glibc and when you install a second libiconv on your system you > end up with duplicate symbols. I'd suggest removing the libiconv-1.9.2 > that you installed and trying configure/make again. > Hi Daniel, That was the trick! Thank you! But isn't there then a problem running mapserver below 4.4 and mapserver 4.4 on the same system? I removed libiconv-1.9.2, did not supply "--with-libiconv=/user/local" and had the following on ./configure(ing) mapserver. 4.0.2/4.2.5 checking for libiconv_open in -liconv... no libiconv library cannot be found, possibly needed for GD 4.4-beta checking for iconv_open in -liconv... no checking for iconv_open in -lc... yes using libiconv from system libs. libiconv found. Enabling internationalization (-DUSE_ICONV) Actually it is possible to compile mapserver 4.2.x and 4.0.x without libiconv, but I don't know if then any functionality is missing. Regards, Ben From richard.greenwood at GMAIL.COM Sun Oct 24 14:20:47 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 24 Oct 2004 15:20:47 -0600 Subject: multiple join {Scanned} In-Reply-To: Message-ID: On Sun, 24 Oct 2004 19:20:49 -0100, Siki Zoltan wrote: > Hi List, > > I try to use multiple join between a shape file and a dbf. > I was able to join one-to-one (single), but after changing it to > multiple join, no errors, no result. > > part of my map file > # parcels > LAYER > NAME "kafold" > DATA "alapterkep/kafold.shp" > STATUS ON > GROUP "telkek" > TYPE POLYGON > CLASS > COLOR -1 -1 -1 > OUTLINECOLOR 0 0 0 > TEMPLATE "telek_cim.html" > END > HEADER "telek_cim_header.html" > FOOTER "telek_cim_footer.html" > > JOIN > NAME cim > TABLE "cimek/ujcimek1.shp" > FROM HRSZ > TO HRSZ > TYPE multiple > TEMPLATE "cim_template.html" > END > END > > and the template for join >

> Address: [cim_CIM]
>

> > No part of the template for multiple join displayed. > > If I remove the TYPE and TEMPLATE rows from the map file it works, of > course I add the cim_CIM column to the other template. > > MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > I've tried with 4.0, the result is the same. > Any suggestion? > > Thanx > Zoltan > Try: TYPE one-to-many instead of "multiple" -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Sun Oct 24 21:11:33 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 24 Oct 2004 22:11:33 -0600 Subject: query hilighting, how to control output. In-Reply-To: <417807E8.8090506@ci.stpaul.mn.us> Message-ID: On Thu, 21 Oct 2004 14:03:04 -0500, Bob Basques wrote: > All, > > How do I control how the hilighting function operates. > > How to set the hilight colors and such. Can the hilight be pushed > through interation via the CGI parameters? > > I'm not find much info about this anywhere. > > I did find a couple of references to the "hilight" value as a Mapfile > component. > > Thanks > > bobb > Check out the query map object: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#querymap All map file valuces can be over-ridden with CGI variables e.g. MAP_QUERYMAP_COLOR=255 0 0 -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Sun Oct 24 21:27:17 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 24 Oct 2004 22:27:17 -0600 Subject: [UMN_MAPSERVER-USERS] Creating querymap via CGI parameters In-Reply-To: <2576812186CDD411BF1500508B6DCE95073678B7@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On Thu, 21 Oct 2004 14:05:46 -0400, Kralidis,Tom [Burlington] wrote: > This doesn't work either for me. > > Basically, I'm looking for a CGI GET style URL format, which will give me a map with my query highlighted. Almost like a OGC:WMS GetFeatureInfo, but returned as an image (n.b. only text-based results are supported in MapServer WMS). > > My inputs would be: > > Layername > Bbox > img.x (of queried point) > img.y (of queried point) > > ...which I've tried to replicate with: > > http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?map=/usr/local/wwwsites/apache/devgeo.cciw.ca/apps/mapserv/services/ecows/config.map&mode=querymap&img.x=289&img.y=268&imgext=-96.49999999971898%2042.00000000017564%20-72.50000000028102%2056.99999999982436&layer=star_phosphorous&buffer=20 > > ..but get nothing. > > Doing this via OGC:WMS GetFeatureInfo gives me results, so I know data is there: > > http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&SRS=EPSG%3A4326&BBOX=-96.49999999971898,42.00000000017564,-72.50000000028102,56.99999999982436&WIDTH=560&HEIGHT=350&LAYERS=star_phosphorous&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRANSPARENT=FALSE&QUERY_LAYERS=star_phosphorous&INFO_FORMAT=text%2Fhtml&X=289&Y=268&FEATURE_COUNT=5 > > ..Tom > > > > > > -----Original Message----- > > From: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] > > Sent: Monday, 18 October, 2004 10:01 > > To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE : [UMN_MAPSERVER-USERS] Creating querymap via CGI > > parameters > > > > > > I never be able to get Mapserver 4.0 works in querymap mode > > (error 500). I finally succeeded with Mapserver 4.2. My URL > > looks like this: > > > > http://localhost/cgi-bin/mapserv_42?map=/var/www/html/demo.map > > &layers=poly+ > > bkgd+lakes+roads&mapsize=791+749&imgext=-2341026.679536+-97627 > > 9.05923496 > > bkgd+lakes+69+3 > > > > 029014.36292+4108266.1303309673&mode=nquerymap&imgbox=53+221+664+721 > > > > Coordinates are in Lambert (meters). You can also cache some > > variables like mode and mapsize. You need a dummy query > > layer in your mapfile (or in hidden tag). I use an imgbox > > because this is a nquerymap (query with a rubberband square). > > > > Skweda O'Bomsawin > > > > -----Message d'origine----- > > De : UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de > > Kralidis,Tom [Burlington] Envoy? : 15 octobre 2004 20:00 ? : > > MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] > > Creating querymap via CGI parameters > > > > Hi, > > > > In the itasca demo, querying features displays a standard > > querymap, as well as cached query. > > > > Looking at the HTML, it looks like: > > > > Standard querymap: ms_tmp/DEMO10978846173120.gif > > > > Cached query: > > /cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfil > > e=c:/ms4w/ > > tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln2 > > &mode=map& > > size=200+200 > > > > How can one replicate this behaviour (i.e. output a querymap) > > with CGI parameters through MapServer CGI? > > > > Thanks > > > > ..Tom > > > > ========================= > > Tom Kralidis > > Systems Scientist > > Environment Canada > > Tel: +01-905-336-4409 > > http://www.ec.gc.ca/ Can't you just use a mode=query (or mode=nquery) and for the qlayer, provide an html file that has an image tag like src='[img]' Maybe I do not understand your question, but it seems like that's how i do it. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bob.basques at CI.STPAUL.MN.US Sun Oct 24 21:51:20 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Sun, 24 Oct 2004 23:51:20 -0500 Subject: query hilighting, how to control output. In-Reply-To: Message-ID: Richard Greenwood wrote: >On Thu, 21 Oct 2004 14:03:04 -0500, Bob Basques > wrote: > > >>All, >> >>How do I control how the hilighting function operates. >> >>How to set the hilight colors and such. Can the hilight be pushed >>through interation via the CGI parameters? >> >>I'm not find much info about this anywhere. >> >>I did find a couple of references to the "hilight" value as a Mapfile >>component. >> >>Thanks >> >>bobb >> >> >> > >Check out the query map object: > http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#querymap > >All map file valuces can be over-ridden with CGI variables e.g. > MAP_QUERYMAP_COLOR=255 0 0 > > Ok, that worked great, one problem though, how do I put the query map in the background, is it dependant on the layer ordering in the mapfile? bobb >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From normanb at COMSINE.CO.UK Mon Oct 25 04:23:35 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Mon, 25 Oct 2004 12:23:35 +0100 Subject: MapServer compile error Message-ID: Hi, I am trying to compile the nightly build of MapServer from source. I keep getting this error. configure: error: "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.12 or higher is compiled before calling configure." I have compiled GD from source and the libraries are in /usr/local/lib and the headers are in /usr/local/include I run configure with --with-gd=/usr/local There is a previous version of gd in /usr/lib, /usr/include, but I can't get the rpm removed because of dependencies. Any help would be greatfully appreciated. Norman From ummmmm at MYREALBOX.COM Mon Oct 25 06:35:45 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Mon, 25 Oct 2004 08:35:45 -0500 Subject: PHP MapScript hangs or performance degradation In-Reply-To: <41783CD2.1060506@myrealbox.com> Message-ID: No ideas at all, anyone? Doug wrote: > We've got a PHP MapScript application that seems to regularly hang or at > least > start responding *very* slowly. > > We're now at MapServer/MapScript 4.2.5 (have tried several previous fix > levels), with PHP 4.3.8 (cgi), PostgreSQL 7.4.3, PostGIS 0.8.2, Apache > 2.0.51, > Fedora Core 2 SMP (Dual CPU 2GHz P4). > > Our MapScript basically does a map->draw(), followed by a couple of > queryByRect() on non-shown layers, manual point->draw()s with custom, > numbered > labels, then a map->save(). (Somebody else wrote the code, so I'm > trying to > summarize my understanding the best I can in his absence.) > > Most of the time, this code seems to work fine and respond decently, > although > never "fast" for the particular locations that have lots of individual > points > to be numbered. > > When things are "normal", I can see one or two active php processes at any > given point in time, none of which are older than the current minute. > According to the "top" command, each such process does seem to use 100% of > (one of?) the CPU while it's running, but that doesn't seem to prevent the > system from otherwise responding normally. > > But fairly regularly, the php processes, and their owning httpd processes, > start stacking up and not finishing or going away. When this happens, > queries > to the php scripts start timing out and writing errors to Apache's stderr: > > [Thu Oct 21 16:47:30 2004] [error] [client 32.83.226.185] PHP Fatal error: > Maximum execution time of 30 seconds exceeded in > /var/www/html/offender/map.php on line 87 > > (Line 87 is the map->draw() call) > > When this happens, *sometimes* the problem seems to eventually fix itself > where the scripts start responding normally again. But often the only way > we're able to fix the problem is by stopping and re-starting Apache. > > One other interesting symptom is that even when these errors start > occurring, > some queries, those that are faster, seem to still work, and at a normal > speed. The slower ones don't come back at all. > > It acts like there's a resource deadlock or bottleneck somewhere, but I > can't > imagine a place which would block some queries and not others. > > Oh - the layers that we let map->draw() handle are in shapefiles. The > layers > that we queryByRect() are in PostgreS/PostGIS. > > So, first, has anyone seen these kinds of symptoms before? Is there some > obvious problem they indicate? If not, is there some obvious problem in > the > flow/configuration/algorithm I've described? > > I appreciate any help the community can offer. We're currently having to > recycle Apache 3-5 times per day because of these problems. > > Doug > > From imd_listuser at COMCAST.NET Mon Oct 25 06:38:24 2004 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Mon, 25 Oct 2004 09:38:24 -0400 Subject: Timestamped Map Message-ID: Greetings, Id like to place a timestamp on each map that is created. What is the bext way to do this? Im using mapserver cgi version 4.2 and Id prefer to not change this configuration. If possible Id like to do so using the map file or dhtml. TIA Charlie From bob.basques at CI.STPAUL.MN.US Mon Oct 25 06:49:43 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Mon, 25 Oct 2004 08:49:43 -0500 Subject: legends In-Reply-To: Message-ID: I've got the legend displaying for the most part correctly, but Danged if I can get the checkboxes to work the way I expect them to. bobb Robin Robin wrote: > Hi, don't know if you got an answer yet on your legend question. > > here are some examples: > http://www.maptools.org/twiki/bin/view/Oldwikitmp/HTMLLegendExample > http://mapserver.gis.umn.edu/doc40/html-legend-howto.html > > The main thing to get layer names is to have the [leg_layer_html] > [/leg_layer_html] tags. > > Hope that helps! > > -robin > > _________________________________________________________________ > Express yourself instantly with MSN Messenger! Download today it's > FREE! http://messenger.msn.com/ > > From yecarrillo at YAHOO.COM Mon Oct 25 06:52:43 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Mon, 25 Oct 2004 08:52:43 -0500 Subject: Arcview view to mapfile extension In-Reply-To: Message-ID: --- Manjiri Andhare escribi?: > Hello!! > I'm working on ArcGIS 9, ArcView. I went to the site you suggested > (http://gix.sourceforge.net/), and downloaded the extention(export tool > version 0.2). And I understand that you said that its meant to export > ArcGIS 3.x files to .map files, but i just wanted to check if it works with > ArcView 9, but it dosn't seem to work with ArcView 9. Yes. Gix works under ArcView 3.x only. ArcGis version is under development. Not public available right now. Eduin ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From pagameba at MAGMA.CA Mon Oct 25 06:56:17 2004 From: pagameba at MAGMA.CA (Paul Spencer) Date: Mon, 25 Oct 2004 09:56:17 -0400 Subject: legends In-Reply-To: <417D0477.6090402@ci.stpaul.mn.us> Message-ID: are you using CGI or mapscript? If you are using PHP/MapScript, you will need to name your checkboxes with [] after the name to get PHP to interpret the checkbox values as an array. Otherwise, PHP will only see the first checkbox. Cheers, Paul Blammo wrote: > I've got the legend displaying for the most part correctly, but Danged > if I can get the checkboxes to work the way I expect them to. > > bobb > > Robin Robin wrote: > >> Hi, don't know if you got an answer yet on your legend question. >> >> here are some examples: >> http://www.maptools.org/twiki/bin/view/Oldwikitmp/HTMLLegendExample >> http://mapserver.gis.umn.edu/doc40/html-legend-howto.html >> >> The main thing to get layer names is to have the [leg_layer_html] >> [/leg_layer_html] tags. >> >> Hope that helps! >> >> -robin >> >> _________________________________________________________________ >> Express yourself instantly with MSN Messenger! Download today it's >> FREE! http://messenger.msn.com/ >> >> > -- ----------------------------------------------------------------- |Paul Spencer pspencer at dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From bfraser at GEOANALYTIC.COM Mon Oct 25 07:45:43 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 25 Oct 2004 08:45:43 -0600 Subject: Timestamped Map Message-ID: Charlie, I'm not sure if this is the best way but we did something similar a couple of years ago using the following layer definition: LAYER NAME "TimeStamp" TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE FEATURE POINTS 20 20 END # Text in Upper-left TEXT "Terra MODIS [imagedate] [imagetime] UT" END CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 TYPE TRUETYPE FONT comic SIZE 16 POSITION AUTO FORCE TRUE OFFSET 10 10 PARTIALS FALSE WRAP "," END # Label END # CLASS END In our case we pre-processed the map file to substitute the "[imagedate] [imagetime]" with the date the data was aquired (not the date the map graphic was generated) by using some purpose-built software on the server. I think you would be able to use a CGI variable to change the text, but I haven't tried it. I think the CGI syntax would be something like: ...&map_TimeStamp_feature_text=Terra+Modis+20041025&... and you'll likely need URL encoding for characters other than alphanumerics. Brent Fraser GeoAnalytic Inc. ----- Original Message ----- From: "IMD Listuser" To: Sent: Monday, October 25, 2004 7:38 AM Subject: [UMN_MAPSERVER-USERS] Timestamped Map Greetings, Id like to place a timestamp on each map that is created. What is the bext way to do this? Im using mapserver cgi version 4.2 and Id prefer to not change this configuration. If possible Id like to do so using the map file or dhtml. TIA Charlie From hhan at GEOTANGO.COM Mon Oct 25 07:48:21 2004 From: hhan at GEOTANGO.COM (Henry Han) Date: Mon, 25 Oct 2004 10:48:21 -0400 Subject: "Missing ImageLength filed" problem when requesting Tiff via MapServer Message-ID: Hi, I am trying to serve image via map server WMS. JPG, GIF, PNG all work well. But when I try "fomat=image/tiff", it does allow me to download and save the image, but I just can not open it. With GDAL gdalinfo to check the tiff image, it tells me following info. Error 1: MissingRequired: d:\temp\mapserv.tif: TIFF directory is missing requried "ImageLength" field GDALOpen failed -1 Anyone has any idea about thisproblem? Thanks a lot Henry -------------- next part -------------- An HTML attachment was scrubbed... URL: From normanb at COMSINE.CO.UK Mon Oct 25 08:18:43 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Mon, 25 Oct 2004 16:18:43 +0100 Subject: More GD errors Message-ID: Hi, I have switched boxes to a clean install of Red Hat FC2 to compile MapServer (nightly build), FC2 ships with the 2 series version of GD as required mapserver but the configure script still fails to pick it up even when I use --with-gd=/usr/local Has anyone got a (fool-proof!) set of instructions for compiling MapServer? This GD error is a hurdle I can't get over! Many thanks, Norman Barker From bob.basques at CI.STPAUL.MN.US Mon Oct 25 08:36:29 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 25 Oct 2004 10:36:29 -0500 Subject: legends In-Reply-To: Message-ID: Paul Spencer wrote: >are you using CGI or mapscript? If you are using PHP/MapScript, you >will need to name your checkboxes with [] after the name to get PHP to >interpret the checkbox values as an array. Otherwise, PHP will only see >the first checkbox. > > CGI.. bobb >Cheers, > >Paul > >Blammo wrote: > > >>I've got the legend displaying for the most part correctly, but Danged >>if I can get the checkboxes to work the way I expect them to. >> >>bobb >> >>Robin Robin wrote: >> >> >> >>>Hi, don't know if you got an answer yet on your legend question. >>> >>>here are some examples: >>>http://www.maptools.org/twiki/bin/view/Oldwikitmp/HTMLLegendExample >>>http://mapserver.gis.umn.edu/doc40/html-legend-howto.html >>> >>>The main thing to get layer names is to have the [leg_layer_html] >>>[/leg_layer_html] tags. >>> >>>Hope that helps! >>> >>>-robin >>> >>>_________________________________________________________________ >>>Express yourself instantly with MSN Messenger! Download today it's >>>FREE! http://messenger.msn.com/ >>> >>> >>> >>> > >-- > ----------------------------------------------------------------- >|Paul Spencer pspencer at dmsolutions.ca | >|-----------------------------------------------------------------| >|Applications & Software Development | >|DM Solutions Group Inc http://www.dmsolutions.ca/| > ----------------------------------------------------------------- > > > From Tom.Kralidis at EC.GC.CA Mon Oct 25 08:29:55 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 25 Oct 2004 11:29:55 -0400 Subject: [UMN_MAPSERVER-USERS] Creating querymap via CGI parameters Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Greenwood > Sent: Monday, 25 October, 2004 00:27 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] > Creating querymap via CGI parameters > > > On Thu, 21 Oct 2004 14:05:46 -0400, Kralidis,Tom [Burlington] > wrote: > > This doesn't work either for me. > > > > Basically, I'm looking for a CGI GET style URL format, > which will give > > me a map with my query highlighted. Almost like a OGC:WMS > > GetFeatureInfo, but returned as an image (n.b. only > text-based results > > are supported in MapServer WMS). > > > > My inputs would be: > > > > Layername > > Bbox > > img.x (of queried point) > > img.y (of queried point) > > > > ...which I've tried to replicate with: > > > > > http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?map=/usr/local/wwwsites/ap > > > ache/devgeo.cciw.ca/apps/mapserv/services/ecows/config.map&mode=querym > > > ap&img.x=289&img.y=268&imgext=-96.49999999971898%2042.00000000017564%2 > > > 0-72.50000000028102%2056.99999999982436&layer=star_phosphorous&buffer= > > 20 > > > > ..but get nothing. > > > > Doing this via OGC:WMS GetFeatureInfo gives me results, so > I know data > > is there: > > > > > http://devgeo.cciw.ca/cgi-bin/mapserv/ecows?SERVICE=WMS&VERSION=1.1.1& > > > REQUEST=GetFeatureInfo&SRS=EPSG%3A4326&BBOX=-96.49999999971898,42.0000 > > > 0000017564,-72.50000000028102,56.99999999982436&WIDTH=560&HEIGHT=350&L > > > AYERS=star_phosphorous&STYLES=&FORMAT=image%2Fpng&BGCOLOR=0xFFFFFF&TRA > > > NSPARENT=FALSE&QUERY_LAYERS=star_phosphorous&INFO_FORMAT=text%2Fhtml&X > > =289&Y=268&FEATURE_COUNT=5 > > > > ..Tom > > > > > > > > > > > -----Original Message----- > > > From: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] > > > Sent: Monday, 18 October, 2004 10:01 > > > To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: RE : [UMN_MAPSERVER-USERS] Creating querymap via CGI > > > parameters > > > > > > > > > I never be able to get Mapserver 4.0 works in querymap > mode (error > > > 500). I finally succeeded with Mapserver 4.2. My URL looks like > > > this: > > > > > > http://localhost/cgi-bin/mapserv_42?map=/var/www/html/demo.map > > > &layers=poly+ > > > bkgd+lakes+roads&mapsize=791+749&imgext=-2341026.679536+-97627 > > > 9.05923496 > > > bkgd+lakes+69+3 > > > > > > > > 029014.36292+4108266.1303309673&mode=nquerymap&imgbox=53+221+664+721 > > > > > > Coordinates are in Lambert (meters). You can also cache some > > > variables like mode and mapsize. You need a dummy query layer in > > > your mapfile (or in hidden tag). I use an imgbox because > this is a > > > nquerymap (query with a rubberband square). > > > > > > Skweda O'Bomsawin > > > > > > -----Message d'origine----- > > > De : UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > De la > part de > Kralidis,Tom [Burlington] Envoy? : 15 octobre 2004 > > > 20:00 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : > > > [UMN_MAPSERVER-USERS] Creating querymap via CGI parameters > > > > > > Hi, > > > > > > In the itasca demo, querying features displays a standard > querymap, > > > as well as cached query. > > > > > > Looking at the HTML, it looks like: > > > > > > Standard querymap: ms_tmp/DEMO10978846173120.gif > > > > > > Cached query: > > > /cgi-bin/mapserv.exe?map=c:/ms4w/apps/itasca/demo.map&queryfil > > > e=c:/ms4w/ > > > tmp/ms_tmp/DEMO10978846173120.qy&layer=lakespy2&layer=dlgstln2 > > > &mode=map& > > > size=200+200 > > > > > > How can one replicate this behaviour (i.e. output a > querymap) with > > > CGI parameters through MapServer CGI? > > > > > > Thanks > > > > > > ..Tom > > > > > > ========================= > > > Tom Kralidis > > > Systems Scientist > > > Environment Canada > > > Tel: +01-905-336-4409 > > > http://www.ec.gc.ca/ > > > Can't you just use a mode=query (or mode=nquery) and for the > qlayer, provide an html file that has an image tag like src='[img]' > Do you have an exmaple of how this is done? The problem is that the output HTML is a result of an OGC:WMS GetFeatureInfo request, and *not* a MapServer CGI request, so items like [img] won't work, at least I think they wouldn't. > Maybe I do not understand your question, but it seems like > that's how i do it. > > Regards, > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > From imd_listuser at COMCAST.NET Mon Oct 25 08:44:44 2004 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Mon, 25 Oct 2004 11:44:44 -0400 Subject: Timestamped Map Message-ID: Hi Thanks for the reply. Unfortunately when I try to duplicate your code, the only thing that appears on the map is "Terra MODIS [imagedate] [imagetime] UT". Even if I substitute a known cgi variable like [mapext], it does not get evaluated prior to being drawn on the map. Hmmm. Any Ideas Charlie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Monday, October 25, 2004 10:46 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map Charlie, I'm not sure if this is the best way but we did something similar a couple of years ago using the following layer definition: LAYER NAME "TimeStamp" TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE FEATURE POINTS 20 20 END # Text in Upper-left TEXT "Terra MODIS [imagedate] [imagetime] UT" END CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 TYPE TRUETYPE FONT comic SIZE 16 POSITION AUTO FORCE TRUE OFFSET 10 10 PARTIALS FALSE WRAP "," END # Label END # CLASS END In our case we pre-processed the map file to substitute the "[imagedate] [imagetime]" with the date the data was aquired (not the date the map graphic was generated) by using some purpose-built software on the server. I think you would be able to use a CGI variable to change the text, but I haven't tried it. I think the CGI syntax would be something like: ...&map_TimeStamp_feature_text=Terra+Modis+20041025&... and you'll likely need URL encoding for characters other than alphanumerics. Brent Fraser GeoAnalytic Inc. ----- Original Message ----- From: "IMD Listuser" To: Sent: Monday, October 25, 2004 7:38 AM Subject: [UMN_MAPSERVER-USERS] Timestamped Map Greetings, Id like to place a timestamp on each map that is created. What is the bext way to do this? Im using mapserver cgi version 4.2 and Id prefer to not change this configuration. If possible Id like to do so using the map file or dhtml. TIA Charlie From sgillies at FRII.COM Mon Oct 25 09:04:20 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 25 Oct 2004 10:04:20 -0600 Subject: More GD errors In-Reply-To: Message-ID: On Oct 25, 2004, at 9:18 AM, Norman Barker wrote: > Hi, > > I have switched boxes to a clean install of Red Hat FC2 to compile > MapServer (nightly build), > FC2 ships with the 2 series version of GD as required mapserver but the > configure script still fails > to pick it up even when I use --with-gd=/usr/local > > Has anyone got a (fool-proof!) set of instructions for compiling > MapServer? This GD error > is a hurdle I can't get over! > > Many thanks, > > Norman Barker > > Norman, If you provide more details, I'll try to help. Your message gives us little to go on. Specifically: MapServer version, the output of the configure script, and your actual configure command. I'm using a FC2-based distribution (KRUD) and it comes with GD 1.8.4 in /usr/lib. Are you sure you have a GD 2? If so, where are the libraries and include files found? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From steve.lime at DNR.STATE.MN.US Mon Oct 25 09:09:33 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 25 Oct 2004 11:09:33 -0500 Subject: More GD errors Message-ID: What I've done with GD on Redhat is: 1) build and install the version I want as a static library (there are configure flags do this in GD) 2) hide the GD libs included with Redhat (move them someplace temporarily) 3) build MapServer 4) unhide the GD libs (move them back) Of course you could uninstall the GD libs that came with Redhat since they are older and are of little use anyway. Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> Norman Barker 10/25/2004 10:18:43 AM >>> Hi, I have switched boxes to a clean install of Red Hat FC2 to compile MapServer (nightly build), FC2 ships with the 2 series version of GD as required mapserver but the configure script still fails to pick it up even when I use --with-gd=/usr/local Has anyone got a (fool-proof!) set of instructions for compiling MapServer? This GD error is a hurdle I can't get over! Many thanks, Norman Barker From bfraser at GEOANALYTIC.COM Mon Oct 25 09:30:59 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Mon, 25 Oct 2004 10:30:59 -0600 Subject: Timestamped Map Message-ID: Charlie, While the [imagedate] "variable" looks like MapServer CGI variable, it's not. It's just something I invented (well, borrowed) for a particular implementation. The Mapserver CGI variable you will be using for the map file snippet below is map_TimeStamp_feature_text. You set it in the URL the client passes to the server. It won't work to set [imagedate] in the URL as Mapserver has no clue about that variable, and has no way to set text in the mapfile. It DOES have a way to substitute the entire contents of a map file object using the map_ syntax. See the bottom of http://mapserver.gis.umn.edu/doc42/cgi-reference.html ("Changing map file parameters...") What does your URL look like? Brent ----- Original Message ----- From: "IMD Listuser" To: Sent: Monday, October 25, 2004 9:44 AM Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map Hi Thanks for the reply. Unfortunately when I try to duplicate your code, the only thing that appears on the map is "Terra MODIS [imagedate] [imagetime] UT". Even if I substitute a known cgi variable like [mapext], it does not get evaluated prior to being drawn on the map. Hmmm. Any Ideas Charlie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Monday, October 25, 2004 10:46 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map Charlie, I'm not sure if this is the best way but we did something similar a couple of years ago using the following layer definition: LAYER NAME "TimeStamp" TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE FEATURE POINTS 20 20 END # Text in Upper-left TEXT "Terra MODIS [imagedate] [imagetime] UT" END CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 TYPE TRUETYPE FONT comic SIZE 16 POSITION AUTO FORCE TRUE OFFSET 10 10 PARTIALS FALSE WRAP "," END # Label END # CLASS END In our case we pre-processed the map file to substitute the "[imagedate] [imagetime]" with the date the data was aquired (not the date the map graphic was generated) by using some purpose-built software on the server. I think you would be able to use a CGI variable to change the text, but I haven't tried it. I think the CGI syntax would be something like: ...&map_TimeStamp_feature_text=Terra+Modis+20041025&... and you'll likely need URL encoding for characters other than alphanumerics. Brent Fraser GeoAnalytic Inc. ----- Original Message ----- From: "IMD Listuser" To: Sent: Monday, October 25, 2004 7:38 AM Subject: [UMN_MAPSERVER-USERS] Timestamped Map Greetings, Id like to place a timestamp on each map that is created. What is the bext way to do this? Im using mapserver cgi version 4.2 and Id prefer to not change this configuration. If possible Id like to do so using the map file or dhtml. TIA Charlie From normanb at COMSINE.CO.UK Mon Oct 25 09:54:51 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Mon, 25 Oct 2004 17:54:51 +0100 Subject: More GD errors In-Reply-To: <88198CE5-269F-11D9-A39A-000D9329D732@frii.com> Message-ID: Sean Gillies wrote: > On Oct 25, 2004, at 9:18 AM, Norman Barker wrote: > >> Hi, >> >> I have switched boxes to a clean install of Red Hat FC2 to compile >> MapServer (nightly build), >> FC2 ships with the 2 series version of GD as required mapserver but the >> configure script still fails >> to pick it up even when I use --with-gd=/usr/local >> >> Has anyone got a (fool-proof!) set of instructions for compiling >> MapServer? This GD error >> is a hurdle I can't get over! >> >> Many thanks, >> >> Norman Barker >> >> > > Norman, > > If you provide more details, I'll try to help. Your message gives us > little to > go on. Specifically: MapServer version, the output of the configure > script, > and your actual configure command. > > I'm using a FC2-based distribution (KRUD) and it comes with GD 1.8.4 in > /usr/lib. > Are you sure you have a GD 2? If so, where are the libraries and > include files > found? > > Sean > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > I have to boxes one that is running Red Hat 9 and the other FC 2, the errors are the same so I will describe both I building the nightly snapshot of MapServer so that I can use the WCS functionality. I have a version of GD in /usr/lib, and version 2.x of GD in usr/local/lib so running ./configure --with-wcs --with-gd=/usr/local --with-proj=/usr/bin --with-png=/usr/lib --with-wmsclient --with-curl-config=/usr/bin/curl-config --with-wfsc lient --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-wfs (as kindly given by Newland Agbenowosi) gives the following error "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.12 or higher is compiled before calling configure." Any help would be greatly appreciated. Norman From sgillies at FRII.COM Mon Oct 25 10:11:04 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 25 Oct 2004 11:11:04 -0600 Subject: More GD errors In-Reply-To: Message-ID: On Oct 25, 2004, at 10:54 AM, Norman Barker wrote: > Sean Gillies wrote: > >> On Oct 25, 2004, at 9:18 AM, Norman Barker wrote: >> >>> Hi, >>> >>> I have switched boxes to a clean install of Red Hat FC2 to compile >>> MapServer (nightly build), >>> FC2 ships with the 2 series version of GD as required mapserver but >>> the >>> configure script still fails >>> to pick it up even when I use --with-gd=/usr/local >>> >>> Has anyone got a (fool-proof!) set of instructions for compiling >>> MapServer? This GD error >>> is a hurdle I can't get over! >>> >>> Many thanks, >>> >>> Norman Barker >>> >>> >> >> Norman, >> >> If you provide more details, I'll try to help. Your message gives us >> little to >> go on. Specifically: MapServer version, the output of the configure >> script, >> and your actual configure command. >> >> I'm using a FC2-based distribution (KRUD) and it comes with GD 1.8.4 >> in >> /usr/lib. >> Are you sure you have a GD 2? If so, where are the libraries and >> include files >> found? >> >> Sean >> >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> > I have to boxes one that is running Red Hat 9 and the other FC 2, the > errors are the same so I will describe both > > I building the nightly snapshot of MapServer so that I can use the WCS > functionality. > > I have a version of GD in /usr/lib, and version 2.x of GD in > usr/local/lib > > so running > > ./configure --with-wcs --with-gd=/usr/local --with-proj=/usr/bin > --with-png=/usr/lib --with-wmsclient > --with-curl-config=/usr/bin/curl-config --with-wfsc > lient --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config > --with-wfs > > (as kindly given by Newland Agbenowosi) > > gives the following error > "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD > 2.0.12 or higher is compiled before calling configure." > > > Any help would be greatly appreciated. > > Norman > Looking in our configure script, I'm not convinced that GD_LIBDIR is being properly set to /usr/local/lib so that AC_CHECK_LIB is checking that particular GD library for the necessary version. Steve, can you confirm? On my system, I've removed the older 1.8.4 GD to prevent this kind of conflict, but we should probably work to improve our configure script. Not everyone has the option to clear out GD from /usr/lib. Norman, in the meanwhile, try setting the environment variable LD_LIBRARY_PATH=/usr/local/lib before you configure. This should insure that configure looks in the proper GD library for version checking. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From normanb at COMSINE.CO.UK Mon Oct 25 10:35:00 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Mon, 25 Oct 2004 18:35:00 +0100 Subject: More GD errors In-Reply-To: Message-ID: Sean Gillies wrote: > On Oct 25, 2004, at 10:54 AM, Norman Barker wrote: > >> Sean Gillies wrote: >> >>> On Oct 25, 2004, at 9:18 AM, Norman Barker wrote: >>> >>>> Hi, >>>> >>>> I have switched boxes to a clean install of Red Hat FC2 to compile >>>> MapServer (nightly build), >>>> FC2 ships with the 2 series version of GD as required mapserver but >>>> the >>>> configure script still fails >>>> to pick it up even when I use --with-gd=/usr/local >>>> >>>> Has anyone got a (fool-proof!) set of instructions for compiling >>>> MapServer? This GD error >>>> is a hurdle I can't get over! >>>> >>>> Many thanks, >>>> >>>> Norman Barker >>>> >>>> >>> >>> Norman, >>> >>> If you provide more details, I'll try to help. Your message gives us >>> little to >>> go on. Specifically: MapServer version, the output of the configure >>> script, >>> and your actual configure command. >>> >>> I'm using a FC2-based distribution (KRUD) and it comes with GD 1.8.4 >>> in >>> /usr/lib. >>> Are you sure you have a GD 2? If so, where are the libraries and >>> include files >>> found? >>> >>> Sean >>> >>> >>> -- >>> Sean Gillies >>> sgillies at frii dot com >>> http://users.frii.com/sgillies >>> >> I have to boxes one that is running Red Hat 9 and the other FC 2, the >> errors are the same so I will describe both >> >> I building the nightly snapshot of MapServer so that I can use the WCS >> functionality. >> >> I have a version of GD in /usr/lib, and version 2.x of GD in >> usr/local/lib >> >> so running >> >> ./configure --with-wcs --with-gd=/usr/local --with-proj=/usr/bin >> --with-png=/usr/lib --with-wmsclient >> --with-curl-config=/usr/bin/curl-config --with-wfsc >> lient --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config >> --with-wfs >> >> (as kindly given by Newland Agbenowosi) >> >> gives the following error >> "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD >> 2.0.12 or higher is compiled before calling configure." >> >> >> Any help would be greatly appreciated. >> >> Norman >> > > Looking in our configure script, I'm not convinced that GD_LIBDIR is > being > properly set to /usr/local/lib so that AC_CHECK_LIB is checking that > particular GD library for the necessary version. Steve, can you > confirm? > > On my system, I've removed the older 1.8.4 GD to prevent this kind of > conflict, but we should probably work to improve our configure script. > Not everyone has the option to clear out GD from /usr/lib. > > Norman, in the meanwhile, try setting the environment variable > LD_LIBRARY_PATH=/usr/local/lib before you configure. This should insure > that configure looks in the proper GD library for version checking. > > Sean > > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > Thanks for the help, I set LD_LIBRARY_PATH=/usr/local/lib as suggested but I still get the error "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD 2.0.12 or higher is compiled before calling configure." are there any other work arounds you can think of? Thanks, Norman From sgillies at FRII.COM Mon Oct 25 10:34:17 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 25 Oct 2004 11:34:17 -0600 Subject: More GD errors In-Reply-To: Message-ID: On Oct 25, 2004, at 11:35 AM, Norman Barker wrote: > Sean Gillies wrote: > >> On Oct 25, 2004, at 10:54 AM, Norman Barker wrote: >> >>> Sean Gillies wrote: >>> >>>> On Oct 25, 2004, at 9:18 AM, Norman Barker wrote: >>>> >>>>> Hi, >>>>> >>>>> I have switched boxes to a clean install of Red Hat FC2 to compile >>>>> MapServer (nightly build), >>>>> FC2 ships with the 2 series version of GD as required mapserver but >>>>> the >>>>> configure script still fails >>>>> to pick it up even when I use --with-gd=/usr/local >>>>> >>>>> Has anyone got a (fool-proof!) set of instructions for compiling >>>>> MapServer? This GD error >>>>> is a hurdle I can't get over! >>>>> >>>>> Many thanks, >>>>> >>>>> Norman Barker >>>>> >>>>> >>>> >>>> Norman, >>>> >>>> If you provide more details, I'll try to help. Your message gives >>>> us >>>> little to >>>> go on. Specifically: MapServer version, the output of the configure >>>> script, >>>> and your actual configure command. >>>> >>>> I'm using a FC2-based distribution (KRUD) and it comes with GD 1.8.4 >>>> in >>>> /usr/lib. >>>> Are you sure you have a GD 2? If so, where are the libraries and >>>> include files >>>> found? >>>> >>>> Sean >>>> >>>> >>>> -- >>>> Sean Gillies >>>> sgillies at frii dot com >>>> http://users.frii.com/sgillies >>>> >>> I have to boxes one that is running Red Hat 9 and the other FC 2, the >>> errors are the same so I will describe both >>> >>> I building the nightly snapshot of MapServer so that I can use the >>> WCS >>> functionality. >>> >>> I have a version of GD in /usr/lib, and version 2.x of GD in >>> usr/local/lib >>> >>> so running >>> >>> ./configure --with-wcs --with-gd=/usr/local --with-proj=/usr/bin >>> --with-png=/usr/lib --with-wmsclient >>> --with-curl-config=/usr/bin/curl-config --with-wfsc >>> lient --with-ogr=/usr/bin/gdal-config >>> --with-gdal=/usr/bin/gdal-config >>> --with-wfs >>> >>> (as kindly given by Newland Agbenowosi) >>> >>> gives the following error >>> "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD >>> 2.0.12 or higher is compiled before calling configure." >>> >>> >>> Any help would be greatly appreciated. >>> >>> Norman >>> >> >> Looking in our configure script, I'm not convinced that GD_LIBDIR is >> being >> properly set to /usr/local/lib so that AC_CHECK_LIB is checking that >> particular GD library for the necessary version. Steve, can you >> confirm? >> >> On my system, I've removed the older 1.8.4 GD to prevent this kind of >> conflict, but we should probably work to improve our configure script. >> Not everyone has the option to clear out GD from /usr/lib. >> >> Norman, in the meanwhile, try setting the environment variable >> LD_LIBRARY_PATH=/usr/local/lib before you configure. This should >> insure >> that configure looks in the proper GD library for version checking. >> >> Sean >> >> >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> > Thanks for the help, I set LD_LIBRARY_PATH=/usr/local/lib as suggested > but I still get the error > > "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD > 2.0.12 or higher is compiled before calling configure." > > are there any other work arounds you can think of? > > Thanks, > > Norman > Norman, My last resort, on a system where I absolutely could not remove the GD in /usr/lib or modify ld.so.conf, was to hack the configure script so that it did not check for a GD version. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From warmerdam at POBOX.COM Mon Oct 25 10:39:35 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 25 Oct 2004 13:39:35 -0400 Subject: "Missing ImageLength filed" problem when requesting Tiff via MapServer In-Reply-To: Message-ID: Henry Han wrote: > Hi, > > I am trying to serve image via map server WMS. JPG, GIF, PNG all work > well. But when I try "fomat=image/tiff", it does allow me to download > and save the image, but I just can not open it. With GDAL gdalinfo to > check the tiff image, it tells me following info. > > Error 1: MissingRequired: d:\temp\mapserv.tif: TIFF directory is missing > requried "ImageLength" field > GDALOpen failed -1 Henry, This generally means your TIFF file is corrupt. I would suggest you run the tiffinfo command on your file (and perhaps tiffdump too) and then take the issue to the TIFF mailing list (or to me privately). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From yannick.doiron at CIPANB.CA Mon Oct 25 11:03:11 2004 From: yannick.doiron at CIPANB.CA (Yannick Doiron) Date: Mon, 25 Oct 2004 13:03:11 -0500 Subject: center point using data from PostGIS Message-ID: Hi list, I am using MapServer CGI 4.2 on window XP with PostGIS data connect to it. I'a using the code below to center the map on a point choosed by the user from a select list. I want to be able to get the coordinate from a PostGIS database instead of writing it like the code above. I was able to import my data in PostGIS and see it with MapServer. I know I will have to use PHPMapscript. I have it install and working (I have the ms4w package from maptools.org installed) but I am not very good php programming. Can somone lead me at a tutorial or else on how to achieve this? If this was asked and answered in the past, please forward me the link. Thanks in advance, Yannick From steve.lime at DNR.STATE.MN.US Mon Oct 25 11:32:24 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 25 Oct 2004 13:32:24 -0500 Subject: More GD errors Message-ID: I'll have to get on my Redhat box at home to test this, but thought the problem was that the linker picks up the wrong shared library regardless if you tell it -L/usr/local/lib. This has been an ongoing problem for years when two versions of the same library are installed. Steve >>> Sean Gillies 10/25/2004 12:11:04 PM >>> On Oct 25, 2004, at 10:54 AM, Norman Barker wrote: > Sean Gillies wrote: > >> On Oct 25, 2004, at 9:18 AM, Norman Barker wrote: >> >>> Hi, >>> >>> I have switched boxes to a clean install of Red Hat FC2 to compile >>> MapServer (nightly build), >>> FC2 ships with the 2 series version of GD as required mapserver but >>> the >>> configure script still fails >>> to pick it up even when I use --with-gd=/usr/local >>> >>> Has anyone got a (fool-proof!) set of instructions for compiling >>> MapServer? This GD error >>> is a hurdle I can't get over! >>> >>> Many thanks, >>> >>> Norman Barker >>> >>> >> >> Norman, >> >> If you provide more details, I'll try to help. Your message gives us >> little to >> go on. Specifically: MapServer version, the output of the configure >> script, >> and your actual configure command. >> >> I'm using a FC2-based distribution (KRUD) and it comes with GD 1.8.4 >> in >> /usr/lib. >> Are you sure you have a GD 2? If so, where are the libraries and >> include files >> found? >> >> Sean >> >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> > I have to boxes one that is running Red Hat 9 and the other FC 2, the > errors are the same so I will describe both > > I building the nightly snapshot of MapServer so that I can use the WCS > functionality. > > I have a version of GD in /usr/lib, and version 2.x of GD in > usr/local/lib > > so running > > ./configure --with-wcs --with-gd=/usr/local --with-proj=/usr/bin > --with-png=/usr/lib --with-wmsclient > --with-curl-config=/usr/bin/curl-config --with-wfsc > lient --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config > --with-wfs > > (as kindly given by Newland Agbenowosi) > > gives the following error > "Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure GD > 2.0.12 or higher is compiled before calling configure." > > > Any help would be greatly appreciated. > > Norman > Looking in our configure script, I'm not convinced that GD_LIBDIR is being properly set to /usr/local/lib so that AC_CHECK_LIB is checking that particular GD library for the necessary version. Steve, can you confirm? On my system, I've removed the older 1.8.4 GD to prevent this kind of conflict, but we should probably work to improve our configure script. Not everyone has the option to clear out GD from /usr/lib. Norman, in the meanwhile, try setting the environment variable LD_LIBRARY_PATH=/usr/local/lib before you configure. This should insure that configure looks in the proper GD library for version checking. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From gerry.creager at TAMU.EDU Mon Oct 25 11:37:06 2004 From: gerry.creager at TAMU.EDU (Gerry Creager n5jxs) Date: Mon, 25 Oct 2004 13:37:06 -0500 Subject: More GD errors In-Reply-To: Message-ID: Steve Lime wrote: > I'll have to get on my Redhat box at home to test this, but thought the > problem was that the linker picks up the wrong shared library regardless > if you tell it -L/usr/local/lib. This has been an ongoing problem for > years when two versions of the same library are installed. > > Steve > > >>>>Sean Gillies 10/25/2004 12:11:04 PM >>> > > On Oct 25, 2004, at 10:54 AM, Norman Barker wrote: > > >>Sean Gillies wrote: >> >> >>>On Oct 25, 2004, at 9:18 AM, Norman Barker wrote: >>> >>> >>>>Hi, >>>> >>>>I have switched boxes to a clean install of Red Hat FC2 to compile >>>>MapServer (nightly build), >>>>FC2 ships with the 2 series version of GD as required mapserver but > > >>>>the >>>>configure script still fails >>>>to pick it up even when I use --with-gd=/usr/local >>>> >>>>Has anyone got a (fool-proof!) set of instructions for compiling >>>>MapServer? This GD error >>>>is a hurdle I can't get over! >>>> >>>>Many thanks, >>>> >>>>Norman Barker >>>> >>>> >>> >>>Norman, >>> >>>If you provide more details, I'll try to help. Your message gives > > us > >>>little to >>>go on. Specifically: MapServer version, the output of the > > configure > >>>script, >>>and your actual configure command. >>> >>>I'm using a FC2-based distribution (KRUD) and it comes with GD 1.8.4 > > >>>in >>>/usr/lib. >>>Are you sure you have a GD 2? If so, where are the libraries and >>>include files >>>found? >>> >>>Sean >>> >>> >>>-- >>>Sean Gillies >>>sgillies at frii dot com >>>http://users.frii.com/sgillies >>> >> >>I have to boxes one that is running Red Hat 9 and the other FC 2, > > the > >>errors are the same so I will describe both >> >>I building the nightly snapshot of MapServer so that I can use the > > WCS > >>functionality. >> >>I have a version of GD in /usr/lib, and version 2.x of GD in >>usr/local/lib >> >>so running >> >>./configure --with-wcs --with-gd=/usr/local --with-proj=/usr/bin >> --with-png=/usr/lib --with-wmsclient >>--with-curl-config=/usr/bin/curl-config --with-wfsc >>lient --with-ogr=/usr/bin/gdal-config > > --with-gdal=/usr/bin/gdal-config > >>--with-wfs >> >>(as kindly given by Newland Agbenowosi) >> >>gives the following error >>"Could not find gd.h or libgd.a/libgd.so in /usr/local. Make sure > > GD > >>2.0.12 or higher is compiled before calling configure." >> >> >>Any help would be greatly appreciated. >> >>Norman >> > > > Looking in our configure script, I'm not convinced that GD_LIBDIR is > being > properly set to /usr/local/lib so that AC_CHECK_LIB is checking that > particular GD library for the necessary version. Steve, can you > confirm? > > On my system, I've removed the older 1.8.4 GD to prevent this kind of > conflict, but we should probably work to improve our configure script. > Not everyone has the option to clear out GD from /usr/lib. > > Norman, in the meanwhile, try setting the environment variable > LD_LIBRARY_PATH=/usr/local/lib before you configure. This should > insure > that configure looks in the proper GD library for version checking. Fromn some early morning discussions here, it looks like he's got 2 copies of libgd installed, and likely a confused linker. Gerry -- Gerry Creager -- gerry.creager at tamu.edu Network Engineering -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Pager: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From sobomsawin at KASSINI.COM Mon Oct 25 11:51:22 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 25 Oct 2004 14:51:22 -0400 Subject: [UMN_MAPSERVER-USERS] center point using data from PostGIS In-Reply-To: Message-ID: You can take a look at the PostGIS user manual: http://postgis.refractions.net/docs/ Look at the extent option from sql, something like that: select xmin(extent(wkb_geometry)), ymin(extent(wkb_geometry)),xmax(extent(wkb_geometry)),ymax(extent(wkb_geomet ry)) from employes where emp='Annele Duguay'; Dans l'espoir de vous mettre sur la bonne voie! Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Yannick Doiron Envoy??: 25 octobre 2004 14:03 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] center point using data from PostGIS Hi list, I am using MapServer CGI 4.2 on window XP with PostGIS data connect to it. I'a using the code below to center the map on a point choosed by the user from a select list. I want to be able to get the coordinate from a PostGIS database instead of writing it like the code above. I was able to import my data in PostGIS and see it with MapServer. I know I will have to use PHPMapscript. I have it install and working (I have the ms4w package from maptools.org installed) but I am not very good php programming. Can somone lead me at a tutorial or else on how to achieve this? If this was asked and answered in the past, please forward me the link. Thanks in advance, Yannick --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.779 / Virus Database: 526 - Release Date: 2004-10-19 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.779 / Virus Database: 526 - Release Date: 2004-10-19 From ealpert at DIGITALGLOBE.COM Mon Oct 25 11:52:10 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 25 Oct 2004 12:52:10 -0600 Subject: center point using data from PostGIS Message-ID: Use the DB.php interface and make a query to postgis. The postgis function centroid ought to do what you want. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Yannick Doiron Sent: Monday, October 25, 2004 12:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] center point using data from PostGIS Hi list, I am using MapServer CGI 4.2 on window XP with PostGIS data connect to it. I'a using the code below to center the map on a point choosed by the user from a select list. I want to be able to get the coordinate from a PostGIS database instead of writing it like the code above. I was able to import my data in PostGIS and see it with MapServer. I know I will have to use PHPMapscript. I have it install and working (I have the ms4w package from maptools.org installed) but I am not very good php programming. Can somone lead me at a tutorial or else on how to achieve this? If this was asked and answered in the past, please forward me the link. Thanks in advance, Yannick From imd_listuser at COMCAST.NET Mon Oct 25 12:01:25 2004 From: imd_listuser at COMCAST.NET (IMD Listuser) Date: Mon, 25 Oct 2004 15:01:25 -0400 Subject: Timestamped Map Message-ID: Hi Brent Thanks for the reply. I understand what you are saying about having to pass in the map_timestamp_feature_text in the url. Id like to avoid that and have the server set the time on the image. Is there anything that I can use to allow me to do so? Seems like there ought to be.... Cheers Charlie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Monday, October 25, 2004 12:31 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map Charlie, While the [imagedate] "variable" looks like MapServer CGI variable, it's not. It's just something I invented (well, borrowed) for a particular implementation. The Mapserver CGI variable you will be using for the map file snippet below is map_TimeStamp_feature_text. You set it in the URL the client passes to the server. It won't work to set [imagedate] in the URL as Mapserver has no clue about that variable, and has no way to set text in the mapfile. It DOES have a way to substitute the entire contents of a map file object using the map_ syntax. See the bottom of http://mapserver.gis.umn.edu/doc42/cgi-reference.html ("Changing map file parameters...") What does your URL look like? Brent ----- Original Message ----- From: "IMD Listuser" To: Sent: Monday, October 25, 2004 9:44 AM Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map Hi Thanks for the reply. Unfortunately when I try to duplicate your code, the only thing that appears on the map is "Terra MODIS [imagedate] [imagetime] UT". Even if I substitute a known cgi variable like [mapext], it does not get evaluated prior to being drawn on the map. Hmmm. Any Ideas Charlie -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Monday, October 25, 2004 10:46 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map Charlie, I'm not sure if this is the best way but we did something similar a couple of years ago using the following layer definition: LAYER NAME "TimeStamp" TYPE ANNOTATION STATUS DEFAULT TRANSFORM FALSE FEATURE POINTS 20 20 END # Text in Upper-left TEXT "Terra MODIS [imagedate] [imagetime] UT" END CLASS LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 TYPE TRUETYPE FONT comic SIZE 16 POSITION AUTO FORCE TRUE OFFSET 10 10 PARTIALS FALSE WRAP "," END # Label END # CLASS END In our case we pre-processed the map file to substitute the "[imagedate] [imagetime]" with the date the data was aquired (not the date the map graphic was generated) by using some purpose-built software on the server. I think you would be able to use a CGI variable to change the text, but I haven't tried it. I think the CGI syntax would be something like: ...&map_TimeStamp_feature_text=Terra+Modis+20041025&... and you'll likely need URL encoding for characters other than alphanumerics. Brent Fraser GeoAnalytic Inc. ----- Original Message ----- From: "IMD Listuser" To: Sent: Monday, October 25, 2004 7:38 AM Subject: [UMN_MAPSERVER-USERS] Timestamped Map Greetings, Id like to place a timestamp on each map that is created. What is the bext way to do this? Im using mapserver cgi version 4.2 and Id prefer to not change this configuration. If possible Id like to do so using the map file or dhtml. TIA Charlie From woodbri at SWOODBRIDGE.COM Mon Oct 25 12:18:40 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 25 Oct 2004 15:18:40 -0400 Subject: Timestamped Map In-Reply-To: <90264B8395BF154DB2CB12B068DFFAE9052D01@westward.im-design.net> Message-ID: Charlie, Well, one thing the comes to mind is to write a bug on this so [current_data], [current_time] are variables in the mapfile that are set appropriately by mapserver in a future rev. To your immediate problem, you could write a simple shell script wrapper that your url hits and have it append the map_timestamp_feature_text in the url along with the current data/time as text, then have it exec mapserver. This would allow you to do it transparently on the server using the existing mechanisms. -Steve W. IMD Listuser wrote: > > Hi Brent > > Thanks for the reply. > > I understand what you are saying about having to pass in the > map_timestamp_feature_text in the url. > > Id like to avoid that and have the server set the time on the image. Is > there anything that I can use to allow me to do so? Seems like there > ought to be.... > > Cheers > > Charlie > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Brent Fraser > Sent: Monday, October 25, 2004 12:31 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map > > Charlie, > > While the [imagedate] "variable" looks like MapServer CGI variable, > it's not. It's just something I invented (well, borrowed) for a > particular implementation. The Mapserver CGI variable you will be using > for the map file snippet below is map_TimeStamp_feature_text. You set > it in the URL the client passes to the server. It won't work to set > [imagedate] in the URL as Mapserver has no clue about that variable, and > has no way to set text in the mapfile. It DOES have a way to substitute > the entire contents of a map file object using the map_ syntax. See the > bottom of http://mapserver.gis.umn.edu/doc42/cgi-reference.html > ("Changing map file > parameters...") > > What does your URL look like? > > Brent > > ----- Original Message ----- > From: "IMD Listuser" > To: > Sent: Monday, October 25, 2004 9:44 AM > Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map > > > Hi > > Thanks for the reply. > > Unfortunately when I try to duplicate your code, the only thing that > appears on the map is "Terra MODIS [imagedate] [imagetime] UT". Even if > I substitute a known cgi variable like [mapext], it does not get > evaluated prior to being drawn on the map. > > Hmmm. Any Ideas > > Charlie > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Brent Fraser > Sent: Monday, October 25, 2004 10:46 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Timestamped Map > > Charlie, > > I'm not sure if this is the best way but we did something similar a > couple of years ago using the following layer definition: > > LAYER > NAME "TimeStamp" > TYPE ANNOTATION > STATUS DEFAULT > TRANSFORM FALSE > FEATURE > POINTS 20 20 END # Text in Upper-left > TEXT "Terra MODIS [imagedate] [imagetime] UT" > END > CLASS > LABEL > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > TYPE TRUETYPE > FONT comic > SIZE 16 > POSITION AUTO > FORCE TRUE > OFFSET 10 10 > PARTIALS FALSE > WRAP "," > END # Label > END # CLASS > END > > > In our case we pre-processed the map file to substitute the "[imagedate] > [imagetime]" with the date the data was aquired (not the date the map > graphic was generated) by using some purpose-built software on the > server. > > I think you would be able to use a CGI variable to change the text, but > I haven't tried it. I think the CGI syntax would be something like: > > ...&map_TimeStamp_feature_text=Terra+Modis+20041025&... > > and you'll likely need URL encoding for characters other than > alphanumerics. > > Brent Fraser > GeoAnalytic Inc. > > > > ----- Original Message ----- > From: "IMD Listuser" > To: > Sent: Monday, October 25, 2004 7:38 AM > Subject: [UMN_MAPSERVER-USERS] Timestamped Map > > > Greetings, > > Id like to place a timestamp on each map that is created. > > What is the bext way to do this? Im using mapserver cgi version 4.2 and > Id prefer to not change this configuration. If possible Id like to do so > using the map file or dhtml. > > TIA > > Charlie > From bob.basques at CI.STPAUL.MN.US Mon Oct 25 12:57:47 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 25 Oct 2004 14:57:47 -0500 Subject: I can't make it work. Message-ID: All, Using the SHPXY and SCALE params for the CGI version. How do I construct a URL that uses the above to replace the MAPEXT for zooming. I want to sent a XY (in ithe MapServer coordinates) along with a scale for image output (zoomint to a point) Are these the correct parameters to use? thanks bobb From bob.basques at CI.STPAUL.MN.US Mon Oct 25 13:13:08 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 25 Oct 2004 15:13:08 -0500 Subject: Oops, SOVLED: Re: I can't make it work. In-Reply-To: Message-ID: Oops, soory folks, I jumped the gun. The MAPXY does what I was looking for not, the SHPXY. bobb Bob Basques wrote: >All, > >Using the SHPXY and SCALE params for the CGI version. > >How do I construct a URL that uses the above to replace the MAPEXT for >zooming. I want to sent a XY (in ithe MapServer coordinates) along with >a scale for image output (zoomint to a point) Are these the correct >parameters to use? > >thanks > >bobb > > > From vaiod at BERLOY.COM Mon Oct 25 14:02:02 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Mon, 25 Oct 2004 14:02:02 -0700 Subject: Querying / Selecting Lines Message-ID: What would some of you recommend for selecting or querying lines that I have stored in PostgreSQL? I can come up with some creative "point to point guessing" solutions for horizontal and vertical lines but the difficulty comes with angled lines. The tolerance becomes an issue too because the users rarely would actually select the exact point between two line points. E.g. myline = ----- user selected point = * line point = O (100 200) O----------------------*-------------O (200 200) Are there some functions built into PostGIS/PostgreSQL? Eric From dmorissette at DMSOLUTIONS.CA Mon Oct 25 15:30:33 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 25 Oct 2004 18:30:33 -0400 Subject: MapServer 4.4.0-beta1 released Message-ID: Hi, The MapServer team is working hard to bring you a release of MapServer 4.4.0 before the end of this year. The first step towards the release is MapServer 4.4.0-beta1 which we are proud to release today. You can find more details on the release plan in the wiki at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ReleasePlan44 There are still several issues/bugs being worked on, but the software is in very good shape and ready for power users to start playing with the new features and report any issues they may find. If you think you found a bug then please use bugzilla. We have done a feature freeze a few days ago, so there will be no more new developments before 4.4.0, just fixes. The mapserver-4.4.0-beta1.tar.gz source package should be available on the main MapServer website shortly. In the meantime you can get it from http://maptools.org/dl/mapserver-4.4.0-beta1.tar.gz The documentation team is in the process of bringing the documentation up to date for 4.4. The latest version of the docs is available at http://mapserver.gis.umn.edu/doc/develop_index.html I will include at the end of this message a rough list of what's new in MapServer 4.4. Windows binaries are also available: Howard Butler wrote: > > MapServer 4.4.0 beta1 Windows Binaries are available at: > http://hobu.stat.iastate.edu/mapserver/build_output/beta_4_4_0 > > I have compiled a 4.4.0 beta1 "kitchen sink" release that includes GDAL, > Proj.4, PDF output, SWF output, MrSID, NetCDF, JPEG2000, ECW, PostGIS, > GML, WFS Server/Client, WMS Server/Client, DEBUG output, GIF, PNG, and > JPEG. > > Oracle Spatial and SDE are *not* provided, but if you are interested, > contact me off list. > > Python MapScript is also available. Finally, PHP MapScript binaries for Windows should be available in a few minutes at http://maptools.org/php_mapscript/index.phtml?page=downloads.html Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Here is a rough list of what's new in MapServer 4.4: * Added WCS support (server only) * Added support for Time dimension in WMS * Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 test suite and is ready to be certified (Formal "WMS Compliance" certification with OGC may be completed in time for the final release). * Added FastCGI support * Lots of fixes to allow running in long-lived processes and multithreaded environments (memory leaks, mutex locking, etc.). * Added connection pooling (implemented for SDE and PostGIS). * Lots of improvements to SWIG MapScript API and docs. * Support for i18n encodings in map labels. Tested with Chinese, Japanese and Thai. * Added ability to produce rotated maps (i.e. North is not at the top) * Completion of SDE versioned query support * ... and many many more fixes and enhancements. See the HISTORY.TXT that comes with the source package for the complete list. -------------- More detailed excerpt from HISTORY.TXT: Version 4.4.0-beta1 (2004-10-21) -------------------------------- - 'make shared' compilation target now supports some kind of versioning, should at least prevent libmap.so version collisions when upgrading MapServer on a server (bug 982) - When no RULE parameter has been specified in the WMS request a legend should be returned with all classes for the specified LAYER. Changes has been made in mapwms.c (bug 653). Also if the SCALE parameter is provided in the WMS request is will be used to determine whether the legend of the specified layer should be drawn in the case that the layer is scale dependant (big 809). - Nested layers in the capabilities are supported by using a new metadata tag WMS_LAYER_GROUP (bug 776) - Added greyscale+alpha render support if mapdrawgdal.c: Bug 965. - Added --with-fastcgi support to configure. - support OGC mapcontext through mapserver cgi : Bug 946 - support for reading 3d shape file (z) : Bug 869. - add php mapscript functions to expose the z element : Bug 870 - imageObj::write() method for SWIG mapscript (bug 941). - Protect users from 3 potential sources of threading problems: parsing expression strings outside of msLoadMap, evaluating mapserver logical expressions, and loading symbol set files outside of msLoadMap (bug 339). - Various fixes allowing unit tests to run leak free under valgrind on i686. Memory is now properly freed when exiting from common error states (bug 927). - Restored ability to render transparent (indexed or alpha) pixmap symbols on RGB map images, including annotation layers and embedded scalebars. This feature remains OFF by default for map layers and is enabled by specifying TRANSPARENCY ALPHA (bugs 926, 490). - mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. - New mapserver exceptions for Java mapscript thanks to Umberto Nicoletti (bug 895). - Removed mapindex.c, mapindex.h, shpindex.c components of old unused shapefile indexing method. - Use the symbol size instead of 1 for the default style size value. This is done by setting the default size to -1 and adding msSymbolGetDefaultSize() everywhere to get the default symbolsize (Bug 751). - Correct Bug with GML BBOX output when using a with a GetFeature request (Bug 913). - Encode all metadatas and mapfile parameters outputed in a xml document (Bug 802). - Implement the ENCODING label parameter to support internationalization. Note this require the iconv library (Bug 858). - New and improved Java mapscript build provided by unicoletti at prometeo.it and examples by Y.K. Choo (bug 876). - MapContext: Cleanup code to make future integration more easily and output SRS and DataURL in the order required by the spec. - Fixed issue with polygon outline colors and brush caching (bug 868). - New C# mapscript makefiles and examples provided by Y.K. Choo committed under mapscript/csharp/ (bug 867). - Renamed 'string' member of labelCacheMemberObj to 'text' to avoid conflicts in SWIG mapscript with C# and Java types (bug 852). - Fixed Bug 866 : problem when generating an sld on a pplygon layer - SWIG mapscript: map's output image width and height should be set simultaneously using new mapObj::setSize() method. This performs necessary map geotransform computation. Direct setting of map width and height is deprecated (bug 836). - Fixed bug 832 (validate srs value) : When the SRS parameter in a GetMap request contains a SRS that is valid for some, but not all of the layers being requested, then the server shall throw a Service Exception (code = "InvalidSRS"). Before this fix, mapserver use to reproject the layers to the requested SRS. - Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE tables - Fixed bug 823 : adding a validation of the SRS parameter when doing a GetMap request on a wms server. Here is the OGC statement : 'When the SRS parameter in a GetMap request contains a SRS that is valid for some, but not all of the layers being requested, then the server shall throw a Service Exception (code = "InvalidSRS").' - Set the background color of polygons or circles when using transparent PIXMAP symbol. - SWIG mapscript class extensions are completely moved from mapscript.i into separate interface files under mapscript/swiginc. - Overhaul of mapscript unit testing framework with a comprehensive test runner mapscript/python/tests/runtests.py. - Modified the MS_VALID_EXTENT macro to take an extent as its argument instead of the quartet of members. MapServer now checks that extents input through the mapfile are valid in mapfile.c (web, map, reference, and layer). Modified msMapSetExtent in mapobject.c to use the new macro instead of its home-grown version. Modified all cases that used MS_VALID_EXTENT to the new use case. - Layers now accept an EXTENT through the mapfile (bug 786). Nothing is done with it at this point, and getExtent still queries the datasource rather than getting information from the mapfile-specified extent. - Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a problem with msProjectRect and zero-size search rectangles (bug 794) - MapServer version now output to mapscriptvars and read by Perl Makefile.PL and Python setup.py (bug 795). - Map.web, layer, and class metadata are exposed in SWIG mapscript as first-class objects (bug 737). - Add support for spatial filters in the SLD (Bug 782) - A few fixes to allow php_mapscript to work with both PHP4 and PHP5. PHP5 support should still be considered experimental. (bug 718) - Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). The code now autosenses the unique row id column. - Enhanced SDE support to include support for queries against user-specified versions. The version name can be specified as the last parameter of the CONNECTION string. - Fixed automated generation of onlineresource in OWS GetCapabilities when the xxx_onlineresource metadata is not specified: the map= parameter used to be omitted and is now included in the default onlineresource if it was explicitly set in QUERY_STRING (bug 643) - Fixed possible crash when producing WMS errors INIMAGE (bug 644) - Fixed automated generation of onlineresource in OWS GetCapabilities when the xxx_onlineresource metadata is not specified: the map= parameter used to be omitted and is now included in the default onlineresource if it was explicitly set in QUERY_STRING (bug 643) - Fixed an issue with annotation label overlap. There was an issue with the way msRectToPolygon was computing it's bounding box. (bug 618) - Removed "xbasewohoo" debug output when using JOINs and fixed a few error messages related to MySQL joins (bug 652) - Fixed "raster cracking" problem (bug 493) - Improvements to Makefile.vc, and nmake.opt so that a mapscriptvars file can be produced on windows. - Updated setup.py so Python MapScript builds on win32. - Added preliminary raster query support. - No more Python-stopping but otherwise benign errors raised from msDrawWMSLayer() (bug 650). - Finished prototyping all MapServer functions used by SWIG-Mapscript and added 'void' to prototypes of no-arg functions, eliminating all but two SWIG-Mapscript build warnings (bug 658). - Mapscript: resolved issue with pens and dynamic drawing of points (bug 663). - Mapscript: fixes to tests of shape copying and new image symbols. - Mapscript: new OWSRequest class based on cgiRequestObj structure in cgiutil.h is a first step to allow programming with MapServer's OWS dispatching (bug 670). - Mapscript: styles member of classObj structure is no longer exposed to SWIG (bug 611). - Implementation geotransform/rotation support in cgi core, and mapscript.i. - Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). Added an embedded scalebar which demonstrates that bug 519 is fixed. The test data package is also made more complete by including two fonts from Bitstream's open Vera fonts (bug 694). - Mapscript (SWIG): remove promote and demote methods from layerObj. Use of container's moveLayerUp/moveLayerDown is better, and this brings the module nearer to PHP-Mapscript (bug 692). - mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. - mapraster.c: fixed tile index corruption problem (bug 698) - Mladen Turk's map copying macros in mapcopy.h clean up map cloning and allow for copying of fontset and symbolset. Added cloning tests in python/tests/testCloneMap.py and refactored testing suite (bugs 640 & 701). - Mapscript: removing obsolete python/setup_wnone.py file. - CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for WMS). Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to allow non-square pixels. - When using the text/html mime type in a GetFeature request, if the layer's template is not set to a valid file, errors occur. Correction is : the text/html is not advertized by default and will only be advertized if the user has defined "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) - Make PHP MapScript's layer->open() produce a PHP Warning instead of a Fatal error (bug 742) - MapServer hash tables are now a structure containing a items pointer to hashObj. See maphash.h for new prototypes of hash table functions. In SWIG mapscript, Map, Layer, and Class metadata are now instances of the new hashTableObj class. fontset.fonts and Map.configoptions are also instances of hashTableObj. The older getMetaData/setMetaData and metadata iterator methods can be deprecated (bug 737). - Mapscript-SWIG: made the arguments of mapObj and layerObj constructors optional. A layerObj can now exist outside of a map and can be added to a mapObj using the insertLayer method. mapObj.removeLayer now returns a copy of the removed Layer rather than an integer (bug 759). - Fixed $map->processTemplate() which was always returning NULL. Bug introduced in version 4.0 in all flavours of MapScript (bug 410) From cclements at WESTERNFOREST.COM Mon Oct 25 16:08:25 2004 From: cclements at WESTERNFOREST.COM (Chris Clements) Date: Mon, 25 Oct 2004 18:08:25 -0500 Subject: Labels on multiple lines Message-ID: Hi All, I am very new to MapServer and am having some trouble with labels, I am using version 4.2.3 to display shapefiles and would like to label some polygons using multiple fields and also place the labels from the different fields on multiple lines (stack it essentially) Labelling is not a problems using: TEXT ([BLOCK] [STATUS] [YEAR]) in a class. This will display a label with all 3 items on one line. i.e. 512A P 2004 Is there a way to have the label displayed on three lines? Thanks for any help, Chris From akrherz at IASTATE.EDU Mon Oct 25 16:27:51 2004 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Mon, 25 Oct 2004 18:27:51 -0500 Subject: Labels on multiple lines In-Reply-To: Message-ID: On Mon, 25 Oct 2004, Chris Clements wrote: >Hi All, > >I am very new to MapServer and am having some trouble with labels, I am >using version 4.2.3 to display shapefiles and would like to label some >polygons using multiple fields and also place the labels from the different >fields on multiple lines (stack it essentially) > >Labelling is not a problems using: > >TEXT ([BLOCK] [STATUS] [YEAR]) in a class. This will display a label with >all 3 items on one line. i.e. 512A P 2004 >Is there a way to have the label displayed on three lines? Welcome to Mapserver! I believe you are looking for the 'WRAP' keyword So in your case TEXT ([BLOCK] [STATUS] [YEAR]) WRAP " " check out the mapserver docs for more information: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html HTH, daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From CClements at WESTERNFOREST.COM Mon Oct 25 17:08:14 2004 From: CClements at WESTERNFOREST.COM (Chris Clements) Date: Mon, 25 Oct 2004 17:08:14 -0700 Subject: Labels on multiple lines Message-ID: That works perfectly, thank you very much. Chris -----Original Message----- From: Daryl Herzmann [mailto:akrherz at iastate.edu] Sent: Monday, October 25, 2004 4:28 PM To: Chris Clements Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Labels on multiple lines On Mon, 25 Oct 2004, Chris Clements wrote: >Hi All, > >I am very new to MapServer and am having some trouble with labels, I am >using version 4.2.3 to display shapefiles and would like to label some >polygons using multiple fields and also place the labels from the different >fields on multiple lines (stack it essentially) > >Labelling is not a problems using: > >TEXT ([BLOCK] [STATUS] [YEAR]) in a class. This will display a label with >all 3 items on one line. i.e. 512A P 2004 >Is there a way to have the label displayed on three lines? Welcome to Mapserver! I believe you are looking for the 'WRAP' keyword So in your case TEXT ([BLOCK] [STATUS] [YEAR]) WRAP " " check out the mapserver docs for more information: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html HTH, daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From blaine_hack1 at YAHOO.COM Mon Oct 25 19:22:30 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Mon, 25 Oct 2004 19:22:30 -0700 Subject: Spatial Query on VirtualSpatial layer In-Reply-To: <4166FF18.2020301@pobox.com> Message-ID: Frank Sorry it took so long to reply. I get a day about every two weeks to work on this. I am using an X and Y field from an ODBC connection to show the VSD layer. I can see them but I have not successfully queried them. I have tried several different query types within the VSD. Here is my layer syntax: LAYER NAME "tracklayer" TYPE point CONNECTIONTYPE OGR CONNECTION "C:\data\virtual_minn.ovf" # the name and path to the virtual.ovf file, relative to shapepath may work? DATA "trackstuff" STATUS ON #LABELITEM "truck" LABELANGLEITEM "heading" LABELCACHE OFF FORCE ON PROJECTION proj=latlong END TOLERANCEUNITS feet TOLERANCE 300 CLASSITEM "speed1" CLASS TEMPLATE "query.html" EXPRESSION "55" TEXT "." LABEL COLOR 255 0 0 TYPE TRUETYPE FONT esriarrow SIZE 25 MINSIZE 20 MAXSIZE 30 END END CLASS EXPRESSION "44" TEXT "." LABEL COLOR 0 255 0 TYPE TRUETYPE FONT esriarrow SIZE 25 MINSIZE 20 MAXSIZE 30 END END END So, to click on them or draw a box around several points and have the info about the point returned to an html query template is all I am tying to do. Does that make sense? Blaine --- Frank Warmerdam wrote: > Blaine Hackett wrote: > > All > > > > Is there any way to do a spatial query on a > > VirtualSpatialData layer? > > > > I tried a general mapserver query like you use on > a > > shapefile and got this error. > > "mapserv(): Web application error. No way to > generate > > a valid map extent from selected shapes." > > > > This looks bad to me. Am I out of luck or just > doing > > it wrong? > > Blaine, > > As long as you have spatial information available on > the virtual > layer (for instance by picking x and y columns from > the original table) > you should be able to do spatial queries against the > virtual layer. > > Tracking through the code it looks like you might > get this error if > you did a query and got no results back. Is that > possible? Or, if you > query results had no spatial information. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From jacob.delfos at MAUNSELL.COM Mon Oct 25 21:34:09 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Tue, 26 Oct 2004 12:34:09 +0800 Subject: php mapscript: iterate through all objects in a layer Message-ID: Hi All, I'm working on a searchtool that, among other things, goes through the attributes, and zooms to the selected object using javascript. To do this, I iterate through all the objects, up to the object count. I got the whole thing pretty much working, except that currently I find the number of objects in a layer by creating a shapefileObj object, and getting the "numshapes" variable. I guess this is not too clean, because there could be other types of layers. What is the most ideal way to iterate through all objects in a layer? Is it possible to find the total number of objects from a layer object, without having to create a shapefile object? regards, Jacob JACOB DELFOS SPATIAL INFORMATION 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From janeks.kamerovskis at SILVA.LV Tue Oct 26 00:11:47 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Tue, 26 Oct 2004 10:11:47 +0300 Subject: Help: Setting Virtual Spatial data Message-ID: Hi, All! I tried to set up Virtual spatial data layer using ODBC: I made virtual data file: virt.ovf And tested it with ogrinfo.exe: That says: INFO: Open of `e:\MapServer\MapDefs\virt.ovf' using driver `VRT' successful. I put virtual layer in map file. But server responds: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'mylayer'. in E:\webFolders\ipasumi\test2.php on line 57 Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection `E:\MapServer\mapDefs\virt.ovf'. File not found or unsupported format. in E:\webFolders\ipasumi\test2.php on line 57 What could be wrong? virt.ovf ODBC:MyTest,kraut1/SrcDataSource> kraut1 wkbPoint WGS84 Layer in map file: LAYER NAME "mylayer" TYPE POINT CONNECTIONTYPE OGR CONNECTION "E:\MapServer\mapDefs\virt.ovf" # the name and path to the virtual.ovf file, relative to shapepath may work? DATA "kraut1" # the name of the OGRVrtLayer STATUS ON # LABELITEM kraut1 #may need to use table.name or just name depending on your OVF file. # PROJECTION # "init=epsg:4326" # END CLASS SYMBOL 1 SIZE 6 COLOR 255 0 0 LABEL SIZE MEDIUM TYPE BITMAP COLOR 0 0 0 END END END brgds Janeks Kamerovskis From astrid.emde at CCGIS.DE Tue Oct 26 02:44:30 2004 From: astrid.emde at CCGIS.DE (Astrid Emde) Date: Tue, 26 Oct 2004 11:44:30 +0200 Subject: getLegendGraphic - GD Library Error Message-ID: Hello, wenn I send my getLegendGraphic-Request I get the following error: msDrawLegend(): GD library error. Unable to initialize image. msImageCreateGD(): Image handling error. Cannot create GD image of size 60 x 0. Does anyone know, what can be wrong? How can I solve the problem? --------------- that's how the request looks like: http://192.168.2.78/cgi-bin/mapserv?map=/data/map/test.map&request=getLegendGraphic&VERSION=1.1.1&LAYER=poi&FORMAT=text/html --------------- That's how the Mapfile looks like: # Start of legend # LEGEND STATUS ON KEYSIZE 40 20 KEYSPACING 10 10 IMAGECOLOR 128 128 128 #OUTLINECOLOR 0 0 0 LABEL COLOR 120 120 120 TYPE TRUETYPE FONT "arial" SIZE 12 END # END LABEL END #LEGEND ..... LAYER NAME 'poi' STATUS ON CONNECTIONTYPE postgis CONNECTION 'user=pgsql dbname=test host=localhost' DATA "the_geom from poi" TYPE POINT PROJECTION 'init=epsg:31494' END METADATA 'WMS_SRS' 'epsg:31494' 'WMS_TITLE' 'test' 'WMS_FEATURE_INFO_MIME_TYPE' 'text/html' END CLASSITEM "symbol" CLASS NAME "Geldautomat" EXPRESSION /./ MINSCALE 0 MAXSCALE 1000 STYLE SYMBOL "geldautomat_50" SIZE 10 END END END ..... Thanx Astrid Emde From sudip_mca at SIFY.COM Tue Oct 26 03:49:48 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Tue, 26 Oct 2004 15:49:48 +0500 Subject: distance Message-ID: hello, i am working upon a Gis project using PHP-mapscript 4.3.4and mapserver 4.0.1 in windows environment. My task is tocalculate the distance between two point objects of the map.For that i amtrying to use distanceToSegment function.But while using this i onlyfaced the error message \"call to undefined function \". Is there is anything else of solving this problem ? Any suggesation or code in solving this will be greatfuly accepted. Thanking you ........Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From querada499 at HOTMAIL.COM Tue Oct 26 05:26:59 2004 From: querada499 at HOTMAIL.COM (Robin Robin) Date: Tue, 26 Oct 2004 12:26:59 +0000 Subject: MAPSERVER-USERS Digest - 24 Oct 2004 to 25 Oct 2004 (#2004-93) Message-ID: Not sure how you want them to work but mine turn layers on and off. here is a section of my legend template: [leg_layer_html order=ascending opt_flag=15] [/leg_layer_html] The if block checks on a refresh if a layer is on or not and puts a check in the box accordingly. To turn layers on and off you check the boxes you want then refresh the map. Hope that helps. Robin >Date: Mon, 25 Oct 2004 08:49:43 -0500 >From: Blammo >Subject: Re: legends > >I've got the legend displaying for the most part correctly, but Danged >if I can get the checkboxes to work the way I expect them to. > >bobb > >Robin Robin wrote: > > > Hi, don't know if you got an answer yet on your legend question. > > > > here are some examples: > > http://www.maptools.org/twiki/bin/view/Oldwikitmp/HTMLLegendExample > > http://mapserver.gis.umn.edu/doc40/html-legend-howto.html > > > > The main thing to get layer names is to have the [leg_layer_html] > > [/leg_layer_html] tags. > > > > Hope that helps! > > > > -robin > > _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ From sobomsawin at KASSINI.COM Tue Oct 26 06:00:04 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Tue, 26 Oct 2004 09:00:04 -0400 Subject: [UMN_MAPSERVER-USERS] Querying / Selecting Lines In-Reply-To: <200410251402.02577.vaiod@berloy.com> Message-ID: Have you tried the nquery mode with Mapserver? I use CGI Mapserver and PostGIS data and the nquery mode works fine with a TOLERANCE of 3 pixels in the mapfile... Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Eric Katherman Envoy??: 25 octobre 2004 17:02 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Querying / Selecting Lines What would some of you recommend for selecting or querying lines that I have stored in PostgreSQL? I can come up with some creative "point to point guessing" solutions for horizontal and vertical lines but the difficulty comes with angled lines. The tolerance becomes an issue too because the users rarely would actually select the exact point between two line points. E.g. myline = ----- user selected point = * line point = O (100 200) O----------------------*-------------O (200 200) Are there some functions built into PostGIS/PostgreSQL? Eric --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.779 / Virus Database: 526 - Release Date: 2004-10-19 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.779 / Virus Database: 526 - Release Date: 2004-10-19 From nicolas.fortin at EC.GC.CA Tue Oct 26 06:15:57 2004 From: nicolas.fortin at EC.GC.CA (Nicolas Fortin) Date: Tue, 26 Oct 2004 08:15:57 -0500 Subject: Unable to post with outlook... Message-ID: I'm back to mapserver dev and I now remember that I couldn't post to the list with outlook...I got this msg back: Certains des destinataires ou tous les destinataires n'ont pas re?u votre message. Objet : RE : [UMN_MAPSERVER-USERS] query on oraclespatial using OGR/OCI Date : 10/26/2004 9:09 AM Impossible de contacter le(s) destinataire(s) suivant(s) : MAPSERVER-USERS at LISTS.UMN.EDU le 10/26/2004 9:10 AM Vous n'?tes pas autoris? ? envoyer de message ? ce destinataire. Pour obtenir une assistance, contactez votre administrateur syst?me. ... Rejected by user; see: > So I can post from directly from the listserv web site but I can't reply to any post... Please help! Nicolas From jmckenna at DMSOLUTIONS.CA Tue Oct 26 07:13:41 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 26 Oct 2004 10:13:41 -0400 Subject: Arcview view to mapfile extension In-Reply-To: <20041025135243.16670.qmail@web12207.mail.yahoo.com> Message-ID: Hello Eduin, Any idea on a timeline for the release of the ArcGIS version of Gix? thanks. jeff > > Yes. Gix works under ArcView 3.x only. ArcGis version is under development. Not > public available right now. > > Eduin > > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From sbeorchia at GI-LEMANS.COM Tue Oct 26 07:11:48 2004 From: sbeorchia at GI-LEMANS.COM (Sylvain Beorchia) Date: Tue, 26 Oct 2004 16:11:48 +0200 Subject: Label Join Message-ID: Hi list, Is there any way to make a JOIN between 2 DBF for labelling ? I read somewhere that it was impoosible, but that was 2 years ago..so what about now ? Thanks. Sylvain. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbeorchia at GI-LEMANS.COM Tue Oct 26 07:27:28 2004 From: sbeorchia at GI-LEMANS.COM (Sylvain Beorchia) Date: Tue, 26 Oct 2004 16:27:28 +0200 Subject: antialias Message-ID: Hi list, I'm looking for using the ANTIALIAS parameter. I use it in the MAPFILE, everything's ok, but i don't see any differences in the result. Here is my mapfile: ... LAYER NAME TRONCONS METADATA "DESCRIPTION" "TRONCONS" "RESULT_FIELDS" "OBJECTID" "LEGENDE" "1" "LEGENDE_COLOR" "0000FF" "TYPE_LAYER" "SHP" "MAJ" "LINE" END TYPE LINE STATUS ON DATA "c:\\epcenter\\data\\sieen\\TRONCONS" CLASS TEMPLATE "obj_del.html" NAME "TRONCONS" SYMBOL 0 SIZE 8 COLOR 87 164 251 MINSCALE 1 MAXSCALE 3000 STYLE ANTIALIAS TRUE END END END ... Thanks. Sylvain. -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Tue Oct 26 07:40:20 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 26 Oct 2004 10:40:20 -0400 Subject: Spatial Query on VirtualSpatial layer In-Reply-To: <20041026022230.73479.qmail@web41129.mail.yahoo.com> Message-ID: Blaine Hackett wrote: > I am using an X and Y field from an ODBC connection to > show the VSD layer. I can see them but I have not > successfully queried them. I have tried several > different query types within the VSD. ... > So, to click on them or draw a box around several > points and have the info about the point returned to > an html query template is all I am tying to do. > > Does that make sense? Blaine, As far as I can tell your approach is reasonable, but then I didn't see query template. I don't actually use queries very often but as far as I know they should work the same for VRT/ODBC layers as they do for other OGR layers. You may need to be careful about uppercase/lower case for attribute names. Verify the attributes returned by ogrinfo.exe against your .vrt file against the names for the attributes in your query template. Sorry I don't have more constructive suggestions. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From assefa at DMSOLUTIONS.CA Tue Oct 26 07:46:42 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 26 Oct 2004 10:46:42 -0400 Subject: SLD WellKnownName PointSymbolizer In-Reply-To: <8AE17DD6AA4FD51191CD0002A551168101B8982A@s5-van1-r1.ess.nrcan.gc.ca> Message-ID: Sorry for a late answer on this. From what I understand in the specs is that beside the WellKnowName symbols, you have the possiblity to use an external graphic symbol using an URL to point to a symbol (GIF, SVG ...any MIME type supported). I don't think there are other mecanism (or mybe I missed it). Mapserver supports external symbols as GIF and PNGs but not any vector symboloy like svg. Not sure how we can accomodate mapsever symbology unless we do specific support in the sld to be able to read mapserver symbol file (something like this) : reading symbol 4 in the symbol file : mapserer_sym But this is really out of the specs. Any other suggestions ? Later, Van Ulden, Joost wrote: > Hi all, > > I understand that MapServer supports the minimum required WellKnownName > (square, circle, triangle, cross, x) Marks in SLD. The question is (since > the spec indicates that it's possible) how does one extend/add new symbols. > As mapserver seems to write the symbols in the mapfile anyway I was > wondering if there was a way that I could add my own. We would prefer to > use vector symbology for obvious reasons. Any suggestions would be helpful. > > Thanks in advance, > > ============================================ > Joost van Ulden > Programmer/Analyst > Natural Resources Canada / Ressources naturelles Canada > Geological Survey of Canada / Commission geologique du Canada > 101 - 605 Robson Street / 101 - 605 rue Robson > Vancouver, B.C. / Vancouver (C.B.) > V6B 5J3 > Office/Bureau: 604.666.7525 > fax/telecopieur: 604.666.1124 > jvanulde at nrcan.gc.ca > ============================================ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From superbla3000 at GMX.NET Tue Oct 26 07:50:06 2004 From: superbla3000 at GMX.NET (joerg p) Date: Tue, 26 Oct 2004 16:50:06 +0200 Subject: build shape file Message-ID: hello, I would like to build a shapefile out of my garmin tracks. Is there a tool? Thanks Joerg From norbert.thieme at ILMENAU.BAW.DE Tue Oct 26 08:10:06 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Tue, 26 Oct 2004 17:10:06 +0200 Subject: Can anyone check WMS getCapabilities with SDE datasource? Message-ID: Hello, I'm using some WMS layers with SDE (8.2) as datasources. In the older version of Mapserver (4.2) I had problems with getting the WMS capabilities when I use VERSION=1.1.1 statement. There the output was truncated. With VERSION=1.1.0 it worked. GetMap worked with both versions. This problem should be solved with the new SDE connection pooling so I compiled Mapserver version 4.4.0 beta1 but now both (VERSION=1.1.0 and 1.1.1) capabilities are truncated. Now I'm a little bit insecure if this is a problem for others too or if this is only my problem. Before I continue to make another bug entry it would be nice to have some feedback. If someone can check and report the result it would be helpful for me. Thanks in advance, Norbert From siki at AGT.BME.HU Tue Oct 26 12:21:51 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 26 Oct 2004 18:21:51 -0100 Subject: Label Join {Scanned} In-Reply-To: <001601c4bb65$bb504ef0$8469850a@GILEMANS> Message-ID: Hi, You can join a dbf file to shape (which has a dbf too). But I've used it in queries. You must define a JOIN block in the layer definition. LAYER NAME base DATA ... # use your data instead of ... TYPE ... CLASS TEMPLATE ... END HEADER ... FOOTER ... JOIN # one-to-one join NAME joined TABLE the_name_of_dbf FROM join_column_in_base TO join_column_in_joined END END After it you can refer to the joined columns joined_columnName. It works me in the query template. Bye Zoltan On Tue, 26 Oct 2004, Sylvain Beorchia wrote: > Hi list, > > Is there any way to make a JOIN between 2 DBF for labelling ? > I read somewhere that it was impoosible, but that was 2 years ago..so what about now ? > > Thanks. > > Sylvain. From siki at AGT.BME.HU Tue Oct 26 12:28:19 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 26 Oct 2004 18:28:19 -0100 Subject: multiple join {Scanned} In-Reply-To: Message-ID: On Sun, 24 Oct 2004, Richard Greenwood wrote: > On Sun, 24 Oct 2004 19:20:49 -0100, Siki Zoltan wrote: > > Hi List, > > > > I try to use multiple join between a shape file and a dbf. > > I was able to join one-to-one (single), but after changing it to > > multiple join, no errors, no result. > > > > part of my map file > > # parcels > > LAYER > > NAME "kafold" > > DATA "alapterkep/kafold.shp" > > STATUS ON > > GROUP "telkek" > > TYPE POLYGON > > CLASS > > COLOR -1 -1 -1 > > OUTLINECOLOR 0 0 0 > > TEMPLATE "telek_cim.html" > > END > > HEADER "telek_cim_header.html" > > FOOTER "telek_cim_footer.html" > > > > JOIN > > NAME cim > > TABLE "cimek/ujcimek1.shp" > > FROM HRSZ > > TO HRSZ > > TYPE multiple > > TEMPLATE "cim_template.html" > > END > > END > > > > and the template for join > >

> > Address: [cim_CIM]
> >

> > > > No part of the template for multiple join displayed. > > > > If I remove the TYPE and TEMPLATE rows from the map file it works, of > > course I add the cim_CIM column to the other template. > > > > MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 > > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > I've tried with 4.0, the result is the same. > > Any suggestion? > > > > Thanx > > Zoltan > > > > > Try: > TYPE one-to-many > instead of "multiple" > It doesn't help. Where should the join template inserted to? Before FOOTER, after Header? Any other idea? Thanx Zoltan From hobu at IASTATE.EDU Tue Oct 26 09:35:01 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Tue, 26 Oct 2004 11:35:01 -0500 Subject: Can anyone check WMS getCapabilities with SDE datasource? In-Reply-To: Message-ID: Norbert, I was able to confirm the same problem on my end and have committed a patch to CVS that appears to fix it. Again, the problem was related to a layer variable that was uninitialized and was attempting to be freed. Beta2 will have this patch if you can't try CVS for some reason. Howard At 10:10 AM 10/26/2004, Norbert Thieme wrote: >Hello, > >I'm using some WMS layers with SDE (8.2) as datasources. In the older >version of Mapserver (4.2) I had problems with getting the WMS >capabilities when I use VERSION=1.1.1 statement. There the output was >truncated. With VERSION=1.1.0 it worked. GetMap worked with both >versions. This problem should be solved with the new SDE connection >pooling so I compiled Mapserver version 4.4.0 beta1 but now both >(VERSION=1.1.0 and 1.1.1) capabilities are truncated. > >Now I'm a little bit insecure if this is a problem for others too or if >this is only my problem. Before I continue to make another bug entry it >would be nice to have some feedback. If someone can check and report the >result it would be helpful for me. > >Thanks in advance, >Norbert From pcreso at PCRESO.COM Tue Oct 26 12:56:15 2004 From: pcreso at PCRESO.COM (Brent Wood) Date: Tue, 26 Oct 2004 12:56:15 -0700 Subject: learner driver problem (with mapfile?) In-Reply-To: <6.1.2.0.2.20041026110450.01dd6838@hobu.mail.iastate.edu> Message-ID: Hi, I'm trying to learn how to drive mapserver, working through the tutorial, and trying to apply it to some of my data. I have a mapfile created by qgis, with a couple of edits (included below) I tried to point my browser directly at the map, with: http://localhost/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver_demos/wgtn.map&mode=map My browser says I'm seeing a 600x600 jpeg (or png, as appropriate) but the image is completely blank, so I figure mapserver is drawing a blank image. Could someone explain what I've done wrong? Thanks, Brent Wood Mapfile text below: # Map file generated by QGIS version 0.4.0 # Edit this file to customize for your interface # Not all sections are complete. See comments for details. NAME wgtn STATUS ON # Map image size. Change size as desired SIZE 600 600 # # Start of web interface definition. Only the TEMPLATE parameter # must be specified to display a map. See Mapserver documentation # WEB # HEADER # TEMPLATE # FOOTER # MINSCALE # MAXSCALE END # Extent based on full extent of QGIS view EXTENT 174.606 -41.4479 175.106 -40.9882 UNITS dd IMAGECOLOR 255 255 255 IMAGETYPE jpeg # Projection definition # Projections are not currenlty supported. If desired, add your own # projection information based on Mapserver documentation. # LAYER NAME coastline_ll TYPE LINE STATUS ON DATA /raid0/corax/wellington/hydrology/coastline_ll.shp CLASS NAME "Coastline_ll" # TEMPLATE OUTLINECOLOR 0 0 0 END END LAYER NAME river_bdy_ll TYPE LINE STATUS ON DATA /raid0/corax/wellington/hydrology/river_bdy_ll.shp CLASS NAME "River_bdy_ll" # TEMPLATE OUTLINECOLOR 0 0 0 END END LAYER NAME river_cl_ll TYPE LINE STATUS ON DATA /raid0/corax/wellington/hydrology/river_cl_ll.shp CLASS NAME "River_cl_ll" # TEMPLATE OUTLINECOLOR 0 0 0 END END LAYER NAME lake_poly_ll TYPE POLYGON STATUS ON DATA /raid0/corax/wellington/hydrology/lake_poly_ll.shp CLASS NAME "Lake_poly_ll" # TEMPLATE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END LAYER NAME swamp_poly_ll TYPE POLYGON STATUS ON DATA /raid0/corax/wellington/hydrology/swamp_poly_ll.shp CLASS NAME "Swamp_poly_ll" # TEMPLATE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END END LAYER NAME road_cl_ll TYPE LINE STATUS ON DATA /raid0/corax/wellington/transport/road_cl_ll.shp CLASS NAME "Road_cl_ll" # TEMPLATE OUTLINECOLOR 0 0 0 END END END # Map File From ARyan at CO.LINN.OR.US Tue Oct 26 13:20:24 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 26 Oct 2004 13:20:24 -0700 Subject: learner driver problem (with mapfile?) Message-ID: > -----Original Message----- > From: Brent Wood [mailto:pcreso at PCRESO.COM] > Sent: Tuesday, October 26, 2004 12:56 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] learner driver problem (with mapfile?) > > > Hi, > > I'm trying to learn how to drive mapserver, working through > the tutorial, and trying to apply it to some of my data. > > I have a mapfile created by qgis, with a couple of edits > (included below) > > I tried to point my browser directly at the map, with: > http://localhost/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver > _demos/wgtn.map&mode=map > > My browser says I'm seeing a 600x600 jpeg (or png, as > appropriate) but the image is completely blank, so I figure > mapserver is drawing a blank image. > > Could someone explain what I've done wrong? > > > Thanks, > > Brent Wood > > Mapfile text below: > > # Map file generated by QGIS version 0.4.0 > # Edit this file to customize for your interface > # Not all sections are complete. See comments for details. > NAME wgtn > STATUS ON > # Map image size. Change size as desired > SIZE 600 600 > # > # Start of web interface definition. Only the TEMPLATE > parameter # must be specified to display a map. See Mapserver > documentation # WEB > # HEADER > # TEMPLATE > # FOOTER > # MINSCALE > # MAXSCALE > END > # Extent based on full extent of QGIS view > EXTENT 174.606 -41.4479 175.106 -40.9882 > UNITS dd > IMAGECOLOR 255 255 255 > IMAGETYPE jpeg > # Projection definition > # Projections are not currenlty supported. If desired, add > your own # projection information based on Mapserver > documentation. # LAYER > NAME coastline_ll > TYPE LINE > STATUS ON > DATA /raid0/corax/wellington/hydrology/coastline_ll.shp > CLASS > NAME "Coastline_ll" > # TEMPLATE > OUTLINECOLOR 0 0 0 > END > END > LAYER > NAME river_bdy_ll > TYPE LINE > STATUS ON > DATA /raid0/corax/wellington/hydrology/river_bdy_ll.shp > CLASS > NAME "River_bdy_ll" > # TEMPLATE > OUTLINECOLOR 0 0 0 > END > END > LAYER > NAME river_cl_ll > TYPE LINE > STATUS ON > DATA /raid0/corax/wellington/hydrology/river_cl_ll.shp > CLASS > NAME "River_cl_ll" > # TEMPLATE > OUTLINECOLOR 0 0 0 > END > END > LAYER > NAME lake_poly_ll > TYPE POLYGON > STATUS ON > DATA /raid0/corax/wellington/hydrology/lake_poly_ll.shp > CLASS > NAME "Lake_poly_ll" > # TEMPLATE > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > LAYER > NAME swamp_poly_ll > TYPE POLYGON > STATUS ON > DATA /raid0/corax/wellington/hydrology/swamp_poly_ll.shp > CLASS > NAME "Swamp_poly_ll" > # TEMPLATE > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > END > LAYER > NAME road_cl_ll > TYPE LINE > STATUS ON > DATA /raid0/corax/wellington/transport/road_cl_ll.shp > CLASS > NAME "Road_cl_ll" > # TEMPLATE > OUTLINECOLOR 0 0 0 > END > END > END # Map File > Brent, Since you're not sending a [layers] parameter, try setting [status] to default. Adam From warmerdam at POBOX.COM Tue Oct 26 13:42:40 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 26 Oct 2004 16:42:40 -0400 Subject: learner driver problem (with mapfile?) In-Reply-To: <20041026195615.72527.qmail@web12209.mail.yahoo.com> Message-ID: Brent Wood wrote: > Hi, > > I'm trying to learn how to drive mapserver, working through the tutorial, and > trying to apply it to some of my data. > > I have a mapfile created by qgis, with a couple of edits (included below) > > I tried to point my browser directly at the map, with: > http://localhost/cgi-bin/mapserv?map=/srv/www/htdocs/mapserver_demos/wgtn.map&mode=map > > My browser says I'm seeing a 600x600 jpeg (or png, as appropriate) but the > image is completely blank, so I figure mapserver is drawing a blank image. > > Could someone explain what I've done wrong? > STATUS ON Brent, It may not be your only issue, but one problem is that the URL is supposed to list the layers you want turned on. Putting STATUS ON in a mapserver layer definition really means it can be turned on by the end-user if requested. A shortcut for now is to set the status to DEFAULT. Note there may be other stuff you are missing, I'm not to sure. I normally have an "init page" that sets up a few hidden variables for context. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From leo at ENNEAD.COM Tue Oct 26 12:49:41 2004 From: leo at ENNEAD.COM (Leo Dolan) Date: Tue, 26 Oct 2004 15:49:41 -0400 Subject: Can't figure ItemQuery Out Message-ID: I've been working on this all day and can't seem to figure it out. I'm on Mapserver v 4.2 on Windows. Here is the Mapfile: MAP NAME "CRA 2000" STATUS ON SIZE 600 420 IMAGECOLOR 230 230 230 IMAGETYPE PNG24 EXTENT 1518976.125000 454307.531250 1565951.625000 426016.062500 SHAPEPATH "shapefiles/parcels2000" WEB TEMPLATE "printable.html" IMAGEPATH "tmp/" # full path to image tmp dir, so cgi can find it IMAGEURL "tmp/" # url location of image tmp dir, so web browser can find it END # Web Interface Options QUERYMAP STATUS ON STYLE SELECTED COLOR 255 255 0 END ############################# # Start of layer definitions #---------------------------------------------------------------------- LAYER # start of the "main" layer object NAME "2000_Bay_County" DATA parcels2000 STATUS ON TYPE POLYGON TEMPLATE "parcels2000_query.html" HEADER "parcels2000_header.html" FOOTER "parcels2000_footer.html" CLASS NAME "Bay County 2000 Parcels" OUTLINECOLOR 0 204 0 END END # end of layer object #---------------------------------------------------------------------- END # Map File And here is the form that submits a test query:
Anytime I submit this, however, I get the following message: msQueryByAttributes(): Search returned no results. No matching record(s) found. I've tried multiple variations, such as type in the parameters into the URL, eliminating the qitem value and passing qstring as ('[A1RENUM]'='33768-000-000'), etc. I know that there is a value in the parameters table for '33768-000-000', and I've tried other values for it, and other fields to try and query against with no succes. If somebody knows what I'm doing wrong, I would appreciate being pointed in the right direction. Thanks in advance! Sincerely, Leo T. Dolan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ARyan at CO.LINN.OR.US Tue Oct 26 14:21:30 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 26 Oct 2004 14:21:30 -0700 Subject: Can't figure ItemQuery Out Message-ID: Leo, On a lark, try it as a regular expression: ('[A1RENUM]' =~ /^33768-000-000$/) Adam -----Original Message----- From: Leo Dolan [mailto:leo at ENNEAD.COM] Sent: Tuesday, October 26, 2004 12:50 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Can't figure ItemQuery Out I've been working on this all day and can't seem to figure it out. I'm on Mapserver v 4.2 on Windows. Here is the Mapfile: MAP NAME "CRA 2000" STATUS ON SIZE 600 420 IMAGECOLOR 230 230 230 IMAGETYPE PNG24 EXTENT 1518976.125000 454307.531250 1565951.625000 426016.062500 SHAPEPATH "shapefiles/parcels2000" WEB TEMPLATE "printable.html" IMAGEPATH "tmp/" # full path to image tmp dir, so cgi can find it IMAGEURL "tmp/" # url location of image tmp dir, so web browser can find it END # Web Interface Options QUERYMAP STATUS ON STYLE SELECTED COLOR 255 255 0 END ############################# # Start of layer definitions #---------------------------------------------------------------------- LAYER # start of the "main" layer object NAME "2000_Bay_County" DATA parcels2000 STATUS ON TYPE POLYGON TEMPLATE "parcels2000_query.html" HEADER "parcels2000_header.html" FOOTER "parcels2000_footer.html" CLASS NAME "Bay County 2000 Parcels" OUTLINECOLOR 0 204 0 END END # end of layer object #---------------------------------------------------------------------- END # Map File And here is the form that submits a test query:
Anytime I submit this, however, I get the following message: msQueryByAttributes(): Search returned no results. No matching record(s) found. I've tried multiple variations, such as type in the parameters into the URL, eliminating the qitem value and passing qstring as ('[A1RENUM]'='33768-000-000'), etc. I know that there is a value in the parameters table for '33768-000-000', and I've tried other values for it, and other fields to try and query against with no succes. If somebody knows what I'm doing wrong, I would appreciate being pointed in the right direction. Thanks in advance! Sincerely, Leo T. Dolan From pcreso at PCRESO.COM Tue Oct 26 14:40:24 2004 From: pcreso at PCRESO.COM (Brent Wood) Date: Tue, 26 Oct 2004 14:40:24 -0700 Subject: learner driver problem (with mapfile?) In-Reply-To: <417EB6C0.10801@pobox.com> Message-ID: - > > Could someone explain what I've done wrong? > > > STATUS ON > 'tis it! Displays nicely now... or at least as I expected it to :-) It would never have occurred to me that setting the status to "ON" meant it didn't get drawn :-) Thanks for the help, no doubt I'll be asking for more in the coming weeks :-) Brent From richard.greenwood at GMAIL.COM Tue Oct 26 18:47:01 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 26 Oct 2004 19:47:01 -0600 Subject: multiple join {Scanned} In-Reply-To: Message-ID: On Tue, 26 Oct 2004 18:28:19 -0100 (GMT+1), Siki Zoltan wrote: > > > > > On Sun, 24 Oct 2004, Richard Greenwood wrote: > > > On Sun, 24 Oct 2004 19:20:49 -0100, Siki Zoltan wrote: > > > Hi List, > > > > > > I try to use multiple join between a shape file and a dbf. > > > I was able to join one-to-one (single), but after changing it to > > > multiple join, no errors, no result. > > > > > > part of my map file > > > # parcels > > > LAYER > > > NAME "kafold" > > > DATA "alapterkep/kafold.shp" > > > STATUS ON > > > GROUP "telkek" > > > TYPE POLYGON > > > CLASS > > > COLOR -1 -1 -1 > > > OUTLINECOLOR 0 0 0 > > > TEMPLATE "telek_cim.html" > > > END > > > HEADER "telek_cim_header.html" > > > FOOTER "telek_cim_footer.html" > > > > > > JOIN > > > NAME cim > > > TABLE "cimek/ujcimek1.shp" > > > FROM HRSZ > > > TO HRSZ > > > TYPE multiple > > > TEMPLATE "cim_template.html" > > > END > > > END > > > > > > and the template for join > > >

> > > Address: [cim_CIM]
> > >

> > > > > > No part of the template for multiple join displayed. > > > > > > If I remove the TYPE and TEMPLATE rows from the map file it works, of > > > course I add the cim_CIM column to the other template. > > > > > > MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=EPPL7 > > > INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > > > I've tried with 4.0, the result is the same. > > > Any suggestion? > > > > > > Thanx > > > Zoltan > > > > > > > > > Try: > > TYPE one-to-many > > instead of "multiple" > > > It doesn't help. > Where should the join template inserted to? Before FOOTER, after Header? > Any other idea? > > Thanx > Zoltan Your JOIN definition looks good to me. I do not think it matters before or after HEADER or FOOTER. I think you should try a full path to the TABLE. You have: TABLE "cimek/ujcimek1.shp" But try a fully qualified path like: /var/www/mystuff /cimek/ujcimek1.shp Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Tue Oct 26 18:55:51 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 26 Oct 2004 19:55:51 -0600 Subject: Label Join In-Reply-To: <001601c4bb65$bb504ef0$8469850a@GILEMANS> Message-ID: On Tue, 26 Oct 2004 16:11:48 +0200, Sylvain Beorchia wrote: > > Hi list, > > Is there any way to make a JOIN between 2 DBF for labelling ? > I read somewhere that it was impoosible, but that was 2 years ago..so what > about now ? > > Thanks. > > Sylvain. No, not between two dbf files with the "standard" mapserver join mechanism. You certainly can with postgis (not dbf's) and I think you may be able to with OGR joins (with dbf's). Consult: http://gdal.maptools.org/ogr/ogr_sql.html for documentation on that. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From gis at UNDPHAIS.ORG.NP Tue Oct 26 21:01:25 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Wed, 27 Oct 2004 09:46:25 +0545 Subject: [UMN_MAPSERVER-USERS] zooming problem continues In-Reply-To: <41761EB8.3000401@deprem.gov.tr> Message-ID: On Wed, 20 Oct 2004 11:15:52 +0300, temiz wrote: > hello again > > I am sorry to extend the question. > > I think I can get pixel coord of the rectangle drawn with rubberband > (for example $zoom_rect gives [minx] => 171 [miny] => 223 [maxx] => 231 > [maxy] => 175). > > here is the current extent: > [minx] => 414562.225 [miny] => 4510820 [maxx] => 521317.775 [maxy] => > 4617510 > > $map->zoomrectangle($zoom_rect,$map->width,$map->height,$my_extent); > > this command doesn't bring about any change. I get same image. > > I hesitate on: > - $zoom_rect is in image(pixel) coord (or geographic coord). > > > What might be the problem ? > > regards > > > > Skweda O'Bomsawin wrote: > >> Temiz, Sorry I must have sent you the wrong javascript code. What you're doing appears fine to me ($zoom_rect is in pixels). Here is the (i hope) correct javascript: function startRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = 0; r.style.height = 0; r.style.pixelLeft = event.clientX - 2 ; r.style.pixelTop = event.clientY - 2 ; } else if (document.layers) { var r = document.rubberBand; r.clip.width = 0; r.clip.height = 0; r.left = evt.x - 2 + 'px'; r.top = evt.y - 2 + 'px'; document.captureEvents(Event.MOUSEMOVE); } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = 0; r.style.height = 0; r.style.left = evt.clientX - 2 + 'px'; r.style.top = evt.clientY - 2 + 'px'; } document.onmousemove = moveRubber; } function moveRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.visibility = 'visible'; r.style.width = event.clientX - r.style.pixelLeft -2 + 'px'; r.style.height = event.clientY - r.style.pixelTop -2 + 'px'; var f = document.forms['viewmap']; f.w.value = r.style.width; f.h.value = r.style.height; } else if (document.layers) { var r = document.rubberBand; r.visibility = 'show'; r.clip.width = evt.x - r.left - 2 + 'px'; r.clip.height = evt.y - r.top - 2 + 'px'; r.document.open(); r.document.write(' [if name=radio oper=eq value=1] [/if] [if name=check oper=eq value=1] [/if] [if name=wms_name oper=isset] [/if] [/if] [/leg_layer_html] [leg_class_html opt_flag=15] [if name=classes oper=eq value=1] [/if] [/leg_class_html] -------------- next part -------------- A non-text attachment was scrubbed... Name: mapfile.map Type: application/octet-stream Size: 6848 bytes Desc: not available URL: From pagameba at MAGMA.CA Thu Oct 28 17:16:28 2004 From: pagameba at MAGMA.CA (Paul Spencer) Date: Thu, 28 Oct 2004 20:16:28 -0400 Subject: Legend, Layers, and Scale In-Reply-To: <39f385010410281645bfcec44@mail.gmail.com> Message-ID: Jennifer ... answers inline ... Jennifer Zeisloft wrote: > Hello All... > > I am a very new user of MapServer, Chameleon, etc. and I have a few > questions I have not yet been able to answer with the documentation > and archives. I would really appreciate any help that you offer. > > First, I have a couple layers in my map that I do not want to show in > the legend, or that I would like in the legend, but without the option > to turn them off. I am using a legend template, a legend object in > the map file, and a chameleon template. I have been able to figure > out how to place permanent checks in the layer on/off checkbox (or get > rid of it entirely), how to get rid of the select layer radio buttons, > and how to delete layers from the legend without deleting them from > the map. However, as soon as the map refreshes, the layers not in the > legend or those without a layer on/off checkbox also disappear from > the map. If the layer on/off check is removed from a layer that I > wish to be on permanently and the map is refreshed, the check remains > in the box, but the layer still disappears. I've attached the legend > template and map file to this email. The chameleon template I am > using is essentially the "sample_enhanced" template that comes with > the tutorial (it doesn't seem to me that altering anything in this > would help with my legend problems). you can do this by outputting instead of the checkbox. PHP will add this layer's name to the array of layer names that it 'thinks' were checked in the interface and all will proceed according to plan, we hope :) > > Second, the names of the classes in my legend appear in a different > font and size than those of the layers. Adding classes also changes > the alignment of the layer names. I was able to change the font and > size of the class names, but not of the layer names. I also attempted > to change the alignment in Dreamweaver, but this didn't seem to > accomplish anything. I searched for a style sheet, but I have been > able to determine where the font and alignment are defined for the > various legend components. there is a around the legend layer names. You can change "label" to some other name (say myLabel) and then declare a style for it: Chameleon automatically adds some stylesheets to the template for its own built in styling. You can usually replace these styles with your own, especially when you control the html as is the case with the legend template. > > Third, and finally? I would like the map to initially appear zoomed in > to a certain area. Basically, I want to keep the entire extent > available, but when it first loads, I would like it panned and zoomed > to a specific location. I've played with EXTENT and SCALE, but > without the desired results. Is it possible to do this somehow? set the initial extents in the map file to be the extents you want to be shown initially. Next, add your full extents to the metadata of the web object as follows: MAP # ... WEB METADATA "original_projection" "init=epsg:42101" "original_extents" "-2594561,-2312631,3467361,2240000" END END # ... END projection is not necessary unless the projection of the original extents is different from the starting projection. NOTE the extents are comma separated, unlike the MAP EXTENTS which are space separated. Normally, Chameleon initializes this metadata when the map is first loaded. However, if this metadata is already set, then it will not set it. These are the extents that are then used by the ZoomFullExtents widget. Cheers, Paul > > Again, I really appreciate any help or hints that are offered. Thanks > in advance. > > Jennifer Zeisloft > > > ------------------------------------------------------------------------ > > [leg_layer_html order=ascending opt_flag=15] > [if name=show oper=eq value=1] > > [if name=radio oper=eq value=1] > > [/if] [if name=check oper=eq value=1] > > > > [/if] > [if name=wms_name oper=isset] > > > [/if] > [/if] > [/leg_layer_html] > [leg_class_html opt_flag=15] > [if name=classes oper=eq value=1] > > > > > > [/if] > [/leg_class_html] > > > -- ----------------------------------------------------------------- |Paul Spencer pspencer at dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From blaine_hack1 at YAHOO.COM Thu Oct 28 18:58:15 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Thu, 28 Oct 2004 18:58:15 -0700 Subject: Spatial Query on VirtualSpatial layer In-Reply-To: <417E61D4.6000606@pobox.com> Message-ID: Frank, or anyone else I got the spatial query to return data to the query template but only after doing an "nquery". By doing this,it is also querying an actual shapefile that it is and returning the data from the shapefile along with the VRT layer data. The error again, "mapserv(): Web application error. No way to generate a valid map extent from selected shapes." would seem to indicate that there is no way to get a map extent from the VRT layer. The query template has correct data from the tables but the map that is displayed is completely wacked out! I am projection XY coords in LAT/LONG on the fly to UTM. Could that be part of the problem? I could send screen shots of the original map and then the query map if that would help. Anything else I can try? Thanks Blaine --- Frank Warmerdam wrote: > Blaine Hackett wrote: > > I am using an X and Y field from an ODBC > connection to > > show the VSD layer. I can see them but I have not > > successfully queried them. I have tried several > > different query types within the VSD. > ... > > So, to click on them or draw a box around several > > points and have the info about the point returned > to > > an html query template is all I am tying to do. > > > > Does that make sense? > > Blaine, > > As far as I can tell your approach is reasonable, > but then I didn't see > query template. I don't actually use queries very > often but as far as I know > they should work the same for VRT/ODBC layers as > they do for other OGR layers. > > You may need to be careful about uppercase/lower > case for attribute names. > Verify the attributes returned by ogrinfo.exe > against your .vrt file against > the names for the attributes in your query template. > > Sorry I don't have more constructive suggestions. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From mhln25 at YAHOO.COM Thu Oct 28 23:08:41 2004 From: mhln25 at YAHOO.COM (Mahalakshmi Narayanan) Date: Thu, 28 Oct 2004 23:08:41 -0700 Subject: Thanks to you all.. In-Reply-To: <4180E953.9060400@pobox.com> Message-ID: Hi! Thanks for your immediate response! "A Data Warehouse is a repository of integrated information, available for queries and analysis. Data and information are extracted from heterogeneous sources as they are generated....This makes it much easier and more efficient to run queries over data that originally came from different sources." Big databases as you had rightly put. A data warehouse for Census datawarehouse would contain, say, data from 1901 upto current census. It would enable us to analyse the growth rate of many factors with many parameters over time scale (different dimensions of data analysed for facts!). Data Mining could correlate different factors which are otherwise taken for disconnected. (For ex. bread and butter/jam are many times bought together and so on.. for a decision maker, keeping these items together would benefit in making the customer buy both and so on..) Many commercial products are available for datawarehouse building/analysing. For ex. SAS, IBM Business Intelligence, COGNOS are a few and database services include Oracle OLAP Service, MS SQL OLAP, etc.. Many leading datawarehousing products combine GIS for effective analysis and planning. Hope that was n't too much! Also, it would be very helpful if you could let me know how to add proper indexing support to the OGR MITAB driver, pls.. With regards, Mahalakshmi Narayanan --- Frank Warmerdam wrote: > Mahalakshmi Narayanan wrote: > > 1. Is there any open source tool available for > > datawarehousing? if so some links would be > > appreciated. > > Hi, > > I don't know too much about data warehousing. In my > mind it > is equated with holding all the data in a big > database. Perhaps > you could be more specific about the datawarehousing > capabilities > you need for those of us not to "up" on such IT > terms. > > > 3. Is there any tool to convert shape file to > indexed > > tab file? ogr2ogr does convert shapefile > > > > to tab file but the resultant tab file requires to > be > > indexed on specific fields. This I don't know how > to > > do. If somebody could throw some light on this, it > > would be of great help to us. > > There is support in the MITAB library for indexing > attribute fields but > the OGR library doesn't utilize it. You could > potentially write a small > standalone utility using MITAB to index fields, or > we could work together > to add proper indexing support to the OGR MITAB > driver. Ironically, the > OGR Shapefile driver actually uses the MITAB > attribute indexing support to > build .dbf indexes in the mapinfo format. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > --- Frank Warmerdam wrote: > Mahalakshmi Narayanan wrote: > > 1. Is there any open source tool available for > > datawarehousing? if so some links would be > > appreciated. > > Hi, > > I don't know too much about data warehousing. In my > mind it > is equated with holding all the data in a big > database. Perhaps > you could be more specific about the datawarehousing > capabilities > you need for those of us not to "up" on such IT > terms. > > > 3. Is there any tool to convert shape file to > indexed > > tab file? ogr2ogr does convert shapefile > > > > to tab file but the resultant tab file requires to > be > > indexed on specific fields. This I don't know how > to > > do. If somebody could throw some light on this, it > > would be of great help to us. > > There is support in the MITAB library for indexing > attribute fields but > the OGR library doesn't utilize it. You could > potentially write a small > standalone utility using MITAB to index fields, or > we could work together > to add proper indexing support to the OGR MITAB > driver. Ironically, the > OGR Shapefile driver actually uses the MITAB > attribute indexing support to > build .dbf indexes in the mapinfo format. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From olaf.czogalla at IFAK-MD.DE Fri Oct 29 00:18:29 2004 From: olaf.czogalla at IFAK-MD.DE (Czogalla, Olaf) Date: Fri, 29 Oct 2004 09:18:29 +0200 Subject: PIXMAP symbols don't appear Message-ID: Thank you all, The right clue was provided by Norbert Thieme. In the MigrationGuide I found the snags solution as described, to put the SYMBOL definition into an STYLE ... END tag. That fixed it. Hope that this will also work with more recent versions. Kind regards Olaf Czogalla Institut f. Automation und Kommunikation Steinfeldstr. 3 D-39179 Barleben Phone +49 39203 810 49 Fax +49 39203 811 00 Email Olaf.Czogalla at ifak-md.de WGS84: 52.1964?N 11.5986?E From janeks.kamerovskis at SILVA.LV Fri Oct 29 00:30:39 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 29 Oct 2004 10:30:39 +0300 Subject: Sum: Help: Setting Virtual Spatial data In-Reply-To: Message-ID: Thanks to Frank Warmerdam, who helps to solve my problem! So here is short Sum: There could me two main reasons for this problem: * read permissions to cgi's * too old version of Mapserver - included OGR does not support ODBC virtual data sources In my case first case was not the reason, because virt.ovf file resides in the same directory where I keep my map files, and my mapserver runs fine without virtual data layer. The reason was too old version - in this case 4.0.1. First I tried version 4.2.5. but it is likely compiled with Oracle support and asks for oci.dll, so I tried version 4.4.beta-1 and it works... But one thing appears I think, that is is a bug: My old map files running with mapserv.exe, contained reference map with image format JPG. Despite that in Docs are written that it should be GIF, old version 4.0.1. works with JPG, but new version hangs - browser shows that someting is retrieved but nothing appears. Of course, when I changed format to GIF, my old mapfiles works again. brgds Janeks Kamerovskis > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Janeks Kamerovskis > Sent: Tuesday, October 26, 2004 10:12 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Help: Setting Virtual Spatial data > > > Hi, All! > > I tried to set up Virtual spatial data layer using ODBC: > I made virtual data file: virt.ovf > And tested it with ogrinfo.exe: > That says: > INFO: Open of `e:\MapServer\MapDefs\virt.ovf' > using driver `VRT' successful. > I put virtual layer in map file. > But server responds: > Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named > 'mylayer'. in E:\webFolders\ipasumi\test2.php on line 57 > > Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR > connection > `E:\MapServer\mapDefs\virt.ovf'. File not found or unsupported format. in > E:\webFolders\ipasumi\test2.php on line 57 > > What could be wrong? > > virt.ovf > > > ODBC:MyTest,kraut1/SrcDataSource> > kraut1 > wkbPoint > WGS84 > > > > > Layer in map file: > LAYER > NAME "mylayer" > TYPE POINT > CONNECTIONTYPE OGR > CONNECTION "E:\MapServer\mapDefs\virt.ovf" # the name and path to > the virtual.ovf file, relative to shapepath may work? > DATA "kraut1" # the name of the OGRVrtLayer > STATUS ON > # LABELITEM kraut1 #may need to use table.name or just > name depending > on your OVF file. > # PROJECTION > # "init=epsg:4326" > # END > CLASS > SYMBOL 1 > SIZE 6 > COLOR 255 0 0 > LABEL > SIZE MEDIUM > TYPE BITMAP > COLOR 0 0 0 > END > END > END > > brgds > Janeks Kamerovskis From bluecarto at FREE.FR Fri Oct 29 00:29:30 2004 From: bluecarto at FREE.FR (Pierre GIRAUD) Date: Fri, 29 Oct 2004 09:29:30 +0200 Subject: query on oraclespatial using OGR/OCI In-Reply-To: <1098471424.41795800eed7d@webmail.cttmar.univali.br> Message-ID: Do you have any idea when it will be included in a version of Mapserver ? Pierre GIRAUD Selon FERNANDO SIMON : > Hi Javier, > Yes, "the querys" are working correctly now, I tested the query functions > with cgi mode an mapscript functions and both kinds work correctly. > The query support is finished, now I'm working with others supports for > the > oraclespatial. So I believe that the querry support will be include in the > next > version of mapserver. > Thank's for the help. > > ---------------------------------------------------------------- > Fernando Simon - simon at inf.univali.br > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada > http://g10.cttmar.univali.br > ---------------------------------------------------------------- > > Quoting Javier Castillejo Montes : > > > Hi Fernando, > > > > I understand that you did some work on the mapserver files and now, your > > queries are working? > > > > As Pierre knows I'm using mapserver with oracle spatial and my next step is > > "The Queries".... If you need any help do not hesitate to told me. I'm > > starting with "The Queries" work, but I will try to help. > > > > I think that I'm going to use php to generate the queries. It isn't the > best > > way, but, for now, Is the only way I know. > > > > THanks > > > > > > > > > > > > > > -----Mensaje original----- > > De: Fernando S. [mailto:simon at INF.UNIVALI.BR] > > Enviado el: jueves, 21 de octubre de 2004 18:31 > > Para: MAPSERVER-USERS at LISTS.UMN.EDU > > Asunto: Re: [UMN_MAPSERVER-USERS] query on oraclespatial using OGR/OCI > > > > > > Hi Pierre, > > The query functions can be possible in the next version of the > > Oracle Spatial support. I implemented these functions here in my > > computer and I believe that this functions will be include in the next > > version of native support. > > I don't know how the OGR implement the query function but this > > problem appear when you use functions that use the primary filter like > > SDO_FILTER. > > Here the problem disappear when I recreate the indexes without > > SDO_LEVEL. Another point is the tolerance, you can try set a small > > value for Tolerance like 0.00001. > > > > ---------------------------------------------------------------- > > Fernando Simon - simon at inf.univali.br > > Mapserver and Oracle Spatial developer > > G10 - Laboratorio de Computacao Aplicada > > http://g10.cttmar.univali.br > > ---------------------------------------------------------------- > > > > > > bluecarto at free.fr wrote: > > > > >First question : how can you query oracle layers if you don't use OGR ? I > > mean > > >the function are not implemented for oraclespatial connectiontype. > > > > > >I had already try you suggestion (ommitting the SDO_LEVEL parameter). That > > could > > >be a good idea, but, sadly, it doesn't give any better result. > > > > > >I'm using Oracle 10g on Debian or Oracle 9.2 on RedHat. > > > > > >In my sample the result given seem to be the first record in the table. > > > > > >Regards > > > > > >Pierre > > > > > >Selon FERNANDO SIMON : > > > > > > > > > > > >>Hi Pierre, > > >> I don't use OGR but your problem can be with the spatial index. I saw > > >>this > > >>problem with the 10G version. > > >> In the 10G version the Oracle don't recommend use SDO_LEVEL when you > > >>create > > >>the spatial index. In my tests problems appears when I set the SDO_LEVEL, > > the > > >>result doesn't correspond whant I expected. > > >> I don't know if the problem occur with others Oracle Spatial > > versions. > > >>But > > >>you can try with or without SDO_LEVEL. > > >> > > >> > > >>---------------------------------------------------------------- > > >>Fernando Simon - simon at inf.univali.br > > >>Mapserver and Oracle Spatial developer > > >>G10 - Laboratorio de Computacao Aplicada > > >>http://g10.cttmar.univali.br > > >>---------------------------------------------------------------- > > >> > > >> > > >>Quoting Pierre GIRAUD : > > >> > > >> > > >> > > >>> I'm still having difficulties to use mapserver queries on a oracle > > layer. > > >>> Before I report a bug, I would like someone to test the following SQL > > >>>statement > > >>>and mapfile, and agree that something is going wrong, or tell me I am > > >>>missing > > >>>something obvious. > > >>> > > >>> Thx > > >>> > > >>> Pierre GIRAUD > > >>> camptocamp.com > > >>> > > >>>---------SQL statement-------------- > > >>>DROP table mytable; > > >>> > > >>>CREATE TABLE MYTABLE ( > > >>> GID VARCHAR(20), > > >>> geometry MDSYS.SDO_GEOMETRY); > > >>> > > >>> > > >>> > > >>>insert into MYTABLE (GID,GEOMETRY) values ( > > >>> '1', > > >>> mdsys.sdo_geometry( > > >>> '2003', > > >>> null, > > >>> null, > > >>> mdsys.sdo_elem_info_array(1,1003,1), > > >>> mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) > > >>>); > > >>> > > >>>insert into MYTABLE (GID,GEOMETRY) values ( > > >>> '2', > > >>> mdsys.sdo_geometry( > > >>> '2003', > > >>> null, > > >>> null, > > >>> mdsys.sdo_elem_info_array(1,1003,1), > > >>> mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) > > >>>); > > >>> > > >>>insert into MYTABLE (GID,GEOMETRY) values ( > > >>> '3', > > >>> mdsys.sdo_geometry( > > >>> '2003', > > >>> null, > > >>> null, > > >>> mdsys.sdo_elem_info_array(1,1003,1), > > >>> mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) > > >>>); > > >>> > > >>>delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; > > >>> > > >>>insert into user_sdo_geom_metadata (table_name,column_name,diminfo,srid) > > >>>values ('MYTABLE','GEOMETRY', > > >>>mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), > > >>>mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), > > >>>NULL); > > >>> > > >>>drop index q_mytable; > > >>> > > >>>create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is > > >>>MDSYS.spatial_index > > >>>parameters ('SDO_LEVEL=6'); > > >>> > > >>>---------mapfile--------------- > > >>>NAME DEMO > > >>>STATUS ON > > >>>SIZE 500 300 > > >>>EXTENT 0 0 10 10 > > >>>IMAGECOLOR 255 255 255 > > >>> > > >>> > > >>>WEB > > >>> IMAGEPATH "/var/www/images/" > > >>> IMAGEURL "images/" > > >>>END > > >>> > > >>>LAYER > > >>> NAME squares > > >>> TYPE POLYGON > > >>> STATUS ON > > >>># CONNECTIONTYPE oraclespatial > > >>># CONNECTION "scott/tiger at orcl" > > >>> CONNECTION "OCI:scott/tiger at orcl" > > >>> CONNECTIONTYPE OGR > > >>># DATA "select * from mytable" > > >>> DATA "mytable" > > >>> TEMPLATE "ttt" > > >>> CLASS > > >>> SIZE 10 > > >>> COLOR 255 255 255 > > >>> OUTLINECOLOR 200 200 200 > > >>> END > > >>>END > > >>> > > >>>END > > >>> > > >>> > > >>> > > >>>Selon bluecarto at free.fr: > > >>> > > >>> > > >>> > > >>>> Hello, > > >>>> > > >>>>Following the good advices of Frank Warmerdam, I improve in using > > oracle > > >>>>spatial > > >>>>data with spatial indexes. For now, I know that I should not use sql > > >>>>statements > > >>>>in the mapfile but queries directly to the table : > > >>>> > > >>>> DATA "my_table" > > >>>>instead of > > >>>> DATA "select * from my_table" > > >>>> > > >>>>Both return the same images. Shapes are well drawn, and labeling is > > >>>> > > >>>> > > >>>correct. > > >>> > > >>> > > >>>>But the first (more performant) statement doesn't give good results to > > a > > >>>>query. > > >>>>The data returned doesn't correspond to what is expected. And no shape > > is > > >>>>highlighted. > > >>>> > > >>>>Do someone using Oracle have same problems ? > > >>>> > > >>>>Pierre GIRAUD > > >>>>camptocamp.com > > >>>> > > >>>> > > >>>> > > >>>> > > >> > > >> > > >>------------------------------------------------ > > >>Este e-mail foi enviado pelo webmail do curso de > > >> Ci?ncia da Computa??o - UNIVALI > > >> > > >> > > >> > > > > > > > > > > > > > > > > > > > ------------------------------------------------ > Este e-mail foi enviado pelo webmail do curso de > Ci?ncia da Computa??o - UNIVALI > From giorgio.plazzotta at SARASRICERCHE.IT Fri Oct 29 01:01:09 2004 From: giorgio.plazzotta at SARASRICERCHE.IT (Giorgio Plazzotta) Date: Fri, 29 Oct 2004 10:01:09 +0200 Subject: In version 4.2.5 Label buffer in GRID doesn't work Message-ID: MAPSERVER-USERS Digest - 27 Oct 2004 to 28 Oct 2004 (#2004-96)After the reinstallation of Mapserver 4.2.5 I noticed a malfunctioning in the behaviour of the GRID layers in my mapfile. The proble is that the labels on the border of the GRIDS are shown twice. This is because of the BUFFER parameter. Mapserver shows both the label at the normal position (on the grid line) and also the buffered label at a certain distance. I partially solv ed the problem eliminating the BUFFER option in the label section. In the previously installed Mapserver version (4.0) the same mapfile worked well and the buffer option acted as it was expected putting the laber at 4 or 5 pixel distance from the line. I include the code of the grid layer in the mapfile: Giorgio Plazzotta Assemini - Italy LAYER NAME "Reticolo UTM/WGS84" GROUP "Localizzazione geografica" STATUS OFF MINSCALE 1 MAXSCALE 2000000 TYPE LINE CLASS COLOR 128 128 128 LABEL FONT fritqat TYPE truetype POSITION AUTO #BUFFER 5 SIZE 7 COLOR 128 128 128 PARTIALS FALSE END END PROJECTION "init=epsg:23033" "ellps=WGS84" "zone=32" "north" "no_defs" END GRID LABELFORMAT "%.0f" MAXARCS 5 MAXSUBDIVIDE 2 END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivan.mjartan at GEOVAP.CZ Fri Oct 29 04:17:40 2004 From: ivan.mjartan at GEOVAP.CZ (Ivan Mjartan) Date: Fri, 29 Oct 2004 13:17:40 +0200 Subject: code information Message-ID: Hi, I am programmer in some company in czech and i got new project. I have to change part of code in mapserver cgi. And my question is. Where can i get or download any information or documentation of mapserver cgi ... (for example, class hierarchy ... I am novice in this project and mapserver is very large project, that is why I looking for everthing what can help to me. thank u very much ivan mjartan -------------- next part -------------- An HTML attachment was scrubbed... URL: From tylermitchell at SHAW.CA Fri Oct 29 07:11:17 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 29 Oct 2004 07:11:17 -0700 Subject: code information In-Reply-To: <006a01c4bda8$e730b1a0$e901a8c0@PC24> Message-ID: Hi Ivan, These may help: http://mapserver.gis.umn.edu/doc42/cgi-reference.html Good luck - hope you are able to get what you need. Tyler On October 29, 2004 04:17 am, Ivan Mjartan wrote: > Hi, > > I am programmer in some company in czech and i got new project. I have to > change part of code in mapserver cgi. And my question is. > > Where can i get or download any information or documentation of mapserver > cgi ... (for example, class hierarchy ... > > I am novice in this project and mapserver is very large project, that is > why I looking for everthing what can help to me. > > thank u very much ivan mjartan From lists at WEBMAPIT.COM.BR Thu Oct 28 09:54:41 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 28 Oct 2004 14:54:41 -0200 Subject: 4.4-Beta1 Questions In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7705@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Sorry my ignorance, but what is FastCGI? thanks Eduardo Patto Kanegae http://www.webmapit.com.br Treinamento & Consultoria em UMN MapServer e FreeGIS Software UIN: 303747254 +55(16)9994-2928 ***Fim da Mensagem / End of Message *** Jean-Francois Doyon escreveu: >Hello, > >I'm starting to look at and evaluate 4.4 as an upgrade from 3.6.6 (Yup, I'm >still using it, works so well!), and I just have a couple of questions ... > >1) Is FastCGI deemed stable and reliable in 4.4 ? I'd LOVE to use it. > >2) If I use FastCGI, I need it thread safe enough? > >Thanks, > >Jean-Fran?ois Doyon >Internet Service Development and Systems Support / Sp?cialiste de >d?veloppements internet et soutien technique >Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection >Natural Resources Canada / Ressources naturelles Canada >http://atlas.gc.ca >Tel./T?l. : (613) 992-4902 >Fax: (613) 947-2410 > > > > From bartvde at XS4ALL.NL Fri Oct 29 07:42:01 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 29 Oct 2004 16:42:01 +0200 Subject: 4.4-Beta1 Questions In-Reply-To: <41812451.3050600@webmapit.com.br> Message-ID: Hi Eduardo, FastCGI is a protocol for keeping cgi-bin style web applications running as a daemon to take advantage of preserving memory caches, and amortizing other high startup costs (like heavy database connections) over many requests. See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?FastCGI Best regards, Bart > Sorry my ignorance, but what is FastCGI? > > thanks > > Eduardo Patto Kanegae > http://www.webmapit.com.br > Treinamento & Consultoria em UMN MapServer e FreeGIS Software > UIN: 303747254 > +55(16)9994-2928 > > ***Fim da Mensagem / End of Message *** > > > > Jean-Francois Doyon escreveu: > >>Hello, >> >>I'm starting to look at and evaluate 4.4 as an upgrade from 3.6.6 (Yup, >> I'm >>still using it, works so well!), and I just have a couple of questions >> ... >> >>1) Is FastCGI deemed stable and reliable in 4.4 ? I'd LOVE to use it. >> >>2) If I use FastCGI, I need it thread safe enough? >> >>Thanks, >> >>Jean-Fran?ois Doyon >>Internet Service Development and Systems Support / Sp?cialiste de >>d?veloppements internet et soutien technique >>Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection >>Natural Resources Canada / Ressources naturelles Canada >>http://atlas.gc.ca >>Tel./T?l. : (613) 992-4902 >>Fax: (613) 947-2410 >> >> >> >> > From paul.oduro at SPPS.ORG Fri Oct 29 09:14:29 2004 From: paul.oduro at SPPS.ORG (Paul Smith) Date: Fri, 29 Oct 2004 11:14:29 -0500 Subject: shp2mysql problems Message-ID: Hello All When I run ./shp2mysql /path/to/shpfile/shpfilename (without the .shp extension) on a SUSE box, I get "Odd number of elements in hash assignment at /usr/lib/perl5/site_perl/5.8.3/Geo/ShapeFile/Shape.pm line 30". The offending line 30 in shape.pm reads my %args = @_; Two empty tables are created. I edited shp2mysql as follows(as per some posting I read from Matt, Lowell etc) use Geo::ShapeFile::Shape qw/:all/; #line 9 $shape = new Geo::ShapeFile::Shape $ARGV[0]; Any help would be greatly appreciated Paul System info: SuSE 9 Mapserver 4.2.5 Perl 5.8.3 Shapelib 1.2.10 GeoShapeFile 2.50 MySQL 4.0.18 From bluetuna_goes_skying at YAHOO.CO.UK Fri Oct 29 10:05:53 2004 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Fri, 29 Oct 2004 18:05:53 +0100 Subject: Run PHP as a CGI when call mapserver Message-ID: Dear mapserverers, I am trying to configure my system to run php as a cgi only when my php scripts include map server calls. This is because I realised that it's not possible to use dl() function when you're using apache as the web server and on the other hand it is not possible to load php_mapscript_42.dll by default as a module described in the php.ini file. I took a look at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI where some good tips are provided but the thing is my OS is windows and honestly so far I haven't been able to translate those tips from UNIX to my OS. Can someone give me a hand? thanks a lot in advance. JP --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! -------------- next part -------------- An HTML attachment was scrubbed... URL: From cartman8d at YAHOO.COM Fri Oct 29 10:18:57 2004 From: cartman8d at YAHOO.COM (Cartman) Date: Fri, 29 Oct 2004 12:18:57 -0500 Subject: Help with my instalation of MapServer-4.2.5 Message-ID: Hi, I am instaling MapServer on Linux Red Hat 9.0 and I have some problems. This is my script for instalation. ********************************************************** ./configure --with-freetype=/usr/local/include/freetype --with-zlib=/usr/include --with-png=/usr/lib --with-xpm=/usr/lib/gimp/1.2/plug-ins/ --enable-force-freetype1 --with-wmclient --with-org=/usr/local/bin --with-tiff=/usr/local/include --with-ming=/usr/include --with-curl-config=/usr/local/bin --with-httpd=/usr/sbin/httpd --with-php=/usr/local/include/php/main --with-libiconv=/usr/local/lib ******************************************************* And then, when I run make, the follow error is showed. ********************************************************* . . . ./libmap.a(mapswf.o)(.text+0x488e): In function `msFreeImageSWF': : referencia a `destroySWFMovie' sin definir ./libmap.a(mapswf.o)(.text+0x4a01): In function `msDrawVectorLayerAsRasterSWF': : referencia a `SWFMovie_add' sin definir ./libmap.a(mapswf.o)(.text+0x1478): In function `AddMouseActions': : referencia a `SWFButton_addAction' sin definir collect2: ld devolvi? el estado de salida 1 make: *** [shp2img] Error 1 ********************************************************* What`s happen? Am I doing some wrong? I need some help, please. ===== Gracias. Atentamente, CARLOS ARTURO TRUJILLO SILVA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From mszpak at WP.PL Fri Oct 29 10:47:03 2004 From: mszpak at WP.PL (=?ISO-8859-2?Q?Marcin_Zaj=B1czkowski?=) Date: Fri, 29 Oct 2004 19:47:03 +0200 Subject: Mapscript - problem with binary grid (ADF) Message-ID: Hi, can anyone please help me, i encountered two problems using mapscript and am unable to figure out the source of the problems. I have stopped using mapserver executable /cgi-bin/mapserv and started using mapscript. 1) When using /cgi-bin/mapserv i am able to view grid maps saved in .adf format, when i started using mapscript they are not drawn. 2) When i try executing a query using mapscript everytime i get no results (no objects found). When executing the same query on both /cgi-bin/mapserv and mapscript, /cgi-bin/mapserv find the proper results and mapscript gets no results. In both describled cases i use the same maps. Below are the script used for generating proper images and /cgi-bin/mapserv and mapscript compile options (in both cases i downloaded them from the web not compiled them myself) vars.php web->set("log", "c:/temp/log.log"); $g_Map->set("debug", 1); } ?> viewMap.php = 0.0 ? ((int) (($x)+.5)) : ((int) (($x)-.5))); } function MS_CELLSIZE($min,$max,$d){ return (($max - $min)/$d); } function MS_MAP2IMAGE_X($x,$minx,$cx){ return (MS_NINT(($x - $minx)/$cx)); } function MS_MAP2IMAGE_Y($y,$maxy,$cy){ return (MS_NINT(($maxy - $y)/$cy)); } function MS_IMAGE2MAP_X($x,$minx,$cx){ return ($minx + $cx*$x); } function MS_IMAGE2MAP_Y($y,$maxy,$cy){ return ($maxy - $cy*$y); } if( $_GET[layers] ) $g_ShowLayer = explode(' ', $_GET[layers]); if( is_array($g_ShowLayer) ) { reset($g_ShowLayer); while ( list($index, $layerName) = each($g_ShowLayer) ) { $layer = $g_Map->getLayerByName($layerName); if ( $layer ) // je?li by?a taka wartswa ustawiamy jej widocznosc podczas rysowania { if( $layer->set( "status", MS_ON ) == -1 ) die( "set('status', MS_ON): $layerName" ); } else die( "$layerName: Layer Not Found" ); } } if($_GET[mapext]) { $mapext = explode(" ", $_GET[mapext]); $g_Map->extent->setextent($mapext[0], $mapext[1], $mapext[2], $mapext[3]); } switch( $_GET[mode] ) { // MAP case "map": $img = $g_Map->draw(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); break; // REFERENCE case "reference": $img = $g_Map->drawReferenceMap(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); break; // SCALEBAR case "scalebar": switch($_GET[map_scalebar_units]) { case "kilometers": $g_Map->scalebar->set("units", MS_KILOMETERS); break; case "miles": $g_Map->scalebar->set("units", MS_MILES); break; default: $g_Map->scalebar->set("units", MS_METERS); break; } $img = $g_Map->drawScaleBar(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); break; case "query": case "nquery": $imgext = explode(" ", $_GET[imgext]); // [minx, miny, maxx, maxy] $imgxy = explode(" ", $_GET[imgxy]); // [clickx, clicky] $imgsize = explode(" ", $_GET[imgsize]); // [imgwidth, imgheight] $imgbox = explode(" ", $_GET[imgbox]); //[minx, miny, maxx, maxy] $g_Map->setextent($imgext[0],$imgext[1], $imgext[2], $imgext[3]); $cellX = MS_CELLSIZE( $imgext[0], $imgext[2], $imgsize[0] ); $cellY = MS_CELLSIZE( $imgext[1], $imgext[3], $imgsize[1] ); $mapX = MS_IMAGE2MAP_X( $imgxy[0], $imgext[0], $cellX); $mapY = MS_IMAGE2MAP_Y( $imgxy[1], $imgext[3], $cellY); $rect = ms_newRectObj(); $rect->setextent($imgext[0],$imgext[1], $imgext[2], $imgext[3]); $mapPoint = ms_newPointObj(); $mapPoint->setXY( $imgxy[0], $imgxy[0], 0 ); // $g_Map->zoomrectange( $rect, $imgsize[0], $imgsize[1], $g_Map->extent); echo "
$imgxy[0], $imgxy[1] (Image coordinates)\n".
                     "$mapX $mapY (Map coordinates)\n";
                 print_r($_GET);
                 //print_r($g_Map);

                 @$result = $g_Map->queryByPoint($mapPoint, MS_SINGLE,
300);
                 echo "\nresult: $result \n";
                 if( $result == MS_SUCCESS )
                   echo "MS_SUCCESS";

                 for( $i = 0; $i < $g_Map->numlayers; $i++ )
                 {
                         $layer = $g_Map->getLayer($i);
                         if( $layer->status == MS_ON )
                         {
                                 @$result = $layer->queryByPoint($mapPoint,
MS_SINGLE, 3);
                                 echo "result: $result,
".$layer->getNumResults()."\n";
                         }
                 }


         break;

         default:
                 $url = "graphics/transparent_pixel.gif";
         break;
}
if(isset($img))
{
         $img->free();
         if($g_Map->web->error)
                 echo $g_Map->web->error;
         header("Location: $url");
}
?>

/cgi-bin/mapserv -v
MapServer version 4.2-beta3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

phpinfo();
MapServer version 4.2-beta3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP
SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT
SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS
INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE

PHP MapScript Version   ($Revision: 1.194.2.3 $ $Date: 2004/05/13 21:37:44
$)


From dmorissette at DMSOLUTIONS.CA  Fri Oct 29 12:22:33 2004
From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette)
Date: Fri, 29 Oct 2004 15:22:33 -0400
Subject: Run PHP as a CGI when call mapserver
In-Reply-To: <20041029170553.22040.qmail@web25701.mail.ukl.yahoo.com>
Message-ID: 

jo?ffffffffffe3o Antunes wrote:
>
> I took a look at
> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScriptCGI where some
> good tips are provided but the thing is my OS is windows and honestly so
> far I haven't been able to translate those tips from UNIX to my OS.
>

Maybe you should have a look at MS4W: http://maptools.org/ms4w/

MS4W includes an Apache server and everything you need to get running
quickly, I would suggest that you just use that. However if you insist
on configuring your own components one by one, you could always learn
some tricks from the MS4W config files.

Daniel
--
------------------------------------------------------------
  Daniel Morissette               dmorissette at dmsolutions.ca
  DM Solutions Group              http://www.dmsolutions.ca/
------------------------------------------------------------


From andy_canfield at HOTMAIL.COM  Fri Oct 29 14:06:28 2004
From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD)
Date: Fri, 29 Oct 2004 14:06:28 -0700
Subject: Mapserver CGI or C API question
Message-ID: 

For anyone who may know,
    I am still working on my wireless app for using Mapserver from a Nextel
phone. So far so good except I'm starting to run into some things I don't
think the CGI was designed to do. At least not per the docs. Specifically I
need search functionality. I want to be able to pass in a layer, an
attribute and a value to search for and get back the bounding rectangle of
all the features returned. I'm pretty sure the CGI won't do that. Correct me
if I'm wrong so I don't waste time please. So what I'd like to do is write
my own CGI that does return this info. So these are my questions:

When you search a layer using mapserver's C api and it is searching a
shapefile and you want to search the whole shapefile regardless of bounds is
there any special searching that goes on or is it a straight loop through
all the records in the shape file looking for matches in the attribute field
specified? IE does it load a b-tree in memory and then search the tree or
anything like that?

Thanks,
Andy

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/


From Tom.Kralidis at EC.GC.CA  Fri Oct 29 14:13:12 2004
From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington])
Date: Fri, 29 Oct 2004 17:13:12 -0400
Subject: Mapserver CGI or C API question
Message-ID: 

> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD
> Sent: Friday, 29 October, 2004 17:06
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question
> 
> 
> For anyone who may know,
>     I am still working on my wireless app for using Mapserver 
> from a Nextel phone. So far so good except I'm starting to 
> run into some things I don't think the CGI was designed to 
> do. At least not per the docs. Specifically I need search 
> functionality. I want to be able to pass in a layer, an 
> attribute and a value to search for and get back the bounding 
> rectangle of all the features returned. I'm pretty sure the 
> CGI won't do that. Correct me if I'm wrong so I don't waste 
> time please. So what I'd like to do is write my own CGI that 
> does return this info. So these are my questions:
> 

This sounds like a job for a MapServer OGC:WFS GetFeature request with
filter, i.e.:

http://host/cgi-bin/mapserv?map=[mapfile]&version=1.0.0&service=WFS&requ
est=GetFeature&typename=[layername]&filter[field_name][attribute_value]&

(fill in values in "[]" with your own).

By definition, this will returned to you all matching features encoded
as a GML (XML) document.  The opening information of this document will
provided the bounding box of all features returned.

You can have some middleware which connects to the WFS, makes the
request, then processes the info accordingly.

Hope this helps.

..Tom


> When you search a layer using mapserver's C api and it is 
> searching a shapefile and you want to search the whole 
> shapefile regardless of bounds is there any special searching 
> that goes on or is it a straight loop through all the records 
> in the shape file looking for matches in the attribute field 
> specified? IE does it load a b-tree in memory and then search 
> the tree or anything like that?
> 
> Thanks,
> Andy
> 
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today 
> - it's FREE! 
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> 


From woodbri at SWOODBRIDGE.COM  Fri Oct 29 14:19:13 2004
From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge)
Date: Fri, 29 Oct 2004 17:19:13 -0400
Subject: Mapserver CGI or C API question
In-Reply-To: 
Message-ID: 

Andy,

Mapserver calls search "QUERY" and there are two basic kinds of queries
that can be performed:
  1) spatial queries, ie: point and radius or bounding box
  2) attribute queries, which search for objects that have attributes
that match the query conditions.

Spatial queries are good if you have a lat/lon like from a GPS and you
want to search you layers and find out where you are. Attribute queries
are good if you want to find say a parcel based on a parcel id and then
zoom the map to that location.

Most all of the variants that you might want to customize can be done in
mapscript so you don't have to dive into changing the C-api.

-Steve W.

ANDY CANFIELD wrote:

> For anyone who may know,
>    I am still working on my wireless app for using Mapserver from a Nextel
> phone. So far so good except I'm starting to run into some things I don't
> think the CGI was designed to do. At least not per the docs. Specifically I
> need search functionality. I want to be able to pass in a layer, an
> attribute and a value to search for and get back the bounding rectangle of
> all the features returned. I'm pretty sure the CGI won't do that.
> Correct me
> if I'm wrong so I don't waste time please. So what I'd like to do is write
> my own CGI that does return this info. So these are my questions:
>
> When you search a layer using mapserver's C api and it is searching a
> shapefile and you want to search the whole shapefile regardless of
> bounds is
> there any special searching that goes on or is it a straight loop through
> all the records in the shape file looking for matches in the attribute
> field
> specified? IE does it load a b-tree in memory and then search the tree or
> anything like that?
>
> Thanks,
> Andy
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>


From andy_canfield at HOTMAIL.COM  Fri Oct 29 14:50:39 2004
From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD)
Date: Fri, 29 Oct 2004 14:50:39 -0700
Subject: Mapserver CGI or C API question
Message-ID: 

Tom,
I already have XML parsing built into the app for some other stuff it does
so that sounds like a good solution to me. Can I run that against a regular
mapfile with regular layers or do I need to set up wms layers?
Thanks,
Andy

>From: "Kralidis,Tom [Burlington]" 
>To: "ANDY CANFIELD"
>,
>Subject: RE: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question
>Date: Fri, 29 Oct 2004 17:13:12 -0400
>
>
>
> > -----Original Message-----
> > From: UMN MapServer Users List
> > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD
> > Sent: Friday, 29 October, 2004 17:06
> > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question
> >
> >
> > For anyone who may know,
> >     I am still working on my wireless app for using Mapserver
> > from a Nextel phone. So far so good except I'm starting to
> > run into some things I don't think the CGI was designed to
> > do. At least not per the docs. Specifically I need search
> > functionality. I want to be able to pass in a layer, an
> > attribute and a value to search for and get back the bounding
> > rectangle of all the features returned. I'm pretty sure the
> > CGI won't do that. Correct me if I'm wrong so I don't waste
> > time please. So what I'd like to do is write my own CGI that
> > does return this info. So these are my questions:
> >
>
>This sounds like a job for a MapServer OGC:WFS GetFeature request with
>filter, i.e.:
>
>http://host/cgi-bin/mapserv?map=[mapfile]&version=1.0.0&service=WFS&requ
>est=GetFeature&typename=[layername]&filteropertyName>[field_name][attribute_value]l>&
>
>(fill in values in "[]" with your own).
>
>By definition, this will returned to you all matching features encoded
>as a GML (XML) document.  The opening information of this document will
>provided the bounding box of all features returned.
>
>You can have some middleware which connects to the WFS, makes the
>request, then processes the info accordingly.
>
>Hope this helps.
>
>..Tom
>
>
> > When you search a layer using mapserver's C api and it is
> > searching a shapefile and you want to search the whole
> > shapefile regardless of bounds is there any special searching
> > that goes on or is it a straight loop through all the records
> > in the shape file looking for matches in the attribute field
> > specified? IE does it load a b-tree in memory and then search
> > the tree or anything like that?
> >
> > Thanks,
> > Andy
> >
> > _________________________________________________________________
> > Express yourself instantly with MSN Messenger! Download today
> > - it's FREE!
> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >

_________________________________________________________________
Get ready for school! Find articles, homework help and more in the Back to
School Guide! http://special.msn.com/network/04backtoschool.armx


From Tom.Kralidis at EC.GC.CA  Fri Oct 29 15:01:13 2004
From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington])
Date: Fri, 29 Oct 2004 18:01:13 -0400
Subject: Mapserver CGI or C API question
Message-ID: 

> -----Original Message-----
> From: UMN MapServer Users List 
> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD
> Sent: Friday, 29 October, 2004 17:51
> To: MAPSERVER-USERS at LISTS.UMN.EDU
> Subject: Re: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question
> 
> 
> Tom,
> I already have XML parsing built into the app for some other 
> stuff it does so that sounds like a good solution to me. Can 
> I run that against a regular mapfile with regular layers or 
> do I need to set up wms layers? Thanks, Andy
> 

OGC:WMS serves images and simple point based queries.  For enhanced
queries, you need to setup your mapfile for OGC:WFS.  Check out the
OGC:WFS howto for this
(http://mapserver.gis.umn.edu/doc42/wfs-server-howto.html).

..Tom


> >From: "Kralidis,Tom [Burlington]" 
> >To: "ANDY CANFIELD" 
> >,
> >Subject: RE: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question
> >Date: Fri, 29 Oct 2004 17:13:12 -0400
> >
> >
> >
> > > -----Original Message-----
> > > From: UMN MapServer Users List 
> > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD
> > > Sent: Friday, 29 October, 2004 17:06
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > > Subject: [UMN_MAPSERVER-USERS] Mapserver CGI or C API question
> > >
> > >
> > > For anyone who may know,
> > >     I am still working on my wireless app for using 
> Mapserver from a 
> > > Nextel phone. So far so good except I'm starting to run into some 
> > > things I don't think the CGI was designed to do. At least not per 
> > > the docs. Specifically I need search functionality. I want to be 
> > > able to pass in a layer, an attribute and a value to 
> search for and 
> > > get back the bounding rectangle of all the features returned. I'm 
> > > pretty sure the CGI won't do that. Correct me if I'm wrong so I 
> > > don't waste time please. So what I'd like to do is write 
> my own CGI 
> > > that does return this info. So these are my questions:
> > >
> >
> >This sounds like a job for a MapServer OGC:WFS GetFeature 
> request with 
> >filter, i.e.:
> >
> >http://host/cgi-bin/mapserv?map=[mapfile]&version=1.0.0&servi
ce=WFS&req
>u
>est=GetFeature&typename=[layername]&filter

opertyName>[field_name][attribute_value]opertyName>a >l>& > >(fill in values in "[]" with your own). > >By definition, this will returned to you all matching features encoded >as a GML (XML) document. The opening information of this document will >provided the bounding box of all features returned. > >You can have some middleware which connects to the WFS, makes the >request, then processes the info accordingly. > >Hope this helps. > >..Tom > > > > When you search a layer using mapserver's C api and it is searching > > a shapefile and you want to search the whole shapefile regardless of > > bounds is there any special searching that goes on or is it a > > straight loop through all the records in the shape file looking for > > matches in the attribute field specified? IE does it load a b-tree > > in memory and then search the tree or anything like that? > > > > Thanks, > > Andy > > > > _________________________________________________________________ > > Express yourself instantly with MSN Messenger! Download today > > - it's FREE! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > _________________________________________________________________ Get ready for school! Find articles, homework help and more in the Back to School Guide! http://special.msn.com/network/04backtoschool.armx From warmerdam at POBOX.COM Fri Oct 29 15:06:10 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 29 Oct 2004 18:06:10 -0400 Subject: Help with my instalation of MapServer-4.2.5 In-Reply-To: <20041029171857.68875.qmail@web53809.mail.yahoo.com> Message-ID: Cartman wrote: > Hi, I am instaling MapServer on Linux Red Hat 9.0 and > I have some problems. > > This is my script for instalation. > > ********************************************************** > ./configure > --with-freetype=/usr/local/include/freetype > --with-zlib=/usr/include --with-png=/usr/lib > --with-xpm=/usr/lib/gimp/1.2/plug-ins/ > --enable-force-freetype1 --with-wmclient > --with-org=/usr/local/bin > --with-tiff=/usr/local/include > --with-ming=/usr/include > --with-curl-config=/usr/local/bin > --with-httpd=/usr/sbin/httpd > --with-php=/usr/local/include/php/main > --with-libiconv=/usr/local/lib > ******************************************************* > > And then, when I run make, the follow error is showed. > > ********************************************************* > . > . > . > ./libmap.a(mapswf.o)(.text+0x488e): In function > `msFreeImageSWF': > : referencia a `destroySWFMovie' sin definir > ./libmap.a(mapswf.o)(.text+0x4a01): In function > `msDrawVectorLayerAsRasterSWF': > : referencia a `SWFMovie_add' sin definir > ./libmap.a(mapswf.o)(.text+0x1478): In function > `AddMouseActions': > : referencia a `SWFButton_addAction' sin definir > collect2: ld devolvi? el estado de salida 1 > make: *** [shp2img] Error 1 > ********************************************************* > > What`s happen? > > Am I doing some wrong? > > I need some help, please. Carlos, My guess would be that either the ming library isn't being linked in at all (check for -lming in the Makefile) or the version of the ming library you have is incompatible with what MapServer requires. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From humberto at PASTORALDACRIANCA.ORG.BR Fri Oct 29 14:57:35 2004 From: humberto at PASTORALDACRIANCA.ORG.BR (Humberto Cereser Ibanez) Date: Fri, 29 Oct 2004 16:57:35 -0500 Subject: make libgdal.la Message-ID: the make of mapserver-4.2.5, configured as: ./configure --with-gd=/usr/local --with-proj=/usr/local --with-gdal=/usr/local/src/gdal-1.2.3/apps/gdal-config --with-freetype=/usr/local/bin/freetype-config --with-ogr=/usr/local/src/gdal-1.2.3/apps/gdal-config --with-xpm=/usr/X11R6 --with-php=/usr/local/src/php-4.3.8 --with-pdf=/usr/local --with-postgis=/usr/local/pgsql/bin/pg_config retorns this error: /usr/local/src/gdal-1.2.3/libgdal.la: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [shp2img] Error 1 libgdal.la atached. Any sugestion? Thanks, Humberto Cereser Ibanez Pastoral da Crian?a Curitiba - PR From warmerdam at POBOX.COM Fri Oct 29 15:10:53 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 29 Oct 2004 18:10:53 -0400 Subject: make libgdal.la In-Reply-To: Message-ID: Humberto Cereser Ibanez wrote: > the make of mapserver-4.2.5, configured as: > > ./configure > --with-gd=/usr/local > --with-proj=/usr/local > --with-gdal=/usr/local/src/gdal-1.2.3/apps/gdal-config > --with-freetype=/usr/local/bin/freetype-config > --with-ogr=/usr/local/src/gdal-1.2.3/apps/gdal-config > --with-xpm=/usr/X11R6 > --with-php=/usr/local/src/php-4.3.8 > --with-pdf=/usr/local > --with-postgis=/usr/local/pgsql/bin/pg_config > > retorns this error: > > /usr/local/src/gdal-1.2.3/libgdal.la: file not recognized: File format not > recognized > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > libgdal.la atached. > > Any sugestion? Humberto, I believe you can work around this problem either by configuring and building GDAL without libtool (the .la file is a pseudo-library file only understood by libtool), or by acutally doing a "make install" of GDAL into /usr/local, and using the /usr/local/bin/gdal-config instead of the one "in the source tree". Generally I advise against trying to use GDAL directly from it's build tree. While I have tried to make this option work, it is fraught with perils. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Fri Oct 29 15:14:38 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 29 Oct 2004 18:14:38 -0400 Subject: Spatial Query on VirtualSpatial layer In-Reply-To: <20041029015815.60917.qmail@web41124.mail.yahoo.com> Message-ID: Blaine Hackett wrote: > Frank, or anyone else > > I got the spatial query to return data to the query > template but only after doing an "nquery". By doing > this,it is also querying an actual shapefile that it > is and returning the data from the shapefile along > with the VRT layer data. > > The error again, "mapserv(): Web application error. No > way to generate a valid map extent from selected > shapes." would seem to indicate that there is no way > to get a map extent from the VRT layer. > > The query template has correct data from the tables > but the map that is displayed is completely wacked > out! > > I am projection XY coords in LAT/LONG on the fly to > UTM. Could that be part of the problem? > > I could send screen shots of the original map and then > the query map if that would help. > > Anything else I can try? Blaine, I'm afraid I have lost track of your situtation. I don't see any immediate object reason that extents wouldn't be calculatable from the VRT data source, but that could be the issue. I doubt I can help much unless you can boil down a set of data, a map file and a few queries that demonstrate some of your problems. Extracting the table(s) in question to .dbf files but still having the VRT work against them might make it easier for you to make a standalone demonstration of the problem you are running into that I could test at my end. Given my short attention span, the key to getting help is making it so I can reproduce your error with very little effort at my end. Once I see something I believe to be an error, I am much more motivated to dig in and figure out what is going wrong. I suspect similar issues would apply for the other developers. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From romoloman at HOTMAIL.COM Fri Oct 29 15:16:17 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Sat, 30 Oct 2004 00:16:17 +0200 Subject: Help with my instalation of MapServer-4.2.5 Message-ID: ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Saturday, October 30, 2004 12:06 AM Subject: Re: [UMN_MAPSERVER-USERS] Help with my instalation of MapServer-4.2.5 > Cartman wrote: > > Hi, I am instaling MapServer on Linux Red Hat 9.0 and > > I have some problems. > > > > This is my script for instalation. > > > > ********************************************************** > > ./configure > > --with-freetype=/usr/local/include/freetype > > --with-zlib=/usr/include --with-png=/usr/lib > > --with-xpm=/usr/lib/gimp/1.2/plug-ins/ > > --enable-force-freetype1 --with-wmclient > > --with-org=/usr/local/bin > > --with-tiff=/usr/local/include > > --with-ming=/usr/include > > --with-curl-config=/usr/local/bin > > --with-httpd=/usr/sbin/httpd > > --with-php=/usr/local/include/php/main > > --with-libiconv=/usr/local/lib > > ******************************************************* > > > > And then, when I run make, the follow error is showed. > > > > ********************************************************* > > . > > . > > . > > ./libmap.a(mapswf.o)(.text+0x488e): In function > > `msFreeImageSWF': > > : referencia a `destroySWFMovie' sin definir > > ./libmap.a(mapswf.o)(.text+0x4a01): In function > > `msDrawVectorLayerAsRasterSWF': > > : referencia a `SWFMovie_add' sin definir > > ./libmap.a(mapswf.o)(.text+0x1478): In function > > `AddMouseActions': > > : referencia a `SWFButton_addAction' sin definir > > collect2: ld devolvi? el estado de salida 1 > > make: *** [shp2img] Error 1 > > ********************************************************* > > > > What`s happen? You need libming 0.2a not the latest version 0.3, otherway mapserver doesn't compile. Best regards, Romolo Manfredini From mszpak at WP.PL Sat Oct 30 08:54:37 2004 From: mszpak at WP.PL (=?ISO-8859-2?Q?Marcin_Zaj=B1czkowski?=) Date: Sat, 30 Oct 2004 17:54:37 +0200 Subject: CLASS in raster layer (Was: Mapscript - problem with binary grid (ADF)) In-Reply-To: <4182BE7B.5090601@pobox.com> Message-ID: Dnia 2004-10-30 00:04, U?ytkownik Frank Warmerdam napisa?: (...) > Other than that, I would suggest reducing your mapscript to just load the > file and render it. Thanks for reply. In fact this post was written by man who works with mapscript in our project. He was unable to subscribe mapserver mailing list (I had some problems too). Unfortunately this guy moved for few days and now it's my problem to make it works. As You adviced I prepared small .map file and mapscript is able to display grids. After next few hours I discovered that the problem is with CLASS in raster layer. When there is created any CLASS, raster layer isn't displayed (in fact it's displayed in white). When I change COLOR then whole layer has COLOR color. To prepare legend (with ability to turn on/off layers) is used layer->numclasses what is logical, because some vector layers has few classes which has to be showed separate. So my actual question is: how can I create class in raster layer and keep ability to display this layer on map? Regards Marcin From warmerdam at POBOX.COM Sat Oct 30 08:59:02 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 30 Oct 2004 11:59:02 -0400 Subject: Mapscript - problem with binary grid (ADF) In-Reply-To: <4183B89F.3030300@wp.pl> Message-ID: Marcin Zaj?czkowski wrote: > Dnia 2004-10-30 00:04, U?ytkownik Frank Warmerdam napisa?: > (...) > >> Other than that, I would suggest reducing your mapscript to just load the >> file and render it. > > > Thanks for reply. In fact this post was written by man who works with > mapscript in our project. He was unable to subscribe mapserver mailing > list (I had some problems too). Unfortunately this guy moved for few > days and now it's my problem to make it works. > As You adviced I prepared small .map file and mapscript is able to > display grids. After next few hours I discovered that the problem is > with CLASS in raster layer. When there is created any CLASS, raster > layer isn't displayed (in fact it's displayed in white). When I change > COLOR then whole layer has COLOR color. > To prepare legend (with ability to turn on/off layers) is used > layer->numclasses what is logical, because some vector layers has few > classes which has to be showed separate. > > So my actual question is: how can I create class in raster layer and > keep ability to display this layer on map? Marcin, In fact there is no way to let MapServer do "regular" rendering of a raster layer if there are any classes. If there are classes, they are used to color the raster. As I understand it, you were creating a class on the layer in an effort to introduce a legend entry, is that right? Lots of folks run into the same issue and I think we need a different way of introducing legend entries. I have add mapserver-users back into the address since some of this information could be of use to others. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From bartvde at XS4ALL.NL Sat Oct 30 09:04:10 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 30 Oct 2004 18:04:10 +0200 Subject: CLASS in raster layer (Was: Mapscript - problem with binary grid (ADF)) In-Reply-To: <4183B93D.9070500@wp.pl> Message-ID: Hi, did you already read the Raster HOWTO document? http://mapserver.gis.umn.edu/doc42/raster-howto.html In short, here is an example: CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] < 64) NAME "less than 64" COLOR 0 0 0 END CLASS EXPRESSION ([pixel] >= 64 AND [pixel] < 128) NAME "64 to 128" COLOR 255 0 0 END Best regards, Bart On Sat, 30 Oct 2004 17:54:37 +0200, Marcin Zaj?czkowski wrote: > Dnia 2004-10-30 00:04, U?ytkownik Frank Warmerdam napisa?: > (...) >> Other than that, I would suggest reducing your mapscript to just load >> the >> file and render it. > > Thanks for reply. In fact this post was written by man who works with > mapscript in our project. He was unable to subscribe mapserver mailing > list (I had some problems too). Unfortunately this guy moved for few > days and now it's my problem to make it works. > As You adviced I prepared small .map file and mapscript is able to > display grids. After next few hours I discovered that the problem is > with CLASS in raster layer. When there is created any CLASS, raster > layer isn't displayed (in fact it's displayed in white). When I change > COLOR then whole layer has COLOR color. > To prepare legend (with ability to turn on/off layers) is used > layer->numclasses what is logical, because some vector layers has few > classes which has to be showed separate. > > So my actual question is: how can I create class in raster layer and > keep ability to display this layer on map? > > Regards > Marcin > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From mszpak at WP.PL Sat Oct 30 09:48:29 2004 From: mszpak at WP.PL (=?ISO-8859-2?Q?Marcin_Zaj=B1czkowski?=) Date: Sat, 30 Oct 2004 18:48:29 +0200 Subject: Mapscript - problem with binary grid (ADF) In-Reply-To: <4183BA46.5040103@pobox.com> Message-ID: Dnia 2004-10-30 17:59, U?ytkownik Frank Warmerdam napisa?: > Marcin Zaj?czkowski wrote: (...) >> As You adviced I prepared small .map file and mapscript is able to >> display grids. After next few hours I discovered that the problem is >> with CLASS in raster layer. When there is created any CLASS, raster >> layer isn't displayed (in fact it's displayed in white). When I change >> COLOR then whole layer has COLOR color. >> To prepare legend (with ability to turn on/off layers) is used >> layer->numclasses what is logical, because some vector layers has few >> classes which has to be showed separate. >> >> So my actual question is: how can I create class in raster layer and >> keep ability to display this layer on map? > > In fact there is no way to let MapServer do "regular" rendering of a raster > layer if there are any classes. If there are classes, they are used to > color the raster. > > As I understand it, you were creating a class on the layer in an effort to > introduce a legend entry, is that right? Lots of folks run into the same > issue and I think we need a different way of introducing legend entries. Sadly to hear. I would try to change legend code to check is it raster layer and treats it as one "object" and in case of vector checks all classes. But now I think crumble it to class level was logical mistake, because I'm not able (am I right?) to turn off specific class, only layer. So checks map->numlayers should be enough. Maybe there is another (better) technique to make legends in mapscript? Regards Marcin From mszpak at WP.PL Sat Oct 30 09:50:19 2004 From: mszpak at WP.PL (=?UTF-8?B?TWFyY2luIFphasSFY3prb3dza2k=?=) Date: Sat, 30 Oct 2004 18:50:19 +0200 Subject: CLASS in raster layer (Was: Mapscript - problem with binary grid (ADF)) In-Reply-To: Message-ID: Dnia 2004-10-30 18:04, U?ytkownik Bart van den Eijnden napisa?: > Hi, > > did you already read the Raster HOWTO document? (...) Yes, I read it. But in my case raster has its own colors (it's something like hipsometrial map (map contains level of ground - I don't know how it is in English)) and I wouldn't have to defines these levels on my own. I wanted to declare it (class) only to use in legend. Regards Marcin From mj at SCI.FI Sat Oct 30 11:40:08 2004 From: mj at SCI.FI (Mike Jackson) Date: Sat, 30 Oct 2004 21:40:08 +0300 Subject: changing case in labelitem Message-ID: Hi, In my data source of populated areas, the names are in all capital letters, and I don't want to modify the data. I would like to output them as first letter capital and the rest lowercase. Is this possible with Mapserver 4.2.3, or newer? If so, then provide an example, please :-) Thanks, Mike From bartvde at XS4ALL.NL Sat Oct 30 10:11:44 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 30 Oct 2004 19:11:44 +0200 Subject: CLASS in raster layer (Was: Mapscript - problem with binary grid (ADF)) In-Reply-To: <4183C64B.1000704@wp.pl> Message-ID: Hi Marcin, okay then I misunderstood your question ... I ran into the same problem in August 2004 (the thread is called raster legends). Paul Spencer then suggested using KEYIMAGE but I never gave it a try. BTW: a shame you can't google the new listserv for the Mapserver mailing list (or am I missing something?), I even don't know if linking to a message will work, I'll give it a try though: This was the thread I am referring to: http://lists.umn.edu/cgi-bin/wa?A2=ind0408&L=MAPSERVER-USERS&P=R22522&1=MAPSERVER-USERS&9=A&I=-3&K=1&X=4DF77A0FB4B347177B&Y=bartvde at xs4all.nl&d=no+match;match;matches&z=4 Best regards, Bart On Sat, 30 Oct 2004 18:50:19 +0200, Marcin Zaj?czkowski wrote: > Dnia 2004-10-30 18:04, U?ytkownik Bart van den Eijnden napisa?: >> Hi, >> >> did you already read the Raster HOWTO document? > (...) > > Yes, I read it. But in my case raster has its own colors (it's something > like hipsometrial map (map contains level of ground - I don't know how > it is in English)) and I wouldn't have to defines these levels on my > own. I wanted to declare it (class) only to use in legend. > > Regards > Marcin > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From mszpak at WP.PL Sat Oct 30 13:45:18 2004 From: mszpak at WP.PL (=?UTF-8?B?TWFyY2luIFphasSFY3prb3dza2k=?=) Date: Sat, 30 Oct 2004 22:45:18 +0200 Subject: CLASS in raster layer (Was: Mapscript - problem with binary grid (ADF)) In-Reply-To: Message-ID: Dnia 2004-10-30 19:11, U?ytkownik Bart van den Eijnden napisa?: (...) > I ran into the same problem in August 2004 (the thread is called raster > legends). Paul Spencer then suggested using KEYIMAGE but I never gave it > a try. I tried it. KEYIMAGE has to be in CLASS and we return to start point. Actually I paint icons in legend only for shapes (Class->createLegendIcon()). For rasters there is only text read from METADATA. Maybe I add custom image painted via GD or image read from file (via METADATA). It will depend on final maps which will had to displayed (and solutions which I will find :) ). > BTW: a shame you can't google the new listserv for the Mapserver > mailing list (or am I missing something?), I even don't know if linking > to a message will work, I'll give it a try though: I agree wtih You. To look into list archive user has to be logged in. I don't know why it's required. If it's protection against SPAM then I think that modified/hidden email address is less painful. > This was the thread I am referring to: > > http://lists.umn.edu/cgi-bin/wa?A2=ind0408&L=MAPSERVER-USERS&P=R22522&1=MAPSERVER-USERS&9=A&I=-3&K=1&X=4DF77A0FB4B347177B&Y=bartvde at xs4all.nl&d=no+match;match;matches&z=4 I have to modified it with my email address, but finally I've got content. Thanks You both for help Marcin From pdymecki at SYMPATICO.CA Sat Oct 30 16:08:50 2004 From: pdymecki at SYMPATICO.CA (Paul Dymecki) Date: Sat, 30 Oct 2004 19:08:50 -0400 Subject: binaries for windows Message-ID: Hi, I was wondering if anyone has a compiled binaries for Mapserver4.2.3 on Windows? thx, Paul From romoloman at HOTMAIL.COM Fri Oct 29 14:58:34 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Fri, 29 Oct 2004 23:58:34 +0200 Subject: Interlaced reference maps Message-ID: Hi, I'm encountering some problem with reference maps, I have a reference map which is an uninterlaced png image, whatever setting I place in the mapfile, mapserver 4.2.2 > 4.2.5 generates a interlaced reference file. The same thing happens if called by php/mapscript. I'm using libgd 2.0.28 with gif support enabled. Did anyone got the same problem ? Best Regards, Romolo Manfredini -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Sun Oct 31 01:39:31 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 31 Oct 2004 09:39:31 +0100 Subject: CLASS in raster layer (Was: Mapscript - problem with binary grid (ADF)) In-Reply-To: <4183FD5E.5080908@wp.pl> Message-ID: Hi Marcin, I have opened up an enhancement bug to discuss this for a future Mapserver release ( hopefully :) ), see: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1015 Best regards, Bart On Sat, 30 Oct 2004 22:45:18 +0200, Marcin Zaj?czkowski wrote: > Dnia 2004-10-30 19:11, U?ytkownik Bart van den Eijnden napisa?: > (...) >> I ran into the same problem in August 2004 (the thread is called raster >> legends). Paul Spencer then suggested using KEYIMAGE but I never gave it >> a try. > > I tried it. KEYIMAGE has to be in CLASS and we return to start point. > Actually I paint icons in legend only for shapes > (Class->createLegendIcon()). For rasters there is only text read from > METADATA. Maybe I add custom image painted via GD or image read from > file (via METADATA). It will depend on final maps which will had to > displayed (and solutions which I will find :) ). > >> BTW: a shame you can't google the new listserv for the Mapserver >> mailing list (or am I missing something?), I even don't know if linking >> to a message will work, I'll give it a try though: > > I agree wtih You. To look into list archive user has to be logged in. I > don't know why it's required. If it's protection against SPAM then I > think that modified/hidden email address is less painful. > >> This was the thread I am referring to: >> >> http://lists.umn.edu/cgi-bin/wa?A2=ind0408&L=MAPSERVER-USERS&P=R22522&1=MAPSERVER-USERS&9=A&I=-3&K=1&X=4DF77A0FB4B347177B&Y=bartvde at xs4all.nl&d=no+match;match;matches&z=4 > > I have to modified it with my email address, but finally I've got > content. > > Thanks You both for help > Marcin > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From humberto at PASTORALDACRIANCA.ORG.BR Sun Oct 31 11:13:01 2004 From: humberto at PASTORALDACRIANCA.ORG.BR (Humberto Cereser Ibanez) Date: Sun, 31 Oct 2004 13:13:01 -0600 Subject: make libgdal.la Message-ID: Humberto Cereser Ibanez wrote: > the make of mapserver-4.2.5, configured as: > > ./configure > --with-gd=/usr/local > --with-proj=/usr/local > --with-gdal=/usr/local/src/gdal-1.2.3/apps/gdal-config > --with-freetype=/usr/local/bin/freetype-config > --with-ogr=/usr/local/src/gdal-1.2.3/apps/gdal-config > --with-xpm=/usr/X11R6 > --with-php=/usr/local/src/php-4.3.8 > --with-pdf=/usr/local > --with-postgis=/usr/local/pgsql/bin/pg_config > > retorns this error: > > /usr/local/src/gdal-1.2.3/libgdal.la: file not recognized: File format not > recognized > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > libgdal.la atached. > > Any sugestion? Humberto, I believe you can work around this problem either by configuring and building GDAL without libtool (the .la file is a pseudo-library file only understood by libtool), or by acutally doing a "make install" of GDAL into /usr/local, and using the /usr/local/bin/gdal-config instead of the one "in the source tree". Generally I advise against trying to use GDAL directly from it's build tree. While I have tried to make this option work, it is fraught with perils. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent Thanks Frank, I just replaced the path for gdal-config to /user/local/bin/ and the make executes fine. Humberto Cereser Ibanez Pastoral da Crian?a Curitiba - PR From jmckenna at DMSOLUTIONS.CA Sun Oct 31 12:06:34 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sun, 31 Oct 2004 15:06:34 -0500 Subject: binaries for windows In-Reply-To: <003101c4bed5$6ad19c90$7b45fea9@paul> Message-ID: Hi Paul, maptools.org contains binaries for v4.2.5 and 4.4.0-beta1 at http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html jeff Paul Dymecki wrote: > Hi, > I was wondering if anyone has a compiled binaries for Mapserver4.2.3 on > Windows? > thx, > Paul > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From nasirmaan at HOTMAIL.COM Sun Oct 31 15:24:05 2004 From: nasirmaan at HOTMAIL.COM (nasir maan) Date: Sun, 31 Oct 2004 23:24:05 +0000 Subject: PHP/Mapscript problem! Message-ID: An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Sun Oct 31 15:37:08 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sun, 31 Oct 2004 18:37:08 -0500 Subject: PHP/Mapscript problem! In-Reply-To: Message-ID: it sounds like mapscript cannot find some dlls....make sure you place all of the associated dlls for your mapscript version (libpq.dll, gdal.dll,...) in your system32 folder. You can use the depends utility to see what dlls are missing for php_mapscript_40.dll (http://www.dependencywalker.com/). jeff nasir maan wrote: > Hi, > > I have installed PHP 4.3.9, Apache 2.0 and MapServer 4.0 properly but > when I copy PHP_Mapscript_40.dll in extensions folder of PHP4, I get > this error: > > *Warning*: dl(): Unable to load dynamic library > 'c:\php4\extensions\php_mapscript_40.dll' - The specified module could > not be found. in *c:\phpweb\test.php* on line *5* > > *against this code* > > * * > > * > dl("php_mapscript_40.dll"); > phpinfo(); > ?> > Can someone tell me how to fix it? Thanks alot in advance.* > > *Regards, * > Mahmood, Nasir > > *J.-G.-NATHUSIUS-RING 1/408 * > *39106, Magdeburg* > *Germany.* > *Phone: +49-391-2428300 (Home)* > * +49-176-24211916 (Mobile)* > * * > > > ------------------------------------------------------------------------ > Express yourself instantly with MSN Messenger! MSN Messenger > Download today it's FREE! -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca

<\/td><\/tr><\/table>'); r.document.close(); var f = document.forms('viewmap'); f.w.value = r.clip.width; f.h.value = r.clip.height; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.visibility = 'visible' r.style.width = evt.clientX - parseInt(r.style.left) - 2 + 'px'; r.style.height = evt.clientY - parseInt(r.style.top) - 2 + 'px'; var ht = document.getElementById('h'); var wt = document.getElementById('w'); wt.value = r.style.width; ht.value = r.style.height; } } function stopRubber (evt) { if (document.layers){document.releaseEvents(Event.MOUSEMOVE);} document.onmousemove = null; } Regards. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From leo at ENNEAD.COM Tue Oct 26 22:43:44 2004 From: leo at ENNEAD.COM (Leo Dolan) Date: Wed, 27 Oct 2004 01:43:44 -0400 Subject: Can't figure ItemQuery Out Message-ID: Ryan, Thanks, I think I finally cracked it. It was actually a problem with the extent. I had thought that the "shapes" clause would search all shapes, but this didn't seem to be the case. I had also tried the extent of the map earlier in the "mapext" field, but got the order wrong (since I used the same order from the map file, and not minx, miny, maxx, maxy). Once I fixed the extent, and then with the regular expressions you suggested below, all is working perfectly now. Thanks again for the suggestion! -Leo ----- Original Message ----- From: "Ryan, Adam" To: "Leo Dolan" ; Sent: Tuesday, October 26, 2004 5:21 PM Subject: RE: [UMN_MAPSERVER-USERS] Can't figure ItemQuery Out > > Leo, > > On a lark, try it as a regular expression: > > ('[A1RENUM]' =~ /^33768-000-000$/) > > Adam > > -----Original Message----- > From: Leo Dolan [mailto:leo at ENNEAD.COM] > Sent: Tuesday, October 26, 2004 12:50 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Can't figure ItemQuery Out > > > I've been working on this all day and can't seem to figure it out. > > I'm on Mapserver v 4.2 on Windows. Here is the Mapfile: > > MAP > NAME "CRA 2000" > STATUS ON > SIZE 600 420 > IMAGECOLOR 230 230 230 > IMAGETYPE PNG24 > EXTENT 1518976.125000 454307.531250 1565951.625000 426016.062500 > SHAPEPATH "shapefiles/parcels2000" > > WEB > TEMPLATE "printable.html" > IMAGEPATH "tmp/" # full path to image tmp dir, so cgi can find it > IMAGEURL "tmp/" # url location of image tmp dir, so web browser can find > it > END # Web Interface Options > > QUERYMAP > STATUS ON > STYLE SELECTED > COLOR 255 255 0 > END > > ############################# > # Start of layer definitions > > > #---------------------------------------------------------------------- > > LAYER # start of the "main" layer object > NAME "2000_Bay_County" > DATA parcels2000 > STATUS ON > TYPE POLYGON > > TEMPLATE "parcels2000_query.html" > HEADER "parcels2000_header.html" > FOOTER "parcels2000_footer.html" > > CLASS > NAME "Bay County 2000 Parcels" > OUTLINECOLOR 0 204 0 > END > > END # end of layer object > #---------------------------------------------------------------------- > END # Map File > > > And here is the form that submits a test query: > >
> > > > > > > >
> > Anytime I submit this, however, I get the following message: > > msQueryByAttributes(): Search returned no results. No matching record(s) > found. > > I've tried multiple variations, such as type in the parameters into the URL, > eliminating the qitem value and passing qstring as > ('[A1RENUM]'='33768-000-000'), etc. I know that there is a value in the > parameters table for '33768-000-000', and I've tried other values for it, > and other fields to try and query against with no succes. If somebody > knows what I'm doing wrong, I would appreciate being pointed in the right > direction. Thanks in advance! > > Sincerely, > > Leo T. Dolan > From normanb at COMSINE.CO.UK Wed Oct 27 04:11:01 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Wed, 27 Oct 2004 12:11:01 +0100 Subject: workshop error Message-ID: Hi, I expect it is me, but I have compiled the nightly build of MapServer and everything works. I have installed the WorkShop with the Itasca data to test the installation of MapServer but I get getString(): Symbol definition error. Duplicate item (NAME):(line 446) when I click on the Basic Application option Any help would be great Thanks, Norman From normanb at COMSINE.CO.UK Wed Oct 27 06:21:51 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Wed, 27 Oct 2004 14:21:51 +0100 Subject: WCS Map file Message-ID: Hi, could someone send me an example of a map file to use the development WCS please, in particular I am looking to serve DEMs. I got MapServer to compile, so thanks for all your help with this. Many thanks, Norman From tylermitchell at SHAW.CA Wed Oct 27 06:54:26 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 27 Oct 2004 06:54:26 -0700 Subject: workshop error In-Reply-To: <417F8245.4080108@comsine.co.uk> Message-ID: That's not much fun is it? Let's have a look at your .map file. I suspect that the same symbol is defined twice somehow. This is an unmodified download of the workshop dataset? Tyler On October 27, 2004 04:11 am, Norman Barker wrote: > Hi, > > I expect it is me, but I have compiled the nightly build of MapServer > and everything works. > > I have installed the WorkShop with the Itasca data to test the > installation of MapServer > but I get > > getString(): Symbol definition error. Duplicate item (NAME):(line 446) > > when I click on the Basic Application option > > Any help would be great > > Thanks, > > Norman From nicolas.fortin at EC.GC.CA Wed Oct 27 07:44:12 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 27 Oct 2004 10:44:12 -0400 Subject: [UMN_MAPSERVER-USERS] query on oraclespatial using OGR/OCI Message-ID: Hi Fernando, I'm glad to hear it! I hope someone will compile the 4.4.0 version with this new oracle support ... for windows. If someone compile it as said above, I'd be glad to know about it. Good works!! Nicolas PS: Thanks to Jane Gehan and Kari A. Geurts who helped me solve my posting problem. -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU ] De la part de FERNANDO SIMON Envoy? : Friday, October 22, 2004 2:57 PM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] query on oraclespatial using OGR/OCI Hi Javier, Yes, "the querys" are working correctly now, I tested the query functions with cgi mode an mapscript functions and both kinds work correctly. The query support is finished, now I'm working with others supports for the oraclespatial. So I believe that the querry support will be include in the next version of mapserver. Thank's for the help. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Quoting Javier Castillejo Montes : > Hi Fernando, > > I understand that you did some work on the mapserver files and now, > your queries are working? > > As Pierre knows I'm using mapserver with oracle spatial and my next > step is "The Queries".... If you need any help do not hesitate to told > me. I'm starting with "The Queries" work, but I will try to help. > > I think that I'm going to use php to generate the queries. It isn't > the best way, but, for now, Is the only way I know. > > THanks > > > > > > > -----Mensaje original----- > De: Fernando S. [mailto:simon at INF.UNIVALI.BR ] > Enviado el: jueves, 21 de octubre de 2004 18:31 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: Re: [UMN_MAPSERVER-USERS] query on oraclespatial using OGR/OCI > > > Hi Pierre, > The query functions can be possible in the next version of the > Oracle Spatial support. I implemented these functions here in my > computer and I believe that this functions will be include in the next > version of native support. > I don't know how the OGR implement the query function but this > problem appear when you use functions that use the primary filter like > SDO_FILTER. > Here the problem disappear when I recreate the indexes without > SDO_LEVEL. Another point is the tolerance, you can try set a small > value for Tolerance like 0.00001. > > ---------------------------------------------------------------- > Fernando Simon - simon at inf.univali.br > Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br > ---------------------------------------------------------------- > > > bluecarto at free.fr wrote: > > >First question : how can you query oracle layers if you don't use OGR > >? I > mean > >the function are not implemented for oraclespatial connectiontype. > > > >I had already try you suggestion (ommitting the SDO_LEVEL parameter). > >That > could > >be a good idea, but, sadly, it doesn't give any better result. > > > >I'm using Oracle 10g on Debian or Oracle 9.2 on RedHat. > > > >In my sample the result given seem to be the first record in the > >table. > > > >Regards > > > >Pierre > > > >Selon FERNANDO SIMON : > > > > > > > >>Hi Pierre, > >> I don't use OGR but your problem can be with the spatial index. > >>I saw this problem with the 10G version. > >> In the 10G version the Oracle don't recommend use SDO_LEVEL when you > >>create > >>the spatial index. In my tests problems appears when I set the SDO_LEVEL, > the > >>result doesn't correspond whant I expected. > >> I don't know if the problem occur with others Oracle Spatial > versions. > >>But > >>you can try with or without SDO_LEVEL. > >> > >> > >>---------------------------------------------------------------- > >>Fernando Simon - simon at inf.univali.br > >>Mapserver and Oracle Spatial developer > >>G10 - Laboratorio de Computacao Aplicada > >>http://g10.cttmar.univali.br > >>---------------------------------------------------------------- > >> > >> > >>Quoting Pierre GIRAUD : > >> > >> > >> > >>> I'm still having difficulties to use mapserver queries on a oracle > layer. > >>> Before I report a bug, I would like someone to test the following > >>>SQL statement and mapfile, and agree that something is going wrong, > >>>or tell me I am missing > >>>something obvious. > >>> > >>> Thx > >>> > >>> Pierre GIRAUD > >>> camptocamp.com > >>> > >>>---------SQL statement-------------- > >>>DROP table mytable; > >>> > >>>CREATE TABLE MYTABLE ( > >>> GID VARCHAR(20), > >>> geometry MDSYS.SDO_GEOMETRY); > >>> > >>> > >>> > >>>insert into MYTABLE (GID,GEOMETRY) values ( > >>> '1', > >>> mdsys.sdo_geometry( > >>> '2003', > >>> null, > >>> null, > >>> mdsys.sdo_elem_info_array(1,1003,1), > >>> mdsys.sdo_ordinate_array(1,1, 1,4, 4,4, 4,1, 1,1)) > >>>); > >>> > >>>insert into MYTABLE (GID,GEOMETRY) values ( > >>> '2', > >>> mdsys.sdo_geometry( > >>> '2003', > >>> null, > >>> null, > >>> mdsys.sdo_elem_info_array(1,1003,1), > >>> mdsys.sdo_ordinate_array(6,1, 6,4, 9,4, 9,1, 6,1)) > >>>); > >>> > >>>insert into MYTABLE (GID,GEOMETRY) values ( > >>> '3', > >>> mdsys.sdo_geometry( > >>> '2003', > >>> null, > >>> null, > >>> mdsys.sdo_elem_info_array(1,1003,1), > >>> mdsys.sdo_ordinate_array(1,6, 1,9, 9,9, 9,6, 1,6)) > >>>); > >>> > >>>delete from user_sdo_geom_metadata where table_name like 'MYTABLE'; > >>> > >>>insert into user_sdo_geom_metadata > >>>(table_name,column_name,diminfo,srid) > >>>values ('MYTABLE','GEOMETRY', > >>>mdsys.SDO_DIM_ARRAY(mdsys.SDO_DIM_ELEMENT('X', 0, 10, 0.1), > >>>mdsys.SDO_DIM_ELEMENT('Y', 0, 10, 0.1)), > >>>NULL); > >>> > >>>drop index q_mytable; > >>> > >>>create index Q_MYTABLE on MYTABLE(GEOMETRY) indextype is > >>>MDSYS.spatial_index parameters ('SDO_LEVEL=6'); > >>> > >>>---------mapfile--------------- > >>>NAME DEMO > >>>STATUS ON > >>>SIZE 500 300 > >>>EXTENT 0 0 10 10 > >>>IMAGECOLOR 255 255 255 > >>> > >>> > >>>WEB > >>> IMAGEPATH "/var/www/images/" > >>> IMAGEURL "images/" > >>>END > >>> > >>>LAYER > >>> NAME squares > >>> TYPE POLYGON > >>> STATUS ON > >>># CONNECTIONTYPE oraclespatial > >>># CONNECTION "scott/tiger at orcl" > >>> CONNECTION "OCI:scott/tiger at orcl" > >>> CONNECTIONTYPE OGR > >>># DATA "select * from mytable" > >>> DATA "mytable" > >>> TEMPLATE "ttt" > >>> CLASS > >>> SIZE 10 > >>> COLOR 255 255 255 > >>> OUTLINECOLOR 200 200 200 > >>> END > >>>END > >>> > >>>END > >>> > >>> > >>> > >>>Selon bluecarto at free.fr: > >>> > >>> > >>> > >>>> Hello, > >>>> > >>>>Following the good advices of Frank Warmerdam, I improve in using > oracle > >>>>spatial > >>>>data with spatial indexes. For now, I know that I should not use > >>>>sql statements in the mapfile but queries directly to the table : > >>>> > >>>> DATA "my_table" > >>>>instead of > >>>> DATA "select * from my_table" > >>>> > >>>>Both return the same images. Shapes are well drawn, and labeling > >>>>is > >>>> > >>>> > >>>correct. > >>> > >>> > >>>>But the first (more performant) statement doesn't give good > >>>>results to > a > >>>>query. > >>>>The data returned doesn't correspond to what is expected. And no > >>>>shape > is > >>>>highlighted. > >>>> > >>>>Do someone using Oracle have same problems ? > >>>> > >>>>Pierre GIRAUD > >>>>camptocamp.com > >>>> > >>>> > >>>> > >>>> > >> > >> > >>------------------------------------------------ > >>Este e-mail foi enviado pelo webmail do curso de > >> Ci?ncia da Computa??o - UNIVALI > >> > >> > >> > > > > > > > > > ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.riff at CERENE.FR Wed Oct 27 08:24:34 2004 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Wed, 27 Oct 2004 17:24:34 +0200 Subject: Mapscript remove class from layer Message-ID: Hello, I want to delete a class from a layer but i don't know how to proceed, Does someone know ??? Thanks From teb at MALLIT.FR.UMN.EDU Wed Oct 27 08:41:35 2004 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Wed, 27 Oct 2004 10:41:35 -0500 Subject: WMS/WCS article Message-ID: Common Pitfalls When Analyzing WMS/WFS Capabilities http://directionsmag.com/article.php?article_id=686 Might be of interest to some. Tom From bwragg at TPG.COM.AU Wed Oct 27 09:04:46 2004 From: bwragg at TPG.COM.AU (Benjamin Wragg) Date: Thu, 28 Oct 2004 02:04:46 +1000 Subject: No subject Message-ID: --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 14/10/2004 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at DMSOLUTIONS.CA Wed Oct 27 13:19:55 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 27 Oct 2004 16:19:55 -0400 Subject: Compile-Error 4.3-nightly on SuSE In-Reply-To: <417BF269.3090908@ccgis.de> Message-ID: Benjamin Thelen wrote: > > But isn't there then a problem running mapserver below 4.4 and mapserver > 4.4 on the same system? I removed libiconv-1.9.2, did not supply > "--with-libiconv=/user/local" and had the following on ./configure(ing) > mapserver. > > 4.0.2/4.2.5 > > > checking for libiconv_open in -liconv... no > libiconv library cannot be found, possibly needed for GD > In 4.2, we were checking for -liconv only in case GD was compiled with an external iconv and needed it to link with MapServer. If your were able to execute your mapserv binary then don't worry about this message: your GD didn't require -liconv and you are not missing any functionality. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Wed Oct 27 13:46:30 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 27 Oct 2004 16:46:30 -0400 Subject: MapServer compile error In-Reply-To: <417CE237.8060901@comsine.co.uk> Message-ID: Norman Barker wrote: > > There is a previous version of gd in /usr/lib, /usr/include, but I can't > get the rpm removed because of dependencies. > Just removing the "gd-devel" RPM would be enough (leave the base "gd" RPM there). Existing apps will continue to work and that should solve your build issues. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From steve.lime at DNR.STATE.MN.US Wed Oct 27 14:23:12 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 27 Oct 2004 16:23:12 -0500 Subject: WCS Map file Message-ID: Norman: You can see my WCS demo application at: http://maps.dnr.state.mn.us/mapserver_demos/wcs Just open the demo.html file to fire it up. You can also see the demo.map mapfile. The demo uses temporally tiled images so is a bit more complex than need be, but you should get the idea. I'm working on the "howto" now. Steve >>> Norman Barker 10/27/2004 8:21:51 AM >>> Hi, could someone send me an example of a map file to use the development WCS please, in particular I am looking to serve DEMs. I got MapServer to compile, so thanks for all your help with this. Many thanks, Norman From steve.lime at DNR.STATE.MN.US Wed Oct 27 14:30:03 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 27 Oct 2004 16:30:03 -0500 Subject: build shape file Message-ID: You bet, look here: http://www.dnr.state.mn.us/mis/gis/tools/arcview/extensions/DNRGarmin/DNRGarmin.html It says you need ArcView but there is a standalone VB program that may be of interest. Steve >>> joerg p 10/26/2004 9:50:06 AM >>> hello, I would like to build a shapefile out of my garmin tracks. Is there a tool? Thanks Joerg From dmorissette at DMSOLUTIONS.CA Wed Oct 27 14:38:45 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 27 Oct 2004 17:38:45 -0400 Subject: getLegendGraphic - GD Library Error In-Reply-To: <417E1C7E.9040703@ccgis.de> Message-ID: Astrid Emde wrote: > Hello, > > wenn I send my getLegendGraphic-Request I get the following error: > > msDrawLegend(): GD library error. Unable to initialize image. > msImageCreateGD(): Image handling error. Cannot create GD image of size > 60 x 0. > > Does anyone know, what can be wrong? How can I solve the problem? > Is this using the 4.4.0-beta1? If not then the first thing to do would be to try 4.4.0-beta1. I tried hacking together a quick mapfile using your layer and legend definitions to reproduce this with your URL but I don't get this error. I do get a legend with one item on it. I'll attach my test mapfile, you may want to try it at your end. If you still get this error with the latest version then perhaps you could file a bug with a small testcase to reproduce and one of us can have a look (your testcase should include mapfile, symbolset and fontset, but data shouldn't be needed). Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: testlegend.map URL: From pcreso at PCRESO.COM Wed Oct 27 16:02:25 2004 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 27 Oct 2004 16:02:25 -0700 Subject: Novice help with raster In-Reply-To: <200410271541.i9RFfZ5X012478@mallit.fr.umn.edu> Message-ID: More help wanted, please.... I have a geotiff which looks very nice colour, except when rendered bt mapserver, when I get a grayscale image on screen. Now that my mapfile displays the vector shapefiles OK, I'm looking at rasters. Some background: The vector data includes elevation contours, coastline & spot heights. I have turned all these into a DEM (grid) & used GMT to draw a hillshade. I use Imagemagick to turn the GMT postscript file into a tif image. As I know the resolution of the image and the extent, it is simple to create a world file & use gdal to turn it into a geotif. The geotif is georeferenced well, & displays in the correct location, overlaid with roads, rivers, etc... in both QGIS & mapserver. (Looks very pretty) In mapserver, however, I get a grayscale image. The geotiff is a 1024x1024 pixel image, colour depth 16. As per the raster how-to, I have checked mapserver & gdal for gtiff support & it seems fine. I assume if it wasn't I wouldn't even get the grayscale output. Any suggestions as to how I can get mapserver to render it in colour? Thanks, Brent Wood From joe at OTSYS.COM Wed Oct 27 16:02:01 2004 From: joe at OTSYS.COM (Joseph Bussell) Date: Wed, 27 Oct 2004 16:02:01 -0700 Subject: display lines and polygons which cross the international date line Message-ID: Greetings Listers, Has anyone made any progress with the display of lines and polygons which cross the international date line? Cordially, Joe Bussell On Time Systems From stephen.clark at FOCUS.CA Wed Oct 27 17:01:35 2004 From: stephen.clark at FOCUS.CA (Stephen Clark) Date: Wed, 27 Oct 2004 17:01:35 -0700 Subject: Fw: Point in Polygon Message-ID: ----- Original Message ----- From: Stephen Clark To: Richard_Murphy at adp.com Cc: mapserver-users at lists.gis.umn.edu Sent: Wednesday, October 27, 2004 4:35 PM Subject: Re: Point in Polygon Richard, I did some work with PHP mapscript to do point in polygon searches. You should consult the mapserver list for more comments regarding PERL scripts to do this. Stephen ----- Original Message ----- From: Richard_Murphy at adp.com To: stephen.clark at focus.ca Sent: Wednesday, October 27, 2004 11:22 AM Subject: FW: Stephen, Hi, I was searching for a script like this and stumbled across this thread and I was wondering if you would be so kind as to forward it along? Any help would be much appreciated. Thanks! Richard Murphy -----Original Message----- From: Murphy, Richard Sent: Tuesday, October 26, 2004 5:22 PM To: eric at gomoos.org Subject: Eric, I was on the web looking for perl gis resources and found the below usergroup message. I am also looking for a way to to a PIP analysis from perl. Would you be willing to send your script(s) my way? Any help would be appreciated!! Thanks. -- Richard Charles Richard Murphy Jr. ADP Tax Credit Services 404.602.3448 richard_murphy at adp.com Subject: [Mapserver-users] Point in polygon ? a.. From: stephen.clark at focus.ca (Stephen Clark) b.. Date: Tue, 28 Oct 2003 09:17:26 -0800 c.. References: <002301c39d71$d1a76660$6c000a0a at sclark> <1067339149.1512.12.camel at ubet.gomoos.org> ------------------------------------------------------------------------------ Yes that would be nice. thanks,Stephen ----- Original Message ----- From: "Eric Bridger" To: "Stephen Clark" Cc: "Mapserver List" Sent: Tuesday, October 28, 2003 3:05 AMSubject: Re: [Mapserver-users] Point in polygon ? > I have done this using Perl mapscript and a polygon shape file.> I'd be glad to send you the code if you are interested in that approach.>> Eric>>> On Tue, 2003-10-28 at 16:37, Stephen Clark wrote:> > Hello all,> >> > Does anyone use a Point in polygon approach in conjuction withmapserver?> >> > I have a set of points and I would like to know if it is inside apolygon> > which is composed of a number of points.> >> >> > Any suggestions?> >> > thanks,> > Stephen> >> > _______________________________________________> > Mapserver-users mailing list> > Mapserver-users at lists.gis.umn.edu> > http://lists.gis.umn.edu/mailman/listinfo/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From yecarrillo at YAHOO.COM Wed Oct 27 18:17:23 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Wed, 27 Oct 2004 20:17:23 -0500 Subject: php+yaz+metadata Message-ID: Has somebody experienced with php/yaz extension to query z39.50 clearinghouse servers to request metadata? I found something at http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0407/msg00867.html with no answers. Thank You Eduin Yesid Carrillo Vega GIS Manager Corporaci?n Aut?noma Regional de Santander CAS yecarrillo at cas.gov.co ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From warmerdam at POBOX.COM Wed Oct 27 18:39:57 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 27 Oct 2004 21:39:57 -0400 Subject: Novice help with raster In-Reply-To: <20041027230225.5338.qmail@web12201.mail.yahoo.com> Message-ID: Brent Wood wrote: > The geotiff is a 1024x1024 pixel image, colour depth 16. Brent, Just what exactly do you mean by a color depth of 16? 16 colors in a colormap or a 16bit single band image with 64K colors? A 16bit greyscale image that you would like to have colors applied to? Could you provide a tiffinfo and/or gdalinfo report on the file in question? MapServer doesn't have any support for applying color ramps to images. You could assign classes with colors for a bunch of value ranges but to get a nice ramp you would need to do several dozen classes. It is often better in cases like this to pre-convert the image to 8bit externally, applying a color ramp. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Wed Oct 27 18:48:28 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 27 Oct 2004 21:48:28 -0400 Subject: display lines and polygons which cross the international date line In-Reply-To: <418028E9.5080009@otsys.com> Message-ID: Joseph Bussell wrote: > Greetings Listers, > Has anyone made any progress with the display of lines and polygons > which cross the international date line? Joe, It depends over what time scale you mean. There was work done in October of 2001 (gee, it didn't seem like it was so long ago) to avoid having cross-dateline polygons and lines get drawn "across the world". I don't think there has been any vector side improvements on anti-meridian issues since then. There was some work done more recently on the raster side. I did setup a wiki topic at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WorldMappingIssues to discuss anti-meridian and global scale mapping issues. Please feel free to add notes there and/or file a bug for any problems you encounter that you think are solvable. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From pcreso at PCRESO.COM Wed Oct 27 19:12:45 2004 From: pcreso at PCRESO.COM (Brent Wood) Date: Wed, 27 Oct 2004 19:12:45 -0700 Subject: Novice help with raster In-Reply-To: <41804DED.1010301@pobox.com> Message-ID: --- Frank Warmerdam wrote: > Brent Wood wrote: > > The geotiff is a 1024x1024 pixel image, colour depth 16. > > Brent, > > Just what exactly do you mean by a color depth of 16? 16 colors in a > colormap or a 16bit single band image with 64K colors? A 16bit greyscale > > image that you would like to have colors applied to? > > Could you provide a tiffinfo and/or > gdalinfo report on the file in question? > I can indeed (& thanks for your help & patience!) gdalinfo output below baw at a64:~/wgtn_topo> gdalinfo test_geo.tif Driver: GTiff/GeoTIFF Size is 1024, 1024 Coordinate System is `' Origin = (174.599756,-41.000220) Pixel Size = (0.00048828,-0.00043945) Metadata: TIFFTAG_DOCUMENTNAME=test.tif TIFFTAG_IMAGEDESCRIPTION=Image generated by ESP Ghostscript (device=ppmraw) TIFFTAG_SOFTWARE=ImageMagick 5.5.7 04/06/04 Q16 http://www.imagemagick.org TIFFTAG_XRESOLUTION=72 TIFFTAG_YRESOLUTION=72 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 174.5997559, -41.0002197) Lower Left ( 174.5997559, -41.4502196) Upper Right ( 175.0997556, -41.0002197) Lower Right ( 175.0997556, -41.4502196) Center ( 174.8497557, -41.2252197) Band 1 Block=1024x8 Type=Byte, ColorInterp=Red Band 2 Block=1024x8 Type=Byte, ColorInterp=Green Band 3 Block=1024x8 Type=Byte, ColorInterp=Blue baw at a64:~/wgtn_topo> With all my normal image viewing packages, this displays in colour, just the output from mapsever is grayscale, whether I have png, png24 or jpeg output. The layer info for the geotiff image layer from the map file is: ... LAYER NAME test_geo DATA "/home/baw/wgtn_topo/test_geo.tif" TYPE RASTER STATUS DEFAULT CLASS NAME "Test_geo" # TEMPLATE END END ... I have tried it with a: PROCESSING "BANDS-1,1,3" entry after "TYPE RASTER" but get the error message: msDrawMap(): Image handling error. Failed to draw layer named 'test_geo'. drawGDAL(): Unable to access file. Attempt to classify 24bit image, this is unsupported. If it would be useful I can send you the geotiff, bzipped up it is 1Mb.. Thanks, Brent From warmerdam at POBOX.COM Wed Oct 27 19:31:45 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 27 Oct 2004 22:31:45 -0400 Subject: Novice help with raster In-Reply-To: <20041028021245.29966.qmail@web12201.mail.yahoo.com> Message-ID: Brent Wood wrote: > LAYER > NAME test_geo > DATA "/home/baw/wgtn_topo/test_geo.tif" > TYPE RASTER > STATUS DEFAULT > CLASS > NAME "Test_geo" > # TEMPLATE > END > END Brent, Thee is nothing wrong with the file. The problem is that by including a CLASS statement in the layer definition the whole rendering process switches to a classification based scheme. I am not sure why you even see the image in greyscale. There must be some sort of fallback colortable. But as soon as numclasses>0 the renderer switches to using only one band, and a colormap to render with. You get a different report with PROCESSING "BANDS=1,2,3" because the rendering code recognises an inconsistency between specifically requesting 3 bands, and asking to use image classification (single band only). In the default case it just ignores extra bands and uses the first. So, just blow that CLASS away. What was it intended to accomplish? Populate a legend or something? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From norbert.thieme at ILMENAU.BAW.DE Thu Oct 28 00:01:13 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Thu, 28 Oct 2004 09:01:13 +0200 Subject: Can anyone check WMS getCapabilities with SDE datasource? In-Reply-To: <6.1.2.0.2.20041026110450.01dd6838@hobu.mail.iastate.edu> Message-ID: Howard Butler schrieb: > Norbert, > > I was able to confirm the same problem on my end and have committed a > patch to CVS that appears to fix it. Again, the problem was related > to a layer variable that was uninitialized and was attempting to be > freed. Beta2 will have this patch if you can't try CVS for some reason. > > Howard > > Howard, I just downloaded the nightly build and now it works. Great - thank you very much. Best regards, Norbert From info at GEO-IT.COM Thu Oct 28 00:04:11 2004 From: info at GEO-IT.COM (GeoIT) Date: Thu, 28 Oct 2004 09:04:11 +0200 Subject: SWIGMapscript: layerObj.queryByPoint using point in image coordin ates Message-ID: Dear experts, As stated in SWIGMapscriptReference layerObj.queryByPoint needs a point in map coordinates to work. This seems to be true because it does not find any object if I use a point in image coordinates even if using a very large buffer. So how do I transform a point from image coordinates to map coordinates ? Is there another way to do a query by a point directly using a point in image coordinates ? Many thanks in advance ! regards Andreas Paukner-Ruzicka ************************************************************************* Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ************************************************************************* From mhln25 at YAHOO.COM Thu Oct 28 01:25:46 2004 From: mhln25 at YAHOO.COM (Mahalakshmi Narayanan) Date: Thu, 28 Oct 2004 01:25:46 -0700 Subject: Thanks to you all.. In-Reply-To: <9138808AB827D311B56800E018900A61177A4E@gdppdc.gdp.com> Message-ID: Dear list First of all, let me thank the developers and the active user list for their excellent contribution towards open source GIS. Ours is a premier IT organization under Ministry of IT, Govt of India with Head Quarters at Delhi. We had recently hosted an open source GIS workshop at Chennai which was inaugurated by our GIS head Dr Vandana Sharma. Participants included a few GIS representatives from 5-6 states across the country. It was successful in bringing the awareness to our own people on the availability of many open source tools for GIS. I had also presented our OSS-GIS initiatives at Chennai during DISNIC workshops at Thiruvananthapuram, Kerala and Geography Dept, Madurai Kamaraj University in Tamil Nadu. We had also conducted OSS-GIS awareness workshop at Geography Dept, Madras University. I hope now many heads would turn towards Open Source software and especially MapServer/PostGIS. I would like to express my sincere thanks to one and all of you for your contribution. My special thanks to Mrs Gayathri Swaminathan, Oklahama University for sharing her PPT on WMS/WFS features with MapServer during our workshop. I would like to know further on the following: 1. Is there any open source tool available for datawarehousing? if so some links would be appreciated. 2. Has anyone combined datawarehousing/datamining techniques with GIS using opens source tools? 3. Is there any tool to convert shape file to indexed tab file? ogr2ogr does convert shapefile to tab file but the resultant tab file requires to be indexed on specific fields. This I don't know how to do. If somebody could throw some light on this, it would be of great help to us. Thanking you in advance.. with regards, Mahalakshmi Narayanan __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail From olaf.czogalla at IFAK-MD.DE Thu Oct 28 01:26:10 2004 From: olaf.czogalla at IFAK-MD.DE (Czogalla, Olaf) Date: Thu, 28 Oct 2004 10:26:10 +0200 Subject: PIXMAP symbols don't appear Message-ID: Dear Mapserver users, recently we upgraded to Mapserver 4.0.2 and Mapscript 1.177.2.1 w/ PHP version 4.3.1 from an ancient version (PHP 4.0.5 Mapserver 3.4) being aware that this was quite a big step. Currently I'm struggling to get our maps running again, line and polygon shapes are working fine. One of the major problems instead is caused by PIXMAP symbols for point shapes. As the annotation labels for each point show up the symbol image is missing. The symbol is a small PNG file. Assuming palette problems I have tried to use 256 colors and RGB colors for the symbol in combination with both IMAGEMODE PC256 and RGB for the map image. Neither combination works so far. Although using a simple vector symbol for the point shape from symbols.sym does work. The relating file snippets look like this: symbols.sym: --------------- SYMBOL Name 'baustelle' Type PIXMAP Image 'images/baustelle.png' END The map file: --------------- OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END . . LAYER MAXSCALE 25000 NAME Baustelle TYPE POINT STATUS on DATA baust LABELITEM 'period_end' CLASSITEM 'period_end' CLASS SYMBOL 'baustelle' SIZE 24 LABEL FORCE true POSITION UC TYPE TRUETYPE FONT trebuchet_ms-italic SIZE 10 OUTLINECOLOR 255 255 255 COLOR 0 0 255 OFFSET 0 -38 ANTIALIAS ON END END END Any ideas that give me directions are greatly appreciated. Does size of the symbol matter? Kind regards Olaf Czogalla Institut f. Automation und Kommunikation Steinfeldstr. 3 D-39179 Barleben Phone +49 39203 810 49 Fax +49 39203 811 00 Email Olaf.Czogalla at ifak-md.de WGS84: 52.1964?N 11.5986?E From normanb at COMSINE.CO.UK Thu Oct 28 03:33:10 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Thu, 28 Oct 2004 11:33:10 +0100 Subject: WCS ResX ResY Message-ID: Hi, thanks Steve L and Frank W for all your help, the WCS is working well. However when I use the RESX and RESY keywords in the http request, so for GTOPO30 I use RESX=300 and RESY=300 the base resolution I get msWCSGetCoverage(): WCS server error. A non-zero RESX/RESY or WIDTH/HEIGHT is required but neither was provided. any ideas? Many thanks, it works well. Norman From warmerdam at POBOX.COM Thu Oct 28 05:29:06 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 28 Oct 2004 08:29:06 -0400 Subject: WCS ResX ResY In-Reply-To: <4180CAE6.6040209@comsine.co.uk> Message-ID: Norman Barker wrote: > Hi, > > thanks Steve L and Frank W for all your help, the WCS is working well. > However when I use the RESX and RESY keywords in the http > request, so for GTOPO30 I use RESX=300 and RESY=300 the > base resolution I get > > msWCSGetCoverage(): WCS server error. A non-zero RESX/RESY or > WIDTH/HEIGHT is required but neither was provided. Norman, I think the problem is that the resolution is used to compute a resolution but your whole database is only 360x180 so 180/300 rounds to zero. Keep in mind that when your dataset is in geographic coordinates the resolution is going to be in degrees, not meters. So, try something like RESX=0.0027&RESY=0.0027. That should give you a resolution of approximately 300m. Also, you should correct your resolution metadata in your .map file accordingly. I noticed it was misdeclared last night but forgot to mention 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 | Geospatial Programmer for Rent From warmerdam at POBOX.COM Thu Oct 28 05:42:59 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 28 Oct 2004 08:42:59 -0400 Subject: Thanks to you all.. In-Reply-To: <20041028082546.91336.qmail@web50410.mail.yahoo.com> Message-ID: Mahalakshmi Narayanan wrote: > 1. Is there any open source tool available for > datawarehousing? if so some links would be > appreciated. Hi, I don't know too much about data warehousing. In my mind it is equated with holding all the data in a big database. Perhaps you could be more specific about the datawarehousing capabilities you need for those of us not to "up" on such IT terms. > 3. Is there any tool to convert shape file to indexed > tab file? ogr2ogr does convert shapefile > > to tab file but the resultant tab file requires to be > indexed on specific fields. This I don't know how to > do. If somebody could throw some light on this, it > would be of great help to us. There is support in the MITAB library for indexing attribute fields but the OGR library doesn't utilize it. You could potentially write a small standalone utility using MITAB to index fields, or we could work together to add proper indexing support to the OGR MITAB driver. Ironically, the OGR Shapefile driver actually uses the MITAB attribute indexing support to build .dbf indexes in the mapinfo format. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From mike.mannomann at GMX.NET Thu Oct 28 08:04:57 2004 From: mike.mannomann at GMX.NET (Mike) Date: Thu, 28 Oct 2004 10:04:57 -0500 Subject: logical expression for itemquery Message-ID: Hi, I am using MS for quite a while demo is running fine with my own data. The only thing I have not been able to do, is a an itemquery with an expression using two items like CITY = "x" AND STREET = "y" with an zooming to the selected feature. The layer is called EUROPE I have been trying and trying no way to find someone to help me. I only can query using one item, and I have no idea to set an query wiht that kind of expression. Here is the part of my template, which is working only with one of the two qitems. --------------------------------------- Browse map
ATTR_ABFRAGE

1 2 Hello, I want to write new map layers on the fly in my scripting. I have found the reference to "new layerObj()" in the documentation, but am unsure of how to write the exact syntax. Haven't had any luck with "new_layer=layerObj(mapObj)". Any help greatly appreciated. Bill From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Oct 28 08:47:14 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Thu, 28 Oct 2004 11:47:14 -0400 Subject: 4.4-Beta1 Questions Message-ID: Hello, I'm starting to look at and evaluate 4.4 as an upgrade from 3.6.6 (Yup, I'm still using it, works so well!), and I just have a couple of questions ... 1) Is FastCGI deemed stable and reliable in 4.4 ? I'd LOVE to use it. 2) If I use FastCGI, I need it thread safe enough? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection Natural Resources Canada / Ressources naturelles Canada http://atlas.gc.ca Tel./T?l. : (613) 992-4902 Fax: (613) 947-2410 From ARyan at CO.LINN.OR.US Thu Oct 28 10:03:54 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 28 Oct 2004 10:03:54 -0700 Subject: Creation of layer object in Python Maps cript Message-ID: > -----Original Message----- > From: Bill Hudspeth [mailto:bhudspeth at EDAC.UNM.EDU] > Sent: Thursday, October 28, 2004 8:56 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Creation of layer object in > Python Mapscript > > > Hello, > > I want to write new map layers on the fly in my scripting. I > have found the reference to "new layerObj()" in the > documentation, but am unsure of how to write the exact > syntax. Haven't had any luck with "new_layer=layerObj(mapObj)". > > Any help greatly appreciated. > > Bill > Hi Bill, I'm working on the same thing 'bout now. For me, this crashes Python: layerO = mapscript.layerObj(mapO) But this works OK: layerO = mapscript.layerObj() mapO.insertLayer(layerO) However, if I then check layerO.index, I get 1634300513. That's a lot of layers. If I check mapO.getLayersDrawingOrder(), I get _30fc8200_p_int. Is this a typemap issue? If I try layerO.promote() or layerO.demote(), I'm told those methods don't exist. I'm still trying to figure this one out. Let me know if you make any headway. Adam From sgillies at FRII.COM Thu Oct 28 10:14:48 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 28 Oct 2004 11:14:48 -0600 Subject: Creation of layer object in Python Maps cript In-Reply-To: Message-ID: On Oct 28, 2004, at 11:03 AM, Ryan, Adam wrote: >> -----Original Message----- >> From: Bill Hudspeth [mailto:bhudspeth at EDAC.UNM.EDU] >> Sent: Thursday, October 28, 2004 8:56 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Creation of layer object in >> Python Mapscript >> >> >> Hello, >> >> I want to write new map layers on the fly in my scripting. I >> have found the reference to "new layerObj()" in the >> documentation, but am unsure of how to write the exact >> syntax. Haven't had any luck with "new_layer=layerObj(mapObj)". >> >> Any help greatly appreciated. >> >> Bill >> > > Hi Bill, > > I'm working on the same thing 'bout now. > For me, this crashes Python: > > layerO = mapscript.layerObj(mapO) > > But this works OK: > > layerO = mapscript.layerObj() > mapO.insertLayer(layerO) > > However, if I then check layerO.index, I get 1634300513. That's a lot > of > layers. > > If I check mapO.getLayersDrawingOrder(), I get _30fc8200_p_int. Is > this a > typemap issue? > > If I try layerO.promote() or layerO.demote(), I'm told those methods > don't > exist. > > I'm still trying to figure this one out. Let me know if you make any > headway. > > Adam > > Which version of mapserver are y'all using? Sean From lists at WEBMAPIT.COM.BR Thu Oct 28 09:22:54 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 28 Oct 2004 14:22:54 -0200 Subject: which MapServer controls to use? Message-ID: Hi folks, I'm looking for a non-java-applet solution for using as widget navigation controls ... such as zoom, pan, info, rule, etc... What do you suggest? best -- Eduardo Patto Kanegae http://www.webmapit.com.br Treinamento & Consultoria em UMN MapServer e FreeGIS Software UIN: 303747254 +55(16)9994-2928 ***Fim da Mensagem / End of Message *** From ARyan at CO.LINN.OR.US Thu Oct 28 10:25:24 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 28 Oct 2004 10:25:24 -0700 Subject: Creation of layer object in Python Maps cript Message-ID: > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Thursday, October 28, 2004 10:15 AM > To: Ryan, Adam > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Creation of layer object in Python Maps cript > > > On Oct 28, 2004, at 11:03 AM, Ryan, Adam wrote: > > >> -----Original Message----- > >> From: Bill Hudspeth [mailto:bhudspeth at EDAC.UNM.EDU] > >> Sent: Thursday, October 28, 2004 8:56 AM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] Creation of layer object in Python > >> Mapscript > >> > >> > >> Hello, > >> > >> I want to write new map layers on the fly in my scripting. I have > >> found the reference to "new layerObj()" in the > documentation, but am > >> unsure of how to write the exact syntax. Haven't had any luck with > >> "new_layer=layerObj(mapObj)". > >> > >> Any help greatly appreciated. > >> > >> Bill > >> > > > > Hi Bill, > > > > I'm working on the same thing 'bout now. > > For me, this crashes Python: > > > > layerO = mapscript.layerObj(mapO) > > > > But this works OK: > > > > layerO = mapscript.layerObj() > > mapO.insertLayer(layerO) > > > > However, if I then check layerO.index, I get 1634300513. > That's a lot > > of > > layers. > > > > If I check mapO.getLayersDrawingOrder(), I get _30fc8200_p_int. Is > > this a > > typemap issue? > > > > If I try layerO.promote() or layerO.demote(), I'm told those methods > > don't > > exist. > > > > I'm still trying to figure this one out. Let me know if > you make any > > headway. > > > > Adam > > > > > > Which version of mapserver are y'all using? > > Sean > I pulled mapscript-4.4.0_beta1.win32-py2.3.exe from Howard Butler's http://hobu.stat.iastate.edu/mapserver/build_output/beta_4_4_0/ site. Adam From bartvde at XS4ALL.NL Thu Oct 28 10:23:28 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 28 Oct 2004 19:23:28 +0200 Subject: which MapServer controls to use? In-Reply-To: <41811CDE.3030300@webmapit.com.br> Message-ID: Hi Eduardo, I would suggest using Chameleon: http://www.maptools.org/chameleon/index.phtml Best regards, Bart On Thu, 28 Oct 2004 14:22:54 -0200, Eduardo Patto Kanegae wrote: > Hi folks, > > I'm looking for a non-java-applet solution for using as widget > navigation controls ... such as zoom, pan, info, rule, etc... > > What do you suggest? > > best > > -- > Eduardo Patto Kanegae > http://www.webmapit.com.br > Treinamento & Consultoria em UMN MapServer e FreeGIS Software > UIN: 303747254 > +55(16)9994-2928 > > ***Fim da Mensagem / End of Message *** > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From yaoheling at YAHOO.COM Thu Oct 28 10:19:23 2004 From: yaoheling at YAHOO.COM (Yao Heling) Date: Thu, 28 Oct 2004 10:19:23 -0700 Subject: Creation of layer object in Python Mapscript Message-ID: On Thu, Oct 28, 2004 at 09:55:45AM -0600, Bill Hudspeth wrote: > Hello, > > I want to write new map layers on the fly in my scripting. I have found > the reference to "new layerObj()" in the documentation, but am unsure of > how to write the exact syntax. Haven't had any luck with > "new_layer=layerObj(mapObj)". > > Any help greatly appreciated. > > Bill > Try the following to get a new layer (I dont' know if this is the correct way to do it though): map1 = mapscript.mapObj() new_layer = mapscript.layerObj(map1) Hope that helps, Joseph H. Yao __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From steve.lime at DNR.STATE.MN.US Thu Oct 28 10:40:11 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 28 Oct 2004 12:40:11 -0500 Subject: OT: Google buys Keyhole... Message-ID: Off topic a bit, but may be of interest to a few folks... http://www.google.com/press/pressrel/keyhole.html Steve From ARyan at CO.LINN.OR.US Thu Oct 28 11:07:34 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 28 Oct 2004 11:07:34 -0700 Subject: Creation of layer object in Python Maps cript Message-ID: > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Thursday, October 28, 2004 10:15 AM > To: Ryan, Adam > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Creation of layer object in Python Maps cript > > > On Oct 28, 2004, at 11:03 AM, Ryan, Adam wrote: > > >> -----Original Message----- > >> From: Bill Hudspeth [mailto:bhudspeth at EDAC.UNM.EDU] > >> Sent: Thursday, October 28, 2004 8:56 AM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: [UMN_MAPSERVER-USERS] Creation of layer object in Python > >> Mapscript > >> > >> > >> Hello, > >> > >> I want to write new map layers on the fly in my scripting. I have > >> found the reference to "new layerObj()" in the > documentation, but am > >> unsure of how to write the exact syntax. Haven't had any luck with > >> "new_layer=layerObj(mapObj)". > >> > >> Any help greatly appreciated. > >> > >> Bill > >> > > > > Hi Bill, > > > > I'm working on the same thing 'bout now. > > For me, this crashes Python: > > > > layerO = mapscript.layerObj(mapO) > > > > But this works OK: > > > > layerO = mapscript.layerObj() > > mapO.insertLayer(layerO) > > > > However, if I then check layerO.index, I get 1634300513. > That's a lot > > of > > layers. > > > > If I check mapO.getLayersDrawingOrder(), I get _30fc8200_p_int. Is > > this a > > typemap issue? > > > > If I try layerO.promote() or layerO.demote(), I'm told those methods > > don't > > exist. > > > > I'm still trying to figure this one out. Let me know if > you make any > > headway. > > > > Adam > > > > > > Which version of mapserver are y'all using? > > Sean > OK, The new layer is appended so it's index is mapO.numlayers-1 even though it's index parameter is foobar. And although promote and demote don't seem to be in mapscript.py, we can use mapO.moveLayerDown(index), so that's cool... Adam From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Oct 28 11:14:37 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Thu, 28 Oct 2004 14:14:37 -0400 Subject: Problems with FastCGI in 4.4-beta1 Message-ID: Hello, I'm trying to get the FactCGI version working, but am not having any luck: [Thu Oct 28 14:45:40 2004] [notice] Apache/1.3.31 (Unix) mod_fastcgi/2.4.2 configured -- resuming normal operations [Thu Oct 28 14:45:40 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) [Thu Oct 28 14:45:44 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" (pid 9471) terminated by calling exit with status '1' [Thu Oct 28 14:45:44 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" restarted (pid 9478) [Thu Oct 28 14:45:50 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" (pid 9478) terminated by calling exit with status '1' [Thu Oct 28 14:45:50 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" restarted (pid 9480) [Thu Oct 28 14:45:57 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" (pid 9480) terminated by calling exit with status '1' [Thu Oct 28 14:45:57 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" restarted (pid 9481) [Thu Oct 28 14:46:04 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" (pid 9481) terminated by calling exit with status '1' [Thu Oct 28 14:46:04 2004] [warn] FastCGI: server "/usr/local/apache/cgi-bin/mapserv" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds [Thu Oct 28 14:46:41 2004] [error] [client 132.156.4.96] FastCGI: comm with server "/usr/local/apache/cgi-bin/mapserv" aborted: idle timeout (30 sec) [Thu Oct 28 14:46:41 2004] [error] [client 132.156.4.96] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache/cgi-bin/mapserv" [Thu Oct 28 14:48:36 2004] [error] [client 132.156.4.96] FastCGI: comm with server "/usr/local/apache/cgi-bin/mapserv" aborted: idle timeout (30 sec) [Thu Oct 28 14:48:36 2004] [error] [client 132.156.4.96] FastCGI: incomplete headers (0 bytes) received from server "/usr/local/apache/cgi-bin/mapserv" This exact same behavior was observed twice in a row. MapServer is indeed linked to the fcgi library: libfcgi.so.0 => /usr/local/lib/libfcgi.so.0 (0x00168000) I was using the Apache config directive: FastCgiServer cgi-bin/mapserv Where the mapserv executable was in apache's default cgi-bin directory. I'm on CentOS (RHEL 3), with apache 1.3.31 and FastCGI 2.4.2 ... Anybody else tried this yet? Any success? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection Natural Resources Canada / Ressources naturelles Canada http://atlas.gc.ca Tel./T?l. : (613) 992-4902 Fax: (613) 947-2410 From simon at INF.UNIVALI.BR Thu Oct 28 10:26:38 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Thu, 28 Oct 2004 15:26:38 -0200 Subject: Problems with FastCGI in 4.4-beta1 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7706@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Hi Jean, You can try pass the "-idle-timeout 300" after the "FastCgiConfig" in your httpd.conf. Thank's ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Jean-Francois Doyon wrote: >Hello, > >I'm trying to get the FactCGI version working, but am not having any luck: > >[Thu Oct 28 14:45:40 2004] [notice] Apache/1.3.31 (Unix) mod_fastcgi/2.4.2 >configured -- resuming normal operations >[Thu Oct 28 14:45:40 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) >[Thu Oct 28 14:45:44 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9471) terminated by calling exit >with status '1' >[Thu Oct 28 14:45:44 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" restarted (pid 9478) >[Thu Oct 28 14:45:50 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9478) terminated by calling exit >with status '1' >[Thu Oct 28 14:45:50 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" restarted (pid 9480) >[Thu Oct 28 14:45:57 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9480) terminated by calling exit >with status '1' >[Thu Oct 28 14:45:57 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" restarted (pid 9481) >[Thu Oct 28 14:46:04 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9481) terminated by calling exit >with status '1' >[Thu Oct 28 14:46:04 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" has failed to remain running for 30 >seconds given 3 attempts, its restart interval has been backed off to 600 >seconds >[Thu Oct 28 14:46:41 2004] [error] [client 132.156.4.96] FastCGI: comm with >server "/usr/local/apache/cgi-bin/mapserv" aborted: idle timeout (30 sec) >[Thu Oct 28 14:46:41 2004] [error] [client 132.156.4.96] FastCGI: incomplete >headers (0 bytes) received from server "/usr/local/apache/cgi-bin/mapserv" >[Thu Oct 28 14:48:36 2004] [error] [client 132.156.4.96] FastCGI: comm with >server "/usr/local/apache/cgi-bin/mapserv" aborted: idle timeout (30 sec) >[Thu Oct 28 14:48:36 2004] [error] [client 132.156.4.96] FastCGI: incomplete >headers (0 bytes) received from server "/usr/local/apache/cgi-bin/mapserv" > >This exact same behavior was observed twice in a row. > >MapServer is indeed linked to the fcgi library: libfcgi.so.0 => >/usr/local/lib/libfcgi.so.0 (0x00168000) > >I was using the Apache config directive: > >FastCgiServer cgi-bin/mapserv > >Where the mapserv executable was in apache's default cgi-bin directory. > >I'm on CentOS (RHEL 3), with apache 1.3.31 and FastCGI 2.4.2 ... > >Anybody else tried this yet? Any success? > >Thanks, > >Jean-Fran?ois Doyon >Internet Service Development and Systems Support / Sp?cialiste de >d?veloppements internet et soutien technique >Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection >Natural Resources Canada / Ressources naturelles Canada >http://atlas.gc.ca >Tel./T?l.: (613) 992-4902 >Fax: (613) 947-2410 > > > From simon at INF.UNIVALI.BR Thu Oct 28 10:30:46 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Thu, 28 Oct 2004 15:30:46 -0200 Subject: Problems with FastCGI in 4.4-beta1 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7706@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Hi Jean, You can try pass the "-idle-timeout 300" after the "FastCgiConfig" in your httpd.conf. Thank's ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Jean-Francois Doyon wrote: >Hello, > >I'm trying to get the FactCGI version working, but am not having any luck: > >[Thu Oct 28 14:45:40 2004] [notice] Apache/1.3.31 (Unix) mod_fastcgi/2.4.2 >configured -- resuming normal operations >[Thu Oct 28 14:45:40 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) >[Thu Oct 28 14:45:44 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9471) terminated by calling exit >with status '1' >[Thu Oct 28 14:45:44 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" restarted (pid 9478) >[Thu Oct 28 14:45:50 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9478) terminated by calling exit >with status '1' >[Thu Oct 28 14:45:50 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" restarted (pid 9480) >[Thu Oct 28 14:45:57 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9480) terminated by calling exit >with status '1' >[Thu Oct 28 14:45:57 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" restarted (pid 9481) >[Thu Oct 28 14:46:04 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" (pid 9481) terminated by calling exit >with status '1' >[Thu Oct 28 14:46:04 2004] [warn] FastCGI: server >"/usr/local/apache/cgi-bin/mapserv" has failed to remain running for 30 >seconds given 3 attempts, its restart interval has been backed off to 600 >seconds >[Thu Oct 28 14:46:41 2004] [error] [client 132.156.4.96] FastCGI: comm with >server "/usr/local/apache/cgi-bin/mapserv" aborted: idle timeout (30 sec) >[Thu Oct 28 14:46:41 2004] [error] [client 132.156.4.96] FastCGI: incomplete >headers (0 bytes) received from server "/usr/local/apache/cgi-bin/mapserv" >[Thu Oct 28 14:48:36 2004] [error] [client 132.156.4.96] FastCGI: comm with >server "/usr/local/apache/cgi-bin/mapserv" aborted: idle timeout (30 sec) >[Thu Oct 28 14:48:36 2004] [error] [client 132.156.4.96] FastCGI: incomplete >headers (0 bytes) received from server "/usr/local/apache/cgi-bin/mapserv" > >This exact same behavior was observed twice in a row. > >MapServer is indeed linked to the fcgi library: libfcgi.so.0 => >/usr/local/lib/libfcgi.so.0 (0x00168000) > >I was using the Apache config directive: > >FastCgiServer cgi-bin/mapserv > >Where the mapserv executable was in apache's default cgi-bin directory. > >I'm on CentOS (RHEL 3), with apache 1.3.31 and FastCGI 2.4.2 ... > >Anybody else tried this yet? Any success? > >Thanks, > >Jean-Fran?ois Doyon >Internet Service Development and Systems Support / Sp?cialiste de >d?veloppements internet et soutien technique >Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection >Natural Resources Canada / Ressources naturelles Canada >http://atlas.gc.ca >Tel./T?l.: (613) 992-4902 >Fax: (613) 947-2410 > > > From zhou_naijun at HOTMAIL.COM Thu Oct 28 12:24:16 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Thu, 28 Oct 2004 14:24:16 -0500 Subject: queryByRect? Message-ID: Hi, I'm new to the mapserver. I have a question of queryByRect and getting query results. My php script is like: $ms = ms_newMapObj($map); $aRect = ms_newRectObj(); $aRect->setextent(minx, miny, maxx, maxy);//the extent of georeference $selectLayer = $ms->getLayerByName(layer_name); $q_success = $selectLayer->queryByRect($aRect); if ($q_success == MS_SUCCESS) { $numResult = $selectedLayer->getNumResults(); $results = $selectLayer->getResult(0);//get the first query result } The queryByRect is success. But I got an error message of the getNumResults(): Fatal error: Call to a member function on a non-object in myscript.php on line 26 Does anyone knows why? Is that because an error in the mapfile, or Thanks a lot! Naijun From zhou_naijun at HOTMAIL.COM Thu Oct 28 12:26:45 2004 From: zhou_naijun at HOTMAIL.COM (N Zhou) Date: Thu, 28 Oct 2004 14:26:45 -0500 Subject: queryByRect Message-ID: Hi, I'm sorry if this message is sent twice because I had a network connection problem. I have a question of queryByRect and getting query results. My php script is like: $ms = ms_newMapObj($map); $aRect = ms_newRectObj(); $aRect->setextent(minx, miny, maxx, maxy);//the extent of georeference $selectLayer = $ms->getLayerByName(layer_name); $q_success = $selectLayer->queryByRect($aRect); if ($q_success == MS_SUCCESS) { $numResult = $selectedLayer->getNumResults(); $results = $selectLayer->getResult(0);//get the first query result } The queryByRect is success. But I got an error message of the getNumResults(): Fatal error: Call to a member function on a non-object in myscript.php on line 26 Does anyone knows why? Is that because an error in the mapfile, or Thanks a lot! Naijun From dmorissette at DMSOLUTIONS.CA Thu Oct 28 12:33:52 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 28 Oct 2004 15:33:52 -0400 Subject: queryByRect In-Reply-To: Message-ID: N Zhou wrote: > > $ms = ms_newMapObj($map); > $aRect = ms_newRectObj(); > $aRect->setextent(minx, miny, maxx, maxy);//the extent of georeference > $selectLayer = $ms->getLayerByName(layer_name); > $q_success = $selectLayer->queryByRect($aRect); > if ($q_success == MS_SUCCESS) { > $numResult = $selectedLayer->getNumResults(); > $results = $selectLayer->getResult(0);//get the first query result > } > > The queryByRect is success. But I got an error message of the > getNumResults(): > > Fatal error: Call to a member function on a non-object in myscript.php > on line 26 > The error tells you that $selectedLayer is not an object and you cannot call a method on it... that's because the $selectedLayer variable is not set... it's a typo, it should be $selectLayer. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From warmerdam at POBOX.COM Thu Oct 28 12:34:01 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 28 Oct 2004 15:34:01 -0400 Subject: Problems with FastCGI in 4.4-beta1 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7706@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Jean-Francois Doyon wrote: > Hello, > > I'm trying to get the FactCGI version working, but am not having any luck: > > [Thu Oct 28 14:45:40 2004] [notice] Apache/1.3.31 (Unix) mod_fastcgi/2.4.2 > configured -- resuming normal operations > [Thu Oct 28 14:45:40 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) > [Thu Oct 28 14:45:44 2004] [warn] FastCGI: server > "/usr/local/apache/cgi-bin/mapserv" (pid 9471) terminated by calling exit > with status '1' ... > Where the mapserv executable was in apache's default cgi-bin directory. > > I'm on CentOS (RHEL 3), with apache 1.3.31 and FastCGI 2.4.2 ... > > Anybody else tried this yet? Any success? JF, I am locally working with it on FC2 with Apache2. It looks like mapserv is terminating with an exit(1) somewhere somewhat early. Does the mapserv work properly in plain cgi-mode? The same executable build should operate in either mode. I usually like to start by debugging in plain cgi mode to verify that works, and then invoke it in fastcgi mode. Also, are you using it in WMS or "traditional mapserver" mode? Currently only WMS is formally supported. I do hope to fix up traditional mode though. > I'm starting to look at and evaluate 4.4 as an upgrade from 3.6.6 (Yup, I'm > still using it, works so well!), and I just have a couple of questions ... > > 1) Is FastCGI deemed stable and reliable in 4.4 ? I'd LOVE to use it. I think we would have to consider it an experimental feature in 4.4 since it is so new. But I am keen to fix any problems. I'd love you to use it, and point out problems! BTW, are you interested in FastCGI primarily for database connection preservation or what? I think that is the main case where it offers a substantial performance boost. > 2) If I use FastCGI, I need it thread safe enough? FastCGI with the main mapserver executable is effectively single threaded. Each fastcgi process accepts one request at a time, and finishes it before accepting another. Several fastcgi processes can run at the same time of course. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Oct 28 13:05:21 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Thu, 28 Oct 2004 16:05:21 -0400 Subject: Problems with FastCGI in 4.4-beta1 Message-ID: Frank, Well, first of all, I'm actually mostly interested in the regular CGI mode, so that's a buzz kill for me :) I'll keep it in mind though, might still be nice for WMS, though in our case the CGI version gets far heavier use than our WMS. My test was calling mapserv without any parameters, just for testing, especting the standard "no query set" error message. The FastCGI compiled version works just fine in standard CGI mode. I too was rather intrigued by the fact that the process seemed to keep dying unexpectedly, something rather hard to track down. Although, now that you mention the WMS thing, could it be that the simple fact that I was using non WMS requests was causing problem. Under your current implementation, what is the expected behavior if a non-WMS request comes in through FastCGI ? I'll try a more complex configuration along the lines of what Paul suggested in the mean time. Honestly I don't NEED it, but I'm always glad to get the extra performance anywhere I can, and this should normally be pretty straightforward to setup :P thanks, J.F. -----Original Message----- From: Frank Warmerdam [mailto:warmerdam at pobox.com] Sent: October 28, 2004 3:34 PM To: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Problems with FastCGI in 4.4-beta1 Jean-Francois Doyon wrote: > Hello, > > I'm trying to get the FactCGI version working, but am not having any luck: > > [Thu Oct 28 14:45:40 2004] [notice] Apache/1.3.31 (Unix) mod_fastcgi/2.4.2 > configured -- resuming normal operations > [Thu Oct 28 14:45:40 2004] [notice] Accept mutex: sysvsem (Default: sysvsem) > [Thu Oct 28 14:45:44 2004] [warn] FastCGI: server > "/usr/local/apache/cgi-bin/mapserv" (pid 9471) terminated by calling exit > with status '1' ... > Where the mapserv executable was in apache's default cgi-bin directory. > > I'm on CentOS (RHEL 3), with apache 1.3.31 and FastCGI 2.4.2 ... > > Anybody else tried this yet? Any success? JF, I am locally working with it on FC2 with Apache2. It looks like mapserv is terminating with an exit(1) somewhere somewhat early. Does the mapserv work properly in plain cgi-mode? The same executable build should operate in either mode. I usually like to start by debugging in plain cgi mode to verify that works, and then invoke it in fastcgi mode. Also, are you using it in WMS or "traditional mapserver" mode? Currently only WMS is formally supported. I do hope to fix up traditional mode though. > I'm starting to look at and evaluate 4.4 as an upgrade from 3.6.6 (Yup, I'm > still using it, works so well!), and I just have a couple of questions ... > > 1) Is FastCGI deemed stable and reliable in 4.4 ? I'd LOVE to use it. I think we would have to consider it an experimental feature in 4.4 since it is so new. But I am keen to fix any problems. I'd love you to use it, and point out problems! BTW, are you interested in FastCGI primarily for database connection preservation or what? I think that is the main case where it offers a substantial performance boost. > 2) If I use FastCGI, I need it thread safe enough? FastCGI with the main mapserver executable is effectively single threaded. Each fastcgi process accepts one request at a time, and finishes it before accepting another. Several fastcgi processes can run at the same time of course. Best regards, -- ---------------------------------------+------------------------------------ -- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Thu Oct 28 13:29:04 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 28 Oct 2004 16:29:04 -0400 Subject: Problems with FastCGI in 4.4-beta1 In-Reply-To: <7CDD7B94357FD5119E800002A537C46E0B8B7707@s5-ccr-r1.ccrs.nrcan.gc.ca> Message-ID: Jean-Francois Doyon wrote: > Frank, > > Well, first of all, I'm actually mostly interested in the regular CGI mode, > so that's a buzz kill for me :) JF, Well, I do intend to get regular cgi mode going too, though that is unfunded. > I'll keep it in mind though, might still be nice for WMS, though in our case > the CGI version gets far heavier use than our WMS. > > My test was calling mapserv without any parameters, just for testing, > especting the standard "no query set" error message. > > The FastCGI compiled version works just fine in standard CGI mode. That is reassuring. > I too was rather intrigued by the fact that the process seemed to keep dying > unexpectedly, something rather hard to track down. > > Although, now that you mention the WMS thing, could it be that the simple > fact that I was using non WMS requests was causing problem. > > Under your current implementation, what is the expected behavior if a > non-WMS request comes in through FastCGI ? Umm, not really though through carefully? > I'll try a more complex configuration along the lines of what Paul suggested > in the mean time. > > Honestly I don't NEED it, but I'm always glad to get the extra performance > anywhere I can, and this should normally be pretty straightforward to setup > :P You might want to try it out in WMS mode, but hold off on regular mapserv cgi mode till I do some work and testing in that area. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Thu Oct 28 13:47:25 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Thu, 28 Oct 2004 16:47:25 -0400 Subject: Slight rendering problem with 4.4-beta1 ... Message-ID: Hello, Find attached 2 versions of the exact same map/mapfile. I have a 3.6.6 with gd 1.8.4 and Freetype 1.x for one on RH7.3, and 4.4-beta1 with gd 2.0.28 and freetype 2.1.4 on CentOS/RHEL 3 Note the "Thunder Bay" ... One one map (The 3.6.6 one) it looks fine. On the 4.4-beta1 version, there's a problem. Admitedly, I'm using the exact same mapfile, so I don't know if maybe there are changes I should be aware of to make this work right in the new version. <> <> Any ideas? Thanks! Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection Natural Resources Canada / Ressources naturelles Canada http://atlas.gc.ca Tel./T?l. : (613) 992-4902 Fax: (613) 947-2410 -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv366-ok.gif Type: image/gif Size: 19928 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv44beta1-bad.gif Type: image/gif Size: 19144 bytes Desc: not available URL: From sgillies at FRII.COM Thu Oct 28 14:38:59 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 28 Oct 2004 15:38:59 -0600 Subject: Creation of layer object in Python Maps cript In-Reply-To: Message-ID: On Oct 28, 2004, at 12:07 PM, Ryan, Adam wrote: >> -----Original Message----- >> From: Sean Gillies [mailto:sgillies at frii.com] >> Sent: Thursday, October 28, 2004 10:15 AM >> To: Ryan, Adam >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: Creation of layer object in Python Maps cript >> >> >> On Oct 28, 2004, at 11:03 AM, Ryan, Adam wrote: >> >>>> -----Original Message----- >>>> From: Bill Hudspeth [mailto:bhudspeth at EDAC.UNM.EDU] >>>> Sent: Thursday, October 28, 2004 8:56 AM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: [UMN_MAPSERVER-USERS] Creation of layer object in Python >>>> Mapscript >>>> >>>> >>>> Hello, >>>> >>>> I want to write new map layers on the fly in my scripting. I have >>>> found the reference to "new layerObj()" in the >> documentation, but am >>>> unsure of how to write the exact syntax. Haven't had any luck with >>>> "new_layer=layerObj(mapObj)". >>>> >>>> Any help greatly appreciated. >>>> >>>> Bill >>>> >>> >>> Hi Bill, >>> >>> I'm working on the same thing 'bout now. >>> For me, this crashes Python: >>> >>> layerO = mapscript.layerObj(mapO) >>> layerO = mapscript.layerObj() >>> mapO.insertLayer(layerO) >>> But this works OK: >>> >>> >>> >>> However, if I then check layerO.index, I get 1634300513. >> That's a lot >>> of >>> layers. >>> >>> If I check mapO.getLayersDrawingOrder(), I get _30fc8200_p_int. Is >>> this a >>> typemap issue? >>> >>> If I try layerO.promote() or layerO.demote(), I'm told those methods >>> don't >>> exist. >>> >>> I'm still trying to figure this one out. Let me know if >> you make any >>> headway. >>> >>> Adam >>> >>> >> >> Which version of mapserver are y'all using? >> >> Sean >> > > OK, > > The new layer is appended so it's index is mapO.numlayers-1 even > though > it's index parameter is foobar. > > And although promote and demote don't seem to be in mapscript.py, we > can use > mapO.moveLayerDown(index), so that's cool... > > Adam > > Adam, Promote and demote are gone for good. It's better design to use methods of the container. In the next beta I'll make sure that the index of a new layer is initialized to something sensible. Meanwhile, I cannot reproduce your problem with creating a new layerObj instance with a mapObj argument. I have a test case for this in the unit tests and it always passes. Please report the error that occurs and I'll work on it. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From JZeisloft at GMAIL.COM Thu Oct 28 16:45:12 2004 From: JZeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Thu, 28 Oct 2004 18:45:12 -0500 Subject: Legend, Layers, and Scale In-Reply-To: <39f3850104102816336b415e49@mail.gmail.com> Message-ID: Hello All... I am a very new user of MapServer, Chameleon, etc. and I have a few questions I have not yet been able to answer with the documentation and archives. I would really appreciate any help that you offer. First, I have a couple layers in my map that I do not want to show in the legend, or that I would like in the legend, but without the option to turn them off. I am using a legend template, a legend object in the map file, and a chameleon template. I have been able to figure out how to place permanent checks in the layer on/off checkbox (or get rid of it entirely), how to get rid of the select layer radio buttons, and how to delete layers from the legend without deleting them from the map. However, as soon as the map refreshes, the layers not in the legend or those without a layer on/off checkbox also disappear from the map. If the layer on/off check is removed from a layer that I wish to be on permanently and the map is refreshed, the check remains in the box, but the layer still disappears. I've attached the legend template and map file to this email. The chameleon template I am using is essentially the "sample_enhanced" template that comes with the tutorial (it doesn't seem to me that altering anything in this would help with my legend problems). Second, the names of the classes in my legend appear in a different font and size than those of the layers. Adding classes also changes the alignment of the layer names. I was able to change the font and size of the class names, but not of the layer names. I also attempted to change the alignment in Dreamweaver, but this didn't seem to accomplish anything. I searched for a style sheet, but I have been able to determine where the font and alignment are defined for the various legend components. Third, and finally? I would like the map to initially appear zoomed in to a certain area. Basically, I want to keep the entire extent available, but when it first loads, I would like it panned and zoomed to a specific location. I've played with EXTENT and SCALE, but without the desired results. Is it possible to do this somehow? Again, I really appreciate any help or hints that are offered. Thanks in advance. Jennifer Zeisloft -------------- next part -------------- [leg_layer_html order=ascending opt_flag=15] [if name=show oper=eq value=1]

[/if] [if name=wms_name oper=isnull] [leg_layer_name]
[metadata name=WMS_TITLE]
[leg_class_name]
value="[leg_layer_name]" > [if name=alwayson oper=eq value=1]CHECKED[/if] > [if name=layer_status oper=eq value=1]CHECKED[/if] > [if name=layer_status oper=eq value=2]CHECKED[/if]> > [/if] > [if name=wms_name oper=isnull] > [leg_layer_name]
[metadata name=WMS_TITLE]
[leg_class_name]