From tjolibois at CLS.FR Wed Sep 1 01:07:47 2004 From: tjolibois at CLS.FR (Tony Jolibois) Date: Wed, 1 Sep 2004 10:07:47 +0200 Subject: Label problem Message-ID: -------- Original Message -------- Subject: Label problem Date: Mon, 30 Aug 2004 15:46:48 +0200 From: Thomas Selliez To: Tony Jolibois Hi list, I try to display labels on point layer (buoy aquisition date and town name) but I don't success... I give you a part of my mapfile, what's wrong ?? Maybe somebody could help me... Thank you Thomas MAP NAME Ex_geo_tom IMAGETYPE png #EXTENT -180.000000 -90 180.000000 90 #vue du Monde #EXTENT -6.215625 43.121250 -5.090625 43.965 #vue Gijon et alentours EXTENT -18 36 0 52 #Espagne, Portugal, France SIZE 800 600 SHAPEPATH "/var/www/html/tutorial/data" SYMBOLSET "../tutorial/symbols/symbols35.sym" FONTSET "../tutorial/fonts/fonts.list" CONFIG DODS_BLOCK_ORIENTED "1" CONFIG DODS_AIS_FILE "/var/www/html/temp/ocean_ais.xml" UNITS DD WEB TEMPLATE 'template_tom.html' IMAGEPATH '/tmp/' IMAGEURL '/tmp/' END SYMBOL NAME "po" TYPE ellipse FILLED true POINTS 1 1 END END PROJECTION #"proj=latlong" END SCALEBAR STATUS EMBED OUTLINECOLOR 0 0 0 IMAGECOLOR 255 255 255 TRANSPARENT FALSE UNITS KILOMETERS INTERVALS 1 SIZE 70 3 STYLE 1 POSITION LR INTERLACE TRUE POSTLABELCACHE true LABEL TYPE BITMAP SIZE SMALL OFFSET 0 0 BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 0 PARTIALS TRUE FORCE FALSE END END #-------------PAYS------------------------ LAYER # shape Espagne NAME Espagne DATA ./Europe/Espagne/PONET_poly_poly STATUS default TYPE POLYGON ... #--------------VILLES------------------- LAYER # villes Espagne NAME VillesEspagne DATA ./Europe/Espagne/AEPOINT_point_point STATUS OFF TYPE POINT MAXSCALE 10000000 CLASS SYMBOL "po" SIZE 6 COLOR 0 255 0 END PROJECTION "proj=latlong" END LABELITEM "Aeptname" CLASS LABEL TYPE truetype FONT arial SIZE 5 ANTIALIAS TRUE COLOR 255 0 0 OUTLINECOLOR 255 255 255 PARTIALS false END END END # fin villes Espagne ... #--------------HYDRO----------------------- LAYER # hydro Espagne NAME HydroEspagne DATA ./Europe/Espagne/DNNET_arc_arc STATUS OFF TYPE LINE MAXSCALE 10000000 CLASS color 0 0 255 END END #fin hydro Espagne ... LAYER # bouees NAME bouees_180 DATA bouees_180 STATUS OFF TYPE POINT MAXSCALE 5000000 PROJECTION "proj=latlong" END CLASS SYMBOL "po" SIZE 6 COLOR 255 0 0 END LABELITEM "DATE" CLASS LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT arial-bold SIZE 5 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 1 BUFFER 1 END # end of label END END # fin bouees END # end of map file -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Wed Sep 1 01:27:47 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 1 Sep 2004 16:27:47 +0800 Subject: Label problem Message-ID: Thomas, I don't see anything obviously wrong, but some things that I have battled with in the past were: - fontlist with wrong font paths - fontlist cannot be found - case sensitive (capitals or small) of fieldnames Why don't you put your labels in the class with the symbols? There is no reason why you should have a separate class for the labels. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tony Jolibois Sent: 1 September 2004 16:08 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Label problem -------- Original Message -------- Subject: Label problem Date: Mon, 30 Aug 2004 15:46:48 +0200 From: Thomas Selliez To: Tony Jolibois Hi list, I try to display labels on point layer (buoy aquisition date and town name) but I don't success... I give you a part of my mapfile, what's wrong ?? Maybe somebody could help me... Thank you Thomas -------------- next part -------------- An HTML attachment was scrubbed... URL: From bluecarto at FREE.FR Wed Sep 1 02:01:11 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Wed, 1 Sep 2004 11:01:11 +0200 Subject: Label problem In-Reply-To: <41358353.3060707@cls.fr> Message-ID: Hello, Jacob is probably right. There is no sense that your LABEL object has a CLASS object in it. Maybe, it's the good reason why you can't print labels. Hierarchicaly, you should have : LAYER LABELITEM CLASS LABEL END END END Pierre GIRAUD camptocamp.com Tony Jolibois wrote: > -------- Original Message -------- > Subject: Label problem > Date: Mon, 30 Aug 2004 15:46:48 +0200 > From: Thomas Selliez > To: Tony Jolibois > > > > Hi list, > > I try to display labels on point layer (buoy aquisition date and town > name) but I don't success... I give you a part of my mapfile, what's > wrong ?? > Maybe somebody could help me... > > Thank you > > Thomas > > MAP > NAME Ex_geo_tom > IMAGETYPE png > #EXTENT -180.000000 -90 180.000000 90 #vue du Monde > #EXTENT -6.215625 43.121250 -5.090625 43.965 #vue Gijon et > alentours > EXTENT -18 36 0 52 #Espagne, Portugal, France > SIZE 800 600 > SHAPEPATH "/var/www/html/tutorial/data" > SYMBOLSET "../tutorial/symbols/symbols35.sym" > FONTSET "../tutorial/fonts/fonts.list" > CONFIG DODS_BLOCK_ORIENTED "1" > CONFIG DODS_AIS_FILE "/var/www/html/temp/ocean_ais.xml" > UNITS DD > > WEB > TEMPLATE 'template_tom.html' > IMAGEPATH '/tmp/' > IMAGEURL '/tmp/' > END > > SYMBOL > NAME "po" > TYPE ellipse > FILLED true > POINTS > 1 1 > END > END > > > PROJECTION > #"proj=latlong" > END > > SCALEBAR > STATUS EMBED > OUTLINECOLOR 0 0 0 > IMAGECOLOR 255 255 255 > TRANSPARENT FALSE > UNITS KILOMETERS > INTERVALS 1 > SIZE 70 3 > STYLE 1 > POSITION LR > INTERLACE TRUE > POSTLABELCACHE true > LABEL > TYPE BITMAP > SIZE SMALL > OFFSET 0 0 > BUFFER 0 > MINDISTANCE -1 > MINFEATURESIZE -1 > COLOR 0 0 0 > PARTIALS TRUE > FORCE FALSE > END > END > > > #-------------PAYS------------------------ > LAYER # shape Espagne > NAME Espagne > DATA ./Europe/Espagne/PONET_poly_poly > STATUS default > TYPE POLYGON > ... > > #--------------VILLES------------------- > > LAYER # villes Espagne > NAME VillesEspagne > DATA ./Europe/Espagne/AEPOINT_point_point > STATUS OFF > TYPE POINT > MAXSCALE 10000000 > CLASS > SYMBOL "po" > SIZE 6 > COLOR 0 255 0 > END > > PROJECTION > "proj=latlong" > END > > * LABELITEM "Aeptname" > CLASS > LABEL > TYPE truetype > FONT arial > SIZE 5 > ANTIALIAS TRUE > COLOR 255 0 0 > OUTLINECOLOR 255 255 255 > PARTIALS false > END > * END > > > END # fin villes Espagne > > ... > > #--------------HYDRO----------------------- > > LAYER # hydro Espagne > NAME HydroEspagne > DATA ./Europe/Espagne/DNNET_arc_arc > STATUS OFF > TYPE LINE > MAXSCALE 10000000 > CLASS > color 0 0 255 > END > END #fin hydro Espagne > > ... > > *LAYER # bouees > NAME bouees_180 > DATA bouees_180 > STATUS OFF > TYPE POINT > MAXSCALE 5000000 > PROJECTION > "proj=latlong" > END > > CLASS > SYMBOL "po" > SIZE 6 > COLOR 255 0 0* > * END > * > * LABELITEM "DATE" > CLASS > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial-bold > SIZE 5 > ANTIALIAS TRUE > POSITION CL > PARTIALS FALSE > MINDISTANCE 1* > * BUFFER 1 > END # end of label > END > * > ** > ** > * END # fin bouees* > > > END # end of map file > From stefano.bonnin at COMAI.TO Wed Sep 1 02:21:51 2004 From: stefano.bonnin at COMAI.TO (Stefano Bonnin) Date: Wed, 1 Sep 2004 11:21:51 +0200 Subject: MapServer with Postgis 0.8.2 on Win32 Message-ID: I have just installed Mapscript 4.3 at http://maptools.org/php_mapscript/index.phtml?page=downloads.html and I have installed Postgres 8.0.0beta1 and Postgis 0.8.2 under a Win32 platform When I try to run my application that works under linux platform I get a strange error: ************************************** Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'lyr_40'. in c:\programmi\apache group\apache\htdocs\crs\gisKernel.map on line 441

Warning: [MapServer Error]: prep_DB(): Couldnt recover from a bad query: 'DECLARE mycursor BINARY CURSOR FOR SELECT type::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),gid::text from (SELECT the_geom,gid,type,name,poi_id from edtlyr_40_1 WHERE site_id = 1) as foo WHERE the_geom && setSRID('BOX3D(1405925.84354588 5001310.327485,1406917.73083212 5002055.106963)'::BOX3D, -1 )' in c:\programmi\apache group\apache\htdocs\crs\gisKernel.map on line 441
**************************************** 1) I think that this depends from 2 different postgis version. What version of postgis is compiled with the last mapscript version? 2) I noticed that the last version of postgis has a different geometry_columns table. How can I migrate with a pg_dump to a 0.8.2 version? Thanks in advance. RedS -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at DEPREM.GOV.TR Wed Sep 1 03:35:53 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Wed, 1 Sep 2004 13:35:53 +0300 Subject: couldn't get map coordinates Message-ID: hello I tried to get map coordinates when I click on map by php script but I couldn't. Are there any simple example that handles my question ? kind regards Ahmet Temiz TURKEY ______________________________________ 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 ed at TOPOZONE.COM Wed Sep 1 04:53:19 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 1 Sep 2004 07:53:19 -0400 Subject: Can ArcIMS consume WMS/WFS services? Message-ID: Tyler - No, you probably just read another interview where Jack Dangermond talked about how incredibly important interoperability and standards are to ESRI. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tyler Mitchell Sent: Tuesday, August 31, 2004 11:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Can ArcIMS consume WMS/WFS services? I'd swear I just read something, somewhere, saying it could. Or was I assuming that "interoperability" meant consume and not just serve up? Tyler On August 31, 2004 06:09 pm, Paul Ramsey wrote: > Probably a question best directed to an ESRI representative. > My best knowledge is that currently the answer is "no", ArcIMS can > only "cascade" against ArcMap web services. > Paul > > On Tuesday, August 31, 2004, at 12:56 PM, Judd, Chris wrote: > > List folks, > > > > We are interested in ArcIMS (we are currently running version 4.0.1) > > consuming a WMS/WFS compliant data service. We know that ArcIMS can > > serve WMS/WFS compliant data services, but can it consume it? > > > > Thanks for your help, > > Chris Judd > > Florida Department of Environmental Protection > > Paul Ramsey > Refractions Research > Email: pramsey at refractions.net > Phone: (250) 885-0632 From lfilak at MEDINACO.ORG Wed Sep 1 06:20:28 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 1 Sep 2004 09:20:28 -0400 Subject: Query shapes in certain extent Message-ID: The following message was sent by G-Net Consulting on Tue, 31 Aug 2004 14:50:11 -0400. > Hello list: > > What is the best way to access the shapes and locations of > points marked within a given map? I have several hundred > points I need to find that are displayed from a given layer. > What's the best way to accomplish this? > > I currently have a layer that has over 5,000 points marked > through the US. As they drill down, I plan to use JavaScript > to display information about each one. In the dbf file, I have > an ID that corresponds to an ID in a MySQL table. I just > to get the ID"s of just the one displayed inside the chosen > extent. > > I'm using PHP 4.3.3 with MapScript 4.2.1 on Redhat 9. > > Thanks in advance. > > Joel Joel; If you create a rectObj using the specified extent you can use layer->queryByRect to query the point(s) into the layer resultcache and then use layer->getResult & resultCacheMemberobj->shapeindex to retrieve the shapeindex for each of the resulting points. If your id in the mysql database corresponds to the shapeindex your all set. If not then you will need to use an xbase module to pull the nth (shapeindex) record from the dbf file to obtain the id that links to the id in the mysql table. Lowell From Chris.Judd at DEP.STATE.FL.US Wed Sep 1 06:25:42 2004 From: Chris.Judd at DEP.STATE.FL.US (Judd, Chris) Date: Wed, 1 Sep 2004 09:25:42 -0400 Subject: Can ArcIMS consume WMS/WFS services? Message-ID: Paul, You're right. Here is the response from my ESRI support request. ----------------------------------------------------------------------------- ----- In answer to your question about whether ArcIMS accepts WMS services as an input the answer is that it can not. This is a feature that others have expressed interest in and the request does have a tracking id of CQ00239065. The problem is that it does require pretty significant work to the spatial server and some re-architecting of the spatial server. Right now work isn't being undertaken, but it isn't off the radar either. I have added your interest for this functionality to the request. One approach is to use cascading style sheets in your web application to layer two WMS output images from different sources on top of one another with the top one having a transparent background. Another approach is that ArcMap Server does serve up data from other IMS servers (though not WMS, not even with the interoperability extension). So if the other site you want to serve up is an ArcIMS site you may be able to consume their service through ArcMap Server. ----------------------------------------------------------------------------- ---- Bummer. Chris -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Paul Ramsey Sent: Tuesday, August 31, 2004 9:10 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Can ArcIMS consume WMS/WFS services? Probably a question best directed to an ESRI representative. My best knowledge is that currently the answer is "no", ArcIMS can only "cascade" against ArcMap web services. Paul On Tuesday, August 31, 2004, at 12:56 PM, Judd, Chris wrote: > List folks, > > We are interested in ArcIMS (we are currently running version 4.0.1) > consuming a WMS/WFS compliant data service. We know that ArcIMS can > serve > WMS/WFS compliant data services, but can it consume it? > > Thanks for your help, > Chris Judd > Florida Department of Environmental Protection > Paul Ramsey Refractions Research Email: pramsey at refractions.net Phone: (250) 885-0632 From lfilak at MEDINACO.ORG Wed Sep 1 06:48:05 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 1 Sep 2004 09:48:05 -0400 Subject: distanceToPoint RFC Message-ID: Hello all. Given an address point somewhere in 2D space and several centerline line shapes related to the point only by the road name, I have been looking for some way to use mapscript functions to detect which line shape is closest to the point. At first I thought distanceToShape was the answer but then after looking at the source code it appears that distanceToShape will actually extend the line shape in both directions (if necessary) to determine the "perpendicular" distance to the shape. In addition, because the operation is a mathematical calculation, and does not actually construct anything, the point where the distance vector intersects the line does not have a known x & y. Am I reading the source correctly? The current plan is to identify the polygon shape in which the point resides, identify the line shape(s) comprising that polygon which match the points roadname, & then calculate a vector between each point of each line shape and the starting point to see which line is the closest and which direction is travelled to reach it. Am I missing an alternate method that is readily available? Thanks for any suggestions. Lowell From holesovsky at OKSYSTEM.CZ Wed Sep 1 07:13:53 2004 From: holesovsky at OKSYSTEM.CZ (Michael Holesovsky) Date: Wed, 1 Sep 2004 16:13:53 +0200 Subject: Raster error Message-ID: Hello All, I use hundred's geoTiff's files with Tileindex + some shp files. Everything goes right except the situation when I want to view a part of an area without raster files(no data). Then the following error is displayed: "msDrawMap(): Image handling error. Failed to draw layer named 'rastr'" LAYER # raster layer begins here NAME rastr TILEINDEX "stc" TILEITEM "Location" MINSCALE 100 MAXSCALE 11000 TYPE RASTER PROCESSING "BANDS=1,2,3" STATUS DEFAULT END # raster layer ends here Thanks for any suggestions. Michael Holesovsky From baijingyu at HOTMAIL.COM Wed Sep 1 07:48:47 2004 From: baijingyu at HOTMAIL.COM (Jingyu Bai) Date: Wed, 1 Sep 2004 09:48:47 -0500 Subject: Need help to compile mapserver-4.2.2 under windows Message-ID: We have to use it under windows and need to compile it by changing some parameters. I am following the instruction "MapServer Win32 Compilation and Installation HOWTO"(a little bit old) and the reame.win32 file coming from mapserver downloaded source file of version mapserver-4.2.2. I can successfully compiled some supporting libraries such as gdal-1.2.1 / freetype-2.1.3 / curl-7.12.1 / proj-4.4.8 /zlib121. The other libraries like GD library I can't compile it (no make file for windows)instead I downloaded a binary DLL version gd-2.0.28 and used "makemsvcimport.bat" to build bgd.lib . I can't compile REGEX library neither (no make file for windows) but I found one version from internet which is win32 port of GNU REGEX. Now I modified the nmake.opt file to comment unnecessary optional lines and then change the libraries path to point to my real libraries location. I run "nmake /f Makefile.vc" and got error in the end as the following. I hit the wall and and can't figure out which library is wrong or missing. Could somebody in this user group help me out? I really appreciate your help. ========= compiler error message ======== .... Creating library mapserver_i.lib and object mapserver_i.exp LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library regex.obj : error LNK2001: unresolved external symbol _printchar cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLFreeEnv at 4 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLFreeConnect at 4 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLDisconnect at 4 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLError at 32 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLConnect at 28 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLSetConnectOption at 12 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLAllocConnect at 8 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLAllocEnv at 4 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLAllocStmt at 8 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLFreeStmt at 8 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLExecDirect at 12 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLDescribeCol at 36 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLNumResultCols at 8 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLGetData at 24 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLFetchScroll at 12 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLFetch at 4 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLColumns at 36 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLPrimaryKeys at 28 cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol _SQLTables at 36 libmap.dll : fatal error LNK1120: 20 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. I tried "nmake /f Makefile.vc" again right after the above failure and got different: ======== compiler error message ======== ... link /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /DEBUG mapserv.obj mapserver_i.lib D:\Projects\mapserver_libraries\gdwin32\bgd.lib D:\Projects\mapserver_libraries\libpng\libpng.lib D:\Projects\mapserver_libraries\zlib121src\zlib.lib D:\Projects\mapserver_libraries\freetype-2.1.3\objs\freetype211ST_D.lib D:\Projects\mapserver_libraries\proj-4.4.8\src\proj.lib D:\Projects\mapserver_libraries\gdal-1.2.1\ogr\ogrsf_frmts\ogrsf_frmts.lib D:\Projects\mapserver_libraries\gdal-1.2.1 \ogr\ogrsf_frmts\ogrsf_frmts_sup.lib D:\Projects\mapserver_libraries\gdal- 1.2.1\ogr\ogr.lib D:\Projects\mapserver_libraries\gdal-1.2.1 \ogr\..\port\cpl.lib D:\Projects\mapserver_libraries\gdal-1.2.1\gdal_i.lib D:\Projects\mapserver_libraries\curl-7.12.1\lib\libcurl.lib "C:\Program Files\Microsoft Visual Studio\VC98\Lib\WSOCK32.LIB" Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. mapserv.obj : error LNK2001: unresolved external symbol _regfree mapserv.obj : error LNK2001: unresolved external symbol _regcomp mapserv.obj : error LNK2001: unresolved external symbol _regexec mapserv.exe : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. It seems mapserver.lib and mapserver_i.lib were created but no exe file there. What are expected files be generated if compile process is successful? Why do I see the map server binary distribution has bunch of DLLs there and many exe files in bin folder? Will I get the same result? From jerl.simpson at RKIQ.COM Wed Sep 1 07:48:30 2004 From: jerl.simpson at RKIQ.COM (Jerl Simpson) Date: Wed, 1 Sep 2004 09:48:30 -0500 Subject: Data format issues. Message-ID: Hello, I have found a great place for retrieving data. HOWEVER the issue is the files are in .E00 ArcInfo Export format. I would like to get these into a format I can use with mapserver (as an OGR connection is fine). Does anyone know of something that will convert these files into something I can use? I have found at least one program, but it is part of another package that costs well over $1,000. I don't particularly want to buy an entire package, for one function out of it. And I really don't want to spend $1,000+. I appreciate any help anyone can give me on this issue. What would really be great is if mapserver can now read .E00 files. But I hadn't found it thus far. Thank you, Jerl From gerry.creager at TAMU.EDU Wed Sep 1 08:21:02 2004 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Wed, 1 Sep 2004 10:21:02 -0500 Subject: Data format issues. In-Reply-To: <4135E13E.5080809@rkiq.com> Message-ID: CHeck on sourceforge for e00 and shapefile, and I think you'll find several working packages. Jerl Simpson wrote: > Hello, > > I have found a great place for retrieving data. HOWEVER the issue is > the files are in .E00 ArcInfo Export format. I would like to get these > into a format I can use with mapserver (as an OGR connection is fine). > Does anyone know of something that will convert these files into > something I can use? I have found at least one program, but it is part > of another package that costs well over $1,000. I don't particularly > want to buy an entire package, for one function out of it. And I really > don't want to spend $1,000+. > > I appreciate any help anyone can give me on this issue. > > What would really be great is if mapserver can now read .E00 files. But > I hadn't found it thus far. > > Thank you, > > Jerl -- 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 warmerdam at POBOX.COM Wed Sep 1 08:39:21 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 1 Sep 2004 11:39:21 -0400 Subject: Data format issues. In-Reply-To: <4135E13E.5080809@rkiq.com> Message-ID: Jerl Simpson wrote: > Hello, > > I have found a great place for retrieving data. HOWEVER the issue is > the files are in .E00 ArcInfo Export format. I would like to get these > into a format I can use with mapserver (as an OGR connection is fine). > Does anyone know of something that will convert these files into > something I can use? I have found at least one program, but it is part > of another package that costs well over $1,000. I don't particularly > want to buy an entire package, for one function out of it. And I really > don't want to spend $1,000+. > > I appreciate any help anyone can give me on this issue. > > What would really be great is if mapserver can now read .E00 files. But > I hadn't found it thus far. Jerl, You can use the avce00 package to convert e00 coverages into arc/info binary coverages which are supported by OGR. See: http://avce00.maptools.org/ Other options may exist. 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 gayathri at OU.EDU Wed Sep 1 08:43:35 2004 From: gayathri at OU.EDU (Swaminathan, Gayathri) Date: Wed, 1 Sep 2004 10:43:35 -0500 Subject: Need help to compile mapserver-4.2.2 under windows Message-ID: Hi Bai: I am assuming you are using MSVC6 The linker error "unresolved external symbol _printchar" is because regex.obj,it does not exist in your regex folder or is corrupt. Resolution: Please recompile with regex to resolve. There have been requests for a regex makefile previously to the list....and you should find one in the archives...if not let me know and I could send you the same. The other errors: are from your GDAL library... Can you explain how you compiled GDAL...as to what was enabled in the nmake.opt for GDAL? Gayathri > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jingyu Bai > Sent: Wednesday, September 01, 2004 9:49 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Need help to compile > mapserver-4.2.2 under windows > > > We have to use it under windows and need to compile it by > changing some parameters. I am following the instruction > "MapServer Win32 Compilation and Installation HOWTO"(a little > bit old) and the reame.win32 file coming from mapserver > downloaded source file of version mapserver-4.2.2. I can > successfully compiled some supporting libraries such as > gdal-1.2.1 / freetype-2.1.3 / curl-7.12.1 / proj-4.4.8 > /zlib121. The other libraries like GD library I can't compile > it (no make file for windows)instead I downloaded a binary > DLL version gd-2.0.28 and used "makemsvcimport.bat" to build > bgd.lib . I can't compile REGEX library neither (no make file for > windows) but I found one version from internet which is win32 > port of GNU REGEX. Now I modified the nmake.opt file to > comment unnecessary optional lines and then change the > libraries path to point to my real libraries location. I run > "nmake /f Makefile.vc" and got error in the end as the > following. I hit the wall and and can't figure out which > library is wrong or missing. Could somebody in this user > group help me out? I really appreciate your help. > > ========= compiler error message ======== > .... > Creating library mapserver_i.lib and object mapserver_i.exp > LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with > use of other libs; use /NODEFAULTLIB:library regex.obj : > error LNK2001: unresolved external symbol _printchar > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLFreeEnv at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLFreeConnect at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLDisconnect at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLError at 32 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLConnect at 28 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLSetConnectOption at 12 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLAllocConnect at 8 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLAllocEnv at 4 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLAllocStmt at 8 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLFreeStmt at 8 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLExecDirect at 12 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLDescribeCol at 36 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLNumResultCols at 8 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLGetData at 24 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLFetchScroll at 12 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLFetch at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLColumns at 36 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLPrimaryKeys at 28 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external > symbol _SQLTables at 36 libmap.dll : fatal error LNK1120: 20 > unresolved externals NMAKE : fatal error U1077: 'link' : > return code '0x460' Stop. > > I tried "nmake /f Makefile.vc" again right after the above > failure and got > different: > ======== compiler error message ======== > ... > link /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /DEBUG > mapserv.obj mapserver_i.lib > D:\Projects\mapserver_libraries\gdwin32\bgd.lib > D:\Projects\mapserver_libraries\libpng\libpng.lib > D:\Projects\mapserver_libraries\zlib121src\zlib.lib > D:\Projects\mapserver_libraries\freetype-2.1.3\objs\freetype21 > 1ST_D.lib > D:\Projects\mapserver_libraries\proj-4.4.8\src\proj.lib > D:\Projects\mapserver_libraries\gdal-1.2.1\ogr\ogrsf_frmts\ogr > sf_frmts.lib > D:\Projects\mapserver_libraries\gdal-1.2.1 > \ogr\ogrsf_frmts\ogrsf_frmts_sup.lib > D:\Projects\mapserver_libraries\gdal- > 1.2.1\ogr\ogr.lib D:\Projects\mapserver_libraries\gdal-1.2.1 > \ogr\..\port\cpl.lib > D:\Projects\mapserver_libraries\gdal-1.2.1\gdal_i.lib > D:\Projects\mapserver_libraries\curl-7.12.1\lib\libcurl.lib > "C:\Program Files\Microsoft Visual > Studio\VC98\Lib\WSOCK32.LIB" Microsoft (R) Incremental Linker > Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All > rights reserved. > > mapserv.obj : error LNK2001: unresolved external symbol > _regfree mapserv.obj : error LNK2001: unresolved external > symbol _regcomp mapserv.obj : error LNK2001: unresolved > external symbol _regexec mapserv.exe : fatal error LNK1120: 3 > unresolved externals NMAKE : fatal error U1077: 'link' : > return code '0x460' Stop. > > It seems mapserver.lib and mapserver_i.lib were created but > no exe file there. What are expected files be generated if > compile process is successful? Why do I see the map server > binary distribution has bunch of DLLs there and many exe > files in bin folder? Will I get the same result? > From warmerdam at POBOX.COM Wed Sep 1 08:45:43 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 1 Sep 2004 11:45:43 -0400 Subject: Need help to compile mapserver-4.2.2 under windows In-Reply-To: Message-ID: Jingyu Bai wrote: > ========= compiler error message ======== > .... > Creating library mapserver_i.lib and object mapserver_i.exp > LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other > libs; use /NODEFAULTLIB:library > regex.obj : error LNK2001: unresolved external symbol _printchar > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLFreeEnv at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLFreeConnect at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLDisconnect at 4 Hi, For these SQL (ODBC) functions you will need to add odbc32.lib to your link line. For the regfree/regcomp/regexec stuff you need a regex library. If you can't find it from another source I can send you the one I use for windows builds. Contact me directly if you need that. PS. Building MapServer on windows can be quite challenging. Good luck! 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 eric at GOMOOS.ORG Wed Sep 1 08:44:36 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 1 Sep 2004 11:44:36 -0400 Subject: Data format issues. In-Reply-To: <4135E13E.5080809@rkiq.com> Message-ID: On Wed, 2004-09-01 at 10:48, Jerl Simpson wrote: > Hello, > > I have found a great place for retrieving data. HOWEVER the issue is > the files are in .E00 ArcInfo Export format. I would like to get these > into a format I can use with mapserver (as an OGR connection is fine). > Does anyone know of something that will convert these files into > something I can use? I have found at least one program, but it is part > of another package that costs well over $1,000. I don't particularly > want to buy an entire package, for one function out of it. And I really > don't want to spend $1,000+. > > I appreciate any help anyone can give me on this issue. > > What would really be great is if mapserver can now read .E00 files. But > I hadn't found it thus far. I've had great success using Daniel Morissette's avcimport program. http://avce00.maptools.org/avce00/avce00.html#avcimport Then you can use ogrinfo to examine the data and OGR to display it in mapserver. 1) avcimport which will create and in the current directory. 2) ogrinfo will give you the list of layers available, I think always: ARC, PAL, LAB and CNT. 3) orginfo will give you projection info, extents, attributes, etc and much OGC WKT data. 4)Then create a layer: CONNECTIONTYPE OGR CONNECTION "" DATA "" (PAL, ARC, LAB, CNT) I'm pretty sure PAL is polygon data, ARC is lines, LAB is labels, CNT is points but I'm no OGR expert. From alberto.cavalli at SINTRANET.IT Wed Sep 1 08:44:59 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Wed, 1 Sep 2004 17:44:59 +0200 Subject: problem with postgis layer Message-ID: Hi dear I've a problem, I'm using mapserver but, when I try to see my page, I can't see anithyng. I've putted all my shape in postgresql through postgis. This is the layer definition in my map file LAYER NAME "Confine" STATUS DEFAULT DATA "the_geom FROM h887_c" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres PASSWORD=admin dbname=template1 host=localhost port=5432" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS TRANSPARENCY 25 CLASS NAME "confini" #TEMPLATE "false_query.html" STYLE COLOR 255 204 153 END END END I'm working on apache 2.0.46 php 4.3.3 mapserver 4.0 win 2000 professional bye alberto From sylvain.pasche at CAMPTOCAMP.COM Wed Sep 1 08:37:33 2004 From: sylvain.pasche at CAMPTOCAMP.COM (Sylvain Pasche) Date: Wed, 1 Sep 2004 17:37:33 +0200 Subject: transparency with dynamically added shapes. Message-ID: Hello, I wanted to dynamically add shapes to a layer, and have the added shapes inherits the transparency of the underlying layer. However, these objects are drawn opaque on the map. I guess the transparency is not computed after the Map->draw(). Heres the code I used: dl('php_mapscript.so'); $map = ms_newMapObj('test/test.map'); $outline_layer = $map->getLayerByName('polygon_triangle'); $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $r = ms_newRectObj(); $r->setextent(-0.2, 51.6222, 0.5, 51.977222); $img = $map->draw(); $r->draw($map, $outline_layer, $img, 0, false); $img->saveImage('out.jpeg'); Mapfile: MAP NAME "Testing" EXTENT -0.5 50.977222 0.5 51.977222 IMAGETYPE JPEG IMAGECOLOR 255 255 255 STATUS ON SIZE 200 200 PROJECTION "init=epsg:4326" END LAYER NAME "polygon_rectangle" TYPE POLYGON PROJECTION "init=epsg:4326" END STATUS ON DATA "polygon" CLASS NAME "0" STYLE COLOR 0 0 255 OUTLINECOLOR 0 0 255 END END END LAYER NAME "polygon_triangle" TYPE POLYGON PROJECTION "init=epsg:4326" END STATUS DEFAULT DATA "theme1" TRANSPARENCY 20 CLASS NAME "0" STYLE COLOR 0 255 255 OUTLINECOLOR 0 255 255 END END END END The produced image is out.jpeg. We see there that there is no transparency. I noticed by the way a strange behaviour (bug?) when using png image format: The colour of the dynamically added shape is taken from the previous layer, as it can be seen on the attached image out.png. As an alternative to the shape->draw() method, I wanted to use the addFeature method: $outline_layer = $map->getLayerByName('polygon_triangle'); $shape = ms_newShapeObj(MS_SHAPE_POLYGON); $r = ms_newRectObj(); $r->setextent(-0.2, 51.6222, 0.5, 51.977222); $outline_layer->addFeature($r); $img = $map->draw(); But I got the following: "Fatal error: Object has an invalid _handle_ property" on the line "map->draw()". Thanks for any infos, Sylvain -------------- next part -------------- A non-text attachment was scrubbed... Name: out.jpeg Type: image/jpeg Size: 2367 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: out.png Type: image/png Size: 689 bytes Desc: not available URL: From keon at NACSE.ORG Wed Sep 1 09:18:54 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 1 Sep 2004 09:18:54 -0700 Subject: Data format issues. In-Reply-To: <4135E13E.5080809@rkiq.com> Message-ID: On 09/01/2004 07:48 AM, Jerl Simpson wrote: > Hello, > > I have found a great place for retrieving data. HOWEVER the issue is > the files are in .E00 ArcInfo Export format. I would like to get these > into a format I can use with mapserver (as an OGR connection is fine). > Does anyone know of something that will convert these files into > something I can use? I have found at least one program, but it is part > of another package that costs well over $1,000. I don't particularly > want to buy an entire package, for one function out of it. And I really > don't want to spend $1,000+. Others have given good suggestions re: OGR. If you're on a Windows box, another option is the standalone ESRI import71.exe executable, which can convert e00 files to binary coverages. ftp://download1.geocomm.com/sd2/IMPORT71.EXE --Dylan From tjolibois at CLS.FR Wed Sep 1 08:50:02 2004 From: tjolibois at CLS.FR (Tony Jolibois) Date: Wed, 1 Sep 2004 17:50:02 +0200 Subject: [legend] Message-ID: -------- Original Message -------- Subject: legend Date: Wed, 1 Sep 2004 17:42:09 +0200 From: Thomas Selliez To: Tony Jolibois Hi list, does anybody know how to generate a legend in a new frame ? Or as a separate picture ? ...anywhere but not on the map !!! Thank you. Thomas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gayathri at OU.EDU Wed Sep 1 09:29:33 2004 From: gayathri at OU.EDU (Swaminathan, Gayathri) Date: Wed, 1 Sep 2004 11:29:33 -0500 Subject: gd makefile Message-ID: Hi: Like Frank says it can be quite challenging to compile in windows.... I had to recompile regex...as mine got corrupt. I got a copy of the makefile from Ed...long time ago..Please find attached. I do not think GD is your problems..it would rather be GDAL... Seems like you have ODBC support enabled in your nmake.opt......Please follow Frank's recommendation As there are no other errors apart from the ones related to regex and GDAL...I think..recompiling other libraries wont be necessary.... Thanks Gayathri > -----Original Message----- > From: Jingyu Bai [mailto:baijingyu at HOTMAIL.COM] > Sent: Wednesday, September 01, 2004 11:11 AM > To: Swaminathan, Gayathri > Subject: Re: gd makefile > > > I also have a hard time now to compile the map server source > code under windows using visual c++. I am wondering how you > get it successed. Do you need to compile GD library and REGEX > Libary as well as other used libraries too ? Would you mind > to give me some tips to follow? Thanks > -------------- next part -------------- A non-text attachment was scrubbed... Name: Makefile.vc Type: application/octet-stream Size: 3017 bytes Desc: Makefile.vc URL: From gayathri at OU.EDU Wed Sep 1 09:30:27 2004 From: gayathri at OU.EDU (Swaminathan, Gayathri) Date: Wed, 1 Sep 2004 11:30:27 -0500 Subject: [legend] Message-ID: I am thinking you want a HTML legend.... There is plenty Wiki help and tutorial help on how to do this.. :-) Good luck! Gayathri -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tony Jolibois Sent: Wednesday, September 01, 2004 10:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] [legend] -------- Original Message -------- Subject: legend Date: Wed, 1 Sep 2004 17:42:09 +0200 From: Thomas Selliez To: Tony Jolibois Hi list, does anybody know how to generate a legend in a new frame ? Or as a separate picture ? ...anywhere but not on the map !!! Thank you. Thomas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bfraser at GEOANALYTIC.COM Wed Sep 1 08:50:46 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 1 Sep 2004 09:50:46 -0600 Subject: Need help to compile mapserver-4.2.2 under windows Message-ID: Some notes on compiling Mapserver 4.2.2 on Windows: Regex: ===== Around line 419 of Mapserver 4.2.2 nmake .opt file, change: REGEX_OBJ=$(REGEX_DIR)\regex.obj to REGEX_OBJ=$(REGEX_DIR)\regex.obj $(REGEX_DIR)\test\printchar.obj GD v2.0.28 ========= I haven't figured out how to compile this version of GD yet. They've changed their method of function decoration and VC++ 6 refuses to compile it (which is strange since their changes seem to be specifically for Windows; I'm sure I just need to set some compiler option). For now I use your method of downloading the binary package. SQL Errors ======== Your "SQL" errors may be due to different settings in GDAL's nmake.opt and Mapserver's nmake.opt. Check to make sure both have the same value for ODBC_SUPPORTED. When your compile is successful, mapserv.exe will be created (and other exes), and libmap.dll The Mapserver compile How-to explains about some of the executables and dlls. Brent Fraser ----- Original Message ----- From: "Jingyu Bai" To: Sent: Wednesday, September 01, 2004 8:48 AM Subject: [UMN_MAPSERVER-USERS] Need help to compile mapserver-4.2.2 under windows > We have to use it under windows and need to compile it by changing some > parameters. I am following the instruction "MapServer Win32 Compilation and > Installation HOWTO"(a little bit old) and the reame.win32 file coming from > mapserver downloaded source file of version mapserver-4.2.2. I can > successfully compiled some supporting libraries such as gdal-1.2.1 / > freetype-2.1.3 / curl-7.12.1 / proj-4.4.8 /zlib121. The other libraries > like GD library I can't compile it (no make file for windows)instead I > downloaded a binary DLL version gd-2.0.28 and used "makemsvcimport.bat" to > build bgd.lib . I can't compile REGEX library neither (no make file for > windows) but I found one version from internet which is win32 port of GNU > REGEX. Now I modified the nmake.opt file to comment unnecessary optional > lines and then change the libraries path to point to my real libraries > location. I run "nmake /f Makefile.vc" and got error in the end as the > following. I hit the wall and and can't figure out which library is wrong > or missing. Could somebody in this user group help me out? I really > appreciate your help. > > ========= compiler error message ======== > .... > Creating library mapserver_i.lib and object mapserver_i.exp > LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other > libs; use /NODEFAULTLIB:library > regex.obj : error LNK2001: unresolved external symbol _printchar > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLFreeEnv at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLFreeConnect at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLDisconnect at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLError at 32 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLConnect at 28 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLSetConnectOption at 12 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLAllocConnect at 8 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLAllocEnv at 4 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLAllocStmt at 8 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLFreeStmt at 8 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLExecDirect at 12 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLDescribeCol at 36 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLNumResultCols at 8 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLGetData at 24 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLFetchScroll at 12 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLFetch at 4 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLColumns at 36 > > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLPrimaryKeys at 28 > cpl.lib(cpl_odbc.obj) : error LNK2001: unresolved external symbol > _SQLTables at 36 > libmap.dll : fatal error LNK1120: 20 unresolved externals > NMAKE : fatal error U1077: 'link' : return code '0x460' > Stop. > > I tried "nmake /f Makefile.vc" again right after the above failure and got > different: > ======== compiler error message ======== > ... > link /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /DEBUG mapserv.obj > mapserver_i.lib D:\Projects\mapserver_libraries\gdwin32\bgd.lib > D:\Projects\mapserver_libraries\libpng\libpng.lib > D:\Projects\mapserver_libraries\zlib121src\zlib.lib > D:\Projects\mapserver_libraries\freetype-2.1.3\objs\freetype211ST_D.lib > D:\Projects\mapserver_libraries\proj-4.4.8\src\proj.lib > D:\Projects\mapserver_libraries\gdal-1.2.1\ogr\ogrsf_frmts\ogrsf_frmts.lib > D:\Projects\mapserver_libraries\gdal-1.2.1 > \ogr\ogrsf_frmts\ogrsf_frmts_sup.lib D:\Projects\mapserver_libraries\gdal- > 1.2.1\ogr\ogr.lib D:\Projects\mapserver_libraries\gdal-1.2.1 > \ogr\..\port\cpl.lib D:\Projects\mapserver_libraries\gdal-1.2.1\gdal_i.lib > D:\Projects\mapserver_libraries\curl-7.12.1\lib\libcurl.lib "C:\Program > Files\Microsoft Visual Studio\VC98\Lib\WSOCK32.LIB" > Microsoft (R) Incremental Linker Version 6.00.8168 > Copyright (C) Microsoft Corp 1992-1998. All rights reserved. > > mapserv.obj : error LNK2001: unresolved external symbol _regfree > mapserv.obj : error LNK2001: unresolved external symbol _regcomp > mapserv.obj : error LNK2001: unresolved external symbol _regexec > mapserv.exe : fatal error LNK1120: 3 unresolved externals > NMAKE : fatal error U1077: 'link' : return code '0x460' > Stop. > > It seems mapserver.lib and mapserver_i.lib were created but no exe file > there. What are expected files be generated if compile process is > successful? Why do I see the map server binary distribution has bunch of > DLLs there and many exe files in bin folder? Will I get the same result? From jerl.simpson at RKIQ.COM Wed Sep 1 09:45:35 2004 From: jerl.simpson at RKIQ.COM (Jerl Simpson) Date: Wed, 1 Sep 2004 11:45:35 -0500 Subject: Data format issues. In-Reply-To: <4135F66E.30704@nacse.org> Message-ID: Thank you very much to all who have replied. I should definitely be able to get the job done with your suggestions. Thanks again. Jerl Dylan Keon wrote: > On 09/01/2004 07:48 AM, Jerl Simpson wrote: > >> Hello, >> >> I have found a great place for retrieving data. HOWEVER the issue is >> the files are in .E00 ArcInfo Export format. I would like to get these >> into a format I can use with mapserver (as an OGR connection is fine). >> Does anyone know of something that will convert these files into >> something I can use? I have found at least one program, but it is part >> of another package that costs well over $1,000. I don't particularly >> want to buy an entire package, for one function out of it. And I really >> don't want to spend $1,000+. > > > Others have given good suggestions re: OGR. If you're on a Windows box, > another option is the standalone ESRI import71.exe executable, which can > convert e00 files to binary coverages. > > ftp://download1.geocomm.com/sd2/IMPORT71.EXE > > --Dylan > . > From terry at WOODTROOP.COM Wed Sep 1 09:23:19 2004 From: terry at WOODTROOP.COM (Terry Wood) Date: Wed, 1 Sep 2004 11:23:19 -0500 Subject: PHP/Mapscript - Layer Color Message-ID: Greetings, I am using PHP/Mapscript version 4.2.2 and I cannot figure out how to change the color of a layer. If I filter an existing layer (with a WHERE clause) I get output, but I cannot change the color of the layer on the screen. Here is a section of my code : // Load Mapscript dl("php_mapscript.so"); <>// Load MapServer .map file <>$map = ms_newMapObj("/data/maps/hpWork.map"); // Query $layer = ms_newLayerObj($map, $map->getLayerByName("Parcels")); $layer->setFilter("parcelid IN ('0000-27-009-012-0-001-01','0000-14-008-008-0-001-01')"); $layer->set("status",MS_ON); // Draw Map $img = $map->draw(); $url = $img->saveWebImage(); I am not going to show all of my failed attempts at changing the layer colors... Anybody know how to do this? Terry Wood From sobomsawin at KASSINI.COM Wed Sep 1 10:27:45 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 1 Sep 2004 13:27:45 -0400 Subject: [UMN_MAPSERVER-USERS] problem with postgis layer In-Reply-To: <5C364C28DF05D611A03200E01832693FC68121@sintraweb.sintranet.it> Message-ID: Alberto, It seems to be a projection issue. Since you don't have a projection section in your layer definition, make sure your data are in the same projection system as your map file. Otherwise, add a projection section to your layer. Also try to use FROM in small caps in your data sentence... __________________ Skweda O'Bomsawin Directeur g?omatique Kassini Syst?mes Experts 771, Saint-Joseph Est suite 320 Qu?bec, QC, G1K 3C7 T?l:?418.652.0925 Fax:?418.653.7344 -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Alberto Cavalli Envoy??: 1 septembre 2004 11:45 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] problem with postgis layer Hi dear I've a problem, I'm using mapserver but, when I try to see my page, I can't see anithyng. I've putted all my shape in postgresql through postgis. This is the layer definition in my map file LAYER NAME "Confine" STATUS DEFAULT DATA "the_geom FROM h887_c" TYPE POLYGON CONNECTIONTYPE POSTGIS CONNECTION "user=postgres PASSWORD=admin dbname=template1 host=localhost port=5432" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS TRANSPARENCY 25 CLASS NAME "confini" #TEMPLATE "false_query.html" STYLE COLOR 255 204 153 END END END I'm working on apache 2.0.46 php 4.3.3 mapserver 4.0 win 2000 professional bye alberto --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 2004-08-27 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 2004-08-27 From joelf at GNETCONSULTING.COM Wed Sep 1 10:31:58 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Wed, 1 Sep 2004 13:31:58 -0400 Subject: Query shapes in certain extent Message-ID: Lowell/List: I updated my code, as you suggested. The results are coming out now, but seem to be a page behind. An example: I have states that have points in each. So, say you choose Florida. It should have 247 points. If you then choose Alaska, it now says 247 (which was Florida from before). If you go to another state (that should have 0, it finds 7). I'm also assuming the index pulled is the one in sensors.shx? I really need to pull the ID from sensors.dbf. I'm attaching my code and map file segment. Any/all suggestions would be appreciated. Thanks! MAP File ======================== LAYER NAME "sensors" STATUS ON DATA "./sensors" TYPE POINT CLASSITEM "ID" SYMBOLSCALE 10 LABELITEM "ID" LABELCACHE ON POSTLABELCACHE TRUE TEMPLATE "sensors.html" METADATA "DESCRIPTION" "GMF Sensors " "RESULT_FIELDS" "ID" END CLASS NAME "Sensors" TEMPLATE "sensors.html" STYLE SYMBOL 4 COLOR 0 255 0 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 SIZE 3 MINSIZE 3 MAXSIZE 100 END END END PHP Code: ======================== // get our sensor layer $myLayer = $gmfMap->getLayerByName("sensors"); $myLayer->set("status", 1); // create a rectangle object to search in and set the extent (from querystring params) $rectObj = ms_newRectObj(); $rectObj->setextent($_GET["minx"], $_GET["miny"], $_GET["maxx"], $_GET["maxy"]); // query the points in the chosen space @$myLayer->queryByRect($rectObj); // find out how many results we found $shpCount = $myLayer->GetNumResults(); // loop through our results, and process accordingly if ($shpCount) { for ($i = 0; $i < $shpCount; $i++) { // get our result $layerIndex = $myLayer->getResult($i); $arrShapes[] = $layerIndex->shapeindex; } } Joel ----- Original Message ----- From: "Lowell Filak" To: "G-Net Consulting" ; Sent: Wednesday, September 01, 2004 9:20 AM Subject: Re: [UMN_MAPSERVER-USERS] Query shapes in certain extent > The following message was sent by G-Net Consulting > on Tue, 31 Aug 2004 14:50:11 -0400. > > > Hello list: > > > > What is the best way to access the shapes and locations of > > points marked within a given map? I have several hundred > > points I need to find that are displayed from a given layer. > > What's the best way to accomplish this? > > > > I currently have a layer that has over 5,000 points marked > > through the US. As they drill down, I plan to use JavaScript > > to display information about each one. In the dbf file, I have > > an ID that corresponds to an ID in a MySQL table. I just > > to get the ID"s of just the one displayed inside the chosen > > extent. > > > > I'm using PHP 4.3.3 with MapScript 4.2.1 on Redhat 9. > > > > Thanks in advance. > > > > Joel > > Joel; > > If you create a rectObj using the specified extent you can use > layer->queryByRect to query the point(s) into the layer resultcache and > then use layer->getResult & resultCacheMemberobj->shapeindex to retrieve > the shapeindex for each of the resulting points. > If your id in the mysql database corresponds to the shapeindex your all > set. If not then you will need to use an xbase module to pull the nth > (shapeindex) record from the dbf file to obtain the id that links to the > id in the mysql table. > > Lowell > From baijingyu at HOTMAIL.COM Wed Sep 1 10:44:20 2004 From: baijingyu at HOTMAIL.COM (Jingyu Bai) Date: Wed, 1 Sep 2004 12:44:20 -0500 Subject: Need help to compile mapserver-4.2.2 under windows Message-ID: Gayathri: I searched the archive and found many anwsers from you to help the user like me. I really appreciate your help. I managed to have a Regex.obj and change map server nmake.opt to enable ODBC_LIB , now I can go a step further but still have problem to compile it. I now get : ... .... MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _localtime already defined in LIBC.lib(localtim.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _abort already defined in LIBC.lib (abort.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _strcspn already defined in LIBC.lib(strcspn.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _isalnum already defined in LIBC.lib(_ctype.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stricmp already defined in LIBCMTD.lib(stricmp.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strnicmp already defined in LIBCMTD.lib(strnicmp.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strdup already defined in LIBC.lib(strdup.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stat already defined in LIBCMTD.lib(stat.obj); second definition ignored MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __unlink already defined in LIBCMTD.lib(unlink.obj); second definition ignored Creating library mapserver_i.lib and object mapserver_i.exp LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library libmap.dll : fatal error LNK1169: one or more multiply defined symbols found NMAKE : fatal error U1077: 'link' : return code '0x491' Stop. It seems I got a lots of MSVCRT.lib(MSVCRT.dll) warning too but not fatal though. From andrew at ANDREWHAIGH.NET Wed Sep 1 11:03:36 2004 From: andrew at ANDREWHAIGH.NET (Andrew Haigh) Date: Wed, 1 Sep 2004 19:03:36 +0100 Subject: Can ArcIMS consume WMS/WFS services? In-Reply-To: Message-ID: Yeah, it's a bit of a joke! None of the Arc version 9 products support WMS / WFS / WCS. Andrew On 1 Sep 2004, at 14:25, Judd, Chris wrote: > Paul, > > You're right. Here is the response from my ESRI support request. > > ----------------------------------------------------------------------- > ------ > ----- > > In answer to your question about whether ArcIMS accepts WMS services > as an > input the answer is that it can not. This is a feature that others > have > expressed interest in and the request does have a tracking id of > CQ00239065. > The problem is that it does require pretty significant work to the > spatial > server and some re-architecting of the spatial server. Right now work > isn't > being undertaken, but it isn't off the radar either. > > I have added your interest for this functionality to the > request. > > One approach is to use cascading style sheets in your web > application > to layer two WMS output images from different sources on top of one > another > with the top one having a transparent background. > > Another approach is that ArcMap Server does serve up data from > other > IMS servers (though not WMS, not even with the interoperability > extension). > So if the other site you want to serve up is an ArcIMS site you may be > able > to consume their service through ArcMap Server. > > ----------------------------------------------------------------------- > ------ > ---- > > Bummer. > > Chris > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Paul Ramsey > Sent: Tuesday, August 31, 2004 9:10 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Can ArcIMS consume WMS/WFS services? > > > Probably a question best directed to an ESRI representative. > My best knowledge is that currently the answer is "no", ArcIMS can only > "cascade" against ArcMap web services. > Paul > > On Tuesday, August 31, 2004, at 12:56 PM, Judd, Chris wrote: > >> List folks, >> >> We are interested in ArcIMS (we are currently running version 4.0.1) >> consuming a WMS/WFS compliant data service. We know that ArcIMS can >> serve >> WMS/WFS compliant data services, but can it consume it? >> >> Thanks for your help, >> Chris Judd >> Florida Department of Environmental Protection >> > Paul Ramsey > Refractions Research > Email: pramsey at refractions.net > Phone: (250) 885-0632 > From sgillies at FRII.COM Wed Sep 1 11:14:59 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 1 Sep 2004 12:14:59 -0600 Subject: Experimental cartographic library for Python Message-ID: Greetings, fellow MapServing Pythoneers: I am finally following through on my threat, or promise :), to start a new and improved MapServer scripting package for Python. My primary motivation is to improve my ZMapServer product and to share the benefits with Python applications running on other frameworks. A introductory web page is at http://users.frii.com/sgillies/projects/PCL/mapping.html API documentation generated by epydoc http://users.frii.com/sgillies/projects/PCL/html/ Source for an initial release http://users.frii.com/sgillies/projects/PCL/PCL-0.2.tar.gz If the Python Cartographic Module interests you, please contact me by email: I am always open to suggestions, and would appreciate hearing about your particular use cases. If you think that you'd like to contribute your own programming resources, we can start to discuss the details of your contribution and whether or not to upload the project to Sourceforge. Does this mean I am ending my contributions to and support for MapServer? Absolutely not. Nor is this an attempt to fork MapServer. The new module will rely heavily on MapServer and should help to lead MapServer towards improvement in key areas. I will continue to work on SWIG mapscript bugs and useability issues, but will no longer be advocating the kind of sweeping changes to the mapscript API that you may have heard from me over beers at the past users meeting :) Once again, respond to me if interested so that we don't have off topic emails on the mapserver-users and mapserver-dev lists. I'll set up a new list if the response warrants. I'm almost always available on #mapserver irc.freenode.net for discussion. From ken at SANDNARROWS.COM Wed Sep 1 11:25:36 2004 From: ken at SANDNARROWS.COM (sandnarrows) Date: Wed, 1 Sep 2004 12:25:36 -0600 Subject: Can ArcIMS consume WMS/WFS services? In-Reply-To: <3EE082A7-FC41-11D8-B917-000A95B8513A@andrewhaigh.net> Message-ID: At an ESRI user conference in Calgary I cornered a ESRI guy from Redlands and asked him about more support for WMS with ArcIMS and he indicated that WMS was just a fad and as such they wouldn't invest time/effort until it was proven to be anything more then a fad. Ken -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Andrew Haigh Sent: September 1, 2004 12:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Can ArcIMS consume WMS/WFS services? Yeah, it's a bit of a joke! None of the Arc version 9 products support WMS / WFS / WCS. Andrew On 1 Sep 2004, at 14:25, Judd, Chris wrote: > Paul, > > You're right. Here is the response from my ESRI support request. > > ---------------------------------------------------------------------- > - > ------ > ----- > > In answer to your question about whether ArcIMS accepts WMS services > as an input the answer is that it can not. This is a feature that > others have > expressed interest in and the request does have a tracking id of > CQ00239065. > The problem is that it does require pretty significant work to the > spatial > server and some re-architecting of the spatial server. Right now work > isn't > being undertaken, but it isn't off the radar either. > > I have added your interest for this functionality to the > request. > > One approach is to use cascading style sheets in your web > application to layer two WMS output images from different sources on > top of one another > with the top one having a transparent background. > > Another approach is that ArcMap Server does serve up data from > other IMS servers (though not WMS, not even with the interoperability > extension). > So if the other site you want to serve up is an ArcIMS site you may be > able > to consume their service through ArcMap Server. > > ---------------------------------------------------------------------- > - > ------ > ---- > > Bummer. > > Chris > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Paul Ramsey > Sent: Tuesday, August 31, 2004 9:10 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Can ArcIMS consume WMS/WFS services? > > > Probably a question best directed to an ESRI representative. My best > knowledge is that currently the answer is "no", ArcIMS can only > "cascade" against ArcMap web services. Paul > > On Tuesday, August 31, 2004, at 12:56 PM, Judd, Chris wrote: > >> List folks, >> >> We are interested in ArcIMS (we are currently running version 4.0.1) >> consuming a WMS/WFS compliant data service. We know that ArcIMS can >> serve WMS/WFS compliant data services, but can it consume it? >> >> Thanks for your help, >> Chris Judd >> Florida Department of Environmental Protection >> > Paul Ramsey > Refractions Research > Email: pramsey at refractions.net > Phone: (250) 885-0632 > From ken at SANDNARROWS.COM Wed Sep 1 11:28:34 2004 From: ken at SANDNARROWS.COM (sandnarrows) Date: Wed, 1 Sep 2004 12:28:34 -0600 Subject: Assign Data to a point for query with mapscript? Message-ID: Hello all. I am using mapscript to create a layer object and add a series of points that get displayed on the map. Everything is working fine. The layer shows up in the legend, points on the map where they should be, etc. Is there a way to add data to the points that can be returned when the user performs a query? Searching through the archives I see several examples of using Xbase to create/edit dbf files. I don't really want to create a file, the information will only exist as long as the user session. Thanks, Ken From eric at GOMOOS.ORG Wed Sep 1 12:51:47 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 1 Sep 2004 15:51:47 -0400 Subject: Assign Data to a point for query with mapscript? In-Reply-To: <007401c49051$80922a70$31289f88@GLADSTONE> Message-ID: On Wed, 2004-09-01 at 14:28, sandnarrows wrote: > Hello all. I am using mapscript to create a layer object and add a > series of points that get displayed on the map. Everything is working > fine. The layer shows up in the legend, points on the map where they > should be, etc. Is there a way to add data to the points that can be > returned when the user performs a query? > > Searching through the archives I see several examples of using Xbase to > create/edit dbf files. I don't really want to create a file, the > information will only exist as long as the user session. The only data you can get back from a query is the shapeindex. If you are adding the points to your layer dynamically e.g. $layer->addFeature($shape); You should have done a $shape->{index} = $id; first. That $id can be any numeric value. When you do a: $layer->queryByPoint(); .... $result->getResult(0); $id = $result->{shapeindex}; The id will be the one you set above. That can be used to retrieve your other values, from some lookup table or some database. There is a Perl example of this approach here: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples42ex1 Eric From etienne.desgagne.1 at ULAVAL.CA Wed Sep 1 17:26:52 2004 From: etienne.desgagne.1 at ULAVAL.CA (Etienne =?iso-8859-1?b?RGVzZ2Fnbuk=?=) Date: Wed, 1 Sep 2004 20:26:52 -0400 Subject: Problem with Zmapserver installation Message-ID: Hi Everyone, I want to install Zmapserver but for now it don't work, here is what I try. So if someone can see my error... First, I install Plone (the Plone package is coming with Zope 2.7.0 and Python 2.3.3) next, I run the mapscript-4.3.win32-py2.3-none.exe. (it detect python and install mapscript in the python directory) I extract the directory named 'ZMapServer' from the Zmapserver archive and copy it into the 'skel/Products' directory of my Zope distribution. A Zope restart is supposed to register the ZMapServer products but I see nothing in the zope Management Interface. I also try to install all this without the Plone package but fail to, what I'm doing wrong? Thank a lot ! From lfilak at MEDINACO.ORG Wed Sep 1 20:04:15 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 1 Sep 2004 23:04:15 -0400 Subject: Query shapes in certain extent Message-ID: The following message was sent by G-Net Consulting on Wed, 1 Sep 2004 13:31:58 -0400. > Lowell/List: > > I updated my code, as you suggested. The results are coming out > now, but seem to be a page behind. An example: > > I have states that have points in each. So, say you choose > Florida. It should have 247 points. If you then choose Alaska, > it now says 247 (which was Florida from before). If you go > to another state (that should have 0, it finds 7). > > I'm also assuming the index pulled is the one in sensors.shx? I > really need to pull the ID from sensors.dbf. > > I'm attaching my code and map file segment. Any/all suggestions > would be appreciated. > > Thanks! > > MAP File ======================== > > LAYER > NAME "sensors" > STATUS ON > DATA "./sensors" > TYPE POINT > CLASSITEM "ID" > SYMBOLSCALE 10 > LABELITEM "ID" > LABELCACHE ON > POSTLABELCACHE TRUE > TEMPLATE "sensors.html" > METADATA > "DESCRIPTION" "GMF Sensors " > "RESULT_FIELDS" "ID" > END > CLASS > NAME "Sensors" > TEMPLATE "sensors.html" > STYLE > SYMBOL 4 > COLOR 0 255 0 > OUTLINECOLOR 0 0 0 > BACKGROUNDCOLOR 255 255 255 > SIZE 3 > MINSIZE 3 > MAXSIZE 100 > END > END > END > > PHP Code: ======================== > > // get our sensor layer > $myLayer = $gmfMap->getLayerByName("sensors"); > $myLayer->set("status", 1); > > // create a rectangle object to search in and set the extent (from > querystring params) > $rectObj = ms_newRectObj(); > $rectObj->setextent($_GET["minx"], $_GET["miny"], $_GET["maxx"], > $_GET["maxy"]); > > // query the points in the chosen space > @$myLayer->queryByRect($rectObj); > > // find out how many results we found > $shpCount = $myLayer->GetNumResults(); > > // loop through our results, and process accordingly > if ($shpCount) { > for ($i = 0; $i < $shpCount; $i++) { > // get our result > $layerIndex = $myLayer->getResult($i); > $arrShapes[] = $layerIndex->shapeindex; > } > } > > Joel > > ----- Original Message ----- > From: "Lowell Filak" > To: "G-Net Consulting" ; > > Sent: Wednesday, September 01, 2004 9:20 AM > Subject: Re: [UMN_MAPSERVER-USERS] Query shapes in certain extent > > > > The following message was sent by G-Net Consulting > > on Tue, 31 Aug 2004 14:50:11 -0400. > > > > > Hello list: > > > > > > What is the best way to access the shapes and locations of > > > points marked within a given map? I have several hundred > > > points I need to find that are displayed from a given layer. > > > What's the best way to accomplish this? > > > > > > I currently have a layer that has over 5,000 points marked > > > through the US. As they drill down, I plan to use JavaScript > > > to display information about each one. In the dbf file, I have > > > an ID that corresponds to an ID in a MySQL table. I just > > > to get the ID"s of just the one displayed inside the chosen > > > extent. > > > > > > I'm using PHP 4.3.3 with MapScript 4.2.1 on Redhat 9. > > > > > > Thanks in advance. > > > > > > Joel > > > > Joel; > > > > If you create a rectObj using the specified extent you can use > > layer->queryByRect to query the point(s) into the layer resultcache and > > then use layer->getResult & resultCacheMemberobj->shapeindex to retrieve > > the shapeindex for each of the resulting points. > > If your id in the mysql database corresponds to the shapeindex your all > > set. If not then you will need to use an xbase module to pull the nth > > (shapeindex) record from the dbf file to obtain the id that links to the > > id in the mysql table. > > > > Lowell > > Joel; If the results look as if they are one page behind is it because the get/put that is sent is a "page behind"? You are correct that the index pulled is not from the dbf. But it is the corresponding record number in the dbf. HTH Lowell From lfilak at MEDINACO.ORG Wed Sep 1 20:12:35 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 1 Sep 2004 23:12:35 -0400 Subject: Assign Data to a point for query with mapscript? Message-ID: The following message was sent by Eric Bridger on Wed, 1 Sep 2004 15:51:47 -0400. > On Wed, 2004-09-01 at 14:28, sandnarrows wrote: > > Hello all. I am using mapscript to create a layer object and add a > > series of points that get displayed on the map. Everything is working > > fine. The layer shows up in the legend, points on the map where they > > should be, etc. Is there a way to add data to the points that can be > > returned when the user performs a query? > > > > Searching through the archives I see several examples of using Xbase to > > create/edit dbf files. I don't really want to create a file, the > > information will only exist as long as the user session. > > The only data you can get back from a query is the shapeindex. If you > are adding the points to your layer dynamically e.g. > $layer->addFeature($shape); > > You should have done a $shape->{index} = $id; first. That $id can be > any numeric value. When you do a: > $layer->queryByPoint(); > .... > $result->getResult(0); > $id = $result->{shapeindex}; > The id will be the one you set above. That can be used to retrieve your > other values, from some lookup table or some database. > > There is a Perl example of this approach here: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples42ex1 > > Eric As usual, Eric is right on the mark. One side note, I think it best to make sure you keep the index you set unique if you're not simply using a sequential numbering scheme. Lowell Lowell From temiz at DEPREM.GOV.TR Wed Sep 1 23:53:49 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 2 Sep 2004 09:53:49 +0300 Subject: failing getting map's coords. Message-ID: sorry in advance for my asking the long code but I am rying for a while but it fails. I just adapted the code which resides in wiki's site to my purpose. ~~~~~~~~~~~~~~~~~~~~~~~~~~~ extent; //for saving writing $x_pct = ($click_x / $map->width); $y_pct = 1 - ($click_y / $map->height); $x_map = $e->minx + ( ($e->maxx - $e->minx) * $x_pct); $x_map2=$_GET['$x_map'] ; $y_map = $e->miny + ( ($e->maxy - $e->miny) * $y_pct); return array($x_map, $y_map); } $map_file="./kara.map"; $map = ms_newMapObj($map_file); $jeolayer = $map->getLayerByName("jeo"); $jeoClass0 = $jeolayer->getClass(9); $jeoStyle = $jeoClass0->getStyle("*"); $jeoStyle->color->setRGB(0,255,0); $map_pt = click2map($_GET['image_x'],$_GET['image_y'],$map->extent); //Create the point $pt = ms_newPointObj(); $pt-> setXY($map_pt[0],$map_pt[1]); $img = $map->draw(); $layer = $map->getLayerByName('fay'); $url = $img->saveWebImage(); ?> Example 1: Displaying a map
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ query2 .php: ------------- -------------------- I only get image's coordinates. But I could get nothing about map's coordinates and any variable from 1st php file during running of query2 .php. Are there anyone having any idea ? kind regards Ahmet Temiz TURKEY ______________________________________ 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 brian at ENTROPY.NET Thu Sep 2 00:40:05 2004 From: brian at ENTROPY.NET (Brian Russo) Date: Thu, 2 Sep 2004 03:40:05 -0400 Subject: getting geo coordinates from image / entering point data Message-ID: Hi, I want to get geographic (not pixel - found that in archives) coordinates from an image. Such that one could select a tool, and click on the map, and you'd end up with the North/Easting, Lat/Lon, etc so I can pass that to a POST. (Want people to be able to select a point on the map and then send us a comment, submit via POST/similar.) - thanks, bri -- Recursivity. Call back if it happens again. From stefano.bonnin at COMAI.TO Thu Sep 2 05:42:14 2004 From: stefano.bonnin at COMAI.TO (Stefano Bonnin) Date: Thu, 2 Sep 2004 14:42:14 +0200 Subject: Postgis 0.8.2 doesn't work on Win32 Message-ID: Hi, I'have just installed Postgres 8.0.0beta1 and postgis 0.8.2 with the postgis installer found at http://dcmms.sourceforge.net/postgis_installer.php After some test (failed) with mapserver, I tryed to execute very simple query like: CREATE TABLE gtest ( ID int4, NAME varchar(20) ); SELECT AddGeometryColumn('dbname','gtest','geom',-1,'LINESTRING',2); INSERT INTO gtest (ID, NAME, GEOM) VALUES (1, 'First Geometry', GeometryFromText('LINESTRING(2 3,4 5,6 5,7 8)', -1)); SELECT id, name, AsText(geom) AS geom FROM gtest; id | name | geom ----+----------------+----------------------------- 1 | First Geometry | LINESTRING(2 3,4 5,6 5,7 8) SELECT id,name FROM GTEST WHERE GEOM && 'BOX3D(3 4,4 5)'::box3d; this query crashes the postgres.exe process on "windows XP home SP1" Can this depend on the OS? thanks, RedS -------------- next part -------------- An HTML attachment was scrubbed... URL: From plists at PROMETHEUS.ORG.YU Thu Sep 2 04:52:11 2004 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Thu, 2 Sep 2004 13:52:11 +0200 Subject: querymap for labels ? Message-ID: I'm experimenting with querymap but have bumped into a question and wanted to check if this feature does not exist or did I just miss where the docs describe it. I have an annotation layer, on which I perform a query. Now I'd like all the labels that match the query to appear in a different color but if I define querymap color and style 'hilite', I guess it changes only the color of the feature, but not the labels, but if I define the 'selected' style, the non-matched labels do disappear along with the features they were attached to. LAYER NAME "kg1_BROJ_PARCELE_TEXT" DATA "kg1_BROJ_PARCELE_TEXT" STATUS ON TYPE ANNOTATION LABELMAXSCALE 3000 LABELMINSCALE 50 MINSCALE 50 MAXSCALE 3000 SYMBOLSCALE 3000 LABELITEM "STRING" CLASSITEM "ANGLE" LABELANGLEITEM "ANGLE" CLASS COLOR -1 -1 -1 LABEL COLOR 100 120 130 # all the displayed labels will be of this color, regardless of querymap settings SHADOWCOLOR -1 38 38 SHADOWSIZE 1 1 TYPE TRUETYPE FONT verdana ANTIALIAS TRUE MAXSIZE 50 MINSIZE 5 POSITION CC PARTIALS FALSE BUFFER 2 END END END QUERYMAP STATUS ON COLOR 200 20 10 STYLE hilite END From mladen.kotarac at CKFF.SI Thu Sep 2 06:10:54 2004 From: mladen.kotarac at CKFF.SI (Mladen Kotarac) Date: Thu, 2 Sep 2004 15:10:54 +0200 Subject: Postgis 0.8.2 doesn't work on Win32 In-Reply-To: <00e101c490ea$462392e0$0501a8c0@comai04> Message-ID: Stefano Bonnin wrote: > Hi, > I'have just installed Postgres 8.0.0beta1 and postgis 0.8.2 with the > postgis installer found at > http://dcmms.sourceforge.net/postgis_installer.php > After some test (failed) with mapserver, I tryed to execute very > simple query like: > CREATE TABLE gtest ( ID int4, NAME varchar(20) ); > SELECT AddGeometryColumn('dbname','gtest','geom',-1,'LINESTRING',2); > INSERT INTO gtest (ID, NAME, GEOM) VALUES (1, 'First Geometry', > GeometryFromText('LINESTRING(2 3,4 5,6 5,7 8)', -1)); > SELECT id, name, AsText(geom) AS geom FROM gtest; > id | name | geom > ----+----------------+----------------------------- > 1 | First Geometry | LINESTRING(2 3,4 5,6 5,7 8) > SELECT id,name FROM GTEST WHERE GEOM && 'BOX3D(3 4,4 5)'::box3d; > this query crashes the postgres.exe process on "windows XP home SP1" > Can this depend on the OS? > thanks, > RedS Dear Stefano, obviosly it does, my WinMapserver/Mapscript 4.2.3 (the same with 4.2.2) from maptools.org is not crashing PostgreSQL anymore and the error line is slightly nicer ;-): *Warning*: [MapServer Error]: prep_DB(): Couldnt recover from a bad query: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from not1 WHERE the_geom && setSRID('BOX3D(365000 8906.25,635000 211093.75)'::BOX3D, find_srid('','not1','the_geom') )' in ... The problem probably lies in the libpq.dll (version 1.2.2003) used/contained in the zip file) by this Mapserver. Looks to be too rather old. Which version of Mapserver are you using? BR Mladen -- ****************************************************************** Mladen Kotarac, univ.dipl.biol. Center za kartografijo favne in flore Centre for Cartography of Fauna and Flora http://www.ckff.si Antoliciceva 1, SI-2204 Miklav? na Dravskem polju, Slovenija tel: 00386-(0)2-6295150 fax: 00386-(0)2-6295151 podru?nica Ljubljana, Zemljemerska 10, SI-1000 Ljubljana, Slovenija tel: 00386-(0)1-4382440 fax: 00386-(0)1-4382445 GSM: 00386-(0)41-735429 e-mail: mladen.kotarac at ckff.si From gayathri at OU.EDU Thu Sep 2 06:15:45 2004 From: gayathri at OU.EDU (Swaminathan, Gayathri) Date: Thu, 2 Sep 2004 08:15:45 -0500 Subject: Need help to compile mapserver-4.2.2 under windows Message-ID: Hello: This is probably because of your LDFLAGS in Makefile.vc..... I had to change, LDFLAGS = /NODEFAULTLIB:libcd /DEBUG To this, LDFLAGS = /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /DEBUG HTH Gayathri > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jingyu Bai > Sent: Wednesday, September 01, 2004 12:44 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Need help to compile > mapserver-4.2.2 under windows > > > Gayathri: > > I searched the archive and found many anwsers from you to > help the user like me. I really appreciate your help. I > managed to have a Regex.obj and change map server nmake.opt > to enable ODBC_LIB , now I can go a step further but still > have problem to compile it. I now get : ... .... > > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _localtime already > defined in LIBC.lib(localtim.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _abort already > defined in LIBC.lib (abort.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _strcspn already > defined in LIBC.lib(strcspn.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _isalnum already > defined in LIBC.lib(_ctype.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stricmp already > defined in LIBCMTD.lib(stricmp.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strnicmp already > defined in LIBCMTD.lib(strnicmp.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strdup already > defined in LIBC.lib(strdup.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stat already > defined in LIBCMTD.lib(stat.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __unlink already > defined in LIBCMTD.lib(unlink.obj); second definition ignored > Creating library mapserver_i.lib and object mapserver_i.exp > LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts > with use of other libs; use /NODEFAULTLIB:library LINK : > warning LNK4098: defaultlib "MSVCRT" conflicts with use of > other libs; use /NODEFAULTLIB:library libmap.dll : fatal > error LNK1169: one or more multiply defined symbols found > NMAKE : fatal error U1077: 'link' : return code '0x491' Stop. > It seems I got a lots of MSVCRT.lib(MSVCRT.dll) warning too > but not fatal though. > From pagameba at MAGMA.CA Thu Sep 2 06:36:52 2004 From: pagameba at MAGMA.CA (Paul Spencer) Date: Thu, 2 Sep 2004 09:36:52 -0400 Subject: problem with postgis layer In-Reply-To: <5C364C28DF05D611A03200E01832693FC68121@sintraweb.sintranet.it> Message-ID: try DATA "the_geom from h887_c" Cheers, Paul Alberto Cavalli wrote: > Hi dear I've a problem, I'm using mapserver but, when I try to see my page, > I can't see anithyng. I've putted all my shape in postgresql through > postgis. > This is the layer definition in my map file > > LAYER > NAME "Confine" > STATUS DEFAULT > DATA "the_geom FROM h887_c" > TYPE POLYGON > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres PASSWORD=admin dbname=template1 host=localhost > port=5432" > UNITS METERS > SIZEUNITS PIXELS > TOLERANCE 0 > TOLERANCEUNITS PIXELS > TRANSPARENCY 25 > CLASS > NAME "confini" > #TEMPLATE "false_query.html" > STYLE > COLOR 255 204 153 > END > END > END > > I'm working on > apache 2.0.46 > php 4.3.3 > mapserver 4.0 > win 2000 professional > bye > alberto > -- ----------------------------------------------------------------- |Paul Spencer pspencer at dmsolutions.ca | |-----------------------------------------------------------------| |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| ----------------------------------------------------------------- From richard.greenwood at GMAIL.COM Thu Sep 2 06:42:16 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 2 Sep 2004 07:42:16 -0600 Subject: querymap for labels ? In-Reply-To: <20040902115211.GA8802@prometheus.org.yu> Message-ID: A work around that I have used - have a second definition of the layer with the labels defined in the highlite color & style, set status default, and use filter and filteritem to control display. If there are no query parameters, nothing will be drawn for that layer. HTH Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Thu, 2 Sep 2004 13:52:11 +0200, Attila Csipa wrote: > I'm experimenting with querymap but have bumped into a question and > wanted to check if this feature does not exist or did I just miss where > the docs describe it. I have an annotation layer, on which I perform a > query. Now I'd like all the labels that match the query to appear in a > different color but if I define querymap color and style 'hilite', I guess it > changes only the color of the feature, but not the labels, but if I define > the 'selected' style, the non-matched labels do disappear along with the > features they were attached to. > > LAYER > NAME "kg1_BROJ_PARCELE_TEXT" > DATA "kg1_BROJ_PARCELE_TEXT" > STATUS ON > TYPE ANNOTATION > LABELMAXSCALE 3000 > LABELMINSCALE 50 > MINSCALE 50 > MAXSCALE 3000 > SYMBOLSCALE 3000 > LABELITEM "STRING" > CLASSITEM "ANGLE" > LABELANGLEITEM "ANGLE" > CLASS > COLOR -1 -1 -1 > LABEL > COLOR 100 120 130 # all the displayed labels will be of this color, regardless of querymap settings > SHADOWCOLOR -1 38 38 > SHADOWSIZE 1 1 > TYPE TRUETYPE > FONT verdana > ANTIALIAS TRUE > MAXSIZE 50 > MINSIZE 5 > POSITION CC > PARTIALS FALSE > BUFFER 2 > END > END > END > > QUERYMAP > STATUS ON > COLOR 200 20 10 > STYLE hilite > END > From assefa at DMSOLUTIONS.CA Thu Sep 2 07:04:23 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 2 Sep 2004 10:04:23 -0400 Subject: One question about MetadataURL on WMS 1.1.1 Mapserv In-Reply-To: <413716ED.12647.C716AC@localhost> Message-ID: Hi There, I have added an enhancemnt bug on this in mapserver (Bug 844). You should add youself in the bug so you are aware of the development. If you have any comments, please update the bug. I will address this before the next release. Later, m.manso at euitto.upm.es wrote: > Hello Assefa, > > I want to use Mapserv WMS in a project prototype to provide access to hundreds of old > maps digitized and rectified, documented with ISO19115 metadata. First problem that i > find is the limit of 100 layers per map file, but this can be solve dividing in different > services. > > Second and more important for me is link each layer ( old map) with his own metadata > file. In WMS Implementation Specification Version 1.1.1 and in Capabilities DTD > schema there are field MetadataURL ( 7.1.4.5.10) in with define Standard (as attribute), > format and onlineResource of Metadata file. > > In actual development version of Mapserv, that is compliant with version 1.1.1 this isn't > implemented, and i think that is easy similar to Style. > > My question is simple: > > Is possible include this MetadataURL(type,format and URL) fields in METADATA > section of Layers section of Map file? > > If it were possible, registration WMS operation on Catalog of services enable the access > to dataset description (metadata). > > Thank you, > > Miguel A. Manso Callejo > E.U.I.T.Topogr?fica > Polytechnic University of Madrid > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From sgillies at FRII.COM Thu Sep 2 07:10:34 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 2 Sep 2004 08:10:34 -0600 Subject: Problem with Zmapserver installation In-Reply-To: Message-ID: On Sep 1, 2004, at 6:26 PM, Etienne Desgagn? wrote: > Hi Everyone, > > I want to install Zmapserver but for now it don't work, here is what I > try. So > if someone can see my error... > > > First, I install Plone (the Plone package is coming with Zope 2.7.0 > and Python > 2.3.3) > > next, I run the mapscript-4.3.win32-py2.3-none.exe. (it detect python > and > install mapscript in the python directory) > > I extract the directory named 'ZMapServer' from the Zmapserver archive > and copy > it into the > 'skel/Products' directory of my Zope distribution. > > A Zope restart is supposed to register the ZMapServer products but I > see nothing > in the zope Management Interface. > > I also try to install all this without the Plone package but fail to, > what I'm > doing wrong? > > Thank a lot ! > > Etienne, Discussion of ZMapServer is off topic for the mapserver-users list. Please subscribe to this list http://lists.sourceforge.net/mailman/listinfo/zmapserver-users and we will continue the discussion there. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From baijingyu at HOTMAIL.COM Thu Sep 2 07:57:53 2004 From: baijingyu at HOTMAIL.COM (Jingyu Bai) Date: Thu, 2 Sep 2004 09:57:53 -0500 Subject: Need help to compile mapserver-4.2.2 under windows Message-ID: Thanks your guys help again. I actually have the option you mentioned in my makefile.vc like the following: ============ OPTFLAGS = /nologo /Zi $(WARNING_LEVEL) $(DEBUG) BASE_CFLAGS = $(OPTFLAGS) -DWIN32 -D_WIN32 LDFLAGS = /NODEFAULTLIB:MSVCRT /NODEFAULTLIB:libcd /NODEFAULTLIB:libcmtd /NODE FAULTLIB:msvcrtd /NODEFAULTLIB:LIBC #LDFLAGS = /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /DEBUG #LDFLAGS = /NODEFAULTLIB:libcd /DEBUG ============= I now changed my namek.opt file to try the minimum compile case(just use GD and regex/libpng/zlib)and comment out other lib options and changed the gdal.pdb copy line in makefile.vc file but still got error though different as the one I had yesterday. I don't know which library defines function _strcasecmp and _strlcat. I searched GD src and redex src but find nothing not find it in c++ standard lib string.h file neither. Another thing I worried about is that I used binary GD version with generated lib myself by using bat command "makemsvcimport.bat" from gdwin32 latest version 2.0.28 which is just a DLL mapping lib file not real static library. I then change the namke.opt line "# GD include and library" from $(GD_DIR)/gd.lib to $(GD_DIR)/gdd.lib since the bat file generated gbd.lib not gd.lib. Is this a problem or do I have to compile GD source by myself in order to use GD library correctly and how if required to do so? I appreciate your guys help! ======== error msg from minimum map server nmake options run ======== maptime.obj : warning LNK4042: object specified more than once; extras ignored link /dll /debug mapbits.obj maphash.obj mapshape.obj mapxbase.obj mapparser.obj maplexer.obj mapindex.obj maptree.obj mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj maputil.obj mapscale.obj mapquery.obj maplabel.obj maperror.obj mapprimitive.obj mapproject.obj mapraster.obj cgiutil.obj mapsde.obj mapogr.obj maptime.obj maptemplate.obj mappostgis.obj maplayer.obj mapresample.obj mapwms.obj mapwmslayer.obj mapgml.obj maporaclespatial.obj mapprojhack.obj mapdraw.obj mapgd.obj mapoutput.obj mapswf.obj mapgdal.obj mapwfs.obj mapwfslayer.obj mapows.obj maphttp.obj mappdf.obj mapcontext.obj mapdrawgdal.obj mapjoin.obj mapgraticule.obj mapmygis.obj mapimagemap.obj mapcopy.obj mapogcfilter.obj mapogcsld.obj maptime.obj mapthread.obj D:\Projects\mapserver_libraries\temp\regex-0.12 \regex.obj D:\Projects\mapserver_libraries\gdwin32\bgd.lib D:\Projects\mapserver_libraries\libpng\libpng.lib D:\Projects\mapserver_libraries\zlib121src\zlib.lib /o ut:libmap.dll /implib:mapserver_i.lib Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. maptime.obj : warning LNK4042: object specified more than once; extras ignored maptime.obj : warning LNK4042: object specified more than once; extras ignored Creating library mapserver_i.lib and object mapserver_i.exp mapoutput.obj : error LNK2001: unresolved external symbol _strcasecmp mapjoin.obj : error LNK2001: unresolved external symbol _strcasecmp mapimagemap.obj : error LNK2001: unresolved external symbol _strcasecmp mapogcsld.obj : error LNK2001: unresolved external symbol _strcasecmp mapraster.obj : error LNK2001: unresolved external symbol _strcasecmp maptemplate.obj : error LNK2001: unresolved external symbol _strcasecmp mapdraw.obj : error LNK2001: unresolved external symbol _strcasecmp mapgd.obj : error LNK2001: unresolved external symbol _strcasecmp maphash.obj : error LNK2001: unresolved external symbol _strcasecmp mapxbase.obj : error LNK2001: unresolved external symbol _strcasecmp mapstring.obj : error LNK2001: unresolved external symbol _strcasecmp mapfile.obj : error LNK2001: unresolved external symbol _strcasecmp mapfile.obj : error LNK2001: unresolved external symbol _strncasecmp maputil.obj : error LNK2001: unresolved external symbol _strncasecmp mapoutput.obj : error LNK2001: unresolved external symbol _strncasecmp mapogcsld.obj : error LNK2001: unresolved external symbol _strncasecmp maptemplate.obj : error LNK2001: unresolved external symbol _strlcat libmap.dll : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. D:\Projects\mapserver-4.2.2> ====== My namke.opt file with minimum options === # # nmake.opt - MapServer 4.x configuration for MSVC++ # # This VC++ configuration is used in building MAPSERVER.LIB, MAPSERV.EXE, # and the other MapServer command-line programs. # # To use the makefile: # - Open a DOS prompt window # - Run the VCVARS32.BAT script to initialize the VC++ environment variables # - Start the build with: nmake /f makefile.vc # # $Id: nmake.opt,v 1.4.2.1 2004/07/23 04:45:13 sdlime Exp $ # # Contents: # Section I: Mapserver Options (you may want to edit) # Section II: Support Libraries (you must edit) # Section III: Debug Flags (no need to edit) # Section IV: Variable Setup (should not need to edit) # Section V: UMN GIS System Setup (should not need to edit) # Section VI: Collect compiler flags # ######################################################################## # Section I: Mapserver Options ######################################################################## MS_LIB = mapserver.lib MS_LIB_DLL = mapserver_i.lib # Uncomment the following to link mapserv.exe withh dll DLLBUILD=1 # Input raster format options: # # The lite version of mapserver 4.x supports only PNG and JPEG data for input. # # If you wish to support any of the following raster formats you will need # the GDAL support library from http://www.remotesensing.org/gdal. # Once you have the library, set the flag below to compile with GDAL and # provide the full path to GDAL project directory # # Format Name # Arc/Info ASCII Grid AAIGrid # Arc/Info Binary Grid (.adf) AIG # Microsoft Windows Device Independent Bitmap (.bmp) BMP # BSB Nautical Chart Format (.kap) BSB # CEOS (Spot for instance) CEOS # First Generation USGS DOQ (.doq) DOQ1 # New Labelled USGS DOQ (.doq) DOQ2 # Military Elevation Data (.dt0, .dt1) DTED # ERMapper Compressed Wavelets (.ecw) ECW # ESRI .hdr Labelled EHdr # ENVI .hdr Labelled Raster ENVI # Envisat Image Product (.n1) Envisat # EOSAT FAST Format FAST # FITS (.fits) FITS # Graphics Interchange Format (.gif) GIF # Arc/Info Binary Grid (.adf) GIO # GRASS Rasters GRASS # TIFF / GeoTIFF (.tif) GTiff # Hierarchical Data Format Release 4 (HDF4) HDF4 # Erdas Imagine (.img) HFA # Atlantis MFF2e HKV # Japanese DEM (.mem) JDEM # JPEG2000 (.jp2, .j2k) JPEG2000 # JPEG2000 (.jp2, .j2k) JP2KAK # NOAA Polar Orbiter Level 1b Data Set (AVHRR) L1B # Atlantis MFF MFF # NITF NITF # OGDI Bridge OGDI # PCI .aux Labelled PAux Yes # Netpbm (.ppm,.pgm) PNM Yes # USGS SDTS DEM (*CATD.DDF) SDTS # SAR CEOS SAR_CEOS # USGS ASCII DEM (.dem) USGSDEM # X11 Pixmap (.xpm) XPM #sdf #GDAL=-DUSE_GDAL #GDAL_DIR=D:\Projects\mapserver_libraries\gdal-1.2.1 # # Input vector format options # # The lite version of Mapserver 4.x only suports ESRI shapefiles for input. # # If you wish to support any of the following vector formats you will need # the GDAL support library with OGR from http://www.remotesensing.org/gdal. # Once you have the library, set the flag below to compile with OGR and # provide the full path to GDAL project directory # # Format Name # Arc/Info Binary Coverage # FMEObjects Gateway # IHO S-57 (ENC) # Mapinfo File # Microstation DGN # OGDI Vectors # Oracle Spatial # PostgreSQL # SDTS # UK .NTF # U.S. Census TIGER/Line # #sdf #OGR=-DUSE_OGR #GDAL_DIR=D:\Projects\mapserver_libraries\gdal-1.2.1 #ECW support # #ECW is one of the formats supported through GDAL. If you have built #gdal with ECW support, you need to link it with the ECW librarires. #uncommnet the following lines to have the ECW support. #ECW_DIR= C:\projects\ECW_SDK #Xerces support # #If GDAL was compoiled with the Xerces support, you need to use the #xerces library. #uncommnet the following line to have the Xerces support #XERCES_DIR = c:\projects\xerces-c1_6_0-win32 # Comment out the following to disable ODBC support. #sdf #ODBC_SUPPORTED = 1 # Tiff Input # # Tiff input is also available through GDAL. If you wish to build to support # TIFF input without GDAL you will need to unccomment the following flag # and set the full path to the project directory containing libtiff. # See http://www.libtiff.org/ for support library #TIFF=-DUSE_TIFF #TIFFDIR=c:/my_path_to/tiff-v3.5.4 # JPEG Input: # JPEG input for raster layers is also available through GDAL, If you wish # to build support for JPEG without GDAL, uncomment the following flag # and provide the full path to the jpeg support library project directory. # See http://www.ijg.org/ for support library. #JPEG=-DUSE_JPEG #JPEG_DIR=D:\Projects\mapserver_libraries\gdal-1.2.1\frmts\jpeg\libjpeg # Output format options: # If you wish to allow JPEG output maps, uncomment the following flag # and provide the full path to the jpeg support library project directory. # See http://www.ijg.org/ for support library. #sdf #OUTPUT_JPEG=-DUSE_GD_JPEG #JPEG_DIR=D:\Projects\mapserver_libraries\gdal-1.2.1\frmts\jpeg\libjpeg # If you wish to allow PNG output maps, uncomment the following flag # and provide the full path to the png and zlib support library project # directories. # See http://www.libpng.org/pub/png/libpng.html for support library. # See http://www.gzip.org/zlib/ for support library. #sdf OUTPUT_PNG=-DUSE_GD_PNG PNG_DIR=D:\Projects\mapserver_libraries\libpng ZLIB_DIR=D:\Projects\mapserver_libraries\zlib121src # If you wish to allow Windows BMP output maps, uncomment the following flag. #OUTPUT_WBMP=-DUSE_GD_WBMP # If you wish to have FLASH output, uncomment the following flag and provide # the full path to the MING support library project directory. # See http://ming.sourceforge.net/ for support library. #MING=-DUSE_MING_FLASH #MING_DIR=c:/projects/ming-0.2a #MING_DIR=c:/projects/ming-0.3beta1 # If you wish to have PDF output, uncomment the following flag and provide the # full path to the PDF support library project directory. # See http://www.pdflib.com/ for support library. #PDF=-DUSE_PDF #PDF_DIR=c:/projects/pdflib-4.0.3 # Annotation fonts. # # If you wish to annotate your maps with true type fonts unccomment the # following flag. Provide the full path to the FreeType 2.x external # supprt library. See http://www.freetype.org for support library. #sdf #ANNOTATION_FT=-DUSE_GD_FT #FT_DIR=D:\Projects\mapserver_libraries\freetype-2.1.3 # Direct connectivity to Postgresql PostGIS. # # To turn on direct connectivity to Postgresql PostGIS uncomment the following # flag and set the full path name to the project directory for the # Postgresql native Win32 client library. # See http://www.postgresql.org for support library. #POSTGIS =-DUSE_POSTGIS #POSTGIS_DIR =c:/projects/libpq #Orcale #ORACLE_DIR = c:\Oracle\Ora81 #ORACLE=-DUSE_ORACLESPATIAL #OGDI #OGDI_DIR = c:\projects\ogdi-3.1.0 #OGDI_LIB = $(OGDI_DIR)\lib\ogdi31.lib # Direct connectivity to ArcSDE. # # To turn on direct connectivity to ArcSDE uncomment the following # flag and set the full path name to the project directory for ArcSDE. # Since ESRI includes the version number in the name of their libraries # you may need to change that number in Section III of this configuration # file. # See http://www.esri.com/software/arcgis/arcinfo/arcsde/index.html for # support library #SDE_OPT=-DUSE_SDE -DWIN32 #SDE_DIR=c:/my_path_to/arcsde # EPPL7 Support # # This activates ERDAS as well. It is included in the distribution. # Probably the best raster alternative if # you've got EPPL7 laying around. See http://www.lmic.state.mn.us/ for # more information. # Uncomment out the following flag and set the full path name to the # epplib.obj file. #EPPL=-DUSE_EPPL #EPPL_OBJ=c:/my_path/epplib.obj # If you want to ignore missing datafile errors uncomment the following # line. This is especially useful with large tiled datasets that may not # have complete data for each tile. #sdf #IGNORE_MISSING_DATA=-DIGNORE_MISSING_DATA #NEED_NONBLOCKING_STDERR=-DNEED_NONBLOCKING_STDERR #ENABLE_STDERR_DEBUG=-DENABLE_STDERR_DEBUG # If you want antialiasing (note that It requires gd2) #sdf #USE_GD_ANTIALIAS=-DUSE_GD_ANTIALIAS # Use this flag to compile with WMS Server support. # To find out more about the OpenGIS Web Map Server Specification go to # http://www.opengis.org/ #sdf #WMS=-DUSE_WMS_SVR # Use this flag to compile with WMS Client support. WMS Client support # allows you to pull layers from other OGIS WMS servers on the interent and # incorporate them into your map. # To find out more about the OpenGIS Web Map Server Specification go to # http://www.opengis.org/ # you need the libcurl library from http://curl.haxx.se/library/c/ # Set the full path to the curl project directory. # You will also need to set the full path to the Microsoft Visual C++ windows # socket library. #WMSCLIENT= -DUSE_WMS_LYR #CURL_DIR=c:/projects/curl-7.10.2 #CURL_DIR=D:\Projects\mapserver_libraries\curl-7.12.1 #WINSOCK_LIB = "C:\Program Files\Microsoft Visual Studio\VC98 \Lib\WSOCK32.LIB" # Use -DUSE_WFS_SVR to compile with WFS server support, requires OGR and PROJ4 # Use -DUSE_WFS_LYR to compile with WFS client support, requires libcurl #WFS=-DUSE_WFS_SVR #WFSCLIENT= -DUSE_WFS_LYR # Reprojecting. # If you would like mapserver to be able to reproject data from one # geographic projection to another, uncomment the following flag # Proj.4 distribution (cartographic projection routines). # Not required for normal use. (EXPERIMENTAL) # For PROJ_DIR use full path to Proj.4 distribution #PROJ=-DUSE_PROJ -DUSE_PROJ_API_H #PROJ_DIR=D:\Projects\mapserver_libraries\proj-4.4.8 # PHP Mapscript. # If you plan to build PHP mapscript uncomment the following flag and # set the full path to the PHP project directory #PHP=1 #PHP_DIR=D:/php4.3.4 # Apparently these aren't as commonplace. Edit the # following line to reflect the missing functions on your platform. # #STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRDUP #STRINGS=-DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT ######################################################################## # Section II: External Support Libraries ######################################################################## # You will need to set the paths to various support library projects # that you have compiled. ######################################################################## # GD Library. # # Mapserver 4.x only supports GD 2.x and greater. # Sorry no more GIF support. If you need GIF support you will # need to run Mapserver 3.6.x with GD 1.2. # GD is a required support library for MapServer 4.x. # Enter the full path to your GD 2.x project directory # Note : A patched version of GD that supports GIF, JPEG, PNG and WBMP can be # downloaded from http://www.rime.com.au/gd/. If you are using this library, #you should uncomment the following line OUTPUT_GIF=-DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR GD_DIR=D:\Projects\mapserver_libraries\gdwin32 # REGEX Libary # # VC++ does not include the REGEX library... so we must provide our one. # The following definitions will try to build GNU regex-0.12 located in the # regex-0.12 sub-directory. # If it was not included in the source distribution, then you can get it from: # ftp://ftp.gnu.org/pub/gnu/regex/regex-0.12.tar.gz # Provide the full path to the REGEX project directory # You do not need this library if you are compiling for PHP mapscript. # In that case the PHP regex library will be used instead !IFNDEF PHP REGEX_DIR=D:\Projects\mapserver_libraries\temp\regex-0.12 !ENDIF ######################################################################## # Section III: Debug flags ######################################################################## # Should not need to be updated. ######################################################################## # DEBUG Build flags # Set the DEBUG flag if you wish to make a debug build DEBUG=/DDEBUG # Set the Warning level for the compiler (defaults to W1) WARNING_LEVEL=/W3 # Set the linker debug option LDEBUG=/debug ######################################################################## # Section IV: Variable Setup ######################################################################## # Should not need to be updated. ######################################################################## # Proj.4 include and library !IFDEF PROJ_DIR PROJ_INC=-I$(PROJ_DIR)\src PROJ_LIB=$(PROJ_DIR)\src\proj.lib !ENDIF # CURL include and library !IFDEF WMSCLIENT CURL_INC = -I$(CURL_DIR)\include CURL_LIB = $(CURL_DIR)\lib\libcurl.lib !ENDIF # Set the jpeg library !IFDEF OUTPUT_JPEG JPEG_LIB=$(JPEG_DIR)\libjpeg.lib !ENDIF # Set the png support libaries !IFDEF OUTPUT_PNG PNG_LIB=$(PNG_DIR)\libpng.lib $(ZLIB_DIR)\zlib.lib !ENDIF # Set the FreeType library !IFDEF ANNOTATION_FT #FT_LIB=$(FT_DIR)/objs/freetype211.lib FT_LIB=$(FT_DIR)\objs\freetype211ST_D.lib !ENDIF # GD include and library GD_INC= -I$(GD_DIR) GD_LIB= $(GD_DIR)\bgd.lib \ $(JPEG_LIB) $(PNG_LIB) $(FT_LIB) GD= $(OUTPUT_PNG) $(OUTPUT_JPEG) $(OUTPUT_WBMP) $(OUTPUT_GIF) $(ANNOTATION_FT) # Tiff library on input !IFDEF TIFF TIFF_INC=-I$(TIFF_DIR)\tiff-v3.5.4\libtiff TIFF_LIB=$(TIFF_DIR)\tiff-v3.5.4\libtiff\libtiff.lib !ENDIF # JPEG library on input !IFDEF JPEG JPEG_LIB=$(JPEG_DIR)\libjpeg.lib !ENDIF # Setup GDAL includes and libraries !IFDEF GDAL GDAL_INC = -I$(GDAL_DIR)\gcore -I$(GDAL_DIR)\alg GDAL_LIB = $(GDAL_DIR)\gdal_i.lib !ENDIF # Setup OGR includes and libraries !IFDEF OGR OGR_INC = -I$(GDAL_DIR)\ogr\ogrsf_frmts -I$(GDAL_DIR)\ogr -I$(GDAL_DIR) \ogr\..\port OGR_LIB = $(GDAL_DIR)\ogr\ogrsf_frmts\ogrsf_frmts.lib $(GDAL_DIR) \ogr\ogrsf_frmts\ogrsf_frmts_sup.lib $(GDAL_DIR)\ogr\ogr.lib $(GDAL_DIR) \ogr\..\port\cpl.lib !ENDIF # Setup ESRI SDE support. !IFDEF SDE_OPT SDE_INC=-I$(SDE_DIR)\include SDE_LIB=$(SDE_DIR)\lib\sde80.lib $(SDE_DIR)\lib\sg80.lib $(SDE_DIR) \lib\pe80.lib !ENDIF #ECW support !IFDEF ECW_DIR ECW_LIB=$(ECW_DIR)\lib\NCSEcw.lib $(ECW_DIR)\lib\NCSEcwC.lib \ $(ECW_DIR)\lib\NCSUtil.lib !ENDIF #Xerces support !IFDEF XERCES_DIR XERCES_LIB=$(XERCES_DIR)/lib/xerces-c_1.lib !ENDIF !IFDEF ODBC_SUPPORTED ODBC_LIB = "C:\Program Files\Microsoft Visual Studio\VC98\Lib\ODBC32.lib" !ENDIF # Setup REGEX object and includes !IFNDEF PHP REGEX_OBJ=$(REGEX_DIR)\regex.obj REGEX_INC=-I$(REGEX_DIR) !ELSE REGEX_OBJ=$(PHP_DIR)\regex\regcomp.obj $(PHP_DIR)\regex\regerror.obj \ $(PHP_DIR)\regex\regexec.obj $(PHP_DIR)\regex\regfree.obj REGEX_INC=-I$(PHP_DIR)\regex -DPHP_NO_ALIASES !ENDIF # # REGEX needs some special flags... here they are for VC++ 6.0 # REGEX_OPT=-DHAVE_STRING_H -DREGEX_MALLOC # Setup Postgesql PostGIS includes and libs # Note that the Postgresql includes are not used in the compilation of # PHP/MapScript. The reason is that there is a name conflict between the # regex/regex.h files used in PHP and Postgresql. This is not a real issue # since they are two completely different interfaces. The issue arrises when # the php_regex.h trys to include regex/regex.h and gets the wrong one from # postgresql. Therefore we do not give it that opertunity by not providing the # include path. !IFDEF POSTGIS !IFNDEF PHP_BUILD_CALL #POSTGIS_INC=-I$(POSTGIS_DIR)/src/interfaces/libpq - I$(POSTGIS_DIR)/src/include POSTGIS_INC=-I$(POSTGIS_DIR)\interfaces\libpq -I$(POSTGIS_DIR)\include !ENDIF #POSTGIS_LIB=$(POSTGIS_DIR)\src\interfaces\libpq\release\libpqdll.lib POSTGIS_LIB=$(POSTGIS_DIR)\interfaces\libpq\libpqdll.lib POSTGIS_OBJ=mappostgis.obj !ENDIF # Setup FLASH includes and libs !IFDEF MING MING_INC=-I$(MING_DIR)\src -I$(MING_DIR) MING_LIB= $(MING_DIR)\src\libming.lib #MING_VERSION=-DMING_VERSION_03 !ENDIF # Setup PDF includes and libs !IFDEF PDF PDF_LIB=$(PDF_DIR)\pdflib\pdflib.lib PDF_INC=-I$(PDF_DIR)\pdflib !ENDIF #Oracle support !IFDEF ORACLE ORACLE_INC=-I$(ORACLE_DIR)\oci\include ORACLE_LIB=$(ORACLE_DIR)\oci\lib\msvc\oci.lib !ENDIF ######################################################################## # Section V: UMN GIS System Support ######################################################################## # Should not need to be updated. ######################################################################## # # UofMN GIS/Image Processing Extension (very experimental) # #EGIS=-DUSE_EGIS !IFDEF EGIS ERR_DIR=c:\my_path_to\errLog ERR_OBJ=$(ERR_DIR)\errLog.o ERR_INC=-I$(ERR_DIR) ERR_LIB=-L$(ERR_DIR) -lerrLog IMGGEN_DIR=c:\my_path_to\imgSrc IMGGEN_OBJ=$(IMGGEN_DIR)\imgLib.o IMGGEN_INC=-I$(IMGGEN_DIR) IMGGEN_LIB=-L$(IMGGEN_DIR) -limgGEN !ENDIF ######################################################################## # Section VI: Collect compiler flags #BY SDF /NODEFAULTLIB:libcmt.lib /NODEFAULTLIB:msvcrt.lib /NODEFAULTLIB:libcd.li b /NODEFAULTLIB:libcmtd.lib /NODEFAULTLIB:msvcrtd.lib ######################################################################## # Should not need to be updated. ######################################################################## EXTERNAL_LIBS=$(GD_LIB) $(TIFF_LIB) $(JPEG_LIB) \ $(PROJ_LIB) $(OGR_LIB) $(GDAL_LIB)\ $(CURL_LIB) $(MING_LIB) $(PDF_LIB) \ $(WINSOCK_LIB) $(POSTGIS_LIB) $(IMGGEN_LIB) $(ERR_LIB) \ $(XERCES_LIB) $(ECW_LIB) $(ORACLE_LIB) $(OGDI_LIB) $(ODBC_LIB) LIBS=$(MS_LIB) $(EXTERNAL_LIBS) LIBS_DLL=$(MS_LIB_DLL) $(EXTERNAL_LIBS) INCLUDES=$(GD_INC) $(TIFF_INC) $(JPEG_INC) \ $(PROJ_INC) $(REGEX_INC) $(GDAL_INC) $(OGR_INC) \ $(CURL_INC) $(MING_INC) $(PDF_INC) $(POSTGIS_INC) \ $(IMGGEN_INC) $(ERR_INC) $(ORACLE_INC) MS_CFLAGS=$(INCLUDES) $(REGEX_OPT) $(STRINGS) $(POSTGIS) \ $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) \ $(WMSCLIENT) $(MING) $(IGNORE_MISSING_DATA) $(NEED_NONBLOCKING_STDERR) \ $(GDAL) \ -DFEATURE_INFO_HTML $(WFS) $(WFSCLIENT) $(PDF) $(EGIS) \ $(USE_GD_ANTIALIAS) $(ORACLE) $(MING_VERSION) =========== end of my minimum namke.opt file ============= From gheysen.t at SKYNET.BE Thu Sep 2 08:12:10 2004 From: gheysen.t at SKYNET.BE (Gheysen Thibaut) Date: Thu, 2 Sep 2004 17:12:10 +0200 Subject: PHP/Mapscript - Layer Color Message-ID: Hi, Here is a section of my code that change the color of a layer : // return the class object : 0 is the first class $class = getClass(0); // return the style object : 0 is the first style $style = getStyle(0); // change the bgcolor $style->color->setRGB(0, 0, 0); // change the outline color $style->outlinecolor->setRGB(0, 0, 0); I hope that I can help you. Best regards, Thibaut. Terry Wood a ?crit : > Greetings, > I am using PHP/Mapscript version 4.2.2 and I cannot figure out how > to change the color of a layer. If I filter an existing layer (with a > WHERE clause) I get output, but I cannot change the color of the layer > on the screen. > > Here is a section of my code : > > // Load Mapscript > dl("php_mapscript.so"); > > <>// Load MapServer .map file > > <>$map = ms_newMapObj("/data/maps/hpWork.map"); > > // Query > > $layer = ms_newLayerObj($map, $map->getLayerByName("Parcels")); > > $layer->setFilter("parcelid IN > ('0000-27-009-012-0-001-01','0000-14-008-008-0-001-01')"); > > $layer->set("status",MS_ON); > > // Draw Map > > $img = $map->draw(); > > $url = $img->saveWebImage(); > > > I am not going to show all of my failed attempts at changing the layer > colors... Anybody know how to do this? > > Terry Wood From gheysen.t at SKYNET.BE Thu Sep 2 08:17:53 2004 From: gheysen.t at SKYNET.BE (Gheysen Thibaut) Date: Thu, 2 Sep 2004 17:17:53 +0200 Subject: Outline size Message-ID: Hi, I have a problem with "size" in Mapserver 4.2.2. I want to increase the size of the outline. For this I have add "size" and "symbol" in the style definition. e.g. CLASS NAME "test" TEMPLATE "query" STYLE SYMBOL 'circle' OUTLINECOLOR 0 0 0 SIZE 2 END END But when I do this the result of a query are not highlighted. If I replace OUTLINECOLOR by COLOR the result are now highlighted. Is it a bug ? Or I am missing something ? Bests regards, Thibaut. From gheysen.t at SKYNET.BE Thu Sep 2 00:57:14 2004 From: gheysen.t at SKYNET.BE (Gheysen Thibaut) Date: Thu, 2 Sep 2004 09:57:14 +0200 Subject: Outline size Message-ID: Hi, I have a problem with "size" in Mapserver 4.2. I want to increase the size of the outline. For this I have add "size" and "symbol" in the style definition. e.g. CLASS NAME "test" TEMPLATE "query" STYLE SYMBOL 'circle' OUTLINECOLOR 0 0 0 SIZE 2 END END But when I do this the result of a query are not highlighted. If I replace OUTLINECOLOR by COLOR the result are now highlighted. Is it a bug ? Or I am missing something ? Bests regards, Thibaut. From bhudspeth at EDAC.UNM.EDU Thu Sep 2 08:37:41 2004 From: bhudspeth at EDAC.UNM.EDU (Bill Hudspeth) Date: Thu, 2 Sep 2004 09:37:41 -0600 Subject: Problem using zoomPoint() map object method in Python Mapscript Message-ID: Hello, Having trouble with the map object zoomPoint() function in python mapscript. I set up the current view extents in utm coords, a point to zoom to in pixel units, and then call zoomPoint() function. Nothing changes on my view. I translated this code directly from a set of pan/zoom functions that work in PHP. The logic is exactly the same, but I don't get any resultant changes on screen. If anyone can spot what I might be missing, I would much appreciate some feedback. Otherwise, a possible problem with zoomPoint() function or my usage of it? ********************************************************************************* self.nmMap = mapscript.mapObj(self.data) ms_temp_dir = '/var/www/html/tmp' ms_tmp_url = 'http://hyperion.unm.edu/tmp' #build path to image image_name='first.png' self.image_path=os.path.join(ms_temp_dir, image_name) #global image_url self.image_url = os.path.join(ms_tmp_url, image_name) #create default map extent object based upon mapfile self.default_extent = self.nmMap.extent self.img_width = self.nmMap.width self.img_height = self.nmMap.height pminx=450001 pminy=3567876 pmaxx=543234 pmaxy=4565342 #build and populate a rectangle object that represents the extent of the previous map image prevExtent=mapscript.rectObj(pminx, pminy, pmaxx, pmaxy) #Define the point to pan to zoomFactor = 1 #pan to the north zoomToPt = mapscript.pointObj(self.img_width/2, 0) #Set the extent of the current map to the an extent with the clicked point at the center, zoomed by the above defined factor self.nmMap.zoomPoint(zoomFactor,zoomToPt,self.img_width, self.img_height, prevExtent, prevExtent) #draw map ******************************************************************************************* Thanks, Bill From sgillies at FRII.COM Thu Sep 2 08:47:32 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 2 Sep 2004 09:47:32 -0600 Subject: Problem using zoomPoint() map object method in Python Mapscript In-Reply-To: Message-ID: On Sep 2, 2004, at 9:37 AM, Bill Hudspeth wrote: > Hello, > Having trouble with the map object zoomPoint() function in python > mapscript. I set up the current view extents in utm coords, a point to > zoom to in pixel units, and then call zoomPoint() function. Nothing > changes on my view. I translated this code directly from a set of > pan/zoom functions that work in PHP. The logic is exactly the same, but > I don't get any resultant changes on screen. If anyone can spot what I > might be missing, I would much appreciate some feedback. Otherwise, a > possible problem with zoomPoint() function or my usage of it? > > *********************************************************************** > ********** > self.nmMap = mapscript.mapObj(self.data) > ms_temp_dir = '/var/www/html/tmp' > ms_tmp_url = 'http://hyperion.unm.edu/tmp' > > #build path to image > image_name='first.png' > self.image_path=os.path.join(ms_temp_dir, image_name) > #global image_url > self.image_url = os.path.join(ms_tmp_url, image_name) > > #create default map extent object based upon mapfile > self.default_extent = self.nmMap.extent > self.img_width = self.nmMap.width > self.img_height = self.nmMap.height > > pminx=450001 > pminy=3567876 > pmaxx=543234 > pmaxy=4565342 > > #build and populate a rectangle object that represents the extent of > the > previous map image > prevExtent=mapscript.rectObj(pminx, pminy, pmaxx, pmaxy) > > #Define the point to pan to > zoomFactor = 1 > #pan to the north > zoomToPt = mapscript.pointObj(self.img_width/2, 0) > > #Set the extent of the current map to the an extent with the clicked > point at the center, zoomed by the above defined factor > self.nmMap.zoomPoint(zoomFactor,zoomToPt,self.img_width, > self.img_height, prevExtent, prevExtent) > > #draw map > > > *********************************************************************** > ******************** > > Thanks, Bill > Bill, The zoomPoint method passes the unit tests I've written for it, but I'm not testing the case of a zoom factor of 1. I'm wondering if your constraining rectangle isn't the problem. Your constraining rectangle (6th arg) is the same as your starting rectangle (5th arg) and I think this should practically prevent any zooming with a factor of 1. Could you try again with self.nmMap.zoomPoint(zoomFactor, zoomToPt, self.img_width, self.img_height, prevExtent, None) and let me know if that solves it? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Thu Sep 2 09:19:00 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 2 Sep 2004 10:19:00 -0600 Subject: Problem using zoomPoint() map object method in Python Mapscript In-Reply-To: <41374375.7080800@edac.unm.edu> Message-ID: On Sep 2, 2004, at 9:59 AM, Bill Hudspeth wrote: > Sean Gillies wrote: > >> On Sep 2, 2004, at 9:37 AM, Bill Hudspeth wrote: >> >>> Hello, >>> Having trouble with the map object zoomPoint() function in python >>> mapscript. I set up the current view extents in utm coords, a point >>> to >>> zoom to in pixel units, and then call zoomPoint() function. Nothing >>> changes on my view. I translated this code directly from a set of >>> pan/zoom functions that work in PHP. The logic is exactly the same, >>> but >>> I don't get any resultant changes on screen. If anyone can spot what >>> I >>> might be missing, I would much appreciate some feedback. Otherwise, a >>> possible problem with zoomPoint() function or my usage of it? >>> ... >>> Thanks, Bill >>> >> >> Bill, >> >> The zoomPoint method passes the unit tests I've written for it, >> but I'm not testing the case of a zoom factor of 1. I'm wondering >> if your constraining rectangle isn't the problem. Your constraining >> rectangle (6th arg) is the same as your starting rectangle (5th arg) >> and I think this should practically prevent any zooming with a >> factor of 1. Could you try again with >> >> self.nmMap.zoomPoint(zoomFactor, zoomToPt, self.img_width, >> self.img_height, prevExtent, None) >> >> and let me know if that solves it? >> >> Sean >> >> >> >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies > > That did indeed take care of the problem. Thanks again, Sean > > Bill > > Great. Am cc'ing the list so that your confirmation is archived. Sean From 2bjoerns at GMX.DE Thu Sep 2 13:34:10 2004 From: 2bjoerns at GMX.DE (Bj=?ISO-8859-1?Q?=F6rn?= Schaffrath) Date: Thu, 2 Sep 2004 15:34:10 -0500 Subject: mapsize Message-ID: hello, i'm looking for a simple way via cgi to make mapsize perisistent. so a user can choose a big mapsize (in the mapfile is a small one) and it?s checked everytime he submits. think something like this: 780 x 450 ... but it does not work. thanks for your help bj?rn From richard.greenwood at GMAIL.COM Thu Sep 2 13:58:44 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 2 Sep 2004 14:58:44 -0600 Subject: mapsize In-Reply-To: Message-ID: I use the javascript below. There might be a simpler/more elgant solution, but it works. Rich And then in the the following: -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Thu, 2 Sep 2004 15:34:10 -0500, Bj=?ISO-8859-1?Q?=F6rn?= Schaffrath <2bjoerns at gmx.de> wrote: > hello, > > i'm looking for a simple way via cgi to make mapsize perisistent. so a user > can choose a big mapsize (in the mapfile is a small one) and it?s checked > everytime he submits. > > think something like this: > > [mapsize_780_450_check] >780 x 450 > > ... but it does not work. > > thanks for your help > > bj?rn > From u.shankar at NIWA.CO.NZ Thu Sep 2 14:01:13 2004 From: u.shankar at NIWA.CO.NZ (Ude Shankar) Date: Fri, 3 Sep 2004 09:01:13 +1200 Subject: Need help to compile mapserver-4.2.2 under windows In-Reply-To: Message-ID: Make sure all your sources are compiled with the same option eg. /MD or /ML. Shankar > Gayathri: > > I searched the archive and found many anwsers from you to help the user > like me. I really appreciate your help. > I managed to have a Regex.obj and change map server nmake.opt to enable > ODBC_LIB , now I can go a step further but still have problem to compile it. > I now get : > ... > .... > > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _localtime already defined in > LIBC.lib(localtim.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _abort already defined in LIBC.lib > (abort.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _strcspn already defined in > LIBC.lib(strcspn.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: _isalnum already defined in > LIBC.lib(_ctype.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stricmp already defined in > LIBCMTD.lib(stricmp.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strnicmp already defined in > LIBCMTD.lib(strnicmp.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __strdup already defined in > LIBC.lib(strdup.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __stat already defined in > LIBCMTD.lib(stat.obj); second definition ignored > MSVCRT.lib(MSVCRT.dll) : warning LNK4006: __unlink already defined in > LIBCMTD.lib(unlink.obj); second definition ignored > Creating library mapserver_i.lib and object mapserver_i.exp > LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other > libs; use /NODEFAULTLIB:library > LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other > libs; use /NODEFAULTLIB:library > libmap.dll : fatal error LNK1169: one or more multiply defined symbols found > NMAKE : fatal error U1077: 'link' : return code '0x491' > Stop. > It seems I got a lots of MSVCRT.lib(MSVCRT.dll) warning too but not fatal > though. > From patricia at CPQD.COM.BR Thu Sep 2 16:49:57 2004 From: patricia at CPQD.COM.BR (Patricia Maria Pereira) Date: Thu, 2 Sep 2004 20:49:57 -0300 Subject: JavaMapScript - PostGIS Message-ID: Hello... I need to access PostGIS with JavaMapScript. Do I need to do something especial? Do I need a JDBC driver? I tried it: ..... ..... public static void main(String[] args) throws IOException{ try{ System.loadLibrary("mapscript"); } catch(Exception e){ e.printStackTrace(); } mapObj mapa; mapa = new mapObj("wms.map"); imageObj imagem = mapa.draw(); imagem.save("/l/home0/pat/testePati.jpg"); } ..... ..... But mapa.draw() returns null. My mapfile (wms.map) seems to be Ok, because I get map via cgi-bin with no problems. Can somebody help me? Thanks in advance... Pati From temiz at DEPREM.GOV.TR Fri Sep 3 00:04:33 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 3 Sep 2004 10:04:33 +0300 Subject: confused about clicking on a map Message-ID: hello I am confused about clicking on a map. Should this click function reside in first php file or second php file ? ~~~~~~~~~~~~~~ function click2map ($click_x, $click_y, $current_extent) { global $map; $x_pct = ($click_x / $_GET['map-width']); $y_pct = 1 - ($click_y / $_GET['mapheight']); $x_map = $current_extent[0] + ( ($current_extent[2] - $current_extent[0]) * $x_pct); $y_map = $current_extent[1] + ( ($current_extent[3] - $current_extent[1]) * $y_pct); return array($x_map, $y_map); } ~~~~~~~~~~~~~~~~~~~~ ______________________________________ 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 temiz at DEPREM.GOV.TR Fri Sep 3 00:53:35 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 3 Sep 2004 10:53:35 +0300 Subject: getting min and max values Message-ID: hello as one who is new both php and mapserver I have one question how can I get a map's min and max values from $map->extent ? 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 keon at NACSE.ORG Fri Sep 3 01:07:40 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Fri, 3 Sep 2004 01:07:40 -0700 Subject: getting min and max values In-Reply-To: <413822FF.7010308@deprem.gov.tr> Message-ID: $map->extent->minx $map->extent->miny $map->extent->maxx $map->extent->maxy temiz wrote: > hello > > as one who is new both php and mapserver I have one question > how can I get a map's min and max values from $map->extent ? > > regards > > Ahmet Temiz From mathieuparent at INFONIE.FR Fri Sep 3 01:49:24 2004 From: mathieuparent at INFONIE.FR (Mathieu Parent) Date: Fri, 3 Sep 2004 10:49:24 +0200 Subject: Getting shape values from a PostGIS layer Message-ID: Hi, How can I get values when I make a query in PHP/MapScript on a PostGIS layer ? Examples : _layer's properties :_ CONNECTION "user=user password=pass dbname=postgis host=localhost port=5432" CONNECTIONTYPE POSTGIS DATA "the_geom from adres" _part of the script :_ if(($num_results=$layer->getNumResults())>0) { $layer->open(); for($j=0;$j<$num_results;$j++) { $result=$layer->getResult($j); $shape=$layer->getShape($result->tileindex,$result->shapeindex); foreach($shape->values AS $field=>$value) { echo "$field=>$value
\n"; } } $layer->close(); thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From superbla3000 at GMX.NET Fri Sep 3 02:07:16 2004 From: superbla3000 at GMX.NET (jp) Date: Fri, 3 Sep 2004 11:07:16 +0200 Subject: mapscript php cgi Message-ID: Hello, I am compiling mapserver on suse 9.1 and would like to use mapscript. But I don't want to run php as cgi, because my CMS wont work... What can I do? Joerg From temiz at DEPREM.GOV.TR Fri Sep 3 03:44:20 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 3 Sep 2004 13:44:20 +0300 Subject: queryByPoint usage Message-ID: hello I wonder if you could supply a usage about how queryByPoint is used ? 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at DEPREM.GOV.TR Fri Sep 3 06:02:02 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 3 Sep 2004 16:02:02 +0300 Subject: problem in raster layer Message-ID: hello this: LAYER NAME hey DATA hey2.tif TYPE RASTER STATUS ON END gives in error log: "Premature end of script headers: /var/www/cgi-bin/php" if I use the same image in png or jpeg format, nothing about raster layer is seen how the proble is solved ? 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. From sobomsawin at KASSINI.COM Fri Sep 3 06:09:41 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 3 Sep 2004 09:09:41 -0400 Subject: FastCGI Message-ID: Hi all! I just tried to compile Mapserver 4.2.2 for FastCGI without success. I have installed mod_fcgi and FastCGI lib according to the Mapserver Wiki article. Is the development of mapserver_fcgi has stopped? Can I expect real improvements with mapserver_fcgi and PostGIS layers? Thanks! Skweda O'Bomsawin [root at rob mapserver-4.2.2]# make mapserv.fcgi gcc -c -O2 -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_MING_FLASH -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_POSTGIS -DUSE_THREAD -I/usr/local/include -I/usr/local/include -I/usr/local/pgsql/include -I/usr/local/include mapserv_fcgi.c -o mapserv_fcgi.o mapserv_fcgi.c: In function `writeError': mapserv_fcgi.c:121: warning: passing arg 1 of `msGetErrorString' makes pointer from integer without a cast mapserv_fcgi.c:130: `Item' undeclared (first use in this function) mapserv_fcgi.c:130: (Each undeclared identifier is reported only once mapserv_fcgi.c:130: for each function it appears in.) mapserv_fcgi.c:131: `Value' undeclared (first use in this function) mapserv_fcgi.c: In function `loadMap': mapserv_fcgi.c:191: structure has no member named `ParamValues' mapserv_fcgi.c:192: structure has no member named `ParamValues' mapserv_fcgi.c:194: structure has no member named `ParamValues' mapserv_fcgi.c: In function `loadForm': mapserv_fcgi.c:240: syntax error before ';' token mapserv_fcgi.c:240: syntax error before ')' token mapserv_fcgi.c:726: `Item' undeclared (first use in this function) mapserv_fcgi.c:731: `Value' undeclared (first use in this function) mapserv_fcgi.c:246: continue statement not within a loop mapserv_fcgi.c:251: continue statement not within a loop mapserv_fcgi.c:267: continue statement not within a loop mapserv_fcgi.c:276: continue statement not within a loop mapserv_fcgi.c:285: continue statement not within a loop mapserv_fcgi.c:307: continue statement not within a loop mapserv_fcgi.c:312: continue statement not within a loop mapserv_fcgi.c:317: continue statement not within a loop mapserv_fcgi.c:359: continue statement not within a loop mapserv_fcgi.c:364: continue statement not within a loop mapserv_fcgi.c:368: continue statement not within a loop mapserv_fcgi.c:372: continue statement not within a loop mapserv_fcgi.c:378: continue statement not within a loop mapserv_fcgi.c:417: continue statement not within a loop mapserv_fcgi.c:456: continue statement not within a loop mapserv_fcgi.c:467: continue statement not within a loop mapserv_fcgi.c:477: continue statement not within a loop mapserv_fcgi.c:482: continue statement not within a loop mapserv_fcgi.c:510: continue statement not within a loop mapserv_fcgi.c:537: continue statement not within a loop mapserv_fcgi.c:567: continue statement not within a loop mapserv_fcgi.c:577: continue statement not within a loop mapserv_fcgi.c:586: continue statement not within a loop mapserv_fcgi.c:613: continue statement not within a loop mapserv_fcgi.c:620: continue statement not within a loop mapserv_fcgi.c:631: continue statement not within a loop mapserv_fcgi.c:657: continue statement not within a loop mapserv_fcgi.c:682: continue statement not within a loop mapserv_fcgi.c:696: continue statement not within a loop mapserv_fcgi.c:702: continue statement not within a loop mapserv_fcgi.c:707: continue statement not within a loop mapserv_fcgi.c:712: continue statement not within a loop mapserv_fcgi.c:717: continue statement not within a loop mapserv_fcgi.c:722: continue statement not within a loop mapserv_fcgi.c:727: continue statement not within a loop mapserv_fcgi.c:740: continue statement not within a loop mapserv_fcgi.c:745: continue statement not within a loop mapserv_fcgi.c:749: continue statement not within a loop mapserv_fcgi.c:775: continue statement not within a loop mapserv_fcgi.c:802: continue statement not within a loop mapserv_fcgi.c:808: continue statement not within a loop mapserv_fcgi.c:841: continue statement not within a loop mapserv_fcgi.c: At top level: mapserv_fcgi.c:850: syntax error before '&' token mapserv_fcgi.c:850: warning: type defaults to `int' in declaration of `regfree' mapserv_fcgi.c:850: conflicting types for `regfree' /usr/include/regex.h:570: previous declaration of `regfree' mapserv_fcgi.c:850: warning: data definition has no type or storage class mapserv_fcgi.c: In function `main': mapserv_fcgi.c:1025: syntax error before '=' token mapserv_fcgi.c:1035: syntax error before ')' token mapserv_fcgi.c:1042: syntax error before ')' token mapserv_fcgi.c:1043: structure has no member named `NumParams' mapserv_fcgi.c:1439: `Item' Untitled 1undeclared (first use in this function) mapserv_fcgi.c:1440: `Value' undeclared (first use in this function) mapserv_fcgi.c: At top level: mapserv_fcgi.c:1448: syntax error before numeric constant mapserv_fcgi.c:1448: warning: type defaults to `int' in declaration of `exit' mapserv_fcgi.c:1448: conflicting types for `exit' /usr/include/stdlib.h:612: previous declaration of `exit' mapserv_fcgi.c:1448: warning: data definition has no type or storage class make: *** [mapserv_fcgi.o] Error 1 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.745 / Virus Database: 497 - Release Date: 2004-08-27 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.cavalli at SINTRANET.IT Fri Sep 3 06:29:55 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Fri, 3 Sep 2004 15:29:55 +0200 Subject: postgis zoom doesn't work Message-ID: I've a very strange problem using mapserver with postgis and postgressql 8.0 beta1 and when I try to connect with my db all works fine except the zoomin(this one works like a zoomout) and zoomout. Can someone tell me what is the problem? thanks a lot I'm working on apache 2.0.46 php 4.3.3 mapserver 4.0 win 2000 professional bye alberto From rob at ROBSINGLETON.COM Fri Sep 3 08:33:34 2004 From: rob at ROBSINGLETON.COM (Robert Singleton) Date: Fri, 3 Sep 2004 08:33:34 -0700 Subject: mapscript php cgi Message-ID: Joerg There is a documented fault in MapScript that prevents it from working properly when PHP is loaded as an Apache module. Until the MapScript project fixes it, we are stuck. Anyone have any idea what kind of progress is being made in this area? Rob -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjmitchell at RIVERSIDE.BC.CA Fri Sep 3 08:40:12 2004 From: tjmitchell at RIVERSIDE.BC.CA (Tyler Mitchell) Date: Fri, 3 Sep 2004 08:40:12 -0700 Subject: Quick survey - re: MapServer Website Message-ID: Your input regarding the MapServer website is requested via this 10 second survey: http://www.misterpoll.com/692819415.html Please help provide feedback for future website changes. Everyone's opinion matters. From baijingyu at HOTMAIL.COM Fri Sep 3 08:54:52 2004 From: baijingyu at HOTMAIL.COM (Jingyu Bai) Date: Fri, 3 Sep 2004 10:54:52 -0500 Subject: Need help to compile mapserver-4.2.2 under windows Message-ID: Could you send me a regex.obj with debug info and make sure it is compiled under /MTd option so I can use it under my compiler process. Now I just got error after I re-compiler most other libraries with /MTd option. How should I deal with GD library since I can't compile it and no control to use /MTd. Do you mind to send me your GD library with /MTd to baijingyu_ca at yahoo.com ? I really appreciate your help. === less error than yesterday === maptime.obj : warning LNK4042: object specified more than once; extras ignored maptime.obj : warning LNK4042: object specified more than once; extras ignored Creating library mapserver_i.lib and object mapserver_i.exp regex.obj : fatal error LNK1202: "D:\Projects\mapserver-4.2.3\vc60.pdb" is missing debugging information for referencing module NMAKE : fatal error U1077: 'link' : return code '0x4b2' Stop. From tjmitchell at RIVERSIDE.BC.CA Fri Sep 3 08:58:40 2004 From: tjmitchell at RIVERSIDE.BC.CA (Tyler Mitchell) Date: Fri, 3 Sep 2004 08:58:40 -0700 Subject: Quick survey - re: MapServer Website In-Reply-To: Message-ID: I have added this poll to the MapServer survey results page on the wiki, including a link to seeing the results http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SurveyResults Tyler Tyler Mitchell Sent by: UMN MapServer Users List 09/03/2004 08:40 AM Please respond to Tyler Mitchell To MAPSERVER-USERS at LISTS.UMN.EDU cc Fax to Subject [UMN_MAPSERVER-USERS] Quick survey - re: MapServer Website Your input regarding the MapServer website is requested via this 10 second survey: http://www.misterpoll.com/692819415.html Please help provide feedback for future website changes. Everyone's opinion matters. From baijingyu at HOTMAIL.COM Fri Sep 3 09:00:44 2004 From: baijingyu at HOTMAIL.COM (Jingyu Bai) Date: Fri, 3 Sep 2004 11:00:44 -0500 Subject: gd makefile Message-ID: Thanks: I tried your makefile for vc but it seems it doesn't work and I got this: Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. for d in doc test; do (cd $d; NMAKE CPPFLAGS='-DHAVE_STRING_H - DREGEX_M ALLOC' CFLAGS='-Ox -G6' CC='cl' DEFS='' LDFLAGS='' LOADLIBES='' default); done d was unexpected at this time. NMAKE : fatal error U1077: 'for' : return code '0x1' Stop. I compared with makefile from orignal source and it seems they are almost same. Is it for Unix not for VC? I now need a regex.obj with debug info (compiled with with /MTd option under vc 6 hopefuly). Could you send files to my e-mail baijingyu_ca at yahoo.com if possible. Thanks From gayathri at OU.EDU Fri Sep 3 09:05:41 2004 From: gayathri at OU.EDU (Swaminathan, Gayathri) Date: Fri, 3 Sep 2004 11:05:41 -0500 Subject: gd makefile Message-ID: Hi: A lot of things have changed with GD.... I now compile GD using my own VC6 workspace. Let me know if you would need a workspace for GD.. But alternatively per Brent's comments you could use the bgd.lib that comes compiled too. It simply works!!! :) The regex.obj is on it's way to your yahoo id! Gayathri > -----Original Message----- > From: Jingyu Bai [mailto:baijingyu at HOTMAIL.COM] > Sent: Friday, September 03, 2004 11:01 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU; Swaminathan, Gayathri > Subject: Re: gd makefile > > > Thanks: > > I tried your makefile for vc but it seems it doesn't work and > I got this: > Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 > Copyright (C) Microsoft Corp 1988-1998. All rights reserved. > > for d in doc test; do (cd $d; NMAKE > CPPFLAGS='-DHAVE_STRING_H - DREGEX_M ALLOC' CFLAGS='-Ox -G6' > CC='cl' DEFS='' LDFLAGS='' LOADLIBES='' default); done d was > unexpected at this time. NMAKE : fatal error U1077: 'for' : > return code '0x1' Stop. > > I compared with makefile from orignal source and it seems > they are almost same. Is it for Unix not for VC? > > I now need a regex.obj with debug info (compiled with with > /MTd option under vc 6 hopefuly). > > Could you send files to my e-mail baijingyu_ca at yahoo.com if possible. > > Thanks > From warmerdam at POBOX.COM Fri Sep 3 09:22:09 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 3 Sep 2004 12:22:09 -0400 Subject: FastCGI In-Reply-To: <001701c491b7$464a3e90$6702a8c0@jebediah> Message-ID: Skweda O'Bomsawin wrote: > Hi all! > > > > I just tried to compile Mapserver 4.2.2 for FastCGI without success. I > have installed mod_fcgi and FastCGI lib according to the Mapserver Wiki > article. Is the development of mapserver_fcgi has stopped? Can I > expect real improvements with mapserver_fcgi and PostGIS layers? Skweda, Work on the FastCGI support was a prototype investigation. It is not currently supported or being worked on. I hope to be able to return to it some day and make a more comprehensive implementation that does not involve duplicating all of mapserv.c but it will be a substantial effort. In the meantime, you can likely "hand integrate" some of the changes from the newer mapserv.c into mapserv_fcgi.c or try applying fast cgi support to mapserv.c yourself - though this might not be a job for the faint of heart. 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 blh at MSSL.UCL.AC.UK Fri Sep 3 09:52:07 2004 From: blh at MSSL.UCL.AC.UK (Ben Lloyd-Hughes) Date: Fri, 3 Sep 2004 11:52:07 -0500 Subject: Equidistant cylindrical projection Message-ID: Hi, I'm having a terrible time trying to serve an image of an ESRI shape file. From ogrinfo I get: $ ogrinfo -so CNTRY95_eqc.SHP CNTRY95_eqc INFO: Open of `CNTRY95_eqc.SHP' using driver `ESRI Shapefile' successful. Layer name: CNTRY95_eqc Geometry: Polygon Feature Count: 258 Extent: (-10018753.533581, -10006731.666389) - (10018753.533581, 9308936.146330) Layer SRS WKT: PROJCS["World_Equidistant_Cylindrical", GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984",6378137.0,298.257223563]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Equirectangular"], PARAMETER["False_Easting",0.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",0.0], PARAMETER["Standard_Parallel_1",60.0], UNIT["Meter",1.0]] FIPS_CNTRY: String (2.0) GMI_CNTRY: String (3.0) ISO_CNTRY: String (3.0) WB_CNTRY: String (3.0) CNTRY_NAME: String (40.0) EU: String (1.0) FAO: String (1.0) GA: String (1.0) GA_MEMB_YR: Integer (4.0) IAEA: String (1.0) IBRD: String (1.0) IMF: String (1.0) OPEC: String (1.0) SC: String (1.0) UNESCO: String (1.0) WHO: String (1.0) WMO: String (1.0) POP_CNTRY: Integer (10.0) SQKM_CNTRY: Real (15.3) SQMI_CNTRY: Real (15.3) So far so good - then I have a MAP file: MAP IMAGETYPE PNG UNITS METERS EXTENT -10018753.533581 -10006731.666389 10018753.533581 9308936.146330 SIZE 400 300 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION "proj=eqc" "datum=WGS84" "elips=WGS84" END # Start of LAYER DEFINITIONS -------------------------------------------- - LAYER # States polygon layer begins here NAME CNTRY95_eqc DATA CNTRY95_eqc STATUS DEFAULT TYPE POLYGON PROJECTION "proj=eqc" "datum=WGS84" "elips=WGS84" 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 Which is invoked via cgi: http://fuji-bgh.geol.ucl.ac.uk/cgi-bin/mapserv.exe?map=D%3A%2FApache% 2FApache2%2Fmywebdocs%2Fmaps%2Fdemos%2Fdrought%2Fdemo.map&mode=map From helmster_99 at YAHOO.COM Fri Sep 3 10:57:52 2004 From: helmster_99 at YAHOO.COM (Chris Helm) Date: Fri, 3 Sep 2004 10:57:52 -0700 Subject: Equidistant cylindrical projection In-Reply-To: Message-ID: Ben Try using this definition for projection in your mapfile projections statements. I use it and it works fine: PROJECTION "proj=eqc" "ellps=WGS84" "lon_0=0" "lat_ts=0" "no_defs" END Look at the Proj4 documentation for an explanation. Chris --- Ben Lloyd-Hughes wrote: > Hi, > > I'm having a terrible time trying to serve an image > of an ESRI shape > file. From ogrinfo I get: > > $ ogrinfo -so CNTRY95_eqc.SHP CNTRY95_eqc > INFO: Open of `CNTRY95_eqc.SHP' > using driver `ESRI Shapefile' successful. > > Layer name: CNTRY95_eqc > Geometry: Polygon > Feature Count: 258 > Extent: (-10018753.533581, -10006731.666389) - > (10018753.533581, > 9308936.146330) > Layer SRS WKT: > PROJCS["World_Equidistant_Cylindrical", > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > > SPHEROID["WGS_1984",6378137.0,298.257223563]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Equirectangular"], > PARAMETER["False_Easting",0.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",0.0], > PARAMETER["Standard_Parallel_1",60.0], > UNIT["Meter",1.0]] > FIPS_CNTRY: String (2.0) > GMI_CNTRY: String (3.0) > ISO_CNTRY: String (3.0) > WB_CNTRY: String (3.0) > CNTRY_NAME: String (40.0) > EU: String (1.0) > FAO: String (1.0) > GA: String (1.0) > GA_MEMB_YR: Integer (4.0) > IAEA: String (1.0) > IBRD: String (1.0) > IMF: String (1.0) > OPEC: String (1.0) > SC: String (1.0) > UNESCO: String (1.0) > WHO: String (1.0) > WMO: String (1.0) > POP_CNTRY: Integer (10.0) > SQKM_CNTRY: Real (15.3) > SQMI_CNTRY: Real (15.3) > > > So far so good - then I have a MAP file: > > > MAP > IMAGETYPE PNG > UNITS METERS > EXTENT -10018753.533581 -10006731.666389 > 10018753.533581 9308936.146330 > SIZE 400 300 > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > > PROJECTION > "proj=eqc" > "datum=WGS84" > "elips=WGS84" > END > > # Start of LAYER DEFINITIONS > -------------------------------------------- > - > LAYER # States polygon layer begins here > NAME CNTRY95_eqc > DATA CNTRY95_eqc > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "proj=eqc" > "datum=WGS84" > "elips=WGS84" > 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 > > > Which is invoked via cgi: > http://fuji-bgh.geol.ucl.ac.uk/cgi-bin/mapserv.exe?map=D%3A%2FApache% > 2FApache2%2Fmywebdocs%2Fmaps%2Fdemos%2Fdrought%2Fdemo.map&mode=map > > > From which I get an internal server error > > [Fri Sep 03 17:42:45 2004] [error] [client > 128.40.78.67] malformed header > from script. Bad header=\x89PNG: mapserv.exe, > referer: http://fuji- > bgh.geol.ucl.ac.uk/maps/demos/drought/demo_init.html > > Now the Itasca demo works fine - so I'm pretty sure > that the installation > is ok. The problem comes when I try to look at my > own shape file. I'd be > very grateful if someone could tell me what I'm > getting wrong. I am new to > Mapserver - so apologies if I'm doing some really > silly. > > Cheers, Ben > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From andy_canfield at HOTMAIL.COM Fri Sep 3 11:02:45 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Fri, 3 Sep 2004 11:02:45 -0700 Subject: Geocoding from shape files Message-ID: To all interested, A while back I posted asking if anyone was interested in a php interface to geocode from shapefiles. I got a few responses so here is the link to the source. You use it at your own risk. For each call to a geocode function it returns a string of space delimited points for every match it finds IE "X Y X2 Y2 X3 Y3.......Xn Yn" where each point is a matching street level address. So if you have one match for the address you get "X Y". The included php examples show calling it in a loop for multiple addresses. What you do with the returned points string is up to you. It includes examples of using it from php although since it's a library you could use it from any executable or another library. The source for both projects is there along with examples and some sample data including addresses that fall along the sample data. It was written for Windows and has some very specific Windows API calls in it so it will not directly port. The calls are modularized however so replacing those functions with their Unix or Linux counterpart should be easy. I don't have a test environment for either so I can not do a port on my end. I have only tested this with Windows 2000 and 2003 server running IIS. Using the multiple address interface I can geocode about 7 addresses a second from a street base of 300,000+ street segements. Your milage with it may vary. If you have questions you can reply to my e-mail address andy_canfield at hotmail.com I will try and answer what I can. Feedback would be appreciated especially if there is a broken link or my bandwidth limit runs out. Link to the page ( again you use this at your own risk it is not a mature project ): http://cornbread.cadvault.com/geocodeinstructions.html Thanks, Andy _________________________________________________________________ Get ready for school! Find articles, homework help and more in the Back to School Guide! http://special.msn.com/network/04backtoschool.armx From cpurvis at ASG.SC.EDU Fri Sep 3 15:35:10 2004 From: cpurvis at ASG.SC.EDU (Purvis, Charlton) Date: Fri, 3 Sep 2004 18:35:10 -0400 Subject: Anyone interested in near real-time remotely sensed imagery . . . Message-ID: . . . should visit here, especially during the hurricane season. I finally (and under pressure for obvious reasons) got our remotely sensed imagery available as WMS layers. Visit this post for more details. http://caro-coops.org/bb/viewtopic.php?t=324&highlight= We also have in-situ SST and winds available as WMS and WFS, but I'll save doing a summary post w/ instructions after the long weekend! Charlton -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Fri Sep 3 15:58:02 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 3 Sep 2004 16:58:02 -0600 Subject: Does someone have a perl mapascript example for getLayersDrawingOrder and setLayersdrawingOrder ? Message-ID: I'm trying to muck with the drawing order and I can figure out what the return value of "getLayersDrawingOrder" is. -e -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Fri Sep 3 17:07:22 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 3 Sep 2004 18:07:22 -0600 Subject: So how do you get swig typemaps for mapscript to work? Message-ID: Ok I figured out my problem now I have another. The reason I can get setLayersDrawingOrder to work appears to be because I don't have a SWIG typemap setup. So what do I need to do? I can't find any useful information anywhere. Thanks, -e -------------- next part -------------- An HTML attachment was scrubbed... URL: From joelf at GNETCONSULTING.COM Fri Sep 3 22:14:23 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Sat, 4 Sep 2004 01:14:23 -0400 Subject: Aquire x/y coordinates from rectangle object Message-ID: Hello List: I'm looking for a snippet of code to grab the X/Y coordinates from a point in a shape file. I've pulled the shape data in from the DBF (thanks to Lowell for that). Now I would like to display the data in overLib with a mouseover. So what is the best way to get the X/Y for each shape in the chosen extent? Thanks. Joel From gerry.creager at TAMU.EDU Sat Sep 4 04:07:50 2004 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Sat, 4 Sep 2004 06:07:50 -0500 Subject: Looking for a Florida Shapefile (or, MapInfo format, now that I think about it) Message-ID: Trying to slam together a radar mosaic page of Florida for the Hurricane Frances folk. If anyone's got something with state outlines, counties and major roads, I'd appreciate it. I'm about to start looking, but don't have a quick handle on this. Thanks in advance, 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 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From mathieuparent at INFONIE.FR Sat Sep 4 04:28:00 2004 From: mathieuparent at INFONIE.FR (Mathieu Parent) Date: Sat, 4 Sep 2004 13:28:00 +0200 Subject: Getting shape values from a PostGIS layer - i really need help In-Reply-To: <41383014.1040409@infonie.fr> Message-ID: Mathieu Parent a ?crit : > Hi, > How can I get values when I make a query in PHP/MapScript on a PostGIS > layer ? > > Examples : > _layer's properties :_ > CONNECTION "user=user password=pass dbname=postgis host=localhost > port=5432" > CONNECTIONTYPE POSTGIS > DATA "the_geom from adres" > > _part of the script :_ > if(($num_results=$layer->getNumResults())>0) { > $layer->open(); > for($j=0;$j<$num_results;$j++) { > $result=$layer->getResult($j); > > $shape=$layer->getShape($result->tileindex,$result->shapeindex); > foreach($shape->values AS $field=>$value) { > echo "$field=>$value
\n"; > } > } > $layer->close(); > > thanks The problem is : $shape->values is an empy array (because $layer is not a ShapeFile) how can i get the values associated with the geom ? From Chris.Judd at DEP.STATE.FL.US Sat Sep 4 08:18:56 2004 From: Chris.Judd at DEP.STATE.FL.US (Judd, Chris) Date: Sat, 4 Sep 2004 11:18:56 -0400 Subject: Looking for a Florida Shapefile (or, MapInfo format, now that I think about it) Message-ID: Florida DEP has alot of this data for download in shapefile format. http://www.dep.state.fl.us/gis/datadir.asp You are making a raster mosaic? FDEP/LABINS has DOQQs and other raster for download http://data.labins.org/2003/MappingData/DOQQ/doqq.cfm -Chris Florida DEP -----Original Message----- From: UMN MapServer Users List on behalf of Gerry Creager N5JXS Sent: Sat 9/4/2004 7:07 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: [UMN_MAPSERVER-USERS] Looking for a Florida Shapefile (or, MapInfo format, now that I think about it) Trying to slam together a radar mosaic page of Florida for the Hurricane Frances folk. If anyone's got something with state outlines, counties and major roads, I'd appreciate it. I'm about to start looking, but don't have a quick handle on this. Thanks in advance, 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 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From sgillies at FRII.COM Sat Sep 4 09:21:28 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Sat, 4 Sep 2004 10:21:28 -0600 Subject: So how do you get swig typemaps for mapscript to work? In-Reply-To: Message-ID: On Sep 3, 2004, at 6:07 PM, Ethan Alpert wrote: > This is a multi-part message in MIME format. > > ------_=_NextPart_001_01C49213.26B123CC > Content-Type: text/plain; > charset="us-ascii" > Content-Transfer-Encoding: quoted-printable > > =20 > Ok I figured out my problem now I have another. > =20 > The reason I can get setLayersDrawingOrder to work appears to be > because > I don't have a SWIG typemap setup. So what do I need to do? I can't > find > any useful information anywhere. > =20 > Thanks, > =20 > -e > > Ethan, If you are ready to tackle typemaps, check in with me on #mapserver. I'll help you translate what I've done for Python into Perl. Look at mapscript/python/pyextend.i for starters. I've bypassed the typemaps and am programming with the Python C API. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From newland at VT.EDU Sat Sep 4 11:48:03 2004 From: newland at VT.EDU (Newland Agbenowosi) Date: Sat, 4 Sep 2004 11:48:03 -0700 Subject: Getting MAX FEATURES to work for postgis Layers Message-ID: Dear all, I noticed that the layer MAX FEATURES option in the mapfile does not work for postgis layers. I managed to fix this by editing the mappostgis.c file as shown below. My question is: am I doing this the right way or am missing something? Thanks. //start transaction required by cursor result = PQexec(layerinfo->conn, "BEGIN"); if (!(result) || PQresultStatus(result) != PGRES_COMMAND_OK) { msSetError(MS_QUERYERR, "Error executing POSTGIS BEGIN statement.", "msPOSTGISLayerWhichShapes()"); PQclear(result); layerinfo->query_result = NULL; return(MS_FAILURE); // totally screwed } PQclear(result); //set enable_seqscan=off not required (already done) //--BEGINNING OF MY FIX if (layer->maxfeatures>0) sprintf(query_string_0_6,"%s limit %li", query_string_0_6,layer->maxfeatures); //--END OF MY FIX if (layer->debug) msDebug("query_string_0_6:%s\n",query_string_0_6); result = PQexec(layerinfo->conn, query_string_0_6 ); if ( (result!=NULL) && (PQresultStatus(result) == PGRES_COMMAND_OK) ) { //PQclear(result); *sql_results = result; strcpy(query_string, query_string_0_6 ); return (MS_SUCCESS); } From thomaschesky at YAHOO.COM Sat Sep 4 16:41:23 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sat, 4 Sep 2004 16:41:23 -0700 Subject: USGS Urban133 Ortho Imagery via WMS In-Reply-To: <3FC4483968B5A048BBD9F3387EBFF5C001A1D85A@XMAIL1.sooner.net.ou.edu> Message-ID: I finally made it work (almost). I have now some problem with reprojection. I want to reproject to epsg:26910 but my linemap and reprojected USGS does not match. If I reproject the linemap to 4326 it nicely overlays the 4326 default projection of the USGS ortho layer, but reprojecting both to 26910 does not work. I have the two layers in 2 different map file but it should not matter (when overlaying the graphics with photo sw) Is there any special thing to know re: reprojecting raster layers? Thanks in advance Here is the working map file: MAP NAME USGSUrban SHAPEPATH "/usr/local/mapdata/" SIZE 600 400 IMAGETYPE PNG24 IMAGECOLOR 0 0 0 UNITS DD PROJECTION "init=epsg:26910" END WEB METADATA "wms_title" "Test" "wms_onlineresource" "http://localhost:8080/cgi-bin/mapserv?map=/usr/local/mapapp/urban.map&" "wms_srs" "EPSG:4269 EPSG:4326 EPSG:26910 EPSG:2227 EPSG:2926 EPSG:26911" END IMAGEPATH /usr/local/httpd/htdocs/tmp/ END # SanFrancisco01, CA # LAYER NAME "SanFrancisco01" TYPE RASTER STATUS OFF CONNECTION "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap/USGS_EDC_Ortho_133Urban?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "SanFrancisco01" "wms_server_version" "1.1.0" "wms_formatlist" "image/png,image/jpeg" "wms_format" "image/png" END END END # end of map file "Swaminathan, Gayathri" wrote: Hi Thomas: Here is an example.... ### OKC 2002 Ortho USGS-WMS ### LAYER NAME Urban133 GROUP Imagery TYPE RASTER STATUS ON MAXSCALE 500000 OFFSITE 255 255 255 CONNECTIONTYPE WMS CONNECTION "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap?SERVICENAME=133urban&REASPECT=false&REQUEST=map" #MINSCALE 500 PROJECTION "init=epsg:4326" #WGS 84 END TRANSPARENCY 20 METADATA "NoID" "T" "wms_name" "UA_ORTHO_302_01" "wms_server_version" "1.0.0" "wms_format" "png" "wms_title" "USGS Urban Color Ortho 2002" "wms_group_title" "Imagery" "wms_style" "" #"wms_extent" "-123.12987 45.241726 -122.3584 45.75648" END END HTH, Gayathri -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thomas Chesky Sent: Saturday, August 28, 2004 3:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] USGS Urban133 Ortho Imagery via WMS Does anyone have a working mapfile which can produce the color, urban aerial maps using USGS's WMS interface? I just could not make it work :-( WMS server is at http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap? Thanks in advance. Thomas --------------------------------- Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! --------------------------------- Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at DEPREM.GOV.TR Sun Sep 5 03:00:42 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Sun, 5 Sep 2004 13:00:42 +0300 Subject: wrong with raster map Message-ID: hello I can all get vector maps by php-mapscr. but not rasters. They never appear and any error message. Only vector files are seen. where is the wrong ? 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 brian at ENTROPY.NET Sun Sep 5 03:31:41 2004 From: brian at ENTROPY.NET (Brian Russo) Date: Sun, 5 Sep 2004 06:31:41 -0400 Subject: input with mapserver Message-ID: Tried asking on this list a few times before but no response.. Is it possible at all with mapserver to either: Edit a layer OR get geographic coordinates by clicking on the map If not, does anyone know any open source stuff that'll do this? thanks, - bri -- Recursivity. Call back if it happens again. From temiz at DEPREM.GOV.TR Sun Sep 5 03:27:22 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Sun, 5 Sep 2004 13:27:22 +0300 Subject: getting a raster layer Message-ID: hello Is getting raster layer with php script different from vector layer ? what is the code to call a raster layer in ms-php * 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 ykchoo at GEOZERVICE.COM Sun Sep 5 14:09:49 2004 From: ykchoo at GEOZERVICE.COM (Yew K. Choo) Date: Sun, 5 Sep 2004 16:09:49 -0500 Subject: C# and Java SWIG example build instruction link Message-ID: FYI Please refer to the link below on how to build C# and Java version of the MapScript: http://www.geozervice.com/mapscript/csharp_java.html Bug request are being worked on, and the link contains instruction and examples on how to build with MapServer v. 4.23 or earlier of mapscript.i. ykchoo at geozervice.com From stephane.riff at CERENE.FR Mon Sep 6 01:57:34 2004 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Mon, 6 Sep 2004 10:57:34 +0200 Subject: mapserver rasters scale Message-ID: Hi all, I want to display some rasters layers : first one is 1/250000, 250 dpi second one is 1/25000, 250 dpi Here is an extract of my map file : MAP UNITS METERS IMAGETYPE PNG PROJECTION "init=esri:27582" END LAYER NAME "250000" TILEINDEX "../data/250000" TILEITEM "LOCATION" TYPE RASTER STATUS ON OFFSITE 0 0 0 MINSCALE 25000 MAXSCALE 250000 GROUP "carto" CLASS NAME "Fond raster 250000" END END LAYER NAME "25000" TILEINDEX "../data/25000" TILEITEM "LOCATION" TYPE RASTER STATUS ON OFFSITE 0 0 0 MAXSCALE 25000 GROUP "carto" CLASS NAME "Fond raster 25000" END END This two layer switch well looking for mapserver scale. The question i want to ask is why when i open a 1/250000 raster with GIMP and set the scale to 100%, it doesn't seem to correspond with what i see in mapserver at scale 250000. In other words, if mapserver scale is 250000, does it means that the view is at 1/250000 sacle??? I hope my question is understandable Thanks From malsburg at CL.UNI-HEIDELBERG.DE Mon Sep 6 04:27:53 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Mon, 6 Sep 2004 13:27:53 +0200 Subject: Colors, PNGs Message-ID: Hi, I have a problem with colors in maps rendererd by Mapserver when using png as the outputformat. I have two layers: a raster layer with black&white ortho imagery and a shape showing buildings in different colors. The layers a look as expected when rendered individually. See: * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv03.png * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv01.png But if I switch them both on, it looks like * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv02.png Everything is black&white. The problem does only appear with outputformat set to png. Does anyone know how to solve this problem? Thanks, Titus $ mapserv -v MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Debian unstable. From temiz at DEPREM.GOV.TR Mon Sep 6 04:46:46 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 6 Sep 2004 14:46:46 +0300 Subject: changing status by php Message-ID: hello Is it possible to change maps' status dynamically by php_mapscript. What I want to do change from default (or on) status value of a map to off and off status value another layer to default. Is this the proper way to show and hide maps ? how can I use the map object and php code ? 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 robert-fritz at WEB.DE Mon Sep 6 05:35:35 2004 From: robert-fritz at WEB.DE (Robert Fritz) Date: Mon, 6 Sep 2004 07:35:35 -0500 Subject: Dynamic Labelling using a Database Message-ID: Hello, my attribute data is stored in a database, i want to classify and label my shapes using the database values. classifying is no problem, but how can i label the objects using a database value? i ' ve tried some ways, but none was working. thank you, robert From gis at UNDPHAIS.ORG.NP Mon Sep 6 05:17:24 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Mon, 6 Sep 2004 18:02:24 +0545 Subject: php mapscript compilation error Message-ID: Hi I am getting the following errors while installing php mapscript: ######################################################################################### cd mapscript/php3; make; cd ../.. make[1]: Entering directory `/usr/local/mapserver-4.2.3/mapscript/php3' gcc -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -I/usr/local/mapserver-4.2.3 -I/usr/local/mysql/include -I/usr/local/include -I/usr/local/include -I/usr/src/php-4.3.3 -I/usr/src/php-4.3.3/dl -I/usr/src/php-4.3.3/main -I/usr/src/php-4.3.3/Zend -I/usr/src/php-4.3.3/include -I/usr/src/php-4.3.3/TSRM -c -o php_mapscript_util.o php_mapscript_util.c php_mapscript_util.c: In function `_phpms_fetch_handle2': php_mapscript_util.c:153: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_handle2': php_mapscript_util.c:205: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_string': php_mapscript_util.c:252: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_long': php_mapscript_util.c:278: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_double': php_mapscript_util.c:311: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_resource': php_mapscript_util.c:337: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_set_property_string': php_mapscript_util.c:373: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_set_property_null': php_mapscript_util.c:401: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_set_property_long': php_mapscript_util.c:430: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_set_property_double': php_mapscript_util.c:459: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_php_extract_associative_array': php_mapscript_util.c:545: warning: dereferencing type-punned pointer will break strict-aliasing rules gcc -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WMS_SVR -DUSE_MYGIS -DUSE_GDAL -DUSE_OGR -DUSE_THREAD -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_PDF -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -I/usr/local/mapserver-4.2.3 -I/usr/local/mysql/include -I/usr/local/include -I/usr/local/include -I/usr/src/php-4.3.3 -I/usr/src/php-4.3.3/dl -I/usr/src/php-4.3.3/main -I/usr/src/php-4.3.3/Zend -I/usr/src/php-4.3.3/include -I/usr/src/php-4.3.3/TSRM -c -o php_mapscript.o php_mapscript.c php_mapscript.c: In function `php3_ms_map_setExtent': php_mapscript.c:1824: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `_php3_ms_map_setProjection': php_mapscript.c:1914: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_zoomPoint': php_mapscript.c:2433: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_zoomRectangle': php_mapscript.c:2730: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_zoomScale': php_mapscript.c:3072: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_draw': php_mapscript.c:3329: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_drawQuery': php_mapscript.c:3418: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_setLayersDrawingOrder': php_mapscript.c:4901: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_loadMapContext': php_mapscript.c:5572: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_map_selectOutputFormat': php_mapscript.c:5650: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_img_free': php_mapscript.c:6214: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_point_free': php_mapscript.c:9371: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_line_free': php_mapscript.c:9718: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_shape_project': php_mapscript.c:9969: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_shape_free': php_mapscript.c:10432: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_rect_free': php_mapscript.c:10954: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_shapefile_free': php_mapscript.c:11552: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_projection_free': php_mapscript.c:11701: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_symbol_setPoints': php_mapscript.c:12880: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c:12889: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript.c: In function `php3_ms_symbol_setStyle': php_mapscript.c:13033: warning: dereferencing type-punned pointer will break strict-aliasing rules ############################################################################################# Config parameters for mapserver: ./configure --without-tiff --without-eppl --with-threads --with-proj --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-php=/usr/src/php-4.3.3 --with-freetype=/usr/bin --with-wmsclient --with-wfs --with-wfsclient --with-mygis=/usr/local/mysql/bin/mysql_config Php was built using: ./configure --enable-shared --with-regex=system --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi-redirect --enable-dbase --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php433/ --prefix=/usr/local/php433 I'm new to mapserver and can't seem to figure out what I'm doing wrong. Any help would be greatly appreciated. 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 malsburg at CL.UNI-HEIDELBERG.DE Mon Sep 6 06:21:04 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Mon, 6 Sep 2004 15:21:04 +0200 Subject: Colors, PNGs In-Reply-To: <1094471701.9266.23.camel@nvandijk> Message-ID: On Mon, Sep 06, 2004 at 01:55:01PM +0200, Niels van Dijk wrote: > I guess your otho's are TIFF's? Right, TIFFs + worldfiles > If so try this: > > Compile with: > > --WITHOUT-TIFF > > It has somethig to do with the sequence in which tiff support is loaded. Because TIFF support is in libtiff _and_ gdal? I did recompile mapserv with --without-tiff yielding MapServer version 4.0.1 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=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE But the problem continues to exist :-( Thanks anyway, Titus From woodbri at SWOODBRIDGE.COM Mon Sep 6 06:41:47 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 6 Sep 2004 09:41:47 -0400 Subject: Colors, PNGs In-Reply-To: <20040906132103.GA11481@mother> Message-ID: This is a know problem see http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 I posted a work-a-round that worked for me, you might get it to work for you. There is also a PROCESSING directive that allows you to combine colors that are within "n" color cells of one another into a single color. this works well with tiffs and potentially level other color slots open for you other layers. -Steve W. Titus von der Malsburg wrote: > On Mon, Sep 06, 2004 at 01:55:01PM +0200, Niels van Dijk wrote: > >>I guess your otho's are TIFF's? > > > Right, TIFFs + worldfiles > > >>If so try this: >> >>Compile with: >> >>--WITHOUT-TIFF >> >>It has somethig to do with the sequence in which tiff support is loaded. > > > Because TIFF support is in libtiff _and_ gdal? > > I did recompile mapserv with --without-tiff yielding > > MapServer version 4.0.1 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=JPEG INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > But the problem continues to exist :-( > > Thanks anyway, > Titus > From berend.veldkamp at ARIS.NL Mon Sep 6 06:43:06 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Mon, 6 Sep 2004 15:43:06 +0200 Subject: Colors, PNGs In-Reply-To: <20040906112752.GA11081@mother> Message-ID: It might have something to do with the number of colors you use, with pc256, you can only have 256 separate colors. If you have "IMAGEMODE pc256", try and see if setting it to "rgb" helps. The filesize of your images will be larger, but you have more possible colors. i.e. IMAGETYPE png24bit OUTPUTFORMAT NAME png24bit DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE rgb END If this doesn't help, you could try to reduce the number of colors in your map, for instance by not using antialiased fonts, but since your image (without labels) already contains 243 colors, I doubt you can gain much here. HTH, Berend Titus von der Malsburg wrote: > Hi, > > I have a problem with colors in maps rendererd by Mapserver when using > png as the outputformat. I have two layers: a raster layer with > black&white ortho imagery and a shape showing buildings in different > colors. The layers a look as expected when rendered > individually. See: > > * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv03.png > * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv01.png > > But if I switch them both on, it looks like > > * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv02.png > > Everything is black&white. The problem does only appear with > outputformat set to png. > > Does anyone know how to solve this problem? > > Thanks, > Titus -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From ed at TOPOZONE.COM Mon Sep 6 06:56:20 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Sep 2004 09:56:20 -0400 Subject: mapserver rasters scale Message-ID: St?phane - A scale ratio like "1/25000" only makes sense if you know the exact resolution of the output device (screen or printer) in pixels per inch. Otherwise I can just adjust the image size on my monitor and the scale ratio won't be correct! I suspect that you are simply seeing a difference between the output resolution MapServer uses by default (72 DPI) and the output resolution GIMP is using. MapServer's default isn't a good guess for most monitors these days, which most users seem to run at 90 - 110 DPI. You can use the RESOLUTION statement in your MAP file to adjust the default. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane RIFF Sent: Monday, September 06, 2004 4:58 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mapserver rasters scale Hi all, I want to display some rasters layers : first one is 1/250000, 250 dpi second one is 1/25000, 250 dpi Here is an extract of my map file : MAP UNITS METERS IMAGETYPE PNG PROJECTION "init=esri:27582" END LAYER NAME "250000" TILEINDEX "../data/250000" TILEITEM "LOCATION" TYPE RASTER STATUS ON OFFSITE 0 0 0 MINSCALE 25000 MAXSCALE 250000 GROUP "carto" CLASS NAME "Fond raster 250000" END END LAYER NAME "25000" TILEINDEX "../data/25000" TILEITEM "LOCATION" TYPE RASTER STATUS ON OFFSITE 0 0 0 MAXSCALE 25000 GROUP "carto" CLASS NAME "Fond raster 25000" END END This two layer switch well looking for mapserver scale. The question i want to ask is why when i open a 1/250000 raster with GIMP and set the scale to 100%, it doesn't seem to correspond with what i see in mapserver at scale 250000. In other words, if mapserver scale is 250000, does it means that the view is at 1/250000 sacle??? I hope my question is understandable Thanks From ed at TOPOZONE.COM Mon Sep 6 07:01:53 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Sep 2004 10:01:53 -0400 Subject: Colors, PNGs Message-ID: Titus - As the others have suggested, this is a matter of running out of colors. Your photo layer is not "black and white" (two colors), but grayscale, and probably has 256 different shades of gray. MapServer processes layers one at a time, allocating available colors as needed. If you draw the first layer in your map using 256 different shades of gray, MapServer will create a palette with 256 gray shades in it, so that first layer is drawn accurately. If you then try to draw another layer, there are no new colors left and MapServer will use the shade of gray that's closest to each color (which won't be very close, of course). You don't say what outputformat DOES work, but I suspect that you're using JPEG, which is a 24-bit output format and therefore doesn't have this problem. It's a limitation of the color depth, not the format itself. If you reverse the order of those two layers so the color layer is drawn first, you'll see you get a different result. As Steve suggests, you can use the PROCESSING= option (from GDAL) to have GDAL use a near match rather than exact match when drawing the grayscale layer. This will use fewer colors, and will leave some left over for your other layer. You can also create an OUTPUTFORMAT block to define your PNG output to be a 24-bit PNG rather than 8-bit PNG, and that will fix the problem, too. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Monday, September 06, 2004 7:28 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Colors, PNGs Hi, I have a problem with colors in maps rendererd by Mapserver when using png as the outputformat. I have two layers: a raster layer with black&white ortho imagery and a shape showing buildings in different colors. The layers a look as expected when rendered individually. See: * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv03.png * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv01.png But if I switch them both on, it looks like * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv02.png Everything is black&white. The problem does only appear with outputformat set to png. Does anyone know how to solve this problem? Thanks, Titus $ mapserv -v MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE On Debian unstable. From joelf at GNETCONSULTING.COM Mon Sep 6 07:32:05 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Mon, 6 Sep 2004 10:32:05 -0400 Subject: changing status by php Message-ID: Temiz: Maybe this is what you're looking for? // get the layer name $layer = $map->getlayerbyname(your layer name here); // turn the map on/off $layer->set("status", 1); # on $layer->set("status", 0); # off Hope that helps. Joel ----- Original Message ----- From: "temiz" To: Sent: Monday, September 06, 2004 7:46 AM Subject: [UMN_MAPSERVER-USERS] changing status by php > hello > > Is it possible to change maps' status dynamically by php_mapscript. > What I want to do change from default (or on) status value of a map to > off and > off status value another layer to default. > > Is this the proper way to show and hide maps ? > > how can I use the map object and php code ? > 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 keon at NACSE.ORG Mon Sep 6 07:31:43 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Mon, 6 Sep 2004 07:31:43 -0700 Subject: changing status by php In-Reply-To: <413C4E26.7070900@deprem.gov.tr> Message-ID: Ahmet, I think this is what you want: $layer = $map->getLayerByName('roads'); if (something) { $layer->set('status', 0); //turns layer off } else { $layer->set('status', 1); //turns layer on } temiz wrote: > hello > > Is it possible to change maps' status dynamically by php_mapscript. > What I want to do change from default (or on) status value of a map to > off and > off status value another layer to default. > > Is this the proper way to show and hide maps ? > > how can I use the map object and php code ? > regards > > Ahmet Temiz From ter-haseborg at SF-DATENTECHNIK.DE Mon Sep 6 06:44:50 2004 From: ter-haseborg at SF-DATENTECHNIK.DE (Frieso ter Haseborg) Date: Mon, 6 Sep 2004 15:44:50 +0200 Subject: Colors, PNGs Message-ID: Hi, looks like the ortho images consume the whole palette, you could try to reduce this effect by using the processing parameter on the ortho-layer. LAYER NAME "ortho" TYPE RASTER PROCESSING 'COLOR_MATCH_THRESHOLD=3' [...] Start with a setting of 3 and increase this value until it fits your needs. hth, Frieso ter Haseborg - Software Development - -- -------------------------------------------------- S&F Datentechnik GmbH&Co.KG Reimersstr. 41b 26789 Leer, Germany > -----Original Message----- > From: Titus von der Malsburg [mailto:malsburg at CL.UNI-HEIDELBERG.DE] > Sent: Monday, September 06, 2004 1:28 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Colors, PNGs > > > Hi, > > I have a problem with colors in maps rendererd by Mapserver when using > png as the outputformat. I have two layers: a raster layer with > black&white ortho imagery and a shape showing buildings in different > colors. The layers a look as expected when rendered > individually. See: > > * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv03.png > * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv01.png > > But if I switch them both on, it looks like > > * http://www.cl.uni-heidelberg.de/~malsburg/temp/mapserv02.png > > Everything is black&white. The problem does only appear with > outputformat set to png. > > Does anyone know how to solve this problem? > > Thanks, > Titus > > $ mapserv -v > MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 > INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > On Debian unstable. > > From gpmail at POST.HTNET.HR Mon Sep 6 16:30:13 2004 From: gpmail at POST.HTNET.HR (Goran Pavelic) Date: Tue, 7 Sep 2004 01:30:13 +0200 Subject: WMS client Message-ID: Can someone please post a working mapfile with some WMS layers which I could use to test my Mapserver installation. Any hints in addition to the official documentation would be great. I tried to set up a WMS client layer by following the docs but I get no results. I just get my shape file displayed and no WMS layer, also there aren't any error messages. Thanks From tylermitchell at SHAW.CA Mon Sep 6 16:47:44 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 6 Sep 2004 16:47:44 -0700 Subject: WMS client In-Reply-To: <002201c49469$75d6b9e0$1e00a8c0@TOOLBOX> Message-ID: Hi Goran, If you just want to see a snippit, then look at the end/comments section of my recent weblog. The weblog might be a good place to start, actually, since I talk about what I did to add a layer to my site: http://www.oreillynet.com/pub/wlg/5542 You can see lots of examples on my global map site: http://spatialguru.com/maps/apps/global/ The map file is at: http://spatialguru.com/maps/apps/global/global.map Tyler On September 6, 2004 04:30 pm, Goran Pavelic wrote: > Can someone please post a working mapfile with some WMS layers which I > could use to test my Mapserver installation. Any hints in addition to the > official documentation would be great. I tried to set up a WMS client layer > by following the docs but I get no results. I just get my shape file > displayed and no WMS layer, also there aren't any error messages. > > Thanks From andy_canfield at HOTMAIL.COM Mon Sep 6 17:38:39 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Mon, 6 Sep 2004 17:38:39 -0700 Subject: WMS client Message-ID: Search the archives for a thread titled "Terraserver question" it was only a few days ago that it was posted. In it Dylan posted a working example of a wms layer that uses Terraserver. I used his example and it works great for me. I had to alter it a bit to fit my mapsize and extents but that will give you a working example. >From: Goran Pavelic >Reply-To: Goran Pavelic >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] WMS client >Date: Tue, 7 Sep 2004 01:30:13 +0200 > >Can someone please post a working mapfile with some WMS layers which I >could >use to test my Mapserver installation. Any hints in addition to the >official >documentation would be great. I tried to set up a WMS client layer by >following the docs but I get no results. I just get my shape file displayed >and no WMS layer, also there aren't any error messages. > >Thanks _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From temiz at DEPREM.GOV.TR Tue Sep 7 04:06:03 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 7 Sep 2004 14:06:03 +0300 Subject: getting table value Message-ID: hello I am bit confused about getting the data table value when clicked on a polygon layer. I am using php mapscrit. what must the code be ? 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 norbert.thieme at ILMENAU.BAW.DE Tue Sep 7 04:26:59 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Tue, 7 Sep 2004 13:26:59 +0200 Subject: getting table value In-Reply-To: <413D961B.9040106@deprem.gov.tr> Message-ID: temiz schrieb: > hello > > I am bit confused about getting the data table value when clicked on a > polygon layer. > I am using php mapscrit. > what must the code be ? > > > 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. > > Have a look at: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0407/msg00133.html or http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0405/msg00105.html Regards, Norbert From jcastil1 at TRAGSA.ES Tue Sep 7 04:59:30 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo) Date: Tue, 7 Sep 2004 06:59:30 -0500 Subject: Limit the scale to an specific value Message-ID: I 'm trying to limit the scale to 2000 (for example) and if someone try to set another minor scale (<2000) i will set the scale to 2000 some thing like if scale<200 then scale=2000 but the extends change so the map seems to dessapear (extend from - 450000.000000 3817875.000000 1100000.000000 4982125.000000 TO -142.111035 - 106.833276 140.111035 104.833276) I'm using jbox to pan, drag and zoom but jbox doesn't do what it's expected to do thanks From temiz at DEPREM.GOV.TR Tue Sep 7 06:34:06 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 7 Sep 2004 16:34:06 +0300 Subject: creating scale bar Message-ID: hello how can I create scale bar with phpmapscript ? 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 malsburg at CL.UNI-HEIDELBERG.DE Tue Sep 7 06:45:22 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Tue, 7 Sep 2004 15:45:22 +0200 Subject: How To Ask Questions The Smart Way Message-ID: I'm reading this list since a few weeks now and I observed, that communication is sometimes suboptimal. Many people ask for help very politely but fail to describe their setup and problem in a sufficiently detailed manner, therefore getting sometimes poor or no results. There is a very nice howto document by Eric Raymond titled "How To Ask Questions The Smart Way" that describes how one should act to get optimal results from mailing lists and similar media. I read it once and it helped me very much, so I recommend it here. Maybe Eric Raymond is all-to rigorous at some points, but nevertheless the document gives you an idea of how you could improve your communication. Cheers, Titus From berend.veldkamp at ARIS.NL Tue Sep 7 06:49:14 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Tue, 7 Sep 2004 15:49:14 +0200 Subject: How To Ask Questions The Smart Way In-Reply-To: <20040907134521.GA14687@mother> Message-ID: And it can be read here: http://www.catb.org/~esr/faqs/smart-questions.html Titus von der Malsburg wrote: > I'm reading this list since a few weeks now and I observed, that > communication is sometimes suboptimal. Many people ask for help very > politely but fail to describe their setup and problem in a sufficiently > detailed manner, therefore getting sometimes poor or no results. > > There is a very nice howto document by Eric Raymond titled "How To Ask > Questions The Smart Way" that describes how one should act to get > optimal results from mailing lists and similar media. I read it once > and it helped me very much, so I recommend it here. > > Maybe Eric Raymond is all-to rigorous at some points, but nevertheless > the document gives you an idea of how you could improve your > communication. > > Cheers, > Titus > > -- From sgillies at FRII.COM Tue Sep 7 06:53:45 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 7 Sep 2004 07:53:45 -0600 Subject: C# and Java SWIG example build instruction link In-Reply-To: Message-ID: On Sep 5, 2004, at 3:09 PM, Yew K. Choo wrote: > FYI > > Please refer to the link below on how to build C# and Java version of > the > MapScript: > http://www.geozervice.com/mapscript/csharp_java.html > > Bug request are being worked on, and the link contains instruction and > examples on how to build with MapServer v. 4.23 or earlier of > mapscript.i. > > ykchoo at geozervice.com > > Yew, Would you consider contributing your C# makefile to the MapServer project? If yes, open a new enhancement issue in the bugzilla tracker under mapscript-swig, and attach the files. I'll get them into CVS and we can work together to keep them up date and in synch with the next revisions of MapServer. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From keon at NACSE.ORG Tue Sep 7 07:14:10 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Tue, 7 Sep 2004 07:14:10 -0700 Subject: creating scale bar In-Reply-To: <413DB8CE.9050603@deprem.gov.tr> Message-ID: Ahmet, First, make sure you have defined a SCALEBAR block in your mapfile (or via mapscript). // create scalebar $scale_img = $map->drawScaleBar(); $scale_url = $scale_img->saveWebImage(); Then call it in your HTML: --Dylan temiz wrote: > hello > > how can I create scale bar with phpmapscript ? > > regards > > Ahmet Temiz From toni at GISCAMPUS.UDG.ES Tue Sep 7 07:19:40 2004 From: toni at GISCAMPUS.UDG.ES (=?ISO-8859-1?Q?toni_hern=E1ndez?=) Date: Tue, 7 Sep 2004 16:19:40 +0200 Subject: colorTIF support Message-ID: hello everyone, I am working with the version 4.0.1 for windows. I have been in trouble working with a TIFF color image as background of my mapservr. If I display the map in 1:1 scale there is no problem at all but when I try to ZOOM the map (which contains a color TIFF background) image the next error message appears. "drawTIFF(): Image handling error. Only colormapped and grayscale images are supported" Does anyone of you know if this problem can be solved. Thanks a lot From pbay6343 at BIGPOND.NET.AU Tue Sep 7 07:25:45 2004 From: pbay6343 at BIGPOND.NET.AU (Peter Bayley) Date: Wed, 8 Sep 2004 00:25:45 +1000 Subject: addColor in PHPMapScript Message-ID: The $map->addColor(r,g,b) method seems to be missing in MapScript 4 although its there in Version 3. Has this method been superceded - if so, how do I set colors? Regards Peter Bayley -------------- next part -------------- An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Tue Sep 7 07:37:36 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 7 Sep 2004 10:37:36 -0400 Subject: Aquire x/y coordinates from rectangle object Message-ID: The following message was sent by G-Net Consulting on Sat, 4 Sep 2004 01:14:23 -0400. > Hello List: > > I'm looking for a snippet of code to grab the X/Y coordinates > from a point in a shape file. I've pulled the shape data in > from the DBF (thanks to Lowell for that). Now I would like > to display the data in overLib with a mouseover. > > So what is the best way to get the X/Y for each shape > in the chosen extent? > > Thanks. > > Joel Joel; You can: shapeObj = new shapeObj(type_point) use the shapeindex from resultCacheMemberObj with layer->getShape(shapeObj, 0, shapeindex) pointObj=shapeObj->get(0) pointObj->{x} & pointObj->{y} The doc (at least swigmapscript) needs to be clearer on this. Lowell From joelf at GNETCONSULTING.COM Tue Sep 7 07:43:03 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Tue, 7 Sep 2004 10:43:03 -0400 Subject: Aquire x/y coordinates from rectangle object Message-ID: Lowell: Thanks for the reply. I actually got it working another way. I pulled the lat/long vars from the DBF and displayed them that way, after I found a snippet in the old mailing list archives. But I think I'll try it this way, too, as it seems more elegant. Thanks again for the help. Joel ----- Original Message ----- From: "Lowell Filak" To: "G-Net Consulting" ; Sent: Tuesday, September 07, 2004 10:37 AM Subject: Re: [UMN_MAPSERVER-USERS] Aquire x/y coordinates from rectangle object > The following message was sent by G-Net Consulting > on Sat, 4 Sep 2004 01:14:23 -0400. > >> Hello List: >> >> I'm looking for a snippet of code to grab the X/Y coordinates >> from a point in a shape file. I've pulled the shape data in >> from the DBF (thanks to Lowell for that). Now I would like >> to display the data in overLib with a mouseover. >> >> So what is the best way to get the X/Y for each shape >> in the chosen extent? >> >> Thanks. >> >> Joel > > Joel; > > You can: > > shapeObj = new shapeObj(type_point) > > use the shapeindex from resultCacheMemberObj with > layer->getShape(shapeObj, 0, shapeindex) > > pointObj=shapeObj->get(0) > > pointObj->{x} & pointObj->{y} > > The doc (at least swigmapscript) needs to be clearer on this. > > Lowell > From lfilak at MEDINACO.ORG Tue Sep 7 07:45:23 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 7 Sep 2004 10:45:23 -0400 Subject: addColor in PHPMapScript Message-ID: Everything has moved to the colorObj. HTH Lowell The following message was sent by Peter Bayley on Wed, 8 Sep 2004 00:25:45 +1000. > The $map->addColor(r,g,b) method seems to be missing in MapScript 4 > although its there in Version 3. > Has this method been superceded - if so, how do I set colors? > > Regards > > Peter Bayley From keon at NACSE.ORG Tue Sep 7 07:46:18 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Tue, 7 Sep 2004 07:46:18 -0700 Subject: addColor in PHPMapScript In-Reply-To: <002101c494e6$8feb7be0$0300a8c0@homer3> Message-ID: Peter, The method has changed in 4.x - colors are now assigned using the style object. See this wiki page for an example: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MigrationGuide --Dylan Peter Bayley wrote: > The $map->addColor(r,g,b) method seems to be missing in MapScript 4 > although its there in Version 3. > Has this method been superceded - if so, how do I set colors? > > Regards > > Peter Bayley From jcastil1 at TRAGSA.ES Tue Sep 7 08:20:22 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo) Date: Tue, 7 Sep 2004 10:20:22 -0500 Subject: jbox setcursor doesn't work and more Message-ID: Hi all I' have mapserv 41 on a w2k ISS i'm currently working with jbox to zoom and drag. I'm tryin to * set the cursor from hand to default and vice-versa, i use the function setcursor, no errors appear but, nothing is done * show an imagen while mapserv is working (ortophotos around 50Gb takes few seconds) i try with the parameter busyimage but... as exception appear ... nullpointerexception Thanks From lfilak at MEDINACO.ORG Tue Sep 7 08:48:46 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 7 Sep 2004 11:48:46 -0400 Subject: Aquire x/y coordinates from rectangle object Message-ID: The following message was sent by Lowell Filak on Tue, 7 Sep 2004 10:37:36 -0400. > The following message was sent by G-Net Consulting > on Sat, 4 Sep 2004 01:14:23 -0400. > > > Hello List: > > > > I'm looking for a snippet of code to grab the X/Y coordinates > > from a point in a shape file. I've pulled the shape data in > > from the DBF (thanks to Lowell for that). Now I would like > > to display the data in overLib with a mouseover. > > > > So what is the best way to get the X/Y for each shape > > in the chosen extent? > > > > Thanks. > > > > Joel > > Joel; > > You can: > > shapeObj = new shapeObj(type_point) > > use the shapeindex from resultCacheMemberObj with > layer->getShape(shapeObj, 0, shapeindex) > > pointObj=shapeObj->get(0) > > pointObj->{x} & pointObj->{y} > > The doc (at least swigmapscript) needs to be clearer on this. > > Lowell Joel; My bad. To access the pointObj you will need to go through the shapefileObj. I'll send an example shortly. Lowell From lfilak at MEDINACO.ORG Tue Sep 7 09:04:05 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 7 Sep 2004 12:04:05 -0400 Subject: Aquire x/y coordinates from rectangle object Message-ID: The following message was sent by Lowell Filak on Tue, 7 Sep 2004 10:37:36 -0400. > The following message was sent by G-Net Consulting > on Sat, 4 Sep 2004 01:14:23 -0400. > > > Hello List: > > > > I'm looking for a snippet of code to grab the X/Y coordinates > > from a point in a shape file. I've pulled the shape data in > > from the DBF (thanks to Lowell for that). Now I would like > > to display the data in overLib with a mouseover. > > > > So what is the best way to get the X/Y for each shape > > in the chosen extent? > > > > Thanks. > > > > Joel > > Joel; > > You can: > > shapeObj = new shapeObj(type_point) > > use the shapeindex from resultCacheMemberObj with > layer->getShape(shapeObj, 0, shapeindex) > > pointObj=shapeObj->get(0) > > pointObj->{x} & pointObj->{y} > > The doc (at least swigmapscript) needs to be clearer on this. > > Lowell Joel; Here's a correct example. $data = $layer->{data}; $shapefile = new mapscript::shapefileObj($data,-1); $point = new mapscript::pointObj(); $shapefile->getPoint(shapeindex,$point); $x = $point->{x}; $y = $point->{y}; Lowell From malsburg at CL.UNI-HEIDELBERG.DE Tue Sep 7 09:26:38 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Tue, 7 Sep 2004 18:26:38 +0200 Subject: Dashed Outline Message-ID: I want the outline of a polygon (esri world base country layer) to be dashed, but couldn't find anything about how to achieve this. No documentation, no mapfile snippets. Is it possible at all to have dashed outlines? A hack, that seems to work is * duplicate the layer in the mapfile * say TYPE POLYGON to the one * and TYPE LINE to the other * the first defines the filling * the latter the outline Cheers, Titus From monicasocol at CUESTASYS.COM Tue Sep 7 09:27:52 2004 From: monicasocol at CUESTASYS.COM (Monica Socol) Date: Tue, 7 Sep 2004 12:27:52 -0400 Subject: Dashed Outline In-Reply-To: <20040907162637.GD15480@mother> Message-ID: Yes, It is possible. You have to define a new symbol into .symbols file for a dashed line. Then you have to define 2 styles for that class: - The first one will have the colour for the filling or the symbol for the interior or the polygon. - The second style defines the line (symbol, size, colour). I found out that if I put everything in one style, the symbol and size are applied to the interior, not to the line. But it works with 2 separate styles. ------------------------------------------------------------------------ ---- Monica Socol Systems Architect Cuesta Systems Inc. 5230 South Service Rd., Burlington L7L 5K2 tel: 905.333.4544 ext 30 fax: 905.333.0455 e-mail: monicasocol at cuestasys.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Tuesday, September 07, 2004 12:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Dashed Outline I want the outline of a polygon (esri world base country layer) to be dashed, but couldn't find anything about how to achieve this. No documentation, no mapfile snippets. Is it possible at all to have dashed outlines? A hack, that seems to work is * duplicate the layer in the mapfile * say TYPE POLYGON to the one * and TYPE LINE to the other * the first defines the filling * the latter the outline Cheers, Titus From David.Fawcett at STATE.MN.US Tue Sep 7 09:37:04 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 7 Sep 2004 11:37:04 -0500 Subject: Dashed Outline Message-ID: Titus, Define this symbol in your symbols.sym file: SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 10 5 5 END END Your layer definition should look something like: LAYER NAME basemap STATUS default TYPE polygon DATA score CLASS STYLE OUTLINECOLOR 153 153 153 COLOR 204 204 153 SYMBOL 'dashed' END #end of style END #end of class END #end of layer David. David J. Fawcett MN Office of Environmental Assistance >>> Titus von der Malsburg 9/7/2004 11:26:38 AM >>> I want the outline of a polygon (esri world base country layer) to be dashed, but couldn't find anything about how to achieve this. No documentation, no mapfile snippets. Is it possible at all to have dashed outlines? A hack, that seems to work is * duplicate the layer in the mapfile * say TYPE POLYGON to the one * and TYPE LINE to the other * the first defines the filling * the latter the outline Cheers, Titus From David.Fawcett at STATE.MN.US Tue Sep 7 09:27:50 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 7 Sep 2004 11:27:50 -0500 Subject: mapserver rasters scale Message-ID: I don't believe that this answers your central question, but you may want to take a look at your PROJECTION block. PROJECTION "init=esri:27582" END should probably read PROJECTION "init=epsg:27582" END This may not be causing any problems right now, but if you add projection blocks to your layers, I am guessing that you will see an error. For your primary question, I am guessing that Ed will jump right in. My guess is that MapServer assumes a screen dpi that is not 250. I believe that it is 72, but I am not sure. You will probably have to convert your scale values to work with the default MapServer dpi. Play with the MINSCALE and MAXSCALE values in your Map file to see where the images swap. David. David J. Fawcett MN Office of Environmental Assistance >>> St?phane RIFF 9/6/2004 3:57:34 AM >>> Hi all, I want to display some rasters layers : first one is 1/250000, 250 dpi second one is 1/25000, 250 dpi Here is an extract of my map file : MAP UNITS METERS IMAGETYPE PNG PROJECTION "init=esri:27582" END LAYER NAME "250000" TILEINDEX "../data/250000" TILEITEM "LOCATION" TYPE RASTER STATUS ON OFFSITE 0 0 0 MINSCALE 25000 MAXSCALE 250000 GROUP "carto" CLASS NAME "Fond raster 250000" END END LAYER NAME "25000" TILEINDEX "../data/25000" TILEITEM "LOCATION" TYPE RASTER STATUS ON OFFSITE 0 0 0 MAXSCALE 25000 GROUP "carto" CLASS NAME "Fond raster 25000" END END This two layer switch well looking for mapserver scale. The question i want to ask is why when i open a 1/250000 raster with GIMP and set the scale to 100%, it doesn't seem to correspond with what i see in mapserver at scale 250000. In other words, if mapserver scale is 250000, does it means that the view is at 1/250000 sacle??? I hope my question is understandable Thanks From joelf at GNETCONSULTING.COM Tue Sep 7 10:24:17 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Tue, 7 Sep 2004 13:24:17 -0400 Subject: Aquire x/y coordinates from rectangle object Message-ID: Lowell: Thanks a bunch. I really appreciate the help. Joel ----- Original Message ----- From: "Lowell Filak" To: Sent: Tuesday, September 07, 2004 12:04 PM Subject: Re: [UMN_MAPSERVER-USERS] Aquire x/y coordinates from rectangle object > The following message was sent by Lowell Filak on > Tue, 7 Sep 2004 10:37:36 -0400. > >> The following message was sent by G-Net Consulting >> on Sat, 4 Sep 2004 01:14:23 -0400. >> >> > Hello List: >> > >> > I'm looking for a snippet of code to grab the X/Y coordinates >> > from a point in a shape file. I've pulled the shape data in >> > from the DBF (thanks to Lowell for that). Now I would like >> > to display the data in overLib with a mouseover. >> > >> > So what is the best way to get the X/Y for each shape >> > in the chosen extent? >> > >> > Thanks. >> > >> > Joel >> >> Joel; >> >> You can: >> >> shapeObj = new shapeObj(type_point) >> >> use the shapeindex from resultCacheMemberObj with >> layer->getShape(shapeObj, 0, shapeindex) >> >> pointObj=shapeObj->get(0) >> >> pointObj->{x} & pointObj->{y} >> >> The doc (at least swigmapscript) needs to be clearer on this. >> >> Lowell > > Joel; > > Here's a correct example. > > $data = $layer->{data}; > $shapefile = new mapscript::shapefileObj($data,-1); > $point = new mapscript::pointObj(); > $shapefile->getPoint(shapeindex,$point); > $x = $point->{x}; > $y = $point->{y}; > > Lowell > From malsburg at CL.UNI-HEIDELBERG.DE Tue Sep 7 10:43:02 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Tue, 7 Sep 2004 19:43:02 +0200 Subject: Dashed Outline In-Reply-To: <000e01c494f7$a3745680$1300a8c0@cuestasys.com> Message-ID: Monica, it worked. Thank you! But how did you figure it out? Mapservers documentation is everything else than complete. But the worse problem is that the mapfile format isn't logical at all (at least I don't catch the logic). Maybe I should start to read the source code, which seems to be the only authoritative and exhaustive source of information. :-/ Thanks again, Titus On Tue, Sep 07, 2004 at 12:27:52PM -0400, Monica Socol wrote: > It is possible. You have to define a new symbol into .symbols file for a > dashed line. > Then you have to define 2 styles for that class: > - The first one will have the colour for the filling or the symbol for > the interior or the polygon. > - The second style defines the line (symbol, size, colour). > I found out that if I put everything in one style, the symbol and size > are applied to the interior, not to the line. But it works with 2 > separate styles. From eric.linux at SHAW.CA Tue Sep 7 10:17:25 2004 From: eric.linux at SHAW.CA (Eric Wright) Date: Tue, 7 Sep 2004 10:17:25 -0700 Subject: Oracle Spatial Message-ID: Good morning, I am working on a project with MapServer and Oracle Spatial. Both are running under windows environments and I have noticed some odd behavior. Some of the data that I have loaded into Oracle Spatial layers does not get rendered by MapServer. I have run the Oracle test on the layers and they came back good and I am able to view the layers with the Oracle MapViewer but they are not showing up with MapServer. I am not getting an error back from MapServer and I have looked for the MapServer log but I cannot find them. Question: Where are the MapServer logs in a Windows/Apache install? Another thing that I find interesting is that some of the layers stop rendering at a certain scale. For example I have a layer that contains the cities of British Columbia (from one of the Oracle layers that is working). It has a Maximum scale of 1:5,000,000 yet at some point while zooming in the labels disappear and don't come back again until I zoom out. Is this normal? Thanks for your help Eric Wright From David.Fawcett at STATE.MN.US Tue Sep 7 11:23:13 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 7 Sep 2004 13:23:13 -0500 Subject: Dashed Outline Message-ID: Monica, You are right. I had grabbed my example from a Map file where I failed at getting the result that Titus was looking for, but ended up liking the result and keeping the definition. I will add an example of the 'two styles' method to the Wiki. David. David J. Fawcett MN Office of Environmental Assistance >>> Monica Socol 9/7/2004 11:27:52 AM >>> Yes, It is possible. You have to define a new symbol into .symbols file for a dashed line. Then you have to define 2 styles for that class: - The first one will have the colour for the filling or the symbol for the interior or the polygon. - The second style defines the line (symbol, size, colour). I found out that if I put everything in one style, the symbol and size are applied to the interior, not to the line. But it works with 2 separate styles. ------------------------------------------------------------------------ ---- Monica Socol Systems Architect Cuesta Systems Inc. 5230 South Service Rd., Burlington L7L 5K2 tel: 905.333.4544 ext 30 fax: 905.333.0455 e-mail: monicasocol at cuestasys.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Tuesday, September 07, 2004 12:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Dashed Outline I want the outline of a polygon (esri world base country layer) to be dashed, but couldn't find anything about how to achieve this. No documentation, no mapfile snippets. Is it possible at all to have dashed outlines? A hack, that seems to work is * duplicate the layer in the mapfile * say TYPE POLYGON to the one * and TYPE LINE to the other * the first defines the filling * the latter the outline Cheers, Titus From simon at INF.UNIVALI.BR Tue Sep 7 17:00:11 2004 From: simon at INF.UNIVALI.BR (FERNANDO SIMON) Date: Tue, 7 Sep 2004 21:00:11 -0300 Subject: Oracle Spatial In-Reply-To: <660fcd8661034f.661034f660fcd8@shaw.ca> Message-ID: Hi Eric, I belive that I can help you, your problem can be with the type of your data (SDO_GTYPE). THe Oracle Spatial driver for mapserver can't draw data if you stored using 3D definition. You can check this when you execute one simple query in sqlplus, if return something like 300x try to redefine this value to 200x. Only one question, how you import the data in Oracle, are you use the sqlldr? If yes, after you import the data do you execute the function "EXECUTE SDO_MIGRATE.TO_CURRENT('TABLE','GEOMETRY_COLUMN');" ? Are you create the spatial index? When you execute your mapserver using only the cgi definition using only the layer with oracle spatial connection what's happen? Ex: http://localhost/cgi-bin/mapserv?map=yourmap.map&mode=map&imgsize=400+400&layers=oraclelayer You can see one example in this site: http://g10novo.cttmar.univali.br/gtz/principal.php Everthing, polygons, lines and points in this example are stored in Oracle Spatial. With the label I didn't see anything about this problem when you use Oracle Spatial, are you define labelmaxscale in your layer? I saw something like as when I used projection definition, the points disappear with wrong projection. I don't know if I help you. If you need some help, you can report me. ----------------------------------------------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Database Manager, Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ----------------------------------------------------------------------------------------------------- Quoting Eric Wright : > Good morning, > > I am working on a project with MapServer and Oracle Spatial. Both are running > under windows environments and I have noticed some odd behavior. > > Some of the data that I have loaded into Oracle Spatial layers does not get > rendered by MapServer. I have run the Oracle test on the layers and they came > back good and I am able to view the layers with the Oracle MapViewer but they > are not showing up with MapServer. I am not getting an error back from > MapServer and I have looked for the MapServer log but I cannot find them. > > Question: Where are the MapServer logs in a Windows/Apache install? > > Another thing that I find interesting is that some of the layers stop > rendering at a certain scale. For example I have a layer that contains the > cities of British Columbia (from one of the Oracle layers that is working). > It has a Maximum scale of 1:5,000,000 yet at some point while zooming in the > labels disappear and don't come back again until I zoom out. Is this > normal? > > > Thanks for your help > > Eric Wright > ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From simon at INF.UNIVALI.BR Tue Sep 7 17:17:46 2004 From: simon at INF.UNIVALI.BR (FERNANDO SIMON) Date: Tue, 7 Sep 2004 21:17:46 -0300 Subject: Oracle Spatial In-Reply-To: <660fcd8661034f.661034f660fcd8@shaw.ca> Message-ID: Hi Eric, I believe that I can help you, your problem can be with the type of your data (SDO_GTYPE). THe Oracle Spatial driver for mapserver can't draw data if you stored using 3D definition. You can check this when you execute one simple query in sqlplus, if SDO_GTYPE return something like 300x try to redefine this value to 200x. Only one question, how you import the data in Oracle, are you use the sqlldr? If yes, after you import the data do you execute the function "EXECUTE SDO_MIGRATE.TO_CURRENT('TABLE','GEOMETRY_COLUMN');" ? Are you create the spatial index? When you execute your mapserver using only the cgi definition using only the layer with oracle spatial connection what's happen? Ex: http://localhost/cgi-bin/mapserv?map=yourmap.map&mode=map&imgsize=400+400&layers=oraclelayer You can see one example in this site: http://g10novo.cttmar.univali.br/gtz/principal.php Everthing, polygons, lines and points in this example are stored in Oracle Spatial. With the label I didn't see anything about this problem when you use Oracle Spatial, are you define labelmaxscale in your layer? I saw something like as when I used projection definition, the points disappear with wrong projection. I don't know if I helped you. If you need some help, you can report me. ----------------------------------------------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Database Manager, Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ----------------------------------------------------------------------------------------------------- Quoting Eric Wright : > Good morning, > > I am working on a project with MapServer and Oracle Spatial. Both are running > under windows environments and I have noticed some odd behavior. > > Some of the data that I have loaded into Oracle Spatial layers does not get > rendered by MapServer. I have run the Oracle test on the layers and they came > back good and I am able to view the layers with the Oracle MapViewer but they > are not showing up with MapServer. I am not getting an error back from > MapServer and I have looked for the MapServer log but I cannot find them. > > Question: Where are the MapServer logs in a Windows/Apache install? > > Another thing that I find interesting is that some of the layers stop > rendering at a certain scale. For example I have a layer that contains the > cities of British Columbia (from one of the Oracle layers that is working). > It has a Maximum scale of 1:5,000,000 yet at some point while zooming in the > labels disappear and don't come back again until I zoom out. Is this > normal? > > > Thanks for your help > > Eric Wright > ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From sudip_mca at SIFY.COM Tue Sep 7 23:29:36 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Wed, 8 Sep 2004 12:29:36 +0600 Subject: labeling map in regional language Message-ID: Hello , i am working upon a GIS project using PHP-mapscript and mapserver in windows environment. But the problem is my task ask me to label the map ,which is ofcourse genetated by mapserver,in regional language.Though i tried it by converting the names of the districts of the map,which are at first written in english to the regional language,in the shape(.mdf file)file.But it donot work,rather generate error. Please help me in solving this problem. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.cavalli at SINTRANET.IT Wed Sep 8 00:28:11 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Wed, 8 Sep 2004 09:28:11 +0200 Subject: phpmapscript code problem Message-ID: Hi dear, I'm new with phpmapscript, I've read the documentations about phpmapscript and I tried to make my simple code to see my map in a web like as describe in this document (php mapscript 40 by example how to at this link http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html) but I can't display anything else than an error message like this: draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> > this is the code in my phtml file: draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> Example 1: Displaying a map > What's wrong Can someone help me regards alberto From oliver_ishmael at HOTMAIL.COM Wed Sep 8 05:19:23 2004 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Wed, 8 Sep 2004 13:19:23 +0100 Subject: Adding a new library to Mapserver Message-ID: Hi there, I have set up mapserver using the MS4W DMSolutions Group Mapserver package and I am currently trying to install the ming-0.2a library which offers support for the SWF (Shockwave Flash) imagetype. Where should this library be installed? It consists of several folders and files! Any help would be appreciated. In addition any help using flash with mapserver would also be very helpful. Cheers Olly _________________________________________________________________ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger From sobomsawin at KASSINI.COM Wed Sep 8 06:37:37 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 8 Sep 2004 09:37:37 -0400 Subject: [UMN_MAPSERVER-USERS] phpmapscript code problem In-Reply-To: <5C364C28DF05D611A03200E01832693FC681C7@sintraweb.sintranet.it> Message-ID: Is your server correctly installed to serve PHP? Can you send your map file so we can diagnose more accurately your problem? Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Alberto Cavalli Envoy??: 8 septembre 2004 03:28 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] phpmapscript code problem Hi dear, I'm new with phpmapscript, I've read the documentations about phpmapscript and I tried to make my simple code to see my map in a web like as describe in this document (php mapscript 40 by example how to at this link http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html) but I can't display anything else than an error message like this: draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> > this is the code in my phtml file: draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> Example 1: Displaying a map > What's wrong Can someone help me regards alberto --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 From Jason.T.Bejot at NWD02.USACE.ARMY.MIL Wed Sep 8 07:18:33 2004 From: Jason.T.Bejot at NWD02.USACE.ARMY.MIL (Bejot, Jason T NWD02) Date: Wed, 8 Sep 2004 07:18:33 -0700 Subject: mapserver swf support Message-ID: I have the cgi-bin mapserver with oracle support thats available on the mapserver website. It seems to be installed correctly when i do a mapserv.exe -v ... however when i try to ask for a swf file in a web browser, all it gives me is this line of text: Content-type: text/html msBuildPath: Unable to access file. What does this mean? I've been trying to figure it out for days but nothing is working. I need to get this working to finish my flash application. Please help! This is my test map file, it should work. <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: JFlower.map Type: application/octet-stream Size: 460 bytes Desc: not available URL: From David.Fawcett at STATE.MN.US Wed Sep 8 07:39:48 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 8 Sep 2004 09:39:48 -0500 Subject: Dashed Outline Message-ID: As promised, I added a working example to the Wiki http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples Scroll down to the 'Creative Solutions' section. For documentation in the archives, here is a working example. Note that the STYLE object was added in version 4.0, so this example won't work with pre-4.0 versions of MapServer. The effect is achieved by adding two styles to the class, one for the colored fill and the other for the dashed outline. LAYER NAME county TYPE polygon STATUS default DATA cntypy CLASS STYLE #this style defines polygon fill color COLOR 225 225 185 END STYLE #this style defines the outline of the polygon OUTLINECOLOR 128 128 128 SYMBOL 'dashed' END END END This example requires that: 1. You have a symbol definition in your symbol.sym file that is named 'dashed' and looks like this SYMBOL NAME 'dashed' TYPE ELLIPSE POINTS 1 1 END FILLED true STYLE 10 5 5 10 END END 2. You have line in your MAP file stating the correct path to your symbols file (e.g. SYMBOLSET symbols/symbol.sym) David. David J. Fawcett MN Office of Environmental Assistance >>> Monica Socol 9/7/2004 11:27:52 AM >>> Yes, It is possible. You have to define a new symbol into .symbols file for a dashed line. Then you have to define 2 styles for that class: - The first one will have the colour for the filling or the symbol for the interior or the polygon. - The second style defines the line (symbol, size, colour). I found out that if I put everything in one style, the symbol and size are applied to the interior, not to the line. But it works with 2 separate styles. ------------------------------------------------------------------------ ---- Monica Socol Systems Architect Cuesta Systems Inc. 5230 South Service Rd., Burlington L7L 5K2 tel: 905.333.4544 ext 30 fax: 905.333.0455 e-mail: monicasocol at cuestasys.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Tuesday, September 07, 2004 12:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Dashed Outline I want the outline of a polygon (esri world base country layer) to be dashed, but couldn't find anything about how to achieve this. No documentation, no mapfile snippets. Is it possible at all to have dashed outlines? A hack, that seems to work is * duplicate the layer in the mapfile * say TYPE POLYGON to the one * and TYPE LINE to the other * the first defines the filling * the latter the outline Cheers, Titus From sobomsawin at KASSINI.COM Wed Sep 8 07:44:03 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 8 Sep 2004 10:44:03 -0400 Subject: [UMN_MAPSERVER-USERS] phpmapscript code problem In-Reply-To: <5C364C28DF05D611A03200E01832693FC681DA@sintraweb.sintranet.it> Message-ID: Alberto, Don't forget that you have to install PHP as CGI and not as a module for Apache in order to use PHPMapscript. I did not used the document you mentioned to install PHP on my server. Instead, I recommend you the installation instructions from Mapserver Wiki which are very straight forward and works very well (http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40b). These instructions are for Linux, but the essence is there: # download and install php # sudo cp sapi/cgi/php /var/www/cgi-bin/php433 ##Copy php to your cgi-bin/php433## # edit your php.ini: # add this information: # extension_dir = "your_php_extensions_directory" ## Don't forget to copy your php_mapscript.dll to you PHP extensions directory # add to httpd.conf # For PHP scripts as CGI-BIN # AddType application/x-httpd-php-cgi .php .php4 .phtml Action application/x-httpd-php-cgi /cgi-bin/php433 #Now create your php test file and check the output Since I never tried it before on Windows, I cannot certify you the good behavior of your server... Maybe someone else can provide more information... Please keep in touch... Skweda O'Bomsawin -----Message d'origine----- De?: Alberto Cavalli [mailto:alberto.cavalli at sintranet.it] Envoy??: 8 septembre 2004 09:37 ??: Skweda O'Bomsawin Objet?: R: [UMN_MAPSERVER-USERS] phpmapscript code problem I think that my problem is with my httpd.conf from apache or in my php.ini, in fact, if itry to execute this line php file: I receive this error on the top of the page: Warning: dl(): Not supported in multithreaded Web servers - use extension statements in your php.ini ....... I've read this document about the installation (http://mapserver.gis.umn.edu/doc/phpmapscript-install-howto.html) and it is all ok what's wrong? Do you have any suggestion thanks alberto -----Messaggio originale----- Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] Inviato: mercoled? 8 settembre 2004 15.38 A: 'Alberto Cavalli'; MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: RE : [UMN_MAPSERVER-USERS] phpmapscript code problem Is your server correctly installed to serve PHP? Can you send your map file so we can diagnose more accurately your problem? Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Alberto Cavalli Envoy??: 8 septembre 2004 03:28 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] phpmapscript code problem Hi dear, I'm new with phpmapscript, I've read the documentations about phpmapscript and I tried to make my simple code to see my map in a web like as describe in this document (php mapscript 40 by example how to at this link http://mapserver.gis.umn.edu/doc/phpmapscript-byexample-howto.html) but I can't display anything else than an error message like this: draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> > this is the code in my phtml file: draw(); $image_url=$image->saveWebImage(MS_PNG,1,1,0); ?> Example 1: Displaying a map > What's wrong Can someone help me regards alberto --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 From bob.basques at CI.STPAUL.MN.US Wed Sep 8 07:55:07 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 8 Sep 2004 09:55:07 -0500 Subject: problem with trying to get Item Query to work. Message-ID: All, I can't seem to get Itemquery to work. I'm trying to zoom to a polygon shape with a CGI call. Help please. Just trying to zoom to a "Minnesota" polygon from a US map based on an attribute (with no template, all in the Map file. From what I've read this should be possible). Am I mistaken I've tried all kinds of permutations. A sample of the required components would help out I think. The problem request: map=global/view.map&layers=usstates_poly_utm+mncounty_poly_utm&qlayer=usstates_poly_utm&qitem=FIRST_NAME&qstring=Minnesota&mode=itemquery&mapext=shapes The error: *msQueryByAttributes(): Query error. Requested layer has no templates defined. * Sending a MAPEXT produces a map just fine. map=global/view.map&layers=usstates_poly_utm+mncounty_poly_utm&mode=map&mapext=-10019.0100+4767655.4506+874956.3291+5489960.3900 ------------------------ The MapFile (partial): QUERYMAP STATUS ON STYLE SELECTED END LAYER NAME 'usstates_poly_utm' DATA '/var/www/map_data/usstates_poly_utm' TYPE POLYGON STATUS OFF # must explicitly turn this layer on CLASS COLOR 255 255 200 OUTLINECOLOR 50 50 50 END END Partial data dump from dbfdump: [map_data]# dbfdump usstates_poly_utm.dbf . . . . 22:Louisiana 23:Maine 24:Maryland 25:Massachusetts 26:Michigan 27:Minnesota 28:Mississippi 29:Missouri 30:Montana 31:Nebraska 32:Nevada . . . [map_data]# dbfdump --info usstates_poly_utm.dbf Filename: usstates_poly_utm.dbf Version: 0x03 (ver. 3) Num of records: 49 Header length: 97 Record length: 93 Last change: 2004/9/4 Num fields: 2 Field info: Num Name Type Len Decimal 1. STATE C 2 0 2. FIRST_NAME C 90 0 [map_data]# What am I doing wrong please? bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieuparent at INFONIE.FR Wed Sep 8 08:30:54 2004 From: mathieuparent at INFONIE.FR (Mathieu Parent) Date: Wed, 8 Sep 2004 17:30:54 +0200 Subject: problem with trying to get Item Query to work. In-Reply-To: <413F1D4B.5040407@ci.stpaul.mn.us> Message-ID: Blammo a ?crit : > map=global/view.map&layers=usstates_poly_utm+mncounty_poly_utm&qlayer=usstates_poly_utm&qitem=FIRST_NAME&qstring=Minnesota&mode=itemquery&mapext=shapes > > > The error: > > *msQueryByAttributes(): Query error. Requested layer has no > templates defined. * > > > The MapFile (partial): > > QUERYMAP > STATUS ON > STYLE SELECTED > END > > LAYER > NAME 'usstates_poly_utm' #add this line : TEMPLATE "path/to/the_template_file.html" > DATA '/var/www/map_data/usstates_poly_utm' > TYPE POLYGON > STATUS OFF # must explicitly turn this layer on > CLASS > COLOR 255 255 200 > OUTLINECOLOR 50 50 50 > END > END > > Partial data dump from dbfdump: > What am I doing wrong please? > > bobb and look http://mapserver.gis.umn.edu/doc42/template-reference.html to create the template file. Templates define the presentation of the results of a query -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.linux at SHAW.CA Wed Sep 8 10:53:24 2004 From: eric.linux at SHAW.CA (Eric Wright) Date: Wed, 8 Sep 2004 10:53:24 -0700 Subject: Oracle Spatial Message-ID: Thanks for the info Fernando. You hit the nail on the head with that one, the layers that are not showing up in my map are the 300x ones. I used the Oracle shp2sdo tool to create the SQL and CTL files before running the sqlldr tool to load the layers. I then ran EXECUTE SDO_MIGRATE.TO_CURRENT('TABLE','GEOMETRY_COLUMN'); on all the layers and then created indexes for each layer. I am unable to manualy update the layer as Oracle complains that the "Layer Dimensionality does not match geometry dimensions" it makes sense that it won't let me do this. I will have re-load the data from the shape files and drop the third dimension. Do you or (anyone else) know if using the OGR tool ogr2ogr will load the layer in a format that is sutable for MapServer? (i.e. drop the z coordinate) If not I will have to write my own Oracle loader. Thanks again. Eric W ----- Original Message ----- From: FERNANDO SIMON Date: Tuesday, September 7, 2004 5:00 pm Subject: Re: [UMN_MAPSERVER-USERS] Oracle Spatial > Hi Eric, > I belive that I can help you, your problem can be with the type > of your data > (SDO_GTYPE). THe Oracle Spatial driver for mapserver can't draw > data if you > stored using 3D definition. You can check this when you execute > one simple query > in sqlplus, if return something like 300x try to redefine this > value to 200x. > Only one question, how you import the data in Oracle, are you > use the sqlldr? > If yes, after you import the data do you execute the function "EXECUTE > SDO_MIGRATE.TO_CURRENT('TABLE','GEOMETRY_COLUMN');" ? Are you > create the spatial > index? > When you execute your mapserver using only the cgi definition > using only the > layer with oracle spatial connection what's happen? Ex: > http://localhost/cgi- > bin/mapserv?map=yourmap.map&mode=map&imgsize=400+400&layers=oraclelayer You can see one example in this site: > http://g10novo.cttmar.univali.br/gtz/principal.php Everthing, > polygons, lines > and points in this example are stored in Oracle Spatial. > With the label I didn't see anything about this problem when > you use Oracle > Spatial, are you define labelmaxscale in your layer? I saw > something like as > when I used projection definition, the points disappear with wrong > projection. I don't know if I help you. > If you need some help, you can report me. > > > ------------------------------------------------------------------- > ---------------------------------- > Fernando Simon - simon at inf.univali.br > Database Manager, Mapserver and Oracle Spatial developer > G10 - Laboratorio de Computacao Aplicada > http://g10.cttmar.univali.br > ------------------------------------------------------------------- > ---------------------------------- > > > > Quoting Eric Wright : > > > Good morning, > > > > I am working on a project with MapServer and Oracle Spatial. > Both are running > > under windows environments and I have noticed some odd behavior. > > > > Some of the data that I have loaded into Oracle Spatial layers > does not get > > rendered by MapServer. I have run the Oracle test on the layers > and they came > > back good and I am able to view the layers with the Oracle > MapViewer but they > > are not showing up with MapServer. I am not getting an error > back from > > MapServer and I have looked for the MapServer log but I cannot > find them. > > > > Question: Where are the MapServer logs in a Windows/Apache install? > > > > Another thing that I find interesting is that some of the layers > stop> rendering at a certain scale. For example I have a layer > that contains the > > cities of British Columbia (from one of the Oracle layers that > is working). > > It has a Maximum scale of 1:5,000,000 yet at some point while > zooming in the > > labels disappear and don't come back again until I zoom out. Is this > > normal? > > > > > > Thanks for your help > > > > Eric Wright > > > > > > > ------------------------------------------------ > Este e-mail foi enviado pelo webmail do curso de > Ci?ncia da Computa??o - UNIVALI > From bob.basques at CI.STPAUL.MN.US Wed Sep 8 12:04:43 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 8 Sep 2004 14:04:43 -0500 Subject: itemquery (still) Message-ID: Ok, that did something. Now MapServer can't find the image it produced. msSaveImage(): Unable to access file. (/var/www/map_ms/global/view10946692622467.png) It's looking in the same folder as my Map File for some reason. bobb David Fawcett wrote: Bob, Have you tried setting a dummy template? e.g. TEMPLATE 'dummy.html' David. David J. Fawcett MN Office of Environmental Assistance From joelf at GNETCONSULTING.COM Wed Sep 8 12:15:49 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Wed, 8 Sep 2004 15:15:49 -0400 Subject: getting extents for displaying individual states Message-ID: Hello list: I'm attempting to do the same thing, but keep hitting a hurdle, and have yet to find a solution in the archives. Here's my code: // get our state layer $stLayer = $gmfMap->getLayer(1); $stLayer->set("status", MS_ON); // query the passed state $qryLayer = $stLayer->queryByAttributes("STATE", $_GET["state"], MS_MULTIPLE); // find out how many results we found $shpCount = $stLayer->GetNumResults(); // open the layer $stLayer->open(); // find out how many results we found for ($i = 0; $i < $shpCount; $i++) { // get the results we need from the layer $result = $stLayer->getResult($i); // get our shape info from the index $shpData = $stLayer->getShape($result->tileindex, $result->shapeindex); print_r($result); // ... (do something with the result) } When I get to the getShape() function, I get an error saying "Invalid feature id." I know it has to be something simple. I, too, am trying to get the extents for a passed state to "zoom" into it. Layer #1 is my states layer. I'm using PHP/MapScript (4.x+ versions). TIA! Joel ----- Original Message ----- From: "Eric Bridger" To: Sent: Monday, August 30, 2004 4:36 PM Subject: Re: [UMN_MAPSERVER-USERS] getting extents for displaying individual states > On Mon, 2004-08-30 at 13:20, Bob Cook wrote: >> I'm working with a map of the entire United States (including Alaska, >> Hawaii, and other US territories). >> >> I would like to allow users to select an individual state (or territory) >> from a dropdown list and have the map center around that state, and zoom >> in to it. >> >> Is there any easy way of programmatically setting my map's extents >> (without simply hard-coding extents for each state) so that it centers >> on one state? >> >> I'm using PHP/Mapscript. >> > > Assuming all your states are in one layer you will need to execute an > attribute query against the layer based on the name of the state > entered.($layer->queryByAttrbute()) The query results will give you > access to the shape of the state you want. That shape has a bounds > member which is a rectangle which can be use to set the extent of you > new map. > $minx = $shape->{bounds}->{minx}; > etc. > From bob.basques at CI.STPAUL.MN.US Wed Sep 8 12:18:53 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 8 Sep 2004 14:18:53 -0500 Subject: itemquery (stil wonderingl) Message-ID: David, Ok, that did something. msSaveImage(): Unable to access file. (/var/www/map_ms/global/view10946692622467.png) It's looking in the same folder as my Map File for some reason. bobb David Fawcett wrote: Bob, Have you tried setting a dummy template? e.g. TEMPLATE 'dummy.html' David. David J. Fawcett MN Office of Environmental Assistance From bob.basques at CI.STPAUL.MN.US Wed Sep 8 12:24:40 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 8 Sep 2004 14:24:40 -0500 Subject: itemquery (getting closer) Message-ID: The permissions were wrong on the server for the tmp folder . . . . I'm getting closer though. Now I'm down to: * Content-type: text/html msReturnPage(): Unable to access file. dummy.html bobb -------------- next part -------------- An HTML attachment was scrubbed... URL: From joelf at GNETCONSULTING.COM Wed Sep 8 12:32:55 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Wed, 8 Sep 2004 15:32:55 -0400 Subject: getting extents for displaying individual states Message-ID: Strange. Right after I sent the last email, I got it working. : ) So thanks again, everyone. Sorry to have bothered everyone. Joel ----- Original Message ----- From: "Eric Bridger" To: Sent: Monday, August 30, 2004 4:36 PM Subject: Re: [UMN_MAPSERVER-USERS] getting extents for displaying individual states > On Mon, 2004-08-30 at 13:20, Bob Cook wrote: >> I'm working with a map of the entire United States (including Alaska, >> Hawaii, and other US territories). >> >> I would like to allow users to select an individual state (or territory) >> from a dropdown list and have the map center around that state, and zoom >> in to it. >> >> Is there any easy way of programmatically setting my map's extents >> (without simply hard-coding extents for each state) so that it centers >> on one state? >> >> I'm using PHP/Mapscript. >> > > Assuming all your states are in one layer you will need to execute an > attribute query against the layer based on the name of the state > entered.($layer->queryByAttrbute()) The query results will give you > access to the shape of the state you want. That shape has a bounds > member which is a rectangle which can be use to set the extent of you > new map. > $minx = $shape->{bounds}->{minx}; > etc. > From assefa at DMSOLUTIONS.CA Wed Sep 8 12:45:41 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 8 Sep 2004 15:45:41 -0400 Subject: mapserver swf support In-Reply-To: <155B0784ACC4FD488B57932B5E2ED1AD8D424E@nwo-ex5.nwd-mr.usace.army.mil> Message-ID: Hi There, I am not sure right now where the message comes from, but by quickly checking your map file, It seems that some critical elemnts are missing (for eg there are no DATA nor CLASS elements associated with your layer). Things that might help you : - make sure that all the paths that you have specified in the map file are valid. (You can use if you want absolute path to make sure of that) - try filling up missing infos like data and class in your layer - try outputing your data using any gd output (like png for example) (Just need to define "imagetype png" in your file) - If you have a valid png, you can then switch back to swf output. Hope it help, Bejot, Jason T NWD02 wrote: > I have the cgi-bin mapserver with oracle support thats available on the > mapserver website. It seems to be installed correctly when i do a > mapserv.exe -v ... however when i try to ask for a swf file in a web > browser, all it gives me is this line of text: > > Content-type: text/html msBuildPath: Unable to access file. > > What does this mean? I've been trying to figure it out for days but > nothing is working. I need to get this working to finish my flash > application. Please help! > > This is my test map file, it should work. > <> > -- ---------------------------------------------------------------- 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 Wed Sep 8 23:03:58 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 9 Sep 2004 08:03:58 +0200 Subject: Oracle Spatial In-Reply-To: <674ebb0674fd5a.674fd5a674ebb0@shaw.ca> Message-ID: Hi Eric, ogr2ogr can drop the third dimension, see: http://xserve.flids.com/pipermail/gdal-dev/2004-March/005017.html Best regards, Bart > Thanks for the info Fernando. > > You hit the nail on the head with that one, the layers that are not > showing up in my map are the 300x ones. > > I used the Oracle shp2sdo tool to create the SQL and CTL files before > running the sqlldr tool to load the layers. I then ran EXECUTE > SDO_MIGRATE.TO_CURRENT('TABLE','GEOMETRY_COLUMN'); on all the layers and > then created indexes for each layer. > > I am unable to manualy update the layer as Oracle complains that the > "Layer Dimensionality does not match geometry dimensions" it makes sense > that it won't let me do this. > > I will have re-load the data from the shape files and drop the third > dimension. > Do you or (anyone else) know if using the OGR tool ogr2ogr will load the > layer in a format that is sutable for MapServer? (i.e. drop the z > coordinate) If not I will have to write my own Oracle loader. > > Thanks again. > > Eric W > > ----- Original Message ----- > From: FERNANDO SIMON > Date: Tuesday, September 7, 2004 5:00 pm > Subject: Re: [UMN_MAPSERVER-USERS] Oracle Spatial > >> Hi Eric, >> I belive that I can help you, your problem can be with the type >> of your data >> (SDO_GTYPE). THe Oracle Spatial driver for mapserver can't draw >> data if you >> stored using 3D definition. You can check this when you execute >> one simple query >> in sqlplus, if return something like 300x try to redefine this >> value to 200x. >> Only one question, how you import the data in Oracle, are you >> use the sqlldr? >> If yes, after you import the data do you execute the function "EXECUTE >> SDO_MIGRATE.TO_CURRENT('TABLE','GEOMETRY_COLUMN');" ? Are you >> create the spatial >> index? >> When you execute your mapserver using only the cgi definition >> using only the >> layer with oracle spatial connection what's happen? Ex: >> http://localhost/cgi- >> bin/mapserv?map=yourmap.map&mode=map&imgsize=400+400&layers=oraclelayer >> You can see one example in this site: >> http://g10novo.cttmar.univali.br/gtz/principal.php Everthing, >> polygons, lines >> and points in this example are stored in Oracle Spatial. >> With the label I didn't see anything about this problem when >> you use Oracle >> Spatial, are you define labelmaxscale in your layer? I saw >> something like as >> when I used projection definition, the points disappear with wrong >> projection. I don't know if I help you. >> If you need some help, you can report me. >> >> >> ------------------------------------------------------------------- >> ---------------------------------- >> Fernando Simon - simon at inf.univali.br >> Database Manager, Mapserver and Oracle Spatial developer >> G10 - Laboratorio de Computacao Aplicada >> http://g10.cttmar.univali.br >> ------------------------------------------------------------------- >> ---------------------------------- >> >> >> >> Quoting E > ric Wright : >> >> > Good morning, >> > >> > I am working on a project with MapServer and Oracle Spatial. >> Both are running >> > under windows environments and I have noticed some odd behavior. >> > >> > Some of the data that I have loaded into Oracle Spatial layers >> does not get >> > rendered by MapServer. I have run the Oracle test on the layers >> and they came >> > back good and I am able to view the layers with the Oracle >> MapViewer but they >> > are not showing up with MapServer. I am not getting an error >> back from >> > MapServer and I have looked for the MapServer log but I cannot >> find them. >> > >> > Question: Where are the MapServer logs in a Windows/Apache install? >> > >> > Another thing that I find interesting is that some of the layers >> stop> rendering at a certain scale. For example I have a layer >> that contains the >> > cities of British Columbia (from one of the Oracle layers that >> is working). >> > It has a Maximum scale of 1:5,000,000 yet at some point while >> zooming in the >> > labels disappear and don't come back again until I zoom out. Is this >> > normal? >> > >> > >> > Thanks for your help >> > >> > Eric Wright >> > >> >> >> >> >> ------------------------------------------------ >> Este e-mail foi enviado pelo webmail do curso de >> Ci?ncia da Computa??o - UNIVALI >> > From temiz at DEPREM.GOV.TR Wed Sep 8 23:14:28 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 9 Sep 2004 09:14:28 +0300 Subject: getting extents for displaying individualstates In-Reply-To: <010a01c495d8$40573c70$1400a8c0@desktop> Message-ID: hello your message is very informative. I wonder how the query section of map file is ? I will appreciate if you supply this information regards Ahmet Temiz G-Net Consulting wrote: > Hello list: > > I'm attempting to do the same thing, but keep hitting a hurdle, > and have yet to find a solution in the archives. Here's my code: > > // get our state layer > $stLayer = $gmfMap->getLayer(1); > $stLayer->set("status", MS_ON); > > // query the passed state > $qryLayer = $stLayer->queryByAttributes("STATE", $_GET["state"], > MS_MULTIPLE); > > // find out how many results we found > $shpCount = $stLayer->GetNumResults(); > > // open the layer > $stLayer->open(); > > // find out how many results we found > for ($i = 0; $i < $shpCount; $i++) { > // get the results we need from the layer > $result = $stLayer->getResult($i); > > // get our shape info from the index > $shpData = $stLayer->getShape($result->tileindex, $result->shapeindex); > > print_r($result); > // ... (do something with the result) > } > > When I get to the getShape() function, I get an error saying "Invalid > feature id." > I know it has to be something simple. I, too, am trying to get the > extents > for > a passed state to "zoom" into it. Layer #1 is my states layer. > > I'm using PHP/MapScript (4.x+ versions). > > TIA! > > Joel > > ----- Original Message ----- > From: "Eric Bridger" > To: > Sent: Monday, August 30, 2004 4:36 PM > Subject: Re: [UMN_MAPSERVER-USERS] getting extents for displaying > individual > states > > >> On Mon, 2004-08-30 at 13:20, Bob Cook wrote: >> >>> I'm working with a map of the entire United States (including Alaska, >>> Hawaii, and other US territories). >>> >>> I would like to allow users to select an individual state (or >>> territory) >>> from a dropdown list and have the map center around that state, and >>> zoom >>> in to it. >>> >>> Is there any easy way of programmatically setting my map's extents >>> (without simply hard-coding extents for each state) so that it centers >>> on one state? >>> >>> I'm using PHP/Mapscript. >>> >> >> Assuming all your states are in one layer you will need to execute an >> attribute query against the layer based on the name of the state >> entered.($layer->queryByAttrbute()) The query results will give you >> access to the shape of the state you want. That shape has a bounds >> member which is a rectangle which can be use to set the extent of you >> new map. >> $minx = $shape->{bounds}->{minx}; >> etc. >> > > ______________________________________ 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 sudip_mca at SIFY.COM Thu Sep 9 00:31:16 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Thu, 9 Sep 2004 12:31:16 +0500 Subject: fusion of two different shape files Message-ID: Hello , i am working upon a GIS project using PHP-mapscript and mapserver in windows environment. My job is to color all those areas of the map,which is genereted by a polygonal shape file, over which the river flows,the river is again generated by a point type shape file. Please help me in solving this problem and if possible with some code. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Pierre.RELLA at AGRICULTURE.GOUV.FR Thu Sep 9 00:12:21 2004 From: Pierre.RELLA at AGRICULTURE.GOUV.FR (Pierre RELLA) Date: Thu, 9 Sep 2004 09:12:21 +0200 Subject: How keep the Selection of the layers in HTML Message-ID: Hi, In "html" when i refresh the page, the new page lost the selection of the layers. How can i keep the previous selection? I think using PHP .If somebody have a script .... Best Regards From l.bargeot at EDUCAGRI.FR Thu Sep 9 00:31:05 2004 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Thu, 9 Sep 2004 09:31:05 +0200 Subject: How keep the Selection of the layers in HTML In-Reply-To: Message-ID: Pierre RELLA wrote: >Hi, > In "html" when i refresh the page, the new page lost the selection of the >layers. How can i keep the previous selection? I think using PHP .If >somebody have a script .... > >Best Regards > > > Hi Pierre, Using PHP, it's quiet easy. You can simply create a new layer with only your selection. I have'nt code in PHP (we work with perl-mapscript for the moment). I can add that it's easyer with a postgis database. You define a classic layer to display all objects. And then you define a layer for selection with a transparency. SQL expressions are very simple to produce. regards, Lionel -- Responsable scientifique et technique STB CNERTA-ENESAD, 2 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 http://www.igcs-stb.org/ From speiser.ferenc at FREEMAIL.HU Thu Sep 9 01:54:03 2004 From: speiser.ferenc at FREEMAIL.HU (Speiser Ferenc) Date: Thu, 9 Sep 2004 10:54:03 +0200 Subject: internal server error 500 Message-ID: Hi All! I have a problem with running MapServer perfectly. It seems to be working, but if I try to test the example below I get error message: 500 - internal server error. All the settings seems to be fine. If I change the status from default to on, it is working but I can see only a gray rectangle. Not the contents of the shapefile, althoug the extents has to be right, because that is the original example!. :( I found a bug report (http://www.maptools.org/bugzilla/show_bug.cgi?id=620 ) about extracting shapfiles, do you think that causes my problem also? If it is, then how should I fix it? Thx: Ferenc Speiser MAP IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "c:\data" IMAGECOLOR 240 240 240 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 University of Veszpr?m Department of Automation -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Sep 9 02:16:06 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 9 Sep 2004 11:16:06 +0200 Subject: internal server error 500 In-Reply-To: <00ec01c4964a$8ee9cd90$182906c1@aut.vein.hu> Message-ID: Hi, the bug report is a Chameleon bug report. Are you using Chameleon? Can you run ogrinfo on your shapefile? Maybe it is a 3D shapefile which Mapserver might crash on. Which Mapserver version are you using? Is your shapefile in lat/lon (WGS84)? Check the extent of your map file with the extent of your shapefile (can also be done using ogrinfo). First start simple without PROJECTION definitions. Best regards, Bart > Hi All! > > I have a problem with running MapServer perfectly. > It seems to be working, but if I try to test the example below I get error > message: 500 - internal server error. > > All the settings seems to be fine. If I change the status from default to > on, it is working but I can see only a gray rectangle. Not the contents of > the shapefile, althoug the extents has to be right, because that is the > original example!. :( > I found a bug report (http://www.maptools.org/bugzilla/show_bug.cgi?id=620 > ) about extracting shapfiles, do you think that causes my problem also? If > it is, then how should I fix it? > > Thx: > Ferenc Speiser > > MAP > IMAGETYPE PNG > EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 > SIZE 400 300 > SHAPEPATH "c:\data" > IMAGECOLOR 240 240 240 > > 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 > > > > University of Veszpr?m > Department of Automation > From margottid at COMUNE.LUGO.RA.IT Thu Sep 9 03:04:08 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 9 Sep 2004 05:04:08 -0500 Subject: Itemquery and RegEx Message-ID: Hi list, when I use "mode=itemnquery" (or "mode=itemquery") and I put a regular expression as search string (for example, "qstring=(W|w)ashington") I get this error: msQueryByAttributes(): Search returned no results. No matching record(s) found. msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error ... ... A "normal" search string (e.g., "qstring=Washington") works well: record is found, and query result is shown. I use MapServer as CGI. This is 'mapserv -v' output: MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF 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 What's wrong? Daniele P.S.: why can't I send messages through my e-mail client? I have to use the web interface... From stephane.riff at CERENE.FR Thu Sep 9 03:11:43 2004 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Thu, 9 Sep 2004 12:11:43 +0200 Subject: Scalebar question Message-ID: Hi, I have a question about scalebar calculation. I wrote a map application which is in latlong projection (wgs84) and mapserver is able to calculate a scale in KM unit, so i would like to know how mapserver can do this ??? Does he reproject some points ? Does the result completly wrong ? Here is a part of the mapfile : MAP NAME CRN STATUS ON EXTENT -8.520387 21.998300 12.396365 38.845093 SIZE 600 600 IMAGECOLOR 255 255 255 UNITS DD IMAGETYPE PNG PROJECTION "init=epsg:4326" END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 255 SIZE tiny END STYLE 1 SIZE 200 2 COLOR 0 0 255 UNITS KILOMETERS INTERVALS 4 TRANSPARENT FALSE STATUS EMBED POSITION LR END END Maybe i'm completly wrong and this sort of thing isn't realizable but i want to know what do you think about that. Thanks From m.meirink at HHNK.NL Thu Sep 9 03:29:38 2004 From: m.meirink at HHNK.NL (Martin Meirink) Date: Thu, 9 Sep 2004 05:29:38 -0500 Subject: Itemquery and RegEx Message-ID: Hi Daniele Perhaps you should try: "qstring=[Ww]ashington" From temiz at DEPREM.GOV.TR Thu Sep 9 04:22:35 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 9 Sep 2004 14:22:35 +0300 Subject: getting att. value Message-ID: hello I will appreciate if you supply the usage about how I can get attribute value from att. table of a layer (shp file). 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 siki at AGT.BME.HU Thu Sep 9 07:38:19 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 9 Sep 2004 13:38:19 -0100 Subject: Itemquery and RegEx {Scanned} In-Reply-To: Message-ID: Hi, Try qstring=/\[Ww\]ashington/ it will find if washington is part of the attribute, if you want exact match try qstring=/^\[Ww]ashington$/ Bye Zolt?n On Thu, 9 Sep 2004, Daniele Margotti wrote: > Hi list, > when I use "mode=itemnquery" (or "mode=itemquery") and I put a regular > expression as search string (for example, "qstring=(W|w)ashington") I get > this error: > > msQueryByAttributes(): Search returned no results. No matching record(s) > found. > msyyparse(): Expression parser error. parse error > msyyparse(): Expression parser error. parse error > msyyparse(): Expression parser error. parse error > msyyparse(): Expression parser error. parse error > msyyparse(): Expression parser error. parse error > ... > ... > > A "normal" search string (e.g., "qstring=Washington") works well: record > is found, and query result is shown. > > I use MapServer as CGI. > > This is 'mapserv -v' output: > > MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF > 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 > > What's wrong? > > Daniele > > > P.S.: why can't I send messages through my e-mail client? I have to use > the web interface... > From ed at TOPOZONE.COM Thu Sep 9 04:55:11 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 9 Sep 2004 07:55:11 -0400 Subject: Scalebar question Message-ID: St?phane - The scale units of any map depend entirely on the projection you use. It is not possible to create a scale bar in kilometers for a map in latlong projection, because the scale of that map is not consistent in km - that is, a line one km long is a different length depending on where you are on that map. I feel pretty strongly that the "latlong" projection is overused because it is "simple". Different map projections have different properties, and if you want to be able to measure distances you should choose one of the projections that allows you do to that accurately. You simply cannot do it with latlong projection. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of St?phane RIFF Sent: Thursday, September 09, 2004 6:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Scalebar question Hi, I have a question about scalebar calculation. I wrote a map application which is in latlong projection (wgs84) and mapserver is able to calculate a scale in KM unit, so i would like to know how mapserver can do this ??? Does he reproject some points ? Does the result completly wrong ? Here is a part of the mapfile : MAP NAME CRN STATUS ON EXTENT -8.520387 21.998300 12.396365 38.845093 SIZE 600 600 IMAGECOLOR 255 255 255 UNITS DD IMAGETYPE PNG PROJECTION "init=epsg:4326" END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 255 SIZE tiny END STYLE 1 SIZE 200 2 COLOR 0 0 255 UNITS KILOMETERS INTERVALS 4 TRANSPARENT FALSE STATUS EMBED POSITION LR END END Maybe i'm completly wrong and this sort of thing isn't realizable but i want to know what do you think about that. Thanks From edspremolla at ANTEL.COM.UY Thu Sep 9 05:42:05 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Thu, 9 Sep 2004 09:42:05 -0300 Subject: fusion of two different shape files In-Reply-To: <1094713276.413fffbcac294@webmail1.maa.sify.net> Message-ID: Then you have to set first a layer for the polygonal an after it a point layer for the river. Are you shure is a point layer? You may need to iterate over the points and generate line objects, since a point layer will only show the points that I assume are river turns. LALO El jue, 09-09-2004 a las 04:31, sudip dey escribi?: > Hello , i am working upon a GIS project using PHP-mapscript and > mapserver in windows environment. My job is to color all those areas > of the map,which is genereted by a polygonal shape file, over which > the river flows,the river is again generated by a point type shape > file. Please help me in solving this problem and if possible with some > code. Thanks. -- Eduardo Spremolla Antel I+D From sobomsawin at KASSINI.COM Thu Sep 9 06:14:54 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 9 Sep 2004 09:14:54 -0400 Subject: [UMN_MAPSERVER-USERS] How keep the Selection of the layers in HTML In-Reply-To: Message-ID: Pierre, You can keep your selection active while using mapscript as CGI, but it's a little bit tricky. What you have to do is to make your selection with a query or nquery mode, catch the unique ids of elements selected which Mapserver will return and insert these values into an URL with itemnquerymap or itemquerymap mode, or simply create a new layer and use a filter... Personally, I use Java and Mapscript CGI to do this and it works like a charm! Hope this can help... Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Pierre RELLA Envoy??: 9 septembre 2004 03:12 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] How keep the Selection of the layers in HTML Hi, In "html" when i refresh the page, the new page lost the selection of the layers. How can i keep the previous selection? I think using PHP .If somebody have a script .... Best Regards --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 From richard.greenwood at GMAIL.COM Thu Sep 9 07:21:32 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Sep 2004 08:21:32 -0600 Subject: ASP & ASPExec Message-ID: Marta, I am copying the mapserver-users mailing list with this message as there may be others who can help you. Without more details, it's hard to guess where it may be failing. 1. Get everything working with straight CGI, then run exactly the same query string thru ASPExec. 2. Try it at the command line rather than thru ASPExec. This may show error messages. 3. Try a different version of mapserv.exe - it seem to remember some discussion on the list suggesting that maybe the QUERY_STRING= syntax was broken breifly in a 4.x version. 4. I have attached a simple .asp file which may server as an example. 5. There is also an asp "forwarding" mechanism described at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmobjxmldomserverxmlhttp_using_directly.asp and http://mapserver.gis.umn.edu/doc40/wms-server-howto.html#onlineresourceurl that might be useful, and easier, depending on what you are trying to do. Regards, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com Marta Vidal Modenesi wrote: > Hi Rich ! > > I?m writing you about an email that you sent to the mapserver-users list > some years ago (2001). > > I?m trying to work with Mapserver CGI , and started searching the > mapserver?s users lists but there?s very few information about the topic > I?m interested in. > > I?m trying to use the ASPEXEC but It doesn?t work. I think I don?t know > how to call the CGI mapserver in my ASP code. I wonder if you could give > me a hint. I have followed the example codes that comes with ASPEXEC > but won?t work either. > > Thanks anyway, Marta Modenesi. > > > > -----Original Message----- > From: Richard Greenwood [mailto:Rich at GreenwoodMap.com] > Sent: Thursday, December 06, 2001 1:30 PM > To: Ed McNierney > Cc: mapserver-users at lists.gis.umn.edu > Subject: RE: [mapserver-users] ASP Implementation Notes (re-post from > 10/23) > > > Ed, > > Thanks for sharing you ASP knowledge and for providing such a detailed > example. Another way to do pretty much the same thing is: > mapserver.exe QUERY_STRING=xxxxxxxxxxxx > This allows you to run mapserver from the command prompt without calling > it > from a httpd, although I don't know if it is considered a supported > interface (Steve?). Basic ASP doesn't let you execute external commands > but > www.serverobjects.com has a free tool that provides that ability. > > Another very general comment on using ASP and MapServer together - > there's > nothing wrong with mixing ASP and CGI pages on the same site. e.g. I > have a > series of reports that are generated by user queries against a SQL > Server > database and displayed in ASP pages. The user can click a line in the > report which calls MapServer with appropriate parameters to map the > record > the user clicked. > > Rich > From kallwn at ICIRCUS.NET Thu Sep 9 07:59:50 2004 From: kallwn at ICIRCUS.NET (kallwn) Date: Thu, 9 Sep 2004 07:59:50 -0700 Subject: virtual spatial data problem Message-ID: Saw this being discussed in relation to IIS and MS SQL Server but did not see a final answer on this and my set up is a little different. I have mapserver running on a MS Windows 2000 Server with Apache II and with PostgreSQL 8.0 Beta1. I have a map where I'm trying to pull data from a Postgres database. Since I only need a few columns and will eventually be using a JOIN I need to include the actual SQL statement in the .ovf file. And on top of that since I will be passing a variable from the template that map will be in I need to make the ovf file as part of the map file. So far no problems, I've done this before and everything works perfectly and I had high hopes for this map. However when the map layer will not display. I can see they symbol showing up in the legend but nothing will show in the map. When I put the statement from the map layer in a ovf file and run ogrinfo the file is found and read but I get the following error: ERROR 1: SetAttributeFilter() not supported on ExecuteSQL() results. This occurs in Postgres and also in MySQL. However when I replace the statement with a point to the table everything works fine. I have changed nothing in the setup another map using the same setup (including the ovf being in the map file) works fine and the table it is pulling from is in the same database as the one that is giving me fits. And yes I created a new databasse and redid the ODBC and it is a System ODBC. Any suggestions? From jnielsen at AERO-GRAPHICS.COM Thu Sep 9 08:09:16 2004 From: jnielsen at AERO-GRAPHICS.COM (Jason M. Nielsen) Date: Thu, 9 Sep 2004 09:09:16 -0600 Subject: Transform from epsg:26912 to esri:102758 issue... Message-ID: This is more of a proj/gdal question but I cant seem to get through to the gdal mailing list so I thought perhaps someone on here might be able to lend a hand. I apologize if this is too off topic. I have data in epsg:26912 and the client wants it transformed to esri:102758. The destination system is "NAD-1983_Stateplane_Wyoming_West_FIPS_4904_Feet" according to ArcGIS. If I try to do a direct transformation the following occures: [root at mapserver s]# gdalwarp -s_srs epsg:26912 -t_srs esri:102758 south_lincoln.tif south_lincolnx.tif ERROR 1: Translating source or target SRS failed: esri:102758 So instead I have specified the parameters as follows: gdalwarp -s_srs epsg:26912 -t_srs "+proj=tmerc +lat_0=40.5 +lon_0=-110.0833333333333 +k=0.999938 +x_0=799999.9999999999 +y_0=100000 +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192" south_lincoln.tif south_lincolnx.tif Now this translates but I then have another issue. gdalinfo reports the following which looks all good accept one thing thats bugging me. Note the false_easting and false_northing. The client gave me a print out of the projection defines which included those two values. I have also confirmed the clients printout in both ArcGIS and AutoCAD 2002. The false origin listed by the client is as follows: false_easting: 2624666.666667 false_northing: 328083.333333 Note that these are a factor of 3.2808 of those created during the gdal transformation below. [root at mapserver s]# gdalinfo south_lincolnx.tif Driver: GTiff/GeoTIFF Size is 21680, 42482 Coordinate System is: PROJCS["unnamed", GEOGCS["NAD83", DATUM["North_American_Datum_1983", SPHEROID["GRS 1980",6378137,298.2572221010042, AUTHORITY["EPSG","7019"]], AUTHORITY["EPSG","6269"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4269"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",40.5], PARAMETER["central_meridian",-110.0833333333333], PARAMETER["scale_factor",0.999938], PARAMETER["false_easting",8611093.888888888], PARAMETER["false_northing",1076386.736111111], UNIT["US survey foot",0.3048006096012192, AUTHORITY["EPSG","9003"]]] Origin = (2342073.330325,1150633.460539) Pixel Size = (3.28217146,-3.28217146) Corner Coordinates: Upper Left ( 2342073.330, 1150633.461) (131d54'38.64"W, 38d36'4.93"N) Lower Left ( 2342073.330, 1011200.253) (131d47'54.78"W, 38d14'45.11"N) Upper Right ( 2413230.808, 1150633.461) (131d40'45.89"W, 38d38'47.38"N) Lower Right ( 2413230.808, 1011200.253) (131d34'5.46"W, 38d17'25.51"N) Center ( 2377652.069, 1080916.857) (131d44'20.54"W, 38d26'46.05"N) So the question is. Who's is correct? And if my output is wrong what am I doing incorrectly or are the defines in the esri proj file incorrect? Or am I bugging out over nothing? Thanks, Jason. From bhudspeth at EDAC.UNM.EDU Thu Sep 9 09:24:44 2004 From: bhudspeth at EDAC.UNM.EDU (Bill Hudspeth) Date: Thu, 9 Sep 2004 10:24:44 -0600 Subject: Looking for Basic information about using Mapserver query functionality Message-ID: Hello, Does anyone have some basic conceptual information, as well as code examples about using the Mapscript query functions (bypoint, byRect, etc.). While I am using Python mapscript on Mapserver 4.2.1, other programming languages are OK. Thanks, Bill From jhblankenship at YAHOO.COM Thu Sep 9 10:08:04 2004 From: jhblankenship at YAHOO.COM (Jacob Blankenship) Date: Thu, 9 Sep 2004 10:08:04 -0700 Subject: ASP & ASPExec In-Reply-To: Message-ID: Hi All, Does anyone have any experience with and/or examples of getting MapServ to work with ASPX? Regards, Jacob --- Richard Greenwood wrote: > Marta, > > I am copying the mapserver-users mailing list with > this message as > there may be others who can help you. > > Without more details, it's hard to guess where it > may be failing. > > 1. Get everything working with straight CGI, then > run exactly the same > query string thru ASPExec. > > 2. Try it at the command line rather than thru > ASPExec. This may show > error messages. > > 3. Try a different version of mapserv.exe - it seem > to remember some > discussion on the list suggesting that maybe the > QUERY_STRING= syntax > was broken breifly in a 4.x version. > > 4. I have attached a simple .asp file which may > server as an example. > > 5. There is also an asp "forwarding" mechanism > described at: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk30/htm/xmobjxmldomserverxmlhttp_using_directly.asp > and > http://mapserver.gis.umn.edu/doc40/wms-server-howto.html#onlineresourceurl > that might be useful, and easier, depending on what > you are trying to do. > > Regards, > Rich > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > > Marta Vidal Modenesi wrote: > > > Hi Rich ! > > > > I?m writing you about an email that you sent to > the mapserver-users list > > some years ago (2001). > > > > I?m trying to work with Mapserver CGI , and > started searching the > > mapserver?s users lists but there?s very few > information about the topic > > I?m interested in. > > > > I?m trying to use the ASPEXEC but It doesn?t work. > I think I don?t know > > how to call the CGI mapserver in my ASP code. I > wonder if you could give > > me a hint. I have followed the example codes that > comes with ASPEXEC > > but won?t work either. > > > > Thanks anyway, Marta Modenesi. > > > > > > > > -----Original Message----- > > From: Richard Greenwood > [mailto:Rich at GreenwoodMap.com] > > Sent: Thursday, December 06, 2001 1:30 PM > > To: Ed McNierney > > Cc: mapserver-users at lists.gis.umn.edu > > Subject: RE: [mapserver-users] ASP Implementation > Notes (re-post from > > 10/23) > > > > > > Ed, > > > > Thanks for sharing you ASP knowledge and for > providing such a detailed > > example. Another way to do pretty much the same > thing is: > > mapserver.exe QUERY_STRING=xxxxxxxxxxxx > > This allows you to run mapserver from the command > prompt without calling > > it > > from a httpd, although I don't know if it is > considered a supported > > interface (Steve?). Basic ASP doesn't let you > execute external commands > > but > > www.serverobjects.com has a free tool that > provides that ability. > > > > Another very general comment on using ASP and > MapServer together - > > there's > > nothing wrong with mixing ASP and CGI pages on the > same site. e.g. I > > have a > > series of reports that are generated by user > queries against a SQL > > Server > > database and displayed in ASP pages. The user can > click a line in the > > report which calls MapServer with appropriate > parameters to map the > > record > > the user clicked. > > > > Rich > > > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From richard.greenwood at GMAIL.COM Thu Sep 9 12:14:29 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Sep 2004 13:14:29 -0600 Subject: Transform from epsg:26912 to esri:102758 issue... In-Reply-To: <1094742556.4140721c50f87@www.agi-lan.com> Message-ID: Looks like it is just a matter of defining the false northing & easting in feet versus meters. I think GDAL likes the false northing & easting in meters even from projections that are in feet. So nothing looks out of order to me. But watch out for the US Survey Foot versus the International Foot. ArcView didn't used to be to at differentiating the two. Wyoming uses the US Survey Foot and the correct value is +to_meter=0.3048006096012192 Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Thu, 9 Sep 2004 09:09:16 -0600, Jason M. Nielsen wrote: > This is more of a proj/gdal question but I cant seem to get through to the gdal > mailing list so I thought perhaps someone on here might be able to lend a hand. > I apologize if this is too off topic. > > I have data in epsg:26912 and the client wants it transformed to esri:102758. > > The destination system is "NAD-1983_Stateplane_Wyoming_West_FIPS_4904_Feet" > according to ArcGIS. > > If I try to do a direct transformation the following occures: > > [root at mapserver s]# gdalwarp -s_srs epsg:26912 -t_srs esri:102758 > south_lincoln.tif south_lincolnx.tif > ERROR 1: Translating source or target SRS failed: > esri:102758 > > So instead I have specified the parameters as follows: > > gdalwarp -s_srs epsg:26912 -t_srs "+proj=tmerc +lat_0=40.5 > +lon_0=-110.0833333333333 +k=0.999938 +x_0=799999.9999999999 +y_0=100000 > +ellps=GRS80 +datum=NAD83 +to_meter=0.3048006096012192" south_lincoln.tif > south_lincolnx.tif > > Now this translates but I then have another issue. gdalinfo reports the > following which looks all good accept one thing thats bugging me. Note the > false_easting and false_northing. The client gave me a print out of the > projection defines which included those two values. I have also confirmed the > clients printout in both ArcGIS and AutoCAD 2002. The false origin listed by the > client is as follows: > > false_easting: 2624666.666667 > false_northing: 328083.333333 > > Note that these are a factor of 3.2808 of those created during the gdal > transformation below. > > [root at mapserver s]# gdalinfo south_lincolnx.tif > Driver: GTiff/GeoTIFF > Size is 21680, 42482 > Coordinate System is: > PROJCS["unnamed", > GEOGCS["NAD83", > DATUM["North_American_Datum_1983", > SPHEROID["GRS 1980",6378137,298.2572221010042, > AUTHORITY["EPSG","7019"]], > AUTHORITY["EPSG","6269"]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433], > AUTHORITY["EPSG","4269"]], > PROJECTION["Transverse_Mercator"], > PARAMETER["latitude_of_origin",40.5], > PARAMETER["central_meridian",-110.0833333333333], > PARAMETER["scale_factor",0.999938], > PARAMETER["false_easting",8611093.888888888], > PARAMETER["false_northing",1076386.736111111], > UNIT["US survey foot",0.3048006096012192, > AUTHORITY["EPSG","9003"]]] > Origin = (2342073.330325,1150633.460539) > Pixel Size = (3.28217146,-3.28217146) > Corner Coordinates: > Upper Left ( 2342073.330, 1150633.461) (131d54'38.64"W, 38d36'4.93"N) > Lower Left ( 2342073.330, 1011200.253) (131d47'54.78"W, 38d14'45.11"N) > Upper Right ( 2413230.808, 1150633.461) (131d40'45.89"W, 38d38'47.38"N) > Lower Right ( 2413230.808, 1011200.253) (131d34'5.46"W, 38d17'25.51"N) > Center ( 2377652.069, 1080916.857) (131d44'20.54"W, 38d26'46.05"N) > > So the question is. Who's is correct? And if my output is wrong what am I doing > incorrectly or are the defines in the esri proj file incorrect? Or am I bugging > out over nothing? > > Thanks, > Jason. > From richard.greenwood at GMAIL.COM Thu Sep 9 14:34:00 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Sep 2004 15:34:00 -0600 Subject: [UMN_MAPSERVER-USERS] How keep the Selection of the layers in HTML In-Reply-To: <000401c4966e$ff35c760$6702a8c0@jebediah> Message-ID: Checkout SAVEQUERY and QUERYFILE in the CGI reference. This allows you to save a selection and eliminates the overhead of running the query each time the map needs to be redrawn. And it does not require any scripting! Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Thu, 9 Sep 2004 09:14:54 -0400, Skweda O'Bomsawin wrote: > Pierre, > > You can keep your selection active while using mapscript as CGI, but it's a > little bit tricky. What you have to do is to make your selection with a > query or nquery mode, catch the unique ids of elements selected which > Mapserver will return and insert these values into an URL with itemnquerymap > or itemquerymap mode, or simply create a new layer and use a filter... > Personally, I use Java and Mapscript CGI to do this and it works like a > charm! > > Hope this can help... > > Skweda O'Bomsawin > > -----Message d'origine----- > De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la > part de Pierre RELLA > Envoy? : 9 septembre 2004 03:12 > ? : MAPSERVER-USERS at LISTS.UMN.EDU > Objet : [UMN_MAPSERVER-USERS] How keep the Selection of the layers in HTML > > > > Hi, > In "html" when i refresh the page, the new page lost the selection > of the > layers. How can i keep the previous selection? I think using PHP .If > somebody have a script .... > > Best Regards > From sgillies at FRII.COM Thu Sep 9 15:28:49 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 9 Sep 2004 16:28:49 -0600 Subject: Looking for Basic information about using Mapserver query functionality In-Reply-To: Message-ID: On Sep 9, 2004, at 10:24 AM, Bill Hudspeth wrote: > Hello, > > Does anyone have some basic conceptual information, as well as code > examples about using the Mapscript query functions (bypoint, byRect, > etc.). While I am using Python mapscript on Mapserver 4.2.1, other > programming languages are OK. > > Thanks, Bill > > Bill, Here's an excerpt from a new HOWTO document I am writing. It's formatted as Structured Text (for Zope) and uses examples in a mapscript pseudo-code. Nothing specific about the query methods yet, for that check out the reference in mapserver/mapscript/doc/mapscript.txt of your mapserver source. cheers, Sean -------- Querying Map layers can be queried to select features using spatial query methods: 'layerObj::queryByPoint', 'layerObj::queryByRect', and 'layerObj::queryByShape', or the attribute query method 'layerObj::queryByAttributes'. One of MapServer's most annoying quirks is that a layer's 'template' attribute is also the switch controlling whether or not the layer is queryable. Setting the 'template' attribute to _any_ string value suffices to activate querying:: test_map = new mapscript.mapObj('test.map') layer = test_map.getLayer(0) # this layer begins as non-queryable # activate querying - any value will do layer.template = 'foo' Ignoring for the moment whether we are doing a spatial or attribute query, query results are obtained like so:: ... # continuing from above query_status = layer.queryByUnspecifiedCriteria() # not an actual method! if (query_status == mapscript.MS_SUCCESS) then # query has results { # iterate over layer's query result set result_count = layer.getNumResults() for i in (0 .. result_count-1) { result = layer.getResult(i) ... # do something with result } } 'layerObj::getResult' returns an instance of 'mapscript::resultCacheMemberObj'. This 'result' object is a handle, of sorts, for a feature of the layer. Any feature of a layer can be obtained using 'layerObj::getShape'. If you are using the old-style API of previous MapServer versions, this method is used like:: shape = mapscript.shapeObj(layer.type) # new shape of the layer's type layer.open() # must be done before reading # Copy the first feature (shape index = 0) from the layer into 'shape' # while ignoring any tileindexing (tile index = -1) layer.getShape(shape, -1, 0) layer.close() # close after done reading If you are using the optional next generation API that is a mapscript build option starting in MapServer version 4.2, you can use the much more direct method:: layer.open() # in the new API getShape returns a shape of the proper type and # tile indexing is ignored by default shape = layer.getShape(0) layer.close() Our 'result' object has 'shapeindex' and 'tileindex' attributes that can be used as arguments to 'getShape'. The previous example code can now be extended to the case of obtaining all queried features:: query_status = layer.queryByUnspecifiedCriteria() if (query_status == mapscript.MS_SUCCESS) then { # open layer in preparation of reading shapes layer.open() result_count = layer.getNumResults() for i in (0 .. result_count-1) { result = layer.getResult(i) # Get the feature corresponding to the result using # the more direct next generation API shape = layer.getShape(result.shapeindex, result.tileindex) ... # do something with this feature } # Close when done layer.close() } From sudip_mca at SIFY.COM Thu Sep 9 23:01:35 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Fri, 10 Sep 2004 12:01:35 +0600 Subject: buffering of layers Message-ID: Hello , i am working upon a GIS project using PHP-mapscript and mapserver in windows environment. But the problem is my task ask me to label all those portions of the map(which is ofcourse genetated by polygonal shapefile)which are within a given distance away from a line layer. Please help me in solving this problem. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri Sep 10 00:02:31 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 10 Sep 2004 09:02:31 +0200 Subject: buffering of layers In-Reply-To: <1094797895.41414a47ad2f0@webmail1.maa.sify.net> Message-ID: Hi Sudip, sounds like you are doing a lot of spatial analysis lately, please look into PostGIS as a database backend for your application. Mapserver can do some spatial analysis, but certainly not all. So store your data in PostGIS and let PostGIS do the analysis work would be my 2 cents. Best regards, Bart > Hello , > i am working upon a GIS project using PHP-mapscript and mapserver in > windows environment. > But the problem is my task ask me to label all those portions of the > map(which is ofcourse > genetated by polygonal shapefile)which are within a given distance away > from a line layer. > > Please help me in solving this problem. > > Thanks. > From berend.veldkamp at ARIS.NL Fri Sep 10 02:17:00 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Fri, 10 Sep 2004 11:17:00 +0200 Subject: Help with regular expression Message-ID: Hi, This can't be very difficult: How can i set up a class expression in a mapfile to show all points in a layer that have an attribute *not* starting with "000"? I have already tried "expression /^[^0]{3}/" and "expression /^[^0][^0][^0]/", but then no point are shown at all. (other expressions (i.e. /^000/) work fine, so the rest of the mapfile is OK) Thanks, Berend -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From berend.veldkamp at ARIS.NL Fri Sep 10 04:37:15 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Fri, 10 Sep 2004 13:37:15 +0200 Subject: Help with regular expression In-Reply-To: <005101c49729$70836890$041410ac@comune.lugo.ra.it> Message-ID: I thought of that, but it would not catch "012" or "990". I want only those records that don't start with exactly 3 zeroes. Berend Daniele Margotti wrote: > Try: > "expression /^[1-9]{3}/" > > If the attribute can start with letters (other than numbers): > "expression /^[A-Z,a-z,1-9]{3}/" > > And if you want, for example, an (numerical) attribute *not* starting > with "123": > "expression /^[0,2-9][0-1,3-9][0-2,4-9]/" > > Tell me if it works. > > Daniele > > -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From berend.veldkamp at ARIS.NL Fri Sep 10 05:02:36 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Fri, 10 Sep 2004 07:02:36 -0500 Subject: Help with regular expression Message-ID: I think I got it (the 4th character is always a letter): EXPRESSION /^[0-9]{0,3}[1-9]{1,3}[0-9]{0,3}[A-Z]/ Berend On Fri, 10 Sep 2004 13:37:15 +0200, Berend Veldkamp wrote: >I thought of that, but it would not catch "012" or "990". I want only >those records that don't start with exactly 3 zeroes. > >Berend > > From plists at PROMETHEUS.ORG.YU Fri Sep 10 05:22:50 2004 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Fri, 10 Sep 2004 14:22:50 +0200 Subject: Help with regular expression In-Reply-To: <414191EB.4060407@aris.nl> Message-ID: On Friday 10 September 2004 13:37, Berend Veldkamp wrote: > I thought of that, but it would not catch "012" or "990". I want only > those records that don't start with exactly 3 zeroes. I have not tried it, but if it's anything like regex in perl I would write something like expression /^(?!000)/ From berend.veldkamp at ARIS.NL Fri Sep 10 05:39:36 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Fri, 10 Sep 2004 14:39:36 +0200 Subject: Help with regular expression In-Reply-To: <200409101421.52038.plists@prometheus.org.yu> Message-ID: That looks much better than EXPRESSION /^[0-9]{0,3}[1-9]{1,3}[0-9]{0,3}[A-Z]/ but unfortunately, it doesn't work, no records are selected at all. Can anyone tell me which flavour of RE MapServer uses? I have version 4.2 on Windows. Berend Attila Csipa wrote: > On Friday 10 September 2004 13:37, Berend Veldkamp wrote: > >>I thought of that, but it would not catch "012" or "990". I want only >>those records that don't start with exactly 3 zeroes. > > > I have not tried it, but if it's anything like regex in perl I would write > something like > > expression /^(?!000)/ -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From asimpson at I-55.COM Fri Sep 10 07:47:04 2004 From: asimpson at I-55.COM (Simpson) Date: Fri, 10 Sep 2004 09:47:04 -0500 Subject: MrSID mapserver vs gdal_translate Message-ID: Hi, I find gdal_translate about three times faster than mapserver when processing a small area from a MrSID file. If I add a class definition to the layer in the map file, the results are black and white, but the image renders at about the same speed as gdal_translate. Is this disparity in time a result of bands being extracted separately? Thanks for any help, Drew. GDAL_TRANSLATE RUN # time gdal_translate -of png -outsize 600 600 -projwin 237197.849522 3385281 > Input file size is 47637, 39167 Computed -srcwin 5376 34431 1251 1252 from projected window. 20.05s real 17.87s user 2.15s system MAPSCRIPT RUN # time ./ms_mrsid.cgi Generating map... [Fri Sep 10 09:14:12 2004].218670 msDrawRasterLayerLow(dynraster): entering. [Fri Sep 10 09:14:12 2004].225859 msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0 Map done. Output in ./1094825652.mp.png 65.13s real 58.31s user 6.28s system MAPSERVER VERSION MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE GDAL_VERSION 1.2.1 OS Linux xxx 2.4.20-28.8 #1 Thu Dec 18 12:53:39 EST 2003 i686 i686 i386 GNU/Linux IMAGERY Landsat data from https://zulu.ssc.nasa.gov/mrsid/ Specifically https://zulu.ssc.nasa.gov/mrsid/bin/download_file.pl?client=etmpsmos/sid&ima ge=N-16-30_2000.tar (may take multiple attempts to download) MAP FILE NAME DEMO STATUS ON SIZE 600 600 EXTENT 237197.849522 3367440.634804 255029.015690 3385281.561774 UNITS meters SHAPEPATH "data" IMAGECOLOR 255 255 255 DEBUG ON IMAGETYPE png_rgb OUTPUTFORMAT NAME png_rgb DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END WEB IMAGEPATH "set in demo_init.html" IMAGEURL "set in demo_init.html" LOG "/home/asimpson/wms/mapserver.log" END LAYER NAME dynraster TYPE RASTER MAXSCALE 6000000000 STATUS DEFAULT DEBUG ON DATA "/home/asimpson/wms/data/n_16_30_2000c.zu.sid" #CLASS # NAME "dynraster" #END END END # Map File MAPSCRIPT #!/usr/bin/perl use strict; use mapscript; $| = 1; my $time = time; my $tmp_base = $time; my $scratch = "./"; my $mapfile = "./ms_mrsid.map"; GenerateMap(); exit; ################################################# sub GenerateMap { my($map,$img,$map_file,$layer); my($numlayers,$l); print "Generating map...\n"; $ENV{MS_ERRORFILE} = './mapserver.log'; $map = new mapscript::mapObj($mapfile) || die $mapscript::ms_error->{code}.": ".$mapscript::ms_error->{message}; $img = $map->draw() or die "Unable to render map.".$mapscript::ms_error->{message}; $map_file = "$time.mp.png"; $img->save($scratch.$map_file); print "Map done. Output in $scratch$map_file\n"; } From warmerdam at POBOX.COM Fri Sep 10 08:10:00 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 10 Sep 2004 11:10:00 -0400 Subject: MrSID mapserver vs gdal_translate In-Reply-To: Message-ID: Simpson wrote: > Hi, > > I find gdal_translate about three times faster than mapserver when > processing a small area from a MrSID file. If I add a class definition to > the layer in the map file, the results are black and white, but the image > renders at about the same speed as gdal_translate. Is this disparity in > time a result of bands being extracted separately? Drew, Yes, the performance issue is related to MapServer reading each band seperately. What I really need to do is modify mapdrawgdal.c to use the "several bands at once" interface to GDAL (relatively new in GDAL) to accelerate performance. But doing this will mean a non-trivial restructuring of the code so I have put it off. 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 guerardsimon at HOTMAIL.COM Fri Sep 10 08:09:41 2004 From: guerardsimon at HOTMAIL.COM (Simon Guerard) Date: Fri, 10 Sep 2004 10:09:41 -0500 Subject: access mapserver.log Message-ID: Hye I'm a new user of mapser and I can't have access to mapserver.log. The file doesn't exist. I'm under winXP and IIS 5.0 I create ms_errorfile in environment variables of windows. I put putenv("MS_ERRORFILE=$lofile"); in the top of the php file which call the map file. But anythings works ... Does anyone can help me, please ? Thank you From superbla3000 at GMX.NET Fri Sep 10 08:53:48 2004 From: superbla3000 at GMX.NET (joerg p) Date: Fri, 10 Sep 2004 17:53:48 +0200 Subject: phtml apache2 config Message-ID: Hello, I am installing mapserver with php mapsrcipt and need to configure apache2 to run with phtml as php cgi. In the wiki I read how to configure apache but I don't know in which apache2 config files I have to put: Action phtml-script /cgi/php AddHandler phtml-script .phtml AddType application/x-httpd-php .php .php4 .php3 .phtml Options ExecCGI FollowSymLinks Thanks Joerg From tim.pascoe at EC.GC.CA Fri Sep 10 08:56:07 2004 From: tim.pascoe at EC.GC.CA (Tim Pascoe) Date: Fri, 10 Sep 2004 10:56:07 -0500 Subject: OGR Source and Parameter Query Message-ID: I'm relatively new to MapServer, but I have so far developed a nice simple application for displaying data from a database of national sampling locations. The base information is coming from several WMS servers, while the sample point information is an OGR data source from my local MS-SQL Server instance. What I'd like to be able to do is pass a parameter to the query being used as the OGR data source, allowing a user to select a particular study from the database, and thus display the sampling locations for only that study. Does that make sense? I looked through the archives, and didn't find anything that seemed immediatly usefull, so I thought I'd see if anyone else had done something like this. I'm running PHP 4.3.8, Mapserver 4.2 (precompiled Win32 binary), and IIS 6.0. Any help is much appreciated. From pram at PRAMCENTRAL.COM Fri Sep 10 08:57:22 2004 From: pram at PRAMCENTRAL.COM (Prashanth Ram) Date: Fri, 10 Sep 2004 10:57:22 -0500 Subject: phtml apache2 config Message-ID: joerg: If you are asking which config file to modify, you are looking for the httpd.conf file. Try whereis httpd.conf or locate httpd.conf or (the long painful way) find / |grep -in "httpd.conf" Use your favourite editor, and edit the file that gets returned. Make sure to restart apache after the conf changes! -Prashanth ----- Original Message ----- From: joerg p Date: Fri, 10 Sep 2004 17:53:48 +0200 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] phtml apache2 config > Hello, > > I am installing mapserver with php mapsrcipt and need to configure > apache2 to run with phtml as php cgi. > > In the wiki I read how to configure apache but I don't know in which > apache2 config files I have to put: > > Action phtml-script /cgi/php > AddHandler phtml-script .phtml > > AddType application/x-httpd-php .php .php4 .php3 .phtml > > > Options ExecCGI FollowSymLinks > > > Thanks > Joerg > From lfilak at MEDINACO.ORG Fri Sep 10 09:13:10 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 10 Sep 2004 12:13:10 -0400 Subject: input with mapserver Message-ID: You can do both. Editting layers has many options depending on the format of your data and you should find plenty of information in the archives for both editting shapefiles & postgis via mapscript. Getting coordinates via a map click is just a matter of translating the selected pixel coordinate into geographic coordinates based on the extents of the map. The mapserver cgi does that automatically and there are examples of how to do that in mapscript. HTH Lowell The following message was sent by Brian Russo on Sun, 5 Sep 2004 06:31:41 -0400. > Tried asking on this list a few times before but no response.. > > Is it possible at all with mapserver to either: > > Edit a layer > OR > get geographic coordinates by clicking on the map > > If not, does anyone know any open source stuff that'll do this? > > thanks, > - bri > > > -- > Recursivity. Call back if it happens again. From warmerdam at POBOX.COM Fri Sep 10 09:48:28 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 10 Sep 2004 12:48:28 -0400 Subject: OGR Source and Parameter Query In-Reply-To: Message-ID: Tim Pascoe wrote: > I'm relatively new to MapServer, but I have so far developed a nice simple > application for displaying data from a database of national sampling > locations. The base information is coming from several WMS servers, while > the sample point information is an OGR data source from my local MS-SQL > Server instance. > > What I'd like to be able to do is pass a parameter to the query being used > as the OGR data source, allowing a user to select a particular study from > the database, and thus display the sampling locations for only that study. > Does that make sense? > > I looked through the archives, and didn't find anything that seemed > immediatly usefull, so I thought I'd see if anyone else had done something > like this. I'm running PHP 4.3.8, Mapserver 4.2 (precompiled Win32 > binary), and IIS 6.0. Tim, Are you using a virtual OGR dataset to access the MS-SQL database? If so, you can replace the element with a element with a custom query selecting on some criteria. If you want to make this dynamic (ie. the key passed in by the user somehow) things will get substantially harder. One approach would be to use mapscript, and alter your ovf definition on the fly. Another would be have the ovf definition embedded in the .map file and parameter substitution to substitute in our extra criteria. I have never tried doing the parameter substitution myself. 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 eglamkowski at MY.BOMIS.COM Fri Sep 10 10:06:43 2004 From: eglamkowski at MY.BOMIS.COM (Edward Glamkowski) Date: Fri, 10 Sep 2004 12:06:43 -0500 Subject: symbology question Message-ID: Hello all - my company is considering the use of MapServer, but we have a specific need and we'd like to know if MapServer can do it. Our client wants to be able to view maps on the web, but also be able to change the symbology of the web-map on the fly. Like in ESRI's ArcMap, in the layer pane if you double click a symbol you get a Layer Properties dialog from which you can change the Symbology. We'd like to do a similar dialog for a web map, though just for symbology, and are wondering if MapServer supports something like that. Thanks! From barnes at WATERSHEDS.CA Fri Sep 10 10:50:56 2004 From: barnes at WATERSHEDS.CA (Shawn Barnes) Date: Fri, 10 Sep 2004 12:50:56 -0500 Subject: compile problems --- make: *** [shp2img] Error 1 Message-ID: I'm having problems compiling mapserver i get shp2img error during the make. This is the error i get, /usr/SRC/gdal-1.2.1/libgdal.la: file not recognized: File format not recognized collect2: ld returned 1 exit status make: *** [shp2img] Error 1 I'm using the current nightlybuild, downloaded about an hour ago. And these are my configure options, --with-freetype=/usr/local/bin/freetype-config \ --with-zlib \ --with-png \ --with-jpeg /usr/lib \ --with-xpm=no \ --with-gd \ --with-proj=../proj-4.4.8 \ --with-ogr=../gdal-1.2.1/apps/gdal-config \ --with-gdal=../gdal-1.2.1/apps/gdal-config \ --with-tiff \ --with-postgis=/usr/local/pgsql/bin/pg_config \ --with-wfs \ --with-wmsclient \ --with-wfsclient \ --with-curl-config=/usr/local/bin/curl-config \ --with-httpd=/usr/sbin/apache \ --with-php=../php-4.3.8 Thanks, Shawn From bartvde at XS4ALL.NL Fri Sep 10 11:04:48 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 10 Sep 2004 20:04:48 +0200 Subject: symbology question In-Reply-To: Message-ID: Hi, you could use Mapserver's SLD (Styled Layer Descriptor) interface for that, that's an OGC standard to do this kind of stuff. Best regards, Bart On Fri, 10 Sep 2004 12:06:43 -0500, Edward Glamkowski wrote: > Hello all - my company is considering the use of MapServer, but we have > a specific need and we'd like to know if MapServer can do it. > > Our client wants to be able to view maps on the web, but also be able > to change the symbology of the web-map on the fly. > > Like in ESRI's ArcMap, in the layer pane if you double click a symbol you > get a Layer Properties dialog from which you can change the Symbology. > > We'd like to do a similar dialog for a web map, though just for > symbology, > and are wondering if MapServer supports something like that. > > Thanks! > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From superbla3000 at GMX.NET Fri Sep 10 12:31:50 2004 From: superbla3000 at GMX.NET (joerg p) Date: Fri, 10 Sep 2004 21:31:50 +0200 Subject: make problem mapscript Message-ID: It's not so easy getting it to work on linux..... I have compiled mapserver with mapscript. First irritating thing when I compile: checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile So it says it finds PHP4 but creates directory php3.hmmm...???? And then, when I make mapserver: make[1]: Entering directory `/home/JP/sw/mapserver-4.2.2/mapscript/php3' gcc -fPIC -O2 -Wall -DCOMPILE_DL=1 -DPHP4 -DUSE_WMS_SVR -DUSE_POSTGIS -DUSE_GDAL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_EPPL -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -I/home/JP/sw/mapserver-4.2.2 -I/usr/include/pgsql -I/usr/include -I/usr/include -I/usr/local/include/php/ -I/usr/local/include/php//dl -I/usr/local/include/php//main -I/usr/local/include/php//Zend -I/usr/local/include/php//include -I/usr/local/include/php//TSRM -c -o php_mapscript_util.o php_mapscript_util.c php_mapscript_util.c: In function `_phpms_fetch_handle2': php_mapscript_util.c:153: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_handle2': php_mapscript_util.c:205: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_string': php_mapscript_util.c:252: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_long': php_mapscript_util.c:278: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_double': php_mapscript_util.c:311: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_resource': And so on...... What does this mean? Thanks Joerg From richard.greenwood at GMAIL.COM Fri Sep 10 13:35:03 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 10 Sep 2004 14:35:03 -0600 Subject: Javascript Message-ID: Michael Smith wrote: > Hi rich, > > I have spoke to you in the past on issues with jbox. I am a mapserver user > and subscribe to the list. I saw your website and was wondering if you > would mind sharing some of your javascript for the button functions such as > zoom in/out, pan,etc. If not, would you mind at least providing some hints > as to how I would go about doing this in javascript? > I am copying the mapserver-users list with this email so others can share and so that it will go into the archive. You can fetch the Javascript driving any web page pretty easily. If the Javascript is within an HTML document, just use your browser to view the source. If the Javascript gets loaded from a separate source file, you will see a line in the HTML page like the following: In which case you can fetch the source by combining the URI of the page containing the reference and the reference like this: http://www2.tetonwyo.org/mapserver/tc/tc.js (where "http://www2.tetonwyo.org/mapserver/" is the URI of the containing page and "tc/tc.js" reference to the Javascript source file). Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Fri Sep 10 14:11:43 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 10 Sep 2004 15:11:43 -0600 Subject: symbology question In-Reply-To: Message-ID: Bart's SLD suggestion below is an excellent approach if you are working in a WMS environment. If you are working with mapscript, it is easy to alter the styles. If you are working with the CGI interface, you can over-ride map file parameters with CGI variables like this: MAP_layerName_className_SYMBOL=xyz The default symbology would be defined in the map file, and then over-ridden with a CGI item=value pair(s) as needed. Refer to the "CGI Variables" section of the "CGI MapServer" documentation. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Fri, 10 Sep 2004 20:04:48 +0200, Bart van den Eijnden wrote: > Hi, > > you could use Mapserver's SLD (Styled Layer Descriptor) interface for > that, that's an OGC standard to do this kind of stuff. > > Best regards, > Bart > > On Fri, 10 Sep 2004 12:06:43 -0500, Edward Glamkowski > wrote: > > > Hello all - my company is considering the use of MapServer, but we have > > a specific need and we'd like to know if MapServer can do it. > > > > Our client wants to be able to view maps on the web, but also be able > > to change the symbology of the web-map on the fly. > > > > Like in ESRI's ArcMap, in the layer pane if you double click a symbol you > > get a Layer Properties dialog from which you can change the Symbology. > > > > We'd like to do a similar dialog for a web map, though just for > > symbology, > > and are wondering if MapServer supports something like that. > > > > Thanks! > > > > -- > Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > From mholger at OPTERA.NET Fri Sep 10 14:42:21 2004 From: mholger at OPTERA.NET (Matthew Holger) Date: Fri, 10 Sep 2004 16:42:21 -0500 Subject: OGR Source and Parameter Query In-Reply-To: <4141DADC.8020601@pobox.com> Message-ID: On Fri, Sep 10, 2004 at 12:48:28PM -0400, Frank Warmerdam wrote: > Tim, > > Are you using a virtual OGR dataset to access the MS-SQL database? If so, > you can replace the element with a element with a custom > query selecting on some criteria. If you want to make this dynamic (ie. the > key passed in by the user somehow) things will get substantially harder. > One approach would be to use mapscript, and alter your ovf definition on the > fly. Another would be have the ovf definition embedded in the .map file and > parameter substitution to substitute in our extra criteria. I have never > tried doing the parameter substitution myself. The approach I took was just to create a completely new layer in mapscript, and then use mapscript to add points to that layer for every row of data the SQL query gave me. So far, it's working pretty well, but I'm not sure if it's the most efficient route to getting dynamically selected data into a map, but it does certainly provide a high level of flexibility. Cheers! -Matt. From jvanulde at NRCAN.GC.CA Fri Sep 10 16:07:05 2004 From: jvanulde at NRCAN.GC.CA (Van Ulden, Joost) Date: Fri, 10 Sep 2004 19:07:05 -0400 Subject: SLD WellKnownName PointSymbolizer Message-ID: 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 ============================================ From malsburg at CL.UNI-HEIDELBERG.DE Fri Sep 10 17:33:11 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Sat, 11 Sep 2004 02:33:11 +0200 Subject: symbology question In-Reply-To: Message-ID: On Fri, Sep 10, 2004 at 03:11:43PM -0600, Richard Greenwood wrote: > Bart's SLD suggestion below is an excellent approach if you are > working in a WMS environment. > > If you are working with mapscript, it is easy to alter the styles. > > If you are working with the CGI interface, you can over-ride map file > parameters with CGI variables like this: > MAP_layerName_className_SYMBOL=xyz Correct me if I'm wrong but I think SLD is not only usable in a WMS environment. Mapscripts that apply user supplied or generated SLDs are imaginable as well. And this wouldn't be the worst choice. Titus From superbla3000 at GMX.NET Sat Sep 11 10:14:56 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sat, 11 Sep 2004 19:14:56 +0200 Subject: show utm geotiff Message-ID: Hello, I want to use the landsat7 geotiffs, which are in utm. Unfortunatelly my mapserver only shows geotiffs in latlong. How do I use them? joerg From malsburg at CL.UNI-HEIDELBERG.DE Sat Sep 11 10:33:12 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Sat, 11 Sep 2004 19:33:12 +0200 Subject: show utm geotiff In-Reply-To: <000001c49822$de149f60$f08f14d5@kingoftheroad> Message-ID: On Sat, Sep 11, 2004 at 07:14:56PM +0200, joerg p wrote: > I want to use the landsat7 geotiffs, which are in utm. > Unfortunatelly my mapserver only shows geotiffs in latlong. My guess would be: LAYER TYPE RASTER ... PROJECTION "proj=utm" "zone=32" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END ... END Of course you have to adjust the zone parameter to the appropriate UTM zone of your data. Or you can use the gdalwarp utillity to reproject the images and putting the reprojected versions to the map. Titus ~ From superbla3000 at GMX.NET Sat Sep 11 11:14:25 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sat, 11 Sep 2004 20:14:25 +0200 Subject: show utm geotiff In-Reply-To: <20040911173312.GB19657@mother> Message-ID: Hhmmmm...somehow, it doesn't work... I put the Projection tag in my raster layer, but when I use the original utm geotiff, it doesn't work. When I use the by globalmapper reprojected geotiff, it works, but unfortunately the image is not so nice. When I test it with the reprojected image and the Projection tag, the image is still shown in latlong. Actuelly I can use whatever in the Projection definition, but nothing changes... Maybe my proj doesn't work? I am working at the moment with mapserver for windows. Joerg -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Samstag, 11. September 2004 19:33 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] show utm geotiff On Sat, Sep 11, 2004 at 07:14:56PM +0200, joerg p wrote: > I want to use the landsat7 geotiffs, which are in utm. > Unfortunatelly my mapserver only shows geotiffs in latlong. My guess would be: LAYER TYPE RASTER ... PROJECTION "proj=utm" "zone=32" "ellps=WGS84" "datum=WGS84" "units=m" "no_defs" END ... END Of course you have to adjust the zone parameter to the appropriate UTM zone of your data. Or you can use the gdalwarp utillity to reproject the images and putting the reprojected versions to the map. Titus ~ From tylermitchell at SHAW.CA Sat Sep 11 19:34:07 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Sat, 11 Sep 2004 19:34:07 -0700 Subject: phtml apache2 config In-Reply-To: <000001c4974e$609d6eb0$878f14d5@kingoftheroad> Message-ID: > I am installing mapserver with php mapsrcipt and need to configure > apache2 to run with phtml as php cgi. > > In the wiki I read how to configure apache but I don't know in which > apache2 config files I have to put: It can depend on what operating system you are running on too. httpd.conf be called something else. Also, there may be nicer ways to do so to keep your changes modular. For example, on Suse linux I have a php4.conf file in my /etc/apache2/conf.d folder. The directives in this file get read as if they were in httpd.conf. This is nice because continually adding to httpd.conf just makes it harder to find subtle changes that may have affected your setup. Do you have php running okay? Tyler From malsburg at CL.UNI-HEIDELBERG.DE Sun Sep 12 05:39:32 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Sun, 12 Sep 2004 14:39:32 +0200 Subject: show utm geotiff In-Reply-To: <000001c4982b$2d114a20$400d06d5@kingoftheroad> Message-ID: On Sat, Sep 11, 2004 at 08:14:25PM +0200, joerg p wrote: > When I test it with the reprojected image and the Projection tag, the > image is still shown in latlong. Actuelly I can use whatever in the > Projection definition, but nothing changes... The projection used to render the map doesn't depend on the projection of the layers but on the projection you specify for the map. Therefore you have to define the projection for the layers and the projection for the map. The latter will be used for rendering. Titus From superbla3000 at GMX.NET Sun Sep 12 07:10:17 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sun, 12 Sep 2004 16:10:17 +0200 Subject: show utm geotiff In-Reply-To: <20040912123931.GB1346@mother> Message-ID: I found another posting, and I think the problem is my map extent: EXTENT -180 -90 180 90 So it's in latlong format. How do I write this in UTM actuelly? I also use: UNITS dd Is this ok? Joerg -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Sonntag, 12. September 2004 14:40 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] show utm geotiff On Sat, Sep 11, 2004 at 08:14:25PM +0200, joerg p wrote: > When I test it with the reprojected image and the Projection tag, the > image is still shown in latlong. Actuelly I can use whatever in the > Projection definition, but nothing changes... The projection used to render the map doesn't depend on the projection of the layers but on the projection you specify for the map. Therefore you have to define the projection for the layers and the projection for the map. The latter will be used for rendering. Titus From berlin.brown at GMAIL.COM Sun Sep 12 07:09:39 2004 From: berlin.brown at GMAIL.COM (Berlin Brown) Date: Sun, 12 Sep 2004 09:09:39 -0500 Subject: New user - Perl/Php/Windows Questions Message-ID: I am new user working with MapServer, couple of questions. I am working with the linux and windows version. I am going to have to assume that ArcSDE support is not included by default with the windows version. I am testing a linux version and I compiled it just fine ArcSDE-8.3, what is the simplest way to include arcsde support in the windows version? Can I just drop another dll in the lib directory, or do I have to compile all of MapServer? I also included the PDFLib support, downloaded the latest version, I am assuming installed by default with the windows version. Next question, for the windows version, what is the easiest way to use MapScripts if you have limited control over your network. What scripting languages provides the easiest install? PHP/Perl/Python? I think the php looks like the easiest option for IIS? Last question, does mapserver operate in a server mode, for example, can it bind to port and have a start/stop option. Ideally I wish I could run mapserver on once machine and send requests back and forth. From sgillies at FRII.COM Sun Sep 12 07:51:42 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Sun, 12 Sep 2004 08:51:42 -0600 Subject: New user - Perl/Php/Windows Questions In-Reply-To: Message-ID: On Sep 12, 2004, at 8:09 AM, Berlin Brown wrote: > I am new user working with MapServer, couple of questions. I am > working with the linux and windows version. > > I am going to have to assume that ArcSDE support is not included by > default with the windows version. I am testing a linux version and I > compiled it just fine ArcSDE-8.3, what is the simplest way to include > arcsde support in the windows version? > > Can I just drop another dll in the lib directory, or do I have to > compile all of MapServer? > > I also included the PDFLib support, downloaded the latest version, I > am assuming installed by default with the windows version. > > Next question, for the windows version, what is the easiest way to use > MapScripts if you have limited control over your network. What > scripting languages provides the easiest install? PHP/Perl/Python? I > think the php looks like the easiest option for IIS? > Howard Butler is serving up nightly builds of Python mapscript from version 4.3 (CVS) at http://hobu.stat.iastate.edu/mapserver/build_output/9_12_2004 There is an installer with SDE support, and an important bug fix: http://hobu.stat.iastate.edu/mapserver/build_output/9_12_2004/ mapscript-4.3.win32-py2.3-sde.exe After you install Python 2.3.4 downloaded from http://python.org/ftp/python/2.3.4/Python-2.3.4.exe run the windows installers and you are all set. No reboot necessary. PHP might be this easy to install, but easier is just not possible. There are many good resources on the web explaining how to do Python CGI programming under IIS. > Last question, does mapserver operate in a server mode, for example, > can it bind to port and have a start/stop option. Ideally I wish I > could run mapserver on once machine and send requests back and forth. > > No server mode for mapserv, it is a CGI program only. Same for PHP mapscript. However, you are not limited like this by Python. At the past MapServer Users Meeting, I ran a workshop which included a demonstration of a WMS server implemented using Python mapscript and the Twisted web framework that runs directly "out of the box". This app is included in the workshop package http://users.frii.com/sgillies/projects/mum04/mum2smw.tar.gz It doesn't require Apache or IIS, using it's own lightweight HTTP server and we got it up and running on an arbitrary port within the Carleton lab network without any problems. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From berlin.brown at GMAIL.COM Sun Sep 12 08:12:16 2004 From: berlin.brown at GMAIL.COM (Berlin Brown) Date: Sun, 12 Sep 2004 10:12:16 -0500 Subject: New user - Perl/Php/Windows Questions In-Reply-To: <42CA11DE-04CB-11D9-B8AD-000D9329D732@frii.com> Message-ID: On Sun, 12 Sep 2004 08:51:42 -0600, Sean Gillies wrote: > On Sep 12, 2004, at 8:09 AM, Berlin Brown wrote: > > > I also included the PDFLib support, downloaded the latest version, I > However, you are not limited like this by Python. At the past > MapServer Users > Meeting, I ran a workshop which included a demonstration of a WMS server > implemented using Python mapscript and the Twisted web framework that > runs > directly "out of the box". This app is included in the workshop package > > http://users.frii.com/sgillies/projects/mum04/mum2smw.tar.gz > > It doesn't require Apache or IIS, using it's own lightweight HTTP > server and > we got it up and running on an arbitrary port within the Carleton lab > network > without any problems. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies Nice, of course something that I also have been trying to work on, is sending data(for example images(jpegs)) between servers as easily as possible. For example after an image is rendered, stream that image to a server of choice. For those machines that dont have UNC or other network drive support. That is the future, unless somebody has ideas for this too? From margottid at COMUNE.LUGO.RA.IT Mon Sep 13 01:11:30 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 13 Sep 2004 03:11:30 -0500 Subject: How can I force Mapserver to show ONLY the map extent? Message-ID: Hi, I use MapServer 4.01 as CGI, with jBox. When I pan the map (either dragging it with mouse, or using javascript pan buttons), I'm able to go out of the original extent and I see... nothing! I'd like, if possible, that a user couldn't show maps (or portions of maps) if these are beyond the maximum extent of my shape files. Can MapServer - by itself - limit visualization to visible shapes if the request exceed established coordinates? How can I set this "maximum extent" in the .map file? Or should I hardcode the maximum extent in my template file and use javascript to see if I "go out"? I hope the question is enough clear... Thank you, Daniele From stephane.riff at CERENE.FR Mon Sep 13 02:13:18 2004 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Mon, 13 Sep 2004 11:13:18 +0200 Subject: [SPAM] - [UMN_MAPSERVER-USERS] javaMapscript compilation - Sending mail server found on relays.ordb.org In-Reply-To: <41234F41.3080502@cerene.fr> Message-ID: St?phane RIFF wrote: > Hello, > > I try to compile javaMapscript, i followed the instruction on yhe > WikkiMapserver but i can't get it work. > > First, when i want to run make in the "mapscript/java" directory, the > "Makefile" ask for mapscript.i and mapscript_wrap.c > which are in "mapscript" directory... So i copy them in "java" but is it > a good solution ??? > > If we forgot this error :) , ican get mapscipt.jar and libmapscript.so. > But when i try to execute the test program it complain about new_mapObj, > here is the error : > > Exception in threa "main" java.lang.UnsatifiedLinkError: new_mapObj > at edu.umn.gis.mapscript.mapscriptJNI.new_mapObj(Native Method) > at edu.umn.gis.mapscript.mapObj.(mapObj.java:330) > at myFirstMap.main(myFirstMap.java:11) > > Here is the java program : > > import java.io.*; > import edu.umn.gis.mapscript.*; > > public class myFirstMap { > > public static void main(String[] args) throws IOException { > System.loadLibrary("mapscript"); > mapObj map; > imageObj image; > > map=new mapObj("mapfile.map"); > image=mapa.draw(); > image.save("yuhuu.png",map); > } > } > > If someone could help me, i can't find out what is going wrong. > Thanks > After some test i finally get it to work but i have to copy "mapscript.jar" in the "/usr/local/lib" directory where "libmapscript.so" stand. Is it normal, i don't think it is?? Even with setting LD_LIBRARY_PATH to /usr/local/lib And run with java -cp mapscript.jar It doesn't work, i've got an unsatisfiedLinkError: new_mapObj ........ So i'd like to know if someone could show me the command he used to start his javaMapscript program and his config Thanks From guerardsimon at HOTMAIL.COM Mon Sep 13 03:12:32 2004 From: guerardsimon at HOTMAIL.COM (Simon Guerard) Date: Mon, 13 Sep 2004 05:12:32 -0500 Subject: oracle spatial Message-ID: Hello mapserver-users ! I try to draw data from oracle spatial and I've got this message : Mon Sep 13 12:04:00 2004 - msOracleSpatialLayerWhichShapes(): OracleSpatial error. ORA-29902: erreur d'ex?cution de la routine ODCIIndexStart() ORA-13208: erreur interne lors de l'?valuation de l'op?rateur [window SRID does not match layer SRID] ORA-06512: ? "MDSYS.SDO_INDEX_METHOD_9I", ligne 232 ORA-06512: ? ligne 1 . SQL statement: SELECT rownum, GEOLOC FROM TEST1 WHERE SDO_FILTER( TEST1.GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-4,-2,4,2) ),'querytype=window') = 'TRUE' Mon Sep 13 12:04:00 2004 - msDrawMap(): Image handling error. Failed to draw layer named 'test_ora'. If anybody has an idea ? My mapfile : LAYER NAME "test_ora" METADATA "DESCRIPTION" "Test_ora" "RESULT_FIELDS" "OBJECTID" "RESULT_LIBELLE" "id" "LEGENDE" "1" "LEGENDE_COLOR" "00FFFF" "TYPE_LAYER" "ORA" "ACTIVE_LEVEL" "1" END STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "simon/gilm at epcenter" DATA "GEOLOC FROM TEST1" TYPE POINT CLASS TEMPLATE "obj_del.html" NAME "test_ora" TITLE "Niveau mapinfo" END END END #END MAPFILE From Michael.Smith at ERDC.USACE.ARMY.MIL Mon Sep 13 03:59:43 2004 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Mon, 13 Sep 2004 05:59:43 -0500 Subject: oracle spatial Message-ID: If your data has an SRID assigned use something like DATA "GEOLOC FROM TEST1 USING SRID XXXX" where xxxx is the SRID number of your data. Mike Smith -----Original Message----- From: Simon Guerard To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 9/13/2004 6:12 AM Subject: [UMN_MAPSERVER-USERS] oracle spatial Hello mapserver-users ! I try to draw data from oracle spatial and I've got this message : Mon Sep 13 12:04:00 2004 - msOracleSpatialLayerWhichShapes(): OracleSpatial error. ORA-29902: erreur d'ex?cution de la routine ODCIIndexStart() ORA-13208: erreur interne lors de l'?valuation de l'op?rateur [window SRID does not match layer SRID] ORA-06512: ? "MDSYS.SDO_INDEX_METHOD_9I", ligne 232 ORA-06512: ? ligne 1 . SQL statement: SELECT rownum, GEOLOC FROM TEST1 WHERE SDO_FILTER( TEST1.GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-4,-2,4,2) ),'querytype=window') = 'TRUE' Mon Sep 13 12:04:00 2004 - msDrawMap(): Image handling error. Failed to draw layer named 'test_ora'. If anybody has an idea ? My mapfile : LAYER NAME "test_ora" METADATA "DESCRIPTION" "Test_ora" "RESULT_FIELDS" "OBJECTID" "RESULT_LIBELLE" "id" "LEGENDE" "1" "LEGENDE_COLOR" "00FFFF" "TYPE_LAYER" "ORA" "ACTIVE_LEVEL" "1" END STATUS ON CONNECTIONTYPE oraclespatial CONNECTION "simon/gilm at epcenter" DATA "GEOLOC FROM TEST1" TYPE POINT CLASS TEMPLATE "obj_del.html" NAME "test_ora" TITLE "Niveau mapinfo" END END END #END MAPFILE -------------- next part -------------- An HTML attachment was scrubbed... URL: From joanvp at YAHOO.COM Mon Sep 13 04:25:07 2004 From: joanvp at YAHOO.COM (joanvp) Date: Mon, 13 Sep 2004 04:25:07 -0700 Subject: Some questions about OGR DGN file Message-ID: I'd like to display dgn (microstation) files as a base cartograhy via OGR.I've tried it with a file succesfully. But I'd like to change colors for each level (roads, altymetry, rivers, ...) because they'sr ugly and I don't know how... Another question: My dgn cartography is divided in a lot of sheets and I don't know if I need to use a tileindex to show all as one file or I've to join all in one dgn file Sorry, there are two questions in one but I need to know the answer. Thanks and excuse my english _______________________________ Do you Yahoo!? Shop for Back-to-School deals on Yahoo! Shopping. http://shopping.yahoo.com/backtoschool From alberto.cavalli at SINTRANET.IT Mon Sep 13 05:51:59 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Mon, 13 Sep 2004 14:51:59 +0200 Subject: help for phpmapscript Message-ID: Hello all, I implemented the example of mapscript/PHP in and all is working perfect. I tried also to define my own query but nothing happen. Somebody can help me, somebody have more examples? Thanks in advance Alberto From sobomsawin at KASSINI.COM Mon Sep 13 06:01:15 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 13 Sep 2004 09:01:15 -0400 Subject: [UMN_MAPSERVER-USERS] show utm geotiff Message-ID: First, if you want to show your data in UTM, you will have to put a UTM projection in the PROJECTION section of your MAP section (you can put this section just below your EXTENT). Second, you will have to set your EXTENT and your UNITS correctly, according to the projection you defined (units are meters of UTM). Third, -180 -90 180 90 are the extents of the whole world which are not suitable for a UTM projection. If you want to use the UTM projection, you will have to resize your extents to a specific UTM zone which is 6 degrees wide only. Outside of this zone, your data will be inaccurate and deformed. So, if you have a very wide region to represent, it's better to choose an appropriate projection like Lambert Conformal Conic. Playing with projection require a particular know-how. I recommend you to browse the internet to find tutorials or ask a professional... You will find a lot of information on the proj site: http://proj.maptools.org/ Cheers! Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de joerg p Envoy??: 12 septembre 2004 10:10 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] show utm geotiff I found another posting, and I think the problem is my map extent: EXTENT -180 -90 180 90 So it's in latlong format. How do I write this in UTM actuelly? I also use: UNITS dd Is this ok? Joerg -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Sonntag, 12. September 2004 14:40 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] show utm geotiff On Sat, Sep 11, 2004 at 08:14:25PM +0200, joerg p wrote: > When I test it with the reprojected image and the Projection tag, the > image is still shown in latlong. Actuelly I can use whatever in the > Projection definition, but nothing changes... The projection used to render the map doesn't depend on the projection of the layers but on the projection you specify for the map. Therefore you have to define the projection for the layers and the projection for the map. The latter will be used for rendering. Titus --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.752 / Virus Database: 503 - Release Date: 2004-09-03 From guerardsimon at HOTMAIL.COM Mon Sep 13 06:05:36 2004 From: guerardsimon at HOTMAIL.COM (Simon Guerard) Date: Mon, 13 Sep 2004 08:05:36 -0500 Subject: oracle spatial Message-ID: Je viens de rajouter SRID, mais l'erreur reste en place CONNECTIONTYPE oraclespatial CONNECTION "user/mdp at database" DATA "GEOLOC FROM TEST1 USING SRID 8307" Mon Sep 13 15:01:19 2004 - msOracleSpatialLayerWhichShapes(): OracleSpatial error. ORA-29902: erreur d'ex?cution de la routine ODCIIndexStart() ORA-13373: El?ment de type Extent non pris en charge pour les donn?es g?od?siques ORA-06512: ? "MDSYS.SDO_INDEX_METHOD_9I", ligne 232 ORA-06512: ? ligne 1 . SQL statement: SELECT rownum, GEOLOC FROM TEST1 WHERE SDO_FILTER( TEST1.GEOLOC, MDSYS.SDO_GEOMETRY(2003, 8307, NULL,MDSYS.SDO_ELEM_INFO_ARRAY (1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(-4,-2,4,2) ),'querytype=window') = 'TRUE' Mon Sep 13 15:01:19 2004 - msDrawMap(): Image handling error. Failed to draw layer named 'test_ora'. From joelf at GNETCONSULTING.COM Mon Sep 13 08:40:15 2004 From: joelf at GNETCONSULTING.COM (G-Net Consulting) Date: Mon, 13 Sep 2004 11:40:15 -0400 Subject: Map colors in PHP/Mapscript 4 Message-ID: Hello list: Probably a simple mistake on my part, but I cannot get the proper colors to display on my map. I'm wondering what I'm doing wrong. I assume the .map setup would be fine, or do I need to specify this info programmatically in PHP? I want the image to have a white background. The map is the US with Alaska, Hawaii, and Puerto Rico. I want the states to be a light brown, with the county and state boundaries black. Currently, the state outlines are black, the counties are brown, and everything else (all backgrounds) are white. The sensors (last layer) display fine. Any help would be appreciated. Thanks. .MAP File ======================== MAP NAME "GMF" STATUS ON EXTENT -179.133392 17.674692 179.788208 71.398048 SIZE 600 450 SHAPEPATH "./data" SYMBOLSET "./etc/symbols.sym" FONTSET "./etc/fonts.txt" IMAGETYPE PNG IMAGECOLOR 255 255 255 # UNITS METERS # SCALE 165582 # include our web data WEB # MINSCALE 2000000 # MAXSCALE 50000000 IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" END # include our querymap data QUERYMAP STATUS ON COLOR 255 0 0 STYLE HILITE END # add our legend LEGEND STATUS ON # IMAGECOLOR 255 255 255 POSITION LL KEYSIZE 18 12 KEYSPACING 5 5 TEMPLATE "ttt" LABEL TYPE BITMAP SIZE MEDIUM OFFSET 0 0 # OFFSET 0 BUFFER BUFFER 0 MINDISTANCE -1 MINFEATURESIZE -1 COLOR 0 0 89 PARTIALS TRUE FORCE FALSE END END # specify the format to save the image as OUTPUTFORMAT NAME "PNG" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE RGB TRANSPARENT OFF END OUTPUTFORMAT NAME imagemap MIMETYPE "text/html" DRIVER imagemap END # begin our counties layer LAYER NAME "counties" STATUS ON DATA "./counties" TYPE LINE CLASSITEM "COUNTY" SYMBOLSCALE 8 LABELITEM "COUNTY" LABELCACHE ON POSTLABELCACHE TRUE TEMPLATE "counties.html" METADATA "DESCRIPTION" "US Counties " "RESULT_FIELDS" "STATE" END CLASS NAME "Counties" STYLE SYMBOL 8 COLOR 238 207 145 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 238 207 145 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END # begin our states layer LAYER NAME "states" STATUS ON DATA "./states" TYPE LINE CLASSITEM "STATE" FILTERITEM "STATE" SYMBOLSCALE 8 LABELITEM "STATE" LABELCACHE ON POSTLABELCACHE TRUE TEMPLATE "states.html" METADATA "DESCRIPTION" "US States " "RESULT_FIELDS" "STATE" END CLASS NAME "States" TEMPLATE "states.html" STYLE SYMBOL 8 COLOR 0 0 0 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 238 207 145 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END # begin our sensors layer LAYER NAME "sensors" STATUS ON DATA "./sensors" TYPE POINT CLASSITEM "ID" SYMBOLSCALE 10 LABELITEM "ID" LABELCACHE ON POSTLABELCACHE TRUE TEMPLATE "sensors.html" METADATA "DESCRIPTION" "GMF Sensors " "RESULT_FIELDS" "ID" END CLASS NAME "Sensors" TEMPLATE "sensors.html" STYLE SYMBOL 4 COLOR 0 255 0 OUTLINECOLOR 0 0 0 SIZE 3 MINSIZE 3 MAXSIZE 5 END END END END From lfilak at MEDINACO.ORG Mon Sep 13 09:00:09 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 13 Sep 2004 12:00:09 -0400 Subject: New user - Perl/Php/Windows Questions Message-ID: The following message was sent by Berlin Brown on Sun, 12 Sep 2004 09:09:39 -0500. > I am new user working with MapServer, couple of questions. I am > working with the linux and windows version. > > I am going to have to assume that ArcSDE support is not included by > default with the windows version. I am testing a linux version and I > compiled it just fine ArcSDE-8.3, what is the simplest way to include > arcsde support in the windows version? > > Can I just drop another dll in the lib directory, or do I have to > compile all of MapServer? > > I also included the PDFLib support, downloaded the latest version, I > am assuming installed by default with the windows version. > > Next question, for the windows version, what is the easiest way to use > MapScripts if you have limited control over your network. What > scripting languages provides the easiest install? PHP/Perl/Python? I > think the php looks like the easiest option for IIS? > > Last question, does mapserver operate in a server mode, for example, > can it bind to port and have a start/stop option. Ideally I wish I > could run mapserver on once machine and send requests back and forth. Berlin; In an attempt to answer your last two questions: PerlMapScript has not been reported as the easiest way to go under MS-Windows and appears to require Cygwin. Mapserver is intended as a CGI behind an httpd server but by using MapScript you could incorporate Perl modules for httpd and mapscript at the same time and serve your maps that way. It does depend on what you mean by "limited control over your network" as you need root privilege on a machine to create a socket for the httpd to listen on. http://search.cpan.org/~davidnico/HTTP-Server-Singlethreaded-0.05/Singlethreaded.pm http://search.cpan.org/~gaas/libwww-perl-5.800/lib/HTTP/Daemon.pm http://search.cpan.org/~reatmon/Net-HTTPServer-1.0.2/lib/Net/HTTPServer.pm One last thought is, if you have control of one machine but not the main webserver, you could have the admin(s) of the main webserver setup a proxy to pass all mapserver requests to your machine. If you need info on that for Apache I can forward it, for IIS I'm sure someone else on the list has that info. HTH Lowell From David.Fawcett at STATE.MN.US Mon Sep 13 09:10:11 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Mon, 13 Sep 2004 11:10:11 -0500 Subject: WMS Troubleshooting Message-ID: I was troubleshooting a WMS server and WMS client and ran into a few glitches. I couldn't find much relating to these errors in the list archives, so here are the symptoms that I had and the solutions that I came up with. When testing your WMS server using a WMS client, if you get an error message like: msDrawMap(): Image handling error. Failed to draw layer named 'your_layer'. msDrawRaster(): image handling error. Unrecognized or unsupported image format. (followed by other error messages) It is essentially telling you that your WMS client can't draw the WMS layer as requested. This could be a problem with the actual layer on the WMS server or it could just be a problem with the syntax of your request. In my case, it had nothing to do with the image format requested. My next step was go back to my WMS server and pretend for a moment that it was not a WMS server and to hit it through the normal CGI interface like any other MapServer App. The layer that I was interested in displayed just like it should, so I started to think that maybe there was something wrong with my WMS client. The next logical step was to submit my GetMap request directly to the WMS server. I Copied the request URL out of the CONNECTION item for the layer in the WMS client map file and submitted that directly through a browser. In my case, I got the following error: msEvalRegex(): Regular expression error. String(your_path_to_mapfile?version=1.1.1) failed expression test. It turns out that this was telling me that there was a problem with the URL that I was submitting. A stupid, simple typo syntax error was the cause. I had typed a '?' where I should have had a '&'. Make sure that URL of your mapserver executable is followed by a '?' and that all of the subsequent name value pairs are separated by the '&'. A valid URL would be: http://127.0.0.1/cgi-bin/mapserv.exe?map=c:\apache\htdocs\mymap.map&version=1.1.1&service=wms&layers=airphotos The following URL would give you the msEvalRegex() error: (note the second '?' after the map path) http://127.0.0.1/cgi-bin/mapserv.exe?map=c:\apache\htdocs\mymap.map?version=1.1.1&service=wms&layers=airphotos David. David J. Fawcett MN Office of Environmental Assistance From reuven at LEVITT.NET Mon Sep 13 09:54:44 2004 From: reuven at LEVITT.NET (Reuven Levitt) Date: Mon, 13 Sep 2004 09:54:44 -0700 Subject: HELP, mode=map returns text string not image (KNOW BUG??). Message-ID: I am running MS4.2 on WinXP over Tomcat. I am using a very simple Map file that creates a single layer (see below). When mode=browse it works fine, but when I use mode=img it either returns a long string of unicode characters, or it returns the following exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:444) at org.apache.coyote.Response.addHeader(Response.java:374) at org.apache.coyote.tomcat4.CoyoteResponse.addHeader(CoyoteResponse.java:897) at org.apache.coyote.tomcat4.CoyoteResponseFacade.addHeader(CoyoteResponseFacade.java:383) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1844) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:640) Is there a know problem, or am I doing something terribly wrong? Thanks, Reuven. LAYER NAME "credits" STATUS default TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'This is a test of the ability to display text.' END CLASS LABEL TYPE BITMAP COLOR 255 0 0 END END END From ed at TOPOZONE.COM Mon Sep 13 10:04:47 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 13 Sep 2004 13:04:47 -0400 Subject: HELP, mode=map returns text string not image (KNOW BUG??). Message-ID: Reuven - Is your Tomcat environment expecting/able to handle the image type (PNG?) being returned? - 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 Reuven Levitt Sent: Monday, September 13, 2004 12:55 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] HELP, mode=map returns text string not image (KNOW BUG??). I am running MS4.2 on WinXP over Tomcat. I am using a very simple Map file that creates a single layer (see below). When mode=browse it works fine, but when I use mode=img it either returns a long string of unicode characters, or it returns the following exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:444) at org.apache.coyote.Response.addHeader(Response.java:374) at org.apache.coyote.tomcat4.CoyoteResponse.addHeader(CoyoteResponse.java:8 97) at org.apache.coyote.tomcat4.CoyoteResponseFacade.addHeader(CoyoteResponseF acade.java:383) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:18 44) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:640) Is there a know problem, or am I doing something terribly wrong? Thanks, Reuven. LAYER NAME "credits" STATUS default TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'This is a test of the ability to display text.' END CLASS LABEL TYPE BITMAP COLOR 255 0 0 END END END From reuven at LEVITT.NET Mon Sep 13 11:19:01 2004 From: reuven at LEVITT.NET (Reuven Levitt) Date: Mon, 13 Sep 2004 11:19:01 -0700 Subject: HELP, mode=map returns text string not image (KNOW BUG??). In-Reply-To: Message-ID: I actually did mean "mode=map". That is what i used, "mode=img" was a typo > >I am running MS4.2 on WinXP over Tomcat. > > > >I am using a very simple Map file that creates a > >single layer (see below). > > > >When mode=browse it works fine, but when I use > >mode=img it either returns a long string of unicode > >characters, or it returns the following exception: > > > >java.lang.StringIndexOutOfBoundsException: String > >index out of range: 0 > > at > java.lang.String.charAt(String.java:444) > > at > >org.apache.coyote.Response.addHeader(Response.java:374) > > at > >org.apache.coyote.tomcat4.CoyoteResponse.addHeader(CoyoteResponse.java:897) > > at > >org.apache.coyote.tomcat4.CoyoteResponseFacade.addHeader(CoyoteResponseFacade.java:383) > > at > >org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1844) > > at > >org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:640) > > > > > >Is there a know problem, or am I doing something > >terribly wrong? > > > >Thanks, > >Reuven. > > > > > > LAYER > > NAME "credits" > > STATUS default > > TRANSFORM FALSE > > TYPE ANNOTATION > > FEATURE > > POINTS > > 200 150 > > END > > TEXT 'This is a > test of the ability to > >display > >text.' > > END > > CLASS > > LABEL > > TYPE > BITMAP > > COLOR 255 > 0 0 > > END > > END > > END > > _________________________________________________________________ > MSN 8 helps eliminate e-mail viruses. Get 2 months > FREE*. > http://join.msn.com/?page=features/virus > > From steve.lime at DNR.STATE.MN.US Mon Sep 13 12:44:21 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 13 Sep 2004 14:44:21 -0500 Subject: Itemquery and RegEx Message-ID: This one blows up for a couple of reasons: 1) regular expressions are to be enclosed in //'s 2) the syntax is wrong, the ()'s are tricking the expression parser into treating (W|w) as a logical expression, a malformed logical expression at that (hence the parse errors) Try qstring=/[Ww]ashington/ and see if that works. Steve >>> Daniele Margotti 9/9/2004 5:04:08 AM >>> Hi list, when I use "mode=itemnquery" (or "mode=itemquery") and I put a regular expression as search string (for example, "qstring=(W|w)ashington") I get this error: msQueryByAttributes(): Search returned no results. No matching record(s) found. msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error msyyparse(): Expression parser error. parse error ... ... A "normal" search string (e.g., "qstring=Washington") works well: record is found, and query result is shown. I use MapServer as CGI. This is 'mapserv -v' output: MapServer version 4.0.1 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF 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 What's wrong? Daniele P.S.: why can't I send messages through my e-mail client? I have to use the web interface... From lambangnugroho at TELKOM.NET Mon Sep 13 12:46:07 2004 From: lambangnugroho at TELKOM.NET (Lambang Nugroho) Date: Mon, 13 Sep 2004 14:46:07 -0500 Subject: php/mapscript installation error Message-ID: Hi All! I've been install mapserver-4.0.2 in FreeBSD 5.2.1, it's end up with this error message: cc -fPIC -O -pipe -mcpu=pentiumpro -Wall -DCOMPILE_DL=1 -DPHP4 -c php_mapscript_util.c In file included from php_mapscript_util.c:101: php_mapscript_util.h:58:17: php.h: No such file or directory php_mapscript_util.h:59:25: php_globals.h: No such file or directory In file included from php_mapscript_util.c:101: php_mapscript_util.h:118: error: syntax error before '*' token php_mapscript_util.h:133: error: syntax error before '*' token php_mapscript_util.h:137: error: syntax error before '*' token php_mapscript_util.h:140: error: syntax error before '*' token php_mapscript_util.h:143: error: syntax error before '*' token php_mapscript_util.h:146: error: syntax error before '*' token php_mapscript_util.h:148: error: syntax error before '*' token php_mapscript_util.h:150: error: syntax error before '*' token php_mapscript_util.h:152: error: syntax error before '*' token php_mapscript_util.h:154: error: syntax error before '*' token php_mapscript_util.h:156: error: syntax error before '*' token php_mapscript_util.h:158: error: syntax error before '*' token php_mapscript_util.h:160: error: syntax error before '*' token php_mapscript_util.h:163: error: syntax error before '*' token php_mapscript_util.c:102:22: maperror.h: No such file or directory php_mapscript_util.c: In function `_phpms_report_mapserver_error': php_mapscript_util.c:113: error: `errorObj' undeclared (first use in this function) php_mapscript_util.c:113: error: (Each undeclared identifier is reported only once php_mapscript_util.c:113: error: for each function it appears in.) php_mapscript_util.c:113: error: `ms_error' undeclared (first use in this function) php_mapscript_util.c:115: warning: implicit declaration of function `msGetErrorObj' php_mapscript_util.c:117: error: `MS_NOERR' undeclared (first use in this function) php_mapscript_util.c:119: warning: implicit declaration of function `php3_error' php_mapscript_util.c: At top level: php_mapscript_util.c:132: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_handle2': php_mapscript_util.c:137: error: `pval' undeclared (first use in this function) php_mapscript_util.c:137: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:138: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:140: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:140: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:142: error: `E_ERROR' undeclared (first use in this function) php_mapscript_util.c:145: warning: implicit declaration of function `zend_hash_find' php_mapscript_util.c:147: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:156: warning: implicit declaration of function `php3_list_find' php_mapscript_util.c:158: error: `handle_type1' undeclared (first use in this function) php_mapscript_util.c:158: error: `handle_type2' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:174: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_handle': php_mapscript_util.c:177: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:177: error: `handle_type' undeclared (first use in this function) php_mapscript_util.c:177: error: `list' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:184: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_handle2': php_mapscript_util.c:188: error: `pval' undeclared (first use in this function) php_mapscript_util.c:188: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:189: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:192: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:192: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:194: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:197: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:198: warning: implicit declaration of function `strlen' php_mapscript_util.c:199: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:206: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c:208: error: `handle_type1' undeclared (first use in this function) php_mapscript_util.c:208: error: `handle_type2' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:222: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_handle': php_mapscript_util.c:226: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:226: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:227: error: `handle_type' undeclared (first use in this function) php_mapscript_util.c:228: error: `list' undeclared (first use in this function) php_mapscript_util.c:228: error: `err_type' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:234: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_string': php_mapscript_util.c:237: error: `pval' undeclared (first use in this function) php_mapscript_util.c:237: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:239: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:239: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:241: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:245: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:246: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:253: warning: implicit declaration of function `convert_to_string' php_mapscript_util.c: At top level: php_mapscript_util.c:260: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_long': php_mapscript_util.c:263: error: `pval' undeclared (first use in this function) php_mapscript_util.c:263: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:265: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:265: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:267: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:270: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:272: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:279: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c:286: warning: implicit declaration of function `convert_to_long' php_mapscript_util.c: At top level: php_mapscript_util.c:293: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_double': php_mapscript_util.c:296: error: `pval' undeclared (first use in this function) php_mapscript_util.c:296: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:298: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:298: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:300: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:303: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:305: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:312: warning: implicit declaration of function `convert_to_double' php_mapscript_util.c: At top level: php_mapscript_util.c:319: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_fetch_property_resource': php_mapscript_util.c:322: error: `pval' undeclared (first use in this function) php_mapscript_util.c:322: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:324: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:324: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:326: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:329: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:331: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:338: error: `IS_RESOURCE' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:355: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_set_property_string': php_mapscript_util.c:358: error: `pval' undeclared (first use in this function) php_mapscript_util.c:358: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:360: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:360: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:362: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:365: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:367: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:374: warning: implicit declaration of function `SEPARATE_ZVAL' php_mapscript_util.c:375: warning: implicit declaration of function `zval_dtor' php_mapscript_util.c:376: warning: implicit declaration of function `ZVAL_STRING' php_mapscript_util.c:376: error: `szNewValue' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:384: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_set_property_long': php_mapscript_util.c:387: error: `pval' undeclared (first use in this function) php_mapscript_util.c:387: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:389: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:389: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:391: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:394: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:396: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:405: warning: implicit declaration of function `ZVAL_LONG' php_mapscript_util.c:405: error: `lNewValue' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:413: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_set_property_double': php_mapscript_util.c:416: error: `pval' undeclared (first use in this function) php_mapscript_util.c:416: error: `phandle' undeclared (first use in this function) php_mapscript_util.c:418: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:418: error: `IS_OBJECT' undeclared (first use in this function) php_mapscript_util.c:420: error: `err_type' undeclared (first use in this function) php_mapscript_util.c:423: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:425: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:434: warning: implicit declaration of function `ZVAL_DOUBLE' php_mapscript_util.c:434: error: `dNewValue' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:442: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_add_property_object': php_mapscript_util.c:446: warning: implicit declaration of function `add_property_zval' php_mapscript_util.c:446: error: `pObj' undeclared (first use in this function) php_mapscript_util.c:446: error: `property_name' undeclared (first use in this function) php_mapscript_util.c:446: error: `pObjToAdd' undeclared (first use in this function) php_mapscript_util.c:446: error: `FAILURE' undeclared (first use in this function) php_mapscript_util.c:448: error: `err_type' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:465: error: syntax error before '*' token php_mapscript_util.c: In function `_phpms_object_init': php_mapscript_util.c:473: error: `zend_class_entry' undeclared (first use in this function) php_mapscript_util.c:473: error: `new_class_entry_ptr' undeclared (first use in this function) php_mapscript_util.c:474: error: syntax error before ')' token php_mapscript_util.c:476: warning: implicit declaration of function `object_init_ex' php_mapscript_util.c:476: error: `return_value' undeclared (first use in this function) php_mapscript_util.c:477: warning: implicit declaration of function `add_property_resource' php_mapscript_util.c:477: error: `handle_id' undeclared (first use in this function) php_mapscript_util.c: At top level: php_mapscript_util.c:499: error: syntax error before '*' token php_mapscript_util.c: In function `_php_extract_associative_array': php_mapscript_util.c:505: error: `zval' undeclared (first use in this function) php_mapscript_util.c:505: error: `value' undeclared (first use in this function) php_mapscript_util.c:506: error: `NULL' undeclared (first use in this function) php_mapscript_util.c:507: error: syntax error before "num_key" php_mapscript_util.c:510: warning: implicit declaration of function `zend_hash_internal_pointer_reset' php_mapscript_util.c:510: error: `php' undeclared (first use in this function) php_mapscript_util.c:511: warning: implicit declaration of function `zend_hash_get_current_data' php_mapscript_util.c:511: error: `SUCCESS' undeclared (first use in this function) php_mapscript_util.c:512: warning: implicit declaration of function `zend_hash_move_forward' php_mapscript_util.c:515: warning: implicit declaration of function `convert_to_string_ex' php_mapscript_util.c:517: warning: implicit declaration of function `zend_hash_get_current_key' php_mapscript_util.c:517: error: `num_key' undeclared (first use in this function) php_mapscript_util.c:519: error: `HASH_KEY_IS_STRING' undeclared (first use in this function) php_mapscript_util.c:520: error: `array' undeclared (first use in this function) php_mapscript_util.c:521: warning: implicit declaration of function `Z_STRVAL_PP' Error code 1 Stop in /usr/ports/graphics/mapserver/work/mapserver-4.0.2/mapscript/php3. Error code 1 Stop in /usr/ports/graphics/mapserver/work/mapserver-4.0.2. Error code 1 Stop in /usr/ports/graphics/mapserver. Error code 1 Stop in /usr/ports/graphics/mapserver. Please Help Me! Thanx Lambang Nugroho lambangnugroho at telkom.net From jburnett at E-MASI.COM Mon Sep 13 15:26:34 2004 From: jburnett at E-MASI.COM (Jim Burnett) Date: Mon, 13 Sep 2004 15:26:34 -0700 Subject: running mapserv.exe Message-ID: Hey, I need to be able to run mapserv.exe from the command line. Can I do this without installing a webserver? Basically I want to use it from an application, and not from the web. -Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Mon Sep 13 18:33:37 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Mon, 13 Sep 2004 19:33:37 -0600 Subject: running mapserv.exe In-Reply-To: <010a01c499e0$ba433ff0$e301a8c0@BURNETTXP> Message-ID: Yeah, use something like: mapserv.exe QUERY_STRING=map=tc/tc.map Also Google "site:gis.umn.edu query_string" for more discussion Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com ----- Original Message ----- From: Jim Burnett Date: Mon, 13 Sep 2004 15:26:34 -0700 Subject: [UMN_MAPSERVER-USERS] running mapserv.exe To: mapserver-users at lists.umn.edu Hey, I need to be able to run mapserv.exe from the command line. Can I do this without installing a webserver? Basically I want to use it from an application, and not from the web. -Jim From ttsai at POBOX.COM Tue Sep 14 02:07:13 2004 From: ttsai at POBOX.COM (Tim Tsai) Date: Tue, 14 Sep 2004 04:07:13 -0500 Subject: postGIS problems Message-ID: I installed mapserver/postgis a few days ago but I can't seem to get a simple example working. Is somebody willing to send me an example postGIS map file as well as an SQL dump of their test database? I just need a working demo - even if all it does is draw one line on the screen. This is the mapfile I've used so far. I believe the extent is right judging from the SQL result below. All I get is just a gray background on the PNG - no line segments at all. I've also tried TYPE LINES and same problem. I have verified that database connection is successful and queries were made. Thanks, Tim -- extent query -- ogc=# select extent(centerline) from road_segments; extent ---------------------- BOX3D(0 0 0,84 48 0) (1 row) -- mapserver.log -- Tue Sep 14 03:55:16 2004,50497,69.244.27.248,DEMO,3,-0.140300 -4.060000 84.140300 52.060000,-1.000000 -1.000000,DEMO ,normal execution -- mapfile -- MAP NAME DEMO SIZE 600 400 IMAGETYPE PNG IMAGECOLOR 240 240 240 EXTENT 0 0 84 48 WEB LOG /tmp/mapserver.log END DEBUG ON LAYER CONNECTIONTYPE postgis NAME "DEMO" # Connect to a remote spatial database CONNECTION "user=user dbname=db host=127.0.0.1" DATA "centerline from road_segments" TYPE POLYGON STATUS DEFAULT END END From unicoletti at PROMETEO.IT Tue Sep 14 03:07:38 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 14 Sep 2004 05:07:38 -0500 Subject: javaMapscript compilation Message-ID: The Java interpreter needs to find (and load) the shared library that contains the C code you are invoking through Java objects. To do this you have two options: 1) put mapscript.so in a standard location (see /etc/ld.so.conf for you systema defaults) (you might have to run ldconfig, but that's usually not necessary) 2) set the env variable LD_LIBRARY_PATH to the directory containing mapscript.so. You can do that from your bash shell typing: export LD_LIBRARY_PATH=/path/to/mapscript.so HTH, Umberto From stagiaire at GI-LEMANS.COM Tue Sep 14 03:33:14 2004 From: stagiaire at GI-LEMANS.COM (Stagiaire GILEMANS) Date: Tue, 14 Sep 2004 12:33:14 +0200 Subject: Conversion shape - oracle spatial Message-ID: Hye List ! I try to convert shape file with ogr2ogr.exe but when I open it in oracle, there's nothing in the coordinate system. If I want to enter it by hand, oracle don't want and erase what I write. Is anybody an idea to convert shape file into oracle spatial and print it with mapserver ? Thanks ! Simon -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapserver at GEOWORLD.DE Tue Sep 14 06:08:47 2004 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 14 Sep 2004 15:08:47 +0200 Subject: SLD Filters Message-ID: Hi List, i am fighting with the SLD filter support of mapserver (4.2.3) I have the following sld-file which should highlight all records where ID >= 33905. All remaining record should be displayed in red. gemeinde xxx ID 33905 #FFFF00 #FF0000 What i got is the attached file 'ms_sld.png'. When i did the same query (ID >= 33905) with ArcExplorer ('ae_sld.png') i got reasonable results while the mapserver results are wrong. When i use the unique field ID with ID=33905 (PropertyIsEqualTo) i got the whole map highlighted not only one polygon. What i am doing wrong? Any help on this would be greatly appreciated Nicol -------------- next part -------------- A non-text attachment was scrubbed... Name: ae_sld.png Type: image/png Size: 18746 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ms_sld.png Type: image/png Size: 5477 bytes Desc: not available URL: From lfilak at MEDINACO.ORG Tue Sep 14 05:14:15 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Tue, 14 Sep 2004 08:14:15 -0400 Subject: running mapserv.exe Message-ID: The following message was sent by Jim Burnett on Mon, 13 Sep 2004 15:26:34 -0700. > Hey, I need to be able to run mapserv.exe from the command line. Can I > do this without installing a webserver? Basically I want to use it from > an application, and not from the web. > > -Jim > Jim; There are (at least) a couple of options: 1) http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0306/msg00566.html 2) Use MapScript in a scripting language which will allow you to integrate the MapServer capabilities as a new module. Lowell From anja.berkhout at ARIS.NL Tue Sep 14 05:06:01 2004 From: anja.berkhout at ARIS.NL (Anja Berkhout) Date: Tue, 14 Sep 2004 14:06:01 +0200 Subject: Spatial filter on point shapefile Message-ID: I used the executeWFSGetFeature() function to create a GML-file with the coordinates and attributes of all polygons from a shapefile. My questions are: - is it possible to use a query during executeWFSGetFeature to only select a few or one polygons from my shapefile? ( for example "[code] > 10" or "[NAME] = 'something'" ) - how can I use the resulting coordinates for one polygon from the GML-file to select points (from another shapefile) within this polygon? To show these selected points I make a copy of my point layer and I want filter only the selected points. I thought about some spatial filter but can't figure out which request to use. Regards, Anja Berkhout -- ______________________________________________________________ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Hooghiemstraplein 126 Tel. +31-(0)30-2769180 3514 AZ UTRECHT Fax. +31-(0)30-2733578 The Netherlands Email Anja.Berkhout at aris.nl Http://www.aris.nl _____________________________________________________________ From solo6259 at YAHOO.COM Tue Sep 14 05:26:00 2004 From: solo6259 at YAHOO.COM (Solomon Maina Thuo) Date: Tue, 14 Sep 2004 07:26:00 -0500 Subject: PHP mapscript and PHP's regex Message-ID: I installed PHP 4.3.8 as a DSO ok.now i come to compiling mapserver 4.2.2 and i get the following output after including the --with-php switch to the configure script. checking for location of config.h or php_config.h... /usr/local/include/php/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... yes configure: error: !!! The current version of PHP MapScript has some problems with !!! !!! PHP4's bundled regex. Until we figure the solution to the !!! !!! problem, the workaround is to compile PHP4 with the system regex !!! !!! Please re-configure and re-compile PHP4 using --with-regex=system !!! !!! and then re-configure and re-compile MapServer. !!! !!! Note that PHP's --with-regex=system works only when PHP is !!! !!! is configured as a CGI (that is without the --with-apxs and !!! !!! --with-httpd options). So if you configured your PHP using !!! !!! --with-regex=system and still get this error then make sure you !!! !!! configured PHP as a CGI. now i got the workaround solution for keeping my DSO so that i run only PHPMapScript scripts as a CGI and i run others as PHP module. but how do i avoid this error and i don't want to compile php as a CGI module? From anja.berkhout at ARIS.NL Tue Sep 14 06:37:56 2004 From: anja.berkhout at ARIS.NL (Anja Berkhout) Date: Tue, 14 Sep 2004 08:37:56 -0500 Subject: SLD Filters Message-ID: I had the same problem, but it worked when I used instead of . From mapserver at GEOWORLD.DE Tue Sep 14 08:54:03 2004 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 14 Sep 2004 17:54:03 +0200 Subject: SLD Filters In-Reply-To: Message-ID: Hi Anja, thank you for your mail. apart from the fact that is not the same as your solution did not work for me. Any other hints? Nicol Am Di, den 14.09.2004 schrieb Anja Berkhout um 15:37: > I had the same problem, but it worked when I used > instead of . From pdrake at GMAIL.COM Tue Sep 14 06:45:02 2004 From: pdrake at GMAIL.COM (Peter Drake) Date: Tue, 14 Sep 2004 09:45:02 -0400 Subject: mygis segfault Message-ID: I am getting a segfault whenever I try to query a MySQL layer. mapserver will display these layers fine but queries end up in a segfault. I don't know enough about programming to find a solution to find the problem on my own. Can someone point me in the right direction? Thanks! Here is the command I am executing through gdb: ./mapserv QUERY_STRING="map=/home/virtual/datashed.org/var/www/html/63data/sri.map&img.x=267&img.y=184&imgext=-175215.839633+222601.687635+-136511.908365+250694.301873&mode=nquery&zoomdir=&program=/cgi-bin/maps&map_web_imagepath=/home/virtual/datashed.org/var/www/html/gis/&map_web_imageurl=gis/&map_imagetype=jpeg80&qlayer=Projects+in+Progress" The results returned (it fills out the query header template but then segfaults before filling out the query template): Content-type: text/html -79.863167 41.126484 -156426.840272 237771.699324 Program received signal SIGSEGV, Segmentation fault. 0xb7115d33 in strlen () from /lib/tls/libc.so.6 The backtrace from gdb: #0 0xb7115d33 in strlen () from /lib/tls/libc.so.6 #1 0xb7115a75 in strdup () from /lib/tls/libc.so.6 #2 0x08079723 in msMYGISLayerOpen (layer=0x8120874) at mapmygis.c:318 #3 0x0807bca6 in msLayerOpen (layer=0x8120874) at maplayer.c:150 #4 0x080595dc in msReturnQuery (msObj=0x8105e08, pszMimeType=0x8127938 "text/html", papszBuffer=0x0) at maptemplate.c:2730 #5 0x0805313f in msReturnTemplateQuery (msObj=0x8105e08, pszMimeType=0x8127938 "text/html", papszBuffer=0x0) at maptemplate.c:212 #6 0x0805074b in main (argc=-1227358200, argv=0xbfffe554) at mapserv.c:1338 From bluecarto at FREE.FR Tue Sep 14 08:55:45 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Tue, 14 Sep 2004 17:55:45 +0200 Subject: 1-bit tiff rendering Message-ID: Hi list, I do have B&W tif's (1-bit coded), and when I want to get those rendered by mapserver, I obtain bad restitution within some zoomscales. The map image is also B&W. I would prefer it to be in greyscale. Can I easily do this with mapserver. To have this working, I transformed my tiff manually with photoshop to have an 8-bit greyscale image. Can I do this easily with the libtiff tools ? And then I applied gdaladdo to get overviews. This last operation seems to be necessary to have a good rendering. Did some of you have similar problems and got it work ? Pierre GIRAUD From assefa at DMSOLUTIONS.CA Tue Sep 14 09:08:06 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 14 Sep 2004 12:08:06 -0400 Subject: SLD Filters In-Reply-To: <1095167327.850.35.camel@emil.intranet.gdv.com> Message-ID: Hi There, I have made a couple of tests using the tests data here (url is at http://www2.dmsolutions.ca/cgi-bin/mswms_world?SERVICE=WMS&VeRsIoN=1.1.1&Request=GetMap&LAYERS=WorldGen&SLD=http://www2.dmsolutions.ca/msapps/world_testdata/tests/sld_tests/sld_polygon_one_filter_and_else2.xml) The sld has a same kind of structure as yours (polygon symbolizer with one filter and one else filer) and seems to apply the filters properly. If you can provide me with sample data and sld that does not work, I can check it more specifically. Later, Nicol Hermann wrote: > Hi List, > > i am fighting with the SLD filter support of mapserver (4.2.3) > I have the following sld-file which should highlight all records where > ID >= 33905. All remaining record should be displayed in red. > > > > gemeinde > > xxx > > > > > ID > 33905 > > > > > #FFFF00 > > > > > > > > #FF0000 > > > > > > > > > What i got is the attached file 'ms_sld.png'. When i did the same query > (ID >= 33905) with ArcExplorer ('ae_sld.png') i got reasonable results > while the mapserver results are wrong. > > When i use the unique field ID with ID=33905 (PropertyIsEqualTo) i got > the whole map highlighted not only one polygon. > > What i am doing wrong? > Any help on this would be greatly appreciated > Nicol > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ed at TOPOZONE.COM Tue Sep 14 09:40:49 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 14 Sep 2004 12:40:49 -0400 Subject: 1-bit tiff rendering Message-ID: Pierre - MapServer optimizes for fast image rendering, which means quick subsampling of pixels from an image. This is a very fast way to produce the output map, but does not produce the best image. Using gdaladdo or a similar mechanism to create different source resolutions is a very good idea, because it gives you the ability to produce higher-quality intermediate resolutions. They will still be subsampled if necessary, but they will be closer to the "original" and look better. In some cases you can control the rendering scales so the only output resolutions permitted are those that are identical to ones you have overviews for. - 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 GIRAUD Pierre Sent: Tuesday, September 14, 2004 11:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] 1-bit tiff rendering Hi list, I do have B&W tif's (1-bit coded), and when I want to get those rendered by mapserver, I obtain bad restitution within some zoomscales. The map image is also B&W. I would prefer it to be in greyscale. Can I easily do this with mapserver. To have this working, I transformed my tiff manually with photoshop to have an 8-bit greyscale image. Can I do this easily with the libtiff tools ? And then I applied gdaladdo to get overviews. This last operation seems to be necessary to have a good rendering. Did some of you have similar problems and got it work ? Pierre GIRAUD From warmerdam at POBOX.COM Tue Sep 14 09:49:31 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 14 Sep 2004 12:49:31 -0400 Subject: 1-bit tiff rendering In-Reply-To: <41471481.1070000@free.fr> Message-ID: GIRAUD Pierre wrote: > Hi list, > > I do have B&W tif's (1-bit coded), and when I want to get those rendered > by mapserver, I obtain bad restitution within some zoomscales. The map > image is also B&W. I would prefer it to be in greyscale. > Can I easily do this with mapserver. > > To have this working, I transformed my tiff manually with photoshop to > have an 8-bit greyscale image. Can I do this easily with the libtiff > tools ? > And then I applied gdaladdo to get overviews. This last operation seems > to be necessary to have a good rendering. > > Did some of you have similar problems and got it work ? Pierre, If you want to get reasonable greyscale values from a BW 1bit image as you zoom out it is necessary to build overviews, and to ensure you use the "-r average" switch to average values rather than the default nearest neighbour sampling. I believe that 1 bit TIFF files are represented as pseudocolored images with 2 color tables entries. To get a good greyscale result you will also likely need to recode this to an 8bit image with 0 for black and 255 for white. Thus the averaging for overviews will give intermediate values. If you just do the averaging on the "pseudocolored" 1 bit file you won't get this effect. Back to the original file, the reason it generally doesn't look good at overview zoom levels is because mapserver internally uses nearest neighbour sampling unless overviews are pre-built via GDAL. The nearest neighbour sampling will pick one pixel in the region mapped to an output pixel as the value. For continuous tone images that vary fairly smoothly this is generally ok. But for 1bit linework scans such as some BW map scans, you will get spotty representation of linework in the overviews and various aliasing effect could result in some horizontal or vertical lines essentially disappearing at some zoom levels. While, a bit of a hack, you can use GDAL to do all the appropriate conversions if you have the python support working smoothly. From the commandline you would do: # Step 1: convert paletted image to 24bit RGB. pct2rgb.py input_1bit.tif 24bit.tif # Step 2: extract one band of the RGB image as greyscale image gdal_translate -b 1 24bit.tif 8bit.tif # Step 3: Build overviews gdaladdo -r average 8bit.tif 2 4 8 16 32 64 # Step 4: Use the 8bit.tif in your mapfile. ... This process should preserve the georeferencing (if available) from the original file. You might also want to apply compression to file in the step where the greyscale image is extracted if space is an issue, and also produce the greyscale image as a tiled image for more efficient access from mapserver. To do this alter step 2 to be: gdal_translate -b 1 -co TILED=YES -co COMPRESS=PACKBITS 24bit.tif 8bit.tif I hope this helps a bit. Note, you can convert the original file to 24bit with libtiff tools (the tiff2rgba program) but I don't think there is a tool to extract a single band, and there is no overview building tool normally built with libtiff. You might want to write a message to the libtiff maintainer telling him that his library and tools suck, and that GDAL rocks. PS. That last part is a joke ... I am the maintainer/co-maintainer for both. 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 ttsai at POBOX.COM Tue Sep 14 10:15:37 2004 From: ttsai at POBOX.COM (Tim) Date: Tue, 14 Sep 2004 12:15:37 -0500 Subject: postGIS problems In-Reply-To: Message-ID: Nope just tried it. Thanks, Tim On Tue, Sep 14, 2004 at 06:41:04AM -0700, Paul Ramsey wrote: > Does adding a class object make any difference? > > >MAP > > NAME DEMO > > SIZE 600 400 > > IMAGETYPE PNG > > IMAGECOLOR 240 240 240 > > EXTENT 0 0 84 48 > > WEB > > LOG /tmp/mapserver.log > > END > > DEBUG ON > > LAYER > > CONNECTIONTYPE postgis > > NAME "DEMO" > > # Connect to a remote spatial database > > CONNECTION "user=user dbname=db host=127.0.0.1" > > DATA "centerline from road_segments" > > TYPE POLYGON > > STATUS DEFAULT > CLASS > COLOR 0 0 0 > END > > END > >END From ttsai at POBOX.COM Tue Sep 14 10:39:41 2004 From: ttsai at POBOX.COM (Tim) Date: Tue, 14 Sep 2004 12:39:41 -0500 Subject: postGIS problems In-Reply-To: <20040914171537.GC10180@sleepy.wojomedia.com> Message-ID: Also I have verified that the database queries are getting sent to PostgreSQL. I am going to try gdb next but I am really hoping for a simpler answer here. Very frustrating! Thanks, Tim On Tue, Sep 14, 2004 at 12:15:37PM -0500, Tim wrote: > Nope just tried it. > > Thanks, > > Tim > > On Tue, Sep 14, 2004 at 06:41:04AM -0700, Paul Ramsey wrote: > > Does adding a class object make any difference? > > > > >MAP > > > NAME DEMO > > > SIZE 600 400 > > > IMAGETYPE PNG > > > IMAGECOLOR 240 240 240 > > > EXTENT 0 0 84 48 > > > WEB > > > LOG /tmp/mapserver.log > > > END > > > DEBUG ON > > > LAYER > > > CONNECTIONTYPE postgis > > > NAME "DEMO" > > > # Connect to a remote spatial database > > > CONNECTION "user=user dbname=db host=127.0.0.1" > > > DATA "centerline from road_segments" > > > TYPE POLYGON > > > STATUS DEFAULT > > CLASS > > COLOR 0 0 0 > > END > > > END > > >END From kristjan at TARKVARASTUUDIO.EE Tue Sep 14 13:18:23 2004 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Tue, 14 Sep 2004 23:18:23 +0300 Subject: 1-bit tiff rendering In-Reply-To: <2A6FDD75AE04BE4A9E8C918D3C09FB0721CF18@ptolemy.topozone.com> Message-ID: The best quality can be produced when you draw the raster map with Mapserver in there original resolution and then resample it with the help of some third party graphical files conversion software. Kristjan >Pierre - > >MapServer optimizes for fast image rendering, which means quick >subsampling of pixels from an image. This is a very fast way to produce >the output map, but does not produce the best image. Using gdaladdo or >a similar mechanism to create different source resolutions is a very >good idea, because it gives you the ability to produce higher-quality >intermediate resolutions. They will still be subsampled if necessary, >but they will be closer to the "original" and look better. In some >cases you can control the rendering scales so the only output >resolutions permitted are those that are identical to ones you have >overviews for. > > - 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 GIRAUD Pierre >Sent: Tuesday, September 14, 2004 11:56 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] 1-bit tiff rendering > > Hi list, > >I do have B&W tif's (1-bit coded), and when I want to get those rendered >by mapserver, I obtain bad restitution within some zoomscales. The map >image is also B&W. I would prefer it to be in greyscale. >Can I easily do this with mapserver. > >To have this working, I transformed my tiff manually with photoshop to >have an 8-bit greyscale image. Can I do this easily with the libtiff >tools ? >And then I applied gdaladdo to get overviews. This last operation seems >to be necessary to have a good rendering. > >Did some of you have similar problems and got it work ? > >Pierre GIRAUD > > From thomas at REDMILENIO.COM Tue Sep 14 13:29:30 2004 From: thomas at REDMILENIO.COM (Thomas Shaw) Date: Tue, 14 Sep 2004 16:29:30 -0400 Subject: Extracting data froma a shp Message-ID: Hello, I hope that you can help me with this: Actually I have mapserver and I'm creating a map with 2 layers, and I'm generating another layer with mapscript. That layer is generated by reading a data base that has latitude and longitud fields. So I read a position (lat,lon) and generate the layer. Until here I have no problem, the generated layer is appearing correctly in the map as a 3rd layer, but the thing I'm trying to do is to extract from the shape file that is in the other 2 layers, information that can help me to know how far is the new point in the generated layer from the nearest information point in the shp that is in the other 2 layers. I'm using this map for car localization, so, in some way I have to make an information table with the telling where the unit is referencing it with the other 2 layers in the map. Is some solution for my problem? Greetings Thank you ----------- Thomas Shaw From colwell at GEOG.UMN.EDU Tue Sep 14 14:02:35 2004 From: colwell at GEOG.UMN.EDU (Rebecca Colwell) Date: Tue, 14 Sep 2004 16:02:35 -0500 Subject: Javascript, queries, and frames In-Reply-To: Message-ID: Hi all, I'm trying to query my map and have the resulting information appear in a frame in the right hand side column of a table. I've been reading past listserv responses for a week and haven't found the answer I'm looking for. I've provided the code I think corresponds with my problem below. I don't know a few things that I would love to get some feedback on. 1.) Does the javascript I have look right? 2.) What code do I need to have in my "Map Mode" menu (see below) to get the query results to send to a frame in the main map html? 3.) Can a frame exist in an html document as a stand alone frame? For instance, I would like the query info to display in the white space below my legend. The legend exists within a table column and I've placed the frameset code below the legend. If you see any other glaring errors in my logic, please feel free to point it out. Thank you, ~Becky For the javascript code, I have the following: //Checks Target function CheckTarget(){ if (document.mapserv.mode.value == "query"){ document.mapserv.target="QueryResults";} else{ document.mapserv.target=""; } } At the beginning of my form I have:
In my Map Mode dropdown menu I have: Map Mode:
My frame code: From brant at MUDLABS.COM Tue Sep 14 15:47:30 2004 From: brant at MUDLABS.COM (Brant Anderson) Date: Tue, 14 Sep 2004 17:47:30 -0500 Subject: Javascript, queries, and frames In-Reply-To: <41475C6B.10300@geog.umn.edu> Message-ID: Hi Rebecca, I'll try to help you the best I can... But no promises. ;-) I haven't worked with targeted forms at all, but in theory, your code looks pretty good. As far as your "frame code" goes, I think you need two frames in the frameset. For example: You'll most likely need to modify my "persay" frameset page to make the page look how you want it. The main point is that you will need two frames in the frameset. Could you give an example of how the page is acting with your current code? Have you taken a look at the Itasca demo? It uses frames, but it's done in a different way using JavaScript to pull the information from MapServer, instead of assigning a target frame. Hope I was helpful! Brant Rebecca Colwell wrote: > Hi all, > > I'm trying to query my map and have the resulting information appear in > a frame in the right hand side column of a table. I've been reading > past listserv responses for a week and haven't found the answer I'm > looking for. I've provided the code I think corresponds with my problem > below. > > I don't know a few things that I would love to get some feedback on. > 1.) Does the javascript I have look right? > 2.) What code do I need to have in my "Map Mode" menu (see below) to get > the query results to send to a frame in the main map html? > 3.) Can a frame exist in an html document as a stand alone frame? For > instance, I would like the query info to display in the white space > below my legend. The legend exists within a table column and I've > placed the frameset code below the legend. > > If you see any other glaring errors in my logic, please feel free to > point it out. > > Thank you, > > ~Becky > > > For the javascript code, I have the following: > > //Checks Target > function CheckTarget(){ > if (document.mapserv.mode.value == "query"){ > document.mapserv.target="QueryResults";} > else{ > document.mapserv.target=""; > } > } > > At the beginning of my form I have: > > onSubmit="CheckTarget();" target="QueryResults"> > > In my Map Mode dropdown menu I have: > > Map Mode:
> > > My frame code: > > cols="214"> > src="templates/frame1.html" noresize> > > From tylermitchell at SHAW.CA Tue Sep 14 19:18:52 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Tue, 14 Sep 2004 19:18:52 -0700 Subject: Javascript, queries, and frames In-Reply-To: <41475C6B.10300@geog.umn.edu> Message-ID: Hi Rebecca, it's been a while since I tackled the frames issue, but you can see it in action at: http://www.mapitout.com/restaurants The query function displays a photo in the left frame. Hope that helps. Tyler On September 14, 2004 02:02 pm, Rebecca Colwell wrote: > Hi all, > > I'm trying to query my map and have the resulting information appear in > a frame in the right hand side column of a table. I've been reading > past listserv responses for a week and haven't found the answer I'm > looking for. I've provided the code I think corresponds with my problem > below. > > I don't know a few things that I would love to get some feedback on. > 1.) Does the javascript I have look right? > 2.) What code do I need to have in my "Map Mode" menu (see below) to get > the query results to send to a frame in the main map html? > 3.) Can a frame exist in an html document as a stand alone frame? For > instance, I would like the query info to display in the white space > below my legend. The legend exists within a table column and I've > placed the frameset code below the legend. > > If you see any other glaring errors in my logic, please feel free to > point it out. > > Thank you, > > ~Becky > > > For the javascript code, I have the following: > > //Checks Target > function CheckTarget(){ > if (document.mapserv.mode.value == "query"){ > document.mapserv.target="QueryResults";} > else{ > document.mapserv.target=""; > } > } > > At the beginning of my form I have: > > onSubmit="CheckTarget();" target="QueryResults"> > > In my Map Mode dropdown menu I have: > > Map Mode:
> > > My frame code: > > > noresize> > From alberto.cavalli at SINTRANET.IT Wed Sep 15 02:17:49 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Wed, 15 Sep 2004 11:17:49 +0200 Subject: postgis and query Message-ID: Hi dear, I'm working with postgresql 8.0 beta1, postgis 0.9 and mapserver 4.0 on win 2000. I putted all my shape in my db and I need to make a query below in my web page: select h887_p.num_foglio, h887_p.num_part, h887_p.area as area_particella, round( (area2d(intersection(geometryn(h887_p.the_geom,1),geometryn(v_pub.the_geom,1 )))/area2d(h887_p.the_geom)*100)::numeric ,0) as percentuale from h887_p ,v_pub where (h887_p.the_geom && v_pub.the_geom); My problem is thath I don't know how can I make this query in mapserver for a specific point, I think thath I need phpmapscript and querybypoint. Can someone explain to me the right way to do this or send an example of this? thanks in advance Alberto From lfilak at MEDINACO.ORG Wed Sep 15 06:01:27 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 15 Sep 2004 09:01:27 -0400 Subject: Extracting data froma a shp Message-ID: The following message was sent by Thomas Shaw on Tue, 14 Sep 2004 16:29:30 -0400. > Hello, I hope that you can help me with this: > > Actually I have mapserver and I'm creating a map with 2 layers, and I'm > generating another layer with mapscript. That layer is generated by > reading a data base that has latitude and longitud fields. So I read a > position (lat,lon) and generate the layer. Until here I have no problem, > the generated layer is appearing correctly in the map as a 3rd layer, but > the thing I'm trying to do is to extract from the shape file that is in > the other 2 layers, information that can help me to know how far is the > new point in the generated layer from the nearest information point in the > shp that is in the other 2 layers. I'm using this map for car > localization, so, in some way I have to make an information table with the > telling where the unit is referencing it with the other 2 layers in the > map. Is some solution for my problem? > > Greetings > > Thank you > ----------- > Thomas Shaw Thomas; I'm a little unclear on the details. What you have in the 3rd layer is a point but I'm not sure what is in the first two layers. If they are polygons you could use "layer->queryByPoint( mapObj map, pointObj point, int mode, double buffer )" with no buffer or "shape->contains( pointObj point )" to see if the point is within the polygon. I'm not current on how the "shape->distanceToPoint( pointObj point )" works for polygon shapes and you may want to view the source code before assuming it works the way you anticipate. If they are lines then you can use "layer->queryByPoint( mapObj map, pointObj point, int mode, double buffer )" with incrementally larger buffers to detect the closest line. Or an alternative method available if your line data contains correct polygon topology you can query the polygons for the one in which the point resides and then loop through each of the lines that compose the polygon and calculate the distance between each of the points that compose each of the lines and use the shortest distance as the nearest line. Be aware that "shape->distanceToPoint( pointObj point )" will extend the ends of a line shape to find the shortest distance from a line to a point and that is probably not what you need. If they are points then you can use layer->queryByPoint( mapObj map, pointObj point, int mode, double buffer )" with incrementally larger buffers to detect the closest point. Once the query is done and you have the resultcache you can pull attributes based on the shape index of the resultcachemember. My $0.02 Lowell From hliu at JDBARNES.COM Wed Sep 15 06:55:51 2004 From: hliu at JDBARNES.COM (Haiyan Liu) Date: Wed, 15 Sep 2004 08:55:51 -0500 Subject: wms raster rquest crash! Message-ID: Hi all, We set up a wms service with mapserver to server both vector and raster data(tiff). There is no problem with getCapabilities and GetMap with vetor data. But when sending request for raster data, web server(actrualy it is the mapserver) crashed complaining 'premature end of scripts...Segmentation fault'. With regular mapfile(without specs of wms tag), the raster layer displayed all right in my mapserver application. From tylermitchell at SHAW.CA Wed Sep 15 07:08:10 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Wed, 15 Sep 2004 07:08:10 -0700 Subject: postgis and query In-Reply-To: <5C364C28DF05D611A03200E01832693FC682CA@sintraweb.sintranet.it> Message-ID: You might want to consider creating a view in the database instead, if that suits you. Then calling it from MapServer with a simpler query. Tyler On September 15, 2004 02:17 am, Alberto Cavalli wrote: > Hi dear, > I'm working with postgresql 8.0 beta1, postgis 0.9 and mapserver 4.0 on win > 2000. > I putted all my shape in my db and I need to make a query below in my web > page: > > select h887_p.num_foglio, h887_p.num_part, h887_p.area as area_particella, > round( > (area2d(intersection(geometryn(h887_p.the_geom,1),geometryn(v_pub.the_geom, >1 )))/area2d(h887_p.the_geom)*100)::numeric ,0) as percentuale from h887_p > ,v_pub > where (h887_p.the_geom && v_pub.the_geom); > > My problem is thath I don't know how can I make this query in mapserver for > a specific point, I think thath I need phpmapscript and querybypoint. > Can someone explain to me the right way to do this or send an example of > this? > thanks in advance > Alberto From ed at TOPOZONE.COM Wed Sep 15 07:26:21 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Sep 2004 10:26:21 -0400 Subject: wms raster rquest crash! Message-ID: Haiyan - Are you sure there isn't an error in your source TIFF file? Could you make that file (ORTH175640485302002FBS.tif) available for download? - 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 Haiyan Liu Sent: Wednesday, September 15, 2004 9:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] wms raster rquest crash! Hi all, We set up a wms service with mapserver to server both vector and raster data(tiff). There is no problem with getCapabilities and GetMap with vetor data. But when sending request for raster data, web server(actrualy it is the mapserver) crashed complaining 'premature end of scripts...Segmentation fault'. With regular mapfile(without specs of wms tag), the raster layer displayed all right in my mapserver application. From warmerdam at POBOX.COM Wed Sep 15 07:15:21 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 15 Sep 2004 10:15:21 -0400 Subject: wms raster rquest crash! In-Reply-To: Message-ID: Haiyan Liu wrote: >>From this list, we noticed some postings on this problem. As some folks > suggested that SegFault problem could be traced to mapserver's shp2img, so > we tried shp2img and did get that segfault crash. When we tried using gdb to > 'debug' the shp2img util with the same mapfile, we found it crashed on > tif_read, here is the message before it died, > > ########################################################################## > (gdb) run -m /var/www/html/zoom2it_mapserver/map_file/test_wms.map > Starting program: /root/build/mapserver-4.0.1/shp2img > -m/var/www/html/zoom2it_mapserver/map_file/test_wms.map > (no debugging symbols found)... > (no debugging symbols found)... > (no debugging symbols found)... > (no debugging symbols found)... > (no debugging symbols found)...[Thread debugging using libthread_dbenabled] > [New Thread -1084655424 (LWP 5180)] > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1084655424 (LWP 5180)]0x00a036ad in TIFFFillStrip > (tif=0x8863628, strip=1) at tif_read.c:252252 > bytecount = td->td_stripbytecount[strip]; > ########################################################################## > > I hope i have explained my problem clearly. Any help/hint will be greatly > appreciated! By the way, almost all mapserver versions above 4.0.1 have been > triedwith the same configs as below and failed exactly the same way. Haiyan, When reporting crashes within gdb it is also helpful to do a "where" command so we can see the whole call stack. This seems like it might be a bug in GDAL. I would encourage you to report it in the MapServer Bugzilla and ensure it is assigned to me. You will need to provide a dataset (ideally a smallish raster file that also demonstrates the problem). Also, ensure you provide details on the version of GDAL you are using. 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 andy_canfield at HOTMAIL.COM Wed Sep 15 07:44:52 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Wed, 15 Sep 2004 07:44:52 -0700 Subject: Mapserver Web service questions Message-ID: To anyone who may know, Can Mapserver be used like a web service? Here is my situation. I have a small device that I want to show maps on. There are two ways I can do this as the device has a browser I can make a small web page for it, or to give it more functionality I can write an embeded app that displays maps from a web service. So what I need to know is can Mapserver be used like a web service or do I need to write a web service that acts as the interface to Mapserver? I am using Mapserver for Windows and currently it?s set up with php Mapscript for my web maps. If I can use Mapserver as a service can I use the same one I?m running php Mapscript against? If not and I write a service is it safe to target the same Mapserver as php is using via it?s Mapscript interface? If it helps any the device sending the requests will be a Nextel Blackberry. The language of the app sitting on the device will be J2ME ( Java Micro Edition ). The service itself if I have to write one will be in C++. Any help or suggestions would be greatly appreciated. Thanks, Andy _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ed at TOPOZONE.COM Wed Sep 15 08:01:57 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Sep 2004 11:01:57 -0400 Subject: Mapserver Web service questions Message-ID: Andy - "Web service" is a pretty loose term; do you have specific interface constraints (i.e. a particular interface model, etc.)? MapServer natively supports the OGC Web Map Service (WMS) that provides a very nice, simple way to make an HTTP GET request that returns a image file in the requested format. Such a request can be easily used in, for example, the "src=" property of an tag on the requesting page. It can, of course, also be used in more complex environments where the client/requester is a different sort of application than a simple HTML viewer. - 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 ANDY CANFIELD Sent: Wednesday, September 15, 2004 10:45 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver Web service questions To anyone who may know, Can Mapserver be used like a web service? Here is my situation. I have a small device that I want to show maps on. There are two ways I can do this as the device has a browser I can make a small web page for it, or to give it more functionality I can write an embeded app that displays maps from a web service. So what I need to know is can Mapserver be used like a web service or do I need to write a web service that acts as the interface to Mapserver? I am using Mapserver for Windows and currently it's set up with php Mapscript for my web maps. If I can use Mapserver as a service can I use the same one I'm running php Mapscript against? If not and I write a service is it safe to target the same Mapserver as php is using via it's Mapscript interface? If it helps any the device sending the requests will be a Nextel Blackberry. The language of the app sitting on the device will be J2ME ( Java Micro Edition ). The service itself if I have to write one will be in C++. Any help or suggestions would be greatly appreciated. Thanks, Andy _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From stevem at SPATIALMAPPING.COM Wed Sep 15 08:34:39 2004 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Wed, 15 Sep 2004 10:34:39 -0500 Subject: postGIS problems Message-ID: On Tue, 14 Sep 2004 12:39:41 -0500, Tim wrote: Assuming that road_segments.centerline contains linestrings and not polygons, you might want to try "TYPE LINE" instead of "TYPE POLYGON" in the LAYER block. HTH, -SM -- >Also I have verified that the database queries are getting sent to >PostgreSQL. I am going to try gdb next but I am really hoping for >a simpler answer here. Very frustrating! > >Thanks, > >Tim > >On Tue, Sep 14, 2004 at 12:15:37PM -0500, Tim wrote: >> Nope just tried it. >> >> Thanks, >> >> Tim >> >> On Tue, Sep 14, 2004 at 06:41:04AM -0700, Paul Ramsey wrote: >> > Does adding a class object make any difference? >> > >> > >MAP >> > > NAME DEMO >> > > SIZE 600 400 >> > > IMAGETYPE PNG >> > > IMAGECOLOR 240 240 240 >> > > EXTENT 0 0 84 48 >> > > WEB >> > > LOG /tmp/mapserver.log >> > > END >> > > DEBUG ON >> > > LAYER >> > > CONNECTIONTYPE postgis >> > > NAME "DEMO" >> > > # Connect to a remote spatial database >> > > CONNECTION "user=user dbname=db host=127.0.0.1" >> > > DATA "centerline from road_segments" >> > > TYPE POLYGON >> > > STATUS DEFAULT >> > CLASS >> > COLOR 0 0 0 >> > END >> > > END >> > >END From andy_canfield at HOTMAIL.COM Wed Sep 15 08:55:46 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Wed, 15 Sep 2004 08:55:46 -0700 Subject: Mapserver Web service questions Message-ID: Ed, That is essentially what I was looking for. So I can send and http request to it via a small device and have it return an image directly? Or does it put the image in a directory on the server from which I must retrieve it via an io stream? ( If I go the web service route it will be a MIDlet on a phone making the request then embeding the image on the MIDlet's displayable canvas much like ROSA does in Applet context. However ROSA pulls from a link essentially to where the image has been created on the server. ) Also in the GET request how do you specify layers off or on etc? Or do you have to send a PUT type request first to configure the output that a GET will return? So far I have only used the php Interface so my knowlege of the actual Mapserver itself is weak. Thanks, Andy >From: Ed McNierney >Reply-To: Ed McNierney >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions >Date: Wed, 15 Sep 2004 11:01:57 -0400 > >Andy - > >"Web service" is a pretty loose term; do you have specific interface >constraints (i.e. a particular interface model, etc.)? MapServer >natively supports the OGC Web Map Service (WMS) that provides a very >nice, simple way to make an HTTP GET request that returns a image file >in the requested format. Such a request can be easily used in, for >example, the "src=" property of an tag on the requesting page. It >can, of course, also be used in more complex environments where the >client/requester is a different sort of application than a simple HTML >viewer. > > - 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 ANDY CANFIELD >Sent: Wednesday, September 15, 2004 10:45 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Mapserver Web service questions > >To anyone who may know, > Can Mapserver be used like a web service? >Here is my situation. I have a small device that I want to show maps on. >There are two ways I can do this as the device has a browser I can make >a small web page for it, or to give it more functionality I can write an >embeded app that displays maps from a web service. > >So what I need to know is can Mapserver be used like a web service or do >I need to write a web service that acts as the interface to Mapserver? > >I am using Mapserver for Windows and currently it's set up with php >Mapscript for my web maps. >If I can use Mapserver as a service can I use the same one I'm running >php Mapscript against? > >If not and I write a service is it safe to target the same Mapserver as >php is using via it's Mapscript interface? > >If it helps any the device sending the requests will be a Nextel >Blackberry. >The language of the app sitting on the device will be J2ME ( Java Micro >Edition ). The service itself if I have to write one will be in C++. > >Any help or suggestions would be greatly appreciated. > >Thanks, >Andy > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ed at TOPOZONE.COM Wed Sep 15 09:35:23 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Sep 2004 12:35:23 -0400 Subject: Mapserver Web service questions Message-ID: Andy - Please start by reading the WMS Client and Server documentation, which you can find at http://mapserver.gis.umn.edu/doc.html - it's very simple to use. - 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 ANDY CANFIELD Sent: Wednesday, September 15, 2004 11:56 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions Ed, That is essentially what I was looking for. So I can send and http request to it via a small device and have it return an image directly? Or does it put the image in a directory on the server from which I must retrieve it via an io stream? ( If I go the web service route it will be a MIDlet on a phone making the request then embeding the image on the MIDlet's displayable canvas much like ROSA does in Applet context. However ROSA pulls from a link essentially to where the image has been created on the server. ) Also in the GET request how do you specify layers off or on etc? Or do you have to send a PUT type request first to configure the output that a GET will return? So far I have only used the php Interface so my knowlege of the actual Mapserver itself is weak. Thanks, Andy >From: Ed McNierney >Reply-To: Ed McNierney >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions >Date: Wed, 15 Sep 2004 11:01:57 -0400 > >Andy - > >"Web service" is a pretty loose term; do you have specific interface >constraints (i.e. a particular interface model, etc.)? MapServer >natively supports the OGC Web Map Service (WMS) that provides a very >nice, simple way to make an HTTP GET request that returns a image file >in the requested format. Such a request can be easily used in, for >example, the "src=" property of an tag on the requesting page. >It can, of course, also be used in more complex environments where the >client/requester is a different sort of application than a simple HTML >viewer. > > - 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 ANDY CANFIELD >Sent: Wednesday, September 15, 2004 10:45 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Mapserver Web service questions > >To anyone who may know, > Can Mapserver be used like a web service? >Here is my situation. I have a small device that I want to show maps on. >There are two ways I can do this as the device has a browser I can make >a small web page for it, or to give it more functionality I can write >an embeded app that displays maps from a web service. > >So what I need to know is can Mapserver be used like a web service or >do I need to write a web service that acts as the interface to Mapserver? > >I am using Mapserver for Windows and currently it's set up with php >Mapscript for my web maps. >If I can use Mapserver as a service can I use the same one I'm running >php Mapscript against? > >If not and I write a service is it safe to target the same Mapserver as >php is using via it's Mapscript interface? > >If it helps any the device sending the requests will be a Nextel >Blackberry. >The language of the app sitting on the device will be J2ME ( Java Micro >Edition ). The service itself if I have to write one will be in C++. > >Any help or suggestions would be greatly appreciated. > >Thanks, >Andy > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From mweinelt at PLANIGLOBE.COM Wed Sep 15 09:58:31 2004 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Wed, 15 Sep 2004 18:58:31 +0200 Subject: CGI: Variable substitution for TILEINDEX? Message-ID: Hello, I post this on the users list because I am one ... The variable substitution (%var_name%) in mapfiles for the DATA keyword in a LAYER is quite handy for keeping the mapfile short while having different data sources for a layer depending on scale. Are there any plans to provide the same mechanism for the TILEINDEX keyword? Thanks, Martin From hliu at JDBARNES.COM Wed Sep 15 10:59:59 2004 From: hliu at JDBARNES.COM (Haiyan Liu) Date: Wed, 15 Sep 2004 13:59:59 -0400 Subject: wms raster rquest crash! In-Reply-To: <41484E79.6010908@pobox.com> Message-ID: Hi Frank and Ed, thank you for your responses. We are currently using GDAL 1.1.9.0, released 2003/06/27. Up till I posted this problem, our Admin has helped us try all the latest gdal versions in no vail. We do have successfully set up the the same wms on the same box and another box before. But since we recompiled everying of mapserver from the latest releases, we encountered the current problem. And now even we tried switching back to some earlier releases, it was still not working(well, it really should). Not sure whether or not data could be causing this the problem because we used the same data before. Here is the file anyways. www.firstbasesolutions.com/tmp_download Sincerely, Haiyan On Wed, 2004-09-15 at 10:15, Frank Warmerdam wrote: > Haiyan Liu wrote: > >>From this list, we noticed some postings on this problem. As some folks > > suggested that SegFault problem could be traced to mapserver's shp2img, so > > we tried shp2img and did get that segfault crash. When we tried using gdb to > > 'debug' the shp2img util with the same mapfile, we found it crashed on > > tif_read, here is the message before it died, > > > > ########################################################################## > > (gdb) run -m /var/www/html/zoom2it_mapserver/map_file/test_wms.map > > Starting program: /root/build/mapserver-4.0.1/shp2img > > -m/var/www/html/zoom2it_mapserver/map_file/test_wms.map > > (no debugging symbols found)... > > (no debugging symbols found)... > > (no debugging symbols found)... > > (no debugging symbols found)... > > (no debugging symbols found)...[Thread debugging using libthread_dbenabled] > > [New Thread -1084655424 (LWP 5180)] > > Program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread -1084655424 (LWP 5180)]0x00a036ad in TIFFFillStrip > > (tif=0x8863628, strip=1) at tif_read.c:252252 > > bytecount = td->td_stripbytecount[strip]; > > ########################################################################## > > > > I hope i have explained my problem clearly. Any help/hint will be greatly > > appreciated! By the way, almost all mapserver versions above 4.0.1 have been > > triedwith the same configs as below and failed exactly the same way. > > Haiyan, > > When reporting crashes within gdb it is also helpful to do a "where" command > so we can see the whole call stack. > > This seems like it might be a bug in GDAL. I would encourage you to report > it in the MapServer Bugzilla and ensure it is assigned to me. You will need > to provide a dataset (ideally a smallish raster file that also demonstrates > the problem). Also, ensure you provide details on the version of GDAL you > are using. > > Best regards, -- First Base Solutions Inc. 145 Renfrew Drive Suite 160 Markham ON L3R 9R6 T. 905.477.3600 F. 905.477.3882 From ed at TOPOZONE.COM Wed Sep 15 11:18:59 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Sep 2004 14:18:59 -0400 Subject: wms raster rquest crash! Message-ID: Haiayan - Well that's some new information! You didn't mention that this image was working in MapServer before you had trouble. Are you certainly that you rebuilt MapServer with a current and complete set of supporting libraries, particularly the current versions of libtiff and libgeotiff? - 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 Haiyan Liu Sent: Wednesday, September 15, 2004 2:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] wms raster rquest crash! Hi Frank and Ed, thank you for your responses. We are currently using GDAL 1.1.9.0, released 2003/06/27. Up till I posted this problem, our Admin has helped us try all the latest gdal versions in no vail. We do have successfully set up the the same wms on the same box and another box before. But since we recompiled everying of mapserver from the latest releases, we encountered the current problem. And now even we tried switching back to some earlier releases, it was still not working(well, it really should). Not sure whether or not data could be causing this the problem because we used the same data before. Here is the file anyways. www.firstbasesolutions.com/tmp_download Sincerely, Haiyan On Wed, 2004-09-15 at 10:15, Frank Warmerdam wrote: > Haiyan Liu wrote: > >>From this list, we noticed some postings on this problem. As some > folks > > suggested that SegFault problem could be traced to mapserver's > > shp2img, so we tried shp2img and did get that segfault crash. When > > we tried using gdb to 'debug' the shp2img util with the same > > mapfile, we found it crashed on tif_read, here is the message before > > it died, > > > > #################################################################### > > ###### > > (gdb) run -m /var/www/html/zoom2it_mapserver/map_file/test_wms.map > > Starting program: /root/build/mapserver-4.0.1/shp2img > > -m/var/www/html/zoom2it_mapserver/map_file/test_wms.map > > (no debugging symbols found)... > > (no debugging symbols found)... > > (no debugging symbols found)... > > (no debugging symbols found)... > > (no debugging symbols found)...[Thread debugging using > > libthread_dbenabled] [New Thread -1084655424 (LWP 5180)] Program > > received signal SIGSEGV, Segmentation fault. > > [Switching to Thread -1084655424 (LWP 5180)]0x00a036ad in > > TIFFFillStrip (tif=0x8863628, strip=1) at tif_read.c:252252 > > bytecount = td->td_stripbytecount[strip]; > > #################################################################### > > ###### > > > > I hope i have explained my problem clearly. Any help/hint will be > > greatly appreciated! By the way, almost all mapserver versions above > > 4.0.1 have been triedwith the same configs as below and failed exactly the same way. > > Haiyan, > > When reporting crashes within gdb it is also helpful to do a "where" > command so we can see the whole call stack. > > This seems like it might be a bug in GDAL. I would encourage you to > report it in the MapServer Bugzilla and ensure it is assigned to me. > You will need to provide a dataset (ideally a smallish raster file > that also demonstrates the problem). Also, ensure you provide details > on the version of GDAL you are using. > > Best regards, -- First Base Solutions Inc. 145 Renfrew Drive Suite 160 Markham ON L3R 9R6 T. 905.477.3600 F. 905.477.3882 From keon at NACSE.ORG Wed Sep 15 12:02:59 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Wed, 15 Sep 2004 12:02:59 -0700 Subject: wms raster rquest crash! In-Reply-To: <2A6FDD75AE04BE4A9E8C918D3C09FB0721CF4B@ptolemy.topozone.com> Message-ID: If you compiled MapServer using --with-gdal, make sure you also used --without-tiff. That is a common problem. Also, you may want to compile GDAL using --with-libtiff=internal and --with-geotiff=internal, if you didn't try that already. --Dylan On 09/15/2004 11:18 AM, Ed McNierney wrote: > Haiayan - > > Well that's some new information! You didn't mention that this image > was working in MapServer before you had trouble. > > Are you certainly that you rebuilt MapServer with a current and complete > set of supporting libraries, particularly the current versions of > libtiff and libgeotiff? > > - 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 Haiyan Liu > Sent: Wednesday, September 15, 2004 2:00 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] wms raster rquest crash! > > Hi Frank and Ed, thank you for your responses. > We are currently using GDAL 1.1.9.0, released 2003/06/27. > > Up till I posted this problem, our Admin has helped us try all the > latest gdal versions in no vail. We do have successfully set up the the > same wms on the same box and another box before. But since we recompiled > everying of mapserver from the latest releases, we encountered the > current problem. And now even we tried switching back to some earlier > releases, it was still not working(well, it really should). > > Not sure whether or not data could be causing this the problem because > we used the same data before. Here is the file anyways. > > www.firstbasesolutions.com/tmp_download > > Sincerely, > > Haiyan > > On Wed, 2004-09-15 at 10:15, Frank Warmerdam wrote: > >>Haiyan Liu wrote: >> >>From this list, we noticed some postings on this problem. As some >>folks >> >>>suggested that SegFault problem could be traced to mapserver's >>>shp2img, so we tried shp2img and did get that segfault crash. When >>>we tried using gdb to 'debug' the shp2img util with the same >>>mapfile, we found it crashed on tif_read, here is the message before > > >>>it died, >>> >>>#################################################################### >>>###### >>>(gdb) run -m /var/www/html/zoom2it_mapserver/map_file/test_wms.map >>>Starting program: /root/build/mapserver-4.0.1/shp2img >>>-m/var/www/html/zoom2it_mapserver/map_file/test_wms.map >>>(no debugging symbols found)... >>>(no debugging symbols found)... >>>(no debugging symbols found)... >>>(no debugging symbols found)... >>>(no debugging symbols found)...[Thread debugging using >>>libthread_dbenabled] [New Thread -1084655424 (LWP 5180)] Program >>>received signal SIGSEGV, Segmentation fault. >>>[Switching to Thread -1084655424 (LWP 5180)]0x00a036ad in >>>TIFFFillStrip (tif=0x8863628, strip=1) at tif_read.c:252252 >>>bytecount = td->td_stripbytecount[strip]; >>>#################################################################### >>>###### >>> >>>I hope i have explained my problem clearly. Any help/hint will be >>>greatly appreciated! By the way, almost all mapserver versions above > > >>>4.0.1 have been triedwith the same configs as below and failed > > exactly the same way. > >>Haiyan, >> >>When reporting crashes within gdb it is also helpful to do a "where" >>command so we can see the whole call stack. >> >>This seems like it might be a bug in GDAL. I would encourage you to >>report it in the MapServer Bugzilla and ensure it is assigned to me. >>You will need to provide a dataset (ideally a smallish raster file >>that also demonstrates the problem). Also, ensure you provide details >>on the version of GDAL you are using. >> >>Best regards, > > -- > First Base Solutions Inc. > 145 Renfrew Drive > Suite 160 > Markham ON L3R 9R6 > > T. 905.477.3600 > F. 905.477.3882 From bitner at MACNOISE.COM Wed Sep 15 12:48:40 2004 From: bitner at MACNOISE.COM (David Bitner) Date: Wed, 15 Sep 2004 14:48:40 -0500 Subject: shapefile transform Message-ID: Off topic for mapserver list, but could anyone help me figure out a way to apply a scale transformation to a shapefile. I have locally surveyed data with the only connection to a "real" coordinate system being that if you multiply all the coordinates by a factor of .9999129 then you get the coordinates in State Plane. Evidently this is the result of a mistake made 50 years ago that has been propogated ever since. Basically, since there is no projection information for this data and it is change in scale, rather than just an xy shift I am stuck on how to make the transformation using ArcGIS, OGR, or other tools. Thanks, David From andy_canfield at HOTMAIL.COM Wed Sep 15 12:49:20 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Wed, 15 Sep 2004 12:49:20 -0700 Subject: Mapserver Web service questions Message-ID: Ed, Thank you! I'm reading through the docs now and they have everything I was wanting to know, and kudos to who ever did the docs they are very easy to use. Andy >From: "Ed McNierney" >To: "ANDY CANFIELD" >, >Subject: RE: [UMN_MAPSERVER-USERS] Mapserver Web service questions >Date: Wed, 15 Sep 2004 12:35:23 -0400 > >Andy - > >Please start by reading the WMS Client and Server documentation, which >you can find at http://mapserver.gis.umn.edu/doc.html - it's very simple >to use. > > - 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 ANDY CANFIELD >Sent: Wednesday, September 15, 2004 11:56 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions > >Ed, >That is essentially what I was looking for. > >So I can send and http request to it via a small device and have it >return an image directly? >Or does it put the image in a directory on the server from which I must >retrieve it via an io stream? > >( >If I go the web service route it will be a MIDlet on a phone making the >request then embeding the image on the MIDlet's displayable canvas much >like ROSA does in Applet context. However ROSA pulls from a link >essentially to where the image has been created on the server. >) > >Also in the GET request how do you specify layers off or on etc? Or do >you have to send a PUT type request first to configure the output that a >GET will return? > >So far I have only used the php Interface so my knowlege of the actual >Mapserver itself is weak. >Thanks, >Andy > > > >From: Ed McNierney > >Reply-To: Ed McNierney > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions > >Date: Wed, 15 Sep 2004 11:01:57 -0400 > > > >Andy - > > > >"Web service" is a pretty loose term; do you have specific interface > >constraints (i.e. a particular interface model, etc.)? MapServer > >natively supports the OGC Web Map Service (WMS) that provides a very > >nice, simple way to make an HTTP GET request that returns a image file > >in the requested format. Such a request can be easily used in, for > >example, the "src=" property of an tag on the requesting page. > >It can, of course, also be used in more complex environments where the > >client/requester is a different sort of application than a simple HTML > >viewer. > > > > - 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 ANDY CANFIELD > >Sent: Wednesday, September 15, 2004 10:45 AM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: [UMN_MAPSERVER-USERS] Mapserver Web service questions > > > >To anyone who may know, > > Can Mapserver be used like a web service? > >Here is my situation. I have a small device that I want to show maps >on. > >There are two ways I can do this as the device has a browser I can make > > >a small web page for it, or to give it more functionality I can write > >an embeded app that displays maps from a web service. > > > >So what I need to know is can Mapserver be used like a web service or > >do I need to write a web service that acts as the interface to >Mapserver? > > > >I am using Mapserver for Windows and currently it's set up with php > >Mapscript for my web maps. > >If I can use Mapserver as a service can I use the same one I'm running > >php Mapscript against? > > > >If not and I write a service is it safe to target the same Mapserver as > > >php is using via it's Mapscript interface? > > > >If it helps any the device sending the requests will be a Nextel > >Blackberry. > >The language of the app sitting on the device will be J2ME ( Java Micro > > >Edition ). The service itself if I have to write one will be in C++. > > > >Any help or suggestions would be greatly appreciated. > > > >Thanks, > >Andy > > > >_________________________________________________________________ > >Don't just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee? Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From ed at TOPOZONE.COM Wed Sep 15 13:05:09 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Sep 2004 16:05:09 -0400 Subject: shapefile transform Message-ID: David - That conversion isn't quite on the mark, but could this be a discrepancy between a U. S. Survey Foot State Plane definition and an International Foot definition? It's just about the right size and would be consistent with 50-year-old data. If so, you should be able in ArcGIS to edit the projection definition (I think) to make the adjustment. That adjustment would be a factory of 0.999998, though. - 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 David Bitner Sent: Wednesday, September 15, 2004 3:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] shapefile transform Off topic for mapserver list, but could anyone help me figure out a way to apply a scale transformation to a shapefile. I have locally surveyed data with the only connection to a "real" coordinate system being that if you multiply all the coordinates by a factor of .9999129 then you get the coordinates in State Plane. Evidently this is the result of a mistake made 50 years ago that has been propogated ever since. Basically, since there is no projection information for this data and it is change in scale, rather than just an xy shift I am stuck on how to make the transformation using ArcGIS, OGR, or other tools. Thanks, David From ed at TOPOZONE.COM Wed Sep 15 13:06:01 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 15 Sep 2004 16:06:01 -0400 Subject: Mapserver Web service questions Message-ID: Andy - Thank those who implemented it and documented it - I only had to type a few sentences in email ! - 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 ANDY CANFIELD Sent: Wednesday, September 15, 2004 3:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions Ed, Thank you! I'm reading through the docs now and they have everything I was wanting to know, and kudos to who ever did the docs they are very easy to use. Andy >From: "Ed McNierney" >To: "ANDY CANFIELD" >, >Subject: RE: [UMN_MAPSERVER-USERS] Mapserver Web service questions >Date: Wed, 15 Sep 2004 12:35:23 -0400 > >Andy - > >Please start by reading the WMS Client and Server documentation, which >you can find at http://mapserver.gis.umn.edu/doc.html - it's very >simple to use. > > - 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 ANDY CANFIELD >Sent: Wednesday, September 15, 2004 11:56 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions > >Ed, >That is essentially what I was looking for. > >So I can send and http request to it via a small device and have it >return an image directly? >Or does it put the image in a directory on the server from which I must >retrieve it via an io stream? > >( >If I go the web service route it will be a MIDlet on a phone making the >request then embeding the image on the MIDlet's displayable canvas much >like ROSA does in Applet context. However ROSA pulls from a link >essentially to where the image has been created on the server. >) > >Also in the GET request how do you specify layers off or on etc? Or do >you have to send a PUT type request first to configure the output that >a GET will return? > >So far I have only used the php Interface so my knowlege of the actual >Mapserver itself is weak. >Thanks, >Andy > > > >From: Ed McNierney > >Reply-To: Ed McNierney > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver Web service questions > >Date: Wed, 15 Sep 2004 11:01:57 -0400 > > > >Andy - > > > >"Web service" is a pretty loose term; do you have specific interface > >constraints (i.e. a particular interface model, etc.)? MapServer > >natively supports the OGC Web Map Service (WMS) that provides a very > >nice, simple way to make an HTTP GET request that returns a image > >file in the requested format. Such a request can be easily used in, > >for example, the "src=" property of an tag on the requesting page. > >It can, of course, also be used in more complex environments where > >the client/requester is a different sort of application than a simple > >HTML viewer. > > > > - 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 ANDY CANFIELD > >Sent: Wednesday, September 15, 2004 10:45 AM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: [UMN_MAPSERVER-USERS] Mapserver Web service questions > > > >To anyone who may know, > > Can Mapserver be used like a web service? > >Here is my situation. I have a small device that I want to show maps >on. > >There are two ways I can do this as the device has a browser I can > >make > > >a small web page for it, or to give it more functionality I can write > >an embeded app that displays maps from a web service. > > > >So what I need to know is can Mapserver be used like a web service or > >do I need to write a web service that acts as the interface to >Mapserver? > > > >I am using Mapserver for Windows and currently it's set up with php > >Mapscript for my web maps. > >If I can use Mapserver as a service can I use the same one I'm > >running php Mapscript against? > > > >If not and I write a service is it safe to target the same Mapserver > >as > > >php is using via it's Mapscript interface? > > > >If it helps any the device sending the requests will be a Nextel > >Blackberry. > >The language of the app sitting on the device will be J2ME ( Java > >Micro > > >Edition ). The service itself if I have to write one will be in C++. > > > >Any help or suggestions would be greatly appreciated. > > > >Thanks, > >Andy > > > >_________________________________________________________________ > >Don't just search. Find. Check out the new MSN Search! > >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ > >_________________________________________________________________ >Don't just search. Find. Check out the new MSN Search! >http://search.msn.click-url.com/go/onm00200636ave/direct/01/ _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee(r) Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From jb at NUCOMP.COM Wed Sep 15 15:26:41 2004 From: jb at NUCOMP.COM (John Bolster) Date: Wed, 15 Sep 2004 18:26:41 -0400 Subject: configure options Message-ID: Hello, I am trying to use the tile4ms utility and I can't find the executable file. Mapserver is installed on FreeBSD from a package. Any hints on where I should look and am I looking for a file called just tile4ms with no extension? If it wasn't included in the package, how do I create this utility from the distribution? John From reuven at LEVITT.NET Wed Sep 15 22:12:59 2004 From: reuven at LEVITT.NET (Reuven Levitt) Date: Wed, 15 Sep 2004 22:12:59 -0700 Subject: Working with DEM gtopo30 data... Message-ID: What is the best way to present DEM data in a graphical way with Mapserver. Is there some way to render it first, convert it to a geoTiff and then import it, or can mapserver do this type of thing using GDAL? Thanks, Reuven. From reuven at LEVITT.NET Wed Sep 15 22:15:18 2004 From: reuven at LEVITT.NET (Reuven Levitt) Date: Wed, 15 Sep 2004 22:15:18 -0700 Subject: Is DCW the best available worldwide dataset? Message-ID: Is Digital Chart of the World (DCW) entire dataset available for download somewhere? Is there a better more up to date dataset available? Thanks, Reuven. From temiz at DEPREM.GOV.TR Thu Sep 16 02:00:51 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 16 Sep 2004 12:00:51 +0300 Subject: getting map's value mapserver/grass Message-ID: hello how can I get raster category values of grass maps by php/mapserver ? I will be grateful if anyone helps regards Ahmet Temiz TURKEY ______________________________________ 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 l_gnemmi at YAHOO.FR Thu Sep 16 03:11:46 2004 From: l_gnemmi at YAHOO.FR (ludovic gnemmi) Date: Thu, 16 Sep 2004 12:11:46 +0200 Subject: Fwd: few questions about ImageMap Message-ID: Hi, I've just found ImageMap wiki page and this example: http://vevo.verifiedvoting.org/verifier/. I would be interested in using it too. But i wonder if it would be possible to use it with a dhtml interface (with image dragging and zoom box). Right now, i'm using JBox and rosa Applets but i would like to try a more interractive solution (like ImageMap with dhtml). Has anybody got other examples? Regards, Ludovic Gnemmi Stagiaire imag Vous manquez d?espace pour stocker vos mails ? Yahoo! Mail vous offre GRATUITEMENT 100 Mo ! Cr?ez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/ Le nouveau Yahoo! Messenger est arriv? ! D?couvrez toutes les nouveaut?s pour dialoguer instantan?ment avec vos amis. A t?l?charger gratuitement sur http://fr.messenger.yahoo.com From siki at AGT.BME.HU Thu Sep 16 07:17:52 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 16 Sep 2004 13:17:52 -0100 Subject: getting map's value mapserver/grass {Scanned} {Scanned} In-Reply-To: <41495643.4090809@deprem.gov.tr> Message-ID: Hi, You must install gdal and configure mapserver to use gdal library Bye Zoltan On Thu, 16 Sep 2004, temiz wrote: > hello > > how can I get raster category values of grass maps by php/mapserver ? > > I will be grateful if anyone helps > > regards > > Ahmet Temiz > TURKEY > > > ______________________________________ > 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 Pierre.RELLA at AGRICULTURE.GOUV.FR Thu Sep 16 04:50:32 2004 From: Pierre.RELLA at AGRICULTURE.GOUV.FR (Pierre RELLA) Date: Thu, 16 Sep 2004 13:50:32 +0200 Subject: Change the projection in Mapserver Message-ID: Hi, i want that Mapserver change a projection of a layer in French System "lambert 2" in "Lambert 2 ?tendu". If somebody have the process or the code to write in the mapfile Thanks From bizagirre at HOTMAIL.COM Thu Sep 16 04:42:01 2004 From: bizagirre at HOTMAIL.COM (Bastarrika Izagirre) Date: Thu, 16 Sep 2004 11:42:01 +0000 Subject: WMS GetFeatureInfo XML Format error Message-ID: An HTML attachment was scrubbed... URL: From pagameba at MAGMA.CA Thu Sep 16 05:31:54 2004 From: pagameba at MAGMA.CA (Paul Spencer) Date: Thu, 16 Sep 2004 07:31:54 -0500 Subject: WMS GetFeatureInfo XML Format error In-Reply-To: Message-ID: you must add DUMP TRUE to your layer if you want it to return XML results. Bastarrika Izagirre wrote: > Hi all: > I have problems with GetFeatureInfo request. I want the response in > XML format and i receive it in text/plain format. > I have added in my .map file the WMS_FEATURE_INFO_MIME_TYPE > 'text/xml' parameter so GetCapabilities response is: > > > text/plain > text/xml > application/vnd.ogc.gml > > > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="D:/mapserver_aplic/templ.html?"/> > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="D:/mapserver_aplic/templ.html?"/> > > > > > when I make the GetFeatureInfo request with the option FORMAT=text/xml > i get the error > > > "http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd"> > > > msWMSLoadGetMapParams(): Image handling error. Unsupported output > format (text/xml). > > > If I don't specify the Format parameter the request is valid in plain > text format. > Could someone help me? > Thanks, > aitor > > ------------------------------------------------------------------------ > Consigue aqu? las mejores y mas recientes ofertas de trabajo en > Am?rica Latina y USA: Haz clic aqu?... > From TENIERER at GOV.NS.CA Thu Sep 16 06:07:51 2004 From: TENIERER at GOV.NS.CA (Rene Teniere) Date: Thu, 16 Sep 2004 10:07:51 -0300 Subject: Area of a Polygon in PHP/Mapscript Message-ID: Hi all, I have been implementing Stepan Kafka's c-code for calculating area of a polygon in php/mapscript. His code seems to work fine. The only problem is that I keep getting a numlines result of 1 and numpoints result of NULL for my shape BEFORE I get a chance to use it in the area code. This, of course will give me an invalid area of 0. The numshapes variable within the shapefile object works great, always gives me the correct result. Wonder if anyone could let me know what they think is going on? Thanks, Rene Here is the output: [15-Sep-2004 15:47:23] Numshapes:2 [15-Sep-2004 15:47:23] Numlines:1 [15-Sep-2004 15:47:23] Numpoints: [15-Sep-2004 15:47:23] -------------------------- [15-Sep-2004 15:47:23] Numlines:1 [15-Sep-2004 15:47:23] Numpoints: [15-Sep-2004 15:47:23] The sum2:0 [15-Sep-2004 15:47:23] Area is:0 Here is the code: error_log('Numshapes:'.$oShapeFile->numshapes); $theShape = $oShapeFile->getShape(0); error_log('Numlines:'.$theShape->numlines); error_log('Numpoints:'.$theShape->line[0]->numpoints); $shpArea = shapeArea($theShape); error_log('Area is:'.$shpArea); function shapeArea($myShape) { $area = 0; if($myShape->type!=MS_SHAPE_POLYGON) { error_log('Not a Polygon!'); return $area; } error_log('--------------------------'); error_log('Numlines:'.$myShape->numlines); error_log('Numpoints:'.$myShape->line[0]->numpoints); for($i=0;$i<$myShape->numlines;$i++) { $sum = 0; for ($v=0;$v<$myShape->line[$i]->numpoints-2;$v++) { $sum+=(($myShape->line[$i]->point[0]->x)*($myShape->line[$i]->point[$v]->y)-($myShape->line[$i]->point[0]->y)*($myShape->line[$i]->point[$v]->x)+($myShape->line[$i]->point[0]->y)*($myShape->line[$i]->point[$v+1]->x)-($myShape->line[$i]->point[0]->x)*($myShape->line[$i]->point[$v+1]->y)+($myShape->line[$i]->point[$v]->x)*($myShape->line[$i]->point[$v+1]->y)-($myShape->line[$i]->point[$v+1]->x)*($myShape->line[$i]->point[$v]->y)); error_log('The sum1:'.$sum); } error_log('The sum2:'.$sum); $sum = $sum; //test if line lies inside other ones for($v=0;$v<$i;$v++) { if(pointInLine($myShape->line[$v],$myShape->line[$i]->point[0])) { $sum = -$sum; $area += $sum; } } return $area/2; } } function pointInLine($myLine,$myPoint) { //test - point in poly - for one arc of shape $status=0; for ($i=0, $j=$myLine->numpoints-1; i<$myLine->numpoints; $j=$i++) { if (((($myLine->point[$i]->y <= $myPoint->y) && ($myPoint->y < $myLine->point[$j]->y)) || (($myLine->point[$j]->y <= $myPoint->y) && ($myPoint->y < $myLine->point[$i]->y))) && ($myPoint->x < ($myLine->point[$j]->x - $myLine->point[$i]->x) * ($myPoint->y - $myLine->point[$i]->y) / ($myLine->point[$j]->y - $myLine->point[$i]->y) + $myLine->point[$i]->x)) $status = !$status; } return $status; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From berlin.brown at GMAIL.COM Thu Sep 16 07:11:34 2004 From: berlin.brown at GMAIL.COM (Berlin Brown) Date: Thu, 16 Sep 2004 10:11:34 -0400 Subject: ArcSDE support windows Message-ID: I have added ArcSDE support - 8.3 on a linux machine, do I follow similar steps to add support for the windows version. Is there a dll I can download. I hate to compile mapserv.exe From bizagirre at HOTMAIL.COM Thu Sep 16 06:41:57 2004 From: bizagirre at HOTMAIL.COM (Bastarrika Izagirre) Date: Thu, 16 Sep 2004 13:41:57 +0000 Subject: WMS GetFeatureInfo XML Format error Message-ID: An HTML attachment was scrubbed... URL: From l.bargeot at EDUCAGRI.FR Thu Sep 16 07:19:48 2004 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Thu, 16 Sep 2004 16:19:48 +0200 Subject: Change the projection in Mapserver In-Reply-To: Message-ID: Pierre RELLA a ?crit: >Hi, > i want that Mapserver change a projection of a layer in French System >"lambert 2" in "Lambert 2 ?tendu". If somebody have the process or the >code >to write in the mapfile Hi Pierre, I don't know if Mapserver alone is able to change projection on the fly. But I think postgis is able to do that with the proj4 library properties. Lionel Bargeot Agrogeomatic 03.80.77.28.49 http://www.igcs-stb.org/ 4 rue Champs-prevois, bat grand-champs, 21000 Dijon From gregory.dyke at EPFL.CH Thu Sep 16 07:22:26 2004 From: gregory.dyke at EPFL.CH (GREGORY DYKE) Date: Thu, 16 Sep 2004 16:22:26 +0200 Subject: template query with mapscript Message-ID: Hi list, With the aid of Steve Lime, I have managed to produce an svg map with mapserver. I want to replicate this query with mapscript so as to save this to file and do further processing with php. I can't figure out which of the mapscript API is usefull to me: processQueryTemplate only gives me the WEB header and footer and processTemplate sigfaults (I'm using mapserver4.2.3, so the problems from back in july should be sorted.) Here is the cgi query I use: mapserv?map=/var/www/html/testswiss.map &mode=itemnquery &qitem=Tname &qstring=/./ &qlayer=county ------------------------------------------------- Here is the mapfile: MAP NAME 'testswiss' EXTENT 485410 75285 833838 295935 STATUS OFF # we don't want a raster map UNITS METERS # DEBUG WEB HEADER 'header.svg' FOOTER 'footer.svg' QUERYFORMAT 'image/svg+xml' LOG "problem.log" END LAYER NAME county STATUS DEFAULT # CONNECTIONTYPE OGR # CONNECTION "data/SWISSTEST.MIF" DATA "swiss.shp" TYPE QUERY HEADER nap_header.svg FOOTER nap_footer.svg TEMPLATE nap.svg END END --------------------------------------- here is the phpfragment I tried: $map_file="/var/www/html/testswiss.map"; $map = ms_newMapObj($map_file); $layer = $map->getLayer(0); $tmparray["mode"]="itemnquery"; $tmparray["qitem"]="Tname"; $tmparray["qstring"]="/./"; $tmparray["qlayer"]="county"; #echo $map->processTemplate($tmparray,MS_TRUE); #segfaults echo $map->processQueryTemplate($tmparray); #only produces header and footer in the WEB object --------------------------------------------- I hope you can help me. For the curious, here is the (huge) svg this is supposed to generate (and yes, I tried on a reduced file and it still segfaults). You will need internet explorer and adobe svg plugin unfortunately; try clicking on the different surfaces: http://ic2.epfl.ch/~dyke/swisstest.svg Greg Dyke -- e'osai ko sarji la lojban - www.lojban.org From steve.lime at DNR.STATE.MN.US Thu Sep 16 07:33:12 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 16 Sep 2004 09:33:12 -0500 Subject: Fwd: error Message-ID: An embedded message was scrubbed... From: "ry4n" Subject: error Date: Thu, 16 Sep 2004 09:03:20 +0700 Size: 23625 URL: From assefa at DMSOLUTIONS.CA Thu Sep 16 07:46:39 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 16 Sep 2004 10:46:39 -0400 Subject: WMS GetFeatureInfo XML Format error In-Reply-To: Message-ID: The GetFeatureInfo takes as argument INFO_FORMAT instead of FORMAT. So you should specify INFO_FORMAT=text/xml. You must also make sure that the layer on which you do the request has a valid template attched to it (xml document in your case). Later, Bastarrika Izagirre wrote: > I have put Dump True but the error is still the same. ?Any other suggestion? > > Thanks > Aitor > > >From: Paul Spencer > >Reply-To: Paul Spencer > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] WMS GetFeatureInfo XML Format error > >Date: Thu, 16 Sep 2004 07:31:54 -0500 > > > >you must add DUMP TRUE to your layer if you want it to return XML > >results. > > > >Bastarrika Izagirre wrote: > > > >>Hi all: > >>I have problems with GetFeatureInfo request. I want the response in > >>XML format and i receive it in text/plain format. > >>I have added in my .map file the WMS_FEATURE_INFO_MIME_TYPE > >>'text/xml' parameter so GetCapabilities response is: > >> > >> > >> text/plain > >> text/xml > >> application/vnd.ogc.gml > >> > >> > >> >>xmlns:xlink="http://www.w3.org/1999/xlink" > >>xlink:href="D:/mapserver_aplic/templ.html?"/> > >> >>xmlns:xlink="http://www.w3.org/1999/xlink" > >>xlink:href="D:/mapserver_aplic/templ.html?"/> > >> > >> > >> > >> > >>when I make the GetFeatureInfo request with the option > >>FORMAT=text/xml > >>i get the error > >> > >> > >> >>"http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd"> > >> > >> > >>msWMSLoadGetMapParams(): Image handling error. Unsupported output > >>format (text/xml). > >> > >> > >>If I don't specify the Format parameter the request is valid in > >>plain > >>text format. > >>Could someone help me? > >>Thanks, > >>aitor > >> > >>------------------------------------------------------------------------ > >>Consigue aqu? las mejores y mas recientes ofertas de trabajo en > >>Am?rica Latina y USA: Haz clic aqu?... > >> > > ------------------------------------------------------------------------ > Las mejores tiendas, los precios mas bajos, entregas en todo el mundo, > YupiMSN Compras: Haz clic aqu?... -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From anja.berkhout at ARIS.NL Thu Sep 16 07:53:49 2004 From: anja.berkhout at ARIS.NL (Anja Berkhout) Date: Thu, 16 Sep 2004 16:53:49 +0200 Subject: Spatial filter in SLD Message-ID: Dear list, I try to create an SLD string (in PHP) with a spatial filter as follows: $szSLD = ''. ''. 'Testlayer'. ''. ''. ''. ''. "Geometry". "". ''. '130036,477272 130256,477116 '. '130664,477865 130819,477642'. ''. ''. ''. ''. ''. '5'. ''. 'square'. ''. '#ffff00'. ''. ''. ''. ''. ''. ''. ''. ''. ''; After that I use applySLD to apply the spatial filter to a layer, but nothing happens. What am I doing wrong? When I use a filter like it works fine, and two classes are created in the layer. Greetings, Anja -- ______________________________________________________________ ARIS - Adviesburo voor Ruimtelijke Informatie Systemen Hooghiemstraplein 126 Tel. +31-(0)30-2769180 3514 AZ UTRECHT Fax. +31-(0)30-2733578 The Netherlands Email Anja.Berkhout at aris.nl Http://www.aris.nl _____________________________________________________________ From normanb at COMSINE.CO.UK Thu Sep 16 07:48:14 2004 From: normanb at COMSINE.CO.UK (Norman Barker) Date: Thu, 16 Sep 2004 15:48:14 +0100 Subject: WCS - windows implementation Message-ID: Hi, I am interested in the MapServer WCS. Currently I can't find any documentation on the MapServer WCS, are there any presentations anywhere? Also is it useable at the moment, and is there a windows binary anywhere, or is it solely for Linux. I particularly want to serve 16 bit tiff data, so any information would be greatly appreciated. Norman From mladen.kotarac at CKFF.SI Thu Sep 16 08:03:57 2004 From: mladen.kotarac at CKFF.SI (Mladen Kotarac) Date: Thu, 16 Sep 2004 17:03:57 +0200 Subject: Fwd: error In-Reply-To: Message-ID: Steve Lime wrote: > > ------------------------------------------------------------------------ > > Subject: > error > From: > "ry4n" > Date: > Thu, 16 Sep 2004 09:03:20 +0700 > To: > > > To: > > > > > > >Warning: Function registration failed - duplicate name - ms_newmapobj in > >c:\program files\apache group\apache\htdocs\php\test.php on line 7 > > > You probably have the mapscript.dll also loaded by PhP by default. Check your php.ini. There are two options: 1. To load mapscript.dll with php by default (uncheck it in the list of extensions in php.ini) OR 2. To load it at the execution time (when needed) the way it is in your script. Both at the same time do NOT work, since obviously double registration of functions is not possible. BR Mladen -- ****************************************************************** Mladen Kotarac, univ.dipl.biol. Center za kartografijo favne in flore Centre for Cartography of Fauna and Flora http://www.ckff.si Antoliciceva 1, SI-2204 Miklav? na Dravskem polju, Slovenija tel: 00386-(0)2-6295150 fax: 00386-(0)2-6295151 podru?nica Ljubljana, Zemljemerska 10, SI-1000 Ljubljana, Slovenija tel: 00386-(0)1-4382440 fax: 00386-(0)1-4382445 GSM: 00386-(0)41-735429 e-mail: mladen.kotarac at ckff.si From nacional at CBS.UMN.EDU Thu Sep 16 08:51:02 2004 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Thu, 16 Sep 2004 10:51:02 -0500 Subject: WCS - windows implementation In-Reply-To: <4149A7AE.4010705@comsine.co.uk> Message-ID: Norman, Check the MapServer wiki and http://hypnos.cbs.umn.edu/~pnaciona/wcs/. Steve Lime and Tom Burk has a presentation on WCS available for download at http://www.omsug.ca/osgis2004/proceedings.html. You ask about its usefulness... there are a few bugs that still need fixing, the most important of which (to me) is the output image referencing. See MapServer bugzilla for pending WCS issues. There's still no windows binary available with WCS because I'm unable to compile the WCS support in Windows. Perhaps you can ask the DM Solutions' folks or Frank Warmerdam to give it a try. I know a few other people looking/waiting for WCS support in MapServer on Windows. MapServer supports 8-,16-, and 32-bit raster data. The URL I gave above has a demo that uses 16-bit rasters and can output 16-bit single-layer rasters. I don't know if MapServer's WCS implementation supports 16-bit RGBs output but I guess that would also depend on GDAL library. Good luck! -Perry On Thu, 2004-09-16 at 09:48, Norman Barker wrote: > Hi, > > I am interested in the MapServer WCS. Currently I can't find any > documentation on > the MapServer WCS, are there any presentations anywhere? > > Also is it useable at the moment, and is there a windows binary > anywhere, or is it solely > for Linux. > > I particularly want to serve 16 bit tiff data, so any information would > be greatly appreciated. > > Norman From plists at PROMETHEUS.ORG.YU Thu Sep 16 08:43:43 2004 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Thu, 16 Sep 2004 17:43:43 +0200 Subject: mygis segfault In-Reply-To: <6ca1256e04091406457b5a8e3f@mail.gmail.com> Message-ID: On Tuesday 14 September 2004 15:45, Peter Drake wrote: > I am getting a segfault whenever I try to query a MySQL layer. > mapserver will display these layers fine but queries end up in a > segfault. I don't know enough about programming to find a solution to find I have not tested the mygis module with queries so it is possible that there are some hidden bugs, I'll try and check this. From warmerdam at POBOX.COM Thu Sep 16 09:50:16 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 16 Sep 2004 12:50:16 -0400 Subject: shapefile transform In-Reply-To: Message-ID: David Bitner wrote: > Off topic for mapserver list, but could anyone help me figure out a way to > apply a scale transformation to a shapefile. > > I have locally surveyed data with the only connection to a "real" coordinate > system being that if you multiply all the coordinates by a factor of > .9999129 then you get the coordinates in State Plane. Evidently this is the > result of a mistake made 50 years ago that has been propogated ever since. > > Basically, since there is no projection information for this data and it is > change in scale, rather than just an xy shift I am stuck on how to make the > transformation using ArcGIS, OGR, or other tools. David, The shapelib package includes a contributed utility written by Bill Miller called shputils that appears to include applying arbitrary factors to coordinates. http://shapelib.maptools.org/ I think you would use it like this but I have never tried it this way. shputils in.shp out.shp FACTOR INCH 99.99129 You might need to experiment a bit. The FACTOR stuff seems to default to 100'th of an "inch" for coordinates, but I think the above will fake out the transformation stuff. It should also be possible to fake out the shpproj utility included in shapelib to accomplish the same thing, but I won't even try and describe how that might work. 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 simcock at EARTHIT.COM Thu Sep 16 11:11:09 2004 From: simcock at EARTHIT.COM (Adam Simcock) Date: Thu, 16 Sep 2004 13:11:09 -0500 Subject: 3.6 to 4.2 relative versus absolute data path issue Message-ID: We are in the process of moving to mapserver 4.2 from 3.6. The mapfiles we have generally use relative paths to data. Updating to 4.2 causes two relative pathname issues to occur: 1) When I switch over to the 4.2 executables, raster data in AI grid format does not display. If I change those data paths to absolute, it displays. This is only happening with AI grid files ? a tif raster is displaying with relative paths without a problem. The relative paths are correct and work fine in 3.6. 2) Vector files display fine with relative paths, but opening shapefiles in PHP mapscript only works if I switch them over to absolute paths in the mapfile. The relative paths are correct and work fine in 3.6. The problem has been isolated to the 3.6 to 4.2 switch ? tested on the same windows server. We have a LOT of mapfiles/projects with many layers in each, really want to avoid having to change them all to absolute pathnames would also make it difficult to move around projects (mapfile/dataset combinations) on the server. Thanks, Adam Simcock EarthIT From warmerdam at POBOX.COM Thu Sep 16 12:57:31 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 16 Sep 2004 15:57:31 -0400 Subject: 3.6 to 4.2 relative versus absolute data path issue In-Reply-To: Message-ID: Adam Simcock wrote: > We are in the process of moving to mapserver 4.2 from 3.6. The mapfiles we > have generally use relative paths to data. Updating to 4.2 causes two > relative pathname issues to occur: > > 1) When I switch over to the 4.2 executables, raster data in AI grid format > does not display. If I change those data paths to absolute, it displays. > This is only happening with AI grid files ? a tif raster is displaying with > relative paths without a problem. The relative paths are correct and work > fine in 3.6. Adam, Do you refer to the grid files by the directory containing the grid coverage? I think the new code that "tries" to apply SHPPATH will not apply it unless the resulting name ends up referring to a real file in the file system. I suspect directories don't count. It was done this way because there are some "dataset names" that GDAL accepts that don't refer to file system objects at all and these can obviously not be made relative to the SHPPATH. > 2) Vector files display fine with relative paths, but opening shapefiles in > PHP mapscript only works if I switch them over to absolute paths in the > mapfile. The relative paths are correct and work fine in 3.6. I've no idea why this is. 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 pdrake at GMAIL.COM Thu Sep 16 13:03:55 2004 From: pdrake at GMAIL.COM (Peter Drake) Date: Thu, 16 Sep 2004 16:03:55 -0400 Subject: reference map size Message-ID: I am having a problem getting the reference map size to accept changes via parameters in a URL as described here: http://mapserver.gis.umn.edu/doc40/cgi-reference.html#mapfileURL The parameter "map_scalebar_size=100+5" gives me a scalebar 100px X 5px. The paramter "map_reference_size=60+40" does not give me a reference map of size 60px X 40px as I would expect. Instead, it gives me a reference map of whatever size is defined in the .map file. Am I doing something wrong? Can anyone confirm if this is a bug? Thanks! From jb at NUCOMP.COM Thu Sep 16 13:33:18 2004 From: jb at NUCOMP.COM (John Bolster) Date: Thu, 16 Sep 2004 16:33:18 -0400 Subject: utility programs Message-ID: Hello, I am trying to use the tile4ms utility and I can't find the executable file. Mapserver is installed on FreeBSD from a package. Any hints on where I should look and am I looking for a file called just tile4ms with no extension? If it wasn't included in the package, how do I create just this utility from the distribution? P.S. I'm posting this question again as I posted it under a meaningless subject before. Thanks, John From berlin.brown at GMAIL.COM Thu Sep 16 13:38:26 2004 From: berlin.brown at GMAIL.COM (Berlin Brown) Date: Thu, 16 Sep 2004 16:38:26 -0400 Subject: PHP mapscript and IIS Message-ID: I am working with the php_mapscript_42 dll from http://maptools.org/php_mapscript/index.phtml?page=downloads.html and I working with php_4.3.8 Questions: The file size is 2MB, does this dll get loaded every time the page is hit, I placed the dll in the php4 extensions directory. Also, I normally get to any map generation because the php code timesout, what normally creates this problem? The map is really simple and it works with the mapserv.exe. draw(); $image_url=$image->saveWebImage(); ?> From woodbri at SWOODBRIDGE.COM Thu Sep 16 14:00:13 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 16 Sep 2004 17:00:13 -0400 Subject: utility programs In-Reply-To: Message-ID: John, I think you will have to download the mapserver source and any required dependencies and build it. tile4ms is built as part of that process. You might want to go back to whoever built you binary package and ask them to include the utilities. You should probably also have shptree, sortshp, shp2img if they were not provided. -Steve W. John Bolster wrote: > Hello, > > I am trying to use the tile4ms utility and I can't find the executable file. > Mapserver is installed on FreeBSD from a package. Any hints on where I > should look and am I looking for a file called just tile4ms with no > extension? > > If it wasn't included in the package, how do I create just this utility from > the distribution? > > P.S. I'm posting this question again as I posted it under a meaningless > subject before. > > Thanks, > John > From keon at NACSE.ORG Thu Sep 16 14:01:16 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Thu, 16 Sep 2004 14:01:16 -0700 Subject: utility programs In-Reply-To: Message-ID: On 09/16/2004 01:33 PM, John Bolster wrote: > Hello, > > I am trying to use the tile4ms utility and I can't find the executable file. > Mapserver is installed on FreeBSD from a package. Any hints on where I > should look and am I looking for a file called just tile4ms with no > extension? > > If it wasn't included in the package, how do I create just this utility from > the distribution? John, Yes, 'tile4ms' with no extension. I haven't used FreeBSD, but I bet there's a standard place where packages install executables (like /usr/bin on Redhat). Otherwise, have you tried using the 'find' command to search across your system? If you want to build just tile4ms you could build mapserver from source, then copy out tile4ms and delete the rest. Or build mapserver from source and just use it all instead of using the package :-) --Dylan From David.Fawcett at STATE.MN.US Thu Sep 16 14:53:54 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 16 Sep 2004 16:53:54 -0500 Subject: REQUIRES Message-ID: When using REQUIRES to set the context for when a layer should display or not, it looks like setting the STATUS of the layer to DEFAULT overrides any effect dictated by REQUIRES. Can anyone confirm or dispute this? MS v4.2.1 Thanks David. David J. Fawcett MN Office of Environmental Assistance From dylan at IICI.NO-IP.ORG Thu Sep 16 15:27:54 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Thu, 16 Sep 2004 15:27:54 -0700 Subject: zoom to lat+long Message-ID: Greetings! So far I have had great success with with mapserver 4.2 compiled for linux with the help of the mail list! I was thinking about implimenting a form element that would allow a persion to zoom to a set lat+long coordinate. All of my geographic data are in already in LatLong style projection, thus there should be no need for any complicated math or re-projections. However, I can't quite figure out how to get mapserver to zoom to a user-input coordinate pair... Do i need to calculate a map extent from the user-input coordinates? Thanks in advance! Dylan Beaudette Soil Science Grad Group University of California at Davis From alberto.cavalli at SINTRANET.IT Fri Sep 17 00:10:00 2004 From: alberto.cavalli at SINTRANET.IT (Alberto Cavalli) Date: Fri, 17 Sep 2004 09:10:00 +0200 Subject: obtain index postgis Message-ID: Hidear, I'm working with postgis 0.9 and mapserver. I'm looking for the code to return the index of the record selected after than I click on my map with my mouse. I think that I need phpmapscript Is that true? Can somebody help me? thanks Alberto From stefano.bonnin at COMAI.TO Fri Sep 17 01:03:29 2004 From: stefano.bonnin at COMAI.TO (Stefano Bonnin) Date: Fri, 17 Sep 2004 10:03:29 +0200 Subject: shpfile loading Message-ID: Hi, I have one spatial table (my_postgis_table) with a schema like the_geom,object_name,object_id ...... I'd like to know if is possible in a simple way to load data from a generic shape file into "my_postgis_table". The shp2pgsql load data into postgis spatial table creating a table with the same schema of the shape, so, the problem here is to "create a mapping" from shp file fields and my table. The most simple way that I found is the following: 1) use the shp2pgsql loader in order to load the data into postgres spatial table (my_spatial_table_temp) 2) read the schema of "my_spatial_table_temp" and give to the user a page where to create the mapping between the 2 tables Example: my_spatial_table_temp.generic_field1 --> my_postgis_table.object_name my_spatial_table_temp.generic_field2 --> my_postgis_table.object_name ... and obviously: my_spatial_table_temp.geom --> my_postgis_table.the geom .... and so on ... 3) Excute the query that copies the gis data from my_spatial_table_temp to my_postgis_table using the mapping just created. 4) drop the "my_spatial_table_temp" table is this the right way or exists another procedure more simple than this one? Thanks in advance. RedS -------------- next part -------------- An HTML attachment was scrubbed... URL: From berend.veldkamp at ARIS.NL Fri Sep 17 02:14:16 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Fri, 17 Sep 2004 11:14:16 +0200 Subject: WFS GetFeature and filter Message-ID: Hi, Does anyone have an example of how to do a GetFeature request with a filter? I can get *all* features with http://localhost/cgi-bin/mapserv.exe?map=test.map&typename=nap &request=getfeature&service=wfs&format=text/xml&version=1.0.0 (wrapped for readability) but when I try to set a filter, i.e. http://localhost/cgi-bin/mapserv.exe?map=test.map&typename=nap &request=getfeature&service=wfs&format=text/xml&version=1.0.0 &filter= pnt_pntid032D0243 MapServer returns: inapplicable Thanks, Berend -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From gpmail at POST.HTNET.HR Fri Sep 17 04:18:57 2004 From: gpmail at POST.HTNET.HR (Goran Pavelic) Date: Fri, 17 Sep 2004 13:18:57 +0200 Subject: access database problem (OGR VRT) Message-ID: I am getting this message when I try to include a layer with a list of points stored in an Access database..... when I check the ovf file with ogrinfo everything is fine (the points are printed)....but allready with shp2img I'm getting the error msg, so it's not a permission issue.... msDrawMap(): Image handling error. Failed to draw layer named 'HRGeoCache'. msOGRFileOpen(): OGR error. Open failed for OGR connection `C:\Inetpub\wwwroot\mapserverHR\caches.ovf'. File not found or unsupported format. From TENIERER at GOV.NS.CA Fri Sep 17 04:15:45 2004 From: TENIERER at GOV.NS.CA (Rene Teniere) Date: Fri, 17 Sep 2004 08:15:45 -0300 Subject: Area of a Polygon in PHP/Mapscript Message-ID: Nicol, I have the same problem. Stepan made me aware of this. I am not sure why this happens. Hopefully someone on the list can explain. Rene >>> Nicol Hermann 2004-09-17 9:34:41 AM >>> Hi Rene, i have a question to your implementation of Stepan's c-code. You identify e.g. the number of points with: $theShape->line[0]->numpoints According to the docs i expect the following line $theShape->line(0)->numpoints unfortunately this statement returns the following error: Parse error: parse error, unexpected T_OBJECT_OPERATOR in /home/nicol/public_html/mapserver/dev/area_calculation.php on line 23 Your statement returns NULL. Do you know what i am doing wrong. Thank you very much Nicol Am Do, den 16.09.2004 schrieb Rene Teniere um 15:07: > Hi all, > > I have been implementing Stepan Kafka's c-code for calculating area of > a polygon in php/mapscript. His code seems to work fine. The only > problem is that I keep getting a numlines result of 1 and numpoints > result of NULL for my shape BEFORE I get a chance to use it in the > area code. This, of course will give me an invalid area of 0. The > numshapes variable within the shapefile object works great, always > gives me the correct result. > > Wonder if anyone could let me know what they think is going on? > > Thanks, > Rene > > Here is the output: > [15-Sep-2004 15:47:23] Numshapes:2 > [15-Sep-2004 15:47:23] Numlines:1 > [15-Sep-2004 15:47:23] Numpoints: > [15-Sep-2004 15:47:23] -------------------------- > [15-Sep-2004 15:47:23] Numlines:1 > [15-Sep-2004 15:47:23] Numpoints: > [15-Sep-2004 15:47:23] The sum2:0 > [15-Sep-2004 15:47:23] Area is:0 > > Here is the code: > error_log('Numshapes:'.$oShapeFile->numshapes); > $theShape = $oShapeFile->getShape(0); > error_log('Numlines:'.$theShape->numlines); > error_log('Numpoints:'.$theShape->line[0]->numpoints); > $shpArea = shapeArea($theShape); > error_log('Area is:'.$shpArea); > > function shapeArea($myShape) > { > $area = 0; > if($myShape->type!=MS_SHAPE_POLYGON) > { > error_log('Not a Polygon!'); > return $area; > } > error_log('--------------------------'); > error_log('Numlines:'.$myShape->numlines); > error_log('Numpoints:'.$myShape->line[0]->numpoints); > for($i=0;$i<$myShape->numlines;$i++) > { > $sum = 0; > for ($v=0;$v<$myShape->line[$i]->numpoints-2;$v++) > { > > $sum+=(($myShape->line[$i]->point[0]->x)*($myShape->line[$i]->point[$v]->y)-($myShape->line[$i]->point[0]->y)*($myShape->line[$i]->point[$v]->x)+($myShape->line[$i]->point[0]->y)*($myShape->line[$i]->point[$v+1]->x)-($myShape->line[$i]->point[0]->x)*($myShape->line[$i]->point[$v+1]->y)+($myShape->line[$i]->point[$v]->x)*($myShape->line[$i]->point[$v+1]->y)-($myShape->line[$i]->point[$v+1]->x)*($myShape->line[$i]->point[$v]->y)); > error_log('The sum1:'.$sum); > } > error_log('The sum2:'.$sum); > $sum = $sum; > //test if line lies inside other ones > for($v=0;$v<$i;$v++) > { > if(pointInLine($myShape->line[$v],$myShape->line[$i]->point[0])) > { > $sum = -$sum; > $area += $sum; > } > } > return $area/2; > } > } > > function pointInLine($myLine,$myPoint) > { > //test - point in poly - for one arc of shape > > $status=0; > for ($i=0, $j=$myLine->numpoints-1; i<$myLine->numpoints; $j=$i++) > { > if (((($myLine->point[$i]->y <= $myPoint->y) && ($myPoint->y < > $myLine->point[$j]->y)) || (($myLine->point[$j]->y <= $myPoint->y) && > ($myPoint->y < $myLine->point[$i]->y))) && ($myPoint->x < > ($myLine->point[$j]->x - $myLine->point[$i]->x) * ($myPoint->y - > $myLine->point[$i]->y) / ($myLine->point[$j]->y - > $myLine->point[$i]->y) + $myLine->point[$i]->x)) > $status = !$status; > } > return $status; > } > -- Dipl.-Geogr. Nicol Hermann GDV Gesellschaft f?r geografische Datenverarbeitung mbH Binger Stra?e 49-51 55218 Ingelheim Tel. 06132-7148-18 Fax: 06132-7148-28 -------------- next part -------------- An HTML attachment was scrubbed... URL: From superbla3000 at GMX.NET Fri Sep 17 05:10:57 2004 From: superbla3000 at GMX.NET (joerg p) Date: Fri, 17 Sep 2004 14:10:57 +0200 Subject: do I need postgis? Message-ID: hello, I want to show a gps tracking line on a map and also some cities. I want to fetch the data via php mapscript from mysql and draw it dynamicly in the map. Is it faster to fetch via a map file and postgis? thanks Joerg From jb at NUCOMP.COM Fri Sep 17 05:30:25 2004 From: jb at NUCOMP.COM (John Bolster) Date: Fri, 17 Sep 2004 08:30:25 -0400 Subject: tile4ms dbf fields do not match Message-ID: Hello, Thank you all for your help so far. I downloaded tiger/line files, used tgr2shp to create shape files and then ran tile4ms on them. For each .shp file I get a line of output that says: Aborted. DBF fields do not match for file:. [name of .shp file] Is this a problem with tgr2shp, or any other idea what I'm doing wrong? John Bolster From berend.veldkamp at ARIS.NL Fri Sep 17 05:48:26 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Fri, 17 Sep 2004 14:48:26 +0200 Subject: Syntax for Intersect filter Message-ID: Hi, I know how to use a simple filter in an sld file, but can anyone tell me what the exact syntax is for an Intersect filter? A simple example of how to deal with the gml:Polygon element will suffice. Here's my simple filter, I call it like this: http://localhost/cgi-bin/mapserv.exe?map=test.map&version=1.0.0&service=wms &request=getmap&layers=nap&styles=&sld=http://localhost/sld.xml sld.xml contains: nap nap x 170000 5 square #0000ff Thanks, Berend -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From gpmail at POST.HTNET.HR Fri Sep 17 05:53:10 2004 From: gpmail at POST.HTNET.HR (Goran Pavelic) Date: Fri, 17 Sep 2004 14:53:10 +0200 Subject: access database problem (OGR VRT) Message-ID: ok....sorry people, it seems that I had an older version of Mapserver....I got a new one (4.2.0 windows binary) and now everything works ok with shp2img but I get an error with the cgi app, on everything even on map files that worked before...... this is a raw response (got it by telneting to port 80) from my webserver: HTTP/1.1 502 Gateway Error Server: Microsoft-IIS/5.1 Date: Fri, 17 Sep 2004 12:09:40 GMT Content-Length: 215 Content-Type: text/html Error in CGI Application

CGI Error

The specified CGI application misbehaved by not returning a complete set of HTTP hea ders. The headers it did return are:



Connection to host lost.


From edspremolla at ANTEL.COM.UY  Fri Sep 17 06:06:36 2004
From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla)
Date: Fri, 17 Sep 2004 10:06:36 -0300
Subject: do I need postgis?
In-Reply-To: <414AD451.5050600@gmx.net>
Message-ID: 

It depends on the volume of the data.
If you render the background layers ( city, roads...) from shp file, and
fetch some dozens of gps points from mysql by php I don't think you will
notice the difference.

LALO

El vie, 17-09-2004 a las 09:10, joerg p escribi?:
> hello,
> 
> I want to show a gps tracking line on a map and also some cities. I want
> to fetch the data via php mapscript from mysql and draw it dynamicly in
> the map.
> 
> Is it faster to fetch via a map file and postgis?
> 
> thanks
> Joerg
-- 
Eduardo Spremolla 
Antel I+D


From David.Fawcett at STATE.MN.US  Fri Sep 17 06:33:21 2004
From: David.Fawcett at STATE.MN.US (David Fawcett)
Date: Fri, 17 Sep 2004 08:33:21 -0500
Subject: REQUIRES
Message-ID: 

I did a little more digging last night and tested it out today.

When applying REQUIRES to a layer with STATUS DEFAULT, the layer is not
drawn, but it does still show up in the legend.  This is a standard
image legend (png), not a html legend.

This issue can be found in Bugzilla as Bug# 428, but it relates only to
html legends.  It looks like there hasn't been any activity on this bug
for a year or so.

David.

David J. Fawcett
MN Office of Environmental Assistance

>>> David Fawcett  9/16/2004 4:53:54 PM >>>
When using REQUIRES to set the context for when a layer should display
or not, it looks like setting the STATUS of the layer to DEFAULT
overrides any effect dictated by REQUIRES.

Can anyone confirm or dispute this?

MS v4.2.1

Thanks

David.



David J. Fawcett
MN Office of Environmental Assistance


From pramsey at REFRACTIONS.NET  Fri Sep 17 07:20:53 2004
From: pramsey at REFRACTIONS.NET (Paul Ramsey)
Date: Fri, 17 Sep 2004 07:20:53 -0700
Subject: do I need postgis?
In-Reply-To: <414AD451.5050600@gmx.net>
Message-ID: 

It's easier to manage your data if it is in PostGIS, but that is about
where the advantages run out (unless you are also doing concurrent
incremental update).
P.

On Friday, September 17, 2004, at 05:10 AM, joerg p wrote:

> hello,
>
> I want to show a gps tracking line on a map and also some cities. I
> want
> to fetch the data via php mapscript from mysql and draw it dynamicly in
> the map.
>
> Is it faster to fetch via a map file and postgis?
>
> thanks
> Joerg
>
      Paul Ramsey
      Refractions Research
      Email: pramsey at refractions.net
      Phone: (250) 885-0632


From andrew at ANDREWHAIGH.NET  Fri Sep 17 09:39:42 2004
From: andrew at ANDREWHAIGH.NET (Andrew Haigh)
Date: Fri, 17 Sep 2004 17:39:42 +0100
Subject: ArcSDE 9
Message-ID: 

Afternoon All,

I'm wanting to know if it's possible to get MapServer to work with
ArcSDE 9.0 on Windows.

Has anybody tried / tested this?

Many thanks,

Andrew


From assefa at DMSOLUTIONS.CA  Fri Sep 17 09:38:46 2004
From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa)
Date: Fri, 17 Sep 2004 12:38:46 -0400
Subject: Spatial filter in SLD
In-Reply-To: <4149A8FD.3090005@aris.nl>
Message-ID: 

i There,

  I have checked a bit this issue. There were a couple of bugs related
with DWithin and Intersect spatial filters. There is a new version of
mapogcfilter.c (r 1.31). You should give it a try.
Another note on using the applysld from php with spatial filter (based
on your example) : there are no class created for the layer since the
filter is only a spatial filer. What happens is that the spatial filter
is converted into a query in mapserver and applied to the layer. If you
are doing your tests throuh php you should use drawquery to see the
effect of the sld.

Let me know how it goes.

Later,

Anja Berkhout wrote:

> Dear list,
>
> I try to create an SLD string (in PHP) with a spatial filter as follows:
>
>
> $szSLD = ''.
>          ''.
>          'Testlayer'.
>          ''.
>          ''.
>          ''.
>          ''.
>          "Geometry".
>          "".
>          ''.
>          '130036,477272 130256,477116 '.
>          '130664,477865 130819,477642'.
>          ''.
>          ''.
>          ''.
>          ''.
>          ''.
>          '5'.
>          ''.
>          'square'.
>          ''.
>          '#ffff00'.
>          ''.
>          ''.
>          ''.
>          ''.
>          ''.
>          ''.
>          ''.
>          ''.
>          '';
>
> After that I use applySLD to apply the spatial filter to a layer, but
> nothing happens. What am I doing wrong?
> When I use a filter like  it works fine,
> and two classes are created in the layer.
>
> Greetings,
> Anja
>
>
> --
> ______________________________________________________________
>
> ARIS - Adviesburo voor Ruimtelijke Informatie Systemen
>        Hooghiemstraplein 126    Tel.  +31-(0)30-2769180
>        3514 AZ  UTRECHT         Fax.  +31-(0)30-2733578
>        The Netherlands          Email Anja.Berkhout at aris.nl
>                                 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 sweykam at TELELINE.ES  Fri Sep 17 09:48:17 2004
From: sweykam at TELELINE.ES (Stefanie Weykam)
Date: Fri, 17 Sep 2004 18:48:17 +0200
Subject: display map in browse mode
Message-ID: 

>  I think, I must be missing out something very fundamental.
This is my first aplication, so it might be a very stupid question. - I
can't see the map from any terminal other than the one where mapserv
resides...

I also tried with the examples in the tutorial and everything is fine as
long as the map is a static map (map mode). In 'example 1-9' dynamic maps
and browse mode are introduced - from than onwards non of the maps are
displayed over the net.

Thanks for your help.


From hobu at IASTATE.EDU  Fri Sep 17 09:57:48 2004
From: hobu at IASTATE.EDU (Howard Butler)
Date: Fri, 17 Sep 2004 11:57:48 -0500
Subject: ArcSDE 9
In-Reply-To: 
Message-ID: 

Andrew,

ArcSDE 9 works fine with MapServer on Linux, Solaris, and Windows.

Howard

At 11:39 AM 9/17/2004, Andrew Haigh wrote:
>Afternoon All,
>
>I'm wanting to know if it's possible to get MapServer to work with
>ArcSDE 9.0 on Windows.
>
>Has anybody tried / tested this?
>
>Many thanks,
>
>Andrew


From andrew at ANDREWHAIGH.NET  Fri Sep 17 10:07:48 2004
From: andrew at ANDREWHAIGH.NET (Andrew Haigh)
Date: Fri, 17 Sep 2004 18:07:48 +0100
Subject: ArcSDE 9
In-Reply-To: <6.1.2.0.2.20040917115722.01c17890@hobu.mail.iastate.edu>
Message-ID: 

You wouldn't know where I can get a Windows build with ECW and WMS
(Server) support?

Thanks,

Andrew

On 17 Sep 2004, at 17:57, Howard Butler wrote:

> Andrew,
>
> ArcSDE 9 works fine with MapServer on Linux, Solaris, and Windows.
>
> Howard
>
> At 11:39 AM 9/17/2004, Andrew Haigh wrote:
>> Afternoon All,
>>
>> I'm wanting to know if it's possible to get MapServer to work with
>> ArcSDE 9.0 on Windows.
>>
>> Has anybody tried / tested this?
>>
>> Many thanks,
>>
>> Andrew
>


From hobu at IASTATE.EDU  Fri Sep 17 10:08:32 2004
From: hobu at IASTATE.EDU (Howard Butler)
Date: Fri, 17 Sep 2004 12:08:32 -0500
Subject: ArcSDE 9
In-Reply-To: 
Message-ID: 

I have one available.  Contact me off list

At 12:07 PM 9/17/2004, Andrew Haigh wrote:
>You wouldn't know where I can get a Windows build with ECW and WMS
>(Server) support?
>
>Thanks,
>
>Andrew
>
>On 17 Sep 2004, at 17:57, Howard Butler wrote:
>
> > Andrew,
> >
> > ArcSDE 9 works fine with MapServer on Linux, Solaris, and Windows.
> >
> > Howard
> >
> > At 11:39 AM 9/17/2004, Andrew Haigh wrote:
> >> Afternoon All,
> >>
> >> I'm wanting to know if it's possible to get MapServer to work with
> >> ArcSDE 9.0 on Windows.
> >>
> >> Has anybody tried / tested this?
> >>
> >> Many thanks,
> >>
> >> Andrew
> >


From xue.feng.wen at CENSUS.GOV  Fri Sep 17 11:11:16 2004
From: xue.feng.wen at CENSUS.GOV (Xuefeng Wen)
Date: Fri, 17 Sep 2004 14:11:16 -0400
Subject: Thematic map on the fly
Message-ID: 

Hello All,

We have a Java web application which needs to use MapServer. Our front end
code can get all the geo IDs (i.e. state or county codes) and the colors
assigned to them.  Can we just pass these info to MapServer as URL
parameters to generate thematic map on the fly? What the CGI variables
should be?  How to implement the map file?

I am new to MapServer. Any help is most appreciated!

-Xuefeng


From bob.basques at CI.STPAUL.MN.US  Fri Sep 17 11:41:06 2004
From: bob.basques at CI.STPAUL.MN.US (Bob Basques)
Date: Fri, 17 Sep 2004 13:41:06 -0500
Subject: Imagemap
Message-ID: 

All,

I'm trying to combine two layers into a single imagemap via the GROUP
parameter in the MAP file.  My question is, how do I get two different
(or even the same) imagemap templates to combine into a single output
IMAGEMAP?

Maybe I'm stretching the capabilities here.

In this particualr case I only want to restype some point display.  The
attribute data is even the same.  But what if the Data weren't the same,
how would I filter through two different (SHP) data files into a single
ImageMap output?

Thanks

bobb


From colwell at GEOG.UMN.EDU  Fri Sep 17 11:50:19 2004
From: colwell at GEOG.UMN.EDU (Rebecca Colwell)
Date: Fri, 17 Sep 2004 13:50:19 -0500
Subject: Javascript, queries, and frames
In-Reply-To: <41477502.7000507@mudlabs.com>
Message-ID: 

Hi all,

Many thanks to Brant and Tyler for their input on my problem.  :D

The solution that got me up and running was to create a frame.html doc
with two frames.  The key for making it work in the end was to name the
frame I wanted to direct query results in the frame.html doc.


        
        


Thanx again!

~Becky




Brant Anderson wrote:

> Hi Rebecca,
>
> I'll try to help you the best I can... But no promises. ;-)
>
> I haven't worked with targeted forms at all, but in theory, your code
> looks pretty good. As far as your "frame code" goes, I think you need
> two frames in the frameset. For example:
> 
>     
>     
> 
>
> You'll most likely need to modify my "persay" frameset page to make the
> page look how you want it. The main point is that you will need two
> frames in the frameset.
>
> Could you give an example of how the page is acting with your current
> code? Have you taken a look at the Itasca demo? It uses frames, but it's
> done in a different way using JavaScript to pull the information from
> MapServer, instead of assigning a target frame.
>
> Hope I was helpful!
>
> Brant
>
>
>
>
> Rebecca Colwell wrote:
>
>> Hi all,
>>
>> I'm trying to query my map and have the resulting information appear in
>> a frame in the right hand side column of a table.  I've been reading
>> past listserv responses for a week and haven't found the answer I'm
>> looking for.  I've provided the code I think corresponds with my problem
>> below.
>>
>> I don't know a few things that I would love to get some feedback on.
>> 1.) Does the javascript I have look right?
>> 2.) What code do I need to have in my "Map Mode" menu (see below) to get
>> the query results to send to a frame in the main map html?
>> 3.) Can a frame exist in an html document as a stand alone frame?  For
>> instance, I would like the query info to display in the white space
>> below my legend.  The legend exists within a table column and I've
>> placed the frameset code below the legend.
>>
>> If you see any other glaring errors in my logic, please feel free to
>> point it out.
>>
>> Thank you,
>>
>> ~Becky
>>
>>
>> For the javascript code, I have the following:
>>
>> //Checks Target
>> function CheckTarget(){
>> if (document.mapserv.mode.value == "query"){
>> document.mapserv.target="QueryResults";}
>> else{
>> document.mapserv.target="";
>> }
>> }
>>
>> At the beginning of my form I have:
>>
>> > onSubmit="CheckTarget();" target="QueryResults">
>>
>> In my Map Mode dropdown menu I have:
>>
>> Map Mode:
>> >> >> My frame code: >> >> > cols="214"> >> > src="templates/frame1.html" noresize> >> >> From colwell at GEOG.UMN.EDU Fri Sep 17 12:08:52 2004 From: colwell at GEOG.UMN.EDU (Rebecca Colwell) Date: Fri, 17 Sep 2004 14:08:52 -0500 Subject: Highlighting a feature on a centered querymap map? In-Reply-To: <414B31EB.2050306@geog.umn.edu> Message-ID: Hey everybody, I'm having two problems with a modified querymap I'm working with. In an attempt to recenter to the queried feature, I followed Steve Lime's advice in a past listserv post, which was: Just centering is easy. In you're query template you might have something like: The result of this is almost exactly what I was looking for, except for two things. 1. The querymap map size takes the main map's size, instead of the smaller size I put in the QUERYMAP part of the .map file (see below). How can I regain access to my original querymap specifications? 2. The other thing I'd like to have is my selected polygon hilite. Like my first question, the hilite feature only works when I don't change the img src tag. Is there a way I can have my cake and eat it too? Thanks for helping, ~Becky MAP IMAGETYPE PNG24 EXTENT -6153561 4847233 3841846 -3000000 SIZE 450 294 SHAPEPATH "data" FONTSET "fonts/fonts.list" PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" END QUERYMAP STATUS ON STYLE hilite COLOR 0 255 0 SIZE 187 121 END From David.Fawcett at STATE.MN.US Fri Sep 17 12:34:18 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Fri, 17 Sep 2004 14:34:18 -0500 Subject: Highlighting a feature on a centered querymap map? Message-ID: Rebecca, Could you also add &mapsize+187+121 to your URL That may take care of the size issue. David. >>> Rebecca Colwell 9/17/2004 2:08:52 PM >>> Hey everybody, I'm having two problems with a modified querymap I'm working with. In an attempt to recenter to the queried feature, I followed Steve Lime's advice in a past listserv post, which was: Just centering is easy. In you're query template you might have something like: The result of this is almost exactly what I was looking for, except for two things. 1. The querymap map size takes the main map's size, instead of the smaller size I put in the QUERYMAP part of the .map file (see below). How can I regain access to my original querymap specifications? 2. The other thing I'd like to have is my selected polygon hilite. Like my first question, the hilite feature only works when I don't change the img src tag. Is there a way I can have my cake and eat it too? Thanks for helping, ~Becky MAP IMAGETYPE PNG24 EXTENT -6153561 4847233 3841846 -3000000 SIZE 450 294 SHAPEPATH "data" FONTSET "fonts/fonts.list" PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" END QUERYMAP STATUS ON STYLE hilite COLOR 0 255 0 SIZE 187 121 END From David.Fawcett at STATE.MN.US Fri Sep 17 13:06:37 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Fri, 17 Sep 2004 15:06:37 -0500 Subject: Highlighting a feature on a centered querymap map? Message-ID: That should have been &mapsize=187+121 David. David J. Fawcett MN Office of Environmental Assistance >>> David Fawcett 9/17/2004 2:34:18 PM >>> Rebecca, Could you also add &mapsize+187+121 to your URL That may take care of the size issue. David. >>> Rebecca Colwell 9/17/2004 2:08:52 PM >>> Hey everybody, I'm having two problems with a modified querymap I'm working with. In an attempt to recenter to the queried feature, I followed Steve Lime's advice in a past listserv post, which was: Just centering is easy. In you're query template you might have something like: The result of this is almost exactly what I was looking for, except for two things. 1. The querymap map size takes the main map's size, instead of the smaller size I put in the QUERYMAP part of the .map file (see below). How can I regain access to my original querymap specifications? 2. The other thing I'd like to have is my selected polygon hilite. Like my first question, the hilite feature only works when I don't change the img src tag. Is there a way I can have my cake and eat it too? Thanks for helping, ~Becky MAP IMAGETYPE PNG24 EXTENT -6153561 4847233 3841846 -3000000 SIZE 450 294 SHAPEPATH "data" FONTSET "fonts/fonts.list" PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" END QUERYMAP STATUS ON STYLE hilite COLOR 0 255 0 SIZE 187 121 END From berlin.brown at GMAIL.COM Fri Sep 17 15:45:19 2004 From: berlin.brown at GMAIL.COM (Berlin Brown) Date: Fri, 17 Sep 2004 18:45:19 -0400 Subject: pyims facade and ArcIMS packets Message-ID: Not 100% MapServer, but I saw http://users.frii.com/sgillies/projects/pyims.html and thought, some might be able to create some kind of ArcIMS to MapServer proxy server or similar module, or a newer facade. I monitored the packets coming from ArcIMS, interesting stuff: I started a small http://www.retroevolution.com/beta/packets.htm http://www.retroevolution.com/beta/src/proxy_server.htm From tylermitchell at SHAW.CA Fri Sep 17 22:15:59 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Fri, 17 Sep 2004 22:15:59 -0700 Subject: do I need postgis? In-Reply-To: <414AD451.5050600@gmx.net> Message-ID: > I want to show a gps tracking line on a map and also some cities. I want > to fetch the data via php mapscript from mysql and draw it dynamicly in > the map. > > Is it faster to fetch via a map file and postgis? In case "faster" is not your only concern - consider that you can also use PostGIS with a geometry engine (aka GEOS) that can create buffers, run overlap analysis, etc. So while general data management in PostGIS is nice, it's actually awesome at helping you manipulate data and create new data from queries. I can't over-sell the benefit of having all those capabilities rolled into one PostgreSQL database and accessible via SQL. For example, I'm guessing that you could create a query or new table that shows the closest waypoint to a city - or show waypoints that are within a certain distance of others - all using SQL in PostGIS. Consider the power of PostGIS :) Tyler From superbla3000 at GMX.NET Sat Sep 18 05:01:15 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sat, 18 Sep 2004 14:01:15 +0200 Subject: mapfile for utm Message-ID: hello, I try and read but somehwo I don't get it... All I want to do is to display a utm geotiff of zone 33, berlin, germany. I can open it in Globalmapper, but I can't see it in mapserver. I would be very happy, if somebody could give me a hint.... Joerg My short mapfile: MAP IMAGETYPE png EXTENT 310000.0 580000.0 450000.0 590000.0 UNITS METERS size 800 400 imagecolor 112 135 148 DEBUG ON PROJECTION proj=utm zone=33 ellps=WGS84 datum=WGS84 units=m no_defs END web LOG "C:\ms_tmp\logfile.txt" imagepath "C:\ms_tmp\" imageurl "/ms_tmp/" template "berlinTpl_2.html" end OUTPUTFORMAT NAME "png" MIMETYPE "image/png" DRIVER "GD/PNG" EXTENSION "png" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME landsatberlin STATUS ON DATA "data/raster/landsat/p193r023.tif" OFFSITE 0 0 0 TYPE RASTER PROJECTION proj=utm zone=33 ellps=WGS84 datum=WGS84 units=m no_defs END DEBUG ON END END # Map File From woodbri at SWOODBRIDGE.COM Sat Sep 18 05:45:27 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 18 Sep 2004 08:45:27 -0400 Subject: mapfile for utm In-Reply-To: <414C238B.4040902@gmx.net> Message-ID: Joerg, If you are not mixing data with different projects it is safe to get rid of all the projection blocks in your mapfile. Also set the layer STATUS DEFAULT to make sure it is always on and try it again. -Steve W. joerg p wrote: > hello, > > I try and read but somehwo I don't get it... > All I want to do is to display a utm geotiff of zone 33, berlin, > germany. I can open it in Globalmapper, but I can't see it in mapserver. > > I would be very happy, if somebody could give me a hint.... > > Joerg > > My short mapfile: > > MAP > > IMAGETYPE png > EXTENT 310000.0 580000.0 450000.0 590000.0 > UNITS METERS > size 800 400 > imagecolor 112 135 148 > DEBUG ON > > PROJECTION > proj=utm > zone=33 > ellps=WGS84 > datum=WGS84 > units=m > no_defs > END > > web > LOG "C:\ms_tmp\logfile.txt" > imagepath "C:\ms_tmp\" > imageurl "/ms_tmp/" > template "berlinTpl_2.html" > end > > OUTPUTFORMAT > NAME "png" > MIMETYPE "image/png" > DRIVER "GD/PNG" > EXTENSION "png" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > LAYER > NAME landsatberlin > STATUS ON > DATA "data/raster/landsat/p193r023.tif" > OFFSITE 0 0 0 > TYPE RASTER > PROJECTION > proj=utm > zone=33 > ellps=WGS84 > datum=WGS84 > units=m > no_defs > END > DEBUG ON > END > > END # Map File > From temiz at DEPREM.GOV.TR Sat Sep 18 07:58:58 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Sat, 18 Sep 2004 17:58:58 +0300 Subject: mapping with different symbols Message-ID: hello I want to show some ploygons with different symbol such as '-','.','*' etc using php code. I couldn't manage with available documents. if you send me a simple example, I will appreeciate. 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 baijingyu at HOTMAIL.COM Sat Sep 18 09:13:59 2004 From: baijingyu at HOTMAIL.COM (Jingyu Bai) Date: Sat, 18 Sep 2004 11:13:59 -0500 Subject: Finally compiled my MapServer 4.2.3, but got error when using it as cgi app. Message-ID: Hi, thanks for the help from this forum and after reading most useful posts in forum I can finally compiled the map server in MT option which is using LIBCMT.LIB in VC 6++ under XP. The mapserv.exe file size is much bigger than the mapserver distribution version (mine is 369k). I used DOS command line >mapserv -v and got: D:\Projects\mapserver-4.2.3>mapserv -v MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=JPEG INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE This means I at least compiled the Map server but when I put this exe file in apache cgi-bin folder and trying to test it from web using http://localhost/cgi-bin/mapserv.exe?map=D:\Projects\mapserver-4.2.0- distribution\httpdoc\data\example1-1.map&mode=map I got a Microsoft popup fatal error window and ask me if I want to send "mapserv.exe has encountered a problem and needs to close. We are sorry for the inconvenience." ... If I only use http://localhost/cgi-bin/mapserv.exe without paramters, I wouldn't get microsoft error window instead I got a msg in my IE browser saying "No query information to decode. QUERY_STRING is set, but empty. " If I use Map Server binary distribution mapserv.exe and I wouldn't get above error. I got Map Server compiled by reading all helpful post here but why I still get the error when trying to use it as a cgi script ???!!! Is this related to the option I used to compile GDAL and mapserver? if so could somebody send me your working windows VC version of GDAL namke.opt file and mapserver makefile.vc to me? Please help me. Thanks From brant at MUDLABS.COM Sat Sep 18 15:23:49 2004 From: brant at MUDLABS.COM (Brant Anderson) Date: Sat, 18 Sep 2004 17:23:49 -0500 Subject: zoom to lat+long In-Reply-To: <414A136A.7090403@iici.no-ip.org> Message-ID: Hi Dylan, Calculating a map extent will work. All you are doing is overriding the extent that was set in the mapfile. Just change it via the URL using the CGI interface with map_extent=minX+minY+maxX+maxY. For example: map_extent=329801+5104534+330613+5105346 Go here for a complete reference: http://mapserver.gis.umn.edu/doc42/cgi-reference.html Take a look at "Changing map file parameters via a form or a URL" near the bottom of the document for more details. Cheers, Brant Anderson Dylan Beaudette wrote: > Greetings! > > So far I have had great success with with mapserver 4.2 compiled for > linux with the help of the mail list! > > I was thinking about implimenting a form element that would allow a > persion to zoom to a set lat+long coordinate. All of my geographic data > are in already in LatLong style projection, thus there should be no need > for any complicated math or re-projections. > > However, I can't quite figure out how to get mapserver to zoom to a > user-input coordinate pair... > > Do i need to calculate a map extent from the user-input coordinates? > > Thanks in advance! > > Dylan Beaudette > Soil Science Grad Group > University of California at Davis > From lists at WEBMAPIT.COM.BR Sat Sep 18 18:35:33 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Sat, 18 Sep 2004 22:35:33 -0300 Subject: [off-topic] Message-ID: Hi folks, sorry this little off-topic question... everybody knows benefits a WMS/WFS connection could provide to users, but I wanted to know if technologies such as a WMS( a remote data publication service ) connection is also available for other kind of scenarios: I mean, which technologies are available( and good!) today for creation tabular data publication service... my customer wants to connect his worksheet program directly to a given website and then see his tabular data pasted into a worksheet... using this tabular data could be use on web or using a client application. Eduardo Patto Kanegae http://www.webmapit.com.br UIN: 303747254 Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** From superbla3000 at GMX.NET Sun Sep 19 10:16:07 2004 From: superbla3000 at GMX.NET (joerg p) Date: Sun, 19 Sep 2004 19:16:07 +0200 Subject: mapfile for utm In-Reply-To: <20040919154227.GA26576@mother> Message-ID: There is no world file. I can open with globalmapper the Geotiff tags: Projection: UTM Datum: WGS84 Unit: meters UTM ZONE: 33 (12E - 18E) Geo Tiepoint (0.00, 0.00, 0.00) --> (265363.50, 6002869.50, 0.00) If I reproject this file to Geographic latitude longitude projection, it's no problem to display it with mapserver. J?rg > On Sat, Sep 18, 2004 at 02:01:15PM +0200, joerg p wrote: > >>I try and read but somehwo I don't get it... >>All I want to do is to display a utm geotiff of zone 33, berlin, >>germany. I can open it in Globalmapper, but I can't see it in mapserver. > > >> DATA "data/raster/landsat/p193r023.tif" > > > Please post the content of the world file associated with p193r023.tif! > > Titus > > From jhblankenship at YAHOO.COM Sun Sep 19 12:56:28 2004 From: jhblankenship at YAHOO.COM (Jacob Blankenship) Date: Sun, 19 Sep 2004 12:56:28 -0700 Subject: Adding points via mapserver without mapscript In-Reply-To: <414DBED7.6090802@gmx.net> Message-ID: Hi all, Is it possible to add a point or points to a map file dynamically, i.e. based on a mouse click event or from a DB? I would to accomplish this without using mapscript or other extensions. TIA, Jacob __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From unicoletti at PROMETEO.IT Mon Sep 20 02:46:22 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 20 Sep 2004 11:46:22 +0200 Subject: [Java MapScript HOWTO] updated Message-ID: Some time has passed since my last howto on java mapscript for mapserver 4.0. For those of you that still interested in it I have written and updated howto for mapserver 4.2.3 (latest stable). A patch has been proposed to the mapserver dev team as bug ID: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=876 The howto is available at the following address: http://www.unicolet.org/mapserver/compile.html Regards, Umberto From temiz at DEPREM.GOV.TR Mon Sep 20 03:46:06 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 20 Sep 2004 13:46:06 +0300 Subject: point values of grass maps by mapserver Message-ID: hello sorry for second mail. But I could not get any answer. how can I get point values of grass maps by php/mapserver ? I will be grateful if anyone helps regards Ahmet Temiz TURKEY ______________________________________ 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 m.meirink at HHNK.NL Mon Sep 20 03:53:44 2004 From: m.meirink at HHNK.NL (Martin Meirink) Date: Mon, 20 Sep 2004 05:53:44 -0500 Subject: Adding points via mapserver without mapscript Message-ID: Perhaps using a FEATURE is adequate? (See cgi-reference) Example: http://194.151.97.59/cgi-bin/mapserv422?map=%2Fvar%2Fwww%2Fhtml%2Fwf%2Fmsub% 2Fmsub.map&map_t10h_status=on&mode=itemnquerymap&qlayer=Teeltgegevens&qitem= RLE_ACHTER&qstring=/[hH] ermus/&mapext=shapes&layer=t10l&map_Teelt2_status=default&map_Teelt2_transpa rency=35&map_querymap_style=selected&map_imagecolor=204+255+204&map_t10h_sta tus=DEFAULT&map_t10h_feature=new&map_t10h_feature_points=131000.0+530000.0+1 32000.0+530000.0+131500.0+531000.0+131000.0+530000.0 From temiz at DEPREM.GOV.TR Mon Sep 20 04:44:12 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 20 Sep 2004 14:44:12 +0300 Subject: symbol using with php/mapscript Message-ID: hello I need a code about how I can display a particular class in a polygon layer wih dashed line using php/mapscript. I will appreciate if you help me. 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 berend.veldkamp at ARIS.NL Mon Sep 20 05:14:08 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Mon, 20 Sep 2004 07:14:08 -0500 Subject: Syntax for Intersect filter Message-ID: Surely there must be someone who can help me out? I've read the OpenGis specifications on gml and I studied the relevant source code, but I can't get any intersect filter to work. Here's what I have in my sld now: nap nap geometry 150000,400000 180000,400000 165000,500000 5 circle #0000ff But when I call mapserver, all I get is an empty image. http://localhost/ms_dev/cgi-bin/mapserv?map=../map/test.map&service=wms&request=getmap&version=1.0.0&layers=nap&styles=&sld=http://localhost/sld6.xml when I leave out the filter part from the sld it works, so there must be something wrong there. I'm not entirely sure about , does it make any difference what I put in there? Thanks in advance, Berend From frans at GEODAN.NL Mon Sep 20 06:11:30 2004 From: frans at GEODAN.NL (Frans Knibbe) Date: Mon, 20 Sep 2004 15:11:30 +0200 Subject: GetFeatureInfo on ESRI binary grid Message-ID: Hello people, I am using mapserver 4.2.3 with GDAL and I have a problem. Maybe someone can help? I am trying to get the GetFeatureInfo request to work on an ArcInfo grid. The grid displays well. Here is a part of the map file in its current shape: LAYER NAME "elevation" DATA "E:\data\elevation" TYPE RASTER END LAYER STATUS ON NAME "elevation_query" DATA "E:\data\elevation" TYPE QUERY DUMP TRUE TEMPLATE template.htm END As you can see, I have defined two layers, one for display and one for query. This is because I could not get the "type raster" layer to become queryable. When I request the capabilities, the second layer is reported to be queryable, but the first not. However, a getFeatureInfo request results in the following error: msSHPOpenFile(): Unable to access file. (E:\data\elevation) msSHPOpenFile(): Unable to access file. (E:\data\elevation) Is there something I am obviously doing wrong? Is there another raster format that might work better? Thanks in advance, Frans From jim at E-MASI.COM Mon Sep 20 06:58:36 2004 From: jim at E-MASI.COM (Jim) Date: Mon, 20 Sep 2004 09:58:36 -0400 Subject: configure options Message-ID: I think this is provided as an extra pre compiled program, or must be turned on with the Makefile when compiled. You may need to compile is youself. Jim Burnett Visual Basic GIS Project Leader http://www.visualbasicgis.com/ http://www.gisforums.com/ ----- Original Message ----- From: "John Bolster" To: Sent: Wednesday, September 15, 2004 6:26 PM Subject: [UMN_MAPSERVER-USERS] configure options > Hello, > > I am trying to use the tile4ms utility and I can't find the executable file. > Mapserver is installed on FreeBSD from a package. Any hints on where I > should look and am I looking for a file called just tile4ms with no > extension? > > If it wasn't included in the package, how do I create this utility from the > distribution? > > John From jim at E-MASI.COM Mon Sep 20 07:01:33 2004 From: jim at E-MASI.COM (Jim) Date: Mon, 20 Sep 2004 10:01:33 -0400 Subject: GetFeatureInfo on ESRI binary grid Message-ID: For raster layers you need the file extension too. DATA "E:\data\elevation.tif" or whatever it is. -jim Jim Burnett Visual Basic GIS Project Leader http://www.visualbasicgis.com/ http://www.gisforums.com/ ----- Original Message ----- From: "Frans Knibbe" To: Sent: Monday, September 20, 2004 9:11 AM Subject: [UMN_MAPSERVER-USERS] GetFeatureInfo on ESRI binary grid > Hello people, > > I am using mapserver 4.2.3 with GDAL and I have a problem. Maybe someone > can help? I am trying to get the GetFeatureInfo request to work on an > ArcInfo grid. The grid displays well. Here is a part of the map file in > its current shape: > > LAYER > NAME "elevation" > DATA "E:\data\elevation" > TYPE RASTER > END > > LAYER > STATUS ON > NAME "elevation_query" > DATA "E:\data\elevation" > TYPE QUERY > DUMP TRUE > TEMPLATE template.htm > END > > As you can see, I have defined two layers, one for display and one for > query. This is because I could not get the "type raster" layer to become > queryable. When I request the capabilities, the second layer is reported > to be queryable, but the first not. However, a getFeatureInfo request > results in the following error: > > > msSHPOpenFile(): Unable to access file. (E:\data\elevation) > msSHPOpenFile(): Unable to access file. (E:\data\elevation) > > > Is there something I am obviously doing wrong? Is there another raster > format that might work better? > > Thanks in advance, > > Frans From frans at GEODAN.NL Mon Sep 20 07:22:39 2004 From: frans at GEODAN.NL (Frans Knibbe) Date: Mon, 20 Sep 2004 16:22:39 +0200 Subject: GetFeatureInfo on ESRI binary grid In-Reply-To: <00b001c49f1a$55ffa580$e301a8c0@BURNETTXP> Message-ID: Jim wrote: >For raster layers you need the file extension too. >DATA "E:\data\elevation.tif" or whatever it is. > > Are you sure? An ArcInfo grid is not a single file, but a directory containing several files. I have just tried using a filename (E:\data\elevation\w001001.adf), but I got the same results: GetMap works, but GetFeatureInfo doesn't. If I should use a filename in stead of the directoryname, which of the files should I use? >-jim > >Jim Burnett >Visual Basic GIS Project Leader >http://www.visualbasicgis.com/ >http://www.gisforums.com/ > > >----- Original Message ----- >From: "Frans Knibbe" >To: >Sent: Monday, September 20, 2004 9:11 AM >Subject: [UMN_MAPSERVER-USERS] GetFeatureInfo on ESRI binary grid > > > > >>Hello people, >> >>I am using mapserver 4.2.3 with GDAL and I have a problem. Maybe someone >>can help? I am trying to get the GetFeatureInfo request to work on an >>ArcInfo grid. The grid displays well. Here is a part of the map file in >>its current shape: >> >> LAYER >> NAME "elevation" >> DATA "E:\data\elevation" >> TYPE RASTER >> END >> >> LAYER >> STATUS ON >> NAME "elevation_query" >> DATA "E:\data\elevation" >> TYPE QUERY >> DUMP TRUE >> TEMPLATE template.htm >> END >> >>As you can see, I have defined two layers, one for display and one for >>query. This is because I could not get the "type raster" layer to become >>queryable. When I request the capabilities, the second layer is reported >>to be queryable, but the first not. However, a getFeatureInfo request >>results in the following error: >> >> >> msSHPOpenFile(): Unable to access file. (E:\data\elevation) >> msSHPOpenFile(): Unable to access file. (E:\data\elevation) >> >> >>Is there something I am obviously doing wrong? Is there another raster >>format that might work better? >> >>Thanks in advance, >> >>Frans >> >> > > > > From jim at E-MASI.COM Mon Sep 20 07:33:59 2004 From: jim at E-MASI.COM (Jim) Date: Mon, 20 Sep 2004 10:33:59 -0400 Subject: GetFeatureInfo on ESRI binary grid Message-ID: ok I guess I didnt understand what kind of file you were using. Your right, you can provide the directory or a filename. Did you read this document? http://www.remotesensing.org/gdal/frmt_various.html#AIG Jim Burnett Visual Basic GIS Project Leader http://www.visualbasicgis.com/ http://www.gisforums.com/ ----- Original Message ----- From: "Frans Knibbe" To: "Jim" Cc: Sent: Monday, September 20, 2004 10:22 AM Subject: Re: [UMN_MAPSERVER-USERS] GetFeatureInfo on ESRI binary grid > Jim wrote: > > >For raster layers you need the file extension too. > >DATA "E:\data\elevation.tif" or whatever it is. > > > > > Are you sure? An ArcInfo grid is not a single file, but a directory > containing several files. I have just tried using a filename > (E:\data\elevation\w001001.adf), but I got the same results: GetMap > works, but GetFeatureInfo doesn't. If I should use a filename in stead > of the directoryname, which of the files should I use? > > >-jim > > > >Jim Burnett > >Visual Basic GIS Project Leader > >http://www.visualbasicgis.com/ > >http://www.gisforums.com/ > > > > > >----- Original Message ----- > >From: "Frans Knibbe" > >To: > >Sent: Monday, September 20, 2004 9:11 AM > >Subject: [UMN_MAPSERVER-USERS] GetFeatureInfo on ESRI binary grid > > > > > > > > > >>Hello people, > >> > >>I am using mapserver 4.2.3 with GDAL and I have a problem. Maybe someone > >>can help? I am trying to get the GetFeatureInfo request to work on an > >>ArcInfo grid. The grid displays well. Here is a part of the map file in > >>its current shape: > >> > >> LAYER > >> NAME "elevation" > >> DATA "E:\data\elevation" > >> TYPE RASTER > >> END > >> > >> LAYER > >> STATUS ON > >> NAME "elevation_query" > >> DATA "E:\data\elevation" > >> TYPE QUERY > >> DUMP TRUE > >> TEMPLATE template.htm > >> END > >> > >>As you can see, I have defined two layers, one for display and one for > >>query. This is because I could not get the "type raster" layer to become > >>queryable. When I request the capabilities, the second layer is reported > >>to be queryable, but the first not. However, a getFeatureInfo request > >>results in the following error: > >> > >> > >> msSHPOpenFile(): Unable to access file. (E:\data\elevation) > >> msSHPOpenFile(): Unable to access file. (E:\data\elevation) > >> > >> > >>Is there something I am obviously doing wrong? Is there another raster > >>format that might work better? > >> > >>Thanks in advance, > >> > >>Frans > >> > >> > > > > > > > > > From lfilak at MEDINACO.ORG Mon Sep 20 07:35:35 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 20 Sep 2004 10:35:35 -0400 Subject: Shapefile format question. Message-ID: Hopefully someone who knows more about the layout of a shapefile can help here. Is the segment between two points on a line object always a straight line? I know a coverage is and we are using shapefiles translated from coverages so it's probably safe to assume that is the case here but I don't want to break my mapscript function for generic shapefiles we may add later. Thanks. Lowell From warmerdam at POBOX.COM Mon Sep 20 07:52:05 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 20 Sep 2004 10:52:05 -0400 Subject: Shapefile format question. In-Reply-To: <20040920143530.6B3CE1A65A5@mail.medinaco.org> Message-ID: Lowell Filak wrote: > Hopefully someone who knows more about the layout of a shapefile can > help here. > Is the segment between two points on a line object always a straight line? > I know a coverage is and we are using shapefiles translated from > coverages so it's probably safe to assume that is the case here but I > don't want to break my mapscript function for generic shapefiles we may > add later. Lowell, Yes, in a shapefile the polyline segments are always considered to be straight lines. Best regards, Frank From woodbri at SWOODBRIDGE.COM Mon Sep 20 07:53:08 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 20 Sep 2004 10:53:08 -0400 Subject: Shapefile format question. In-Reply-To: <20040920143530.6B3CE1A65A5@mail.medinaco.org> Message-ID: Lowell, Shapefile ARC objects can be polylines. That is they can have multiple points that describe a curve, but between any two adjacent points in a polyline, the segment is always a straight line. This holds true for the simple polyline that only has 2 points (ie: a line). Hope this answers your question. -Steve W. Lowell Filak wrote: > Hopefully someone who knows more about the layout of a shapefile can > help here. > Is the segment between two points on a line object always a straight line? > I know a coverage is and we are using shapefiles translated from > coverages so it's probably safe to assume that is the case here but I > don't want to break my mapscript function for generic shapefiles we may > add later. > > Thanks. > > Lowell > From lfilak at MEDINACO.ORG Mon Sep 20 08:13:32 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 20 Sep 2004 11:13:32 -0400 Subject: Shapefile format question. Message-ID: Many thanks to Steve W. & Frank. Lowell The following message was sent by Stephen Woodbridge on Mon, 20 Sep 2004 10:53:08 -0400. > Lowell, > > Shapefile ARC objects can be polylines. That is they can have multiple > points that describe a curve, but between any two adjacent points in a > polyline, the segment is always a straight line. This holds true for the > simple polyline that only has 2 points (ie: a line). > > Hope this answers your question. > -Steve W. > > Lowell Filak wrote: > > > Hopefully someone who knows more about the layout of a shapefile can > > help here. > > Is the segment between two points on a line object always a straight line? > > I know a coverage is and we are using shapefiles translated from > > coverages so it's probably safe to assume that is the case here but I > > don't want to break my mapscript function for generic shapefiles we may > > add later. > > > > Thanks. > > > > Lowell > > From bob.basques at CI.STPAUL.MN.US Mon Sep 20 08:42:55 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 20 Sep 2004 10:42:55 -0500 Subject: About ordering of layers. Message-ID: All, It seems that the LAYERs are interpreted in the MAP file from the top down for processing. I've managed to get the grouping of LAYERS to work for IMAGEMAPs as well. It looks like the process reads from the bottom to the top though for the IMAGEMAP generation when more than one definition is available. This for example produces the correct IMAGEMAP (notice the order of the commented out TEMPLATE parameters): LAYER NAME 'monuments-cogo' DATA '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_09/COGO/Monuments-cogo' GROUP 'monuments' STATUS DEFAULT TYPE POINT LABELITEM 'OLD' ##LABELITEM 'COGO' CLASS OUTLINECOLOR 0 0 0 LABEL FORCE TRUE COLOR 255 200 200 OUTLINECOLOR 0 0 0 SIZE LARGE WRAP ' ' END END ##HEADER '../../imagemap/monuments_header.html' TEMPLATE '../../imagemap/monuments_record.html' FOOTER '../../imagemap/monuments_footer.html' END LAYER NAME 'monuments-nocogo' DATA '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_09/NOCOGO/Monuments-nocogo' GROUP 'monuments' STATUS DEFAULT TYPE POINT LABELITEM 'OLD' ##LABELITEM 'COGO' CLASS OUTLINECOLOR 0 0 0 LABEL FORCE TRUE COLOR 200 200 255 OUTLINECOLOR 0 0 0 SIZE LARGE WRAP ' ' END END HEADER '../../imagemap/monuments_header.html' TEMPLATE '../../imagemap/monuments-nocogo_record.html' ##FOOTER '../../imagemap/monuments_footer.html' END Is this normal operation? Is there some ordering directive someplace that can be inserted to dictate at what point a LAYER is drawn? Thanks bobb From ealpert at DIGITALGLOBE.COM Mon Sep 20 08:37:58 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 20 Sep 2004 09:37:58 -0600 Subject: Adding points via mapserver without mapscript Message-ID: You could use PHP/Perl/Python mapscript as CGI program that opens a mapfile and adds a layer and draws it. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jacob Blankenship Sent: Sunday, September 19, 2004 1:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Adding points via mapserver without mapscript Hi all, Is it possible to add a point or points to a map file dynamically, i.e. based on a mouse click event or from a DB? I would to accomplish this without using mapscript or other extensions. TIA, Jacob __________________________________ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail From woodbri at SWOODBRIDGE.COM Mon Sep 20 08:51:29 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 20 Sep 2004 11:51:29 -0400 Subject: About ordering of layers. In-Reply-To: <414EFA7F.2040001@ci.stpaul.mn.us> Message-ID: Bob, You are right that layers are draw from the top to the bottom of the mapfile, BUT labels for those layers are placed in a cache and drawn in the opposite direction because this is what you normally want to happen so labels at the bottom of the mapfile are drawn before labels at the top of the mapfile. So I think what you are seeing is that fact that the label cache is being used for your image map. You can turn off the label cache on a layer by layer basis which might give you the control you need. -Steve W. Bob Basques wrote: > All, > > It seems that the LAYERs are interpreted in the MAP file from the top > down for processing. > > I've managed to get the grouping of LAYERS to work for IMAGEMAPs as > well. It looks like the process reads from the bottom to the top though > for the IMAGEMAP generation when more than one definition is available. > > This for example produces the correct IMAGEMAP (notice the order of the > commented out TEMPLATE parameters): > > LAYER > NAME 'monuments-cogo' > DATA > '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_09/COGO/Monuments-cogo' > > GROUP 'monuments' > STATUS DEFAULT > TYPE POINT > LABELITEM 'OLD' > ##LABELITEM 'COGO' > CLASS > OUTLINECOLOR 0 0 0 > LABEL > FORCE TRUE > COLOR 255 200 200 > OUTLINECOLOR 0 0 0 > SIZE LARGE > WRAP ' ' > END > END > ##HEADER '../../imagemap/monuments_header.html' > TEMPLATE '../../imagemap/monuments_record.html' > FOOTER '../../imagemap/monuments_footer.html' > END > > LAYER > NAME 'monuments-nocogo' > DATA > '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_09/NOCOGO/Monuments-nocogo' > > GROUP 'monuments' > STATUS DEFAULT > TYPE POINT > LABELITEM 'OLD' > ##LABELITEM 'COGO' > CLASS > OUTLINECOLOR 0 0 0 > LABEL > FORCE TRUE > COLOR 200 200 255 > OUTLINECOLOR 0 0 0 > SIZE LARGE > WRAP ' ' > END > END > HEADER '../../imagemap/monuments_header.html' > TEMPLATE '../../imagemap/monuments-nocogo_record.html' > ##FOOTER '../../imagemap/monuments_footer.html' > END > > Is this normal operation? Is there some ordering directive someplace > that can be inserted to dictate at what point a LAYER is drawn? > > Thanks bobb > From sgillies at FRII.COM Mon Sep 20 10:02:19 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 20 Sep 2004 11:02:19 -0600 Subject: swig mapscript: your opinion on changing layerObj::getShape() for version 4.4 Message-ID: Hello mapscripters, For some time, an alternative API has been available to to those who build their own SWIG mapscript modules. I think it is time to make one feature of the experimental API permanent. In the experimental API getShape returns a shapeObj and takes shapeindex and tileindex as arguments. shapeObj getShape( int shapeindex [, int tileindex=-1 ] ) The usage for the case of tileindexed shapefiles is like this tileindexed_layer.open() shape = tileindexed_layer.getShape(shapeindex, tileindex) tileindexed_layer.close() In the case of layers without tileindexing, the second argument can be omitted because it defaults to -1 layer.open() shape = layer.getShape(shapeindex) layer.close() I'd like to get feedback on 2 facets of this proposal. The way I see it 1) return value change from int to shapeObj requires update of scripts: -1 more like php mapscript: +1 prevents shape type conflicts: +1 reduces need to create shapes: +1 just plain better: +1 2) reorder arguments less like php mapscript: -1 for postgis layers avoids a useless argument: +1 for regular shapefiles avoids useless arg: +1 Please see this bug for more details: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=878. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From lfilak at MEDINACO.ORG Mon Sep 20 10:14:53 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 20 Sep 2004 13:14:53 -0400 Subject: swig mapscript: your opinion on changing layerObj::getShape() for version 4.4 Message-ID: The following message was sent by Sean Gillies on Mon, 20 Sep 2004 11:02:19 -0600. > Hello mapscripters, > > For some time, an alternative API has been available to to those > who build their own SWIG mapscript modules. I think it is time > to make one feature of the experimental API permanent. > > In the experimental API getShape returns a shapeObj and takes > shapeindex and tileindex as arguments. > > shapeObj getShape( int shapeindex [, int tileindex=-1 ] ) > > The usage for the case of tileindexed shapefiles is like this > > tileindexed_layer.open() > shape = tileindexed_layer.getShape(shapeindex, tileindex) > tileindexed_layer.close() > > In the case of layers without tileindexing, the second argument > can be omitted because it defaults to -1 > > layer.open() > shape = layer.getShape(shapeindex) > layer.close() > > I'd like to get feedback on 2 facets of this proposal. The way > I see it > > 1) return value change from int to shapeObj > > requires update of scripts: -1 > more like php mapscript: +1 > prevents shape type conflicts: +1 > reduces need to create shapes: +1 > just plain better: +1 > > 2) reorder arguments > > less like php mapscript: -1 > for postgis layers avoids a useless argument: +1 > for regular shapefiles avoids useless arg: +1 > > Please see this bug for more details: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=878. > > cheers, > Sean Sean, I vote for the change(s). The method should just return a shape and not requiring the documentation of a flag (-1) for things to work correctly are a good thing. Lowell From manjiri_r at HOTMAIL.COM Mon Sep 20 10:37:13 2004 From: manjiri_r at HOTMAIL.COM (Manjiri Andhare) Date: Mon, 20 Sep 2004 17:37:13 +0000 Subject: do i need a webserver to use mapserver? Message-ID: An HTML attachment was scrubbed... URL: From lfilak at MEDINACO.ORG Mon Sep 20 11:15:41 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 20 Sep 2004 14:15:41 -0400 Subject: do i need a webserver to use mapserver? Message-ID: Search the new archives for these two subject lines: New user - Perl/Php/Windows Questions running mapserv.exe both in September. Lowell The following message was sent by Manjiri Andhare on Mon, 20 Sep 2004 17:37:13 +0000. >
>

Hello!!

>

Today I'm trying to download and install mapserver software on my machine. And in the readme file, i found that i have to copy bin/mapserv.exe to the cgi-bin folder of my webserver.

>

But I don't have any webserver installed on my machine!! Is it still possible to install mapserver on my machine, if yes, where should I run mapserv.exe?

>

Or if someone knows about the availability of the webserver (or personal webserver) that i can download on my machine, please give me the details,

>

Thank you,
Manjiri Andhare

>

>

>



Win a trip to Singapore! Experience the magic! Click here for details! From zhou_naijun at HOTMAIL.COM Mon Sep 20 11:18:48 2004 From: zhou_naijun at HOTMAIL.COM (Naijun Zhou) Date: Mon, 20 Sep 2004 13:18:48 -0500 Subject: showing .gif image Message-ID: Hi, I'd like to show a gif image (on the MapServer) as a dynamic layer in the Chamaleon WMS. I set the Layer object's name field with the image in order to add the Layer object. However, how can I tell Chamaleon know the starting point of the image(layer)? Layer $oNewLayer = ms_newLayerObj($oMap); // set name $oNewLayer->set("name",$myName); $oNewLayer->set( "data", $gifFileName); I know the minx, miny, maxx, maxy of the gif image but don't know how to set them in Layer object of Chamaleon. It seems that the gif is by default treated as having an extent of (0,0,imageXSize, imageYSize). Thank you very much! N. Zhou _________________________________________________________________ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement From ace at SUARES.NL Mon Sep 20 12:47:44 2004 From: ace at SUARES.NL (Ace Suares) Date: Mon, 20 Sep 2004 15:47:44 -0400 Subject: PHP-Mapscript question Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Dear people, Mapserver is a great toy. Iit's the first time I am doing GIS in a project and after looking around for quite some while, I decided to try mapserver. But I've got some troubles, of course. I am using php-mapscript (I hope this is the right list ?) and I would like to use a basic mapfile and then add dynamic data to it. In this instance I have a shapefile with 483 cities, but the .dbf file only has their name and number of inhabitants. Now I'd like to add a score to it, which I retrieve live from a mysql database. The score can be 1-7, depending on some questionaires that citizens filled in. Goal is to color the cities different according to their score. I tried modifying the 'values' from the shapeObj(ects) but these are readonly. I do *not* want to wrtie a .dbf file with the dynamic data to disk, not do I want to use Postgress or Oracle or wait for mysql spatial extentions. Anyone can point me in the right direction !? Grateful, as always, Ace - -- remember jesus and tequila - The Minutemen Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +5999 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBTzPgy7boE8xtIjURAsT+AJ0Tab18TyHkVaGBpC3qbKgxQYvxDgCgp+c8 NV9TdvC0UYaOiMkevcD6SNU= =p4wt -----END PGP SIGNATURE----- From Tim.Pascoe at EC.GC.CA Mon Sep 20 14:05:51 2004 From: Tim.Pascoe at EC.GC.CA (Pascoe,Tim [Burlington]) Date: Mon, 20 Sep 2004 17:05:51 -0400 Subject: Dynamic SLD - variable passing problem Message-ID: I'm working on setting up a dynamically generated SLD, in order to provide user-defined filtering for my application. The SLD is being applied to a virtual OGR layer, from my database. I can do it with a raw request to mapserver by including the SLD= tag, and a path to my php scrip which returns the SLD document. However, when I include the SLD in the metadata for the layer, it seems as if the variable is not passed into the SLD script from the CGI forms. The source for the layer is an OGR/VRT being served as a WMS. My layer is set up as follows: 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" "http://localhost/CABIN/Maps/map/study_sld_script.php?study_id=%study_id%" "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 PROJECTION "init=epsg:4326" END DUMP TRUE END Thanks... 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 ARyan at CO.LINN.OR.US Mon Sep 20 16:33:51 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Mon, 20 Sep 2004 16:33:51 -0700 Subject: swig mapscript: your opinion on changin g layerObj::getShape() for version 4.4 Message-ID: YES and still YES. Adam PS I've been moving from PHP to Python and have had nothing but success. -----Original Message----- From: Sean Gillies [mailto:sgillies at FRII.COM] Sent: Monday, September 20, 2004 10:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] swig mapscript: your opinion on changing layerObj::getShape() for version 4.4 Hello mapscripters, For some time, an alternative API has been available to to those who build their own SWIG mapscript modules. I think it is time to make one feature of the experimental API permanent. In the experimental API getShape returns a shapeObj and takes shapeindex and tileindex as arguments. shapeObj getShape( int shapeindex [, int tileindex=-1 ] ) The usage for the case of tileindexed shapefiles is like this tileindexed_layer.open() shape = tileindexed_layer.getShape(shapeindex, tileindex) tileindexed_layer.close() In the case of layers without tileindexing, the second argument can be omitted because it defaults to -1 layer.open() shape = layer.getShape(shapeindex) layer.close() I'd like to get feedback on 2 facets of this proposal. The way I see it 1) return value change from int to shapeObj requires update of scripts: -1 more like php mapscript: +1 prevents shape type conflicts: +1 reduces need to create shapes: +1 just plain better: +1 2) reorder arguments less like php mapscript: -1 for postgis layers avoids a useless argument: +1 for regular shapefiles avoids useless arg: +1 Please see this bug for more details: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=878. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From Frank.Broniewski at MNHA.ETAT.LU Tue Sep 21 01:13:54 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Tue, 21 Sep 2004 10:13:54 +0200 Subject: Once again: Truetype symbols Message-ID: Hello List I am trying to use some characters from esris ttf fonts for my map. But I only get squares as symbols, not the expected Treesymbol. I even tried to use the arial font, but even there I get only squares. Does anybody have a clue what this is about? I tried changing fonts, renaming the fonts, tried using the Ascii codes instead of typing the letter but nothing helped. I did search the archives for such behavior, but the tips mentioned there (moving the symbols to symbol file) did not help. I run mapserver on Windows Xp Home with Sp2, Apache 2.0.50 and PHP 4.3.8 installed. Mapserver Version is 4.2.1, PHP Map Script info from phpinfo() is $Revision: 1.194.2.4 $ $Date: 2004/07/07 19:37:19 $ I created a symbol definition file which contains my "symbol". Here is the relevant part: SYMBOL NAME "Tree" TYPE TRUETYPE FONT forest2 FILLED TRUE ANTIALIAS TRUE CHARACTER "j" END In the fontlist I defined the font forest2: forest2 c:\windows\fonts\esri_652.ttf In the mapfile I call the symbol with the following lines of code: CLASS Name "Arbres isol?s" Template "dasistegal.html" Symbol "Tree" Color 255 0 0 Size 50 END Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC From frans at GEODAN.NL Tue Sep 21 02:38:21 2004 From: frans at GEODAN.NL (Frans Knibbe) Date: Tue, 21 Sep 2004 11:38:21 +0200 Subject: GetFeatureInfo on ESRI binary grid In-Reply-To: <00d501c49f1e$ddb505c0$e301a8c0@BURNETTXP> Message-ID: Hello, I had not read the document Jim mentioned, but it nicely explains why, for an ArcINFO grid, setting a path to a grid directory yields the same results as setting a path to a file within that directory. I had read this document: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery It explains that after MapServer 4.2 you should be able to perform queries on rasters. And a thread in this list about the subject: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00600.html , where the question is asked whether the getFeatureInfo request will work on raster layers. I am wondering now if getFeatureInfo does not work on raster layers, or if I have made a mistake in the map configuration. If anyone has succeeded in querying a raster layer using getFeatureInfo, it would be nice to see the layer definition in the map file. Greetings, Frans Jim wrote: >ok I guess I didnt understand what kind of file you were using. Your right, >you can provide the directory or a filename. > >Did you read this document? >http://www.remotesensing.org/gdal/frmt_various.html#AIG > >Jim Burnett >Visual Basic GIS Project Leader >http://www.visualbasicgis.com/ >http://www.gisforums.com/ > > >----- Original Message ----- >From: "Frans Knibbe" >To: "Jim" >Cc: >Sent: Monday, September 20, 2004 10:22 AM >Subject: Re: [UMN_MAPSERVER-USERS] GetFeatureInfo on ESRI binary grid > > > > >>Jim wrote: >> >> >> >>>For raster layers you need the file extension too. >>>DATA "E:\data\elevation.tif" or whatever it is. >>> >>> >>> >>> >>Are you sure? An ArcInfo grid is not a single file, but a directory >>containing several files. I have just tried using a filename >>(E:\data\elevation\w001001.adf), but I got the same results: GetMap >>works, but GetFeatureInfo doesn't. If I should use a filename in stead >>of the directoryname, which of the files should I use? >> >> >> >>>-jim >>> >>>Jim Burnett >>>Visual Basic GIS Project Leader >>>http://www.visualbasicgis.com/ >>>http://www.gisforums.com/ >>> >>> >>>----- Original Message ----- >>>From: "Frans Knibbe" >>>To: >>>Sent: Monday, September 20, 2004 9:11 AM >>>Subject: [UMN_MAPSERVER-USERS] GetFeatureInfo on ESRI binary grid >>> >>> >>> >>> >>> >>> >>>>Hello people, >>>> >>>>I am using mapserver 4.2.3 with GDAL and I have a problem. Maybe someone >>>>can help? I am trying to get the GetFeatureInfo request to work on an >>>>ArcInfo grid. The grid displays well. Here is a part of the map file in >>>>its current shape: >>>> >>>> LAYER >>>> NAME "elevation" >>>> DATA "E:\data\elevation" >>>> TYPE RASTER >>>> END >>>> >>>> LAYER >>>> STATUS ON >>>> NAME "elevation_query" >>>> DATA "E:\data\elevation" >>>> TYPE QUERY >>>> DUMP TRUE >>>> TEMPLATE template.htm >>>> END >>>> >>>>As you can see, I have defined two layers, one for display and one for >>>>query. This is because I could not get the "type raster" layer to become >>>>queryable. When I request the capabilities, the second layer is reported >>>>to be queryable, but the first not. However, a getFeatureInfo request >>>>results in the following error: >>>> >>>> >>>>msSHPOpenFile(): Unable to access file. (E:\data\elevation) >>>>msSHPOpenFile(): Unable to access file. (E:\data\elevation) >>>> >>>> >>>>Is there something I am obviously doing wrong? Is there another raster >>>>format that might work better? >>>> >>>>Thanks in advance, >>>> >>>>Frans >>>> >>>> >>>> >>>> >>> >>> >>> >>> > > > > From sudip_mca at SIFY.COM Tue Sep 21 03:50:11 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Tue, 21 Sep 2004 15:50:11 +0500 Subject: Buffering Message-ID: Hello, I am working upon a GIS project using PHP-mapscript ,mapserver and SQLserver. Now i have to buffer certain areas of the map which are at a given distance from a line layer. Help me with codes. Thank you ............... Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From edspremolla at ANTEL.COM.UY Tue Sep 21 03:38:03 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Tue, 21 Sep 2004 08:38:03 -0200 Subject: do i need a webserver to use mapserver? In-Reply-To: Message-ID: Go to www.apache.org , download and install apache http server. LALO El lun, 20-09-2004 a las 15:37, Manjiri Andhare escribi?: > Hello!! > > Today I'm trying to download and install mapserver software on my > machine. And in the readme file, i found that i have to copy > bin/mapserv.exe to the cgi-bin folder of my webserver. > > But I don't have any webserver installed on my machine!! Is it still > possible to install mapserver on my machine, if yes, where should I > run mapserv.exe? > > Or if someone knows about the availability of the webserver (or > personal webserver) that i can download on my machine, please give me > the details, > > Thank you, > Manjiri Andhare > > > > ______________________________________________________________________ > Win a trip to Singapore! Experience the magic! Click here for details! -- Eduardo Spremolla Antel I+D From temiz at DEPREM.GOV.TR Tue Sep 21 04:30:35 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 21 Sep 2004 14:30:35 +0300 Subject: getting color value Message-ID: hello I was wondering whether there was any way of getting color value as rgb of an mapserver image at the point where I click on ? 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 jim at E-MASI.COM Tue Sep 21 05:57:05 2004 From: jim at E-MASI.COM (Jim) Date: Tue, 21 Sep 2004 08:57:05 -0400 Subject: getting color value Message-ID: Have you looked into javascript to do this? Do you want the value before the map is subited or after it is created? Jim Burnett Visual Basic GIS Project Leader http://www.visualbasicgis.com/ http://www.gisforums.com/ ----- Original Message ----- From: "temiz" To: Sent: Tuesday, September 21, 2004 7:30 AM Subject: [UMN_MAPSERVER-USERS] getting color value > hello > > I was wondering whether there was any way of getting color value as rgb > of an mapserver image at the point where I click on ? > > 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 jb at NUCOMP.COM Tue Sep 21 06:20:06 2004 From: jb at NUCOMP.COM (John Bolster) Date: Tue, 21 Sep 2004 09:20:06 -0400 Subject: error message Message-ID: Hello, Does anyone know what "DBF fields do not match" means in the output from tile4ms? Do they not match to one another, or to a certain way they're meant to be, or to the shapefile, or what? The files were created with tgr2shp so I don't see why they should be bad. And what would I do about this--I can't imagine I'm the only person to whom this has happened. Thanks for your help, John Bolster From ed at TOPOZONE.COM Tue Sep 21 06:24:54 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 21 Sep 2004 09:24:54 -0400 Subject: error message Message-ID: John - All of the shapefiles indexed together in a TILEINDEX group need to have the same LOCATION field in the same position in all files. I would expect any automated utility to produce the same fields in each output file, but could you be mixing different shapefile types in one index? You can use dbfdump to look at the fields in the files that do work and compare them to the one that causes the error. - 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 John Bolster Sent: Tuesday, September 21, 2004 9:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] error message Hello, Does anyone know what "DBF fields do not match" means in the output from tile4ms? Do they not match to one another, or to a certain way they're meant to be, or to the shapefile, or what? The files were created with tgr2shp so I don't see why they should be bad. And what would I do about this--I can't imagine I'm the only person to whom this has happened. Thanks for your help, John Bolster From woodbri at SWOODBRIDGE.COM Tue Sep 21 07:22:29 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 21 Sep 2004 10:22:29 -0400 Subject: error message In-Reply-To: Message-ID: John, The way tileindexes work is the you group a bunch of files into a virtual layer. All the files must have the same dbf columns defined in them and defined in the same order. This is because mapserver reads the attribute layout of the first file it opens and uses that as the template for all files in the virtual layer. So if the first file had attribute columns [A, B, C] and some other file had [D, E] or [B, C, A] or whatever it would cause problems for mapserver. If you ask mapserver to CLASS on C, it translates that to column 3 and then tries to read column 3 from the [D, E] and gets an error, or gets column A from [B, C, A] file, etc. This was causing a lot of problems for people that did not understand the inner workings of mapserver, so this check was added to prevent people from doing bad things and not knowing about it. Some version of dbfdump will display the column definitions of you files. You either have some that have a different definition like a different version of the file, or you are picking up some files that are not compatible with the first file you add to the index. Hope this helps, -Steve W. John Bolster wrote: > Hello, > > Does anyone know what "DBF fields do not match" means in the output from > tile4ms? > > Do they not match to one another, or to a certain way they're meant to be, > or to the shapefile, or what? The files were created with tgr2shp so I don't > see why they should be bad. And what would I do about this--I can't imagine > I'm the only person to whom this has happened. > > Thanks for your help, > John Bolster > From assefa at DMSOLUTIONS.CA Tue Sep 21 07:30:10 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 21 Sep 2004 10:30:10 -0400 Subject: Dynamic SLD - variable passing problem In-Reply-To: <2576812186CDD411BF1500508B6DCE9506A8C46B@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Not sure what the problem is. Quick suggestions/questions : - which version of mapserver are you using. This addition (wms_sld_url) was done around Feb 2004 and is available in the latest realses. - can you subtitute wms_sld_url with wms_sld_body (the value for this metadata is the content of the sld document). Does this work ? If none of these work and the sld is valid, you could maybe send me a sample of your data,sld,... and I could do some testing here. Later, Pascoe,Tim [Burlington] wrote: > I?m working on setting up a dynamically generated SLD, in order to > provide user-defined filtering for my application. The SLD is being > applied to a virtual OGR layer, from my database. I can do it with a raw > request to mapserver by including the SLD= tag, and a path to my php > scrip which returns the SLD document. However, when I include the SLD in > the metadata for the layer, it seems as if the variable is not passed > into the SLD script from the CGI forms. The source for the layer is an > OGR/VRT being served as a WMS. > > My layer is set up as follows: > > 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" > "_http://localhost/CABIN/Maps/map/study_sld_script.php?study_id=%study_id%_" > > "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 > > PROJECTION > > "init=epsg:4326" > > END > > DUMP TRUE > > END > > Thanks? > > 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 > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From frans at GEODAN.NL Tue Sep 21 07:40:17 2004 From: frans at GEODAN.NL (Frans Knibbe) Date: Tue, 21 Sep 2004 16:40:17 +0200 Subject: GetFeatureInfo on ESRI binary grid In-Reply-To: <415031FD.3060708@pobox.com> Message-ID: Thank you for explaining. I thought 'post 4.2.' meant 'after 4.2.0'... I will patiently wait for 4.3, then. Greetings, Frans Frank Warmerdam wrote: > Frans Knibbe wrote: > >> Hello, >> >> I had not read the document Jim mentioned, but it nicely explains why, >> for an ArcINFO grid, setting a path to a grid directory yields the same >> results as setting a path to a file within that directory. >> >> I had read this document: >> http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery >> It explains that after MapServer 4.2 you should be able to perform >> queries on rasters. > > > Frans, > > Note that it means that raster query is not available in any of the 4.2.x > releases. Only in 4.3 (aka CVS dev tree). > >> And a thread in this list about the subject: >> http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0406/msg00600.html >> >> , >> where the question is asked whether the getFeatureInfo request will work >> on raster layers. >> >> I am wondering now if getFeatureInfo does not work on raster layers, or >> if I have made a mistake in the map configuration. If anyone has >> succeeded in querying a raster layer using getFeatureInfo, it would be >> nice to see the layer definition in the map file. > > > The answer would appear to be the same as then. The code looks a bit > like > it might work, but as far as I know no one has properly tested it. If it > isn't working there might be quite a few possible reasons. > > Best regards, From warmerdam at POBOX.COM Tue Sep 21 08:37:58 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 21 Sep 2004 11:37:58 -0400 Subject: GetFeatureInfo on ESRI binary grid In-Reply-To: <41503D51.3060004@geodan.nl> Message-ID: Frans Knibbe wrote: > Thank you for explaining. I thought 'post 4.2.' meant 'after 4.2.0'... > I will patiently wait for 4.3, then. Frans, Note that 4.3 is a "working version". There won't necessarily be formal releases till it is renamed 4.4 (stable). You can use 4.3 any time from CVS. There may be some sort of interim source snapshots and binary builds available somewhere too. The best way to ensure the featurs work properly in the stable release is to test them in 4.3. For win32 my OpenEV_FW releases include a MapServer build that is 4.3 based. 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 pdrake at GMAIL.COM Tue Sep 21 01:50:40 2004 From: pdrake at GMAIL.COM (Peter Drake) Date: Tue, 21 Sep 2004 04:50:40 -0400 Subject: case insensitive query Message-ID: I need help understanding how to make a qstring expression case insensitive. Specifically, I am using this query: qstring=('[NAME]'=~/^userenteredtext.*/) and I would like the user entered text to be matched case insensitive. Also, is there any way to specify the field to search (eg. [NAME]) with a wildcard so that more than one field is searched or do I simply need to build my qstring to test all of the fields (test each field individually)? Thanks for any help! Peter From baijingyu at HOTMAIL.COM Tue Sep 21 09:34:16 2004 From: baijingyu at HOTMAIL.COM (Jingyu Bai) Date: Tue, 21 Sep 2004 11:34:16 -0500 Subject: Finally compiled my MapServer 4.2.3, but got error when using it as cgi app. Message-ID: I am using windows XP professional version. Further info I got from VC6.0 debug is the following: Loaded 'C:\ApacheServer2.0\Apache2\cgi-bin\mapserv.exe', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\libmap.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\bgd.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\gdal12.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\xerces-c_1_7_0.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ODBC32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\comctl32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\SHLWAPI.DLL', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\NCSEcw.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\NCScnet.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wsock32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\NCSUtil.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\imagehlp.dll', no matching symbolic information found. Loaded 'D:\Projects\mapserver-4.2.0-distribution\dlls\NCSEcwC.dll', no matching symbolic information found. Loaded symbols for 'D:\Projects\mapserver-4.2.0- distribution\dlls\libcurl.dll' Loaded 'C:\WINDOWS\system32\winmm.dll', no matching symbolic information found. Loaded 'C:\oracle\ora92\bin\oci.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\imm32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\lpk.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\usp10.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common- Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\odbcint.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found. The thread 0x6C0 has exited with code 0 (0x0). The program 'C:\ApacheServer2.0\Apache2\cgi-bin\mapserv.exe' has exited with code 0 (0x0). From jb at NUCOMP.COM Tue Sep 21 09:46:27 2004 From: jb at NUCOMP.COM (John Bolster) Date: Tue, 21 Sep 2004 12:46:27 -0400 Subject: error message In-Reply-To: <41503925.3020705@swoodbridge.com> Message-ID: Thanks Steve, I have various layers of tiger/line data organized into one directory per county and I've been trying to make one tileindex for the whole thing. Based on what you're saying, do I need to run tile4ms separately on each different type of layer, so that I end up with a tileindex for the counties, one for the roads, one for the places, etc.? John > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Tuesday, September 21, 2004 10:22 AM > To: John Bolster > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] error message > > > John, > > The way tileindexes work is the you group a bunch of files into a > virtual layer. All the files must have the same dbf columns defined in > them and defined in the same order. This is because mapserver reads the > attribute layout of the first file it opens and uses that as the > template for all files in the virtual layer. > > So if the first file had attribute columns [A, B, C] and some other file > had [D, E] or [B, C, A] or whatever it would cause problems for > mapserver. If you ask mapserver to CLASS on C, it translates that to > column 3 and then tries to read column 3 from the [D, E] and gets an > error, or gets column A from [B, C, A] file, etc. This was causing a lot > of problems for people that did not understand the inner workings of > mapserver, so this check was added to prevent people from doing bad > things and not knowing about it. > > Some version of dbfdump will display the column definitions of you > files. You either have some that have a different definition like a > different version of the file, or you are picking up some files that are > not compatible with the first file you add to the index. > > Hope this helps, > -Steve W. > > John Bolster wrote: > > > Hello, > > > > Does anyone know what "DBF fields do not match" means in the output from > > tile4ms? > > > > Do they not match to one another, or to a certain way they're > meant to be, > > or to the shapefile, or what? The files were created with > tgr2shp so I don't > > see why they should be bad. And what would I do about this--I > can't imagine > > I'm the only person to whom this has happened. > > > > Thanks for your help, > > John Bolster > > > > From ed at TOPOZONE.COM Tue Sep 21 09:51:43 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 21 Sep 2004 12:51:43 -0400 Subject: error message Message-ID: John - TILEINDEX is a way to combine multiple homogeneous data sets into a single data set. All the data needs to be of the same type - for example, if you tried to group the counties and the roads into a single TILEINDEX layer, would that layer be TYPE POLYGON or TYPE LINE? And you'd have no individual control over symbology among the different types. TILEINDEX is useful for a single set of data that has been broken up into multiple files; all the individual files should be essentially identical, other than the fact that they represent subsets of the entire set differing only in the geographic area covered. - 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 John Bolster Sent: Tuesday, September 21, 2004 12:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] error message Thanks Steve, I have various layers of tiger/line data organized into one directory per county and I've been trying to make one tileindex for the whole thing. Based on what you're saying, do I need to run tile4ms separately on each different type of layer, so that I end up with a tileindex for the counties, one for the roads, one for the places, etc.? John > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Tuesday, September 21, 2004 10:22 AM > To: John Bolster > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] error message > > > John, > > The way tileindexes work is the you group a bunch of files into a > virtual layer. All the files must have the same dbf columns defined in > them and defined in the same order. This is because mapserver reads > the attribute layout of the first file it opens and uses that as the > template for all files in the virtual layer. > > So if the first file had attribute columns [A, B, C] and some other > file had [D, E] or [B, C, A] or whatever it would cause problems for > mapserver. If you ask mapserver to CLASS on C, it translates that to > column 3 and then tries to read column 3 from the [D, E] and gets an > error, or gets column A from [B, C, A] file, etc. This was causing a > lot of problems for people that did not understand the inner workings > of mapserver, so this check was added to prevent people from doing bad > things and not knowing about it. > > Some version of dbfdump will display the column definitions of you > files. You either have some that have a different definition like a > different version of the file, or you are picking up some files that > are not compatible with the first file you add to the index. > > Hope this helps, > -Steve W. > > John Bolster wrote: > > > Hello, > > > > Does anyone know what "DBF fields do not match" means in the output > > from tile4ms? > > > > Do they not match to one another, or to a certain way they're > meant to be, > > or to the shapefile, or what? The files were created with > tgr2shp so I don't > > see why they should be bad. And what would I do about this--I > can't imagine > > I'm the only person to whom this has happened. > > > > Thanks for your help, > > John Bolster > > > > From colwell at GEOG.UMN.EDU Tue Sep 21 10:13:28 2004 From: colwell at GEOG.UMN.EDU (Rebecca Colwell) Date: Tue, 21 Sep 2004 12:13:28 -0500 Subject: Highlighting a feature on a centered querymap map? In-Reply-To: Message-ID: Hey David! That did it for the centering of each polygon! Thank you so much! Any ideas on how to highlight the centered polygon? Thanks again! ~Becky David Fawcett wrote: > That should have been &mapsize=187+121 > > David. > > David J. Fawcett > MN Office of Environmental Assistance > > >>>>David Fawcett 9/17/2004 2:34:18 PM >>> > > Rebecca, > > Could you also add &mapsize+187+121 to your URL > > That may take care of the size issue. > > David. > > >>>>Rebecca Colwell 9/17/2004 2:08:52 PM >>> > > Hey everybody, > > I'm having two problems with a modified querymap I'm working with. In > an attempt to recenter to the queried feature, I followed Steve Lime's > advice in a past listserv post, which was: > > Just centering is easy. In you're query template you might > have > something like: > > > > > The result of this is almost exactly what I was looking for, except > for > two things. > > 1. The querymap map size takes the main map's size, instead of the > smaller size I put in the QUERYMAP part of the .map file (see below). > How can I regain access to my original querymap specifications? > > 2. The other thing I'd like to have is my selected polygon hilite. > Like > my first question, the hilite feature only works when I don't change > the > img src tag. Is there a way I can have my cake and eat it too? > > Thanks for helping, > > ~Becky > > > MAP > IMAGETYPE PNG24 > EXTENT -6153561 4847233 3841846 -3000000 > SIZE 450 294 > SHAPEPATH "data" > FONTSET "fonts/fonts.list" > PROJECTION > "proj=laea" > "ellps=clrk66" > "lat_0=45" > "lon_0=-100" > END > > QUERYMAP > STATUS ON > STYLE hilite > COLOR 0 255 0 > SIZE 187 121 > END From woodbri at SWOODBRIDGE.COM Tue Sep 21 10:26:13 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 21 Sep 2004 13:26:13 -0400 Subject: error message In-Reply-To: Message-ID: John, The typical way wo do this is to create separate tileindexes for each layer. So you would have a tileindex for roads, another for water lines and one for water polygons, etc. For tiger data this would me you would create approximately 10+- tileindexes. Then in the mapfile specify the TILEINDEX and leave the DATA statement out. I would recommend doing the above ... but for those that like to inflict pain on themselves ... There is an option on tile4ms like --directory-only that leaves off the final file name, it unfortunately does not combine the multiple directory entries into a single entry which renders it useless, unless you want to write a script to do that your self. Assuming you wrote the script yourself, you could then have ONE tileindex that would reference the extents of the county regardless of the data layers in it, and you could then set up your mapfile layers like: LAYER NAME "streets" TILEINDEX "my-county-tiles" DATA "roads" ... END This would cause path in the TILEINDEX to be concatenated with the DATA name to get the path to the data files. In this configuration only the /roads.shp will be looked at. I think I would recommend using the multiple indexes as it will be easier to build and maintain. -Steve John Bolster wrote: > Thanks Steve, > > I have various layers of tiger/line data organized into one directory per > county and I've been trying to make one tileindex for the whole thing. Based > on what you're saying, do I need to run tile4ms separately on each different > type of layer, so that I end up with a tileindex for the counties, one for > the roads, one for the places, etc.? > > John > > >>-----Original Message----- >>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >>Sent: Tuesday, September 21, 2004 10:22 AM >>To: John Bolster >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] error message >> >> >>John, >> >>The way tileindexes work is the you group a bunch of files into a >>virtual layer. All the files must have the same dbf columns defined in >>them and defined in the same order. This is because mapserver reads the >>attribute layout of the first file it opens and uses that as the >>template for all files in the virtual layer. >> >>So if the first file had attribute columns [A, B, C] and some other file >>had [D, E] or [B, C, A] or whatever it would cause problems for >>mapserver. If you ask mapserver to CLASS on C, it translates that to >>column 3 and then tries to read column 3 from the [D, E] and gets an >>error, or gets column A from [B, C, A] file, etc. This was causing a lot >>of problems for people that did not understand the inner workings of >>mapserver, so this check was added to prevent people from doing bad >>things and not knowing about it. >> >>Some version of dbfdump will display the column definitions of you >>files. You either have some that have a different definition like a >>different version of the file, or you are picking up some files that are >>not compatible with the first file you add to the index. >> >>Hope this helps, >> -Steve W. >> >>John Bolster wrote: >> >> >>>Hello, >>> >>>Does anyone know what "DBF fields do not match" means in the output from >>>tile4ms? >>> >>>Do they not match to one another, or to a certain way they're >> >>meant to be, >> >>>or to the shapefile, or what? The files were created with >> >>tgr2shp so I don't >> >>>see why they should be bad. And what would I do about this--I >> >>can't imagine >> >>>I'm the only person to whom this has happened. >>> >>>Thanks for your help, >>>John Bolster >>> >> >> > > From jb at NUCOMP.COM Tue Sep 21 10:49:12 2004 From: jb at NUCOMP.COM (John Bolster) Date: Tue, 21 Sep 2004 13:49:12 -0400 Subject: error message In-Reply-To: <41506435.8070206@swoodbridge.com> Message-ID: Yet again, thank you. I'll do multiple tileindexes. Then when I use shptree I assume I run it once for each of the different tileindex shp files, or is there a way to incorporate the larger-than-county layers into the spatial index? John > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Tuesday, September 21, 2004 1:26 PM > To: John Bolster > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] error message > > > John, > > The typical way wo do this is to create separate tileindexes for each > layer. So you would have a tileindex for roads, another for water lines > and one for water polygons, etc. For tiger data this would me you would > create approximately 10+- tileindexes. Then in the mapfile specify the > TILEINDEX and leave the DATA statement out. > > I would recommend doing the above ... but for those that like to inflict > pain on themselves ... > > There is an option on tile4ms like --directory-only that leaves off the > final file name, it unfortunately does not combine the multiple > directory entries into a single entry which renders it useless, unless > you want to write a script to do that your self. Assuming you wrote the > script yourself, you could then have ONE tileindex that would reference > the extents of the county regardless of the data layers in it, and you > could then set up your mapfile layers like: > > LAYER > NAME "streets" > TILEINDEX "my-county-tiles" > DATA "roads" > ... > END > > This would cause path in the TILEINDEX to be concatenated with the DATA > name to get the path to the data files. In this configuration only the > /roads.shp will be looked at. > > I think I would recommend using the multiple indexes as it will be > easier to build and maintain. > > -Steve > > John Bolster wrote: > > > Thanks Steve, > > > > I have various layers of tiger/line data organized into one > directory per > > county and I've been trying to make one tileindex for the whole > thing. Based > > on what you're saying, do I need to run tile4ms separately on > each different > > type of layer, so that I end up with a tileindex for the > counties, one for > > the roads, one for the places, etc.? > > > > John > > > > > >>-----Original Message----- > >>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > >>Sent: Tuesday, September 21, 2004 10:22 AM > >>To: John Bolster > >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU > >>Subject: Re: [UMN_MAPSERVER-USERS] error message > >> > >> > >>John, > >> > >>The way tileindexes work is the you group a bunch of files into a > >>virtual layer. All the files must have the same dbf columns defined in > >>them and defined in the same order. This is because mapserver reads the > >>attribute layout of the first file it opens and uses that as the > >>template for all files in the virtual layer. > >> > >>So if the first file had attribute columns [A, B, C] and some other file > >>had [D, E] or [B, C, A] or whatever it would cause problems for > >>mapserver. If you ask mapserver to CLASS on C, it translates that to > >>column 3 and then tries to read column 3 from the [D, E] and gets an > >>error, or gets column A from [B, C, A] file, etc. This was causing a lot > >>of problems for people that did not understand the inner workings of > >>mapserver, so this check was added to prevent people from doing bad > >>things and not knowing about it. > >> > >>Some version of dbfdump will display the column definitions of you > >>files. You either have some that have a different definition like a > >>different version of the file, or you are picking up some files that are > >>not compatible with the first file you add to the index. > >> > >>Hope this helps, > >> -Steve W. > >> > >>John Bolster wrote: > >> > >> > >>>Hello, > >>> > >>>Does anyone know what "DBF fields do not match" means in the > output from > >>>tile4ms? > >>> > >>>Do they not match to one another, or to a certain way they're > >> > >>meant to be, > >> > >>>or to the shapefile, or what? The files were created with > >> > >>tgr2shp so I don't > >> > >>>see why they should be bad. And what would I do about this--I > >> > >>can't imagine > >> > >>>I'm the only person to whom this has happened. > >>> > >>>Thanks for your help, > >>>John Bolster > >>> > >> > >> > > > > > > From woodbri at SWOODBRIDGE.COM Tue Sep 21 11:06:34 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 21 Sep 2004 14:06:34 -0400 Subject: error message In-Reply-To: Message-ID: John, You should run shptree on all you tileindexes AND on all your data file. I typically do something like the following on linux: find /path/to/data -name "*.shp" -exec shptree {} \; which will find all *.shp file in the directory tree /path/to/data and run shptree on them. -Steve John Bolster wrote: > Yet again, thank you. > > I'll do multiple tileindexes. Then when I use shptree I assume I run it once > for each of the different tileindex shp files, or is there a way to > incorporate the larger-than-county layers into the spatial index? > > John > > >>-----Original Message----- >>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >>Sent: Tuesday, September 21, 2004 1:26 PM >>To: John Bolster >>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] error message >> >> >>John, >> >>The typical way wo do this is to create separate tileindexes for each >>layer. So you would have a tileindex for roads, another for water lines >>and one for water polygons, etc. For tiger data this would me you would >>create approximately 10+- tileindexes. Then in the mapfile specify the >>TILEINDEX and leave the DATA statement out. >> >>I would recommend doing the above ... but for those that like to inflict >>pain on themselves ... >> >>There is an option on tile4ms like --directory-only that leaves off the >>final file name, it unfortunately does not combine the multiple >>directory entries into a single entry which renders it useless, unless >>you want to write a script to do that your self. Assuming you wrote the >>script yourself, you could then have ONE tileindex that would reference >>the extents of the county regardless of the data layers in it, and you >>could then set up your mapfile layers like: >> >>LAYER >> NAME "streets" >> TILEINDEX "my-county-tiles" >> DATA "roads" >> ... >>END >> >>This would cause path in the TILEINDEX to be concatenated with the DATA >>name to get the path to the data files. In this configuration only the >>/roads.shp will be looked at. >> >>I think I would recommend using the multiple indexes as it will be >>easier to build and maintain. >> >>-Steve >> >>John Bolster wrote: >> >> >>>Thanks Steve, >>> >>>I have various layers of tiger/line data organized into one >> >>directory per >> >>>county and I've been trying to make one tileindex for the whole >> >>thing. Based >> >>>on what you're saying, do I need to run tile4ms separately on >> >>each different >> >>>type of layer, so that I end up with a tileindex for the >> >>counties, one for >> >>>the roads, one for the places, etc.? >>> >>>John >>> >>> >>> >>>>-----Original Message----- >>>>From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] >>>>Sent: Tuesday, September 21, 2004 10:22 AM >>>>To: John Bolster >>>>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>>>Subject: Re: [UMN_MAPSERVER-USERS] error message >>>> >>>> >>>>John, >>>> >>>>The way tileindexes work is the you group a bunch of files into a >>>>virtual layer. All the files must have the same dbf columns defined in >>>>them and defined in the same order. This is because mapserver reads the >>>>attribute layout of the first file it opens and uses that as the >>>>template for all files in the virtual layer. >>>> >>>>So if the first file had attribute columns [A, B, C] and some other file >>>>had [D, E] or [B, C, A] or whatever it would cause problems for >>>>mapserver. If you ask mapserver to CLASS on C, it translates that to >>>>column 3 and then tries to read column 3 from the [D, E] and gets an >>>>error, or gets column A from [B, C, A] file, etc. This was causing a lot >>>>of problems for people that did not understand the inner workings of >>>>mapserver, so this check was added to prevent people from doing bad >>>>things and not knowing about it. >>>> >>>>Some version of dbfdump will display the column definitions of you >>>>files. You either have some that have a different definition like a >>>>different version of the file, or you are picking up some files that are >>>>not compatible with the first file you add to the index. >>>> >>>>Hope this helps, >>>> -Steve W. >>>> >>>>John Bolster wrote: >>>> >>>> >>>> >>>>>Hello, >>>>> >>>>>Does anyone know what "DBF fields do not match" means in the >> >>output from >> >>>>>tile4ms? >>>>> >>>>>Do they not match to one another, or to a certain way they're >>>> >>>>meant to be, >>>> >>>> >>>>>or to the shapefile, or what? The files were created with >>>> >>>>tgr2shp so I don't >>>> >>>> >>>>>see why they should be bad. And what would I do about this--I >>>> >>>>can't imagine >>>> >>>> >>>>>I'm the only person to whom this has happened. >>>>> >>>>>Thanks for your help, >>>>>John Bolster >>>>> >>>> >>>> >>> >> > From sgillies at FRII.COM Tue Sep 21 12:00:49 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 21 Sep 2004 13:00:49 -0600 Subject: [Java MapScript HOWTO] updated In-Reply-To: Message-ID: On Sep 20, 2004, at 3:46 AM, Umberto Nicoletti wrote: > Some time has passed since my last howto on java mapscript for > mapserver > 4.0. > For those of you that still interested in it I have written > and updated howto for mapserver 4.2.3 (latest stable). > A patch has been proposed to the mapserver dev team as bug ID: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=876 > > The howto is available at the following address: > http://www.unicolet.org/mapserver/compile.html > > Regards, > Umberto > > The patch has been accepted with some very small modification for both CVS HEAD (4.3) and branch-4-2. Thanks to Umberto, building Java mapscript on Unix/Linux is as simple as cd mapserver ./configure ... make cd mapscript/java make I think that the major thing lacking in Java mapscript now is a bridge between the MapServer error stack and Java exceptions. I'm not a Java user and can't justify the time to lead on this, but am happy to help as much as I can. Looking at the Python exception mechanism in mapscript/python/pymodule.i and carefully reading the SWIG docs would be the place for someone to start. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From manjiri_r at HOTMAIL.COM Tue Sep 21 12:17:03 2004 From: manjiri_r at HOTMAIL.COM (Manjiri Andhare) Date: Tue, 21 Sep 2004 14:17:03 -0500 Subject: MapServer use with ArcGIS Message-ID: Hello!! I'm really a new MapServer user, and trying to install MapServer on my machine.How could I use MapServer and ArcGIS s/w(ArcCatalog,ArcMap) togehter and build the application? Manjiri From berlin.brown at GMAIL.COM Tue Sep 21 12:36:35 2004 From: berlin.brown at GMAIL.COM (Berlin Brown) Date: Tue, 21 Sep 2004 15:36:35 -0400 Subject: MapServer use with ArcGIS In-Reply-To: Message-ID: You can interface with ArcSDE. On Tue, 21 Sep 2004 14:17:03 -0500, Manjiri Andhare wrote: > Hello!! > I'm really a new MapServer user, and trying to install MapServer on my > machine.How could I use MapServer and ArcGIS s/w(ArcCatalog,ArcMap) > togehter and build the application? > Manjiri > From dirk.brehm at BGU-GEOSERVICE.DE Tue Sep 21 12:32:15 2004 From: dirk.brehm at BGU-GEOSERVICE.DE (Dirk Brehm) Date: Tue, 21 Sep 2004 14:32:15 -0500 Subject: Mapscript and query via TEMPLATE Message-ID: Dear list! I'm still a novice in using mapserver and chameleon. Has anybody an idea how to link a point theme to PDF - document via TEMPLATE. Using cgi it worked. With mapscript ttt_query.html is used and the result is a htlm dump of the shape attribute. Thanks all! From mtperry78 at SBCGLOBAL.NET Tue Sep 21 12:55:15 2004 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Tue, 21 Sep 2004 12:55:15 -0700 Subject: MapServer use with ArcGIS In-Reply-To: Message-ID: First of all, Mapserver can read shapefiles, coverages, ArcSDE layers and GRIDs so you can use ArcMap/ArcInfo to create your data and mapserver to serve it without any file conversions. Mapserver can also be used to create a Web Mapping Service (WMS) server. There are extensive docs to help you accomplish that... http://mapserver.gis.umn.edu/doc42/wms-server-howto.html On the ESRI side, the "Interoperability Extension" allows you to integrate WMS into ArcMap 8.3. We have been evaluating this approach at Humboldt State University and, aside from some annoying glitches in ESRI's client interface, it works quite well. WMS is just raster data (images) so ArcSDE would be a more comprehensive approach for vector data if you have it. Matt Perry Natural Resources Humboldt State University --- Manjiri Andhare wrote: > Hello!! > I'm really a new MapServer user, and trying to > install MapServer on my > machine.How could I use MapServer and ArcGIS > s/w(ArcCatalog,ArcMap) > togehter and build the application? > Manjiri > From yecarrillo at YAHOO.COM Tue Sep 21 15:05:51 2004 From: yecarrillo at YAHOO.COM (Eduin Yezid Carrillo Vega) Date: Tue, 21 Sep 2004 17:05:51 -0500 Subject: Convert ArcView views to GIS Open Source and Free alternatives Message-ID: This tool can help you to convert ArcView views to other GIS Open Source and Free alternatives: JUMP, MapServer, QGis, ArcExplorer and ArcExplorer Java http://gix.sourceforge.net Please test it and send me your feedback Thank You From ARyan at CO.LINN.OR.US Tue Sep 21 15:27:16 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 21 Sep 2004 15:27:16 -0700 Subject: swig mapscript outputformat Message-ID: A minor thing with swig mapscript: Should map.outputformat be map.outputFormat? Adam From ace at SUARES.NL Tue Sep 21 15:24:26 2004 From: ace at SUARES.NL (Ace Suares) Date: Tue, 21 Sep 2004 18:24:26 -0400 Subject: PHP-Mapscript question In-Reply-To: <200409201547.46321.ace@suares.nl> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday 20 September 2004 15:47, Ace Suares wrote: > Dear people, > > Mapserver is a great toy. Iit's the first time I am doing GIS in a > project and after looking around for quite some while, I decided to try > mapserver. > > But I've got some troubles, of course. > > I am using php-mapscript (I hope this is the right list ?) > and I would like to use a basic mapfile and then add dynamic data to > it. > > In this instance I have a shapefile with 483 cities, but the .dbf file > only has their name and number of inhabitants. Now I'd like to add a > score to it, which I retrieve live from a mysql database. The score can > be 1-7, depending on some questionaires that citizens filled in. Goal > is to color the cities different according to their score. > > I tried modifying the 'values' from the shapeObj(ects) but these are > readonly. I do *not* want to wrtie a .dbf file with the dynamic data to > disk, not do I want to use Postgress or Oracle or wait for mysql > spatial extentions. > > Anyone can point me in the right direction !? > > Grateful, as always, > > Ace Anyone !? +_Ace - -- It's not possible to treat coherently that which is incoherent. - Date's Incoherence Principle Ace Suares' Internet Consultancy mail: PObox 2599, 4800 CN Breda, The Netherlands phone: +31 6 244 33 608 (Jan Veuger, support Netherlands) emergency: +5999 786 23 73 voicemail & fax: +31 848 707 705 web: http://www.suares.nl email: support at suares.nl -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBUKoay7boE8xtIjURAkfqAJ9HqbI2TOX+4NQT+uTKGreIpuwMbQCfRmqn 78VSBhear+94HRmeA5/n+mg= =0xgC -----END PGP SIGNATURE----- From sgillies at FRII.COM Tue Sep 21 15:40:04 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 21 Sep 2004 16:40:04 -0600 Subject: swig mapscript outputformat In-Reply-To: Message-ID: On Sep 21, 2004, at 4:27 PM, Ryan, Adam wrote: > A minor thing with swig mapscript: Should map.outputformat be > map.outputFormat? > > Adam Adam, MapServer convention is that all object attributes have squished together lowercase names. "labelitem", "classitem", etc. Really, "outputformat" is an unfortunate name for this attribute -- the only other mapscript object attribute which is an instance of outputFormatObj is image.format and it would've been great if these agreed. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From banders at REFRACTIONS.NET Tue Sep 21 15:16:55 2004 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Tue, 21 Sep 2004 15:16:55 -0700 Subject: Mapfile for CITE Tests Message-ID: I am looking for a mapfile that I can use to run the OGC WMS CITE tests against. Does anyone have a file that I can use and adapt? Brock Anderson From gis at UNDPHAIS.ORG.NP Tue Sep 21 20:12:59 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Wed, 22 Sep 2004 08:57:59 +0545 Subject: PHP Mapscript and join databases Message-ID: Hi, Is there a way to modify/create the "JOIN" object of a layer with php mapscript? I need to join the spatial data with a table resulting from an sql query. The problem is that the name of the table changes depending upon the query. I see no references to join databases in the php mapscript class reference guide. Do I HAVE to create a new mapfile everytime I need to join the data to a different table? Or is there an easier workaround to this? I would really appreciate any help I can get on this. Thanks. -- 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 sudip_mca at SIFY.COM Tue Sep 21 22:13:23 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Wed, 22 Sep 2004 11:13:23 +0600 Subject: buffer Message-ID: Hello, i am working upon a GIS-project using PHP-mapscript and mapserver.Now i have to buffer areas of the map which are at a given distance away from a line layer.I have to shade the region with different color. Any comments and code in this respect will be greatfully accepted. Thanking you............Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed Sep 22 02:24:53 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 22 Sep 2004 08:24:53 -0100 Subject: MapServer use with ArcGIS {Scanned} In-Reply-To: Message-ID: Hi, You can use shape files in both system. ArcGis projects should be translated to mapserver map files. As far as I know Geobases are not supported in mapserver. Use ArcGIS to update, analyse data and use mapserver to publish data. Bye Zoltan On Tue, 21 Sep 2004, Manjiri Andhare wrote: > Hello!! > I'm really a new MapServer user, and trying to install MapServer on my > machine.How could I use MapServer and ArcGIS s/w(ArcCatalog,ArcMap) > togehter and build the application? > Manjiri > From unicoletti at PROMETEO.IT Tue Sep 21 23:48:11 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 22 Sep 2004 08:48:11 +0200 Subject: [Java MapScript HOWTO] updated In-Reply-To: <8D6A3C20-0C00-11D9-92E1-000D9329D732@frii.com> Message-ID: On Tue, 2004-09-21 at 21:00, Sean Gillies wrote: > On Sep 20, 2004, at 3:46 AM, Umberto Nicoletti wrote: > > > Some time has passed since my last howto on java mapscript for > > mapserver > > 4.0. > > For those of you that still interested in it I have written > > and updated howto for mapserver 4.2.3 (latest stable). > > A patch has been proposed to the mapserver dev team as bug ID: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=876 > > > > The howto is available at the following address: > > http://www.unicolet.org/mapserver/compile.html > > > > Regards, > > Umberto > > > > > > The patch has been accepted with some very small modification for both > CVS HEAD (4.3) and branch-4-2. Thanks to Umberto, building Java > mapscript > on Unix/Linux is as simple as > > cd mapserver > ./configure ... > make > cd mapscript/java > make > > I think that the major thing lacking in Java mapscript now is a bridge > between the MapServer error stack and Java exceptions. I'm not a Java > user and can't justify the time to lead on this, but am happy to help > as much as I can. Looking at the Python exception mechanism in > mapscript/python/pymodule.i and carefully reading the SWIG docs would > be the place for someone to start. > That is already on my checklist (after docs about running mapserver on tomcat). I definitely need that sorted out to avoid java core dumps on servlet container. Regards, Umberto > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > From stepan.kafka at CENTRUM.CZ Wed Sep 22 00:09:38 2004 From: stepan.kafka at CENTRUM.CZ (Stepan Kafka) Date: Wed, 22 Sep 2004 09:09:38 +0200 Subject: buffer Message-ID: There is no buffer creating function in Mapserver (as I know) but you may imitate it by drawing line with defined thickness, e.g.: LAYER ...some definitions... SIZEUNITS meters CLASS SYMBOL "circle" SIZE 100 # 100m buffer radius COLOR 255 0 0 END LAYER Stepan Kafka ______________________________________________________________ > Od: sudip dey > Komu: MAPSERVER-USERS at LISTS.UMN.EDU > Datum: Wed, 22 Sep 2004 11:13:23 +0600 > P?edm?t: [UMN_MAPSERVER-USERS] buffer > > Hello, > i am working upon a GIS-project using PHP-mapscript and mapserver.Now i have to buffer areas of the map which are at a given distance away from a line layer.I have to shade the region with different color. > > Any comments and code in this respect will be greatfully accepted. > Thanking you............Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From sander at GEODAN.NL Wed Sep 22 01:34:30 2004 From: sander at GEODAN.NL (Sander Dee) Date: Wed, 22 Sep 2004 10:34:30 +0200 Subject: line symbols Message-ID: Hi, I need some help creating symbol definitions for some line symbols. I have attached 2 png's. I need to recreate these to mapserver line symbols. I hope anyone has an idea how to do this. Thanks in advance, Sander Dee -------------- next part -------------- A non-text attachment was scrubbed... Name: driehoekmarkering.png Type: image/png Size: 249 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hoogteverschillijn.png Type: image/png Size: 221 bytes Desc: not available URL: From pf at MAPMEDIA.DE Wed Sep 22 02:39:38 2004 From: pf at MAPMEDIA.DE (Peter Freimuth) Date: Wed, 22 Sep 2004 11:39:38 +0200 Subject: line symbols In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 249 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/png Size: 221 bytes Desc: not available URL: From lfilak at MEDINACO.ORG Wed Sep 22 05:44:54 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 22 Sep 2004 08:44:54 -0400 Subject: PHP-Mapscript question Message-ID: The following message was sent by Ace Suares on Tue, 21 Sep 2004 18:24:26 -0400. > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Monday 20 September 2004 15:47, Ace Suares wrote: > > Dear people, > > > > Mapserver is a great toy. Iit's the first time I am doing GIS in a > > project and after looking around for quite some while, I decided to try > > mapserver. > > > > But I've got some troubles, of course. > > > > I am using php-mapscript (I hope this is the right list ?) > > and I would like to use a basic mapfile and then add dynamic data to > > it. > > > > In this instance I have a shapefile with 483 cities, but the .dbf file > > only has their name and number of inhabitants. Now I'd like to add a > > score to it, which I retrieve live from a mysql database. The score can > > be 1-7, depending on some questionaires that citizens filled in. Goal > > is to color the cities different according to their score. > > > > I tried modifying the 'values' from the shapeObj(ects) but these are > > readonly. I do *not* want to wrtie a .dbf file with the dynamic data to > > disk, not do I want to use Postgress or Oracle or wait for mysql > > spatial extentions. > > > > Anyone can point me in the right direction !? > > > > Grateful, as always, > > > > Ace > > Anyone !? > > +_Ace Ace, Note: This is only one way of doing it. If your using mapscript then you have control over what is drawn when. You can select the records from mysql that match a score of 1 and then use mapscript to loop through each result and change the layer class expression to include the city name(s) dynamically. This assumes that your mysql table has the score & the city name as fields and your dbf has the exact same city name as a field. HTH Lowell From stefano.bonnin at COMAI.TO Wed Sep 22 05:34:41 2004 From: stefano.bonnin at COMAI.TO (Stefano Bonnin) Date: Wed, 22 Sep 2004 14:34:41 +0200 Subject: gdal 1.2.2 problem Message-ID: Hi all, I have just installed GDAL 1.2.2 with MapServer 4.2.3 and I get the following error: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named '@_ctr_icb'. Warning: [MapServer Error]: IReadBlock failed at X offset 0, Y offset 0: GDALRasterIO() failed: drawGDAL() this is a simple raster layer: LAYER NAME "@_ctr_icb" METADATA "NAME" "@_ctr_icb" END DATA "ctr_icb.tif" TYPE RASTER STATUS ON MAXSCALE 50000000 MINSCALE 0 END and with gdalinfo (1.2.2 version) I obtain the following information on the tif image: Driver: GTiff/GeoTIFF Size is 3156, 3154 Coordinate System is `' Origin = (1394366.840860,5002513.327460) Pixel Size = (1.26804000,-1.26804000) Metadata: TIFFTAG_XRESOLUTION=7.8860998 TIFFTAG_YRESOLUTION=7.8860998 TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm) Corner Coordinates: Upper Left ( 1394366.841, 5002513.327) Lower Left ( 1394366.841, 4998513.929) Upper Right ( 1398368.775, 5002513.327) Lower Right ( 1398368.775, 4998513.929) Center ( 1396367.808, 5000513.628) Band 1 Block=3156x3154 Type=Byte, ColorInterp=Palette Color Table (RGB with 2 entries) 0: 255,255,255,255 1: 0,0,0,255 I have compiled gdal with: ./configure --with-ogr --with-pg=/usr/local/pgsql-8.0.0/bin/pg_config --with-geos=/usr/local/bin/geos-config --with-static-proj4=../proj-4.4.8 and mapserver with: ./configure --with-proj=../proj-4.4.8/ --with-php=../php-4.3.8/ --with-postgis=/usr/local/pgsql-8.0.0/bin/pg_config -with-freetype=../freetype-2.1.9 --with-gd=static,../gd-2.0.28 --without-tiff --with-gdal=/usr/local/bin/gdal-config --with-ogr=/usr/local/bin/gdal-config --with-httpd=/sslwww/bin/httpd the old compiled version with gdal 1.1.9 worked well. I have also tryed the 1.2.1 gdal version with the same result. Thanks in advance. RedS -------------- next part -------------- An HTML attachment was scrubbed... URL: From nsavard at DMSOLUTIONS.CA Wed Sep 22 05:37:18 2004 From: nsavard at DMSOLUTIONS.CA (Normand Savard) Date: Wed, 22 Sep 2004 08:37:18 -0400 Subject: Mapfile for CITE Tests In-Reply-To: <4150A857.8040002@refractions.net> Message-ID: Brock Anderson wrote: > I am looking for a mapfile that I can use to run the OGC WMS CITE tests > against. Does anyone have a file that I can use and adapt? > > Brock Anderson > Brock, Actually Paul Ramsey has it. Norm From warmerdam at POBOX.COM Wed Sep 22 07:02:18 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Sep 2004 10:02:18 -0400 Subject: gdal 1.2.2 problem In-Reply-To: <11f201c4a0a0$88bd37d0$0501a8c0@comai04> Message-ID: Stefano Bonnin wrote: > Hi all, > > I have just installed GDAL 1.2.2 with MapServer 4.2.3 and I get the > following error: > > *Warning*: [MapServer Error]: msDrawMap(): Failed to draw layer named > '@_ctr_icb' . > *Warning*: [MapServer Error]: IReadBlock failed at X offset 0, Y offset > 0: GDALRasterIO() failed: drawGDAL() > > this is a simple raster layer: > ... > Band 1 Block=3156x3154 Type=Byte, ColorInterp=Palette > Color Table (RGB with 2 entries) > 0: 255,255,255,255 > 1: 0,0,0,255 Stefano, According to the above, the entire file is being treated as one big tile which may be quite in-efficient and memory hungry. But I don't think that is your problem. Perhaps you could place the file somewhere for me to inspect? I would also note that the libtiff support in GDAL 1.2.2 has been discovered to have been incorrectly configured on Unix and will not include a number of important compression types. (fax, packbits, deflate and LZW are missing I think). 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 tchaddad at CSHORE.COM Wed Sep 22 09:04:27 2004 From: tchaddad at CSHORE.COM (TC Haddad) Date: Wed, 22 Sep 2004 11:04:27 -0500 Subject: Once again: Truetype symbols Message-ID: Frank, did you try something like this in your map file: CLASS Name "Arbres isol=E9s" Template "dasistegal.html" STYLE Symbol "Tree" Color 255 0 0 Size 50 END END I think STYLE is mandatory for Mapserver 4.x Tanya On Tue, 21 Sep 2004 10:13:54 +0200, Frank Broniewski wrote: >Hello List > >I am trying to use some characters from esris ttf fonts for my map. But I >only get squares as symbols, not the expected Treesymbol. I even tried to >use the arial font, but even there I get only squares. Does anybody have a >clue what this is about? I tried changing fonts, renaming the fonts, tried >using the Ascii codes instead of typing the letter but nothing helped. >I did search the archives for such behavior, but the tips mentioned there >(moving the symbols to symbol file) did not help. > >I run mapserver on Windows Xp Home with Sp2, Apache 2.0.50 and PHP 4.3.8 >installed. Mapserver Version is 4.2.1, PHP Map Script info from phpinfo() is >$Revision: 1.194.2.4 $ $Date: 2004/07/07 19:37:19 $ > >I created a symbol definition file which contains my "symbol". Here is the >relevant part: > SYMBOL > NAME "Tree" > TYPE TRUETYPE > FONT forest2 > FILLED TRUE > ANTIALIAS TRUE > CHARACTER "j" > END > >In the fontlist I defined the font forest2: >forest2 c:\windows\fonts\esri_652.ttf > >In the mapfile I call the symbol with the following lines of code: > CLASS > Name "Arbres isol?s" > Template "dasistegal.html" > Symbol "Tree" > Color 255 0 0 > Size 50 > END > > > > > >Frank Broniewski >Mus?e National d'Histoire et d'Art >Section Pr?histoire / Projet EPC From edspremolla at ANTEL.COM.UY Wed Sep 22 10:07:51 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Wed, 22 Sep 2004 15:07:51 -0200 Subject: case insensitive query In-Reply-To: <6ca1256e04092101502d08437c@mail.gmail.com> Message-ID: I can't find a way to do it with mapserver regex. I use a javascript function to change the regex into : /^[uU][sS][eE] ...... Busqueda por radiobase function reparo(){ t=document.getElementById("rbs_name"); str=new String(t.value); stri=new String("/"); for (i=0;i I need help understanding how to make a qstring expression case > insensitive. Specifically, I am using this query: > > qstring=('[NAME]'=~/^userenteredtext.*/) > > and I would like the user entered text to be matched case insensitive. > Also, is there any way to specify the field to search (eg. [NAME]) > with a wildcard so that more than one field is searched or do I simply > need to build my qstring to test all of the fields (test each field > individually)? > > Thanks for any help! > Peter -- Eduardo Spremolla Antel I+D From bigfoot at MAIN-TASK.COM Wed Sep 22 10:40:18 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Wed, 22 Sep 2004 12:40:18 -0500 Subject: buffer In-Reply-To: <1095831803.415110fb16509@www.mail.sify.com> Message-ID: sudip dey wrote: >Hello, > i am working upon a GIS-project using PHP-mapscript and >mapserver.Now i have to buffer areas of the map which are at a given >distance away from a line layer.I have to shade the region with >different color. > > Any comments and code in this respect will >be greatfully accepted. > Thanking you............Sudip > You can accomplish this task using postgis. It could be something like: data="select desired_buffer from(select buffer(the_geom,2) as desired_buffer,oid from the_table) using srid=1 using unique oid" Hope that helps, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From chodgson at REFRACTIONS.NET Wed Sep 22 11:43:52 2004 From: chodgson at REFRACTIONS.NET (Chris Hodgson) Date: Wed, 22 Sep 2004 11:43:52 -0700 Subject: Tiled JPEG-2000 layer Message-ID: I'm trying to setup mapserver to show a tiled set of jpeg-2000 images. I created the images from tif/wld file pairs using commands like this: gdal_translate -of JPEG2000 -co "rate=0.1" 92g021_1_alb.tif 92g021_1_alb.jp2 The original files were around 180MB each and they compress to %10 of te original size (as per the specified rate). Then I try to build a tile index for mapserver using: gdaltindex jp2_tiles *.jp2 and the resulting jp2_tiles.shp file is corrupt in some way - crashes ArcMap9 and causes JUMP to throw an IndexOutOfBoundsException. It does open in Arcview3, however. I'm not sure if this was a problem for mapserver, but just to make sure I built the tileindex on the tiff files and then did a search/replace in the dbf file (ie. s/\.tif/.dbf/g ). When I try to look at the layer, even when zoomed in to just a single tile, the mapserver process sucks up 2Gigs of memory and 100% cpu for several minutes before it finally returns the resulting image - and sometimes it doesn't display an image at all (perhaps it times out?). My layer definition looks like this: LAYER NAME "orthophoto_jp2" METADATA "wms_title" "orthophoto_jp2" END STATUS ON TILEINDEX "jp2_tiles.shp" TILEITEM "Location" TYPE RASTER PROJECTION "init=epsg:42102" END END I'm not reprojecting the data, I'm asking for it in the same epsg it is declared to be in. I'm using a very recently downloaded and compiled: - MapServer version 4.2.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE - GDAL 1.2.1.0, released 2004/06/23 - ftp://ftp.remotesensing.org/gdal/jasper-1.701.0.uuid.tar.gz One more detail, my original tif files have had several overview layers added using gdaladdo - I don't think that should affect anything but who knows. Am I doing something wrong here, or is there a know problem with this setup? I don't expect that a dual-3GHz CPU/2GB memory machine should take so long and so much memory to open a shapefile, locate the correct jp2 file(s) and open and render them... Chris From ken at SANDNARROWS.COM Wed Sep 22 12:41:43 2004 From: ken at SANDNARROWS.COM (Ken Sanderson) Date: Wed, 22 Sep 2004 14:41:43 -0500 Subject: Adding points via mapserver without mapscript Message-ID: You could use the pixel coords of the map to use DHTML to add the points as a layer over top of the map. From ed at TOPOZONE.COM Wed Sep 22 12:44:56 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 22 Sep 2004 15:44:56 -0400 Subject: Tiled JPEG-2000 layer Message-ID: Chris - As Frank Warmerdam has pointed out on the GDAL list, the Jasper library is not very suitable for use in production applications, as it completely decompresses each image into memory during processing. I have not heard any changes in the status of this implementation, and I'd suggest looking to the Kakadu library for production usage and performance. - 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 Chris Hodgson Sent: Wednesday, September 22, 2004 2:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Tiled JPEG-2000 layer I'm trying to setup mapserver to show a tiled set of jpeg-2000 images. I created the images from tif/wld file pairs using commands like this: gdal_translate -of JPEG2000 -co "rate=0.1" 92g021_1_alb.tif 92g021_1_alb.jp2 The original files were around 180MB each and they compress to %10 of te original size (as per the specified rate). Then I try to build a tile index for mapserver using: gdaltindex jp2_tiles *.jp2 and the resulting jp2_tiles.shp file is corrupt in some way - crashes ArcMap9 and causes JUMP to throw an IndexOutOfBoundsException. It does open in Arcview3, however. I'm not sure if this was a problem for mapserver, but just to make sure I built the tileindex on the tiff files and then did a search/replace in the dbf file (ie. s/\.tif/.dbf/g ). When I try to look at the layer, even when zoomed in to just a single tile, the mapserver process sucks up 2Gigs of memory and 100% cpu for several minutes before it finally returns the resulting image - and sometimes it doesn't display an image at all (perhaps it times out?). My layer definition looks like this: LAYER NAME "orthophoto_jp2" METADATA "wms_title" "orthophoto_jp2" END STATUS ON TILEINDEX "jp2_tiles.shp" TILEITEM "Location" TYPE RASTER PROJECTION "init=epsg:42102" END END I'm not reprojecting the data, I'm asking for it in the same epsg it is declared to be in. I'm using a very recently downloaded and compiled: - MapServer version 4.2.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=GDAL INPUT=SHAPEFILE - GDAL 1.2.1.0, released 2004/06/23 - ftp://ftp.remotesensing.org/gdal/jasper-1.701.0.uuid.tar.gz One more detail, my original tif files have had several overview layers added using gdaladdo - I don't think that should affect anything but who knows. Am I doing something wrong here, or is there a know problem with this setup? I don't expect that a dual-3GHz CPU/2GB memory machine should take so long and so much memory to open a shapefile, locate the correct jp2 file(s) and open and render them... Chris From warmerdam at POBOX.COM Wed Sep 22 12:57:50 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Sep 2004 15:57:50 -0400 Subject: Tiled JPEG-2000 layer In-Reply-To: <4151C7E8.8080501@refractions.net> Message-ID: Chris Hodgson wrote: > I'm trying to setup mapserver to show a tiled set of jpeg-2000 images. I > created the images from tif/wld file pairs using commands like this: > > gdal_translate -of JPEG2000 -co "rate=0.1" 92g021_1_alb.tif > 92g021_1_alb.jp2 > > The original files were around 180MB each and they compress to %10 of te > original size (as per the specified rate). Then I try to build a tile > index for mapserver using: > > gdaltindex jp2_tiles *.jp2 > > and the resulting jp2_tiles.shp file is corrupt in some way - crashes > ArcMap9 and causes JUMP to throw an IndexOutOfBoundsException. It does > open in Arcview3, however. I'm not sure if this was a problem for > mapserver, but just to make sure I built the tileindex on the tiff files > and then did a search/replace in the dbf file (ie. s/\.tif/.dbf/g ). Chris, I hope you mean you changed ".tif" to ".jp2". There are two issues here. One is that gdaltindex produced a shapfile that is corrupt in some fashion. I would like to investigate that. Could you submit a GDAL bugzilla entry including the index files that are causing the problems? Also, if you can easily determine why jump considers them corrupt that would be good to know too. ... > Am I doing something wrong here, or is there a know problem with this > setup? I don't expect that a dual-3GHz CPU/2GB memory machine should > take so long and so much memory to open a shapefile, locate the correct > jp2 file(s) and open and render them... As Ed mentioned, the JasPer driver is inappropriate to use for such large chunks of imagery. In my experience the JasPer implementation actually uses alot more RAM than the decompressed image while working. In addition to Kakadu, you could also look at using the ECW 3.0 SDK (if on Windows) or the MrSID SDK, if you happen to have that, for JPEG2000. There are *too many* options! If you can split your tiles into much smaller chunks (say - 5MB uncompressed) then the JasPer implementation might be fine. 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 siki at AGT.BME.HU Wed Sep 22 16:12:17 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 22 Sep 2004 22:12:17 -0100 Subject: Once again: Truetype symbols {Scanned} In-Reply-To: Message-ID: Hi, You can use symbol fonts only, (as far as i know) so esri symbols are ok but arial, times, etc. not. In the symbol definition you must add 61440 to the code of the character. SYMBOL NAME 'example' TYPE TRUETYPE FONT your_symbol_font CHARACTER "" # for code 41 END Bye Zoltan On Wed, 22 Sep 2004, TC Haddad wrote: > Frank, > > did you try something like this in your map file: > > CLASS > Name "Arbres isol=E9s" > Template "dasistegal.html" > STYLE > Symbol "Tree" > Color 255 0 0 > Size 50 > END > END > > I think STYLE is mandatory for Mapserver 4.x > > Tanya > > > > > On Tue, 21 Sep 2004 10:13:54 +0200, Frank Broniewski > wrote: > > >Hello List > > > >I am trying to use some characters from esris ttf fonts for my map. But I > >only get squares as symbols, not the expected Treesymbol. I even tried to > >use the arial font, but even there I get only squares. Does anybody have a > >clue what this is about? I tried changing fonts, renaming the fonts, tried > >using the Ascii codes instead of typing the letter but nothing helped. > >I did search the archives for such behavior, but the tips mentioned there > >(moving the symbols to symbol file) did not help. > > > >I run mapserver on Windows Xp Home with Sp2, Apache 2.0.50 and PHP 4.3.8 > >installed. Mapserver Version is 4.2.1, PHP Map Script info from phpinfo() > is > >$Revision: 1.194.2.4 $ $Date: 2004/07/07 19:37:19 $ > > > >I created a symbol definition file which contains my "symbol". Here is the > >relevant part: > > SYMBOL > > NAME "Tree" > > TYPE TRUETYPE > > FONT forest2 > > FILLED TRUE > > ANTIALIAS TRUE > > CHARACTER "j" > > END > > > >In the fontlist I defined the font forest2: > >forest2 c:\windows\fonts\esri_652.ttf > > > >In the mapfile I call the symbol with the following lines of code: > > CLASS > > Name "Arbres isol?s" > > Template "dasistegal.html" > > Symbol "Tree" > > Color 255 0 0 > > Size 50 > > END > > > > > > > > > > > >Frank Broniewski > >Mus?e National d'Histoire et d'Art > >Section Pr?histoire / Projet EPC > From web at UMICH.EDU Wed Sep 22 13:14:52 2004 From: web at UMICH.EDU (William Bulley) Date: Wed, 22 Sep 2004 16:14:52 -0400 Subject: MySQL or Oracle queries... Message-ID: I am new to MapServer so please bear with me... The main MapServer home page makes reference to a feature of MapServer that would allow queries to a database like MySQL or Oracle no doubt through Perl's DBI module. My interest is not obtaining points to plot from a table in a database, but rather tabular or scalar information about a map feature (height of a building, address of a store, etc.) that might be selected by a MapServer user. I am no where near being able to attempt this at my level of MapServer knowledge today, but if it is possible to do this, could someone point me to a chunk of documentation or a WWW page for more information? I assume that something like this would need to be done using MapScript (Perl?) if at all. Regards, web... -- William Bulley Email: web at umich.edu From ken at SANDNARROWS.COM Wed Sep 22 13:45:39 2004 From: ken at SANDNARROWS.COM (sandnarrows) Date: Wed, 22 Sep 2004 14:45:39 -0600 Subject: Scale dependent layers ignoring status property? Message-ID: In my mapfile I have two layers that don't show up till after the users zoom in a bit, ie I have set a maxscale and minscale. I am using the HTML legend with the opt_flag of 14, so that the layers don't list in the legend until they are within the appropriate scale range. Both layers have a status of 'ON' in the map file. The problem I am having is that when you move into the appropriate scale range the layer shows up with the status of 'OFF'. If I set the opt_flag to 15 so that the layer is always visible in the legend, then it will have the appropraite status of 'ON' and when you move into appropriate scale range the data will display on the map. I want to use opt_flag 14 as I don't want the layer in the legend until its also visible on the map, but I also want it to listen to the status property in the MAP file, which in this case is 'ON'. I also tried setting it to 'DEFAULT', no difference still starts out as off (template file does handle the default status). Thoughts or suggestions? Ken From bitner at MACNOISE.COM Wed Sep 22 14:22:12 2004 From: bitner at MACNOISE.COM (David Bitner) Date: Wed, 22 Sep 2004 16:22:12 -0500 Subject: DWG/DXF Message-ID: About a year ago Frank Warmerdam wrote that he may have the opportunity to work on implementing DWG/DXF support in OGR via the OpenDWG toolkit. I was wondering if he, or anyone else has done anything with direct DWG access for mapserver? Thanks, David From andy_canfield at HOTMAIL.COM Wed Sep 22 15:50:48 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Wed, 22 Sep 2004 15:50:48 -0700 Subject: DWG/DXF Message-ID: I've used the openDWG libraries along with OGR to read from AutoCAD dwg's and write Mapinfo tables and ESRI shapefiles for use with Mapserver. I have a once weekly batch that pulls all the design out of 1,400 drawings and puts it into 14 or 15 shapefiles and Mapinfo tables. The application is proprietary to the company I work for but if you have a specific question about using the open DWG stuff I can probably answer it (as long as it's the C++ libs, I have no idea about their VB stuff). I use their multi-threaded static libs for what I do. >From: David Bitner >Reply-To: David Bitner >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] DWG/DXF >Date: Wed, 22 Sep 2004 16:22:12 -0500 > >About a year ago Frank Warmerdam wrote that he may have the opportunity to >work on implementing DWG/DXF support in OGR via the OpenDWG toolkit. I was >wondering if he, or anyone else has done anything with direct DWG access >for >mapserver? > >Thanks, >David _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ From warmerdam at POBOX.COM Wed Sep 22 17:46:57 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 22 Sep 2004 20:46:57 -0400 Subject: DWG/DXF In-Reply-To: Message-ID: David Bitner wrote: > About a year ago Frank Warmerdam wrote that he may have the opportunity to > work on implementing DWG/DXF support in OGR via the OpenDWG toolkit. I was > wondering if he, or anyone else has done anything with direct DWG access for > mapserver? David, I have not done any work with the OpenDWG libraries since then. The project I was referring to did not materialize. 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 bluecarto at FREE.FR Thu Sep 23 03:47:32 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Thu, 23 Sep 2004 12:47:32 +0200 Subject: points in a multipolygon set from oraclespatial In-Reply-To: <4151C7E8.8080501@refractions.net> Message-ID: Hi list, Today, I'm in front of a particular problem. For a customer, I need to render oraclespatial data. In the database, I have shapes with a '2007' SDO_GTYPE, that says multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the polygons (2003), some points (1003) can be found. Curious for a multipolygon, and you might want to say that it'd better be a Collection (2004) ! But I can't modify data. The problem is that if define my layer with an oraclespatial connectiontype, the layer is rendered. On the other hand, with an OGR/OCI connectiontype, mapserver crashes. Any idea ? Pierre GIRAUD camptocamp From lolivieri at IMTEAM.IT Thu Sep 23 04:42:52 2004 From: lolivieri at IMTEAM.IT (leo) Date: Thu, 23 Sep 2004 13:42:52 +0200 Subject: grating Message-ID: Hello list, is it possible drawing the layer as a grating as map .gif? Thanks in advanced Leo -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map.gif Type: image/gif Size: 5401 bytes Desc: not available URL: From simon at INF.UNIVALI.BR Thu Sep 23 05:12:15 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Thu, 23 Sep 2004 09:12:15 -0300 Subject: points in a multipolygon set from oraclespatial In-Reply-To: <4152A9C4.20305@free.fr> Message-ID: Hi Giraud, The mapserver using the native support to oraclespatial don't support 2007 yet. It's a problem and now I coding new functions to maporaclespatial. I don't know if exist any problem with OGR. ----------------------------------------------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Database Manager, Mapserver and Oracle Spatial developer G10 - Laborat?rio de Computa??o Aplicada http://g10.cttmar.univali.br ----------------------------------------------------------------------------------------------------- GIRAUD Pierre wrote: > Hi list, > > Today, I'm in front of a particular problem. For a customer, I need to > render oraclespatial data. > In the database, I have shapes with a '2007' SDO_GTYPE, that says > multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the > polygons (2003), some points (1003) can be found. Curious for a > multipolygon, and you might want to say that it'd better be a Collection > (2004) ! But I can't modify data. > > The problem is that if define my layer with an oraclespatial > connectiontype, the layer is rendered. On the other hand, with an > OGR/OCI connectiontype, mapserver crashes. > > Any idea ? > > Pierre GIRAUD > camptocamp > From lfilak at MEDINACO.ORG Thu Sep 23 06:02:13 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 23 Sep 2004 09:02:13 -0400 Subject: MySQL or Oracle queries... Message-ID: I'm not sure that this has been officially documented (someone please correct me) although we use it on all our apps. The item we found most useful is to have a field in the mysql table that contains the shapeindex of the matching shape (just a sequential number). That is not the only way to relate the data as you can also relate the shapeindex to the dbf record and then relate one of the dbf field values to the mysql table to pull further information. There is certainly more than one way to approach this being there is more than one interface to mapscript, however I include a perl snippet here. Note: This may not be a 4.2 compliant example. HTH Lowell # # Open database connection for query. my $dbh = DBI->connect("DBI:mysql:db:host:port", "login", "password"); #$dbh->trace(2); # # Prepare the sql query & run it. my $sth = $dbh->prepare("SELECT recno FROM housep WHERE ( addnum = \"$addressinteger.$addressdecimal\" ) AND ( addlett = \"$addresschar\" ) AND ( roadname = \"$roadname\" )"); $sth->execute; # # Open the address layer for query. my $addlayer = $imap->getLayerByName("housequery"); my $adddata = $addlayer->{data}; my $addshapefile = new mapscript::shapefileObj($adddata,-1); # # Create a point shape object to retrieve from layer into. my $addpoint = new mapscript::pointObj(); # # Set a counter for the number retrieved to 0. # At this point there could be duplicate roadnames... # For now we are going with the last match. my $addfound = 0; # # Set variables for the x & y of the point. my $addx = 0; my $addy = 0; # # Loop through each matching point. while ( @row = $sth->fetchrow_array ) { # # Grab the point by shape index. $addshapefile->getPoint($row[0],$addpoint); # # Grab the x & y for the point. $addx = $addpoint->{x}; $addy = $addpoint->{y}; # # Add this point to the count. $addfound = $addfound + 1; } # # If the address was found then we need to hand the query off to the # correct module. if ( $addfound > 0 ) { &pic($ppn,$mode,$zmdir,$zmsize,$imgszx,$imgszy,$minx,$miny,$maxx,$maxy,$dx,$ dy,$map,$svquery,$mapext,$addx,$addy,$imap,$refer,$host); # # Return from module. return; } else { # # Run queries for records above & below the requested address. ... The following message was sent by William Bulley on Wed, 22 Sep 2004 16:14:52 -0400. > I am new to MapServer so please bear with me... > > The main MapServer home page makes reference to a feature > of MapServer that would allow queries to a database like > MySQL or Oracle no doubt through Perl's DBI module. > > My interest is not obtaining points to plot from a table > in a database, but rather tabular or scalar information > about a map feature (height of a building, address of a > store, etc.) that might be selected by a MapServer user. > > I am no where near being able to attempt this at my level > of MapServer knowledge today, but if it is possible to do > this, could someone point me to a chunk of documentation > or a WWW page for more information? > > I assume that something like this would need to be done > using MapScript (Perl?) if at all. > > Regards, > > web... > > -- > William Bulley Email: web at umich.edu From marcos at CIASC.GOV.BR Thu Sep 23 05:20:30 2004 From: marcos at CIASC.GOV.BR (=?ISO-8859-1?Q?Marcos_Aur=E9lio_Souza?=) Date: Thu, 23 Sep 2004 09:20:30 -0300 Subject: Data field limitation Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logociascp.gif Type: image/gif Size: 436 bytes Desc: not available URL: From Chris.Judd at DEP.STATE.FL.US Thu Sep 23 06:10:23 2004 From: Chris.Judd at DEP.STATE.FL.US (Judd, Chris) Date: Thu, 23 Sep 2004 09:10:23 -0400 Subject: points in a multipolygon set from oraclespatial Message-ID: Could you make a Oracle view of the data and present it as two different layers? -Chris -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of GIRAUD Pierre Sent: Thursday, September 23, 2004 6:48 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] points in a multipolygon set from oraclespatial Hi list, Today, I'm in front of a particular problem. For a customer, I need to render oraclespatial data. In the database, I have shapes with a '2007' SDO_GTYPE, that says multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the polygons (2003), some points (1003) can be found. Curious for a multipolygon, and you might want to say that it'd better be a Collection (2004) ! But I can't modify data. The problem is that if define my layer with an oraclespatial connectiontype, the layer is rendered. On the other hand, with an OGR/OCI connectiontype, mapserver crashes. Any idea ? Pierre GIRAUD camptocamp From bluecarto at FREE.FR Thu Sep 23 06:33:53 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Thu, 23 Sep 2004 15:33:53 +0200 Subject: points in a multipolygon set from oraclespatial In-Reply-To: <4152A9C4.20305@free.fr> Message-ID: I'm new to Oracle, that's probably why that wasn't clear for me. '1003' gtype is not for a point but for polygons too. Actually, the '2007' multipolygons with '1003' elements are polygons with holes. I'm sorry for this obvious mistake. Althouh, I do have the problem that OGR connection crashes, oraclespatial connection not on those type of geometry. Pierre GIRAUD Pierre wrote: > Hi list, > > Today, I'm in front of a particular problem. For a customer, I need to > render oraclespatial data. > In the database, I have shapes with a '2007' SDO_GTYPE, that says > multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the > polygons (2003), some points (1003) can be found. Curious for a > multipolygon, and you might want to say that it'd better be a Collection > (2004) ! But I can't modify data. > > The problem is that if define my layer with an oraclespatial > connectiontype, the layer is rendered. On the other hand, with an > OGR/OCI connectiontype, mapserver crashes. > > Any idea ? > > Pierre GIRAUD > camptocamp > > From pablorv at YAHOO.COM Thu Sep 23 06:19:01 2004 From: pablorv at YAHOO.COM (Pablo Toapanta) Date: Thu, 23 Sep 2004 06:19:01 -0700 Subject: Blank picture problem Message-ID: Hi I have a problem with MapServer. I?ve installed Mapserver 4.2 and the example to verify the installation. Everything is ok, MapServer runs and the example too, but when I try to do a simple example with my own shape files, the example shows a blank picture. Could anybody help me with this?? I?m working with Windows XP SP1. Thanks __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From CURRYWM at CI.CHAMPAIGN.IL.US Thu Sep 23 06:07:31 2004 From: CURRYWM at CI.CHAMPAIGN.IL.US (William Curry) Date: Thu, 23 Sep 2004 08:07:31 -0500 Subject: Mapscript Message-ID: Can anyone tell me if I am likely to have success with Mapscript if i'm running PHP 5 as an isapi on IIS 6.0?? Bill Curry METCAD 217-333-4398 From David.Fawcett at STATE.MN.US Thu Sep 23 06:43:01 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 23 Sep 2004 08:43:01 -0500 Subject: Blank picture problem Message-ID: Pablo, It is hard to diagnose the problem without seeing the text of your map file. The more information that you provide, the easier it is for people on the list to help you out. My guess is that you added your own data, but didn't adjust the EXTENT in your Map file to match the extent of your data. David. David J. Fawcett MN Office of Environmental Assistance >>> Pablo Toapanta 9/23/2004 8:19:01 AM >>> Hi I have a problem with MapServer. I?ve installed Mapserver 4.2 and the example to verify the installation. Everything is ok, MapServer runs and the example too, but when I try to do a simple example with my own shape files, the example shows a blank picture. Could anybody help me with this?? I?m working with Windows XP SP1. Thanks __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From warmerdam at POBOX.COM Thu Sep 23 06:43:56 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 23 Sep 2004 09:43:56 -0400 Subject: points in a multipolygon set from oraclespatial In-Reply-To: <4152A9C4.20305@free.fr> Message-ID: GIRAUD Pierre wrote: > Hi list, > > Today, I'm in front of a particular problem. For a customer, I need to > render oraclespatial data. > In the database, I have shapes with a '2007' SDO_GTYPE, that says > multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the > polygons (2003), some points (1003) can be found. Curious for a > multipolygon, and you might want to say that it'd better be a Collection > (2004) ! But I can't modify data. > > The problem is that if define my layer with an oraclespatial > connectiontype, the layer is rendered. On the other hand, with an > OGR/OCI connectiontype, mapserver crashes. Pierre, I'm not readily able to work on Oracle support just now. My NT partition with Oracle has become inaccessable due to an unfortunate "install" problem. My understanding from the code is that multipolygons should work in OGRs Oracle driver, but I am not sure how well tested it is. Does ogrinfo also crash against the layer in question? If so, I would suggest you submit a detailed bug including a snippet of SQL sufficient to create a one record table that will demonstrate the problem. That way I can fix it at some point when I have access to Oracle again. 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 Chris.Judd at DEP.STATE.FL.US Thu Sep 23 07:07:02 2004 From: Chris.Judd at DEP.STATE.FL.US (Judd, Chris) Date: Thu, 23 Sep 2004 10:07:02 -0400 Subject: points in a multipolygon set from oraclespatial Message-ID: I'm not sure, but I think you might run into an issue with MapServer if you are mixing geometry types. I haven't tested this myself, but MapServer can support only one geometry type for each layer. With that said I have heard that MapServer can support polys and lines in a single layer but most likely points would not work. Hope this helps. -Chris -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of GIRAUD Pierre Sent: Thursday, September 23, 2004 9:34 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] points in a multipolygon set from oraclespatial I'm new to Oracle, that's probably why that wasn't clear for me. '1003' gtype is not for a point but for polygons too. Actually, the '2007' multipolygons with '1003' elements are polygons with holes. I'm sorry for this obvious mistake. Althouh, I do have the problem that OGR connection crashes, oraclespatial connection not on those type of geometry. Pierre GIRAUD Pierre wrote: > Hi list, > > Today, I'm in front of a particular problem. For a customer, I need to > render oraclespatial data. > In the database, I have shapes with a '2007' SDO_GTYPE, that says > multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the > polygons (2003), some points (1003) can be found. Curious for a > multipolygon, and you might want to say that it'd better be a Collection > (2004) ! But I can't modify data. > > The problem is that if define my layer with an oraclespatial > connectiontype, the layer is rendered. On the other hand, with an > OGR/OCI connectiontype, mapserver crashes. > > Any idea ? > > Pierre GIRAUD > camptocamp > > From sobomsawin at KASSINI.COM Thu Sep 23 07:38:44 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 23 Sep 2004 10:38:44 -0400 Subject: Change projection on zoom Message-ID: Hi list! I need some ideas about how to change the projection dynamically while zooming. Since my representation is very large, I need to display it in Lambert projection. But when I zoom in the map, I want to change the projection dynamically to UTM depending of the position in the map (my map covers 14 UTM zones). I currently use Mapserver CGI with a DHTML interface but I'm open to any suggestion! Thanks. Skweda O'Bomsawin --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.767 / Virus Database: 514 - Release Date: 2004-09-21 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablorv at YAHOO.COM Thu Sep 23 10:40:41 2004 From: pablorv at YAHOO.COM (Pablo Toapanta) Date: Thu, 23 Sep 2004 10:40:41 -0700 Subject: Blank picture problem In-Reply-To: Message-ID: Hi again This is my MAP file: MAP IMAGETYPE PNG EXTENT 495591.176607842 9972721.25772341 505382.102073711 9984983.97959341 SIZE 1000 800 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS meters PROJECTION # "proj=latlong" # "ellps=clrk66" # "lat_0=0" # "lon_0=0" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS ----------------------- LAYER # States polygon layer begins here NAME states DATA quiton45 STATUS ON TYPE POLYGON PROJECTION #"proj=latlong" #"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 I think that the problem is with the extent too, but I don?t know how to do that. Please help me with this. Thanks --- David Fawcett wrote: > Pablo, > > It is hard to diagnose the problem without seeing > the text of your map file. The more information > that you provide, the easier it is for people on the > list to help you out. > > My guess is that you added your own data, but didn't > adjust the EXTENT in your Map file to match the > extent of your data. > > David. > > David J. Fawcett > MN Office of Environmental Assistance > > >>> Pablo Toapanta 9/23/2004 > 8:19:01 AM >>> > Hi > > I have a problem with MapServer. I?ve installed > Mapserver 4.2 and the example to verify the > installation. Everything is ok, MapServer runs and > the > example too, but when I try to do a simple example > with my own shape files, the example shows a blank > picture. Could anybody help me with this?? > > I?m working with Windows XP SP1. > > Thanks > > > > > __________________________________ > Do you Yahoo!? > New and Improved Yahoo! Mail - 100MB free storage! > http://promotions.yahoo.com/new_mail > __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From bluecarto at FREE.FR Thu Sep 23 10:04:45 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Thu, 23 Sep 2004 19:04:45 +0200 Subject: points in a multipolygon set from oraclespatial In-Reply-To: <4152D31C.6040901@pobox.com> Message-ID: I isolated more precisely the sort of shapes it was crashing on. Here are the details on an sample object that is responsible : ---------------------- SDO_GEOMETRY(*2007*, NULL, NULL, SDO_ELEM_INFO_ARRAY(*1, 2003, 1, 11, 1003, 1*), SDO_ORDINATE_ARRAY(58372002, 13596564, 58372473, 13596822, 58372131, 1359 7448, 58371680, 13597191, 58372002, 13596564, 58371824, 13596202, 58372312, 13596423, 58375405, 13599264, 58375545, 13599692, 58374401, 13601451, 5837 4241, 13601357, 58374256, 13601268, 58374285, 13600988, 58374288, 13600705, 58374266, 13600424, 58374219, 13600146, 58374147, 13599873, 58374051, 1359 9607, 58373685, 13599104, 58373443, 13598896, 58373292, 13598779, 58372510, 13598194, 58372119, 13597914, 58371517, 13597497, 58371824, 13596202)) aneto:~$ ogrinfo OCI:pierre/xbe9a51h at 192.168.226.149:1521/orcl -sql "SELECT GEOMETRY, IDENT FROM REF_PARCELLE a WHERE a.GID = 11758" INFO: Open of `OCI:pierre/xbe9a51h at 192.168.226.149:1521/orcl' using driver `OCI' successful. Layer name: SELECT GEOMETRY, IDENT FROM REF_PARCELLE a WHERE a.GID = 11758 Geometry: Unknown (any) Segmentation fault ------------------------------- In opposite, other multipolygons don't cause any troubles : --------------------------------------- SDO_GEOMETRY(*2007*, NULL, NULL, SDO_ELEM_INFO_ARRAY(*1, 1003, 1, 17, 1003, 1*), SDO_ORDINATE_ARRAY(58463050, 13756514, 58463828, 13756121, 58465357, 1375 9194, 58462596, 13760943, 58462133, 13760742, 58461491, 13759405, 58463896, 13758201, 58463050, 13756514, 58464405, 13759663, 58464032, 13758872, 5846 3131, 13759330, 58463500, 13760121, 58464405, 13759663)) aneto:/etc/apache# ogrinfo OCI:pierre/xbe9a51h at 192.168.226.149:1521/orcl -sql "SELECT GEOMETRY, IDENT FROM REF_PARCELLE a WHERE a.GID = 9789" INFO: Open of `OCI:pierre/xbe9a51h at 192.168.226.149:1521/orcl' using driver `OCI' successful. Layer name: SELECT GEOMETRY, IDENT FROM REF_PARCELLE a WHERE a.GID = 9789 Geometry: Unknown (any) Feature Count: 1 Extent: (58461491.000000, 13756121.000000) - (58465357.000000, 13760943.000000) Layer SRS WKT: (unknown) IDENT: String (72.0) OGRFeature(SELECT GEOMETRY, IDENT FROM REF_PARCELLE a WHERE a.GID = 9789):0 IDENT (String) = TK396000AD0353C MULTIPOLYGON (((58463050 13756514,58463828 13756121,58465357 13759194,58462596 13760943,58462133 13760742,58461491 13759405,58463896 13758201,58463050 13756514)),((58464405 13759663,58464032 13758872,58463131 13759330,58463500 13760121,58464405 13759663))) ------------------------------ I'm now leaving office, but I began to prepare sql commands to create trable entries to test this. Thanks for all. Pierre GIRAUD Frank Warmerdam wrote: > GIRAUD Pierre wrote: > >> Hi list, >> >> Today, I'm in front of a particular problem. For a customer, I need to >> render oraclespatial data. >> In the database, I have shapes with a '2007' SDO_GTYPE, that says >> multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the >> polygons (2003), some points (1003) can be found. Curious for a >> multipolygon, and you might want to say that it'd better be a Collection >> (2004) ! But I can't modify data. >> >> The problem is that if define my layer with an oraclespatial >> connectiontype, the layer is rendered. On the other hand, with an >> OGR/OCI connectiontype, mapserver crashes. > > > Pierre, > > I'm not readily able to work on Oracle support just now. My NT partition > with Oracle has become inaccessable due to an unfortunate "install" > problem. > > My understanding from the code is that multipolygons should work in OGRs > Oracle driver, but I am not sure how well tested it is. Does ogrinfo > also crash against the layer in question? If so, I would suggest you > submit a detailed bug including a snippet of SQL sufficient to create > a one record table that will demonstrate the problem. > > That way I can fix it at some point when I have access to Oracle again. > > 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 Thu Sep 23 11:28:05 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 23 Sep 2004 13:28:05 -0500 Subject: About SHP file extrracts Message-ID: All, Is it possible to configure MapServer to output a chunk of SHP file for a particular view? Thanks bobb From woodbri at SWOODBRIDGE.COM Thu Sep 23 11:38:07 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 23 Sep 2004 14:38:07 -0400 Subject: About SHP file extrracts In-Reply-To: <415315B5.90507@ci.stpaul.mn.us> Message-ID: I don't think this is possible directly. Part of the problem is the a shapefile is actually at least 3 files file.dbf, file.shp, file.shx. That said it should be possible to do a query and get a list of the objects being displayed from a given layer and copy them using mapscript into a new shapefile on disk and maybe even zip ot tar them into a single file the gets returned to the user. If you have multiple layers you would have to extract a separate shapefile for each layer as their type and attributes might not be suitable for combining. Also you will have to decide how you want to handle for example a line the crosses the view boundary. Do you want to clip the line(polygon?) at the view boundary or return the whole object. Hope this helps. -Steve W. Bob Basques wrote: > All, > > Is it possible to configure MapServer to output a chunk of SHP file for > a particular view? > > Thanks > > bobb > From WEST.BOB at MYFLORIDAHOUSE.COM Thu Sep 23 11:37:52 2004 From: WEST.BOB at MYFLORIDAHOUSE.COM (WEST.BOB) Date: Thu, 23 Sep 2004 14:37:52 -0400 Subject: SET THE SCALE OF WHERE CLASSES OF FEATURES DISPLAY Message-ID: I am new to mapserv. I am trying to set-up a map file for roads. I have a field in my road shape file that has a number from 1 to 6. 6 is the interstate, 5 are the major roads and it goes down to 1 that are private sub division roads. I want to set-up one layer with 6 classes, one for each class of roads. Then at different scales I want to set different classes of roads to display and to show its name. Seams to me there should be a way to set the color, the maximum and minimum scale that each class of roads line shows and a separate setting to set the scale of its label. Can anyone give me an example MAP file for doing this? The object of this is so that when I look at the full map all I see are the interstates and as I zoom in I see more roads and more labels till I get down to the point I see all roads and labels. Thanks Bob West -------------- next part -------------- An HTML attachment was scrubbed... URL: From mapuser at VERYSPEEDY.NET Thu Sep 23 12:19:23 2004 From: mapuser at VERYSPEEDY.NET (David Horowitz) Date: Thu, 23 Sep 2004 15:19:23 -0400 Subject: Editing shapefiles through mapserver Message-ID: Hello, I am wondering if there are any tutorials or reference documents available that describe how to allow users to add points to shapefiles dynamically through mapserver. As an example, the mapserver users map (located at: http://www.moximedia.com:8080/imf-ows/imf.jsp?site=ms_users) is almost exactly what I would like to accomplish, although in a different context. Any help would be very appreciated, I've looked through the wiki without any luck. Am I missing something? Thank you for your help. From lfilak at MEDINACO.ORG Thu Sep 23 12:25:46 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 23 Sep 2004 15:25:46 -0400 Subject: Editing shapefiles through mapserver Message-ID: The info your looking for is most likely in the old archives. You can search it with either the built-in search engine or google. Lowell The following message was sent by David Horowitz on Thu, 23 Sep 2004 15:19:23 -0400. > Hello, > > I am wondering if there are any tutorials or reference documents > available that describe how to allow users to add points to shapefiles > dynamically through mapserver. > > As an example, the mapserver users map (located at: > http://www.moximedia.com:8080/imf-ows/imf.jsp?site=ms_users) is almost > exactly what I would like to accomplish, although in a different context. > > Any help would be very appreciated, I've looked through the wiki without > any luck. Am I missing something? Thank you for your help. From ARyan at CO.LINN.OR.US Thu Sep 23 13:24:35 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 23 Sep 2004 13:24:35 -0700 Subject: PHP ms_newLayerObj vs SWIG layerObj Message-ID: Am I missing something simple? In PHP I'm able to take a layer from one map and add it to another map using ms_newLayerObj($map_object,$layer_object_from_another_map); Is there a way to do this with SWIG mapscript. The layerObj method takes only one argument - the map. Is there a clone() for layers or something like that? Adam -----Original Message----- From: Lowell Filak [mailto:lfilak at MEDINACO.ORG] Sent: Thursday, September 23, 2004 12:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Editing shapefiles through mapserver The info your looking for is most likely in the old archives. You can search it with either the built-in search engine or google. Lowell The following message was sent by David Horowitz on Thu, 23 Sep 2004 15:19:23 -0400. > Hello, > > I am wondering if there are any tutorials or reference documents > available that describe how to allow users to add points to shapefiles > dynamically through mapserver. > > As an example, the mapserver users map (located at: > http://www.moximedia.com:8080/imf-ows/imf.jsp?site=ms_users) is almost > exactly what I would like to accomplish, although in a different > context. > > Any help would be very appreciated, I've looked through the wiki > without any luck. Am I missing something? Thank you for your help. From sgillies at FRII.COM Thu Sep 23 13:41:54 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 23 Sep 2004 14:41:54 -0600 Subject: PHP ms_newLayerObj vs SWIG layerObj In-Reply-To: Message-ID: On Sep 23, 2004, at 2:24 PM, Ryan, Adam wrote: > Am I missing something simple? > > In PHP I'm able to take a layer from one map and add it to another map > using > > ms_newLayerObj($map_object,$layer_object_from_another_map); > > Is there a way to do this with SWIG mapscript. The layerObj method > takes > only one argument - the map. Is there a clone() for layers or > something > like that? > > Adam Adam, Not in the 4.2 version. In the 4.4 release, you'll be able to by using mapObj::insertLayer which adds a copy of any layer to the map. If you want layerObj::clone in the next version, submit a request in Bugzilla and I'll get around to it. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From jb at NUCOMP.COM Thu Sep 23 14:02:00 2004 From: jb at NUCOMP.COM (John Bolster) Date: Thu, 23 Sep 2004 17:02:00 -0400 Subject: shptree not faster than no index Message-ID: Hi all, I'm noticing there doesn't seem to be any difference in speed between having *.qix files vs. not having them. I'm wondering if I'm doing this right. My data is from tiger and is in shapefiles. I'm only dealing with county outlines right now. They are each in a separate folder, each state's counties are in one state folder. There's a tileindex on them all at the root of the tree. I'm displaying a simple map using .../cgi-bin/mapserv?map=demo.map&mode=map. It's extent is set to show about 4 states of the country, showing all county outlines. It comes up pretty fast, so I run the page 5 times in a row and time that with no *.qix files, then build them (on each county file and on the tileindex) and repeat the test. As near as I can tell the results are identical. When I used a larger extent and displayed the whole country of county lines and did everything else the same I similarly got the same timing either way. I created the tileindex first and then did shptree afterwards. Does the sequence make a difference? I've tried running shptree in all these forms with no change from the directory where the tileindex is: find . -name "*.shp" -exec shptree {} \; find . -name "*.shp" -exec shptree {} 4 \; find . -name "*.shp" -exec shptree {} 6 \; find . -name "*.shp" -exec shptree {} 10 \; Thanks for any hints. John Bolster From ARyan at CO.LINN.OR.US Thu Sep 23 14:02:43 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 23 Sep 2004 14:02:43 -0700 Subject: PHP ms_newLayerObj vs SWIG layerObj Message-ID: Thanks for the update. I can't think of a reason for cloning a layer other than inserting into a map, so it may not be needed. Don't know. Thanks again, Adam -----Original Message----- From: Sean Gillies [mailto:sgillies at frii.com] Sent: Thursday, September 23, 2004 1:42 PM To: Ryan, Adam Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: PHP ms_newLayerObj vs SWIG layerObj On Sep 23, 2004, at 2:24 PM, Ryan, Adam wrote: > Am I missing something simple? > > In PHP I'm able to take a layer from one map and add it to another map > using > > ms_newLayerObj($map_object,$layer_object_from_another_map); > > Is there a way to do this with SWIG mapscript. The layerObj method > takes > only one argument - the map. Is there a clone() for layers or > something > like that? > > Adam Adam, Not in the 4.2 version. In the 4.4 release, you'll be able to by using mapObj::insertLayer which adds a copy of any layer to the map. If you want layerObj::clone in the next version, submit a request in Bugzilla and I'll get around to it. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From David.Fawcett at STATE.MN.US Thu Sep 23 14:36:12 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 23 Sep 2004 16:36:12 -0500 Subject: Layer Groups and WFS Message-ID: Is it possible to group several vector layers in a WFS server so a WFS client can call them as one layer (TYPENAME)? In other words, can you have a mapfile for a WFS client where you pull many vector layers from local shapefile sources. Then using GROUP or some other method call this group of layers through one WFS request from a MapServer WFS client? I would like to accomplish this in the server mapfile if possible. I am using v4.2.1 As an aside, I saw an older post that pointed out that you can't do a GETFEATURE request that contains multiple TYPENAMEs (layers). I also tried this based on OGC documentation and verified that it is not possible. e.g. REQUEST=GetFeature&TYPENAME=layera,layerb Thanks, David. David J. Fawcett MN Office of Environmental Assistance From newland at VT.EDU Thu Sep 23 14:58:07 2004 From: newland at VT.EDU (Newland Agbenowosi) Date: Thu, 23 Sep 2004 14:58:07 -0700 Subject: SET THE SCALE OF WHERE CLASSES OF FEATURES DISPLAY In-Reply-To: Message-ID: Bob, Below is an example layer definition showing how to draw the same layer at different scales by defining the MINSCALE/MAXSCALE for each class. In you case, you migh need some thing like this: LAYER CLASS EXPRESSION /^1/ MINSCALE ?? MAXSCALE ?? COLOR 100 100 100 SIZE 7 SYMBOL "circle" END CLASS EXPRESSION /^2/ MINSCALE ?? MAXSCALE ?? COLOR 10 10 10 SIZE 7 SYMBOL "circle" END CLASS EXPRESSION /^3/ MINSCALE ?? MAXSCALE ?? COLOR 100 100 100 SIZE 7 SYMBOL "circle" END CLASS EXPRESSION /^4/ MINSCALE ?? MAXSCALE ?? COLOR 10 10 10 SIZE 7 SYMBOL "circle" END CLASS EXPRESSION /^5/ MINSCALE ?? MAXSCALE ?? COLOR 10 10 10 SIZE 7 SYMBOL "circle" END CLASS EXPRESSION /^6/ MINSCALE ?? MAXSCALE ?? COLOR 100 100 100 SIZE 7 SYMBOL "circle" END CLASSITEM "" END -------------------------------------------By example --------------------------------------- LAYER NAME "roads" GROUP "roads" TYPE LINE TOLERANCEUNITS pixels DUMP true TOLERANCE 5 CLASS MAXSCALE 20000 COLOR 100 100 100 SIZE 7 SYMBOL "circle" OVERLAYCOLOR 255 255 2255 OVERLAYSIZE 2 OVERLAYSYMBOL "dash1" END CLASS MINSCALE 20001 MAXSCALE 40000 COLOR 100 100 100 SIZE 5 SYMBOL "circle" OVERLAYCOLOR 200 200 200 OVERLAYSIZE 3 OVERLAYSYMBOL "circle" END CLASS MINSCALE 40001 COLOR 100 100 100 SIZE 1 SYMBOL "circle" END STATUS on PROJECTION "init=epsg:4326" END DATA "/ms4w/chameleon/data/cities/tema/roads.shp" METADATA WMS_TITLE "roads" WFS_TITLE "roads" END END -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of WEST.BOB Sent: Thursday, September 23, 2004 11:38 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SET THE SCALE OF WHERE CLASSES OF FEATURES DISPLAY I am new to mapserv. I am trying to set-up a map file for roads. I have a field in my road shape file that has a number from 1 to 6. 6 is the interstate, 5 are the major roads and it goes down to 1 that are private sub division roads. I want to set-up one layer with 6 classes, one for each class of roads. Then at different scales I want to set different classes of roads to display and to show its name. Seams to me there should be a way to set the color, the maximum and minimum scale that each class of roads line shows and a separate setting to set the scale of its label. Can anyone give me an example MAP file for doing this? The object of this is so that when I look at the full map all I see are the interstates and as I zoom in I see more roads and more labels till I get down to the point I see all roads and labels. Thanks Bob West -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Sep 23 15:07:55 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 23 Sep 2004 18:07:55 -0400 Subject: TIFF Reading Problems / libpdf / multiple copies of libtiff. Message-ID: Folks, A few days ago the First Base Solutions guys mentioned some problems serving WMS layers from GeoTIFF via MapServer. Since they are just 10 minutes drive away, I went over and figured out what was going wrong. It turns out the problem was that libpdf.a include a whole copy of a slightly outdated copy of libtiff. The result was that some TIFF functions ended up coming from the GDAL TIFF code, and others came from the libpdf.a. But, since they used different versions of the TIFF structures things ended up crashing. So the lesson is, be very wary of getting multiple versions of sub-libraries (like libtiff, libpng, libgif, libz) linked into your Mapserver application. I was quite surprised to discover that libpdf included a copy of libtiff code! And these sorts of problems are just devilishly hard to debug. 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 Sep 23 15:12:57 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 23 Sep 2004 18:12:57 -0400 Subject: shptree not faster than no index In-Reply-To: Message-ID: John Bolster wrote: > Hi all, > > I'm noticing there doesn't seem to be any difference in speed between having > *.qix files vs. not having them. I'm wondering if I'm doing this right. > > My data is from tiger and is in shapefiles. I'm only dealing with county > outlines right now. They are each in a separate folder, each state's > counties are in one state folder. There's a tileindex on them all at the > root of the tree. John, The impression I get is that you have exactly one county polygon per shapefile. Is that right? A .qix won't help because it is used to more quickly select the subset of shapes in a shapefile based on the extents. If you only have one shape per file then it can't help. Of course, the tileindex should allow you to quickly select the county files you want. But a more efficient approach would likely be to have one shapefile with a .qix with all your county outlines in 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 ARyan at CO.LINN.OR.US Thu Sep 23 15:16:27 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 23 Sep 2004 15:16:27 -0700 Subject: SWIG mapscript resultCacheObj Message-ID: Moving right along... Is the resultCacheObj currently available? I see it in the SWIG mapscript documentation but can't see how to grab it, only a resultCacheMemeberObj. I'd like the resultCacheObj for the bounds attribute. Thanks, Adam -----Original Message----- From: Sean Gillies [mailto:sgillies at frii.com] Sent: Thursday, September 23, 2004 1:42 PM To: Ryan, Adam Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: PHP ms_newLayerObj vs SWIG layerObj On Sep 23, 2004, at 2:24 PM, Ryan, Adam wrote: > Am I missing something simple? > > In PHP I'm able to take a layer from one map and add it to another map > using > > ms_newLayerObj($map_object,$layer_object_from_another_map); > > Is there a way to do this with SWIG mapscript. The layerObj method > takes > only one argument - the map. Is there a clone() for layers or > something > like that? > > Adam Adam, Not in the 4.2 version. In the 4.4 release, you'll be able to by using mapObj::insertLayer which adds a copy of any layer to the map. If you want layerObj::clone in the next version, submit a request in Bugzilla and I'll get around to it. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From woodbri at SWOODBRIDGE.COM Thu Sep 23 15:18:01 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 23 Sep 2004 18:18:01 -0400 Subject: shptree not faster than no index In-Reply-To: Message-ID: Right, I think Frank said it pretty well. You should see a huge difference if you do the streets layer and do the same test. -Steve John Bolster wrote: > Hi all, > > I'm noticing there doesn't seem to be any difference in speed between having > *.qix files vs. not having them. I'm wondering if I'm doing this right. > > My data is from tiger and is in shapefiles. I'm only dealing with county > outlines right now. They are each in a separate folder, each state's > counties are in one state folder. There's a tileindex on them all at the > root of the tree. > > I'm displaying a simple map using .../cgi-bin/mapserv?map=demo.map&mode=map. > It's extent is set to show about 4 states of the country, showing all county > outlines. It comes up pretty fast, so I run the page 5 times in a row and > time that with no *.qix files, then build them (on each county file and on > the tileindex) and repeat the test. As near as I can tell the results are > identical. > > When I used a larger extent and displayed the whole country of county lines > and did everything else the same I similarly got the same timing either way. > > I created the tileindex first and then did shptree afterwards. Does the > sequence make a difference? > > I've tried running shptree in all these forms with no change from the > directory where the tileindex is: > find . -name "*.shp" -exec shptree {} \; > find . -name "*.shp" -exec shptree {} 4 \; > find . -name "*.shp" -exec shptree {} 6 \; > find . -name "*.shp" -exec shptree {} 10 \; > > Thanks for any hints. > > John Bolster > From jb at NUCOMP.COM Thu Sep 23 15:18:46 2004 From: jb at NUCOMP.COM (John Bolster) Date: Thu, 23 Sep 2004 18:18:46 -0400 Subject: shptree not faster than no index In-Reply-To: <41534A69.2040503@pobox.com> Message-ID: Thank you for your quick response. In terms of the county outlines, do you think that one county per file, and selecting which files to use with only a tileindex would be faster than all counties being in one huge file of over 3000 counties and selecting which counties to draw using a qix index? Also, does the qix index on the actual tileindex do anything to speed up the tileindex? Thanks, John > -----Original Message----- > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > Sent: Thursday, September 23, 2004 6:13 PM > To: John Bolster > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index > > > John Bolster wrote: > > Hi all, > > > > I'm noticing there doesn't seem to be any difference in speed > between having > > *.qix files vs. not having them. I'm wondering if I'm doing this right. > > > > My data is from tiger and is in shapefiles. I'm only dealing with county > > outlines right now. They are each in a separate folder, each state's > > counties are in one state folder. There's a tileindex on them all at the > > root of the tree. > > John, > > The impression I get is that you have exactly one county polygon > per shapefile. > Is that right? A .qix won't help because it is used to more > quickly select > the subset of shapes in a shapefile based on the extents. If you > only have > one shape per file then it can't help. > > Of course, the tileindex should allow you to quickly select the county > files you want. But a more efficient approach would likely be to have one > shapefile with a .qix with all your county outlines in 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 sgillies at FRII.COM Thu Sep 23 15:28:32 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 23 Sep 2004 16:28:32 -0600 Subject: SWIG mapscript resultCacheObj In-Reply-To: Message-ID: On Sep 23, 2004, at 4:16 PM, Ryan, Adam wrote: > Moving right along... > > Is the resultCacheObj currently available? I see it in the SWIG > mapscript > documentation but can't see how to grab it, only a > resultCacheMemeberObj. > I'd like the resultCacheObj for the bounds attribute. > > Thanks, > > Adam > No, not available. But it should be ... I'll try to find out how and why that changed. Sean From pablorv at YAHOO.COM Thu Sep 23 15:50:54 2004 From: pablorv at YAHOO.COM (Pablo Toapanta) Date: Thu, 23 Sep 2004 15:50:54 -0700 Subject: Build MAP files Message-ID: Hi Could anyone help me with information about how to build MAP files, I have 2 shape files that I need to show with a MapServer application but with a MAP file that I built it doesn?t work. Thanks Pablo Toapanta N., MCP IT Aldea Global __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail From andy_canfield at HOTMAIL.COM Thu Sep 23 15:50:34 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Thu, 23 Sep 2004 15:50:34 -0700 Subject: shptree not faster than no index Message-ID: I'd go with the one file of all counties. It's just easier to maintain one file than 3,000. I have at least 50 layers in one of my maps that each layer can have 300,000 to 1,000,000 plus objects in it. Using the shptree to create a .qix file makes these layers incredibly fast. I mean fast as in, you click on the map to zoom or pan, and as fast as your browser can render the map has been updated to reflect that pan or zoom. I think my smallest layer has 1,400 hundred polygons in it. Using the shptree and having one file is way easier than maintaining a single file for each boundary. I honestly don't think the map I'm using could be any faster, it is the browser/desktop rendering speed for me that limits how fast the image changes, so that's really, really fast. Plus if you have 3,000 files and are zoomed to an extent where you can see half of them or more that's 1,500 or more open and read operations that Mapserver has to execute vice one if you put them all in the same file. My two cents anyway. >From: John Bolster >Reply-To: John Bolster >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index >Date: Thu, 23 Sep 2004 18:18:46 -0400 > >Thank you for your quick response. > >In terms of the county outlines, do you think that one county per file, and >selecting which files to use with only a tileindex would be faster than all >counties being in one huge file of over 3000 counties and selecting which >counties to draw using a qix index? > >Also, does the qix index on the actual tileindex do anything to speed up >the >tileindex? > >Thanks, >John > > > -----Original Message----- > > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > > Sent: Thursday, September 23, 2004 6:13 PM > > To: John Bolster > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index > > > > > > John Bolster wrote: > > > Hi all, > > > > > > I'm noticing there doesn't seem to be any difference in speed > > between having > > > *.qix files vs. not having them. I'm wondering if I'm doing this >right. > > > > > > My data is from tiger and is in shapefiles. I'm only dealing with >county > > > outlines right now. They are each in a separate folder, each state's > > > counties are in one state folder. There's a tileindex on them all at >the > > > root of the tree. > > > > John, > > > > The impression I get is that you have exactly one county polygon > > per shapefile. > > Is that right? A .qix won't help because it is used to more > > quickly select > > the subset of shapes in a shapefile based on the extents. If you > > only have > > one shape per file then it can't help. > > > > Of course, the tileindex should allow you to quickly select the county > > files you want. But a more efficient approach would likely be to have >one > > shapefile with a .qix with all your county outlines in 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 > > > > _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ From vaiod at BERLOY.COM Thu Sep 23 15:27:02 2004 From: vaiod at BERLOY.COM (Eric Katherman) Date: Thu, 23 Sep 2004 15:27:02 -0700 Subject: GPS Convert Message-ID: Okay I have a map of Phoenix with the following extents.. 382487.530826 833318.888530 497485.329577 1017509.008264 using projection... NAD83 / Arizona Central (ft) The map renders fine that isn't the problem but I want to know what it takes to get a point on the map using GPS coordinates.. (e.g. 33:32:33N 112:04:17W) I have searched for the answer for a while now and the only thing I find is saying to make a new layer and feature with different projection settings... ... "init=/usr/local/share/proj/epsg:2020" ... FEATURE POINTS -112.0676 33.5053 END ... This is not working. Help please... Thanks, Eric From warmerdam at POBOX.COM Thu Sep 23 16:53:38 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 23 Sep 2004 19:53:38 -0400 Subject: shptree not faster than no index In-Reply-To: Message-ID: John Bolster wrote: > Thank you for your quick response. > > In terms of the county outlines, do you think that one county per file, and > selecting which files to use with only a tileindex would be faster than all > counties being in one huge file of over 3000 counties and selecting which > counties to draw using a qix index? John, I think having them in one file would be more efficient. 3000 features isn't a particularly large dataset, though I suppose if the county outlines are very detailed it might get fairly large. > Also, does the qix index on the actual tileindex do anything to speed up the > tileindex? Yes, a .qix file on a tileindex will help if there are many entries in 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 ed at TOPOZONE.COM Thu Sep 23 20:33:06 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 23 Sep 2004 23:33:06 -0400 Subject: shptree not faster than no index Message-ID: John - The only piece of advice I can find to add to the excellent advice you've received is a reminder of the value of indexes. An index helps you quickly locate the small subset of a larger dataset that is required for rendering a specific map request. It does not speed up drawing; it simply helps you more quickly discard those objects that don't need to be drawn at all. If your test case is a map of the entire United States, you need to draw all the counties and therefore there is no benefit in quickly calculating which ones you need to draw - they are all drawn. If you zoom in on a very small area, you will be able to very quickly identify the two or three county polygons - the only two or three polygons that can possibly intersect the map rectangle you're drawing. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Thursday, September 23, 2004 7:54 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index John Bolster wrote: > Thank you for your quick response. > > In terms of the county outlines, do you think that one county per > file, and selecting which files to use with only a tileindex would be > faster than all counties being in one huge file of over 3000 counties > and selecting which counties to draw using a qix index? John, I think having them in one file would be more efficient. 3000 features isn't a particularly large dataset, though I suppose if the county outlines are very detailed it might get fairly large. > Also, does the qix index on the actual tileindex do anything to speed > up the tileindex? Yes, a .qix file on a tileindex will help if there are many entries in 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 Pierre.RELLA at AGRICULTURE.GOUV.FR Thu Sep 23 23:01:53 2004 From: Pierre.RELLA at AGRICULTURE.GOUV.FR (Pierre RELLA) Date: Fri, 24 Sep 2004 08:01:53 +0200 Subject: Automatic zoom Message-ID: Hi, When i draw a window in a map i must refreh the HTML page to have the zoom. If somebody knows how getting an automatic refresh with the mouse Bests regards From flavio at TYDAC.CH Fri Sep 24 00:04:30 2004 From: flavio at TYDAC.CH (Flavio Hendry) Date: Fri, 24 Sep 2004 09:04:30 +0200 Subject: underline labels Message-ID: hi all as far as I see there is no way to underline labels. or did I miss something ? Is it planned ? 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 ---------------------------------------------------------------- From temiz at DEPREM.GOV.TR Fri Sep 24 01:45:14 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 24 Sep 2004 11:45:14 +0300 Subject: zoom rectangle Message-ID: hello Could you tell me (or give an example) how I can build zooming in a rectangle which I draw by means of php code? 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 bluecarto at FREE.FR Fri Sep 24 02:51:44 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Fri, 24 Sep 2004 11:51:44 +0200 Subject: multipolygon set from oraclespatial crash with OGR In-Reply-To: <4152D31C.6040901@pobox.com> Message-ID: Frank Warmerdam wrote: > GIRAUD Pierre wrote: > >> Hi list, >> >> Today, I'm in front of a particular problem. For a customer, I need to >> render oraclespatial data. >> In the database, I have shapes with a '2007' SDO_GTYPE, that says >> multipolygons. Hopelessly, in the SDO_ELEM_INFO_ARRAY, including the >> polygons (2003), some points (1003) can be found. Curious for a >> multipolygon, and you might want to say that it'd better be a Collection >> (2004) ! But I can't modify data. >> >> The problem is that if define my layer with an oraclespatial >> connectiontype, the layer is rendered. On the other hand, with an >> OGR/OCI connectiontype, mapserver crashes. > > > Pierre, > > I'm not readily able to work on Oracle support just now. My NT partition > with Oracle has become inaccessable due to an unfortunate "install" > problem. > > My understanding from the code is that multipolygons should work in OGRs > Oracle driver, but I am not sure how well tested it is. Does ogrinfo > also crash against the layer in question? If so, I would suggest you > submit a detailed bug including a snippet of SQL sufficient to create > a one record table that will demonstrate the problem. > > That way I can fix it at some point when I have access to Oracle again. > > 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 > > I just built an SQL statement that includes 8 multipolygon shapes (with many different cases). 4 of them crash ogrinfo and OCI/OGR connection for mapserver but not oraclespatial connection. Defaultly, I might want to report a bug in OGR remotesensing bugzilla (618), tell me if I'm wrong. Pierre GIRAUD From j.l.h.hartmann at UVA.NL Fri Sep 24 03:02:36 2004 From: j.l.h.hartmann at UVA.NL (jan hartmann) Date: Fri, 24 Sep 2004 12:02:36 +0200 Subject: Blank picture problem In-Reply-To: <20040923174041.28877.qmail@web53807.mail.yahoo.com> Message-ID: >> >> >>>>>Pablo Toapanta 9/23/2004 >> >>8:19:01 AM >>> >>Hi >> >>I have a problem with MapServer. I?ve installed >>Mapserver 4.2 and the example to verify the >>installation. Everything is ok, MapServer runs and >>the >>example too, but when I try to do a simple example >>with my own shape files, the example shows a blank >>picture. Could anybody help me with this?? >> >>I?m working with Windows XP SP1. >> This could be the eternal STATUS DEFAULT problem. Please try setting STATUS DEFAULT and see what happens. Jan From edspremolla at ANTEL.COM.UY Fri Sep 24 03:54:42 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Fri, 24 Sep 2004 08:54:42 -0200 Subject: GPS Convert In-Reply-To: <200409231527.02674.vaiod@berloy.com> Message-ID: You need to state a projection for the resulting map, in the top of the mapfile, and a projection for each layer, or at leas for each layer that differs from the map one. LALO El jue, 23-09-2004 a las 20:27, Eric Katherman escribi?: > Okay I have a map of Phoenix with the following extents.. > > 382487.530826 833318.888530 497485.329577 1017509.008264 > using projection... NAD83 / Arizona Central (ft) > > The map renders fine that isn't the problem but I want to know what it takes > to get a point on the map using GPS coordinates.. (e.g. 33:32:33N 112:04:17W) > I have searched for the answer for a while now and the only thing I find is > saying to make a new layer and feature with different projection settings... > > ... > "init=/usr/local/share/proj/epsg:2020" > ... > FEATURE > POINTS > -112.0676 33.5053 > END > ... > > This is not working. Help please... > > Thanks, > Eric -- Eduardo Spremolla Antel I+D From jb at NUCOMP.COM Fri Sep 24 05:42:24 2004 From: jb at NUCOMP.COM (John Bolster) Date: Fri, 24 Sep 2004 08:42:24 -0400 Subject: shptree not faster than no index In-Reply-To: Message-ID: Thanks for the advice. I'll try it this way on the counties. However, when I start working with the other files, like roads, water and places, I'm dealing with files that are currently broken down by county and each one may have anywhere from 3,000 - 30,000 items per file. So that multiplied by 3,000 or so counties comes to 9 - 90 million items if I combined each record type into one big file each. Would you still suggest combining them in these cases, or do you think that gets too large? John > -----Original Message----- > From: ANDY CANFIELD [mailto:andy_canfield at hotmail.com] > Sent: Thursday, September 23, 2004 6:51 PM > To: jb at NUCOMP.COM; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index > > > I'd go with the one file of all counties. It's just easier to > maintain one > file than 3,000. I have at least 50 layers in one of my maps that > each layer > can have 300,000 to 1,000,000 plus objects in it. Using the shptree to > create a .qix file makes these layers incredibly fast. I mean fast as in, > you click on the map to zoom or pan, and as fast as your browser > can render > the map has been updated to reflect that pan or zoom. I think my smallest > layer has 1,400 hundred polygons in it. Using the shptree and having one > file is way easier than maintaining a single file for each boundary. I > honestly don't think the map I'm using could be any faster, it is the > browser/desktop rendering speed for me that limits how fast the image > changes, so that's really, really fast. Plus if you have 3,000 > files and are > zoomed to an extent where you can see half of them or more that's > 1,500 or > more open and read operations that Mapserver has to execute vice > one if you > put them all in the same file. My two cents anyway. > > > >From: John Bolster > >Reply-To: John Bolster > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index > >Date: Thu, 23 Sep 2004 18:18:46 -0400 > > > >Thank you for your quick response. > > > >In terms of the county outlines, do you think that one county > per file, and > >selecting which files to use with only a tileindex would be > faster than all > >counties being in one huge file of over 3000 counties and selecting which > >counties to draw using a qix index? > > > >Also, does the qix index on the actual tileindex do anything to speed up > >the > >tileindex? > > > >Thanks, > >John > > > > > -----Original Message----- > > > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > > > Sent: Thursday, September 23, 2004 6:13 PM > > > To: John Bolster > > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index > > > > > > > > > John Bolster wrote: > > > > Hi all, > > > > > > > > I'm noticing there doesn't seem to be any difference in speed > > > between having > > > > *.qix files vs. not having them. I'm wondering if I'm doing this > >right. > > > > > > > > My data is from tiger and is in shapefiles. I'm only dealing with > >county > > > > outlines right now. They are each in a separate folder, each state's > > > > counties are in one state folder. There's a tileindex on > them all at > >the > > > > root of the tree. > > > > > > John, > > > > > > The impression I get is that you have exactly one county polygon > > > per shapefile. > > > Is that right? A .qix won't help because it is used to more > > > quickly select > > > the subset of shapes in a shapefile based on the extents. If you > > > only have > > > one shape per file then it can't help. > > > > > > Of course, the tileindex should allow you to quickly select the county > > > files you want. But a more efficient approach would likely > be to have > >one > > > shapefile with a .qix with all your county outlines in 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 > > > > > > > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar ? get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > From malsburg at CL.UNI-HEIDELBERG.DE Fri Sep 24 05:45:00 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Fri, 24 Sep 2004 14:45:00 +0200 Subject: Build MAP files In-Reply-To: <20040923225054.45966.qmail@web53803.mail.yahoo.com> Message-ID: * http://www.mobilegeographics.com/mapserver/ * http://terrasip.gis.umn.edu/projects/tutorial/sections.html * http://mapserver.gis.umn.edu/doc42/mapfile-reference.html On Thu, Sep 23, 2004 at 03:50:54PM -0700, Pablo Toapanta wrote: > Could anyone help me with information about how to > build MAP files, I have 2 shape files that I need to > show with a MapServer application but with a MAP file > that I built it doesn?t work. From sobomsawin at KASSINI.COM Fri Sep 24 06:10:07 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 24 Sep 2004 09:10:07 -0400 Subject: [UMN_MAPSERVER-USERS] Build MAP files In-Reply-To: <20040923225054.45966.qmail@web53803.mail.yahoo.com> Message-ID: If you browse the user list archives, you'll find a lot of information about the map file. In addition, you can use this little extension for ArcView 3.x to create an automatic mapfile from the view... http://gix.sourceforge.net Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Pablo Toapanta Envoy??: 23 septembre 2004 18:51 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Build MAP files Hi Could anyone help me with information about how to build MAP files, I have 2 shape files that I need to show with a MapServer application but with a MAP file that I built it doesn?t work. Thanks Pablo Toapanta N., MCP IT Aldea Global __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.767 / Virus Database: 514 - Release Date: 2004-09-21 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.767 / Virus Database: 514 - Release Date: 2004-09-21 From pablorv at YAHOO.COM Fri Sep 24 06:29:17 2004 From: pablorv at YAHOO.COM (Pablo Toapanta) Date: Fri, 24 Sep 2004 06:29:17 -0700 Subject: Help with MAP File Message-ID: Hi This is my map file: MAP IMAGETYPE PNG EXTENT 495591.176607842 9972721.25772341 505382.102073711 9984983.97959341 SIZE 1000 800 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS meters PROJECTION # "proj=latlong" # "ellps=clrk66" # "lat_0=0" # "lon_0=0" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS -------------------- LAYER # States polygon layer begins here NAME states DATA quiton45 STATUS ON TYPE POLYGON PROJECTION #"proj=latlong" #"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 I think that the problem is with the extent or the projection. Please help me with this, it?s very important. I don?t know how to obtain the correct extent. Thanks Pablo Toapanta N. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From woodbri at SWOODBRIDGE.COM Fri Sep 24 06:55:18 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 24 Sep 2004 09:55:18 -0400 Subject: shptree not faster than no index In-Reply-To: Message-ID: John, I have tiger data running under mapserver http://imaptools.com/tiger/ I have about 18-19 GB of data for these maps. I just leave the data the way it is translated to shapefiles and build tileindexes and shptree indexes on the everything and it works great! I wouldn't spend extra time trying to merge data into a single layer shapefiles. In your test you found the it was fast and it didn't make a lot of difference. Unless you are trying to squeeze every ounce of performance you can out of the setup then you would have to do a bunch of experimentation to find out what makes it fast or not. -Steve W. John Bolster wrote: > Thanks for the advice. I'll try it this way on the counties. However, when I > start working with the other files, like roads, water and places, I'm > dealing with files that are currently broken down by county and each one may > have anywhere from 3,000 - 30,000 items per file. So that multiplied by > 3,000 or so counties comes to 9 - 90 million items if I combined each record > type into one big file each. Would you still suggest combining them in these > cases, or do you think that gets too large? > > John > > >>-----Original Message----- >>From: ANDY CANFIELD [mailto:andy_canfield at hotmail.com] >>Sent: Thursday, September 23, 2004 6:51 PM >>To: jb at NUCOMP.COM; MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index >> >> >>I'd go with the one file of all counties. It's just easier to >>maintain one >>file than 3,000. I have at least 50 layers in one of my maps that >>each layer >>can have 300,000 to 1,000,000 plus objects in it. Using the shptree to >>create a .qix file makes these layers incredibly fast. I mean fast as in, >>you click on the map to zoom or pan, and as fast as your browser >>can render >>the map has been updated to reflect that pan or zoom. I think my smallest >>layer has 1,400 hundred polygons in it. Using the shptree and having one >>file is way easier than maintaining a single file for each boundary. I >>honestly don't think the map I'm using could be any faster, it is the >>browser/desktop rendering speed for me that limits how fast the image >>changes, so that's really, really fast. Plus if you have 3,000 >>files and are >>zoomed to an extent where you can see half of them or more that's >>1,500 or >>more open and read operations that Mapserver has to execute vice >>one if you >>put them all in the same file. My two cents anyway. >> >> >> >>>From: John Bolster >>>Reply-To: John Bolster >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index >>>Date: Thu, 23 Sep 2004 18:18:46 -0400 >>> >>>Thank you for your quick response. >>> >>>In terms of the county outlines, do you think that one county >> >>per file, and >> >>>selecting which files to use with only a tileindex would be >> >>faster than all >> >>>counties being in one huge file of over 3000 counties and selecting which >>>counties to draw using a qix index? >>> >>>Also, does the qix index on the actual tileindex do anything to speed up >>>the >>>tileindex? >>> >>>Thanks, >>>John >>> >>> >>>>-----Original Message----- >>>>From: Frank Warmerdam [mailto:warmerdam at pobox.com] >>>>Sent: Thursday, September 23, 2004 6:13 PM >>>>To: John Bolster >>>>Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>>>Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index >>>> >>>> >>>>John Bolster wrote: >>>> >>>>>Hi all, >>>>> >>>>>I'm noticing there doesn't seem to be any difference in speed >>>> >>>>between having >>>> >>>>>*.qix files vs. not having them. I'm wondering if I'm doing this >>> >>>right. >>> >>>>>My data is from tiger and is in shapefiles. I'm only dealing with >>> >>>county >>> >>>>>outlines right now. They are each in a separate folder, each state's >>>>>counties are in one state folder. There's a tileindex on >> >>them all at >> >>>the >>> >>>>>root of the tree. >>>> >>>>John, >>>> >>>>The impression I get is that you have exactly one county polygon >>>>per shapefile. >>>>Is that right? A .qix won't help because it is used to more >>>>quickly select >>>>the subset of shapes in a shapefile based on the extents. If you >>>>only have >>>>one shape per file then it can't help. >>>> >>>>Of course, the tileindex should allow you to quickly select the county >>>>files you want. But a more efficient approach would likely >> >>be to have >> >>>one >>> >>>>shapefile with a .qix with all your county outlines in 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 >> >>>> >>_________________________________________________________________ >>FREE pop-up blocking with the new MSN Toolbar ? get it now! >>http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ >> >> > > From arnulf.christl at CCGIS.DE Fri Sep 24 06:56:06 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 24 Sep 2004 15:56:06 +0200 Subject: DWG/DXF In-Reply-To: <41521D01.1030808@pobox.com> Message-ID: Frank Warmerdam wrote: > David Bitner wrote: > >> About a year ago Frank Warmerdam wrote that he may have the >> opportunity to >> work on implementing DWG/DXF support in OGR via the OpenDWG toolkit. >> I was >> wondering if he, or anyone else has done anything with direct DWG >> access for >> mapserver? > > > David, > > I have not done any work with the OpenDWG libraries since then. The > project I was referring to did not materialize. > > 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 > Hi, I believe there is a lot of potential for extending OGR to support DWG/DXF. Anybody else out there who yould join forces? Best regards, Arnulf. From arnulf.christl at CCGIS.DE Fri Sep 24 07:06:38 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 24 Sep 2004 16:06:38 +0200 Subject: Build MAP files In-Reply-To: <20040923225054.45966.qmail@web53803.mail.yahoo.com> Message-ID: Pablo Toapanta wrote: >Hi > >Could anyone help me with information about how to >build MAP files, I have 2 shape files that I need to >show with a MapServer application but with a MAP file >that I built it doesn?t work. > >Thanks > >Pablo Toapanta N., MCP >IT Aldea Global > > > >__________________________________ >Do you Yahoo!? >Yahoo! Mail - You care about security. So do we. >http://promotions.yahoo.com/new_mail > > > Another AV extension: https://sourceforge.net/projects/avein/ From sobomsawin at KASSINI.COM Fri Sep 24 07:35:32 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Fri, 24 Sep 2004 10:35:32 -0400 Subject: [UMN_MAPSERVER-USERS] Help with MAP File In-Reply-To: <20040924132917.96232.qmail@web53806.mail.yahoo.com> Message-ID: Exactly. You need a projection block in your map section and another projection block in your layer section. The PROJECTION block of the map section is for reprojection on-the-fly feature of Mapserver. This means you can choose in which projection you want to display your date in this section. The PROJECTION block of the layer is the current projection of your data (you must know the current projection of your data and specify it there). If you specify that your units are in meters, that means you must specify a projection (not latlong). The most usual projection for units in meters is UTM. Here is a sample PROJECTION block for UTM: PROJECTION "proj=utm" "ellps=GRS80" "zone=15" "north" "no_defs" END Parameters of the PROJECTION block are simply proj4 parameters. I recommend you take a look at http://mapserver.gis.umn.edu/coordinates.html and http://www.remotesensing.org/proj/ 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 Pablo Toapanta Envoy??: 24 septembre 2004 09:29 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] Help with MAP File Hi This is my map file: MAP IMAGETYPE PNG EXTENT 495591.176607842 9972721.25772341 505382.102073711 9984983.97959341 SIZE 1000 800 SHAPEPATH "data" IMAGECOLOR 255 255 255 UNITS meters PROJECTION # "proj=latlong" # "ellps=clrk66" # "lat_0=0" # "lon_0=0" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS -------------------- LAYER # States polygon layer begins here NAME states DATA quiton45 STATUS ON TYPE POLYGON PROJECTION #"proj=latlong" #"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 I think that the problem is with the extent or the projection. Please help me with this, it?s very important. I don?t know how to obtain the correct extent. Thanks Pablo Toapanta N. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.767 / Virus Database: 514 - Release Date: 2004-09-21 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.767 / Virus Database: 514 - Release Date: 2004-09-21 From andy_canfield at HOTMAIL.COM Fri Sep 24 08:02:05 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Fri, 24 Sep 2004 08:02:05 -0700 Subject: DWG/DXF Message-ID: The problem is the open DWG libraries are not open source and have pretty restrictive licensing agreements to using them, especially if you are putting them into a commercial product. So far they are also the only ones to have broken the 2004 dwg's encryption. AutoDesk officially says it's not encryption but under an NDA with the open Design Alliance I've seen the algorithm and it's very definitely an encrypted format. There are roughly four formats of dwg out there and they are not compatible with each other. Dwg release 12, Dwg release 14, Dwg release 2000, Dwg release 2004. They are all different, it was AutoDesk's attempt at making sure competitors had a rough time using their format. They have also said they will change the format again some time in the future. The 2004 format is the only one of the bunch that is encrypted. The Open Design Alliance skirts all the legal battles by doing all their reverse engineering in Russia. So it's definitely not a little thing to try and put Dwg into OGR. You can be almost certain that if we were to do it AutoDesk would issue a legal challenge. Most likely under the DMCA whoever reverse engineers the format would win but you'd still end up in court settling the dispute and AutoDesk has deep pockets. That in a nutshell is why more people don't have dwg compatibility in their libraries and applications. >From: Arnulf Christl >Reply-To: Arnulf Christl >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] DWG/DXF >Date: Fri, 24 Sep 2004 15:56:06 +0200 > >Frank Warmerdam wrote: > >>David Bitner wrote: >> >>>About a year ago Frank Warmerdam wrote that he may have the >>>opportunity to >>>work on implementing DWG/DXF support in OGR via the OpenDWG toolkit. >>>I was >>>wondering if he, or anyone else has done anything with direct DWG >>>access for >>>mapserver? >> >> >>David, >> >>I have not done any work with the OpenDWG libraries since then. The >>project I was referring to did not materialize. >> >>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 >> >Hi, >I believe there is a lot of potential for extending OGR to support >DWG/DXF. Anybody else out there who yould join forces? > >Best regards, >Arnulf. _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From warmerdam at POBOX.COM Fri Sep 24 08:20:01 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 24 Sep 2004 11:20:01 -0400 Subject: DWG/DXF In-Reply-To: Message-ID: ANDY CANFIELD wrote: > The problem is the open DWG libraries are not open source and have pretty > restrictive licensing agreements to using them, especially if you are > putting them into a commercial product. Andy, I would definately want to work from the OpenDWG libraries for exactly the reasons of complexity that you have noted. DWG implemented in OGR would be an optional format, and it would be up to the end user (or whoever is building the application for distribution) to license the OpenDWG libraries and build it in themselves. The OpenDWG licensing fees for "in house" use are pretty reasonable as I recall. However, this would still fall a long ways from being an open source solution to the problem. It could however be quite a useful solution for some users of MapServer that want to work with Autocad maps. I don't personally relish the thought of trying to duplicate the work the OpenDWG alliance has already 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 mhbasa at YAHOO.COM Fri Sep 24 08:18:38 2004 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Fri, 24 Sep 2004 08:18:38 -0700 Subject: Number of Dynamic Layer limitations Message-ID: Hello. Is there a limit to the number of dynamic layers that can be added to a map through an application? I have a php-mapscript application that dies, as in no error message whatsoever, whenever I create a new ClassObj for a second (sometimes third) dynamic layer. I am still using Mapserver 4.0.1. Thanks. mario. _______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com From jb at NUCOMP.COM Fri Sep 24 08:49:01 2004 From: jb at NUCOMP.COM (John Bolster) Date: Fri, 24 Sep 2004 11:49:01 -0400 Subject: projection lon_0 Message-ID: Hi all, Thanks to all of you who have helped me so far. I'm attempting to reproduce the projection used by the Census Bureau in their Tiger map browser. It's a sinusoidal projection, but it appears to be centered at the center of the rendered map each time rather than having one origin. If I set my projection to sinu and manually set lon_0 to the same as the map center it looks right, but I want lon_0 to automatically follow the map center. Is there any value I can pass in the url to set the lon_0 each time? I've tried &map_projection_lon_0= and it doesn't work. Any ideas? Thanks, John From j.l.h.hartmann at UVA.NL Fri Sep 24 09:03:28 2004 From: j.l.h.hartmann at UVA.NL (jan hartmann) Date: Fri, 24 Sep 2004 18:03:28 +0200 Subject: projection lon_0 In-Reply-To: Message-ID: John Bolster wrote: > Hi all, > > Thanks to all of you who have helped me so far. > > I'm attempting to reproduce the projection used by the Census Bureau in > their Tiger map browser. It's a sinusoidal projection, but it appears to be > centered at the center of the rendered map each time rather than having one > origin. If I set my projection to sinu and manually set lon_0 to the same as > the map center it looks right, but I want lon_0 to automatically follow the > map center. > > Is there any value I can pass in the url to set the lon_0 each time? I've > tried &map_projection_lon_0= and it doesn't work. Any ideas? > > Thanks, > John > Hi John, You have to specify the complete projection string as part of the URL: &map_projection=proj=sinu,lon_0=... HTH Jan From arnulf.christl at CCGIS.DE Fri Sep 24 09:10:04 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 24 Sep 2004 18:10:04 +0200 Subject: DWG/DXF In-Reply-To: <41543B21.8020407@pobox.com> Message-ID: Frank Warmerdam wrote: > ANDY CANFIELD wrote: > >> The problem is the open DWG libraries are not open source and have >> pretty >> restrictive licensing agreements to using them, especially if you are >> putting them into a commercial product. > > > Andy, > > I would definately want to work from the OpenDWG libraries for exactly > the > reasons of complexity that you have noted. DWG implemented in OGR would > be an optional format, and it would be up to the end user (or whoever is > building the application for distribution) to license the OpenDWG > libraries > and build it in themselves. The OpenDWG licensing fees for "in house" > use > are pretty reasonable as I recall. > > However, this would still fall a long ways from being an open source > solution > to the problem. It could however be quite a useful solution for some > users > of MapServer that want to work with Autocad maps. > > I don't personally relish the thought of trying to duplicate the work the > OpenDWG alliance has already 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 > Thanx for the precise information. Seems like there are two possible solutions in the long run. We have to convince people to not fall into the closed format trap. Then help them migrate to open formats. Or integrate closed source better with OGR and not know how long DWG will take to be changed again. In the end it is up to the end user. If he will finance the coding, it will be done. We know of a few, anybody else want to join? Please contact me on or offline so that we cann discuss details. Regards, Arnulf. From arnulf.christl at CCGIS.DE Fri Sep 24 09:13:58 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 24 Sep 2004 18:13:58 +0200 Subject: Change projection on zoom In-Reply-To: <000701c4a17b$07de1220$6402a8c0@jebediah> Message-ID: do you use WMS? If you do you can use the Mapbender framework to do all kinds a strange things. Check out http://www.mapbender.org there is a link to the "interoperability testbed". It contains a selection box for reprojecting. This change could also be done automatically when going below a certain scale threshold. MB is implemented in PHP and JavaScript. Notice that the Demis server only serves 4326 while the overlay UMN MapServer can reproject the 4326 symbols (ms users in Germany) to any srs listed in PROJ4 (only a few in the select box). Best regards, Arnulf. Skweda O'Bomsawin wrote: >Hi list! > > > >I need some ideas about how to change the projection dynamically while >zooming. Since my representation is very large, I need to display it in >Lambert projection. But when I zoom in the map, I want to change the >projection dynamically to UTM depending of the position in the map (my map >covers 14 UTM zones). > > > >I currently use Mapserver CGI with a DHTML interface but I'm open to any >suggestion! > > > >Thanks. > > > >Skweda O'Bomsawin > > > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.767 / Virus Database: 514 - Release Date: 2004-09-21 > > > From jb at NUCOMP.COM Fri Sep 24 09:14:18 2004 From: jb at NUCOMP.COM (John Bolster) Date: Fri, 24 Sep 2004 12:14:18 -0400 Subject: projection lon_0 In-Reply-To: <41544550.8080503@uva.nl> Message-ID: Thanks very much. That handles it. John > -----Original Message----- > From: jan hartmann [mailto:j.l.h.hartmann at uva.nl] > Sent: Friday, September 24, 2004 12:03 PM > To: John Bolster > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] projection lon_0 > > > John Bolster wrote: > > Hi all, > > > > Thanks to all of you who have helped me so far. > > > > I'm attempting to reproduce the projection used by the Census Bureau in > > their Tiger map browser. It's a sinusoidal projection, but it > appears to be > > centered at the center of the rendered map each time rather > than having one > > origin. If I set my projection to sinu and manually set lon_0 > to the same as > > the map center it looks right, but I want lon_0 to > automatically follow the > > map center. > > > > Is there any value I can pass in the url to set the lon_0 each > time? I've > > tried &map_projection_lon_0= and it doesn't work. Any ideas? > > > > Thanks, > > John > > > Hi John, > > You have to specify the complete projection string as part of the URL: > > &map_projection=proj=sinu,lon_0=... > > HTH > > Jan > From ed at TOPOZONE.COM Fri Sep 24 09:26:11 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 24 Sep 2004 12:26:11 -0400 Subject: shptree not faster than no index Message-ID: John - No, that is a different situation. Your original scenario described 3,000 files, each of which had one polygon; having one file per object is clearly not a good idea. Having one file per 3,000 - 30,000 objects is just fine. It is also good to think about updating your data set; if you're going to need to do updates, you might want to minimize the amount of data conversion you need to do each time you update the data set. - 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 John Bolster Sent: Friday, September 24, 2004 8:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index Thanks for the advice. I'll try it this way on the counties. However, when I start working with the other files, like roads, water and places, I'm dealing with files that are currently broken down by county and each one may have anywhere from 3,000 - 30,000 items per file. So that multiplied by 3,000 or so counties comes to 9 - 90 million items if I combined each record type into one big file each. Would you still suggest combining them in these cases, or do you think that gets too large? John > -----Original Message----- > From: ANDY CANFIELD [mailto:andy_canfield at hotmail.com] > Sent: Thursday, September 23, 2004 6:51 PM > To: jb at NUCOMP.COM; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index > > > I'd go with the one file of all counties. It's just easier to maintain > one file than 3,000. I have at least 50 layers in one of my maps that > each layer can have 300,000 to 1,000,000 plus objects in it. Using the > shptree to create a .qix file makes these layers incredibly fast. I > mean fast as in, you click on the map to zoom or pan, and as fast as > your browser can render the map has been updated to reflect that pan > or zoom. I think my smallest layer has 1,400 hundred polygons in it. > Using the shptree and having one file is way easier than maintaining a > single file for each boundary. I honestly don't think the map I'm > using could be any faster, it is the browser/desktop rendering speed > for me that limits how fast the image changes, so that's really, > really fast. Plus if you have 3,000 files and are zoomed to an extent > where you can see half of them or more that's 1,500 or more open and > read operations that Mapserver has to execute vice one if you put them > all in the same file. My two cents anyway. > > > >From: John Bolster > >Reply-To: John Bolster > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no index > >Date: Thu, 23 Sep 2004 18:18:46 -0400 > > > >Thank you for your quick response. > > > >In terms of the county outlines, do you think that one county > per file, and > >selecting which files to use with only a tileindex would be > faster than all > >counties being in one huge file of over 3000 counties and selecting > >which counties to draw using a qix index? > > > >Also, does the qix index on the actual tileindex do anything to speed > >up the tileindex? > > > >Thanks, > >John > > > > > -----Original Message----- > > > From: Frank Warmerdam [mailto:warmerdam at pobox.com] > > > Sent: Thursday, September 23, 2004 6:13 PM > > > To: John Bolster > > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] shptree not faster than no > > > index > > > > > > > > > John Bolster wrote: > > > > Hi all, > > > > > > > > I'm noticing there doesn't seem to be any difference in speed > > > between having > > > > *.qix files vs. not having them. I'm wondering if I'm doing this > >right. > > > > > > > > My data is from tiger and is in shapefiles. I'm only dealing > > > > with > >county > > > > outlines right now. They are each in a separate folder, each > > > > state's counties are in one state folder. There's a tileindex on > them all at > >the > > > > root of the tree. > > > > > > John, > > > > > > The impression I get is that you have exactly one county polygon > > > per shapefile. > > > Is that right? A .qix won't help because it is used to more > > > quickly select the subset of shapes in a shapefile based on the > > > extents. If you only have one shape per file then it can't help. > > > > > > Of course, the tileindex should allow you to quickly select the > > > county files you want. But a more efficient approach would likely > be to have > >one > > > shapefile with a .qix with all your county outlines in 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 > > > > > > > > _________________________________________________________________ > FREE pop-up blocking with the new MSN Toolbar ? get it now! > http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ > > From umn at KARSTEN-LESSING.DE Fri Sep 24 09:44:34 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Fri, 24 Sep 2004 18:44:34 +0200 Subject: WMS_client image format problems Message-ID: Dear List, I am running MapServer 4.2.3 at least with WMS_client capabilities. I try to capture one layer "laender" out from www.geoway.de. The whole bundle of layers can be seen here: http://www.geoway.de/cgi-bin/mapserv3.cgi?MAP=/home/geoway/geoway.map&VERSION=1.1.0&REQUEST=GetMap&&SRS=EPSG:32632&BBOX=280450,5236000,921400,6102500 The geoway MapServer seams to produce images which are stored in my directory: /srv/www/htdocs/tmp/ Unfortunally the suffix of the files which are stored in my directory and which my MapServer is trying to display are looking strange: *.img.tmp Does anybody know if I configured something wrong? (My Mapfile in the following) best regards and many thanx beforehand Karsten MAP NAME Testfile SHAPEPATH "../daten" SYMBOLSET "../docs/symbol.txt" FONTSET "/srv/www/htdocs/fonts/fonts.txt" EXTENT 280460 5235969 921383 6102410 STATUS ON SIZE 400 400 WEB TEMPLATE "temp0.html" IMAGEPATH "/srv/www/htdocs/tmp/" IMAGEURL "/tmp/" END PROJECTION "init=EPSG:32632" END OUTPUTFORMAT NAME "Farbenfroh" DRIVER "GD/png" MIMETYPE "image/png" IMAGEMODE RGB EXTENSION "png" END LAYER NAME "laender" TYPE VECTOR STATUS DEFAULT CONNECTION "http://www.geoway.de/cgi-bin/geoway.map?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:32632" "wms_name" "laender" "wms_server_version" "1.1.0" "wms_formatlist" "image/png" "wms_format" "image/png" END END END From marcos at CIASC.GOV.BR Fri Sep 24 09:44:53 2004 From: marcos at CIASC.GOV.BR (=?ISO-8859-1?Q?Marcos_Aur=E9lio_Souza?=) Date: Fri, 24 Sep 2004 13:44:53 -0300 Subject: Data field limitation Message-ID: Hi list, I'm having a problem with long queries using PostGIS. It seems that the "data" field of a layer has a limitation of XXX characters. Does anybody knows why and how can I increase that? Thanks in advance, Marcos Aur?lio Souza Analista de Inform?tica Centro de Inform?tica e Automa??o do Estado de SC CIASC -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 436 bytes Desc: not available URL: From marcos at CIASC.GOV.BR Fri Sep 24 10:16:25 2004 From: marcos at CIASC.GOV.BR (=?ISO-8859-1?Q?Marcos_Aur=E9lio_Souza?=) Date: Fri, 24 Sep 2004 14:16:25 -0300 Subject: Data field limitation In-Reply-To: <20040924165839.94943.qmail@web50709.mail.yahoo.com> Message-ID: About 300 - 400 characters. -- Marcos Aur?lio Souza Analista de Inform?tica Centro de Inform?tica e Automa??o do Estado de SC CIASC >How long are your queries? because I have extremely >long and complex queries that work fine. >Chris >--- Marcos Aur?lio Souza wrote: > > > >>Hi list, >> >>I'm having a problem with long queries using >>PostGIS. >>It seems that the "data" field of a layer has a >>limitation of XXX characters. >>Does anybody knows why and how can I increase that? >> >>Thanks in advance, >> >> >> >>Marcos Aur?lio Souza >>Analista de Inform?tica >>Centro de Inform?tica e Automa??o do Estado de SC >>CIASC >> >> >> > > > >__________________________________ >Do you Yahoo!? >Yahoo! Mail is new and improved - Check it out! >http://promotions.yahoo.com/new_mail > > > ------------ ''Esta mensagem, incluindo seus anexos, tem car?ter confidencial e seu conte?do ? restrito ao destinat?rio da mensagem. Caso voc? tenha recebido esta mensagem por engano, queira por favor retorn?-la ao destinat?rio e apag?-la de seus arquivos. Qualquer uso n?o autorizado replica??o ou dissemina??o desta mensagem ou parte dela ? expressamente proibido. O CIASC (www.ciasc.gov.br) n?o ? respons?vel pelo conte?do ou a veracidade desta informa??o.'' From arnulf.christl at CCGIS.DE Fri Sep 24 10:28:02 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 24 Sep 2004 19:28:02 +0200 Subject: WMS_client image format problems In-Reply-To: <41544EF2.4090607@karsten-lessing.de> Message-ID: K. Lessing wrote: > Dear List, > > I am running MapServer 4.2.3 at least with WMS_client capabilities. > I try to capture one layer "laender" out from www.geoway.de. Hi, the capabilties request http://192.168.23.151/mapserv.cgi?map=/home/geoway/geoway.map&WMTVER=1.0.0&REQUEST=capabilities does not return anything but a "timed out..." Maybe the server you try to access is just not available. Cheers, Arnulf. > The whole bundle of layers can be seen here: > http://www.geoway.de/cgi-bin/mapserv3.cgi?MAP=/home/geoway/geoway.map&VERSION=1.1.0&REQUEST=GetMap&&SRS=EPSG:32632&BBOX=280450,5236000,921400,6102500 > > > The geoway MapServer seams to produce images which are stored in my > directory: > /srv/www/htdocs/tmp/ > > Unfortunally the suffix of the files which are stored in my directory > and which my MapServer is trying to display are looking strange: > *.img.tmp > > Does anybody know if I configured something wrong? > (My Mapfile in the following) > > best regards and > many thanx beforehand > Karsten > > > MAP > > NAME Testfile > SHAPEPATH "../daten" > SYMBOLSET "../docs/symbol.txt" > FONTSET "/srv/www/htdocs/fonts/fonts.txt" > EXTENT 280460 5235969 921383 6102410 > STATUS ON > SIZE 400 400 > > WEB > TEMPLATE "temp0.html" > IMAGEPATH "/srv/www/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > PROJECTION > "init=EPSG:32632" > END > > OUTPUTFORMAT > NAME "Farbenfroh" > DRIVER "GD/png" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > LAYER > NAME "laender" > TYPE VECTOR > STATUS DEFAULT > CONNECTION "http://www.geoway.de/cgi-bin/geoway.map?" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:32632" > "wms_name" "laender" > "wms_server_version" "1.1.0" > "wms_formatlist" "image/png" > "wms_format" "image/png" > END > END > > END > -- ---------------------------- CCGIS Christl & Stamm GbR ---------------------------- http://www.ccgis.de http://www.mapbender.org ---------------------------- Service: +49 (0)228 90826 0 Direct: +49 (0)228 90826 23 Fax: +49 (0)228 90826 11 ---------------------------- CCGIS Christl & Stamm GbR Siemensstra?e 8 53121 Bonn GERMANY From umn at KARSTEN-LESSING.DE Fri Sep 24 10:43:46 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Fri, 24 Sep 2004 19:43:46 +0200 Subject: WMS_client image format problems In-Reply-To: <41545922.8000603@ccgis.de> Message-ID: Hi Arnulf, thanx for your answer. If you try this: http://www.geoway.de/cgi-bin/mapserv3.cgi?MAP=/home/geoway/geoway.map&VERSION=1.1.0&REQUEST=GetCapabilities the Server answers with an xml file: Unfortunatelly I could not find any helpful information in this xml file! regards Karsten Arnulf Christl schrieb: > K. Lessing wrote: > >> Dear List, >> >> I am running MapServer 4.2.3 at least with WMS_client capabilities. >> I try to capture one layer "laender" out from www.geoway.de. > > > Hi, > the capabilties request > http://192.168.23.151/mapserv.cgi?map=/home/geoway/geoway.map&WMTVER=1.0.0&REQUEST=capabilities > > does not return anything but a "timed out..." > > Maybe the server you try to access is just not available. > > Cheers, Arnulf. > >> The whole bundle of layers can be seen here: >> http://www.geoway.de/cgi-bin/mapserv3.cgi?MAP=/home/geoway/geoway.map&VERSION=1.1.0&REQUEST=GetMap&&SRS=EPSG:32632&BBOX=280450,5236000,921400,6102500 >> >> >> >> The geoway MapServer seams to produce images which are stored in my >> directory: >> /srv/www/htdocs/tmp/ >> >> Unfortunally the suffix of the files which are stored in my directory >> and which my MapServer is trying to display are looking strange: >> *.img.tmp >> >> Does anybody know if I configured something wrong? >> (My Mapfile in the following) >> >> best regards and >> many thanx beforehand >> Karsten >> >> >> MAP >> >> NAME Testfile >> SHAPEPATH "../daten" >> SYMBOLSET "../docs/symbol.txt" >> FONTSET "/srv/www/htdocs/fonts/fonts.txt" >> EXTENT 280460 5235969 921383 6102410 >> STATUS ON >> SIZE 400 400 >> >> WEB >> TEMPLATE "temp0.html" >> IMAGEPATH "/srv/www/htdocs/tmp/" >> IMAGEURL "/tmp/" >> END >> >> PROJECTION >> "init=EPSG:32632" >> END >> >> OUTPUTFORMAT >> NAME "Farbenfroh" >> DRIVER "GD/png" >> MIMETYPE "image/png" >> IMAGEMODE RGB >> EXTENSION "png" >> END >> >> LAYER >> NAME "laender" >> TYPE VECTOR >> STATUS DEFAULT >> CONNECTION "http://www.geoway.de/cgi-bin/geoway.map?" >> CONNECTIONTYPE WMS >> METADATA >> "wms_srs" "EPSG:32632" >> "wms_name" "laender" >> "wms_server_version" "1.1.0" >> "wms_formatlist" "image/png" >> "wms_format" "image/png" >> END >> END >> >> END >> > > > -- > ---------------------------- > CCGIS Christl & Stamm GbR > ---------------------------- > http://www.ccgis.de > http://www.mapbender.org > ---------------------------- > Service: +49 (0)228 90826 0 > Direct: +49 (0)228 90826 23 > Fax: +49 (0)228 90826 11 > ---------------------------- > CCGIS Christl & Stamm GbR > Siemensstra?e 8 > 53121 Bonn > GERMANY > From bob.basques at CI.STPAUL.MN.US Fri Sep 24 11:02:52 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 24 Sep 2004 13:02:52 -0500 Subject: Reference maps Message-ID: All, Can the reference map image be a dynamically generated image from MapServer? I'm doing some ItemQueries, and would like the refence map to start at the same level of view as the itemquery does. So that any ItemQuery would need to retrieve a new Reference map. The MAPFILE components don't seem to lend themselves to the idea of making the refence map dynamically. I suppose a imagemap template would work just as well. and then I could just display two images in the browser. Maybe that's the answer, a dynamic refence map is just another map call. Although I would need to somehow draw the query box on top of the image returned. I could use a completely transparent image as the refence map in the MAPFILE and lay that over the top of the dynamically generated image via HTML. Am I over thinking this? bobb From bob.basques at CI.STPAUL.MN.US Fri Sep 24 11:35:33 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 24 Sep 2004 13:35:33 -0500 Subject: a new thought on refence maps. Message-ID: All, What about this: An option for syncing the Refence Map to the current View. Some added parameter that would build a new images that is synced wioth the current view extents. This would lend it self to programmetric solutions as well. Even to have the refence map change based on MIN/MAX-extent vaules. Any ideas anyone? bobb From lfilak at MEDINACO.ORG Fri Sep 24 11:51:07 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 24 Sep 2004 14:51:07 -0400 Subject: a new thought on refence maps. Message-ID: If you integrate some form of mapscript I don't see why you couldn't change the referenceMapObj->{image} on the fly. Lowell The following message was sent by Bob Basques on Fri, 24 Sep 2004 13:35:33 -0500. > All, > > What about this: > > An option for syncing the Refence Map to the current View. Some added > parameter that would build a new images that is synced wioth the current > view extents. > > This would lend it self to programmetric solutions as well. Even to > have the refence map change based on MIN/MAX-extent vaules. > > > Any ideas anyone? > > bobb From bob.basques at CI.STPAUL.MN.US Fri Sep 24 13:30:51 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Fri, 24 Sep 2004 15:30:51 -0500 Subject: a new thought on refence maps. In-Reply-To: Message-ID: Lowell Filak wrote: >If you integrate some form of mapscript I don't see why you couldn't >change the referenceMapObj->{image} on the fly. > > I can write out the image easy enough from perl, but the reference imagemap capababilities would need to be generated seperately. I was just wondering about the possibilities from the standard CGI calls. I wondered about putting a URL in for the image designation for instance, if that worked, then I could pass in a new reference map config via the URL complete with new extents. It might be easier in the end though, to just make it a seperate image call to MapServer and handle the reference (non-mapserver) maps via PERL directly. bobb >Lowell > >The following message was sent by Bob Basques > on Fri, 24 Sep 2004 13:35:33 -0500. > > > >>All, >> >>What about this: >> >>An option for syncing the Refence Map to the current View. Some added >>parameter that would build a new images that is synced wioth the current >>view extents. >> >>This would lend it self to programmetric solutions as well. Even to >>have the refence map change based on MIN/MAX-extent vaules. >> >> >>Any ideas anyone? >> >>bobb >> >> > > > > From abest at DIGITALFLEX.NET Fri Sep 24 15:05:36 2004 From: abest at DIGITALFLEX.NET (Anthony Best) Date: Fri, 24 Sep 2004 16:05:36 -0600 Subject: PHP Mapscript module and RegEx Message-ID: Hello, I'm looking into fixing the problem with PHP4s Bundled RegEx and Mapscript. I've hacked the source to compile with mapserver using the system regex, while php is still using the builtin regex. The linking seems to be correct, however I'm uncertain that this is the correct path to fixing this. Is anyone else working on this? What is the real problem that requires mapscript to use php's bundled regex? Is there still a problem with thread-safety? I'm also getting the impression that mapscript is incorrectly using the php4 API. Is this true? I'm willing to put the time and effort into fixing this issue (as well as other issues). -- Anthony Best Technical Consultant DigitalFlex LLC From ikebrian at YAHOO.COM Fri Sep 24 15:06:28 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Fri, 24 Sep 2004 15:06:28 -0700 Subject: Query of Map Message-ID: Hello, I am very new to the software and learning how to use it.I have congifured my *.map file and I really dont know how to publish it in http or better still to query the map for viewing.Please could anyone help me how to do that? Thank you very much Ike --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Fri Sep 24 16:31:29 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Fri, 24 Sep 2004 18:31:29 -0500 Subject: Query of Map Message-ID: Ike, I recommend that you downloat the demo and get that up and running. From jkim at SCIENCES.SDSU.EDU Fri Sep 24 17:12:21 2004 From: jkim at SCIENCES.SDSU.EDU (John Kim) Date: Fri, 24 Sep 2004 17:12:21 -0700 Subject: PhpMapscript says ms_png not defined Message-ID: Hi, I just installed PHPMapScript and tried running a simple PHP script with a test map, and the resulting html says, "use of undefined constant MS_PNG". Where should this have been defined? (I had a similar problem when I tried the GMap demo, except it said MS_GIF was undefined.) Here's my PHP code: dl("php_mapscript_42.dll"); $map = ms_newMapObj("test.map"); print $map->numlayers; // this line prints 4 $img = $map->draw(); $url = $img->saveWebImage(MS_PNG, 0, 0, 0); I'm using Mapserver 4.2.3, PHP 4.3.9, PHP Mapscript 4.2, and Apache 2.0 on Windows 2000. Did I not configure something right? Thanks, -- John Kim From keon at NACSE.ORG Fri Sep 24 20:13:25 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Fri, 24 Sep 2004 20:13:25 -0700 Subject: PhpMapscript says ms_png not defined In-Reply-To: <00b401c4a294$56a65f60$efebbf82@sdsufs04> Message-ID: Arguments are no longer necessary for saveWebImage(). You can just do: $url = $img->saveWebImage(); Use an OUTPUTFORMAT block in your mapfile to define how the image should be created. Or you can just use the default values associated with whatever IMAGETYPE you declare (e.g., IMAGETYPE PNG). See http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#outputformat for more info. --Dylan John Kim wrote: > Hi, > > I just installed PHPMapScript and tried running a simple PHP script with a > test map, and the resulting html says, "use of undefined constant MS_PNG". > Where should this have been defined? (I had a similar problem when I tried > the GMap demo, except it said MS_GIF was undefined.) > > Here's my PHP code: > dl("php_mapscript_42.dll"); > $map = ms_newMapObj("test.map"); > print $map->numlayers; // this line prints 4 > $img = $map->draw(); > $url = $img->saveWebImage(MS_PNG, 0, 0, 0); > > I'm using Mapserver 4.2.3, PHP 4.3.9, PHP Mapscript 4.2, and Apache 2.0 > on Windows 2000. Did I not configure something right? > > Thanks, > > -- > John Kim From bob.basques at CI.STPAUL.MN.US Sat Sep 25 07:41:11 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Sat, 25 Sep 2004 09:41:11 -0500 Subject: TEMPLATE(s), can more than one image be built per request (in addition to the reference map) Message-ID: All, Can more than one image be built per MapServer request? Other than a reference map? I'm trying to build a thumbnail alongside of the result and reference maps. Can more than one TEMPLATE be used to generate different sizes of images pre request? I'm trying to run a single request through per view and build all the needed imagery in a single shot. BTW, thanks for all the answers lately. I know they are sort of off kilter sometimes. :c) bobb From bigfoot at MAIN-TASK.COM Sat Sep 25 15:02:47 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Sat, 25 Sep 2004 17:02:47 -0500 Subject: Oracle Spatial Performance Message-ID: Hello, List. I don't know if this is an off-topic question but, I really need some help. I've worked a lot with mapserver, specially with phpmapscript, and with shape files and postgis data. Finally, about 6 months ago, we received a request from a customer in order to develop a web application that would be able to connect with oracle data. Well, after face all kinds of issues with oracle spatial, everything is working fine now. Except the speed. Every map request to oracle spatial takes at least 20 seconds, with very small geometries, and in some cases it takes 2 minutes or more. I would like you to give me some clue, because I've worked with postgis and shps and I've never had this kind of problems. All the geometries are indexed. The time responses are almost the same working with ORACLESPATIAL and OGR connection. For example: The command: ogrinfo OCI:xxx/xxx at xxx -sql "SELECT ID, ORA_GEOMETRY, NOMBRE FROM SIG_DEPTOS" Takes 1 minute. The same geometry in shp: ogrinfo -al departamentos.shp Takes less than one second. I know this is a very general question, but I don't know where I could get some more information. Any help will be very-very appreciated. Thanks a lot, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From warmerdam at POBOX.COM Sat Sep 25 16:34:52 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sat, 25 Sep 2004 19:34:52 -0400 Subject: Oracle Spatial Performance In-Reply-To: <4155EB07.4090303@main-task.com> Message-ID: Vladimir Guzm?n wrote: > Hello, List. > > I don't know if this is an off-topic question but, I really need some help. > I've worked a lot with mapserver, specially with phpmapscript, and with > shape files and postgis data. > Finally, about 6 months ago, we received a request from a customer in > order to develop a web application that would be able to connect with > oracle data. > Well, after face all kinds of issues with oracle spatial, everything is > working fine now. Except the speed. > Every map request to oracle spatial takes at least 20 seconds, with very > small geometries, and in some cases it takes 2 minutes or more. > I would like you to give me some clue, because I've worked with postgis > and shps and I've never had this kind of problems. > All the geometries are indexed. > The time responses are almost the same working with ORACLESPATIAL and > OGR connection. > > For example: > The command: > ogrinfo OCI:xxx/xxx at xxx -sql "SELECT ID, ORA_GEOMETRY, NOMBRE FROM > SIG_DEPTOS" > Takes 1 minute. > The same geometry in shp: > ogrinfo -al departamentos.shp > Takes less than one second. Vladimir, I can think of a couple of issues. First, the connection overhead to Oracle tends to be pretty expensive. In my work it was several seconds to a local Oracle instance. When using MapServer in "cgi" mode where a new process is forked and needs to connect to Oracle for each map request the extra overhead can be quite devestating. The presume solution to this is to keep the process resident, for instance by using FastCGI and caching the oracle connection. This is currently not supported by MapServer, but I am working on FastCGI support again on behalf of Refractions and so a solution may become available in the coming months. Second, by default OGR will collect schema information from all the tables (or at least spatial tables) in your database. This can be very expensive for a database with alot of tables. However, this issue is unique to OGR connections to Oracle, and should not occur with the more direct Oracle support in MapServer. 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 dylan at IICI.NO-IP.ORG Sat Sep 25 17:26:12 2004 From: dylan at IICI.NO-IP.ORG (dylan) Date: Sat, 25 Sep 2004 17:26:12 -0700 Subject: MySQL or Oracle queries... In-Reply-To: <20040922161452.N10633@web1.merit.edu> Message-ID: Hi -- i am doing a similar thing with soils data. i use a mapserver query template that has a re-direct to a php page that does all of the processing of the query via a unique mapunit ID. let me know if you are interested in the details. Cheers! Dylan on 04.9.22 1:14 PM, William Bulley at web at UMICH.EDU was reported to have writen: > I am new to MapServer so please bear with me... > > The main MapServer home page makes reference to a feature > of MapServer that would allow queries to a database like > MySQL or Oracle no doubt through Perl's DBI module. > > My interest is not obtaining points to plot from a table > in a database, but rather tabular or scalar information > about a map feature (height of a building, address of a > store, etc.) that might be selected by a MapServer user. > > I am no where near being able to attempt this at my level > of MapServer knowledge today, but if it is possible to do > this, could someone point me to a chunk of documentation > or a WWW page for more information? > > I assume that something like this would need to be done > using MapScript (Perl?) if at all. > > Regards, > > web... > > -- > William Bulley Email: web at umich.edu > From ikebrian at YAHOO.COM Sat Sep 25 18:18:39 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Sat, 25 Sep 2004 18:18:39 -0700 Subject: Query not showing Map/Scale/Legend In-Reply-To: Message-ID: Thank you very much for the reply.I have downloaded the demo as u said and have followd all the necessary steps. When I clicked on intialise the page the opened did not show the following the map legend scale But all other things showed up.I would like to know if there is something else that I should do to show up the above mentioned objects. I think that image type is the problem.Hoping to hear from you. Isaac done as you said. David Fawcett wrote: Ike, I recommend that you downloat the demo and get that up and running. From temiz at DEPREM.GOV.TR Sun Sep 26 03:43:54 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Sun, 26 Sep 2004 13:43:54 +0300 Subject: zooming by drawn rectangle Message-ID: hello I want to draw a rectangle by which I can carry out zooming. How might be a related example ? I will appeciate if you reply ? 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 temiz at DEPREM.GOV.TR Sun Sep 26 04:09:15 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Sun, 26 Sep 2004 14:09:15 +0300 Subject: unable to get raster values ? Message-ID: despite all my efforts, I cannot the solve the problem. I just want to get raster map value where I have clicked. I can display it and get value from polygon layer but not from raster layer concerned. Instead I get an error message concerning line "**" : "MapServer Error]: msQueryByPoint(): No matching record(s) found." ////raster $heylayer ->set("status",1); ** if ($heylayer->queryByPoint($pt, MS_SINGLE, 180.0) == MS_SUCCESS) { // find out how many results we found $heylayer->open(); // find out how many results we found for ($i = 0; $i < 1000; $i++) { // get the results we need from the layer $res_hey = $heylayer->getResult($i); // get our shape info from the index $heyData = $heylayer->getShape($res_hey->shapeindex, $res_hey->tileindex); $hey_vars=get_object_vars($heyData); //$heylayer->close(); while (list($key,$value)=each($hey_vars)) : print "$key ==> $value
"; endwhile; //////end rast /////** } } I will appreciate if you help me regards AhmetTemiz ______________________________________ 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 Michael.Smith at ERDC.USACE.ARMY.MIL Sun Sep 26 05:47:01 2004 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Sun, 26 Sep 2004 07:47:01 -0500 Subject: Oracle Spatial Performance Message-ID: It is also very important for performance reasons to increase the array size in maporaclespatial.c and recompile. We generally recommend setting array size to ~ 1000. We generally see an order of magnitude increase in speed with this change. Mike Smith USACE-CRREL Remote Sensing GIS Center of Expertise Hanover, NH -----Original Message----- From: Frank Warmerdam To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 9/25/2004 7:34 PM Subject: Re: [UMN_MAPSERVER-USERS] Oracle Spatial Performance Vladimir Guzm?n wrote: > Hello, List. > > I don't know if this is an off-topic question but, I really need some help. > I've worked a lot with mapserver, specially with phpmapscript, and with > shape files and postgis data. > Finally, about 6 months ago, we received a request from a customer in > order to develop a web application that would be able to connect with > oracle data. > Well, after face all kinds of issues with oracle spatial, everything is > working fine now. Except the speed. > Every map request to oracle spatial takes at least 20 seconds, with very > small geometries, and in some cases it takes 2 minutes or more. > I would like you to give me some clue, because I've worked with postgis > and shps and I've never had this kind of problems. > All the geometries are indexed. > The time responses are almost the same working with ORACLESPATIAL and > OGR connection. > > For example: > The command: > ogrinfo OCI:xxx/xxx at xxx -sql "SELECT ID, ORA_GEOMETRY, NOMBRE FROM > SIG_DEPTOS" > Takes 1 minute. > The same geometry in shp: > ogrinfo -al departamentos.shp > Takes less than one second. Vladimir, I can think of a couple of issues. First, the connection overhead to Oracle tends to be pretty expensive. In my work it was several seconds to a local Oracle instance. When using MapServer in "cgi" mode where a new process is forked and needs to connect to Oracle for each map request the extra overhead can be quite devestating. The presume solution to this is to keep the process resident, for instance by using FastCGI and caching the oracle connection. This is currently not supported by MapServer, but I am working on FastCGI support again on behalf of Refractions and so a solution may become available in the coming months. Second, by default OGR will collect schema information from all the tables (or at least spatial tables) in your database. This can be very expensive for a database with alot of tables. However, this issue is unique to OGR connections to Oracle, and should not occur with the more direct Oracle support in MapServer. 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 siki at AGT.BME.HU Sun Sep 26 11:42:41 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 26 Sep 2004 17:42:41 -0100 Subject: zooming by drawn rectangle {Scanned} In-Reply-To: <41569D6A.5030008@deprem.gov.tr> Message-ID: Hi, See http://maps.dnr.state.mn.us/mapserver_demos/workshop.zip Bye Zoltan On Sun, 26 Sep 2004, temiz wrote: > hello > > I want to draw a rectangle by which I can carry out zooming. > > How might be a related example ? > > I will appeciate if you reply ? > > 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 Chris.Judd at DEP.STATE.FL.US Sun Sep 26 09:43:22 2004 From: Chris.Judd at DEP.STATE.FL.US (Judd, Chris) Date: Sun, 26 Sep 2004 12:43:22 -0400 Subject: Oracle Spatial Performance Message-ID: You could see if it is an issue w/ Oracle by running a trace and see if it has significant wait times. Also if you have ArcSDE and ArcView you could register the layer with ArcSDE, draw it in with ArcView and see if you still have a performace issue. You wouldn't suspect it was an issue with scale, project or extent would you? You could also test with a very small layer. FDEP's experience with Oracle and Mapserver is that performance is at least as good with Oracle Spatial as it was with ArcSDE. Hope this helps, -Chris -----Original Message----- From: UMN MapServer Users List on behalf of Smith, Michael ERDC-CRREL-NH Sent: Sun 9/26/2004 8:47 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Subject: Re: [UMN_MAPSERVER-USERS] Oracle Spatial Performance It is also very important for performance reasons to increase the array size in maporaclespatial.c and recompile. We generally recommend setting array size to ~ 1000. We generally see an order of magnitude increase in speed with this change. Mike Smith USACE-CRREL Remote Sensing GIS Center of Expertise Hanover, NH -----Original Message----- From: Frank Warmerdam To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 9/25/2004 7:34 PM Subject: Re: [UMN_MAPSERVER-USERS] Oracle Spatial Performance Vladimir Guzm?n wrote: > Hello, List. > > I don't know if this is an off-topic question but, I really need some help. > I've worked a lot with mapserver, specially with phpmapscript, and with > shape files and postgis data. > Finally, about 6 months ago, we received a request from a customer in > order to develop a web application that would be able to connect with > oracle data. > Well, after face all kinds of issues with oracle spatial, everything is > working fine now. Except the speed. > Every map request to oracle spatial takes at least 20 seconds, with very > small geometries, and in some cases it takes 2 minutes or more. > I would like you to give me some clue, because I've worked with postgis > and shps and I've never had this kind of problems. > All the geometries are indexed. > The time responses are almost the same working with ORACLESPATIAL and > OGR connection. > > For example: > The command: > ogrinfo OCI:xxx/xxx at xxx -sql "SELECT ID, ORA_GEOMETRY, NOMBRE FROM > SIG_DEPTOS" > Takes 1 minute. > The same geometry in shp: > ogrinfo -al departamentos.shp > Takes less than one second. Vladimir, I can think of a couple of issues. First, the connection overhead to Oracle tends to be pretty expensive. In my work it was several seconds to a local Oracle instance. When using MapServer in "cgi" mode where a new process is forked and needs to connect to Oracle for each map request the extra overhead can be quite devestating. The presume solution to this is to keep the process resident, for instance by using FastCGI and caching the oracle connection. This is currently not supported by MapServer, but I am working on FastCGI support again on behalf of Refractions and so a solution may become available in the coming months. Second, by default OGR will collect schema information from all the tables (or at least spatial tables) in your database. This can be very expensive for a database with alot of tables. However, this issue is unique to OGR connections to Oracle, and should not occur with the more direct Oracle support in MapServer. 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 thomaschesky at YAHOO.COM Sun Sep 26 12:32:21 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sun, 26 Sep 2004 12:32:21 -0700 Subject: USGS Urban133 Ortho Imagery via WMS In-Reply-To: <200409041656.54122.tylermitchell@shaw.ca> Message-ID: Tyler, I have 3 png files with different output projection (500Kb each, I am not sure if it's OK to post such big files on the list, confirm, and I will send them) All are slightly reprojected (that is: something happening with the image when requesting other projection) but only 4326 produces correct overlays (the default and only USGS WMS projection). layers: USGS ortho, parcel, FEMA hazards I am testing via the cgi interface with the following parameters: 1., /cgi-bin/mapserv?mode=map&map=/usr/local/mapapp/map.map&layers=SanFrancisco01%20Q3Flood%20san_mateo_cou_ca_apn&mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize=600+400&map_projection=init%3Depsg:2227 2., /cgi-bin/mapserv?mode=map&map=/usr/local/mapapp/map.map&layers=SanFrancisco01%20Q3Flood%20san_mateo_cou_ca_apn&mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize=600+400&map_projection=init%3Depsg:4326 3., /cgi-bin/mapserv?mode=map&map=/usr/local/mapapp/map.map&layers=SanFrancisco01%20Q3Flood%20san_mateo_cou_ca_apn&mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize=600+400&map_projection=init%3Depsg:26910 I removed units and projection from the map file as you suggested # UNITS DD # PROJECTION # "init=epsg:26910" # END Same problem. Is it possible that reprojection using epsg on raster layer causes the problem? I doubt, but everything else looks fine otherwise and the parcels are reprojected correctly, but the raster WMS layer is not. Any idea? Thanks Tyler Mitchell wrote: > Is there any special thing to know re: reprojecting raster layers? Shouldn't be! > > UNITS DD > > PROJECTION > "init=epsg:26910" > END Really? Decimal Degrees (DD) for UTM Zone 10 projection that is in metres? Tyler --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Sun Sep 26 13:23:25 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 26 Sep 2004 16:23:25 -0400 Subject: unable to get raster values ? In-Reply-To: <4156A35B.40601@deprem.gov.tr> Message-ID: temiz wrote: > despite all my efforts, I cannot the solve the problem. > I just want to get raster map value where I have clicked. > I can display it and get value from polygon layer but not from > raster layer concerned. > Instead I get an error message concerning line "**" : > "MapServer Error]: msQueryByPoint(): No matching record(s) found." > > ////raster > $heylayer ->set("status",1); > > ** if ($heylayer->queryByPoint($pt, MS_SINGLE, 180.0) > == MS_SUCCESS) { > // find out how many results we found > $heylayer->open(); > // find out how many results we found > for ($i = 0; $i < 1000; $i++) { > // get the results we need from the layer > $res_hey = $heylayer->getResult($i); > // get our shape info from the index > $heyData = > $heylayer->getShape($res_hey->shapeindex, $res_hey->tileindex); > > > $hey_vars=get_object_vars($heyData); > //$heylayer->close(); > while (list($key,$value)=each($hey_vars)) : > print "$key ==> $value
"; > endwhile; > //////end rast Ahmet, I don't think I have been following your earlier email on this topic very closely. Are you using MapServer 4.3? Raster query is not available in earlier versions. Do you have a template on your raster layer that you want to be queriable? This marks it as queriable even if you don't actually use the template. The filename listed in the TEMPLATE statement does not even need to exist. Also, you should review the RasterQuery topic in the Wiki at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterQuery You might also want to look at the raster query test script. It can be found in msautotest/mspython/rqtest.py in MapServer CVS. It may be a useful example of what needs to be done from mapscript (python in that case). If you have looked into all these issues, and you still can't get it to work, let me know and provide a minimal example of your situation I can try and use to look into the problem. -- ---------------------------------------+-------------------------------------- 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 Robin.Ellis at NRME.QLD.GOV.AU Sun Sep 26 19:04:53 2004 From: Robin.Ellis at NRME.QLD.GOV.AU (Ellis Robin (Bundaberg)) Date: Mon, 27 Sep 2004 12:04:53 +1000 Subject: ARCIMS Emulator getProjection with ArcGIS9.0 Message-ID: I've had the ArcIMS Emulator working just great for a few months now, however we've just upgraded our ESRI software to ArcGIS 9 and I've found that the request string being output from ArcGIS is slightly different between versions, causing an error to occur when processing 'com.esri.esrimap.Esrimap'. I've been able to implement a dodgy workaround to suit my specific needs, however it isn't a solution that will help other users. If someone can come up with a transferable solution I'd like to implement it. It looks to me that the XML output from ArcGIS 8.3 used "EPSG" ID's for FEATURECOORDSYS and FILTERCOORDSYS, like this: But ArcGIS 9.0 uses strings to define these, like this: The com.esri.esrimap.Esrimap file looked as though it would cater for this difference in XML, however I've found that the process falls over at this stage: my $l = new mapscript::layerObj($map); $l->setWKTProjection($filtcs_wkt); $envelope->project(new mapscript::projectionObj($l->getProjection()),new mapscript::projectionObj($map->getProjection())); Now, wether this is because ESRI has messed up the projection definition string for this particular coordinate system or the getProjection syntax has changed (input and output) I'm not sure. In the mean time I've hard-coded in the appropriate EPSG ID for the coordinate system that we always use: $envelope->project(new mapscript::projectionObj("init=epsg:4283"),new mapscript::projectionObj($map->getProjection())); Effect for this particular instance, but not so good for other people. If anybody can come up with a more robust solution I'd love to hear it. I'm not an expert in coordinate system definition, so if it looks like the problem is on ESRI's side please let me know and I'll try to iron bugs on that side of things. Thanks Rob Robin Ellis Department of Natural Resources and Mines PO Box 1167 Bundaberg QLD 4670 ph +61 7 4131 5771 fax +61 7 4131 5823 Robin.Ellis at nrm.qld.gov.au ************************************************************************ The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network. ************************************************************************ From warmerdam at POBOX.COM Sun Sep 26 19:36:08 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Sun, 26 Sep 2004 22:36:08 -0400 Subject: ARCIMS Emulator getProjection with ArcGIS9.0 In-Reply-To: Message-ID: Ellis Robin (Bundaberg) wrote: > string="GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID... > > The com.esri.esrimap.Esrimap file looked as though it would cater for this difference in XML, however I've found that > the process falls over at this stage: > > my $l = new mapscript::layerObj($map); $l->setWKTProjection($filtcs_wkt); $envelope->project(new > mapscript::projectionObj($l->getProjection()),new mapscript::projectionObj($map->getProjection())); Robin, Unfortunately the OGC WKT coordinate system specification was pretty weak and there are a variety of variations. I presume that the layerObj->setWKTProjection() method is expecting something that is compatible with the OGR WKT definition. However, ESRI WKT is somewhat different. The key (deep down in OGR) is to import ESRI WKT and then to call morphFromESRI() on the WKT to "normalize" the definition. As far as I know this is not directly accessable from MapScript, but I would suggest layerObj->setWKTProjection() be altered to do this morphing internally if the WKT is prefixed with something like ESRI:::. Then the above mapscript could apply that. In fact, we might want to change the setWKTProjection() method to use the OGRSpatialReference::SetFromUserInput() method which includes escapes for various formats, including ESRI morphing. Of course, I could be a bit off target on what the real issue is. I wouldn't have expected any serious issues in a simple GEOGCS definition. 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 hobu at IASTATE.EDU Sun Sep 26 21:02:17 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Sun, 26 Sep 2004 23:02:17 -0500 Subject: ARCIMS Emulator getProjection with ArcGIS9.0 In-Reply-To: Message-ID: I have a Python solution that utilizes OGR and Python mapscript to emulate ArcIMS 9.0. It works correctly with ESRI WKT by transforming it to a proj4 string using OGR. Contact my off list if you are interested in a copy At 09:36 PM 9/26/2004, Frank Warmerdam wrote: >Ellis Robin (Bundaberg) wrote: > > > > string="GEOGCS["GCS_GDA_1994",DATUM["D_GDA_1994",SPHEROID... > > > > > The com.esri.esrimap.Esrimap file looked as though it would cater for > this difference in XML, however I've found that > > the process falls over at this stage: > > > > my $l = new mapscript::layerObj($map); > $l->setWKTProjection($filtcs_wkt); $envelope->project(new > > mapscript::projectionObj($l->getProjection()),new > mapscript::projectionObj($map->getProjection())); > >Robin, > >Unfortunately the OGC WKT coordinate system specification was pretty >weak and there are a variety of variations. I presume that the >layerObj->setWKTProjection() method is expecting something that is >compatible with the OGR WKT definition. However, ESRI WKT is somewhat >different. The key (deep down in OGR) is to import ESRI WKT and >then to call morphFromESRI() on the WKT to "normalize" the definition. > >As far as I know this is not directly accessable from MapScript, but I >would suggest layerObj->setWKTProjection() be altered to do this morphing >internally if the WKT is prefixed with something like ESRI:::. Then the >above mapscript could apply that. In fact, we might want to change the >setWKTProjection() method to use the OGRSpatialReference::SetFromUserInput() >method which includes escapes for various formats, including ESRI morphing. > >Of course, I could be a bit off target on what the real issue is. I wouldn't >have expected any serious issues in a simple GEOGCS definition. > >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 urrc at MYDESTINY.NET Sun Sep 26 22:52:20 2004 From: urrc at MYDESTINY.NET (URRC) Date: Mon, 27 Sep 2004 13:52:20 +0800 Subject: No subject Message-ID: Hello. I am currently using mapserver 4.02. If I will upgrade to the latest version, what will be the procedures? Do I need to recompile again? Thanks. Jun -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnulf.christl at CCGIS.DE Sun Sep 26 23:53:13 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Mon, 27 Sep 2004 08:53:13 +0200 Subject: WMS_client image format problems In-Reply-To: <41545CD2.7080304@karsten-lessing.de> Message-ID: K. Lessing wrote: > Hi Arnulf, > > thanx for your answer. > If you try this: > http://www.geoway.de/cgi-bin/mapserv3.cgi?MAP=/home/geoway/geoway.map&VERSION=1.1.0&REQUEST=GetCapabilities > > the Server answers with an xml file: > Unfortunatelly I could not find any helpful information in this xml file! > That is the problem. In the capabilities Online Resource you find the IP number that doesn't work, so once the capabilites have been interpreted correctly the client will query for the IP which does not work. As a workaround you could save the XML as a local file, change the IP to the above given URL, and try agin, maybe then it will work. The capabilities should be corrected anyway. Regards, Arnulf. > regards > Karsten > > Arnulf Christl schrieb: > >> K. Lessing wrote: >> >>> Dear List, >>> >>> I am running MapServer 4.2.3 at least with WMS_client capabilities. >>> I try to capture one layer "laender" out from www.geoway.de. >> >> >> >> Hi, >> the capabilties request >> http://192.168.23.151/mapserv.cgi?map=/home/geoway/geoway.map&WMTVER=1.0.0&REQUEST=capabilities >> >> >> does not return anything but a "timed out..." >> >> Maybe the server you try to access is just not available. >> >> Cheers, Arnulf. >> >>> The whole bundle of layers can be seen here: >>> http://www.geoway.de/cgi-bin/mapserv3.cgi?MAP=/home/geoway/geoway.map&VERSION=1.1.0&REQUEST=GetMap&&SRS=EPSG:32632&BBOX=280450,5236000,921400,6102500 >>> >>> >>> >>> >>> The geoway MapServer seams to produce images which are stored in my >>> directory: >>> /srv/www/htdocs/tmp/ >>> >>> Unfortunally the suffix of the files which are stored in my directory >>> and which my MapServer is trying to display are looking strange: >>> *.img.tmp >>> >>> Does anybody know if I configured something wrong? >>> (My Mapfile in the following) >>> >>> best regards and >>> many thanx beforehand >>> Karsten >>> >>> >>> MAP >>> >>> NAME Testfile >>> SHAPEPATH "../daten" >>> SYMBOLSET "../docs/symbol.txt" >>> FONTSET "/srv/www/htdocs/fonts/fonts.txt" >>> EXTENT 280460 5235969 921383 6102410 >>> STATUS ON >>> SIZE 400 400 >>> >>> WEB >>> TEMPLATE "temp0.html" >>> IMAGEPATH "/srv/www/htdocs/tmp/" >>> IMAGEURL "/tmp/" >>> END >>> >>> PROJECTION >>> "init=EPSG:32632" >>> END >>> >>> OUTPUTFORMAT >>> NAME "Farbenfroh" >>> DRIVER "GD/png" >>> MIMETYPE "image/png" >>> IMAGEMODE RGB >>> EXTENSION "png" >>> END >>> >>> LAYER >>> NAME "laender" >>> TYPE VECTOR >>> STATUS DEFAULT >>> CONNECTION "http://www.geoway.de/cgi-bin/geoway.map?" >>> CONNECTIONTYPE WMS >>> METADATA >>> "wms_srs" "EPSG:32632" >>> "wms_name" "laender" >>> "wms_server_version" "1.1.0" >>> "wms_formatlist" "image/png" >>> "wms_format" "image/png" >>> END >>> END >>> >>> END >>> >> >> >> -- >> ---------------------------- >> CCGIS Christl & Stamm GbR >> ---------------------------- >> http://www.ccgis.de >> http://www.mapbender.org >> ---------------------------- >> Service: +49 (0)228 90826 0 >> Direct: +49 (0)228 90826 23 >> Fax: +49 (0)228 90826 11 >> ---------------------------- >> CCGIS Christl & Stamm GbR >> Siemensstra?e 8 >> 53121 Bonn >> GERMANY >> > -- ---------------------------- CCGIS Christl & Stamm GbR ---------------------------- http://www.ccgis.de http://www.mapbender.org ---------------------------- Service: +49 (0)228 90826 0 Direct: +49 (0)228 90826 23 Fax: +49 (0)228 90826 11 ---------------------------- CCGIS Christl & Stamm GbR Siemensstra?e 8 53121 Bonn GERMANY From joanvp at YAHOO.COM Mon Sep 27 02:18:08 2004 From: joanvp at YAHOO.COM (joanvp) Date: Mon, 27 Sep 2004 02:18:08 -0700 Subject: Tile index with gdal Message-ID: Hi list! I have a big problem. I need to add to my map file a large amount of tiff images. More than 300. I know that I can do it with tileindex. I have seen an example in How To Raster. I've tried to run gdal-1.1.9 but it show me this dialog: "No python installation is in registry" I also have tried OpenEV but I can find the way to make the shapefile tileindex. Any idea? I'm using Windows 2000 Thank you __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From gpmail at POST.HTNET.HR Mon Sep 27 04:22:20 2004 From: gpmail at POST.HTNET.HR (Goran Pavelic) Date: Mon, 27 Sep 2004 13:22:20 +0200 Subject: [OT] Landsat WMS not working? Message-ID: 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 sobomsawin at KASSINI.COM Mon Sep 27 06:24:51 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 27 Sep 2004 09:24:51 -0400 Subject: [UMN_MAPSERVER-USERS] Query not showing Map/Scale/Legend In-Reply-To: <20040926011839.28507.qmail@web60503.mail.yahoo.com> Message-ID: Ike, To get the Mapserver demo working, you must at least: 1- Have a working installation of Apache with CGI support 2- Have a working installation of Mapserver CGI 3- Change variables of the Map file (SHAPEPATH, TEMPLATE and WEB block particularly) according to your system 4- Change variables of the HTML files according to your system You can verify your Mapserver CGI installation by sending a test URL to your server (see the doc from Mapserver web site). I recommend you take a look at this tutorial which will guide you through the installation and testing process: HYPERLINK "http://terrasip.gis.umn.edu/projects/tutorial/"http://terrasip.gis.umn.edu/ projects/tutorial/ Otherwise, you can use the DMSolutions Maplab product: HYPERLINK "http://www.dmsolutions.ca/techserv/maplab.html"http://www.dmsolutions.ca/te chserv/maplab.html Best regards, 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? : 25 septembre 2004 21:19 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Query not showing Map/Scale/Legend Thank you very much for the reply.I have downloaded the demo as u said and have followd all the necessary steps. When I clicked on intialise the page the opened did not show the following * the map * legend * scale But all other things showed up.I would like to know if there is something else that I should do to show up the above mentioned objects. I think that image type is the problem.Hoping to hear from you. Isaac done as you said. David Fawcett wrote: Ike, I recommend that you downloat the demo and get that up and running. From ms57 at STREAMYX.COM Mon Sep 27 06:45:12 2004 From: ms57 at STREAMYX.COM (Steve McCrone) Date: Mon, 27 Sep 2004 21:45:12 +0800 Subject: asp and mapserver Message-ID: Hi, Is there a way to mix asp and mapserver? I need to access a database using asp, and then use some of the reults to create a GIF using mapserver, and then pass the gif file name created to another html page. The problem is that I cannot seem to mix mapserver and asp. Thanks From craig.gould at BT.COM Mon Sep 27 07:02:37 2004 From: craig.gould at BT.COM (C Gould) Date: Mon, 27 Sep 2004 15:02:37 +0100 Subject: asp and mapserver Message-ID: Steve, Can you not create a page that : 1. Does your preprocessing with the database and creates your mapserver cgi url. 2. Uses a third party product (e.g. w3sockets http://www.dimac.net/Products/FreeProducts/w3Sockets/start.htm ) to call the mapserver cgi-script and retrieve the resulting HTML which will contain the newly created GIF's URL. 3. Pass this GIF URL onto the other HTML page. Regards Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve McCrone Sent: 27 September 2004 14:45 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] asp and mapserver Hi, Is there a way to mix asp and mapserver? I need to access a database using asp, and then use some of the reults to create a GIF using mapserver, and then pass the gif file name created to another html page. The problem is that I cannot seem to mix mapserver and asp. Thanks From ed at TOPOZONE.COM Mon Sep 27 07:05:29 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 27 Sep 2004 10:05:29 -0400 Subject: asp and mapserver Message-ID: Steve - I'd suggest you look into the MapServer OGC WMS interface. It's a simple, open standard that lets you request a specific map image through the use of URL querystring parameters. Just generate the parameters you want, pass the URL to the output page and insert it as the SRC property of an tag on that page. Much of the MapServer "template" mechanism is provided to allow relatively sophisticated applications to be built WITHOUT the use of a server-side scripting environment. Most users who get confused with ASP and MapServer do so because they try to continue using the MapServer "mode=browse" model (with template processing) rather than stepping around it with either a "mode=map" or WMS interface. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of C Gould Sent: Monday, September 27, 2004 10:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] asp and mapserver Steve, Can you not create a page that : 1. Does your preprocessing with the database and creates your mapserver cgi url. 2. Uses a third party product (e.g. w3sockets http://www.dimac.net/Products/FreeProducts/w3Sockets/start.htm ) to call the mapserver cgi-script and retrieve the resulting HTML which will contain the newly created GIF's URL. 3. Pass this GIF URL onto the other HTML page. Regards Craig -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve McCrone Sent: 27 September 2004 14:45 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] asp and mapserver Hi, Is there a way to mix asp and mapserver? I need to access a database using asp, and then use some of the reults to create a GIF using mapserver, and then pass the gif file name created to another html page. The problem is that I cannot seem to mix mapserver and asp. Thanks From vondr551 at CENTRUM.CZ Mon Sep 27 07:11:26 2004 From: vondr551 at CENTRUM.CZ (Karel Vondracek) Date: Mon, 27 Sep 2004 09:11:26 -0500 Subject: save query Message-ID: Hello, my name is Karel Vondracek and I'm from Czech republic from Europe. I'm not be good in english, but I hope that you understand my question. I make a web aplication using MapServer and I have a problem. If client make a query (mode - itemquery or itemquerymap) every result save to the disk on the server (images). How I can disable save the query result to the disk? How CGI parameters I must use? (I try use savequery=false, but images still save to the disk). I use MapServer 4.0.2 for Windows. Thank you From gpmail at POST.HTNET.HR Mon Sep 27 07:29:09 2004 From: gpmail at POST.HTNET.HR (Goran Pavelic) Date: Mon, 27 Sep 2004 16:29:09 +0200 Subject: asp and mapserver Message-ID: By asp you are reffering to "active server pages"? I normaly use MapServer on winXP with IIS installed as a web server. I have a layer that reads a list of points from an Access database through ODBC (this means you are not limited to Access :-). I could easily use ASP to manage my database.... For reading the database look at this: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData Beware that you have to have a newer MapServer installation for this to work without problems.....version 4.2.0. works fine... I hope it helps, Goran ----- Original Message ----- From: "Steve McCrone" To: Sent: Monday, September 27, 2004 3:45 PM Subject: [UMN_MAPSERVER-USERS] asp and mapserver > Hi, > > Is there a way to mix asp and mapserver? > > I need to access a database using asp, and then use some of the reults to > create a GIF using mapserver, and then pass the gif file name created to > another html page. > > The problem is that I cannot seem to mix mapserver and asp. > > Thanks > From sobomsawin at KASSINI.COM Mon Sep 27 07:31:53 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 27 Sep 2004 10:31:53 -0400 Subject: [UMN_MAPSERVER-USERS] save query In-Reply-To: Message-ID: Karel, Just set STATUS OFF for every layer. Regards, Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Karel Vondracek Envoy??: 27 septembre 2004 10:11 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] save query Hello, my name is Karel Vondracek and I'm from Czech republic from Europe. I'm not be good in english, but I hope that you understand my question. I make a web aplication using MapServer and I have a problem. If client make a query (mode - itemquery or itemquerymap) every result save to the disk on the server (images). How I can disable save the query result to the disk? How CGI parameters I must use? (I try use savequery=false, but images still save to the disk). I use MapServer 4.0.2 for Windows. Thank you --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.768 / Virus Database: 515 - Release Date: 2004-09-22 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.768 / Virus Database: 515 - Release Date: 2004-09-22 From David.Fawcett at STATE.MN.US Mon Sep 27 07:38:05 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Mon, 27 Sep 2004 09:38:05 -0500 Subject: WFS Server Layer Aggregation Message-ID: I apologize for the re-post. Perhaps I should send it to the dev list. To those of you who added WFS support to MapServer. In a MapServer WFS Server instance, is it possible to build a Map file in a way that you aggregate many local data layers into one layer that can be requested from a WFS Client? I realize that you could do this with one or more tileindex's if your domain of layers was static, however, I am thinking of situations where a dynamic mapfile is used. David. David J. Fawcett MN Office of Environmental Assistance From David.Fawcett at STATE.MN.US Mon Sep 27 07:57:47 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Mon, 27 Sep 2004 09:57:47 -0500 Subject: asp and mapserver Message-ID: Steve, I am not sure what level of integration your are looking for. There are some people on this list who have done .asp MapServer projects, including a wrapper I believe. Hopefully they will speak up. Depending on your needs, one easy solution is to use .asp to dynamically build a http request string to a MapServer Server (mode=map). This string is then used as the source of an image on your page. I do this with ColdFusion all the time. It doesn't allow you to query the image, zoom, etc. But it is a great, cheap, and easy way to add simple dynamic map components to a Web app. David. >>> Steve McCrone 9/27/2004 8:45:12 AM >>> Hi, Is there a way to mix asp and mapserver? I need to access a database using asp, and then use some of the reults to create a GIF using mapserver, and then pass the gif file name created to another html page. The problem is that I cannot seem to mix mapserver and asp. Thanks From jcastil1 at TRAGSA.ES Mon Sep 27 08:52:14 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Mon, 27 Sep 2004 17:52:14 +0200 Subject: asp and mapserver Message-ID: Hi all I do not know exactly what you are looking for, but ahta I'm doing is : - I have to frames - I select some data from "ASP frame" - I build the URL to "update" the scr of frame2 - I "update" frame2 What I obtain is a "ASP frame" which has somo logical scratch and as "HTML frame" which can be updated from "ASP frame" but also con be manage by itself due to I added zoom, drag, pan,set scale, etc etc functions Hope It will hep you Javier -----Mensaje original----- De: David Fawcett [mailto:David.Fawcett at STATE.MN.US] Enviado el: lunes, 27 de septiembre de 2004 16:58 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: Re: [UMN_MAPSERVER-USERS] asp and mapserver Steve, I am not sure what level of integration your are looking for. There are some people on this list who have done .asp MapServer projects, including a wrapper I believe. Hopefully they will speak up. Depending on your needs, one easy solution is to use .asp to dynamically build a http request string to a MapServer Server (mode=map). This string is then used as the source of an image on your page. I do this with ColdFusion all the time. It doesn't allow you to query the image, zoom, etc. But it is a great, cheap, and easy way to add simple dynamic map components to a Web app. David. >>> Steve McCrone 9/27/2004 8:45:12 AM >>> Hi, Is there a way to mix asp and mapserver? I need to access a database using asp, and then use some of the reults to create a GIF using mapserver, and then pass the gif file name created to another html page. The problem is that I cannot seem to mix mapserver and asp. Thanks From bitner at MACNOISE.COM Mon Sep 27 11:46:16 2004 From: bitner at MACNOISE.COM (David Bitner) Date: Mon, 27 Sep 2004 13:46:16 -0500 Subject: summary by grid Message-ID: Would there be anyway to make use of the grid object to create a summary of line data (flight lines from an airport) by haveing each grid cell shaded in proportion to the number of lines it intersects? Has anybody created this type of report with Mapserver? Any examples, hints? Thanks From woodbri at SWOODBRIDGE.COM Mon Sep 27 11:57:03 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 27 Sep 2004 14:57:03 -0400 Subject: summary by grid In-Reply-To: Message-ID: An interesting idea. I think I would approach this a little differently. The thing you need to do is to use the cell object to query the flight lines data using multiple select and count the number of lines intersecting with the cell object. Then update the the cell's attributes with the count. Mapserver already supports query by shape and query by rectangle. So you could have arbitrary cell object shapes like city polygons or cell rectangles based on shapes. or you could just create a double for loop in mapscript to compute the rectangles and call querybyrect(). Hope this helps, -Steve David Bitner wrote: > Would there be anyway to make use of the grid object to create a summary of > line data (flight lines from an airport) by haveing each grid cell shaded in > proportion to the number of lines it intersects? > > Has anybody created this type of report with Mapserver? Any examples, > hints? > > Thanks > From armin.burger at GMX.NET Mon Sep 27 13:38:03 2004 From: armin.burger at GMX.NET (Armin Burger) Date: Mon, 27 Sep 2004 22:38:03 +0200 Subject: Tile index with gdal Message-ID: Joan I found the solution once on the Mapserver mailing list. You can use the gdaltindex from OpenEV and use a command like for %f in (D:\data\IMAGES\*.tif) do gdaltindex img_index.shp %f on the CMD prompt. Armin > Hi list! > I have a big problem. I need to add to my map file a > large amount of tiff images. More than 300. I know > that I can do it with tileindex. I have seen an > example in How To Raster. > I've tried to run gdal-1.1.9 but it show me this > dialog: "No python installation is in registry" > I also have tried OpenEV but I can find the way to > make the shapefile tileindex. > Any idea? > I'm using Windows 2000 > Thank you > __________________________________ > Do you Yahoo!? > Yahoo! Mail - 50x more storage than other providers! > http://promotions.yahoo.com/new_mail From TCHaddad at CSHORE.COM Mon Sep 27 15:18:06 2004 From: TCHaddad at CSHORE.COM (TCHaddad) Date: Mon, 27 Sep 2004 18:18:06 -0400 Subject: 3.6 migration to 4.2, Lines & Points, Symbols & Queries, GMAP Message-ID: Listers, We have a strange migration issue that we are struggling to solve. In our recent migration of a GMAP-based application from MS 3.6.0 to 4.2.2, we seem to have lost the ability to query POINT and LINE files. Below are examples from our MAP file of each layer type. All 3 layers draw as expected in 4.2 with the various specified symbols. The first is a POLYGON file and queries on it and all POLYGON files behave as expected. Next is a LINE and then a POINT layer, neither of which return any query results, although they should, and did under 3.6. I tried drawing the point layer with huge symbols to make sure that I was definitely hitting the item I was trying to Query, but it made no difference. Am somewhat stumped as to where to look next as I can't think why POLYGON queries would work but others would not. The only other variable in the below is the SYMBOL type: the first is VECTOR, the second is ELIPSE and the third is PIXMAP. Any ideas would be great... Tanya -----------fwd-----------> LAYER NAME localpark GROUP Landmarks METADATA "DESCRIPTION" "Local Park" "RESULT_FIELDS" "NAME" END STATUS OFF TYPE POLYGON LABELITEM "Name" TILEINDEX "data\park" MAXSCALE 700000 CLASS NAME 'Local Park' MAXSCALE 100000 TEMPLATE "ttt_query.html" STYLE COLOR 155 205 155 SYMBOL 'trans2' END LABEL ANGLE AUTO COLOR 69 139 116 SIZE 8 TYPE TRUETYPE FONT ARIAL_NB POSITION CC END END END LAYER NAME ushighway GROUP Transportation METADATA "DESCRIPTION" "US highway" "RESULT_FIELDS" "NAME" END STATUS OFF TYPE LINE TILEINDEX "data\us_hi" MAXSCALE 3000000 CLASS MAXSCALE 100000 NAME "US Highway" TEMPLATE "ttt_query.html" STYLE SYMBOL 'circle1' COLOR 54 54 54 SIZE 3 END OVERLAYSYMBOL 'circle1' OVERLAYCOLOR 25 25 112 OVERLAYSIZE 1 END END LAYER NAME sample_sites GROUP Sample_Sites METADATA "DESCRIPTION" "Sample Site" "RESULT_FIELDS" "NAME ID" END STATUS OFF TYPE POINT DATA "data\locations" CLASS NAME "Sample Site" TEMPLATE "ttt_query.html" STYLE SYMBOL 'red_x' SIZE 1 END END END ________________________________________________________________ From 2BJOERNS at GMX.DE Tue Sep 28 02:54:57 2004 From: 2BJOERNS at GMX.DE (=?ISO-8859-1?Q?Bj=F6rn_Schaffrath?=) Date: Tue, 28 Sep 2004 11:54:57 +0200 Subject: 3.6 migration to 4.2, Lines & Points, Symbols & Queries, GMAP In-Reply-To: <200409271818.AA274661502@cshore.com> Message-ID: TCHaddad schrieb: > Listers, > > We have a strange migration issue that we are struggling to solve. In our recent migration of a GMAP-based application from MS 3.6.0 to 4.2.2, we seem to have lost the ability to query POINT and LINE files. > > Below are examples from our MAP file of each layer type. All 3 layers draw as expected in 4.2 with the various specified symbols. The first is a POLYGON file and queries on it and all POLYGON files behave as expected. Next is a LINE and then a POINT layer, neither of which return any query results, although they should, and did under 3.6. > > I tried drawing the point layer with huge symbols to make sure that I was definitely hitting the item I was trying to Query, but > it made no difference. Am somewhat stumped as to where to look next as I can't think why POLYGON queries would work but others would not. The only other variable in the below is the SYMBOL type: the first is VECTOR, the second is ELIPSE and the third is PIXMAP. > > Any ideas would be great... > > Tanya > > > -----------fwd-----------> > > > LAYER > NAME localpark > GROUP Landmarks > METADATA > "DESCRIPTION" "Local Park" > "RESULT_FIELDS" "NAME" > END > STATUS OFF > TYPE POLYGON > LABELITEM "Name" > TILEINDEX "data\park" > MAXSCALE 700000 > CLASS > NAME 'Local Park' > MAXSCALE 100000 > TEMPLATE "ttt_query.html" > STYLE > COLOR 155 205 155 > SYMBOL 'trans2' > END > LABEL > ANGLE AUTO > COLOR 69 139 116 > SIZE 8 > TYPE TRUETYPE > FONT ARIAL_NB > POSITION CC > END > END > END > > LAYER > NAME ushighway > GROUP Transportation > METADATA > "DESCRIPTION" "US highway" > "RESULT_FIELDS" "NAME" > END > STATUS OFF > TYPE LINE > TILEINDEX "data\us_hi" > MAXSCALE 3000000 > CLASS > MAXSCALE 100000 > NAME "US Highway" > TEMPLATE "ttt_query.html" > STYLE > SYMBOL 'circle1' > COLOR 54 54 54 > SIZE 3 > END > OVERLAYSYMBOL 'circle1' > OVERLAYCOLOR 25 25 112 > OVERLAYSIZE 1 > END > END > > > LAYER > NAME sample_sites > GROUP Sample_Sites > METADATA > "DESCRIPTION" "Sample Site" > "RESULT_FIELDS" "NAME ID" > END > STATUS OFF > TYPE POINT > DATA "data\locations" > CLASS > NAME "Sample Site" > TEMPLATE "ttt_query.html" > STYLE > SYMBOL 'red_x' > SIZE 1 > END > END > END > > > > ________________________________________________________________ > > Hi Tanya, I?ve got the same problem a few weeks ago. you have to set toleranceunits and tolerancesize in your mapfiles (see the docu). bj?rn From joanvp at YAHOO.COM Tue Sep 28 04:42:03 2004 From: joanvp at YAHOO.COM (joanvp) Date: Tue, 28 Sep 2004 04:42:03 -0700 Subject: Tile index with gdal Message-ID: Thanks for your response, But I can't get it. I don'tknow what I'm doing wrong!!!! Now I've tried to use Tile4ms. I execute DOS C:\ms4w\Apache\cgi-bin>tile4ms tilefile.shp c:\foto\*.tif And appears "Unable to create c:\foto\*.tif.shp.shp (.shx)" error. What's wrong? --- Armin Burger wrote: > Joan > > I found the solution once on the Mapserver mailing > list. You can use the gdaltindex from OpenEV and use > a command like > > for %f in (D:\data\IMAGES\*.tif) do gdaltindex > img_index.shp %f > > on the CMD prompt. > > Armin > > > Hi list! > > > I have a big problem. I need to add to my map file > a > > large amount of tiff images. More than 300. I know > > that I can do it with tileindex. I have seen an > > example in How To Raster. > > > I've tried to run gdal-1.1.9 but it show me this > > dialog: "No python installation is in registry" > > > I also have tried OpenEV but I can find the way to > > make the shapefile tileindex. > > > Any idea? > > > I'm using Windows 2000 > > > Thank you > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - 50x more storage than other > providers! > > http://promotions.yahoo.com/new_mail > > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From bgiv at GMX.DE Tue Sep 28 05:00:52 2004 From: bgiv at GMX.DE (Wolfgang Lahr) Date: Tue, 28 Sep 2004 14:00:52 +0200 Subject: PHPMapScript and PHP5 Windows Message-ID: Hello list, I am having a hard time compiling PHPMapScript (Mapserver 4.2.3) with PHP 5.0.x using VC6.0/WinXP. I'm receiving : error C2065: 'tsrm_ls': undeclared identifier, followed by errors with function pointers. It compiles just fine with PHP4.3.x (as did all the previous versions). Any idea? TIA Wolfgang From pablorv at YAHOO.COM Tue Sep 28 05:26:39 2004 From: pablorv at YAHOO.COM (Pablo Toapanta) Date: Tue, 28 Sep 2004 05:26:39 -0700 Subject: Help with shape files Message-ID: Hi again I?ve tried everything to obtain a map file that works with my shape files but I?ve not obtained what I need. I think that is the projection and the correct size of the image. Could anybody tell me if there is a way to know the correct projection and image size for a shape file?? Thanks __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail From ed at TOPOZONE.COM Tue Sep 28 06:14:45 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 28 Sep 2004 09:14:45 -0400 Subject: Tile index with gdal Message-ID: Joan - It looks like you have a tile4ms that was built WITHOUT the wildcard command-line expansion in stdargv.obj. A more literal translation of Armin's command line would be: for %f in (c:\foto\*.tif) do tile4ms tilefile.shp %f Which will work fine, adding the files one at a time. - 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: Tuesday, September 28, 2004 7:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Tile index with gdal Thanks for your response, But I can't get it. I don'tknow what I'm doing wrong!!!! Now I've tried to use Tile4ms. I execute DOS C:\ms4w\Apache\cgi-bin>tile4ms tilefile.shp c:\foto\*.tif And appears "Unable to create c:\foto\*.tif.shp.shp (.shx)" error. What's wrong? --- Armin Burger wrote: > Joan > > I found the solution once on the Mapserver mailing list. You can use > the gdaltindex from OpenEV and use a command like > > for %f in (D:\data\IMAGES\*.tif) do gdaltindex img_index.shp %f > > on the CMD prompt. > > Armin > > > Hi list! > > > I have a big problem. I need to add to my map file > a > > large amount of tiff images. More than 300. I know that I can do it > > with tileindex. I have seen an example in How To Raster. > > > I've tried to run gdal-1.1.9 but it show me this > > dialog: "No python installation is in registry" > > > I also have tried OpenEV but I can find the way to make the > > shapefile tileindex. > > > Any idea? > > > I'm using Windows 2000 > > > Thank you > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Mail - 50x more storage than other > providers! > > http://promotions.yahoo.com/new_mail > > > __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From warmerdam at POBOX.COM Tue Sep 28 06:20:39 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Sep 2004 09:20:39 -0400 Subject: Tile index with gdal In-Reply-To: <20040928114203.6518.qmail@web50308.mail.yahoo.com> Message-ID: joanvp wrote: > Thanks for your response, > > But I can't get it. I don'tknow what I'm doing > wrong!!!! > > Now I've tried to use Tile4ms. I execute DOS > > C:\ms4w\Apache\cgi-bin>tile4ms tilefile.shp > c:\foto\*.tif > > And appears "Unable to create c:\foto\*.tif.shp.shp > (.shx)" error. > > What's wrong? Joan, What is wrong is that you didn't follow Armin's instructions. I believe tile4ms is for greating a tileindex referring to shapefiles. You need to use gdaltindex to build a tile index referring to raster files. And, you actually need to use the for statement as Armin shows ... no kidding. He didn't just write that for his health. Note that the wildcards don't work with gdaltindex (or tile4ms for that matter) because the windows command shell does not take care of wildcard expansion the way unix command shells do. > --- Armin Burger wrote: > > >>Joan >> >>I found the solution once on the Mapserver mailing >>list. You can use the gdaltindex from OpenEV and use >>a command like >> >>for %f in (D:\data\IMAGES\*.tif) do gdaltindex >>img_index.shp %f >> >>on the CMD prompt. -- ---------------------------------------+-------------------------------------- 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 covariance at SHAW.CA Tue Sep 28 06:49:32 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Tue, 28 Sep 2004 08:49:32 -0500 Subject: Problems with Positioning Names from MapInfo TAB file Message-ID: Hi: I am trying to use a TAB file that has names positioned on blockfaces. In the MapInfo ProViewer (a free viewer from MapInfo) I can view the file and see the street annotation positioned at the various angles that they run along the streets. But when I try and display this in MapServer I only get them positioned horizontally. I tried using the LABEL object but it wouldn't display them at all so I reverted to the STYLEITEM "AUTO" command and it put the labels out but only horizontally. Does anyone know how to get MapServer to use the angles stored with the text in the file? My map file is included below. The blckface file has both lines for blockfaces and text elements in it. Here is some same output from the OGRINFO program: OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4532 ID (Integer) = 6152 Style = PEN(w:1px,c:#d9bb15,id:"mapinfo-pen-2.ogr-pen-0") LINESTRING (634272.418 5523967.692,634279.402 5523966.363) OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4533 ID (Integer) = 6209 Style = LABEL(t:"KINGSTON",a:358.700000,s:15.996744g,c:#000000,p:1,f:"Arial") POINT (634312.023 5524049.501) OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4534 ID (Integer) = 6498 Style = PEN(w:1px,c:#d9bb15,id:"mapinfo-pen-2.ogr-pen-0") LINESTRING (634214.639 5524099.705,634218.473 5524099.606,634229.861 5524098.786) OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4535 ID (Integer) = 6640 Style = PEN(w:1px,c:#d9bb15,id:"mapinfo-pen-2.ogr-pen-0") LINESTRING (634211.638 5523974.631,634214.078 5523973.711,634223.050 5523971.702,634226.793 552397 1.362) OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4536 ID (Integer) = 1893 Style = LABEL(t:"VICTORIA GR",a:333.600000,s:15.996744g,c:#000000,p:1,f:"Arial") POINT (634252.281 5522621.452) here you can see both text and lines. thanks, Bob Bruce NAME St_Boniface_Vital_s2ex1 # EXTENT 632862.444326 5510719.468992 642031.781954 5529899.634924 # EXTENT 633000 5521000 641000 5528000 EXTENT 633850 5525850 635050 5527050 SIZE 400 400 LAYER # Polling Subdivision NAME "Polling Subdivision" CONNECTIONTYPE OGR CONNECTION "C:/Apache/htdocs/MapserverTutorial/StBonifaceStVital/St_Boniface_Vital_Data/PollingSubDivision.tab" STATUS DEFAULT TYPE POLYGON CLASS # Polling Subdivision <= 250 NAME "Polling Subdivision <= 250" EXPRESSION ([Population] <= 250) COLOR 255 204 204 OUTLINECOLOR 0 0 0 END # end of Whole DLS Parcel class object CLASS # Polling Subdivision <= 500 NAME "Polling Subdivision <= 500" EXPRESSION ([Population] <= 500) COLOR 250 128 128 OUTLINECOLOR 0 0 0 END # end of Part DLS Parcel class object CLASS # Polling Subdivision <= 750 NAME "Polling Subdivision <= 750" EXPRESSION ([Population] <= 750) COLOR 255 40 40 OUTLINECOLOR 0 0 0 END # end of Part DLS Parcel class object CLASS # Polling Subdivision <= 1000 NAME "Polling Subdivision <= 1000" EXPRESSION ([Population] <= 1000) COLOR 200 0 0 OUTLINECOLOR 0 0 0 END # end of Part DLS Parcel class object END # end of layer object LAYER # Street Lines NAME "Street Lines" CONNECTIONTYPE OGR CONNECTION "C:/Apache/htdocs/MapserverTutorial/StBonifaceStVital/St_Boniface_Vital_Data/st_Vital_Boniface_blkface.tab" STATUS DEFAULT TYPE LINE # STYLEITEM "AUTO" CLASS STYLE # COLOR 255 146 36 COLOR 255 255 0 END END END LAYER # Street Names NAME "Street Names" CONNECTIONTYPE OGR CONNECTION "C:/Apache/htdocs/MapserverTutorial/StBonifaceStVital/St_Boniface_Vital_Data/st_Vital_Boniface_blkface.tab" STATUS DEFAULT TYPE ANNOTATION STYLEITEM "AUTO" CLASS # LABEL # ANGLE AUTO # COLOR 0 0 0 # COLOR 43 255 177 # SIZE SMALL # TYPE BITMAP # END END END END # end of map file From nico.alberti at GMAIL.COM Tue Sep 28 06:56:31 2004 From: nico.alberti at GMAIL.COM (Nico Alberti) Date: Tue, 28 Sep 2004 15:56:31 +0200 Subject: Projections and WMS servers Message-ID: Hi everybody. I was happily working on a Mapserver project using only my shapefiles and raster images when I started playing with mapserv2.esrin.esa.it WMS server. According to the documentation (and what I am seeing on my screen :-) ) there is a severe projection mismatch. I am only the computer guy, so I have no great knowledge of this topic. All I know is that my shape files are in Gauss-Boaga's (Monte Mario/Italy Zone 1) projection, so in my map file I put: PROJECTION "proj=tmerc " "lat_0=18.833333333 " "lon_0=-155.500000000 " "k=0.999967 " "x_0=152400.305 " "y_0=0.000 " "ellps=clrk66 " "to_meter=0.3048006096 " "no_defs" END According to Proj config files this should be also known as epsg:26591 The problem is that I don't know if I can even use the esrin WMS server, as in its capability this projection is not listed. So the question is lame: can I make it work (possibly in a simple manner) or am I completely stuck? Being a test I would be happy if someone could point me to some other WMS server that can be used together with my data Thank you in advance; as you can imagine Cartography is not exactly my field :-) -- Ciao Nico From cnoversa at DSI.UMINHO.PT Tue Sep 28 07:29:41 2004 From: cnoversa at DSI.UMINHO.PT (cnoversa) Date: Tue, 28 Sep 2004 15:29:41 +0100 Subject: jaxb Message-ID: Hi After doing a particular request to MapServer, all I want is to get a subset of the returned GML document. To do it, I was thinking about using JAXB. The first step is to bind the generated schema. But that?s where the problem starts. So, to be sure that JAXB is able to do the binding of the opengis schemas, I started with WFS-basic.xsd but with no success. (http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd) I get lots of error messages... [ERROR] cos-ct-extends.1.4.3.2.2.1.a: The content type of a derived type and that of its base must both be mixed or both be element-only. Type 'BinaryOperatorType' is element only, but its base type is not. line 37 of expr.xsd [ERROR] e-props-correct.4: The {type definition} of element 'Add' is not validly derived from the {type definition} of the substitutionHead'ogc:expression', or the {substitution group exclusions} property of 'ogc:expression' does not allow this derivation. line 11 of expr.xsd . . . Does anyone have any experience with MapServer and JAXB? Is it possible to do the binding of the schema resulting from a particular MapServer request? Thanks Cristina From johanneson at BRANDONU.CA Tue Sep 28 07:43:44 2004 From: johanneson at BRANDONU.CA (Patrick Johanneson) Date: Tue, 28 Sep 2004 09:43:44 -0500 Subject: Compiling mapserver-4.2.3 Message-ID: I think I've followed the instructions in the README.WIN32.TXT file, but I'm still unable to compile the mapserver program. I am a neophyte at MSVC++. Currently I'm getting the following errors: mapserv.obj : error LNK2001: unresolved external symbol _regfree mapserver_i.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _regfree mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regfree mapserver_i.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regfree mapserver_i.lib(mapraster.obj) : error LNK2001: unresolved external symbol _regcomp mapserver_i.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regcomp mapserv.obj : error LNK2001: unresolved external symbol _regcomp mapserver_i.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _regcomp mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regcomp mapserver_i.lib(maputil.obj) : error LNK2001: unresolved external symbol _regcomp mapserver_i.lib(mapraster.obj) : error LNK2001: unresolved external symbol _regexec mapserver_i.lib(mapparser.obj) : error LNK2001: unresolved external symbol _regexec mapserv.obj : error LNK2001: unresolved external symbol _regexec mapserver_i.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _regexec mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _regexec mapserver_i.lib(maputil.obj) : error LNK2001: unresolved external symbol _regexec mapserver_i.lib(maptemplate.obj) : error LNK2001: unresolved external symbol _pj_is_latlong mapserver_i.lib(mapproject.obj) : error LNK2001: unresolved external symbol _pj_is_latlong mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _pj_free mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _pj_strerrno mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _pj_errno mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _pj_init mapserver_i.lib(mapfile.obj) : error LNK2001: unresolved external symbol _pj_deallocate_grids mapserver_i.lib(mapproject.obj) : error LNK2001: unresolved external symbol _pj_inv mapserver_i.lib(mapproject.obj) : error LNK2001: unresolved external symbol _pj_fwd mapserver_i.lib(mapproject.obj) : error LNK2001: unresolved external symbol _pj_transform mapserver_i.lib(mapproject.obj) : error LNK2001: unresolved external symbol _pj_set_finder mapserv.exe : fatal error LNK1120: 13 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' I may have cheated somewhat -- I renamed bgd.lib to gd.lib and mapserv.lib to mapserv_i.lib, to get around previous errors. The reason that I'm trying to recompile rather than use a WIN32 binary is that I require more than 100 layers in a map file. If there's a way to do that without recompiling, I will gladly do it. Thanks, -pat From ed at TOPOZONE.COM Tue Sep 28 08:01:46 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 28 Sep 2004 11:01:46 -0400 Subject: Projections and WMS servers Message-ID: Nico - Can you send the URL of the WMS server you're using? The only service I can find on that site is a WFS feature service. You need to be able describe the projection of the data coming from the WMS service, and MapServer will request the data in that projection (which must, of course, be a supported projection on that server). You will have two types of PROJECTION blocks in your map file. You should have one for each LAYER, describing the native projection in which that layer's data is stored. And you should have one at the top level of your map file, indicating what *output* projection should be used in producing the requested map. The PROJECTION block below is superficially OK, but it's certainly not the Monte Mario projection (a central longitude of -155 is a highly non-Italian location). The EPSG 26591 projection is defined as: <26591> proj=tmerc lat_0=0.000000000 lon_0=9.000000000 k=0.999600 x_0=1500000.000 y_0=0.000 ellps=intl units=m no_defs <> and those are rather different numbers. Where possible, you can use the EPSG projection definition directly as: PROJECTION "init=epsg:26951" END This greatly reduces the risk of typos, at the expense of making the projection definition more cryptic. - 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 Nico Alberti Sent: Tuesday, September 28, 2004 9:57 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Projections and WMS servers Hi everybody. I was happily working on a Mapserver project using only my shapefiles and raster images when I started playing with mapserv2.esrin.esa.it WMS server. According to the documentation (and what I am seeing on my screen :-) ) there is a severe projection mismatch. I am only the computer guy, so I have no great knowledge of this topic. All I know is that my shape files are in Gauss-Boaga's (Monte Mario/Italy Zone 1) projection, so in my map file I put: PROJECTION "proj=tmerc " "lat_0=18.833333333 " "lon_0=-155.500000000 " "k=0.999967 " "x_0=152400.305 " "y_0=0.000 " "ellps=clrk66 " "to_meter=0.3048006096 " "no_defs" END According to Proj config files this should be also known as epsg:26591 The problem is that I don't know if I can even use the esrin WMS server, as in its capability this projection is not listed. So the question is lame: can I make it work (possibly in a simple manner) or am I completely stuck? Being a test I would be happy if someone could point me to some other WMS server that can be used together with my data Thank you in advance; as you can imagine Cartography is not exactly my field :-) -- Ciao Nico From siki at AGT.BME.HU Tue Sep 28 11:20:15 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 28 Sep 2004 17:20:15 -0100 Subject: Problems with Positioning Names from MapInfo TAB file {Scanned} {Scanned} In-Reply-To: Message-ID: Hi, I had the same problem some weeks ago. I failed to use auto styling for mapinfo text elements, so i convert the text to line item and the text is an attribute of the line element. Then i created a annotation layer in mapserver with angle auto. I wrote the program in mapbasic, if you have mapinfo i send it to you. bye Zoltan On Tue, 28 Sep 2004, Bob Bruce wrote: > Hi: > I am trying to use a TAB file that has names positioned on blockfaces. > In the MapInfo ProViewer (a free viewer from MapInfo) I can view the file > and see the street annotation positioned at the various angles that they run > along the streets. But when I try and display this in MapServer I only get > them positioned horizontally. I tried using the LABEL object but it wouldn't > display them at all so I reverted to the STYLEITEM "AUTO" command and it put > the labels out but only horizontally. > > Does anyone know how to get MapServer to use the angles stored with the > text in the file? My map file is included below. The blckface file has both > lines for blockfaces and text elements in it. Here is some same output from > the OGRINFO program: > > OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4532 > ID (Integer) = 6152 > Style = PEN(w:1px,c:#d9bb15,id:"mapinfo-pen-2.ogr-pen-0") > LINESTRING (634272.418 5523967.692,634279.402 5523966.363) > > OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4533 > ID (Integer) = 6209 > Style = LABEL(t:"KINGSTON",a:358.700000,s:15.996744g,c:#000000,p:1,f:"Arial") > POINT (634312.023 5524049.501) > > OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4534 > ID (Integer) = 6498 > Style = PEN(w:1px,c:#d9bb15,id:"mapinfo-pen-2.ogr-pen-0") > LINESTRING (634214.639 5524099.705,634218.473 5524099.606,634229.861 > 5524098.786) > > OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4535 > ID (Integer) = 6640 > Style = PEN(w:1px,c:#d9bb15,id:"mapinfo-pen-2.ogr-pen-0") > LINESTRING (634211.638 5523974.631,634214.078 5523973.711,634223.050 > 5523971.702,634226.793 552397 > 1.362) > > OGRFeature(ST_VITAL_BONIFACE_BLKFACE):4536 > ID (Integer) = 1893 > Style = LABEL(t:"VICTORIA > GR",a:333.600000,s:15.996744g,c:#000000,p:1,f:"Arial") > POINT (634252.281 5522621.452) > > here you can see both text and lines. > > thanks, > Bob Bruce > > NAME St_Boniface_Vital_s2ex1 > # EXTENT 632862.444326 5510719.468992 642031.781954 5529899.634924 > # EXTENT 633000 5521000 641000 5528000 > EXTENT 633850 5525850 635050 5527050 > SIZE 400 400 > > LAYER # Polling Subdivision > NAME "Polling Subdivision" > CONNECTIONTYPE OGR > CONNECTION > "C:/Apache/htdocs/MapserverTutorial/StBonifaceStVital/St_Boniface_Vital_Data/PollingSubDivision.tab" > STATUS DEFAULT > TYPE POLYGON > CLASS # Polling Subdivision <= 250 > NAME "Polling Subdivision <= 250" > EXPRESSION ([Population] <= 250) > COLOR 255 204 204 > OUTLINECOLOR 0 0 0 > END # end of Whole DLS Parcel class object > CLASS # Polling Subdivision <= 500 > NAME "Polling Subdivision <= 500" > EXPRESSION ([Population] <= 500) > COLOR 250 128 128 > OUTLINECOLOR 0 0 0 > END # end of Part DLS Parcel class object > CLASS # Polling Subdivision <= 750 > NAME "Polling Subdivision <= 750" > EXPRESSION ([Population] <= 750) > COLOR 255 40 40 > OUTLINECOLOR 0 0 0 > END # end of Part DLS Parcel class object > CLASS # Polling Subdivision <= 1000 > NAME "Polling Subdivision <= 1000" > EXPRESSION ([Population] <= 1000) > COLOR 200 0 0 > OUTLINECOLOR 0 0 0 > END # end of Part DLS Parcel class object > END # end of layer object > > LAYER # Street Lines > NAME "Street Lines" > CONNECTIONTYPE OGR > CONNECTION > "C:/Apache/htdocs/MapserverTutorial/StBonifaceStVital/St_Boniface_Vital_Data/st_Vital_Boniface_blkface.tab" > STATUS DEFAULT > TYPE LINE > # STYLEITEM "AUTO" > CLASS > STYLE > # COLOR 255 146 36 > COLOR 255 255 0 > END > END > END > > LAYER # Street Names > NAME "Street Names" > CONNECTIONTYPE OGR > CONNECTION > "C:/Apache/htdocs/MapserverTutorial/StBonifaceStVital/St_Boniface_Vital_Data/st_Vital_Boniface_blkface.tab" > STATUS DEFAULT > TYPE ANNOTATION > STYLEITEM "AUTO" > CLASS > # LABEL > # ANGLE AUTO > # COLOR 0 0 0 > # COLOR 43 255 177 > # SIZE SMALL > # TYPE BITMAP > # END > END > END > > END # end of map file > From merlos at TSC.UVIGO.ES Tue Sep 28 08:07:24 2004 From: merlos at TSC.UVIGO.ES (Juan Manuel Merlos) Date: Tue, 28 Sep 2004 17:07:24 +0200 Subject: PHPMapScript and PHP5 Windows In-Reply-To: <62221565.20040928140052@gmx.de> Message-ID: PHPMapscript right now is not compilable with PHP5. Regards. Juan. Mensaje enviado por Wolfgang Lahr : > Hello list, > > I am having a hard time compiling PHPMapScript (Mapserver 4.2.3) with > PHP 5.0.x using VC6.0/WinXP. I'm receiving : > > error C2065: 'tsrm_ls': undeclared identifier, followed by errors with > function pointers. > > It compiles just fine with PHP4.3.x (as did all the previous versions). > > Any idea? > > TIA > > Wolfgang > > -- email: merlos @ tsc.uvigo.es --oOo-----------------------------------------------------------------oOo-- Servicio de acceso ? correo electr?nico v?a web da Universidade de Vigo Servicio de acceso al correo electr?nico v?a web de la Universidad de Vigo Servicios Inform?ticos [ http://si.uvigo.es ] Universidade de Vigo [ http://www.uvigo.es ] URL: https://correoweb.uvigo.es From nico.alberti at GMAIL.COM Tue Sep 28 08:30:57 2004 From: nico.alberti at GMAIL.COM (Nico Alberti) Date: Tue, 28 Sep 2004 17:30:57 +0200 Subject: Projections and WMS servers In-Reply-To: Message-ID: On Tue, 28 Sep 2004 11:01:46 -0400, Ed McNierney wrote: > Nico - > > Can you send the URL of the WMS server you're using? The only service I can find on that site is a WFS feature service. > I used this one. Somehow it displays something, so I hope it is the right service :-) http://mapserv2.esrin.esa.it/cubestor/cubeserv/cubeserv.cgi? > You need to be able describe the projection of the data coming from the WMS service, and MapServer will request the data in that projection (which must, of course, be a supported projection on that server). > And I guess I can know that querying for its capabilities and looking for epsg:26951 in the xml file I receive, can't I? I did not see it, and if I do: LAYER NAME "Esrin" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://mapserv2.esrin.esa.it/cubestor/cubeserv/cubeserv.cgi?" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_srs" "epsg:26951" "wms_name" "WATRCRSL_1M:Foundation:CubeWerx" "wms_server_version" "1.1.1" "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" "wms_format" "image/gif" END PROJECTION "init=epsg:26951" END END I get a blank layer (while other ones are correctly displayed) > You will have two types of PROJECTION blocks in your map file. You should have one for each LAYER, describing the native projection in which that layer's data is stored. And you should have one at the top level of your map file, indicating what *output* projection should be used in producing the requested map. > > The PROJECTION block below is superficially OK, but it's certainly not the Monte Mario Uh. Yes, you are right. For some reason, I thought using epsg:26951 would not have worked. Thank you for your help! -- Ciao Nico From ed at TOPOZONE.COM Tue Sep 28 08:42:12 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 28 Sep 2004 11:42:12 -0400 Subject: Projections and WMS servers Message-ID: Nico - Yes, that should be expected; the GetCapabilities request returns the server's capabilities, and if you ask it to do something it has told you it cannot do, you should expect it to be unable to do it . You need to select a projection that that server CAN provide; then, by describing that layer's projection to MapServer with a PROJECTION block (one that describes the projection used, not what you want it to be) you can notify MapServer that the returned data needs to be reprojected (if your map's output projection is different). - 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 Nico Alberti Sent: Tuesday, September 28, 2004 11:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Projections and WMS servers On Tue, 28 Sep 2004 11:01:46 -0400, Ed McNierney wrote: > Nico - > > Can you send the URL of the WMS server you're using? The only service I can find on that site is a WFS feature service. > I used this one. Somehow it displays something, so I hope it is the right service :-) http://mapserv2.esrin.esa.it/cubestor/cubeserv/cubeserv.cgi? > You need to be able describe the projection of the data coming from the WMS service, and MapServer will request the data in that projection (which must, of course, be a supported projection on that server). > And I guess I can know that querying for its capabilities and looking for epsg:26951 in the xml file I receive, can't I? I did not see it, and if I do: LAYER NAME "Esrin" STATUS ON TYPE RASTER CONNECTIONTYPE WMS CONNECTION "http://mapserv2.esrin.esa.it/cubestor/cubeserv/cubeserv.cgi?" UNITS METERS SIZEUNITS PIXELS TOLERANCE 0 TOLERANCEUNITS PIXELS METADATA "wms_srs" "epsg:26951" "wms_name" "WATRCRSL_1M:Foundation:CubeWerx" "wms_server_version" "1.1.1" "wms_formatlist" "image/gif,image/png,image/jpeg,image/wbmp" "wms_format" "image/gif" END PROJECTION "init=epsg:26951" END END I get a blank layer (while other ones are correctly displayed) > You will have two types of PROJECTION blocks in your map file. You should have one for each LAYER, describing the native projection in which that layer's data is stored. And you should have one at the top level of your map file, indicating what *output* projection should be used in producing the requested map. > > The PROJECTION block below is superficially OK, but it's certainly not > the Monte Mario Uh. Yes, you are right. For some reason, I thought using epsg:26951 would not have worked. Thank you for your help! -- Ciao Nico From malsburg at CL.UNI-HEIDELBERG.DE Tue Sep 28 09:40:39 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Tue, 28 Sep 2004 18:40:39 +0200 Subject: Tiling Large Rasters Message-ID: 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 From warmerdam at POBOX.COM Tue Sep 28 09:54:43 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 28 Sep 2004 12:54:43 -0400 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. Titus, There is user written code for a program based on GDAL that will accomplish this task in bug: http://bugzilla.remotesensing.org/show_bug.cgi?id=604 You are on your own to build and test it through. I haven't tried it yet. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ealpert at DIGITALGLOBE.COM Tue Sep 28 12:13:50 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 28 Sep 2004 13:13:50 -0600 Subject: Tiling Large Rasters Message-ID: I downloaded a tool someone wrote on the GDAL-DEV list called gdalsplit which splits images. You may want to consider just splitting the image and creating a tile index of the pieces. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Titus von der Malsburg Sent: Tuesday, September 28, 2004 10:41 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Tiling Large Rasters 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 From tchaddad at CSHORE.COM Tue Sep 28 15:36:52 2004 From: tchaddad at CSHORE.COM (TC Haddad) Date: Tue, 28 Sep 2004 17:36:52 -0500 Subject: 3.6 migration to 4.2, Lines & Points, Symbols & Queries, GMAP Message-ID: On Tue, 28 Sep 2004 11:54:57 +0200, =?ISO-8859-1?Q?Bj=F6rn_Schaffrath?= <2BJOERNS at GMX.DE> wrote: >TCHaddad schrieb: >> Listers, >> >> We have a strange migration issue that we are struggling to solve. In our recent migration of a GMAP-based application from MS 3.6.0 to 4.2.2, we seem to have lost the ability to query POINT and LINE files. >> >> I tried drawing the point layer with huge symbols to make sure that I was definitely hitting the item I was trying to Query, but >> it made no difference. Am somewhat stumped as to where to look next as I can't think why POLYGON queries would work but others would not. >> >> Any ideas would be great... >> >> Tanya >> >> >> ________________________________________________________________ >> >> > >Hi Tanya, > >I?ve got the same problem a few weeks ago. you have to set >toleranceunits and tolerancesize in your mapfiles (see the docu). > >bj?rn ____________________________________________________ danke bj?rn! setting "TOLERANCE 10" for all POINT and LINE layers fixed the problem. cheers, Tanya From ikebrian at YAHOO.COM Tue Sep 28 21:02:12 2004 From: ikebrian at YAHOO.COM (Ike Brian) Date: Tue, 28 Sep 2004 21:02:12 -0700 Subject: Help In Accessing/Displaying Mapscripts In-Reply-To: <000e01c4a495$5e71dfa0$6402a8c0@jebediah> Message-ID: Hello, I have PHP/Mapscript *.phtml files but dont know how to access them.These data are from the mapserver web they are already programmed files but want to know how to access *.phtml files.These are the USA files from http://www.mobilegeographics.com/mapserver/ Could anyone in how I can display the map using these files.I am only used to html files. Skweda O'Bomsawin wrote: Ike, To get the Mapserver demo working, you must at least: 1- Have a working installation of Apache with CGI support 2- Have a working installation of Mapserver CGI 3- Change variables of the Map file (SHAPEPATH, TEMPLATE and WEB block particularly) according to your system 4- Change variables of the HTML files according to your system You can verify your Mapserver CGI installation by sending a test URL to your server (see the doc from Mapserver web site). I recommend you take a look at this tutorial which will guide you through the installation and testing process: http://terrasip.gis.umn.edu/projects/tutorial/ Otherwise, you can use the DMSolutions Maplab product: http://www.dmsolutions.ca/techserv/maplab.html Best regards, 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? : 25 septembre 2004 21:19 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Query not showing Map/Scale/Legend Thank you very much for the reply.I have downloaded the demo as u said and have followd all the necessary steps. When I clicked on intialise the page the opened did not show the following ? the map ? legend ? scale But all other things showed up.I would like to know if there is something else that I should do to show up the above mentioned objects. I think that image type is the problem.Hoping to hear from you. Isaac done as you said. David Fawcett wrote: Ike, I recommend that you downloat the demo and get that up and running. From bob.basques at CI.STPAUL.MN.US Tue Sep 28 21:14:50 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Tue, 28 Sep 2004 23:14:50 -0500 Subject: scaling of line widths. Message-ID: All, How does one go about scaling a line width. I want the line width to change based on zoom in/out. va the same size all the time. Thanks bobb From Pierre.RELLA at AGRICULTURE.GOUV.FR Tue Sep 28 23:08:06 2004 From: Pierre.RELLA at AGRICULTURE.GOUV.FR (Pierre RELLA) Date: Wed, 29 Sep 2004 08:08:06 +0200 Subject: Layers Symbology Message-ID: Hi, I have two questions: -In a vector layer, line or polygon type,is it possible to thicken the line or the outline? -In vector lines, polygon type, instead of full polygons i want to have hatching polygons From sudip_mca at SIFY.COM Tue Sep 28 23:37:05 2004 From: sudip_mca at SIFY.COM (sudip dey) Date: Wed, 29 Sep 2004 11:37:05 +0500 Subject: mode of map Message-ID: Hello, i am working upon a project using php-mapscript & mapserver in windows environment. I need to provide the facility so that user can view the map in two different modes -- one is browse mode in which one can pan the map and the other one is map-mode where the user can\'t pan the map.Though till now i am working upon only the browse-mode which is working properly but it\'s becoming difficult for me to find out the solution for map-mode . Any code or suggesation in this respect will be greatfully accepted. Thanking you ................Sudip -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed Sep 29 02:30:08 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 29 Sep 2004 08:30:08 -0100 Subject: scaling of line widths. {Scanned} In-Reply-To: <415A36BA.50404@ci.stpaul.mn.us> Message-ID: Hi, Look at mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples On Tue, 28 Sep 2004, Blammo wrote: > All, > > How does one go about scaling a line width. I want the line width to > change based on zoom in/out. va the same size all the time. > > Thanks > > bobb > From norbert.thieme at ILMENAU.BAW.DE Wed Sep 29 00:06:16 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Wed, 29 Sep 2004 09:06:16 +0200 Subject: Layers Symbology In-Reply-To: Message-ID: Pierre RELLA schrieb: >Hi, > > I have two questions: > -In a vector layer, line or polygon type,is it possible to thicken the >line or the outline? > -In vector lines, polygon type, instead of full polygons i want to have >hatching polygons > > > > Pierre, you can do this with styles (size and symbols). For example: MAP ... SYMBOL NAME 'outline' TYPE ELLIPSE POINTS 1 1 END FILLED true END SYMBOL NAME "hatchfill" TYPE vector TRANSPARENT 0 POINTS 0 1 1 0 END END ... LAYER ... TYPE POLYGON ... CLASS ... STYLE # thickened-diagonal-hatch-fill COLOR 255 0 0 SYMBOL "hatchfill" SIZE 3 END STYLE # thickened outline OUTLINECOLOR 0 255 0 SYMBOL 'outline' SIZE 5 END END END END You can define the symbol to whatever you want. You can draw a connected line (e.g. looking like "<" ) or a seperated line (e.g. looking like "X" ). For the seperation use a point with "-99 -99". Regards, Norbert From norbert.thieme at ILMENAU.BAW.DE Wed Sep 29 00:30:45 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Wed, 29 Sep 2004 09:30:45 +0200 Subject: Help with shape files - extent and projection In-Reply-To: <20040928122640.81458.qmail@web53809.mail.yahoo.com> Message-ID: Pablo Toapanta schrieb: >Hi again > >I?ve tried everything to obtain a map file that works >with my shape files but I?ve not obtained what I need. > >I think that is the projection and the correct size of >the image. Could anybody tell me if there is a way to >know the correct projection and image size for a shape >file?? > >Thanks > > > > >__________________________________ >Do you Yahoo!? >New and Improved Yahoo! Mail - 100MB free storage! >http://promotions.yahoo.com/new_mail > > > > Pablo, you can use ogrinfo on the shapefile to get the extent. With that extent in your mapfile it should be possible to show the first image. Simply leave all projection definitions out. You can do that for data which has the same projection. So if you use one shapefile you don't have any problem. The projection gets important when you want to use different projected datasets or have a changing projection for the map (e.g. WMS). For projections it is important that you know your data and you should know the projection for providing a map service: - ask your dataprovider - sometimes you have additional information like a .prj file for shapefiles or some other metadata like text or html files - mostly data is in a popular coordinate system so you can often look at the coordinates (if you are familiar with different projections) and guess / try The imagesize is only important for the outputed image so you can set that to whatever size fits your site or application. Regards, Norbert From Gerhard.Engel at SBG.AC.AT Wed Sep 29 00:57:06 2004 From: Gerhard.Engel at SBG.AC.AT (Gerhard Engel) Date: Wed, 29 Sep 2004 02:57:06 -0500 Subject: Newbie question - building GDAL Message-ID: Hallo, I am relatively new to the MapServer world and would like to display an ArcInfo grid. My MS-version is 4.2.3 with input support for GDAL. I have read most(?) of the documentation about displaying raster files but using the GDAL library in practive is still unclear to me. Do I need to compile the downloaded 1.2.1 library? If this is the case please be patient with my ignorance, but: how do I compile this stuff?? - I've never had this to do before so any instructions would be welcome. Thanks for any help. Sorry for my holpriges English. Gerhard From mhbasa at YAHOO.COM Wed Sep 29 02:00:21 2004 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Wed, 29 Sep 2004 02:00:21 -0700 Subject: [shpxy] Message-ID: Hello, Does anybody know where I can get more info on [shpxy] and other new template tags of 4.2. I can't seem to find any in the documentation. Thanks. mario. __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail From superbla3000 at GMX.NET Wed Sep 29 05:05:25 2004 From: superbla3000 at GMX.NET (joerg p) Date: Wed, 29 Sep 2004 14:05:25 +0200 Subject: photoshop geotiff Message-ID: hello, I would like to adjust colors of a geotiff in photoshop: Before editing I can display it with mapserver and open it with globalmapper then I open the file in photoshop i adjust the color i save the tiff I write the geotiff tag again with GeoTiffExamine But now i can't display it with mapserver and when I open it with globalmapper, it says: 'wrong data type 1 for XML Packet'; tag ignored 'unknown field with tag 34665 encountered' How do I save it right with photoshop? I have no compression and tried also tif for mac and pc, no difference. Joerg From warmerdam at POBOX.COM Wed Sep 29 06:33:04 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Sep 2004 09:33:04 -0400 Subject: photoshop geotiff In-Reply-To: <415AA505.8030601@gmx.net> Message-ID: joerg p wrote: > hello, > > I would like to adjust colors of a geotiff in photoshop: > > Before editing I can display it with mapserver and open it with > globalmapper > then I open the file in photoshop > i adjust the color > i save the tiff > I write the geotiff tag again with GeoTiffExamine > > But now i can't display it with mapserver and when I open it with > globalmapper, it says: > 'wrong data type 1 for XML Packet'; tag ignored > 'unknown field with tag 34665 encountered' > > How do I save it right with photoshop? > I have no compression and tried also tif for mac and pc, no difference. Joerg, If there aren't too many special non-geotiff tags you want to preserve, you might just want to run the file through gdal_translate. This should drop out unusual Photoshop tags, though in general "wrong data type ... tag ignored" messages should not be fatal in processing. However, I would be interested in getting a smallish sample of the file if possible. Was the XML Package tag in question put in by Photoshop or GeoTiffExamine? 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 Sep 29 06:36:54 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 29 Sep 2004 09:36:54 -0400 Subject: Newbie question - building GDAL In-Reply-To: Message-ID: Gerhard Engel wrote: > Hallo, > > I am relatively new to the MapServer world and would like to display an > ArcInfo grid. My MS-version is 4.2.3 with input support for GDAL. I have > read most(?) of the documentation about displaying raster files but using > the GDAL library in practive is still unclear to me. Do I need to compile > the downloaded 1.2.1 library? If this is the case please be patient with my > ignorance, but: how do I compile this stuff?? - I've never had this to do > before so any instructions would be welcome. Gerhard, If you have a MapServer with GDAL support already you should not need to do anything special to use Arc/Info Binary Grids (I assume that is what you mean by arcinfo grid - there are also ascii equivelents). The only trick with grids is how you name the grid. The easiest way to refer to the grid is by giving the name of the hdf.adf file the grid directory. 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 jrivard at CONNECT.CARLETON.CA Wed Sep 29 07:20:36 2004 From: jrivard at CONNECT.CARLETON.CA (Joel Rivard) Date: Wed, 29 Sep 2004 09:20:36 -0500 Subject: MapServer vs SVG MapView Message-ID: Hey List, I've been using Mapserver for a couple of months now and find it to be fantastic. I've now stumbled upon another software, SVG MapView (extension to ArGIS 8/9), and was wondering if anybody has had any experience with this software. I'm mainly trying to diplay our data as simple as possible. I'm trying to figure out if its any where close to MapServer or not. Advantages? Disadvantages? If anybody has any thoughs, please let me know. Joel From sobomsawin at KASSINI.COM Wed Sep 29 07:43:57 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 29 Sep 2004 10:43:57 -0400 Subject: [UMN_MAPSERVER-USERS] Help In Accessing/Displaying Mapscripts In-Reply-To: <20040929040212.68346.qmail@web60508.mail.yahoo.com> Message-ID: Ike, You can run your phtml like any other html file from your web server. To do that, you just have to set the type in your httpd.conf file (if you are using Apache of course): AddType application/x-httpd-php .php .phtml AddType application/x-httpd-php-cgi .php .phtml # If you want to run php as cgi Action application/x-httpd-php-cgi /cgi-bin/php433 # Where is your php cgi application Of course, you must have compiled Apache and PHP to work together (see HYPERLINK "http://mapserver.gis.umn.edu/doc42/phpmapscript-install-howto.html"http://m apserver.gis.umn.edu/doc42/phpmapscript-install-howto.html or search Google for an installation adapted to your OS). This way, you will be able to call your application as HYPERLINK "http://your.host/your_script.phtml"http://your.host/your_script.phtml P.S. These USA demo files have to be edited to your settings before you can run them See the Mapserver installation and PHP/Mapscript documentation. Cheers! 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? : 29 septembre 2004 00:02 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Help In Accessing/Displaying Mapscripts Hello, I have PHP/Mapscript *.phtml files but dont know how to access them.These data are from the mapserver web they are already programmed files but want to know how to access *.phtml files.These are the USA files from HYPERLINK "http://www.mobilegeographics.com/mapserver/"http://www.mobilegeographics.co m/mapserver/ Could anyone in how I can display the map using these files.I am only used to html files. Skweda O'Bomsawin wrote: Ike, To get the Mapserver demo working, you must at least: 1- Have a working installation of Apache with CGI support 2- Have a working installation of Mapserver CGI 3- Change variables of the Map file (SHAPEPATH, TEMPLATE and WEB block particularly) according to your system 4- Change variables of the HTML files according to your system You can verify your Mapserver CGI installation by sending a test URL to your server (see the doc from Mapserver web site). I recommend you take a look at this tutorial which will guide you through the installation and testing process: HYPERLINK "http://terrasip.gis.umn.edu/projects/tutorial/"http://terrasip.gis.umn.edu/ projects/tutorial/ Otherwise, you can use the DMSolutions Maplab product: HYPERLINK "http://www.dmsolutions.ca/techserv/maplab.html"http://www.dmsolutions.ca/te chserv/maplab.html Best regards, 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? : 25 septembre 2004 21:19 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Query not showing Map/Scale/Legend Thank you very much for the reply.I have downloaded the demo as u said and have followd all the necessary steps. When I clicked on intialise the page the opened did not show the following * the map * legend * scale But all other things showed up.I would like to know if there is something else that I should do to show up the above mentioned objects. I think that image type is the problem.Hoping to hear from you. Isaac done as you said. David Fawcett wrote: Ike, I recommend that you downloat the demo and get that up and running. From umn at KARSTEN-LESSING.DE Wed Sep 29 07:52:57 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Wed, 29 Sep 2004 16:52:57 +0200 Subject: WMS_client image format problems In-Reply-To: <4157B8D9.9000007@ccgis.de> Message-ID: Hi Arnulf, sorry for this late response and many thanx for your hints. I talked to delphi-IMM and point their attention on the problem you?ve mentioned To test my own WMS Client capabilities I used some layers from the ww.demis.nl server. Then everything worked fine. regards Karsten Arnulf Christl schrieb: > K. Lessing wrote: > >> Hi Arnulf, >> >> thanx for your answer. >> If you try this: >> http://www.geoway.de/cgi-bin/mapserv3.cgi?MAP=/home/geoway/geoway.map&VERSION=1.1.0&REQUEST=GetCapabilities >> >> >> the Server answers with an xml file: >> Unfortunatelly I could not find any helpful information in this xml >> file! >> > That is the problem. In the capabilities Online Resource you find the IP > number that doesn't work, so once the capabilites have been interpreted > correctly the client will query for the IP which does not work. > > As a workaround you could save the XML as a local file, change the IP to > the above given URL, and try agin, maybe then it will work. The > capabilities should be corrected anyway. > > Regards, Arnulf. From andy_canfield at HOTMAIL.COM Wed Sep 29 07:54:24 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Wed, 29 Sep 2004 07:54:24 -0700 Subject: Question on images returned by Mapserver Message-ID: To anyone who may know, Here is my situation currently. I am working on a wirless solution that uses Mapserver. I can make the http request to the Mapserver CGI to return a map as an image to me. Since it is not going to a browser I need to extract only the image from the returned stream. I imagine it has an http header in the stream of some sort. So my question is how many bytes into the stream does the actual image start? Also is there anything tailing the image like a return character or does it end with end of the image? Thank you, Andy Canfield _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ed at TOPOZONE.COM Wed Sep 29 08:12:21 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 29 Sep 2004 11:12:21 -0400 Subject: Question on images returned by Mapserver Message-ID: Andy - HTTP headers are simply text lines, ending with a newline (\n). Two newlines in a row (\n\n) indicates the end of the headers and the start of the content. There should be nothing after the image content. However, you may get a response with a "continue" header, followed by the content (or more content). This isn't very complicated, but you should step carefully. I strongly recommend that you get an HTTP "sniffer" package - I use HTTPLook on Windows (see http://www.httpsniffer.com) - it's simple, comes with a 15-day free trial, and costs USD$29.95 for a single license. A few sessions with a sniffer should tell you everything you need to know. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD Sent: Wednesday, September 29, 2004 10:54 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Question on images returned by Mapserver To anyone who may know, Here is my situation currently. I am working on a wirless solution that uses Mapserver. I can make the http request to the Mapserver CGI to return a map as an image to me. Since it is not going to a browser I need to extract only the image from the returned stream. I imagine it has an http header in the stream of some sort. So my question is how many bytes into the stream does the actual image start? Also is there anything tailing the image like a return character or does it end with end of the image? Thank you, Andy Canfield _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From Gerhard.Engel at SBG.AC.AT Wed Sep 29 08:25:51 2004 From: Gerhard.Engel at SBG.AC.AT (Engel Gerhard) Date: Wed, 29 Sep 2004 17:25:51 +0200 Subject: AW: [UMN_MAPSERVER-USERS] Newbie question - building GDAL Message-ID: Thanks Frank & the others, The GDAL question has been solved. It's the last point you mention I don't manage to handle: The path to/of my grid (binary) directory is c:\projects\abtenau\geodata\abtdem\ The SHAPEPATH is set to "c:\projects\abtenau\geodata" and for the DATA-parameter of my grid file I assume "abtdem/hdr.adf" is correct or am I mistaken here?! I have tried all sorts of path variation now but none will work. Or do I have to leave out the PROJECTION object for the grid layer? Kind regards, Gerhard ----------------- Gerhard Engel Gerhard.Engel at sbg.ac.at Z_GIS Zentrum f?r Geoinformatik * Universit?t Salzburg * Hellbrunnerstra?e 34 * A-5020 Salzburg tel. +43 662 8044-5223 * fax +43 662 8044-525 web: http://www.zgis.at > -----Urspr?ngliche Nachricht----- > Von: Frank Warmerdam [mailto:warmerdam at pobox.com] > Gesendet: Wednesday, September 29, 2004 3:37 PM > An: Gerhard Engel > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: Re: [UMN_MAPSERVER-USERS] Newbie question - building GDAL > > Gerhard Engel wrote: > > Hallo, > > > > I am relatively new to the MapServer world and would like > to display > > an ArcInfo grid. My MS-version is 4.2.3 with input support > for GDAL. I > > have read most(?) of the documentation about displaying > raster files > > but using the GDAL library in practive is still unclear to me. Do I > > need to compile the downloaded 1.2.1 library? If this is the case > > please be patient with my ignorance, but: how do I compile this > > stuff?? - I've never had this to do before so any > instructions would be welcome. > > Gerhard, > > If you have a MapServer with GDAL support already you should > not need to do anything special to use Arc/Info Binary Grids > (I assume that is what you mean by arcinfo grid - there are > also ascii equivelents). The only trick with grids is how > you name the grid. The easiest way to refer to the grid is > by giving the name of the hdf.adf file the grid directory. > > 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 ken at SANDNARROWS.COM Wed Sep 29 08:52:52 2004 From: ken at SANDNARROWS.COM (sandnarrows) Date: Wed, 29 Sep 2004 09:52:52 -0600 Subject: Projection issues with WMS layers Message-ID: I have a MAP setup with a custom projection, its a lambert equal area azimuth: PROJECTION "proj=laea" "ellps=WGS84" "lat_0=12" "lon_0=-100" "x_0=0" "y_0=0" "datum=WGS84" "units=m" "no_defs" END So anyways, the projection works fine internally. If I add shp file layers of different projections they line up appropriately. Further I have a quick view tool that zooms to some specific extents that's given in a different projection and it zooms to where it should when the tool is used. However when I add WMS layers to the map, they are not positioned properly, well least not at full extent. If I start off viewing all of canada the WMS layers (also for all of Canada) get squished towards the top of the map. However the more I zoom into my map, the closer they get to their proper position. I have looked in my EPSG file for the WMS projections to make sure that wasn't the problem, further if I setup a MAP with another projection from the EPSG file then the WMS layers work fine. Anyone have an idea on whats going on? Thanks, Ken From ummmmm at MYREALBOX.COM Wed Sep 29 08:41:30 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Wed, 29 Sep 2004 10:41:30 -0500 Subject: Generate map image names from PHP MapScript Message-ID: The NAME attribute in the .map file is used as the prefix for generated images when using the CGI interface, but it isn't being used with our PHP MapScript code. Those images just have the unique numeric identifier in their file names. Is there any way to change this? From manjiri_r at HOTMAIL.COM Wed Sep 29 08:59:39 2004 From: manjiri_r at HOTMAIL.COM (Manjiri Andhare) Date: Wed, 29 Sep 2004 10:59:39 -0500 Subject: hidden variable settings Message-ID: Hello!! I'm trying to run the demo application which is on the http://mapserver.gis.umn.edu/dload.html . I have extracted the workshop.exe, and have created a folder under cgi-bin directory. In the readme file of workshop demo, they have stated to change the hidden variable settings in index.htm file, i'm not getting where to set the hidden variables for following 2 things: I don't see any tmp directory in the workshop(, though there is a templets directory), is this the same? Manjiri From lfilak at MEDINACO.ORG Wed Sep 29 09:12:35 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 29 Sep 2004 12:12:35 -0400 Subject: MapServer vs SVG MapView Message-ID: Looks pretty cool but I don't think you can compare the two products because mapserver will generate dynamic content reading from the current data source whereas svg mapview is a "publisher" and exports what exists at the time it is run (if I'm reading it correctly). I think a comparison between something like arcreader & svg mapview is a closer one. My $0.02 Lowell The following message was sent by Joel Rivard on Wed, 29 Sep 2004 09:20:36 -0500. > Hey List, > > I've been using Mapserver for a couple of months now and find it to be > fantastic. I've now stumbled upon another software, SVG MapView (extension > to ArGIS 8/9), and was wondering if anybody has had any experience with this > software. I'm mainly trying to diplay our data as simple as possible. I'm > trying to figure out if its any where close to MapServer or not. > Advantages? Disadvantages? > > If anybody has any thoughs, please let me know. > > Joel From jrivard at CONNECT.CARLETON.CA Wed Sep 29 09:25:19 2004 From: jrivard at CONNECT.CARLETON.CA (Joel Rivard) Date: Wed, 29 Sep 2004 12:25:19 -0400 Subject: MapServer vs SVG MapView Message-ID: Thanks Lowell, I really appreciate the 2 cents, Joel Lowell Filak wrote: >Looks pretty cool but I don't think you can compare the two products >because mapserver will generate dynamic content reading from the current >data source whereas svg mapview is a "publisher" and exports what exists >at the time it is run (if I'm reading it correctly). >I think a comparison between something like arcreader & svg mapview is a >closer one. > >My $0.02 > >Lowell > >The following message was sent by Joel Rivard > on Wed, 29 Sep 2004 09:20:36 -0500. > >> Hey List, >> >> I've been using Mapserver for a couple of months now and find it to be >> fantastic. I've now stumbled upon another software, SVG MapView >(extension >> to ArGIS 8/9), and was wondering if anybody has had any experience >with this >> software. I'm mainly trying to diplay our data as simple as possible. > I'm >> trying to figure out if its any where close to MapServer or not. >> Advantages? Disadvantages? >> >> If anybody has any thoughs, please let me know. >> >> Joel > From lfilak at MEDINACO.ORG Wed Sep 29 09:29:20 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 29 Sep 2004 12:29:20 -0400 Subject: Generate map image names from PHP MapScript Message-ID: The following message was sent by Doug on Wed, 29 Sep 2004 10:41:30 -0500. > The NAME attribute in the .map file is used as the prefix for generated > images when using the CGI interface, but it isn't being used with our PHP > MapScript code. Those images just have the unique numeric identifier in > their file names. Is there any way to change this? Doug, If you're currently using saveWebImage() to save the file you could use saveImage(string filename) instead and be able to specify whatever you want for the name. I'm not sure there is any method available that would allow you to access the random saveWebImage string for use in saveImage or any way to tell saveWebImage to use prefix "X" when naming. HTH Lowell From David.Fawcett at STATE.MN.US Wed Sep 29 09:41:04 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 29 Sep 2004 11:41:04 -0500 Subject: hidden variable settings Message-ID: Manjiri, the tmp directory is a directory that you have to set up on your server and your Web server needs to have read and write access to the directory. It doesn't have to be called 'tmp'. It should be in your Web root because it also needs to be referenced as a URL. The variable 'map_web_imagepath' is used to set the IMAGEPATH value in the WEB block of your MAP file. There is more documentation on that here: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#web . It should contain the path to the 'tmp' directory that you want MapServer to write the map images to. (e.g. '/usr/local/www/docs/tmp/' on 'NIX or 'c:\apache\htdocs\tmp\' on Windows.) Similarly, 'map_web_imageurl' refers to IMAGEURL in the Web block. (see above documentation URL) It refers to the URL to the same 'tmp' directory above, but as a URL, not a path. (e.g. 'http://my.site.com/tmp/') For most sites, like the demo you are using, it is expressed as a relative URL (e.g. '/tmp/') Good Luck, David. David J. Fawcett MN Office of Environmental Assistance >>> Manjiri Andhare 9/29/2004 10:59:39 AM >>> Hello!! I'm trying to run the demo application which is on the http://mapserver.gis.umn.edu/dload.html . I have extracted the workshop.exe, and have created a folder under cgi-bin directory. In the readme file of workshop demo, they have stated to change the hidden variable settings in index.htm file, i'm not getting where to set the hidden variables for following 2 things: I don't see any tmp directory in the workshop(, though there is a templets directory), is this the same? Manjiri From Tom.Kralidis at EC.GC.CA Wed Sep 29 10:14:42 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 29 Sep 2004 13:14:42 -0400 Subject: MapServer OGC Web Services Workshop now available Message-ID: Hi, For those of you who attended OSGIS2004 / MUM2 in June 2004, Assefa and I presented the MapServer and OGC Web Services Workshop. An updated and latest release of the workshop is available at: http://devgeo.cciw.ca/ms_ogc_workshop/index.html Note that this URL provides and will provide the latest distribution of the workshop. Comments, suggestions, and contributions are most welcome. Thanks to Daniel, JF (who did the OGC presentation at MUM1), and Assefa. Cheers ..Tom ========================= Tom Kralidis Systems Scientist Environment Canada Tel: +01-905-336-4409 http://www.ec.gc.ca/ From dzwiers at REFRACTIONS.NET Wed Sep 29 10:37:21 2004 From: dzwiers at REFRACTIONS.NET (David Zwiers) Date: Wed, 29 Sep 2004 10:37:21 -0700 Subject: GetCapabilities Message-ID: Hello List Apologies in advance if this is an older bug, but I couldn't find it in your bug tracker. I am creating a WFS client, and selected your WFS as one of my victims :). When reading the capabilities document, you have forgotten to declare the default namespace on the server instances I have seen (included below). I was wondering if these servers are out of date, and if so where I could find a demo server to test against. (BTW the code is freely available in the geotools project). Thanks in advance, David Zwiers http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/envdat/config.map&service=WFS&version=1.0.0&request=GetCapabilities http://excise.pyr.ec.gc.ca/cgi-bin/mapserv.exe?map=/LocalApps/Mapsurfer/PYRWQMP.map&version=1.0.0&service=WFS&request=GetCapabilities From Tom.Kralidis at EC.GC.CA Wed Sep 29 10:51:37 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 29 Sep 2004 13:51:37 -0400 Subject: GetCapabilities Message-ID: The default namespace is http://www.opengis.net/wfs > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Zwiers > Sent: Wednesday, 29 September, 2004 13:37 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] GetCapabilities > > > Hello List > > Apologies in advance if this is an older bug, but I couldn't > find it in your bug tracker. I am creating a WFS client, and > selected your WFS as one of my victims :). When reading the > capabilities document, you have forgotten to declare the > default namespace on the server instances I have seen > (included below). > > I was wondering if these servers are out of date, and if so > where I could find a demo server to test against. (BTW the > code is freely available in the geotools project). > > Thanks in advance, > > David Zwiers > http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/env dat/config.map&service=WFS&version=1.0.0&request=GetCapabilities http://excise.pyr.ec.gc.ca/cgi-bin/mapserv.exe?map=/LocalApps/Mapsurfer/ PYRWQMP.map&version=1.0.0&service=WFS&request=GetCapabilities From manjiri_r at HOTMAIL.COM Wed Sep 29 11:16:04 2004 From: manjiri_r at HOTMAIL.COM (Manjiri Andhare) Date: Wed, 29 Sep 2004 13:16:04 -0500 Subject: hidden variable settings Message-ID: David, Thanks for providing me with the information about creating a directory for writing temporary files. I have created the directory C:/Inetpub/wwwroot/MapServer/Docs/tmp. I have given IIS rights to read and write to these directories. And i edited the hidden variables as: But still when I hit the "Initialize" button, I get "The Page can not be displayed" error. Do you have any idea about whats goin wrong here? Thank you again, Manjiri On Wed, 29 Sep 2004 11:41:04 -0500, David Fawcett wrote: >Manjiri, > >the tmp directory is a directory that you have to set up on your server >and your Web server needs to have read and write access to the >directory. It doesn't have to be called 'tmp'. It should be in your >Web root because it also needs to be referenced as a URL. > >The variable 'map_web_imagepath' is used to set the IMAGEPATH value in >the WEB block of your MAP file. There is more documentation on that >here: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#web . >It should contain the path to the 'tmp' directory that you want >MapServer to write the map images to. (e.g. '/usr/local/www/docs/tmp/' >on 'NIX or 'c:\apache\htdocs\tmp\' on Windows.) > >Similarly, 'map_web_imageurl' refers to IMAGEURL in the Web block. (see >above documentation URL) It refers to the URL to the same 'tmp' >directory above, but as a URL, not a path. (e.g. >'http://my.site.com/tmp/') For most sites, like the demo you are using, >it is expressed as a relative URL (e.g. '/tmp/') > >Good Luck, > >David. > > >David J. Fawcett >MN Office of Environmental Assistance > >>>> Manjiri Andhare 9/29/2004 10:59:39 AM >>> >Hello!! >I'm trying to run the demo application which is on the >http://mapserver.gis.umn.edu/dload.html . I have extracted the >workshop.exe, and have created a folder under cgi-bin directory. In >the >readme file of workshop demo, they have stated to change the hidden >variable settings in index.htm file, i'm not getting where to set the >hidden variables for following 2 things: >value="/usr/local/www/docs/tmp/"> > >I don't see any tmp directory in the workshop(, though there is a >templets >directory), is this the same? >Manjiri From dzwiers at REFRACTIONS.NET Wed Sep 29 11:17:21 2004 From: dzwiers at REFRACTIONS.NET (David Zwiers) Date: Wed, 29 Sep 2004 11:17:21 -0700 Subject: GetCapabilities In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367726@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, My comment was more to the effect that I believe some attributes are missing in the documents returned. The current implementation has this as the first element: but I believe that since both the default namespace has not been set, and the xsi namespace has not been set, the schemaLocation attribute is meaningless to a generic parser. I also do not believe that the capabilities document would validate. My recommendation is to add the the following two attributes to have the element looks like this: Yours, David On Wed, 2004-09-29 at 10:51, Kralidis,Tom [Burlington] wrote: > The default namespace is http://www.opengis.net/wfs > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Zwiers > > Sent: Wednesday, 29 September, 2004 13:37 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] GetCapabilities > > > > > > Hello List > > > > Apologies in advance if this is an older bug, but I couldn't > > find it in your bug tracker. I am creating a WFS client, and > > selected your WFS as one of my victims :). When reading the > > capabilities document, you have forgotten to declare the > > default namespace on the server instances I have seen > > (included below). > > > > I was wondering if these servers are out of date, and if so > > where I could find a demo server to test against. (BTW the > > code is freely available in the geotools project). > > > > Thanks in advance, > > > > David Zwiers > > > http://map.ns.ec.gc.ca/MapServer/mapserv.exe?map=/mapserver/services/env > dat/config.map&service=WFS&version=1.0.0&request=GetCapabilities > > http://excise.pyr.ec.gc.ca/cgi-bin/mapserv.exe?map=/LocalApps/Mapsurfer/ > PYRWQMP.map&version=1.0.0&service=WFS&request=GetCapabilities From banders at REFRACTIONS.NET Wed Sep 29 11:25:57 2004 From: banders at REFRACTIONS.NET (Brock Anderson) Date: Wed, 29 Sep 2004 11:25:57 -0700 Subject: Spatial filters in SLDs Message-ID: Has anyone used MapServer with SLDs that have spatial filters? I have successfully used SLDs that apply rules based on attributes values, but when I apply rules based on a bbox MapServer matches everything, not just the features in the region I specified. The file I am using is pasted below. Does anyone have an example SLD file that I can work from? Brock Anderson NTS_BC_WATER_LINES_125M Lines GEOMETRY 1191617,385898 1212589,409826 #bbec33 5.0 From Tom.Kralidis at EC.GC.CA Wed Sep 29 11:22:46 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 29 Sep 2004 14:22:46 -0400 Subject: GetCapabilities Message-ID: > -----Original Message----- > From: David Zwiers [mailto:dzwiers at refractions.net] > Sent: Wednesday, 29 September, 2004 14:17 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] GetCapabilities > > > Tom, > > My comment was more to the effect that I believe some > attributes are missing in the documents returned. The current > implementation has this as the first element: > > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> > > but I believe that since both the default namespace has not > been set, and the xsi namespace has not been set, the > schemaLocation attribute is meaningless to a generic parser. > I also do not believe that the capabilities document would validate. > Both WMS targets use MapServer 4.2.0, and both define the xsi namespace, as well as http://www.opengis.net as the default namespace of the document, as well as the xsi:schemaLocation directive properly. Both documents validate fine. If you're debugging looking at response through something like Mozilla, you may want to "view source" to see the XML response in its entirety. Cheers ..Tom > My recommendation is to add the the following two attributes > to have the element looks like this: > > xmlns="http://www.opengis.net/wfs" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> > > Yours, > > David > > On Wed, 2004-09-29 at 10:51, Kralidis,Tom [Burlington] wrote: > > The default namespace is http://www.opengis.net/wfs > > > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Zwiers > > > Sent: Wednesday, 29 September, 2004 13:37 > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] GetCapabilities > > > > > > > > > Hello List > > > > > > Apologies in advance if this is an older bug, but I couldn't > > > find it in your bug tracker. I am creating a WFS client, and > > > selected your WFS as one of my victims :). When reading the > > > capabilities document, you have forgotten to declare the > > > default namespace on the server instances I have seen > > > (included below). > > > > > > I was wondering if these servers are out of date, and if so > > > where I could find a demo server to test against. (BTW the > > > code is freely available in the geotools project). > > > > > > Thanks in advance, > > > > > > David Zwiers > > > > > > http://map.ns.ec.gc.ca/MapServer/mapserv.exe?> map=/mapserver/services/e > > nv > > dat/config.map&service=WFS&version=1.0.0&request=GetCapabilities > > > > > http://excise.pyr.ec.gc.ca/cgi-> bin/mapserv.exe?map=/LocalApps/Mapsurfe > > r/ > > PYRWQMP.map&version=1.0.0&service=WFS&request=GetCapabilities > > From Tom.Kralidis at EC.GC.CA Wed Sep 29 11:24:41 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 29 Sep 2004 14:24:41 -0400 Subject: GetCapabilities Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Wednesday, 29 September, 2004 14:23 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] GetCapabilities > > > > -----Original Message----- > > From: David Zwiers [mailto:dzwiers at refractions.net] > > Sent: Wednesday, 29 September, 2004 14:17 > > To: Kralidis,Tom [Burlington] > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE: [UMN_MAPSERVER-USERS] GetCapabilities > > > > > > Tom, > > > > My comment was more to the effect that I believe some > > attributes are missing in the documents returned. The current > > implementation has this as the first element: > > > > > xsi:schemaLocation="http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> > > > > but I believe that since both the default namespace has not > > been set, and the xsi namespace has not been set, the > > schemaLocation attribute is meaningless to a generic parser. > > I also do not believe that the capabilities document would validate. > > > > Both WMS targets use MapServer 4.2.0, and both define the xsi > namespace, > as well as http://www.opengis.net as the default namespace of the > document, as well as the xsi:schemaLocation directive properly. > Whoops, I meant http://www.opengis.net/wfs as the default namespace. > Both documents validate fine. If you're debugging looking at response > through something like Mozilla, you may want to "view source" > to see the > XML response in its entirety. > > Cheers > > ..Tom > > > > > My recommendation is to add the the following two attributes > > to have the element looks like this: > > > > > xmlns="http://www.opengis.net/wfs" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://www.opengis.net/wfs > > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> > > > > Yours, > > > > David > > > > On Wed, 2004-09-29 at 10:51, Kralidis,Tom [Burlington] wrote: > > > The default namespace is http://www.opengis.net/wfs > > > > > > > > > > > > > -----Original Message----- > > > > From: UMN MapServer Users List > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Zwiers > > > > Sent: Wednesday, 29 September, 2004 13:37 > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: [UMN_MAPSERVER-USERS] GetCapabilities > > > > > > > > > > > > Hello List > > > > > > > > Apologies in advance if this is an older bug, but I couldn't > > > > find it in your bug tracker. I am creating a WFS client, and > > > > selected your WFS as one of my victims :). When reading the > > > > capabilities document, you have forgotten to declare the > > > > default namespace on the server instances I have seen > > > > (included below). > > > > > > > > I was wondering if these servers are out of date, and if so > > > > where I could find a demo server to test against. (BTW the > > > > code is freely available in the geotools project). > > > > > > > > Thanks in advance, > > > > > > > > David Zwiers > > > > > > > > > http://map.ns.ec.gc.ca/MapServer/mapserv.exe?> > map=/mapserver/services/e > > > nv > > > dat/config.map&service=WFS&version=1.0.0&request=GetCapabilities > > > > > > > > http://excise.pyr.ec.gc.ca/cgi-> > bin/mapserv.exe?map=/LocalApps/Mapsurfe > > > r/ > > > PYRWQMP.map&version=1.0.0&service=WFS&request=GetCapabilities > > > > > From dzwiers at REFRACTIONS.NET Wed Sep 29 11:27:47 2004 From: dzwiers at REFRACTIONS.NET (David Zwiers) Date: Wed, 29 Sep 2004 11:27:47 -0700 Subject: GetCapabilities In-Reply-To: <2576812186CDD411BF1500508B6DCE950736772A@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Doh, my bad ... you are correct it was being hidden. The problem is on my end. David On Wed, 2004-09-29 at 11:24, Kralidis,Tom [Burlington] wrote: > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > > Kralidis,Tom [Burlington] > > Sent: Wednesday, 29 September, 2004 14:23 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] GetCapabilities > > > > > > > -----Original Message----- > > > From: David Zwiers [mailto:dzwiers at refractions.net] > > > Sent: Wednesday, 29 September, 2004 14:17 > > > To: Kralidis,Tom [Burlington] > > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: RE: [UMN_MAPSERVER-USERS] GetCapabilities > > > > > > > > > Tom, > > > > > > My comment was more to the effect that I believe some > > > attributes are missing in the documents returned. The current > > > implementation has this as the first element: > > > > > > > > xsi:schemaLocation="http://www.opengis.net/wfs > > > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> > > > > > > but I believe that since both the default namespace has not > > > been set, and the xsi namespace has not been set, the > > > schemaLocation attribute is meaningless to a generic parser. > > > I also do not believe that the capabilities document would validate. > > > > > > > Both WMS targets use MapServer 4.2.0, and both define the xsi > > namespace, > > as well as http://www.opengis.net as the default namespace of the > > document, as well as the xsi:schemaLocation directive properly. > > > > Whoops, I meant http://www.opengis.net/wfs as the default namespace. > > > Both documents validate fine. If you're debugging looking at response > > through something like Mozilla, you may want to "view source" > > to see the > > XML response in its entirety. > > > > Cheers > > > > ..Tom > > > > > > > > > My recommendation is to add the the following two attributes > > > to have the element looks like this: > > > > > > > > xmlns="http://www.opengis.net/wfs" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xsi:schemaLocation="http://www.opengis.net/wfs > > > http://schemas.opengis.net/wfs/1.0.0/WFS-capabilities.xsd"> > > > > > > Yours, > > > > > > David > > > > > > On Wed, 2004-09-29 at 10:51, Kralidis,Tom [Burlington] wrote: > > > > The default namespace is http://www.opengis.net/wfs > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: UMN MapServer Users List > > > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Zwiers > > > > > Sent: Wednesday, 29 September, 2004 13:37 > > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > > Subject: [UMN_MAPSERVER-USERS] GetCapabilities > > > > > > > > > > > > > > > Hello List > > > > > > > > > > Apologies in advance if this is an older bug, but I couldn't > > > > > find it in your bug tracker. I am creating a WFS client, and > > > > > selected your WFS as one of my victims :). When reading the > > > > > capabilities document, you have forgotten to declare the > > > > > default namespace on the server instances I have seen > > > > > (included below). > > > > > > > > > > I was wondering if these servers are out of date, and if so > > > > > where I could find a demo server to test against. (BTW the > > > > > code is freely available in the geotools project). > > > > > > > > > > Thanks in advance, > > > > > > > > > > David Zwiers > > > > > > > > > > > > http://map.ns.ec.gc.ca/MapServer/mapserv.exe?> > > map=/mapserver/services/e > > > > nv > > > > dat/config.map&service=WFS&version=1.0.0&request=GetCapabilities > > > > > > > > > > > http://excise.pyr.ec.gc.ca/cgi-> > > bin/mapserv.exe?map=/LocalApps/Mapsurfe > > > > r/ > > > > PYRWQMP.map&version=1.0.0&service=WFS&request=GetCapabilities > > > > > > > > From hliu at JDBARNES.COM Wed Sep 29 11:39:30 2004 From: hliu at JDBARNES.COM (Haiyan Liu) Date: Wed, 29 Sep 2004 14:39:30 -0400 Subject: wms raster rquest crash! In-Reply-To: <1095271199.3424.31.camel@pc190.jdbarnes.com> Message-ID: Hi all, The problem was fixed. My special thanks go to Frank who spent several hours digging that 'bug' out. It happened because we compiled mapserver with pdf support. The libpdf has its own libtiff which is different than the one coming with gdal. So when I tested with wms raster display, it crashed. (do not understand why regular mapfile was rendered ok?). Anyways,Frank has a better explanation on this: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=888 It is such a tricky stuff and did give my colleagues and myself some really hard time. Thanks again, Frank. Haiyan On Wed, 2004-09-15 at 13:59, Haiyan Liu wrote: > Hi Frank and Ed, thank you for your responses. > We are currently using GDAL 1.1.9.0, released 2003/06/27. > > Up till I posted this problem, our Admin has helped us try all the > latest gdal versions in no vail. We do have successfully set up the the > same wms on the same box and another box before. But since we recompiled > everying of mapserver from the latest releases, we encountered the > current problem. And now even we tried switching back to some earlier > releases, it was still not working(well, it really should). > > Not sure whether or not data could be causing this the problem because > we used the same data before. Here is the file anyways. > > www.firstbasesolutions.com/tmp_download > > Sincerely, > > Haiyan > > On Wed, 2004-09-15 at 10:15, Frank Warmerdam wrote: > > Haiyan Liu wrote: > > >>From this list, we noticed some postings on this problem. As some folks > > > suggested that SegFault problem could be traced to mapserver's shp2img, so > > > we tried shp2img and did get that segfault crash. When we tried using gdb to > > > 'debug' the shp2img util with the same mapfile, we found it crashed on > > > tif_read, here is the message before it died, > > > > > > ########################################################################## > > > (gdb) run -m /var/www/html/zoom2it_mapserver/map_file/test_wms.map > > > Starting program: /root/build/mapserver-4.0.1/shp2img > > > -m/var/www/html/zoom2it_mapserver/map_file/test_wms.map > > > (no debugging symbols found)... > > > (no debugging symbols found)... > > > (no debugging symbols found)... > > > (no debugging symbols found)... > > > (no debugging symbols found)...[Thread debugging using libthread_dbenabled] > > > [New Thread -1084655424 (LWP 5180)] > > > Program received signal SIGSEGV, Segmentation fault. > > > [Switching to Thread -1084655424 (LWP 5180)]0x00a036ad in TIFFFillStrip > > > (tif=0x8863628, strip=1) at tif_read.c:252252 > > > bytecount = td->td_stripbytecount[strip]; > > > ########################################################################## > > > > > > I hope i have explained my problem clearly. Any help/hint will be greatly > > > appreciated! By the way, almost all mapserver versions above 4.0.1 have been > > > triedwith the same configs as below and failed exactly the same way. > > > > Haiyan, > > > > When reporting crashes within gdb it is also helpful to do a "where" command > > so we can see the whole call stack. > > > > This seems like it might be a bug in GDAL. I would encourage you to report > > it in the MapServer Bugzilla and ensure it is assigned to me. You will need > > to provide a dataset (ideally a smallish raster file that also demonstrates > > the problem). Also, ensure you provide details on the version of GDAL you > > are using. > > > > Best regards, > -- > First Base Solutions Inc. > 145 Renfrew Drive > Suite 160 > Markham ON L3R 9R6 > > T. 905.477.3600 > F. 905.477.3882 -- From siki at AGT.BME.HU Wed Sep 29 14:51:53 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 29 Sep 2004 20:51:53 -0100 Subject: Layers Symbology {Scanned} In-Reply-To: Message-ID: Hi, You have to define symbol set, you can put it into a separate file or you cen define symbols in the map file. Usually the separate file is prefered. symbol file (symbols.sym) SYMBOLSET SYMBOL # standard cicular brush NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL # cross hatching NAME 'fill45' TYPE VECTOR TRANSPARENT 0 POINTS 0 1 1 0 END END # end of symbol file map file .... LAYER # cross hatched polygons NAME 'a_polygon_layer' ... CLASS COLOR 60 60 60 OUTLINECOLOR 0 0 0 SYMBOL 'fill45' SIZE 3 END END LAYER # thick lines NAME 'a_line_layer' ... CLASS SYMBOL 'circle' SIZE 3 COLOR 255 0 0 END END For more info check mapserver wiki Bye Zoltan On Wed, 29 Sep 2004, Pierre RELLA wrote: > Hi, > > I have two questions: > -In a vector layer, line or polygon type,is it possible to thicken the > line or the outline? > -In vector lines, polygon type, instead of full polygons i want to have > hatching polygons > From ARyan at CO.LINN.OR.US Wed Sep 29 11:54:34 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 29 Sep 2004 11:54:34 -0700 Subject: SWIG Mapscript Message-ID: Mapservers, Two methods I use in php mapscript don't seem to be in the SWIG version. Layer->queryByIndex - this is non-critical since I can use queryByAttribute with an FID Map->loadQuery - this is critical. There is a saveQuery method, but no loadQuery? Thanks for any insight. Adam From andy_canfield at HOTMAIL.COM Wed Sep 29 12:00:51 2004 From: andy_canfield at HOTMAIL.COM (ANDY CANFIELD) Date: Wed, 29 Sep 2004 12:00:51 -0700 Subject: CGI problem Message-ID: I have mapserver set up on a development server. It runs just fine with phpmapscript. However if I try the following simple IMG tag: IMG SRC="MapServer/cgi/bin/mapserv?map=orthotest.map&mode=map" width=450 height=450 in an html page I get nothing. I even put mapserver and the .map file in the same directory. I can make a php page that works with that exact same map. I have IIS set to allow scripts and executables. Is there something else I'm doing wrong? _________________________________________________________________ Don?t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From ed at TOPOZONE.COM Wed Sep 29 12:05:27 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 29 Sep 2004 15:05:27 -0400 Subject: CGI problem Message-ID: Andy - First, be careful with relative paths - they can be fragile, and might not do what you expect. And is that path really .../cgi/bin/... ? Test by just entering the SRC URL in your browser's address bar, prefixed by the appropriate URL root (make sure it's what you expect). You'll then get to see any error message MapServer is generating. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of ANDY CANFIELD Sent: Wednesday, September 29, 2004 3:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI problem I have mapserver set up on a development server. It runs just fine with phpmapscript. However if I try the following simple IMG tag: IMG SRC="MapServer/cgi/bin/mapserv?map=orthotest.map&mode=map" width=450 height=450 in an html page I get nothing. I even put mapserver and the .map file in the same directory. I can make a php page that works with that exact same map. I have IIS set to allow scripts and executables. Is there something else I'm doing wrong? _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ From sgillies at FRII.COM Wed Sep 29 12:16:24 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 29 Sep 2004 13:16:24 -0600 Subject: SWIG Mapscript In-Reply-To: Message-ID: On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > Mapservers, > > Two methods I use in php mapscript don't seem to be in the SWIG > version. > > Layer->queryByIndex - this is non-critical since I can use > queryByAttribute > with an FID > > Map->loadQuery - this is critical. There is a saveQuery method, but no > loadQuery? > > Thanks for any insight. > > Adam > Adam, Since I've used the PHP mapscript, I'm not sure what loadQuery and saveQuery are for. Explain? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From lfilak at MEDINACO.ORG Wed Sep 29 12:17:54 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 29 Sep 2004 15:17:54 -0400 Subject: SWIG Mapscript Message-ID: The following message was sent by "Ryan, Adam" on Wed, 29 Sep 2004 11:54:34 -0700. > Mapservers, > > Two methods I use in php mapscript don't seem to be in the SWIG version. > > Layer->queryByIndex - this is non-critical since I can use queryByAttribute > with an FID > > Map->loadQuery - this is critical. There is a saveQuery method, but no > loadQuery? > > Thanks for any insight. > > Adam Adam, I'm not even sure if saveQuery works correctly, which would be the first hurdle. Perhaps there is a different way to do what you need.? Lowell From sgillies at FRII.COM Wed Sep 29 12:18:35 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 29 Sep 2004 13:18:35 -0600 Subject: SWIG Mapscript In-Reply-To: Message-ID: On Sep 29, 2004, at 1:16 PM, Sean Gillies wrote: > On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > >> Mapservers, >> >> Two methods I use in php mapscript don't seem to be in the SWIG >> version. >> >> Layer->queryByIndex - this is non-critical since I can use >> queryByAttribute >> with an FID >> >> Map->loadQuery - this is critical. There is a saveQuery method, but >> no >> loadQuery? >> >> Thanks for any insight. >> >> Adam >> > > Adam, > > Since I've used the PHP mapscript, I'm not sure what loadQuery and > saveQuery > are for. Explain? > > Sean > Sorry, meant to say that I've *never* used the PHP mapscript and don't understand the use for saving and loading queries. Sean From lfilak at MEDINACO.ORG Wed Sep 29 12:41:45 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 29 Sep 2004 15:41:45 -0400 Subject: SWIG Mapscript Message-ID: The following message was sent by "Ryan, Adam" on Wed, 29 Sep 2004 11:54:34 -0700. > Mapservers, > > Two methods I use in php mapscript don't seem to be in the SWIG version. > > Layer->queryByIndex - this is non-critical since I can use queryByAttribute > with an FID > > Map->loadQuery - this is critical. There is a saveQuery method, but no > loadQuery? > > Thanks for any insight. > > Adam Adam, If I understand saveQuery correctly, you can do something similar to this by using the shapeindex for each result to pull the shapes out of the original layer (if it's a shapefile) and writing each shape to a new shapefile. This doesn't combine all result layers into a single file however, it means one shapefile for each layer with a result(s). No wonder there isn't a loadQuery, parsing all the particulars back out of a single file would be interesting if you change layer ordering at any point. Lowell From ARyan at CO.LINN.OR.US Wed Sep 29 13:37:55 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 29 Sep 2004 13:37:55 -0700 Subject: SWIG Mapscript Message-ID: > -----Original Message----- > From: Sean Gillies [mailto:sgillies at FRII.COM] > Sent: Wednesday, September 29, 2004 12:19 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > On Sep 29, 2004, at 1:16 PM, Sean Gillies wrote: > > > On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > > > >> Mapservers, > >> > >> Two methods I use in php mapscript don't seem to be in the SWIG > >> version. > >> > >> Layer->queryByIndex - this is non-critical since I can use > >> queryByAttribute > >> with an FID > >> > >> Map->loadQuery - this is critical. There is a saveQuery > method, but > >> no > >> loadQuery? > >> > >> Thanks for any insight. > >> > >> Adam > >> > > > > Adam, > > > > Since I've used the PHP mapscript, I'm not sure what loadQuery and > > saveQuery are for. Explain? > > > > Sean > > > > Sorry, meant to say that I've *never* used the PHP mapscript > and don't understand the use for saving and loading queries. > > Sean > Hey, thanks for the reply. Am I the only one using saveQuery? I think saveQuery and loadQuery are terrific methods. They generate/read small files of shape index values - similar, to a bitmap in Avenue I think. By loading a saved query, I can return a layer to a previous query 'state', for lack of a better word (resultCacheObj state?). This is extremely useful. Building shapefiles does not allow for dynamic queries using AND, OR, or XOR with previous queries, and it's too slow. The layer index problem is easily handled by changing the layer index value in the saved query file itself prior to loading. As long as only one layer is queried at a time, this works well. I'm trying to re-write an application using Python and without this functionality it's a no go. I can't even emulate a saveQuery because there is no queryByIndex method, and even if there was, stepping through a list of indexes and calling queryByIndex is MUCH slower than the loadQuery method. I'm at a loss. Adam From ARyan at CO.LINN.OR.US Wed Sep 29 13:50:23 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 29 Sep 2004 13:50:23 -0700 Subject: SWIG Mapscript Message-ID: > -----Original Message----- > From: Lowell Filak [mailto:lfilak at medinaco.org] > Sent: Wednesday, September 29, 2004 1:38 PM > To: Ryan, Adam; Lowell Filak > Subject: RE: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > The following message was sent by "Ryan, Adam" > on Wed, 29 Sep 2004 13:25:52 -0700. > > > > > > -----Original Message----- > > > From: Lowell Filak [mailto:lfilak at medinaco.org] > > > Sent: Wednesday, September 29, 2004 12:42 PM > > > To: Ryan, Adam; MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > > > > > > The following message was sent by "Ryan, Adam" > > > on Wed, 29 Sep 2004 11:54:34 -0700. > > > > > > > Mapservers, > > > > > > > > Two methods I use in php mapscript don't seem to be in the SWIG > > > > version. > > > > > > > > Layer->queryByIndex - this is non-critical since I can use > > > queryByAttribute > > > > with an FID > > > > > > > > Map->loadQuery - this is critical. There is a saveQuery > > > method, but > > > > Map->no > > > > loadQuery? > > > > > > > > Thanks for any insight. > > > > > > > > Adam > > > > > > Adam, > > > > > > If I understand saveQuery correctly, you can do something > > > similar to this by using the shapeindex for each result to > > > pull the shapes out of the original layer (if it's a > > > shapefile) and writing each shape to a new shapefile. This > > > doesn't combine all result layers into a single file however, > > > it means one shapefile for each layer with a result(s). No > > > wonder there isn't a loadQuery, parsing all the particulars > > > back out of a single file would be interesting if you change > > > layer ordering at any point. > > > > > > Lowell > > > > > > > Hey, thanks for the reply. > > > > I think saveQuery and loadQuery are terrific methods. Building > > shapefiles does not allow for dynamic queries using AND, OR, or XOR > > with previous queries, and it's too slow. The layer index > problem is > > easily handled by changing the layer index value in the saved query > > file itself prior to loading. As long as only one layer is > queried at > > a time, this works well. > > > > I'm trying to re-write an application using Python and without this > > functionality it's a no go. I can't even emulate a > saveQuery because > there > > is no queryByIndex method. I'm at a loss. > > > > Adam > > Adam, > > So it sounds like your already down to a single layer being > saved. I guess I am missing what you mean by "AND, OR, or > XOR" queries as we use queryByFeatures to perform a second > query based on the results of a previous query. > > Lowell > As far as I understand, queryByFeatures works in the same session. Using query files, I'm able to allow the user to AND, OR, and XOR a previous query in another session by loading the previously saved .qy query file. It's a round-about way of reading the previous file into an array, running the new query, getting that as an array, relating the arrays, and saving the array to yet another qy file. It's not pretty, but it works. And with saveQuery & loadQuery, it's pretty fast. Adam From ARyan at CO.LINN.OR.US Wed Sep 29 14:07:14 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 29 Sep 2004 14:07:14 -0700 Subject: SWIG Mapscript Message-ID: > -----Original Message----- > From: Ryan, Adam [mailto:ARyan at CO.LINN.OR.US] > Sent: Wednesday, September 29, 2004 1:50 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > -----Original Message----- > > From: Lowell Filak [mailto:lfilak at medinaco.org] > > Sent: Wednesday, September 29, 2004 1:38 PM > > To: Ryan, Adam; Lowell Filak > > Subject: RE: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > > > The following message was sent by "Ryan, Adam" > > > on Wed, 29 Sep 2004 13:25:52 -0700. > > > > > > > > > -----Original Message----- > > > > From: Lowell Filak [mailto:lfilak at medinaco.org] > > > > Sent: Wednesday, September 29, 2004 12:42 PM > > > > To: Ryan, Adam; MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > > > > > > > > > The following message was sent by "Ryan, Adam" > > > > on Wed, 29 Sep 2004 11:54:34 -0700. > > > > > > > > > Mapservers, > > > > > > > > > > Two methods I use in php mapscript don't seem to be > in the SWIG > > > > > version. > > > > > > > > > > Layer->queryByIndex - this is non-critical since I can use > > > > queryByAttribute > > > > > with an FID > > > > > > > > > > Map->loadQuery - this is critical. There is a saveQuery > > > > method, but > > > > > Map->no > > > > > loadQuery? > > > > > > > > > > Thanks for any insight. > > > > > > > > > > Adam > > > > > > > > Adam, > > > > > > > > If I understand saveQuery correctly, you can do > something similar > > > > to this by using the shapeindex for each result to pull > the shapes > > > > out of the original layer (if it's a > > > > shapefile) and writing each shape to a new shapefile. > This doesn't > > > > combine all result layers into a single file however, > it means one > > > > shapefile for each layer with a result(s). No wonder > there isn't a > > > > loadQuery, parsing all the particulars back out of a > single file > > > > would be interesting if you change layer ordering at any point. > > > > > > > > Lowell > > > > > > > > > > Hey, thanks for the reply. > > > > > > I think saveQuery and loadQuery are terrific methods. Building > > > shapefiles does not allow for dynamic queries using AND, > OR, or XOR > > > with previous queries, and it's too slow. The layer index > > problem is > > > easily handled by changing the layer index value in the > saved query > > > file itself prior to loading. As long as only one layer is > > queried at > > > a time, this works well. > > > > > > I'm trying to re-write an application using Python and > without this > > > functionality it's a no go. I can't even emulate a > > saveQuery because > > there > > > is no queryByIndex method. I'm at a loss. > > > > > > Adam > > > > Adam, > > > > So it sounds like your already down to a single layer being > saved. I > > guess I am missing what you mean by "AND, OR, or XOR" queries as we > > use queryByFeatures to perform a second query based on the > results of > > a previous query. > > > > Lowell > > > > > As far as I understand, queryByFeatures works in the same > session. Using query files, I'm able to allow the user to > AND, OR, and XOR a previous query in another session by > loading the previously saved .qy query file. It's a > round-about way of reading the previous file into an array, > running the new query, getting that as an array, relating the > arrays, and saving the array to yet another qy file. It's > not pretty, but it works. And with saveQuery & loadQuery, > it's pretty fast. > > Adam > By the way, saveQuery does work correctly in SWIG mapscript. I read the file when populating a result table and the results are correct so far. Adam From dmorissette at DMSOLUTIONS.CA Wed Sep 29 14:20:40 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 29 Sep 2004 17:20:40 -0400 Subject: SWIG Mapscript In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A842FC14@linnms.co.linn.or.us> Message-ID: Ryan, Adam wrote: >> >>Sorry, meant to say that I've *never* used the PHP mapscript >>and don't understand the use for saving and loading queries. >> >>Sean >> > > > Hey, thanks for the reply. > > Am I the only one using saveQuery? I think saveQuery and loadQuery are > terrific methods. They generate/read small files of shape index values - > similar, to a bitmap in Avenue I think. By loading a saved query, I can > return a layer to a previous query 'state', for lack of a better word > (resultCacheObj state?). This is extremely useful. > PHP's loadQuery() and saveQuery() are just methods that expose the functionality of the mapserv CGI's "SAVEQUERY" function. My understanding is as Adam wrote, that they save and load the contents of the result cache, to allow you to maintain the results of a query highlighted on the map when you browse after a query. Someone mentioned in this thread that changing the layer order would break the saved query, and yes, I believe that's true. It's up to the application code to not prevent that from happening. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From ummmmm at MYREALBOX.COM Wed Sep 29 13:53:50 2004 From: ummmmm at MYREALBOX.COM (Doug) Date: Wed, 29 Sep 2004 15:53:50 -0500 Subject: Generate map image names from PHP MapScript In-Reply-To: <20040929162906.0600F1A65A8@mail.medinaco.org> Message-ID: Lowell Filak wrote: > The following message was sent by Doug on Wed, 29 > Sep 2004 10:41:30 -0500. > > >>The NAME attribute in the .map file is used as the prefix for generated >>images when using the CGI interface, but it isn't being used with our PHP >>MapScript code. Those images just have the unique numeric identifier in >>their file names. Is there any way to change this? > > > Doug, > > If you're currently using saveWebImage() to save the file you could use > saveImage(string filename) instead and be able to specify whatever you > want for the name. I'm not sure there is any method available that would > allow you to access the random saveWebImage string for use in saveImage > or any way to tell saveWebImage to use prefix "X" when naming. > > HTH > > Lowell Darn. That's what I was kind-of thinking. I just wanted confirmation. Thanks. From jb at NUCOMP.COM Wed Sep 29 15:27:20 2004 From: jb at NUCOMP.COM (John Bolster) Date: Wed, 29 Sep 2004 18:27:20 -0400 Subject: maxfeatures Message-ID: Hi all, I've been unable to make the maxfeatures keyword work. In the following layer I get all the labels, regardless of what I set maxfeatures to. Any ideas on what I'm doing wrong? Incidentally, if I change the type to point then I get nothing at all! LAYER NAME cities TYPE annotation STATUS default TILEINDEX tileindexplacecu PROJECTION proj=latlong END LABELITEM "name" MAXFEATURES 5 CLASS SYMBOL "circle" SIZE 6 COLOR 255 0 0 LABEL COLOR 132 31 31 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE TRUETYPE FONT luci SIZE 12 ANTIALIAS TRUE POSITION CL PARTIALS FALSE MINDISTANCE 300 BUFFER 4 END END END Thanks, John Bolster From David.Fawcett at STATE.MN.US Wed Sep 29 15:32:20 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 29 Sep 2004 17:32:20 -0500 Subject: hidden variable settings Message-ID: Manjiri, This may not be the only problem that still exists, but I did see one error. Because you are on Windows, you need to add '.exe' to the program name. Like this: David J. Fawcett MN Office of Environmental Assistance >>> Manjiri Andhare 09/29/04 1:16 PM >>> David, Thanks for providing me with the information about creating a directory for writing temporary files. I have created the directory C:/Inetpub/wwwroot/MapServer/Docs/tmp. I have given IIS rights to read and write to these directories. And i edited the hidden variables as: But still when I hit the "Initialize" button, I get "The Page can not be displayed" error. Do you have any idea about whats goin wrong here? Thank you again, Manjiri On Wed, 29 Sep 2004 11:41:04 -0500, David Fawcett wrote: >Manjiri, > >the tmp directory is a directory that you have to set up on your server >and your Web server needs to have read and write access to the >directory. It doesn't have to be called 'tmp'. It should be in your >Web root because it also needs to be referenced as a URL. > >The variable 'map_web_imagepath' is used to set the IMAGEPATH value in >the WEB block of your MAP file. There is more documentation on that >here: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#web . >It should contain the path to the 'tmp' directory that you want >MapServer to write the map images to. (e.g. '/usr/local/www/docs/tmp/' >on 'NIX or 'c:\apache\htdocs\tmp\' on Windows.) > >Similarly, 'map_web_imageurl' refers to IMAGEURL in the Web block. (see >above documentation URL) It refers to the URL to the same 'tmp' >directory above, but as a URL, not a path. (e.g. >'http://my.site.com/tmp/') For most sites, like the demo you are using, >it is expressed as a relative URL (e.g. '/tmp/') > >Good Luck, > >David. > > >David J. Fawcett >MN Office of Environmental Assistance > >>>> Manjiri Andhare 9/29/2004 10:59:39 AM >>> >Hello!! >I'm trying to run the demo application which is on the >http://mapserver.gis.umn.edu/dload.html . I have extracted the >workshop.exe, and have created a folder under cgi-bin directory. In >the >readme file of workshop demo, they have stated to change the hidden >variable settings in index.htm file, i'm not getting where to set the >hidden variables for following 2 things: >value="/usr/local/www/docs/tmp/"> > >I don't see any tmp directory in the workshop(, though there is a >templets >directory), is this the same? >Manjiri From bob.basques at CI.STPAUL.MN.US Wed Sep 29 15:58:54 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 29 Sep 2004 17:58:54 -0500 Subject: Ok, this might seem like a far out request, but . . . Message-ID: . . . .here goes. (get cup/glass of your favorite beverage) Has anyone experimented with trying to build a basic mapfile simply by reading a SHP datasource. ---------------- My situation: I have just about everything automated for a data custodian to publish their respective dataset (SHP) through a MAPSERVER install except for the MAPFILE creation. The thought was to start with a template of some sort (similar to a HTML template) and using some REGEX operation to substitute the source data piece to come up with a way to initiate a cursory Mapfile. The end product to be a basic discorvy mechamism for the MapServer to use in generating it's own data them configuration files. Is this out there to far left to think about? These initial config files would be used by whomever the data custodian is or the MapServer admin to start up a publishing process. We have a couple of different Client built that can be handed the discory information of a new data theme fairly easily. The MapServer piece seems like it might be a bit tricky. Eventually, we want to move to a WMS distribution process so that this type of operation make much more sense, but for now it would be intended as a way to jumpstart a data theme publishing action. some items that might mitigate something like this would be : * The type of theme, POINT, LINE, POLYGON, TEXT, RASTER,etc. Maybe the solution to this is a different template. * The source data folder, how to tell MapServer that there is something someplace. We use a Flatfile control that does this now. A HTML interface added on to it would help out I think, where a validated theme owner could add in their data theme, even uploading of the file could be enabled. This is for an INTRANET at first. * How to describe in a discovery process that there is new data to distribute. A getcapabilities request for example. I suppose a Master Mapfile would be needed for this. We use seperate MapFiles for each theme at the moment. The MapFiles are right alongside of the data themes themseleves along with any dependant config file, TEMPLATES, SYMBOLS,etc. I'm sure I'll come up with more stuff as I think about the task some more. In the end I would like to move as much of the config process as possible back to the data owners/custodians, and just run the system as an administrative function. I can see down the road the notion of building a simple online MAPFILE editor. Thanks bobb From woodbri at SWOODBRIDGE.COM Wed Sep 29 16:55:46 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 29 Sep 2004 19:55:46 -0400 Subject: Ok, this might seem like a far out request, but . . . In-Reply-To: <415B3E2E.8000301@ci.stpaul.mn.us> Message-ID: Hey Bob, this is a good idea. I had simpler ideas along this line. If you take the ArcExplorer model, the first thing you do is load the layer and zoom to its extents. It would be easy to create an application that you pointed at a shapefile and it reads the attribute columns and asks you what which id any you want to use as a label, what color you want the object displayed in maybe 1-2 more options, it could also give you some additional information, like extents, object type, number of objects, a preview map, with the objects in black, or gray and black outline so you can preview it. After you make your selection it would generate a mapfile for that one shapefile. It gets a lot harder to create a multiple layer mapfile and for that you should move to something like DM Solutions MapLab. Also, if all you data is tagged as being in one of a group of areas, then you could have a standard base map layer like the US States as under the data layer you are making to give is more context. Just some more ideas for the brew :) -Steve W. Bob Basques wrote: > . . . .here goes. (get cup/glass of your favorite beverage) > > Has anyone experimented with trying to build a basic mapfile simply by > reading a SHP datasource. > > ---------------- > > My situation: > > I have just about everything automated for a data custodian to publish > their respective dataset (SHP) through a MAPSERVER install except for > the MAPFILE creation. The thought was to start with a template of some > sort (similar to a HTML template) and using some REGEX operation to > substitute the source data piece to come up with a way to initiate a > cursory Mapfile. > > The end product to be a basic discorvy mechamism for the MapServer to > use in generating it's own data them configuration files. > > Is this out there to far left to think about? > > These initial config files would be used by whomever the data custodian > is or the MapServer admin to start up a publishing process. We have a > couple of different Client built that can be handed the discory > information of a new data theme fairly easily. The MapServer piece > seems like it might be a bit tricky. > > Eventually, we want to move to a WMS distribution process so that this > type of operation make much more sense, but for now it would be intended > as a way to jumpstart a data theme publishing action. > > some items that might mitigate something like this would be : > > * The type of theme, POINT, LINE, POLYGON, TEXT, RASTER,etc. Maybe > the solution to this is a different template. > * The source data folder, how to tell MapServer that there is > something someplace. We use a Flatfile control that does this > now. A HTML interface added on to it would help out I think, > where a validated theme owner could add in their data theme, even > uploading of the file could be enabled. This is for an INTRANET > at first. > * How to describe in a discovery process that there is new data to > distribute. A getcapabilities request for example. I suppose a > Master Mapfile would be needed for this. We use seperate MapFiles > for each theme at the moment. The MapFiles are right alongside of > the data themes themseleves along with any dependant config file, > TEMPLATES, SYMBOLS,etc. > > I'm sure I'll come up with more stuff as I think about the task some more. > > In the end I would like to move as much of the config process as > possible back to the data owners/custodians, and just run the system as > an administrative function. I can see down the road the notion of > building a simple online MAPFILE editor. > > Thanks > > bobb > From unicoletti at PROMETEO.IT Thu Sep 30 00:08:17 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Thu, 30 Sep 2004 09:08:17 +0200 Subject: SWIG Mapscript In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A842FC14@linnms.co.linn.or.us> Message-ID: Hi Adam, some time time ago I also wanted to use save/loadQuery from Java mapscript. My workaround is to save query parameters in the user's session and run the query every time until it is cleared on explicit user request or another query is run. This keeps the result consistent even if the user changes layers display properties (hides/shows a layer). I did not notice any significant slowdown. HTH, Umberto On Wed, 2004-09-29 at 22:37, Ryan, Adam wrote: > > -----Original Message----- > > From: Sean Gillies [mailto:sgillies at FRII.COM] > > Sent: Wednesday, September 29, 2004 12:19 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > > > On Sep 29, 2004, at 1:16 PM, Sean Gillies wrote: > > > > > On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > > > > > >> Mapservers, > > >> > > >> Two methods I use in php mapscript don't seem to be in the SWIG > > >> version. > > >> > > >> Layer->queryByIndex - this is non-critical since I can use > > >> queryByAttribute > > >> with an FID > > >> > > >> Map->loadQuery - this is critical. There is a saveQuery > > method, but > > >> no > > >> loadQuery? > > >> > > >> Thanks for any insight. > > >> > > >> Adam > > >> > > > > > > Adam, > > > > > > Since I've used the PHP mapscript, I'm not sure what loadQuery and > > > saveQuery are for. Explain? > > > > > > Sean > > > > > > > Sorry, meant to say that I've *never* used the PHP mapscript > > and don't understand the use for saving and loading queries. > > > > Sean > > > > Hey, thanks for the reply. > > Am I the only one using saveQuery? I think saveQuery and loadQuery are > terrific methods. They generate/read small files of shape index values - > similar, to a bitmap in Avenue I think. By loading a saved query, I can > return a layer to a previous query 'state', for lack of a better word > (resultCacheObj state?). This is extremely useful. > > Building shapefiles does not allow for dynamic queries using AND, OR, or XOR > with previous queries, and it's too slow. The layer index problem is easily > handled by changing the layer index value in the saved query file itself > prior to loading. As long as only one layer is queried at a time, this > works well. > > I'm trying to re-write an application using Python and without this > functionality it's a no go. I can't even emulate a saveQuery because there > is no queryByIndex method, and even if there was, stepping through a list of > indexes and calling queryByIndex is MUCH slower than the loadQuery method. > > I'm at a loss. > > Adam From berend.veldkamp at ARIS.NL Thu Sep 30 02:02:28 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Thu, 30 Sep 2004 04:02:28 -0500 Subject: Spatial filter in SLD Message-ID: On Fri, 17 Sep 2004 12:38:46 -0400, Yewondwossen Assefa wrote: >i There, > > I have checked a bit this issue. There were a couple of bugs related >with DWithin and Intersect spatial filters. There is a new version of >mapogcfilter.c (r 1.31). You should give it a try. >Another note on using the applysld from php with spatial filter (based >on your example) : there are no class created for the layer since the >filter is only a spatial filer. What happens is that the spatial filter >is converted into a query in mapserver and applied to the layer. If you >are doing your tests throuh php you should use drawquery to see the >effect of the sld. > >Let me know how it goes. > Even with the latest nigthly we couldn't get this to work, so I filed a bug: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=917 Berend From berend.veldkamp at ARIS.NL Thu Sep 30 04:50:38 2004 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Thu, 30 Sep 2004 13:50:38 +0200 Subject: ApplySLD creates incorrect filter Message-ID: Hello all, I have the following filter in an sld: X 143692 145692 Y 461308 463308 When I do a direct getmap request to a Mapserver WMS server (for example http://localhost/mapserv&map=test.map&service=wms&version=1.1.0&request=getmap&layers=nap&styles=&sld=test.sld), it works. However when I use PHP/MapScript it doesn't. When I call ApplySLD, MapServer creates a class with the following expression: EXPRESSION ( ([X] >= 143692 AND [X] <= 145692) And ([Y] >= 461308 AND [Y] <= 463308)) Since this is a WMS layer, MapServer tries to translate this expression back to a valid filter when making the getmap request, but fails. I experimented a bit , and I found that It only works with a maximum of 2 conditions, and only using ">" or "<", not "<=" or ">=", i.e. ( ([X] > 143692 AND [X] < 145692) ) This is the filter that MapServer creates in this case: X 143692 X 145692 Now I don't really care if it's "greater than" or greater than or equal to", but I really would like to be able to use more than 2 conditions. I'm not sure if this is possible at all, can anyone comment on this? Thanks, Berend -- ____________________________ Berend Veldkamp - ARIS http://www.aris.nl/ ____________________________ From sgillies at FRII.COM Thu Sep 30 07:44:35 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 30 Sep 2004 08:44:35 -0600 Subject: SWIG Mapscript In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A842FC14@linnms.co.linn.or.us> Message-ID: On Sep 29, 2004, at 2:37 PM, Ryan, Adam wrote: > >> -----Original Message----- >> From: Sean Gillies [mailto:sgillies at FRII.COM] >> Sent: Wednesday, September 29, 2004 12:19 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript >> >> >>> On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: >>> >>>> Mapservers, >>>> >>>> Two methods I use in php mapscript don't seem to be in the SWIG >>>> version. >>>> >>>> Layer->queryByIndex - this is non-critical since I can use >>>> queryByAttribute >>>> with an FID >>>> >>>> Map->loadQuery - this is critical. There is a saveQuery >> method, but >>>> no >>>> loadQuery? >>>> >>>> Thanks for any insight. >>>> >>>> Adam >>>> >>> >> >> Sorry, meant to say that I've *never* used the PHP mapscript >> and don't understand the use for saving and loading queries. >> >> Sean >> > > Hey, thanks for the reply. > > Am I the only one using saveQuery? I think saveQuery and loadQuery are > terrific methods. They generate/read small files of shape index > values - > similar, to a bitmap in Avenue I think. By loading a saved query, I > can > return a layer to a previous query 'state', for lack of a better word > (resultCacheObj state?). This is extremely useful. > > Building shapefiles does not allow for dynamic queries using AND, OR, > or XOR > with previous queries, and it's too slow. The layer index problem is > easily > handled by changing the layer index value in the saved query file > itself > prior to loading. As long as only one layer is queried at a time, this > works well. > > I'm trying to re-write an application using Python and without this > functionality it's a no go. I can't even emulate a saveQuery because > there > is no queryByIndex method, and even if there was, stepping through a > list of > indexes and calling queryByIndex is MUCH slower than the loadQuery > method. > > I'm at a loss. > > Adam > Adam, Thanks for the explanation. I am not against implementing the PHP savequery and loadquery, although I do question why these methods write and read from the filesystem when your logical combination needs to be done in memory. Meanwhile, for 4.2, I have an idea. Instead of manipulating the layer's resultcache in place, create Python sets of query results and do your logical operations on them. For example:: import sets ... layer.query1() # assume success qset1 = sets.Set() for i in range(layer.getNumResults()): result = layer.getResult(i) result_tuple = (result.shapeindex, result.tileindex, result.classindex) qset1.add(result_tuple) layer.query2() # assume success qset2 = sets.Set() for i in range(layer.getNumResults()): result = layer.getResult(i) result_tuple = (result.shapeindex, result.tileindex, result.classindex) qset2.add(result_tuple) # Union qunion = qset1.union(qset2) # Intersection qintersection = qset2.intersection(qset1) # Get shapes from the intersection for member in qintersection: layer.getShape(member[0], member[1]) ... Sets are a first class type in the upcoming Python 2.4, well worth learning. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From jerl.simpso at GMAIL.COM Thu Sep 30 08:01:24 2004 From: jerl.simpso at GMAIL.COM (Jerl Simpson) Date: Thu, 30 Sep 2004 10:01:24 -0500 Subject: Map wrap around?? In-Reply-To: <-8652084260738418592@unknownmsgid> Message-ID: 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. Does this make sense? Thank, Jerl From AWOOLEY at MOUNTAINLAND.ORG Thu Sep 30 08:11:04 2004 From: AWOOLEY at MOUNTAINLAND.ORG (ANDREW WOOLEY) Date: Thu, 30 Sep 2004 09:11:04 -0600 Subject: Imagery TileIndex extent errors Message-ID: Folks, I am using a raster tileindex that I created using gdaltindex and it works very well. However, when I draw a portion of the map that the index does not cover, I get this: Fatal error: Object expected as argument. in /var/www/html/bst/map/bstmap.phtml on line 548. Line 548 is the line before the drawing of the map. I don't get an error if I take out the entry in the mapfile for the tiles or if I turn it off. Is there a way I am using PHP/MapScript and would be fine if I could turn it off through code, but I am not sure how to check to see if the index is in the current extent. Here is my mapserver info: MapServer version 4.2.0 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=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks in advance for any help you can offer. Andrew Wooley GIS Coordinator Mountainland Association of Governments 586 E 800 N Orem, UT 84097 ph: 801.229.3844 email: awooley at mountainland.org web: http://maps.mountainland.org From ARyan at CO.LINN.OR.US Thu Sep 30 08:57:30 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 30 Sep 2004 08:57:30 -0700 Subject: SWIG Mapscript Message-ID: > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Thursday, September 30, 2004 7:45 AM > To: Ryan, Adam > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > On Sep 29, 2004, at 2:37 PM, Ryan, Adam wrote: > > > > >> -----Original Message----- > >> From: Sean Gillies [mailto:sgillies at FRII.COM] > >> Sent: Wednesday, September 29, 2004 12:19 PM > >> To: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > >> > >> > >>> On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > >>> > >>>> Mapservers, > >>>> > >>>> Two methods I use in php mapscript don't seem to be in the SWIG > >>>> version. > >>>> > >>>> Layer->queryByIndex - this is non-critical since I can use > >>>> queryByAttribute > >>>> with an FID > >>>> > >>>> Map->loadQuery - this is critical. There is a saveQuery > >> method, but > >>>> no > >>>> loadQuery? > >>>> > >>>> Thanks for any insight. > >>>> > >>>> Adam > >>>> > >>> > >> > >> Sorry, meant to say that I've *never* used the PHP mapscript and > >> don't understand the use for saving and loading queries. > >> > >> Sean > >> > > > > Hey, thanks for the reply. > > > > Am I the only one using saveQuery? I think saveQuery and loadQuery > > are terrific methods. They generate/read small files of > shape index > > values - similar, to a bitmap in Avenue I think. By > loading a saved > > query, I can > > return a layer to a previous query 'state', for lack of a > better word > > (resultCacheObj state?). This is extremely useful. > > > > Building shapefiles does not allow for dynamic queries > using AND, OR, > > or XOR > > with previous queries, and it's too slow. The layer index > problem is > > easily > > handled by changing the layer index value in the saved query file > > itself > > prior to loading. As long as only one layer is queried at > a time, this > > works well. > > > > I'm trying to re-write an application using Python and without this > > functionality it's a no go. I can't even emulate a > saveQuery because > > there is no queryByIndex method, and even if there was, stepping > > through a list of > > indexes and calling queryByIndex is MUCH slower than the loadQuery > > method. > > > > I'm at a loss. > > > > Adam > > > > Adam, > > Thanks for the explanation. I am not against implementing the PHP > savequery > and loadquery, although I do question why these methods write > and read > from > the filesystem when your logical combination needs to be done > in memory. > > Meanwhile, for 4.2, I have an idea. Instead of manipulating > the layer's resultcache in place, create Python sets of query > results and do your > logical > operations on them. For example:: > > import sets > > ... > layer.query1() # assume success > qset1 = sets.Set() > for i in range(layer.getNumResults()): > result = layer.getResult(i) > result_tuple = (result.shapeindex, result.tileindex, > result.classindex) > qset1.add(result_tuple) > > layer.query2() # assume success > qset2 = sets.Set() > for i in range(layer.getNumResults()): > result = layer.getResult(i) > result_tuple = (result.shapeindex, result.tileindex, > result.classindex) > qset2.add(result_tuple) > > # Union > qunion = qset1.union(qset2) > > # Intersection > qintersection = qset2.intersection(qset1) > > # Get shapes from the intersection > for member in qintersection: > layer.getShape(member[0], member[1]) > ... > > > Sets are a first class type in the upcoming Python 2.4, well > worth learning. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > Sean, Thanks for the reply. Your solution is what I've essentially been doing for a while now in PHP. But this sort of thing is MUCH more useful when you are able to do a saveQuery. For example: 1.) User searches by Attributes: [NAME] = 'Smith'. Query1.qy is saved and the file name is passed to the user along with a map showing all highlighted features. 2.) User clicks the "AND" selection method and draws a box on the map. The box extent and the query file name are passed back. I do a queryByRect on the layer using the box to get result set1. I load in the old query (set2). I check the selection method and perform the relate (AND,OR,XOR) and produce set3 (JUST AS YOU HAVE DESCRIBED ABOVE). I save this as query2.qy, load it into the mapb object, drawQuery and spit back results. Now only those features with Name = Smith AND inside the box are displayed. 3.) User searches by Attributes: [YEARBUILT] < 1970 with selection method again set to AND which will further narrow the selection... ...and this can go on and on indefinitely. This is the only way to do multiple and successive spatial and attribute queries in order to refine a selection set. THIS IS GIS BABY! And here's why my interface wouldn't work with your solution above: 1.) Iterating through large selection sets using mapscript to build an array, or set, or whatever is too slow. I know this to be true in PHP after doing a number of tests, and I can't say for sure in Python, but I suspect so. It is MUCH faster to do map.saveQuery to a file, and then write a little routine to read the binary file into an array. This seemed counter-intuitive to me, but I ran a bunch of tests and that's what I found. Much faster! 2.) At the end of your solution you have an array of indexes but nothing to do with them but get the shape. What are you going to do with the shapes, draw each one? That's way to slow. What you need is a way to define the resultCache with your array, but queryByIndex is not implemented. And, as I said before, even if it was implemented, iterating though a large set and using queryByIndex on each index is WAY TO SLOW! It is MUCH faster to dump that new set to a file and do a map.loadQuery. And if you build shapefiles (or entirely new files in whatever format you prefer), as Lowell has suggested, you loose the initial indexing of the original file and are no longer able to do successive spatial and attribute queries. You could use a FID attribute, but then you'd be back to iterating through a bunch of queryByAttributes...ugggh! Please let me know what you think about this. I don't know C, I'm on Windows, and I don't even compile my own mapscript so I'm really just using the software and not contributing to it's development. In light of that, if there is any way I can help with this, I am more than willing to put in the time. Let me know. Best regards, Adam From ARyan at CO.LINN.OR.US Thu Sep 30 09:03:34 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 30 Sep 2004 09:03:34 -0700 Subject: SWIG Mapscript Message-ID: > -----Original Message----- > From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] > Sent: Thursday, September 30, 2004 12:08 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > Hi Adam, > some time time ago I also wanted to use save/loadQuery from > Java mapscript. My workaround is to save query parameters in > the user's session and run the query every time until it is > cleared on explicit user request or another query is run. > This keeps the result consistent even if the user changes > layers display properties (hides/shows a layer). > > I did not notice any significant slowdown. > > HTH, > Umberto > > On Wed, 2004-09-29 at 22:37, Ryan, Adam wrote: > > > -----Original Message----- > > > From: Sean Gillies [mailto:sgillies at FRII.COM] > > > Sent: Wednesday, September 29, 2004 12:19 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > > > > > > On Sep 29, 2004, at 1:16 PM, Sean Gillies wrote: > > > > > > > On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > > > > > > > >> Mapservers, > > > >> > > > >> Two methods I use in php mapscript don't seem to be in > the SWIG > > > >> version. > > > >> > > > >> Layer->queryByIndex - this is non-critical since I can use > > > >> queryByAttribute > > > >> with an FID > > > >> > > > >> Map->loadQuery - this is critical. There is a saveQuery > > > method, but > > > >> no > > > >> loadQuery? > > > >> > > > >> Thanks for any insight. > > > >> > > > >> Adam > > > >> > > > > > > > > Adam, > > > > > > > > Since I've used the PHP mapscript, I'm not sure what > loadQuery and > > > > saveQuery are for. Explain? > > > > > > > > Sean > > > > > > > > > > Sorry, meant to say that I've *never* used the PHP mapscript and > > > don't understand the use for saving and loading queries. > > > > > > Sean > > > > > > > Hey, thanks for the reply. > > > > Am I the only one using saveQuery? I think saveQuery and loadQuery > > are terrific methods. They generate/read small files of > shape index > > values - similar, to a bitmap in Avenue I think. By > loading a saved > > query, I can return a layer to a previous query 'state', > for lack of a > > better word (resultCacheObj state?). This is extremely useful. > > > > Building shapefiles does not allow for dynamic queries > using AND, OR, > > or XOR with previous queries, and it's too slow. The layer index > > problem is easily handled by changing the layer index value in the > > saved query file itself prior to loading. As long as only > one layer > > is queried at a time, this works well. > > > > I'm trying to re-write an application using Python and without this > > functionality it's a no go. I can't even emulate a > saveQuery because > > there is no queryByIndex method, and even if there was, stepping > > through a list of indexes and calling queryByIndex is MUCH > slower than > > the loadQuery method. > > > > I'm at a loss. > > > > Adam > Umberto, I thought about this too but running a query every time is too slow. And, the only way to do succesive refining queries is to run multiple queries in every session, and that's WAY to slow. Adam From ahynes1 at OPTONLINE.NET Thu Sep 30 08:58:32 2004 From: ahynes1 at OPTONLINE.NET (Aldon Hynes) Date: Thu, 30 Sep 2004 11:58:32 -0400 Subject: Newbie questions In-Reply-To: Message-ID: I have recently set up a MapServer to handle political maps in the U.S. I am not an experienced geographer, but through poking around, and finding various workarounds, I've managed to get a few maps up and running. I've documented my efforts on my blog, Orient Lodge, http://www.orient-lodge.com Feel free to read that and comment there, or answer my questions which I'll list here. (You may need to read the blog entry to get the full context...) How do I get MapServer to work with IIS? How do I get MapScript working with IIS? How do I incorporate this into Drupal (e.g. getting MapClient or MapScript to work) How do I find extents automatically without using ArcView? Is there a nice way to change the scaling? How do you make a section clickable? (I?m currently creating PNGs that I add to Drupal as a client side clickable map) How do you set up a floating tag? (So, when the mouse hovers over a location, it says what the location is. I can do this with clickable maps, and have at Local Pols) How do you make different sections different colors based on specific needs? (I?m doing it with a kludged up map file. I?m sure there must be a better way How do I add a symbol, or many symbols, programmatically? Aldon From unicoletti at PROMETEO.IT Thu Sep 30 09:28:45 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Thu, 30 Sep 2004 18:28:45 +0200 Subject: SWIG Mapscript In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A842FEF5@linnms.co.linn.or.us> Message-ID: You are right, in my case I have a ridiculous amount of data and I could not wait for save/loadQuery so that is a workaround for me. In the future I might switch to load/saveQuery. Regards, Umberto On Thu, 2004-09-30 at 18:03, Ryan, Adam wrote: > > -----Original Message----- > > From: Umberto Nicoletti [mailto:unicoletti at PROMETEO.IT] > > Sent: Thursday, September 30, 2004 12:08 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > > > Hi Adam, > > some time time ago I also wanted to use save/loadQuery from > > Java mapscript. My workaround is to save query parameters in > > the user's session and run the query every time until it is > > cleared on explicit user request or another query is run. > > This keeps the result consistent even if the user changes > > layers display properties (hides/shows a layer). > > > > I did not notice any significant slowdown. > > > > HTH, > > Umberto > > > > On Wed, 2004-09-29 at 22:37, Ryan, Adam wrote: > > > > -----Original Message----- > > > > From: Sean Gillies [mailto:sgillies at FRII.COM] > > > > Sent: Wednesday, September 29, 2004 12:19 PM > > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > > > > > > > > > > On Sep 29, 2004, at 1:16 PM, Sean Gillies wrote: > > > > > > > > > On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > > > > > > > > > >> Mapservers, > > > > >> > > > > >> Two methods I use in php mapscript don't seem to be in > > the SWIG > > > > >> version. > > > > >> > > > > >> Layer->queryByIndex - this is non-critical since I can use > > > > >> queryByAttribute > > > > >> with an FID > > > > >> > > > > >> Map->loadQuery - this is critical. There is a saveQuery > > > > method, but > > > > >> no > > > > >> loadQuery? > > > > >> > > > > >> Thanks for any insight. > > > > >> > > > > >> Adam > > > > >> > > > > > > > > > > Adam, > > > > > > > > > > Since I've used the PHP mapscript, I'm not sure what > > loadQuery and > > > > > saveQuery are for. Explain? > > > > > > > > > > Sean > > > > > > > > > > > > > Sorry, meant to say that I've *never* used the PHP mapscript and > > > > don't understand the use for saving and loading queries. > > > > > > > > Sean > > > > > > > > > > Hey, thanks for the reply. > > > > > > Am I the only one using saveQuery? I think saveQuery and loadQuery > > > are terrific methods. They generate/read small files of > > shape index > > > values - similar, to a bitmap in Avenue I think. By > > loading a saved > > > query, I can return a layer to a previous query 'state', > > for lack of a > > > better word (resultCacheObj state?). This is extremely useful. > > > > > > Building shapefiles does not allow for dynamic queries > > using AND, OR, > > > or XOR with previous queries, and it's too slow. The layer index > > > problem is easily handled by changing the layer index value in the > > > saved query file itself prior to loading. As long as only > > one layer > > > is queried at a time, this works well. > > > > > > I'm trying to re-write an application using Python and without this > > > functionality it's a no go. I can't even emulate a > > saveQuery because > > > there is no queryByIndex method, and even if there was, stepping > > > through a list of indexes and calling queryByIndex is MUCH > > slower than > > > the loadQuery method. > > > > > > I'm at a loss. > > > > > > Adam > > > > Umberto, > > I thought about this too but running a query every time is too slow. And, > the only way to do succesive refining queries is to run multiple queries in > every session, and that's WAY to slow. > > Adam > > From superbla3000 at GMX.NET Thu Sep 30 09:35:10 2004 From: superbla3000 at GMX.NET (joerg p) Date: Thu, 30 Sep 2004 18:35:10 +0200 Subject: photoshop geotiff In-Reply-To: <415AB990.5060702@pobox.com> Message-ID: Frank Warmerdam wrote: > joerg p wrote: > >> hello, >> >> I would like to adjust colors of a geotiff in photoshop: >> >> Before editing I can display it with mapserver and open it with >> globalmapper >> then I open the file in photoshop >> i adjust the color >> i save the tiff >> I write the geotiff tag again with GeoTiffExamine >> >> But now i can't display it with mapserver and when I open it with >> globalmapper, it says: >> 'wrong data type 1 for XML Packet'; tag ignored >> 'unknown field with tag 34665 encountered' >> >> How do I save it right with photoshop? >> I have no compression and tried also tif for mac and pc, no difference. > > > Joerg, > > If there aren't too many special non-geotiff tags you want to preserve, > you might just want to run the file through gdal_translate. This should > drop out unusual Photoshop tags, though in general "wrong data type ... > tag ignored" messages should not be fatal in processing. > > However, I would be interested in getting a smallish sample of the file > if possible. Was the XML Package tag in question put in by Photoshop or > GeoTiffExamine? > > Best regards, hello Frank, thanks for your help, that was the problem. And now I can also display UTM geotiffs, which never worked before. One more question (and a lot more in the next post :-) The datum of the file is completely dropped (WGS84). How do I set it? I tried: gdal_translate.exe -a_srs "+datum=WGS84" daten/test.tif daten/test_transl2.tif but of course it doesn't work. I think the XML Package tag in question was put in by Photoshop. How can I give you a sample? The original file has around 220MB... Maybe you have also some suggestions for my next post 'basic questions for my project' Thanks Joerg From sgillies at FRII.COM Thu Sep 30 09:41:10 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 30 Sep 2004 10:41:10 -0600 Subject: SWIG Mapscript In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A842FEDD@linnms.co.linn.or.us> Message-ID: On Sep 30, 2004, at 9:57 AM, Ryan, Adam wrote: > >> -----Original Message----- >> From: Sean Gillies [mailto:sgillies at frii.com] >> Sent: Thursday, September 30, 2004 7:45 AM >> To: Ryan, Adam >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript >> >> >> On Sep 29, 2004, at 2:37 PM, Ryan, Adam wrote: >> >>> >>>> -----Original Message----- >>>> From: Sean Gillies [mailto:sgillies at FRII.COM] >>>> Sent: Wednesday, September 29, 2004 12:19 PM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript >>>> >>>> >>>>> On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: >>>>> >>>>>> Mapservers, >>>>>> >>>>>> Two methods I use in php mapscript don't seem to be in the SWIG >>>>>> version. >>>>>> >>>>>> Layer->queryByIndex - this is non-critical since I can use >>>>>> queryByAttribute >>>>>> with an FID >>>>>> >>>>>> Map->loadQuery - this is critical. There is a saveQuery >>>> method, but >>>>>> no >>>>>> loadQuery? >>>>>> >>>>>> Thanks for any insight. >>>>>> >>>>>> Adam >>>>>> >>>>> >>>> >>>> Sorry, meant to say that I've *never* used the PHP mapscript and >>>> don't understand the use for saving and loading queries. >>>> >>>> Sean >>>> >>> >>> Hey, thanks for the reply. >>> >>> Am I the only one using saveQuery? I think saveQuery and loadQuery >>> are terrific methods. They generate/read small files of >> shape index >>> values - similar, to a bitmap in Avenue I think. By >> loading a saved >>> query, I can >>> return a layer to a previous query 'state', for lack of a >> better word >>> (resultCacheObj state?). This is extremely useful. >>> >>> Building shapefiles does not allow for dynamic queries >> using AND, OR, >>> or XOR >>> with previous queries, and it's too slow. The layer index >> problem is >>> easily >>> handled by changing the layer index value in the saved query file >>> itself >>> prior to loading. As long as only one layer is queried at >> a time, this >>> works well. >>> >>> I'm trying to re-write an application using Python and without this >>> functionality it's a no go. I can't even emulate a >> saveQuery because >>> there is no queryByIndex method, and even if there was, stepping >>> through a list of >>> indexes and calling queryByIndex is MUCH slower than the loadQuery >>> method. >>> >>> I'm at a loss. >>> >>> Adam >>> >> >> Adam, >> >> Thanks for the explanation. I am not against implementing the PHP >> savequery >> and loadquery, although I do question why these methods write >> and read >> from >> the filesystem when your logical combination needs to be done >> in memory. >> >> Meanwhile, for 4.2, I have an idea. Instead of manipulating >> the layer's resultcache in place, create Python sets of query >> results and do your >> logical >> operations on them. For example:: >> >> import sets >> >> ... >> layer.query1() # assume success >> qset1 = sets.Set() >> for i in range(layer.getNumResults()): >> result = layer.getResult(i) >> result_tuple = (result.shapeindex, result.tileindex, >> result.classindex) >> qset1.add(result_tuple) >> >> layer.query2() # assume success >> qset2 = sets.Set() >> for i in range(layer.getNumResults()): >> result = layer.getResult(i) >> result_tuple = (result.shapeindex, result.tileindex, >> result.classindex) >> qset2.add(result_tuple) >> >> # Union >> qunion = qset1.union(qset2) >> >> # Intersection >> qintersection = qset2.intersection(qset1) >> >> # Get shapes from the intersection >> for member in qintersection: >> layer.getShape(member[0], member[1]) >> ... >> >> >> Sets are a first class type in the upcoming Python 2.4, well >> worth learning. >> >> cheers, >> Sean >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> > > > Sean, > > Thanks for the reply. Your solution is what I've essentially been > doing for > a while now in PHP. But this sort of thing is MUCH more useful when > you are > able to do a saveQuery. For example: > > 1.) User searches by Attributes: [NAME] = 'Smith'. Query1.qy is > saved and > the file name is passed to the user along with a map showing all > highlighted > features. > > 2.) User clicks the "AND" selection method and draws a box on the > map. The > box extent and the query file name are passed back. I do a > queryByRect on > the layer using the box to get result set1. I load in the old query > (set2). > I check the selection method and perform the relate (AND,OR,XOR) and > produce > set3 (JUST AS YOU HAVE DESCRIBED ABOVE). I save this as query2.qy, > load it > into the mapb object, drawQuery and spit back results. Now only those > features with Name = Smith AND inside the box are displayed. > > 3.) User searches by Attributes: [YEARBUILT] < 1970 with selection > method > again set to AND which will further narrow the selection... > > ...and this can go on and on indefinitely. This is the only way to do > multiple and successive spatial and attribute queries in order to > refine a > selection set. > > THIS IS GIS BABY! > :) Adam, I didn't understand that you were using drawQuery ... that changes the equation a bit. > And here's why my interface wouldn't work with your solution above: > > 1.) Iterating through large selection sets using mapscript to build an > array, or set, or whatever is too slow. I know this to be true in PHP > after > doing a number of tests, and I can't say for sure in Python, but I > suspect > so. It is MUCH faster to do map.saveQuery to a file, and then write a > little routine to read the binary file into an array. This seemed > counter-intuitive to me, but I ran a bunch of tests and that's what I > found. > Much faster! > Yes, getting query results one by one with mapscript is the slowest possible method. In my opinion, what's *really* needed is a mapscript method that returns arrays, or Python lists, of results. Then you wouldn't have to write/read from the filesystem either. Faster yet. > 2.) At the end of your solution you have an array of indexes but > nothing to > do with them but get the shape. What are you going to do with the > shapes, > draw each one? That's way to slow. What you need is a way to define > the > resultCache with your array, but queryByIndex is not implemented. > And, as I > said before, even if it was implemented, iterating though a large set > and > using queryByIndex on each index is WAY TO SLOW! It is MUCH faster to > dump > that new set to a file and do a map.loadQuery. > Agreed, drawing individual shapes is slow. > And if you build shapefiles (or entirely new files in whatever format > you > prefer), as Lowell has suggested, you loose the initial indexing of the > original file and are no longer able to do successive spatial and > attribute > queries. You could use a FID attribute, but then you'd be back to > iterating > through a bunch of queryByAttributes...ugggh! > > Please let me know what you think about this. > > I don't know C, I'm on Windows, and I don't even compile my own > mapscript so > I'm really just using the software and not contributing to it's > development. > In light of that, if there is any way I can help with this, I am more > than > willing to put in the time. Let me know. > > Best regards, > > Adam > You use hobu's mapscript, right? So you are asking for an enhancement to mapserver 4.3/4.4? I think a fully functional saveQuery/loadQuery is a very reasonable request. Please confirm, and I'll add an issue to Bugzilla. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From malsburg at CL.UNI-HEIDELBERG.DE Thu Sep 30 09:55:55 2004 From: malsburg at CL.UNI-HEIDELBERG.DE (Titus von der Malsburg) Date: Thu, 30 Sep 2004 18:55:55 +0200 Subject: Newbie questions In-Reply-To: Message-ID: On Thu, Sep 30, 2004 at 11:58:32AM -0400, Aldon Hynes wrote: > How do I get MapServer to work with IIS? As like any other CGI script. See IIS documentation. > How do I get MapScript working with IIS? * You could write your own CGI scripts i.e. in Python using mapscript. * Maybe you can write java servlets? * I belief there are people working on c# bindings, so you could maybe use .NET > How do I find extents automatically without using ArcView? Use the ogrinfo tool: ogrinfo.exe -al gshhs.shp It will output something like: INFO: Open of `gshhs.shp' using driver `ESRI Shapefile' successful. Layer name: gshhs Geometry: Line String Feature Count: 219136 Extent: (0.000000, -78.570396) - (360.000000, 83.633400) ... > Is there a nice way to change the scaling? What do you mean by "scaling"? Titus From ARyan at CO.LINN.OR.US Thu Sep 30 10:13:20 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 30 Sep 2004 10:13:20 -0700 Subject: SWIG Mapscript Message-ID: > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Thursday, September 30, 2004 9:41 AM > To: Ryan, Adam > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > > > On Sep 30, 2004, at 9:57 AM, Ryan, Adam wrote: > > > >> -----Original Message----- > >> From: Sean Gillies [mailto:sgillies at frii.com] > >> Sent: Thursday, September 30, 2004 7:45 AM > >> To: Ryan, Adam > >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU > >> Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > >> > >> > >> On Sep 29, 2004, at 2:37 PM, Ryan, Adam wrote: > >> > >>> > >>>> -----Original Message----- > >>>> From: Sean Gillies [mailto:sgillies at FRII.COM] > >>>> Sent: Wednesday, September 29, 2004 12:19 PM > >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>> Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript > >>>> > >>>> > >>>>> On Sep 29, 2004, at 12:54 PM, Ryan, Adam wrote: > >>>>> > >>>>>> Mapservers, > >>>>>> > >>>>>> Two methods I use in php mapscript don't seem to be in > the SWIG > >>>>>> version. > >>>>>> > >>>>>> Layer->queryByIndex - this is non-critical since I can use > >>>>>> queryByAttribute > >>>>>> with an FID > >>>>>> > >>>>>> Map->loadQuery - this is critical. There is a saveQuery > >>>> method, but > >>>>>> no > >>>>>> loadQuery? > >>>>>> > >>>>>> Thanks for any insight. > >>>>>> > >>>>>> Adam > >>>>>> > >>>>> > >>>> > >>>> Sorry, meant to say that I've *never* used the PHP mapscript and > >>>> don't understand the use for saving and loading queries. > >>>> > >>>> Sean > >>>> > >>> > >>> Hey, thanks for the reply. > >>> > >>> Am I the only one using saveQuery? I think saveQuery and > loadQuery > >>> are terrific methods. They generate/read small files of > >> shape index > >>> values - similar, to a bitmap in Avenue I think. By > >> loading a saved > >>> query, I can > >>> return a layer to a previous query 'state', for lack of a > >> better word > >>> (resultCacheObj state?). This is extremely useful. > >>> > >>> Building shapefiles does not allow for dynamic queries > >> using AND, OR, > >>> or XOR > >>> with previous queries, and it's too slow. The layer index > >> problem is > >>> easily > >>> handled by changing the layer index value in the saved query file > >>> itself prior to loading. As long as only one layer is queried at > >> a time, this > >>> works well. > >>> > >>> I'm trying to re-write an application using Python and > without this > >>> functionality it's a no go. I can't even emulate a > >> saveQuery because > >>> there is no queryByIndex method, and even if there was, stepping > >>> through a list of indexes and calling queryByIndex is MUCH slower > >>> than the loadQuery method. > >>> > >>> I'm at a loss. > >>> > >>> Adam > >>> > >> > >> Adam, > >> > >> Thanks for the explanation. I am not against implementing the PHP > >> savequery and loadquery, although I do question why these methods > >> write and read > >> from > >> the filesystem when your logical combination needs to be done > >> in memory. > >> > >> Meanwhile, for 4.2, I have an idea. Instead of manipulating the > >> layer's resultcache in place, create Python sets of query > results and > >> do your logical > >> operations on them. For example:: > >> > >> import sets > >> > >> ... > >> layer.query1() # assume success > >> qset1 = sets.Set() > >> for i in range(layer.getNumResults()): > >> result = layer.getResult(i) > >> result_tuple = (result.shapeindex, result.tileindex, > >> result.classindex) > >> qset1.add(result_tuple) > >> > >> layer.query2() # assume success > >> qset2 = sets.Set() > >> for i in range(layer.getNumResults()): > >> result = layer.getResult(i) > >> result_tuple = (result.shapeindex, result.tileindex, > >> result.classindex) > >> qset2.add(result_tuple) > >> > >> # Union > >> qunion = qset1.union(qset2) > >> > >> # Intersection > >> qintersection = qset2.intersection(qset1) > >> > >> # Get shapes from the intersection > >> for member in qintersection: > >> layer.getShape(member[0], member[1]) > >> ... > >> > >> > >> Sets are a first class type in the upcoming Python 2.4, well worth > >> learning. > >> > >> cheers, > >> Sean > >> > >> -- > >> Sean Gillies > >> sgillies at frii dot com > >> http://users.frii.com/sgillies > >> > > > > > > Sean, > > > > Thanks for the reply. Your solution is what I've essentially been > > doing for > > a while now in PHP. But this sort of thing is MUCH more > useful when > > you are > > able to do a saveQuery. For example: > > > > 1.) User searches by Attributes: [NAME] = 'Smith'. Query1.qy is > > saved and > > the file name is passed to the user along with a map showing all > > highlighted > > features. > > > > 2.) User clicks the "AND" selection method and draws a box on the > > map. The > > box extent and the query file name are passed back. I do a > > queryByRect on > > the layer using the box to get result set1. I load in the > old query > > (set2). > > I check the selection method and perform the relate > (AND,OR,XOR) and > > produce > > set3 (JUST AS YOU HAVE DESCRIBED ABOVE). I save this as query2.qy, > > load it > > into the mapb object, drawQuery and spit back results. Now > only those > > features with Name = Smith AND inside the box are displayed. > > > > 3.) User searches by Attributes: [YEARBUILT] < 1970 with selection > > method > > again set to AND which will further narrow the selection... > > > > ...and this can go on and on indefinitely. This is the > only way to do > > multiple and successive spatial and attribute queries in order to > > refine a selection set. > > > > THIS IS GIS BABY! > > > > :) > > Adam, I didn't understand that you were using drawQuery ... > that changes the equation a bit. > > > > And here's why my interface wouldn't work with your solution above: > > > > 1.) Iterating through large selection sets using mapscript > to build > > an array, or set, or whatever is too slow. I know this to > be true in > > PHP after doing a number of tests, and I can't say for sure > in Python, > > but I suspect > > so. It is MUCH faster to do map.saveQuery to a file, and > then write a > > little routine to read the binary file into an array. This seemed > > counter-intuitive to me, but I ran a bunch of tests and > that's what I > > found. > > Much faster! > > > > Yes, getting query results one by one with mapscript is the slowest > possible method. In my opinion, what's *really* needed is a > mapscript > method > that returns arrays, or Python lists, of results. Then you wouldn't > have to > write/read from the filesystem either. Faster yet. > > > 2.) At the end of your solution you have an array of indexes but > > nothing to > > do with them but get the shape. What are you going to do with the > > shapes, > > draw each one? That's way to slow. What you need is a way > to define > > the > > resultCache with your array, but queryByIndex is not implemented. > > And, as I > > said before, even if it was implemented, iterating though a > large set > > and > > using queryByIndex on each index is WAY TO SLOW! It is > MUCH faster to > > dump > > that new set to a file and do a map.loadQuery. > > > > Agreed, drawing individual shapes is slow. > > > And if you build shapefiles (or entirely new files in > whatever format > > you > > prefer), as Lowell has suggested, you loose the initial > indexing of the > > original file and are no longer able to do successive spatial and > > attribute > > queries. You could use a FID attribute, but then you'd be back to > > iterating > > through a bunch of queryByAttributes...ugggh! > > > > Please let me know what you think about this. > > > > I don't know C, I'm on Windows, and I don't even compile my own > > mapscript so > > I'm really just using the software and not contributing to it's > > development. > > In light of that, if there is any way I can help with this, > I am more > > than > > willing to put in the time. Let me know. > > > > Best regards, > > > > Adam > > > > You use hobu's mapscript, right? So you are asking for an enhancement > to mapserver 4.3/4.4? I think a fully functional saveQuery/loadQuery > is a very reasonable request. Please confirm, and I'll add > an issue to > Bugzilla. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > Yes, I'm using hobu's mapscript, and Yes, I confirm! saveQuery is already implemented (at least it's working fine on my side) hence my confusion when loadQuery was not recognized. If implementing loadQuery is feasible it would be excellent. Thanks. And, since INDEXQUERY is a CGI mode, is exposing (is this the right verb?) the queryByIndex method feasible as well? And while I'm on a roll, the superior future enhancements as you mentioned - perhaps 'getCache' and 'setCache' methods - allowing us to manipulate the sets in memory. That would be fantastic, though I suspect it's no small task. Thanks again, Adam From jhblankenship at YAHOO.COM Thu Sep 30 10:16:36 2004 From: jhblankenship at YAHOO.COM (Jacob Blankenship) Date: Thu, 30 Sep 2004 10:16:36 -0700 Subject: Using mapserver and C# In-Reply-To: <20040930165554.GH641@mother> Message-ID: All, Titus wrote that he thought folks might be working on gettinf mapserver and C# together. Is there a project, documentation underway for this? If so, I would like to help. I'm too much of a mapserver novice to start such an effort, but I can help with the C# aspect. Thank you, Jacob __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail From sgillies at FRII.COM Thu Sep 30 10:30:13 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 30 Sep 2004 11:30:13 -0600 Subject: loadQuery and freeQuery (Re: SWIG Mapscript) In-Reply-To: Message-ID: On Sep 30, 2004, at 11:13 AM, Ryan, Adam wrote: >> -----Original Message----- >> From: Sean Gillies [mailto:sgillies at frii.com] >> Sent: Thursday, September 30, 2004 9:41 AM >> To: Ryan, Adam >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] SWIG Mapscript >> ... >> You use hobu's mapscript, right? So you are asking for an enhancement >> to mapserver 4.3/4.4? I think a fully functional saveQuery/loadQuery >> is a very reasonable request. Please confirm, and I'll add >> an issue to >> Bugzilla. >> >> cheers, >> Sean >> > > Yes, I'm using hobu's mapscript, and Yes, I confirm! saveQuery is > already > implemented (at least it's working fine on my side) hence my confusion > when > loadQuery was not recognized. If implementing loadQuery is feasible it > would be excellent. Thanks. > > And, since INDEXQUERY is a CGI mode, is exposing (is this the right > verb?) > the queryByIndex method feasible as well? > > And while I'm on a roll, the superior future enhancements as you > mentioned - > perhaps 'getCache' and 'setCache' methods - allowing us to manipulate > the > sets in memory. That would be fantastic, though I suspect it's no > small > task. > > Thanks again, > > Adam > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=921 Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From matthew.bryan.crowley at GMAIL.COM Thu Sep 30 10:29:43 2004 From: matthew.bryan.crowley at GMAIL.COM (Matthew crowley) Date: Thu, 30 Sep 2004 12:29:43 -0500 Subject: Mapserver & Mapinfo files --HELP Message-ID: I'm sure there is something very simple that I am not understanding. Before trying to get all this working on my linux server, I thought I would try the MS4W package from DM solutions to get the hang of things. I have spent two days trying to get a MAPINFO .tab file to display using the tutorial in MapLab. Basically, I just wanted to add another layer using my own source file. OGR works, and I don't get any errors when I use the Preview function. My layer appears in the menu, but I can't see anything displayed on the screen The extra lines from my MAP file are : ----------------------------------------------------------------------------- LAYER NAME "MBBDY" STATUS ON TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab" STYLEITEM "AUTO" CLASS END END ----------------------------------------------------------------------------- and the output from OGRINFO follows: ----------------------------------------------------------------------------- C:\ms4w\tools\ogr-utils>ogrinfo -ro -al c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab INFO: Open of `c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab' using driver `MapInfo File' successful. Layer name: MBBDY Geometry: Polygon Feature Count: 1 Extent: (-102.001400, 48.996530) - (-88.989300, 60.000970) Layer SRS WKT: GEOGCS["unnamed", DATUM["MIF 0", SPHEROID["WGS 84 (MAPINFO Datum 0)",6378137.01,298.257223563], TOWGS84[0,0,0,0,0,0,0]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]] Filename: String (10.0) OGRFeature(MBBDY):1 Filename (String) = MANITOBA Style = BRUSH(fc:#60ff60,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1px . . ------------------------------------------------------------------------------ Is there a parameter missing from my MAP file? From ryangrant at GMAIL.COM Thu Sep 30 10:41:59 2004 From: ryangrant at GMAIL.COM (Ryan Grant) Date: Thu, 30 Sep 2004 10:41:59 -0700 Subject: Is it possible to change the legend template via map_legend_template? Message-ID: In the form I initially submit to load my mapserver interface, if I add this: Mapserver crashes out when it gets to the [legend] section of my template. Can the legend be dynamically set like this? Thanks! Ryan From thomaschesky at YAHOO.COM Thu Sep 30 11:25:14 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Thu, 30 Sep 2004 11:25:14 -0700 Subject: reprojecting WMS layer Message-ID: Hello, I am still having the problem of reprojecting WMS layers into other projection. USGS provides it's Urban color ortho coverage only in epsg:4326 and I would like it to be in either local UTM zone or local state plate. I have wms_srs set and PROJECTION tag set to 4326 at the layer level and output projection set via the cgi interface (a method which works fine with reprojecting shape files) The 2 output image is almost identical. There is a small "rotation" effect visible if I switch back and forth from the 2 images, but when I overlay a shapefile layer on it (which is correctly reprojected) the original projection 4326 creates a nicely overlayed image, while the reprojected one has the WMS and shape layer messed up, they do not correctly overlay. Can I send 2 jpg attachment to the list to demonstrate? The question therefore: is there any known trick with reprojecting WMS raster layer as opposed to locally stored raster and shape layer? Did anybody has this problem before? Help me out on this as I am stucked for weeks already. Here is my mapfile: MAP NAME USGSUrban SHAPEPATH "/usr/local/mapdata/" SIZE 600 400 IMAGETYPE PNG24 IMAGECOLOR 0 0 0 WEB IMAGEPATH /usr/local/httpd/htdocs/tmp/ END LAYER NAME "SanFrancisco01" TYPE RASTER PROJECTION "init=epsg:4326" END STATUS OFF CONNECTION "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap/USGS_EDC_Ortho_133Urban?" CONNECTIONTYPE WMS METADATA "wms_srs" "EPSG:4326" "wms_name" "SanFrancisco01" "wms_server_version" "1.1.0" "wms_formatlist" "image/png,image/jpeg" "wms_format" "image/png" END END END The 2 url which should generate to different projection of the WMS layer is: mapserv?mode=map&map=/usr/local/mapapp/map.map&layer=SanFrancisco01&mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize=600+400&map_projection=init%3Depsg:26910 mapserv?mode=map&map=/usr/local/mapapp/map.map&layer=SanFrancisco01&mapext=-122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize=600+400&map_projection=init%3Depsg:4326 Let me know if anyone has some idea of what's going wrong here. Thanks Thomas --------------------------------- Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Thu Sep 30 15:05:20 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 30 Sep 2004 21:05:20 -0100 Subject: Mapserver & Mapinfo files --HELP {Scanned} In-Reply-To: Message-ID: Hi, I was not able to display MApInfo TABs with STYLEITEM AUTO. I've read in the map file documentation "This is *very* experimental". Try to remove STYLEITEM and add some style to your class e.g. CLASS OUTLINECOLOR 0 0 0 END Bye Zoltan On Thu, 30 Sep 2004, Matthew crowley wrote: > I'm sure there is something very simple that I am not understanding. Before > trying to get all this working on my linux server, I thought I would try the > MS4W package from DM solutions to get the hang of things. > > I have spent two days trying to get a MAPINFO .tab file to display using the > tutorial in MapLab. > > Basically, I just wanted to add another layer using my own source file. OGR > works, and I don't get any errors when I use the Preview function. My layer > appears in the menu, but I can't see anything displayed on the screen > > The extra lines from my MAP file are : > ----------------------------------------------------------------------------- > LAYER > NAME "MBBDY" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab" > STYLEITEM "AUTO" > CLASS > END > END > ----------------------------------------------------------------------------- > and the output from OGRINFO follows: > ----------------------------------------------------------------------------- > C:\ms4w\tools\ogr-utils>ogrinfo -ro -al > c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab > INFO: Open of `c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab' > using driver `MapInfo File' successful. > > Layer name: MBBDY > Geometry: Polygon > Feature Count: 1 > Extent: (-102.001400, 48.996530) - (-88.989300, 60.000970) > Layer SRS WKT: > GEOGCS["unnamed", > DATUM["MIF 0", > SPHEROID["WGS 84 (MAPINFO Datum 0)",6378137.01,298.257223563], > TOWGS84[0,0,0,0,0,0,0]], > PRIMEM["Greenwich",0], > UNIT["degree",0.0174532925199433]] > Filename: String (10.0) > OGRFeature(MBBDY):1 > Filename (String) = MANITOBA > Style = > BRUSH(fc:#60ff60,bc:#ffffff,id:"mapinfo-brush-2.ogr-brush-0");PEN(w:1px . . > ------------------------------------------------------------------------------ > > Is there a parameter missing from my MAP file? > From superbla3000 at GMX.NET Thu Sep 30 12:13:21 2004 From: superbla3000 at GMX.NET (joerg p) Date: Thu, 30 Sep 2004 21:13:21 +0200 Subject: basic question for my project Message-ID: hello, I would love to have round about something like this: A global map, which uses as default background the modis land surface images. I want to be able to zoom to a specific resolution into this map and than I would like to use the landsat etm+ images. So that I can zoom from world resolution (modis) to town resolution (landsat)....... Is this possible? Which projection should I use? Landsat images are in UTM, I tried to reproject them in latlong, but than the quality is much worse. What about performance? I have to tile the modis images. What else? Should I use WMS Server? Which? Any suggestions are really welcome, Joerg From mathieuparent at INFONIE.FR Thu Sep 30 12:39:26 2004 From: mathieuparent at INFONIE.FR (Mathieu Parent) Date: Thu, 30 Sep 2004 21:39:26 +0200 Subject: Musmap 0.6.0 released Message-ID: Musmap is a web mapping interface which has an advanced users/profiles management system and automated tables joins. more info on http://musmap.sourceforge.net/ If you want to test it, download it and read INSTALL file. Please report any bug or feature request at the sourceforge.net project page (http://sourceforge.net/projects/musmap) or contact me. Mathieu Contact me : mathieuparent at users.sourceforge.net From warmerdam at POBOX.COM Thu Sep 30 12:44:34 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Sep 2004 15:44:34 -0400 Subject: photoshop geotiff In-Reply-To: <415C35BE.3010203@gmx.net> Message-ID: joerg p wrote: > One more question (and a lot more in the next post :-) > The datum of the file is completely dropped (WGS84). How do I set it? I > tried: > gdal_translate.exe -a_srs "+datum=WGS84" daten/test.tif > daten/test_transl2.tif > but of course it doesn't work. Joerg, Is the data in a projection or just lat/long? If it is just lat/long you could do: gdal_translate.exe -a_srs "+proj=latlong +datum=WGS84" \ daten/test.tif daten/test_transl2.tif But if it is UTM but now has the wrong datum you will need to set the whole coordinate system properly. You can't just substitute in a new datum with gdal_translate. eg. gdal_translate.exe -a_srs "+proj=utm +zone=11 +datum=WGS84" \ daten/test.tif daten/test_transl2.tif > I think the XML Package tag in question was put in by Photoshop. > How can I give you a sample? The original file has around 220MB... No easy way to cut out a small chunk with the same issue? > Maybe you have also some suggestions for my next post > 'basic questions for my project' Perhaps, if I haven't already missed it. But I see i have a heap of email already accumulated in my "mailing lists" folder so don't hold your breath. :-) 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 Sep 30 12:55:45 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Sep 2004 15:55:45 -0400 Subject: Imagery TileIndex extent errors In-Reply-To: Message-ID: ANDREW WOOLEY wrote: > Folks, > > I am using a raster tileindex that I created using gdaltindex and it > works very well. However, when I draw a portion of the map that the > index does not cover, I get this: > Fatal error: Object expected as argument. in > /var/www/html/bst/map/bstmap.phtml on line 548. Line 548 is the line > before the drawing of the map. > > I don't get an error if I take out the entry in the mapfile for the > tiles or if I turn it off. Andrew, I have reviewed the code related to drawing rasters with a tile index and I can't see any obvious reason why you would be getting this behaviour or the error message you are seeing. Are you in a position to rebuild your MapServer code with extra debugging output? If so, I could provide some extra debug messages that *might* shed some light on things. 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 Sep 30 12:58:56 2004 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 30 Sep 2004 15:58:56 -0400 Subject: Map wrap around?? In-Reply-To: Message-ID: 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 dmorissette at DMSOLUTIONS.CA Thu Sep 30 12:59:44 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 30 Sep 2004 15:59:44 -0400 Subject: Is it possible to change the legend template via map_legend_template? In-Reply-To: <96bb98d904093010414d690217@mail.gmail.com> Message-ID: Ryan Grant wrote: > In the form I initially submit to load my mapserver interface, if I add this: > > > > Mapserver crashes out when it gets to the [legend] section of my > template. Can the legend be dynamically set like this? > I can't see any reason to explain the crash. Perhaps you should test against against 4.3, and if it still crashes then please file a bug with a complete testcase to reproduce the crash. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Thu Sep 30 12:58:18 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 30 Sep 2004 15:58:18 -0400 Subject: Mapserver & Mapinfo files --HELP In-Reply-To: Message-ID: Matthew crowley wrote: > > I have spent two days trying to get a MAPINFO .tab file to display using the > tutorial in MapLab. > > Basically, I just wanted to add another layer using my own source file. OGR > works, and I don't get any errors when I use the Preview function. My layer > appears in the menu, but I can't see anything displayed on the screen > > The extra lines from my MAP file are : > ----------------------------------------------------------------------------- > LAYER > NAME "MBBDY" > STATUS ON > TYPE POLYGON > CONNECTIONTYPE OGR > CONNECTION "c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab" > STYLEITEM "AUTO" > CLASS > END > END > ----------------------------------------------------------------------------- > and the output from OGRINFO follows: > ----------------------------------------------------------------------------- > C:\ms4w\tools\ogr-utils>ogrinfo -ro -al > c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab > INFO: Open of `c:\ms4w\apps\maplab-2.2\tutorial\data\MBBDY.tab' > using driver `MapInfo File' successful. > > Layer name: MBBDY > Geometry: Polygon > Feature Count: 1 > Extent: (-102.001400, 48.996530) - (-88.989300, 60.000970) I think the MapLab tutorial data is in LCC projection, and your data above seems to be in geographic coordinates (lon/lat). You'll need to set a PROJECTION object at the top of your mapfile and in your layer so that MapServer knows that it has to reproject your data to LCC to make it fit on top of the other layers in the map. If the tutorial uses the data that I think it does, then at the top-level in your mapfile you should use: PROJECTION "init=epsg:42304" # Canada LCC END and your MapInfo layer should use: PROJECTION "init=epsg:4326" # Geographic, WGS84 END Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Thu Sep 30 13:08:30 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 30 Sep 2004 16:08:30 -0400 Subject: reprojecting WMS layer In-Reply-To: <20040930182514.14763.qmail@web54203.mail.yahoo.com> Message-ID: Thomas Chesky wrote: > > I have wms_srs set and PROJECTION tag set to 4326 at the layer level and > output projection set via the cgi interface (a method which works fine > with reprojecting shape files) The 2 output image is almost identical. > There is a small "rotation" effect visible if I switch back and forth > from the 2 images, but when I overlay a shapefile layer on it (which is > correctly reprojected) the original projection 4326 creates a nicely > overlayed image, while the reprojected one has the WMS and shape layer > messed up, they do not correctly overlay. > What you describe here is the right way to reproject WMS layers, and the fact that you see a small rotation effect in the WMS layers when you switch projections confirms that MapServer in indeed trying to reproject it. The only thing I could think of is that perhaps your shapefile is not in the projection you think it is. Maybe a different datum, or something like that? Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From ryangrant at GMAIL.COM Thu Sep 30 13:11:41 2004 From: ryangrant at GMAIL.COM (Ryan Grant) Date: Thu, 30 Sep 2004 13:11:41 -0700 Subject: Is it possible to change the legend template via map_legend_template? In-Reply-To: <415C65B0.7030609@dmsolutions.ca> Message-ID: Turns out it was a stupid coding mistake.. It now works as expected. Thanks! On Thu, 30 Sep 2004 15:59:44 -0400, Daniel Morissette wrote: > > > Ryan Grant wrote: > > In the form I initially submit to load my mapserver interface, if I add this: > > > > > > > > Mapserver crashes out when it gets to the [legend] section of my > > template. Can the legend be dynamically set like this? > > > > I can't see any reason to explain the crash. Perhaps you should test > against against 4.3, and if it still crashes then please file a bug with > a complete testcase to reproduce the crash. > > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > From dmorissette at DMSOLUTIONS.CA Thu Sep 30 13:32:17 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 30 Sep 2004 16:32:17 -0400 Subject: [shpxy] In-Reply-To: <20040929090021.64819.qmail@web11410.mail.yahoo.com> Message-ID: Mario H. Basa wrote: > > Does anybody know where I can get more info on [shpxy] > and other new template tags of 4.2. I can't seem to > find any in the documentation. > I found the following in the Wiki http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?ShpxyDocumentation BTW, I have filed a bug to have this added to the main template reference: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=922 Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Thu Sep 30 13:39:48 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 30 Sep 2004 16:39:48 -0400 Subject: Problems with Positioning Names from MapInfo TAB file In-Reply-To: Message-ID: Bob Bruce wrote: > Hi: > I am trying to use a TAB file that has names positioned on blockfaces. > In the MapInfo ProViewer (a free viewer from MapInfo) I can view the file > and see the street annotation positioned at the various angles that they run > along the streets. But when I try and display this in MapServer I only get > them positioned horizontally. I tried using the LABEL object but it wouldn't > display them at all so I reverted to the STYLEITEM "AUTO" command and it put > the labels out but only horizontally. > You get the right labels but they show up horizontally? That sounds very much like a bitmap font is being used instead of a TTF. As documented in the OGR HOWTO, OGR's STYLEITEM AUTO follows the following rules to chose the font to use for a label: ----- 1. If TTF fonts are supported: a. If the native font name (e.g. "Arial") is found in your fontset then this font will be used. b. If 1a. failed and a font called "default" is present in your fontset then this "default" font will be used. 2. If TTF fonts are not supported or if all above cases failed, then BITMAP MEDIUM font will be used. ----- So it seems that you may be falling in the "BITMAP MEDIUM" case above. Looking at the OGRINFO output that you sent, it seems that your labels use font "Arial", so try defining an Arial font in your fontset. You might also want to define a "default" font in your fontset in case some labels use a different font from Arial. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Thu Sep 30 13:55:05 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 30 Sep 2004 16:55:05 -0400 Subject: WFS Server Layer Aggregation In-Reply-To: Message-ID: David Fawcett wrote: > > To those of you who added WFS support to MapServer. > > In a MapServer WFS Server instance, is it possible to build a Map file > in a way that you aggregate many local data layers into one layer that > can be requested from a WFS Client? > > I realize that you could do this with one or more tileindex's if your > domain of layers was static, however, I am thinking of situations where > a dynamic mapfile is used. > You mean presenting a group of individual layers as a single feature type in the WFS capabilities? There is no way to do that at the moment, and that would be a complicated one to deal with. WFS assumes that all features in a given layer (layer=FeatureType) share the same schema and MapServer needs to be able to produce that schema on the fly in response to (DescribeFeatureType). The GML output of a GetFeature also needs to follow that common schema for all features in the response. If you allow grouping of layers, then it's hard to enforce the requirement for a common schema between layers. I think the best way to go is still the tileindex. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From bob.basques at CI.STPAUL.MN.US Thu Sep 30 14:05:06 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Thu, 30 Sep 2004 16:05:06 -0500 Subject: imgbox (what needs to be sent with ? Message-ID: 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 From armin.burger at GMX.NET Thu Sep 30 14:01:32 2004 From: armin.burger at GMX.NET (Armin Burger) Date: Thu, 30 Sep 2004 23:01:32 +0200 Subject: reprojecting WMS layer Message-ID: Thomas, I got the impression that reprojecting WMS layers works well when the new projection is not too different from the original of the WMS server, e.g. re-projecting from a Gauss-Krueger to UTM. But I tried it once with reprojecting a WMS layer from lat/lon (epsg 4326) to a lambert azimuthal equal area projection of the map and the results were bad, especailly for low zoom level, like continental view. In fact the two projections are very different and the lat/lon layer had to be very much distorted for that. It got better the more you zoomed in. It might be a very simplistic view but maybe there are not enough pixels left after the image is fetched from WMS server to stretch and bend the image so much to the new projection. Armin > Hello, > I am still having the problem of reprojecting WMS layers into other > projection. > USGS provides it's Urban color ortho coverage only in epsg:4326 and I would > like it to be in either local UTM zone or local state plate. > I have wms_srs set and PROJECTION tag set to 4326 at the layer level and > output projection set via the cgi interface (a method which works fine with > reprojecting shape files) The 2 output image is almost identical. There is a > small "rotation" effect visible if I switch back and forth from the 2 > images, but when I overlay a shapefile layer on it (which is correctly > reprojected) the original projection 4326 creates a nicely overlayed image, > while the reprojected one has the WMS and shape layer messed up, they do not > correctly overlay. > Can I send 2 jpg attachment to the list to demonstrate? > The question therefore: is there any known trick with reprojecting WMS > raster layer as opposed to locally stored raster and shape layer? Did > anybody has this problem before? > Help me out on this as I am stucked for weeks already. > Here is my mapfile: > MAP > NAME USGSUrban > SHAPEPATH "/usr/local/mapdata/" > SIZE 600 400 > IMAGETYPE PNG24 > IMAGECOLOR 0 0 0 > WEB > IMAGEPATH /usr/local/httpd/htdocs/tmp/ > END > LAYER > NAME "SanFrancisco01" > TYPE RASTER > PROJECTION > "init=epsg:4326" > END > STATUS OFF > CONNECTION "http://gisdata.usgs.net:80/servlet/com.esri.wms.Esrimap/USGS_E > DC_Ortho_133Urban?" > CONNECTIONTYPE WMS > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "SanFrancisco01" > "wms_server_version" "1.1.0" > "wms_formatlist" "image/png,image/jpeg" > "wms_format" "image/png" > END > END > END > The 2 url which should generate to different projection of the WMS layer is: > mapserv?mode=map&map=/usr/local/mapapp/map.map&layer=SanFrancisco01&mapext=- > 122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize > =600+400&map_projection=init%3Depsg:26910 > mapserv?mode=map&map=/usr/local/mapapp/map.map&layer=SanFrancisco01&mapext=- > 122.226813776775+37.4764381661621+-122.213167520107+37.4835588561656&mapsize > =600+400&map_projection=init%3Depsg:4326 > Let me know if anyone has some idea of what's going wrong here. > Thanks > Thomas > --------------------------------- > Do you Yahoo!? > Express yourself with Y! Messenger! Free. Download now. From ARyan at CO.LINN.OR.US Thu Sep 30 14:07:10 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Thu, 30 Sep 2004 14:07:10 -0700 Subject: CGI QUERY & NQUERY -vs- mapscript queryByRect & queryByShape Message-ID: 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 From dmorissette at DMSOLUTIONS.CA Thu Sep 30 14:14:35 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Thu, 30 Sep 2004 17:14:35 -0400 Subject: underline labels In-Reply-To: Message-ID: Flavio Hendry wrote: > hi all > > as far as I see there is no way to underline labels. or did I miss > something ? Is it planned ? > Short answer: I'm not aware of any way to underline labels at the moment, and of any plan to add that. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From woodbri at SWOODBRIDGE.COM Thu Sep 30 14:29:13 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 30 Sep 2004 17:29:13 -0400 Subject: underline labels In-Reply-To: <415C773B.2010900@dmsolutions.ca> Message-ID: You might be able achieve this by using or creating an underlined TTF and then using that. I think there are some font editing programs that would allow you to open and existing font and add the underline to the characters and save it as a new font, but others probably know more about that than me. -Steve W. Daniel Morissette wrote: > Flavio Hendry wrote: > >> hi all >> >> as far as I see there is no way to underline labels. or did I miss >> something ? Is it planned ? >> > > Short answer: I'm not aware of any way to underline labels at the > moment, and of any plan to add that. > > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > From guyincognito at GMAIL.COM Thu Sep 30 15:56:00 2004 From: guyincognito at GMAIL.COM (Chris TheMapserverNewby) Date: Thu, 30 Sep 2004 17:56:00 -0500 Subject: problem with Nad27 and NaD83 datum shift Message-ID: I am trying to project NAD27 data to NAD83. I have downloaded the PROJ files with NAD27/83 datum shift included and followed the directions as detailed on the MapServer Wiki ProjHowTo (http://mapserver.gis.umn.edu/cgi- bin/wiki.pl?WindowProjHowTo). But, the data is not reprojecting. I have created a test map file and data sets (see bellow) to try to isolate the issue...but to no avail. When I set the Map projection to NAD27(4267) the NAD83 does not show up at all...and vice-versa. Am I doing something wrong? Is their another test I can run? thanks, chris MAP IMAGETYPE PNG EXTENT -118.29 33.70 -118.28 33.71 SIZE 700 600 SHAPEPATH "data" IMAGECOLOR 255 255 255 WEB IMAGEPATH "c:/temp/img_tmp/" IMAGEURL "/img_tmp/" END PROJECTION "init=epsg:4269" END # LAYER LAYER # States polygon NAD27 NAME states27 DATA nad27states STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4267" END CLASS COLOR 100 232 232 OUTLINECOLOR 32 32 32 END END # End of LAYER # Start of LAYER LAYER # States polygon NAD83 NAME states83 DATA nad83states STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASS COLOR 177 132 200 OUTLINECOLOR 90 90 90 END END # End of LAYER END # end of map From covariance at SHAW.CA Thu Sep 30 17:30:48 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Thu, 30 Sep 2004 19:30:48 -0500 Subject: Problems with Positioning Names from MapInfo TAB file Message-ID: Thanks a million Daniel! Putting a font definition in my map file worked like a charm and the street names are being nicely positioned now. You can see the results at: http://www.hwps.ca/MapserverTutorial/StBonifaceStVital/s2/StBonifaceVital_ex1.html so all that I did was to insert the following line into my map file: FONTSET "c:/winnt/fonts/fonts.list" right after the map image size was specified. Bob Bruce From gis at UNDPHAIS.ORG.NP Thu Sep 30 21:50:33 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Fri, 1 Oct 2004 10:35:33 +0545 Subject: Shapefile questions Message-ID: 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 -- 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 ottacher at MULTIMEDIAPLAN.AT Thu Sep 30 23:56:43 2004 From: ottacher at MULTIMEDIAPLAN.AT (Christiane Ottacher (MULTIMEDIAPLAN.AT)) Date: Fri, 1 Oct 2004 08:56:43 +0200 Subject: problems with the demoversion for mapserver 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 anyone help me and tell me what I did wrong or what the problem is? Thanks, Christiane From norbert.thieme at ILMENAU.BAW.DE Wed Sep 29 00:30:45 2004 From: norbert.thieme at ILMENAU.BAW.DE (Norbert Thieme) Date: Wed, 29 Sep 2004 09:30:45 +0200 Subject: Help with shape files - extent and projection In-Reply-To: <20040928122640.81458.qmail@web53809.mail.yahoo.com> Message-ID: Pablo Toapanta schrieb: >Hi again > >I?ve tried everything to obtain a map file that works >with my shape files but I?ve not obtained what I need. > >I think that is the projection and the correct size of >the image. Could anybody tell me if there is a way to >know the correct projection and image size for a shape >file?? > >Thanks > > > > >__________________________________ >Do you Yahoo!? >New and Improved Yahoo! Mail - 100MB free storage! >http://promotions.yahoo.com/new_mail > > > > Pablo, you can use ogrinfo on the shapefile to get the extent. With that extent in your mapfile it should be possible to show the first image. Simply leave all projection definitions out. You can do that for data which has the same projection. So if you use one shapefile you don't have any problem. The projection gets important when you want to use different projected datasets or have a changing projection for the map (e.g. WMS). For projections it is important that you know your data and you should know the projection for providing a map service: - ask your dataprovider - sometimes you have additional information like a .prj file for shapefiles or some other metadata like text or html files - mostly data is in a popular coordinate system so you can often look at the coordinates (if you are familiar with different projections) and guess / try The imagesize is only important for the outputed image so you can set that to whatever size fits your site or application. Regards, Norbert