From sophie.chaveroux at AGRICULTURE.GOUV.FR Tue Feb 1 02:37:16 2005 From: sophie.chaveroux at AGRICULTURE.GOUV.FR (sophie chaveroux) Date: Tue, 1 Feb 2005 11:37:16 +0100 Subject: displace on a map.. Message-ID: First of all i'd like to thanks Jean-Guilhem thanks to who i succeed in resolving my preview problem ...Merci! Now i want to create an internet site and i would like that the customer choose a department and that mapserver display this department...My problem is that i don't know how to say mapserver to move automaticaly on the place the custumer has choice....that's suppose dynamical extents...I suppose it should be done with php-mapscript but i'm beginner in programmation so every advice would be welcome,in fact i don't know how to start.... Thanks... From John.Spotten at CAPETOWN.GOV.ZA Tue Feb 1 02:19:37 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Tue, 1 Feb 2005 12:19:37 +0200 Subject: mapserver4.4.1 binary build Message-ID: Hi All, tried to use binary mapserver with sde support for windows from http://hobu.stat.iastate.edu/mapserver/ but it requires sde90.dll. I only have sde83.dll so I tried to build the basic mapserver using mapserver4.4.1.tar.gz with no changes to nmake.opt file to start of with. required pre-built gd2.0.33 files in c:\projects\gdwin32\ and regex-0.12 files in c:\projects\regex-0.12\ and mapserver base directory is c:\projects\mapserver. all obj files including regex.obj, mapserver_i.lib, mapserver_i.exp and mapserver.lib were created but in the linking the following was produced Creating library mapserver_i.lib and object mapserver_i.exp regex.obj : error LNK2001: unresolved external symbol _printchar libmap.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. any clues. is regex.obj compatible with mapserver 4.4.1 bye john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: -------------- next part -------------- NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- From joseluismapserver at YAHOO.ES Tue Feb 1 03:17:01 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Tue, 1 Feb 2005 12:17:01 +0100 Subject: .map and .tab files In-Reply-To: <018f01c507b0$42295250$020002c0@SHARK> Message-ID: Thank you, very much again, it finally seems to work. I have a question for you: Once I know that it is a Krassovsky ellipsoid, how do you know the exact word to put in the ellps option of the projection. I mean, how did you know you had to put "ellps=krass" and not "ellps=krassov" or "ellps=krassovsky" for example? Where are the possibe values of the parameters of the projection defined? regards Jose Luis Brent Fraser wrote: For a world file description, have a look at: http://lists.umn.edu/cgi-bin/wa?A2=ind0501&L=mapserver-users&P=R31342&I=-3&X=5DD2E75F03DF29CF75 Sorry about the ellps info (it's not Clark 1866). Your tab file shows 1001 as the datum code. From the MapInfo doc, this indicates a datum of Pulkovo 1942, which uses the the Krassovsky ellipsoid. Your PROJECTION object should include the Proj4 keyword of "ellps=krass" Brent ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:52 AM Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files Sorry but I don't undersand what to do in point number 1. How can I do a .tfw file? How does it look like? and respect to point 3: how do you know which is the ellps parameter? Thanks Jose Luis Brent Fraser wrote: Jose Luis, Three possibilities: 1. The tiff might be a plain tiff, not a GeoTiff (with registration info attached as a TIFF tag). Make a .tfw georeferencing "world" file for it using the information in the TAB file 2. You may have your false_easting and false_northing values swapped in the PROJECTION object of your map file. Double check with the CoordSys statement in t he TAB file. 3. No ellipse is given in the PROJECTION object. Add "ellps=clrk66" Since your output projection is the same as your input projection, you could just remove the two PROJECTION objects in your map file. You would stillneed to make a world file for the tiff file. Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:19 AM Subject: [UMN_MAPSERVER-USERS] .map and .tab files Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition T able File "praha.tif" Type "RASTER" (3445375,5560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539 250 3474000 5560000 UNITS METERS PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver /domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif " PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missing anything? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From n_faust at INFORMATIK.UNI-KL.DE Tue Feb 1 03:29:44 2005 From: n_faust at INFORMATIK.UNI-KL.DE (Nicole Faust) Date: Tue, 1 Feb 2005 12:29:44 +0100 Subject: installation problems [was Re: Example Maps] In-Reply-To: <41FE5410.5070209@dmsolutions.ca> Message-ID: Hello, > Did you succeed to compile as a CGI. Nothing is missing in your > configuration. You may want to add > --with-regex=system > But this does not prevent the CGI to compile. The cgi executable is > supposed to be in sapi/cgi/ I added the option --with-regex=system but it is not listed in the options by phpinfo(), strange... It seemed that the compilation was successfull. And I found the cgi executable in the mentioned directory. > if you do a simle test.php page: > dl("php_mapscript_40.so"); > phpinfo(); > ?> > > Does the phpinfo page show the loaded mapscript extension? I made a file named php_test.php4 with the commands shown above. But when I try to execute the php_test.php4 file I got these error messages and afterwards the output of phpinfo(): Notice: Constant MS_TRUE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_FALSE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_ON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_OFF already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_YES already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_NO already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_INCHES already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_FEET already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_MILES already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_METERS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_KILOMETERS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_DD already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_PIXELS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_LINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_RASTER already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_ANNOTATION already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_QUERY already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_CIRCLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LAYER_TILEINDEX already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_DEFAULT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_EMBED already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_DELETE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_TRUETYPE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_BITMAP already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_TINY already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SMALL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_MEDIUM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LARGE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_GIANT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_UL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_UR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_CR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_CL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_UC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_LC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_CC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_AUTO already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_XY already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHAPE_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHAPE_LINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHAPE_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHAPE_NULL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_ARC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_MULTIPOINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_POINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_ARCM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_POLYGONM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHP_MULTIPOINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_ARC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_MULTIPOINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_POINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_ARCM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_POLYGONM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant SHP_MULTIPOINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SINGLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_MULTIPLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_INLINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHAPEFILE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_TILED_SHAPEFILE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SDE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_OGR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_POSTGIS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_MYGIS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_WMS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_WFS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_ORACLESPATIAL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_GRATICULE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_NORMAL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_HILITE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SELECTED already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SUCCESS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_FAILURE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_DONE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_NOERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_IOERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_MEMERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_TYPEERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SYMERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_REGEXERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_TTFERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_DBFERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_GDERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_IDENTERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_EOFERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_PROJERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_MISCERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_CGIERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_WEBERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_IMGERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_HASHERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_JOINERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_NOTFOUND already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SHPERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_PARSEERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SDEERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_OGRERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_QUERYERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_WMSERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_WMSCONNERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_ORACLESPATIALERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_WFSERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_WFSCONNERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_MAPCONTEXTERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_HTTPERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SYMBOL_SIMPLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SYMBOL_VECTOR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SYMBOL_ELLIPSE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SYMBOL_PIXMAP already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SYMBOL_TRUETYPE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Notice: Constant MS_SYMBOL_CARTOLINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_getversion in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newmapobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newlayerobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newclassobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newpointobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newlineobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newshapeobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newshapefileobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newrectobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_getcwd in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_getpid in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_getscale in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newprojectionobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_tokenizemap in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newstyleobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newgridobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_geterrorobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_reseterrorlist in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: Function registration failed - duplicate name - ms_newsymbolobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2 Warning: MapScript: Unable to register functions, unable to load in Unknown on line 0 (I added the .html file, so you can take a look at it.) In the MapScript section this can be found: MapServer Version MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $) Regards, Nicole -------------- next part --------------
Notice: Constant MS_TRUE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_FALSE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_ON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_OFF already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_YES already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_NO already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_INCHES already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_FEET already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_MILES already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_METERS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_KILOMETERS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_DD already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_PIXELS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_LINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_RASTER already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_ANNOTATION already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_QUERY already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_CIRCLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LAYER_TILEINDEX already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_DEFAULT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_EMBED already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_DELETE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_TRUETYPE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_BITMAP already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_TINY already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SMALL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_MEDIUM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LARGE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_GIANT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_UL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_UR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_CR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_CL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_UC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_LC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_CC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_AUTO already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_XY already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHAPE_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHAPE_LINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHAPE_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHAPE_NULL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_ARC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_MULTIPOINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_POINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_ARCM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_POLYGONM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHP_MULTIPOINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_POINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_ARC already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_POLYGON already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_MULTIPOINT already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_POINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_ARCM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_POLYGONM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant SHP_MULTIPOINTM already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SINGLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_MULTIPLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_INLINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHAPEFILE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_TILED_SHAPEFILE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SDE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_OGR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_POSTGIS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_MYGIS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_WMS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_WFS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_ORACLESPATIAL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_GRATICULE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_NORMAL already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_HILITE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SELECTED already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SUCCESS already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_FAILURE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_DONE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_NOERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_IOERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_MEMERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_TYPEERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SYMERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_REGEXERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_TTFERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_DBFERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_GDERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_IDENTERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_EOFERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_PROJERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_MISCERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_CGIERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_WEBERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_IMGERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_HASHERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_JOINERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_NOTFOUND already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SHPERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_PARSEERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SDEERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_OGRERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_QUERYERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_WMSERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_WMSCONNERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_ORACLESPATIALERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_WFSERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_WFSCONNERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_MAPCONTEXTERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_HTTPERR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SYMBOL_SIMPLE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SYMBOL_VECTOR already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SYMBOL_ELLIPSE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SYMBOL_PIXMAP already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SYMBOL_TRUETYPE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Notice: Constant MS_SYMBOL_CARTOLINE already defined in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_getversion in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newmapobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newlayerobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newclassobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newpointobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newlineobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newshapeobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newshapefileobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newrectobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_getcwd in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_getpid in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_getscale in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newprojectionobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_tokenizemap in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newstyleobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newgridobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_geterrorobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_reseterrorlist in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: Function registration failed - duplicate name - ms_newsymbolobj in /home/n_faust/software/projekt/htdocs/php_test.php4 on line 2

Warning: MapScript: Unable to register functions, unable to load in Unknown on line 0
phpinfo()
PHP Logo

PHP Version 4.3.10


System Linux rockster 2.6.8-24.11-smp #1 SMP Fri Jan 14 13:01:26 UTC 2005 i686
Build Date Jan 24 2005 11:02:53
Configure Command './configure' '--with-gd=/home/n_faust/software/projekt' '--with-pgsql=/home/n_faust/software/projekt' '--enable-force-cgi-redirect' '--enable-fastcgi' '--prefix=/home/n_faust/software/projekt'
Server API CGI/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /home/n_faust/software/projekt/lib/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies


PHP Credits


Configuration

PHP Core

DirectiveLocal ValueMaster Value
allow_call_time_pass_referenceOnOn
allow_url_fopenOnOn
always_populate_raw_post_dataOffOff
arg_separator.input&&
arg_separator.output&&
asp_tagsOffOff
auto_append_fileno valueno value
auto_prepend_fileno valueno value
browscapno valueno value
default_charsetno valueno value
default_mimetypetext/htmltext/html
define_syslog_variablesOffOff
disable_classesno valueno value
disable_functionsno valueno value
display_errorsOnOn
display_startup_errorsOnOn
doc_root/home/n_faust/software/projekt/htdocs/home/n_faust/software/projekt/htdocs
docref_extno valueno value
docref_rootno valueno value
enable_dlOnOn
error_append_stringno valueno value
error_logno valueno value
error_prepend_stringno valueno value
error_reporting20472047
expose_phpOnOn
extension_dir/home/n_faust/software/projekt/lib/php/home/n_faust/software/projekt/lib/php
file_uploadsOnOn
gpc_orderGPCGPC
highlight.bg#FFFFFF#FFFFFF
highlight.comment#FF8000#FF8000
highlight.default#0000BB#0000BB
highlight.html#000000#000000
highlight.keyword#007700#007700
highlight.string#DD0000#DD0000
html_errorsOnOn
ignore_repeated_errorsOffOff
ignore_repeated_sourceOffOff
ignore_user_abortOffOff
implicit_flushOffOff
include_path.:/home/n_faust/software/projekt/lib/php.:/home/n_faust/software/projekt/lib/php
log_errorsOffOff
log_errors_max_len10241024
magic_quotes_gpcOnOn
magic_quotes_runtimeOffOff
magic_quotes_sybaseOffOff
max_execution_time3030
max_input_time6060
open_basedirno valueno value
output_bufferingno valueno value
output_handlerno valueno value
post_max_size8M8M
precision1212
register_argc_argvOnOn
register_globalsOnOn
report_memleaksOnOn
safe_modeOffOff
safe_mode_exec_dirno valueno value
safe_mode_gidOffOff
safe_mode_include_dirno valueno value
sendmail_fromno valueno value
sendmail_path/usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision100100
short_open_tagOnOn
SMTPlocalhostlocalhost
smtp_port2525
sql.safe_modeOffOff
track_errorsOffOff
unserialize_callback_funcno valueno value
upload_max_filesize20M20M
upload_tmp_dir/home/n_faust//home/n_faust/
user_dirno valueno value
variables_orderEGPCSEGPCS
xmlrpc_error_number00
xmlrpc_errorsOffOff
y2k_complianceOnOn

MapScript

MapServer Version MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
PHP MapScript Version ($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $)

ctype

ctype functions enabled

gd

GD Support enabled
GD Version 2.0 or higher
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled

mysql

MySQL Supportenabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.49
MYSQL_MODULE_TYPE builtin
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE no value
MYSQL_LIBS no value

DirectiveLocal ValueMaster Value
mysql.allow_persistentOnOn
mysql.connect_timeout6060
mysql.default_hostno valueno value
mysql.default_passwordno valueno value
mysql.default_portno valueno value
mysql.default_socketno valueno value
mysql.default_userno valueno value
mysql.max_linksUnlimitedUnlimited
mysql.max_persistentUnlimitedUnlimited
mysql.trace_modeOffOff

overload

User-Space Object Overloading Support enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003

pgsql

PostgreSQL Supportenabled
PostgreSQL(libpq) Version 7.4.5
Multibyte character support enabled
SSL support disabled
Active Persistent Links 0
Active Links 0

DirectiveLocal ValueMaster Value
pgsql.allow_persistentOnOn
pgsql.auto_reset_persistentOffOff
pgsql.ignore_noticeOffOff
pgsql.log_noticeOffOff
pgsql.max_linksUnlimitedUnlimited
pgsql.max_persistentUnlimitedUnlimited

posix

Revision $Revision: 1.51.2.2 $

session

Session Support enabled
Registered save handlers files user

DirectiveLocal ValueMaster Value
session.auto_startOffOff
session.bug_compat_42OnOn
session.bug_compat_warnOnOn
session.cache_expire180180
session.cache_limiternocachenocache
session.cookie_domainno valueno value
session.cookie_lifetime00
session.cookie_path//
session.cookie_secureOffOff
session.entropy_fileno valueno value
session.entropy_length00
session.gc_divisor100100
session.gc_maxlifetime14401440
session.gc_probability11
session.namePHPSESSIDPHPSESSID
session.referer_checkno valueno value
session.save_handlerfilesfiles
session.save_path/tmp/tmp
session.serialize_handlerphpphp
session.use_cookiesOnOn
session.use_only_cookiesOffOff
session.use_trans_sidOffOff

standard

Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i

DirectiveLocal ValueMaster Value
assert.active11
assert.bail00
assert.callbackno valueno value
assert.quiet_eval00
assert.warning11
auto_detect_line_endings00
default_socket_timeout6060
safe_mode_allowed_env_varsPHP_PHP_
safe_mode_protected_env_varsLD_LIBRARY_PATHLD_LIBRARY_PATH
url_rewriter.tagsa=href,area=href,frame=src,input=src,form=,fieldset=a=href,area=href,frame=src,input=src,form=,fieldset=
user_agentno valueno value

tokenizer

Tokenizer Support enabled

xml

XML Support active
XML Namespace Support active
EXPAT Version 1.95.6

Additional Modules

Module Name

Environment

VariableValue
REDIRECT_STATUS 200
LD_LIBRARY_PATH /home/n_faust/software/projekt/lib
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_ACCEPT_LANGUAGE de
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
HTTP_HOST rockster.informatik.uni-kl.de:8081
HTTP_CONNECTION Keep-Alive
PATH /opt/kde3/bin:/opt/gnome/bin:/usr/games:/usr/bin/X11:/usr/bin:/bin:/usr/local/bin:/home/n_faust/software/postgresql-7.4.5/bin:/opt2/jdk-1.4/bin:.
SERVER_SIGNATURE <address>Apache/2.0.52 (Unix) Server at rockster.informatik.uni-kl.de Port 8081</address>
SERVER_SOFTWARE Apache/2.0.52 (Unix)
SERVER_NAME rockster.informatik.uni-kl.de
SERVER_ADDR 131.246.103.120
SERVER_PORT 8081
REMOTE_ADDR 217.185.157.195
DOCUMENT_ROOT /home/n_faust/software/projekt/htdocs
SERVER_ADMIN n_faust at informatik.uni-kl.de
SCRIPT_FILENAME /home/n_faust/software/projekt/cgi-bin/php
REMOTE_PORT 1141
REDIRECT_URL /php_test.php4
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /php_test.php4
SCRIPT_NAME /cgi-bin/php
PATH_INFO /php_test.php4
PATH_TRANSLATED /home/n_faust/software/projekt/htdocs/php_test.php4

PHP Variables

VariableValue
PHP_SELF /php_test.php4
_SERVER["REDIRECT_STATUS"]200
_SERVER["LD_LIBRARY_PATH"]/home/n_faust/software/projekt/lib
_SERVER["HTTP_ACCEPT"]image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
_SERVER["HTTP_ACCEPT_LANGUAGE"]de
_SERVER["HTTP_ACCEPT_ENCODING"]gzip, deflate
_SERVER["HTTP_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
_SERVER["HTTP_HOST"]rockster.informatik.uni-kl.de:8081
_SERVER["HTTP_CONNECTION"]Keep-Alive
_SERVER["PATH"]/opt/kde3/bin:/opt/gnome/bin:/usr/games:/usr/bin/X11:/usr/bin:/bin:/usr/local/bin:/home/n_faust/software/postgresql-7.4.5/bin:/opt2/jdk-1.4/bin:.
_SERVER["SERVER_SIGNATURE"]<address>Apache/2.0.52 (Unix) Server at rockster.informatik.uni-kl.de Port 8081</address>
_SERVER["SERVER_SOFTWARE"]Apache/2.0.52 (Unix)
_SERVER["SERVER_NAME"]rockster.informatik.uni-kl.de
_SERVER["SERVER_ADDR"]131.246.103.120
_SERVER["SERVER_PORT"]8081
_SERVER["REMOTE_ADDR"]217.185.157.195
_SERVER["DOCUMENT_ROOT"]/home/n_faust/software/projekt/htdocs
_SERVER["SERVER_ADMIN"]n_faust at informatik.uni-kl.de
_SERVER["SCRIPT_FILENAME"]/home/n_faust/software/projekt/cgi-bin/php
_SERVER["REMOTE_PORT"]1141
_SERVER["REDIRECT_URL"]/php_test.php4
_SERVER["GATEWAY_INTERFACE"]CGI/1.1
_SERVER["SERVER_PROTOCOL"]HTTP/1.1
_SERVER["REQUEST_METHOD"]GET
_SERVER["QUERY_STRING"]no value
_SERVER["REQUEST_URI"]/php_test.php4
_SERVER["SCRIPT_NAME"]/cgi-bin/php
_SERVER["PATH_INFO"]/php_test.php4
_SERVER["PATH_TRANSLATED"]/home/n_faust/software/projekt/htdocs/php_test.php4
_SERVER["PHP_SELF"]/php_test.php4
_SERVER["argv"]
Array
(
)
_SERVER["argc"]0
_ENV["REDIRECT_STATUS"]200
_ENV["LD_LIBRARY_PATH"]/home/n_faust/software/projekt/lib
_ENV["HTTP_ACCEPT"]image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
_ENV["HTTP_ACCEPT_LANGUAGE"]de
_ENV["HTTP_ACCEPT_ENCODING"]gzip, deflate
_ENV["HTTP_USER_AGENT"]Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
_ENV["HTTP_HOST"]rockster.informatik.uni-kl.de:8081
_ENV["HTTP_CONNECTION"]Keep-Alive
_ENV["PATH"]/opt/kde3/bin:/opt/gnome/bin:/usr/games:/usr/bin/X11:/usr/bin:/bin:/usr/local/bin:/home/n_faust/software/postgresql-7.4.5/bin:/opt2/jdk-1.4/bin:.
_ENV["SERVER_SIGNATURE"]<address>Apache/2.0.52 (Unix) Server at rockster.informatik.uni-kl.de Port 8081</address>
_ENV["SERVER_SOFTWARE"]Apache/2.0.52 (Unix)
_ENV["SERVER_NAME"]rockster.informatik.uni-kl.de
_ENV["SERVER_ADDR"]131.246.103.120
_ENV["SERVER_PORT"]8081
_ENV["REMOTE_ADDR"]217.185.157.195
_ENV["DOCUMENT_ROOT"]/home/n_faust/software/projekt/htdocs
_ENV["SERVER_ADMIN"]n_faust at informatik.uni-kl.de
_ENV["SCRIPT_FILENAME"]/home/n_faust/software/projekt/cgi-bin/php
_ENV["REMOTE_PORT"]1141
_ENV["REDIRECT_URL"]/php_test.php4
_ENV["GATEWAY_INTERFACE"]CGI/1.1
_ENV["SERVER_PROTOCOL"]HTTP/1.1
_ENV["REQUEST_METHOD"]GET
_ENV["QUERY_STRING"]no value
_ENV["REQUEST_URI"]/php_test.php4
_ENV["SCRIPT_NAME"]/cgi-bin/php
_ENV["PATH_INFO"]/php_test.php4
_ENV["PATH_TRANSLATED"]/home/n_faust/software/projekt/htdocs/php_test.php4

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license at php.net.


From siki at AGT.BME.HU Tue Feb 1 06:01:36 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 1 Feb 2005 13:01:36 -0100 Subject: displace on a map.. {Scanned} In-Reply-To: <41FF5BDC.7020601@agriculture.gouv.fr> Message-ID: Hi, You can move the map easily using cgi variables of mapserver. If you have limited number of point of interest you can create a list of them, and some hidden input form field for mapext, imgext, scale, etc. Finally you should write a javascript to handle if the selection has changed in the point of interest list and set up the cgi variables and submit the form. Bye Zoltan On Tue, 1 Feb 2005, sophie chaveroux wrote: > First of all i'd like to thanks Jean-Guilhem thanks to who i succeed in > resolving my preview problem ...Merci! > > Now i want to create an internet site and i would like that the customer > choose a department and that mapserver display this department...My > problem is that i don't know how to say mapserver to move automaticaly > on the place the custumer has choice....that's suppose dynamical > extents...I suppose it should be done with php-mapscript but i'm > beginner in programmation so every advice would be welcome,in fact i > don't know how to start.... Thanks... > From nhv at CAPE.COM Tue Feb 1 04:42:23 2005 From: nhv at CAPE.COM (Norman Vine) Date: Tue, 1 Feb 2005 07:42:23 -0500 Subject: .map and .tab files In-Reply-To: <20050201111702.83014.qmail@web26403.mail.ukl.yahoo.com> Message-ID: Jose Luis Gonzalez writes: > > Once I know that it is a Krassovsky ellipsoid, how do you know the exact word to put in the ellps option of the projection. > I mean, how did you know you had to put "ellps=krass" and not "ellps=krassov" or "ellps=krassovsky" for example? > Where are the possibe values of the parameters of the projection defined? To list the ellipsoids that proj knows about % proj -le HTH Norman From Tom.Kralidis at EC.GC.CA Tue Feb 1 04:48:55 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 1 Feb 2005 07:48:55 -0500 Subject: Can't see data Message-ID: I still can't see much. I did try changing the DATA def to: DATA "the_geom FROM service_endpoints" # i.e. FROM instead of from ..and got back a couple of observations: 1./ Doing a DescribeFeatureType returns nothing from the table 2./ Doing a WMS GetMap gets a service exception which says: msDrawMap(): Image handling error. Failed to draw layer named 'service_endpoints'. prep_DB(): Query error. Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT asbinary(force_collection(force_2d()),'NDR'),OID::text from WHERE && setSRID('BOX3D(-179.678571459515 -112.299107162197,179.678571459515 112.299107162197)'::BOX3D, find_srid('','','') )'

Postgresql reports the error as 'ERROR: syntax error at or near "WHERE" at character 104 '

More Help:

Error with POSTGIS data variable. You specified '<check your .map file>'.
Standard ways of specifiying are :
(1) 'geometry_column from geometry_table'
(2) 'geometry_column from (<sub query>) as foo using unique <column name> using SRID=<srid#>'

Make sure you put in the 'using unique <column name>' and 'using SRID=#' clauses in.

For more help, please see http://postgis.refractions.net/documentation.php

Mappostgis.c - version of Jan 23/2004. msPOSTGISLayerParseData(): Query error. Error parsing POSTGIS data variable. Must contain 'geometry_column from table_name' or 'geom from (subselect) as foo' (couldnt find ' from '). More help:

Error with POSTGIS data variable. You specified 'the_geom FROM service_endpoints'.
Standard ways of specifiying are :
(1) 'geometry_column from geometry_table'
(2) 'geometry_column from (<sub query>) as foo using unique <column name> using SRID=<srid#>'

Make sure you put in the 'using unique <column name>' and 'using SRID=#' clauses in.

For more help, please see http://postgis.refractions.net/documentation.php

Mappostgis.c - version of Jan 23/2004.
Oh, BTW, I'm using MapServer CVS on a fedora box and postgis-1.0.0rc2. I was worrying that this ..Tom > -----Original Message----- > From: Paul Ramsey [mailto:pramsey at refractions.net] > Sent: Monday, 31 January, 2005 16:16 > To: Kralidis,Tom [Burlington] > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Can't see data > > > Any change your bbox is not in fact over your data? > (projection, etc?) > Turn on DEBUG and see what the SQL being generated is. Put it > into psql > and see what you get. > > Paul > > Kralidis,Tom [Burlington] wrote: > > > (I wasn't sure which list to post to [mapserver-users | > > postgis-users], so I try this one first) > > > > Hi, > > > > I have (I think) successfully loaded data into PostGIS and > am trying > > to access it via MapServer WMS / WFS. > > > > I verified that the data in the PostGIS instance is okay by running > > pgsql2shp and testing the output shapefile. Except for > truncated col > > names, all is well. > > > > Here's my mapfile chunk: > > > > # mapfile chunk: > > > > NAME "service_endpoints" > > CONNECTIONTYPE postgis > > CONNECTION "user=postgres dbname=devgeodb" > > DATA "the_geom from service_endpoints" > > > > In WMS, when I run a GetCapabilities on the server, all is fine. > > > > In WMS, when I run a GetMap on the server, I get a blank map back. > > > > In WFS, when I run a GetCapabilities on the server, all is fine. > > > > In WFS, when I run a DescribeFeatureType on the server, all > is fine. > > You can see the table just fine. > > > > In WFS, when I run a GetFeature on the server, I get a blank result > > set > > back: > > > > xsi:schemaLocation="http://www.opengis.net/wfs > > http://schemas.opengeospatial.net/wfs/1.0.0/WFS-basic.xsd > > http://www.ec.gc.ca/eccat > > > http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?SERVICE=WFS&VERSION=1.0.0& > > RE > > QUEST=DescribeFeatureType&TYPENAME=service_endpoints"> > > > > missing > > > > > > > > Any hints as to what's going on? If MapServer wasn't connecting to > > PostGIS correctly, then the WFS DescribeFeatureType request > wouldn't > > be able to read the table. > > > > ..Tom > > From neelima91 at YAHOO.CO.IN Tue Feb 1 05:06:17 2005 From: neelima91 at YAHOO.CO.IN (neelima) Date: Tue, 1 Feb 2005 05:06:17 -0800 Subject: Not able to display legend in mapfile Message-ID: Hi , Below is the code i have used to display legend in the map file LEGEND OUTLINECOLOR 0 0 0 IMAGECOLOR 255 255 255 POSITION UL KEYSIZE 20 10 KEYSPACING 5 5 LABEL TYPE TRUETYPE FONT Arial SIZE 9 COLOR 0 0 0 END STATUS ON END Can anyone guide me if there is any thing wrong in that code becos i am not able display legend in the mapfile. Or is there anything else which i should add to the above. Wishing for a soon reply becos previously a week back i have posted a question regarding text object but i did not get any reply. thank u bye Neelima --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at GOMOOS.ORG Tue Feb 1 05:24:54 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 1 Feb 2005 08:24:54 -0500 Subject: MapScript lineObj to create a Point? In-Reply-To: <200501312113.08710.tylermitchell@shaw.ca> Message-ID: At 09:13 PM 01/31/2005 -0800, Tyler Mitchell wrote: >Am I reading the docs right? > >I want to create a point shapefile, but need to first create a lineObj >and .add() to it. Then .add() that lineObj to my ShapeObj...then .add() that >to my shapefileObj? > >This is the best I can come up with as an example. Can I shortcut this at >all? > >myPoints = mapscript.pointObj(-121, 54) >myShapes = mapscript.shapeObj(0) >myLine = mapscript.lineObj() >myLine.add(myPoints) >myShapes.add(myLine) >myShapefile = mapscript.shapefileObj("myshapefile.shp",1) >myShapefile.add(myShapes) You can use Shapefile.addPoint(Points); when dealing with Shape files. But when using Layer.addFeature(Shape) to add Points to a map for drawing you cannot use a Point object but must create a single point line, as you are doing above, because a mapscript Shape object vs. a ShapeFile object does not have an addPoint method, just addShape(lineObj). Eric From frank.barrett at UCD.IE Tue Feb 1 05:37:52 2005 From: frank.barrett at UCD.IE (Frank Barrett) Date: Tue, 1 Feb 2005 07:37:52 -0600 Subject: configure issues SUSE 9.1 Message-ID: Hello all, I have a working version of mapserver running on my linux box. Unfortunately I didnt initially configure mapserver with PHP/Mapscript i.e. (--with-php). Now when I try the configure i.e.: ./configure --with gdal=/usr/local/bin/gdal-config --with ogr=/usr/local/bin/gdal-config --with-gd --with-proj --with-php=/usr/bin I get the following: configure: checking for PHP/Mapscript module options... checking for g++ -shared ... yes using 'g++ -shared' for dynamic linking checking for locations of config.h or php_config.h... configure: error: !!! Could not fin config.h or php_config.h in /usr/bin. !!! !!! Has PHP been configured yet? !!! I have php 4.3.4 running on my machine which was installed sucessfully using the suse 9.1 distro. The config.h/php_config.h files do not appear to be on my system (i.e. I have no joy following a search)? I have given the path to the /usr/bin i.e. the path to the location of the php executable file. I see from the mapserver wiki site i.e. at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 that the user downloaded and installed a second version of php 4.3.4. Specifically for(?) mapserver. Is this really necessary? Or can any users suggest a workaround so something so I can get PHP/Mapscript up and working. Thanks in advance for you time. Frank. From gerry.creager at TAMU.EDU Tue Feb 1 06:01:51 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Tue, 1 Feb 2005 08:01:51 -0600 Subject: configure issues SUSE 9.1 In-Reply-To: Message-ID: Make sure you have the php-devel package installed. That's where the headers (.h) reside. The binary portion doesn't do that... This assumes you installed using the RPMs and YaST. If you installed from source, you should be pointing at the installation path for php, where the libs and includes reside. On some (but not all; go figure) redHat systems, I've had to copy some of the PHP libs and .h's to /usr/local/[lib||include] to make things happier. gerry Frank Barrett wrote: > Hello all, > > I have a working version of mapserver running on my linux box. > Unfortunately I didnt initially configure mapserver with PHP/Mapscript i.e. > (--with-php). > Now when I try the configure i.e.: > ./configure --with gdal=/usr/local/bin/gdal-config --with > ogr=/usr/local/bin/gdal-config --with-gd --with-proj --with-php=/usr/bin > > I get the following: > > configure: checking for PHP/Mapscript module options... > checking for g++ -shared ... yes > using 'g++ -shared' for dynamic linking > checking for locations of config.h or php_config.h... configure: error: > !!! Could not fin config.h or php_config.h in /usr/bin. !!! > !!! Has PHP been configured yet? !!! > > I have php 4.3.4 running on my machine which was installed sucessfully > using the suse 9.1 distro. The config.h/php_config.h files do not appear to > be on my system (i.e. I have no joy following a search)? I have given the > path to the /usr/bin i.e. the path to the location of the php executable > file. I see from the mapserver wiki site i.e. at > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 that the > user downloaded and installed a second version of php 4.3.4. Specifically > for(?) mapserver. Is this really necessary? Or can any users suggest a > workaround so something so I can get PHP/Mapscript up and working. > > Thanks in advance for you time. > > Frank. -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From bigfoot at MAIN-TASK.COM Tue Feb 1 06:01:56 2005 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Tue, 1 Feb 2005 09:01:56 -0500 Subject: configure issues SUSE 9.1 In-Reply-To: Message-ID: Try installing the devel package of php. It contains the necessary headers. Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com Frank Barrett wrote: >Hello all, > >I have a working version of mapserver running on my linux box. >Unfortunately I didnt initially configure mapserver with PHP/Mapscript i.e. >(--with-php). >Now when I try the configure i.e.: >./configure --with gdal=/usr/local/bin/gdal-config --with >ogr=/usr/local/bin/gdal-config --with-gd --with-proj --with-php=/usr/bin > >I get the following: > >configure: checking for PHP/Mapscript module options... >checking for g++ -shared ... yes > using 'g++ -shared' for dynamic linking >checking for locations of config.h or php_config.h... configure: error: >!!! Could not fin config.h or php_config.h in /usr/bin. !!! >!!! Has PHP been configured yet? !!! > >I have php 4.3.4 running on my machine which was installed sucessfully >using the suse 9.1 distro. The config.h/php_config.h files do not appear to >be on my system (i.e. I have no joy following a search)? I have given the >path to the /usr/bin i.e. the path to the location of the php executable >file. I see from the mapserver wiki site i.e. at >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 that the >user downloaded and installed a second version of php 4.3.4. Specifically >for(?) mapserver. Is this really necessary? Or can any users suggest a >workaround so something so I can get PHP/Mapscript up and working. > >Thanks in advance for you time. > >Frank. > > > > From sgillies at FRII.COM Tue Feb 1 06:29:33 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 1 Feb 2005 07:29:33 -0700 Subject: MapScript lineObj to create a Point? In-Reply-To: Message-ID: On Jan 31, 2005, at 10:13 PM, Tyler Mitchell wrote: > Am I reading the docs right? > > I want to create a point shapefile, but need to first create a lineObj > and .add() to it. Then .add() that lineObj to my ShapeObj...then > .add() that > to my shapefileObj? > > This is the best I can come up with as an example. Can I shortcut > this at > all? > > myPoints = mapscript.pointObj(-121, 54) > myShapes = mapscript.shapeObj(0) > myLine = mapscript.lineObj() > myLine.add(myPoints) > myShapes.add(myLine) > myShapefile = mapscript.shapefileObj("myshapefile.shp",1) > myShapefile.add(myShapes) > > Tyler, there is no shortcut to creating a single shape, but if you are creating *many* point shapes, you can make your code more efficient by using pointObj::setXY() inside a loop instead of creating a new pointObj instances for every record in your shapefile: shpfile = mapscript.shapefileObj('file.shp', 1) temp_point = mapscript.pointObj() for (x, y) in coords: temp_point.setXY(x, y) temp_shape = mapscript.shapeObj(mapscript.MS_SHAPE_POINT) temp_line = lineObj() temp_line.add(temp_point) temp_shape.add(temp_line) shpfile.add(temp_shape) Always use the symbols defined in the module like mapscript.MS_SHAPE_POINT if you can instead of using the literal values. Makes the code easier to understand. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From daniele.rizzo at SPACESPA.IT Tue Feb 1 06:29:58 2005 From: daniele.rizzo at SPACESPA.IT (Daniele Rizzo) Date: Tue, 1 Feb 2005 08:29:58 -0600 Subject: Zoom ? Message-ID: Hi, I'm trying to use the zoom methods (zoomScale, zoomRectangle,zoomPoint), but I don't know exactly how to do it. I don't find examples for this methods and i don't know the input parameters. I hope that you can help me with this! Thank you in advance. Daniele Rizzo From ivan.mjartan at GEOVAP.CZ Tue Feb 1 07:09:12 2005 From: ivan.mjartan at GEOVAP.CZ (Ivan Mjartan) Date: Tue, 1 Feb 2005 16:09:12 +0100 Subject: small projection problem Message-ID: Hi I have small problem with file epsg, because it's location in my project (I am running on W2K and IIS) have to be c:\proj\nad\epsg Know somebody where can i redefine location of epsg file? I thing that i have to make some change in code of mapserver but i dont known where. thanks for your reply. ivan mjartan -------------- next part -------------- An HTML attachment was scrubbed... URL: From frank.barrett at UCD.IE Tue Feb 1 07:08:51 2005 From: frank.barrett at UCD.IE (Frank Barrett) Date: Tue, 1 Feb 2005 09:08:51 -0600 Subject: configure issues SUSE 9.1 Message-ID: Hi Gerry, your tip worked. The php-devel library was not installed! However now I'm getting another nasty.. i.e.: !!! Your PHP was compiled with PHP's bundled regex library. !!! In this case Mapserver and PHP MapScript must also be compiled !!! using the same copy of regex. !!! There are two possible ways to get rid of this error: !!!1- Download/extract and build the PHP source on your system (no need !!! to 'make install') and use the --with-php-regex-dir=DIR configure !!! option to specify the location of the PHP source tree where the !!! regex/*.0 fiels are located. This is the only way to build !!! PHP MapScript in an environment wher PHP is configured as an Apache !!!DSO. !!!2- Try to reconfigure 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 you PHP using !!! --with-regex=system and still get this error then make sure you !!! configured PHP as a CGI. It seems to me that option 2 might be the way to go? I know it's slightly off topic any idea how I might go about re-compiling PHP considering I initially set PHP using the YAST RPMs? From bfraser at GEOANALYTIC.COM Tue Feb 1 07:11:29 2005 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 1 Feb 2005 08:11:29 -0700 Subject: .map and .tab files Message-ID: Jose Luis, I had a quick look around and could not find a document that listed all the ellipsoids supported by Proj. As Norman Vine pointed out, the best place to get that information is the proj executable itself, if you've got it compiled. Here's the output from proj 4.4.9 (the results are formatted better by a fixed-pitch font such as courier): C:\proj-4.4.9\src>proj -le MERIT a=6378137.0 rf=298.257 MERIT 1983 SGS85 a=6378136.0 rf=298.257 Soviet Geodetic System 85 GRS80 a=6378137.0 rf=298.257222101 GRS 1980(IUGG, 1980) IAU76 a=6378140.0 rf=298.257 IAU 1976 airy a=6377563.396 b=6356256.910 Airy 1830 APL4.9 a=6378137.0. rf=298.25 Appl. Physics. 1965 NWL9D a=6378145.0. rf=298.25 Naval Weapons Lab., 1965 mod_airy a=6377340.189 b=6356034.446 Modified Airy andrae a=6377104.43 rf=300.0 Andrae 1876 (Den., Iclnd.) aust_SA a=6378160.0 rf=298.25 Australian Natl & S. Amer. 1969 GRS67 a=6378160.0 rf=298.2471674270 GRS 67(IUGG 1967) bessel a=6377397.155 rf=299.1528128 Bessel 1841 bess_nam a=6377483.865 rf=299.1528128 Bessel 1841 (Namibia) clrk66 a=6378206.4 b=6356583.8 Clarke 1866 clrk80 a=6378249.145 rf=293.4663 Clarke 1880 mod. CPM a=6375738.7 rf=334.29 Comm. des Poids et Mesures 1799 delmbr a=6376428. rf=311.5 Delambre 1810 (Belgium) engelis a=6378136.05 rf=298.2566 Engelis 1985 evrst30 a=6377276.345 rf=300.8017 Everest 1830 evrst48 a=6377304.063 rf=300.8017 Everest 1948 evrst56 a=6377301.243 rf=300.8017 Everest 1956 evrst69 a=6377295.664 rf=300.8017 Everest 1969 evrstSS a=6377298.556 rf=300.8017 Everest (Sabah & Sarawak) fschr60 a=6378166. rf=298.3 Fischer (Mercury Datum) 1960 fschr60m a=6378155. rf=298.3 Modified Fischer 1960 fschr68 a=6378150. rf=298.3 Fischer 1968 helmert a=6378200. rf=298.3 Helmert 1906 hough a=6378270.0 rf=297. Hough intl a=6378388.0 rf=297. International 1909 (Hayford) krass a=6378245.0 rf=298.3 Krassovsky, 1942 kaula a=6378163. rf=298.24 Kaula 1961 lerch a=6378139. rf=298.257 Lerch 1979 mprts a=6397300. rf=191. Maupertius 1738 new_intl a=6378157.5 b=6356772.2 New International 1967 plessis a=6376523. b=6355863. Plessis 1817 (France) SEasia a=6378155.0 b=6356773.3205 Southeast Asia walbeck a=6376896.0 b=6355834.8467 Walbeck WGS60 a=6378165.0 rf=298.3 WGS 60 WGS66 a=6378145.0 rf=298.25 WGS 66 WGS72 a=6378135.0 rf=298.26 WGS 72 WGS84 a=6378137.0 rf=298.257223563 WGS 84 sphere a=6370997.0 b=6370997.0 Normal Sphere (r=6370997) And here's the list of supported projections: C:\proj-4.4.9\src>proj -lp aea : Albers Equal Area aeqd : Azimuthal Equidistant airy : Airy aitoff : Aitoff alsk : Mod. Stererographics of Alaska apian : Apian Globular I august : August Epicycloidal bacon : Bacon Globular bipc : Bipolar conic of western hemisphere boggs : Boggs Eumorphic bonne : Bonne (Werner lat_1=90) cass : Cassini cc : Central Cylindrical cea : Equal Area Cylindrical chamb : Chamberlin Trimetric collg : Collignon crast : Craster Parabolic (Putnins P4) denoy : Denoyer Semi-Elliptical eck1 : Eckert I eck2 : Eckert II eck3 : Eckert III eck4 : Eckert IV eck5 : Eckert V eck6 : Eckert VI eqc : Equidistant Cylindrical (Plate Caree) eqdc : Equidistant Conic euler : Euler fahey : Fahey fouc : Foucaut fouc_s : Foucaut Sinusoidal gall : Gall (Gall Stereographic) geos : Geostationary Satellite View gins8 : Ginsburg VIII (TsNIIGAiK) gn_sinu : General Sinusoidal Series gnom : Gnomonic goode : Goode Homolosine gs48 : Mod. Stererographics of 48 U.S. gs50 : Mod. Stererographics of 50 U.S. hammer : Hammer & Eckert-Greifendorff hatano : Hatano Asymmetrical Equal Area imw_p : International Map of the World Polyconic kav5 : Kavraisky V kav7 : Kavraisky VII krovak : Krovak labrd : Laborde laea : Lambert Azimuthal Equal Area lagrng : Lagrange larr : Larrivee lask : Laskowski lcc : Lambert Conformal Conic lcca : Lambert Conformal Conic Alternative leac : Lambert Equal Area Conic lee_os : Lee Oblated Stereographic loxim : Loximuthal lsat : Space oblique for LANDSAT mbt_s : McBryde-Thomas Flat-Polar Sine (No. 1) mbt_fps : McBryde-Thomas Flat-Pole Sine (No. 2) mbtfpp : McBride-Thomas Flat-Polar Parabolic mbtfpq : McBryde-Thomas Flat-Polar Quartic mbtfps : McBryde-Thomas Flat-Polar Sinusoidal merc : Mercator mil_os : Miller Oblated Stereographic mill : Miller Cylindrical mpoly : Modified Polyconic moll : Mollweide murd1 : Murdoch I murd2 : Murdoch II murd3 : Murdoch III nell : Nell nell_h : Nell-Hammer nicol : Nicolosi Globular nsper : Near-sided perspective nzmg : New Zealand Map Grid ob_tran : General Oblique Transformation ocea : Oblique Cylindrical Equal Area oea : Oblated Equal Area omerc : Oblique Mercator ortel : Ortelius Oval ortho : Orthographic pconic : Perspective Conic poly : Polyconic (American) putp1 : Putnins P1 putp2 : Putnins P2 putp3 : Putnins P3 putp3p : Putnins P3' putp4p : Putnins P4' putp5 : Putnins P5 putp5p : Putnins P5' putp6 : Putnins P6 putp6p : Putnins P6' qua_aut : Quartic Authalic robin : Robinson rpoly : Rectangular Polyconic sinu : Sinusoidal (Sanson-Flamsteed) somerc : Swiss. Obl. Mercator stere : Stereographic sterea : Oblique Stereographic Alternative tcc : Transverse Central Cylindrical tcea : Transverse Cylindrical Equal Area tissot : Tissot tmerc : Transverse Mercator tpeqd : Two Point Equidistant tpers : Tilted perspective ups : Universal Polar Stereographic urm5 : Urmaev V urmfps : Urmaev Flat-Polar Sinusoidal utm : Universal Transverse Mercator (UTM) vandg : van der Grinten (I) vandg2 : van der Grinten II vandg3 : van der Grinten III vandg4 : van der Grinten IV vitk1 : Vitkovsky I wag1 : Wagner I (Kavraisky VI) wag2 : Wagner II wag3 : Wagner III wag4 : Wagner IV wag5 : Wagner V wag6 : Wagner VI wag7 : Wagner VII weren : Werenskiold I wink1 : Winkel I wink2 : Winkel II wintri : Winkel Tripel For more information on each, have a look at http://www.remotesensing.org/proj and http://www.remotesensing.org/geotiff/proj_list/ Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: Brent Fraser ; Jose Luis Gonzalez ; MAPSERVER-USERS at LISTS.UMN.EDU Sent: Tuesday, February 01, 2005 4:17 AM Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files Thank you, very much again, it finally seems to work. I have a question for you: Once I know that it is a Krassovsky ellipsoid, how do you know the exact word to put in the ellps option of the projection. I mean, how did you know you had to put "ellps=krass" and not "ellps=krassov" or "ellps=krassovsky" for example? Where are the possibe values of the parameters of the projection defined? regards Jose Luis Brent Fraser wrote: For a world file description, have a look at: http://lists.umn.edu/cgi-bin/wa?A2=ind0501&L=mapserver-users&P=R31342&I=-3&X=5DD2E75F03 DF29CF75 Sorry about the ellps info (it's not Clark 1866). Your tab file shows 1001 as the datum code. From the MapInfo doc, this indicates a datum of Pulkovo 1942, which uses the the Krassovsky ellipsoid. Your PROJECTION object should i nclude the Proj4 keyword of "ellps=krass" Brent ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:52 AM Subject: Re: [UMN_MAPSERVER-USERS] .map and .tab files Sorry but I don't undersand what to do in point number 1. How can I do a .tfw file? How does it look like? and respect to point 3: how do you know which is the ellps parameter? Thanks Jose Luis Brent Fraser wrote: Jose Luis, Three possibilities: 1. The tiff might be a plain tiff, not a GeoTiff (with registration info attached as a TIFF tag). Make a .tfw georeferencing "world" file for i t using the information in the TAB file 2. You may have your false_easting and false_northing values swapped in the PROJECTION object of your map file. Double check with the CoordSys statement in t he TAB file. 3. No ellipse is gi ven in the PROJECTION object. Add "ellps=clrk66" Since your output projection is the same as your input projection, you could just remove the two PROJECTION objects in your map file. You would stillneed to make a world file for the tiff file. Brent Fraser ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, January 31, 2005 8:19 AM Subject: [UMN_MAPSERVER-USERS] .map and .tab files Hi everyone I can not manage to draw a raster I have. This raster is a .tiff file that has associated this .tab file: !table !version 300 !charset WindowsLatin2 Definition T able File "praha.tif" Type "RASTER" (3445375,5 560000) (0,0) Label "Pt 1", (3474000,5560000) (4507,0) Label "Pt 2", (3474000,5539250) (4507,3266) Label "Pt 3" CoordSys Earth Projection 8, 1001, "m", 15, 0, 1, 3500000, 0 Units "m" RasterStyle 7 0 When I put this data to the .map file I write it as: MAP NAME praha STATUS ON IMAGETYPE PNG SIZE 800 500 SHAPEPATH "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8" EXTENT 3445375 5539 250 3474000 5560000 UNITS METERS PROJECTION "pro j=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END WEB IMAGEPATH "/opt/SUNappserver /domains/domain1/applications/j2ee-modules/test8/" IMAGEURL "/test8/" END LAYER NAME "Nighttime lights" TYPE RASTER STATUS ON DATA "/opt/SUNappserver/domains/domain1/applications/j2ee-modules/test8/praha.tif " PROJECTION "proj=tmerc" "lat_0=0" "lon_0=15" "k=1" 'x_0=0" "y_0=3500000" END END END Am I doing it correctly? Am I missin g anything? Thank you Jose Luis From David.Fawcett at STATE.MN.US Tue Feb 1 07:17:11 2005 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Tue, 1 Feb 2005 09:17:11 -0600 Subject: small projection problem Message-ID: Ivan, In the Map file, you should add a line like this in the MAP object: CONFIG "PROJ_LIB" "c:\proj\" David. David J. Fawcett MN Office of Environmental Assistance >>> Ivan Mjartan 2/1/2005 9:09:12 AM >>> Hi I have small problem with file epsg, because it's location in my project (I am running on W2K and IIS) have to be c:\proj\nad\epsg Know somebody where can i redefine location of epsg file? I thing that i have to make some change in code of mapserver but i dont known where. thanks for your reply. ivan mjartan From covariance at SHAW.CA Tue Feb 1 07:37:42 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Tue, 1 Feb 2005 09:37:42 -0600 Subject: javascript rectangle co-ordinates Message-ID: Solomon: I would recommend that you use the dbox JavaScript classes if you can do so. I tried programming this and it is a difficult thing to get right and my own JavaScript code sometimes fails depending upon which direction you drag the box and which browser you are in. I did find that I needed to save the mouse coordinates from the onMouseMove event handler in order to keep them. But my case was probably special because I was also trying to use an client-side imagemap as well as handling mouse events separately. You can get the dbox classes from the proceedings of the 2004 MUM website at: http://www.omsug.ca/dl/osgis2004/box_presentation.zip when you unzip this you will find a folder called presentation, this has instructions on using both jBox and dbox, I found it very helpful. If you still want to pursue developing your own JavaScript code then let me know and I can provide you with my own code, this may help you to make progress in this. Bob Bruce From kgrootendorst at BAIRD.COM Tue Feb 1 07:54:50 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 1 Feb 2005 09:54:50 -0600 Subject: Zoom to Parcel Message-ID: Below is the code I'm using to implement a 'zoom to parcel' feature in my map, where the user inputs a parcel number, and the map will zoom to the parcel. For some reason, there is a problem with the 'GetShape' statement, as this is where the mapserver halts. Does anyone know what's wrong with the 'GetShape' statement? MS 4.2 PHP 4.3.4 Win 2000 if (isset( $http_form_vars["parcelnum"]) && ($http_form_vars["parcelnum"] > "0" )) { echo "zoom to parcel"; // the Parcel number to query for $szParcelNumber = $http_form_vars["parcelnum"]; // the current extents will be the default if we fail. $oExtents = $oMapSession->oMap->extent; $oldExtents=$oExtents; //get layer name $oParcelLayer = $oMapSession->oMap->getLayerByName( "ParcelData" ); //if (isset($oReachLayer)) //echo "reach is set"; //print_r ($oReachLayer); $oParcelLayer->queryByAttributes("PIN", $szParcelNumber, MS_SINGLE ); $results = $oParcelLayer->getNumResults(); //echo "$results"; //now check to see if there are any results if ($oParcelLayer->getNumResults() > 0 ) { echo " results2"; //at least one result, assume only one for this example $oResult = $oParcelLayer->getResult( 0 ); //oResult is a resultCacheMemberObj $oParcelLayer->open($oMapSession->oMap->shapepath); echo " results3"; //this is echoed //**problem with next line $oShape = $oParcelLayer->GetShape($oResult- >tileindex,$oResult->shapeindex); //**** problem? echo " results4"; //this is not echoed $oExtents = $oShape->bounds; echo " results5"; $oShape->free(); //at this point we might add a buffer to the extents $nXBuffer = ( $oExtents->maxx - $oExtents->minx )*0.05; $nYBuffer = ( $oExtents->maxy - $oExtents->miny )*0.05; $nMinX = $oExtents->minx - $nXBuffer; $nMaxX = $oExtents->maxx + $nXBuffer; $nMinY = $oExtents->miny - $nYBuffer; $nMaxY = $oExtents->maxy + $nYBuffer; $oExtents->setextent( $nMinX, $nMinY, $nMaxX, $nMaxY ); echo "$nMinX"; echo "$nMaxX"; echo "$nMinY"; echo "$nMaxY"; } else{ echo " no results";} $width=$oMapSession->oMap->width; $height=$oMapSession->oMap->height; $px1=$width/($oldExtents->maxx-$oldExtents->minx)*($oExtents->minx- $oldExtents->minx); $px2=$width/($oldExtents->maxx-$oldExtents->minx)*($oExtents->maxx- $oldExtents->minx); $py1=$height/($oldExtents->maxy-$oldExtents->miny)*($oldExtents- >maxy-$oExtents->maxy); $py2=$height/($oldExtents->maxy-$oldExtents->miny)*($oldExtents- >maxy-$oExtents->miny); $oMapNavigator->zoomRectangle($px1, $py2, $px2, $py1); } else { echo "parcel is null or negative"; } From DKana at GEODIS.CZ Tue Feb 1 07:25:28 2005 From: DKana at GEODIS.CZ (Kana, David) Date: Tue, 1 Feb 2005 16:25:28 +0100 Subject: small projection problem Message-ID: It is also possible to define the PROJ_LIB environment variable to point to the NAD directory or rebuild proj library with PROJ_LIB defined. David Kana -----Original Message----- From: Ivan Mjartan [mailto:ivan.mjartan at GEOVAP.CZ] Sent: Tuesday, February 01, 2005 4:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] small projection problem Hi I have small problem with file epsg, because it's location in my project (I am running on W2K and IIS) have to be c:\proj\nad\epsg Know somebody where can i redefine location of epsg file? I thing that i have to make some change in code of mapserver but i dont known where. thanks for your reply. ivan mjartan -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at GOMOOS.ORG Tue Feb 1 07:20:01 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 1 Feb 2005 10:20:01 -0500 Subject: Not able to display legend in mapfile In-Reply-To: <20050201130617.23586.qmail@web8402.mail.in.yahoo.com> Message-ID: At 05:06 AM 02/01/2005 -0800, neelima wrote: >Hi , >Below is the code i have used to display legend in the map file > >LEGEND > >OUTLINECOLOR 0 0 0 > >IMAGECOLOR 255 255 255 > >POSITION UL > >KEYSIZE 20 10 > >KEYSPACING 5 5 > >LABEL > >TYPE TRUETYPE > >FONT Arial > >SIZE 9 > >COLOR 0 0 0 > >END > >STATUS ON > >END > > > >Can anyone guide me if there is any thing wrong in that code becos i am not able display legend in the mapfile. Or is there anything else which i should add to the above. > >Wishing for a soon reply becos previously a week back i have posted a question regarding text object but i did not get any reply. thank u This looks fine but you'll need to provide more details about what you are trying to do and what's going wrong. If you want the legend on your map you should try STATUS EMBED From joseluismapserver at YAHOO.ES Tue Feb 1 08:12:32 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Tue, 1 Feb 2005 17:12:32 +0100 Subject: draw points Message-ID: I know it has been a question that has been answered som times, but reading some of the mails about the subject, I don't finally got it clear. How is the layer I have to write in the map file so I can draw a point in may map with some coordinate system? I think it is something like this but I am not very sure why it doesn't draw the point. LAYER NAME "POINT" TYPE POINT STATUS DEFAULT FEATURE POINTS 3460000 5540000 END END CLASS STYLE COLOR 255 0 0 SIZE 13 END END END By the way, once drawn, how can i change it's size (a fat point). Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From tenierer at GOV.NS.CA Tue Feb 1 08:38:30 2005 From: tenierer at GOV.NS.CA (Rene Teniere) Date: Tue, 1 Feb 2005 10:38:30 -0600 Subject: PointObj draw labels Message-ID: I can't seem to be ablt to draw the annotation on the dynamic points added using $fPoint->draw($map,$points,$image,$class,"Test"); I hope I do not need a labelitem, because I am drawing the points on an empty point shapefile. Here is the mapfile: Thanks, Rene. $image = $map->draw(); $class = 0; $points = $map->getLayerByName("FLDCHKPTS"); $points->set("status", MS_ON); $fPoint = ms_newPointObj(); $fPoint->setXY($fDownX[$i],$fDownY[$i]); $rtres = $fPoint->draw($map,$points,$image,$class,"Test"); $fPoint->free(); LAYER NAME "FLDCHKPTS" STATUS ON TYPE POINT MAXSCALE 500000 DATA "D:/forestry/xtras/empty" CLASS NAME "Field Check Points" STYLE SYMBOL 7 COLOR 0 150 0 OUTLINECOLOR 0 0 0 SIZE 10 MINSIZE 1 #MAXSIZE 100 END LABEL TYPE BITMAP SIZE LARGE POSITION CR COLOR 0 0 0 END END END From carloseduardo at COSTARRICENSE.CR Tue Feb 1 09:13:03 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Tue, 1 Feb 2005 11:13:03 -0600 Subject: Mapserver - Suse 9.2 Message-ID: I need to know if somebody has installed mapserver in suse 9.2 I need to know the version of the most important programs and libraries used, mapserver, apache, gdal, etc. Also, somebody spoke about LinGis on suse 9.1 I have suse 9.2 installed and i need to know if lingis works with this version. Thanks. _______________________________________ Yo me registr? en www.costarricense.cr From jbarong at HOTMAIL.COM Tue Feb 1 09:14:11 2005 From: jbarong at HOTMAIL.COM (Juan Baron) Date: Tue, 1 Feb 2005 11:14:11 -0600 Subject: Use mapserver within J2EE application Message-ID: Hi list: How can I use mapserver within a J2EE application?? Thank's From manninside at YAHOO.COM Tue Feb 1 09:27:37 2005 From: manninside at YAHOO.COM (Mandar sarlashkar) Date: Tue, 1 Feb 2005 09:27:37 -0800 Subject: draw points In-Reply-To: <20050201161233.69433.qmail@web26403.mail.ukl.yahoo.com> Message-ID: Hello ! I am a novice for Mapserver & this is for the first time I am writing to someone regarding Mapserver....So If I have written anything irrelevent.... please dont mind... Anyways I thinl the points get displayed but are not visible.... If you dont define Symbol Name or Number to be used for the features it takes default value which is ' 0 ' & will displays features as a single Pixel... This is how I have defined CLASS object within LAYER.... CLASS NAME "lanta_1975_resort" COLOR 165 42 42 OUTLINECOLOR 0 0 0 SYMBOL 3 SIZE 6 END SYMBOL 3 refers to the 3rd symbol defined in the Symbol file... I am copying the definition of the LAYER object ... LAYER NAME "Resort" STATUS ON DATA 'lanta_1975_resort' TYPE POINT DUMP TRUE UNITS METERS TOLERANCE 50 TEMPLATE "Resort.html" CLASS NAME "lanta_1975_resort" COLOR 165 42 42 OUTLINECOLOR 0 0 0 SYMBOL 3 SIZE 6 END END I am not sure if this is what you wanted to know... BEST OF LUCK Mandar Jose Luis Gonzalez wrote: I know it has been a question that has been answered som times, but reading some of the mails about the subject, I don't finally got it clear. How is the layer I have to write in the map file so I can draw a point in may map with some coordinate system? I think it is something like this but I am not very sure why it doesn't draw the point. LAYER NAME "POINT" TYPE POINT STATUS DEFAULT FEATURE POINTS 3460000 5540000 END END CLASS STYLE COLOR 255 0 0 SIZE 13 END END END By the way, once drawn, how can i change it's size (a fat point). Thank you Jose Luis Jose Luis Gonzalez wrote:I know it has been a question that has been answered som times, but reading some of the mails about the subject, I don't finally got it clear. How is the layer I have to write in the map file so I can draw a point in may map with some coordinate system? I think it is something like this but I am not very sure why it doesn't draw the point. LAYER NAME "POINT" TYPE POINT STATUS DEFAULT FEATURE POINTS 3460000 5540000 END END CLASS STYLE COLOR 255 0 0 SIZE 13 END END END By the way, once drawn, how can i change it's size (a fat point). Thank you Jose Luis --------------------------------- --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cdaily at GMAIL.COM Tue Feb 1 10:06:34 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 1 Feb 2005 12:06:34 -0600 Subject: Accessing class properties in PHP/MapScript Message-ID: I'm having some strange problems with accessing the member properties of my classes with php/mapscript. I was initially having issues with using queryByPoint against points added to a layer with addFeature. I'd see some perl/mapscript solutions, but they involved directly setting an index value for each point shape. In PHP, it's not possible to directly set the index value (the set() function complains that it's read-only). I looked at the mapscript source, and adjusted the shape->set() function to allow me to set the index, and now things work fine for that. I'm curious if anyone knows why I'd be getting strange behavior in accessing the class attributes directly, for example using $shape->index. or $shape->values. If I set a class attribute in this manner and then echo the value back, it looks like it's worked, but the values don't 'stick'. When I access the class later, such as with $layer->getShape(), the values are no longer within the object. I'm just a little lost on this. It appears that in perl/mapscript these attributes are directly accessible? From assefa at DMSOLUTIONS.CA Tue Feb 1 13:05:31 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 1 Feb 2005 16:05:31 -0500 Subject: AW: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows In-Reply-To: <93FE3B3E4C47C04795C65DA3C90C1C192B5A22@exchange03.technikum.local> Message-ID: I will do a build sometimes this week using php 5.0.3. I am surprised though the build done with 5.0.2 would not work for 5.0.3. It was certainly not the case for php 4. What do you mean when you say It does not work ? Do the dll refuses to load ? Any error messages ? Klingseisen Bernhard wrote: > Hi, > > I'm currently working with PHP 5.0.3 as I need its support for MySQL 4.1.x. I have tested your compilation of PHP mapscript, but that doesn't work for php 5.0.2. Is it possible to provide windows binaries for this php version (php_mapscript.dll and proj.dll) ? Or is there an easy way to compile it by myself? > > I would much apprechiated your help! > > Cheers, > Bernhard > > -----Urspr?ngliche Nachricht----- > Von: UMN MapServer Users List im Auftrag von Yewondwossen Assefa > Gesendet: Mi 19.01.2005 16:11 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Cc: > Betreff: Re: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows > > > > I have placed the windows binaries of php/mapscript build with php5.0.2 > on maptools.org > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html > development version). > > I have tested it with a simple php/mapscript application (Gmap). > Please let me know of you have any problems. > > Later, > > Mathieu PARENT wrote: > > Hi, > > the bug #1100 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1100) > > is fixed now. Thanks. > > Due to a lot of missing utilities, i can't get it compiled on windows. > > Do you have a build of it ? > > Thanks > > > > Best regards > > > > Mathieu Parent > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -- ---------------------------------------------------------------- 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 Tue Feb 1 13:27:36 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 1 Feb 2005 22:27:36 +0100 Subject: Use mapserver within J2EE application In-Reply-To: Message-ID: Hi Juan, you could just let your J2EE application act as a HTTP client to Mapserver CGI (native mode, or WMS mode). Or you could try using Java Mapscript. Best regards, Bart On Tue, 1 Feb 2005 11:14:11 -0600, Juan Baron wrote: > Hi list: > > How can I use mapserver within a J2EE application?? > > Thank's > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From eblowrance at BPA.GOV Tue Feb 1 14:15:52 2005 From: eblowrance at BPA.GOV (Eric Lowrance) Date: Tue, 1 Feb 2005 16:15:52 -0600 Subject: ECW Image Shift Message-ID: Hi all, I have about 30 tiled ECW images in WGS84 that exhibit a x-shift of about 50m when compared to the originals and other WGS84 map services (Like Terraserver) and other data sources. This same shift appears in both my web browser application and ArcMap, so it seems as if MapServer or my configuration is the culprit. If I bring one of the tiled images in ArcMap it lines up just fine with all of my other data sources. I'm a MapServer novice, so any suggestions would be appreciated, thanks! MAP NAME NATURALVIEW IMAGETYPE png24 EXTENT -126.001390 39.99844 -107.99847 55.00139 SHAPEPATH "W:\data\NVECW\" OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END WEB METADATA WMS_TITLE "NaturalVue_Imagery" WMS_ONLINERESOURCE "http://..." WMS_SRS "EPSG:4326" END END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER NAME "NaturalVue" METADATA "wms_title" "NaturalVue_Imagery" "wms_srs" "EPSG:4326" "wms_name" "NaturalVue" "wms_server_version" "1.1.1" "wms_formatlist" "image/jpeg image/png24" "wms_format" "image/png" END STATUS ON TILEINDEX "nv_index.shp" TILEITEM "location" TYPE RASTER END From thomaschesky at YAHOO.COM Tue Feb 1 17:18:12 2005 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Tue, 1 Feb 2005 17:18:12 -0800 Subject: USGS Urban coverage shapefile Message-ID: Hello, Does anybody know how to get the boundary of USGS Urban ortho coverage in shapefile (or WKT etc.) format. I could only found the coverage index in raster format on the USGS site (seamless.usgs.gov) I'd like to be able to tell having a lat/lon coordinates whether it falls into one of the Urban coverage areas. The USGS WMS server provides boudary rectangle only (in GetCapabilities), which obviously will not solve my problem as the coverages are not rectangles. There must be something like this otherwise how could USGS create the raster coverage index. Any help is greatly appreciated. Thomas ps I emailed USGS as well but not yet received any reply --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Tue Feb 1 18:03:28 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 1 Feb 2005 21:03:28 -0500 Subject: USGS Urban coverage shapefile In-Reply-To: <20050202011812.98614.qmail@web54210.mail.yahoo.com> Message-ID: Hello Thomas, I am not familiar with this raster layer, but if it has the Urban areas in a constant color in the raster, then you could do a lat/lon query of the raster layer and get back the pixel value. Then decide based on the pix value whether it falls into an Urban area. The Tiger data also defines Urban areas as polygons so you might be able to work with that. -Steve W. http://imaptools.com Thomas Chesky wrote: > Hello, > > Does anybody know how to get the boundary of USGS Urban ortho coverage > in shapefile (or WKT etc.) format. I could only found the coverage index > in raster format on the USGS site (seamless.usgs.gov) I'd like to be > able to tell having a lat/lon coordinates whether it falls into one of > the Urban coverage areas. The USGS WMS server provides boudary rectangle > only (in GetCapabilities), which obviously will not solve my problem as > the coverages are not rectangles. > > There must be something like this otherwise how could USGS create the > raster coverage index. > > Any help is greatly appreciated. > > Thomas > > ps I emailed USGS as well but not yet received any reply > > ------------------------------------------------------------------------ > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' > > From woodbri at SWOODBRIDGE.COM Tue Feb 1 18:09:15 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 1 Feb 2005 21:09:15 -0500 Subject: USGS Urban coverage shapefile In-Reply-To: <20050202011812.98614.qmail@web54210.mail.yahoo.com> Message-ID: Also try these. The first has some contact info for getting the data near the bottom if this is the same data you are looking for. http://minerals.usgs.gov/sddp/doc/faq/urbanareas.faq.html http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial_s&hl=en&q=USGS+Urban+coverage+shapefile&btnG=Google+Search -Steve Thomas Chesky wrote: > Hello, > > Does anybody know how to get the boundary of USGS Urban ortho coverage > in shapefile (or WKT etc.) format. I could only found the coverage index > in raster format on the USGS site (seamless.usgs.gov) I'd like to be > able to tell having a lat/lon coordinates whether it falls into one of > the Urban coverage areas. The USGS WMS server provides boudary rectangle > only (in GetCapabilities), which obviously will not solve my problem as > the coverages are not rectangles. > > There must be something like this otherwise how could USGS create the > raster coverage index. > > Any help is greatly appreciated. > > Thomas > > ps I emailed USGS as well but not yet received any reply > > ------------------------------------------------------------------------ > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' > > From ed at TOPOZONE.COM Tue Feb 1 19:00:57 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 1 Feb 2005 22:00:57 -0500 Subject: USGS Urban coverage shapefile Message-ID: Thomas - The "urban" data Steve refers to is actually a different dataset. The USGS Urban Area orthophotography is a data set that started out very homogeneous and consistent, and is rapidly developing into quite an assortment of data in various resolutions, color formats, and projections. The original image tiles themselves are either in UTM or various State Plane coordinate systems, so they are not rectangles in lat/lon space. I've developed a set of index shapefiles for this data for just the purpose you describe - we serve this data set on TopoZone and use the shapefiles to indicate through the UI whether there's high-resolution imagery at any given location. But these are indexes for our versions of these data sets, not the seamless.usgs.gov data (we don't use their WMS service, but host and serve the imagery ourselves). They wouldn't be useful since they don't accurately describe the data you're viewing. I think you'll have to see what you can find from the USGS, since they're the only ones who can accurately describe the current subset of this data set that's available on seamless.usgs.gov at any given time. Good luck! - Ed Ed McNierney TopoZone.com ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thomas Chesky Sent: Tuesday, February 01, 2005 8:18 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] USGS Urban coverage shapefile Hello, Does anybody know how to get the boundary of USGS Urban ortho coverage in shapefile (or WKT etc.) format. I could only found the coverage index in raster format on the USGS site (seamless.usgs.gov) I'd like to be able to tell having a lat/lon coordinates whether it falls into one of the Urban coverage areas. The USGS WMS server provides boudary rectangle only (in GetCapabilities), which obviously will not solve my problem as the coverages are not rectangles. There must be something like this otherwise how could USGS create the raster coverage index. Any help is greatly appreciated. Thomas ps I emailed USGS as well but not yet received any reply ________________________________ Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From kristjan at TARKVARASTUUDIO.EE Tue Feb 1 23:55:20 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 2 Feb 2005 09:55:20 +0200 Subject: PointObj draw labels In-Reply-To: Message-ID: Hi , try this: $point = ms_newPointObj(); $point->setXY( $markers_x, $markers_y); $line = ms_newLineObj(); $line->add( $point); $shape = ms_newShapeObj( MS_SHAPE_POINT); $shape->add( $line); $shape->set( 'text', "this is my label"); $shape->draw( $map, $layer, $image, 0, ''); Kristjan Annus >I can't seem to be ablt to draw the annotation on the dynamic points added >using $fPoint->draw($map,$points,$image,$class,"Test"); >I hope I do not need a labelitem, because I am drawing the points on an >empty point shapefile. Here is the mapfile: > >Thanks, >Rene. > >$image = $map->draw(); >$class = 0; >$points = $map->getLayerByName("FLDCHKPTS"); >$points->set("status", MS_ON); >$fPoint = ms_newPointObj(); >$fPoint->setXY($fDownX[$i],$fDownY[$i]); >$rtres = $fPoint->draw($map,$points,$image,$class,"Test"); >$fPoint->free(); > > > LAYER > NAME "FLDCHKPTS" > STATUS ON > TYPE POINT > MAXSCALE 500000 > DATA "D:/forestry/xtras/empty" > CLASS > NAME "Field Check Points" > STYLE > SYMBOL 7 > COLOR 0 150 0 > OUTLINECOLOR 0 0 0 > SIZE 10 > MINSIZE 1 > #MAXSIZE 100 > END > LABEL > TYPE BITMAP > SIZE LARGE > POSITION CR > COLOR 0 0 0 > END > END > END > > From bernhard.klingseisen at ALUMNI.FH-KAERNTEN.AT Wed Feb 2 00:12:05 2005 From: bernhard.klingseisen at ALUMNI.FH-KAERNTEN.AT (Bernhard Klingseisen) Date: Wed, 2 Feb 2005 02:12:05 -0600 Subject: AW: [UMN_MAPSERVER-USERS] Mapscript: PHP5 and Windows Message-ID: Hi, when I'm starting Apache 2.0.52 with the php_mapscript_45.dll extension, I get the following error message: PHP Startup: Mapscript: Unable to initialize module Module compiled with module API=20040412, debug=0, thread-safety=1 PHP compiled with module API=20041030, debug=0, thread-safety=1 These options need to match Maybe this helps you to understand my problem. Thanks Bernhard From ivan.mjartan at GEOVAP.CZ Wed Feb 2 01:02:55 2005 From: ivan.mjartan at GEOVAP.CZ (Ivan Mjartan) Date: Wed, 2 Feb 2005 10:02:55 +0100 Subject: small projection problem Message-ID: Hi David I was trying your suggestion but my mapserver sed msLoadMap(): Unknown identifier. Parsing error near (CONFIG):(line 17) and my map looks like: MAP extent -464212.053096 -1109640.531531 -442069.709461 -1093023.599057 imagecolor 255 255 255 size 800 600 UNITS METERS name "J" fontset "fontset.txt" symbolset symbol35.sym SHAPEPATH "c:\data_gis\index\" CONFIG "PROJ_LIB" "c:\proj\" . . . and mapserver verzion is I was also trying CONFIG PROJ_LIB "c:\proj\" or CONFIG PROJ_LIB c:\proj\ and it does not work :( thanks a lot ivan ] >Ivan, > >In the Map file, you should add a line like this in the MAP object: > > CONFIG "PROJ_LIB" "c:\proj\" >David. > >David J. Fawcett >MN Office of Environmental Assistance > >>>> Ivan Mjartan 2/1/2005 9:09:12 AM >>> >Hi I have small problem with file epsg, because it's location in my >project (I am running on W2K and IIS) have to be >c:\proj\nad\epsg > >Know somebody where can i redefine location of epsg file? I thing that >i have to make some change in code of mapserver but i dont known where. >thanks for your reply. >ivan mjartan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ieuan.williams at GMAIL.COM Wed Feb 2 01:30:47 2005 From: ieuan.williams at GMAIL.COM (Ieuan Williams) Date: Wed, 2 Feb 2005 03:30:47 -0600 Subject: Window setup Message-ID: I'm trying to setup the windows demo on a win2000 PC. I'm using Apache2 as a webserver. I've got the index page to appear, but when I press the initialize button (using ie6) I get a file download box appearing prompting me to open or save mapserv.exe. When I choose open a dos window opens and closes and that's it! When using mozilla firefox I get a message box saying that "c is not a registered protocol". I've read all the documentation and searched these archives for a solution. Another newbie user posted the same symptoms back in August but he didn't get any replies. Any help will be greatfully appreciated. Thanks Ieuan Williams From dejan.gambin at PULA.HR Wed Feb 2 04:51:16 2005 From: dejan.gambin at PULA.HR (Dejan Gambin) Date: Wed, 2 Feb 2005 06:51:16 -0600 Subject: Moving objects in MapServer Message-ID: Hello, I would like to know if there is a possibility to move the objects on the map from one location to other with MapServer. I need it for an application I would like to implement in my environment. I am using ESRI shapefiles as data source. Thanks, Dejan Gambin From lfilak at MEDINACO.ORG Wed Feb 2 05:46:54 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 2 Feb 2005 08:46:54 -0500 Subject: USGS Urban coverage shapefile Message-ID: The following message was sent by Thomas Chesky on Tue, 1 Feb 2005 17:18:12 -0800. > Hello, > > Does anybody know how to get the boundary of USGS Urban ortho coverage in shapefile (or WKT etc.) format. I could only found the coverage index in raster format on the USGS site (seamless.usgs.gov) I'd like to be able to tell having a lat/lon coordinates whether it falls into one of the Urban coverage areas. The USGS WMS server provides boudary rectangle only (in GetCapabilities), which obviously will not solve my problem as the coverages are not rectangles. > > There must be something like this otherwise how could USGS create the raster coverage index. > > Any help is greatly appreciated. > > Thomas > > ps I emailed USGS as well but not yet received any reply Thomas, For our tiny neck of the woods we ended up digitizing the urban areas we needed because we were never able to obtain anything but pdf's. That was a couple of years ago so possibly things have changed.? Lowell From fwarmerdam at GMAIL.COM Wed Feb 2 06:08:23 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 2 Feb 2005 09:08:23 -0500 Subject: small projection problem In-Reply-To: <005401c50905$fbcc8be0$e901a8c0@PC24> Message-ID: On Wed, 2 Feb 2005 10:02:55 +0100, Ivan Mjartan wrote: > > Hi David > > I was trying your suggestion but my mapserver sed > > msLoadMap(): Unknown identifier. Parsing error near (CONFIG):(line 17) > > and my map looks like: > > MAP > extent -464212.053096 -1109640.531531 -442069.709461 -1093023.599057 > imagecolor 255 255 255 > size 800 600 > UNITS METERS > name "J" > fontset "fontset.txt" > symbolset symbol35.sym > SHAPEPATH "c:\data_gis\index\" > CONFIG "PROJ_LIB" "c:\proj\" > . > . > . > > and mapserver verzion is > Ivan, The CONFIG keyword is relatively recently. It works in 4.4, perhaps in 4.2 as well. But not pre 4.2. Setting PROJ_LIB as an environment variable is also fine - even in old versions. 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 joseluismapserver at YAHOO.ES Wed Feb 2 06:37:21 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 2 Feb 2005 15:37:21 +0100 Subject: pointObj point.draw(..) Message-ID: Hello to everybody I have finally solved how to draw a point on my map. But I have an other doubt: in the definition of the draw method of the pointObj you have a text parameter. I thought that that would be writen next to the point, but it doesn't. Is that normal?Is it just a reference to name the point in some way? this is my program: mapObj map = new mapObj("mymap.map"); imageObj img=map.draw(); layerObj point_layer=new layerObj(map); point_layer=map.getLayerByName("Point"); pointObj pt=new pointObj(3460000,5540000,0,0); pt.draw(map,point_layer,img,0,"point1"); And part of my .map file: LAYER NAME "Point" TYPE POINT STATUS DEFAULT CLASS STYLE COLOR 255 0 0 END END END If I want to draw a text next to the point, what do I have to use, a labelObj? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at GOMOOS.ORG Wed Feb 2 06:58:53 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 2 Feb 2005 09:58:53 -0500 Subject: pointObj point.draw(..) In-Reply-To: <20050202143721.42093.qmail@web26404.mail.ukl.yahoo.com> Message-ID: At 03:37 PM 02/02/2005 +0100, Jose Luis Gonzalez wrote: >Hello to everybody >I have finally solved how to draw a point on my map. >But I have an other doubt: in the definition of the draw method of the pointObj you have a text parameter. I thought that that would be writen next to the point, but it doesn't. Is that normal?Is it just a reference to name the point in some way? >this is my program: > > mapObj map = new mapObj("mymap.map"); > imageObj img=map.draw(); > layerObj point_layer=new layerObj(map); > point_layer=map.getLayerByName("Point"); > pointObj pt=new pointObj(3460000,5540000,0,0); > pt.draw(map,point_layer,img,0,"point1"); > >And part of my .map file: > > LAYER > NAME "Point" > TYPE POINT > STATUS DEFAULT > CLASS > STYLE > COLOR 255 0 0 > END > END > END > >If I want to draw a text next to the point, what do I have to use, a labelObj? Yes. You will need a LABEL section in your CLASS section in your map file. And you will probably need to call map.drawLabelCache(). From agillesp at VT.EDU Wed Feb 2 07:30:18 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 2 Feb 2005 10:30:18 -0500 Subject: Edit Capabilities Message-ID: Are there any editing capabilities with MapServer? I noticed the SWIG-based Mapscript has shapeObj::setValue() ... but I tried this last night and didn't get any permanent changes. I'm using PostGIS, so that may be the culprit. Or is there no editing capabilities at all whatever your data source is? Thanks. -Abe From sgillies at FRII.COM Wed Feb 2 07:20:24 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 2 Feb 2005 08:20:24 -0700 Subject: Edit Capabilities In-Reply-To: Message-ID: On Feb 2, 2005, at 8:30 AM, Abe Gillespie wrote: > Are there any editing capabilities with MapServer? I noticed the > SWIG-based Mapscript has shapeObj::setValue() ... but I tried this last > night and didn't get any permanent changes. I'm using PostGIS, so that > may be the culprit. Or is there no editing capabilities at all > whatever your data source is? > > Thanks. > -Abe > > Abe, Editing is outside the scope of MapServer. The setValue() method exists only to set attribute values of shapeObjs prior to adding them to a layer's inline feature array. Once they are added to the layer, no other modification is possible. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From joseluismapserver at YAHOO.ES Wed Feb 2 08:02:12 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Wed, 2 Feb 2005 17:02:12 +0100 Subject: Draw circle Message-ID: Is there any easy way to draw a circle on a map without having to make it your self by drawing small lines? thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From covariance at SHAW.CA Wed Feb 2 08:11:06 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Wed, 2 Feb 2005 10:11:06 -0600 Subject: mapserver4.4.1 binary build Message-ID: John: the "MapServer 4.4 Win32 Compilation and Installation HOWTO" at http://mapserver.gis.umn.edu/doc44/win32_compile-howto.html explains that you will likely have to fix this in regex.c, after fixing it your code should look like: //extern void printchar (); void printchar( int i ) {} instead of: extern void printchar (); I suggest you open the HOWTO and search for "printchar" I'm in the middle of trying to sort out problems with the WIN32 build myself and came across this. Bob Bruce On Tue, 1 Feb 2005 12:19:37 +0200, John Spotten wrote: >Hi All, > >tried to use binary mapserver with sde support for windows from http://hobu.stat.iastate.edu/mapserver/ but it requires sde90.dll. > >I only have sde83.dll so I tried to build the basic mapserver using mapserver4.4.1.tar.gz with no changes to nmake.opt file to start of with. > >required pre-built gd2.0.33 files in c:\projects\gdwin32\ and regex-0.12 files in c:\projects\regex-0.12\ and mapserver base directory is c:\projects\mapserver. > >all obj files including regex.obj, mapserver_i.lib, mapserver_i.exp and mapserver.lib were created but in the linking the following was produced > > Creating library mapserver_i.lib and object mapserver_i.exp >regex.obj : error LNK2001: unresolved external symbol _printchar >libmap.dll : fatal error LNK1120: 1 unresolved externals >NMAKE : fatal error U1077: 'link' : return code '0x460' >Stop. > >any clues. is regex.obj compatible with mapserver 4.4.1 > >bye >john > >John Spotten >Transport Modeller/GIS Developer >Directorate of Transport, Roads and Stormwater >City of Cape Town >Tel : +27 21 4067325 >Fax : +27 21 4186989 >Cell : +27 846678901 >Email : john.spotten at capetown.gov.za >Web : www.capetown.gov.za > <> > >QkVHSU46VkNBUkQNClZFUlNJT046Mi4xDQpOOlNwb3R0ZW47Sm9obg0KRk46Sm9obiBTcG90dGVu >DQpPUkc6Q2l0eSBPZiBDYXBlIFRvd247TUVUTElGRSBCVUlMRElORw0KVElUTEU6RW5nL1BsYW5u >ZXINClRFTDtXT1JLO1ZPSUNFOjQxOC02ODMwDQpFTUFJTDtQUkVGO0lOVEVSTkVUOkpvaG4uU3Bv >dHRlbkBjYXBldG93bi5nb3YuemENClJFVjoyMDA0MTAyOFQwNDU5MDZaDQpFTkQ6VkNBUkQNCg== > >NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications > and disclaimers (???disclaimer???) published at www.capetown.gov.za/disclaimer/email.pdf. >Please read the disclaimer before opening any attachment or taking any other action in >terms of this e-mail. If you cannot access the disclaimer, kindly send an email to >infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail >or opening any attachment you agree to be bound by the provisions of the disclaimer. > >------------------------------------------------- From jdport at VERITIME.COM Wed Feb 2 08:24:37 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 2 Feb 2005 11:24:37 -0500 Subject: Draw circle Message-ID: Put something like this in your map file. The numbers in the "points" section refer to the diameter in the X direction and the diameter in the Y direction. If the numbers are the same you get a circle, otherwise you will get an ellipse. SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 12 12 END END -Jeff ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, February 02, 2005 11:02 AM Subject: [UMN_MAPSERVER-USERS] Draw circle Is there any easy way to draw a circle on a map without having to make it your self by drawing small lines? thank you Jose Luis -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at MARKRODRIGO.COM Wed Feb 2 09:28:24 2005 From: mark at MARKRODRIGO.COM (Mark Rodrigo) Date: Wed, 2 Feb 2005 11:28:24 -0600 Subject: Arizona MapServer Presentation at AGIC March 3rd Message-ID: Hello All: I am making a push to get MapServer more accepted here in the SW of the U.S., and will be presenting some of the following at the AGIC IMS meeting: 1. Mapserver History & Mapserver website. 5 minutes. 2. Windows Configuration and deployment of software 10 minutes. 3. Map Configuration File 10 minutes. 4. GMAP Interface and demo of Mapserver site of Mexico 10 minutes. 5. Questions Any documents, info, links, Mapserver verses such and such, kind of information would be helpful. I won't lie to you. It's going to be a tough room with all other presentations being done in ArcIMS. I need all the help I can get to hold them off. Thanks Mark Rodrigo -- From Tom.Kralidis at EC.GC.CA Wed Feb 2 10:09:16 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 2 Feb 2005 13:09:16 -0500 Subject: FW: [postgis-users] About Invalid OGC WKT Error Message-ID: Hi, FYI below. Does this have any bearing on how we use MapServer to connect to PostGIS? I'm am trying to connect MapServer CVS (layer to a postgis connection) with the following defs: CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=devgeodb" DATA "the_geom from service_endpoints" ...and get no data back. ..Tom -----Original Message----- From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net] On Behalf Of Markus Schaber Sent: Wednesday, 02 February, 2005 12:26 To: PostGIS Users Discussion Subject: Re: [postgis-users] About Invalid OGC WKT Error Hi, Koji, Koji Yano schrieb: > Example2: I ran shp2pgsql and imported some shape files successfully. > When I use only 'Select the_geom', I got a result like > 0106000020E610000001000000010300000001000000660000009C9FD6D... This is caused by the change of the canonical representation in PostGIS 1.0. All applications that use PostGIS specific ways to acces the GIS data instead of standard OpenGIS methods will have to be fixed to work with PostGIS 1.0. HTH, Markus -- markus schaber | dipl. informatiker logi-track ag | rennweg 14-16 | ch 8001 z?rich phone +41-43-888 62 52 | fax +41-43-888 62 53 mailto:schabios at logi-track.com | www.logi-track.com _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users From kristjan at TARKVARASTUUDIO.EE Wed Feb 2 10:30:50 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 2 Feb 2005 20:30:50 +0200 Subject: Edit Capabilities In-Reply-To: Message-ID: Editing in the meaning of adding new objects to some layers can be done with PHP Mapscript. There are functions to write new shape objects to shpafiles or you can save the changes in some database like MySQL. Kristjan > On Feb 2, 2005, at 8:30 AM, Abe Gillespie wrote: > >> Are there any editing capabilities with MapServer? I noticed the >> SWIG-based Mapscript has shapeObj::setValue() ... but I tried this last >> night and didn't get any permanent changes. I'm using PostGIS, so that >> may be the culprit. Or is there no editing capabilities at all >> whatever your data source is? >> >> Thanks. >> -Abe >> >> > > Abe, > > Editing is outside the scope of MapServer. The setValue() method > exists only to set attribute values of shapeObjs prior to adding them > to a layer's inline feature array. Once they are added to the layer, > no other modification is possible. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies From lehrs at ERAU.EDU Wed Feb 2 10:55:01 2005 From: lehrs at ERAU.EDU (Steve Lehr) Date: Wed, 2 Feb 2005 13:55:01 -0500 Subject: Can you find intersecting polygons? In-Reply-To: <41D11536.8010109@geosignal.fr> Message-ID: Is it possible to find intersecting polygons with PHP Mapscript? (or other if not) I'm thinking I'd like to use the JAVA front so that a user can select a random polygon on the screen, then submit the random polygon. Behind the scenes convert those points to extent type coordinates, generate a polygon, then find the interersecting polygons underneath. Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 From agillesp at VT.EDU Wed Feb 2 11:24:11 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 2 Feb 2005 14:24:11 -0500 Subject: Can you find intersecting polygons? In-Reply-To: Message-ID: You should be able to use shapeObj::intersects() to test for intersecting polygons. This, of course, assumes you know in advance the polygons you want to test. You can also do mapObj,layerObj::queryByShape() One of these should solve your problem. -Abe On Feb 2, 2005, at 1:55 PM, Steve Lehr wrote: > Is it possible to find intersecting polygons with PHP Mapscript? (or > other > if not) > > I'm thinking I'd like to use the JAVA front so that a user can select a > random polygon on the screen, then submit the random polygon. Behind > the > scenes convert those points to extent type coordinates, generate a > polygon, > then find the interersecting polygons underneath. > > Steven Lehr > Assistant Professor > Freshmen Program > College of Engineering > Embry-Riddle Aeronautical University (LB159) > 600 S. Clyde Morris Blvd. > Daytona Beach, FL 32114-3900 > 386-226-7740 > From jegou at UNIV-TLSE2.FR Wed Feb 2 11:19:27 2005 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Wed, 2 Feb 2005 20:19:27 +0100 Subject: MapServer crash In-Reply-To: Message-ID: Hello, i've a problem puzzling me for quite a long time, and after checking many potential solutions i seek your advice. When i use php_mapscript the map is generated, but when i use the mapserv directly in an url or a html file, it crashes with the infamous "premature end of script headers" in apache server error.log. Here you can test that, with the tutorial files : http://serv-1-3-69.lycos-vds.com/tutorial/test1.php http://serv-1-3-69.lycos-vds.com/cgi-bin/mapserv40?map=/var/www/tutorial/example1-1.map&mode=map The server is a debian woody linux fresh installed, phpinfo on http://serv-1-3-69.lycos-vds.com/info.php, the server root is /var/www, the tutorial dir and files are readable. Any suggestion ? Thanks ! -- Laurent J?gou IGE Cartographe UTM - D?pt. G?ographie 31058 TOULOUSE Cedex 9 - 05.61.50.43.89 From woodbri at SWOODBRIDGE.COM Wed Feb 2 11:22:01 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 2 Feb 2005 14:22:01 -0500 Subject: Can you find intersecting polygons? In-Reply-To: Message-ID: Steve Lehr wrote: > Is it possible to find intersecting polygons with PHP Mapscript? (or other > if not) > > I'm thinking I'd like to use the JAVA front so that a user can select a > random polygon on the screen, then submit the random polygon. Behind the > scenes convert those points to extent type coordinates, generate a polygon, > then find the interersecting polygons underneath. I may be wrong, but I think you can do a query to get the polygon and then do a subsequent queryByShape to get the underlying objects. -Steve W. From dylan at IICI.NO-IP.ORG Wed Feb 2 11:34:29 2005 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Wed, 2 Feb 2005 11:34:29 -0800 Subject: Query modes Message-ID: Greetings! I have a working Mapserver setup, where it is possible to query polygons, and then be magically wisked away to the information about that polygon... I am curious about any other "Query Modes" that would instead of taking me to a query template, highlight all polygons that have the same ID in the associated attribute table... Is this possible, or just plain crazy? Thanks in advance! -- Dylan Beaudette Soils and Biogeochemistry Graduate Group University of California at Davis 530.754.7341 From dbarron at DSWLLC.COM Wed Feb 2 11:37:17 2005 From: dbarron at DSWLLC.COM (Dan Barron) Date: Wed, 2 Feb 2005 11:37:17 -0800 Subject: Help to Re-Project Map Layers on the Fly Message-ID: Hello, I am looking for a little help to re-project a map layer to LAT/LON for a single layer. Below is the .prj file - how do I define this projection in the layer object of the map file? PROJCS["unnamed", GEOGCS["unnamed",DATUM["D_unnamed",SPHEROID["Clarke-1866",6378206.4,294.978698213901]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["standard_parallel_1",70], PARAMETER["standard_parallel_2",50], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",110], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["METER",1]] Thanks, Dan Barron -------------- next part -------------- An HTML attachment was scrubbed... URL: From carloseduardo at COSTARRICENSE.CR Wed Feb 2 12:08:32 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Wed, 2 Feb 2005 14:08:32 -0600 Subject: msLoadMap(): Unable to access file Message-ID: Hi list. I'm trying to work in suse 9.1, but i have a problem. This is my situation: The mapserv file is located in this direction: /srv/www/cgi-bin/ The .map and .html files are located in: /srv/www/htdocs/sirzee/ The .shp files are located in: /srv/www/htdocs/sirzee/data/ I'm using this url to generate the map: "http://localhost/cgi-bin/mapserv?map=/sirzee/Prueba.map" but this message appears: msLoadMap(): Unable to access file. (/sirzee/Prueba.map) I also used this url: "http://localhost/cgi-bin/mapserv?map=/htdocs/sirzee/Prueba.map" "http://localhost/cgi-bin/mapserv?map=/srv/www/htdocs/sirzee/Prueba.map" and moving the .map file to these directions, but the same message always appears. I have apache2 installed and running The httpd.conf and php.ini files are located in: /srv/www/dcmms/conf/ I'm not sure if the error message is generated for a wrong configuration of the httpd and php files. Please, i need some ideas. _______________________________________ Yo me registr? en www.costarricense.cr From thomaschesky at YAHOO.COM Wed Feb 2 12:04:08 2005 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Wed, 2 Feb 2005 12:04:08 -0800 Subject: USGS Urban coverage shapefile In-Reply-To: <20050202134641.572A61A65A8@mail.medinaco.org> Message-ID: Lowell, Stephen, Ed, Thanks for the replies. I'll try to contact USGS again. In the meantime, is there a free GIS tool (preferrably on Windows) I could use to 1) Get the WMS layer of a given USGS Urban ortho area 2) Use a "drawing" tool to draw the boundary myself and save that polygon as shapefile? It's manual labor, but better than not having exact coverage :-) Thanks Thomas Lowell Filak wrote: The following message was sent by Thomas Chesky on Tue, 1 Feb 2005 17:18:12 -0800. > Hello, > > Does anybody know how to get the boundary of USGS Urban ortho coverage in shapefile (or WKT etc.) format. I could only found the coverage index in raster format on the USGS site (seamless.usgs.gov) I'd like to be able to tell having a lat/lon coordinates whether it falls into one of the Urban coverage areas. The USGS WMS server provides boudary rectangle only (in GetCapabilities), which obviously will not solve my problem as the coverages are not rectangles. > > There must be something like this otherwise how could USGS create the raster coverage index. > > Any help is greatly appreciated. > > Thomas > > ps I emailed USGS as well but not yet received any reply Thomas, For our tiny neck of the woods we ended up digitizing the urban areas we needed because we were never able to obtain anything but pdf's. That was a couple of years ago so possibly things have changed.? Lowell __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed Feb 2 12:09:09 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 2 Feb 2005 15:09:09 -0500 Subject: USGS Urban coverage shapefile Message-ID: Thomas - I don't know of a free one, but if you can find a free GIS desktop client with WMS access and editing capabilities you could do it. ArcView 9.0 (SP2) will do it, but it's about $1,500 away from being "free". - 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 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Thomas Chesky Sent: Wednesday, February 02, 2005 3:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] USGS Urban coverage shapefile Lowell, Stephen, Ed, Thanks for the replies. I'll try to contact USGS again. In the meantime, is there a free GIS tool (preferrably on Windows) I could use to 1) Get the WMS layer of a given USGS Urban ortho area 2) Use a "drawing" tool to draw the boundary myself and save that polygon as shapefile? It's manual labor, but better than not having exact coverage :-) Thanks Thomas Lowell Filak wrote: The following message was sent by Thomas Chesky on Tue, 1 Feb 2005 17:18:12 -0800. > Hello, > > Does anybody know how to get the boundary of USGS Urban ortho coverage in shapefile (or WKT etc.) format. I could only found the coverage index in raster format on the USGS site (seamless.usgs.gov) I'd like to be able to tell having a lat/lon coordinates whether it falls into one of the Urban coverage areas. The USGS WMS server provides boudary rectangle only (in GetCapabilities), which obviously will not solve my problem as the coverages are not rectangles. > > There must be something like this otherwise how could USGS create the raster coverage index. > > Any help is greatly appreciated. > > Thomas > > ps I emailed USGS as well but not yet received any reply Thomas, For our tiny neck of the woods we ended up digitizing the urban areas we needed because we were never able to obtain anything but pdf's. That was a couple of years ago so possibly things have changed.? Lowell __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Wed Feb 2 12:13:55 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 2 Feb 2005 15:13:55 -0500 Subject: Help to Re-Project Map Layers on the Fly Message-ID: Dan - PROJECTION proj=lcc lat_1=70.0 lat_2=50.0 lat_0=0.0 lon_0=-110.0 x_0=0.0 y_0=0.0 ellps=clrk66 datum=NAD27 END looks about right. Remember that you will need PROJECTION blocks for the OTHER layers and for the top-level map file to accurately describe the other inputs (if any) and the map image output projections as being lat/lon. - 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 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dan Barron Sent: Wednesday, February 02, 2005 2:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help to Re-Project Map Layers on the Fly Hello, I am looking for a little help to re-project a map layer to LAT/LON for a single layer. Below is the .prj file - how do I define this projection in the layer object of the map file? PROJCS["unnamed", GEOGCS["unnamed",DATUM["D_unnamed",SPHEROID["Clarke-1866",6378206.4,294. 978698213901]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["standard_parallel_1",70], PARAMETER["standard_parallel_2",50], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",110], PARAMETER["false_easting",0], PARAMETER["false_northing",0], UNIT["METER",1]] Thanks, Dan Barron -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Wed Feb 2 13:11:30 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 2 Feb 2005 15:11:30 -0600 Subject: Draw circle Message-ID: There is also a CIRCLE layer type. You can construct a shapefile of simple lines, 2 points per line. Where the points represent the bounding box for the circle (this works with inline features too). The LAYER might look like: LAYER NAME 'circles' TYPE CIRCLE DATA '/usr/local/data/circles' ... END Steve >>> Jeff Portwine 2/2/2005 10:24:37 AM >>> Put something like this in your map file. The numbers in the "points" section refer to the diameter in the X direction and the diameter in the Y direction. If the numbers are the same you get a circle, otherwise you will get an ellipse. SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 12 12 END END -Jeff ----- Original Message ----- From: Jose Luis Gonzalez To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, February 02, 2005 11:02 AM Subject: [UMN_MAPSERVER-USERS] Draw circle Is there any easy way to draw a circle on a map without having to make it your self by drawing small lines? thank you Jose Luis From woodbri at SWOODBRIDGE.COM Wed Feb 2 13:21:34 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 2 Feb 2005 16:21:34 -0500 Subject: Draw circle In-Reply-To: Message-ID: This sounds cool, is it in the documentation? Steve Lime wrote: > There is also a CIRCLE layer type. You can construct a shapefile of > simple lines, 2 points per line. Where the points represent the bounding > box for the circle (this works with inline features too). The LAYER > might look like: > > LAYER > NAME 'circles' > TYPE CIRCLE > DATA '/usr/local/data/circles' > ... > END > > Steve > > >>>>Jeff Portwine 2/2/2005 10:24:37 AM >>> > > > Put something like this in your map file. The numbers in the > "points" section refer to the diameter in the X direction and the > diameter in the Y direction. If the numbers are the same you get a > circle, otherwise you will get an ellipse. > > SYMBOL > NAME "circle" > TYPE ellipse > FILLED true > POINTS > 12 12 > END > END > > -Jeff > > ----- Original Message ----- > From: Jose Luis Gonzalez > To: MAPSERVER-USERS at LISTS.UMN.EDU > Sent: Wednesday, February 02, 2005 11:02 AM > Subject: [UMN_MAPSERVER-USERS] Draw circle > > > Is there any easy way to draw a circle on a map without having to > make it your self by drawing small lines? > > thank you > > Jose Luis > From cdaily at GMAIL.COM Wed Feb 2 14:05:58 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 2 Feb 2005 16:05:58 -0600 Subject: Finding which shape polygon a point is in with mapscript Message-ID: Why is everything so much harder than it seems? I'm trying to take a point, and find which shape within a polygon layer contains that point. The code I'm using is this: function get_containing($layer, $longitude, $latitude) { global $map; $point = ms_newPointObj(); $point->setXY($longitude, $latitude); $layer = $map->getLayerByName($layer); $layer->open(); for ($i=0; $layer->getShape(-1, $i) != -1; $i++) { $shape = $layer->getShape(-1, $i); if ($shape->contains($point)) { $layer->close(); return $shape; } } $layer->close(); return -1; } and the map layer I'm using is school districts: LAYER NAME "school_elm" TYPE POLYGON STATUS OFF DATA "tgr17031elm" TEMPLATE dummy PROJECTION "init=epsg:4326" END END The error I receive (on the line that calls getShape): Fatal error: [MapServer Error]: msLayerGetShape(): Shapefile layer has not been opened. Which doesn't make much sense, as I'm calling layer->open and it doesn't return an error on that. Can anyone see something wrong with this, or tell me an effective way to loop through all of the shapes within a layer? Is there a way to get the number of shapes in a layer? -Camden Daily From cmcguigan at EARTHCOMBER.COM Wed Feb 2 14:22:53 2005 From: cmcguigan at EARTHCOMBER.COM (Colin McGuigan) Date: Wed, 2 Feb 2005 16:22:53 -0600 Subject: MapServer crash In-Reply-To: <420127BF.4010103@univ-tlse2.fr> Message-ID: Laurent J?gou wrote: > Hello, i've a problem puzzling me for quite a long time, and after > checking many potential solutions i seek your advice. > > When i use php_mapscript the map is generated, but when i use the > mapserv directly in an url or a html file, it crashes with the infamous > "premature end of script headers" in apache server error.log. > > Here you can test that, with the tutorial files : > > http://serv-1-3-69.lycos-vds.com/tutorial/test1.php > http://serv-1-3-69.lycos-vds.com/cgi-bin/mapserv40?map=/var/www/tutorial/example1-1.map&mode=map I had this problem when I compiled mapserver --with-php and --with-php-regex. Although I didn't need mapserv as a CGI, I did find that I could compile mapserver with the PHP options to get a working php_mapscript.so, and then compile mapserver without the PHP options to get a working mapserv executable. --Colin McGuigan From bob.basques at CI.STPAUL.MN.US Wed Feb 2 14:38:36 2005 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 2 Feb 2005 16:38:36 -0600 Subject: Imagemaps for Oracle spatial layer Message-ID: All, I'm having problems with generating a correct imagemap for a Oracle Spatial layer. I've tried it with and without a SRID (Coordinate base) but I keep getting pixel values that are way out in left field, on the order of thousands of pixels, for a 900 x 800 pixel images. The images are being generated just fine though, which seems confusing. The data is being written to Oracle with AutoCAD 3D map, which is our data editor. This may be the problem, as we can succesfully make the same dataset generate the correct IMAGEMAPS when written from OGR. We're using a "CONNECTIONTYPE OGR" to read from Oracle right now. My question is: Does anyone know of any config items I should be looking at in order to write the data correctly to Oracle spatial in order for MapServer to read it correctly. Or, some Config items that may be reprojecting things for MapServer. Again, the images coming from MapServer for the layer look just fine, it's only the IMAGEMAPS that won't line up. On another note, I don't have my MapServ compiled with native Oracle reading, could there be differences with how OGR and Mapserver would read the data in from ORACLE? Thanks bobb From woodbri at SWOODBRIDGE.COM Wed Feb 2 14:31:00 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 2 Feb 2005 17:31:00 -0500 Subject: Finding which shape polygon a point is in with mapscript In-Reply-To: <16264e07050202140526c52a8@mail.gmail.com> Message-ID: Well that is one way to attempt this feat, the other way would be to queryByPoint the polygon layer and let mapserver do the heavy lifting for you. I thought there were some example mapscript code for doing queries on the wiki or the website, but I couldn't find them doing a quick browse of it. Can someone point Camden at some examples of mapscript queries. -Steve W. Camden Daily wrote: > Why is everything so much harder than it seems? > > I'm trying to take a point, and find which shape within a polygon > layer contains that point. > > The code I'm using is this: > > function get_containing($layer, $longitude, $latitude) { > global $map; > $point = ms_newPointObj(); > $point->setXY($longitude, $latitude); > $layer = $map->getLayerByName($layer); > $layer->open(); > for ($i=0; $layer->getShape(-1, $i) != -1; $i++) { > $shape = $layer->getShape(-1, $i); > if ($shape->contains($point)) { > $layer->close(); > return $shape; } > } > $layer->close(); > return -1; > } > > and the map layer I'm using is school districts: > > LAYER > NAME "school_elm" > TYPE POLYGON > STATUS OFF > DATA "tgr17031elm" > TEMPLATE dummy > PROJECTION > "init=epsg:4326" > END > END > > The error I receive (on the line that calls getShape): > Fatal error: [MapServer Error]: msLayerGetShape(): Shapefile layer > has not been opened. > > Which doesn't make much sense, as I'm calling layer->open and it > doesn't return an error on that. > > Can anyone see something wrong with this, or tell me an effective way > to loop through all of the shapes within a layer? Is there a way to > get the number of shapes in a layer? > > -Camden Daily > From cdaily at GMAIL.COM Wed Feb 2 14:35:22 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 2 Feb 2005 16:35:22 -0600 Subject: Finding which shape polygon a point is in with mapscript In-Reply-To: <420154A4.2050002@swoodbridge.com> Message-ID: Thanks Stephen. I'm familiar with using queryByPoint to find the nearest point to another point, but hadn't explored using it with polygons. I'll give it a shot. Still curious about the strange errors I was receiving trying to loop through the layer though. From eric at GOMOOS.ORG Wed Feb 2 14:39:49 2005 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 2 Feb 2005 17:39:49 -0500 Subject: Finding which shape polygon a point is in with mapscript In-Reply-To: <420154A4.2050002@swoodbridge.com> Message-ID: I have some 3.6 Perl Mapscript code which does something similiar, which I can send you if you like. A quick look at the code shows that I always did a $layer->open($layer->{data}); i.e. passed an explicit shape file name to open. Eric At 05:31 PM 02/02/2005 -0500, Stephen Woodbridge wrote: >Well that is one way to attempt this feat, the other way would be to >queryByPoint the polygon layer and let mapserver do the heavy lifting >for you. I thought there were some example mapscript code for doing >queries on the wiki or the website, but I couldn't find them doing a >quick browse of it. > >Can someone point Camden at some examples of mapscript queries. > >-Steve W. > >Camden Daily wrote: >>Why is everything so much harder than it seems? >> >>I'm trying to take a point, and find which shape within a polygon >>layer contains that point. >> >>The code I'm using is this: >> >>function get_containing($layer, $longitude, $latitude) { >> global $map; >> $point = ms_newPointObj(); >> $point->setXY($longitude, $latitude); >> $layer = $map->getLayerByName($layer); >> $layer->open(); >> for ($i=0; $layer->getShape(-1, $i) != -1; $i++) { >> $shape = $layer->getShape(-1, $i); >> if ($shape->contains($point)) { >> $layer->close(); >> return $shape; } >> } >> $layer->close(); >> return -1; >>} >> >>and the map layer I'm using is school districts: >> >> LAYER >> NAME "school_elm" >> TYPE POLYGON >> STATUS OFF >> DATA "tgr17031elm" >> TEMPLATE dummy >> PROJECTION >> "init=epsg:4326" >> END >> END >> >>The error I receive (on the line that calls getShape): >> Fatal error: [MapServer Error]: msLayerGetShape(): Shapefile layer >>has not been opened. >> >>Which doesn't make much sense, as I'm calling layer->open and it >>doesn't return an error on that. >> >>Can anyone see something wrong with this, or tell me an effective way >>to loop through all of the shapes within a layer? Is there a way to >>get the number of shapes in a layer? >> >>-Camden Daily From jmckenna at DMSOLUTIONS.CA Wed Feb 2 14:49:51 2005 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 2 Feb 2005 17:49:51 -0500 Subject: Draw circle In-Reply-To: <4201445E.9060200@swoodbridge.com> Message-ID: It is mentioned in the mapfile-reference doc, but i've created a bug to add Steve's example to the doc (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1205). jeff Stephen Woodbridge wrote: > This sounds cool, is it in the documentation? > > Steve Lime wrote: > >> There is also a CIRCLE layer type. You can construct a shapefile of >> simple lines, 2 points per line. Where the points represent the bounding >> box for the circle (this works with inline features too). The LAYER >> might look like: >> >> LAYER >> NAME 'circles' >> TYPE CIRCLE >> DATA '/usr/local/data/circles' >> ... >> END >> >> Steve >> >> >>>>> Jeff Portwine 2/2/2005 10:24:37 AM >>> >> >> >> >> Put something like this in your map file. The numbers in the >> "points" section refer to the diameter in the X direction and the >> diameter in the Y direction. If the numbers are the same you get a >> circle, otherwise you will get an ellipse. >> >> SYMBOL >> NAME "circle" >> TYPE ellipse >> FILLED true >> POINTS >> 12 12 >> END >> END >> >> -Jeff >> >> ----- Original Message ----- >> From: Jose Luis Gonzalez >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Sent: Wednesday, February 02, 2005 11:02 AM >> Subject: [UMN_MAPSERVER-USERS] Draw circle >> >> >> Is there any easy way to draw a circle on a map without having to >> make it your self by drawing small lines? >> >> thank you >> >> Jose Luis >> > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From lester at LSCES.CO.UK Wed Feb 2 16:04:49 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Thu, 3 Feb 2005 00:04:49 +0000 Subject: USGS Urban coverage shapefile In-Reply-To: <20050202200409.88837.qmail@web54209.mail.yahoo.com> Message-ID: Thomas Chesky wrote: > In the meantime, is there a free GIS tool (preferrably on Windows) I > could use to > 1) Get the WMS layer of a given USGS Urban ortho area SAGA is doing a nice job for me. Just grabbed a couple of colours off an raster map, created a line drawing, and SAGA converted it to a shape file. Then I scaled things to give the right numbers. http://geosun1.uni-geog.gwdg.de/saga/html/index.php It's a bit heavy, but it does the job. > 2) Use a "drawing" tool to draw the boundary myself and save that > polygon as shapefile? > > It's manual labor, but better than not having exact coverage :-) The coastline took 3 hours to 'convert' so drawing might be quicker ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From tom at MINDCONTRACT.COM Wed Feb 2 18:40:52 2005 From: tom at MINDCONTRACT.COM (Thomas Riemer) Date: Wed, 2 Feb 2005 19:40:52 -0700 Subject: mapserver 4.1 Message-ID: Hi, I've got mapserver-4.4.1 with gdal and proj support compiled I am trying to use mapinfo .tab files. Has anyone successfully got 4.4.1 working for mapinfo TAB files? If not, can someone give me a clue as to which versions do work. If so, maybe you can tell me about this behavior: The behavior I am seeing is a blank image. It seems like its processing data - but it just returns a blank image. -Tom Riemer From tom at MINDCONTRACT.COM Wed Feb 2 18:44:42 2005 From: tom at MINDCONTRACT.COM (Thomas Riemer) Date: Wed, 2 Feb 2005 19:44:42 -0700 Subject: mapserver 4.4.1 - MapInfo files Message-ID: Hi, I am using mapserver 4.4.1 and trying to get it to read MapInfo files. I've worked through the scant samples - and think I have a working setup. Here's the problem: All I get is a blank image - doesn't seem to matter what I change. Has anyone else experienced this? Has anyone else got mapserver 4.4.1 working for MapInfo .tab files? If someone has gotten mapserver 4.4.1 working - would you be kind enough to send me the map file and maybe just the first 30 lines of ogrinfo on it? Helllllppppppp..... -Tom Riemer From richard.greenwood at GMAIL.COM Wed Feb 2 19:52:09 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 2 Feb 2005 20:52:09 -0700 Subject: Arizona MapServer Presentation at AGIC March 3rd In-Reply-To: Message-ID: I have a MapServer-based Teton County (Jackson Hole) GIS web site at: http://www2.tetonwyo.org/mapserver/ I'm not sure if this is of interest to your audience. Key features: ArcView / MapInfo style interface 1 foot color ortho imagery links to scanned lands record documents CGI / Java applet MapServer Up and running for 3 years Good luck with your presentation. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jzeisloft at GMAIL.COM Wed Feb 2 20:42:53 2005 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Wed, 2 Feb 2005 22:42:53 -0600 Subject: widget within a widget Message-ID: Hello All- I am attempting to place a widget within a widget, but am uncertain how to do this or whether this is even possible. Specifically, I am trying to place the Link widget within the Query widget. Ideally, I would like to place a link button on the title bar of each layer appearing in the query window that is hotlinked to another resource. I attempted to call the widget from within a second tag for the formatting of the layer title row: $szReturnValue .= "

$szTitle

\n"; $szReturnValue .= " \n"; $szReturnValue .= "\n"; But received an error: Parse error: parse error, unexpected T_STRING in C:\ms4w\apps\chameleon\htdocs\widgets\Query\QueryResults.phtml on line 401 I have to admit (if it isn't already painfully obvious) that I have very minimal computer programming / php experience. While I am fairly certain I can write the function to utilize URLs from a dbf file and the code to make the widget appear only when appropriate, I am lost as to where or how to place the code (and am I missing some other code that would be required to do this??) to call the Link widget in the first place. I am extremely grateful for any advice you can offer. Thank you in advance for your help! Jennifer Zeisloft From jzeisloft at GMAIL.COM Wed Feb 2 20:47:54 2005 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Wed, 2 Feb 2005 22:47:54 -0600 Subject: oops - wrong listserv Message-ID: Hello again - My apologies... I meant to send the email regarding the "widget within a widget" question to the Chameleon list-serv. Jennifer Zeisloft From fwarmerdam at GMAIL.COM Wed Feb 2 21:25:05 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 3 Feb 2005 00:25:05 -0500 Subject: mapserver 4.1 In-Reply-To: <42018F34.6050808@mindcontract.com> Message-ID: On Wed, 2 Feb 2005 19:40:52 -0700, Thomas Riemer wrote: > Hi, > I've got mapserver-4.4.1 with gdal and proj support compiled > > I am trying to use mapinfo .tab files. > > Has anyone successfully got 4.4.1 working for mapinfo TAB files? > > If not, can someone give me a clue as to which versions do work. > > If so, maybe you can tell me about this behavior: > > The behavior I am seeing is a blank image. > > It seems like its processing data - but it just returns a blank > image. Tom, There are all sorts of possible reasons for this, including stuff like your map extent and the region of the file not overlapping. Do you believe the problem is specific to tab files? Try translating the data to shape, and trying that directly or through OGR. There are tricky aspects to handling auto-styling with TAB files. But raw vector rendering should be essentially the same with them as any format. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jegou at UNIV-TLSE2.FR Wed Feb 2 23:13:42 2005 From: jegou at UNIV-TLSE2.FR (=?ISO-8859-1?Q?Laurent_J=E9gou?=) Date: Thu, 3 Feb 2005 08:13:42 +0100 Subject: MapServer crash - solved In-Reply-To: <420152BD.3060308@earthcomber.com> Message-ID: Many thanks to Colin McGuigan, it was that ! Let's go to new mapserver adventures :-) From Dejan.Gambin at PULA.HR Wed Feb 2 23:50:33 2005 From: Dejan.Gambin at PULA.HR (Gambin Dejan) Date: Thu, 3 Feb 2005 08:50:33 +0100 Subject: Moving objects in MapServer Message-ID: To simplify things, I would like to show show some points on the map (coming from point shape file) and be able to move the point to another location on the map together with its attributes of course (for example, the map can be the map of my building and the points can be some objects in this building that can be moved from one room to another). Can it be done with MapServer, in a browser? Thanks Dejan From John.Spotten at CAPETOWN.GOV.ZA Wed Feb 2 23:39:17 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Thu, 3 Feb 2005 09:39:17 +0200 Subject: mapserver 4.4.1 binary build for windows Message-ID: Hi , I am trying to build windows binary with sde83 support. I have arcsde 8.3 installed but only have sde83.dll,sg83.dll and pe83.dll I need the sde83.lib,sg83.lib and pe83.lib stub files refered to in nmake.opt. is there a way of creating them from the dlls John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: -------------- next part -------------- NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- From bartvde at XS4ALL.NL Thu Feb 3 00:29:54 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Feb 2005 09:29:54 +0100 Subject: Moving objects in MapServer In-Reply-To: Message-ID: Hi, I don't know of any free out-of-the-box Mapserver solution which can provide you with this functionality. Ofcourse it is possible to build such a thing yourself with eg PHP/Mapscript if you have enough time on your side. The commercial IMF framework from Moximedia can do this out-of-the-box though: http://www.moximedia.com/imf.html Best regards, Bart > To simplify things, I would like to show show some points on the map > (coming from point shape file) and be able to move the point to another > location on the map together with its attributes of course (for example, > the map can be the map of my building and the points can be some objects > in this building that can be moved from one room to another). > > Can it be done with MapServer, in a browser? > > Thanks > > Dejan > > From piero.cavalieri at HEIDI.IT Thu Feb 3 00:30:03 2005 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 3 Feb 2005 02:30:03 -0600 Subject: Moving objects in MapServer Message-ID: You could find some code for this, looking at DCMMS applications, for example. It can be found here: http://dcmms.sourceforge.net/ Cheers Piero Gambin Dejan wrote: >To simplify things, I would like to show show some points on the map >(coming from point shape file) and be able to move the point to another >location on the map together with its attributes of course (for example, >the map can be the map of my building and the points can be some objects >in this building that can be moved from one room to another). > >Can it be done with MapServer, in a browser? > >Thanks > >Dejan > From ascheuer at INTRANETZ.DE Thu Feb 3 00:22:08 2005 From: ascheuer at INTRANETZ.DE (Norbert Ascheuer) Date: Thu, 3 Feb 2005 09:22:08 +0100 Subject: mapserver 4.4.1 - MapInfo files Message-ID: Hi Tom, I got it running with the following layer specification LAYER NAME "Test_Vector_1" TYPE POLYGON CONNECTIONTYPE OGR CONNECTION "test.TAB,0" STATUS DEFAULT TRANSPARENCY 50 STYLEITEM "AUTO" CLASS END END Be sure to add the empty CLASS END block. Otherwise I have the same problem that the layer is not visible. Does anybody have an explanation for this feature? Norbert -- +--------------------------+--------------------------------------+ | Dr. Norbert Ascheuer | Phone +49 30 / 28 38 81 80 | | Intranetz GmbH | Fax +49 30 / 28 38 81 88 | | Bergstr. 22 | Email ascheuer at intranetz.de | | 10115 Berlin | WWW http://www.intranetz.de | | Germany | | +--------------------------+--------------------------------------+ From bartvde at XS4ALL.NL Thu Feb 3 00:35:18 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Feb 2005 09:35:18 +0100 Subject: mapserver 4.4.1 binary build for windows In-Reply-To: <875F594C85E9914C841109EADA425E3511DD40@CBD-METLIFE-001.capetown.gov.z a> Message-ID: Hi John, they should be present in $(SDEHOME)/lib. See also: http://www.esri.com/devsupport/devconn/sde/documents/how_to_compile.doc Best regards, Bart > Hi , > > I am trying to build windows binary with sde83 support. > > I have arcsde 8.3 installed but only have sde83.dll,sg83.dll and > pe83.dll > > I need the sde83.lib,sg83.lib and pe83.lib stub files refered to in > nmake.opt. > > is there a way of creating them from the dlls > > John Spotten > > Transport Modeller/GIS Developer > Directorate of Transport, Roads and Stormwater > City of Cape Town > Tel : +27 21 4067325 > Fax : +27 21 4186989 > Cell : +27 846678901 > Email : john.spotten at capetown.gov.za > Web : www.capetown.gov.za > <> > From lolivieri at IMTEAM.IT Thu Feb 3 00:28:31 2005 From: lolivieri at IMTEAM.IT (Leonardo Olivieri) Date: Thu, 3 Feb 2005 09:28:31 +0100 Subject: Use mapserver within J2EE application Message-ID: mapserver 4.4.1 binary build for windowshello, where is a tutorial Java Mapscript or examples? Thank's LEO -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Feb 3 01:00:14 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 3 Feb 2005 10:00:14 +0100 Subject: Use mapserver within J2EE application In-Reply-To: <02a301c509ca$57caf610$7a0aa8c0@imteam.local> Message-ID: Hi Leo, Java Mapscript, see e.g.: http://www.unicolet.org/mapserver/compile.html http://www.unicolet.org/mapserver/tomcat.html For examples, you could just refer to any other SWIG Mapscript reference and convert these examples to the Java language. e.g.: http://users.frii.com/sgillies/projects/mapscript/ Best regards, Bart > mapserver 4.4.1 binary build for windowshello, > where is a tutorial Java Mapscript or examples? > > Thank's > LEO > > From lfilak at MEDINACO.ORG Thu Feb 3 05:21:09 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 3 Feb 2005 08:21:09 -0500 Subject: Finding which shape polygon a point is in with mapscript Message-ID: The following message was sent by Stephen Woodbridge on Wed, 2 Feb 2005 17:31:00 -0500. > Well that is one way to attempt this feat, the other way would be to > queryByPoint the polygon layer and let mapserver do the heavy lifting > for you. I thought there were some example mapscript code for doing > queries on the wiki or the website, but I couldn't find them doing a > quick browse of it. > > Can someone point Camden at some examples of mapscript queries. > > -Steve W. > > Camden Daily wrote: > > Why is everything so much harder than it seems? > > > > I'm trying to take a point, and find which shape within a polygon > > layer contains that point. > > > > The code I'm using is this: > > > > function get_containing($layer, $longitude, $latitude) { > > global $map; > > $point = ms_newPointObj(); > > $point->setXY($longitude, $latitude); > > $layer = $map->getLayerByName($layer); > > $layer->open(); > > for ($i=0; $layer->getShape(-1, $i) != -1; $i++) { > > $shape = $layer->getShape(-1, $i); > > if ($shape->contains($point)) { > > $layer->close(); > > return $shape; } > > } > > $layer->close(); > > return -1; > > } > > > > and the map layer I'm using is school districts: > > > > LAYER > > NAME "school_elm" > > TYPE POLYGON > > STATUS OFF > > DATA "tgr17031elm" > > TEMPLATE dummy > > PROJECTION > > "init=epsg:4326" > > END > > END > > > > The error I receive (on the line that calls getShape): > > Fatal error: [MapServer Error]: msLayerGetShape(): Shapefile layer > > has not been opened. > > > > Which doesn't make much sense, as I'm calling layer->open and it > > doesn't return an error on that. > > > > Can anyone see something wrong with this, or tell me an effective way > > to loop through all of the shapes within a layer? Is there a way to > > get the number of shapes in a layer? > > > > -Camden Daily > > Camden, There are some examples under the wiki with the newest one being for 4.2 though. http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PerlMapScriptExamples35 HTH Lowell From kgrootendorst at BAIRD.COM Thu Feb 3 07:42:36 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Thu, 3 Feb 2005 09:42:36 -0600 Subject: Zoom - php help Message-ID: Below is code I've used for zooming to a polygon. Can anyone point me in the right direction for zooming to a point feature? I'm unclear as to how I determine and set the extents for a point. Thanks. if (isset( $http_form_vars["doParcelZoom"]) && ($http_form_vars ["doParcelZoom"] > "0" )) { echo "zoom to parcel"; // the Parcel number to query for $szParcelNumber = $http_form_vars["parcelnum"]; echo "$szParcelNumber"; // the current extents will be the default if we fail. $oExtents = $oMapSession->oMap->extent; $oldExtents=$oExtents; //get layer name $oParcelLayer = $oMapSession->oMap->getLayerByName( "ParcelData" ); $oParcelLayer->queryByAttributes("PIN", $szParcelNumber, MS_SINGLE ); $results = $oParcelLayer->getNumResults(); //echo "$results"; //now check to see if there are any results if ($oParcelLayer->getNumResults() > 0 ) { echo " results2"; //at least one result, assume only one for this example $oResult = $oParcelLayer->getResult(0); //oResult is a resultCacheMemberObj //$oParcelLayer->open($oMapSession->oMap->shapepath); $oParcelLayer->open(); echo " results3"; $oShape = $oParcelLayer->GetShape($oResult- >tileindex,$oResult->shapeindex); //**** problem? echo " results4"; $oExtents = $oShape->bounds; echo " results5"; $oShape->free(); //at this point we might add a buffer to the extents $nXBuffer = ( $oExtents->maxx - $oExtents->minx )*5; $nYBuffer = ( $oExtents->maxy - $oExtents->miny )*5; $nMinX = $oExtents->minx - $nXBuffer; $nMaxX = $oExtents->maxx + $nXBuffer; $nMinY = $oExtents->miny - $nYBuffer; $nMaxY = $oExtents->maxy + $nYBuffer; //$nMinX = $oExtents->minx; //$nMaxX = $oExtents->maxx; //$nMinY = $oExtents->miny; //$nMaxY = $oExtents->maxy; $oExtents->setextent( $nMinX, $nMinY, $nMaxX, $nMaxY ); //echo "$nMinX"; //echo "$nMaxX"; //echo "$nMinY"; //echo "$nMaxY"; } else{ echo " no results";} $width=$oMapSession->oMap->width; $height=$oMapSession->oMap->height; //set map in pixel units $px1=$width/($oldExtents->maxx-$oldExtents->minx)*($oExtents->minx- $oldExtents->minx); $px2=$width/($oldExtents->maxx-$oldExtents->minx)*($oExtents->maxx- $oldExtents->minx); $py1=$height/($oldExtents->maxy-$oldExtents->miny)*($oldExtents- >maxy-$oExtents->maxy); $py2=$height/($oldExtents->maxy-$oldExtents->miny)*($oldExtents- >maxy-$oExtents->miny); $oMapNavigator->zoomRectangle($px1, $py2, $px2, $py1); //$oMapNavigator->zoomRectangle($nMinX, $nMaxX, $nMinY, $nMaxY); //$oMapNavigator->zoomRectangle($px1, $py1, $px2, $py2); } else { echo "parcel is null or negative"; } From cdaily at GMAIL.COM Thu Feb 3 07:48:49 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 3 Feb 2005 09:48:49 -0600 Subject: Finding which shape polygon a point is in with mapscript In-Reply-To: <20050203132049.C7B931A671C@mail.medinaco.org> Message-ID: Eric, $layer->open() doesn't seem to like taking any arguments. The documentation doesn't list it as being able to take any arguments either. Is that a perl only ability? Calling layer->open() without arguments in other parts of my script works just fine; it just fails in this instance. I'll let you know if I find any success with queryByPoint(). From cdaily at GMAIL.COM Thu Feb 3 07:49:40 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 3 Feb 2005 09:49:40 -0600 Subject: Finding which shape polygon a point is in with mapscript In-Reply-To: <16264e07050203074810e5d48d@mail.gmail.com> Message-ID: Oh yeah, I guess I should have stated earlier that this is PHP mapscript, not perl. Sorry about that. From cdaily at GMAIL.COM Thu Feb 3 07:58:12 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 3 Feb 2005 09:58:12 -0600 Subject: Finding which shape polygon a point is in with mapscript In-Reply-To: <16264e0705020307494965fd78@mail.gmail.com> Message-ID: Apparently, mapserver works much better if the permissions are set correctly on the shapefiles to be queried. That could perhaps be why $layer->open() wasn't working correctly. Sorry to waste your time all! -Camden From lfilak at MEDINACO.ORG Thu Feb 3 08:01:37 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 3 Feb 2005 11:01:37 -0500 Subject: Finding which shape polygon a point is in with mapscript Message-ID: The following message was sent by Camden Daily on Thu, 3 Feb 2005 09:48:49 -0600. > Eric, $layer->open() doesn't seem to like taking any arguments. The > documentation doesn't list it as being able to take any arguments > either. Is that a perl only ability? > > Calling layer->open() without arguments in other parts of my script > works just fine; it just fails in this instance. > > I'll let you know if I find any success with queryByPoint(). Camden, I believe that the use of 'open' changed between Eric's (I think he mentioned 3.6) sample and 4.4, it does not take an argument now. Lowell From woodbri at SWOODBRIDGE.COM Thu Feb 3 08:02:28 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 3 Feb 2005 11:02:28 -0500 Subject: Finding which shape polygon a point is in with mapscript In-Reply-To: <16264e07050203074810e5d48d@mail.gmail.com> Message-ID: Camden Daily wrote: > Eric, $layer->open() doesn't seem to like taking any arguments. The > documentation doesn't list it as being able to take any arguments > either. Is that a perl only ability? > > Calling layer->open() without arguments in other parts of my script > works just fine; it just fails in this instance. > > I'll let you know if I find any success with queryByPoint(). > Camden, Use it as a guide, not cut and paste code. There have been some changes in mapscript in general between 3.6 and 4.2 and 4.4. I think in you example here, the arguments are no longer expected, so you will need to tweak the code to get it to work. -Steve From danp at AMERICANCLEARINGHOUSE.COM Thu Feb 3 08:03:46 2005 From: danp at AMERICANCLEARINGHOUSE.COM (Dan Phillips) Date: Thu, 3 Feb 2005 11:03:46 -0500 Subject: UNC Paths In-Reply-To: <20050203132049.C7B931A671C@mail.medinaco.org> Message-ID: Hello, I've just installed Mapserver on Windows XP and would like to use UNC in my OGR Connection (e.g. "//HP_SERVER/RDRIVE/STREETS/STREETS.TAB") to reference the map data rather than use mapped drives (e.g. "R:/STREETS/STREETS.TAB"). I'm getting the error: msDrawMap(): Image handling error. Failed to draw layer named 'Water'. msOGRFileOpen(): OGR error. Open failed for OGR connection `//HP_SERVER/RDRIVE/STREETS/STREETS.TAB'. File not found or unsupported format. What am I doing wrong? Dan Phillips From ed at TOPOZONE.COM Thu Feb 3 08:31:56 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 3 Feb 2005 11:31:56 -0500 Subject: UNC Paths Message-ID: Dan - You need to step very carefully if you want an IIS application to be able to access network resources. Remember that MapServer is running in the security context of the user configured for that application under IIS. By default, this is the IUSR_ account. By default, this account is a LOCAL machine account and has no access to any network resources, under any name. This is a security feature to restrict Web visitors from access to your network. As a start, you should read and fully understand the document "How to access network files from IIS applications" from Microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;207671 - 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 Dan Phillips Sent: Thursday, February 03, 2005 11:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] UNC Paths Hello, I've just installed Mapserver on Windows XP and would like to use UNC in my OGR Connection (e.g. "//HP_SERVER/RDRIVE/STREETS/STREETS.TAB") to reference the map data rather than use mapped drives (e.g. "R:/STREETS/STREETS.TAB"). I'm getting the error: msDrawMap(): Image handling error. Failed to draw layer named 'Water'. msOGRFileOpen(): OGR error. Open failed for OGR connection `//HP_SERVER/RDRIVE/STREETS/STREETS.TAB'. File not found or unsupported format. What am I doing wrong? Dan Phillips From fwarmerdam at GMAIL.COM Thu Feb 3 08:56:49 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 3 Feb 2005 11:56:49 -0500 Subject: UNC Paths In-Reply-To: Message-ID: On Thu, 3 Feb 2005 11:03:46 -0500, Dan Phillips wrote: > Hello, > > I've just installed Mapserver on Windows XP and would like to use UNC in my > OGR Connection (e.g. "//HP_SERVER/RDRIVE/STREETS/STREETS.TAB") to reference > the map data rather than use mapped drives (e.g. "R:/STREETS/STREETS.TAB"). > I'm getting the error: Dan, Are you supposed to use backslashes in those network redirectors? Like "\\HP_SERVER\RDRIVE\STREETS\STREETS.BAT"? I don't normally use that mechanism myself, so I did a little test. I compiled the following program: #include int main() { const char *pszFilename = "\\\\gdal\\warmerda\\.cshrc"; FILE *fp = fopen( pszFilename, "t" ); if( fp == NULL ) perror( pszFilename ); else printf( "Success!\n" ); } When I run it, I get a NULL "fp" from fopen, but there does not seem to be any error reported by perror(). I'm not sure exactly what to make of there being no errno value set, but as I get fp back, it does seem that fopen() does not support this style of network redirector. I would add that "type \\gdal\warmerda\.cshrc" worked fine for me at the CMD.EXE prompt. So, if fopen() does not support these redirectors, then neither will OGR or most other MapServer components. Of course, I'm not particularly savvy about win32 type stuff, so I might be missing something. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From hobbes_zatow at YAHOO.COM Thu Feb 3 09:35:31 2005 From: hobbes_zatow at YAHOO.COM (H Z) Date: Thu, 3 Feb 2005 11:35:31 -0600 Subject: Rotated Orthographic View? Message-ID: I have a US lower 48 state/county map view in ESRI ArcMap that I have exported shapefiles out of, and use them in MapServer/PerlMapScript to generate maps for the Web. When using a Mercator projection, everything works fine, but now I need to use an orthographic projection. When using ortho in ArcMap, the map appears rotated, but I can use ArcMap's Rotate Data Frame tool to get it in the right position. Exporting the rotated map to a shapefile and processing it in MapServer/PerlMapScript however doesn't maintain the corrected rotation. How can I have MapServer/PerlMapScript rotate the map prior to generating an image from it? Thanks! From murilo.yoshida at AGX.COM.BR Thu Feb 3 09:53:20 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Thu, 3 Feb 2005 15:53:20 -0200 Subject: Strange behavior with saveWebImage (php/mapScript) Message-ID: Hi all, I recently changed may Server from redHat 8 to debian 3.1 and now is happening a strange thing. First I see a map, zoom and pan it, all ok. If I continue to see a few other maps, when I zoom and pan it, sometimes the image displayed is from a previous map. For example, I pan my map to the right, and the page displays an image from another map, and is an image I have seen before. Did it happen to somebody in the list before? I don't have a clue of what's going on, please help !! Thanks, Murilo From ed at TOPOZONE.COM Thu Feb 3 10:26:51 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 3 Feb 2005 13:26:51 -0500 Subject: UNC Paths Message-ID: Dan - Well, yes . You need to find and understand the corresponding user security model for Apache, then. Everything runs under a user security context in Windows, so you need to know what user that is and what rights that user has. As Frank pointed out, however, there may be some issues with UNC support in MapServer, so you should confirm that first. I stopped using UNC support several years ago because there were some serious limitations in MapServer at the time. In particular, MapServer would change to a "current directory" (chdir()) and access files from there, and you can't have a current directory on a UNC path. And please always reply to the entire list, not just the responder - thanks! - 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: Dan Phillips [mailto:danp at americanclearinghouse.com] Sent: Thursday, February 03, 2005 12:22 PM To: Ed McNierney Subject: RE: [UMN_MAPSERVER-USERS] UNC Paths Ed, I'm using Apache, not IIS. Does this make a difference? Dan -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Thursday, February 03, 2005 11:32 AM To: Dan Phillips; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] UNC Paths Dan - You need to step very carefully if you want an IIS application to be able to access network resources. Remember that MapServer is running in the security context of the user configured for that application under IIS. By default, this is the IUSR_ account. By default, this account is a LOCAL machine account and has no access to any network resources, under any name. This is a security feature to restrict Web visitors from access to your network. As a start, you should read and fully understand the document "How to access network files from IIS applications" from Microsoft: http://support.microsoft.com/default.aspx?scid=kb;en-us;207671 - 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 Dan Phillips Sent: Thursday, February 03, 2005 11:04 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] UNC Paths Hello, I've just installed Mapserver on Windows XP and would like to use UNC in my OGR Connection (e.g. "//HP_SERVER/RDRIVE/STREETS/STREETS.TAB") to reference the map data rather than use mapped drives (e.g. "R:/STREETS/STREETS.TAB"). I'm getting the error: msDrawMap(): Image handling error. Failed to draw layer named 'Water'. msOGRFileOpen(): OGR error. Open failed for OGR connection `//HP_SERVER/RDRIVE/STREETS/STREETS.TAB'. File not found or unsupported format. What am I doing wrong? Dan Phillips From ed at TOPOZONE.COM Thu Feb 3 10:30:06 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 3 Feb 2005 13:30:06 -0500 Subject: Rotated Orthographic View? Message-ID: Your description is a little confusing. Why do you need to rotate it into the "right position"? What's wrong with the original position? If it's "wrong", are you simply trying to generate a different projection than the orthographic? MapServer should be able to project your original shapefiles from any projection to your desired output. I don't see any reason why you'd need to modify the shapefiles from the original lat/lon distribution format. You simply need to be able to accurately describe the desired output projection. Please give us the complete details of the orthographic projection you're choosing in ArcMap. - 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 H Z Sent: Thursday, February 03, 2005 12:36 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rotated Orthographic View? I have a US lower 48 state/county map view in ESRI ArcMap that I have exported shapefiles out of, and use them in MapServer/PerlMapScript to generate maps for the Web. When using a Mercator projection, everything works fine, but now I need to use an orthographic projection. When using ortho in ArcMap, the map appears rotated, but I can use ArcMap's Rotate Data Frame tool to get it in the right position. Exporting the rotated map to a shapefile and processing it in MapServer/PerlMapScript however doesn't maintain the corrected rotation. How can I have MapServer/PerlMapScript rotate the map prior to generating an image from it? Thanks! From dbarron at DSWLLC.COM Thu Feb 3 10:52:42 2005 From: dbarron at DSWLLC.COM (Dan Barron) Date: Thu, 3 Feb 2005 10:52:42 -0800 Subject: Help to Re-Project Map Layers on the Fly In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCB4C@ptolemy.topozone.co m> Message-ID: Ed, With one minor change (lon_0=110) this worked perfectly. I'm a newbie at projections, have always just used the shapefiles I had without any problems. Is there a good tutorial out there for understanding how to work through projections and determine things like, say the datum if not specified explicitly? While looking for a good reference for projection definitions and abbreviations (e.g. Clarke-1866 = clrk66) I came across these pages: http://www.safe.com/support/online_help/coordinate-system/coordinate_system_help.htm#predefined_ellipsoids.htm Is there some better/other resource out there that could be useful? Thanks again! Dan At 12:13 PM 2/2/2005, Ed McNierney wrote: >Dan - > >PROJECTION > proj=lcc > lat_1=70.0 > lat_2=50.0 > lat_0=0.0 > lon_0=-110.0 > x_0=0.0 > y_0=0.0 > ellps=clrk66 > datum=NAD27 >END > >looks about right. Remember that you will need PROJECTION blocks for the >OTHER layers and for the top-level map file to accurately describe the >other inputs (if any) and the map image output projections as being lat/lon. > > - 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 > > >---------- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Dan Barron >Sent: Wednesday, February 02, 2005 2:37 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Help to Re-Project Map Layers on the Fly > >Hello, > >I am looking for a little help to re-project a map layer to LAT/LON for a >single layer. Below is the .prj file - how do I define this >projection in the layer object of the map file? > > >PROJCS["unnamed", >GEOGCS["unnamed",DATUM["D_unnamed",SPHEROID["Clarke-1866",6378206.4,294.978698213901]], >PRIMEM["Greenwich",0], >UNIT["degree",0.0174532925199433]], >PROJECTION["Lambert_Conformal_Conic"], >PARAMETER["standard_parallel_1",70], >PARAMETER["standard_parallel_2",50], >PARAMETER["latitude_of_origin",0], >PARAMETER["central_meridian",110], >PARAMETER["false_easting",0], >PARAMETER["false_northing",0], >UNIT["METER",1]] > > >Thanks, > >Dan Barron -------------- next part -------------- An HTML attachment was scrubbed... URL: From nhv at CAPE.COM Thu Feb 3 11:15:25 2005 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 3 Feb 2005 14:15:25 -0500 Subject: Help to Re-Project Map Layers on the Fly In-Reply-To: <6.0.0.22.0.20050203104540.029fd918@taz.dswllc.com> Message-ID: Dan Barron writes: > While looking for a good reference for projection definitions and abbreviations (e.g. Clarke-1866 = clrk66) I came across these pages: http://www.safe.com/support/online_help/coordinate-system/coordinate_system_ help.htm#predefined_ellipsoids.htm Is there some better/other resource out there that could be useful? Hard to beat the proj manuals since that is the projection engine Mapserver uses http://proj.maptools.org Norman -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Thu Feb 3 11:40:38 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 3 Feb 2005 14:40:38 -0500 Subject: UNC Paths In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCB59@ptolemy.topozone.com> Message-ID: On Thu, 3 Feb 2005 13:26:51 -0500, Ed McNierney wrote: > Dan - > > Well, yes . You need to find and understand the corresponding user > security model for Apache, then. Everything runs under a user security > context in Windows, so you need to know what user that is and what > rights that user has. > > As Frank pointed out, however, there may be some issues with UNC support > in MapServer, so you should confirm that first. I stopped using UNC > support several years ago because there were some serious limitations in > MapServer at the time. In particular, MapServer would change to a > "current directory" (chdir()) and access files from there, and you can't > have a current directory on a UNC path. Folks, First, please disregard my last message. It seems I forgot how to call fopen(). I passed "t" for the access instead of "r" or perhaps "rt". Very embarrassing, and thanks to Norman Vine for pointing it out me. I have done a couple more tests, and indeed OGR seems to support access off an unmounted network drive. The following worked fine for me for instance. ogrinfo \\gdal\warmerda\data\mapinfo\mills.mid as did: ogrinfo //gdal/warmerda/data/mapinfo/mills.mid Also, I don't believe that MapServer does any of that evil chdir() stuff anymore. So you should only have to deal with the permissions issues that Ed raised. 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 Feb 3 12:02:03 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 3 Feb 2005 15:02:03 -0500 Subject: UNC Paths Message-ID: Frank - It is my recollection that all that chdir() stuff was fixed a long time ago, too. I just haven't used it in a very long time, so I'm not a reliable witness on that front! - 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 Frank Warmerdam Sent: Thursday, February 03, 2005 2:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] UNC Paths On Thu, 3 Feb 2005 13:26:51 -0500, Ed McNierney wrote: > Dan - > > Well, yes . You need to find and understand the corresponding user > security model for Apache, then. Everything runs under a user > security context in Windows, so you need to know what user that is and > what rights that user has. > > As Frank pointed out, however, there may be some issues with UNC > support in MapServer, so you should confirm that first. I stopped > using UNC support several years ago because there were some serious > limitations in MapServer at the time. In particular, MapServer would > change to a "current directory" (chdir()) and access files from there, > and you can't have a current directory on a UNC path. Folks, First, please disregard my last message. It seems I forgot how to call fopen(). I passed "t" for the access instead of "r" or perhaps "rt". Very embarrassing, and thanks to Norman Vine for pointing it out me. I have done a couple more tests, and indeed OGR seems to support access off an unmounted network drive. The following worked fine for me for instance. ogrinfo \\gdal\warmerda\data\mapinfo\mills.mid as did: ogrinfo //gdal/warmerda/data/mapinfo/mills.mid Also, I don't believe that MapServer does any of that evil chdir() stuff anymore. So you should only have to deal with the permissions issues that Ed raised. 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 Feb 3 12:09:56 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 3 Feb 2005 13:09:56 -0700 Subject: New mapscript reference docs in CVS Message-ID: Hi, I just saw a CVS commit to swigmapscript-samples.html cross the wire. Will the author please try to keep the mapscript examples in synch with the official API reference and HOWTO docs that are committed to mapscript/doc and are online at: http://users.frii.com/sgillies/projects/mapscript/ This will help to minimize confusion. Things look good so far, but it would be bad if the stuff in mapserver_docs didn't track that in mapscript/doc. Perhaps the MapServer website could even link to the above URL until the time comes when the mapscript docs can be published easily on to the website. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From kgeurts at GIS.UMN.EDU Thu Feb 3 12:54:16 2005 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Thu, 3 Feb 2005 14:54:16 -0600 Subject: New mapscript reference docs in CVS In-Reply-To: <92BF1F75-761F-11D9-AEBC-000D9329D732@frii.com> Message-ID: Hello Sean, Currently Lowell Filak and you are listed as the authors for the SWIGMapScript Reference document. I am hoping that you to can coordinate your site with the MapServer HowTo documents? I have cced him on this message. If you want to add a link on the documentation page to your site I am more that happy to set that up. Let me know if you would like this and if I can help in any other way. Thanks, Kari Sean Gillies wrote: > Hi, > > I just saw a CVS commit to swigmapscript-samples.html cross the wire. > Will the author please try to keep the mapscript examples in synch > with the official API reference and HOWTO docs that are committed to > mapscript/doc and are online at: > > http://users.frii.com/sgillies/projects/mapscript/ > > This will help to minimize confusion. Things look good so far, but it > would be bad if the stuff in mapserver_docs didn't track that in > mapscript/doc. Perhaps the MapServer website could even link to the > above URL until the time comes when the mapscript docs can be > published easily on to the website. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > -- Kari A. Geurts Department of Forest Resources University of Minnesota 1530 Cleveland Ave N. St. Paul, MN. 55108 Phone: 612-624-3459 Fax: 612-625-5212 From hobbes_zatow at YAHOO.COM Thu Feb 3 12:52:17 2005 From: hobbes_zatow at YAHOO.COM (H Z) Date: Thu, 3 Feb 2005 14:52:17 -0600 Subject: Rotated Orthographic View? Message-ID: The problem turned out to be an incorrect setting in ArcMap for the projection's Longitude_of_Center/Latitude_of_Center values. Once that was corrected and the shape files re-exported, all worked fine. Thank you for the reply. From lfilak at MEDINACO.ORG Thu Feb 3 12:53:06 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 3 Feb 2005 15:53:06 -0500 Subject: New mapscript reference docs in CVS Message-ID: I would be that "author". I would expect things to be in "sync" as your doc is based on the development as you "develop" it and mine is based on what SWIG outputs. My intent was to add to the The following message was sent by Sean Gillies on Thu, 3 Feb 2005 13:09:56 -0700. > Hi, > > I just saw a CVS commit to swigmapscript-samples.html cross the wire. > Will the author please try to keep the mapscript examples in synch with > the official API reference and HOWTO docs that are committed to > mapscript/doc and are online at: > > http://users.frii.com/sgillies/projects/mapscript/ > > This will help to minimize confusion. Things look good so far, but it > would be bad if the stuff in mapserver_docs didn't track that in > mapscript/doc. Perhaps the MapServer website could even link to the > above URL until the time comes when the mapscript docs can be published > easily on to the website. > > cheers, > Sean Sean, I would be that "author". I would expect things to be in "sync" as your doc is based on the development as you "develop" it and mine is based on the SWIG output (checks & balance, no?). My intent was to add to the 4-4-branch stable vs. the current development version, did I miss something? Should this discussion be on the mapserver-docs list? Lowell From carloseduardo at COSTARRICENSE.CR Thu Feb 3 16:37:56 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Thu, 3 Feb 2005 18:37:56 -0600 Subject: Configuration help Message-ID: I'm trying to work with mapserver on suse 9.1 I installed apache2, php5 and mapserver-4.4.1 But now i need to be sure about the next steps. I have to configure the php.ini and httpd.conf files and then move this files to some location, also i have to move the php_mapscript.so file. The problem is that my mapserver application is not working yet. I was reading different documents and now i'm not sure what is exactly that i have to do. I need your help about the exact steps that i have to do after the installation of apache, php and mapserver. I installed apache in /usr/local/apache php in /usr/local/php Thanks _______________________________________ Yo me registr? en www.costarricense.cr From covariance at SHAW.CA Thu Feb 3 19:17:24 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Thu, 3 Feb 2005 21:17:24 -0600 Subject: Link error (missing nad.obj) when using nightly build Message-ID: I'm on a WIN2K system and am using the WIN32 build HowTo. I'm having problems with the nightly build. When I was running the nmake using my modified Makefile.vc, I got the following message: LINK : fatal error LNK1104: cannot open file "C:\Projects\proj-4.4.9\nad.obj" the output for this step in the link is: link /dll /debug mapbits.obj maphash.obj mapshape.obj mapxbase.obj mapparser.obj mapl exer.obj maptree.obj mapsearch.obj mapstring.obj mapsymbol.obj mapfile.obj maplegend.obj - - - mappool.obj c:\projects\regex-0.12\regex.obj c:/projects/gdwin32/bgd.lib C:\Projects\proj-4.4.9\nad /def:mapserver.def /out:libmap.dll /implib:mapserver_i.lib Microsoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. LINK : fatal error LNK1104: cannot open file "C:\Projects\proj-4.4.9\nad.obj" NMAKE : fatal error U1077: 'link' : return code '0x450' Stop. when I looked in the nmake.opt file I found the following lines: # Proj.4 include and library !IFDEF PROJ_DIR PROJ_INC=-I$(PROJ_DIR)/src PROJ_LIB=$(PROJ_DIR)/src/proj_i.lib !ENDIF and I have the following configuration lines set in nmake.opt: PROJ=-DUSE_PROJ -DUSE_PROJ_API_H PROJ_DIR=c:\projects\proj-4.4.9 when I built the PROJ binaries, I had the following line in my Makefile.vc file: PROJ_LIB_DIR=C:/Projects/proj-4.4.9/nad can someone out there help me with this? thanks, Bob Bruce From tylermitchell at SHAW.CA Thu Feb 3 20:31:31 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 3 Feb 2005 20:31:31 -0800 Subject: Mapserver - Suse 9.2 In-Reply-To: Message-ID: Hi Carlos, I run all my mapserver stuff in suse 9.2. Much of it is installed from source code though. I run a very recent version of mapserver and gdal. I use Apache2. I'm not familiar with lingis. Fire me any questions you have. Tyler On February 1, 2005 09:13 am, Carlos Eduardo Sibaja Salazar wrote: > I need to know if somebody has installed mapserver in suse 9.2 > > I need to know the version of the most important programs and > libraries used, mapserver, apache, gdal, etc. > > Also, somebody spoke about LinGis on suse 9.1 > I have suse 9.2 installed and i need to know if lingis works with this > version. > > Thanks. > > _______________________________________ > Yo me registr? en www.costarricense.cr From jesko at GEOCONTENT.DE Fri Feb 4 00:24:19 2005 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Fri, 4 Feb 2005 09:24:19 +0100 Subject: Problem with POINT layer in PostGIS Message-ID: Hallo, I moved some points from a shape file to a PostgreSQL table (see the script below). Unfortunately the points are not displayed if queried from the database, but they are, if taken from the shape file. Even if I export the table back to a new shape the points are displayed correctly. I also executed the query generated by Mapserver in a PostgreSQL shell and do get the expected result. So I assume, that either my mapfile contains an error that I do not see or there might be a bug in the mapserver. By the way, all other layers (which are of type polygon and line) with data from the same database display perfectly. Some information about the System: Mapserver: Version 4.4.1 (Windows XP) Database: PG 8.0.0 / PostGIS 1.0.0RC2 Layerdefinition: LAYER NAME "lu_pointtest" DATA "mypoints" # This works # CONNECTIONTYPE postgis # This does not work # CONNECTION "user=... password=... dbname=... host=... port=..." # DATA "the_geom from mypoints using SRID=31468" STATUS OFF TYPE POINT PROJECTION "init=epsg:31468" END CLASS NAME "Test" STYLE SYMBOL 'circle' COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 20 END END END ------------------------------ Here is a script to create the database table: CREATE TABLE mypoints ( gid serial NOT NULL, CONSTRAINT mypoints_pkey PRIMARY KEY (gid) ); SELECT AddGeometryColumn('mypoints', 'the_geom', 31468, 'POINT', 2); INSERT INTO mypoints (gid, the_geom) VALUES (0, '0101000020EC7A0000BAF998B45D0F51417B71FA1F6F075641'); INSERT INTO mypoints (gid, the_geom) VALUES (1, '0101000020EC7A0000D115631BD00F51412E7939EBD5095641'); INSERT INTO mypoints (gid, the_geom) VALUES (2, '0101000020EC7A0000A37CFBA747145141A292642587095641'); INSERT INTO mypoints (gid, the_geom) VALUES (3, '0101000020EC7A0000C6687625A0145141CE224958C4095641'); INSERT INTO mypoints (gid, the_geom) VALUES (4, '0101000020EC7A0000C997450F6F115141F5286F0FD9085641'); INSERT INTO mypoints (gid, the_geom) VALUES (5, '0101000020EC7A0000A6C2BFFB471151415478A68D77065641'); INSERT INTO mypoints (gid, the_geom) VALUES (6, '0101000020EC7A00008B01CDF04C0E51410982FB349A065641'); INSERT INTO mypoints (gid, the_geom) VALUES (7, '0101000020EC7A00008437018109125141FCE41AA44C0E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (8, '0101000020EC7A0000CEC8E5B25C10514156534688A60A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (9, '0101000020EC7A000052319D6C4A12514152D7F935640E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (10, '0101000020EC7A00006B7E968F121351419EF4660FB8065641'); INSERT INTO mypoints (gid, the_geom) VALUES (11, '0101000020EC7A0000F3BD96E9101351418427A4D0BA065641'); INSERT INTO mypoints (gid, the_geom) VALUES (12, '0101000020EC7A0000295CB243071251412D9902FB850C5641'); INSERT INTO mypoints (gid, the_geom) VALUES (13, '0101000020EC7A0000AF3A9D469B135141D9B7BE5F050C5641'); INSERT INTO mypoints (gid, the_geom) VALUES (14, '0101000020EC7A0000DD9CC87615115141B0EE11E1AB075641'); INSERT INTO mypoints (gid, the_geom) VALUES (15, '0101000020EC7A000077D304534F115141A959762048065641'); INSERT INTO mypoints (gid, the_geom) VALUES (16, '0101000020EC7A0000A08037FC8D11514185B61D18530E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (17, '0101000020EC7A000072DB06F8C11251419056FA21680E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (18, '0101000020EC7A00007D9819421B14514193AEADE5A10E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (19, '0101000020EC7A0000F134A105F70D5141C7C8DF84430D5641'); INSERT INTO mypoints (gid, the_geom) VALUES (20, '0101000020EC7A0000BFDE8176E70D51418C6C600DF9055641'); INSERT INTO mypoints (gid, the_geom) VALUES (21, '0101000020EC7A0000000000002013514100000080AE065641'); INSERT INTO mypoints (gid, the_geom) VALUES (22, '0101000020EC7A00004E70BF22AE115141A4A6446AEE0C5641'); INSERT INTO mypoints (gid, the_geom) VALUES (23, '0101000020EC7A0000A6C8085A33105141D8521E16500D5641'); INSERT INTO mypoints (gid, the_geom) VALUES (24, '0101000020EC7A00006CC7535D4D125141423F9F2B140D5641'); INSERT INTO mypoints (gid, the_geom) VALUES (25, '0101000020EC7A0000432443E7101151410C6EB61A930F5641'); INSERT INTO mypoints (gid, the_geom) VALUES (26, '0101000020EC7A0000B20C2F33EE115141FDC762841C0A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (27, '0101000020EC7A0000165414B43D125141168162BD0F0A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (28, '0101000020EC7A000054D406115F1251416A646972050A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (29, '0101000020EC7A0000BAEEE230BF0F514103B9D4CE03055641'); INSERT INTO mypoints (gid, the_geom) VALUES (30, '0101000020EC7A0000F85998A30510514110F531A2EA075641'); Thanks for any help, Dirk From astrid.emde at CCGIS.DE Fri Feb 4 01:59:23 2005 From: astrid.emde at CCGIS.DE (Astrid Emde) Date: Fri, 4 Feb 2005 10:59:23 +0100 Subject: Problem with POINT layer in PostGIS In-Reply-To: <42033133.5080507@geocontent.de> Message-ID: Dirk Jesko wrote: > Hallo, > > I moved some points from a shape file to a PostgreSQL table (see the > script below). Unfortunately the points are not displayed if queried > from the database, but they are, if taken from the shape file. Even if I > export the table back to a new shape the points are displayed correctly. > I also executed the query generated by Mapserver in a PostgreSQL shell > and do get the expected result. So I assume, that either my mapfile > contains an error that I do not see or there might be a bug in the > mapserver. By the way, all other layers (which are of type polygon and > line) with data from the same database display perfectly. > > Some information about the System: > > Mapserver: Version 4.4.1 (Windows XP) > Database: PG 8.0.0 / PostGIS 1.0.0RC2 > > Layerdefinition: > > LAYER > NAME "lu_pointtest" > DATA "mypoints" # This works > # CONNECTIONTYPE postgis # This does not work > # CONNECTION "user=... password=... dbname=... host=... port=..." > # DATA "the_geom from mypoints using SRID=31468" > STATUS OFF > TYPE POINT > > PROJECTION > "init=epsg:31468" > END > > CLASS > NAME "Test" > STYLE > SYMBOL 'circle' > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > SIZE 20 > END > END > END > > ------------------------------ Hi Dirk, that's how I would write the Data-Parameter: DATA "the_geom from mypoints" or if I want to make a query or pick up a query DATA "the_geom from (Select * from mypoints) as foo using unique oid using SRID=31468" Your epsg is GK4 43567. That means for example coords like: 3456787 5612345. I wonder, why your INSERT-Statements look like that: INSERT INTO mypoints (gid, the_geom) VALUES (0, '0101000020EC7A0000BAF998B45D0F51417B71FA1F6F075641'); And one more question: Is the a row in your geometry_columns-Table for your table mypoints? Hope that will help Astrid From arnulf.christl at CCGIS.DE Fri Feb 4 03:10:36 2005 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 4 Feb 2005 12:10:36 +0100 Subject: Edit Capabilities In-Reply-To: <42011C5A.5020801@tarkvarastuudio.ee> Message-ID: Kristjan Annus wrote: > Editing in the meaning of adding new objects to some layers can be done > with PHP Mapscript. > There are functions to write new shape objects to shpafiles or you can > save the changes in > some database like MySQL. > > Kristjan > >> On Feb 2, 2005, at 8:30 AM, Abe Gillespie wrote: >> >>> Are there any editing capabilities with MapServer? I noticed the >>> SWIG-based Mapscript has shapeObj::setValue() ... but I tried this last >>> night and didn't get any permanent changes. I'm using PostGIS, so that >>> may be the culprit. Or is there no editing capabilities at all >>> whatever your data source is? >>> >>> Thanks. >>> -Abe >>> >>> >> >> Abe, >> >> Editing is outside the scope of MapServer. The setValue() method >> exists only to set attribute values of shapeObjs prior to adding them >> to a layer's inline feature array. Once they are added to the layer, >> no other modification is possible. >> >> cheers, >> Sean >> >> -- >> Sean Gillies Hi, I would suggest to stick to OGC standards. Get a WFS-T running on top of your PostGIS data with GeoServer (easy going) and use Mapbender to create and edit GML (that one still needs a lot of testing and probably some programming though - you are welcome to join the process). We'll present this at the Open Geospatial '05. If thats too much hassle for a starter you can already now use Mapbender to directly store WKTs to the PostGIS data base. Somehow that is also following OGC standards but certainly in a slightly queer interpretation. There is a restriction regarding the architecture - it is required for Mapbender to be installed within the realm of port 5432 of your PostGIS box so that a PHP script can SQL directly to the database. Best, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From yogid at O2.PL Fri Feb 4 03:31:04 2005 From: yogid at O2.PL (Yogid) Date: Fri, 4 Feb 2005 12:31:04 +0100 Subject: .map problem Message-ID: Hi, I'm a beginner and have a basic problem. I install mp4w (map serwer for windows) and all samples data works fine, but I make my own .shp by wintopo and have problem with creating .map. I always get the blank .png file. ;( Could anybody help me with this? Could write for me simple .map file? My .shp files in 2 versions like line and areas: http://www.gb.net.pl/~yogi/map/ Thank for your help! -- Best regards Yogi P.S. Sorry for my english :] From superbla3000 at GMX.NET Fri Feb 4 03:59:59 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 4 Feb 2005 12:59:59 +0100 Subject: no error messages Message-ID: hello, I connect to the landsat wms and from time to time I get error messages, when the server is busy: Warning: [MapServer Error]: msDrawMap(): Failed to ....... But I don't want any error mesages diplayed. I have DEBUG OFF and ERROR "../httpdocs/map.phtml" How do I hide these errors? joerg From jesko at GEOCONTENT.DE Fri Feb 4 05:59:34 2005 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Fri, 4 Feb 2005 14:59:34 +0100 Subject: Problem with POINT layer in PostGIS In-Reply-To: <4203477B.1020801@ccgis.de> Message-ID: Hi Astrid, > that's how I would write the Data-Parameter: > DATA "the_geom from mypoints" > > or if I want to make a query or pick up a query > > DATA "the_geom from (Select * from mypoints) as foo using unique oid > using SRID=31468" These versions, including "the_geom from mypoints using SRID=31468", should work since they do with the polygon layers. > Your epsg is GK4 43567. > That means for example coords like: 3456787 5612345. True, it is GK4 and the points are GK4 (e.g. 'POINT(4472182.82183688 5774780.49966084)' or 'POINT(4472640.42792268 5777239.6753829)'), since otherwise the shape would not display either. > I wonder, why your INSERT-Statements look like that: > > INSERT INTO mypoints (gid, the_geom) VALUES (0, > '0101000020EC7A0000BAF998B45D0F51417B71FA1F6F075641'); The INSERT is fine. The geometry is just specified as Well Known Binary instead of Well Known Text. It seem that the new versions of PostGIS use WKB instead of WKT as the standard. > And one more question: Is the a row in your geometry_columns-Table for > your table mypoints? Yes there is. > Hope that will help Thanks for the try, but unfortunately my points still do not appear if I use PostGIS. Dirk From asimpson at I-55.COM Fri Feb 4 06:24:41 2005 From: asimpson at I-55.COM (Simpson) Date: Fri, 4 Feb 2005 08:24:41 -0600 Subject: Problem with POINT layer in PostGIS In-Reply-To: <42033133.5080507@geocontent.de> Message-ID: Turn full logging on in PostgreSQL, attempt to render the map and see if it provides any further information... Drew. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Dirk Jesko Sent: Friday, February 04, 2005 2:24 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with POINT layer in PostGIS Hallo, I moved some points from a shape file to a PostgreSQL table (see the script below). Unfortunately the points are not displayed if queried from the database, but they are, if taken from the shape file. Even if I export the table back to a new shape the points are displayed correctly. I also executed the query generated by Mapserver in a PostgreSQL shell and do get the expected result. So I assume, that either my mapfile contains an error that I do not see or there might be a bug in the mapserver. By the way, all other layers (which are of type polygon and line) with data from the same database display perfectly. Some information about the System: Mapserver: Version 4.4.1 (Windows XP) Database: PG 8.0.0 / PostGIS 1.0.0RC2 Layerdefinition: LAYER NAME "lu_pointtest" DATA "mypoints" # This works # CONNECTIONTYPE postgis # This does not work # CONNECTION "user=... password=... dbname=... host=... port=..." # DATA "the_geom from mypoints using SRID=31468" STATUS OFF TYPE POINT PROJECTION "init=epsg:31468" END CLASS NAME "Test" STYLE SYMBOL 'circle' COLOR 255 0 0 OUTLINECOLOR 0 0 0 SIZE 20 END END END ------------------------------ Here is a script to create the database table: CREATE TABLE mypoints ( gid serial NOT NULL, CONSTRAINT mypoints_pkey PRIMARY KEY (gid) ); SELECT AddGeometryColumn('mypoints', 'the_geom', 31468, 'POINT', 2); INSERT INTO mypoints (gid, the_geom) VALUES (0, '0101000020EC7A0000BAF998B45D0F51417B71FA1F6F075641'); INSERT INTO mypoints (gid, the_geom) VALUES (1, '0101000020EC7A0000D115631BD00F51412E7939EBD5095641'); INSERT INTO mypoints (gid, the_geom) VALUES (2, '0101000020EC7A0000A37CFBA747145141A292642587095641'); INSERT INTO mypoints (gid, the_geom) VALUES (3, '0101000020EC7A0000C6687625A0145141CE224958C4095641'); INSERT INTO mypoints (gid, the_geom) VALUES (4, '0101000020EC7A0000C997450F6F115141F5286F0FD9085641'); INSERT INTO mypoints (gid, the_geom) VALUES (5, '0101000020EC7A0000A6C2BFFB471151415478A68D77065641'); INSERT INTO mypoints (gid, the_geom) VALUES (6, '0101000020EC7A00008B01CDF04C0E51410982FB349A065641'); INSERT INTO mypoints (gid, the_geom) VALUES (7, '0101000020EC7A00008437018109125141FCE41AA44C0E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (8, '0101000020EC7A0000CEC8E5B25C10514156534688A60A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (9, '0101000020EC7A000052319D6C4A12514152D7F935640E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (10, '0101000020EC7A00006B7E968F121351419EF4660FB8065641'); INSERT INTO mypoints (gid, the_geom) VALUES (11, '0101000020EC7A0000F3BD96E9101351418427A4D0BA065641'); INSERT INTO mypoints (gid, the_geom) VALUES (12, '0101000020EC7A0000295CB243071251412D9902FB850C5641'); INSERT INTO mypoints (gid, the_geom) VALUES (13, '0101000020EC7A0000AF3A9D469B135141D9B7BE5F050C5641'); INSERT INTO mypoints (gid, the_geom) VALUES (14, '0101000020EC7A0000DD9CC87615115141B0EE11E1AB075641'); INSERT INTO mypoints (gid, the_geom) VALUES (15, '0101000020EC7A000077D304534F115141A959762048065641'); INSERT INTO mypoints (gid, the_geom) VALUES (16, '0101000020EC7A0000A08037FC8D11514185B61D18530E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (17, '0101000020EC7A000072DB06F8C11251419056FA21680E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (18, '0101000020EC7A00007D9819421B14514193AEADE5A10E5641'); INSERT INTO mypoints (gid, the_geom) VALUES (19, '0101000020EC7A0000F134A105F70D5141C7C8DF84430D5641'); INSERT INTO mypoints (gid, the_geom) VALUES (20, '0101000020EC7A0000BFDE8176E70D51418C6C600DF9055641'); INSERT INTO mypoints (gid, the_geom) VALUES (21, '0101000020EC7A0000000000002013514100000080AE065641'); INSERT INTO mypoints (gid, the_geom) VALUES (22, '0101000020EC7A00004E70BF22AE115141A4A6446AEE0C5641'); INSERT INTO mypoints (gid, the_geom) VALUES (23, '0101000020EC7A0000A6C8085A33105141D8521E16500D5641'); INSERT INTO mypoints (gid, the_geom) VALUES (24, '0101000020EC7A00006CC7535D4D125141423F9F2B140D5641'); INSERT INTO mypoints (gid, the_geom) VALUES (25, '0101000020EC7A0000432443E7101151410C6EB61A930F5641'); INSERT INTO mypoints (gid, the_geom) VALUES (26, '0101000020EC7A0000B20C2F33EE115141FDC762841C0A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (27, '0101000020EC7A0000165414B43D125141168162BD0F0A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (28, '0101000020EC7A000054D406115F1251416A646972050A5641'); INSERT INTO mypoints (gid, the_geom) VALUES (29, '0101000020EC7A0000BAEEE230BF0F514103B9D4CE03055641'); INSERT INTO mypoints (gid, the_geom) VALUES (30, '0101000020EC7A0000F85998A30510514110F531A2EA075641'); Thanks for any help, Dirk From joseluismapserver at YAHOO.ES Fri Feb 4 06:34:18 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Fri, 4 Feb 2005 15:34:18 +0100 Subject: Draw line Message-ID: I know it might be an easy question, but could anybody explain to me how to draw a line between two points in a map. I will need what I have to write in the map file (symbols, layers,...) and the mapserver commands (in java or php) Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From l.bargeot at EDUCAGRI.FR Fri Feb 4 06:58:35 2005 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Fri, 4 Feb 2005 15:58:35 +0100 Subject: trouble with map and reference map inversion (4.4.1) Message-ID: Hi, I've just installed mapserver 4.4.1. I have a problem with reference map and map inversion. My script worked fine with the previous version of php-mapscript. But since I upgraded, I have a very strange trouble. I use basic pan and zoom functions. I can show you basic and right result here : http://www.igcs-stb.org/pdf/mapserv_without_trouble.png I repeat my operations (zoom -, zoom +, pan, ...) and sudenly, I obtain a very strange page : http://www.igcs-stb.org/pdf/mapserv_with_trouble.png My reference map is wrong, and I otbtain my previous map instead. or the inverse problem : http://www.igcs-stb.org/pdf/mapserv_with_problem2.png My map is wrong and I obtain reference map instead At the begining, I believe problem was coming from my client (image in cache), But it's not the reason (same results with no cache). I verified the name of the file in page source code and opened it manually. And then, I see something very strange : In source code of the page with the reference instead the right map on my screen, the name of the file is 110751814976776.png. And if I open it manually in my tmp directory with gimp or another software, I see the right file (the right map). So, the image I see on my screen as described in source code isn't the right file it points to, on my server. I note if I reload the page, all comes back ok. I note that frequency of the trouble increases with cpu load. So my questions are : Could it be a non mapserver problem ? (perhaps it's not the approriate ML) Has someone else encountered this problem with new mapserver version ? Thanks in advance, Lionel From l.bargeot at EDUCAGRI.FR Fri Feb 4 07:05:41 2005 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Fri, 4 Feb 2005 16:05:41 +0100 Subject: Strange behavior with saveWebImage (php/mapScript) In-Reply-To: Message-ID: Murilo Lacerda Yoshida wrote: > Hi all, > I recently changed may Server from redHat 8 to debian 3.1 and now is >happening a strange thing. > First I see a map, zoom and pan it, all ok. > If I continue to see a few other maps, when I zoom and pan it, >sometimes the image displayed is from a previous map. For example, I pan >my map to the right, and the page displays an image from another map, >and is an image I have seen before. > Did it happen to somebody in the list before? > > I don't have a clue of what's going on, please help !! > Thanks, > Murilo > > Hi, I didn't see your thread yesterday (sorry for multiple threads). I've just sent a mail about the same trouble. No idea about the reason. I don't know if it's debian specific. Lionel -- Charg? de mission Sols et Territoire de Bourgogne CNERTA-ENESAD, 2 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 http://www.igcs-stb.org/ From jesko at GEOCONTENT.DE Fri Feb 4 08:06:14 2005 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Fri, 4 Feb 2005 17:06:14 +0100 Subject: Problem with POINT layer in PostGIS In-Reply-To: Message-ID: The log file shows no problem. Further, if I take the logged query and execute it within the psql shell it produces the correct result and the log is not significantly different. I still suppose that it is not a PostgreSQL/PostGIS problem. Dirk >Turn full logging on in PostgreSQL, attempt to render the map and see if it >provides any further information... > >Drew. > > > From gireddy at GMAIL.COM Fri Feb 4 09:08:59 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri, 4 Feb 2005 11:08:59 -0600 Subject: postgres occupies more space than mysql??? Message-ID: Hi all, I have my SF1 data on mysql database, i wnated to migrate to postgres to get advantage of Postgis, I created a backup .sql file (whole data) whose size is 8GB but its actual database size in mysql is 700MB (it may be because insert into(bla,bla) values(bla, bla). but after i migrated to postgres it occupied 7GB and it is damn slow(it took 42hours for postgres to insert and its still running may take about 3 more hours), can anybody suggest any idea how to reduce the size and make it faster. thanks alot in advance. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From superbla3000 at GMX.NET Fri Feb 4 09:28:22 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 4 Feb 2005 18:28:22 +0100 Subject: gdal utm .sid to lat/long .geotiff Message-ID: hello, I would like to convert a ETM+ Mosaic (250MB) from utm .sid to lat/long .geotiff to work with them in a mapserver map. So I downloaded the gdal FW tools for Windows, but it seems they cannot handle .sid. Then I tried the lizardtech mrsiddecode, but i canceled the conversion after 30 hours at 48%! What should I do??? Joerg From pramsey at REFRACTIONS.NET Fri Feb 4 09:25:32 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 4 Feb 2005 09:25:32 -0800 Subject: postgres occupies more space than mysql??? In-Reply-To: <5f447e3505020409081b40bab2@mail.gmail.com> Message-ID: Are these points, by any chance? You could try using the 1.0 postgis series, but posts on this list seem to indicate we have a problem there too. The 0.X series has fairly fluffy representations, so if you have a large number of points, the database size of a postgis spatial database versus a x/y attribute database will be quite substantial. You will find that regardless a spatial database will have some extra overhead over an x/y attribute database. For example, were your x/y stored as float? Well in the spatial database they will be doubles, so double your storage size. And add a byte for SRID storage. And potentially add 4 bytes for bounding box storage. It adds up, and the overheads can be even higher in the 0.X series. Points are also amenable to simple multi-key btree indexes, so you might find that keeping your data in mysql or any attribute database and using the OGR "virtual table" idea is just as effective. Paul On 4-Feb-05, at 9:08 AM, Shashi Gireddy wrote: > Hi all, > > I have my SF1 data on mysql database, i wnated to migrate to postgres > to get advantage of Postgis, I created a backup .sql file (whole data) > whose size is 8GB but its actual database size in mysql is 700MB (it > may be because insert into(bla,bla) values(bla, bla). but after i > migrated to postgres it occupied 7GB and it is damn slow(it took > 42hours for postgres to insert and its still running may take about 3 > more hours), can anybody suggest any idea how to reduce the size and > make it faster. > > thanks alot in advance. > > -- > Shashi Kiran Reddy. Gireddy, > Graduate Assistant, > CBER, University of Alabama. > http://www.cs.ua.edu/shashi > Home: 205-752-5137 Cell: 205-657-1438 From bluetuna_goes_skying at YAHOO.CO.UK Fri Feb 4 09:46:58 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Fri, 4 Feb 2005 17:46:58 +0000 Subject: Join shape and dbms data: OGR? In-Reply-To: Message-ID: Hi everybody, this issue is very intreresting for me, beacause I need to create thematic maps based on queries issued to a database, so let's say that my thematic map should be based on views (which in the end can become temporary tables if needed..) The only thing is my database engine is MySQL... So my question is: Is there a similar way to connect to a MySQL table so that I can use a field of this table as a classitem for the layer? Thanks in advance for your support.. JP Bart van den Eijnden wrote: Hi Emil, the problem with the OGR shapefile connector is (or was) that it does not use the spatial index (qix) files, so it isn't very fast ... Question for Frank: Or did this change as well with the current version :) ? I know you were planning on doing this ... Best regards, Bart On Tue, 16 Nov 2004 08:21:20 +0100, Emil Zegers wrote: > Hello Michael, > > I have a question for you about this approach: when using this kind of > join were you able to classify data based on the joined attributes and > display this in the map image? > > I'm asking this because with normal join operation it is not possible to > create thematic maps based on the joined attributes. > > If classifcation works based on this approach the enhancement request I > put in bugzilla (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=674) > can be closed. > > I would be very happy if classifying on joined attributes works this way > (had no time to test this approach yet). > > Regards, > > Emil Zegers > > > Hi Frank, > > thanks for your answer. It is working perfectly now. > > For the moment it is only one table i want to join to the geometry of > the shp-file, so at first > sight performance is good, but i will play with the indexes a little. > > For all who have to use a similar approach here's a mapfile snipplet: > > LAYER > ... > CONNECTIONTYPE OGR > CONNECTION "c:\mstest\data\fnpf.shp" # shapefile holding only > geometry and PID in .dbf > DATA "SELECT * FROM fnpf LEFT JOIN 'ODBC:fnp'.fnp ON > fnpf.PID=fnp.PID" > # join to systemDSN fnp (here msaccess-db "fnp.mdb" with table > fnp) on attribute PID, > # now all fields of the db are also accessible for mapserver, e.g. > "AZJAHR" > LABELITEM "AZJAHR" > ... > END > > Thanks, Michael > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Feb 4 11:12:24 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 4 Feb 2005 14:12:24 -0500 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] postgres occupies more space than mysql???] Message-ID: -------- Original Message -------- Subject: Re: [UMN_MAPSERVER-USERS] postgres occupies more space than mysql??? Date: Fri, 04 Feb 2005 14:11:59 -0500 From: Stephen Woodbridge To: Shashi Gireddy References: <5f447e3505020409081b40bab2 at mail.gmail.com> Shashi, Very interesting! I am about to embark on the same journey myself. I have the whole Census Summary File 1 and 3 loaded into MySQL and it is about 103 GB and only sparsely indexed. I hope it does not grow by a factor of 10 like yours did. Here are some ideas about size and speed. 1) check you row sizes, fixed length rows are large but faster to access up to a point. You can usually force a row to be variable sized by making sure you use VARCHAR() and not CHAR() for large text columns 2) when you are inserting your data, make sure you don't have any indexes on you tables, after your data has been inserted then add all the indexes at once. This tricks work for MySQL, I have yet to play with postgres and postgis so I have no idea if they will work there. For others, the summary file data is just straight relational tables with attributes for the various Census polygons. Once you have the summary file data loaded and then load all the Tiger you will be able to generate thematic maps but joining the attributes to the geometry and classifying the geometry based on the attributes. This can't be done with MySQL and shapefiles for geometry because JOIN only works for QUERY not for classification. -Steve W. Shashi Gireddy wrote: > Hi all, > > I have my SF1 data on mysql database, i wnated to migrate to postgres > to get advantage of Postgis, I created a backup .sql file (whole data) > whose size is 8GB but its actual database size in mysql is 700MB (it > may be because insert into(bla,bla) values(bla, bla). but after i > migrated to postgres it occupied 7GB and it is damn slow(it took > 42hours for postgres to insert and its still running may take about 3 > more hours), can anybody suggest any idea how to reduce the size and > make it faster. > > thanks alot in advance. > > -- > Shashi Kiran Reddy. Gireddy, > Graduate Assistant, > CBER, University of Alabama. > http://www.cs.ua.edu/shashi > Home: 205-752-5137 Cell: 205-657-1438 > From kgrootendorst at BAIRD.COM Fri Feb 4 11:16:08 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 4 Feb 2005 13:16:08 -0600 Subject: Cursor coordinates Message-ID: Just wondering if anyone has a clue how to display the geographic coordinates of the cursor as it moves across the map frame? I'd like to display these coordinates on the webpage. I envision the coordinates changing on the fly, as the user moves the mouse around. Any ideas???? Using MS 4.2, PHP 4.3.4, Win2000 From agillesp at VT.EDU Fri Feb 4 11:44:46 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Fri, 4 Feb 2005 14:44:46 -0500 Subject: Cursor coordinates In-Reply-To: Message-ID: In Javascript you need to use: window.status = "your coordinate text". Firefox seems to have issues with this ... anyone know why the text often doesn't show up? To do the actual calculation you need to take your current extents and find how many map units per pixel there is. Something like: mapWidth / imageWidth = map_units_per_pixel_in_x Then you just need to multiply the above result by the current X position: mapX = map_units_per_pixel_in_x * imageX It should be simple to figure out the Y. There should be examples how to capture the current mouse X & Y either in the dbox code or elsewhere on the internet (read: Google). -Abe On Feb 4, 2005, at 2:16 PM, Kevin Grootendorst wrote: > Just wondering if anyone has a clue how to display the geographic > coordinates of the cursor as it moves across the map frame? > I'd like to display these coordinates on the webpage. I envision the > coordinates changing on the fly, as the user moves the mouse around. > Any ideas???? > > Using MS 4.2, PHP 4.3.4, Win2000 > From Jeroen.Ticheler at FAO.ORG Fri Feb 4 11:53:08 2005 From: Jeroen.Ticheler at FAO.ORG (Jeroen Ticheler) Date: Fri, 4 Feb 2005 20:53:08 +0100 Subject: MapServer for MAC OS X binaries Message-ID: Hi, I was wondering (after installing MapServer and all associated libraries several times on different machines) if someone has the intention to create a binary package that could install MapServer on Mac OS X, thereby avoiding the need to recompile the application. There is a good description on how to do the full compiling, but having binaries could be really useful. Greetings, Jeroen From ed at TOPOZONE.COM Fri Feb 4 12:15:37 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 4 Feb 2005 15:15:37 -0500 Subject: Cursor coordinates Message-ID: Abe - Firefox prohibits (by default) changing the status bar text. I have no idea why. Use the Tools/Options/Web Features dialog to make sure "Enable JavaScript" is checked. Then hit the Advanced button, and check "Change status bar text". - 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 Abe Gillespie Sent: Friday, February 04, 2005 2:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Cursor coordinates In Javascript you need to use: window.status = "your coordinate text". Firefox seems to have issues with this ... anyone know why the text often doesn't show up? To do the actual calculation you need to take your current extents and find how many map units per pixel there is. Something like: mapWidth / imageWidth = map_units_per_pixel_in_x Then you just need to multiply the above result by the current X position: mapX = map_units_per_pixel_in_x * imageX It should be simple to figure out the Y. There should be examples how to capture the current mouse X & Y either in the dbox code or elsewhere on the internet (read: Google). -Abe On Feb 4, 2005, at 2:16 PM, Kevin Grootendorst wrote: > Just wondering if anyone has a clue how to display the geographic > coordinates of the cursor as it moves across the map frame? > I'd like to display these coordinates on the webpage. I envision the > coordinates changing on the fly, as the user moves the mouse around. > Any ideas???? > > Using MS 4.2, PHP 4.3.4, Win2000 > From fwarmerdam at GMAIL.COM Fri Feb 4 12:21:03 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 4 Feb 2005 15:21:03 -0500 Subject: gdal utm .sid to lat/long .geotiff In-Reply-To: <4203B0B6.7030302@gmx.net> Message-ID: On Fri, 4 Feb 2005 18:28:22 +0100, joerg pfeiffer wrote: > hello, > > I would like to convert a ETM+ Mosaic (250MB) from utm .sid to lat/long > .geotiff to work with them in a mapserver map. > > So I downloaded the gdal FW tools for Windows, but it seems they cannot > handle .sid. > > Then I tried the lizardtech mrsiddecode, but i canceled the conversion > after 30 hours at 48%! Yikes! Were you working on a local file system? Normally mrsiddecode is reasonably fast. I think it might be prudent for you to decode the mosaic in "chunks". I am pretty sure there are mrsiddecode options for extracting subregions. 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 murilo.yoshida at AGX.COM.BR Fri Feb 4 12:42:49 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Fri, 4 Feb 2005 18:42:49 -0200 Subject: RES: [UMN_MAPSERVER-USERS] Strange behavior with saveWebImage (php/mapScript) In-Reply-To: <42038F45.1030503@educagri.fr> Message-ID: Lionel, What php and linux versions are you using? Perhaps we are using the same ones... Mine is debian 3.1, php 5.0.3 (as an apache DSO), apache 1.3.33 and mapserver 4.4.1. Your problem is the same as the one I have... And the weirdest thing is that the image is created correctly, just not shown correctly... Murilo -----Mensagem original----- De: Lionel Bargeot [mailto:l.bargeot at educagri.fr] Enviada em: sexta-feira, 4 de fevereiro de 2005 13:06 Para: MAPSERVER-USERS at LISTS.UMN.EDU Cc: Murilo Lacerda Yoshida Assunto: Re: [UMN_MAPSERVER-USERS] Strange behavior with saveWebImage (php/mapScript) Murilo Lacerda Yoshida wrote: > Hi all, > I recently changed may Server from redHat 8 to debian 3.1 and now is >happening a strange thing. > First I see a map, zoom and pan it, all ok. > If I continue to see a few other maps, when I zoom and pan it, >sometimes the image displayed is from a previous map. For example, I pan >my map to the right, and the page displays an image from another map, >and is an image I have seen before. > Did it happen to somebody in the list before? > > I don't have a clue of what's going on, please help !! > Thanks, > Murilo > > Hi, I didn't see your thread yesterday (sorry for multiple threads). I've just sent a mail about the same trouble. No idea about the reason. I don't know if it's debian specific. Lionel -- Charg? de mission Sols et Territoire de Bourgogne CNERTA-ENESAD, 2 rue champs-prevois, batiment grand-champs, 21000 Dijon 03.80.77.28.49 http://www.igcs-stb.org/ From kgrootendorst at BAIRD.COM Fri Feb 4 13:40:18 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Fri, 4 Feb 2005 15:40:18 -0600 Subject: zooming at specific scale to a latlon point Message-ID: I'm having a similar problem to the one you posted a couple of months ago... Did you happen to figure out how to get your map to center on the lat-long point at all scales? On Fri, 15 Oct 2004 18:13:51 -0400, Thomas Shaw wrote: >Hello, I'm developing an application with mapserver 4 / phpmapscript,and >it does the following: > >A user introduce, lat lon values to an input textbox, and then that values >are inserted in a MySQL DB, so I fetch that values from DB and the thing >I'm doing, is to create a pointobj, with that lat lon. The reason why I >need that pointobj, is for two things: 1.- I add that point in a new >layer, to show it on the map, 2.- I want to make a zoomscale to that >point, because I want that the point be zoomed to an initial scale. The >first thing is already working good, but my problem is in the second. The >way I do that is as follows: > >1.- Convert the latlon point to pixel >2.- zoomscale introducing the latlon2pixel pointobj parameter > > >mapscript code: > >dl('php_mapscript.so'); > > $map_path="/usr/local/mapserver_4/www/trackerweb/modules/Localiza/"; > $map_file="mexico.map"; > $map = ms_newMapObj($map_path.$map_file); > $extminx = $map->extent->minx; > $extminy = $map->extent->miny; > $extmaxx = $map->extent->maxx; > $extmaxy = $map->extent->maxy; >////ZOOMSCALE > $x = $longitud; // this is taken from database > $y = $latitud; // this is taken from database > > $col = $map->width; > $row = $map->height; > $px = ( ($x-$extminx) * $col ) / ($extmaxx - $extminx); //this converts >from latlon to pix x > $py = ( ($extmaxy-$y) * $row ) / ($extmaxy - $extminy); //this converts >from latlon to pix y > > $point2 = ms_newpointobj(); > $point2->setXY($px, $py); > $extent1 = ms_newrectObj(); > $extent1->setextent(doubleval($extminx),doubleval ($extminy), >doubleval($extmaxx), doubleval($extmaxy)); > $scale = '150000'; > $zoom1= $map->zoomscale($scale, $point2, $map->width, $map- >height, >$extent1); > > > >When I convert the latlon to pixel, it seems that they are well converted, >because de zoomscale presents the point centered in the map, but it only >happens in a 1:2000000 scale, but if I put a 1:90000 scale, the pointobj >doesn't appears in the center of the map, and if I put a 1:5000 scale, the >point just does not appears in the map. > >When I convert latlon to pixel, it results (x,y) pixel values with 6 >decimal each one and with that values, I create a pointobj point and use >it as a parameter of the zoomscale method, but I think that the zoomscale >takes only the integer value of the (x,y) pixel values, and that's why it >has an error that at a 1:5000 scale is greater because at that scale the >extent is at a nearest to the point. That's because at a 1:2000000 scale >the error apparently does not appears. So I hope that I was clear enogh >with my explanation, and also hope that someone can help me to solve that >error. > >Thanks in advance > >Tom Shaw From bonk at EOSDATA.GSFC.NASA.GOV Fri Feb 4 14:08:23 2005 From: bonk at EOSDATA.GSFC.NASA.GOV (John Bonk) Date: Fri, 4 Feb 2005 17:08:23 -0500 Subject: extent is invalid for geotiff Message-ID: I am very new at this. I am having problems serving a geotiff image with the following attributes: Projection Method: CT_Equirectangular ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) ProjFalseEastingGeoKey: 0.000000 m ProjFalseNorthingGeoKey: 0.000000 m Corner Coordinates: Upper Left (-13053641.300,5752577.812) Lower Left (-13053641.300,3358256.867) Upper Right (-9325729.471,5752577.812) Lower Right (-9325729.471,3358256.867) Center (-11189685.386,4555417.340) I have tried all sorts of variation of these number in the EXTENT field but I have been getting an 'extent is invalid' message. Can anyone help me express the EXTENT and PROJECTION to read this file? John ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From gireddy at GMAIL.COM Fri Feb 4 14:23:37 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri, 4 Feb 2005 16:23:37 -0600 Subject: postgis error Message-ID: I have a geometry table called counties (generated from census.shp) and it works fine when i census table as my source table. However i have another table called "care" where i have some data which i want to map onto maps, both tables have a common column called name(name of counties), so i created another table with both the tables as sources. here is the error message: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'Counties'. in c:\inetpub\wwwroot\mapExamples\allPlaces.php on line 58 Warning: [MapServer Error]: prep_DB(): Error executing POSTGIS DECLARE (the actual query) statement: 'DECLARE mycursor BINARY CURSOR FOR SELECT youth::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),OID::text from Counties WHERE the_geom && setSRID('BOX3D(-89.085 30.23,-84.295 35.02)'::BOX3D, find_srid('','Counties','the_geom') )' Postgresql reports the error as 'ERROR: find_srid() - couldnt find the corresponding SRID - is the geometry registered in the GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' More Help: Error with POSTGIS data variable. You specified ''. Standard ways of specifiying are : (1) 'geometry_column from geometry_table' (2) 'geometry_column from () as foo using unique using SRID=' Make sure you put in the 'using unique ' and 'using SRID=#' clauses in. For more help, please see http://postgis.refractions.net/doc in c:\inetpub\wwwroot\mapExamples\allPlaces.php on line 58 Fatal error: Call to a member function on a non-object in c:\inetpub\wwwroot\mapExamples\allPlaces.php on line 59 here are these three tables: CREATE TABLE counties ( gid serial NOT NULL, fips varchar, name varchar, n1 int4, median_age float8, total_hous int4, ...... the_geom geometry, CONSTRAINT counties_pkey PRIMARY KEY (gid), CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL), CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) ) WITH OIDS; ALTER TABLE counties OWNER TO root; CREATE TABLE care1 ( slno numeric(11), name varchar(50), alc numeric(11), comveh numeric(11), youth numeric(11) ) WITH OIDS; ALTER TABLE care1 OWNER TO root; So i created table care from care1 and counties CREATE TABLE care ( gid int4 NOT NULL, fips varchar, slno numeric(11), name varchar(50), alc numeric(11), comveh numeric(11), youth numeric(11), the_geom geometry, CONSTRAINT care_pkey PRIMARY KEY (gid), CONSTRAINT enforce_geotype_the_geom CHECK (geometrytype(the_geom) = 'MULTIPOLYGON'::text OR the_geom IS NULL), CONSTRAINT enforce_srid_the_geom CHECK (srid(the_geom) = -1) ) WITH OIDS; ALTER TABLE care OWNER TO root; and here is my map file LAYER NAME "Counties" CONNECTIONTYPE postgis CONNECTION "user=root password=c3n5u5 dbname=census host=localhost" DATA "the_geom from counties" STATUS DEFAULT TYPE POLYGON STATUS ON CLASSITEM "youth" CLASS NAME "Class1" EXPRESSION ([youth]<200) TEMPLATE void COLOR 164 164 255 OUTLINECOLOR 0 0 0 #END END END Cany anybody please help me with this, thanks a million in advance. -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From beny.santoso at GMAIL.COM Fri Feb 4 15:42:06 2005 From: beny.santoso at GMAIL.COM (beny santoso) Date: Sat, 5 Feb 2005 06:42:06 +0700 Subject: Map tools didn't work Message-ID: Hi all, I have a problem with maptool in php mapscript. My map in oracle spatial and appeared in my application with massage 'done with warning' (in the left corner bellow the webpage). But map tool (zoom, pan etc) didn't work. When i click this map tool, nothing done. Any ideas? Thank's for any help. Regard, Beny From pramsey at REFRACTIONS.NET Fri Feb 4 16:04:50 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 4 Feb 2005 16:04:50 -0800 Subject: postgis error In-Reply-To: <5f447e35050204142362facf7@mail.gmail.com> Message-ID: This would appear to be good advice. Have you confirmed that your geometry column does in fact appear correctly in geometry_columns? P On 4-Feb-05, at 2:23 PM, Shashi Gireddy wrote: > > Postgresql reports the error as 'ERROR: find_srid() - couldnt find the > corresponding SRID - is the geometry registered in the > GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' > From jeff at BUTTEBUILT.ORG Fri Feb 4 17:40:42 2005 From: jeff at BUTTEBUILT.ORG (Jeff Cotterman) Date: Fri, 4 Feb 2005 19:40:42 -0600 Subject: Frustration setting in.. Plotting a single point... Message-ID: I'm sure this is something very simple, and I have gone through the archives, and have copied numerous examples, the only thing I think can be causing a problem is the huge extents of my shape file, and the point not being converted correctly? There are two shapefiles for the US, and state borders.. Anyway, here is my php file (which should look almost identical to the many examples given) and my map file, any pointers would be greatly appreciated. I have tried it with and without the setProjection also.. set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); $point_layer->setProjection("proj=latlong",MS_TRUE); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("point"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 20); // draw our image without the points $image = $map->draw(); // initialize our point and add it to the map $point = ms_newPointObj(); $longitude="-149.0300"; $latitude="61.5600"; $point->setXY($longitude, $latitude); $point->draw($map, $point_layer, $image, 0, ""); // get the location for our new image $tmp_png_file = $image->saveWebImage (MS_PNG, 0, 0, 0); exec ("mv ".$tmp_png_file." "."/home/cotterj/test.png"); ?> -------------------------------------------- MAP DEBUG on EXTENT -2526068.80 3808293.58 2601312.92 930341.78 SIZE 410 240 SHAPEPATH /home/cotterj/shp/ IMAGECOLOR 255 255 255 PROJECTION "proj=lcc" "lat_0=18" "lat_1=18" "lon_0=-93" "k_0=1" "x_0=350000" "y_0=150000" "ellps=GRS80" END WEB IMAGEPATH /home/cotterj/map IMAGEURL /home/cotterj/map END LAYER NAME "usa" DATA county STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASS NAME "base conus" COLOR 255 255 255 END END LAYER NAME "State Outlines" DATA state STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASS NAME "usa" OUTLINECOLOR 102 102 102 END END END # end of map file --------------------------------------------- Once again any help or things to try would be appreciated! I think I have tried ever incarnation in the archives! Cheers, Jeff From ed at TOPOZONE.COM Fri Feb 4 20:06:55 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 4 Feb 2005 23:06:55 -0500 Subject: Frustration setting in.. Plotting a single point... Message-ID: Jeff - Sorry if I'm tuning in late, but I'm not exactly sure what the symptom you're seeing is. However, your EXTENT: EXTENT -2526068.80 3808293.58 2601312.92 930341.78 Is wrong, as it needs to be minX, minY, maxX, maxY and your minY is larger than your maxY. There's nothing especially huge about those extents, and I don't see why there should be a problem with them, if you put them in the right order. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Cotterman Sent: Friday, February 04, 2005 8:41 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Frustration setting in.. Plotting a single point... I'm sure this is something very simple, and I have gone through the archives, and have copied numerous examples, the only thing I think can be causing a problem is the huge extents of my shape file, and the point not being converted correctly? There are two shapefiles for the US, and state borders.. Anyway, here is my php file (which should look almost identical to the many examples given) and my map file, any pointers would be greatly appreciated. I have tried it with and without the setProjection also.. set("name", "markers"); $point_layer->set("type", MS_LAYER_POINT); $point_layer->set("status", MS_DEFAULT); $point_layer->setProjection("proj=latlong",MS_TRUE); // create a class and style for this layer $point_class = ms_newClassObj($point_layer); $point_style = ms_newStyleObj($point_class); $point_symbol = $map->getSymbolByName("point"); $point_style->set("symbol", $point_symbol); $point_style->set("size", 20); // draw our image without the points $image = $map->draw(); // initialize our point and add it to the map $point = ms_newPointObj(); $longitude="-149.0300"; $latitude="61.5600"; $point->setXY($longitude, $latitude); $point->draw($map, $point_layer, $image, 0, ""); // get the location for our new image $tmp_png_file = $image->saveWebImage (MS_PNG, 0, 0, 0); exec ("mv ".$tmp_png_file." "."/home/cotterj/test.png"); ?> -------------------------------------------- MAP DEBUG on EXTENT -2526068.80 3808293.58 2601312.92 930341.78 SIZE 410 240 SHAPEPATH /home/cotterj/shp/ IMAGECOLOR 255 255 255 PROJECTION "proj=lcc" "lat_0=18" "lat_1=18" "lon_0=-93" "k_0=1" "x_0=350000" "y_0=150000" "ellps=GRS80" END WEB IMAGEPATH /home/cotterj/map IMAGEURL /home/cotterj/map END LAYER NAME "usa" DATA county STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASS NAME "base conus" COLOR 255 255 255 END END LAYER NAME "State Outlines" DATA state STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASS NAME "usa" OUTLINECOLOR 102 102 102 END END END # end of map file --------------------------------------------- Once again any help or things to try would be appreciated! I think I have tried ever incarnation in the archives! Cheers, Jeff From ed at TOPOZONE.COM Fri Feb 4 20:10:06 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 4 Feb 2005 23:10:06 -0500 Subject: extent is invalid for geotiff Message-ID: John - If that's the only data layer in your map, ignore PROJECTION completely, at least for now. Have you tried an EXTENT of: EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Bonk Sent: Friday, February 04, 2005 5:08 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] extent is invalid for geotiff I am very new at this. I am having problems serving a geotiff image with the following attributes: Projection Method: CT_Equirectangular ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) ProjFalseEastingGeoKey: 0.000000 m ProjFalseNorthingGeoKey: 0.000000 m Corner Coordinates: Upper Left (-13053641.300,5752577.812) Lower Left (-13053641.300,3358256.867) Upper Right (-9325729.471,5752577.812) Lower Right (-9325729.471,3358256.867) Center (-11189685.386,4555417.340) I have tried all sorts of variation of these number in the EXTENT field but I have been getting an 'extent is invalid' message. Can anyone help me express the EXTENT and PROJECTION to read this file? John ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From lfilak at MEDINACO.ORG Fri Feb 4 20:16:29 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 4 Feb 2005 23:16:29 -0500 Subject: Frustration setting in.. Plotting a single point... Message-ID: The following message was sent by Jeff Cotterman on Fri, 4 Feb 2005 19:40:42 -0600. > I'm sure this is something very simple, and I have gone through the > archives, and have copied numerous examples, the only thing I think can be > causing a problem is the huge extents of my shape file, and the point not > being converted correctly? There are two shapefiles for the US, and state > borders.. > > Anyway, here is my php file (which should look almost identical to the many > examples given) and my map file, any pointers would be greatly appreciated. > I have tried it with and without the setProjection also.. Jeff, I don't have the complete answer(s) but if you temporarily set the xy of the point to a northing & easting that falls within the extents does it draw? Are you sure your 'lower' northing is 3808293 and the 'higher' is 930341? Lowell From lfilak at MEDINACO.ORG Fri Feb 4 20:47:05 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 4 Feb 2005 23:47:05 -0500 Subject: Frustration setting in.. Plotting a single point... Message-ID: The following message was sent by Lowell Filak on Fri, 4 Feb 2005 23:16:29 -0500. > The following message was sent by Jeff Cotterman > on Fri, 4 Feb 2005 19:40:42 -0600. > > > I'm sure this is something very simple, and I have gone through the > > archives, and have copied numerous examples, the only thing I think can be > > causing a problem is the huge extents of my shape file, and the point not > > being converted correctly? There are two shapefiles for the US, and state > > borders.. > > > > Anyway, here is my php file (which should look almost identical to the > many > > examples given) and my map file, any pointers would be greatly > appreciated. > > I have tried it with and without the setProjection also.. > > Jeff, > > I don't have the complete answer(s) but if you temporarily set the xy of > the point to a northing & easting that falls within the extents does it > draw? > Are you sure your 'lower' northing is 3808293 and the 'higher' is 930341? Make that your 'lower' & 'higher' easting. X/Y Northing/Easting - why don't they line up? Rich, survey me out of this one! Lowell From gireddy at GMAIL.COM Fri Feb 4 21:19:32 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri, 4 Feb 2005 23:19:32 -0600 Subject: postgis error In-Reply-To: Message-ID: Yes, I checked all columns, they are looking fine, and the_geom row contains srid also, but somehow mapserver is not recognising it. Is just 'the_geom' row is required to draw a shape image or any other rows are also required to do this. thank you. On Fri, 04 Feb 2005 16:04:50 -0800, Paul Ramsey wrote: > This would appear to be good advice. Have you confirmed that your > geometry column does in fact appear correctly in geometry_columns? > P > > On 4-Feb-05, at 2:23 PM, Shashi Gireddy wrote: > > > > Postgresql reports the error as 'ERROR: find_srid() - couldnt find the > > corresponding SRID - is the geometry registered in the > > GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' > > > > -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From jeff at BUTTEBUILT.ORG Fri Feb 4 21:50:38 2005 From: jeff at BUTTEBUILT.ORG (Jeff Cotterman) Date: Fri, 4 Feb 2005 20:50:38 -0900 Subject: Frustration setting in.. Plotting a single point... In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCB7D@ptolemy.topozone.com> Message-ID: Thanks Ed, I switched the two and you should have seen my glee when the png file size increased by 8 bytes, just enough for a small point, but alas still no point. However the EXTENT line I got from someone else, so I never questioned that part, and when I tried running ogrinfo on the shape files, the server doesn't have a full GDAL install, so I'm gonna nab the shapefiles and get GDAL up on my machine here... So I'm not going to trust the EXTENTs and try to figure them out, thats the one part I haven't changed... I even tried setting the point to be dead middle of the range, and still no point.. But I least I have something new to try! Thanks! Jeff Ed McNierney wrote: >Jeff - > >Sorry if I'm tuning in late, but I'm not exactly sure what the symptom >you're seeing is. > >However, your EXTENT: > >EXTENT -2526068.80 3808293.58 2601312.92 930341.78 > >Is wrong, as it needs to be minX, minY, maxX, maxY and your minY is >larger than your maxY. > >There's nothing especially huge about those extents, and I don't see why >there should be a problem with them, if you put them in the right order. > > - Ed > >Ed McNierney >TopoZone.com > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Jeff Cotterman >Sent: Friday, February 04, 2005 8:41 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Frustration setting in.. Plotting a >single point... > >I'm sure this is something very simple, and I have gone through the >archives, and have copied numerous examples, the only thing I think can >be >causing a problem is the huge extents of my shape file, and the point >not >being converted correctly? There are two shapefiles for the US, and >state >borders.. > >Anyway, here is my php file (which should look almost identical to the >many >examples given) and my map file, any pointers would be greatly >appreciated. > I have tried it with and without the setProjection also.. > > >//Load the dynamic library. >dl('php_mapscript.so'); > >// create our map object >$map_file = "basic.map"; >$map = ms_newMapObj($map_file); > >// create a temp layer to hold our points >$point_layer = ms_newLayerObj($map); >$point_layer->set("name", "markers"); >$point_layer->set("type", MS_LAYER_POINT); >$point_layer->set("status", MS_DEFAULT); >$point_layer->setProjection("proj=latlong",MS_TRUE); > >// create a class and style for this layer >$point_class = ms_newClassObj($point_layer); >$point_style = ms_newStyleObj($point_class); >$point_symbol = $map->getSymbolByName("point"); >$point_style->set("symbol", $point_symbol); >$point_style->set("size", 20); > >// draw our image without the points >$image = $map->draw(); > >// initialize our point and add it to the map >$point = ms_newPointObj(); >$longitude="-149.0300"; >$latitude="61.5600"; >$point->setXY($longitude, $latitude); >$point->draw($map, $point_layer, $image, 0, ""); > >// get the location for our new image >$tmp_png_file = $image->saveWebImage (MS_PNG, 0, 0, 0); >exec ("mv ".$tmp_png_file." "."/home/cotterj/test.png"); >?> > >-------------------------------------------- >MAP > DEBUG on > EXTENT -2526068.80 3808293.58 2601312.92 930341.78 > SIZE 410 240 > SHAPEPATH /home/cotterj/shp/ > IMAGECOLOR 255 255 255 > PROJECTION > "proj=lcc" > "lat_0=18" > "lat_1=18" > "lon_0=-93" > "k_0=1" > "x_0=350000" > "y_0=150000" > "ellps=GRS80" > END > > WEB > IMAGEPATH /home/cotterj/map > IMAGEURL /home/cotterj/map > END > > LAYER > NAME "usa" > DATA county > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:4269" > END > CLASS > NAME "base conus" > COLOR 255 255 255 > END > END > LAYER > NAME "State Outlines" > DATA state > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:4269" > END > CLASS > NAME "usa" > OUTLINECOLOR 102 102 102 > END > END >END # end of map file > >--------------------------------------------- > >Once again any help or things to try would be appreciated! I think I >have >tried ever incarnation in the archives! > >Cheers, >Jeff > > > > From l.bargeot at EDUCAGRI.FR Fri Feb 4 22:19:13 2005 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Sat, 5 Feb 2005 07:19:13 +0100 Subject: RES: [UMN_MAPSERVER-USERS] Strange behavior with saveWebIma In-Reply-To: Message-ID: Murilo Lacerda Yoshida wrote: > Lionel, > What php and linux versions are you using? Perhaps we are using the >same ones... > Mine is debian 3.1, php 5.0.3 (as an apache DSO), apache 1.3.33 and >mapserver 4.4.1. > Your problem is the same as the one I have... And the weirdest thing >is that the image is created correctly, just not shown correctly... > > Murilo > > > Hi, I use : debian 3.1 apache 1.3.33 php4 4.3.10 as an apache DSO mapserver 4.4.1 I think we have the same problem and I have no idea about the solution. Lionel From siki at AGT.BME.HU Sat Feb 5 04:26:01 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sat, 5 Feb 2005 11:26:01 -0100 Subject: gdal utm .sid to lat/long .geotiff {Scanned} In-Reply-To: <4203B0B6.7030302@gmx.net> Message-ID: Hi, A did something similar recently with a 50 MB sid file. The mrsiddecode took appr. 10 hours, and i get 1 GB tiff. Then I used gdalwarp to split the images, it was much faster. An other solution to have gdal with mrsid support. There were some threads on the list about it before. Check it. You have to download an extra library from LizardTech. Bye Zoltan On Fri, 4 Feb 2005, joerg pfeiffer wrote: > hello, > > I would like to convert a ETM+ Mosaic (250MB) from utm .sid to lat/long > .geotiff to work with them in a mapserver map. > > So I downloaded the gdal FW tools for Windows, but it seems they cannot > handle .sid. > > Then I tried the lizardtech mrsiddecode, but i canceled the conversion > after 30 hours at 48%! > > What should I do??? > > Joerg > From ed at TOPOZONE.COM Sat Feb 5 06:57:04 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 5 Feb 2005 09:57:04 -0500 Subject: Frustration setting in.. Plotting a single point... Message-ID: Jeff - You might be able to (temporarily) reduce the number of variables in your problem by having your temp point layer use the default output projection of the map. You'll need to change the point coordinates to be in the middle of the projected EXTENT. Check colors, too, to make sure you're not drawing white on white.... - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Cotterman Sent: Saturday, February 05, 2005 12:51 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Frustration setting in.. Plotting a single point... Thanks Ed, I switched the two and you should have seen my glee when the png file size increased by 8 bytes, just enough for a small point, but alas still no point. However the EXTENT line I got from someone else, so I never questioned that part, and when I tried running ogrinfo on the shape files, the server doesn't have a full GDAL install, so I'm gonna nab the shapefiles and get GDAL up on my machine here... So I'm not going to trust the EXTENTs and try to figure them out, thats the one part I haven't changed... I even tried setting the point to be dead middle of the range, and still no point.. But I least I have something new to try! Thanks! Jeff Ed McNierney wrote: >Jeff - > >Sorry if I'm tuning in late, but I'm not exactly sure what the symptom >you're seeing is. > >However, your EXTENT: > >EXTENT -2526068.80 3808293.58 2601312.92 930341.78 > >Is wrong, as it needs to be minX, minY, maxX, maxY and your minY is >larger than your maxY. > >There's nothing especially huge about those extents, and I don't see why >there should be a problem with them, if you put them in the right order. > > - Ed > >Ed McNierney >TopoZone.com > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of Jeff Cotterman >Sent: Friday, February 04, 2005 8:41 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Frustration setting in.. Plotting a >single point... > >I'm sure this is something very simple, and I have gone through the >archives, and have copied numerous examples, the only thing I think can >be >causing a problem is the huge extents of my shape file, and the point >not >being converted correctly? There are two shapefiles for the US, and >state >borders.. > >Anyway, here is my php file (which should look almost identical to the >many >examples given) and my map file, any pointers would be greatly >appreciated. > I have tried it with and without the setProjection also.. > > >//Load the dynamic library. >dl('php_mapscript.so'); > >// create our map object >$map_file = "basic.map"; >$map = ms_newMapObj($map_file); > >// create a temp layer to hold our points >$point_layer = ms_newLayerObj($map); >$point_layer->set("name", "markers"); >$point_layer->set("type", MS_LAYER_POINT); >$point_layer->set("status", MS_DEFAULT); >$point_layer->setProjection("proj=latlong",MS_TRUE); > >// create a class and style for this layer >$point_class = ms_newClassObj($point_layer); >$point_style = ms_newStyleObj($point_class); >$point_symbol = $map->getSymbolByName("point"); >$point_style->set("symbol", $point_symbol); >$point_style->set("size", 20); > >// draw our image without the points >$image = $map->draw(); > >// initialize our point and add it to the map >$point = ms_newPointObj(); >$longitude="-149.0300"; >$latitude="61.5600"; >$point->setXY($longitude, $latitude); >$point->draw($map, $point_layer, $image, 0, ""); > >// get the location for our new image >$tmp_png_file = $image->saveWebImage (MS_PNG, 0, 0, 0); >exec ("mv ".$tmp_png_file." "."/home/cotterj/test.png"); >?> > >-------------------------------------------- >MAP > DEBUG on > EXTENT -2526068.80 3808293.58 2601312.92 930341.78 > SIZE 410 240 > SHAPEPATH /home/cotterj/shp/ > IMAGECOLOR 255 255 255 > PROJECTION > "proj=lcc" > "lat_0=18" > "lat_1=18" > "lon_0=-93" > "k_0=1" > "x_0=350000" > "y_0=150000" > "ellps=GRS80" > END > > WEB > IMAGEPATH /home/cotterj/map > IMAGEURL /home/cotterj/map > END > > LAYER > NAME "usa" > DATA county > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:4269" > END > CLASS > NAME "base conus" > COLOR 255 255 255 > END > END > LAYER > NAME "State Outlines" > DATA state > STATUS DEFAULT > TYPE POLYGON > PROJECTION > "init=epsg:4269" > END > CLASS > NAME "usa" > OUTLINECOLOR 102 102 102 > END > END >END # end of map file > >--------------------------------------------- > >Once again any help or things to try would be appreciated! I think I >have >tried ever incarnation in the archives! > >Cheers, >Jeff > > > > From gerry.creager at TAMU.EDU Sat Feb 5 11:57:35 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Sat, 5 Feb 2005 13:57:35 -0600 Subject: Map creeping on updates Message-ID: I've got a US map with extents set to keep the map to CONUS. The Shapefiles (NWS CWS, States, Counties) potentially range from Alaska, to Puerto Rico... much beyond CONUS. When I simply try to create a new display or recenter, the map moves a bit, like the curson was offset to the southeast if it's click-to-recenter. The 'imgexts' flag in the URL is set to allow extents for the full range (Alasoa to PR). What've I done wrong?!? I am including the mapfile. ***** NAME polygon-warning STATUS ON # Map image size. Change size as desired SIZE 800 800 # # Start of web interface definition. Only the TEMPLATE parameter # must be specified to display a map. See Mapserver documentation # WEB # HEADER NWS-test1.html # TEMPLATE polywarn1.html # FOOTER NWS-test2.html HEADER header2.php TEMPLATE polywarn1.html FOOTER footer2.php # MINSCALE # MAXSCALE END # Extent based on full extent of QGIS view EXTENT -125 23 -65 50 UNITS dd IMAGECOLOR 255 255 255 IMAGETYPE png # Projection definition # Projections are not currenlty supported. If desired, add your own # projection information based on Mapserver documentation. PROJECTION "init=epsg:4269" # "init=epsg:4326" END LAYER NAME nwscounties METADATA "wfs_title" "CountyOutline" END TYPE POLYGON STATUS DEFAULT DATA /var/www/mesonet/texas/data/NWScounties.shp TRANSPARENCY 100 DUMP TRUE CLASS NAME "NWScounties" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 160 160 160 END END LAYER NAME nwsstates METADATA "wfs_title" "StateOutlines" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/NWSstates.shp DUMP TRUE TRANSPARENCY 100 CLASS NAME "NWSstates" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END LAYER NAME ffw METADATA "wfs_title" "FlashFlood" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/FFW.shp DUMP TRUE CLASS NAME "FFW" # TEMPLATE COLOR 0 255 0 OUTLINECOLOR 0 255 0 END END LAYER NAME smw METADATA "wfs_title" "SpecialMarine" "wms_title" "Special Marine Warnings" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SMW.shp DUMP TRUE CLASS NAME "SMW" # TEMPLATE COLOR 255 255 0 OUTLINECOLOR 255 255 0 END END LAYER NAME svr METADATA "wfs_title" "SevereTRW" "wms_title" "Severe Thunderstorm Warnings" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SVR.shp DUMP TRUE CLASS NAME "SVR" # TEMPLATE COLOR 0 0 255 OUTLINECOLOR 0 0 255 END END LAYER NAME tor METADATA "wfs_title" "TOR" "wms_title" "Tornado Warning" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/TOR.shp DUMP TRUE CLASS NAME "TOR" # TEMPLATE COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END # Radar Layer LAYER TYPE RASTER STATUS ON NAME radar METADATA # "wfs_title" "CONUS Radar" ## REQUIRED "wms_title" "CONUS Radar" ## REQUIRED END #SIZEUNITS pixels # DUMP TRUE ### REQUIRED DATA "/var/www/mesonet/gemdata/images/radar/USrad.gif" OFFSITE 255 255 255 CLASS COLOR -1 -1 -1 # NAME 'Doppler Radar Mosaic' # TEMPLATE "radar.html" END END # LAYER LAYER NAME watch-outline METADATA "wfs_title" "WatchBox" "wms_title" "Watch Outlines" END DUMP TRUE TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/WATCH.shp # TRANSPARENCY 65 CLASS NAME "Weather Watchs" # TEMPLATE OUTLINECOLOR 255 0 255 END END LAYER NAME CWA METADATA "wfs_title" "CWSOutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/w_28de04.shp TRANSPARENCY 90 DUMP TRUE CLASS NAME "CWA" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 128 0 140 END END LAYER NAME ffw-outline METADATA "wfs_title" "FFW Outline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/FFW.shp DUMP TRUE CLASS NAME "FFW-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 0 255 0 END END LAYER NAME smw-outline METADATA "wfs_title" "SMWOutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SMW.shp DUMP TRUE CLASS NAME "SMW-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 255 255 0 END END LAYER NAME svr-outline METADATA "wfs_title" "SVROutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SVR.shp DUMP TRUE CLASS NAME "SVR-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 0 0 255 END END LAYER NAME tor-outline METADATA "wfs_title" "TOROutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/TOR.shp DUMP TRUE CLASS NAME "TOR-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END # Map File ***** thanks! gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From superbla3000 at GMX.NET Sat Feb 5 14:06:59 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sat, 5 Feb 2005 23:06:59 +0100 Subject: inside area Message-ID: hello, I d like to build a function in php, that checks, if a lat/long point is inside an area, described by several lat/long points. Is there a function, also in other languages, I can use or translate? Josp From agillesp at VT.EDU Sat Feb 5 14:27:42 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Sat, 5 Feb 2005 17:27:42 -0500 Subject: inside area In-Reply-To: <42054383.7000009@gmx.net> Message-ID: Build a shapeObj with your points, then use shapeObj::contains(). See the PHP Mapscript guide for details - http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html -Abe On Feb 5, 2005, at 5:06 PM, joerg pfeiffer wrote: > hello, > > I d like to build a function in php, that checks, if a lat/long point > is > inside an area, described by several lat/long points. > > Is there a function, also in other languages, I can use or translate? > > Josp > From superbla3000 at GMX.NET Sat Feb 5 14:24:07 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sat, 5 Feb 2005 23:24:07 +0100 Subject: inside area In-Reply-To: <32ef2f1789d5f907742343f5b2597202@vt.edu> Message-ID: ehhhh, thanks for you answer, but I have to admit, I am posting a little bit off topic... I am asking for a non mapserver project this time, only php... so I have to build a function on my own... Joerg From superbla3000 at GMX.NET Sat Feb 5 14:28:19 2005 From: superbla3000 at GMX.NET (joerg p) Date: Sat, 5 Feb 2005 23:28:19 +0100 Subject: gdal utm .sid to lat/long .geotiff {Scanned} In-Reply-To: Message-ID: > There were some threads on the list about it before. Check it. > You have to download an extra library from LizardTech. thanks,but do you mean the one that costs $500? Do you know a link ? Joerg From agillesp at VT.EDU Sat Feb 5 15:03:49 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Sat, 5 Feb 2005 18:03:49 -0500 Subject: inside area In-Reply-To: <42054787.3060806@gmx.net> Message-ID: Well I'm not sure if there is a PHP vector geometry library out there somewhere ... but the general algorithm goes like this: Create a line with one endpoint being the point in question, the other endpoint outside the bounding box of the polygon. Now test for intersections of the created line and each line in the polygon. If you have and odd amount of intersections the point's inside; even amount of intersections and the point's outside. The above is true for complex polygons too (polygons with holes). -Abe On Feb 5, 2005, at 5:24 PM, joerg pfeiffer wrote: > ehhhh, thanks for you answer, but I have to admit, I am posting a > little > bit off topic... I am asking for a non mapserver project this time, > only > php... so I have to build a function on my own... > > Joerg > From woodbri at SWOODBRIDGE.COM Sat Feb 5 14:55:38 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 5 Feb 2005 17:55:38 -0500 Subject: inside area In-Reply-To: <42054383.7000009@gmx.net> Message-ID: joerg pfeiffer wrote: > hello, > > I d like to build a function in php, that checks, if a lat/long point is > inside an area, described by several lat/long points. > > Is there a function, also in other languages, I can use or translate? If you are looking to do a pure php implementation instead of Abe's good suggestion, there are two algorithms that I know for this task. 1) sum the angles created by p[i], t, p[i+1] while i+1 <=n, where t is the point you are testing and p[1..n] is your polygon, where p[1] == p[n]. You angle calculation needs to be account for positive and negative angles. If you result is 360, then t is in the polygon and if the result is zero, it is outside the polygon. Make you tests handle numeric rounding and errors. Degenerate case is when the point lies on a segment of at a vertex. 2) Draw a line from t[x,y] to t[infinity,y] and intersect all the line segments of the polygon with the line. Count the number of intersection, if it is odd you are inside the polygon and if it is zero or even you are outside the polygon. Be careful about the degenerate case when a vertex of the polygon falls on the line, if both the other ends of the segment are on the same side of the line count it as 0 or 2, if the other ends are on opposite sides then count it as one, if both ends of the segment line on the line then throw out the segment and test the next line. Hope this helps, -Steve Woodbridge http://imaptools.com From ed at TOPOZONE.COM Sat Feb 5 18:59:58 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sat, 5 Feb 2005 21:59:58 -0500 Subject: Map creeping on updates Message-ID: Gerry - This is usually because the actual size of the displayed image doesn't match the size of the image generated by MapServer. For example, you can create a map as below with: SIZE 800 800 And display it in: And that will confuse the browser coordinate calculations. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gerry Creager N5JXS Sent: Saturday, February 05, 2005 2:58 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map creeping on updates I've got a US map with extents set to keep the map to CONUS. The Shapefiles (NWS CWS, States, Counties) potentially range from Alaska, to Puerto Rico... much beyond CONUS. When I simply try to create a new display or recenter, the map moves a bit, like the curson was offset to the southeast if it's click-to-recenter. The 'imgexts' flag in the URL is set to allow extents for the full range (Alasoa to PR). What've I done wrong?!? I am including the mapfile. ***** NAME polygon-warning STATUS ON # Map image size. Change size as desired SIZE 800 800 # # Start of web interface definition. Only the TEMPLATE parameter # must be specified to display a map. See Mapserver documentation # WEB # HEADER NWS-test1.html # TEMPLATE polywarn1.html # FOOTER NWS-test2.html HEADER header2.php TEMPLATE polywarn1.html FOOTER footer2.php # MINSCALE # MAXSCALE END # Extent based on full extent of QGIS view EXTENT -125 23 -65 50 UNITS dd IMAGECOLOR 255 255 255 IMAGETYPE png # Projection definition # Projections are not currenlty supported. If desired, add your own # projection information based on Mapserver documentation. PROJECTION "init=epsg:4269" # "init=epsg:4326" END LAYER NAME nwscounties METADATA "wfs_title" "CountyOutline" END TYPE POLYGON STATUS DEFAULT DATA /var/www/mesonet/texas/data/NWScounties.shp TRANSPARENCY 100 DUMP TRUE CLASS NAME "NWScounties" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 160 160 160 END END LAYER NAME nwsstates METADATA "wfs_title" "StateOutlines" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/NWSstates.shp DUMP TRUE TRANSPARENCY 100 CLASS NAME "NWSstates" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 0 0 0 END END LAYER NAME ffw METADATA "wfs_title" "FlashFlood" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/FFW.shp DUMP TRUE CLASS NAME "FFW" # TEMPLATE COLOR 0 255 0 OUTLINECOLOR 0 255 0 END END LAYER NAME smw METADATA "wfs_title" "SpecialMarine" "wms_title" "Special Marine Warnings" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SMW.shp DUMP TRUE CLASS NAME "SMW" # TEMPLATE COLOR 255 255 0 OUTLINECOLOR 255 255 0 END END LAYER NAME svr METADATA "wfs_title" "SevereTRW" "wms_title" "Severe Thunderstorm Warnings" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SVR.shp DUMP TRUE CLASS NAME "SVR" # TEMPLATE COLOR 0 0 255 OUTLINECOLOR 0 0 255 END END LAYER NAME tor METADATA "wfs_title" "TOR" "wms_title" "Tornado Warning" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/TOR.shp DUMP TRUE CLASS NAME "TOR" # TEMPLATE COLOR 255 0 0 OUTLINECOLOR 255 0 0 END END # Radar Layer LAYER TYPE RASTER STATUS ON NAME radar METADATA # "wfs_title" "CONUS Radar" ## REQUIRED "wms_title" "CONUS Radar" ## REQUIRED END #SIZEUNITS pixels # DUMP TRUE ### REQUIRED DATA "/var/www/mesonet/gemdata/images/radar/USrad.gif" OFFSITE 255 255 255 CLASS COLOR -1 -1 -1 # NAME 'Doppler Radar Mosaic' # TEMPLATE "radar.html" END END # LAYER LAYER NAME watch-outline METADATA "wfs_title" "WatchBox" "wms_title" "Watch Outlines" END DUMP TRUE TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/WATCH.shp # TRANSPARENCY 65 CLASS NAME "Weather Watchs" # TEMPLATE OUTLINECOLOR 255 0 255 END END LAYER NAME CWA METADATA "wfs_title" "CWSOutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/w_28de04.shp TRANSPARENCY 90 DUMP TRUE CLASS NAME "CWA" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 128 0 140 END END LAYER NAME ffw-outline METADATA "wfs_title" "FFW Outline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/FFW.shp DUMP TRUE CLASS NAME "FFW-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 0 255 0 END END LAYER NAME smw-outline METADATA "wfs_title" "SMWOutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SMW.shp DUMP TRUE CLASS NAME "SMW-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 255 255 0 END END LAYER NAME svr-outline METADATA "wfs_title" "SVROutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/SVR.shp DUMP TRUE CLASS NAME "SVR-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 0 0 255 END END LAYER NAME tor-outline METADATA "wfs_title" "TOROutline" END TYPE POLYGON STATUS ON DATA /var/www/mesonet/texas/data/TOR.shp DUMP TRUE CLASS NAME "TOR-outline" # TEMPLATE # COLOR 0 0 0 OUTLINECOLOR 255 0 0 END END END # Map File ***** thanks! gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From richard.greenwood at GMAIL.COM Sat Feb 5 20:25:41 2005 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 5 Feb 2005 21:25:41 -0700 Subject: gdal utm .sid to lat/long .geotiff {Scanned} In-Reply-To: Message-ID: On Sat, 5 Feb 2005 23:28:19 +0100, joerg p wrote: > > There were some threads on the list about it before. Check it. > > You have to download an extra library from LizardTech. > thanks,but do you mean the one that costs $500? > Do you know a link ? Try developer.lizardtech.com And what platform are you running the mrsid decoder on? I am very surprised by the long processing times that you quoted in your previous email. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From williampaul28 at YAHOO.COM Sun Feb 6 01:18:16 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Sun, 6 Feb 2005 01:18:16 -0800 Subject: workshop itasca Message-ID: Hi, I am new with mapserver. I downloaded workshop.zip (itasca) and installed on my computer. I modified index.html, but when I push INITIALIZE button the SAVE WINDOW appears to save the mapserv.exe file. Can any one tell me where I do wrong? I use apache and windowsXP professional Thank you William
--------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From nacional at CBS.UMN.EDU Sun Feb 6 02:53:15 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Sun, 6 Feb 2005 04:53:15 -0600 Subject: Problem with POINT layer in PostGIS In-Reply-To: <42039D76.3010304@geocontent.de> Message-ID: I submitted a bug for this (#1216). I have a table with point geoms and another with polygon geoms. The polygon table displays as polygon, line, and points. The point table doesn't display at all. When converted to shapefile using pgsql2shp, the points display fine. However, I need the database as it will be updated continually via a web interface. The shapefile is not an option for me. I've checked against 4.2.5, 4.4.1 and the CVS versions of MapServer and neither would display the points. All the queries run properly in psql and pgadmin. -Perry On Friday 04 February 2005 10:06 am, Dirk Jesko wrote: > The log file shows no problem. Further, if I take the logged query and > execute it within the psql shell it produces the correct result and the > log is not significantly different. I still suppose that it is not a > PostgreSQL/PostGIS problem. > > Dirk > > >Turn full logging on in PostgreSQL, attempt to render the map and see if > > it provides any further information... > > > >Drew. -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu From superbla3000 at GMX.NET Sun Feb 6 07:30:04 2005 From: superbla3000 at GMX.NET (joerg p) Date: Sun, 6 Feb 2005 16:30:04 +0100 Subject: inside area In-Reply-To: <42054EEA.2010407@swoodbridge.com> Message-ID: thanks to both of you, I ll have a try. Although I am not the math profi... ;-) Joerg From siki at AGT.BME.HU Sun Feb 6 10:38:57 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 6 Feb 2005 17:38:57 -0100 Subject: gdal utm .sid to lat/long .geotiff {Scanned} In-Reply-To: Message-ID: Hi, On Sat, 5 Feb 2005, joerg p wrote: > > There were some threads on the list about it before. Check it. > > You have to download an extra library from LizardTech. > thanks,but do you mean the one that costs $500? Not at all. > Do you know a link ? At developer.lizardtech.com after registration you can download sdk to for win, redhat, mac, ... Zoltan From siki at AGT.BME.HU Sun Feb 6 10:44:56 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 6 Feb 2005 17:44:56 -0100 Subject: workshop itasca {Scanned} In-Reply-To: <20050206091816.23572.qmail@web51801.mail.yahoo.com> Message-ID: Hi, Change the action="C:\..." parameter of the form to a document root relative path, e.g. action="/cgi-bin/mapserv.exe" Zoltan On Sun, 6 Feb 2005, william paul wrote: > I am new with mapserver. I downloaded workshop.zip (itasca) and installed on > my computer. I modified index.html, but when I push INITIALIZE button > the SAVE WINDOW appears to save the mapserv.exe file. Can any one tell > me where I do wrong? > > I use apache and windowsXP professional > > Thank you > > William > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' From nwoe at PRIVAT.UTFORS.SE Sun Feb 6 08:30:46 2005 From: nwoe at PRIVAT.UTFORS.SE (niklas woermann) Date: Sun, 6 Feb 2005 17:30:46 +0100 Subject: OT how to get free data In-Reply-To: <200502060453.15772.nacional@cbs.umn.edu> Message-ID: Hi! I dont know about you, but one thing that really annoys me is the fact that all good datasets down to street level are extremely expensive. I think the situation in the us is somewhat better than what it is here in europe. For some reason you can buy "route 66" with streetmap data down to streetn adress level of europe for about 40 euro at your nearest gas station. if you want access to the same data in a server environment the costs are ridiculous. 100 000 euro probably. i think it would be feasible to set up some kind of collaborative web based effort to gather data and put it into the public domain. this offcourse is not an easy task, but certainly doable. i stumbled onto http://www.openstreetmap.org/, which seems like an effort in this direction. anyone care to comment? regards niklas woermann From Tom.Kralidis at EC.GC.CA Sun Feb 6 12:02:44 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 6 Feb 2005 15:02:44 -0500 Subject: WFS GetFeature and PropertyIsLike Filter Message-ID: Hi, I am able to run a GetFeature on a given feature type with filter PropertyIsEqualTo: http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re quest=GetFeature&typename=service_endpoints&filter=contact_countryCanada& When I attempt to run with filter PropertyIsLike: http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re quest=GetFeature&typename=service_endpoints&filter=keywords*water*& I get no results back. When I re-attempt the PropertyIsLike request with no wildcards in the Literal: http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re quest=GetFeature&typename=service_endpoints&filter=keywordswater & It works. So then I think that the PropertyIsLike attributes are not needed since the previous command works. When I run it: http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re quest=GetFeature&typename=service_endpoints&filter=keywordswater& It doesn't work. I'm confused. The attributes or PropertyIsLike seem to be required to execute, however they don't work when applied? ..Tom From map at HYDRARGYRUM.DE Sun Feb 6 14:14:54 2005 From: map at HYDRARGYRUM.DE (Carsten M=?ISO-8859-1?Q?=FCnchenbach?=) Date: Sun, 6 Feb 2005 16:14:54 -0600 Subject: precompiled binary: Unhandled 'written' exception in NTDLL? mapserv40, windows 2k/XP IIS/Apache Message-ID: Hi everybody, I've downloaded the windows binary version 4.4.1 and installed in on a windows xp system with IIS 5.0 and also on a windows 2k system with Apache, the web root is in both cases not on the C: partition, the cgi-bin directory is on the C: partition. In both cases I got everything installed including the workshop. But when running the workshop and hitting the "Initialize" button I'm running into an unhandled exception about problems with "it can not be written in memory ..." When starting the visual c++ debugger it shows that the exception comes from the NTDLL.dll. First I thought it doesn't work because of insufficient access rights to the temporary image directory of the I_USR. But I get the same error in an Apache environment. - running the mapserv.exe on the DOS-prompt looks fine - the apache error file gives only the "premature end of script header" message - auditing of unsuccessful object access in windows XP shows no trial to access to the tmp directory (no error entry in the event viewer) - I think the exeption comes up before. Did anyone experience that error before? Does anyone can give me a clue or even a solution? Thanks to all Carsten From ed at TOPOZONE.COM Sun Feb 6 17:41:55 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 6 Feb 2005 20:41:55 -0500 Subject: precompiled binary: Unhandled 'written' exception in NTDLL? mapserv40, windows 2k/XP IIS/Apache Message-ID: Carsten - I do not recognize this problem, but the three symptoms you list (mapserv -v runs fine, "premature end of script header" message, and no temp file) are commonly caused by lack of access to zlib.dll. Make sure that file is installed and someplace MapServer can find it. - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Carsten M?nchenbach Sent: Sunday, February 06, 2005 5:15 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] precompiled binary: Unhandled 'written' exception in NTDLL? mapserv40, windows 2k/XP IIS/Apache Hi everybody, I've downloaded the windows binary version 4.4.1 and installed in on a windows xp system with IIS 5.0 and also on a windows 2k system with Apache, the web root is in both cases not on the C: partition, the cgi-bin directory is on the C: partition. In both cases I got everything installed including the workshop. But when running the workshop and hitting the "Initialize" button I'm running into an unhandled exception about problems with "it can not be written in memory ..." When starting the visual c++ debugger it shows that the exception comes from the NTDLL.dll. First I thought it doesn't work because of insufficient access rights to the temporary image directory of the I_USR. But I get the same error in an Apache environment. - running the mapserv.exe on the DOS-prompt looks fine - the apache error file gives only the "premature end of script header" message - auditing of unsuccessful object access in windows XP shows no trial to access to the tmp directory (no error entry in the event viewer) - I think the exeption comes up before. Did anyone experience that error before? Does anyone can give me a clue or even a solution? Thanks to all Carsten From Tom.Kralidis at EC.GC.CA Sun Feb 6 18:03:14 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Sun, 6 Feb 2005 21:03:14 -0500 Subject: WFS GetFeature Filters and character case Message-ID: Hi, When I query my MapServer WFS with a filter (like PropertyIsEqualTo or PropertyIsLike), the queries must be passed as case-sensitive with what is in the underlying repository. For example, if I have a table with a record with a column value named "Birds": This works: title Birds This doesn't: title birds I couldn't find anything in the Filter 1.0.0 spec w.r.t. this. I find this cumbersome, especially in the context of having a WFS as a search server. A WFS client with no prior knowledge may not be able to fetch the results it's looking for due to case sensitive input. My question is: whose problem is this? Does the Filter spec allow for case-insensitive filters? If no, the spec does allow a WFS to advertise and support user-defined functions. Perhaps MapServer WFS can support such a function? While we're on this topic, some useful enhancements for WFS functions would be: - Min() - Max() - Average() ..Tom From gerry.creager at TAMU.EDU Sun Feb 6 18:52:44 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Sun, 6 Feb 2005 20:52:44 -0600 Subject: Another question... Message-ID: I've a set of polygons we're displaying... weather warning areas. We're also displaying radar imagery. I need to be able to put the _filled_ polygons in the background, but have the (same color) polygon outlines on top of the radar imagery. Is there a clean way anyone's come up with to accomplish this and still be able to select a single polygon selector? In other words, if I list-select Tornado Watches, I want *both* polygons, fill and outline, to appear instead of just one or the other. And I really need just one selector for that warning type. Probably simple to do, I'm just sorta lost! Thanks, Gerry -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From woodbri at SWOODBRIDGE.COM Sun Feb 6 20:05:07 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 6 Feb 2005 23:05:07 -0500 Subject: Another question... In-Reply-To: <4206D7FC.3030203@tamu.edu> Message-ID: Gerry, You want to set up something like this, I'll leave the details to you: LAYER GROUP "TWatch" DATA "polygons" # make this filled END LAYER NAME "imagery" ... END LAYER GROUP "TWatch" DATA "polygons" # make the fill COLOR -1 -1 -1 # make the OUTLINECOLOR 255 255 255 END Now you can turn on/off LAYER "TWatch", You can set up as many as you want like this with unique group names. -Steve W. Gerry Creager N5JXS wrote: > I've a set of polygons we're displaying... weather warning areas. We're > also displaying radar imagery. > > I need to be able to put the _filled_ polygons in the background, but > have the (same color) polygon outlines on top of the radar imagery. > > Is there a clean way anyone's come up with to accomplish this and still > be able to select a single polygon selector? In other words, if I > list-select Tornado Watches, I want *both* polygons, fill and outline, > to appear instead of just one or the other. And I really need just one > selector for that warning type. > > Probably simple to do, I'm just sorta lost! > > Thanks, Gerry > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 > Page: 979.228.0173 > Office: 903A Eller Bldg, TAMU, College Station, TX 77843 > From gerry.creager at TAMU.EDU Sun Feb 6 20:27:10 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Sun, 6 Feb 2005 22:27:10 -0600 Subject: Another question... In-Reply-To: <4206E8F3.7020202@swoodbridge.com> Message-ID: Ooooh! I see. I thought layer names had to be unique, so I didn't try having 2 the same. I understand the order they have to be in! Thanks!!!! gerry Stephen Woodbridge wrote: > Gerry, > > You want to set up something like this, I'll leave the details to you: > > LAYER > GROUP "TWatch" > DATA "polygons" > # make this filled > END > LAYER > NAME "imagery" > ... > END > LAYER > GROUP "TWatch" > DATA "polygons" > # make the fill COLOR -1 -1 -1 > # make the OUTLINECOLOR 255 255 255 > END > > Now you can turn on/off LAYER "TWatch", You can set up as many as you > want like this with unique group names. > > -Steve W. > > Gerry Creager N5JXS wrote: > >> I've a set of polygons we're displaying... weather warning areas. We're >> also displaying radar imagery. >> >> I need to be able to put the _filled_ polygons in the background, but >> have the (same color) polygon outlines on top of the radar imagery. >> >> Is there a clean way anyone's come up with to accomplish this and still >> be able to select a single polygon selector? In other words, if I >> list-select Tornado Watches, I want *both* polygons, fill and outline, >> to appear instead of just one or the other. And I really need just one >> selector for that warning type. >> >> Probably simple to do, I'm just sorta lost! >> >> Thanks, Gerry >> -- >> Gerry Creager -- gerry.creager at tamu.edu >> Texas Mesonet -- AATLT, Texas A&M University >> Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 >> Page: 979.228.0173 >> Office: 903A Eller Bldg, TAMU, College Station, TX 77843 >> -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From jesko at GEOCONTENT.DE Sun Feb 6 23:35:36 2005 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Mon, 7 Feb 2005 08:35:36 +0100 Subject: Problem with POINT layer in PostGIS In-Reply-To: <200502060453.15772.nacional@cbs.umn.edu> Message-ID: Thanks. I just remembered that I had POINT-layers working with older versions of PostgreSQL, PostGIS and Mapserver. I am not sure, but I think it was PostgreSQL 8.0.0beta5, PostGIS 0.9.0 and Mapserver 4.2.1. Also, I now think that I remember reading something in the postgis-users list about problems with Mapserver POINT-layers and the RC-Versions of PostGIS 1.0.0. Unfortunately, I can not find the thread anymore. Dirk P.S.: I also added this comment to the bug report. >I submitted a bug for this (#1216). I have a table with point geoms and >another with polygon geoms. The polygon table displays as polygon, line, and >points. The point table doesn't display at all. > >When converted to shapefile using pgsql2shp, the points display fine. >However, I need the database as it will be updated continually via a web >interface. The shapefile is not an option for me. > >I've checked against 4.2.5, 4.4.1 and the CVS versions of MapServer and >neither would display the points. All the queries run properly in psql and >pgadmin. > >-Perry > > From joseluismapserver at YAHOO.ES Mon Feb 7 00:18:01 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Mon, 7 Feb 2005 09:18:01 +0100 Subject: Draw line HELP!! Message-ID: I wrote this some days agao and nobody answers me. I am sure somebody must know, please answer. Thank you I know it might be an easy question, but could anybody explain to me how to draw a line between two points in a map. I will need what I have to write in the map file (symbols, layers,...) and the mapserver commands (in java or php) Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Feb 7 00:30:25 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 7 Feb 2005 09:30:25 +0100 Subject: WFS GetFeature Filters and character case In-Reply-To: <2576812186CDD411BF1500508B6DCE950972F5A6@ecnwri1.ontario.int.ec.gc.ca > Message-ID: Hi Tom, I ran into this exact same problem last year. I found the following e-mail thread on the subject: http://mail.opengeospatial.org/pipermail/wfs-dev/2003-June/000139.html So the problem is in the filter spec, and it seems that case-sensitive search is supposed to be the default. I don't know though if any change request has ever been submitted for this. Best regards, Bart > Hi, > > When I query my MapServer WFS with a filter (like PropertyIsEqualTo or > PropertyIsLike), the queries must be passed as case-sensitive with what > is in the underlying repository. For example, if I have a table with a > record with a column value named "Birds": > > This works: > > > > title > Birds > > > > This doesn't: > > > > title > birds > > > > I couldn't find anything in the Filter 1.0.0 spec w.r.t. this. > > I find this cumbersome, especially in the context of having a WFS as a > search server. A WFS client with no prior knowledge may not be able to > fetch the results it's looking for due to case sensitive input. > > My question is: whose problem is this? Does the Filter spec allow for > case-insensitive filters? If no, the spec does allow a WFS to advertise > and support user-defined functions. Perhaps MapServer WFS can support > such a function? > > While we're on this topic, some useful enhancements for WFS functions > would be: > > - Min() > - Max() > - Average() > > ..Tom > > From williampaul28 at YAHOO.COM Mon Feb 7 00:37:26 2005 From: williampaul28 at YAHOO.COM (william paul) Date: Mon, 7 Feb 2005 00:37:26 -0800 Subject: mapserver install - save and download window for mapserver.exe Message-ID: Hi and Thank you Zoltan, but: I use Windows XP professional, FAT32 as partition and Apache 2, mapserver_pg_440. I used Workshop Demo, Itasca Demo and I also created my mapserver. In HTML file I tried with: c:\.....\cgi-bin\mapserver.exe - absolute path \cgi-bin\mapserver.exe, relative path - both with backslahes or slahes. When I use absolute path (e.g. c:\...\cgi-bin|mapserver.exe I get the save and download window When I use relative path \cgi-bin\mapserver.exe I get "The page cannot be displayed" The lines in apache for ScriptAlias are: # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # ScriptAlias /cgi-bin/ "C:/apache/Apache2/cgi-bin/" # # "C:/apache/Apache2/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # AllowOverride none Options none Order allow,deny Allow from all I've seen the same error at other users, and some asnwers were about read and execute permissions for the cgi-bin folder. In my case with Fat32 partition, I can't modify read and execute permissions. Do I have to convert to NTFS? Can Mapserver be used on FAT32? I'll apreciate any help, William --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From lester at LSCES.CO.UK Mon Feb 7 01:16:02 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Mon, 7 Feb 2005 09:16:02 +0000 Subject: mapserver install - save and download window for mapserver.exe In-Reply-To: <20050207083726.16562.qmail@web51804.mail.yahoo.com> Message-ID: william paul wrote: > Hi and Thank you Zoltan, but: > I use Windows XP professional, FAT32 as partition and Apache 2, > mapserver_pg_440. > I used Workshop Demo, Itasca Demo and I also created my mapserver. > In HTML file I tried with: > c:\.....\cgi-bin\mapserver.exe - absolute path > \cgi-bin\mapserver.exe, relative path - both with backslahes or slahes. > When I use absolute path (e.g. c:\...\cgi-bin|mapserver.exe I get the > save and download window > When I use relative path \cgi-bin\mapserver.exe I get "The page cannot > be displayed" > The lines in apache for ScriptAlias are: > # > # ScriptAlias: This controls which directories contain server scripts. > # ScriptAliases are essentially the same as Aliases, except that > # documents in the realname directory are treated as applications and > # run by the server when requested rather than as documents sent to the > client. > # The same rules about trailing "/" apply to ScriptAlias directives as to > # Alias. > # > ScriptAlias /cgi-bin/ "C:/apache/Apache2/cgi-bin/" ScriptAlias /cgi-bin/ "C:\apache\Apache2\cgi-bin\" > # > # "C:/apache/Apache2/cgi-bin" should be changed to whatever your > ScriptAliased > # CGI directory exists, if you have that configured. > # > > AllowOverride none > Options none > Order allow,deny > Allow from all > > > I've seen the same error at other users, and some asnwers were about > read and execute permissions for the cgi-bin folder. In my case with > Fat32 partition, I can't modify read and execute permissions. Do I have > to convert to NTFS? Can Mapserver be used on FAT32? Have you edited index.html in workshop so that THAT works. It does give a few messages while things are not right, and once you get things set it works fine. Your temporary directories have to be visible to apache to display the results. http://home.lsces.co.uk/Maps/itasca/index.html is working W2k/Apache2/PHP5 -- Lester Caine ----------------------------- L.S.Caine Electronic Services From lester at LSCES.CO.UK Mon Feb 7 01:18:26 2005 From: lester at LSCES.CO.UK (Lester Caine) Date: Mon, 7 Feb 2005 09:18:26 +0000 Subject: mapserver install - save and download window for mapserver.exe In-Reply-To: <20050207083726.16562.qmail@web51804.mail.yahoo.com> Message-ID: william paul wrote: > Hi and Thank you Zoltan, but: > I use Windows XP professional, FAT32 as partition and Apache 2, > mapserver_pg_440. > I used Workshop Demo, Itasca Demo and I also created my mapserver. > In HTML file I tried with: > c:\.....\cgi-bin\mapserver.exe - absolute path > \cgi-bin\mapserver.exe, relative path - both with backslahes or slahes. Just noticed a funny with the itasca demo. The executable is named mapserv not mapserv.exe I've got both in cgi-bin - but I don't remember changing things ;) -- Lester Caine ----------------------------- L.S.Caine Electronic Services From ErwinVanderBij at CS.COM Mon Feb 7 01:26:47 2005 From: ErwinVanderBij at CS.COM (Erwin v.d. Bij) Date: Mon, 7 Feb 2005 04:26:47 -0500 Subject: two labels for one polygon Message-ID: I have a problem with showing labels of polygons in Oracle Spatial/mapserver environment. I have polygons and their labels defined in the same layer group. The following happens: if I add a polygon to the database the polygon will be shown with 2 times the same label. If I add a new polygon, the old polygon will be shown now with one label and the new polygon with two labels again. Any idea? Erwin From map at HYDRARGYRUM.DE Mon Feb 7 01:35:07 2005 From: map at HYDRARGYRUM.DE (Carsten M=?ISO-8859-1?Q?=FCnchenbach?=) Date: Mon, 7 Feb 2005 03:35:07 -0600 Subject: precompiled binary: Unhandled 'written' exception in NTDLL? mapserv40, windows 2k/XP IIS/Apache Message-ID: Hi everybody, Ed, thanks for your reply, I installed the ws4w package on an windows xp system - it worked. Then I took the mapserv_44.exe from the current ws4w-package and overwrote the mapserv.exe distributed as the current windows binary - it works! As far as I can see the mapserv.exe has been corrupt. Carsten >Carsten - > >I do not recognize this problem, but the three symptoms you list (mapserv -v runs fine, "premature end of script header" message, and no temp file) are commonly caused by lack of access to zlib.dll. Make sure that file is installed and someplace MapServer can find it. > > - Ed > >Ed McNierney >TopoZone.com > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Carsten M?nchenbach >Sent: Sunday, February 06, 2005 5:15 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] precompiled binary: Unhandled 'written' exception in NTDLL? mapserv40, windows 2k/XP IIS/Apache > >Hi everybody, > >I've downloaded the windows binary version 4.4.1 and installed in on a >windows xp system with IIS 5.0 and also on a windows 2k system with Apache, >the web root is in both cases not on the C: partition, the cgi-bin directory >is on the C: partition. In both cases I got everything installed including >the workshop. But when running the workshop and hitting the "Initialize" >button I'm running into an unhandled exception about problems with "it can >not be written in memory ..." When starting the visual c++ debugger it shows >that the exception comes from the NTDLL.dll. First I thought it doesn't work >because of insufficient access rights to the temporary image directory of >the I_USR. But I get the same error in an Apache environment. > >- running the mapserv.exe on the DOS-prompt looks fine >- the apache error file gives only the "premature end of script header" message >- auditing of unsuccessful object access in windows XP shows no trial to >access to the tmp directory (no error entry in the event viewer) - I think >the exeption comes up before. > >Did anyone experience that error before? Does anyone can give me a clue or >even a solution? > >Thanks to all >Carsten From bartvde at XS4ALL.NL Mon Feb 7 02:08:24 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 7 Feb 2005 11:08:24 +0100 Subject: two labels for one polygon In-Reply-To: <3A036AF3.74CCB898.BE2B12DA@cs.com> Message-ID: Hi, could this be a problem with the label cache? Can you try with LABELCACHE OFF on your LAYER which contains the labels? Could you provide us with a screendump of the problem? Best regards, Bart > I have a problem with showing labels of polygons in Oracle > Spatial/mapserver environment. I have polygons and their labels defined in > the same layer group. The following happens: if I add a polygon to the > database the polygon will be shown with 2 times the same label. If I add a > new polygon, the old polygon will be shown now with one label and the new > polygon with two labels again. Any idea? > > Erwin > From margottid at COMUNE.LUGO.RA.IT Mon Feb 7 04:41:08 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 7 Feb 2005 13:41:08 +0100 Subject: MyGIS support: how can activate it? Message-ID: Hi list, I have installed, on a Linux Red Hat 9, mySQL 4.1.9 (which should have spatial extensions) from these RPMs: - MySQL-server-4.1.9-0.i386.rpm - MySQL-Max-4.1.9-0.i386.rpm - MySQL-client-4.1.9-0.i386.rpm - MySQL-devel-4.1.9-0.i386.rpm Then I have configured and compiled Mapserver 4.2.3 with these options: ./configure --mandir=/usr/local/share/man --with-mygis --with-php=/usr/local/include/php/ --with-gdal=/usr/local/bin/gdal-config --with-ogr --with-proj --with-wmsclient --with-wfsclient (note please the --with-mygis option). During configuration, I get these messages: ... checking if MyGIS support requested... yes checking for mysql_config... /usr/bin/mysql_config yes, user supplied my_config ... So, I think it found the right files for compilation. During compilation, I get these messages: ... gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF -DUSE_OGR -DUSE_GDAL -DUSE_MYGIS -I/usr/local/include -I/usr/local/include -I/usr/include/mysql -mcpu=i486 -fno-strength-reduce -I/usr/local/include mapmygis.c -o mapmygis.o mapmygis.c: In function `prep_DB': mapmygis.c:447: warning: assignment makes integer from pointer without a cast ... "mapmygis.o" gets compiled, but when I check my Mapserver executable I can't see MYGIS as input source: $ ./mapserv -v MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE How can I activate MYGIS support? Thank you, Daniele From lfilak at MEDINACO.ORG Mon Feb 7 05:12:36 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 7 Feb 2005 08:12:36 -0500 Subject: Draw line HELP!! Message-ID: The following message was sent by Jose Luis Gonzalez on Mon, 7 Feb 2005 09:18:01 +0100. > I wrote this some days agao and nobody answers me. I am sure somebody must know, please answer. Thank you > > I know it might be an easy question, but could anybody explain to me how to draw a line between two points in a map. > I will need what I have to write in the map file (symbols, layers,...) and the mapserver commands (in java or php) Jose, One way to do it is to create a new shapeobj, lineobj, & pointobj. Move each set of coordinates into the pointobj sequentially and 'add' that pointobj to the lineobj until all the coordinates are in. Then 'add' that lineobj to the shapeobj and then 'draw' the shapeobj. HTH Lowell From jesko at GEOCONTENT.DE Mon Feb 7 05:42:36 2005 From: jesko at GEOCONTENT.DE (Dirk Jesko) Date: Mon, 7 Feb 2005 14:42:36 +0100 Subject: Problem with POINT layer in PostGIS In-Reply-To: <200502060453.15772.nacional@cbs.umn.edu> Message-ID: Hi Perry, I am now pretty sure that this problem only occurs with newer PostGIS versions. Today I replaced PostGIS 1.0.0RC2 by an older one (0.9.0) and it worked fine with all mapserver versions from 4.0 up to 4.5. On the other hand neither mapserver version works with 1.0.0RC2, i.e. only lines and polygons are drawn, but points are not. Which version of PostGIS are you using? If you also have 1.0.0RCx (or maybe 0.9.1 which I did not check), it is most likely an incompatibility of the newer PostGIS versions and mapserver. Maybe you could also try an oder version to see if you can confirm it. Dirk >I submitted a bug for this (#1216). I have a table with point geoms and >another with polygon geoms. The polygon table displays as polygon, line, and >points. The point table doesn't display at all. > >When converted to shapefile using pgsql2shp, the points display fine. >However, I need the database as it will be updated continually via a web >interface. The shapefile is not an option for me. > >I've checked against 4.2.5, 4.4.1 and the CVS versions of MapServer and >neither would display the points. All the queries run properly in psql and >pgadmin. > >-Perry > > From plists at PROMETHEUS.ORG.YU Mon Feb 7 06:15:21 2005 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Mon, 7 Feb 2005 15:15:21 +0100 Subject: MyGIS support: how can activate it? In-Reply-To: <006601c50d12$4c24f4f0$041410ac@comune.lugo.ra.it> Message-ID: > "mapmygis.o" gets compiled, but when I check my Mapserver executable I > can't see MYGIS as input source: > > $ ./mapserv -v > MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > How can I activate MYGIS support? It is activated, but does not report itself, this is a known issue. If you are still unsure, you can do a ldd /path/to/php_mapscript.so and you will see it depends on libmysqlclient12.so From berend.veldkamp at ARIS.NL Mon Feb 7 06:59:16 2005 From: berend.veldkamp at ARIS.NL (Berend Veldkamp) Date: Mon, 7 Feb 2005 08:59:16 -0600 Subject: WFS GetFeature and PropertyIsLike Filter Message-ID: Which version are you using? I just tried 4.4.0 and PropertyIsLike works fine there (with wildcards). Maybe the type of data you're using makes a difference, I tested with a shapefile. I noticed something strange however, is doen't seem to matter wether I use *value, value* or *value*, I always get all records containing "value" (i.e. "*value" matches "value123") From beny.santoso at GMAIL.COM Mon Feb 7 07:08:10 2005 From: beny.santoso at GMAIL.COM (beny santoso) Date: Mon, 7 Feb 2005 22:08:10 +0700 Subject: Need help to join 2 layers Message-ID: Dear All, I need help to join my layers (parcel base as polygon layer) in Oracle Spatial using mapscript. I have 2 layers a. Map1 with primary key Id1 b. Map2 with primary key Id2 I want to join this layer, so when i click a polygon then i can show up information in Map1 and Map2 in one popup window. My problem is : how to join 2 layers (in sql queries) ? For information, that's two layers have many to many relationship. Map1 may have equal, covers, coveredby or overlap or maybe intersect with Map2. So do Map2. Thank's for any help. Regards, Beny From cdaily at GMAIL.COM Mon Feb 7 07:26:58 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 7 Feb 2005 09:26:58 -0600 Subject: Frustration setting in.. Plotting a single point... In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCB80@ptolemy.topozone.com> Message-ID: Jeff, Turn off the layer in your .map file and just work on trying to get the point to show up. One thing I'd try would be removing the quotes from the lines where you set your $longitude and $latitude values. You're setting them as string values and not numerical by putting quotes around the numbers, and that might give mapscript some issues. -Camden Daily From carloseduardo at COSTARRICENSE.CR Mon Feb 7 08:48:18 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Mon, 7 Feb 2005 10:48:18 -0600 Subject: My mapserver application does'nt work, why? Message-ID: I'm working in suse 9.1 I installed apache2, php5, php_mapscript4 and mapserver4.4.1. apache: /usr/local/apache php: /usr/local/php I need to know which is the simplest way to run my application. I have some .shp files and a .map file. But i can't see my information displayed. I installed gmap-ms40 and is working fine. Gmap uses php_mapscript to work. I can see the example map. But gmap uses a .phtml and .php files to run the .map file, this files has a lot of code inside and is difficult to edit and understand this files to use them with my data. I want to do it in the simple way. I'm trying with a url like this: "http://localhost/cgi-bin/mapserv?map=/mapserver/gmap-ms40/htdocs/Prueba.map" I'm using the same directory where gmap is installed, but my application does'nt work. Please, i need some ideas. Which is the simplest way to run my application ? _______________________________________ Yo me registr? en www.costarricense.cr From bonk at EOSDATA.GSFC.NASA.GOV Mon Feb 7 08:39:03 2005 From: bonk at EOSDATA.GSFC.NASA.GOV (John Bonk) Date: Mon, 7 Feb 2005 11:39:03 -0500 Subject: extent is invalid for geotiff In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCB7E@ptolemy.topozone.co m> Message-ID: Ed, Thank you, that worked. I seems obvious now when I look back at the documentation. Perhaps someone can answer another question. In creating geotiffs, is there a preferred way of specify coordinates (degrees, UTM, etc) so that the image will work well with MapServer? Thanks again for the response, John At 23:10 2005-02-04 -0500, Ed McNierney wrote: >John - > >If that's the only data layer in your map, ignore PROJECTION completely, >at least for now. > >Have you tried an EXTENT of: > >EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > - Ed > >Ed McNierney >TopoZone.com > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >Behalf Of John Bonk >Sent: Friday, February 04, 2005 5:08 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > >I am very new at this. I am having problems serving a geotiff image >with the following attributes: > >Projection Method: CT_Equirectangular > ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) > ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) > ProjFalseEastingGeoKey: 0.000000 m > ProjFalseNorthingGeoKey: 0.000000 m > >Corner Coordinates: >Upper Left (-13053641.300,5752577.812) >Lower Left (-13053641.300,3358256.867) >Upper Right (-9325729.471,5752577.812) >Lower Right (-9325729.471,3358256.867) >Center (-11189685.386,4555417.340) > >I have tried all sorts of variation of these number in the EXTENT field >but I have >been getting an 'extent is invalid' message. > >Can anyone help me express the EXTENT and PROJECTION to read this file? > >John >======================================= >John Bonk >SSAI/NASA GES DISC >Phone:(301) 614-5280 >Fax: (301) 614-5268 >For more information about >the NASA GES DISC and its services: >http://daac.gsfc.nasa.gov/ ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From ieuan.williams at GMAIL.COM Mon Feb 7 09:06:42 2005 From: ieuan.williams at GMAIL.COM (Ieuan Williams) Date: Mon, 7 Feb 2005 17:06:42 +0000 Subject: postgis support in mapserver 4.2 binary (win32) Message-ID: Is the binary for mapserver 4.2 (win32) from the download file ms42pg.zip built with postgis support? Many thanks Ieuan From fsimon at UNIVALI.BR Mon Feb 7 09:23:29 2005 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Mon, 7 Feb 2005 15:23:29 -0200 Subject: two labels for one polygon In-Reply-To: <4368.212.238.227.182.1107770904.squirrel@212.238.227.182> Message-ID: Hi, Besides this can be another problem, your layer data can be return a wrong point. Your polygon plus a single point. How did you define your layer data? If you execute your data string in SqlPlus how many rows return? Thanks. ----------------------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer G10 - Laborat?rio de Computa??o Aplicada - UNIVALI/CTTMar http://g10.cttmar.univali.br ----------------------------------------------------------- Citando Bart van den Eijnden : > Hi, > > could this be a problem with the label cache? > > Can you try with LABELCACHE OFF on your LAYER which contains the > labels? > > Could you provide us with a screendump of the problem? > > Best regards, > Bart > > > I have a problem with showing labels of polygons in Oracle > > Spatial/mapserver environment. I have polygons and their labels > defined in > > the same layer group. The following happens: if I add a polygon > to the > > database the polygon will be shown with 2 times the same label. > If I add a > > new polygon, the old polygon will be shown now with one label and > the new > > polygon with two labels again. Any idea? > > > > Erwin > > > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From gireddy at GMAIL.COM Mon Feb 7 09:38:28 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Mon, 7 Feb 2005 11:38:28 -0600 Subject: postgis error In-Reply-To: <420788DB.5070402@tiscali.it> Message-ID: Thanks for your help, Thannks a lot. DATA "the_geom from counties using SRID=-1" this line helped me. shashi. On Mon, 07 Feb 2005 16:27:23 +0100, car271 at tiscali.it wrote: > Shashi Gireddy wrote: > > >Yes, I checked all columns, they are looking fine, and the_geom row > >contains srid also, but somehow mapserver is not recognising it. Is > >just 'the_geom' row is required to draw a shape image or any other > >rows are also required to do this. > > > >thank you. > > > > > > > >On Fri, 04 Feb 2005 16:04:50 -0800, Paul Ramsey wrote: > > > > > >>This would appear to be good advice. Have you confirmed that your > >>geometry column does in fact appear correctly in geometry_columns? > >>P > >> > >>On 4-Feb-05, at 2:23 PM, Shashi Gireddy wrote: > >> > >> > >>>Postgresql reports the error as 'ERROR: find_srid() - couldnt find the > >>>corresponding SRID - is the geometry registered in the > >>>GEOMETRY_COLUMNS table? Is there an uppercase/lowercase missmatch? ' > >>> > >>> > >>> > >> > >> > > > > > >-- > >Shashi Kiran Reddy. Gireddy, > >Graduate Assistant, > >CBER, University of Alabama. > >http://www.cs.ua.edu/shashi > >Home: 205-752-5137 Cell: 205-657-1438 > > > > > Hi, > > try to write in your map file that: > > DATA "the_geom from counties using SRID=-1" > > Good luck. > > Make me know if you solve. > > Bye > -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From bartvde at XS4ALL.NL Mon Feb 7 10:14:04 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 7 Feb 2005 19:14:04 +0100 Subject: postgis support in mapserver 4.2 binary (win32) In-Reply-To: Message-ID: Hi, Yes it is, that's what the pg means in the filename. You can always check by running mapserv.exe -v and look if you find INPUT=POSTGIS in there. Best regards, Bart On Mon, 7 Feb 2005 17:06:42 +0000, Ieuan Williams wrote: > Is the binary for mapserver 4.2 (win32) from the download file > ms42pg.zip built with postgis support? > > Many thanks > > Ieuan > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From woklist at CHARTER.NET Mon Feb 7 11:41:45 2005 From: woklist at CHARTER.NET (William K) Date: Mon, 7 Feb 2005 13:41:45 -0600 Subject: MapServer for MAC OS X binaries In-Reply-To: Message-ID: I've been thinking about this lately. I get so many questions about my build instructions, that I've been reconsidering providing binaries. Much to think about how to do this. I'll let the list know when I come up with something. On Feb 4, 2005, at 1:53 PM, Jeroen Ticheler wrote: > Hi, > I was wondering (after installing MapServer and all associated > libraries several times on different machines) if someone has the > intention to create a binary package that could install MapServer on > Mac OS X, thereby avoiding the need to recompile the application. > There is a good description on how to do the full compiling, but having > binaries could be really useful. > Greetings, > Jeroen > > ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ "Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life." - Marvin From trujillo.carlos at GMAIL.COM Mon Feb 7 11:39:44 2005 From: trujillo.carlos at GMAIL.COM (Carlos Arturo Trujillo Silva) Date: Mon, 7 Feb 2005 14:39:44 -0500 Subject: MapServer On AIX Message-ID: Hello, has somebody installed MapServer on AIX?. I'm trying install it, but I have never used AIX, I need some help please. I have installed MapServer on linux and windows and everything work. I downloaded some libraries by AIX (apache, php, freetype, libpng, libjpeg, libtiff, ....) but I don't know how install it. Can I compile the libraries on AIX as by linux? Is there no problem? -- Gracias. Atentamente, Carlos Arturo Trujillo Silva Ingeniero de Sistemas From sharif at SATELINX.COM Mon Feb 7 13:08:34 2005 From: sharif at SATELINX.COM (A Sharif) Date: Mon, 7 Feb 2005 15:08:34 -0600 Subject: Unable to display Street Labels from Mapinfo TAB file Message-ID: Hi I am using mapserver 4.4 (cgi) to display MapInfo TAB files. I am having no luck displaying the Street Labels, although I can display the street layers without any problem. I have attached the map file. I am using true type fonts and put the fonts in a subdirectory. The map displays perfectly except for the street labels. MAP NAME QUEBEC1 STATUS ON IMAGETYPE PNG SYMBOLSET symbols_mapinfo.sym EXTENT -74 45 -73 46 SIZE 600 600 SHAPEPATH "data/qc" UNITS METERS IMAGECOLOR 255 255 255 FONTSET fonts/font.list WEB TEMPLATE "bbb.html" IMAGEPATH "/var/www/html/tmp/" IMAGEURL "/tmp/" END SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 300 4 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS kilometers INTERVALS 3 STATUS ON END LAYER NAME quebec_streets MINSCALE 0 MAXSCALE 0.5 CONNECTIONTYPE OGR CONNECTION "qcd.tab" STATUS DEFAULT TYPE LINE PROJECTION "proj=latlong" END STYLEITEM "AUTO" CLASS NAME "Quebec Streets" END END LAYER DEBUG ON NAME quebec_street_names # MINSCALE 0 # MAXSCALE 0.3 CONNECTIONTYPE OGR CONNECTION "qcd.tab" STATUS DEFAULT LABELITEM "Street" TYPE ANNOTATION STYLEITEM "AUTO" CLASS END END END # end of map file/object From assefa at DMSOLUTIONS.CA Mon Feb 7 14:05:49 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 7 Feb 2005 17:05:49 -0500 Subject: WFS GetFeature Filters and character case In-Reply-To: <2576812186CDD411BF1500508B6DCE950972F5A6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, There is nothing in the sepcs AFAIK that really discusses the case-(in)sensitive issue (so in the case of Mapserver, the values are taken as is). I agree It can be quite useful in the case you described. I have entered an enhancement bug for it (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1219) and depending on time/financing, It can be adressed for future releases. Later, Kralidis,Tom [Burlington] wrote: > Hi, > > When I query my MapServer WFS with a filter (like PropertyIsEqualTo or > PropertyIsLike), the queries must be passed as case-sensitive with what > is in the underlying repository. For example, if I have a table with a > record with a column value named "Birds": > > This works: > > > > title > Birds > > > > This doesn't: > > > > title > birds > > > > I couldn't find anything in the Filter 1.0.0 spec w.r.t. this. > > I find this cumbersome, especially in the context of having a WFS as a > search server. A WFS client with no prior knowledge may not be able to > fetch the results it's looking for due to case sensitive input. > > My question is: whose problem is this? Does the Filter spec allow for > case-insensitive filters? If no, the spec does allow a WFS to advertise > and support user-defined functions. Perhaps MapServer WFS can support > such a function? > > While we're on this topic, some useful enhancements for WFS functions > would be: > > - Min() > - Max() > - Average() > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From assefa at DMSOLUTIONS.CA Mon Feb 7 14:07:45 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 7 Feb 2005 17:07:45 -0500 Subject: WFS GetFeature and PropertyIsLike Filter In-Reply-To: <2576812186CDD411BF1500508B6DCE950972F599@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, I just tried mapserver cvs with my test data and It seems to work. I would need data/map file from you to work on this (either directly to me or even better through a bug). Later, Kralidis,Tom [Burlington] wrote: > Hi, > > I am able to run a GetFeature on a given feature type with filter > PropertyIsEqualTo: > > http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re > quest=GetFeature&typename=service_endpoints&filter= ualTo>contact_countryCanada al>& > > When I attempt to run with filter PropertyIsLike: > > http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re > quest=GetFeature&typename=service_endpoints&filter= ke wildcard="*" singlechar="." > escape="!">keywords*water* l>& > > I get no results back. > > When I re-attempt the PropertyIsLike request with no wildcards in the > Literal: > > http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re > quest=GetFeature&typename=service_endpoints&filter= ke wildcard="*" singlechar="." > escape="!">keywordswater > & > > It works. So then I think that the PropertyIsLike attributes are not > needed since the previous command works. When I run it: > > http://devgeo.cciw.ca/cgi-bin/mapserv/eccat?version=1.0.0&service=WFS&re > quest=GetFeature&typename=service_endpoints&filter= ke>keywordswater tyIsLike>& > > It doesn't work. > > I'm confused. The attributes or PropertyIsLike seem to be required to > execute, however they don't work when applied? > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From akertis at GMAIL.COM Mon Feb 7 14:01:28 2005 From: akertis at GMAIL.COM (AJ Kertis) Date: Mon, 7 Feb 2005 17:01:28 -0500 Subject: GDAL Make Fails Message-ID: I try to do a make and it fails in the ogr directory. make[1]: Leaving directory `/home/mapserver/gdal-1.2.5/ogr/ogrsf_frmts' /bin/sh ../libtool --mode=link g++ ogrinfo.o ../libgdal.la -o ogrinfo g++ ogrinfo.o -o .libs/ogrinfo ../.libs/libgdal.so - L/usr/local/lib /usr/local/lib/libgeos.so -L/usr/local/GeoExpress- SDK//lib/Release -lltidsdk -lpthread -lgif /usr/lib/libjpeg.so -ltiff - lpng -lz -ldl -L/usr/local/pgcluster/lib -lpq -Wl,--rpath - Wl,/home/mapserver/lib ../.libs/libgdal.so: undefined reference to `std::__default_alloc_template::allocate(unsigned int)' ../.libs/libgdal.so: undefined reference to `std::basic_string, std::allocator >::_Rep::_S_create (unsigned int, std::allocator const&)' ../.libs/libgdal.so: undefined reference to `std::basic_string, std::allocator >::_M_check(unsigned int) const' ../.libs/libgdal.so: undefined reference to `std::basic_string, std::allocator >::_Rep::_S_create(unsigned int, std::allocator const&)' ../.libs/libgdal.so: undefined reference to `std::basic_string, std::allocator >::_S_empty_rep_storage' ../.libs/libgdal.so: undefined reference to `std::basic_string, std::allocator >::_S_empty_rep_storage' ../.libs/libgdal.so: undefined reference to `std::__default_alloc_template::deallocate(void*, unsigned int)' collect2: ld returned 1 exit status make: *** [ogrinfo] Error 1 I'm not sure what this means exactly or whats it not finding a ref to. Any help would be much appreciated. Thanks, AJ Kertis From fwarmerdam at GMAIL.COM Mon Feb 7 14:18:47 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 7 Feb 2005 17:18:47 -0500 Subject: GDAL Make Fails In-Reply-To: <1107813689.25981.1.camel@localhost.localdomain> Message-ID: On Mon, 7 Feb 2005 17:01:28 -0500, AJ Kertis wrote: > I try to do a make and it fails in the ogr directory. > > make[1]: Leaving directory `/home/mapserver/gdal-1.2.5/ogr/ogrsf_frmts' > /bin/sh ../libtool --mode=link g++ ogrinfo.o ../libgdal.la -o ogrinfo > g++ ogrinfo.o -o .libs/ogrinfo ../.libs/libgdal.so - > L/usr/local/lib /usr/local/lib/libgeos.so -L/usr/local/GeoExpress- > SDK//lib/Release -lltidsdk -lpthread -lgif /usr/lib/libjpeg.so -ltiff - > lpng -lz -ldl -L/usr/local/pgcluster/lib -lpq -Wl,--rpath - > Wl,/home/mapserver/lib > ../.libs/libgdal.so: undefined reference to > `std::__default_alloc_template::allocate(unsigned int)' > ../.libs/libgdal.so: undefined reference to `std::basic_string std::char_traits, std::allocator >::_Rep::_S_create > (unsigned int, std::allocator const&)' > ../.libs/libgdal.so: undefined reference to `std::basic_string std::char_traits, std::allocator >::_M_check(unsigned int) > const' > ../.libs/libgdal.so: undefined reference to `std::basic_string std::char_traits, std::allocator >::_Rep::_S_create(unsigned > int, std::allocator const&)' > ../.libs/libgdal.so: undefined reference to `std::basic_string std::char_traits, std::allocator > >::_S_empty_rep_storage' > ../.libs/libgdal.so: undefined reference to `std::basic_string std::char_traits, std::allocator >::_S_empty_rep_storage' > ../.libs/libgdal.so: undefined reference to > `std::__default_alloc_template::deallocate(void*, unsigned > int)' > collect2: ld returned 1 exit status > make: *** [ogrinfo] Error 1 > > I'm not sure what this means exactly or whats it not finding a ref to. > Any help would be much appreciated. AJ, I believe the problem is that you aren't using a version of gcc compatible with the MrSID SDK. In my experience you need to use gcc 3.2.3 with the recent versions of the SDK. Mixing C++ object code doesn't work well due to changes over time in the C++ support library names. I got the same message last week on a clients machine where I attempted to use GCC 3.4.x with the MrSID library. However, I think a gcc 3.3.3 may have worked with the MrSID libraries. The assorted binary compatibility issues of C++, especially with gcc, drive me nuts. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From rand at MERIDIAN-ENVIRO.COM Mon Feb 7 15:15:27 2005 From: rand at MERIDIAN-ENVIRO.COM (Douglas K. Rand) Date: Mon, 7 Feb 2005 17:15:27 -0600 Subject: Annotation location on lines Message-ID: Simply as a reference on a map, I'm trying to put interstates on the image. Mapserver seems to only want to put the interstate badges in one, and only one, location, which is obscured by a city name. If I turn off city names, I get the interstate badge. When I turn on city name annotations the badge doesn't get displayed, even though there is plenty of space on the image for the badge to be drawn at other locations along the line. My shapefile has interstates as a single line. From stigmata_blackangel at YAHOO.COM Mon Feb 7 17:30:24 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 7 Feb 2005 17:30:24 -0800 Subject: What is MyGIS Message-ID: I saw a mention of MyGIS in the ./configure and was wondering about it. I ran it through Google, and got nothing useful. Is MyGIS a MySQL spatial extension, similar to PostGIS? If so, where can I find more information about it? __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From Tom.Kralidis at EC.GC.CA Mon Feb 7 19:56:38 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 7 Feb 2005 22:56:38 -0500 Subject: WFS GetFeature and PropertyIsLike Filter Message-ID: I'm using latest CVS. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Berend Veldkamp > Sent: Monday, 07 February, 2005 09:59 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] WFS GetFeature and > PropertyIsLike Filter > > > Which version are you using? I just tried 4.4.0 and > PropertyIsLike works fine there (with wildcards). Maybe the > type of data you're using makes a difference, I tested with a > shapefile. > > I noticed something strange however, is doen't seem to matter > wether I use *value, > value* or *value*, I > always get all records containing "value" (i.e. "*value" > matches "value123") > From tylermitchell at SHAW.CA Mon Feb 7 22:20:12 2005 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Mon, 7 Feb 2005 22:20:12 -0800 Subject: What is MyGIS In-Reply-To: <20050208013024.47853.qmail@web53805.mail.yahoo.com> Message-ID: I'm not familiar with it but this might help: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL Tyler On February 7, 2005 05:30 pm, Gregor Mosheh wrote: > I saw a mention of MyGIS in the ./configure and was > wondering about it. I ran it through Google, and got > nothing useful. > > Is MyGIS a MySQL spatial extension, similar to > PostGIS? If so, where can I find more information > about it? > > > > > __________________________________ > Do you Yahoo!? > Take Yahoo! Mail with you! Get it on your mobile phone. > http://mobile.yahoo.com/maildemo From siki at AGT.BME.HU Tue Feb 8 01:22:02 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 8 Feb 2005 08:22:02 -0100 Subject: Unable to display Street Labels from Mapinfo TAB file {Scanned} {Scanned} In-Reply-To: Message-ID: Hi, As far as see your mapinfo layer contains street center lines and street names as attributes. This case the staleitem auto doesn't work. Instead you should give more detailed class definition: CLASS LABEL TYPE TRUTYPE FONT ... ANGLE AUTO SIZE ... COLOR ... END END ANGLE AUTO will rotate the labels along the street line. Zoltan On Mon, 7 Feb 2005, A Sharif wrote: > Hi > > > I am using mapserver 4.4 (cgi) to display MapInfo TAB files. I am having no > luck displaying the Street Labels, although I can display the street layers > without any problem. > > I have attached the map file. I am using true type fonts and put the fonts > in a subdirectory. The map displays perfectly except for the street labels. > > MAP > NAME QUEBEC1 > STATUS ON > IMAGETYPE PNG > > SYMBOLSET symbols_mapinfo.sym > EXTENT -74 45 -73 46 > SIZE 600 600 > SHAPEPATH "data/qc" > UNITS METERS > IMAGECOLOR 255 255 255 > FONTSET fonts/font.list > > WEB > TEMPLATE "bbb.html" > IMAGEPATH "/var/www/html/tmp/" > IMAGEURL "/tmp/" > END > > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 300 4 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS kilometers > INTERVALS 3 > STATUS ON > END > > > LAYER > NAME quebec_streets > MINSCALE 0 > MAXSCALE 0.5 > CONNECTIONTYPE OGR > CONNECTION "qcd.tab" > STATUS DEFAULT > TYPE LINE > PROJECTION > "proj=latlong" > END > STYLEITEM "AUTO" > CLASS > NAME "Quebec Streets" > END > END > > LAYER > DEBUG ON > NAME quebec_street_names > # MINSCALE 0 > # MAXSCALE 0.3 > CONNECTIONTYPE OGR > CONNECTION "qcd.tab" > STATUS DEFAULT > LABELITEM "Street" > TYPE ANNOTATION > STYLEITEM "AUTO" > CLASS > END > END > > > END # end of map file/object > From margottid at COMUNE.LUGO.RA.IT Tue Feb 8 00:41:01 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 8 Feb 2005 09:41:01 +0100 Subject: MyGIS support: how can activate it? In-Reply-To: <200502071515.22044.plists@prometheus.org.yu> Message-ID: >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Attila Csipa >Sent: Monday, February 07, 2005 3:15 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] MyGIS support: how can activate it? > > >> "mapmygis.o" gets compiled, but when I check my Mapserver executable I >> can't see MYGIS as input source: >> >> $ ./mapserv -v >> MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR >> INPUT=GDAL INPUT=SHAPEFILE >> >> How can I activate MYGIS support? > > >It is activated, but does not report itself, this is a known issue. If you are still unsure, you can do a > >ldd /path/to/php_mapscript.so > >and you will see it depends on libmysqlclient12.so > It doesn't: # ldd /usr/local/lib/php/extensions/php_mapscript.so libcurl.so.3 => /usr/local/lib/libcurl.so.3 (0x401e7000) libssl.so.4 => /lib/libssl.so.4 (0x40214000) libcrypto.so.4 => /lib/libcrypto.so.4 (0x40249000) libdl.so.2 => /lib/libdl.so.2 (0x4033a000) libresolv.so.2 => /lib/libresolv.so.2 (0x4033d000) libgssapi_krb5.so.2 => /usr/kerberos/lib/libgssapi_krb5.so.2 (0x40350000) libkrb5.so.3 => /usr/kerberos/lib/libkrb5.so.3 (0x40363000) libk5crypto.so.3 => /usr/kerberos/lib/libk5crypto.so.3 (0x403c1000) libcom_err.so.3 => /usr/kerberos/lib/libcom_err.so.3 (0x403d1000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x403d3000) libnsl.so.1 => /lib/libnsl.so.1 (0x40400000) libnss_files.so.2 => /lib/libnss_files.so.2 (0x40416000) libnss_dns.so.2 => /lib/libnss_dns.so.2 (0x40422000) libc.so.6 => /lib/tls/libc.so.6 (0x42000000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40426000) libpng.so.3 => /usr/lib/libpng.so.3 (0x40477000) libgdal.so.1 => /usr/local/lib/libgdal.so.1 (0x4049a000) libproj.so.0 => /usr/local/lib/libproj.so.0 (0x4078c000) libpdf.so.5 => /usr/local/lib/libpdf.so.5 (0x407be000) libgd.so.2 => /usr/local/lib/libgd.so.2 (0x408b5000) libm.so.6 => /lib/tls/libm.so.6 (0x40924000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40946000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x409f9000) libz.so.1 => /usr/lib/libz.so.1 (0x40a02000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) But I can't also find libmysqlclient12.so on my system: # updatedb # locate libmysqlclient /usr/lib/mysql/libmysqlclient.a /usr/lib/mysql/libmysqlclient.la /usr/lib/mysql/libmysqlclient_r.a /usr/lib/mysql/libmysqlclient_r.la Why get I no error about it during compilation? Should I install other RPMs than MySQL-devel-4.1.9-0.i386.rpm (and MySQL-server & -client RPMs) I already installed? Thank you, Daniele From margottid at COMUNE.LUGO.RA.IT Tue Feb 8 01:31:23 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 8 Feb 2005 10:31:23 +0100 Subject: MyGIS support: how can activate it? In-Reply-To: <004b01c50db9$eb02d770$041410ac@comune.lugo.ra.it> Message-ID: >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniele Margotti >Sent: Tuesday, February 08, 2005 9:41 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] MyGIS support: how can activate it? > > >> >> >>> "mapmygis.o" gets compiled, but when I check my Mapserver executable I >>> can't see MYGIS as input source: >>> >>> $ ./mapserv -v >>> MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > >>> OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >>> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=OGR >>> INPUT=GDAL INPUT=SHAPEFILE >>> >>> How can I activate MYGIS support? >> >> >>It is activated, but does not report itself, this is a known issue. If >>you are still unsure, you can do a >> >>ldd /path/to/php_mapscript.so >> >>and you will see it depends on libmysqlclient12.so >> > >But I can't also find libmysqlclient12.so on my system: > ># updatedb ># locate libmysqlclient >/usr/lib/mysql/libmysqlclient.a /usr/lib/mysql/libmysqlclient.la /usr/lib/mysql/libmysqlclient_r.a >/usr/lib/mysql/libmysqlclient_r.la > >Should I install other RPMs than MySQL-devel-4.1.9-0.i386.rpm (and MySQL-server & -client RPMs) I already >installed? WAIT! :-) I just installed MySQL-shared and MySQL-shared-compat, and now I have libmysqlclient.so.12. I'm re-compiling, sure this time is the right time. ^_^ Daniele From vinicio.balducci at IRPI.CNR.IT Tue Feb 8 01:34:13 2005 From: vinicio.balducci at IRPI.CNR.IT (Vinicio Balducci) Date: Tue, 8 Feb 2005 10:34:13 +0100 Subject: Dynamic layers list Message-ID: I have installed Mapserver 4.4.0 on Fedora Core3. Because of the layers of my webgis are visible at different scales, I would like to have a dynamic "Layers List" (with layers in the list only when they are really visible) instead of the non-dinamic list I have got using MapLab. Can you help me? Thanks a lot Vinicio Balducci -- Vinicio Balducci Consiglio Nazionale delle Ricerche Istituto di Ricerca per la Protezione Idrogeologica Via Madonna Alta, 126 06128 Perugia Tel. +39 075 5014429/427 Fax. +39 075 5014420 E-mail: vinicio.balducci at irpi.cnr.it http://www.irpi.cnr.it/ From bartvde at XS4ALL.NL Tue Feb 8 01:38:29 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 8 Feb 2005 10:38:29 +0100 Subject: Dynamic layers list In-Reply-To: <42088795.1020000@irpi.cnr.it> Message-ID: Hi, how is your list of layers generated? Using the HTML legend option of Mapserver? If this is the case, you can use the keyword layer_visible to filter out layers which are really in the map view at the current map scale. See also: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=648 Best regards, Bart > I have installed Mapserver 4.4.0 on Fedora Core3. > Because of the layers of my webgis are visible at different scales, I > would like to have a dynamic "Layers List" (with layers in the list only > when they are really visible) instead of the non-dinamic list I have > got using MapLab. > Can you help me? > Thanks a lot > Vinicio Balducci > > -- > Vinicio Balducci > Consiglio Nazionale delle Ricerche > Istituto di Ricerca per la Protezione Idrogeologica > Via Madonna Alta, 126 > 06128 Perugia > Tel. +39 075 5014429/427 > Fax. +39 075 5014420 > E-mail: vinicio.balducci at irpi.cnr.it > http://www.irpi.cnr.it/ > From bartvde at XS4ALL.NL Tue Feb 8 04:23:43 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 8 Feb 2005 13:23:43 +0100 Subject: suppress layers from appearing in Context (WMC) Message-ID: Hello list, is there a way to suppress a layer of type WMS from appearing in a Web Map Context document saved with Mapserver/Mapscript (i.e. function saveMapContext)? Using Chameleon we create a few Annotation layers which use SLD WMS, like a layer for ExpressionBuilderAnnotation and LabelAnnotation. We don't want these layers to be exported in a WMC, since the WMC in Mapserver does not support SLD/Filter (so they will be just duplicates of the original WMS layers on which they work). Any ideas on how to deal with this? I could imagine re-using the DUMP keyword for this behaviour, but maybe there are drawbacks to this approach? Best regards, Bart From huey.brantley at VANDERBILT.EDU Tue Feb 8 05:49:23 2005 From: huey.brantley at VANDERBILT.EDU (Huey Brantley) Date: Tue, 8 Feb 2005 07:49:23 -0600 Subject: New mapping service... Message-ID: Forgive me is you have seen this, I've been away for awhile... Interesting map service by Google. http://maps.google.com/ -- Huey Brantley Vanderbilt University From ed at TOPOZONE.COM Tue Feb 8 06:41:26 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Feb 2005 09:41:26 -0500 Subject: extent is invalid for geotiff Message-ID: John - No, there isn't any preferred method. A GeoTIFF will hold projection, datum, and bounding box information in a way that can be read by MapServer. As long as the GeoTIFF is created properly (i.e. you can't leave out the projection) the coordinate formats used don't matter. - 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 Bonk Sent: Monday, February 07, 2005 11:39 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] extent is invalid for geotiff Ed, Thank you, that worked. I seems obvious now when I look back at the documentation. Perhaps someone can answer another question. In creating geotiffs, is there a preferred way of specify coordinates (degrees, UTM, etc) so that the image will work well with MapServer? Thanks again for the response, John At 23:10 2005-02-04 -0500, Ed McNierney wrote: >John - > >If that's the only data layer in your map, ignore PROJECTION >completely, at least for now. > >Have you tried an EXTENT of: > >EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > - Ed > >Ed McNierney >TopoZone.com > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of John Bonk >Sent: Friday, February 04, 2005 5:08 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > >I am very new at this. I am having problems serving a geotiff image >with the following attributes: > >Projection Method: CT_Equirectangular > ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) > ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) > ProjFalseEastingGeoKey: 0.000000 m > ProjFalseNorthingGeoKey: 0.000000 m > >Corner Coordinates: >Upper Left (-13053641.300,5752577.812) >Lower Left (-13053641.300,3358256.867) >Upper Right (-9325729.471,5752577.812) >Lower Right (-9325729.471,3358256.867) >Center (-11189685.386,4555417.340) > >I have tried all sorts of variation of these number in the EXTENT field >but I have been getting an 'extent is invalid' message. > >Can anyone help me express the EXTENT and PROJECTION to read this file? > >John >======================================= >John Bonk >SSAI/NASA GES DISC >Phone:(301) 614-5280 >Fax: (301) 614-5268 >For more information about >the NASA GES DISC and its services: >http://daac.gsfc.nasa.gov/ ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From Richard_D_Levine at RAYTHEON.COM Tue Feb 8 07:03:45 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Tue, 8 Feb 2005 10:03:45 -0500 Subject: What is MyGIS Message-ID: Odd, I typed MyGIS into Google and the first thing back was this: http://www.gis.com.my/ Rick Gregor Mosheh cc: Sent by: UMN Subject: [UMN_MAPSERVER-USERS] What is MyGIS MapServer Users List 02/07/2005 08:30 PM Please respond to Gregor Mosheh I saw a mention of MyGIS in the ./configure and was wondering about it. I ran it through Google, and got nothing useful. Is MyGIS a MySQL spatial extension, similar to PostGIS? If so, where can I find more information about it? __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo From cdaily at GMAIL.COM Tue Feb 8 07:24:30 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 8 Feb 2005 09:24:30 -0600 Subject: New mapping service... In-Reply-To: <4208C363.3080009@vanderbilt.edu> Message-ID: $1 to the first person who can get that slick click-and-drag panning working in Mapserver. From sgillies at FRII.COM Tue Feb 8 07:34:49 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 8 Feb 2005 08:34:49 -0700 Subject: New mapping service... In-Reply-To: Message-ID: On Feb 8, 2005, at 8:24 AM, Camden Daily wrote: > $1 to the first person who can get that slick click-and-drag panning > working in Mapserver. > Camden, the drag and pan is in your _browser_, not on the server side. MapServer would be a bad match for this. Google is probably using pre-generated images at a number of fixed zoom levels. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From bfischer at HOUSTONENGINEERINGINC.COM Tue Feb 8 07:36:13 2005 From: bfischer at HOUSTONENGINEERINGINC.COM (Brian Fischer) Date: Tue, 8 Feb 2005 09:36:13 -0600 Subject: New mapping service... Message-ID: Camden, I believe there is a widget (javascript code) in Chameleon (http://chameleon.maptools.org/index.phtml) that does the click and drag panning. Brian Fischer Houston Engineering, Inc. Maple Grove, MN (763) 493-4522 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Camden Daily Sent: Tuesday, February 08, 2005 9:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] New mapping service... $1 to the first person who can get that slick click-and-drag panning working in Mapserver. From rodin at EWESEWES.NET Tue Feb 8 07:26:26 2005 From: rodin at EWESEWES.NET (Romi Hardiyanto) Date: Tue, 8 Feb 2005 22:26:26 +0700 Subject: What is MyGIS In-Reply-To: Message-ID: Rick Levine wrote: >Odd, I typed MyGIS into Google and the first thing back was this: > >http://www.gis.com.my/ > >Rick > > I think, it is MySQL spatial extension, in mysql 4.1 or later. http://dev.mysql.com/doc/mysql/en/spatial-extensions-in-mysql.html Romi H > > > Gregor Mosheh > @YAHOO.COM> cc: > Sent by: UMN Subject: [UMN_MAPSERVER-USERS] What is MyGIS > MapServer Users List > TS.UMN.EDU> > > > 02/07/2005 08:30 PM > Please respond to > Gregor Mosheh > > > > > > >I saw a mention of MyGIS in the ./configure and was >wondering about it. I ran it through Google, and got >nothing useful. > >Is MyGIS a MySQL spatial extension, similar to >PostGIS? If so, where can I find more information >about it? > > > > >__________________________________ >Do you Yahoo!? >Take Yahoo! Mail with you! Get it on your mobile phone. >http://mobile.yahoo.com/maildemo > > From bartvde at XS4ALL.NL Tue Feb 8 07:40:57 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 8 Feb 2005 16:40:57 +0100 Subject: What is MyGIS In-Reply-To: <4208DA22.1030400@ewesewes.net> Message-ID: > I think, it is MySQL spatial extension, in mysql 4.1 or later. > http://dev.mysql.com/doc/mysql/en/spatial-extensions-in-mysql.html This is not true. As Tyler already pointed out, look on the Wiki for what it exactly is: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL Best regards, Bart > Rick Levine wrote: > >>Odd, I typed MyGIS into Google and the first thing back was this: >> >>http://www.gis.com.my/ >> >>Rick >> >> > I think, it is MySQL spatial extension, in mysql 4.1 or later. > http://dev.mysql.com/doc/mysql/en/spatial-extensions-in-mysql.html > > Romi H > >> >> >> Gregor Mosheh >> > MAPSERVER-USERS at LISTS.UMN.EDU >> @YAHOO.COM> cc: >> Sent by: UMN Subject: >> [UMN_MAPSERVER-USERS] What is MyGIS >> MapServer Users List >> > TS.UMN.EDU> >> >> >> 02/07/2005 08:30 PM >> Please respond to >> Gregor Mosheh >> >> >> >> >> >> >>I saw a mention of MyGIS in the ./configure and was >>wondering about it. I ran it through Google, and got >>nothing useful. >> >>Is MyGIS a MySQL spatial extension, similar to >>PostGIS? If so, where can I find more information >>about it? >> >> >> >> >>__________________________________ >>Do you Yahoo!? >>Take Yahoo! Mail with you! Get it on your mobile phone. >>http://mobile.yahoo.com/maildemo >> >> > From ed at TOPOZONE.COM Tue Feb 8 07:41:49 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Feb 2005 10:41:49 -0500 Subject: New mapping service... Message-ID: Camden - The Google maps are serving pre-generated map image tiles at all zoom scales. This is much the same thing Microsoft TerraServer has been doing since 1998, and it works fine as long as the user has no control over the map display (other than zoom and pan). You simply pre-generate a zillion image tiles and display the ones you need. TopoZone v1 did the same thing in 1999, although we've been a MapServer application for a while (since we moved to offering more than simple zoom/pan of one data set). The dragging/panning model depends entirely on the server/network ability to keep serving more image tiles to fill in the edges as you move. The results get a little hard to use when the dragging keeps starting/stopping due to network delay. But Sean's right - if you'd like to pan across a set of prebuilt image tiles, it's just some JavaScript in your browser. In fact, YOU'VE got the code on your computer already . - 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 Camden Daily Sent: Tuesday, February 08, 2005 10:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] New mapping service... $1 to the first person who can get that slick click-and-drag panning working in Mapserver. From steve.lime at DNR.STATE.MN.US Tue Feb 8 07:45:22 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 8 Feb 2005 09:45:22 -0600 Subject: New mapping service... Message-ID: That is slick, very responsive. Google bought Keyhole so this is a direct decendent of that acquisition. Interesting what loads of CPU, bandwidth and preprocessing can get you... Steve >>> Huey Brantley 02/08/05 7:49 AM >>> Forgive me is you have seen this, I've been away for awhile... Interesting map service by Google. http://maps.google.com/ -- Huey Brantley Vanderbilt University From Richard_D_Levine at RAYTHEON.COM Tue Feb 8 07:46:54 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Tue, 8 Feb 2005 10:46:54 -0500 Subject: What is MyGIS Message-ID: That would make a lot more sense, but it isn't called MyGIS. Maybe because of the name conflict with the Malaysian GIS service. Rick Romi Hardiyanto To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] What is MyGIS 02/08/2005 10:26 AM Please respond to Romi Hardiyanto Rick Levine wrote: >Odd, I typed MyGIS into Google and the first thing back was this: > >http://www.gis.com.my/ > >Rick > > I think, it is MySQL spatial extension, in mysql 4.1 or later. http://dev.mysql.com/doc/mysql/en/spatial-extensions-in-mysql.html Romi H > > > Gregor Mosheh > @YAHOO.COM> cc: > Sent by: UMN Subject: [UMN_MAPSERVER-USERS] What is MyGIS > MapServer Users List > TS.UMN.EDU> > > > 02/07/2005 08:30 PM > Please respond to > Gregor Mosheh > > > > > > >I saw a mention of MyGIS in the ./configure and was >wondering about it. I ran it through Google, and got >nothing useful. > >Is MyGIS a MySQL spatial extension, similar to >PostGIS? If so, where can I find more information >about it? > > > > >__________________________________ >Do you Yahoo!? >Take Yahoo! Mail with you! Get it on your mobile phone. >http://mobile.yahoo.com/maildemo > > From cdaily at GMAIL.COM Tue Feb 8 07:49:58 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Tue, 8 Feb 2005 09:49:58 -0600 Subject: New mapping service... In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCBAA@ptolemy.topozone.com> Message-ID: Actually, I was meaning more their use of XMLHttpRequest to grab new data from the server without having to reload. It's a lot like what they did with Google Suggest. If you're curious on how they did that, one guy dissected the code a bit: http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html The javascript that's running Google Maps is just sick. Google is certainly taking javascript a lot further than I've ever seen. -Camden From steve.lime at DNR.STATE.MN.US Tue Feb 8 07:56:10 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 8 Feb 2005 09:56:10 -0600 Subject: New mapping service... Message-ID: I've seen lots of folks doing that recently. Checkout: http://www.dnr.state.mn.us/maps/landview_dhtml_x.html The legend is rebuilt using XMLHttpRequest. Works great and is really quite portable. Steve >>> Camden Daily 02/08/05 9:49 AM >>> Actually, I was meaning more their use of XMLHttpRequest to grab new data from the server without having to reload. It's a lot like what they did with Google Suggest. If you're curious on how they did that, one guy dissected the code a bit: http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html The javascript that's running Google Maps is just sick. Google is certainly taking javascript a lot further than I've ever seen. -Camden From irenutxa2000 at YAHOO.ES Tue Feb 8 07:46:53 2005 From: irenutxa2000 at YAHOO.ES (=?iso-8859-1?q?Irene=20P=E9rez?=) Date: Tue, 8 Feb 2005 16:46:53 +0100 Subject: TrueType Symbols Message-ID: Dear sirs, I'm trying to make a TrueType Symbol, but the map is not generated and no error message is shown. The library GD supports Freetype, so... ?what may the problem be? In the mapserver config: SUPPORTS=FREETYPE ... I'm trying with de example: SYMBOL NAME "natcap" TYPE TRUETYPE FONT geo FILLED true ANTIALIAS true CHARACTER "r" END LAYER NAME "PRUEBA" CLASS NAME ... SYMBOL "natcap" END But it doesn't work. I've tried everything that came into my imagination, but nothing worked... Thank you very much in advance. Kind regards, --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From unicoletti at PROMETEO.IT Tue Feb 8 08:30:30 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 8 Feb 2005 17:30:30 +0100 Subject: New mapping service... In-Reply-To: <16264e07050208074961be9eb7@mail.gmail.com> Message-ID: Looks like javascript is not the only thing that Google is taking a lot further: http://www.google-watch.org/ I see you use gmail :-)... Regards, Umberto Quoting Camden Daily : > Actually, I was meaning more their use of XMLHttpRequest to grab new > data from the server without having to reload. It's a lot like what > they did with Google Suggest. If you're curious on how they did that, > one guy dissected the code a bit: > > http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html > > The javascript that's running Google Maps is just sick. Google is > certainly taking javascript a lot further than I've ever seen. > > -Camden > From stephane.riff at CERENE.FR Tue Feb 8 08:52:23 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Tue, 8 Feb 2005 17:52:23 +0100 Subject: Pixel coordinate from map coordinates Message-ID: All is in the subject. Can someone show me how to get pixels coordinate from map coordinate ?? Thanks -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.8.6 - Release Date: 07/02/2005 From kenlord at GMAIL.COM Tue Feb 8 09:20:53 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 8 Feb 2005 09:20:53 -0800 Subject: New mapping service... In-Reply-To: <1107880230.4208e926cc386@webmail.prometeo.it> Message-ID: Another option for the nifty panning thing: Create a Flash interface that tracks and submits the parameters to mapserver. With this you also get the benefit of not having to reload the entire page for any map refresh, just the new map image / scalebar / legend image. Wish I could post the interface we've made, but for now its being used for a private client. Ken Lord BGC Engineering Vancouver BC From kgrootendorst at BAIRD.COM Tue Feb 8 10:01:17 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 8 Feb 2005 12:01:17 -0600 Subject: Zoomscale (Integer data type?) Message-ID: Does anybody know how to force 'ZoomScale' to recognize double or float data types, instead of treating numbers as integers? I have the following extents (in pixels): $px = 417.4; $py = 290.6; Using ZoomScale: $oMapNavigator->zoomScale( 25000, $px1, $py2); The map actually zooms to the point (417,290) which causes my point to appear off centered. I want to have the point centered. Thanks. Kevin From ed at TOPOZONE.COM Tue Feb 8 10:16:51 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Feb 2005 13:16:51 -0500 Subject: Zoomscale (Integer data type?) Message-ID: Kevin - You can't have a fractional pixel - what are those extents supposed to represent? - 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 Kevin Grootendorst Sent: Tuesday, February 08, 2005 1:01 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Zoomscale (Integer data type?) Does anybody know how to force 'ZoomScale' to recognize double or float data types, instead of treating numbers as integers? I have the following extents (in pixels): $px = 417.4; $py = 290.6; Using ZoomScale: $oMapNavigator->zoomScale( 25000, $px1, $py2); The map actually zooms to the point (417,290) which causes my point to appear off centered. I want to have the point centered. Thanks. Kevin From kgrootendorst at BAIRD.COM Tue Feb 8 10:24:34 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 8 Feb 2005 12:24:34 -0600 Subject: Zoomscale (Integer data type?) Message-ID: Ed, They're supposed to represent the location of a point. Info: Spatial reference: NAD83, DD. Original extents: (-93 38 -74 51) Map Size (600 x 475) w x h Longitude/Latitude of point: -79.606, 43.496 Kevin On Tue, 8 Feb 2005 13:16:51 -0500, Ed McNierney wrote: >Kevin - > >You can't have a fractional pixel - what are those extents supposed to >represent? > > - 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 Kevin Grootendorst >Sent: Tuesday, February 08, 2005 1:01 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Zoomscale (Integer data type?) > >Does anybody know how to force 'ZoomScale' to recognize double or float >data types, instead of treating numbers as integers? > >I have the following extents (in pixels): >$px = 417.4; >$py = 290.6; > >Using ZoomScale: >$oMapNavigator->zoomScale( 25000, $px1, $py2); > >The map actually zooms to the point (417,290) which causes my point to >appear off centered. I want to have the point centered. > >Thanks. > >Kevin From ed at TOPOZONE.COM Tue Feb 8 10:29:46 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Feb 2005 13:29:46 -0500 Subject: Zoomscale (Integer data type?) Message-ID: Kevin - zoomScale zooms to a given scale centered on a pixel in the image, presumably a pixel that was clicked on. The pixel coordinates (that is, the X and Y coordinates in the image) of the pixel of interest must be integers, as you can't click on the right half of a pixel, for example. They're not the spatial (geographic) coordinates of the point, which might not be integers. Pixel coordinates must be integers. - 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: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] Sent: Tuesday, February 08, 2005 1:25 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; Ed McNierney Subject: Re: Zoomscale (Integer data type?) Ed, They're supposed to represent the location of a point. Info: Spatial reference: NAD83, DD. Original extents: (-93 38 -74 51) Map Size (600 x 475) w x h Longitude/Latitude of point: -79.606, 43.496 Kevin On Tue, 8 Feb 2005 13:16:51 -0500, Ed McNierney wrote: >Kevin - > >You can't have a fractional pixel - what are those extents supposed to >represent? > > - 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 Kevin Grootendorst >Sent: Tuesday, February 08, 2005 1:01 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: [UMN_MAPSERVER-USERS] Zoomscale (Integer data type?) > >Does anybody know how to force 'ZoomScale' to recognize double or float >data types, instead of treating numbers as integers? > >I have the following extents (in pixels): >$px = 417.4; >$py = 290.6; > >Using ZoomScale: >$oMapNavigator->zoomScale( 25000, $px1, $py2); > >The map actually zooms to the point (417,290) which causes my point to >appear off centered. I want to have the point centered. > >Thanks. > >Kevin From kgrootendorst at BAIRD.COM Tue Feb 8 10:48:39 2005 From: kgrootendorst at BAIRD.COM (Kevin Grootendorst) Date: Tue, 8 Feb 2005 12:48:39 -0600 Subject: Zoomscale (Integer data type?) Message-ID: OK, so If I get the 'real' pixel value of the point of interest, I should be able to use something like this to zoom to the point: $oMapNavigator->zoomPoint(250, $px1, $py2); So then something must be wrong with the way I convert lat-long to pixels... Thanks. Kevin On Tue, 8 Feb 2005 13:29:46 -0500, Ed McNierney wrote: >Kevin - > >zoomScale zooms to a given scale centered on a pixel in the image, >presumably a pixel that was clicked on. The pixel coordinates (that is, >the X and Y coordinates in the image) of the pixel of interest must be >integers, as you can't click on the right half of a pixel, for example. > >They're not the spatial (geographic) coordinates of the point, which >might not be integers. Pixel coordinates must be integers. > > - 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: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >Sent: Tuesday, February 08, 2005 1:25 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU; Ed McNierney >Subject: Re: Zoomscale (Integer data type?) > >Ed, >They're supposed to represent the location of a point. > >Info: >Spatial reference: NAD83, DD. >Original extents: (-93 38 -74 51) >Map Size (600 x 475) w x h >Longitude/Latitude of point: -79.606, 43.496 > >Kevin > > >On Tue, 8 Feb 2005 13:16:51 -0500, Ed McNierney wrote: > >>Kevin - >> >>You can't have a fractional pixel - what are those extents supposed to >>represent? >> >> - 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 Kevin Grootendorst >>Sent: Tuesday, February 08, 2005 1:01 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] Zoomscale (Integer data type?) >> >>Does anybody know how to force 'ZoomScale' to recognize double or float > >>data types, instead of treating numbers as integers? >> >>I have the following extents (in pixels): >>$px = 417.4; >>$py = 290.6; >> >>Using ZoomScale: >>$oMapNavigator->zoomScale( 25000, $px1, $py2); >> >>The map actually zooms to the point (417,290) which causes my point to >>appear off centered. I want to have the point centered. >> >>Thanks. >> >>Kevin From lsnagu at YAHOO.COM Tue Feb 8 10:39:09 2005 From: lsnagu at YAHOO.COM (Nagu Govind) Date: Tue, 8 Feb 2005 10:39:09 -0800 Subject: MapScript & Template Message-ID: Hi, Iam developing a mapping application. Iam using MapScript. I dont know how to use templates with PHP and Mapscript. Is there a good example which will help me to do the same. Please give me some links. With Regards vdharan __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Tue Feb 8 10:57:19 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 8 Feb 2005 13:57:19 -0500 Subject: Zoomscale (Integer data type?) Message-ID: Kevin - Are you confusing what zoomScale does? It zooms to a certain scale, centered on the coordinates at a pixel location in a map image. If you are calculating the pixel on which a particular coordinate lies, you can certainly do that, and you may well end up with a fractional pixel value. For example, if you have a zoomed-out view where each pixel is one degree wide and one degree high, then the point (45.9, 22.6) might appear to lie at pixel coordinate 122.9, 66.4 (measuring Y increasing downward, so the .6 becomes .4. However, it is impossible to center that map image on (45.9, 22.6), at least at that scale. You can center it on an integer pixel coordinate, and you can zoom in to reduce the pixel size and increase the resolution of your integer pixel location. - 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: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] Sent: Tuesday, February 08, 2005 1:49 PM To: MAPSERVER-USERS at LISTS.UMN.EDU; Ed McNierney Subject: Re: Zoomscale (Integer data type?) OK, so If I get the 'real' pixel value of the point of interest, I should be able to use something like this to zoom to the point: $oMapNavigator->zoomPoint(250, $px1, $py2); So then something must be wrong with the way I convert lat-long to pixels... Thanks. Kevin On Tue, 8 Feb 2005 13:29:46 -0500, Ed McNierney wrote: >Kevin - > >zoomScale zooms to a given scale centered on a pixel in the image, >presumably a pixel that was clicked on. The pixel coordinates (that >is, the X and Y coordinates in the image) of the pixel of interest must >be integers, as you can't click on the right half of a pixel, for example. > >They're not the spatial (geographic) coordinates of the point, which >might not be integers. Pixel coordinates must be integers. > > - 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: Kevin Grootendorst [mailto:kgrootendorst at BAIRD.COM] >Sent: Tuesday, February 08, 2005 1:25 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU; Ed McNierney >Subject: Re: Zoomscale (Integer data type?) > >Ed, >They're supposed to represent the location of a point. > >Info: >Spatial reference: NAD83, DD. >Original extents: (-93 38 -74 51) >Map Size (600 x 475) w x h >Longitude/Latitude of point: -79.606, 43.496 > >Kevin > > >On Tue, 8 Feb 2005 13:16:51 -0500, Ed McNierney wrote: > >>Kevin - >> >>You can't have a fractional pixel - what are those extents supposed to >>represent? >> >> - 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 Kevin Grootendorst >>Sent: Tuesday, February 08, 2005 1:01 PM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] Zoomscale (Integer data type?) >> >>Does anybody know how to force 'ZoomScale' to recognize double or >>float > >>data types, instead of treating numbers as integers? >> >>I have the following extents (in pixels): >>$px = 417.4; >>$py = 290.6; >> >>Using ZoomScale: >>$oMapNavigator->zoomScale( 25000, $px1, $py2); >> >>The map actually zooms to the point (417,290) which causes my point to >>appear off centered. I want to have the point centered. >> >>Thanks. >> >>Kevin From jdport at VERITIME.COM Tue Feb 8 10:59:38 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 8 Feb 2005 13:59:38 -0500 Subject: Mapserver bug? Message-ID: I'm pretty sure that this issue i'm having was posted about once before a week or two ago by somebody else, but there wasn't much response to it and I'm not sure if it is a mapserver bug, or something I'm doing wrong, or if there is a workaround for it. When my map form submits and is redrawn according to whatever buttons the user has clicked (panning buttons, zoom, etc) it will sometimes jump back to an old image instead of displaying the image it is supposed to be showing. If you then just click refresh in the browser, it displays the proper image. At first I thought it was some kind of browser caching issue, so I tried all the meta tags and http headers I could find to disable the caching of images in my application... but that didn't fix the problem. The problem also seems to be browser independant as I see the same behavior in internet explorer and Mozilla firefox. It also seems to get worse over time... when I first load up the browser and go to the web page it will work perfectly for a little bit, but after a short time it will start showing old images and eventually it will start doing it almost every refresh. Have any others had this kind of problem, and has anybody found a way to fix it or avoid it? Thanks for any advice, Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Tue Feb 8 11:11:21 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 8 Feb 2005 13:11:21 -0600 Subject: TrueType Symbols Message-ID: Does the layer draw with non-truetype symbols? I've been using this recently without problems with defs like: SYMBOL NAME 'blank_marker' TYPE TRUETYPE FONT 'recsym' CHARACTER '»' ANTIALIAS TRUE END SYMBOL NAME 'parking_marker' TYPE TRUETYPE FONT 'recsym' CHARACTER 'm' ANTIALIAS TRUE END Steve >>> Irene P?rez 02/08/05 9:46 AM >>> Dear sirs, I'm trying to make a TrueType Symbol, but the map is not generated and no error message is shown. The library GD supports Freetype, so... ?what may the problem be? In the mapserver config: SUPPORTS=FREETYPE ... I'm trying with de example: SYMBOL NAME "natcap" TYPE TRUETYPE FONT geo FILLED true ANTIALIAS true CHARACTER "r" END LAYER NAME "PRUEBA" CLASS NAME ... SYMBOL "natcap" END But it doesn't work. I've tried everything that came into my imagination, but nothing worked... Thank you very much in advance. Kind regards, --------------------------------- From steve.hall at MERCATORGEOSYSTEMS.CO.UK Tue Feb 8 11:44:42 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Tue, 8 Feb 2005 19:44:42 -0000 Subject: Automatic extent derivation Message-ID: Hi all, I'm doing some R & D for a system that is going need to produce as many as 40 maps per second for a busy web site. The mapdata is going come from either PostGIS or Oracle Spatial. Each map will be different and should immediately zoom to the full extent "defined" by one of the layers which will be a spatial query "defining" the results of the users request. My question is about the best way of deriving that extent. I could (effectively) run the spatial query twice - once myself in PHP/MapScript (or whatever language is used to create the map) to get the extent (and hence set it "into" the MapServer request) and then MapServer itself will perform a very similar query to actually draw the map. As performance is of paramount importance i'd like to remove this "duplication" if at all possible. I may be missing something obvious but is there an easy way to do this? Ideally i'd just like to specify that the map should always zoom to the extent "implied" by a particular layers features. Many thanks for your thoughts, Steve H -------------- next part -------------- An HTML attachment was scrubbed... URL: From rodin at EWESEWES.NET Tue Feb 8 13:36:51 2005 From: rodin at EWESEWES.NET (Romi Hardiyanto) Date: Wed, 9 Feb 2005 04:36:51 +0700 Subject: What is MyGIS In-Reply-To: <7307.212.238.227.182.1107877257.squirrel@212.238.227.182> Message-ID: Bart van den Eijnden wrote: >>I think, it is MySQL spatial extension, in mysql 4.1 or later. >>http://dev.mysql.com/doc/mysql/en/spatial-extensions-in-mysql.html > > > This is not true. Well sorry for taken to the wrong direction. Just come back to mapserver again, after 'leaving' mapserver shortly after 4.2 release. Romi > > As Tyler already pointed out, look on the Wiki for what it exactly is: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MySQL > > Best regards, > Bart > > >>Rick Levine wrote: >> >> >>>Odd, I typed MyGIS into Google and the first thing back was this: >>> >>>http://www.gis.com.my/ >>> >>>Rick >>> >>> >> >>I think, it is MySQL spatial extension, in mysql 4.1 or later. >>http://dev.mysql.com/doc/mysql/en/spatial-extensions-in-mysql.html >> >>Romi H >> >> >>> >>> Gregor Mosheh >>> >>MAPSERVER-USERS at LISTS.UMN.EDU >>> @YAHOO.COM> cc: >>> Sent by: UMN Subject: >>>[UMN_MAPSERVER-USERS] What is MyGIS >>> MapServer Users List >>> >> TS.UMN.EDU> >>> >>> >>> 02/07/2005 08:30 PM >>> Please respond to >>> Gregor Mosheh >>> >>> >>> >>> >>> >>> >>>I saw a mention of MyGIS in the ./configure and was >>>wondering about it. I ran it through Google, and got >>>nothing useful. >>> >>>Is MyGIS a MySQL spatial extension, similar to >>>PostGIS? If so, where can I find more information >>>about it? >>> >>> >>> >>> >>>__________________________________ >>>Do you Yahoo!? >>>Take Yahoo! Mail with you! Get it on your mobile phone. >>>http://mobile.yahoo.com/maildemo >>> >>> >> > > > From pramsey at REFRACTIONS.NET Tue Feb 8 15:19:00 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Tue, 8 Feb 2005 15:19:00 -0800 Subject: Automatic extent derivation In-Reply-To: <004001c50e16$a265ff30$5c0a0a0a@krusty> Message-ID: If you have a fixed number of combinations, make a metadata table that maps feature type name to extent. You still have to do two queries (you always will) but the first one is a lot cheaper. P Steve Hall wrote: > Hi all, > > I'm doing some R & D for a system that is going need to produce as many > as 40 maps per second for a busy web site. The mapdata is going come > from either PostGIS or Oracle Spatial. Each map will be different and > should immediately zoom to the full extent "defined" by one of the > layers which will be a spatial query "defining" the results of the users > request. > > My question is about the best way of deriving that extent. I could > (effectively) run the spatial query twice - once myself in PHP/MapScript > (or whatever language is used to create the map) to get the extent (and > hence set it "into" the MapServer request) and then MapServer itself > will perform a very similar query to actually draw the map. As > performance is of paramount importance i'd like to remove this > "duplication" if at all possible. > > I may be missing something obvious but is there an easy way to do this? > Ideally i'd just like to specify that the map should always zoom to the > extent "implied" by a particular layers features. > > Many thanks for your thoughts, > > Steve H From stigmata_blackangel at YAHOO.COM Tue Feb 8 20:20:22 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Tue, 8 Feb 2005 20:20:22 -0800 Subject: problem with shp2mysql: not an array reference Message-ID: First off, thanks to those folks who, in regards to my question about MyGIS, pointed me to the Wiki. Very informative and helpful. So, I'm trying to convert a shapefile to MySQL using shp2mysql.pl and I get the error "Not an array reference at line 235" This is after the shapefile has been opened (it does properly list the dbf attributes) and after the geometry_columns and spatial_ref_sys tables are created, but as the first geometry item is being processed. I popped open the script and, although I'm pretty good with Perl, I don't have enough background to know what it's trying to do nor what's going wrong. I'm hoping someone else has seen this problem before and can save me a few dozen hours of troubleshooting. The Perl shapelib binding is Geo-Shapelib 0.12, and this is the shp2mysql.pl that came with MapServer 4.4.1. The MySQL is version 4.1. The shapefile is line data, and I can post the shapefile (4 MB) if requested. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From stigmata_blackangel at YAHOO.COM Tue Feb 8 20:30:02 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Tue, 8 Feb 2005 20:30:02 -0800 Subject: problem with shp2mysql: not an array reference Message-ID: I forgot to mention: I also tried shp2mysql.pl on another dataset, and got exactly the same results. This second set was a polygon shapefile. Also, MapServer and shp2pgsql handle these shapefiles OK. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From stigmata_blackangel at YAHOO.COM Tue Feb 8 21:04:01 2005 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Tue, 8 Feb 2005 21:04:01 -0800 Subject: support for MySQL spatial geometry? Message-ID: Is there any idea yet as to when/if MapServer or some underlying library will support MySQL's new spatial geometry capabilities? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From fwarmerdam at GMAIL.COM Tue Feb 8 21:50:18 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 9 Feb 2005 00:50:18 -0500 Subject: support for MySQL spatial geometry? In-Reply-To: <20050209050401.70006.qmail@web53809.mail.yahoo.com> Message-ID: On Tue, 8 Feb 2005 21:04:01 -0800, Gregor Mosheh wrote: > Is there any idea yet as to when/if MapServer or some > underlying library will support MySQL's new spatial > geometry capabilities? Gregor, I am not aware of anyone working on MySQL Spatial support for mapserver itself, and I don't have any plans to add it to OGR. I would be happy to do so if a client was interested, but I am hesitant to do it just for the sake of having another spatial database. 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 flavio at TYDAC.CH Tue Feb 8 22:47:44 2005 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 9 Feb 2005 07:47:44 +0100 Subject: Mapserver bug? In-Reply-To: <00df01c50e10$56fe7730$1bf2fbd0@solo> Message-ID: hi jeff youare probably using php as a module ... see bug-id 67. Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Jeff Portwine To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 8 Feb 2005 13:59:38 -0500 Subject: [UMN_MAPSERVER-USERS] Mapserver bug? > > I'm pretty sure that this issue i'm having was posted about once > before a week or two ago by somebody else, but there wasn't much > response to it and I'm not sure if it is a mapserver bug, or > something I'm doing wrong, or if there is a workaround for it. > > When my map form submits and is redrawn according to whatever buttons > the user has clicked (panning buttons, zoom, etc) it will sometimes > jump back to an old image instead of displaying the image it is > supposed to be showing. If you then just click refresh in the > browser, it displays the proper image. At first I thought it was > some kind of browser caching issue, so I tried all the meta tags and > http headers I could find to disable the caching of images in my > application... but that didn't fix the problem. The problem also > seems to be browser independant as I see the same behavior in > internet explorer and Mozilla firefox. It also seems to get > worse over time... when I first load up the browser and go to the web > page it will work perfectly for a little bit, but after a short time > it will start showing old images and eventually it will start doing > it almost every refresh. > > Have any others had this kind of problem, and has anybody found a way > to fix it or avoid it? > > Thanks for any advice, > Jeff > From gireddy at GMAIL.COM Tue Feb 8 23:57:30 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Wed, 9 Feb 2005 01:57:30 -0600 Subject: [ADMIN] too slow In-Reply-To: Message-ID: Thanks for your help, I am improving. I did vacuum analyze, but no use. I created the mysql-dump file again this time with mysqldump command prompt insted of mysql-front, It created a 1.4gig file(insted of 8gig) but i dont know how to use this file with postgresql COPY command, can anybody help me. Thanks in advance, shashi. On Tue, 8 Feb 2005 20:56:38 -0600, Robert Becker Cope wrote: > gireddy at gmail.com wrote: > > > 8GB), It took 2days to import the whole thing into postgres. After all > > the response from postgres is a disaster. It took 40sec's to run a > > Do you have indexes in place? > > Also, in my experience, after a dump and restore (or simply a restore, in > your case) it is very importany to "vacuum analyze" the database. I > usually do a "reindex" of the important tables before the vacuum, too. > These steps can make a huge, huge difference. > > robert > -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From irenutxa2000 at YAHOO.ES Wed Feb 9 00:12:52 2005 From: irenutxa2000 at YAHOO.ES (=?iso-8859-1?q?Irene=20P=E9rez?=) Date: Wed, 9 Feb 2005 09:12:52 +0100 Subject: TrueType Symbols In-Reply-To: Message-ID: Yes, the layer draws with non-true type symbols. I've tried with the defs you sent but it keeps not working. Any other suggestion? Thanks! Steve Lime wrote: Does the layer draw with non-truetype symbols? I've been using this recently without problems with defs like: SYMBOL NAME 'blank_marker' TYPE TRUETYPE FONT 'recsym' CHARACTER '?' ANTIALIAS TRUE END SYMBOL NAME 'parking_marker' TYPE TRUETYPE FONT 'recsym' CHARACTER 'm' ANTIALIAS TRUE END Steve >>> Irene P?rez 02/08/05 9:46 AM >>> Dear sirs, I'm trying to make a TrueType Symbol, but the map is not generated and no error message is shown. The library GD supports Freetype, so... ?what may the problem be? In the mapserver config: SUPPORTS=FREETYPE ... I'm trying with de example: SYMBOL NAME "natcap" TYPE TRUETYPE FONT geo FILLED true ANTIALIAS true CHARACTER "r" END LAYER NAME "PRUEBA" CLASS NAME ... SYMBOL "natcap" END But it doesn't work. I've tried everything that came into my imagination, but nothing worked... Thank you very much in advance. Kind regards, --------------------------------- --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Wed Feb 9 03:00:57 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 9 Feb 2005 10:00:57 -0100 Subject: TrueType Symbols {Scanned} In-Reply-To: <20050209081252.10194.qmail@web41313.mail.yahoo.com> Message-ID: Hi, If your font is a symbol font, then the character codes are big numbers. There were some threads on the list some monthes ago. Zoltan On Wed, 9 Feb 2005, [iso-8859-1] Irene P?rez wrote: > Yes, the layer draws with non-true type symbols. I've tried with the defs you sent but it keeps not working. > Any other suggestion? > Thanks! > > > Steve Lime wrote: > Does the layer draw with non-truetype symbols? I've been using this recently without problems with defs like: > > SYMBOL > NAME 'blank_marker' > TYPE TRUETYPE > FONT 'recsym' > CHARACTER '?' > ANTIALIAS TRUE > END > > SYMBOL > NAME 'parking_marker' > TYPE TRUETYPE > FONT 'recsym' > CHARACTER 'm' > ANTIALIAS TRUE > END > > Steve > > >>> Irene P?rez 02/08/05 9:46 AM >>> > Dear sirs, > I'm trying to make a TrueType Symbol, but the map is not generated and no error message is shown. > The library GD supports Freetype, so... ?what may the problem be? > In the mapserver config: SUPPORTS=FREETYPE ... > > I'm trying with de example: > SYMBOL > NAME "natcap" > TYPE TRUETYPE > FONT geo > FILLED true > ANTIALIAS true > CHARACTER "r" > END > > LAYER > NAME "PRUEBA" > CLASS > NAME ... > SYMBOL "natcap" > END > But it doesn't work. I've tried everything that came into my imagination, but nothing worked... > Thank you very much in advance. > > Kind regards, > > > > --------------------------------- > > > --------------------------------- > > From bluetuna_goes_skying at YAHOO.CO.UK Wed Feb 9 02:57:16 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Wed, 9 Feb 2005 10:57:16 +0000 Subject: Thematic map using MySQL Message-ID: Dear list partners, In the last few days I have been trying to link my map file to a table in a MySQL database. I must say I haven't had much success finding documentation on how to do this... So I would like to ask for some help. So far, the map files I used are: LAYER NAME comuni TYPE POLYGON STATUS DEFAULT LABELITEM 'Nomecomune' CONNECTIONTYPE OGR CONNECTION "C:\Programmi\Apache Group\Apache\htdocs\abruzzo\maps\data\comuni_abruzzo_gb.shp" DATA "SELECT * FROM comuni_abruzzo_gb LEFT JOIN 'ODBC:prova'.zzz ON comuni_abruzzo_gb.Id = zzz.ID" CLASSITEM FIELD CLASS NAME '<3' EXPRESSION ([FIELD] < (3)) STYLE OUTLINECOLOR 255 255 255 COLOR 215 050 085 END TEMPLATE void END CLASS NAME '<6' EXPRESSION ([FIELD] < (6)) STYLE OUTLINECOLOR 255 255 255 COLOR 215 150 085 END TEMPLATE void END CLASS NAME '<10' EXPRESSION ([FIELD] < (10)) STYLE OUTLINECOLOR 255 255 255 COLOR 215 250 085 END TEMPLATE void END END FIELD is the field according to witch values I want to make my thematic map. These values will change allong the time. This example works perfectly with an ODBC for an Access Database. I instaled and configured ODBC for my SQL, but still it does not work. I get this message: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'comuni'. in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php on line 6 Warning: [MapServer Error]: msOGRFileOpen(): ExecuteSQL(SELECT * FROM comuni_abruzzo_gb LEFT JOIN 'ODBC:prova'.zzz ON comuni_abruzzo_gb.Id = zzz.ID) failed. Unable to initialize ODBC connection to DSN prova, [MySQL][ODBC 3.51 Driver]Access denied for user 'ODBC'@'localhost' (using password: NO) in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php on line 6 Fatal error: Call to a member function on a non-object in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php on line 7 As if my configuration for the ODBC MySQL was ignored.. Within this configuration I am using a valuable mysql user and an existent password. Here i get a message as if I was trying to get into the system with no settings, user and pass by default. Anyway, I also tried to make this connection this way: LAYER NAME comuni DATA comuni_abruzzo_gb TYPE POLYGON STATUS DEFAULT LABELITEM 'Nomecomune' JOIN CONNECTIONTYPE mysql CONNECTION "server:'localhost' user:'tuna' pass:'caparica' database:'abruzzo'" # DATA "SELECT * FROM comuni_abruzzo_gb LEFT JOIN 'ODBC:abr_2'.zzz ON comuni_abruzzo_gb.Id = zzz.ID" NAME "TM" TABLE zzz FROM Id TO ID TYPE SINGLE END CLASSITEM FIELD CLASS NAME '<3' EXPRESSION ([FIELD] < (3)) STYLE OUTLINECOLOR 255 255 255 COLOR 215 050 085 END TEMPLATE void But again, this does not work.. This time I get this message: Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named 'comuni'. in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php on line 6 Warning: [MapServer Error]: msDBFGetItemIndex(): Item 'FIELD' not found. in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php on line 6 Fatal error: Call to a member function on a non-object in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php on line 7 Can someone give me a hand with this? I' ve been searching for documentation and/or examples in the net but so far I just cannot have clear ideas about how to use/what's the sintax of some of the elements of the map file.. Thanks a lot in advance. Joao Antunes --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ErwinVanderBij at CS.COM Wed Feb 9 04:26:06 2005 From: ErwinVanderBij at CS.COM (Erwin v.d. Bij) Date: Wed, 9 Feb 2005 07:26:06 -0500 Subject: showing lines of overlapping polygons Message-ID: Hello, I want to see the lines of 2 or more polygons which do overlap. Polygons are in the same layer. Polygons are filled with a style. Currently, I see only all the lines of the polygon which is obvious on top. I've experienced with the TRANSPARANCY attribute, but that did not help. Do you have any ideas? From pinted at TISCALI.BE Wed Feb 9 04:32:21 2005 From: pinted at TISCALI.BE (Didrik Pinte) Date: Wed, 9 Feb 2005 13:32:21 +0100 Subject: Thematic map using MySQL In-Reply-To: <20050209105716.91618.qmail@web25705.mail.ukl.yahoo.com> Message-ID: Le mercredi 09 f?vrier 2005 ? 10:57 +0000, jo?ffffffffffe3o Antunes a ?crit : > DATA "SELECT * FROM comuni_abruzzo_gb LEFT JOIN > 'ODBC:prova'.zzz ON comuni_abruzzo_gb.Id = zzz.ID" > > > Warning: [MapServer Error]: msDBFGetItemIndex(): Item 'FIELD' not > found. in c:\programmi\apache group\apache\htdocs\abruzzo > \_test_odbc.php on line 6 > Can someone give me a hand with this? Send us the description of your shapefile and the desc of the zzz table. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From bluetuna_goes_skying at YAHOO.CO.UK Wed Feb 9 05:29:18 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Wed, 9 Feb 2005 13:29:18 +0000 Subject: Thematic map using MySQL In-Reply-To: <1107952341.9776.4.camel@geru-itea> Message-ID: The shapefile comuni_abruzzo_gb has got a unique id (field called Id) and the table zzz has got the same unique ID used to make the join between the two and an extra FIELD used to fill the polygons of the shapefile depending on its value. Later on I would also be interested in querying the polygons with a simple querybypoint method and again access the values of the same FIELD. Thank you Joao Antunes Didrik Pinte DATA "SELECT * FROM comuni_abruzzo_gb LEFT JOIN > 'ODBC:prova'.zzz ON comuni_abruzzo_gb.Id = zzz.ID" > > > Warning: [MapServer Error]: msDBFGetItemIndex(): Item 'FIELD' not > found. in c:\programmi\apache group\apache\htdocs\abruzzo > \_test_odbc.php on line 6 > Can someone give me a hand with this? Send us the description of your shapefile and the desc of the zzz table. Didrik > ATTACHMENT part 2 application/pgp-signature name=signature.asc --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jdport at VERITIME.COM Wed Feb 9 06:10:55 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 9 Feb 2005 09:10:55 -0500 Subject: Mapserver bug? Message-ID: I've fixed the problem now, thanks very much for the pointer to that bug. I am running php as a module as you said, however if I try to run in CGI mode I get a mapscript error saying that this build can't run in CGI mode due to stability issues. So I have no choice but to run it as a module. However, I read the bug report you gave me and somebody reported that hte problem went away if you did not pre-load mapscript.so in your php.ini. Others said that the problem persisted either way, but I gave it a try myself... I took out the extension=php_mapscript.so line out of my php.ini and added the "ld php_mapscript.so" line to my scripts and now they work perfectly. Thanks very much! Jeff ----- Original Message ----- From: "Flavio Hendry" To: Sent: Wednesday, February 09, 2005 1:47 AM Subject: Re: [UMN_MAPSERVER-USERS] Mapserver bug? > hi jeff > > youare probably using php as a module ... see bug-id 67. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: Jeff Portwine > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Tue, 8 Feb 2005 13:59:38 -0500 > Subject: [UMN_MAPSERVER-USERS] Mapserver bug? > >> >> I'm pretty sure that this issue i'm having was posted about once >> before a week or two ago by somebody else, but there wasn't much >> response to it and I'm not sure if it is a mapserver bug, or >> something I'm doing wrong, or if there is a workaround for it. >> >> When my map form submits and is redrawn according to whatever buttons >> the user has clicked (panning buttons, zoom, etc) it will sometimes >> jump back to an old image instead of displaying the image it is >> supposed to be showing. If you then just click refresh in the >> browser, it displays the proper image. At first I thought it was >> some kind of browser caching issue, so I tried all the meta tags and >> http headers I could find to disable the caching of images in my >> application... but that didn't fix the problem. The problem also >> seems to be browser independant as I see the same behavior in >> internet explorer and Mozilla firefox. It also seems to get >> worse over time... when I first load up the browser and go to the web >> page it will work perfectly for a little bit, but after a short time >> it will start showing old images and eventually it will start doing >> it almost every refresh. >> >> Have any others had this kind of problem, and has anybody found a way >> to fix it or avoid it? >> >> Thanks for any advice, >> Jeff >> > From fwarmerdam at GMAIL.COM Wed Feb 9 06:18:47 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 9 Feb 2005 09:18:47 -0500 Subject: Thematic map using MySQL In-Reply-To: <20050209105716.91618.qmail@web25705.mail.ukl.yahoo.com> Message-ID: On Wed, 9 Feb 2005 10:57:16 +0000, jo?ffffffffffe3o Antunes wrote: > This example works perfectly with an ODBC for an Access Database. I instaled > and configured ODBC for my SQL, but still it does not work. I get this > message: > > Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named > 'comuni'. in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php > on line 6 > > Warning: [MapServer Error]: msOGRFileOpen(): ExecuteSQL(SELECT * FROM > comuni_abruzzo_gb LEFT JOIN 'ODBC:prova'.zzz ON comuni_abruzzo_gb.Id = > zzz.ID) failed. Unable to initialize ODBC connection to DSN prova, > [MySQL][ODBC 3.51 Driver]Access denied for user 'ODBC'@'localhost' (using > password: NO) in c:\programmi\apache > group\apache\htdocs\abruzzo\_test_odbc.php on line 6 Joao, The problem in the OGR based approach is that the ODBC connection is failing. The truth is that I don't know that much about the internals of ODBC and how system and user DSNs work. But basically the OGR code just uses the DSN name to try and open the ODBC connection and if it isn't setup properly in advance you will crash and burn - as you have. My understanding is that you need to use a System DSN, not a user dsn and that there may be permissions issues that apply to the user that cgi's are run under. If you are interested in narrow down the issue, try: o Using "ogrinfo.exe -ro 'ODBC:prova' -al -so" and see if you are able to connect. This is the first level verification of ODBC under OGR and if this works but the cgi use does not then you have a permissions error. If this does not work then you likely have a DSN issue. o Try "shp2img.exe -m -o out.png" to see if the layer definition is renderable. This will test the join and other configuration while not suffering from permissions issues. Note, I have not had much success specifying my userid and password as part of the DSN. I have generally had to fallback on specifying them in the OGR connection string. Something like 'ODBC:userid/password at prova'. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From fwarmerdam at GMAIL.COM Wed Feb 9 06:30:48 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 9 Feb 2005 09:30:48 -0500 Subject: showing lines of overlapping polygons In-Reply-To: <06F035F1.6AB0E787.BE2B12DA@cs.com> Message-ID: On Wed, 9 Feb 2005 07:26:06 -0500, Erwin v.d. Bij wrote: > Hello, > > I want to see the lines of 2 or more polygons which do overlap. Polygons are in the same layer. Polygons are filled with a style. Currently, I see only all the lines of the polygon which is obvious on top. I've experienced with the TRANSPARANCY attribute, but that did not help. Do you have any ideas? Erwin, I am unaware of a way of rendering multiple polygons in the same layer transparently on one another. As you note the layer level transparency doesn't work in this case. It is implemented by rendering the layer into a seperate bitmap and then doing a transparent overlay of the whole rendered layer onto the map-so-far. I would really like to see us add an "alpha" component to colors everywhere, so that any object could be rendered with transparency. There are a variety of issues with this though (beyond just the work involved) including the fact that it wouldn't work well in the common 8bit case. 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 bluetuna_goes_skying at YAHOO.CO.UK Wed Feb 9 06:36:34 2005 From: bluetuna_goes_skying at YAHOO.CO.UK (=?iso-8859-1?q?jo=FFffffffffffe3o=20Antunes?=) Date: Wed, 9 Feb 2005 14:36:34 +0000 Subject: Thematic map using MySQL In-Reply-To: <931f8ea905020906184b35f72c@mail.gmail.com> Message-ID: Yesss! It works! I just set up the user and password as you suggested: 'ODBC:userid/password at prova' Thank you very much Frank for this precious help! joao Frank Warmerdam wrote: On Wed, 9 Feb 2005 10:57:16 +0000, jo?ffffffffffe3o Antunes wrote: > This example works perfectly with an ODBC for an Access Database. I instaled > and configured ODBC for my SQL, but still it does not work. I get this > message: > > Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named > 'comuni'. in c:\programmi\apache group\apache\htdocs\abruzzo\_test_odbc.php > on line 6 > > Warning: [MapServer Error]: msOGRFileOpen(): ExecuteSQL(SELECT * FROM > comuni_abruzzo_gb LEFT JOIN 'ODBC:prova'.zzz ON comuni_abruzzo_gb.Id = > zzz.ID) failed. Unable to initialize ODBC connection to DSN prova, > [MySQL][ODBC 3.51 Driver]Access denied for user 'ODBC'@'localhost' (using > password: NO) in c:\programmi\apache > group\apache\htdocs\abruzzo\_test_odbc.php on line 6 Joao, The problem in the OGR based approach is that the ODBC connection is failing. The truth is that I don't know that much about the internals of ODBC and how system and user DSNs work. But basically the OGR code just uses the DSN name to try and open the ODBC connection and if it isn't setup properly in advance you will crash and burn - as you have. My understanding is that you need to use a System DSN, not a user dsn and that there may be permissions issues that apply to the user that cgi's are run under. If you are interested in narrow down the issue, try: o Using "ogrinfo.exe -ro 'ODBC:prova' -al -so" and see if you are able to connect. This is the first level verification of ODBC under OGR and if this works but the cgi use does not then you have a permissions error. If this does not work then you likely have a DSN issue. o Try "shp2img.exe -m -o out.png" to see if the layer definition is renderable. This will test the join and other configuration while not suffering from permissions issues. Note, I have not had much success specifying my userid and password as part of the DSN. I have generally had to fallback on specifying them in the OGR connection string. Something like 'ODBC:userid/password at prova'. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent --------------------------------- ALL-NEW Yahoo! Messenger - all new features - even more fun! -------------- next part -------------- An HTML attachment was scrubbed... URL: From miller_joseph at BAH.COM Wed Feb 9 06:45:58 2005 From: miller_joseph at BAH.COM (Miller Joseph) Date: Wed, 9 Feb 2005 09:45:58 -0500 Subject: UnsatisfiedLinkError with Java Mapscript and Tomcat even with dll in path and singleton working Message-ID: I looked through the archives and saw no resolution on this so I thought I would contribute what solved this for me. Umberto Nicoletti (and others) have done a great job providing resources on the Wiki to avoid having the native libraries loading twice (http://www.unicolet.org/mapserver/tomcat.html) . There are other messages that explain that you need to put the mapscript dll and other supporting dll's into your windows system path in order for System.loadlibrary to work. But I found that I was still getting unsatisfiedlinkerrors until I put the mapscript jar file into tomcat's common\lib directory (the same place where I put the jar containing Umberto's singleton class). If I put the jar into the local classloader for my application, the singleton would load the native mapscript library, but could not use the classes from mapscript.jar. Hope this helps someone avoid the headaches I experienced. Joseph Miller -------------- next part -------------- An HTML attachment was scrubbed... URL: From sdk at HARTLEYANDERSON.COM Wed Feb 9 07:20:51 2005 From: sdk at HARTLEYANDERSON.COM (Stephen King) Date: Wed, 9 Feb 2005 09:20:51 -0600 Subject: MapServer Application Error Message-ID: Hi, I've been setting up a test application using MapServer 4.4.1 on a Windows XP Professional machine with IIS. Everything works fairly well apart from an occaisional mapserv.exe - Application Error box that appears with a message such as: The instruction at "0x7c93426d" referenced memory at "0x00000000". The memory could not be "read". Click on OK to terminate the program. Click on CANCEL to debug the program. My application currently has 7 layers, six of which are vector and one raster (ECW format). Originally I had more raster layers, and I thought that this was causing the problem, however, even without them I still have this problem. Sometimes the error also causes images in the legend not to be written correctly. On another, perhaps related note, I have set the application up as a WMS server. I can access this through ArcGIS 9, however, it will not display all 7 layers at the same time, rather only six are visible in the map, even if all seven are switched on. Would be grateful if anyone can give me an idea what this problem is. Many thanks, Stephen From Mark.Andrle at NEWBRIGHTONMN.GOV Wed Feb 9 07:23:21 2005 From: Mark.Andrle at NEWBRIGHTONMN.GOV (Mark Andrle) Date: Wed, 9 Feb 2005 09:23:21 -0600 Subject: map file access problems Message-ID: Hello, I very new to mapserver and I'm having problems getting mapserver to access the map file. When I execute http://s-cnbml350:8080/cgi-bin/mapserv.exe? map=u:\wwwroot\home.map&mode=map I receive a message of msLoadMap(): Unable to access file. (u:\wwwroot\home.map) We are using Windows XP and IIS. Could this be a permission problem? Any suggestions would be much appreciated. Thank You Mark Andrle From nicolas.fortin at EC.GC.CA Wed Feb 9 07:42:41 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 9 Feb 2005 10:42:41 -0500 Subject: [UMN_MAPSERVER-USERS] map file access problems Message-ID: Hi Mark, Yes, you have to give IUSR_[NAME] permission tu read u:\wwwroot\ directory. If this is your main virtual web directory, IUSR_ should already have the right to read it. I use filemon tools to check for permission problem, you could find it here: http://www.sysinternals.com/ntw2k/source/filemon.shtml . While running it and getting the error, search for any ACCESS DENIED. Nick -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Mark Andrle Envoy? : Wednesday, February 09, 2005 10:23 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] map file access problems Hello, I very new to mapserver and I'm having problems getting mapserver to access the map file. When I execute http://s-cnbml350:8080/cgi-bin/mapserv.exe? map=u:\wwwroot\home.map&mode=map I receive a message of msLoadMap(): Unable to access file. (u:\wwwroot\home.map) We are using Windows XP and IIS. Could this be a permission problem? Any suggestions would be much appreciated. Thank You Mark Andrle From nicolas.fortin at EC.GC.CA Wed Feb 9 07:51:44 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 9 Feb 2005 10:51:44 -0500 Subject: [UMN_MAPSERVER-USERS] MapServer Application Error Message-ID: Hi Stephen, I also got this error with Oracle Spatial error..sometimes. I didn't find the reason yet though... Running Windows 2000 with IIS. For your second prob, try just setting the missing layer on and the others off to see if it will appear alone. Perhaps it's just a bad layer ordering... Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Stephen King Envoy? : Wednesday, February 09, 2005 10:21 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] MapServer Application Error Hi, I've been setting up a test application using MapServer 4.4.1 on a Windows XP Professional machine with IIS. Everything works fairly well apart from an occaisional mapserv.exe - Application Error box that appears with a message such as: The instruction at "0x7c93426d" referenced memory at "0x00000000". The memory could not be "read". Click on OK to terminate the program. Click on CANCEL to debug the program. My application currently has 7 layers, six of which are vector and one raster (ECW format). Originally I had more raster layers, and I thought that this was causing the problem, however, even without them I still have this problem. Sometimes the error also causes images in the legend not to be written correctly. On another, perhaps related note, I have set the application up as a WMS server. I can access this through ArcGIS 9, however, it will not display all 7 layers at the same time, rather only six are visible in the map, even if all seven are switched on. Would be grateful if anyone can give me an idea what this problem is. Many thanks, Stephen From siki at AGT.BME.HU Wed Feb 9 10:38:04 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 9 Feb 2005 17:38:04 -0100 Subject: showing lines of overlapping polygons {Scanned} {Scanned} In-Reply-To: <06F035F1.6AB0E787.BE2B12DA@cs.com> Message-ID: Hi, Change the COLOR for the class to -1 -1 -1, then you will see all the border lines, but you will not know which belong to the same polygon. Overlapping polygons in the same layer make you hadache using any GIS software. Try to avoid it. Bye Zoltan On Wed, 9 Feb 2005, Erwin v.d. Bij wrote: > Hello, > > I want to see the lines of 2 or more polygons which do overlap. Polygons are in the same layer. Polygons are filled with a style. Currently, I see only all the lines of the polygon which is obvious on top. I've experienced with the TRANSPARANCY attribute, but that did not help. Do you have any ideas? > From sdk at HARTLEYANDERSON.COM Wed Feb 9 08:22:06 2005 From: sdk at HARTLEYANDERSON.COM (Stephen D. King) Date: Wed, 9 Feb 2005 16:22:06 -0000 Subject: MapServer Application Error Message-ID: Hi Nicolas, Thanks for your reply. The WMS server problem appears to have been caused by a layer having a STATUS of DEFAULT in the map file; switching it to OFF has solved the issue. Still having the memory problem unfortunately! Stephen ----- Original Message ----- From: "Fortin,Nicolas [SteFoy]" To: Sent: Wednesday, February 09, 2005 3:51 PM Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] MapServer Application Error Hi Stephen, I also got this error with Oracle Spatial error..sometimes. I didn't find the reason yet though... Running Windows 2000 with IIS. For your second prob, try just setting the missing layer on and the others off to see if it will appear alone. Perhaps it's just a bad layer ordering... Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Stephen King Envoyi : Wednesday, February 09, 2005 10:21 AM @ : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] MapServer Application Error Hi, I've been setting up a test application using MapServer 4.4.1 on a Windows XP Professional machine with IIS. Everything works fairly well apart from an occaisional mapserv.exe - Application Error box that appears with a message such as: The instruction at "0x7c93426d" referenced memory at "0x00000000". The memory could not be "read". Click on OK to terminate the program. Click on CANCEL to debug the program. My application currently has 7 layers, six of which are vector and one raster (ECW format). Originally I had more raster layers, and I thought that this was causing the problem, however, even without them I still have this problem. Sometimes the error also causes images in the legend not to be written correctly. On another, perhaps related note, I have set the application up as a WMS server. I can access this through ArcGIS 9, however, it will not display all 7 layers at the same time, rather only six are visible in the map, even if all seven are switched on. Would be grateful if anyone can give me an idea what this problem is. Many thanks, Stephen From l.bargeot at EDUCAGRI.FR Wed Feb 9 08:56:49 2005 From: l.bargeot at EDUCAGRI.FR (Lionel Bargeot) Date: Wed, 9 Feb 2005 17:56:49 +0100 Subject: STYLEITEM with postgis datasource (via OGR) Message-ID: Hi all, I would like to use STYLITEM with a PostGIS datasource. As explained in documentation, I have to use an OGR CONNECTIONTYPE, and I have to define my CONNECTION with right PG ogr driver parameters. The DATA definition is little different but it works well and I don't see any difference. I would like to use a field in my database to define object's style on the map, or to build this field on the fly. My map file looks like something like this : LAYER CONNECTIONTYPE OGR NAME "villes" CONNECTION "PG:dbname=form user=... password=... host=127.0.0.1 port=5432" DATA "select oid, lower(nom_comm) as nom, 'BRUSH(fc:\#ff0000,id:mapinfo-sym-35)' as Style, buffer(the_geom,2500) as the_geom from ville where population > 5" STYLEITEM "style" # AUTO looks for Style ..... END I inspire myself with an ogrinfo output on a TAB file to produce the line with the BRUSH definition. The query works well with the usual psql interpreter. I added symbolset definition to my own symbol file to be sure to have those symbol definitions in my symbolset. But all the results I obtain are blank maps with labels :-( Do you know if there is a possibility (or not) about this idea to work a day ? Regards, Lionel From ed at TOPOZONE.COM Wed Feb 9 09:06:32 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 9 Feb 2005 12:06:32 -0500 Subject: map file access problems Message-ID: Mark - I'm going to guess that U: is a mapped network drive. If that's the case, remember that your Web applications run in the context of the anonymous Web user account (the IUSR_ account) by default. As a security measure, that account has no access to network resources. It also won't have a default drive mapping unless you create one. Just because YOU have drive U: connected when you log in doesn't mean it's available for another user. If you're "very new" to MapServer, it's easier to get started with local files first, just so you have one less variable to deal with. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mark Andrle Sent: Wednesday, February 09, 2005 10:23 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] map file access problems Hello, I very new to mapserver and I'm having problems getting mapserver to access the map file. When I execute http://s-cnbml350:8080/cgi-bin/mapserv.exe? map=u:\wwwroot\home.map&mode=map I receive a message of msLoadMap(): Unable to access file. (u:\wwwroot\home.map) We are using Windows XP and IIS. Could this be a permission problem? Any suggestions would be much appreciated. Thank You Mark Andrle From jfletcher at LATITUDEGEO.COM Wed Feb 9 09:13:14 2005 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Wed, 9 Feb 2005 09:13:14 -0800 Subject: showing lines of overlapping polygons Message-ID: Erwin, Something like the following might give you the result you're after - like Frank mentioned, it's difficult to do this in one layer, but you can group a couple: LAYER GROUP 'poly' NAME 'poly_test_outline' TYPE POLYGON STATUS ON DATA 'poly23939' CLASS STYLE OUTLINECOLOR 0 0 0 END END END LAYER GROUP 'poly' NAME 'poly_test' TRANSPARENCY 60 TYPE POLYGON STATUS ON DATA 'poly23939' CLASS STYLE COLOR 225 225 185 END END END You can change the order of the layers based on whether or not you want the poly outlines in front of or behind the transparent poly fill. John > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Erwin v.d. Bij > Sent: Wednesday, February 09, 2005 4:26 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] showing lines of overlapping polygons > > Hello, > > I want to see the lines of 2 or more polygons which do > overlap. Polygons are in the same layer. Polygons are filled > with a style. Currently, I see only all the lines of the > polygon which is obvious on top. I've experienced with the > TRANSPARANCY attribute, but that did not help. Do you have any ideas? > From murilo.yoshida at AGX.COM.BR Wed Feb 9 09:17:58 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Wed, 9 Feb 2005 15:17:58 -0200 Subject: Mapserver bug? Message-ID: Hi all, I have the same problem as Jeff, but I am NOT using mapscript pre-loaded, and I'm lost... I saw the bug, the last post on it said that there was reports that that bug was still happening on mapserver 4.4 period. What to do? I'm thinking in changing my php back to cgi and wait the bug to be solved ... But I'm not yet sure that this is a mapserver bug ... everything points to it, but could be something else... Thanks, Murilo --------------------- I've fixed the problem now, thanks very much for the pointer to that bug. I am running php as a module as you said, however if I try to run in CGI mode I get a mapscript error saying that this build can't run in CGI mode due to stability issues. So I have no choice but to run it as a module. However, I read the bug report you gave me and somebody reported that hte problem went away if you did not pre-load mapscript.so in your php.ini. Others said that the problem persisted either way, but I gave it a try myself... I took out the extension=php_mapscript.so line out of my php.ini and added the "ld php_mapscript.so" line to my scripts and now they work perfectly. Thanks very much! Jeff ----- Original Message ----- From: "Flavio Hendry" To: Sent: Wednesday, February 09, 2005 1:47 AM Subject: Re: [UMN_MAPSERVER-USERS] Mapserver bug? > hi jeff > > youare probably using php as a module ... see bug-id 67. > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC NEWS http://www.tydac.ch/german/index.php?menu=News_actual > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: Jeff Portwine > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Tue, 8 Feb 2005 13:59:38 -0500 > Subject: [UMN_MAPSERVER-USERS] Mapserver bug? > >> >> I'm pretty sure that this issue i'm having was posted about once >> before a week or two ago by somebody else, but there wasn't much >> response to it and I'm not sure if it is a mapserver bug, or >> something I'm doing wrong, or if there is a workaround for it. >> >> When my map form submits and is redrawn according to whatever buttons >> the user has clicked (panning buttons, zoom, etc) it will sometimes >> jump back to an old image instead of displaying the image it is >> supposed to be showing. If you then just click refresh in the >> browser, it displays the proper image. At first I thought it was >> some kind of browser caching issue, so I tried all the meta tags and >> http headers I could find to disable the caching of images in my >> application... but that didn't fix the problem. The problem also >> seems to be browser independant as I see the same behavior in >> internet explorer and Mozilla firefox. It also seems to get >> worse over time... when I first load up the browser and go to the web >> page it will work perfectly for a little bit, but after a short time >> it will start showing old images and eventually it will start doing >> it almost every refresh. >> >> Have any others had this kind of problem, and has anybody found a way >> to fix it or avoid it? >> >> Thanks for any advice, >> Jeff >> > From ARyan at CO.LINN.OR.US Wed Feb 9 10:01:33 2005 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 9 Feb 2005 10:01:33 -0800 Subject: Python mapscript & OGR.py Message-ID: Two great tastes that taste great together. But how to mix them in the same bowl of scripts eludes me. To utilize OGRGeometry methods on a mapscript.layerObj I need to instantiate an OGRLayer using layerObj.data? OK, so I have dual classes; it's not that big a deal. But eventually I want to use the results of my OGR spatial querying (within, crosses, etc.). What I need is a way to replace my layerObj's resultCacheObj() with my list of OGRFeatures WITHOUT doing a (very slow) queryByIndex for each feature. Any thoughts? Scrap that idea and use postGIS? Cheers, Adam From fwarmerdam at GMAIL.COM Wed Feb 9 10:20:50 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 9 Feb 2005 13:20:50 -0500 Subject: STYLEITEM with postgis datasource (via OGR) In-Reply-To: <420A40D1.60906@educagri.fr> Message-ID: On Wed, 9 Feb 2005 17:56:49 +0100, Lionel Bargeot wrote: > I would like to use a field in my database to define object's style on > the map, or to build this field on the fly. > > My map file looks like something like this : > > LAYER > CONNECTIONTYPE OGR > NAME "villes" > CONNECTION "PG:dbname=form user=... password=... host=127.0.0.1 > port=5432" > DATA "select oid, > lower(nom_comm) as nom, > 'BRUSH(fc:\#ff0000,id:mapinfo-sym-35)' as Style, > buffer(the_geom,2500) as the_geom from ville > where population > 5" > STYLEITEM "style" # AUTO looks for Style > ..... > END > > I inspire myself with an ogrinfo output on a TAB file to produce the > line with the BRUSH definition. The query works well with the usual psql > interpreter. I added symbolset definition to my own symbol file to be > sure to have those symbol definitions in my symbolset. > > But all the results I obtain are blank maps with labels :-( > > Do you know if there is a possibility (or not) about this idea to work a > day ? Lionel, Are you hoping to have "OGR Auto-styling" kick in based on reading an attribute with style strings? I don't think this works. I believe that autostyling is only applied if you use specifically 'STYLEITEM "AUTO"' and then it fetches the style item from the "special" style attribute of the feature. This isn't a real attribute though, and even naming an attribute style isn't the same as the "official" style string. What you need is a way of telling mapserver to use autostyling, but to read the style from a named attribute. I don't think that exists, but it could be added reasonably easily. I would add that Daniel Morissette is the authority on OGR autostyling in mapserver, and might have more to add. However, he is sometimes to busy to stay on top of mapserver-users questions. 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 Wed Feb 9 10:30:05 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 9 Feb 2005 11:30:05 -0700 Subject: Python mapscript & OGR.py In-Reply-To: Message-ID: On Feb 9, 2005, at 11:01 AM, Ryan, Adam wrote: > Two great tastes that taste great together. But how to mix them in > the same > bowl of scripts eludes me. > > To utilize OGRGeometry methods on a mapscript.layerObj I need to > instantiate > an OGRLayer using layerObj.data? OK, so I have dual classes; it's not > that > big a deal. But eventually I want to use the results of my OGR spatial > querying (within, crosses, etc.). What I need is a way to replace my > layerObj's resultCacheObj() with my list of OGRFeatures WITHOUT doing a > (very slow) queryByIndex for each feature. > > Any thoughts? Scrap that idea and use postGIS? > > Cheers, > > Adam > Adam, Iterate over your list of OGR features, build up a shapeObj from each Geometry, and then use layerObj::addFeature() to pop these shapes into the inline features of a layer. They will draw just like a normal layer's features -- except that you will have to classify them yourself by assigning values to each shape's classindex attribute. Unfortunately, building up shapeObjs using the mapscript API is sloooooooowwwwwwwwwww. The fastest possible builder for shapeObjs using only Python is shown around line 108 of the attached file, but is still very slow. I think you should collaborate with me on my Python Cartographic Library. It has a framework for feature querying and classification that uses ogr.py and uses mapscript.py for the actual map rendering. Email me offline and I'll tell you all about it. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies -------------- next part -------------- A non-text attachment was scrubbed... Name: timeshapes.py Type: application/octet-stream Size: 6442 bytes Desc: not available URL: From Michael.Smith at ERDC.USACE.ARMY.MIL Wed Feb 9 10:34:01 2005 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Wed, 9 Feb 2005 12:34:01 -0600 Subject: Configure ORA_GEOMETRY column in OGR Message-ID: Frank, Could you make the oracle spatial column name configurable as a command line or enviroment option. We use both OGR2OGR and Arc$Tools for data loading and would like to keep the geometry columns consistent. And we'll never get ESRI to change. Thanks, Mike Smith GIS Specialist/Physical Scientist/Oracle Developer Remote Sensing/GIS Center of Expertise Army Engineer Research & Development Center Hanover, NH (603) 646-4765 michael.smith at erdc.usace.army.mil -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Wed Feb 9 10:38:43 2005 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 9 Feb 2005 13:38:43 -0500 Subject: Question on LOG and DEBUG Message-ID: Hi dear list users, I want to know what LOG and DEBUG are suppose to do...? I have DEBUG TRUE at map level and LOG "log.txt" at WEB level. The only logs wrote in the file are when mapserver used the html template; when I made a WMS request, there's no log of this request. If I add LAYER level DEBUG, there's no change. How can I set up the mapfile to also have log from WMS request? Thanks, Nicolas Fortin Math?maticien, Programmeur, Analyste de donn?es SMC-Qu?bec Hydrologie, Environnement Canada 1141, Rte de l'?glise, Sainte-Foy(QC) G1V 4H5 (418)648-2516 nicolas.fortin at ec.gc.ca -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Feb 9 10:42:46 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 9 Feb 2005 13:42:46 -0500 Subject: Configure ORA_GEOMETRY column in OGR In-Reply-To: Message-ID: On Wed, 9 Feb 2005 12:34:01 -0600, Smith, Michael ERDC-CRREL-NH wrote: > > Frank, > > Could you make the oracle spatial column name configurable as a command line > or enviroment option. We use both OGR2OGR and Arc$Tools for data loading and > would like to keep the geometry columns consistent. And we'll never get ESRI > to change. Michael, I assume you mean the name that OGR assigns to geometry columns when creating new tables/layers in Oracle? That should be easy enough to do. Would you mind submitting a GDAL/OGR bugzilla entry requesting this? 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 Michael.Smith at ERDC.USACE.ARMY.MIL Wed Feb 9 10:48:09 2005 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Wed, 9 Feb 2005 12:48:09 -0600 Subject: Configure ORA_GEOMETRY column in OGR Message-ID: Correct. I'll do that. Mike -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at GMAIL.COM] Sent: Wednesday, February 09, 2005 1:43 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Configure ORA_GEOMETRY column in OGR On Wed, 9 Feb 2005 12:34:01 -0600, Smith, Michael ERDC-CRREL-NH wrote: > > Frank, > > Could you make the oracle spatial column name configurable as a > command line or enviroment option. We use both OGR2OGR and Arc$Tools > for data loading and would like to keep the geometry columns > consistent. And we'll never get ESRI to change. Michael, I assume you mean the name that OGR assigns to geometry columns when creating new tables/layers in Oracle? That should be easy enough to do. Would you mind submitting a GDAL/OGR bugzilla entry requesting this? 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 woklist at CHARTER.NET Wed Feb 9 10:50:59 2005 From: woklist at CHARTER.NET (William K) Date: Wed, 9 Feb 2005 12:50:59 -0600 Subject: support for MySQL spatial geometry? In-Reply-To: Message-ID: I think it would be a good idea to pursue this. I've been patiently waiting for someone to start working on this for MapServer (and GRASS). I can think of a few reasons: - MySQL is easier to install cross-platform. There are official binaries available for many platforms, not just the few available for PostGreSQL. - and the spatial features of MySQL are built-in. PostGIS is a separate extension to PostGre. The official (and 3rd-party) PostGre binaries won't even work since you need to build PostGIS on a PostGre source base. - I've found that cross-platform DB clients and user management are more developed for MySQL (ie phpMyAdmin vs phpPgAdmin, tho it looks like phpPgAdmin is finally getting there). I'm not saying PostGre/PostGIS is bad, just that MySQL/spatial is not 'just another spatial database'. Generally, it's a little more accessible to users & admins. Doesn't have some advanced features, like GEOS and PROJ support, but it will do for many. my 2? On Feb 8, 2005, at 11:50 PM, Frank Warmerdam wrote: > On Tue, 8 Feb 2005 21:04:01 -0800, Gregor Mosheh > wrote: >> Is there any idea yet as to when/if MapServer or some >> underlying library will support MySQL's new spatial >> geometry capabilities? > > Gregor, > > I am not aware of anyone working on MySQL Spatial support > for mapserver itself, and I don't have any plans to add it to > OGR. I would be happy to do so if a client was interested, but > I am hesitant to do it just for the sake of having another > spatial database. > ----- William Kyngesburye http://webpages.charter.net/kyngchaos/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From John.Spotten at CAPETOWN.GOV.ZA Wed Feb 9 07:55:45 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Wed, 9 Feb 2005 17:55:45 +0200 Subject: mapserver speed issues Message-ID: hi , does mapserver make use of indexing present in external databases such as mapinfo, as I am considering breaking up a 90000 record layer into 5 classes each with it's own styling and doing some further joining with other sources. I know I will have to check speeds over our intranet first for various options and log test results. Is there any documentation on speed issues and tips and tricks on how to improve speed. John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za <> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: -------------- next part -------------- NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- From fwarmerdam at GMAIL.COM Wed Feb 9 11:59:01 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 9 Feb 2005 14:59:01 -0500 Subject: Python mapscript & OGR.py In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A83A81D0@linnms.co.linn.or.us> Message-ID: On Wed, 9 Feb 2005 10:01:33 -0800, Ryan, Adam wrote: > To utilize OGRGeometry methods on a mapscript.layerObj I need to instantiate > an OGRLayer using layerObj.data? OK, so I have dual classes; it's not that > big a deal. But eventually I want to use the results of my OGR spatial > querying (within, crosses, etc.). What I need is a way to replace my > layerObj's resultCacheObj() with my list of OGRFeatures WITHOUT doing a > (very slow) queryByIndex for each feature. > > Any thoughts? Scrap that idea and use postGIS? Adam, Eventually I would like to have methods for quickly turning OGR Features (or at least OGR Geometries) into ShapeObjs and the opposite. In the meantime this is messy. One option (in addition to the method that Sean discusses) is to setup an OGR "memory layer". It is a lightweight OGR datasource that is stored completely in memory. You could have your python fetch the features you want from the disk file via whatever mechanism, and with whatever post processing (ie OGR GEOS funcs) you want. Then copy the features to a memory layer and setup the layer CONNECTION definition to refer to that memory layer. The tricky parts are likely to be creating the memory datasource in "shared" mode so that MapServer can re-open it without knowing it is already open. Also, it may be tricky to get the proper datasource name for the memory datasource/layer. If you are really keen to pursue this approach let me know, and I could try and work through a working example for you to work from. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From steve.hall at MERCATORGEOSYSTEMS.CO.UK Wed Feb 9 12:11:18 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Wed, 9 Feb 2005 20:11:18 -0000 Subject: Dot density maps Message-ID: Hi all, Has anyone ever done any dot-density mapping using MapServer? For those familiar with MapInfo i'm looking to replicate something like the dot-density maps found in that product. I can't seem to find any reference to it in the docs.... Many thanks, Steve Hall -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Feb 9 12:08:52 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 9 Feb 2005 15:08:52 -0500 Subject: mapserver speed issues In-Reply-To: <875F594C85E9914C841109EADA425E3511DD44@CBD-METLIFE-001.capetown.gov.za> Message-ID: On Wed, 9 Feb 2005 17:55:45 +0200, John Spotten wrote: > hi , > > does mapserver make use of indexing present in external databases such as > mapinfo, as I am considering breaking up a 90000 record layer into 5 classes > each with it's own styling and doing some further joining with other > sources. John, OGR currently has no support for using mapinfo attribute index, even though I (ironically) use mapinfo style attribute indexes for Shapefiles in OGR. In any event, it can be very hard to get MapServer to use OGR for attribute queries. On recently (in 4.5) was an option implemented in MapServer to pass the FILTER directive down to OGR. And even now classification expressions are always evaluated by MapServer. So, the situation for attribute query and classification is that you should really try and do any subsetting you can of data as a preprocessing step when working with mapserver through OGR. The situation is somewhat better with the RDBMS connectors in that you can provide SQL FILTERs that are evaluated by the database (though classification is still done in MapServer). The other kind of index is a spatial index. OGR and MapServer will indeed take full advantage of a mapinfo tab spatial index to quickly extract the features of a small area from a large file. Only a few other OGR format drivers support fast spatial searching. > I know I will have to check speeds over our intranet first for various > options and log test results. > > Is there any documentation on speed issues and tips and tricks on how to > improve speed. Nothing terribly organized I am afraid. For OGR drivers it can sometimes be helpful to read the driver/format information page on the ogr web site. 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 agillesp at VT.EDU Wed Feb 9 12:58:59 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 9 Feb 2005 15:58:59 -0500 Subject: Highlight a specific shape record Message-ID: Is there anyway to highlight a specific shape if I know its tileindex and shapeindex? These values are gathered from a prior query. And then the user chooses a given record to zoom to. I tried just using a shape query but this is returning puzzling results. Here's some code that sorta does what I'm talking about: $layer->open(); $s = $layer->getShape($tileindex, $shapeindex); $layer->queryByShape($s); $cnt = $layer->getNumResults(); $cnt above is somewhere in the number of 150+ records. This is weird because this is just a simple house layer where no houses are touching. I also fool around with setting $layer->tolerance = -1 ... does setting the tolerance at runtime have any effect on the spatial query? I would still prefer a more direct method for highlighting the given shape just by using its tileindex and shapeindex. Thanks for any help. -Abe From sgillies at FRII.COM Wed Feb 9 12:59:32 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 9 Feb 2005 13:59:32 -0700 Subject: google maps dissection Message-ID: Many of you read Slashdot, I'm sure, but those that didn't might be interested in this URL: http://jgwebber.blogspot.com/2005/02/mapping-google.html cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From kenlord at GMAIL.COM Wed Feb 9 13:36:44 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Wed, 9 Feb 2005 13:36:44 -0800 Subject: Dot density maps In-Reply-To: <006b01c50ee3$83ee8860$520a0a0a@scorpio> Message-ID: Hi Steve, You can display mapinfo tab files as layers in mapserver, 'autostyled' so that they appear the same as they would in mapinfo. For example I have a mapserver application that displays a regional geology layer using the standard Geological Survey of Canada colours for the rock units. The colours of the polygons are set in the mapinfo files. This results in a very simple layer in my mapserver .map file ... instead of one that would have had 100's of separate classes defined for each rock unit variation, that would have taken forever to write had I used a shapefile. I wonder if this auto styling would work for the dot density formatting. Another possibility would be to create symbols that represent different dot density ranges, with the range value stored as an attribute in the polygon shapefile, and classify the mapserver layer so that the polygons are filled with the appropriate symbol. Cheers, Ken Lord Vancouver BC On Wed, 9 Feb 2005 20:11:18 -0000, Steve Hall wrote: > Hi all, > > Has anyone ever done any dot-density mapping using MapServer? For those > familiar with MapInfo i'm looking to replicate something like the > dot-density maps found in that product. I can't seem to find any reference > to it in the docs.... > > Many thanks, > > Steve Hall > From cord at LUPINEX.COM Wed Feb 9 14:10:01 2005 From: cord at LUPINEX.COM (Cord Thomas) Date: Wed, 9 Feb 2005 14:10:01 -0800 Subject: google maps dissection In-Reply-To: <7F00D059-7ADD-11D9-8AA8-000D9329D732@frii.com> Message-ID: Sean Gillies wrote: > Many of you read Slashdot, I'm sure, but those that didn't might be > interested in this URL: > > http://jgwebber.blogspot.com/2005/02/mapping-google.html > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies Yes, someone directed me to this application - and this url http://maps.google.com a few days ago incredible interface, performance and their ability to link to their indexes will be astounding - actually, unfortunately puts a bit of a halt on one of my pet projects... -------------------- This email message is for the sole use of the intended recipient(s) and may contain privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. From john.c.cartwright at NOAA.GOV Wed Feb 9 15:04:48 2005 From: john.c.cartwright at NOAA.GOV (John Cartwright) Date: Wed, 9 Feb 2005 17:04:48 -0600 Subject: mapserv segfaults Message-ID: Hello All, I'm trying to get started with Mapserver 4.4.1 to be used as a WMS/WFS/WCS server. I've compiled from src since I needed some options that I didn't see in the pre-compiled binaries. mapserv responds successfully to a WMS GetCapabilities response and includes the following line confirming my compiled-in options: However, a GetMap request to the using the same map parameter produces a Segmentation fault as recorded in the apache error log Can anyone suggest what the problem might be or a way to diagnose it? Can the mapserv CGI be run at the command-line? Thanks! -- john From woodbri at SWOODBRIDGE.COM Wed Feb 9 15:45:41 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 9 Feb 2005 18:45:41 -0500 Subject: mapserv segfaults In-Reply-To: Message-ID: John Cartwright wrote: > Hello All, > > I'm trying to get started with Mapserver 4.4.1 to be used as a WMS/WFS/WCS > server. I've compiled from src since I needed some options that I didn't see > in the pre-compiled binaries. > > mapserv responds successfully to a WMS GetCapabilities response and includes > the following line confirming my compiled-in options: > > > > However, a GetMap request to the using the same map parameter produces a > Segmentation fault as recorded in the apache error log > > Can anyone suggest what the problem might be or a way to diagnose it? Can > the mapserv CGI be run at the command-line? > > Thanks! > > -- john > John, You can run mapserver cgi at the command line, but you need to set up the environment variables first, like export REQUEST_METHOD=GET export QUERY_STRING="...." gdb mapserv run set your QUERY_STRING appropriately -Steve W. From John.C.Cartwright at NOAA.GOV Wed Feb 9 16:08:41 2005 From: John.C.Cartwright at NOAA.GOV (John C Cartwright) Date: Wed, 9 Feb 2005 17:08:41 -0700 Subject: mapserv segfaults In-Reply-To: <420AA0A5.9060702@swoodbridge.com> Message-ID: Hi Steve, thanks for the prompt response and the suggestion. gdb is just telling me the error occurred in memory allocation, but this is not helping me much: (gdb) run Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 [Thread debugging using libthread_db enabled] [New Thread -1218617216 (LWP 8708)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218617216 (LWP 8708)] 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 I was hoping to tell what request parameter or map configuration element might be causing trouble. Can you think of any way for me to pursue this at a higher level? Thanks! -- john Stephen Woodbridge wrote: > John, > > You can run mapserver cgi at the command line, but you need to set up > the environment variables first, like > > export REQUEST_METHOD=GET > export QUERY_STRING="...." > gdb mapserv > run > > set your QUERY_STRING appropriately > > -Steve W. From sgillies at FRII.COM Wed Feb 9 16:15:37 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 9 Feb 2005 17:15:37 -0700 Subject: mapserv segfaults In-Reply-To: Message-ID: John, Looks to me like you need to re-config mapserver with --enable-debug so that gdb can tell us more about the calling stack. cheers, Sean On Feb 9, 2005, at 5:08 PM, John C Cartwright wrote: > Hi Steve, > > thanks for the prompt response and the suggestion. > > gdb is just telling me the error occurred in memory allocation, but > this > is not helping me much: > > (gdb) run > Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 > [Thread debugging using libthread_db enabled] > [New Thread -1218617216 (LWP 8708)] > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1218617216 (LWP 8708)] > 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 > > I was hoping to tell what request parameter or map configuration > element > might be causing trouble. Can you think of any way for me to pursue > this > at a higher level? > > Thanks! > > -- john > > > > Stephen Woodbridge wrote: >> John, >> >> You can run mapserver cgi at the command line, but you need to set up >> the environment variables first, like >> >> export REQUEST_METHOD=GET >> export QUERY_STRING="...." >> gdb mapserv >> run >> >> set your QUERY_STRING appropriately >> >> -Steve W. > From Tom.Kralidis at EC.GC.CA Wed Feb 9 17:15:59 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 9 Feb 2005 20:15:59 -0500 Subject: WFS GetFeature Filter multiplicity Message-ID: Hi, Can MapServer WFS Server handle filter with multiple conditions within logical operators? I find that if I try a PropertyIsLike query within an Or block, it only handles up to two PropertyIsLike conditions. This works: abstract mercalli This works: title mercalli abstract mercalli This does not work: title mercalli abstract mercalli keywords mercalli It looks like the third PropertyIsLike condition is totally ignored and not queried. That is, if I enter a search term which I know will only satisfy the 3rd PropertyIsLike condition, I get no results. I haven't tried this with the other operators, but I'm guessing the behaviour would be the same. ..Tom From assefa at DMSOLUTIONS.CA Wed Feb 9 17:22:35 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 9 Feb 2005 20:22:35 -0500 Subject: WFS GetFeature Filter multiplicity In-Reply-To: <2576812186CDD411BF1500508B6DCE950972F5E6@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Tom, The OR operator can only have 2 conditions. In your case you should change your filter to something like condition1 condition2condition3. Later, Kralidis,Tom [Burlington] wrote: > Hi, > > Can MapServer WFS Server handle filter with multiple conditions within > logical operators? > > I find that if I try a PropertyIsLike query within an Or block, it only > handles up to two PropertyIsLike conditions. > > This works: > > > > abstract > mercalli > > > > This works: > > > > > title > mercalli > > > abstract > mercalli > > > > > This does not work: > > > > > title > mercalli > > > abstract > mercalli > > > keywords > mercalli > > > > > > It looks like the third PropertyIsLike condition is totally ignored and > not queried. That is, if I enter a search term which I know will only > satisfy the 3rd PropertyIsLike condition, I get no results. > > I haven't tried this with the other operators, but I'm guessing the > behaviour would be the same. > > ..Tom > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From wokar1 at YAHOO.COM Wed Feb 9 17:42:25 2005 From: wokar1 at YAHOO.COM (w m) Date: Wed, 9 Feb 2005 17:42:25 -0800 Subject: No subject Message-ID: Hi, Does anbody know where I can read up on mapserver. Im new to it and would like to learn it. Is there a good tutorial that i can read or try examples taht have explanations. thank you n m --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Wed Feb 9 18:44:15 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 9 Feb 2005 19:44:15 -0700 Subject: mapserv segfaults In-Reply-To: <420AAA9E.4010305@noaa.gov> Message-ID: John, add a DEBUG ON to the Map-level block in your map config file. This will write messages to stderr, including names of layers being accessed. This should let you know which layer (if any) is associated with the segfault. Now that you've recompiled, run mapserv under gdb exactly as Steve Woodbridge described. This time gdb should give a more detailed description of the location of the memory error including all the MapServer functions that have been called. Give us a look at that and we can try to figure out what's going on. cheers, Sean On Feb 9, 2005, at 5:28 PM, John C Cartwright wrote: > Thanks, Sean. I recompiled with debugging, can you provide me a little > guidance on what would be helpful to get out of gdb? > > ... > Thanks again for your patience and help! > > -- john > > Sean Gillies wrote: >> John, >> Looks to me like you need to re-config mapserver with --enable-debug >> so >> that gdb can tell us more about the calling stack. >> cheers, >> Sean >> On Feb 9, 2005, at 5:08 PM, John C Cartwright wrote: >>> Hi Steve, >>> >>> thanks for the prompt response and the suggestion. >>> >>> gdb is just telling me the error occurred in memory allocation, but >>> this >>> is not helping me much: >>> >>> (gdb) run >>> Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 >>> [Thread debugging using libthread_db enabled] >>> [New Thread -1218617216 (LWP 8708)] >>> >>> Program received signal SIGSEGV, Segmentation fault. >>> [Switching to Thread -1218617216 (LWP 8708)] >>> 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 >>> >>> I was hoping to tell what request parameter or map configuration >>> element >>> might be causing trouble. Can you think of any way for me to pursue >>> this >>> at a higher level? >>> >>> Thanks! >>> >>> -- john >>> >>> >>> >>> Stephen Woodbridge wrote: >>> >>>> John, >>>> >>>> You can run mapserver cgi at the command line, but you need to set >>>> up >>>> the environment variables first, like >>>> >>>> export REQUEST_METHOD=GET >>>> export QUERY_STRING="...." >>>> gdb mapserv >>>> run >>>> >>>> set your QUERY_STRING appropriately >>>> >>>> -Steve W. >>> >>> > From steve.lime at DNR.STATE.MN.US Wed Feb 9 18:49:59 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 9 Feb 2005 20:49:59 -0600 Subject: mapserv segfaults Message-ID: Post the mapfile! That might really help. Are you using the REQUIRES or LABELREQUIRES parameters? There's been a report of segfaults with those (and I'm looking for examples so to fix). Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 >>> John C Cartwright 02/09/05 6:08 PM >>> Hi Steve, thanks for the prompt response and the suggestion. gdb is just telling me the error occurred in memory allocation, but this is not helping me much: (gdb) run Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 [Thread debugging using libthread_db enabled] [New Thread -1218617216 (LWP 8708)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218617216 (LWP 8708)] 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 I was hoping to tell what request parameter or map configuration element might be causing trouble. Can you think of any way for me to pursue this at a higher level? Thanks! -- john Stephen Woodbridge wrote: > John, > > You can run mapserver cgi at the command line, but you need to set up > the environment variables first, like > > export REQUEST_METHOD=GET > export QUERY_STRING="...." > gdb mapserv > run > > set your QUERY_STRING appropriately > > -Steve W. From steve.lime at DNR.STATE.MN.US Wed Feb 9 18:51:49 2005 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 9 Feb 2005 20:51:49 -0600 Subject: Dot density maps Message-ID: I'm not familiar with the term, however if you post a sample map there may well be a way... Steve >>> Steve Hall 02/09/05 2:11 PM >>> Hi all, Has anyone ever done any dot-density mapping using MapServer? For those familiar with MapInfo i'm looking to replicate something like the dot-density maps found in that product. I can't seem to find any reference to it in the docs.... Many thanks, Steve Hall From l.bargeot at EDUCAGRI.FR Wed Feb 9 22:37:05 2005 From: l.bargeot at EDUCAGRI.FR (lionel) Date: Thu, 10 Feb 2005 07:37:05 +0100 Subject: STYLEITEM with postgis datasource (via OGR) In-Reply-To: Message-ID: Frank Warmerdam a ?crit : > >Lionel, > >Are you hoping to have "OGR Auto-styling" kick in based on reading >an attribute with style strings? > Yes that's what I was hoping >I don't think this works. I believe that >autostyling is only applied if you use specifically 'STYLEITEM "AUTO"' and >then it fetches the style item from the "special" style attribute of >the feature. > > I believed STYLEITEM could be "AUTO" or defined in the OGR layer, and then could be build on the fly in a query. >This isn't a real attribute though, and even naming an attribute style >isn't >the same as the "official" style string. > > So, we will do it with a little mapscript code. >What you need is a way of telling mapserver to use autostyling, but >to read the style from a named attribute. I don't think that exists, but >it could be added reasonably easily. > >I would add that Daniel Morissette is the authority on OGR autostyling >in mapserver, and might have more to add. However, he is sometimes >to busy to stay on top of mapserver-users questions. > > Thanks a lot and best regards, Lionel From sdk at HARTLEYANDERSON.COM Thu Feb 10 01:14:56 2005 From: sdk at HARTLEYANDERSON.COM (Stephen D. King) Date: Thu, 10 Feb 2005 09:14:56 -0000 Subject: MapServer Application Error Message-ID: Hi All, Re: my MapServer application error - I downloaded the Windows version of MapServer from the maptools website (http://www.maptools.org) and it appears to be working okay (at the moment), even with all of my raster layers added. Thanks, Stephen ----- Original Message ----- From: "Stephen King" To: Sent: Wednesday, February 09, 2005 3:20 PM Subject: [UMN_MAPSERVER-USERS] MapServer Application Error > Hi, > I've been setting up a test application using MapServer 4.4.1 on a Windows > XP Professional machine with IIS. Everything works fairly well apart from > an occaisional mapserv.exe - Application Error box that appears with a > message such as: > > The instruction at "0x7c93426d" referenced memory at "0x00000000". The > memory could not be "read". Click on OK to terminate the program. Click on > CANCEL to debug the program. > > My application currently has 7 layers, six of which are vector and one > raster (ECW format). Originally I had more raster layers, and I thought > that this was causing the problem, however, even without them I still have > this problem. Sometimes the error also causes images in the legend not to > be written correctly. > > On another, perhaps related note, I have set the application up as a WMS > server. I can access this through ArcGIS 9, however, it will not display > all 7 layers at the same time, rather only six are visible in the map, > even if all seven are switched on. > > Would be grateful if anyone can give me an idea what this problem is. > > Many thanks, > Stephen > > From sweykam at TELELINE.ES Thu Feb 10 01:26:50 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Thu, 10 Feb 2005 10:26:50 +0100 Subject: Buffer query Message-ID: Hi list, I got inspired by Camden Daily's comments on buffer queries. But I can't get this strait. I am in a similar situation. I have to have my map in geographic coordinates as well. But my map covers a too big area, so I ought to reproject my query point and test layers to a metrical reference system before I do the queryByPoint at a determined buffer size. I have a point object and want to find all features within 500 Km distance. I expect to find 2 features within this radius. Just before the query is performed, I clone the point and the layer, reproject to UTM and set the tolerance value of my test layer to 500 and the units to Km. $projInObj = ms_newprojectionobj("init=epsg:4326"); $projOutObj = ms_newprojectionobj("init=epsg:32632"); $tmp_point = ms_newPointObj(); $tmp_point->setXY($pt->x, $pt->y); # clone the point $tmp_point->project($projInObj, $projOutObj); # change projection of pnt $currentLayer = $map->getLayerByName("SPAMI"); $tmp_layer = ms_newLayerObj($map, $currentLayer); # clone current layer $tmp_layer->setProjection("init=epsg:32632"); # change projection of lyr $tmp_layer->set(toleranceunits, MS_KILOMETERS); $tmp_layer->set(tolerance, 500); if (@$tmp_layer->queryByPoint($tmp_pt, MS_MULTIPLE , -1)==MS_SUCCESS) .... This does not return anything. Since Camden daily reported the same problem, I tried if I was lucky and find at least something in decimal degrees, but without considerable success. According to the MapFile Reference - 0 uses the tolerance value set in the map file, while any other value should use 'ground values'. So I tried other values, just for curiosity: 400 finds the nearest 5 features - but this is too far for being a 400Km radius. At 500 whatsoever-units all features are found and below 400 nothing is found.... This makes me think that it's not the code that's wrong, but something related to Proj4. ??? I'm using MS 4.2, Mapscript and PHP 4.3.7, on Win2000 The Proj-files from MapServer work just fine, while those distributed by Maptools.org gave me some problems. I wonder if I should update or try to get the Mapscript proj-files working properly somehow? Thanks for your comments, Stefanie Weykam Ps: refering to another interesting comment a couple of days ago - Has anybody tried to draw a circle transforming the symbol coordinates from image to map coordinates so that the circle size matches the buffer distance of a query? Is this possible at all? From havard.tveite at UMB.NO Thu Feb 10 01:30:37 2005 From: havard.tveite at UMB.NO (Havard Tveite) Date: Thu, 10 Feb 2005 10:30:37 +0100 Subject: showing lines of overlapping polygons In-Reply-To: <08198B38967CBC478213D6FEA76C3040151FC4@napoleon> Message-ID: Or you could use TYPE LINE for the first layer. Then you will also be able to specify more "advanced" outlines. H?vard John Fletcher wrote: > Erwin, > > Something like the following might give you the result you're after - > like Frank mentioned, it's difficult to do this in one layer, but you > can group a couple: > > LAYER > GROUP 'poly' > NAME 'poly_test_outline' > TYPE POLYGON > STATUS ON > DATA 'poly23939' > CLASS > STYLE > OUTLINECOLOR 0 0 0 > END > END > END > > LAYER > GROUP 'poly' > NAME 'poly_test' > TRANSPARENCY 60 > TYPE POLYGON > STATUS ON > DATA 'poly23939' > CLASS > STYLE > COLOR 225 225 185 > END > END > END > > You can change the order of the layers based on whether or not you want > the poly outlines in front of or behind the transparent poly fill. > > John > > >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Erwin v.d. Bij >>Sent: Wednesday, February 09, 2005 4:26 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: [UMN_MAPSERVER-USERS] showing lines of overlapping polygons >> >>Hello, >> >>I want to see the lines of 2 or more polygons which do >>overlap. Polygons are in the same layer. Polygons are filled >>with a style. Currently, I see only all the lines of the >>polygon which is obvious on top. I've experienced with the >>TRANSPARANCY attribute, but that did not help. Do you have any ideas? From triagus.prayitno at GMAIL.COM Thu Feb 10 01:27:55 2005 From: triagus.prayitno at GMAIL.COM (Tri Agus Prayitno) Date: Thu, 10 Feb 2005 16:27:55 +0700 Subject: MapServer Application Error In-Reply-To: <005e01c50f50$fd3c3970$03fea8c0@Black2> Message-ID: I experience the problem (500 internal server error) while execute .map file. From margottid at COMUNE.LUGO.RA.IT Thu Feb 10 02:03:17 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 10 Feb 2005 11:03:17 +0100 Subject: PostGIS vs. Shapefile Message-ID: Hi all, I have made some spatial queries (with cgi-bin Mapserver 4.2.3) alternately with data stored in shapefiles and PostGIS (imported from these shapefiles). My query (304 elements on 5 layers) takes 5 seconds (elaboration, and then output on browser) if data are read from shapefiles, and about 50 seconds if data are read from PostGIS. The query is the same: I simply press "reload" on my browser (after manually changed .map file and query template files) to be sure of it... Is it normal? Daniele P.S.: My system is a Linux Red Hat 9. My mapserver is: $ ./mapserv -v MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Postgresql and PostGIS are installed from RPMs (the version is: postgresql-postgis-7.3.4-3.rri1.i386.rpm). -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Feb 10 02:12:54 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 10 Feb 2005 11:12:54 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <002301c50f57$be303950$041410ac@comune.lugo.ra.it> Message-ID: Hi Daniele, No that's not normal. Do you have a spatial index on your table in PostGIS? Do you have an index on the primary key of your table? Best regards, Bart > Hi all, > I have made some spatial queries (with cgi-bin Mapserver 4.2.3) > alternately with data stored in shapefiles and PostGIS (imported from > these shapefiles). > > My query (304 elements on 5 layers) takes 5 seconds (elaboration, and > then output on browser) if data are read from shapefiles, and about 50 > seconds if data are read from PostGIS. > > The query is the same: I simply press "reload" on my browser (after > manually changed .map file and query template files) to be sure of it... > > Is it normal? > > Daniele > > > P.S.: > My system is a Linux Red Hat 9. > > My mapserver is: > $ ./mapserv -v > MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Postgresql and PostGIS are installed from RPMs (the version is: > postgresql-postgis-7.3.4-3.rri1.i386.rpm). > > > From pinted at TISCALI.BE Thu Feb 10 02:18:17 2005 From: pinted at TISCALI.BE (Didrik Pinte) Date: Thu, 10 Feb 2005 11:18:17 +0100 Subject: No subject In-Reply-To: <20050210014226.44226.qmail@web53401.mail.yahoo.com> Message-ID: Le mercredi 09 f?vrier 2005 ? 17:42 -0800, w m a ?crit : > Hi, > Does anbody know where I can read up on mapserver. Im new to it and > would like to learn it. Is there a good tutorial that i can read or > try examples taht have explanations. > thank you > n m Great link : http://terrasip.gis.umn.edu/projects/tutorial/sections.html Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From bartvde at XS4ALL.NL Thu Feb 10 02:37:40 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 10 Feb 2005 11:37:40 +0100 Subject: No subject In-Reply-To: <1108030697.14910.7.camel@geru-itea> Message-ID: Also, you can have a look at the proceedings from the MUM2 conference (Mapserver User Meeting 2): http://www.omsug.ca/osgis2004/proceedings.html And then especially the workshops. Best regards, Bart > Le mercredi 09 f?vrier 2005 ? 17:42 -0800, w m a ?crit : >> Hi, >> Does anbody know where I can read up on mapserver. Im new to it and >> would like to learn it. Is there a good tutorial that i can read or >> try examples taht have explanations. >> thank you >> n m > > Great link : > > http://terrasip.gis.umn.edu/projects/tutorial/sections.html > > Didrik > > > From neelima91 at YAHOO.CO.IN Thu Feb 10 02:53:00 2005 From: neelima91 at YAHOO.CO.IN (neelima) Date: Thu, 10 Feb 2005 02:53:00 -0800 Subject: unable to view raster in the browser Message-ID: Helo everone, I am having a raster image in .tiff format which is associated with .tab file. Below are the layerobj staemnets in my mapfile: LAYER NAME Stadtplan CONNECTIONTYPE OGR CONNECTION "C:\Stadtplan.TAB" TYPE RASTER STATUS ON END i have also generated .tfw file for this tiff image , even then iam not able to view the raster file , can anyone help me out of this problem. Wishing for reply , as soon as possible. Thanking you in advance, Neelima --------------------------------- Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term' -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Feb 10 03:00:18 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 10 Feb 2005 12:00:18 +0100 Subject: unable to view raster in the browser In-Reply-To: <20050210105300.11881.qmail@web8409.mail.in.yahoo.com> Message-ID: Hi, OGR is for vector data only, not for raster data. Have you tried opening your tiff file with gdalinfo (http://fwtools.maptools.org)? Try something like: LAYER NAME Stadtplan DATA "C:\Stadtplan.tif" TYPE RASTER STATUS ON END Also, check the extent of your raster (with gdalinfo) against the extent in your MAP file. Best regards, Bart > Helo everone, > I am having a raster image in .tiff format which is associated with > .tab file. > Below are the layerobj staemnets in my mapfile: > > LAYER > > NAME Stadtplan > > CONNECTIONTYPE OGR > > CONNECTION "C:\Stadtplan.TAB" > > TYPE RASTER > > STATUS ON > > END > > i have also generated .tfw file for this tiff image , even then iam not > able to view the raster file , can anyone help me out of this problem. > > Wishing for reply , as soon as possible. > > Thanking you in advance, > > Neelima > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' From margottid at COMUNE.LUGO.RA.IT Thu Feb 10 04:07:11 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 10 Feb 2005 13:07:11 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <10534.212.238.227.182.1108030374.squirrel@212.238.227.182> Message-ID: Hmm... I'm new to PostGIS, I imported data from shapefile to POstGIS with these commands: # su - postgres $ createdb my_database $ createlang plpgsql my_database $ psql -d my_database -f /usr/share/pgsql/postgis.sql $ psql -d my_database -f /usr/share/pgsql/spatial_ref_sys.sql $ shp2pgsql /path_to_shapefiles/my_shapefile01 my_table01 | psql -d my_database (last command repeated for every shapefile). For every import, an index (I think) is created: NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index 'my_table01_pkey' for table 'my_table01' In my .map file I have: # DATA "the_geom from my_table01" CONNECTION "user=postgres dbname=my_database host=localhost port=5432" CONNECTIONTYPE postgis # Are the above steps correct? How can I check if I have a spatial index on my tables, and an index on the primary key of my tables? Thank you, Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: Thursday, February 10, 2005 11:13 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile Hi Daniele, No that's not normal. Do you have a spatial index on your table in PostGIS? Do you have an index on the primary key of your table? Best regards, Bart > Hi all, > I have made some spatial queries (with cgi-bin Mapserver 4.2.3) > alternately with data stored in shapefiles and PostGIS (imported from > these shapefiles). > > My query (304 elements on 5 layers) takes 5 seconds (elaboration, and > then output on browser) if data are read from shapefiles, and about 50 > seconds if data are read from PostGIS. > > The query is the same: I simply press "reload" on my browser (after > manually changed .map file and query template files) to be sure of > it... > > Is it normal? > > Daniele > > > P.S.: > My system is a Linux Red Hat 9. > > My mapserver is: > $ ./mapserv -v > MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Postgresql and PostGIS are installed from RPMs (the version is: > postgresql-postgis-7.3.4-3.rri1.i386.rpm). > > > From bartvde at XS4ALL.NL Thu Feb 10 04:23:03 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 10 Feb 2005 13:23:03 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <004601c50f69$0d6da780$041410ac@comune.lugo.ra.it> Message-ID: Hi, see: http://postgis.refractions.net/docs/ch04.html#id3125676 In short you can create the spatial index in the following way: CREATE INDEX mytable_geom_idx ON mytable USING GIST (the_geom GIST_GEOMETRY_OPS); followed by: vacuum analyze; Best regards, Bart > Hmm... > > I'm new to PostGIS, I imported data from shapefile to POstGIS with these > commands: > > # su - postgres > $ createdb my_database > $ createlang plpgsql my_database > $ psql -d my_database -f /usr/share/pgsql/postgis.sql > $ psql -d my_database -f /usr/share/pgsql/spatial_ref_sys.sql > $ shp2pgsql /path_to_shapefiles/my_shapefile01 my_table01 | psql -d > my_database > > (last command repeated for every shapefile). > > For every import, an index (I think) is created: > NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index > 'my_table01_pkey' for table 'my_table01' > > In my .map file I have: > # > DATA "the_geom from my_table01" > CONNECTION "user=postgres dbname=my_database host=localhost port=5432" > CONNECTIONTYPE postgis > # > > > Are the above steps correct? > How can I check if I have a spatial index on my tables, and an index on > the primary key of my tables? > > Thank you, > Daniele > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Bart van den Eijnden > Sent: Thursday, February 10, 2005 11:13 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > Hi Daniele, > > No that's not normal. > > Do you have a spatial index on your table in PostGIS? Do you have an > index on the primary key of your table? > > Best regards, > Bart > >> Hi all, >> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) >> alternately with data stored in shapefiles and PostGIS (imported from >> these shapefiles). >> >> My query (304 elements on 5 layers) takes 5 seconds (elaboration, and >> then output on browser) if data are read from shapefiles, and about 50 > >> seconds if data are read from PostGIS. >> >> The query is the same: I simply press "reload" on my browser (after >> manually changed .map file and query template files) to be sure of >> it... >> >> Is it normal? >> >> Daniele >> >> >> P.S.: >> My system is a Linux Red Hat 9. >> >> My mapserver is: >> $ ./mapserv -v >> MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Postgresql and PostGIS are installed from RPMs (the version is: >> postgresql-postgis-7.3.4-3.rri1.i386.rpm). >> >> >> > From margottid at COMUNE.LUGO.RA.IT Thu Feb 10 06:49:03 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 10 Feb 2005 15:49:03 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <12144.212.238.227.182.1108038183.squirrel@212.238.227.182> Message-ID: It didn't work: same long time... I also ran this commands (for every table): SELECT UPDATE_GEOMETRY_STATS('mytable', 'the_geom'); but I didn't get a better performance. Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bart van den Eijnden Sent: Thursday, February 10, 2005 1:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile Hi, see: http://postgis.refractions.net/docs/ch04.html#id3125676 In short you can create the spatial index in the following way: CREATE INDEX mytable_geom_idx ON mytable USING GIST (the_geom GIST_GEOMETRY_OPS); followed by: vacuum analyze; Best regards, Bart > Hmm... > > I'm new to PostGIS, I imported data from shapefile to POstGIS with > these > commands: > > # su - postgres > $ createdb my_database > $ createlang plpgsql my_database > $ psql -d my_database -f /usr/share/pgsql/postgis.sql > $ psql -d my_database -f /usr/share/pgsql/spatial_ref_sys.sql > $ shp2pgsql /path_to_shapefiles/my_shapefile01 my_table01 | psql -d > my_database > > (last command repeated for every shapefile). > > For every import, an index (I think) is created: > NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index > 'my_table01_pkey' for table 'my_table01' > > In my .map file I have: > # > DATA "the_geom from my_table01" > CONNECTION "user=postgres dbname=my_database host=localhost port=5432" > CONNECTIONTYPE postgis # > > > Are the above steps correct? > How can I check if I have a spatial index on my tables, and an index > on the primary key of my tables? > > Thank you, > Daniele > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Bart van den Eijnden > Sent: Thursday, February 10, 2005 11:13 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > Hi Daniele, > > No that's not normal. > > Do you have a spatial index on your table in PostGIS? Do you have an > index on the primary key of your table? > > Best regards, > Bart > >> Hi all, >> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) >> alternately with data stored in shapefiles and PostGIS (imported from >> these shapefiles). >> >> My query (304 elements on 5 layers) takes 5 seconds (elaboration, and >> then output on browser) if data are read from shapefiles, and about >> 50 > >> seconds if data are read from PostGIS. >> >> The query is the same: I simply press "reload" on my browser (after >> manually changed .map file and query template files) to be sure of >> it... >> >> Is it normal? >> >> Daniele >> >> >> P.S.: >> My system is a Linux Red Hat 9. >> >> My mapserver is: >> $ ./mapserv -v >> MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> Postgresql and PostGIS are installed from RPMs (the version is: >> postgresql-postgis-7.3.4-3.rri1.i386.rpm). >> >> >> > From ltiu at ALUMNI.SFU.CA Thu Feb 10 07:32:22 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Thu, 10 Feb 2005 07:32:22 -0800 Subject: PostGIS vs. Shapefile In-Reply-To: <006d01c50f7f$aa432ec0$041410ac@comune.lugo.ra.it> Message-ID: On February 10, 2005 06:49 am, Daniele Margotti wrote: > It didn't work: same long time... > > I also ran this commands (for every table): > > SELECT UPDATE_GEOMETRY_STATS('mytable', 'the_geom'); > > but I didn't get a better performance. > Did you tune Postgresql? Postgresql is like Oracle, the default parameters are always never sufficient for your specific needs. Go to goggle and type Performance Tuning Postgresql. Look into the file located under: /postgresql.conf This file contains the important tuning parameters. -- Lyndon Tiu From ltiu at ALUMNI.SFU.CA Thu Feb 10 07:35:38 2005 From: ltiu at ALUMNI.SFU.CA (Lyndon Tiu) Date: Thu, 10 Feb 2005 07:35:38 -0800 Subject: PostGIS vs. Shapefile In-Reply-To: <002301c50f57$be303950$041410ac@comune.lugo.ra.it> Message-ID: On February 10, 2005 02:03 am, Daniele Margotti wrote: > Hi all, > I have made some spatial queries (with cgi-bin Mapserver 4.2.3) > alternately with data stored in shapefiles and PostGIS (imported from > these shapefiles). > > My query (304 elements on 5 layers) takes 5 seconds (elaboration, and > then output on browser) if data are read from shapefiles, and about 50 > seconds if data are read from PostGIS. > > The query is the same: I simply press "reload" on my browser (after > manually changed .map file and query template files) to be sure of it... > > Is it normal? > Is Postgis in the same computer as mapserver? -- Lyndon Tiu From assefa at DMSOLUTIONS.CA Thu Feb 10 07:34:34 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 10 Feb 2005 10:34:34 -0500 Subject: Highlight a specific shape record In-Reply-To: <6ad5d21f3e6390ad53214ecbda69cd7a@vt.edu> Message-ID: Hi There, I don't think there is way to do it easily right now. I think what we need is to expose a function throgh mapscript that lets you add a shape to the the "query results buffer" (somethig like $layer->addtoquery(shape)). You can then use regular draw query functions to highlight these elements. Do anyone else see the need for this kind of functionality ? I could certainly use it myself for some projects and would be willing to implement it. Later, Abe Gillespie wrote: > Is there anyway to highlight a specific shape if I know its tileindex > and shapeindex? These values are gathered from a prior query. And > then the user chooses a given record to zoom to. I tried just using a > shape query but this is returning puzzling results. Here's some code > that sorta does what I'm talking about: > > $layer->open(); > $s = $layer->getShape($tileindex, $shapeindex); > $layer->queryByShape($s); > $cnt = $layer->getNumResults(); > > $cnt above is somewhere in the number of 150+ records. This is weird > because this is just a simple house layer where no houses are touching. > I also fool around with setting $layer->tolerance = -1 ... does > setting the tolerance at runtime have any effect on the spatial query? > > I would still prefer a more direct method for highlighting the given > shape just by using its tileindex and shapeindex. > > Thanks for any help. > -Abe > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From margottid at COMUNE.LUGO.RA.IT Thu Feb 10 08:01:24 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 10 Feb 2005 17:01:24 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <200502100735.38224.ltiu@alumni.sfu.ca> Message-ID: Yes, Mapserver is in the same computer of PostGIS: a Linux Red Hat 9. Computer is rather fast: I can dump a 33000-row table (14 Mb dumped to file) in about 3 seconds. And also when I connect from a Windows XP (via Lan) using ODBC drivers, data are read very fast. Only Mapserver is slow... Daniele >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Lyndon Tiu >Sent: Thursday, February 10, 2005 4:36 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > >On February 10, 2005 02:03 am, Daniele Margotti wrote: >> Hi all, >> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) >> alternately with data stored in shapefiles and PostGIS (imported from >> these shapefiles). >> >> My query (304 elements on 5 layers) takes 5 seconds (elaboration, and >> then output on browser) if data are read from shapefiles, and about 50 >> seconds if data are read from PostGIS. >> >> The query is the same: I simply press "reload" on my browser (after >> manually changed .map file and query template files) to be sure of >> it... >> >> Is it normal? >> > >Is Postgis in the same computer as mapserver? > >-- >Lyndon Tiu > From margottid at COMUNE.LUGO.RA.IT Thu Feb 10 08:03:57 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Thu, 10 Feb 2005 17:03:57 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <420B7C12.4030209@startnet.cz> Message-ID: This is the result of the command: $ pg_dump -d ra --schema-only -t ra_strade -- -- PostgreSQL database dump -- \connect - postgres SET search_path = public, pg_catalog; -- -- TOC entry 2 (OID 254941) -- Name: ra_strade; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE ra_strade ( gid serial NOT NULL, fnode_ bigint, tnode_ bigint, length numeric, id_arco bigint, funzione integer, tipo integer, classe integer, numero character varying, liv_ini integer, liv_med integer, liv_fine integer, nomes character varying, nomed character varying, type_class character varying, x_coord double precision, y_coord double precision, the_geom geometry, CONSTRAINT "$1" CHECK ((srid(the_geom) = -1)), CONSTRAINT "$2" CHECK (((geometrytype(the_geom) = 'MULTILINESTRING'::text) OR (the_geom IS NULL))) ); -- -- TOC entry 3 (OID 289905) -- Name: ra_strade_geom_idx; Type: INDEX; Schema: public; Owner: postgres -- CREATE INDEX ra_strade_geom_idx ON ra_strade USING gist (the_geom); -- -- TOC entry 4 (OID 288321) -- Name: ra_strade_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres -- ALTER TABLE ONLY ra_strade ADD CONSTRAINT ra_strade_pkey PRIMARY KEY (gid); -----Original Message----- From: Miroslav ?ulc [mailto:miroslav.sulc at startnet.cz] Sent: Thursday, February 10, 2005 4:22 PM To: Daniele Margotti Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile I hope I understood your problem well. I don't know if you already inspected the dump of the table but you can use this command to see it: pg_dump -d --schema-only -t It will also show you what indexes you have on the table and how it is really created. You could also try to use EXPLAIN on the SQL SELECT query if you knew what the query is. It would show you whether and what index is used on the table when the query is processed. Miroslav ?ulc Daniele Margotti wrote: >It didn't work: same long time... > >I also ran this commands (for every table): > >SELECT UPDATE_GEOMETRY_STATS('mytable', 'the_geom'); > >but I didn't get a better performance. > > Daniele > > >-----Original Message----- >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >On Behalf Of Bart van den Eijnden >Sent: Thursday, February 10, 2005 1:23 PM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > >Hi, > >see: > >http://postgis.refractions.net/docs/ch04.html#id3125676 > >In short you can create the spatial index in the following way: > >CREATE INDEX mytable_geom_idx ON mytable USING GIST (the_geom >GIST_GEOMETRY_OPS); > >followed by: > >vacuum analyze; > >Best regards, >Bart > > > >>Hmm... >> >>I'm new to PostGIS, I imported data from shapefile to POstGIS with >>these >>commands: >> >># su - postgres >>$ createdb my_database >>$ createlang plpgsql my_database >>$ psql -d my_database -f /usr/share/pgsql/postgis.sql >>$ psql -d my_database -f /usr/share/pgsql/spatial_ref_sys.sql >>$ shp2pgsql /path_to_shapefiles/my_shapefile01 my_table01 | psql -d >>my_database >> >>(last command repeated for every shapefile). >> >>For every import, an index (I think) is created: >>NOTICE: ALTER TABLE / ADD PRIMARY KEY will create implicit index >>'my_table01_pkey' for table 'my_table01' >> >>In my .map file I have: >># >>DATA "the_geom from my_table01" >>CONNECTION "user=postgres dbname=my_database host=localhost port=5432" >> >> > > > >>CONNECTIONTYPE postgis # >> >> >>Are the above steps correct? >>How can I check if I have a spatial index on my tables, and an index >>on the primary key of my tables? >> >>Thank you, >> Daniele >> >> >> >>-----Original Message----- >>From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>On Behalf Of Bart van den Eijnden >>Sent: Thursday, February 10, 2005 11:13 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile >> >> >>Hi Daniele, >> >>No that's not normal. >> >>Do you have a spatial index on your table in PostGIS? Do you have an >>index on the primary key of your table? >> >>Best regards, >>Bart >> >> >> >>>Hi all, >>>I have made some spatial queries (with cgi-bin Mapserver 4.2.3) >>>alternately with data stored in shapefiles and PostGIS (imported from >>> >>> > > > >>>these shapefiles). >>> >>>My query (304 elements on 5 layers) takes 5 seconds (elaboration, and >>> >>> > > > >>>then output on browser) if data are read from shapefiles, and about >>>50 >>> >>> >>>seconds if data are read from PostGIS. >>> >>>The query is the same: I simply press "reload" on my browser (after >>>manually changed .map file and query template files) to be sure of >>>it... >>> >>>Is it normal? >>> >>> Daniele >>> >>> >>>P.S.: >>>My system is a Linux Red Hat 9. >>> >>>My mapserver is: >>>$ ./mapserv -v >>>MapServer version 4.2.3 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >>> >>> > > > >>>OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >>>SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS >>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>> >>>Postgresql and PostGIS are installed from RPMs (the version is: >>>postgresql-postgis-7.3.4-3.rri1.i386.rpm). >>> >>> >>> >>> >>> From John.C.Cartwright at NOAA.GOV Thu Feb 10 08:47:12 2005 From: John.C.Cartwright at NOAA.GOV (John C Cartwright) Date: Thu, 10 Feb 2005 09:47:12 -0700 Subject: mapserv segfaults In-Reply-To: Message-ID: Hi Sean, thanks for the suggestion. here's the output: (gdb) run Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug [Thread debugging using libthread_db enabled] [New Thread -1218604192 (LWP 19250)] [Thu Feb 10 09:40:19 2005].204455 msWMSLoadGetMapParams(): enabling non-square pixels.[Thu Feb 10 09:40:19 2005].208427 msDrawMap(): kicking into non-square pixel preserving mode. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218604192 (LWP 19250)] 0x0095b0d1 in realloc () from /lib/tls/libc.so.6 Here's the query string: map=/extra/contrib/apache/htdocs/mapserver/wms_wfs/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=relief,cities_poly,counties,states,roads and this is a RedHat ES 3 system (kernel 2.4.21-27.0.1.ELsmp) Where should I go from here? Thanks again! -- john Sean Gillies wrote: > John, add a > > DEBUG ON > > to the Map-level block in your map config file. This will write > messages to stderr, including names of layers being accessed. This > should let you know which layer (if any) is associated with the segfault. > > Now that you've recompiled, run mapserv under gdb exactly as Steve > Woodbridge described. This time gdb should give a more detailed > description of the location of the memory error including all the > MapServer functions that have been called. Give us a look at that and > we can try to figure out what's going on. > > cheers, > Sean > > On Feb 9, 2005, at 5:28 PM, John C Cartwright wrote: > >> Thanks, Sean. I recompiled with debugging, can you provide me a little >> guidance on what would be helpful to get out of gdb? >> >> ... >> Thanks again for your patience and help! >> >> -- john >> > >> Sean Gillies wrote: >> >>> John, >>> Looks to me like you need to re-config mapserver with --enable-debug so >>> that gdb can tell us more about the calling stack. >>> cheers, >>> Sean >>> On Feb 9, 2005, at 5:08 PM, John C Cartwright wrote: >>> >>>> Hi Steve, >>>> >>>> thanks for the prompt response and the suggestion. >>>> >>>> gdb is just telling me the error occurred in memory allocation, but >>>> this >>>> is not helping me much: >>>> >>>> (gdb) run >>>> Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 >>>> [Thread debugging using libthread_db enabled] >>>> [New Thread -1218617216 (LWP 8708)] >>>> >>>> Program received signal SIGSEGV, Segmentation fault. >>>> [Switching to Thread -1218617216 (LWP 8708)] >>>> 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 >>>> >>>> I was hoping to tell what request parameter or map configuration >>>> element >>>> might be causing trouble. Can you think of any way for me to pursue >>>> this >>>> at a higher level? >>>> >>>> Thanks! >>>> >>>> -- john >>>> >>>> >>>> >>>> Stephen Woodbridge wrote: >>>> >>>>> John, >>>>> >>>>> You can run mapserver cgi at the command line, but you need to set up >>>>> the environment variables first, like >>>>> >>>>> export REQUEST_METHOD=GET >>>>> export QUERY_STRING="...." >>>>> gdb mapserv >>>>> run >>>>> >>>>> set your QUERY_STRING appropriately >>>>> >>>>> -Steve W. >>>> >>>> >>>> >> > From sgillies at FRII.COM Thu Feb 10 09:32:08 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 10 Feb 2005 10:32:08 -0700 Subject: mapserv segfaults In-Reply-To: Message-ID: Type "where" at the gdb prompt after the segfault and post the result for us. Sorry, I should have mentioned this before. As you are not specifying height/width and bbox in your query string, the default values specified in your map config file will be very important. Can you attach your map file as well? cheers, Sean On Feb 10, 2005, at 9:47 AM, John C Cartwright wrote: > Hi Sean, > > thanks for the suggestion. here's the output: > > (gdb) run > Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug > [Thread debugging using libthread_db enabled] > [New Thread -1218604192 (LWP 19250)] > [Thu Feb 10 09:40:19 2005].204455 msWMSLoadGetMapParams(): enabling > non-square pixels.[Thu Feb 10 09:40:19 2005].208427 msDrawMap(): > kicking > into non-square pixel preserving mode. > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1218604192 (LWP 19250)] > 0x0095b0d1 in realloc () from /lib/tls/libc.so.6 > > Here's the query string: > > map=/extra/contrib/apache/htdocs/mapserver/wms_wfs/ > wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=relief,cities_p > oly,counties,states,roads > > and this is a RedHat ES 3 system (kernel 2.4.21-27.0.1.ELsmp) > > Where should I go from here? > > Thanks again! > > -- john > > > Sean Gillies wrote: >> John, add a >> >> DEBUG ON >> >> to the Map-level block in your map config file. This will write >> messages to stderr, including names of layers being accessed. This >> should let you know which layer (if any) is associated with the >> segfault. >> >> Now that you've recompiled, run mapserv under gdb exactly as Steve >> Woodbridge described. This time gdb should give a more detailed >> description of the location of the memory error including all the >> MapServer functions that have been called. Give us a look at that and >> we can try to figure out what's going on. >> >> cheers, >> Sean >> >> On Feb 9, 2005, at 5:28 PM, John C Cartwright wrote: >> >>> Thanks, Sean. I recompiled with debugging, can you provide me a >>> little >>> guidance on what would be helpful to get out of gdb? >>> >>> ... >>> Thanks again for your patience and help! >>> >>> -- john >>> >> >>> Sean Gillies wrote: >>> >>>> John, >>>> Looks to me like you need to re-config mapserver with >>>> --enable-debug so >>>> that gdb can tell us more about the calling stack. >>>> cheers, >>>> Sean >>>> On Feb 9, 2005, at 5:08 PM, John C Cartwright wrote: >>>> >>>>> Hi Steve, >>>>> >>>>> thanks for the prompt response and the suggestion. >>>>> >>>>> gdb is just telling me the error occurred in memory allocation, but >>>>> this >>>>> is not helping me much: >>>>> >>>>> (gdb) run >>>>> Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 >>>>> [Thread debugging using libthread_db enabled] >>>>> [New Thread -1218617216 (LWP 8708)] >>>>> >>>>> Program received signal SIGSEGV, Segmentation fault. >>>>> [Switching to Thread -1218617216 (LWP 8708)] >>>>> 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 >>>>> >>>>> I was hoping to tell what request parameter or map configuration >>>>> element >>>>> might be causing trouble. Can you think of any way for me to pursue >>>>> this >>>>> at a higher level? >>>>> >>>>> Thanks! >>>>> >>>>> -- john >>>>> >>>>> >>>>> >>>>> Stephen Woodbridge wrote: >>>>> >>>>>> John, >>>>>> >>>>>> You can run mapserver cgi at the command line, but you need to >>>>>> set up >>>>>> the environment variables first, like >>>>>> >>>>>> export REQUEST_METHOD=GET >>>>>> export QUERY_STRING="...." >>>>>> gdb mapserv >>>>>> run >>>>>> >>>>>> set your QUERY_STRING appropriately >>>>>> >>>>>> -Steve W. >>>>> >>>>> >>>>> >>> >> > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From fsimon at UNIVALI.BR Thu Feb 10 07:45:01 2005 From: fsimon at UNIVALI.BR (Fernando S.) Date: Thu, 10 Feb 2005 15:45:01 +0000 Subject: mapserv segfaults In-Reply-To: <420B9010.8090308@noaa.gov> Message-ID: Hi, Are you trying with an Oracle layer? If yes, can be an maporaclespatial.c problem. Can you try without Oracle Spatial layers? Thanks. ------------------------------------------------------------------------ Fernando Simon Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada - Brazil http://g10.cttmar.univali.br - UNIVALI/CTTMAR ------------------------------------------------------------------------ John C Cartwright wrote: > Hi Sean, > > thanks for the suggestion. here's the output: > > (gdb) run > Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug > [Thread debugging using libthread_db enabled] > [New Thread -1218604192 (LWP 19250)] > [Thu Feb 10 09:40:19 2005].204455 msWMSLoadGetMapParams(): enabling > non-square pixels.[Thu Feb 10 09:40:19 2005].208427 msDrawMap(): kicking > into non-square pixel preserving mode. > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1218604192 (LWP 19250)] > 0x0095b0d1 in realloc () from /lib/tls/libc.so.6 > > Here's the query string: > > map=/extra/contrib/apache/htdocs/mapserver/wms_wfs/wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=relief,cities_poly,counties,states,roads > > > and this is a RedHat ES 3 system (kernel 2.4.21-27.0.1.ELsmp) > > Where should I go from here? > > Thanks again! > > -- john > > > Sean Gillies wrote: > >> John, add a >> >> DEBUG ON >> >> to the Map-level block in your map config file. This will write >> messages to stderr, including names of layers being accessed. This >> should let you know which layer (if any) is associated with the >> segfault. >> >> Now that you've recompiled, run mapserv under gdb exactly as Steve >> Woodbridge described. This time gdb should give a more detailed >> description of the location of the memory error including all the >> MapServer functions that have been called. Give us a look at that and >> we can try to figure out what's going on. >> >> cheers, >> Sean >> >> On Feb 9, 2005, at 5:28 PM, John C Cartwright wrote: >> >>> Thanks, Sean. I recompiled with debugging, can you provide me a little >>> guidance on what would be helpful to get out of gdb? >>> >>> ... >>> Thanks again for your patience and help! >>> >>> -- john >>> >> >>> Sean Gillies wrote: >>> >>>> John, >>>> Looks to me like you need to re-config mapserver with >>>> --enable-debug so >>>> that gdb can tell us more about the calling stack. >>>> cheers, >>>> Sean >>>> On Feb 9, 2005, at 5:08 PM, John C Cartwright wrote: >>>> >>>>> Hi Steve, >>>>> >>>>> thanks for the prompt response and the suggestion. >>>>> >>>>> gdb is just telling me the error occurred in memory allocation, but >>>>> this >>>>> is not helping me much: >>>>> >>>>> (gdb) run >>>>> Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 >>>>> [Thread debugging using libthread_db enabled] >>>>> [New Thread -1218617216 (LWP 8708)] >>>>> >>>>> Program received signal SIGSEGV, Segmentation fault. >>>>> [Switching to Thread -1218617216 (LWP 8708)] >>>>> 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 >>>>> >>>>> I was hoping to tell what request parameter or map configuration >>>>> element >>>>> might be causing trouble. Can you think of any way for me to pursue >>>>> this >>>>> at a higher level? >>>>> >>>>> Thanks! >>>>> >>>>> -- john >>>>> >>>>> >>>>> >>>>> Stephen Woodbridge wrote: >>>>> >>>>>> John, >>>>>> >>>>>> You can run mapserver cgi at the command line, but you need to >>>>>> set up >>>>>> the environment variables first, like >>>>>> >>>>>> export REQUEST_METHOD=GET >>>>>> export QUERY_STRING="...." >>>>>> gdb mapserv >>>>>> run >>>>>> >>>>>> set your QUERY_STRING appropriately >>>>>> >>>>>> -Steve W. >>>>> >>>>> >>>>> >>>>> >>> >> > From jussi.rasinmaki at HELSINKI.FI Thu Feb 10 09:43:26 2005 From: jussi.rasinmaki at HELSINKI.FI (=?iso-8859-1?Q?Jussi_Rasinm=E4ki?=) Date: Thu, 10 Feb 2005 19:43:26 +0200 Subject: PHP MapScript installation problem Message-ID: Hi, I've tried to install Mapserver with PHP Mapscript on Whitebox Linux 3, but have run into difficulties with PHP and php_mapscript.so. dl("php_mapscript.so") returns the following warning: Warning: dl(): Unable to load dynamic library '/usr/local/php/extensions/php_mapscript.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in /var/www/html/info.php on line 7 PHP 4.3.10 is installed using the following configuration: ./configure --enable-shared --with-jpeg-dir=/usr --with-png-dir=/usr --with- zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi-redire ct --with-config-file-path=/usr/local/php/ --prefix=/usr/local/php and the php.ini in /user/local/php has the following line: extension_dir = "/usr/local/php/extensions/" Mapserver is configured as: ./configure --without-tiff --without-eppl --with-threads --with-proj --with- gdal --with-oraclespatial=/opt/app/oracle/product/10.1.0/Db_1 --with-php=/op t/app/mapserver/mapserver_libs/php-4.3.10 --with-gd=/usr/local --with-freet ype=/usr/bin --with-wmsclient and the built php_mapscript.so is copied to /usr/local/php/extensions However, php-config --extension-dir returns /usr/local/php/lib/php/extensions/no-debug-non-zts-20020429 which is a non-existing directory. What went wrong? Thanks, Jussi Rasinm?ki From John.C.Cartwright at NOAA.GOV Thu Feb 10 10:04:26 2005 From: John.C.Cartwright at NOAA.GOV (John C Cartwright) Date: Thu, 10 Feb 2005 11:04:26 -0700 Subject: mapserv segfaults In-Reply-To: Message-ID: sorry - betraying my ignorance of gdb! Here it is: ========================================================================= (gdb) run Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug [Thread debugging using libthread_db enabled] [New Thread -1218604192 (LWP 19920)] [Thu Feb 10 10:56:18 2005].796695 msWMSLoadGetMapParams(): enabling non-square pixels.[Thu Feb 10 10:56:18 2005].799902 msDrawMap(): kicking into non-square pixel preserving mode. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218604192 (LWP 19920)] 0x006a10d1 in realloc () from /lib/tls/libc.so.6 (gdb) where #0 0x006a10d1 in realloc () from /lib/tls/libc.so.6 #1 0x007bb3dd in _TIFFrealloc () from /extra/contrib/esri/sdeexe90/lib/libtiff.so #2 0x00ffca3f in TIFFMergeFieldInfo () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #3 0x0102fd2c in _XTIFFLocalDefaultDirectory () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #4 0x0102fd51 in _XTIFFDefaultDirectory () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #5 0x007a24ae in TIFFDefaultDirectory () from /extra/contrib/esri/sdeexe90/lib/libtiff.so #6 0x007a3098 in TIFFReadDirectory () from /extra/contrib/esri/sdeexe90/lib/libtiff.so #7 0x007b718c in TIFFClientOpen () from /extra/contrib/esri/sdeexe90/lib/libtiff.so #8 0x007bb2dc in TIFFFdOpen () from /extra/contrib/esri/sdeexe90/lib/libtiff.so #9 0x007bb36b in TIFFOpen () from /extra/contrib/esri/sdeexe90/lib/libtiff.so #10 0x0102fddc in XTIFFOpen () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #11 0x00f7fd04 in GTiffDataset::Open () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #12 0x010361c9 in GDALOpen () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #13 0x08079ff3 in msDrawRasterLayerLow (map=0xb75a3008, layer=0x93a32e8, image=0x9512f48) at mapraster.c:1450 #14 0x0808ce85 in msDrawRasterLayer (map=0xb75a3008, layer=0x763538, image=0x0) at mapdraw.c:1145 #15 0x0808bf3b in msDrawLayer (map=0xb75a3008, layer=0x93a32e8, image=0x9512f48) at mapdraw.c:781 #16 0x0808b62f in msDrawMap (map=0xb75a3008) at mapdraw.c:446 #17 0x080ce044 in msWMSGetMap (map=0xb75a3008, nVersion=65793, names=0x938b578, values=0x93951c0, numentries=7) at mapwms.c:2156 #18 0x080cfab2 in msWMSDispatch (map=0xb75a3008, req=0x938b558) at mapwms.c:2920 #19 0x080a13ce in msOWSDispatch (map=0xb75a3008, request=0x938b558) at mapows.c:245 #20 0x0805234d in main (argc=0, argv=0xbfffb644) at mapserv.c:1165 (gdb) ========================================================================= Looks like a problem with TIFF support, but here's the output from gdal-info: gdal-config --formats gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 bsb gif jpeg png netcdf zlib The mapfile (supplied by Perry Nacionales) is attached. Thanks! -- john Sean Gillies wrote: > Type "where" at the gdb prompt after the segfault and post the result > for us. Sorry, I should have mentioned this before. > > As you are not specifying height/width and bbox in your query string, > the default values specified in your map config file will be very > important. Can you attach your map file as well? > > cheers, > Sean > > On Feb 10, 2005, at 9:47 AM, John C Cartwright wrote: > >> Hi Sean, >> >> thanks for the suggestion. here's the output: >> >> (gdb) run >> Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug >> [Thread debugging using libthread_db enabled] >> [New Thread -1218604192 (LWP 19250)] >> [Thu Feb 10 09:40:19 2005].204455 msWMSLoadGetMapParams(): enabling >> non-square pixels.[Thu Feb 10 09:40:19 2005].208427 msDrawMap(): kicking >> into non-square pixel preserving mode. >> Program received signal SIGSEGV, Segmentation fault. >> [Switching to Thread -1218604192 (LWP 19250)] >> 0x0095b0d1 in realloc () from /lib/tls/libc.so.6 >> >> Here's the query string: >> >> map=/extra/contrib/apache/htdocs/mapserver/wms_wfs/ >> wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=relief,cities_p >> oly,counties,states,roads >> >> and this is a RedHat ES 3 system (kernel 2.4.21-27.0.1.ELsmp) >> >> Where should I go from here? >> >> Thanks again! >> >> -- john >> >> >> Sean Gillies wrote: >> >>> John, add a >>> >>> DEBUG ON >>> >>> to the Map-level block in your map config file. This will write >>> messages to stderr, including names of layers being accessed. This >>> should let you know which layer (if any) is associated with the >>> segfault. >>> >>> Now that you've recompiled, run mapserv under gdb exactly as Steve >>> Woodbridge described. This time gdb should give a more detailed >>> description of the location of the memory error including all the >>> MapServer functions that have been called. Give us a look at that and >>> we can try to figure out what's going on. >>> >>> cheers, >>> Sean >>> >>> On Feb 9, 2005, at 5:28 PM, John C Cartwright wrote: >>> >>>> Thanks, Sean. I recompiled with debugging, can you provide me a little >>>> guidance on what would be helpful to get out of gdb? >>>> >>>> ... >>>> Thanks again for your patience and help! >>>> >>>> -- john >>>> >>> >>>> Sean Gillies wrote: >>>> >>>>> John, >>>>> Looks to me like you need to re-config mapserver with >>>>> --enable-debug so >>>>> that gdb can tell us more about the calling stack. >>>>> cheers, >>>>> Sean >>>>> On Feb 9, 2005, at 5:08 PM, John C Cartwright wrote: >>>>> >>>>>> Hi Steve, >>>>>> >>>>>> thanks for the prompt response and the suggestion. >>>>>> >>>>>> gdb is just telling me the error occurred in memory allocation, but >>>>>> this >>>>>> is not helping me much: >>>>>> >>>>>> (gdb) run >>>>>> Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 >>>>>> [Thread debugging using libthread_db enabled] >>>>>> [New Thread -1218617216 (LWP 8708)] >>>>>> >>>>>> Program received signal SIGSEGV, Segmentation fault. >>>>>> [Switching to Thread -1218617216 (LWP 8708)] >>>>>> 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 >>>>>> >>>>>> I was hoping to tell what request parameter or map configuration >>>>>> element >>>>>> might be causing trouble. Can you think of any way for me to pursue >>>>>> this >>>>>> at a higher level? >>>>>> >>>>>> Thanks! >>>>>> >>>>>> -- john >>>>>> >>>>>> >>>>>> >>>>>> Stephen Woodbridge wrote: >>>>>> >>>>>>> John, >>>>>>> >>>>>>> You can run mapserver cgi at the command line, but you need to >>>>>>> set up >>>>>>> the environment variables first, like >>>>>>> >>>>>>> export REQUEST_METHOD=GET >>>>>>> export QUERY_STRING="...." >>>>>>> gdb mapserv >>>>>>> run >>>>>>> >>>>>>> set your QUERY_STRING appropriately >>>>>>> >>>>>>> -Steve W. >>>>>> >>>>>> >>>>>> >>>>>> >>>> >>> >> >> > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wms.map URL: From John.C.Cartwright at NOAA.GOV Thu Feb 10 10:04:40 2005 From: John.C.Cartwright at NOAA.GOV (John C Cartwright) Date: Thu, 10 Feb 2005 11:04:40 -0700 Subject: mapserv segfaults In-Reply-To: Message-ID: Hi Steve, No, no REQUIRES, or LABELREQUIRES. Mapfile listed below. It's a example provided by Perry Nacionales (nacional at cbs.umn.edu), so I can't say that I'm familiar with every parameter used. I would have expected that the data are at least being found given that the GetCapabilities response is normal. Thanks for your help! -- john Steve Lime wrote: > Post the mapfile! That might really help. Are you using the REQUIRES or > LABELREQUIRES parameters? There's been a report of segfaults with those > (and I'm looking for examples so to fix). > > Steve -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: wms.map URL: From John.C.Cartwright at NOAA.GOV Thu Feb 10 10:09:46 2005 From: John.C.Cartwright at NOAA.GOV (John C Cartwright) Date: Thu, 10 Feb 2005 11:09:46 -0700 Subject: mapserv segfaults In-Reply-To: <420B817D.7020401@univali.br> Message-ID: Hi Fernando, thanks for your reply. No, although Oracle support is compiled in, there are no oracle layers in this mapfile. -- john Fernando S. wrote: > Hi, > Are you trying with an Oracle layer? If yes, can be an > maporaclespatial.c problem. Can you try without Oracle Spatial layers? > Thanks. From siki at AGT.BME.HU Thu Feb 10 12:21:17 2005 From: siki at AGT.BME.HU (Siki Zoltan) Date: Thu, 10 Feb 2005 19:21:17 -0100 Subject: unable to view raster in the browser {Scanned} {Scanned} In-Reply-To: <20050210105300.11881.qmail@web8409.mail.in.yahoo.com> Message-ID: Hi, OGR support supports only vector data. For raster layers you have to create a tfw file. And you have to set up extent in the map file. Bye Zotan On Thu, 10 Feb 2005, neelima wrote: > Helo everone, > I am having a raster image in .tiff format which is associated with > .tab file. > Below are the layerobj staemnets in my mapfile: > > LAYER > > NAME Stadtplan > > CONNECTIONTYPE OGR > > CONNECTION "C:\Stadtplan.TAB" > > TYPE RASTER > > STATUS ON > > END > > i have also generated .tfw file for this tiff image , even then iam not > able to view the raster file , can anyone help me out of this problem. > > Wishing for reply , as soon as possible. > > Thanking you in advance, > > Neelima > > > > > --------------------------------- > Do you Yahoo!? > Yahoo! Search presents - Jib Jab's 'Second Term' From sgillies at FRII.COM Thu Feb 10 10:14:07 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 10 Feb 2005 11:14:07 -0700 Subject: mapserv segfaults In-Reply-To: Message-ID: John, Did you link GDAL against the esri/sdeexe90/lib/libtiff.so? Or is the dynamic linker picking it up by accident? As far as I know, for best results you need to use GDAL's internal libtiff. At any rate, looks like this is not a MapServer bug at all, but a bad match between GDAL and tibtiff. Sean On Feb 10, 2005, at 11:04 AM, John C Cartwright wrote: > This is a multi-part message in MIME format. > --------------090507030402050401050501 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > > sorry - betraying my ignorance of gdb! Here it is: > > ======================================================================= > === > (gdb) run > Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug > [Thread debugging using libthread_db enabled] > [New Thread -1218604192 (LWP 19920)] > [Thu Feb 10 10:56:18 2005].796695 msWMSLoadGetMapParams(): enabling > non-square pixels.[Thu Feb 10 10:56:18 2005].799902 msDrawMap(): > kicking > into non-square pixel preserving mode. > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread -1218604192 (LWP 19920)] > 0x006a10d1 in realloc () from /lib/tls/libc.so.6 > (gdb) where > #0 0x006a10d1 in realloc () from /lib/tls/libc.so.6 > #1 0x007bb3dd in _TIFFrealloc () from > /extra/contrib/esri/sdeexe90/lib/libtiff.so > #2 0x00ffca3f in TIFFMergeFieldInfo () from > /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 > #3 0x0102fd2c in _XTIFFLocalDefaultDirectory () > from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 > #4 0x0102fd51 in _XTIFFDefaultDirectory () from > /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 > #5 0x007a24ae in TIFFDefaultDirectory () from > /extra/contrib/esri/sdeexe90/lib/libtiff.so > #6 0x007a3098 in TIFFReadDirectory () from > /extra/contrib/esri/sdeexe90/lib/libtiff.so > #7 0x007b718c in TIFFClientOpen () from > /extra/contrib/esri/sdeexe90/lib/libtiff.so > #8 0x007bb2dc in TIFFFdOpen () from > /extra/contrib/esri/sdeexe90/lib/libtiff.so > #9 0x007bb36b in TIFFOpen () from > /extra/contrib/esri/sdeexe90/lib/libtiff.so > #10 0x0102fddc in XTIFFOpen () from > /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 > #11 0x00f7fd04 in GTiffDataset::Open () from > /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 > #12 0x010361c9 in GDALOpen () from > /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 > #13 0x08079ff3 in msDrawRasterLayerLow (map=0xb75a3008, > layer=0x93a32e8, > image=0x9512f48) > at mapraster.c:1450 > #14 0x0808ce85 in msDrawRasterLayer (map=0xb75a3008, layer=0x763538, > image=0x0) > at mapdraw.c:1145 > #15 0x0808bf3b in msDrawLayer (map=0xb75a3008, layer=0x93a32e8, > image=0x9512f48) > at mapdraw.c:781 > #16 0x0808b62f in msDrawMap (map=0xb75a3008) at mapdraw.c:446 > #17 0x080ce044 in msWMSGetMap (map=0xb75a3008, nVersion=65793, > names=0x938b578, > values=0x93951c0, numentries=7) at mapwms.c:2156 > #18 0x080cfab2 in msWMSDispatch (map=0xb75a3008, req=0x938b558) at > mapwms.c:2920 > #19 0x080a13ce in msOWSDispatch (map=0xb75a3008, request=0x938b558) at > mapows.c:245 > #20 0x0805234d in main (argc=0, argv=0xbfffb644) at mapserv.c:1165 > (gdb) > > ======================================================================= > === > Looks like a problem with TIFF support, but here's the output from > gdal-info: > > gdal-config --formats > gxf gtiff hfa aigrid aaigrid ceos ceos2 iso8211 xpm sdts raw dted mem > jdem envisat elas fit vrt usgsdem l1b nitf bmp pcidsk airsar rs2 bsb > gif > jpeg png netcdf zlib > > > The mapfile (supplied by Perry Nacionales) is attached. > > Thanks! > > -- john > > > > Sean Gillies wrote: >> Type "where" at the gdb prompt after the segfault and post the result >> for us. Sorry, I should have mentioned this before. >> >> As you are not specifying height/width and bbox in your query string, >> the default values specified in your map config file will be very >> important. Can you attach your map file as well? >> >> cheers, >> Sean >> >> On Feb 10, 2005, at 9:47 AM, John C Cartwright wrote: >> >>> Hi Sean, >>> >>> thanks for the suggestion. here's the output: >>> >>> (gdb) run >>> Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug >>> [Thread debugging using libthread_db enabled] >>> [New Thread -1218604192 (LWP 19250)] >>> [Thu Feb 10 09:40:19 2005].204455 msWMSLoadGetMapParams(): enabling >>> non-square pixels.[Thu Feb 10 09:40:19 2005].208427 msDrawMap(): >>> kicking >>> into non-square pixel preserving mode. >>> Program received signal SIGSEGV, Segmentation fault. >>> [Switching to Thread -1218604192 (LWP 19250)] >>> 0x0095b0d1 in realloc () from /lib/tls/libc.so.6 >>> >>> Here's the query string: >>> >>> map=/extra/contrib/apache/htdocs/mapserver/wms_wfs/ >>> wms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&LAYERS=relief,cities >>> _p >>> oly,counties,states,roads >>> >>> and this is a RedHat ES 3 system (kernel 2.4.21-27.0.1.ELsmp) >>> >>> Where should I go from here? >>> >>> Thanks again! >>> >>> -- john >>> >>> >>> Sean Gillies wrote: >>> >>>> John, add a >>>> >>>> DEBUG ON >>>> >>>> to the Map-level block in your map config file. This will write >>>> messages to stderr, including names of layers being accessed. This >>>> should let you know which layer (if any) is associated with the >>>> segfault. >>>> >>>> Now that you've recompiled, run mapserv under gdb exactly as Steve >>>> Woodbridge described. This time gdb should give a more detailed >>>> description of the location of the memory error including all the >>>> MapServer functions that have been called. Give us a look at that >>>> and >>>> we can try to figure out what's going on. >>>> >>>> cheers, >>>> Sean >>>> >>>> On Feb 9, 2005, at 5:28 PM, John C Cartwright wrote: >>>> >>>>> Thanks, Sean. I recompiled with debugging, can you provide me a >>>>> little >>>>> guidance on what would be helpful to get out of gdb? >>>>> >>>>> ... >>>>> Thanks again for your patience and help! >>>>> >>>>> -- john >>>>> >>>> >>>>> Sean Gillies wrote: >>>>> >>>>>> John, >>>>>> Looks to me like you need to re-config mapserver with >>>>>> --enable-debug so >>>>>> that gdb can tell us more about the calling stack. >>>>>> cheers, >>>>>> Sean >>>>>> On Feb 9, 2005, at 5:08 PM, John C Cartwright wrote: >>>>>> >>>>>>> Hi Steve, >>>>>>> >>>>>>> thanks for the prompt response and the suggestion. >>>>>>> >>>>>>> gdb is just telling me the error occurred in memory allocation, >>>>>>> but >>>>>>> this >>>>>>> is not helping me much: >>>>>>> >>>>>>> (gdb) run >>>>>>> Starting program: /extra/contrib/apache/cgi-bin/mapserver-4.4.1 >>>>>>> [Thread debugging using libthread_db enabled] >>>>>>> [New Thread -1218617216 (LWP 8708)] >>>>>>> >>>>>>> Program received signal SIGSEGV, Segmentation fault. >>>>>>> [Switching to Thread -1218617216 (LWP 8708)] >>>>>>> 0x039ba0d1 in realloc () from /lib/tls/libc.so.6 >>>>>>> >>>>>>> I was hoping to tell what request parameter or map configuration >>>>>>> element >>>>>>> might be causing trouble. Can you think of any way for me to >>>>>>> pursue >>>>>>> this >>>>>>> at a higher level? >>>>>>> >>>>>>> Thanks! >>>>>>> >>>>>>> -- john >>>>>>> >>>>>>> >>>>>>> >>>>>>> Stephen Woodbridge wrote: >>>>>>> >>>>>>>> John, >>>>>>>> >>>>>>>> You can run mapserver cgi at the command line, but you need to >>>>>>>> set up >>>>>>>> the environment variables first, like >>>>>>>> >>>>>>>> export REQUEST_METHOD=GET >>>>>>>> export QUERY_STRING="...." >>>>>>>> gdb mapserv >>>>>>>> run >>>>>>>> >>>>>>>> set your QUERY_STRING appropriately >>>>>>>> >>>>>>>> -Steve W. >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>> >>>> >>> >>> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies >> > > > --------------090507030402050401050501 > Content-Type: text/plain; > name="wms.map" > Content-Transfer-Encoding: 7bit > Content-Disposition: inline; > filename="wms.map" > > # > # Start of map file > # > MAP > DEBUG ON > NAME ms4wms > STATUS ON > EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 > SIZE 600 400 > UNITS METERS > SHAPEPATH "data" > IMAGECOLOR 255 255 255 > SYMBOLSET "symbols/symbols35.sym" > FONTSET "fonts/fonts.list" > #TEMPLATEPATTERN "example" > > IMAGETYPE png24 > > OUTPUTFORMAT > NAME png > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE PC256 > EXTENSION "png" > END > OUTPUTFORMAT > NAME png24 > DRIVER "GD/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > OUTPUTFORMAT > NAME jpeg > DRIVER "GD/JPEG" > MIMETYPE "image/jpeg" > FORMATOPTION "QUALITY=85" > IMAGEMODE RGB > EXTENSION "jpg" > END > > # > # Projection definition, consult the PROJ.4 documentation for > parameter discussion > # > PROJECTION > "init=epsg:2163" > END > > # > # Start of web interface definition (including WMS enabling metadata) > # > WEB > HEADER 'templates/header.html' > TEMPLATE wfs_demo.html > FOOTER 'templates/footer.html' > MINSCALE 1000 > MAXSCALE 15000000 > IMAGEPATH '/extra/contrib/apache/htdocs/output/' > IMAGEURL '/output/' > METADATA > "wms_title" "UMN MapServer Upper Great Lakes Application" > "wms_abstract" "This is a UMN MapServer application for the > upper great lakes states of Michigan, Minnesota, and Wisconsin." > "wms_accessconstraints" "none" > "wms_onlineresource" "http://localhost/cgi-bin/wms_demo.cgi?" > "wms_srs" "EPSG:2163 EPSG:4326 EPSG:26915 EPSG:26916" > END > END > > # > # Start of reference map > # > REFERENCE > IMAGE 'images/ugl_ref1.png' > SIZE 155 105 > EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 > STATUS ON > MINBOXSIZE 10 > MAXBOXSIZE 150 > COLOR -1 -1 -1 > OUTLINECOLOR 128 0 0 > MARKERSIZE 8 > MARKER 'star' > END > > # > # Start of legend > # > LEGEND > KEYSIZE 12 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS ON > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE TINY > END > STYLE 1 > SIZE 100 2 > COLOR 0 0 0 > UNITS MILES > INTERVALS 2 > TRANSPARENT FALSE > STATUS ON #EMBED > #POSITION LR > END > > # > # Start of LAYER DEFINITIONS > --------------------------------------------- > LAYER # MODIS raster layer begins here > NAME relief > DATA 'raster/shdrlfi020g_ugl.tif' > STATUS OFF > TYPE RASTER > OFFSITE 169 209 254 > DUMP TRUE > > METADATA > "wms_title" "UGL Shaded Relief" > "wms_abstract" "Shaded Relief of Michigan, Minnesota, and > Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME 'Shaded Relief' > KEYIMAGE 'graphics/relief_keyimage.png' > END > END # MODIS raster layer ends here > > LAYER # MODIS raster layer begins here > NAME modis > DATA 'raster/mod09a12003161_ugl_ll_idxa.tif' > STATUS OFF > TYPE RASTER > OFFSITE 70 74 66 > > METADATA > "wms_title" "UGL 500-meter MODIS 8-day reflectance imagery" > "wms_abstract" "500-meter MODIS 8-day reflectance imagery for > Michigan, Minnesota, and Wisconsin. Mosaiced and clipped from MOD09A1 > product, scenes h11v04 and h12v04. See > http://edcdaac.usgs.gov/modis/mod09.html for more information." > END > > PROJECTION > "init=epsg:4326" > END > > CLASS > NAME 'MODIS MOD09 Product' > KEYIMAGE 'graphics/modis_keyimage.png' > END > END # MODIS raster layer ends here > > LAYER # LandSat WMS map from JPL > NAME landsat > TYPE RASTER > OFFSITE 0 0 0 > STATUS OFF > CONNECTIONTYPE WMS > CONNECTION "http://mapus.jpl.nasa.gov/wms.cgi?" > #CONNECTION > "http://gisdata.usgs.net/servlet/com.esri.wms.Esrimap? > ServiceName=USGS_WMS_LANDSAT7&VERSION=1.0.0&REQUEST=map&Layers=LANDSAT7 > &SRS=EPSG:4326&REASPECT=false&Format=png&" > #DEBUG ON > > METADATA > "wms_srs" "EPSG:4326" > "wms_name" "global_mosaic" > "wms_server_version" "1.1.1" > "wms_format" "image/jpeg" > #"wms_title" "US_LANDSAT7" > #"wms_name" "LANDSAT7" > #"wms_server_version" "1.0.0" > #"wms_format" "image/png" > END > > PROJECTION > "init=epsg:4326" > END > > # Unfortunately, this layer doesn't render properly when > # the CLASS object is defined. A new bug? > #CLASS > # NAME 'Landsat 7 ETM+' > # KEYIMAGE 'graphics/landsat_keyimage.png' > #END > END # LandSat WMS image ends here > > LAYER > NAME cities_poly > GROUP cities > TYPE Polygon > STATUS on > CONNECTIONTYPE WFS > CONNECTION > "http://localhost/cgi-bin/wfs_demo.cgi? > SERVICE=WFS&VERSION=1.0.0&TYPENAME=cities_poly" > #DATA urban_ugl > > HEADER 'templates/cities_header.html' > FOOTER 'templates/cities_footer.html' > TOLERANCE 3 > CLASS > NAME 'Urban Areas' > TEMPLATE 'templates/cities_query.html' > COLOR 255 240 115 > END # CLASS > DUMP TRUE # allow GML export > > METADATA > "wms_title" "UGL Cities" > "wms_abstract" "Urban area polygons for Michigan, Minnesota, and > Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > > #PROJECTION > # "init=epsg:2163" > #END > END # LAYER > > LAYER > NAME fedlands > TYPE Polygon > STATUS on > DATA fedlan_ugl > #CONNECTIONTYPE WFS > #CONNECTION > "http://localhost/cgi-bin/wfs_demo.cgi? > SERVICE=WFS&VERSION=1.0.0&TYPENAME=fedlands" > > > TOLERANCE 3 > CLASS > NAME 'Federal Land' > TEMPLATE 'templates/fedland_query.html' > COLOR 164 96 89 > OUTLINECOLOR 144 72 64 > END # CLASS > DUMP TRUE # allow GML export > > METADATA > "wms_title" "UGL Federal Land" > "wms_abstract" "Federal land polygons for Michigan, Minnesota, > and Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > > PROJECTION > "init=epsg:4326" > END > END # LAYER > > LAYER # Hydrography layer begins here > NAME hydro > TYPE POLYGON > STATUS ON > #DATA hydrop_ugl > CONNECTIONTYPE WFS > CONNECTION > "http://localhost/cgi-bin/wfs_demo.cgi? > SERVICE=WFS&VERSION=1.0.0&TYPENAME=hydro" > > METADATA > "wms_title" "UGL Hydrography" > "wms_abstract" "Hydrography polygons for Michigan, Minnesota, > and Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > > PROJECTION > "init=epsg:2163" > END > > TOLERANCE 3 > CLASSITEM 'FEATURE' > CLASS > NAME 'Lakes' > EXPRESSION /(^B|^C|^L|^R)./ > TEMPLATE 'templates/hydro_query.html' > COLOR 72 64 254 > END # CLASS > CLASS > NAME 'Rivers' > EXPRESSION 'Stream' > TEMPLATE 'templates/hydro_query.html' > COLOR 136 128 255 > END # CLASS > CLASS > NAME 'Wetlands' > EXPRESSION 'Swamp or Marsh' > TEMPLATE 'templates/hydro_query.html' > COLOR 195 252 255 > OUTLINECOLOR 195 252 255 > SYMBOL 'circle' > SIZE 0 > END # CLASS > DUMP TRUE # allow GML export > END # LAYER > > LAYER # County lines > NAME counties > TYPE LINE > STATUS ON > CONNECTIONTYPE WFS > CONNECTION > "http://localhost/cgi-bin/wfs_demo.cgi? > SERVICE=WFS&VERSION=1.0.0&TYPENAME=counties" > #DATA co2000_ugl > CLASSITEM 'COUNTY' > CLASS > NAME 'County Boundary' > EXPRESSION /./ > COLOR 201 201 201 > END # CLASS > > PROJECTION > "init=epsg:2163" > END > > METADATA > "wms_title" "UGL County Boundaries" > "wms_abstract" "County boundary lines for Michigan, Minnesota > and Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > END # County lines end here > > LAYER # ROADS LAYER > NAME cty_roads > GROUP roads > TYPE LINE > STATUS OFF > DATA roads_ugl > MAXSCALE 750000 > > METADATA > "wms_title" "UGL County Roads" > "wms_abstract" "County road lines for Michigan, Minnesota and > Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > > PROJECTION > "init=epsg:4326" > END > > TOLERANCE 5 > CLASSITEM 'CLASS1' > CLASS > NAME 'Minor Arterial Roads' > EXPRESSION '3' > TEMPLATE 'templates/roads_query.html' > COLOR 165 165 165 > END # CLASS > CLASS > EXPRESSION '4' > COLOR 210 210 210 > END # CLASS > DUMP TRUE # allow GML export > > END # ROADS LAYER > > LAYER # state highways begin here > NAME state_hwy > GROUP roads > MAXSCALE 1500000 > STATUS OFF > DATA roads_ugl > TYPE LINE > FILTERITEM 'CLASS1' > FILTER '2' > > TOLERANCE 5 > CLASS > NAME 'Principal Arterial Roads' > TEMPLATE 'templates/roads_query.html' > STYLE > COLOR 255 0 0 > SIZE 1 > SYMBOL 'circle' > END > END > DUMP TRUE # allow GML export > > PROJECTION > "init=epsg:4326" > END > > METADATA > "wms_title" "UGL Highways" > "wms_abstract" "Highway lines for Michigan, Minnesota and > Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > END # highways > > LAYER # interstate highways begin here > NAME interstate > GROUP roads > # MAXSCALE 22500000 > STATUS OFF > #DATA roads_ugl > CONNECTIONTYPE WFS > CONNECTION > "http://localhost/cgi-bin/wfs_demo.cgi? > SERVICE=WFS&VERSION=1.0.0&TYPENAME=interstate" > > TYPE LINE > FILTERITEM 'CLASS1' > FILTER '1' > > TOLERANCE 5 > CLASS > NAME "Interstate Hwy." > TEMPLATE 'templates/roads_query.html' > STYLE > COLOR 128 0 0 > # SIZE 2 > # SYMBOL 'circle' > END > END > DUMP TRUE # allow GML export > > > PROJECTION > "init=epsg:2163" > END > > METADATA > "wms_title" "UGL Highways" > "wms_abstract" "Interstate highway lines for Michigan, Minnesota > and Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > END # highways > > LAYER # States line layer begins here > NAME states_bnd > GROUP states > CONNECTIONTYPE WFS > CONNECTION > "http://localhost/cgi-bin/wfs_demo.cgi? > SERVICE=WFS&VERSION=1.0.0&TYPENAME=states" > #DATA states_ugl > STATUS ON > TYPE LINE > > CLASSITEM "CLASS" > CLASS > EXPRESSION 'land' > SYMBOL 'circle' > COLOR 64 64 64 > SIZE 1 > END > > PROJECTION > "init=epsg:2163" > END > > METADATA > "wms_title" "Upper Great Lakes State Boundaries" > "wms_abstract" "State boundary lines for Michigan, Minnesota and > Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > END # States line layer ends here > > LAYER > NAME roads_anno > GROUP roads > MAXSCALE 750000 > STATUS OFF > DATA roads_ugl > TYPE ANNOTATION > LABELITEM "SIGN" > CLASSITEM "CLASS1" > CLASS > EXPRESSION "3" > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/sthwy.png' > END > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > CLASS > EXPRESSION "2" > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/ushwy.png' > END > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 0 0 0 > END > END > > PROJECTION > "init=epsg:4326" > END > > METADATA > "wfs_title" "UGL Highways" > "wms_abstract" "Highway annotations for Michigan, Minnesota and > Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > END # highway annotation > > LAYER > NAME roads_anno1 > GROUP roads > STATUS OFF > DATA roads_ugl > TYPE ANNOTATION > LABELITEM "SIGN" > CLASSITEM "CLASS1" > CLASS > EXPRESSION "1" > STYLE > COLOR 0 0 0 # dummy color > SYMBOL 'symbols/interstate.png' > END > LABEL > MINFEATURESIZE 50 > MINDISTANCE 150 > POSITION CC > SIZE TINY > COLOR 255 255 255 > END > END > > PROJECTION > "init=epsg:4326" > END > > METADATA > "wms_title" "UGL Highways" > "wms_abstract" "Interstate highway annotations for Michigan, > Minnesota and Wisconsin. Clipped from National Atlas data > (http://www.nationalatlas.gov)." > END > END > > LAYER # Cities label layer begins here > NAME cities_label > GROUP cities > DATA urban_ugl > STATUS ON > TYPE ANNOTATION > MAXSCALE 750000 > > PROJECTION > "init=epsg:4326" > END > > LABELITEM "NAME" > CLASS > COLOR -1 -1 -1 > LABEL > COLOR 32 32 128 > TYPE TRUETYPE > FONT arial-bold > SIZE 8 > ANTIALIAS TRUE > POSITION CC > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 2 > END # end of label > END # end of class > END # Cities label layer ends here > > LAYER # States label layer begins here > NAME states_label > GROUP states > DATA states_ugl > STATUS ON > TYPE ANNOTATION > > PROJECTION > "init=epsg:4326" > END > CLASSITEM 'CLASS' > LABELITEM 'STATE' > CLASS > EXPRESSION 'land' > COLOR -1 -1 -1 > LABEL > COLOR 132 31 31 > SHADOWCOLOR 218 218 218 > SHADOWSIZE 2 2 > TYPE TRUETYPE > FONT arial-bold > SIZE 12 > ANTIALIAS FALSE > POSITION CL > PARTIALS FALSE > MINDISTANCE 300 > BUFFER 4 > END # end of label > END # end of class > END # States label layer ends here > # End of LAYER DEFINITIONS ------------------------------- > END # Map File > > --------------090507030402050401050501-- > From fwarmerdam at GMAIL.COM Thu Feb 10 10:17:18 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 10 Feb 2005 13:17:18 -0500 Subject: mapserv segfaults In-Reply-To: <420BA22A.6010802@noaa.gov> Message-ID: > (gdb) where > #0 0x006a10d1 in realloc () from /lib/tls/libc.so.6 > #1 0x007bb3dd in _TIFFrealloc () from > /extra/contrib/esri/sdeexe90/lib/libtiff.so John, Any chance you have the PDF libraries linked into MapServer? Some versions have a copy of libtiff built-in that can conflict with the GDAL version. If you don't need PDF support just reconfigure and rebuild MapServer without it. If you do need it, look into upgrading to the latest version in which this problem is reportedly fixed. There was some discussion of this on the mailing list last fall when I first encountered the problem. 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 jaframe at NET-YAN.COM Thu Feb 10 08:34:43 2005 From: jaframe at NET-YAN.COM (Tony Frame) Date: Fri, 11 Feb 2005 00:34:43 +0800 Subject: Queries with mygis Message-ID: I've set up a development / demo site that works ok displaying raster, shapefile and mygis data (http://221.124.53.23/kdb200_geomon/) When switching to query mode and clicking on one of the locations (green spot on the map) I cannot get any data back from the feature data base table (or any other useful data). The location data is plotting ok and I can filter on any attribute from the feature table. The map file, database structure and query template are given below. I would be most grateful if anyone could offer any advise. MAP FILE : MAP NAME KDB200 STATUS ON DEBUG ON SIZE 622 392 EXTENT 833885.000 817250.000 837200.000 819500.000 UNITS METERS SHAPEPATH "mapdata" IMAGECOLOR 220 220 220 TEMPLATEPATTERN "kdb200" IMAGETYPE PNG24 # IMAGETYPE PNG # # Start of symbol definitions # SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'star' TYPE VECTOR FILLED TRUE POINTS 0 .375 .35 .375 .5 0 .65 .375 1 .375 .75 .625 .875 1 .5 .75 .125 1 .25 .625 END END # # Start of web interface definition # WEB LOG logs/mapserver.log HEADER mapdata/header.html TEMPLATE "set in index.html" FOOTER mapdata/footer.html MINSCALE 50 MAXSCALE 50000 IMAGEPATH "set in index.html" IMAGEURL "set in index.html" END # # Start of reference map # REFERENCE IMAGE "mapdata/dop5000_ref_align.png" EXTENT 833750.000 815000.000 837500.000 821000.000 SIZE 106 170 STATUS ON MINBOXSIZE 10 MAXBOXSIZE 120 COLOR -1 255 255 OUTLINECOLOR 255 0 0 MARKERSIZE 8 MARKER 'star' END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE SMALL COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 117 132 179 LABEL COLOR 255 255 255 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 255 255 255 UNITS METERS INTERVALS 1 TRANSPARENT FALSE STATUS ON END # # Start of layer definitions # LAYER NAME "base" TYPE raster STATUS on DEBUG on OFFSITE 252 252 252 MINSCALE 500 CLASS NAME 'Base Map' KEYIMAGE graphics/drgs_keyimage.png END TILEINDEX dop5000 END LAYER NAME "site_outline" TYPE line STATUS on DEBUG on DATA "alignment" CLASS NAME "Site Outline" STYLE COLOR 255 0 0 END END END LAYER NAME "instruments" TYPE point STATUS on DEBUG on CONNECTIONTYPE mygis CONNECTION "********:*******:*******:********:bin:" DATA "geometry from ms_instruments feature, ms_instruments_bin geometry" CLASS NAME "Instruments" STYLE COLOR 0 255 0 SYMBOL 'circle' SIZE 6 END TEMPLATE "mapdata/instruments.html" END HEADER "mapdata/instruments_header.html" FOOTER "mapdata/instruments_footer.html" TOLERANCE 5 END LAYER NAME "instrument_ids" TYPE annotation STATUS on DEBUG on CONNECTIONTYPE mygis CONNECTION "********:*******:*******:********:bin:" DATA "geometry from ms_instruments feature, ms_instruments_bin geometry" LABELITEM "txt" CLASSITEM "txt" LABELANGLEITEM "angle" LABELMAXSCALE 3000 CLASS LABEL COLOR 0 0 255 # SHADOWCOLOR 218 218 218 SHADOWCOLOR 0 210 255 SHADOWSIZE 1 1 TYPE bitmap SIZE tiny # SIZE small POSITION cc ANTIALIAS true PARTIALS true BUFFER 1 END END END END # Map File DATABASE STRUCTURE : -- -- Table structure for table `ms_instruments` -- CREATE TABLE `ms_instruments` ( `id` int(11) NOT NULL auto_increment, `layer` int(11) NOT NULL default '0', `x1` double default NULL, `y1` double default NULL, `x2` double default NULL, `y2` double default NULL, `vertices` int(11) NOT NULL default '1', `angle` double default '0', `size` int(11) NOT NULL default '10', `txt` varchar(255) NOT NULL default '', `GID` int(11) NOT NULL default '0', PRIMARY KEY (`id`), KEY `layer` (`layer`), KEY `turbo` (`x2`,`y2`,`x1`,`y1`) ) TYPE=MyISAM AUTO_INCREMENT=573 ; -- -- Table structure for table `ms_instruments_bin` -- CREATE TABLE `ms_instruments_bin` ( `GID` int(11) NOT NULL default '0', `XMIN` double default NULL, `YMIN` double default NULL, `XMAX` double default NULL, `YMAX` double default NULL, `WKB_GEOMETRY` blob, KEY `GID` (`GID`), KEY `x` (`XMIN`,`YMIN`,`XMAX`,`YMAX`) ) TYPE=MyISAM; QUERY TEMPLATE :

Query Test


mapserver version : [version]

query file path : [queryfile]


Total number of results : [nr]

Number of layers returning results : [nl]

Total number of results within the current layer : [nlr]

Result number within all layers : [rn]

Result number within the current layer : [lrn]

Current layer name : [cl]


DBASE feature.id : [ms_instruments.id] or [feature.id]

DBASE feature.txt : [ms_instruments.txt] or [feature.txt]


OUTPUT FROM QUERY : Query Test mapserver version : MapServer version 4.4.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=FREETYPE INPUT=EPPL7 INPUT=GDAL INPUT=SHAPEFILE query file path : /var/www/html/tmp/KDB2001108052962961.qy Total number of results : 1 Number of layers returning results : 1 Total number of results within the current layer : 1 Result number within all layers : 1 Result number within the current layer : 0 Current layer name : instruments DBASE feature.id : [ms_instruments.id] or [feature.id] DBASE feature.txt : [ms_instruments.txt] or [feature.txt] Many Thanks Tony From m.marsella at ITWORKS.IT Thu Feb 10 10:14:09 2005 From: m.marsella at ITWORKS.IT (Marco Marsella) Date: Thu, 10 Feb 2005 19:14:09 +0100 Subject: A simple... sample ! Message-ID: Hi list, I just wanted to contribute to the list the little experience with MapServer/PHP I have put together during the last couple of weeks. I hope it will be useful to somebody and I will be more than happy to get feedback for improvements! The request was to provide a simple thematic mapping of data stored in postgres tables on a single layer of a few south-east asian countries at provincial level. No zoomig/panning and other map interactions were required, so I opted for a simple PHP/Javascript approach. Data is about socio-economic indicators such as literacy rate, male/female population percentage and so on. The tables are: - shapes: contains the vector layer with regid as the region ID used to join with the data table - data: contains provID as the key to join with shapes and dyear, indid and value as, respectively, the year, the indicator and the actual value The mapfile and the php page are attached. Below some short description of the main points: The mapfile is based on the single layer: LAYER NAME "acthem" TYPE POLYGON STATUS ON CONNECTIONTYPE POSTGIS CONNECTION "user=xxx password=xxx dbname=xxx host=xxx port=xxx" DATA "the_geom from ( select map.oid, map.the_geom, data.value from asiacover.shapes as map left join ( select provid, value from asiacover.data where dyear = %dyear% and indid = %indid%) as data on (data.provid = map.regid)) as foo using srid=4326" CLASS EXPRESSION ([value] < 10) NAME "First" OUTLINECOLOR 0 0 0 COLOR 202 255 133 END CLASS EXPRESSION ([value] < 20) NAME "Second" OUTLINECOLOR 0 0 0 COLOR 255 255 133 END CLASS EXPRESSION ([value] < 30) NAME "Third" OUTLINECOLOR 0 0 0 COLOR 133 255 239 END CLASS EXPRESSION ([value] < 40) NAME "Fourth" OUTLINECOLOR 0 0 0 COLOR 251 60 235 END CLASS EXPRESSION ([value] >= 40) NAME "Fifth" OUTLINECOLOR 0 0 0 COLOR 255 0 0 END CLASS OUTLINECOLOR 0 0 0 NAME "No data" COLOR 200 200 200 END PROJECTION "init=epsg:4326" END EXTENT 90 0 120 30 END The points to note are: - I use an outer join because not all year/province/indicator are available but I still need to show all the provinces, although as "no data". This is also why there is a "default" class - %dyear% and %indid% come from the request URL and are substituted by MapServer on the fly, very neat feature! - the CLASS names and expressions are dummies as they will be provided through the URL as explained before (other very nice feature!) The php page is attached. At this time I have made no attempt to group statements together as functions, so it is a bit verbose... The first issue was to have dynamic queries to the DB to present the user only the combinations in indicator category/indicator/year that actually exist in the DB. This explains the PHP segments that make queries and the cookie setting/clearing. The basic functionality is there although there is considerable room for improvements. I hope this could be of use to somebody because, frankly, the documentation on MapServer is sketchy (to say it politely) and I had to browse through a lot of messages in this list (which is a godsend, but would be less critically useful if proper documentation existed) and do a lot of tests myself. Cheers Marco -------------- next part -------------- A non-text attachment was scrubbed... Name: asiacover.php Type: application/text Size: 17410 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: geonetwork.map Type: application/text Size: 2513 bytes Desc: not available URL: From lfilak at MEDINACO.ORG Thu Feb 10 10:55:53 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Thu, 10 Feb 2005 13:55:53 -0500 Subject: Highlight a specific shape record Message-ID: The following message was sent by Abe Gillespie on Wed, 9 Feb 2005 15:58:59 -0500. > Is there anyway to highlight a specific shape if I know its tileindex > and shapeindex? These values are gathered from a prior query. And > then the user chooses a given record to zoom to. I tried just using a > shape query but this is returning puzzling results. Here's some code > that sorta does what I'm talking about: > > $layer->open(); > $s = $layer->getShape($tileindex, $shapeindex); > $layer->queryByShape($s); > $cnt = $layer->getNumResults(); > > $cnt above is somewhere in the number of 150+ records. This is weird > because this is just a simple house layer where no houses are touching. > I also fool around with setting $layer->tolerance = -1 ... does > setting the tolerance at runtime have any effect on the spatial query? > > I would still prefer a more direct method for highlighting the given > shape just by using its tileindex and shapeindex. Abe, Is your getShape syntax correct? I believe it requires a shapeObj as an argument. $s should just be an integer result of the method. Lowell From agillesp at VT.EDU Thu Feb 10 11:49:52 2005 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 10 Feb 2005 14:49:52 -0500 Subject: Highlight a specific shape record In-Reply-To: <20050210185532.B4F8A1A65A8@mail.medinaco.org> Message-ID: No, that's correct syntax for PHP. But that wasn't really the point of the post anyhow. -Abe On Feb 10, 2005, at 1:55 PM, Lowell Filak wrote: > The following message was sent by Abe Gillespie on > Wed, 9 Feb 2005 15:58:59 -0500. > >> Is there anyway to highlight a specific shape if I know its tileindex >> and shapeindex? These values are gathered from a prior query. And >> then the user chooses a given record to zoom to. I tried just using a >> shape query but this is returning puzzling results. Here's some code >> that sorta does what I'm talking about: >> >> $layer->open(); >> $s = $layer->getShape($tileindex, $shapeindex); >> $layer->queryByShape($s); >> $cnt = $layer->getNumResults(); >> >> $cnt above is somewhere in the number of 150+ records. This is weird >> because this is just a simple house layer where no houses are >> touching. >> I also fool around with setting $layer->tolerance = -1 ... does >> setting the tolerance at runtime have any effect on the spatial query? >> >> I would still prefer a more direct method for highlighting the given >> shape just by using its tileindex and shapeindex. > > Abe, > > Is your getShape syntax correct? I believe it requires a shapeObj as an > argument. $s should just be an integer result of the method. > > Lowell > From carloseduardo at COSTARRICENSE.CR Thu Feb 10 12:06:05 2005 From: carloseduardo at COSTARRICENSE.CR (Carlos Eduardo Sibaja Salazar) Date: Thu, 10 Feb 2005 14:06:05 -0600 Subject: PHP MapScript installation problem Message-ID: Lo que tienes que hacer es correr primero un script que solo ejecute la instrucci?n phpinfo(), de esta manera: Si eso funciona entonces ver?s una serie de tablas con informaci?n sobre php. Busca donde dice: "Configuration File (php.ini) Path", y aseg?rate de copiar el archivo php.ini en esa direcci?n. Luego de eso ya puedes agregar la instrucci?n "dl(php_mapscript.so)" en el script. Suerte. ----- Mensaje original ----- De: jussi.rasinmaki at HELSINKI.FI Enviado: Jue 10/02/2005 12:05:43 AM Asunto: [UMN_MAPSERVER-USERS] PHP MapScript installation problem Hi, I've tried to install Mapserver with PHP Mapscript on Whitebox Linux 3, but have run into difficulties with PHP and php_mapscript.so. dl("php_mapscript.so") returns the following warning: Warning: dl(): Unable to load dynamic library '/usr/local/php/extensions/php_mapscript.so' - libclntsh.so.10.1: cannot open shared object file: No such file or directory in /var/www/html/info.php on line 7 PHP 4.3.10 is installed using the following configuration: /configure --enable-shared --with-jpeg-dir=/usr --with-png-dir=/usr --with- zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi-redire ct --with-config-file-path=/usr/local/php/ --prefix=/usr/local/php and the php.ini in /user/local/php has the following line: extension_dir = "/usr/local/php/extensions/" Mapserver is configured as: /configure --without-tiff --without-eppl --with-threads --with-proj --with- gdal --with-oraclespatial=/opt/app/oracle/product/10.1.0/Db_1 --with-php=/op t/app/mapserver/mapserver_libs/php-4.3.10 --with-gd=/usr/local --with-freet ype=/usr/bin --with-wmsclient and the built php_mapscript.so is copied to /usr/local/php/extensions However, php-config --extension-dir returns /usr/local/php/lib/php/extensions/no-debug-non-zts-20020429 which is a non-existing directory. What went wrong? Thanks, Jussi Rasinm?ki _______________________________________ Yo me registr? en www.costarricense.cr From wokar1 at YAHOO.COM Thu Feb 10 12:44:37 2005 From: wokar1 at YAHOO.COM (w m) Date: Thu, 10 Feb 2005 12:44:37 -0800 Subject: Layers do not show up? Message-ID: Hi, I was making a simple map file. I'm able to display the map, but when i add the "landcover" layers, they don't show up on the map. I'm not sure why it doesn't show up??? Also, does it matter if I include the fontset? what is it used for? WHat is the purpose of IMAGEPATH and IMAGEURL? If I don't include these it doesn't make a difference. Why is that? The legend doesn't show up either. It can be viewed here: http://132.205.108.60 I put all my files in the cgi-bin along with mapserver. NAME europe STATUS ON IMAGETYPE PNG IMAGECOLOR 255 255 255 # white background EXTENT 407.997812 4103475.750 443135.000 4157027.250 #FONTSET "/usr/local/etc/htdocs/mapserver/fonts/fonts.list" SIZE 500 500 SHAPEPATH "/var/www/cgi-bin" # Set your template file to the name of YOUR template file # you can leave the image path and image URL alone WEB TEMPLATE "/var/www/html/index.html" IMAGEPATH "/usr/local/etc/htdocs/tmp/" IMAGEURL "/tmp/" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 10 ANTIALIAS TRUE END END # LAYER DEFINITIONS --------------------------------------------- LAYER NAME "myoutline" DATA europa STATUS DEFAULT # Show the layer at all times TYPE LINE CLASS COLOR 0 0 0 OUTLINECOLOR 255 120 60 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 50 480 # changes the location of the text END TEXT 'Europe Map' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 255 120 60 END END END LAYER # NAME "mylandcover" DATA nhtm93s3 STATUS ON # show layer, but allow it to be turned off TYPE POLYGON # choices for type are POLYGON, LINE and POINT CLASSITEM "LANDCOVER" CLASS # water NAME "Water" EXPRESSION 'Water' # match only those where [landcover]='Water' COLOR 225 225 255 OUTLINECOLOR 0 0 0 END CLASS # grassland NAME "Grassland" EXPRESSION /Planted*/ # search for landcovers starting with Planted COLOR 0 240 0 OUTLINECOLOR 0 0 0 END CLASS # forest NAME "Forest" EXPRESSION /Forest*/ COLOR 200 140 0 OUTLINECOLOR 0 0 0 END CLASS # salt marsh NAME "Salt Marsh" EXPRESSION /Salt*/ COLOR 0 200 140 OUTLINECOLOR 0 0 0 END CLASS # sand NAME "Sand" EXPRESSION /Bare*/ COLOR 240 240 240 OUTLINECOLOR 0 0 0 END END # end of layer object LAYER NAME "myroads" DATA rtf100k STATUS ON TYPE line CLASS NAME Roads COLOR 200 0 200 OUTLINECOLOR 0 0 0 END # end of class END # end of layer object END # end of map file --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bonk at EOSDATA.GSFC.NASA.GOV Thu Feb 10 12:54:39 2005 From: bonk at EOSDATA.GSFC.NASA.GOV (John Bonk) Date: Thu, 10 Feb 2005 15:54:39 -0500 Subject: extent is invalid for geotiff In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCBA0@ptolemy.topozone.co m> Message-ID: Ed, Thank you again for responding to my question. I'm still having problems understanding extent. When I serve up my geotiff with your extent using MAP IMAGETYPE PNG EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 SIZE 400 300 SHAPEPATH "data" LAYER # MODIS raster layer begins here NAME modis DATA RGB_mosaic_250m.tif STATUS DEFAULT TYPE RASTER END # MODIS raster layer ends here END # end of map file I end up with an image that is smaller than I would expect, and offset vertically. If I add an html template to the above and serve the geotiff in the browse mode, the image in the geotiff occupies a very small area in the png that is produced. The geotiff image is left justified and centered vertically in the png. Can anyone explain why this is? How can I get the geotiff image to fill the entire png? John At 09:41 2005-02-08 -0500, Ed McNierney wrote: >John - > >No, there isn't any preferred method. A GeoTIFF will hold projection, >datum, and bounding box information in a way that can be read by >MapServer. As long as the GeoTIFF is created properly (i.e. you can't >leave out the projection) the coordinate formats used don't matter. > > - 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 Bonk >Sent: Monday, February 07, 2005 11:39 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > >Ed, > >Thank you, that worked. I seems obvious now when I look back at the >documentation. > >Perhaps someone can answer another question. In creating geotiffs, is >there a preferred way of specify coordinates (degrees, UTM, etc) so >that the image will work well with MapServer? > >Thanks again for the response, >John >At 23:10 2005-02-04 -0500, Ed McNierney wrote: > >John - > > > >If that's the only data layer in your map, ignore PROJECTION > >completely, at least for now. > > > >Have you tried an EXTENT of: > > > >EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > > > - Ed > > > >Ed McNierney > >TopoZone.com > > > >-----Original Message----- > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >On Behalf Of John Bonk > >Sent: Friday, February 04, 2005 5:08 PM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > > > >I am very new at this. I am having problems serving a geotiff image > >with the following attributes: > > > >Projection Method: CT_Equirectangular > > ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) > > ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) > > ProjFalseEastingGeoKey: 0.000000 m > > ProjFalseNorthingGeoKey: 0.000000 m > > > >Corner Coordinates: > >Upper Left (-13053641.300,5752577.812) > >Lower Left (-13053641.300,3358256.867) > >Upper Right (-9325729.471,5752577.812) > >Lower Right (-9325729.471,3358256.867) > >Center (-11189685.386,4555417.340) > > > >I have tried all sorts of variation of these number in the EXTENT field > > >but I have been getting an 'extent is invalid' message. > > > >Can anyone help me express the EXTENT and PROJECTION to read this file? > > > >John > >======================================= > > ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From John.C.Cartwright at NOAA.GOV Thu Feb 10 12:57:58 2005 From: John.C.Cartwright at NOAA.GOV (John C Cartwright) Date: Thu, 10 Feb 2005 13:57:58 -0700 Subject: mapserv segfaults In-Reply-To: <8DF602A4-7B8F-11D9-8A39-000D9329D732@frii.com> Message-ID: Hi Sean, Don't really know why it's picking up the libtiff from the ArcSDE directory, but after various permutations of reording the LD_LIBRARY_PATH, recompiling GDAL and Mapserver, and even linking the libtiff in ArcSDE to the one in /usr/lib, I finally gave up and removed SDE support from the mapserver compilation. Then recompiled GDAL, Mapserver. Now recieve a similar error, but using the /usr/lib/libtiff. ================================================================================= (gdb) run Starting program: /extra/contrib/apache/cgi-bin/mapserv-debug [Thread debugging using libthread_db enabled] [New Thread -1218611840 (LWP 9218)] [Thu Feb 10 13:48:55 2005].454729 msWMSLoadGetMapParams(): enabling non-square pixels.[Thu Feb 10 13:48:55 2005].457953 msDrawMap(): kicking into non-square pixel preserving mode. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1218611840 (LWP 9218)] 0x008150d1 in realloc () from /lib/tls/libc.so.6 (gdb) where #0 0x008150d1 in realloc () from /lib/tls/libc.so.6 #1 0x004be2ca in _TIFFrealloc () from /usr/lib/libtiff.so.3 #2 0x010d5a4b in TIFFMergeFieldInfo () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #3 0x01108d38 in _XTIFFLocalDefaultDirectory () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #4 0x01108d5d in _XTIFFDefaultDirectory () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #5 0x004a4ba8 in TIFFDefaultDirectory () from /usr/lib/libtiff.so.3 #6 0x004a57a8 in TIFFReadDirectory () from /usr/lib/libtiff.so.3 #7 0x004b9ee4 in TIFFClientOpen () from /usr/lib/libtiff.so.3 #8 0x004be1db in TIFFFdOpen () from /usr/lib/libtiff.so.3 #9 0x004be260 in TIFFOpen () from /usr/lib/libtiff.so.3 #10 0x01108de8 in XTIFFOpen () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #11 0x01058d10 in GTiffDataset::Open () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #12 0x0110f1d5 in GDALOpen () from /extra/contrib/gdal-1.2.5/lib/libgdal.so.1 #13 0x08078f85 in msDrawRasterLayerLow (map=0xb75a1008, layer=0x992c2e8, image=0x9a9bf48) at mapraster.c:1450 #14 0x0808a139 in msDrawRasterLayer (map=0xb75a1008, layer=0x8d7538, image=0x0) at mapdraw.c:1145 #15 0x080891ef in msDrawLayer (map=0xb75a1008, layer=0x992c2e8, image=0x9a9bf48) at mapdraw.c:781 #16 0x080888e3 in msDrawMap (map=0xb75a1008) at mapdraw.c:446 #17 0x080cb2f8 in msWMSGetMap (map=0xb75a1008, nVersion=65793, names=0x9914578, values=0x991e1c0, numentries=7) at mapwms.c:2156 #18 0x080ccd66 in msWMSDispatch (map=0xb75a1008, req=0x9914558) at mapwms.c:2920 #19 0x0809e682 in msOWSDispatch (map=0xb75a1008, request=0x9914558) at mapows.c:245 #20 0x080512a1 in main (argc=0, argv=0xbfff8c24) at mapserv.c:1165 ================================================================================ Any ideas on what I should try next? I specified --with-libtiff=internal --with-geotiff=internal in the GDAL config. If I specify a --with-tiff=DIR in the mapserver config, is that library used or the one in the GDAL config? Thanks! -- john Sean Gillies wrote: > John, > > Did you link GDAL against the esri/sdeexe90/lib/libtiff.so? Or is the > dynamic linker picking it up by accident? As far as I know, for best > results you need to use GDAL's internal libtiff. At any rate, looks > like this is not a MapServer bug at all, but a bad match between GDAL > and tibtiff. > > Sean > From fwarmerdam at GMAIL.COM Thu Feb 10 13:01:50 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 10 Feb 2005 16:01:50 -0500 Subject: mapserv segfaults In-Reply-To: <420BCAD6.7050006@noaa.gov> Message-ID: On Thu, 10 Feb 2005 13:57:58 -0700, John C Cartwright wrote: > > Any ideas on what I should try next? I specified > --with-libtiff=internal --with-geotiff=internal in the GDAL config. If > I specify a --with-tiff=DIR in the mapserver config, is that library > used or the one in the GDAL config? John, Generally speaking if you are using GDAL there is no reason to use the --with-tiff option for MapServer. The built-in use of libtiff is not nearly as flexible as using it through GDAL. If you build MapServer --without-tiff and if nothing else drags in libtiff other than GDAL then you should be ok. If something else is dragging in libtiff, then ensure you build GDAL to use the same libtiff rather than it's internal copy. The key is to configure things to ensure there is only one libtiff or your life can be hell. 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 jdport at VERITIME.COM Thu Feb 10 13:25:22 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Thu, 10 Feb 2005 16:25:22 -0500 Subject: Layers do not show up? Message-ID: It's not generally a good idea to put all of your files in the cgi-bin directory. You should only have the mapserv directory there, and your other files in your normal html directory like /var/www/ or something like that. The Imagepath is the complete path to the temp directory where your map images will be stored... the ImageURL would be the URL to the images. For example you might have something like Imagepath /var/www/map/tmp ImageURL /map/tmp. The fontset is only used for labels if you have any text labels on your map. Your legend likely doesn't show up because you haven't named any of your classes. Only named classes will show up on a legend. -Jeff ----- Original Message ----- From: w m To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, February 10, 2005 3:44 PM Subject: [UMN_MAPSERVER-USERS] Layers do not show up? Hi, I was making a simple map file. I'm able to display the map, but when i add the "landcover" layers, they don't show up on the map. I'm not sure why it doesn't show up??? Also, does it matter if I include the fontset? what is it used for? WHat is the purpose of IMAGEPATH and IMAGEURL? If I don't include these it doesn't make a difference. Why is that? The legend doesn't show up either. It can be viewed here: http://132.205.108.60 I put all my files in the cgi-bin along with mapserver. NAME europe STATUS ON IMAGETYPE PNG IMAGECOLOR 255 255 255 # white background EXTENT 407.997812 4103475.750 443135.000 4157027.250 #FONTSET "/usr/local/etc/htdocs/mapserver/fonts/fonts.list" SIZE 500 500 SHAPEPATH "/var/www/cgi-bin" # Set your template file to the name of YOUR template file # you can leave the image path and image URL alone WEB TEMPLATE "/var/www/html/index.html" IMAGEPATH "/usr/local/etc/htdocs/tmp/" IMAGEURL "/tmp/" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 10 ANTIALIAS TRUE END END # LAYER DEFINITIONS --------------------------------------------- LAYER NAME "myoutline" DATA europa STATUS DEFAULT # Show the layer at all times TYPE LINE CLASS COLOR 0 0 0 OUTLINECOLOR 255 120 60 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 50 480 # changes the location of the text END TEXT 'Europe Map' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 255 120 60 END END END LAYER # NAME "mylandcover" DATA nhtm93s3 STATUS ON # show layer, but allow it to be turned off TYPE POLYGON # choices for type are POLYGON, LINE and POINT CLASSITEM "LANDCOVER" CLASS # water NAME "Water" EXPRESSION 'Water' # match only those where [landcover]='Water' COLOR 225 225 255 OUTLINECOLOR 0 0 0 END CLASS # grassland NAME "Grassland" EXPRESSION /Planted*/ # search for landcovers starting with Planted COLOR 0 240 0 OUTLINECOLOR 0 0 0 END CLASS # forest NAME "Forest" EXPRESSION /Forest*/ COLOR 200 140 0 OUTLINECOLOR 0 0 0 END CLASS # salt marsh NAME "Salt Marsh" EXPRESSION /Salt*/ COLOR 0 200 140 OUTLINECOLOR 0 0 0 END CLASS # sand NAME "Sand" EXPRESSION /Bare*/ COLOR 240 240 240 OUTLINECOLOR 0 0 0 END END # end of layer object LAYER NAME "myroads" DATA rtf100k STATUS ON TYPE line CLASS NAME Roads COLOR 200 0 200 OUTLINECOLOR 0 0 0 END # end of class END # end of layer object END # end of map file ------------------------------------------------------------------------------ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Feb 10 13:44:55 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 10 Feb 2005 16:44:55 -0500 Subject: extent is invalid for geotiff Message-ID: John - You may have two separate problems, one of which may be a non-problem. 1. If the image is "smaller than [you] would expect, and offset vertically", could that simply be because the EXTENT is slightly larger than the geographic extent of the image, and offset vertically? Try adjusting the numbers in the EXTENT line. If you view the TIFF image in an image viewer, does the imagery fill the frame, or is there blank space around it? 2. In your HTML template, you have somewhere an tag to display the map, which looks something like . Is there a HEIGHT and WIDTH field in that tag? Are they 300 and 400, respectively? If those values don't match the SIZE in your map file, you're asking to display the image at a different size than it was produced, which will give odd results. - 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: John Bonk [mailto:bonk at eosdata.gsfc.nasa.gov] Sent: Thursday, February 10, 2005 3:55 PM To: Ed McNierney; John Bonk; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] extent is invalid for geotiff Ed, Thank you again for responding to my question. I'm still having problems understanding extent. When I serve up my geotiff with your extent using MAP IMAGETYPE PNG EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 SIZE 400 300 SHAPEPATH "data" LAYER # MODIS raster layer begins here NAME modis DATA RGB_mosaic_250m.tif STATUS DEFAULT TYPE RASTER END # MODIS raster layer ends here END # end of map file I end up with an image that is smaller than I would expect, and offset vertically. If I add an html template to the above and serve the geotiff in the browse mode, the image in the geotiff occupies a very small area in the png that is produced. The geotiff image is left justified and centered vertically in the png. Can anyone explain why this is? How can I get the geotiff image to fill the entire png? John At 09:41 2005-02-08 -0500, Ed McNierney wrote: >John - > >No, there isn't any preferred method. A GeoTIFF will hold projection, >datum, and bounding box information in a way that can be read by >MapServer. As long as the GeoTIFF is created properly (i.e. you can't >leave out the projection) the coordinate formats used don't matter. > > - 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 Bonk >Sent: Monday, February 07, 2005 11:39 AM >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > >Ed, > >Thank you, that worked. I seems obvious now when I look back at the >documentation. > >Perhaps someone can answer another question. In creating geotiffs, is >there a preferred way of specify coordinates (degrees, UTM, etc) so >that the image will work well with MapServer? > >Thanks again for the response, >John >At 23:10 2005-02-04 -0500, Ed McNierney wrote: > >John - > > > >If that's the only data layer in your map, ignore PROJECTION > >completely, at least for now. > > > >Have you tried an EXTENT of: > > > >EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > > > - Ed > > > >Ed McNierney > >TopoZone.com > > > >-----Original Message----- > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > >On Behalf Of John Bonk > >Sent: Friday, February 04, 2005 5:08 PM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > > > >I am very new at this. I am having problems serving a geotiff image > >with the following attributes: > > > >Projection Method: CT_Equirectangular > > ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) > > ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) > > ProjFalseEastingGeoKey: 0.000000 m > > ProjFalseNorthingGeoKey: 0.000000 m > > > >Corner Coordinates: > >Upper Left (-13053641.300,5752577.812) > >Lower Left (-13053641.300,3358256.867) > >Upper Right (-9325729.471,5752577.812) > >Lower Right (-9325729.471,3358256.867) > >Center (-11189685.386,4555417.340) > > > >I have tried all sorts of variation of these number in the EXTENT > >field > > >but I have been getting an 'extent is invalid' message. > > > >Can anyone help me express the EXTENT and PROJECTION to read this file? > > > >John > >======================================= > > ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From plists at PROMETHEUS.ORG.YU Thu Feb 10 14:01:15 2005 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Thu, 10 Feb 2005 23:01:15 +0100 Subject: Queries with mygis In-Reply-To: <002701c50f8e$6d3ffd50$0e357cdd@TINY2GHZ> Message-ID: On Thursday 10 February 2005 17:34, Tony Frame wrote: > When switching to query mode and clicking on one of the locations (green > spot on the map) I cannot get any data back from the feature data base > table (or any other useful data). The location data is plotting ok and I > can filter on any attribute from the feature table. If I'm not mistaken, templates are not supported with mysql databases, but generally you wouldn't want to use them anyway since the current mapserver extension uses non-spatial datatypes, so spatial queries would be slow like hell. From fwarmerdam at GMAIL.COM Thu Feb 10 14:20:49 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 10 Feb 2005 17:20:49 -0500 Subject: extent is invalid for geotiff In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCBE4@ptolemy.topozone.com> Message-ID: On Thu, 10 Feb 2005 16:44:55 -0500, Ed McNierney wrote: > John - > > You may have two separate problems, one of which may be a non-problem. Ed, I just wanted to commend you on your incredible patience, and how much you contribute helping folks with questions. 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 jeffb at ERLANDSEN.COM Thu Feb 10 15:03:38 2005 From: jeffb at ERLANDSEN.COM (Jeff Berry) Date: Thu, 10 Feb 2005 15:03:38 -0800 Subject: Install Problem - error loading libgd Message-ID: I?m installing MapServer on a new server running Linux RedHat ES. I?ve installed gd-2.0.33. After compiling mapserver and running it at the command line to see if it?s working, I get the following error: ./mapserv: error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory I do indeed have libgd.so.2 installed in /usr/local/lib. The configuration setup I used for mapserver is: ./configure ?with-freetype=/usr/local/include/freetype2/freetype ?with-zlib= /usr/local ?with-gd=/usr/local ?with-proj=/usr/local ?with-gdal=/usr/local/b in/gdal-config ?with-php=/usr/local Any ideas why mapserver can?t see the library? I?m at a loss. -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Thu Feb 10 15:23:31 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 10 Feb 2005 16:23:31 -0700 Subject: Layers do not show up? Message-ID: You have more than one problem here. Before going to the interactive map try using mode=map. for example: http://132.205.108.60/cgi-bin/mapserv?map=/var/www/cgi-bin/ogr.map&mode= map&layer=myroads Looks like your shapepath is wrong. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of w m Sent: Thursday, February 10, 2005 1:45 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Layers do not show up? Hi, I was making a simple map file. I'm able to display the map, but when i add the "landcover" layers, they don't show up on the map. I'm not sure why it doesn't show up??? Also, does it matter if I include the fontset? what is it used for? WHat is the purpose of IMAGEPATH and IMAGEURL? If I don't include these it doesn't make a difference. Why is that? The legend doesn't show up either. It can be viewed here: http://132.205.108.60 I put all my files in the cgi-bin along with mapserver. NAME europe STATUS ON IMAGETYPE PNG IMAGECOLOR 255 255 255 # white background EXTENT 407.997812 4103475.750 443135.000 4157027.250 #FONTSET "/usr/local/etc/htdocs/mapserver/fonts/fonts.list" SIZE 500 500 SHAPEPATH "/var/www/cgi-bin" # Set your template file to the name of YOUR template file # you can leave the image path and image URL alone WEB TEMPLATE "/var/www/html/index.html" IMAGEPATH "/usr/local/etc/htdocs/tmp/" IMAGEURL "/tmp/" END LEGEND STATUS ON LABEL TYPE TRUETYPE FONT arial COLOR 0 0 0 SIZE 10 ANTIALIAS TRUE END END # LAYER DEFINITIONS --------------------------------------------- LAYER NAME "myoutline" DATA europa STATUS DEFAULT # Show the layer at all times TYPE LINE CLASS COLOR 0 0 0 OUTLINECOLOR 255 120 60 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 50 480 # changes the location of the text END TEXT 'Europe Map' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 255 120 60 END END END LAYER # NAME "mylandcover" DATA nhtm93s3 STATUS ON # show layer, but allow it to be turned off TYPE POLYGON # choices for type are POLYGON, LINE and POINT CLASSITEM "LANDCOVER" CLASS # water NAME "Water" EXPRESSION 'Water' # match only those where [landcover]='Water' COLOR 225 225 255 OUTLINECOLOR 0 0 0 END CLASS # grassland NAME "Grassland" EXPRESSION /Planted*/ # search for landcovers starting with Planted COLOR 0 240 0 OUTLINECOLOR 0 0 0 END CLASS # forest NAME "Forest" EXPRESSION /Forest*/ COLOR 200 140 0 OUTLINECOLOR 0 0 0 END CLASS # salt marsh NAME "Salt Marsh" EXPRESSION /Salt*/ COLOR 0 200 140 OUTLINECOLOR 0 0 0 END CLASS # sand NAME "Sand" EXPRESSION /Bare*/ COLOR 240 240 240 OUTLINECOLOR 0 0 0 END END # end of layer object LAYER NAME "myroads" DATA rtf100k STATUS ON TYPE line CLASS NAME Roads COLOR 200 0 200 OUTLINECOLOR 0 0 0 END # end of class END # end of layer object END # end of map file ________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Thu Feb 10 15:42:04 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 10 Feb 2005 18:42:04 -0500 Subject: extent is invalid for geotiff Message-ID: Frank - Well, then I'll have to thank YOU in public for all the questions you get to before I can ! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 (978) 251-4242 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frank Warmerdam Sent: Thursday, February 10, 2005 5:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] extent is invalid for geotiff On Thu, 10 Feb 2005 16:44:55 -0500, Ed McNierney wrote: > John - > > You may have two separate problems, one of which may be a non-problem. Ed, I just wanted to commend you on your incredible patience, and how much you contribute helping folks with questions. 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 Feb 10 15:49:32 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 10 Feb 2005 18:49:32 -0500 Subject: extent is invalid for geotiff Message-ID: John - OK - it sounds like you made a good diagnosis. If the PNG image looks the same in a viewer application as it does in the HTML template output from MapServer, then you don't have template problems. And you've also demonstrated that you can clearly and accurately follow instructions. This is an excellent skill. You would, therefore, do well to acquire instructions that are correct ! I made a typo in the EXTENT line I gave you, and you faithfully duplicated that typo in your map file. That's the problem - your X extent in the map file is much larger than your image's real extents. The MAXX value (the third number) from your listgeo output is -9325729.471, but I typed it as -932579.471, omitting the "2" that should be in the tens place. This made the maximum X value a much larger number than it should be, and MapServer is correctly generating a map of those (large) extents, with your GeoTIFF occupying a little bitty patch on the left. GIGO, as they used to say.... - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 (978) 251-4242 -----Original Message----- From: John Bonk [mailto:bonk at eosdata.gsfc.nasa.gov] Sent: Thursday, February 10, 2005 5:31 PM To: "Ed McNierney" Subject: RE: [UMN_MAPSERVER-USERS] extent is invalid for geotiff Ed, Once again, thank you very much for your reply. Please see below for answers to you questions embedded in your reply, John At 16:44 2005-02-10 -0500, Ed McNierney wrote: >John - > >You may have two separate problems, one of which may be a non-problem. > >1. If the image is "smaller than [you] would expect, and offset >vertically", could that simply be because the EXTENT is slightly larger >than the geographic extent of the image, and offset vertically? Try >adjusting the numbers in the EXTENT line. If you view the TIFF image in >an image viewer, does the imagery fill the frame, or is there blank >space around it? When viewed in an image viewer, the geotiff image fills the entire frame. >2. In your HTML template, you have somewhere an tag to display the >map, which looks something like . Is there a HEIGHT >and WIDTH field in that tag? Are they 300 and 400, respectively? If >those values don't match the SIZE in your map file, you're asking to >display the image at a different size than it was produced, which will >give odd results. The dimensions in the img tag in the HTML doc match the SIZE in the map file. BTW, the only reason I mention the png image, is that I can send it to a viewer where I can obviously see that the geotiff is left justified and displaced downward. It looks the same way in my browser when serving the map in map mode but its not as obvious without the frame. BTW, the geotiff part of the png is a bad fit, it covers only about 10% of the area of the png. If the png were a tictactoe board, the geotiff does not quite cover the rectangle in the first column second row. We tried playing around with the extent with mixed success. Well try again and let you know. > - 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: John Bonk [mailto:bonk at eosdata.gsfc.nasa.gov] >Sent: Thursday, February 10, 2005 3:55 PM >To: Ed McNierney; John Bonk; MAPSERVER-USERS at LISTS.UMN.EDU >Subject: RE: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > >Ed, > >Thank you again for responding to my question. > >I'm still having problems understanding extent. > >When I serve up my geotiff with your extent using > >MAP > IMAGETYPE PNG > EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > SIZE 400 300 > SHAPEPATH "data" > > LAYER # MODIS raster layer begins here > NAME modis > DATA RGB_mosaic_250m.tif > STATUS DEFAULT > TYPE RASTER > END # MODIS raster layer ends here > >END # end of map file > >I end up with an image that is smaller than I would expect, and offset >vertically. > >If I add an html template to the above and serve the geotiff in the >browse mode, the image in the geotiff occupies a very small area in the >png that is produced. The geotiff image is left justified and centered >vertically in the png. > >Can anyone explain why this is? How can I get the geotiff image to fill >the entire png? > >John > > > >At 09:41 2005-02-08 -0500, Ed McNierney wrote: > >John - > > > >No, there isn't any preferred method. A GeoTIFF will hold projection, > >datum, and bounding box information in a way that can be read by > >MapServer. As long as the GeoTIFF is created properly (i.e. you can't > >leave out the projection) the coordinate formats used don't matter. > > > > - 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 Bonk > >Sent: Monday, February 07, 2005 11:39 AM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > > > >Ed, > > > >Thank you, that worked. I seems obvious now when I look back at the > >documentation. > > > >Perhaps someone can answer another question. In creating geotiffs, is > >there a preferred way of specify coordinates (degrees, UTM, etc) so > >that the image will work well with MapServer? > > > >Thanks again for the response, > >John > >At 23:10 2005-02-04 -0500, Ed McNierney wrote: > > >John - > > > > > >If that's the only data layer in your map, ignore PROJECTION > > >completely, at least for now. > > > > > >Have you tried an EXTENT of: > > > > > >EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > > > > > - Ed > > > > > >Ed McNierney > > >TopoZone.com > > > > > >-----Original Message----- > > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > >On Behalf Of John Bonk > > >Sent: Friday, February 04, 2005 5:08 PM > > >To: MAPSERVER-USERS at LISTS.UMN.EDU > > >Subject: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > > > > > >I am very new at this. I am having problems serving a geotiff image > > >with the following attributes: > > > > > >Projection Method: CT_Equirectangular > > > ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) > > > ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) > > > ProjFalseEastingGeoKey: 0.000000 m > > > ProjFalseNorthingGeoKey: 0.000000 m > > > > > >Corner Coordinates: > > >Upper Left (-13053641.300,5752577.812) > > >Lower Left (-13053641.300,3358256.867) > > >Upper Right (-9325729.471,5752577.812) > > >Lower Right (-9325729.471,3358256.867) > > >Center (-11189685.386,4555417.340) > > > > > >I have tried all sorts of variation of these number in the EXTENT > > >field > > > > >but I have been getting an 'extent is invalid' message. > > > > > >Can anyone help me express the EXTENT and PROJECTION to read this >file? > > > > > >John > > >======================================= > > > > >======================================= ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From plists at PROMETHEUS.ORG.YU Thu Feb 10 15:57:00 2005 From: plists at PROMETHEUS.ORG.YU (Attila Csipa) Date: Fri, 11 Feb 2005 00:57:00 +0100 Subject: Install Problem - error loading libgd In-Reply-To: Message-ID: On Friday 11 February 2005 00:03, Jeff Berry wrote: > /mapserv: error while loading shared libraries: libgd.so.2: cannot open > shared object file: No such file or directory > > I do indeed have libgd.so.2 installed in /usr/local/lib. The > configuration setup I used for mapserver is: > > Any ideas why mapserver can?t see the library? I?m at a loss. Is /usr/local/lib in in your ldpath (see /etc/ld.so.conf) ? You might also want to check "ldconfig -p|grep libgd". From nacional at CBS.UMN.EDU Thu Feb 10 16:54:49 2005 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Thu, 10 Feb 2005 18:54:49 -0600 Subject: mapserv segfaults In-Reply-To: <931f8ea905021013014c30955c@mail.gmail.com> Message-ID: Hi John, Sorry to come in late in the game... ;) Frank might have just scored the final point. This issue with TIFF (and JPEG) has been around for awhile and comes up now and then. In general when compiling MapServer with GDAL support, the MapServer TIFF (and JPEG) support should be disabled. Anyway, if you follow Frank's advice you should be able to compile your SDE support back. Good luck! -Perry On Thursday 10 February 2005 03:01 pm, Frank Warmerdam wrote: > On Thu, 10 Feb 2005 13:57:58 -0700, John C Cartwright > > wrote: > > Any ideas on what I should try next? I specified > > --with-libtiff=internal --with-geotiff=internal in the GDAL config. If > > I specify a --with-tiff=DIR in the mapserver config, is that library > > used or the one in the GDAL config? > > John, > > Generally speaking if you are using GDAL there is no reason to use > the --with-tiff option for MapServer. The built-in use of libtiff is not > nearly as flexible as using it through GDAL. > > If you build MapServer --without-tiff and if nothing else drags in > libtiff other than GDAL then you should be ok. If something else > is dragging in libtiff, then ensure you build GDAL to use the same > libtiff rather than it's internal copy. > > The key is to configure things to ensure there is only one libtiff > or your life can be hell. > > 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 -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu From ed at TOPOZONE.COM Thu Feb 10 17:29:31 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 10 Feb 2005 20:29:31 -0500 Subject: WMS Debug question and SRS requirement Message-ID: Folks - OK, two questions in one to save those electrons.... 1. I cannot get any logfile debug output with DEBUG ON and a LOG statement when I'm using WMS requests. Is this supposed to work? If so, how? The LOG statement is in the WEB object - is that ignored in WMS requests? I think this is the same question Nicholas asked yesterday, but I haven't seen an answer. 2. Is there any way around specifying EVERY supported SRS for EVERY layer with an "wms_srs" statement in the METADATA object? I'm creating a single WMS service with a few hundred layers, and it supports a fairly complete set of US popular projections, including all UTM Zones and State Plane coordinate systems. The MAP file is several megabytes! While I suppose there's a certain benefit to being forced to explicitly confirm that each layer can support the same list of 200 or so projections, is that REALLY necessary? Can I specify the supported SRS list for the entire map service and somehow have each LAYER inherit it? Over 75% of my MAP file is made up of "epsg:26910 epsg:26911 epsg:26912...." - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 (978) 251-4242 From gerry.creager at TAMU.EDU Thu Feb 10 21:06:10 2005 From: gerry.creager at TAMU.EDU (Gerry Creager N5JXS) Date: Thu, 10 Feb 2005 23:06:10 -0600 Subject: extent is invalid for geotiff In-Reply-To: <931f8ea9050210142036ad5b20@mail.gmail.com> Message-ID: Having been the recipient of Ed's help, I'd like to second that. And, that said, there's a BUNCH of folks here who've been incredibly helpful over the several years I've been working with Mapserver. It's obvious I've only scraped the surface, while Frank, Ed, and a host of others are true wizards. My hat's off to all of 'em! gerry Frank Warmerdam wrote: > On Thu, 10 Feb 2005 16:44:55 -0500, Ed McNierney wrote: > >>John - >> >>You may have two separate problems, one of which may be a non-problem. > > > Ed, > > I just wanted to commend you on your incredible patience, and how > much you contribute helping folks with questions. > > 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 -- Gerry Creager -- gerry.creager at tamu.edu Texas Mesonet -- AATLT, Texas A&M University Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578 Page: 979.228.0173 Office: 903A Eller Bldg, TAMU, College Station, TX 77843 From trex0003 at UMN.EDU Thu Feb 10 22:21:19 2005 From: trex0003 at UMN.EDU (Dale Trexel) Date: Fri, 11 Feb 2005 00:21:19 -0600 Subject: libcurl dependencies with Fedora Linux Message-ID: Hello, I am trying to get the basic CGI MapServer 4.4.1 up and running on a Fedora Linux server. My main source of files has been the mappinghacks rpm site (http://www.mappinghacks.com/rpm/apt/fedora/2/RPMS.mh/), but I have had to search elsewhere for some libraries that don't appear there. I appear to have everyting in place to install MapServer except libcurl. Testing the MapServer install with: rpm -i -vv --test mapserv* seems to chug along fine until it reaches: error: Failed dependencies: libcurl.so.2 is needed by mapserver-4.4.1-mh1.i686 I previously downloaded curl from the Fedora rpm download site and ended up with libcurl.so.3 rather than libcurl.so.2. Do I have to go back to an earlier version of curl, or can MapServer handle libcurl.so.3 with some effort on my part? -Dale From unicoletti at PROMETEO.IT Thu Feb 10 23:28:37 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Fri, 11 Feb 2005 08:28:37 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <007c01c50f89$c55c1690$041410ac@comune.lugo.ra.it> Message-ID: Ciao Daniele, Could be a name resolution problem. Are you using an ip address or a host name to specify the postgres connection string? If you are using a name please make sure that it can be resolved correctly by registering it in dns and/or in the /etc/hosts file. Did you try localhost in the connection string? Also have a look at the log files in /var/lib/postgres/data. HTH, Umberto On Thu, 2005-02-10 at 17:01 +0100, Daniele Margotti wrote: > Yes, Mapserver is in the same computer of PostGIS: a Linux Red Hat 9. > Computer is rather fast: I can dump a 33000-row table (14 Mb dumped to > file) in about 3 seconds. > > And also when I connect from a Windows XP (via Lan) using ODBC drivers, > data are read very fast. > > Only Mapserver is slow... > > Daniele > > > >-----Original Message----- > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Lyndon Tiu > >Sent: Thursday, February 10, 2005 4:36 PM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > > > >On February 10, 2005 02:03 am, Daniele Margotti wrote: > >> Hi all, > >> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) > >> alternately with data stored in shapefiles and PostGIS (imported from > > >> these shapefiles). > >> > >> My query (304 elements on 5 layers) takes 5 seconds (elaboration, and > > >> then output on browser) if data are read from shapefiles, and about > 50 > >> seconds if data are read from PostGIS. > >> > >> The query is the same: I simply press "reload" on my browser (after > >> manually changed .map file and query template files) to be sure of > >> it... > >> > >> Is it normal? > >> > > > >Is Postgis in the same computer as mapserver? > > > >-- > >Lyndon Tiu > > -- Umberto Nicoletti Prometeo SRL From richardjansen at TMOP.NL Thu Feb 10 23:52:07 2005 From: richardjansen at TMOP.NL (Richard Jansen) Date: Fri, 11 Feb 2005 01:52:07 -0600 Subject: mapextent Message-ID: Hi MapServer fans, Just added myself to The List. Since one week i'm into the MapServer world. Now it's time to get some help of you. I want to zoom in every time i click my 'zoom in' button. Wat i do is the following (MapScript): $extent = $layer->getExtent(); $map->setExtent($extent->minx+10000, $extent->miny+10000, $extent->maxx- 10000, $extent->maxy-10000); $map->save("tmpmapfile.map"); I put the tmpmapfile name in a session so i can use it on and on to zoom in multiple times. The original extent is: 13537 306848 278002 619116 (my little country the Netherlands). Wat i want to get is: 23537 316848 268002 609116 as my new mapextent. But this is wat i get: -364.000000000004 316848 291903 609115 The problem seems to bee de $map->save() because if no new extent is set, the new extent (the same as the orginal) contains wrong coords. Has anybody an idee to solv this? Thanks!! Richard From jaframe at NET-YAN.COM Fri Feb 11 00:11:32 2005 From: jaframe at NET-YAN.COM (Tony Frame) Date: Fri, 11 Feb 2005 16:11:32 +0800 Subject: Queries with mygis Message-ID: ----- Original Message ----- From: "Attila Csipa" To: Sent: Friday, 11 February, 2005 6:01 AM Subject: Re: [UMN_MAPSERVER-USERS] Queries with mygis > On Thursday 10 February 2005 17:34, Tony Frame wrote: >> When switching to query mode and clicking on one of the locations (green >> spot on the map) I cannot get any data back from the feature data base >> table (or any other useful data). The location data is plotting ok and I >> can filter on any attribute from the feature table. > > If I'm not mistaken, templates are not supported with mysql databases, but > generally you wouldn't want to use them anyway since the current mapserver > extension uses non-spatial datatypes, so spatial queries would be slow > like > hell. > The query & nquery modes appear to work to a certain extent ... if I click anywhere but on the points I'm trying to query, an error : msQueryByPoint(): Search returned no results. No matching record(s) found. is returned. When clicking on a single point the query form variables [nr], [nl], [nlr], [rn], [cl] all return values (ie 1 and current layer = instruments) as expected. However [lrn] is returned as 0 and no query file is created/saved. When clicking on a group of points, [nr], [nl], [nlr], [rn], [cl] return values as expected but [lrn] is returned as 0 and no query file created/saved. Seems to be something(s) I'm not understanding about how queries work ... since the point co-ordinates are successfully retrieved from the mysql database and plotted I thought would be possible to at least have the query return the point ids and co-ordinates from the layer? Any suggestions on how I can this sort of information back from a query ? Many thanks for the help. Tony From bob.basques at CI.STPAUL.MN.US Fri Feb 11 00:15:36 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri, 11 Feb 2005 02:15:36 -0600 Subject: mapextent In-Reply-To: Message-ID: Richard Jansen wrote: >Hi MapServer fans, > >Just added myself to The List. Since one week i'm into the MapServer world. >Now it's time to get some help of you. > >I want to zoom in every time i click my 'zoom in' button. Wat i do is the >following (MapScript): > >$extent = $layer->getExtent(); >$map->setExtent($extent->minx+10000, $extent->miny+10000, $extent->maxx-10000, $extent->maxy-10000); > > Try changing the line above to this: $map->setExtent($extent->minx-10000, $extent->miny-10000, $extent->maxx-10000, $extent->maxy-10000); bobb >$map->save("tmpmapfile.map"); > >I put the tmpmapfile name in a session so i can use it on and on to zoom in >multiple times. > >The original extent is: 13537 306848 278002 619116 (my little country the >Netherlands). Wat i want to get is: 23537 316848 268002 609116 as my new >mapextent. But this is wat i get: -364.000000000004 316848 291903 609115 > >The problem seems to bee de $map->save() because if no new extent is set, >the new extent (the same as the orginal) contains wrong coords. > >Has anybody an idee to solv this? Thanks!! > >Richard > > > > From margottid at COMUNE.LUGO.RA.IT Fri Feb 11 00:16:48 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Fri, 11 Feb 2005 09:16:48 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <1108106917.4281.4.camel@friedrich.prometeo.it> Message-ID: My connection string is: DATA "the_geom from my_table01" CONNECTION "user=postgres dbname=my_database host=localhost port=5432" CONNECTIONTYPE postgis Where can I find logs? I installed PostgreSQL via RPMs, which did put the program in /var/lib/pgsql: # ls -al /var/lib/pgsql/data/ totale 52 drwx------ 6 postgres postgres 4096 10 feb 16:37 . drwx------ 4 postgres postgres 4096 10 feb 17:02 .. drwx------ 5 postgres postgres 4096 10 feb 12:38 base drwx------ 2 postgres postgres 4096 11 feb 09:09 global drwx------ 2 postgres postgres 4096 8 feb 15:57 pg_clog -rw------- 1 postgres postgres 2572 10 feb 10:13 pg_hba.conf -rw------- 1 postgres postgres 1441 8 feb 15:58 pg_ident.conf -rw------- 1 postgres postgres 4 8 feb 15:57 PG_VERSION drwx------ 2 postgres postgres 4096 10 feb 13:09 pg_xlog -rw------- 1 postgres postgres 5238 9 feb 14:03 postgresql.conf -rw------- 1 postgres postgres 32 10 feb 15:17 postmaster.opts -rw------- 1 postgres postgres 45 10 feb 15:17 postmaster.pid In pg_clog and pg_xlog I have no text logs, only data files that are not comprehensible. Daniele -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Umberto Nicoletti Sent: Friday, February 11, 2005 8:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile Ciao Daniele, Could be a name resolution problem. Are you using an ip address or a host name to specify the postgres connection string? If you are using a name please make sure that it can be resolved correctly by registering it in dns and/or in the /etc/hosts file. Did you try localhost in the connection string? Also have a look at the log files in /var/lib/postgres/data. HTH, Umberto On Thu, 2005-02-10 at 17:01 +0100, Daniele Margotti wrote: > Yes, Mapserver is in the same computer of PostGIS: a Linux Red Hat 9. > Computer is rather fast: I can dump a 33000-row table (14 Mb dumped to > file) in about 3 seconds. > > And also when I connect from a Windows XP (via Lan) using ODBC > drivers, data are read very fast. > > Only Mapserver is slow... > > Daniele > > > >-----Original Message----- > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Lyndon Tiu > >Sent: Thursday, February 10, 2005 4:36 PM > >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > > > >On February 10, 2005 02:03 am, Daniele Margotti wrote: > >> Hi all, > >> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) > >> alternately with data stored in shapefiles and PostGIS (imported > >> from > > >> these shapefiles). > >> > >> My query (304 elements on 5 layers) takes 5 seconds (elaboration, > >> and > > >> then output on browser) if data are read from shapefiles, and about > 50 > >> seconds if data are read from PostGIS. > >> > >> The query is the same: I simply press "reload" on my browser (after > >> manually changed .map file and query template files) to be sure of > >> it... > >> > >> Is it normal? > >> > > > >Is Postgis in the same computer as mapserver? > > > >-- > >Lyndon Tiu > > -- Umberto Nicoletti Prometeo SRL From bob.basques at CI.STPAUL.MN.US Fri Feb 11 00:18:08 2005 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri, 11 Feb 2005 02:18:08 -0600 Subject: mapextent In-Reply-To: Message-ID: Oh nevermind my first reply. I need to read the whole message before I reply. :c) bobb Richard Jansen wrote: >Hi MapServer fans, > >Just added myself to The List. Since one week i'm into the MapServer world. >Now it's time to get some help of you. > >I want to zoom in every time i click my 'zoom in' button. Wat i do is the >following (MapScript): > >$extent = $layer->getExtent(); >$map->setExtent($extent->minx+10000, $extent->miny+10000, $extent->maxx- >10000, $extent->maxy-10000); >$map->save("tmpmapfile.map"); > >I put the tmpmapfile name in a session so i can use it on and on to zoom in >multiple times. > >The original extent is: 13537 306848 278002 619116 (my little country the >Netherlands). Wat i want to get is: 23537 316848 268002 609116 as my new >mapextent. But this is wat i get: -364.000000000004 316848 291903 609115 > >The problem seems to bee de $map->save() because if no new extent is set, >the new extent (the same as the orginal) contains wrong coords. > >Has anybody an idee to solv this? Thanks!! > >Richard > > > > From unicoletti at PROMETEO.IT Fri Feb 11 00:29:09 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Fri, 11 Feb 2005 09:29:09 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <002001c51012$08722040$041410ac@comune.lugo.ra.it> Message-ID: They could be in /var/log then. Try running top on the server to see if there is load during the request and what process is causing it. Please make sure you understand how to index data in postgis. They have rather good documentation on how to speed up mapserver queries. Regards, Umberto On Fri, 2005-02-11 at 09:16 +0100, Daniele Margotti wrote: > My connection string is: > > DATA "the_geom from my_table01" > CONNECTION "user=postgres dbname=my_database host=localhost port=5432" > CONNECTIONTYPE postgis > > Where can I find logs? > I installed PostgreSQL via RPMs, which did put the program in > /var/lib/pgsql: > > # ls -al /var/lib/pgsql/data/ > totale 52 > drwx------ 6 postgres postgres 4096 10 feb 16:37 . > drwx------ 4 postgres postgres 4096 10 feb 17:02 .. > drwx------ 5 postgres postgres 4096 10 feb 12:38 base > drwx------ 2 postgres postgres 4096 11 feb 09:09 global > drwx------ 2 postgres postgres 4096 8 feb 15:57 pg_clog > -rw------- 1 postgres postgres 2572 10 feb 10:13 pg_hba.conf > -rw------- 1 postgres postgres 1441 8 feb 15:58 pg_ident.conf > -rw------- 1 postgres postgres 4 8 feb 15:57 PG_VERSION > drwx------ 2 postgres postgres 4096 10 feb 13:09 pg_xlog > -rw------- 1 postgres postgres 5238 9 feb 14:03 postgresql.conf > -rw------- 1 postgres postgres 32 10 feb 15:17 postmaster.opts > -rw------- 1 postgres postgres 45 10 feb 15:17 postmaster.pid > > In pg_clog and pg_xlog I have no text logs, only data files that are not > comprehensible. > > Daniele > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Umberto Nicoletti > Sent: Friday, February 11, 2005 8:29 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > Ciao Daniele, > Could be a name resolution problem. Are you using an ip address or a > host name to specify the postgres connection string? If you are using a > name please make sure that it can be resolved correctly by registering > it in dns and/or in the /etc/hosts file. > > Did you try localhost in the connection string? > Also have a look at the log files in /var/lib/postgres/data. > > HTH, > Umberto > > On Thu, 2005-02-10 at 17:01 +0100, Daniele Margotti wrote: > > Yes, Mapserver is in the same computer of PostGIS: a Linux Red Hat 9. > > Computer is rather fast: I can dump a 33000-row table (14 Mb dumped to > > file) in about 3 seconds. > > > > And also when I connect from a Windows XP (via Lan) using ODBC > > drivers, data are read very fast. > > > > Only Mapserver is slow... > > > > Daniele > > > > > > >-----Original Message----- > > >From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Lyndon Tiu > > >Sent: Thursday, February 10, 2005 4:36 PM > > >To: MAPSERVER-USERS at LISTS.UMN.EDU > > >Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > > > > > > >On February 10, 2005 02:03 am, Daniele Margotti wrote: > > >> Hi all, > > >> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) > > >> alternately with data stored in shapefiles and PostGIS (imported > > >> from > > > > >> these shapefiles). > > >> > > >> My query (304 elements on 5 layers) takes 5 seconds (elaboration, > > >> and > > > > >> then output on browser) if data are read from shapefiles, and about > > 50 > > >> seconds if data are read from PostGIS. > > >> > > >> The query is the same: I simply press "reload" on my browser (after > > > >> manually changed .map file and query template files) to be sure of > > >> it... > > >> > > >> Is it normal? > > >> > > > > > >Is Postgis in the same computer as mapserver? > > > > > >-- > > >Lyndon Tiu > > > > -- > Umberto Nicoletti > Prometeo SRL -- Umberto Nicoletti Prometeo SRL From joseluismapserver at YAHOO.ES Fri Feb 11 00:55:17 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Fri, 11 Feb 2005 09:55:17 +0100 Subject: delete images Message-ID: Hi to all Does anyone know how to delete created images from hard disc once they have been used with some mapserver commands? It will be even better if I could just show the map created directly in the webpage without having to save it. Can you do this with mapserver 4.4? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From margottid at COMUNE.LUGO.RA.IT Fri Feb 11 00:58:46 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Fri, 11 Feb 2005 09:58:46 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <420B98B3.3050505@startnet.cz> Message-ID: x_coord and y_coord are only coordinates of the centroid - manually added to the shapefile for certain queries using PHPMapscript. But when I query the map using the cgi-bin Mapserver, these fields are not considered (and they are not even in the html templates). Anyway, I just created an index for every field of a table (except for "the_geom", already created with option "USING GIST"): now, querying only the layer based on that table, I don't get a better performance, since query remains from 10 to 15 time slower than shapefile-query. I checked the mapfile to ensure that all references to field are in lower-case (e.g., CLASSITEM or DATA), but nothing changed. The strange thing is that the map (/cgi-bin/mapserv?mode=browse) is drawn at the same speed as if I would use shapefiles. Daniele -----Original Message----- From: Miroslav ?ulc [mailto:miroslav.sulc at startnet.cz] Sent: Thursday, February 10, 2005 6:24 PM To: Daniele Margotti Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile I just guess but I would try to add these indexes (I guess there are some coordinates that could be used for the query): CREATE INDEX ra_strade_x_coord ON ra_strade (x_coord); CREATE INDEX ra_strade_y_coord ON ra_strade (y_coord); CREATE INDEX ra_strade_x_coord_y_coord ON ra_strade (x_coord, y_coord); I would also add indexes on any field that you use as filter in your MAP file. Running "VACUUM ANALYZE;" after this cannot hurt :-) But as I wrote above, I just guess, I'm no pro :-) Miroslav ?ulc Daniele Margotti wrote: >This is the result of the command: > >$ pg_dump -d ra --schema-only -t ra_strade > >-- >-- PostgreSQL database dump >-- > >\connect - postgres > >SET search_path = public, pg_catalog; > >-- >-- TOC entry 2 (OID 254941) >-- Name: ra_strade; Type: TABLE; Schema: public; Owner: postgres >-- > >CREATE TABLE ra_strade ( > gid serial NOT NULL, > fnode_ bigint, > tnode_ bigint, > length numeric, > id_arco bigint, > funzione integer, > tipo integer, > classe integer, > numero character varying, > liv_ini integer, > liv_med integer, > liv_fine integer, > nomes character varying, > nomed character varying, > type_class character varying, > x_coord double precision, > y_coord double precision, > the_geom geometry, > CONSTRAINT "$1" CHECK ((srid(the_geom) = -1)), > CONSTRAINT "$2" CHECK (((geometrytype(the_geom) = >'MULTILINESTRING'::text) OR (the_geom IS NULL))) >); > > >-- >-- TOC entry 3 (OID 289905) >-- Name: ra_strade_geom_idx; Type: INDEX; Schema: public; Owner: >postgres >-- > >CREATE INDEX ra_strade_geom_idx ON ra_strade USING gist (the_geom); > > >-- >-- TOC entry 4 (OID 288321) >-- Name: ra_strade_pkey; Type: CONSTRAINT; Schema: public; Owner: >postgres >-- > >ALTER TABLE ONLY ra_strade > ADD CONSTRAINT ra_strade_pkey PRIMARY KEY (gid); > > > From jussi.rasinmaki at HELSINKI.FI Fri Feb 11 01:00:24 2005 From: jussi.rasinmaki at HELSINKI.FI (Jussi Rasinm=?ISO-8859-1?Q?=E4ki?=) Date: Fri, 11 Feb 2005 03:00:24 -0600 Subject: PHP MapScript installation problem Message-ID: My spanish is elementary, very elementary, but: I've run the info.php with phpinfo() and the location of the php configuration file corresponds to the one given by phpinfo() Jussi On Thu, 10 Feb 2005 14:06:05 -0600, Carlos Eduardo Sibaja Salazar wrote: >Lo que tienes que hacer es correr primero un script que solo ejecute la instrucci?n >phpinfo(), de esta manera: > > phpinfo(); > ?> > >Si eso funciona entonces ver?s una serie de tablas con informaci?n sobre php. Busca donde >dice: "Configuration File (php.ini) Path", y aseg?rate de copiar el archivo php.ini en esa >direcci?n. > >Luego de eso ya puedes agregar la instrucci?n "dl(php_mapscript.so)" en el script. > >Suerte. > >----- Mensaje original ----- >De: jussi.rasinmaki at HELSINKI.FI >Enviado: Jue 10/02/2005 12:05:43 AM >Asunto: [UMN_MAPSERVER-USERS] PHP MapScript installation problem > >Hi, > >I've tried to install Mapserver with PHP Mapscript on Whitebox Linux 3, but >have run into difficulties with PHP and php_mapscript.so. >dl("php_mapscript.so") returns the following warning: >Warning: dl(): Unable to load dynamic library >'/usr/local/php/extensions/php_mapscript.so' - libclntsh.so.10.1: cannot >open shared object file: No such file or directory in /var/www/html/info. php >on line 7 > >PHP 4.3.10 is installed using the following configuration: >/configure --enable-shared --with-jpeg-dir=/usr --with-png-dir=/usr --with- >zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi- redire >ct --with-config-file-path=/usr/local/php/ --prefix=/usr/local/php > >and the php.ini in /user/local/php has the following line: >extension_dir = "/usr/local/php/extensions/" > >Mapserver is configured as: >/configure --without-tiff --without-eppl --with-threads --with-proj --with- >gdal --with-oraclespatial=/opt/app/oracle/product/10.1.0/Db_1 --with-php=/ op >t/app/mapserver/mapserver_libs/php-4.3.10 --with-gd=/usr/local --with- freet >ype=/usr/bin --with-wmsclient > >and the built php_mapscript.so is copied to /usr/local/php/extensions > >However, php-config --extension-dir returns >/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429 >which is a non-existing directory. > >What went wrong? > >Thanks, >Jussi Rasinm?ki > > >_______________________________________ >Yo me registr? en www.costarricense.cr From bartvde at XS4ALL.NL Fri Feb 11 01:06:57 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 11 Feb 2005 10:06:57 +0100 Subject: mapextent In-Reply-To: Message-ID: Hi Richard, could you check the SIZE of your MAP object, and compare the ratio of those values (width and height in pixels) to the ratio of your extent values (width and height in real world coordinates, m)? I could imagine Mapserver making a correction on the extent you provide if those ratio's differ. Also, what you are doing (x and y extent values changed with the same value, 10000 m), assumes you have a square map size in pixels. Is that true? Best regards, Bart > Hi MapServer fans, > > Just added myself to The List. Since one week i'm into the MapServer > world. > Now it's time to get some help of you. > > I want to zoom in every time i click my 'zoom in' button. Wat i do is the > following (MapScript): > > $extent = $layer->getExtent(); > $map->setExtent($extent->minx+10000, $extent->miny+10000, $extent->maxx- > 10000, $extent->maxy-10000); > $map->save("tmpmapfile.map"); > > I put the tmpmapfile name in a session so i can use it on and on to zoom > in > multiple times. > > The original extent is: 13537 306848 278002 619116 (my little country the > Netherlands). Wat i want to get is: 23537 316848 268002 609116 as my new > mapextent. But this is wat i get: -364.000000000004 316848 291903 609115 > > The problem seems to bee de $map->save() because if no new extent is set, > the new extent (the same as the orginal) contains wrong coords. > > Has anybody an idee to solv this? Thanks!! > > Richard > From bartvde at XS4ALL.NL Fri Feb 11 01:10:53 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 11 Feb 2005 10:10:53 +0100 Subject: delete images In-Reply-To: <20050211085517.99694.qmail@web26401.mail.ukl.yahoo.com> Message-ID: Hi, that depends on your platform/OS. For Windows, see the Mapserver FAQ: http://mapserver.gis.umn.edu/mapserver-FAQ.html#d45e120 If you use Mapserver in WMS mode, there won't be any images saved on harddisk. Best regards, Bart > Hi to all > Does anyone know how to delete created images from hard disc once they > have been used with some mapserver commands? > > It will be even better if I could just show the map created directly in > the webpage without having to save it. Can you do this with mapserver 4.4? > > Thank you > > Jose Luis > > > --------------------------------- > > From margottid at COMUNE.LUGO.RA.IT Fri Feb 11 01:10:08 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Fri, 11 Feb 2005 10:10:08 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <420C6EE4.6020808@startnet.cz> Message-ID: A SQL query (using psql) like this: SELECT * FROM ra_strade WHERE gid >= 0 ; (i.e., all 33000 records) outputed to a file, takes about 3 seconds. I will try debug options (decommenting and setting them to "true"), to see if there's something strange. Daniele -----Original Message----- From: Miroslav ?ulc [mailto:miroslav.sulc at startnet.cz] Sent: Friday, February 11, 2005 9:38 AM To: Daniele Margotti Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile And how long does it take when you perform some SELECTs with WHERE clause directly at the PosgreSQL server (with psql or something similar)? I don't know how to create PostGIS WHERE clauses so I cannot give you a tip but maybe someone can help or you can find an example somewhere. It would be best to issue the same query as mapserver does. I think that if the queries will take long time then the problem may be in PostgreSQL else the problem may be somewhere between mapserver and PostgreSQL or mapserver itself. You can also try to use some of these debug options in your postgresql.conf: #debug_print_parse = false #debug_print_rewritten = false #debug_print_plan = false #debug_pretty_print = false #log_connections = false #log_disconnections = false #log_duration = false I have PostgreSQL 8.0.1 and I don't know whether these options are present in your version. Some of these options look pretty interesting. Miroslav ?ulc Daniele Margotti wrote: >My connection string is: > >DATA "the_geom from my_table01" >CONNECTION "user=postgres dbname=my_database host=localhost port=5432" >CONNECTIONTYPE postgis > >Where can I find logs? >I installed PostgreSQL via RPMs, which did put the program in >/var/lib/pgsql: > ># ls -al /var/lib/pgsql/data/ >totale 52 >drwx------ 6 postgres postgres 4096 10 feb 16:37 . >drwx------ 4 postgres postgres 4096 10 feb 17:02 .. >drwx------ 5 postgres postgres 4096 10 feb 12:38 base >drwx------ 2 postgres postgres 4096 11 feb 09:09 global >drwx------ 2 postgres postgres 4096 8 feb 15:57 pg_clog >-rw------- 1 postgres postgres 2572 10 feb 10:13 pg_hba.conf >-rw------- 1 postgres postgres 1441 8 feb 15:58 pg_ident.conf >-rw------- 1 postgres postgres 4 8 feb 15:57 PG_VERSION >drwx------ 2 postgres postgres 4096 10 feb 13:09 pg_xlog >-rw------- 1 postgres postgres 5238 9 feb 14:03 postgresql.conf >-rw------- 1 postgres postgres 32 10 feb 15:17 postmaster.opts >-rw------- 1 postgres postgres 45 10 feb 15:17 postmaster.pid > >In pg_clog and pg_xlog I have no text logs, only data files that are >not comprehensible. > > Daniele > > From margottid at COMUNE.LUGO.RA.IT Fri Feb 11 01:30:16 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Fri, 11 Feb 2005 10:30:16 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <1108110549.4286.10.camel@friedrich.prometeo.it> Message-ID: In /var/log I only have a 0-byte pgsql file (but in my postgresql.conf I didn't set any debug option...). Inspecting top on the server (which normally is 100% idle), I can see that during elaboration of the map (/cgi-bin/mapserv?mode=browse) involved processes are "mapserv" and "postmaster", that use 100% CPU (sharing it in various %) for about 2 seconds. During query, the process "postmaster" monopolizes CPU with 99.9% load, for many seconds, during which sometimes appear "mapserv" and "httpd" processes: such situation starts when I click with the mouse and ends when the page is completely transmitted to the browser (I can see the page slowly composing, as if I had a 14.4 Kbps connection, instead of being LAN-connected!). With shapefile query, the page is instantaneously shown. Daniele -----Original Message----- From: Umberto Nicoletti [mailto:unicoletti at prometeo.it] Sent: Friday, February 11, 2005 9:29 AM To: Daniele Margotti Cc: Mapserver ML Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile They could be in /var/log then. Try running top on the server to see if there is load during the request and what process is causing it. Please make sure you understand how to index data in postgis. They have rather good documentation on how to speed up mapserver queries. Regards, Umberto On Fri, 2005-02-11 at 09:16 +0100, Daniele Margotti wrote: > My connection string is: > > DATA "the_geom from my_table01" > CONNECTION "user=postgres dbname=my_database host=localhost port=5432" > CONNECTIONTYPE postgis > > Where can I find logs? > I installed PostgreSQL via RPMs, which did put the program in > /var/lib/pgsql: > > # ls -al /var/lib/pgsql/data/ > totale 52 > drwx------ 6 postgres postgres 4096 10 feb 16:37 . > drwx------ 4 postgres postgres 4096 10 feb 17:02 .. > drwx------ 5 postgres postgres 4096 10 feb 12:38 base > drwx------ 2 postgres postgres 4096 11 feb 09:09 global > drwx------ 2 postgres postgres 4096 8 feb 15:57 pg_clog > -rw------- 1 postgres postgres 2572 10 feb 10:13 pg_hba.conf > -rw------- 1 postgres postgres 1441 8 feb 15:58 pg_ident.conf > -rw------- 1 postgres postgres 4 8 feb 15:57 PG_VERSION > drwx------ 2 postgres postgres 4096 10 feb 13:09 pg_xlog > -rw------- 1 postgres postgres 5238 9 feb 14:03 postgresql.conf > -rw------- 1 postgres postgres 32 10 feb 15:17 postmaster.opts > -rw------- 1 postgres postgres 45 10 feb 15:17 postmaster.pid > > In pg_clog and pg_xlog I have no text logs, only data files that are > not comprehensible. > > Daniele > > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Umberto Nicoletti > Sent: Friday, February 11, 2005 8:29 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > Ciao Daniele, > Could be a name resolution problem. Are you using an ip address or a > host name to specify the postgres connection string? If you are using > a name please make sure that it can be resolved correctly by > registering it in dns and/or in the /etc/hosts file. > > Did you try localhost in the connection string? > Also have a look at the log files in /var/lib/postgres/data. > > HTH, > Umberto > > On Thu, 2005-02-10 at 17:01 +0100, Daniele Margotti wrote: > > Yes, Mapserver is in the same computer of PostGIS: a Linux Red Hat > > 9. Computer is rather fast: I can dump a 33000-row table (14 Mb > > dumped to > > file) in about 3 seconds. > > > > And also when I connect from a Windows XP (via Lan) using ODBC > > drivers, data are read very fast. > > > > Only Mapserver is slow... > > > > Daniele > > > > > > >-----Original Message----- > > >From: UMN MapServer Users List > > >[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Lyndon Tiu > > >Sent: Thursday, February 10, 2005 4:36 PM > > >To: MAPSERVER-USERS at LISTS.UMN.EDU > > >Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > > > > > > >On February 10, 2005 02:03 am, Daniele Margotti wrote: > > >> Hi all, > > >> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) > > >> alternately with data stored in shapefiles and PostGIS (imported > > >> from > > > > >> these shapefiles). > > >> > > >> My query (304 elements on 5 layers) takes 5 seconds (elaboration, > > >> and > > > > >> then output on browser) if data are read from shapefiles, and > > >> about > > 50 > > >> seconds if data are read from PostGIS. > > >> > > >> The query is the same: I simply press "reload" on my browser > > >> (after > > > >> manually changed .map file and query template files) to be sure > > >> of it... > > >> > > >> Is it normal? > > >> > > > > > >Is Postgis in the same computer as mapserver? > > > > > >-- > > >Lyndon Tiu > > > > -- > Umberto Nicoletti > Prometeo SRL -- Umberto Nicoletti Prometeo SRL From pinted at TISCALI.BE Fri Feb 11 01:38:36 2005 From: pinted at TISCALI.BE (Didrik Pinte) Date: Fri, 11 Feb 2005 10:38:36 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <003101c5101c$4c0b8800$041410ac@comune.lugo.ra.it> Message-ID: Le vendredi 11 f?vrier 2005 ? 10:30 +0100, Daniele Margotti a ?crit : > In /var/log I only have a 0-byte pgsql file (but in my postgresql.conf I > didn't set any debug option...). > > Inspecting top on the server (which normally is 100% idle), I can see > that during elaboration of the map (/cgi-bin/mapserv?mode=browse) > involved processes are "mapserv" and "postmaster", that use 100% CPU > (sharing it in various %) for about 2 seconds. > > During query, the process "postmaster" monopolizes CPU with 99.9% load, > for many seconds, during which sometimes appear "mapserv" and "httpd" > processes: such situation starts when I click with the mouse and ends > when the page is completely transmitted to the browser (I can see the > page slowly composing, as if I had a 14.4 Kbps connection, instead of > being LAN-connected!). > > With shapefile query, the page is instantaneously shown. > > Daniele From rom my point of view, the problem can be one of the following [1] The query in Pg returns a lot of objects (maybe not drawn) so that the image creation is slow. [2] You need to increase the memory (shared_buffers, sort_mem) --> see how to tune postgres. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From joseluismapserver at YAHOO.ES Fri Feb 11 01:45:28 2005 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Fri, 11 Feb 2005 10:45:28 +0100 Subject: delete images In-Reply-To: <23784.212.238.227.182.1108113053.squirrel@212.238.227.182> Message-ID: I work in Linux and with java. What i do now is to save the mao i have created wih imageObj img img.save("path/mymap.png",map) and the read it to display it on the web page. After displaying I wanted to delete it. Thanks Jose Luis Bart van den Eijnden wrote: Hi, that depends on your platform/OS. For Windows, see the Mapserver FAQ: http://mapserver.gis.umn.edu/mapserver-FAQ.html#d45e120 If you use Mapserver in WMS mode, there won't be any images saved on harddisk. Best regards, Bart > Hi to all > Does anyone know how to delete created images from hard disc once they > have been used with some mapserver commands? > > It will be even better if I could just show the map created directly in > the webpage without having to save it. Can you do this with mapserver 4.4? > > Thank you > > Jose Luis > > > --------------------------------- > > --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri Feb 11 01:53:29 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 11 Feb 2005 10:53:29 +0100 Subject: delete images In-Reply-To: <20050211094528.25929.qmail@web26406.mail.ukl.yahoo.com> Message-ID: Hi, your Java code can't delete it, since it does not know when the user/browser is finished with the image. So you need to do something like a cron job or use the tmpwatch utility to clean out the directory at set times. Hope this helps. Best regards, Bart > I work in Linux and with java. > What i do now is to save the mao i have created wih imageObj img > img.save("path/mymap.png",map) and the read it to display it on the web > page. > After displaying I wanted to delete it. > > Thanks > > Jose Luis > > Bart van den Eijnden wrote: > Hi, > > that depends on your platform/OS. > > For Windows, see the Mapserver FAQ: > > http://mapserver.gis.umn.edu/mapserver-FAQ.html#d45e120 > > If you use Mapserver in WMS mode, there won't be any images saved on > harddisk. > > Best regards, > Bart > >> Hi to all >> Does anyone know how to delete created images from hard disc once they >> have been used with some mapserver commands? >> >> It will be even better if I could just show the map created directly in >> the webpage without having to save it. Can you do this with mapserver >> 4.4? >> >> Thank you >> >> Jose Luis >> >> >> --------------------------------- >> >> > > > --------------------------------- > > From pinted at TISCALI.BE Fri Feb 11 02:03:17 2005 From: pinted at TISCALI.BE (Didrik Pinte) Date: Fri, 11 Feb 2005 11:03:17 +0100 Subject: delete images In-Reply-To: <20050211094528.25929.qmail@web26406.mail.ukl.yahoo.com> Message-ID: Le vendredi 11 f?vrier 2005 ? 10:45 +0100, Jose Luis Gonzalez a ?crit : > I work in Linux and with java. > What i do now is to save the mao i have created wih imageObj img > img.save("path/mymap.png",map) and the read it to display it on the > web page. > After displaying I wanted to delete it. > > Thanks > > Jose Luis Use this in a cron job (every 5 minutes, or every hour, or every day depending on your server hits) : find /.../mapserver/tmp -name '*.png' -mmin +5 -exec rm -rf {} \; it will only delete files older than 5 minutes. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From schuyler at NOCAT.NET Fri Feb 11 02:09:56 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Fri, 11 Feb 2005 02:09:56 -0800 Subject: libcurl dependencies with Fedora Linux In-Reply-To: <733011464.20050211002119@umn.edu> Message-ID: * On 10-Feb-2005 at 10:34PM PST, Dale Trexel said: > > I previously downloaded curl from the Fedora rpm download site and > ended up with libcurl.so.3 rather than libcurl.so.2. Do I have to go > back to an earlier version of curl, or can MapServer handle > libcurl.so.3 with some effort on my part? My suggestion is to rebuild the MapServer SRPM. $ rpmbuild --rebuild mapserver-4.4.1.src.rpm Doing so will link the new binary RPM against the version of curl on your system. At some point I will create a separate archive on mappinghacks.com for Fedora Core 3 RPMs. SDE From margottid at COMUNE.LUGO.RA.IT Fri Feb 11 02:13:08 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Fri, 11 Feb 2005 11:13:08 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <1108114717.20995.12.camel@geru-itea> Message-ID: >-----Original Message----- >From: Didrik Pinte [mailto:pinted at tiscali.be] >Sent: Friday, February 11, 2005 10:39 AM >To: Daniele Margotti >Cc: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > >Le vendredi 11 f?vrier 2005 ? 10:30 +0100, Daniele Margotti a ?crit : >> In /var/log I only have a 0-byte pgsql file (but in my postgresql.conf >> I didn't set any debug option...). >> >> Inspecting top on the server (which normally is 100% idle), I can see >> that during elaboration of the map (/cgi-bin/mapserv?mode=browse) >> involved processes are "mapserv" and "postmaster", that use 100% CPU >> (sharing it in various %) for about 2 seconds. >> >> During query, the process "postmaster" monopolizes CPU with 99.9% >> load, for many seconds, during which sometimes appear "mapserv" and >> "httpd" >> processes: such situation starts when I click with the mouse and ends >> when the page is completely transmitted to the browser (I can see the >> page slowly composing, as if I had a 14.4 Kbps connection, instead of >> being LAN-connected!). >> >> With shapefile query, the page is instantaneously shown. >> >> Daniele > >From rom my point of view, the problem can be one of the following > >[1] The query in Pg returns a lot of objects (maybe not drawn) so that the image creation is slow. Do you mean "the PAGE creation"? Image creation (i.e., browsing the map) is fast. Even if I query only few elements (e.g.: 2 o 3) the query page creation is fast. But when elements are some hundreds, querying shapefiles is faster then PostGIS. > >[2] You need to increase the memory (shared_buffers, sort_mem) --> see how to tune postgres. > I'll try. Thank you, Daniele From kevin.sweeney at UNN.AC.UK Fri Feb 11 04:25:30 2005 From: kevin.sweeney at UNN.AC.UK (kevin.sweeney) Date: Fri, 11 Feb 2005 12:25:30 -0000 Subject: MapServer requirements Message-ID: Hello all. I am thinking of using MapServer for an application I need to build but was wondering what the minimum software and hardware requirements were to install it on my computer. Hope you can help. Kevin. ==== This e-mail is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. Please reply to this e-mail to highlight the error. You should also be aware that all electronic mail from, to, or within Northumbria University may be the subject of a request under the Freedom of Information Act 2000 and related legislation, and therefore may be required to be disclosed to third parties. This e-mail and attachments have been scanned for viruses prior to leaving Northumbria University. Northumbria University will not be liable for any losses as a result of any viruses being passed on. From pinted at TISCALI.BE Fri Feb 11 05:04:39 2005 From: pinted at TISCALI.BE (Didrik Pinte) Date: Fri, 11 Feb 2005 14:04:39 +0100 Subject: MapServer requirements In-Reply-To: <2792F778DC79D411A86500508BCF83CAFC2B7F@anchorage.unn.ac.uk> Message-ID: Le vendredi 11 f?vrier 2005 ? 12:25 +0000, kevin.sweeney a ?crit : > Hello all. > > I am thinking of using MapServer for an application I need to build but was > wondering what the minimum software and hardware requirements were to > install it on my computer. > > Hope you can help. > > Kevin. I'm running a mapserver using somes rasters and somes shapefiles (Total 10 layers) on a single board computer (Transmeta 800Mhz - 64Mb RAM ...). It runs perfectly well ;-) Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Ceci est une partie de message num?riquement sign?e URL: From lehrs at ERAU.EDU Fri Feb 11 05:25:41 2005 From: lehrs at ERAU.EDU (Steve Lehr) Date: Fri, 11 Feb 2005 08:25:41 -0500 Subject: MapServer requirements In-Reply-To: <2792F778DC79D411A86500508BCF83CAFC2B7F@anchorage.unn.ac.uk> Message-ID: Endurance :-) Its free and lightning fast. But you definitely have to be willing to struggle a bit to make it work. As with any flexible, powerful tool there are many uses; each use is not exactly spelled out in the documentation, as each of us has our own user needs and experience levels. Map server provides an excellent foundation and rich API to allow you to accomplish many mapping applications - both static and dynamic. I've been using it 4 years now from 3.5 .. on a variety of single/multiple CPU boxes and OS's. It depends on what you want to do, which should be your first step. Identifying what you want to do. Good questions get good answers. Steven Lehr Assistant Professor Freshmen Program College of Engineering Embry-Riddle Aeronautical University (LB159) 600 S. Clyde Morris Blvd. Daytona Beach, FL 32114-3900 386-226-7740 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of kevin.sweeney Sent: Friday, February 11, 2005 7:26 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer requirements Hello all. I am thinking of using MapServer for an application I need to build but was wondering what the minimum software and hardware requirements were to install it on my computer. Hope you can help. Kevin. ==== This e-mail is intended solely for the addressee. It may contain private and confidential information. If you are not the intended addressee, please take no action based on it nor show a copy to anyone. Please reply to this e-mail to highlight the error. You should also be aware that all electronic mail from, to, or within Northumbria University may be the subject of a request under the Freedom of Information Act 2000 and related legislation, and therefore may be required to be disclosed to third parties. This e-mail and attachments have been scanned for viruses prior to leaving Northumbria University. Northumbria University will not be liable for any losses as a result of any viruses being passed on. From aborruso at TIN.IT Fri Feb 11 06:00:47 2005 From: aborruso at TIN.IT (andy) Date: Fri, 11 Feb 2005 15:00:47 +0100 Subject: OT: Google maps Message-ID: Dear all, do you have seen google maps (http://maps.google.com/maps) ?? Cheers, Andrea From bonk at EOSDATA.GSFC.NASA.GOV Fri Feb 11 06:25:33 2005 From: bonk at EOSDATA.GSFC.NASA.GOV (John Bonk) Date: Fri, 11 Feb 2005 09:25:33 -0500 Subject: extent is invalid for geotiff In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCBE6@ptolemy.topozone.co m> Message-ID: Ed, Thanks again for all your help. The image fills up the entire img space in the HTML template. I was the one who originally input the garbage . When I cut and pasted the EXTENT into the map file, I copied the upper left and lower right corners instead lower left, upper right. When that didn't work I tried every possible permutation of those numbers and never thought to look back at the output from listgeo. So this was all the result of a stupid mistake on my part. Once again, thank you for you help, John At 18:49 2005-02-10 -0500, Ed McNierney wrote: >John - > >OK - it sounds like you made a good diagnosis. If the PNG image looks >the same in a viewer application as it does in the HTML template output >from MapServer, then you don't have template problems. > >And you've also demonstrated that you can clearly and accurately follow >instructions. This is an excellent skill. You would, therefore, do >well to acquire instructions that are correct ! > >I made a typo in the EXTENT line I gave you, and you faithfully >duplicated that typo in your map file. That's the problem - your X >extent in the map file is much larger than your image's real extents. > >The MAXX value (the third number) from your listgeo output is >-9325729.471, but I typed it as -932579.471, omitting the "2" that >should be in the tens place. This made the maximum X value a much >larger number than it should be, and MapServer is correctly generating a >map of those (large) extents, with your GeoTIFF occupying a little bitty >patch on the left. > >GIGO, as they used to say.... > > - Ed > >Ed McNierney >President and Chief Mapmaker >TopoZone.com / Maps a la carte, Inc. >73 Princeton Street, Suite 305 >North Chelmsford, MA 01863 >(978) 251-4242 > > >-----Original Message----- >From: John Bonk [mailto:bonk at eosdata.gsfc.nasa.gov] >Sent: Thursday, February 10, 2005 5:31 PM >To: "Ed McNierney" >Subject: RE: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > >Ed, > >Once again, thank you very much for your reply. Please see below for >answers to you questions embedded in your reply, > >John > >At 16:44 2005-02-10 -0500, Ed McNierney wrote: > >John - > > > >You may have two separate problems, one of which may be a non-problem. > > > >1. If the image is "smaller than [you] would expect, and offset > >vertically", could that simply be because the EXTENT is slightly larger > >than the geographic extent of the image, and offset vertically? Try > >adjusting the numbers in the EXTENT line. If you view the TIFF image >in > >an image viewer, does the imagery fill the frame, or is there blank > >space around it? > >When viewed in an image viewer, the geotiff image fills the entire >frame. > > >2. In your HTML template, you have somewhere an tag to display >the > >map, which looks something like . Is there a HEIGHT > >and WIDTH field in that tag? Are they 300 and 400, respectively? If > >those values don't match the SIZE in your map file, you're asking to > >display the image at a different size than it was produced, which will > >give odd results. > >The dimensions in the img tag in the HTML doc match the SIZE in the map >file. >BTW, the only reason I mention the png image, is that I can send it to a > >viewer >where I can obviously see that the geotiff is left justified and >displaced >downward. >It looks the same way in my browser when serving the map in map mode but >its >not as obvious without the frame. BTW, the geotiff part of the png is a >bad >fit, it >covers only about 10% of the area of the png. If the png were a >tictactoe >board, >the geotiff does not quite cover the rectangle in the first column >second row. > >We tried playing around with the extent with mixed success. Well try >again and >let you know. > > > - 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: John Bonk [mailto:bonk at eosdata.gsfc.nasa.gov] > >Sent: Thursday, February 10, 2005 3:55 PM > >To: Ed McNierney; John Bonk; MAPSERVER-USERS at LISTS.UMN.EDU > >Subject: RE: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > > > >Ed, > > > >Thank you again for responding to my question. > > > >I'm still having problems understanding extent. > > > >When I serve up my geotiff with your extent using > > > >MAP > > IMAGETYPE PNG > > EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > > > SIZE 400 300 > > SHAPEPATH "data" > > > > LAYER # MODIS raster layer begins here > > NAME modis > > DATA RGB_mosaic_250m.tif > > STATUS DEFAULT > > TYPE RASTER > > END # MODIS raster layer ends here > > > >END # end of map file > > > >I end up with an image that is smaller than I would expect, and offset > >vertically. > > > >If I add an html template to the above and serve the geotiff in the > >browse mode, the image in the geotiff occupies a very small area in the > >png that is produced. The geotiff image is left justified and centered > >vertically in the png. > > > >Can anyone explain why this is? How can I get the geotiff image to >fill > >the entire png? > > > >John > > > > > > > >At 09:41 2005-02-08 -0500, Ed McNierney wrote: > > >John - > > > > > >No, there isn't any preferred method. A GeoTIFF will hold >projection, > > >datum, and bounding box information in a way that can be read by > > >MapServer. As long as the GeoTIFF is created properly (i.e. you >can't > > >leave out the projection) the coordinate formats used don't matter. > > > > > > - 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 Bonk > > >Sent: Monday, February 07, 2005 11:39 AM > > >To: MAPSERVER-USERS at LISTS.UMN.EDU > > >Subject: Re: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > > > > > >Ed, > > > > > >Thank you, that worked. I seems obvious now when I look back at the > > >documentation. > > > > > >Perhaps someone can answer another question. In creating geotiffs, >is > > >there a preferred way of specify coordinates (degrees, UTM, etc) so > > >that the image will work well with MapServer? > > > > > >Thanks again for the response, > > >John > > >At 23:10 2005-02-04 -0500, Ed McNierney wrote: > > > >John - > > > > > > > >If that's the only data layer in your map, ignore PROJECTION > > > >completely, at least for now. > > > > > > > >Have you tried an EXTENT of: > > > > > > > >EXTENT -13053641.3 3358256.867 -932579.471 5752577.812 > > > > > > > > - Ed > > > > > > > >Ed McNierney > > > >TopoZone.com > > > > > > > >-----Original Message----- > > > >From: UMN MapServer Users List >[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > >On Behalf Of John Bonk > > > >Sent: Friday, February 04, 2005 5:08 PM > > > >To: MAPSERVER-USERS at LISTS.UMN.EDU > > > >Subject: [UMN_MAPSERVER-USERS] extent is invalid for geotiff > > > > > > > >I am very new at this. I am having problems serving a geotiff >image > > > >with the following attributes: > > > > > > > >Projection Method: CT_Equirectangular > > > > ProjCenterLatGeoKey: 0.000000 ( 0d 0' 0.00"N) > > > > ProjCenterLongGeoKey: 0.000000 ( 0d 0' 0.00"E) > > > > ProjFalseEastingGeoKey: 0.000000 m > > > > ProjFalseNorthingGeoKey: 0.000000 m > > > > > > > >Corner Coordinates: > > > >Upper Left (-13053641.300,5752577.812) > > > >Lower Left (-13053641.300,3358256.867) > > > >Upper Right (-9325729.471,5752577.812) > > > >Lower Right (-9325729.471,3358256.867) > > > >Center (-11189685.386,4555417.340) > > > > > > > >I have tried all sorts of variation of these number in the EXTENT > > > >field > > > > > > >but I have been getting an 'extent is invalid' message. > > > > > > > >Can anyone help me express the EXTENT and PROJECTION to read this > >file? > > > > > > > >John > > > >======================================= > > > > > > > >======================================= > >======================================= >John Bonk >SSAI/NASA GES DISC >Phone:(301) 614-5280 >Fax: (301) 614-5268 >For more information about >the NASA GES DISC and its services: >http://daac.gsfc.nasa.gov/ ======================================= John Bonk SSAI/NASA GES DISC Phone:(301) 614-5280 Fax: (301) 614-5268 For more information about the NASA GES DISC and its services: http://daac.gsfc.nasa.gov/ From woodbri at SWOODBRIDGE.COM Fri Feb 11 06:33:34 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 11 Feb 2005 09:33:34 -0500 Subject: MapServer requirements In-Reply-To: <2792F778DC79D411A86500508BCF83CAFC2B7F@anchorage.unn.ac.uk> Message-ID: kevin.sweeney wrote: > Hello all. > > I am thinking of using MapServer for an application I need to build but was > wondering what the minimum software and hardware requirements were to > install it on my computer. Kevin, The software is pretty straight forward with respect to requirements and will depend on what features you plan to use. Read the installation guides on the website. I assume you have downloaded it somewhere and have some knowledge of how to install it. Probably the biggest issues he is what OS are you planning on using, Windows, Linux, FreeBSD, other. As for hardware, this is a harder question to answer because you have not provided enough information. Like, what kind of data are you serving, how much data will you have, what is the application, how many hits do you expect to server during peak loads, what kind of response time are you looking for, how much redundancy is required, etc. -Steve W. From janeks.kamerovskis at SILVA.LV Fri Feb 11 06:43:29 2005 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 11 Feb 2005 16:43:29 +0200 Subject: query optimal rote between two points in road network Message-ID: Hello List! Is it possible to do in MapServ for subj.? Where could I find simple algoritm decription for routing optimization? Any links, coments, ideas! Looking forward ... , Janeks From woodbri at SWOODBRIDGE.COM Fri Feb 11 06:45:37 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 11 Feb 2005 09:45:37 -0500 Subject: query optimal rote between two points in road network In-Reply-To: Message-ID: Janeks Kamerovskis wrote: > Hello List! > > Is it possible to do in MapServ for subj.? No, mapserver does not support doing that. > Where could I find simple algoritm decription for routing optimization? Start by searching for "shortest path algorithm" using google. > Any links, coments, ideas! Check out my site http://imaptools.com/ -Steve W. From pramsey at REFRACTIONS.NET Fri Feb 11 08:02:18 2005 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Fri, 11 Feb 2005 08:02:18 -0800 Subject: PostGIS vs. Shapefile In-Reply-To: <003101c5101c$4c0b8800$041410ac@comune.lugo.ra.it> Message-ID: I believe I see the problem here, which is one of language and terminology. I was baffled by this thread for a number of days, as I suppose all the participants were, since PostGIS should not be much different than Shape files for performance. Daniele, to confirm my understanding: - When you draw a map in mapserver map mode or browse mode with mapserver/postgis it is just as fast as mapserver/shape. - When you draw a map or run a query in mapserver query or nquery mode, it is quite a bit slower than mapserver/shape. The source of confusion here seems to be the use of the work "query". Of course, when drawing maps the postgis connection generates queries against the database, no matter what the mode. But you are referring to a problem specifically with the speed of your mapserver in query/nquery mode? CREATE INDEX table_oid_idx ON table (oid); You only need two indexes for your table: - a spatial index on your spatial column - an oid index You optionally should have an index on any attribute you are querying against in itemquery mode. The first index makes map drawing faster. The second index allows queries to function quickly given mapserver's funny two-phase query system. Please add an issue to bugzilla that indicates that the mapserver/postgis query mechanism should be upgraded to automatically use the primary key on a table if such a key exists. Thanks. Paul On 11-Feb-05, at 1:30 AM, Daniele Margotti wrote: > In /var/log I only have a 0-byte pgsql file (but in my postgresql.conf > I > didn't set any debug option...). > > Inspecting top on the server (which normally is 100% idle), I can see > that during elaboration of the map (/cgi-bin/mapserv?mode=browse) > involved processes are "mapserv" and "postmaster", that use 100% CPU > (sharing it in various %) for about 2 seconds. > > During query, the process "postmaster" monopolizes CPU with 99.9% load, > for many seconds, during which sometimes appear "mapserv" and "httpd" > processes: such situation starts when I click with the mouse and ends > when the page is completely transmitted to the browser (I can see the > page slowly composing, as if I had a 14.4 Kbps connection, instead of > being LAN-connected!). > > With shapefile query, the page is instantaneously shown. > > Daniele > > > -----Original Message----- > From: Umberto Nicoletti [mailto:unicoletti at prometeo.it] > Sent: Friday, February 11, 2005 9:29 AM > To: Daniele Margotti > Cc: Mapserver ML > Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > They could be in /var/log then. > Try running top on the server to see if there is load during the > request > and what process is causing it. > > Please make sure you understand how to index data in postgis. They have > rather good documentation on how to speed up mapserver queries. > > Regards, > Umberto > > On Fri, 2005-02-11 at 09:16 +0100, Daniele Margotti wrote: >> My connection string is: >> >> DATA "the_geom from my_table01" >> CONNECTION "user=postgres dbname=my_database host=localhost port=5432" > >> CONNECTIONTYPE postgis >> >> Where can I find logs? >> I installed PostgreSQL via RPMs, which did put the program in >> /var/lib/pgsql: >> >> # ls -al /var/lib/pgsql/data/ >> totale 52 >> drwx------ 6 postgres postgres 4096 10 feb 16:37 . >> drwx------ 4 postgres postgres 4096 10 feb 17:02 .. >> drwx------ 5 postgres postgres 4096 10 feb 12:38 base >> drwx------ 2 postgres postgres 4096 11 feb 09:09 global >> drwx------ 2 postgres postgres 4096 8 feb 15:57 pg_clog >> -rw------- 1 postgres postgres 2572 10 feb 10:13 pg_hba.conf >> -rw------- 1 postgres postgres 1441 8 feb 15:58 pg_ident.conf >> -rw------- 1 postgres postgres 4 8 feb 15:57 PG_VERSION >> drwx------ 2 postgres postgres 4096 10 feb 13:09 pg_xlog >> -rw------- 1 postgres postgres 5238 9 feb 14:03 > postgresql.conf >> -rw------- 1 postgres postgres 32 10 feb 15:17 > postmaster.opts >> -rw------- 1 postgres postgres 45 10 feb 15:17 postmaster.pid >> >> In pg_clog and pg_xlog I have no text logs, only data files that are >> not comprehensible. >> >> Daniele >> >> >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On Behalf Of Umberto Nicoletti >> Sent: Friday, February 11, 2005 8:29 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile >> >> >> Ciao Daniele, >> Could be a name resolution problem. Are you using an ip address or a >> host name to specify the postgres connection string? If you are using >> a name please make sure that it can be resolved correctly by >> registering it in dns and/or in the /etc/hosts file. >> >> Did you try localhost in the connection string? >> Also have a look at the log files in /var/lib/postgres/data. >> >> HTH, >> Umberto >> >> On Thu, 2005-02-10 at 17:01 +0100, Daniele Margotti wrote: >>> Yes, Mapserver is in the same computer of PostGIS: a Linux Red Hat >>> 9. Computer is rather fast: I can dump a 33000-row table (14 Mb >>> dumped to >>> file) in about 3 seconds. >>> >>> And also when I connect from a Windows XP (via Lan) using ODBC >>> drivers, data are read very fast. >>> >>> Only Mapserver is slow... >>> >>> Daniele >>> >>> >>>> -----Original Message----- >>>> From: UMN MapServer Users List >>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>> On Behalf Of Lyndon Tiu >>>> Sent: Thursday, February 10, 2005 4:36 PM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile >>>> >>>> >>>> On February 10, 2005 02:03 am, Daniele Margotti wrote: >>>>> Hi all, >>>>> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) >>>>> alternately with data stored in shapefiles and PostGIS (imported >>>>> from >>> >>>>> these shapefiles). >>>>> >>>>> My query (304 elements on 5 layers) takes 5 seconds (elaboration, > >>>>> and >>> >>>>> then output on browser) if data are read from shapefiles, and >>>>> about >>> 50 >>>>> seconds if data are read from PostGIS. >>>>> >>>>> The query is the same: I simply press "reload" on my browser >>>>> (after >> >>>>> manually changed .map file and query template files) to be sure >>>>> of it... >>>>> >>>>> Is it normal? >>>>> >>>> >>>> Is Postgis in the same computer as mapserver? >>>> >>>> -- >>>> Lyndon Tiu >>>> >> -- >> Umberto Nicoletti >> Prometeo SRL > -- > Umberto Nicoletti > Prometeo SRL From John.C.Cartwright at NOAA.GOV Fri Feb 11 08:05:12 2005 From: John.C.Cartwright at NOAA.GOV (John C Cartwright) Date: Fri, 11 Feb 2005 09:05:12 -0700 Subject: mapserv segfaults In-Reply-To: <931f8ea905021013014c30955c@mail.gmail.com> Message-ID: Hello Frank, thanks for your suggestion, it seemed to be the key. I removed the "--with-tiff" argument to mapserver config and recompiled GDAL and mapserver. Seems to work fine now. When I get a chance, I'll go back and see if I can add the SDE support back into mapserver. Thanks again to you and the others on the list for all the help! -- john Frank Warmerdam wrote: > On Thu, 10 Feb 2005 13:57:58 -0700, John C Cartwright > wrote: > >>Any ideas on what I should try next? I specified >>--with-libtiff=internal --with-geotiff=internal in the GDAL config. If >>I specify a --with-tiff=DIR in the mapserver config, is that library >>used or the one in the GDAL config? > > > John, > > Generally speaking if you are using GDAL there is no reason to use > the --with-tiff option for MapServer. The built-in use of libtiff is not > nearly as flexible as using it through GDAL. > > If you build MapServer --without-tiff and if nothing else drags in > libtiff other than GDAL then you should be ok. If something else > is dragging in libtiff, then ensure you build GDAL to use the same > libtiff rather than it's internal copy. > > The key is to configure things to ensure there is only one libtiff > or your life can be hell. > > Best regards, From gireddy at GMAIL.COM Fri Feb 11 09:06:52 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Fri, 11 Feb 2005 11:06:52 -0600 Subject: OT: Google maps In-Reply-To: <420CBA8F.9080102@tin.it> Message-ID: Hi all, It looks great!, It seems everybody looking to implement map-applications. I entered into this area less than a year ago, I already enquired about a broad range of applications of mapping, I am graduating this summer, As far as I know our list-serv is 'the' best source for everything related to mapping, I want to take your advise about possible domains and good sources of job opertunities in this area. thank you, shashi. On Fri, 11 Feb 2005 15:00:47 +0100, andy wrote: > Dear all, > do you have seen google maps (http://maps.google.com/maps) ?? > > Cheers, > > Andrea > -- Shashi Kiran Reddy. Gireddy, Graduate Assistant, CBER, University of Alabama. http://www.cs.ua.edu/shashi Home: 205-752-5137 Cell: 205-657-1438 From temiz at DEPREM.GOV.TR Fri Feb 11 10:10:31 2005 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 11 Feb 2005 20:10:31 +0200 Subject: mapserver with java. Message-ID: hello I want to try mapserver with java. How should I compile mapserver ? regards Ahmet Temiz ______________________________________ XamimeLT - 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 jdenisgiguere at FASTMAIL.FM Fri Feb 11 10:15:13 2005 From: jdenisgiguere at FASTMAIL.FM (Jean-Denis Giguere) Date: Fri, 11 Feb 2005 13:15:13 -0500 Subject: query optimal rote between two points in road network In-Reply-To: Message-ID: Janeks Kamerovskis wrote: > Hello List! > > Is it possible to do in MapServ for subj.? > > Where could I find simple algoritm decription for routing optimization? > > Any links, coments, ideas! GRASS + Postgis + Mapserver may be a solution. I would try this certainly. You may also be interested by the library that GRASS use for network analysis : http://grass.itc.it/dglib/ I really like this topic. Please let me know if you go farther on this. Jean-Denis -- Jean-Denis Gigu??re ??tudiant en g??omatique appliqu??e ? l'environnement Stagiaire ? l'Agence de d??veloppement de r??seaux locaux de services de sant?? et de services sociaux de l'Estrie T??l. 829-3400 42008 Courriel. jdenisgiguere at fastmail.fm From pinted at TISCALI.BE Fri Feb 11 10:40:43 2005 From: pinted at TISCALI.BE (Didrik Pinte) Date: Fri, 11 Feb 2005 19:40:43 +0100 Subject: mapserver with java. In-Reply-To: <420CF517.2070304@deprem.gov.tr> Message-ID: Le vendredi 11 f?vrier 2005 ? 20:10 +0200, temiz a ?crit : > hello > > I want to try mapserver with java. > How should I compile mapserver ? > > regards > > Ahmet Temiz If you're running Debian, see the debian-gis project ! Didrik From jussi.rasinmaki at HELSINKI.FI Sat Feb 12 11:46:55 2005 From: jussi.rasinmaki at HELSINKI.FI (=?iso-8859-1?Q?Jussi_Rasinm=E4ki?=) Date: Sat, 12 Feb 2005 21:46:55 +0200 Subject: PHP MapScript installation problem Message-ID: Hei Andy, All the directories and files that I can see have any relevance for the matter have the r-x rights for others, so this shouldn't be a problem? Jussi ----- Original Message ----- From: "Andy Canfield" To: "Jussi Rasinm?ki" Sent: Friday, February 11, 2005 5:05 PM Subject: Re: [UMN_MAPSERVER-USERS] PHP MapScript installation problem Paiva Jussi. Have you checked the security settings on the directory mapserver is in within Apache to see what the permissions are? So far the biggest reason I have seen for library load failures is the directories security settings. On Fri, 11 Feb 2005 03:00:24 -0600, Jussi Rasinm?ki wrote: > My spanish is elementary, very elementary, but: > I've run the info.php with phpinfo() and the location of the php > configuration file corresponds to the one given by phpinfo() > > Jussi > > On Thu, 10 Feb 2005 14:06:05 -0600, Carlos Eduardo Sibaja Salazar > wrote: > > >Lo que tienes que hacer es correr primero un script que solo ejecute la > instrucci?n > >phpinfo(), de esta manera: > > > > > phpinfo(); > > ?> > > > >Si eso funciona entonces ver?s una serie de tablas con informaci?n sobre > php. Busca donde > >dice: "Configuration File (php.ini) Path", y aseg?rate de copiar el > >archivo > php.ini en esa > >direcci?n. > > > >Luego de eso ya puedes agregar la instrucci?n "dl(php_mapscript.so)" en > >el > script. > > > >Suerte. > > > >----- Mensaje original ----- > >De: jussi.rasinmaki at HELSINKI.FI > >Enviado: Jue 10/02/2005 12:05:43 AM > >Asunto: [UMN_MAPSERVER-USERS] PHP MapScript installation problem > > > >Hi, > > > >I've tried to install Mapserver with PHP Mapscript on Whitebox Linux 3, > >but > >have run into difficulties with PHP and php_mapscript.so. > >dl("php_mapscript.so") returns the following warning: > >Warning: dl(): Unable to load dynamic library > >'/usr/local/php/extensions/php_mapscript.so' - libclntsh.so.10.1: cannot > >open shared object file: No such file or directory in /var/www/html/info. > php > >on line 7 > > > >PHP 4.3.10 is installed using the following configuration: > >/configure --enable-shared --with-jpeg-dir=/usr --with-png-dir=/usr --with- > >zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi- > redire > >ct --with-config-file-path=/usr/local/php/ --prefix=/usr/local/php > > > >and the php.ini in /user/local/php has the following line: > >extension_dir = "/usr/local/php/extensions/" > > > >Mapserver is configured as: > >/configure --without-tiff --without-eppl --with-threads --with-proj --with- > >gdal --with-oraclespatial=/opt/app/oracle/product/10.1.0/Db_1 --with-php=/ > op > >t/app/mapserver/mapserver_libs/php-4.3.10 --with-gd=/usr/local --with- > freet > >ype=/usr/bin --with-wmsclient > > > >and the built php_mapscript.so is copied to /usr/local/php/extensions > > > >However, php-config --extension-dir returns > >/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429 > >which is a non-existing directory. > > > >What went wrong? > > > >Thanks, > >Jussi Rasinm?ki > > > > > >_______________________________________ > >Yo me registr? en www.costarricense.cr > From jussi.rasinmaki at HELSINKI.FI Sat Feb 12 12:24:20 2005 From: jussi.rasinmaki at HELSINKI.FI (=?iso-8859-1?Q?Jussi_Rasinm=E4ki?=) Date: Sat, 12 Feb 2005 22:24:20 +0200 Subject: PHP MapScript installation problem Message-ID: Yes, Mapserver was compiled with option --with-php=/opt/app/mapserver/mapserver_libs/php-4.3.10 which is the PHP version that's running. ----- Original Message ----- From: "Andy Canfield" To: "Jussi Rasinm?ki" Sent: Friday, February 11, 2005 10:18 PM Subject: Re: [UMN_MAPSERVER-USERS] PHP MapScript installation problem Hmmm have you checked to make sure the Php version you are running is the same one that Mapscript was compiled with? IE if you had both Php 3 and 4 on your machine and the compile linked 3 but you are running 4 that could probably cause this problem too. On Sat, 12 Feb 2005 21:46:55 +0200, Jussi Rasinm?ki wrote: > Hei Andy, > All the directories and files that I can see have any relevance for the > matter have the r-x rights for others, so this shouldn't be a problem? > Jussi > > ----- Original Message ----- > From: "Andy Canfield" > To: "Jussi Rasinm?ki" > Sent: Friday, February 11, 2005 5:05 PM > Subject: Re: [UMN_MAPSERVER-USERS] PHP MapScript installation problem > > Paiva Jussi. Have you checked the security settings on the directory > mapserver is in within Apache to see what the permissions are? So far > the biggest reason I have seen for library load failures is the > directories security settings. > > On Fri, 11 Feb 2005 03:00:24 -0600, Jussi Rasinm?ki > wrote: > > My spanish is elementary, very elementary, but: > > I've run the info.php with phpinfo() and the location of the php > > configuration file corresponds to the one given by phpinfo() > > > > Jussi > > > > On Thu, 10 Feb 2005 14:06:05 -0600, Carlos Eduardo Sibaja Salazar > > wrote: > > > > >Lo que tienes que hacer es correr primero un script que solo ejecute la > > instrucci?n > > >phpinfo(), de esta manera: > > > > > > > > phpinfo(); > > > ?> > > > > > >Si eso funciona entonces ver?s una serie de tablas con informaci?n > > >sobre > > php. Busca donde > > >dice: "Configuration File (php.ini) Path", y aseg?rate de copiar el > > >archivo > > php.ini en esa > > >direcci?n. > > > > > >Luego de eso ya puedes agregar la instrucci?n "dl(php_mapscript.so)" en > > >el > > script. > > > > > >Suerte. > > > > > >----- Mensaje original ----- > > >De: jussi.rasinmaki at HELSINKI.FI > > >Enviado: Jue 10/02/2005 12:05:43 AM > > >Asunto: [UMN_MAPSERVER-USERS] PHP MapScript installation problem > > > > > >Hi, > > > > > >I've tried to install Mapserver with PHP Mapscript on Whitebox Linux 3, > > >but > > >have run into difficulties with PHP and php_mapscript.so. > > >dl("php_mapscript.so") returns the following warning: > > >Warning: dl(): Unable to load dynamic library > > >'/usr/local/php/extensions/php_mapscript.so' - libclntsh.so.10.1: > > >cannot > > >open shared object file: No such file or directory in > > >/var/www/html/info. > > php > > >on line 7 > > > > > >PHP 4.3.10 is installed using the following configuration: > > >/configure --enable-shared --with-jpeg-dir=/usr --with-png-dir=/usr --with- > > >zlib --with-gd=/usr/local --with-freetype-dir=/usr --enable-force-cgi- > > redire > > >ct --with-config-file-path=/usr/local/php/ --prefix=/usr/local/php > > > > > >and the php.ini in /user/local/php has the following line: > > >extension_dir = "/usr/local/php/extensions/" > > > > > >Mapserver is configured as: > > >/configure --without-tiff --without-eppl --with-threads --with-proj --with- > > >gdal --with-oraclespatial=/opt/app/oracle/product/10.1.0/Db_1 --with-php=/ > > op > > >t/app/mapserver/mapserver_libs/php-4.3.10 --with-gd=/usr/local --with- > > freet > > >ype=/usr/bin --with-wmsclient > > > > > >and the built php_mapscript.so is copied to /usr/local/php/extensions > > > > > >However, php-config --extension-dir returns > > >/usr/local/php/lib/php/extensions/no-debug-non-zts-20020429 > > >which is a non-existing directory. > > > > > >What went wrong? > > > > > >Thanks, > > >Jussi Rasinm?ki > > > > > > > > >_______________________________________ > > >Yo me registr? en www.costarricense.cr > > > > From bpicinbono at WORLDONLINE.FR Fri Feb 11 15:54:50 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Sat, 12 Feb 2005 00:54:50 +0100 Subject: MapServer on Zaurus Linux In-Reply-To: <1108030697.14910.7.camel@geru-itea> Message-ID: Hi, same question, more answers ? or mapserver on other pocket pc like ? many tks blaise > -----Original Message----- > From: Hisaji Ono [mailto:hi_ono2001 at ybb.ne.jp] > Sent: Thursday, February 06, 2003 1:11 PM > To: mapserver-users at lists.gis.umn.edu > Subject: [Mapserver-users] MapServer on Zaurus Linux > > > Does someone try to build MapServer on Sharp Zaurus Linux? > > Thanks. > From lsnagu at YAHOO.COM Sat Feb 12 00:12:37 2005 From: lsnagu at YAHOO.COM (vdharan) Date: Sat, 12 Feb 2005 02:12:37 -0600 Subject: Find location name Message-ID: Hi, We are developing an application for tracking vehicles. Iam using Mapscript and PHP. The vehicles sends the location (lat & long) info. This info is sent to the server and the loation of the vehicles are displayed on a map. Now i want to find out the area name or closest land mark using the location info. I dont know how to get this info from the shape files. Can any one tell me how to extract this info. With Regards, vdharan From margottid at COMUNE.LUGO.RA.IT Sat Feb 12 02:40:46 2005 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Sat, 12 Feb 2005 11:40:46 +0100 Subject: PostGIS vs. Shapefile In-Reply-To: <216d45c950d12b40f8a68e91a9f23ee8@refractions.net> Message-ID: You were absolutely right! :-) I mean about language/terminology, and about the need of an oid index. Now query/nquery with PostGIS is as fast as if I use shapefile. Thank you very much! Daniele P.S.: I'll add an issue to bugzilla, as you told. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Ramsey Sent: Friday, February 11, 2005 5:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile I believe I see the problem here, which is one of language and terminology. I was baffled by this thread for a number of days, as I suppose all the participants were, since PostGIS should not be much different than Shape files for performance. Daniele, to confirm my understanding: - When you draw a map in mapserver map mode or browse mode with mapserver/postgis it is just as fast as mapserver/shape. - When you draw a map or run a query in mapserver query or nquery mode, it is quite a bit slower than mapserver/shape. The source of confusion here seems to be the use of the work "query". Of course, when drawing maps the postgis connection generates queries against the database, no matter what the mode. But you are referring to a problem specifically with the speed of your mapserver in query/nquery mode? CREATE INDEX table_oid_idx ON table (oid); You only need two indexes for your table: - a spatial index on your spatial column - an oid index You optionally should have an index on any attribute you are querying against in itemquery mode. The first index makes map drawing faster. The second index allows queries to function quickly given mapserver's funny two-phase query system. Please add an issue to bugzilla that indicates that the mapserver/postgis query mechanism should be upgraded to automatically use the primary key on a table if such a key exists. Thanks. Paul On 11-Feb-05, at 1:30 AM, Daniele Margotti wrote: > In /var/log I only have a 0-byte pgsql file (but in my postgresql.conf > I didn't set any debug option...). > > Inspecting top on the server (which normally is 100% idle), I can see > that during elaboration of the map (/cgi-bin/mapserv?mode=browse) > involved processes are "mapserv" and "postmaster", that use 100% CPU > (sharing it in various %) for about 2 seconds. > > During query, the process "postmaster" monopolizes CPU with 99.9% > load, for many seconds, during which sometimes appear "mapserv" and > "httpd" > processes: such situation starts when I click with the mouse and ends > when the page is completely transmitted to the browser (I can see the > page slowly composing, as if I had a 14.4 Kbps connection, instead of > being LAN-connected!). > > With shapefile query, the page is instantaneously shown. > > Daniele > > > -----Original Message----- > From: Umberto Nicoletti [mailto:unicoletti at prometeo.it] > Sent: Friday, February 11, 2005 9:29 AM > To: Daniele Margotti > Cc: Mapserver ML > Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile > > > They could be in /var/log then. > Try running top on the server to see if there is load during the > request and what process is causing it. > > Please make sure you understand how to index data in postgis. They > have rather good documentation on how to speed up mapserver queries. > > Regards, > Umberto > > On Fri, 2005-02-11 at 09:16 +0100, Daniele Margotti wrote: >> My connection string is: >> >> DATA "the_geom from my_table01" >> CONNECTION "user=postgres dbname=my_database host=localhost >> port=5432" > >> CONNECTIONTYPE postgis >> >> Where can I find logs? >> I installed PostgreSQL via RPMs, which did put the program in >> /var/lib/pgsql: >> >> # ls -al /var/lib/pgsql/data/ >> totale 52 >> drwx------ 6 postgres postgres 4096 10 feb 16:37 . >> drwx------ 4 postgres postgres 4096 10 feb 17:02 .. >> drwx------ 5 postgres postgres 4096 10 feb 12:38 base >> drwx------ 2 postgres postgres 4096 11 feb 09:09 global >> drwx------ 2 postgres postgres 4096 8 feb 15:57 pg_clog >> -rw------- 1 postgres postgres 2572 10 feb 10:13 pg_hba.conf >> -rw------- 1 postgres postgres 1441 8 feb 15:58 pg_ident.conf >> -rw------- 1 postgres postgres 4 8 feb 15:57 PG_VERSION >> drwx------ 2 postgres postgres 4096 10 feb 13:09 pg_xlog >> -rw------- 1 postgres postgres 5238 9 feb 14:03 > postgresql.conf >> -rw------- 1 postgres postgres 32 10 feb 15:17 > postmaster.opts >> -rw------- 1 postgres postgres 45 10 feb 15:17 postmaster.pid >> >> In pg_clog and pg_xlog I have no text logs, only data files that are >> not comprehensible. >> >> Daniele >> >> >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On Behalf Of Umberto Nicoletti >> Sent: Friday, February 11, 2005 8:29 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile >> >> >> Ciao Daniele, >> Could be a name resolution problem. Are you using an ip address or a >> host name to specify the postgres connection string? If you are using >> a name please make sure that it can be resolved correctly by >> registering it in dns and/or in the /etc/hosts file. >> >> Did you try localhost in the connection string? >> Also have a look at the log files in /var/lib/postgres/data. >> >> HTH, >> Umberto >> >> On Thu, 2005-02-10 at 17:01 +0100, Daniele Margotti wrote: >>> Yes, Mapserver is in the same computer of PostGIS: a Linux Red Hat >>> 9. Computer is rather fast: I can dump a 33000-row table (14 Mb >>> dumped to >>> file) in about 3 seconds. >>> >>> And also when I connect from a Windows XP (via Lan) using ODBC >>> drivers, data are read very fast. >>> >>> Only Mapserver is slow... >>> >>> Daniele >>> >>> >>>> -----Original Message----- >>>> From: UMN MapServer Users List >>>> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>> On Behalf Of Lyndon Tiu >>>> Sent: Thursday, February 10, 2005 4:36 PM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: Re: [UMN_MAPSERVER-USERS] PostGIS vs. Shapefile >>>> >>>> >>>> On February 10, 2005 02:03 am, Daniele Margotti wrote: >>>>> Hi all, >>>>> I have made some spatial queries (with cgi-bin Mapserver 4.2.3) >>>>> alternately with data stored in shapefiles and PostGIS (imported >>>>> from >>> >>>>> these shapefiles). >>>>> >>>>> My query (304 elements on 5 layers) takes 5 seconds (elaboration, > >>>>> and >>> >>>>> then output on browser) if data are read from shapefiles, and >>>>> about >>> 50 >>>>> seconds if data are read from PostGIS. >>>>> >>>>> The query is the same: I simply press "reload" on my browser >>>>> (after >> >>>>> manually changed .map file and query template files) to be sure of >>>>> it... >>>>> >>>>> Is it normal? >>>>> >>>> >>>> Is Postgis in the same computer as mapserver? >>>> >>>> -- >>>> Lyndon Tiu >>>> >> -- >> Umberto Nicoletti >> Prometeo SRL > -- > Umberto Nicoletti > Prometeo SRL From yogid at O2.PL Sat Feb 12 02:56:22 2005 From: yogid at O2.PL (Yogid) Date: Sat, 12 Feb 2005 11:56:22 +0100 Subject: edge problems in shp Message-ID: Hello! I created my own .shp by wintopo, all was ok, to the moment when I make the map file, and map serwer project this files. The curves is bad projection, for example I make the screen form open_fw where all is ok, the files are good showing. Could anybody tell me what I break down?!?! How I can fix it?!?! http://superstar.gb.net.pl/~yogi/map/map_server.gif http://superstar.gb.net.pl/~yogi/map/openev_fw.gif Best regards Yogi P.S. Sorry for my english :] From woodbri at SWOODBRIDGE.COM Sat Feb 12 07:44:50 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 12 Feb 2005 10:44:50 -0500 Subject: edge problems in shp In-Reply-To: <1066025384.20050212115622@o2.pl> Message-ID: Just looking at the images is hard to tell, but it looks like you are missing the last point of the polygons. Look specifically at polygons with 4 sides in the openev_fw.gif and compare them to the map_server.gif and you will see that the map_server.gif polygons are all triangles which suggests that the final point did not make it into the polygon. Now if you assume this is the problem the other polygons seem to have the same issue and make more sense. I can say why, but maybe the final index was stored as the count (oops, off by one) or the loop copying the points has an off by one problem. -Steve W. Yogid wrote: > Hello! > > I created my own .shp by wintopo, all was ok, to the moment when I make > the map file, and map serwer project this files. > The curves is bad projection, for example I make the screen form > open_fw where all is ok, the files are good showing. > Could anybody tell me what I break down?!?! How I can fix it?!?! > > http://superstar.gb.net.pl/~yogi/map/map_server.gif > http://superstar.gb.net.pl/~yogi/map/openev_fw.gif > > Best regards Yogi > P.S. Sorry for my english :] > From yogid at O2.PL Sat Feb 12 10:28:29 2005 From: yogid at O2.PL (Yogid) Date: Sat, 12 Feb 2005 19:28:29 +0100 Subject: edge problems in shp In-Reply-To: <420E2472.2020103@swoodbridge.com> Message-ID: Witaj Stephen, SW> Just looking at the images is hard to tell, but it looks like you are SW> missing the last point of the polygons. Look specifically at polygons SW> with 4 sides in the openev_fw.gif and compare them to the SW> map_server.gif and you will see that the map_server.gif polygons are all SW> triangles which suggests that the final point did not make it into the SW> polygon. Now if you assume this is the problem the other polygons seem SW> to have the same issue and make more sense. SW> I can say why, but maybe the final index was stored as the count (oops, SW> off by one) or the loop copying the points has an off by one problem. SW> -Steve W. Thank you for your answer. I still don't known what was wrong but I edit layer (.shp) in open_ev and save it. When I make new map file with this new .shp all is ok, it is good show. Maybe wintopo save it in other way/format (int, double, other round count). Thank you one more time :] Daniel D. From superbla3000 at GMX.NET Sat Feb 12 15:41:03 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Sun, 13 Feb 2005 00:41:03 +0100 Subject: gdal initial support for mrsid Message-ID: hello, I just read that gdal 1.2.5 has now 'Initial support for writing to MrSID with encoding SDK. ' Can I now also open mrsid files directly and display them with mapserver, without converting them before to geotiff or without installing the lizardtech sdk? joerg From lsnagu at YAHOO.COM Sun Feb 13 00:31:59 2005 From: lsnagu at YAHOO.COM (Nagu Govind) Date: Sun, 13 Feb 2005 00:31:59 -0800 Subject: queryBypoint problem - Please help Message-ID: Hi, Iam using MapScript. I want to find out the State and District name using latiudes and longitudes. My .dbf file has the following fields 1.Dst_ID 2.District 3. State I want to get this info corresponding to my lat and long. My map file layer is like this --------------------- MAP NAME "ind" SIZE 500 500 STATUS ON SYMBOLSET "maps/symbols/examples.sym" EXTENT 67 5 99 40 SHAPEPATH "maps/data/" PROJECTION "proj=latlong" "datum=NAD83" END WEB IMAGEPATH "maps/tmp/" IMAGEURL "maps/" TEMPLATE 'maps/myind.html' END QUERYMAP STATUS ON STYLE SELECTED COLOR 255 255 0 END LAYER NAME "Ind" TYPE POLYGON STATUS ON DATA "ind_ds" PROJECTION "proj=latlong" "ellps=GRS80" END CLASS NAME "IND MAP" OUTLINECOLOR 0 0 0 COLOR 255 255 0 SYMBOL dash-long STATUS ON END TEMPLATE ind_query.html END END ----------------------- And Iam calling Query by point as folows $point = ms_newpointObj(); $point->setXY($lon,$lat); $layer1 = $map->getLayerByName('Ind'); if($layer1->queryBypoint($point,MS_SINGLE,$buffer) == MS_SUCCESS){ echo "Success : $buffer"; } Iam getting this warning message Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. Iam new to mapserver & I really dont know whether this is the right method to get the info from the dbf file. Iam having only one polygon layer. Do i need to have another layer for quering.?. Please tell me where Iam going wrong. The concepts of layers are also not much clear to me. Regarding Mapscript and Map File , reference documents are there but I could not find any elaborate examples or application notes. Please tell me where i can find them. I also could not find any good samples similar to my requirement. Some one please help me. Regards vdharan --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. -------------- next part -------------- An HTML attachment was scrubbed... URL: From valruggero at LIBERO.IT Sun Feb 13 00:54:31 2005 From: valruggero at LIBERO.IT (Ruggero Valentinotti) Date: Sun, 13 Feb 2005 09:54:31 +0100 Subject: queryBypoint problem - Please help In-Reply-To: <20050213083159.13355.qmail@web61302.mail.yahoo.com> Message-ID: Nagu Govind wrote: > Hi, > Iam using MapScript. > I want to find out the State and District name using latiudes and > longitudes. My .dbf file has the following fields > 1.Dst_ID > 2.District > 3. State > > I want to get this info corresponding to my lat and long. > > My map file layer is like this > --------------------- > MAP > NAME "ind" > SIZE 500 500 > STATUS ON > SYMBOLSET "maps/symbols/examples.sym" > EXTENT 67 5 99 40 > > SHAPEPATH "maps/data/" > > PROJECTION > "proj=latlong" > "datum=NAD83" > END > > WEB > IMAGEPATH "maps/tmp/" > IMAGEURL "maps/ " > TEMPLATE 'maps/myind.html' > END > > QUERYMAP > STATUS ON > STYLE SELECTED > COLOR 255 255 0 > END > > LAYER > NAME "Ind" > TYPE POLYGON > STATUS ON > DATA "ind_ds" > PROJECTION > "proj=latlong" > "ellps=GRS80" > END > CLASS > NAME "IND MAP" > OUTLINECOLOR 0 0 0 > COLOR 255 255 0 > SYMBOL dash-long > STATUS ON > END > TEMPLATE ind_query.html > END > > END > ----------------------- > > And Iam calling Query by point as folows > > $point = ms_newpointObj(); > $point->setXY($lon,$lat); > $layer1 = $map->getLayerByName('Ind'); > if($layer1->queryBypoint($point,MS_SINGLE,$buffer) == MS_SUCCESS){ > echo "Success : $buffer"; > } > > Iam getting this warning message > Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) > found. > > Iam new to mapserver & I really dont know whether this is the right > method to get the info from the dbf file. Iam having only one polygon > layer. Do i need to have another layer for quering.?. > Please tell me where Iam going wrong. > > The concepts of layers are also not much clear to me. Regarding > Mapscript and Map File , reference documents are there but I could not > find any elaborate examples or application notes. > Please tell me where i can find them. > > I also could not find any good samples similar to my requirement. > > Some one please help me. > > Regards > vdharan > > > > ------------------------------------------------------------------------ > Do you Yahoo!? > Yahoo! Mail > > - Helps protect you from nasty viruses. Hi Nagu, you need METADATA keyword in Layer class: LAYER NAME "Ind" TYPE POLYGON STATUS ON METADATA "DESCRIPTION" "My layer ind" "RESULT_FIELDS" "DISTRICT STATE" END DATA "ind_ds" PROJECTION "proj=latlong" "ellps=GRS80" END CLASS NAME "IND MAP" OUTLINECOLOR 0 0 0 COLOR 255 255 0 SYMBOL dash-long STATUS ON END TEMPLATE ind_query.html END And then use Use '@' to avoid warning if query found nothing @$layer1->queryBypoint($point,MS_SINGLE,$buffer); Hope this help ruggero -- ?????????????????????????????????????????????????????????????????? /\ Ruggero Valentinotti //\\ /\ Studio Tecnico Ambientale Forestale ///\\\//\\ Frazione Tozzaga - Via alle Pozze, 2 ////\\\\/\\\ 38022 CALDES (TN) - Italy /////\\\\\\\\\ ||////\\\\\ http://digilander.libero.it/valruggero/ _____||___||_____ E-mail: valruggero at libero.it From lsnagu at YAHOO.COM Sun Feb 13 01:23:57 2005 From: lsnagu at YAHOO.COM (Nagu Govind) Date: Sun, 13 Feb 2005 01:23:57 -0800 Subject: queryBypoint problem - Please help In-Reply-To: <420F15C7.8060200@libero.it> Message-ID: Hi Ruggero, Thanks for your reply. I added the MetaData Key word in layer as follows. METADATA "DESCRIPTION" "My layer ind" "RESULT_FIELDS" "DISTRICT STATE" END But I still get the same warning "Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found". I change the Lat and Lon and checked but there is no change. Please tell me Where Iam going wrong?. Is there any thing else i have to check. Regards Nagu --- Ruggero Valentinotti wrote: > Nagu Govind wrote: > > > Hi, > > Iam using MapScript. > > I want to find out the State and District name > using latiudes and > > longitudes. My .dbf file has the following fields > > 1.Dst_ID > > 2.District > > 3. State > > > > I want to get this info corresponding to my lat > and long. > > > > My map file layer is like this > > --------------------- > > MAP > > NAME "ind" > > SIZE 500 500 > > STATUS ON > > SYMBOLSET "maps/symbols/examples.sym" > > EXTENT 67 5 99 40 > > > > SHAPEPATH "maps/data/" > > > > PROJECTION > > "proj=latlong" > > "datum=NAD83" > > END > > > > WEB > > IMAGEPATH "maps/tmp/" > > IMAGEURL "maps/ " > > TEMPLATE 'maps/myind.html' > > END > > > > QUERYMAP > > STATUS ON > > STYLE SELECTED > > COLOR 255 255 0 > > END > > > > LAYER > > NAME "Ind" > > TYPE POLYGON > > STATUS ON > > DATA "ind_ds" > > PROJECTION > > "proj=latlong" > > "ellps=GRS80" > > END > > CLASS > > NAME "IND MAP" > > OUTLINECOLOR 0 0 0 > > COLOR 255 255 0 > > SYMBOL dash-long > > STATUS ON > > END > > TEMPLATE ind_query.html > > END > > > > END > > ----------------------- > > > > And Iam calling Query by point as folows > > > > $point = ms_newpointObj(); > > $point->setXY($lon,$lat); > > $layer1 = $map->getLayerByName('Ind'); > > if($layer1->queryBypoint($point,MS_SINGLE,$buffer) > == MS_SUCCESS){ > > echo "Success : $buffer"; > > } > > > > Iam getting this warning message > > Warning: [MapServer Error]: msQueryByPoint(): No > matching record(s) > > found. > > > > Iam new to mapserver & I really dont know whether > this is the right > > method to get the info from the dbf file. Iam > having only one polygon > > layer. Do i need to have another layer for > quering.?. > > Please tell me where Iam going wrong. > > > > The concepts of layers are also not much clear to > me. Regarding > > Mapscript and Map File , reference documents are > there but I could not > > find any elaborate examples or application notes. > > Please tell me where i can find them. > > > > I also could not find any good samples similar to > my requirement. > > > > Some one please help me. > > > > Regards > > vdharan > > > > > > > > > ------------------------------------------------------------------------ > > Do you Yahoo!? > > Yahoo! Mail > > > > > > - Helps protect you from nasty viruses. > > Hi Nagu, > you need METADATA keyword in Layer class: > > LAYER > NAME "Ind" > TYPE POLYGON > STATUS ON > METADATA > "DESCRIPTION" "My layer ind" > "RESULT_FIELDS" "DISTRICT STATE" > END > DATA "ind_ds" > PROJECTION > "proj=latlong" > "ellps=GRS80" > END > CLASS > NAME "IND MAP" > OUTLINECOLOR 0 0 0 > COLOR 255 255 0 > SYMBOL dash-long > STATUS ON > END > TEMPLATE ind_query.html > END > > > And then use Use '@' to avoid warning if query found > nothing > > @$layer1->queryBypoint($point,MS_SINGLE,$buffer); > > > Hope this help > > ruggero > > > > > -- > ?????????????????????????????????????????????????????????????????? > > /\ Ruggero Valentinotti > > //\\ /\ Studio Tecnico Ambientale > Forestale > ///\\\//\\ Frazione Tozzaga - Via alle > Pozze, 2 > ////\\\\/\\\ 38022 CALDES (TN) - Italy > > /////\\\\\\\\\ > > ||////\\\\\ > http://digilander.libero.it/valruggero/ > > _____||___||_____ E-mail: valruggero at libero.it > > __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com From ganny_3 at REDIFFMAIL.COM Sun Feb 13 18:29:06 2005 From: ganny_3 at REDIFFMAIL.COM (Ganesh P) Date: Mon, 14 Feb 2005 02:29:06 -0000 Subject: Slow raster image display with TILEINDEX Message-ID: Hello everyone We have several raster images (GeoTIFF) overlapping and covering the area. We are using GDALTINDEX to make an index file and TILEINDEX to use the index file in the map file. When the Raster layer is enabled, the image is being rendered well but it is taking a very long time to display the image. Is there any way to speed up the process of rendering the image. Say by changing the image format to jpegs or something like that. Any suggestions or help is greatly appreciated. Thanks Ganesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From keon at NACSE.ORG Sun Feb 13 18:46:50 2005 From: keon at NACSE.ORG (Dylan Keon) Date: Sun, 13 Feb 2005 18:46:50 -0800 Subject: Slow raster image display with TILEINDEX In-Reply-To: <20050214022906.13139.qmail@webmail31.rediffmail.com> Message-ID: Ganesh P wrote: > Hello everyone > > We have several raster images (GeoTIFF) overlapping and covering the > area. We are using GDALTINDEX to make an index file and TILEINDEX to use > the index file in the map file. > When the Raster layer is enabled, the image is being rendered well but > it is taking a very long time to display the image. Is there any way to > speed up the process of rendering the image. Say by changing the image > format to jpegs or something like that. TIFFs should render the fastest, especially when using very large images, so you're using the best image format. Can you give us more information about the images that make up your tileindex layer? What kind of hardware are you working with? --Dylan From ed at TOPOZONE.COM Sun Feb 13 19:47:08 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Sun, 13 Feb 2005 22:47:08 -0500 Subject: Slow raster image display with TILEINDEX Message-ID: Ganesh - Dylan's right - GeoTIFF is the best format choice. Are you viewing the images at near their original resolution? If you are "zoomed out" a lot, viewing little pieces of many images at once, you will do well to read about gdaladdo and create lower-resolution overviews of your images. Dylan's other suggestions and questions also apply. JPEG is an especially poor choice for cartographic raster data. - Ed Ed McNierney TopoZone.com ________________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ganesh P Sent: Sunday, February 13, 2005 9:29 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Slow raster image display with TILEINDEX Hello everyone We have several raster images (GeoTIFF) overlapping and covering the area. We are using GDALTINDEX to make an index file and TILEINDEX to use the index file in the map file. When the Raster layer is enabled, the image is being rendered well but it is taking a very long time to display the image. Is there any way to speed up the process of rendering the image. Say by changing the image format to jpegs or something like that. Any suggestions or help is greatly appreciated. Thanks Ganesh From sweykam at TELELINE.ES Mon Feb 14 00:14:54 2005 From: sweykam at TELELINE.ES (Stefanie Weykam) Date: Mon, 14 Feb 2005 09:14:54 +0100 Subject: Buffer query Message-ID: > Hi list, > I got inspired by Camden Daily's comments on buffer queries. But I can't > get this strait. > > I am in a similar situation. I have to have my map in geographic > coordinates as well. But my map covers a too big area, so I ought to > reproject my query point and test layers to a metrical reference system > before I do the queryByPoint at a determined buffer size. > > I have a point object and want to find all features within 500 Km > distance. I expect to find 2 features within this radius. Just before the > query is performed, I clone the point and the layer, reproject to UTM and > set the tolerance value of my test layer to 500 and the units to Km. > > $projInObj = ms_newprojectionobj("init=epsg:4326"); > $projOutObj = ms_newprojectionobj("init=epsg:32632"); > $tmp_point = ms_newPointObj(); > $tmp_point->setXY($pt->x, $pt->y); # clone the point > $tmp_point->project($projInObj, $projOutObj); # change projection of pnt > > $currentLayer = $map->getLayerByName("SPAMI"); > $tmp_layer = ms_newLayerObj($map, $currentLayer); # clone current layer > $tmp_layer->setProjection("init=epsg:32632"); # change projection of lyr > $tmp_layer->set(toleranceunits, MS_KILOMETERS); > $tmp_layer->set(tolerance, 500); > if (@$tmp_layer->queryByPoint($tmp_pt, MS_MULTIPLE , -1)==MS_SUCCESS) > .... > This does not return anything. > > Since Camden daily reported the same problem, I tried if I was lucky and > find at least something in decimal degrees, but without considerable > success. > According to the MapFile Reference - 0 uses the tolerance value set in the > map file, while any other value should use 'ground values'. > So I tried other values, just for curiosity: 400 finds the nearest 5 > features - but this is too far for being a 400Km radius. At 500 > whatsoever-units all features are found and below 400 nothing is found.... > This makes me think that it's not the code that's wrong, but something > related to Proj4. ??? > > I'm using MS 4.2, Mapscript and PHP 4.3.7, on Win2000 > The Proj-files from MapServer work just fine, while those distributed by > Maptools.org gave me some problems. > I wonder if I should update or try to get the Mapscript proj-files working > properly somehow? > > Thanks for your comments, > Stefanie Weykam > Ps: refering to another interesting comment a couple of days ago - Has > anybody tried to draw a circle transforming the symbol coordinates from > image to map coordinates so that the circle size matches the buffer > distance of a query? Is this possible at all? From murilo.yoshida at AGX.COM.BR Mon Feb 14 06:24:20 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Mon, 14 Feb 2005 11:24:20 -0300 Subject: RES: [UMN_MAPSERVER-USERS] queryBypoint problem - Please help In-Reply-To: <20050213092358.94795.qmail@web61305.mail.yahoo.com> Message-ID: Hi Nagu, Are you sure your shapefile is correct? Because the code and the mapfile seems ok to me, except the $buffer variable which is not set on the code but I guess you set it before. So if the code and the map seems ok, I think the problem is either your shapefile isn't correct, or the point you are querying isn't inside of any shape of the shapefile. Test the qurybyPoint with a high value for $buffer... Then praticly any point on the map will be valid for querying. On the mapfile, the template attribute belongs to the class object, not the layer object ... you can set it on the layer object though. There is a STATUS ON on the class object ... that's wrong, there isn't a status attribute on the class object ... Hope the helps, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Nagu Govind Enviada em: domingo, 13 de fevereiro de 2005 06:24 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] queryBypoint problem - Please help Hi Ruggero, Thanks for your reply. I added the MetaData Key word in layer as follows. METADATA "DESCRIPTION" "My layer ind" "RESULT_FIELDS" "DISTRICT STATE" END But I still get the same warning "Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found". I change the Lat and Lon and checked but there is no change. Please tell me Where Iam going wrong?. Is there any thing else i have to check. Regards Nagu --- Ruggero Valentinotti wrote: > Nagu Govind wrote: > > > Hi, > > Iam using MapScript. > > I want to find out the State and District name > using latiudes and > > longitudes. My .dbf file has the following fields > > 1.Dst_ID > > 2.District > > 3. State > > > > I want to get this info corresponding to my lat > and long. > > > > My map file layer is like this > > --------------------- > > MAP > > NAME "ind" > > SIZE 500 500 > > STATUS ON > > SYMBOLSET "maps/symbols/examples.sym" > > EXTENT 67 5 99 40 > > > > SHAPEPATH "maps/data/" > > > > PROJECTION > > "proj=latlong" > > "datum=NAD83" > > END > > > > WEB > > IMAGEPATH "maps/tmp/" > > IMAGEURL "maps/ " > > TEMPLATE 'maps/myind.html' > > END > > > > QUERYMAP > > STATUS ON > > STYLE SELECTED > > COLOR 255 255 0 > > END > > > > LAYER > > NAME "Ind" > > TYPE POLYGON > > STATUS ON > > DATA "ind_ds" > > PROJECTION > > "proj=latlong" > > "ellps=GRS80" > > END > > CLASS > > NAME "IND MAP" > > OUTLINECOLOR 0 0 0 > > COLOR 255 255 0 > > SYMBOL dash-long > > STATUS ON > > END > > TEMPLATE ind_query.html > > END > > > > END > > ----------------------- > > > > And Iam calling Query by point as folows > > > > $point = ms_newpointObj(); > > $point->setXY($lon,$lat); > > $layer1 = $map->getLayerByName('Ind'); > > if($layer1->queryBypoint($point,MS_SINGLE,$buffer) > == MS_SUCCESS){ > > echo "Success : $buffer"; > > } > > > > Iam getting this warning message > > Warning: [MapServer Error]: msQueryByPoint(): No > matching record(s) > > found. > > > > Iam new to mapserver & I really dont know whether > this is the right > > method to get the info from the dbf file. Iam > having only one polygon > > layer. Do i need to have another layer for > quering.?. > > Please tell me where Iam going wrong. > > > > The concepts of layers are also not much clear to > me. Regarding > > Mapscript and Map File , reference documents are > there but I could not > > find any elaborate examples or application notes. > > Please tell me where i can find them. > > > > I also could not find any good samples similar to > my requirement. > > > > Some one please help me. > > > > Regards > > vdharan > > > > > > > > > ------------------------------------------------------------------------ > > Do you Yahoo!? > > Yahoo! Mail > > > > > > - Helps protect you from nasty viruses. > > Hi Nagu, > you need METADATA keyword in Layer class: > > LAYER > NAME "Ind" > TYPE POLYGON > STATUS ON > METADATA > "DESCRIPTION" "My layer ind" > "RESULT_FIELDS" "DISTRICT STATE" > END > DATA "ind_ds" > PROJECTION > "proj=latlong" > "ellps=GRS80" > END > CLASS > NAME "IND MAP" > OUTLINECOLOR 0 0 0 > COLOR 255 255 0 > SYMBOL dash-long > STATUS ON > END > TEMPLATE ind_query.html > END > > > And then use Use '@' to avoid warning if query found > nothing > > @$layer1->queryBypoint($point,MS_SINGLE,$buffer); > > > Hope this help > > ruggero > > > > > -- > ?????????????????????????????????????????????????????????????????? > > /\ Ruggero Valentinotti > > //\\ /\ Studio Tecnico Ambientale > Forestale > ///\\\//\\ Frazione Tozzaga - Via alle > Pozze, 2 > ////\\\\/\\\ 38022 CALDES (TN) - Italy > > /////\\\\\\\\\ > > ||////\\\\\ > http://digilander.libero.it/valruggero/ > > _____||___||_____ E-mail: valruggero at libero.it > > __________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com From temiz at DEPREM.GOV.TR Mon Feb 14 05:41:03 2005 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 14 Feb 2005 15:41:03 +0200 Subject: mapserver with java support Message-ID: hello is this correct to compile mapserver with java support ? --with-java=/usr/local/j2sdk1.4.2_07/ \ I am confused on mapserver - java installation in wiki's page is there any page or which shows steps to build an application for java? regards ______________________________________ XamimeLT - 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 unicoletti at PROMETEO.IT Mon Feb 14 05:56:03 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 14 Feb 2005 14:56:03 +0100 Subject: mapserver with java support In-Reply-To: <4210AA6F.9060803@deprem.gov.tr> Message-ID: The basic steps to get java mapscript going are: 1) compile mapserver. the following options are strongly suggested: --use-threads --use-proj 2) cd to mapscript/java 3) read README 4) optionally run make interface (in your case you shouldn't) 4) run make 5) run the examples: make test HTH, Umberto On Mon, 2005-02-14 at 15:41 +0200, temiz wrote: > hello > > is this correct to compile mapserver with java support ? > > --with-java=/usr/local/j2sdk1.4.2_07/ \ > > I am confused on mapserver - java installation in wiki's page > is there any page or which shows steps to build an application for java? > > regards > > > ______________________________________ > XamimeLT - 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. -- Umberto Nicoletti Prometeo SRL From unicoletti at PROMETEO.IT Mon Feb 14 06:48:19 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 14 Feb 2005 15:48:19 +0100 Subject: mapserver with java support In-Reply-To: <4210B4C1.8090209@deprem.gov.tr> Message-ID: On Mon, 2005-02-14 at 16:25 +0200, temiz wrote: > Umberto Nicoletti wrote: > > >The basic steps to get java mapscript going are: > > > >1) compile mapserver. the following options are strongly suggested: > >--use-threads --use-proj > > > >2) cd to mapscript/java > > > >3) read README > > > >4) optionally run make interface (in your case you shouldn't) > > > >4) run make > > > >5) run the examples: make test > > > >HTH, > >Umberto > > > >On Mon, 2005-02-14 at 15:41 +0200, temiz wrote: > > > > > >>hello > >> > >>is this correct to compile mapserver with java support ? > >> > >>--with-java=/usr/local/j2sdk1.4.2_07/ \ > >> > >>I am confused on mapserver - java installation in wiki's page > >>is there any page or which shows steps to build an application for java? > >> > >>regards > >> > >> > >>______________________________________ > >>XamimeLT - 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. > >> > >> > thank you for your help > > I am not clear on what the usage of "--use-threads --use-proj" is ? > Sorry, I did not make clear that they are configure options. --use-threads provides thread safety support in java mapscript. This is *compulsory* if you want to use mapscript in servlets or jsps --with-proj is not necessary, but I found that not using it could lead to unresolved compilation symbols in libmapscript.so. You might want to skip this option the first time. It requires proj to be installed. Regards, Umberto > regards > > Ahmet Temiz > > > ______________________________________ > XamimeLT - 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. > -- Umberto Nicoletti Prometeo SRL From temiz at DEPREM.GOV.TR Mon Feb 14 06:52:39 2005 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 14 Feb 2005 16:52:39 +0200 Subject: error with make test Message-ID: hello after compiling mapscript with java, make test gives: bash-2.05b$ make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp ../../tests/point.shp java.lang.UnsatisfiedLinkError: /usr/local/mapserver-4.4.1/mapscript/java/libmapscript.so: /usr/local/mapserver-4.4.1/mapscript/java/libmapscript.so: undefined symbol: gdImageGifPtr make: *** [test] Error 255 could you tell me what the problem is regards Ahmet Temiz ______________________________________ XamimeLT - 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 unicoletti at PROMETEO.IT Mon Feb 14 07:04:20 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 14 Feb 2005 16:04:20 +0100 Subject: error with make test In-Reply-To: <4210BB37.3010707@deprem.gov.tr> Message-ID: Do you have libmapscript.so in mapscript/java? Can you run ldd -r libmapscript.so and post the results? Umberto On Mon, 2005-02-14 at 16:52 +0200, temiz wrote: > hello > > after compiling mapscript with java, > > make test gives: > > > bash-2.05b$ make test > javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/*.java > java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. > DumpShp ../../tests/point.shp > java.lang.UnsatisfiedLinkError: > /usr/local/mapserver-4.4.1/mapscript/java/libmapscript.so: > /usr/local/mapserver-4.4.1/mapscript/java/libmapscript.so: undefined > symbol: gdImageGifPtr > make: *** [test] Error 255 > > could you tell me what the problem is > > regards > > Ahmet Temiz > > > ______________________________________ > XamimeLT - 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. -- Umberto Nicoletti Prometeo SRL From fwarmerdam at GMAIL.COM Mon Feb 14 07:32:06 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 14 Feb 2005 10:32:06 -0500 Subject: gdal initial support for mrsid In-Reply-To: <420E940F.5070902@gmx.net> Message-ID: On Sun, 13 Feb 2005 00:41:03 +0100, joerg pfeiffer wrote: > hello, > > I just read that gdal 1.2.5 has now 'Initial support for writing to > MrSID with encoding SDK. ' > > Can I now also open mrsid files directly and display them with > mapserver, without converting them before to geotiff or without > installing the lizardtech sdk? Joerg, The comment about the encoding SDK relates to using GDAL to write MrSID files. It sounds like what you want is to be able to read MrSID files in Mapserver but delivery the final render map in a more conventional format (like gif, png or jpeg). That is something that has been available for a while, assuming your mapserver and gdal are built accordingly. I would add that with the encoding support, it is in theory possible to have MapServer return mrsid images to the browser, and with the appropriate plugin to your browser to display them directly there. I haven't tried this myself yet but it is an interesting option. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From cdaily at GMAIL.COM Mon Feb 14 07:33:46 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 14 Feb 2005 09:33:46 -0600 Subject: Buffer query In-Reply-To: Message-ID: I'm not entirely certain, but I don't believe that the toleranceunits need to be in the same projection units as the point or layer. If you're just trying to find x number of points within 500 kilometers, I don't think you have to reproject at all. You only need to reproject if you then want to find out exactly how many kilometers away a shape is (using distanceToShape). Even then, it might be faster to only reproject the shapes you get in your results, as opposed to the entire layer. That said, I think the reason you're not receiving any results is because when you set your tolerance and toleranceunits, you might need to put those in quotes [$tmp_layer->set("tolerance", 500);]. If that's not the issue, a good debugging step might be to see if you can get it to work by setting the tolerance and toleranceunits in the map file itself and see if it works. -Camden Daily From John.Spotten at CAPETOWN.GOV.ZA Mon Feb 14 06:28:10 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Mon, 14 Feb 2005 16:28:10 +0200 Subject: displaying mrsid files in mapserver Message-ID: NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- Hi Frank, Sorry for the delay. I couldn't send the w55d.sid mrsid file that doesn't display because it is rather large 60mb. below is an extract from the gdalinfo utility for w45a03.sid (3mb) and w55d.sid (60mb). I previously sent you mrsidinfo utility information for both files. any help would be much appreciated. I notice that the origin and pixel size properties in w45a03.sid are not present for w55d.sid. I get the impression that the input img file had georeferencing for w45a03.sid but this was not the case for the input tiff file for w55d.sid I take it that gdal doesn't refer to any georeferencing info in the associated sdw world files. the sdw georeferencing info is correct as they display in mapinfo correctly. I altered my map extent to cover the absolute image pixel range (0,0) to (20000,20000) 1pixel=1m ,assuming no georeferencing but no luck, still can't see it. maybe georeferencing is not the problem, can I use gdal_translate or gdal_warp to add georeferencing to a sid file, it works for ecw, the gdal12.dll I have is only read only for mrsid files. C:\MS4W\Apache\binary>gdalinfo c:\ms4w\apps\mapserver_demos\ct\data\w45a03.sid Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 4000, 4000 Coordinate System is `' Origin = (-48000.125000,-3749999.875000) Pixel Size = (0.25000000,-0.25000000) Metadata: IMAGE__WIDTH=4000 IMAGE__HEIGHT=4000 IMAGE__INPUT_NAME=d:/checking/cmc/resize/w45a img/48000w3751000s.img IMAGE__INPUT_FILE_SIZE=48953355.000000 IMAGE__BITS_PER_SAMPLE=8 IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__DYNAMIC_RANGE_LEVEL=127.500000 GEOTIFF_NUM__1024__GTModelTypeGeoKey=0 GEOTIFF_CHAR__GTModelTypeGeoKey=Undefined GEOTIFF_NUM__1025__GTRasterTypeGeoKey=1 GEOTIFF_CHAR__GTRasterTypeGeoKey=RasterPixelIsArea IMAGE__DYNAMIC_RANGE_WINDOW=255.000000 GEOTIFF_NUM__3076__ProjLinearUnitsGeoKey=9014 GEOTIFF_CHAR__ProjLinearUnitsGeoKey=Linear_Fathom IMG__HORIZONTAL_UNITS=other GEO__ModelTypeGeoKey=0 IMAGE__COMPRESSION_VERSION=1,4,1 IMAGE__TARGET_COMPRESSION_RATIO=20.000000 IMAGE__COMPRESSION_NLEV=4 IMAGE__COMPRESSION_WEIGHT=4.000000 IMAGE__COMPRESSION_GAMMA=2.000000 IMAGE__COMPRESSION_BLOCK_SIZE=512 IMAGE__CREATION_DATE=Fri Aug 16 08:51:06 2002 IMAGE__XY_ORIGIN=-48000.000000,-3750000.000000 IMAGE__X_RESOLUTION=0.250000 IMAGE__Y_RESOLUTION=0.250000 Corner Coordinates: Upper Left ( -48000.125,-3749999.875) Lower Left ( -48000.125,-3750999.875) Upper Right ( -47000.125,-3749999.875) Lower Right ( -47000.125,-3750999.875) Center ( -47500.125,-3750499.875) Band 1 Block=4000x64 Type=Byte, ColorInterp=Red Overviews: 2000x2000, 1000x1000, 500x500 Band 2 Block=4000x64 Type=Byte, ColorInterp=Green Overviews: 2000x2000, 1000x1000, 500x500 Band 3 Block=4000x64 Type=Byte, ColorInterp=Blue Overviews: 2000x2000, 1000x1000, 500x500 C:\MS4W\Apache\binary>gdalinfo c:\ms4w\apps\mapserver_demos\ct\data\w55d.sid Driver: MrSID/Multi-resolution Seamless Image Database (MrSID) Size is 20000, 20000 Coordinate System is `' Metadata: IMAGE__STATISTICS_MIN=0,0,0 IMAGE__STATISTICS_MAX=255,255,255 IMAGE__STATISTICS_MEAN=97.900520,98.108212,73.540150 IMAGE__STATISTICS_STANDARD_DEVIATION=52.734737,50.228818,39.639725 IMAGE__INPUT_FORMAT=TIFF IMAGE__WIDTH=20000 IMAGE__HEIGHT=20000 IMAGE__COLOR_SCHEME=0 IMAGE__DATA_TYPE=0 IMAGE__BITS_PER_SAMPLE=8 IMAGE__INPUT_NAME=Y:\PH-2001-04 CMC - 5km tiffs\5km tiff`s 2nd batch\w55d.tif IMAGE__INPUT_FILE_SIZE=1200008300.000000 IMAGE__COMPRESSION_VERSION=2,0,0 IMAGE__TARGET_COMPRESSION_RATIO=20.000000 IMAGE__COMPRESSION_NLEV=9 IMAGE__COMPRESSION_WEIGHT=4.000000 IMAGE__COMPRESSION_GAMMA=2.000000 IMAGE__COMPRESSION_BLOCK_SIZE=768 IMAGE__CREATION_DATE=Sun Feb 16 15:14:19 2003 IMAGE__XY_ORIGIN=0.000000,19999.000000 IMAGE__X_RESOLUTION=1.000000 IMAGE__Y_RESOLUTION=1.000000 Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0,20000.0) Upper Right (20000.0, 0.0) Lower Right (20000.0,20000.0) Center (10000.0,10000.0) Band 1 Block=20000x64 Type=Byte, ColorInterp=Red Overviews: 10000x10000, 5000x5000, 2500x2500, 1250x1250, 625x625, 313x313, 157 x157, 79x79 Band 2 Block=20000x64 Type=Byte, ColorInterp=Green Overviews: 10000x10000, 5000x5000, 2500x2500, 1250x1250, 625x625, 313x313, 157 x157, 79x79 Band 3 Block=20000x64 Type=Byte, ColorInterp=Blue Overviews: 10000x10000, 5000x5000, 2500x2500, 1250x1250, 625x625, 313x313, 157 x157, 79x79 thanks in anticipation, john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: 26 January 2005 04:37 PM To: John Spotten Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] displaying mrsid files in mapserver On Wed, 26 Jan 2005 13:31:12 +0200, John Spotten wrote: > is the complete mrsid file loaded into memory on the server or only the > portion that is in the view before being sent as a gif , my output format? John, MapServer extracts a subregion of the file at the resolution of the output map rendering. It does not load the whole file. Can you provide me a .sid file that doesn't display for you? (off list) 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 -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: From fwarmerdam at GMAIL.COM Mon Feb 14 07:43:19 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 14 Feb 2005 10:43:19 -0500 Subject: edge problems in shp In-Reply-To: <1833152500.20050212192829@o2.pl> Message-ID: On Sat, 12 Feb 2005 19:28:29 +0100, Yogid wrote: > Witaj Stephen, > > SW> Just looking at the images is hard to tell, but it looks like you are > SW> missing the last point of the polygons. Look specifically at polygons > SW> with 4 sides in the openev_fw.gif and compare them to the > SW> map_server.gif and you will see that the map_server.gif polygons are all > SW> triangles which suggests that the final point did not make it into the > SW> polygon. Now if you assume this is the problem the other polygons seem > SW> to have the same issue and make more sense. > > SW> I can say why, but maybe the final index was stored as the count (oops, > SW> off by one) or the loop copying the points has an off by one problem. > > SW> -Steve W. > > Thank you for your answer. I still don't known what was wrong but I > edit layer (.shp) in open_ev and save it. When I make new map file with > this new .shp all is ok, it is good show. Maybe wintopo save it in other > way/format (int, double, other round count). > Thank you one more time :] > Daniel D. Daniel, Two possibilities are: - wintopo incorrectly sets panParts[0] to 1 instead of 0. I think the modern Shapelib ignores this and would get the right values while the old version that mapserver users might end up missing a vertex. - It may be that wintopo emits shapefiles without properly closing the shapes but that OpenEV auto-corrects for this while MapServer does not. If you can provide me one of the problem files, I would be interested in looking a bit closer at 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 stevem at SPATIALMAPPING.COM Mon Feb 14 07:48:29 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Mon, 14 Feb 2005 09:48:29 -0600 Subject: queryBypoint problem - Please help Message-ID: Your code snippet doesn't set $buffer before it is used, so PHP will give it a default value (probably zero). Set $buffer to a positive value and you may get better results. Hope this helps, -SM -- On Sun, 13 Feb 2005 00:31:59 -0800, Nagu Govind wrote: >Hi, >Iam using MapScript. >I want to find out the State and District name using latiudes and longitudes. My .dbf file has the following fields >1.Dst_ID >2.District >3. State > >I want to get this info corresponding to my lat and long. > >My map file layer is like this >--------------------- >MAP > NAME "ind" > SIZE 500 500 > STATUS ON > SYMBOLSET "maps/symbols/examples.sym" > EXTENT 67 5 99 40 > > SHAPEPATH "maps/data/" > > PROJECTION > "proj=latlong" > "datum=NAD83" > END > > WEB > IMAGEPATH "maps/tmp/" > IMAGEURL "maps/" > TEMPLATE 'maps/myind.html' > END > >QUERYMAP > STATUS ON > STYLE SELECTED > COLOR 255 255 0 > END > > LAYER > NAME "Ind" > TYPE POLYGON > STATUS ON > DATA "ind_ds" > PROJECTION > "proj=latlong" > "ellps=GRS80" > END > CLASS > NAME "IND MAP" > OUTLINECOLOR 0 0 0 > COLOR 255 255 0 > SYMBOL dash-long > STATUS ON > END > TEMPLATE ind_query.html > END > >END >----------------------- > >And Iam calling Query by point as folows > >$point = ms_newpointObj(); >$point->setXY($lon,$lat); >$layer1 = $map->getLayerByName('Ind'); >if($layer1->queryBypoint($point,MS_SINGLE,$buffer) == MS_SUCCESS){ > echo "Success : $buffer"; >} > >Iam getting this warning message >Warning: [MapServer Error]: msQueryByPoint(): No matching record(s) found. > >Iam new to mapserver & I really dont know whether this is the right method to get the info from the dbf file. Iam having only one polygon layer. Do i need to have another layer for quering.?. >Please tell me where Iam going wrong. > >The concepts of layers are also not much clear to me. Regarding Mapscript and Map File , reference documents are there but I could not find any elaborate examples or application notes. > Please tell me where i can find them. > >I also could not find any good samples similar to my requirement. > >Some one please help me. > >Regards >vdharan > > > > > >--------------------------------- >Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses. From fwarmerdam at GMAIL.COM Mon Feb 14 07:48:58 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 14 Feb 2005 10:48:58 -0500 Subject: displaying mrsid files in mapserver In-Reply-To: <875F594C85E9914C841109EADA425E3511DD46@CBD-METLIFE-001.capetown.gov.za> Message-ID: > Sorry for the delay. > I couldn't send the w55d.sid mrsid file that doesn't display because it is rather large 60mb. John, If you can make it available for download by http somewhere, I could still grab it pretty easily. > below is an extract from the gdalinfo utility for w45a03.sid (3mb) and w55d.sid (60mb). > > I previously sent you mrsidinfo utility information for both files. > > any help would be much appreciated. I notice that the origin and pixel size properties in w45a03.sid are not present for w55d.sid. I get the impression that the input img file had georeferencing for w45a03.sid but this was not the case for the input tiff file for w55d.sid The coordinate system of the first file seems pretty screwy (linear unit is fathoms!) and what is there does not come through in the GDAL coordinate system description. The second file doesn't appear to have any georeferencing at all. If it has an sdw file, I suspect the problem is that GDAL is ignoring this. I believe there have been some recent improvements to world file handling in GDAL so a more recent build might be slightly better. In any event, if you rename the .sdw to .wld, MapServer will pick it up whether GDAL does or not. 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 schick at SDAC.HANNOVER.BGR.DE Mon Feb 14 08:11:07 2005 From: schick at SDAC.HANNOVER.BGR.DE (Agneta Schick) Date: Mon, 14 Feb 2005 17:11:07 +0100 Subject: SIZEUNITS in Perl Mapscript Message-ID: Problem: symbol size doesn't scale Software: MapServer version 4.2.3, Perl MapScript Is my understanding of SIZEUNITS correct?: I can define SIZEUNITS to kilometers, define a symbol 'circle' and by setting the symbol size to my radius (in kilometers), this symbol will scale to my zoom depth? My symbol always has the same pixel size as if SIZEUNITS uses the default PIXELS. I checked the user group mails but found no clue, except that other users also had problems. The layer in question is LAYER NAME 'percept' TYPE point STATUS on PROJECTION "proj=latlong" "datum=WGS84" END SIZEUNITS kilometers CLASS STYLE SIZE 1 SYMBOL 'circle' OUTLINECOLOR 0 0 240 END END END and the perl snippet: $layer = $map->getLayerByName('percept'); $class = $layer->getClass(0); $style = $class->getStyle(0); $style->{size} = int($radius); $point = new mapscript::pointObj(); $point->{x} = $lon; $point->{y} = $lat; $point->draw($map, $layer, $img, 0,0); I appreciate any help in this matter since 'racking my brain' doesn't help me at all! Agneta Schick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Agneta Schick Bundesanstalt fuer Geowissenschaften und Rohstoffe Federal Institute for Geosciences and Natural Resources Stilleweg 2 D- 30655 Hannover Tel.: +49 511 643 3136 GERMANY FAX.: +49 511 643 3663 schick at sdac.hannover.bgr.de http://www.seismologie.bgr.de ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From yogid at O2.PL Mon Feb 14 08:37:23 2005 From: yogid at O2.PL (Yogid) Date: Mon, 14 Feb 2005 17:37:23 +0100 Subject: edge problems in shp In-Reply-To: <931f8ea9050214074314a4329f@mail.gmail.com> Message-ID: Witaj Frank, > Two possibilities are: > - wintopo incorrectly sets panParts[0] to 1 instead of 0. I think the > modern Shapelib ignores this and would get the right values while > the old version that mapserver users might end up missing a vertex. > - It may be that wintopo emits shapefiles without properly closing the > shapes but that OpenEV auto-corrects for this while MapServer does > not. > If you can provide me one of the problem files, I would be interested > in looking a bit closer at it. Of course, no problem! Best view was on buldings. http://superstar.gb.net.pl/~yogi/map/ budynki-areas.shp - with that problem (wintopo) budynki-areas1.shp - without that problem (openev) Daniel D. From fwarmerdam at GMAIL.COM Mon Feb 14 08:53:54 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 14 Feb 2005 11:53:54 -0500 Subject: edge problems in shp In-Reply-To: <16523964779.20050214173723@o2.pl> Message-ID: On Mon, 14 Feb 2005 17:37:23 +0100, Yogid wrote: > Of course, no problem! > Best view was on buldings. > http://superstar.gb.net.pl/~yogi/map/ > budynki-areas.shp - with that problem (wintopo) > budynki-areas1.shp - without that problem (openev) > > Daniel D. Daniel, Looking at the file, I see the polygons are not closed. That is, the last point is not equal to the first. eg. Shape:0 (Polygon) nVertices=12, nParts=1 Bounds:( 8776.875, 5300.625, 0, 0) to ( 8917.625, 5414.125, 0, 0) ( 8796.875, 5334.375, 0, 0) Ring ( 8776.875, 5371.625, 0, 0) ( 8810.125, 5414.125, 0, 0) ( 8858.875, 5380.875, 0, 0) ( 8873.375, 5399.625, 0, 0) ( 8917.625, 5347.875, 0, 0) ( 8867.625, 5300.625, 0, 0) ( 8851.125, 5315.625, 0, 0) ( 8836.625, 5324.375, 0, 0) ( 8825.875, 5330.125, 0, 0) ( 8817.375, 5332.125, 0, 0) ( 8808.375, 5333.625, 0, 0) After digging around in OpenEV for a while, I see the code in it for saving to shapefiles ensures that polygons get closed. The rendering code doesn't require them to be pre-closed so it looked ok there. It seems that MapServer does require polygons from shapefiles to be closed and doesn't make any effort to correct if that is not the case. You might want to file a bug against MapServer to fixup this case. I would also encourage you to contact the wintopo authors and encourage them to write their shapefiles with closed polygons. I plan to fixup the distribution Shapelib to enforce this requirement in the not-to-distant-future. 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 mh at SVAJ.DK Mon Feb 14 10:08:52 2005 From: mh at SVAJ.DK (Martin Hoegh) Date: Mon, 14 Feb 2005 12:08:52 -0600 Subject: New version of MapLink Message-ID: Hi list, I've updated my project MapLink (client for wms, mapserver and postgis dbs). Some nice new features! Check it out on http://sourceforge.net/projects/maplink/ /martin From mathieuparent at USERS.SOURCEFORGE.NET Mon Feb 14 11:33:50 2005 From: mathieuparent at USERS.SOURCEFORGE.NET (Mathieu Parent) Date: Mon, 14 Feb 2005 20:33:50 +0100 Subject: Musmap 0.8 released Message-ID: Musmap is a web mapping application build with PHP/Mapscript. Musmap provides a lot of feautres: - query by point (click) and box - query by form (administrable) - query results can be stored (some known bugs here) - zoom, pan, ... and advanced features ... - map configuration (using a tree-view called "profile explorer") with a class wizard (select a field, choose min and max values : it will make graduating colors) - users and groups administration (privileges) - metadata with label, column type, joins, ... used for query results (from an address you can go to a road if they are linked, and from a road you can see all of its adresses !) - a lot of mapserver features are available and customizable (projections, ogr, wms, wfs, ...) - Musmap is a multilingual application, currently french and english are completely done - i should forget a lot more infos at http://musmap.sourceforge.net/ (report bugs and feature requests from this site) From akertis at GMAIL.COM Mon Feb 14 13:53:41 2005 From: akertis at GMAIL.COM (AJ Kertis) Date: Mon, 14 Feb 2005 16:53:41 -0500 Subject: ogr2ogr Message-ID: Hi, I'm trying to fiddle with ogr2ogr. I can convert the tgr files to shp files fine. I just was wondering how the -where flag is supposed to actually work. Like in my CompleteChain.shp file i have some field types of fetype and i want to do ogr2ogr so that one type in there isn't in the .shp file from the tgr file if that makes sense. Is this possible with ogr2ogr? Thanks, AJ Kertis From tof2p at NETSCAPE.NET Mon Feb 14 14:04:20 2005 From: tof2p at NETSCAPE.NET (Mapserver User) Date: Mon, 14 Feb 2005 16:04:20 -0600 Subject: [OT]: ESRI World Basemap Data Message-ID: Hi, does anyone know if there's a ftp site where you can download the ESRI World Basemap Data. It's really annoying to select a rectangle (Preview), and then download the data! Thanks! From superbla3000 at GMX.NET Mon Feb 14 15:29:12 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 15 Feb 2005 00:29:12 +0100 Subject: gdal initial support for mrsid In-Reply-To: <931f8ea9050214073247c15afc@mail.gmail.com> Message-ID: It sounds like what you want is to be able to > read MrSID files in Mapserver but delivery the final render map > in a more conventional format (like gif, png or jpeg). actually it's like this: I have the MrSid UTM 160MB satellite images from NASA, which I want to convert to latlong first, make an index, and then deliver as jpg with mapserver to the browser. Maybe I also should build different resolutions and then build the index.... That is something > that has been available for a while, assuming your mapserver and > gdal are built accordingly. So first I download the lizardtech sdk, then compile gdal with the sdk and last compile mapserver with this gdal? and then I can do all the things I mentioned? best regards Joerg From pcreso at PCRESO.COM Mon Feb 14 16:37:43 2005 From: pcreso at PCRESO.COM (Brent Wood) Date: Mon, 14 Feb 2005 16:37:43 -0800 Subject: Fwd: Announcement (Fishery GIS Symposium, Publication, Logo & Cover designs) Message-ID: This may be of interest to some here... Some background: I presented a paper on fishery data visualisation based on GMT & OpenDX at the 2001 Symposium. It was very well received, with the interest being at least as much on the fact that this could be done with free software as the actual visualisations (sigh!). Given the proportion of attendees from 3rd world countries, the idea that you could do all this GIS stuff without keeping Microsoft & ESRI profits up was quite exciting. In his closing speech, the keynote speaker commented that the future of fisheries GIS may well lie more with OS than commercial/closed source software. I agreed to prepare a 2nd paper for the proceedings, describing how a GIS for fisheries work could be implemented using just free (as in speech :-) data & software. Given the upcoming conference is in China may make the presentation of OS GIS capabilities even more appropriate. I hope to be there & to present a paper describing a fisheries GIS set up with PostGIS, QGIS & GMT. I'd love to see others from the OS GIS community presenting a paper/poster or demo there as well!! Cheers, Brent Wood --- Fishery-Aquatic GIS Research Group wrote: > From: "Fishery-Aquatic GIS Research Group" > To: > Subject: [I4]Announcement (Fishery GIS Symposium, Publication, Logo & Cover > designs) > Date: Mon, 14 Feb 2005 15:41:55 +0900 > > **************************************************************************** > If you have troubles to read this e-mail and/or the web sites below, > please contact to the Secretariat of the Fishery-Aquatic GIS > Research Group at aco20320 at par.odn.ne.jp . > **************************************************************************** > > Dear Colleagues and Friends, > > We are pleased to inform three announcements today: > > (1) 'Third International Symposium on GIS/Spatial Analyses > in Fishery and Aquatic Sciences' . > > This Symposium will be held in the Shanghai Fisheries University, > Shanghai, China from August 22-26, 2005. For details, please refer to: > > http://www.esl.co.jp/Sympo/3rd/01_01.pdf > > (Deadline for the registration and submission of abstract is June 15, 2005) > > > (2) Proceedings of the 2nd Symposium > (Textbook: GIS/Spatial analyses in Fishery and Aquatic Sciences, Volume 2). > > This book has been published. A limited number of the copies is now > being printed and will be ready by the end of February, 2005. > For details and the order, please refer to: > > http://www.esl.co.jp/Sympo/2nd/sympo15.htm > > > (3) Winners of LOGO & Cover Designs > > Regarding this competition, refer to > > http://www.esl.co.jp/Sympo/announcements.pdf > > For the winners of the logo, please refer to: > > http://www.esl.co.jp/Sympo/logo/Results%20of%20the%20votes%20logo.pdf > > For the winners of the cover designs refer to: > > http://www.esl.co.jp/Sympo/logo/Results%20of%20the%20votes%20cover.pdf > > > Best wishes, > > PS: Please distribute this announcement to your colleagues or friends > who might be interested in its contents. > > ==================================================================== > Secretariat > Fishery-Aquatic GIS Research Group, > E-mail address : aco20320 at par.odn.ne.jp > Postal address : C/o Environment Simulation Laboratory, > 2F Noble Building, 2-4-1, Arajuku-Cho, Kawagoe-city, > Saitama-ken, Japan (zip code) 350-1124 > http : www.esl.co.jp/Sympo/index.htm > Phone : 81(Japan)-492-42-9262, > FAX : 81(Japan)-492-41-2442 > ==================================================================== > > > > > > > From murilo.yoshida at AGX.COM.BR Mon Feb 14 18:39:08 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Mon, 14 Feb 2005 23:39:08 -0300 Subject: php/mapscript bug - URGENT Message-ID: Hi all, This is about that saveWebImage bug, that shows random images to the user. I am going to install a second php on my server, as a cgi, and run mapscript on it. The problem is that I have several pages that do not show images on screen, these pages does some stuff like creating shapefiles, making a projection conversion, this kind of stuff. What I wanted to know is if this image bug is restricted to the images... Can I still use mapscript with php-dso when I don't how images? I think that I can, but I'm not sure. Thanks, Murilo From fwarmerdam at GMAIL.COM Mon Feb 14 18:23:38 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 14 Feb 2005 21:23:38 -0500 Subject: ogr2ogr In-Reply-To: <1108418021.15131.2.camel@localhost.localdomain> Message-ID: On Mon, 14 Feb 2005 16:53:41 -0500, AJ Kertis wrote: > Hi, > > I'm trying to fiddle with ogr2ogr. I can convert the tgr files to shp > files fine. I just was wondering how the -where flag is supposed to > actually work. Like in my CompleteChain.shp file i have some field types > of fetype and i want to do ogr2ogr so that one type in there isn't in > the .shp file from the tgr file if that makes sense. Is this possible > with ogr2ogr? AJ, The following query just reports non-"St" features from the completechain layer. You should be able to use a similar constraint with ogr2ogr. ogrinfo -ro tst25023.rta CompleteChain -where 'fetype <> "St"' 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 woodbri at SWOODBRIDGE.COM Mon Feb 14 19:07:31 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 14 Feb 2005 22:07:31 -0500 Subject: php/mapscript bug - URGENT In-Reply-To: <000c01c51307$87a34450$1364a8c0@parapente> Message-ID: Murilo, I'm not sure anyone can say it works definitively, so the safe answer is do not use the DSO version, especially if you are have problems with it. Mapserver working in a DSO is very new and we as a group have very little experience with it. If you can afford to help us out testing and reporting results using the DSO version that would be grand, but if you need to get you site up and working reliably, we all know that the cgi stuff works and works well. You can run all your other non mapscript code using the DSO, just configure apache to use the CGI version for the directories that contain mapscript. -Steve W. Murilo Lacerda Yoshida wrote: > Hi all, > This is about that saveWebImage bug, that shows random images to the > user. > I am going to install a second php on my server, as a cgi, and run > mapscript on it. The problem is that I have several pages that do not > show images on screen, these pages does some stuff like creating > shapefiles, making a projection conversion, this kind of stuff. > > What I wanted to know is if this image bug is restricted to the > images... Can I still use mapscript with php-dso when I don't how > images? > I think that I can, but I'm not sure. > Thanks, > Murilo > From schuyler at NOCAT.NET Mon Feb 14 19:20:02 2005 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Mon, 14 Feb 2005 19:20:02 -0800 Subject: [OT]: ESRI World Basemap Data In-Reply-To: Message-ID: * On 14-Feb-2005 at 2:13PM PST, Mapserver User said: > Hi, does anyone know if there's a ftp site where you can download the ESRI > World Basemap Data. It's really annoying to select a rectangle (Preview), > and then download the data! Have a look at http://mappinghacks.com/data/. SDE From gireddy at GMAIL.COM Mon Feb 14 19:25:28 2005 From: gireddy at GMAIL.COM (Shashi Gireddy) Date: Mon, 14 Feb 2005 21:25:28 -0600 Subject: dynamically supress/enable lables at zoom in/out Message-ID: Hi all, I want to supress the labels where the area is not enough to display but i want to display them after it is zoomed ... is it possible. (or) I want to transfer to entirely different program which displays a different map(just like HTML map). Sobody did it( I am not sure if it is mapscript, may be ArcIMS) for indian maps. anybody has any idea. thanks in advance. shashi From murilo.yoshida at AGX.COM.BR Mon Feb 14 20:40:21 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 15 Feb 2005 01:40:21 -0300 Subject: RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT In-Reply-To: <42116773.4090905@swoodbridge.com> Message-ID: Steve, I installed the second php on my Server, as a cgi. It worked, the bug isn't there anymore. But is amazing how the mapscript performance working with php as cgi is so much lower than that with php as a dso... If the image I want to see has never been drawed in that session, it takes around 4 seconds to draw it (I have direct access to the server trough the lan), while with dso it takes less than a second in the worst case... Do you know if the proj and shape functions of mapscript are also affected by this bug? If I understood it right the bug is related to thread problems, right? So there is a chance that this functions (shape and proj) are affected as they are called by a thread? Do you know if mapserver works with apache 2.0 and php5 with cgid? There is a rumor that is faster than regular cgi..... Thanks, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Stephen Woodbridge Enviada em: ter?a-feira, 15 de fevereiro de 2005 00:08 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Murilo, I'm not sure anyone can say it works definitively, so the safe answer is do not use the DSO version, especially if you are have problems with it. Mapserver working in a DSO is very new and we as a group have very little experience with it. If you can afford to help us out testing and reporting results using the DSO version that would be grand, but if you need to get you site up and working reliably, we all know that the cgi stuff works and works well. You can run all your other non mapscript code using the DSO, just configure apache to use the CGI version for the directories that contain mapscript. -Steve W. Murilo Lacerda Yoshida wrote: > Hi all, > This is about that saveWebImage bug, that shows random images to the > user. > I am going to install a second php on my server, as a cgi, and run > mapscript on it. The problem is that I have several pages that do not > show images on screen, these pages does some stuff like creating > shapefiles, making a projection conversion, this kind of stuff. > > What I wanted to know is if this image bug is restricted to the > images... Can I still use mapscript with php-dso when I don't how > images? > I think that I can, but I'm not sure. > Thanks, > Murilo > From ed at TOPOZONE.COM Mon Feb 14 19:47:36 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 14 Feb 2005 22:47:36 -0500 Subject: RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Message-ID: Murilo - Any software can be made to run as quickly as you like, IF you do not require it to give you the right answer! I am a little surprised that you see that much difference between two situations when you're looking at one image being drawn one time. Are you sure you are comparing similar situations? - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Murilo Lacerda Yoshida Sent: Monday, February 14, 2005 11:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Steve, I installed the second php on my Server, as a cgi. It worked, the bug isn't there anymore. But is amazing how the mapscript performance working with php as cgi is so much lower than that with php as a dso... If the image I want to see has never been drawed in that session, it takes around 4 seconds to draw it (I have direct access to the server trough the lan), while with dso it takes less than a second in the worst case... Do you know if the proj and shape functions of mapscript are also affected by this bug? If I understood it right the bug is related to thread problems, right? So there is a chance that this functions (shape and proj) are affected as they are called by a thread? Do you know if mapserver works with apache 2.0 and php5 with cgid? There is a rumor that is faster than regular cgi..... Thanks, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Stephen Woodbridge Enviada em: ter?a-feira, 15 de fevereiro de 2005 00:08 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Murilo, I'm not sure anyone can say it works definitively, so the safe answer is do not use the DSO version, especially if you are have problems with it. Mapserver working in a DSO is very new and we as a group have very little experience with it. If you can afford to help us out testing and reporting results using the DSO version that would be grand, but if you need to get you site up and working reliably, we all know that the cgi stuff works and works well. You can run all your other non mapscript code using the DSO, just configure apache to use the CGI version for the directories that contain mapscript. -Steve W. Murilo Lacerda Yoshida wrote: > Hi all, > This is about that saveWebImage bug, that shows random images to the > user. > I am going to install a second php on my server, as a cgi, and run > mapscript on it. The problem is that I have several pages that do not > show images on screen, these pages does some stuff like creating > shapefiles, making a projection conversion, this kind of stuff. > > What I wanted to know is if this image bug is restricted to the > images... Can I still use mapscript with php-dso when I don't how > images? > I think that I can, but I'm not sure. > Thanks, > Murilo > From murilo.yoshida at AGX.COM.BR Mon Feb 14 20:48:54 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 15 Feb 2005 01:48:54 -0300 Subject: RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT In-Reply-To: <42116773.4090905@swoodbridge.com> Message-ID: I tested fastcgi now (for php-mapscript, not mapserv-cgi), it's definitely faster, and is a great option for php-dso... Hope that helps, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Stephen Woodbridge Enviada em: ter?a-feira, 15 de fevereiro de 2005 00:08 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Murilo, I'm not sure anyone can say it works definitively, so the safe answer is do not use the DSO version, especially if you are have problems with it. Mapserver working in a DSO is very new and we as a group have very little experience with it. If you can afford to help us out testing and reporting results using the DSO version that would be grand, but if you need to get you site up and working reliably, we all know that the cgi stuff works and works well. You can run all your other non mapscript code using the DSO, just configure apache to use the CGI version for the directories that contain mapscript. -Steve W. Murilo Lacerda Yoshida wrote: > Hi all, > This is about that saveWebImage bug, that shows random images to the > user. > I am going to install a second php on my server, as a cgi, and run > mapscript on it. The problem is that I have several pages that do not > show images on screen, these pages does some stuff like creating > shapefiles, making a projection conversion, this kind of stuff. > > What I wanted to know is if this image bug is restricted to the > images... Can I still use mapscript with php-dso when I don't how > images? > I think that I can, but I'm not sure. > Thanks, > Murilo > From woodbri at SWOODBRIDGE.COM Mon Feb 14 19:54:04 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 14 Feb 2005 22:54:04 -0500 Subject: dynamically supress/enable lables at zoom in/out In-Reply-To: <5f447e3505021419252bc39df2@mail.gmail.com> Message-ID: This id completely under the control of the mapfile. You can set MINSCALE/MAXSCALE to turn layers on/off and you can set LABELMINSCALE/LABELMAXSCALE to control when labels are turned on/off These are all documented in the Mapfile Reference manual incase you need more details. -Steve W. Shashi Gireddy wrote: > Hi all, > I want to supress the labels where the area is not enough to display > but i want to display them after it is zoomed ... is it possible. (or) > I want to transfer to entirely different program which displays a > different map(just like HTML map). Sobody did it( I am not sure if it > is mapscript, may be ArcIMS) for indian maps. > > anybody has any idea. > thanks in advance. > shashi > From murilo.yoshida at AGX.COM.BR Mon Feb 14 20:56:09 2005 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Tue, 15 Feb 2005 01:56:09 -0300 Subject: RES: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FCC24@ptolemy.topozone.com> Message-ID: Ed, I'm comparing the same maps with the same operations (zoom and pan). With cgi it takes a lot more time to draw the same map. But now with fastcgi mapscript is drawing nice. Just a note, I am in a local network with the server, so maybe this affects the results. Murilo -----Mensagem original----- De: Ed McNierney [mailto:ed at topozone.com] Enviada em: ter?a-feira, 15 de fevereiro de 2005 00:48 Para: Murilo Lacerda Yoshida; MAPSERVER-USERS at LISTS.UMN.EDU Assunto: RE: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Murilo - Any software can be made to run as quickly as you like, IF you do not require it to give you the right answer! I am a little surprised that you see that much difference between two situations when you're looking at one image being drawn one time. Are you sure you are comparing similar situations? - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Murilo Lacerda Yoshida Sent: Monday, February 14, 2005 11:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Steve, I installed the second php on my Server, as a cgi. It worked, the bug isn't there anymore. But is amazing how the mapscript performance working with php as cgi is so much lower than that with php as a dso... If the image I want to see has never been drawed in that session, it takes around 4 seconds to draw it (I have direct access to the server trough the lan), while with dso it takes less than a second in the worst case... Do you know if the proj and shape functions of mapscript are also affected by this bug? If I understood it right the bug is related to thread problems, right? So there is a chance that this functions (shape and proj) are affected as they are called by a thread? Do you know if mapserver works with apache 2.0 and php5 with cgid? There is a rumor that is faster than regular cgi..... Thanks, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Stephen Woodbridge Enviada em: ter?a-feira, 15 de fevereiro de 2005 00:08 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Murilo, I'm not sure anyone can say it works definitively, so the safe answer is do not use the DSO version, especially if you are have problems with it. Mapserver working in a DSO is very new and we as a group have very little experience with it. If you can afford to help us out testing and reporting results using the DSO version that would be grand, but if you need to get you site up and working reliably, we all know that the cgi stuff works and works well. You can run all your other non mapscript code using the DSO, just configure apache to use the CGI version for the directories that contain mapscript. -Steve W. Murilo Lacerda Yoshida wrote: > Hi all, > This is about that saveWebImage bug, that shows random images to the > user. > I am going to install a second php on my server, as a cgi, and run > mapscript on it. The problem is that I have several pages that do not > show images on screen, these pages does some stuff like creating > shapefiles, making a projection conversion, this kind of stuff. > > What I wanted to know is if this image bug is restricted to the > images... Can I still use mapscript with php-dso when I don't how > images? > I think that I can, but I'm not sure. > Thanks, > Murilo > From ed at TOPOZONE.COM Mon Feb 14 19:58:55 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 14 Feb 2005 22:58:55 -0500 Subject: RES: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Message-ID: Murilo - Yes, I've just started using FastCGI with MapServer, and I'm quite happy with the results. - Ed -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Murilo Lacerda Yoshida Sent: Monday, February 14, 2005 11:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Ed, I'm comparing the same maps with the same operations (zoom and pan). With cgi it takes a lot more time to draw the same map. But now with fastcgi mapscript is drawing nice. Just a note, I am in a local network with the server, so maybe this affects the results. Murilo -----Mensagem original----- De: Ed McNierney [mailto:ed at topozone.com] Enviada em: ter?a-feira, 15 de fevereiro de 2005 00:48 Para: Murilo Lacerda Yoshida; MAPSERVER-USERS at LISTS.UMN.EDU Assunto: RE: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Murilo - Any software can be made to run as quickly as you like, IF you do not require it to give you the right answer! I am a little surprised that you see that much difference between two situations when you're looking at one image being drawn one time. Are you sure you are comparing similar situations? - Ed Ed McNierney TopoZone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Murilo Lacerda Yoshida Sent: Monday, February 14, 2005 11:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] RES: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Steve, I installed the second php on my Server, as a cgi. It worked, the bug isn't there anymore. But is amazing how the mapscript performance working with php as cgi is so much lower than that with php as a dso... If the image I want to see has never been drawed in that session, it takes around 4 seconds to draw it (I have direct access to the server trough the lan), while with dso it takes less than a second in the worst case... Do you know if the proj and shape functions of mapscript are also affected by this bug? If I understood it right the bug is related to thread problems, right? So there is a chance that this functions (shape and proj) are affected as they are called by a thread? Do you know if mapserver works with apache 2.0 and php5 with cgid? There is a rumor that is faster than regular cgi..... Thanks, Murilo -----Mensagem original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Em nome de Stephen Woodbridge Enviada em: ter?a-feira, 15 de fevereiro de 2005 00:08 Para: MAPSERVER-USERS at LISTS.UMN.EDU Assunto: Re: [UMN_MAPSERVER-USERS] php/mapscript bug - URGENT Murilo, I'm not sure anyone can say it works definitively, so the safe answer is do not use the DSO version, especially if you are have problems with it. Mapserver working in a DSO is very new and we as a group have very little experience with it. If you can afford to help us out testing and reporting results using the DSO version that would be grand, but if you need to get you site up and working reliably, we all know that the cgi stuff works and works well. You can run all your other non mapscript code using the DSO, just configure apache to use the CGI version for the directories that contain mapscript. -Steve W. Murilo Lacerda Yoshida wrote: > Hi all, > This is about that saveWebImage bug, that shows random images to the > user. > I am going to install a second php on my server, as a cgi, and run > mapscript on it. The problem is that I have several pages that do not > show images on screen, these pages does some stuff like creating > shapefiles, making a projection conversion, this kind of stuff. > > What I wanted to know is if this image bug is restricted to the > images... Can I still use mapscript with php-dso when I don't how > images? > I think that I can, but I'm not sure. > Thanks, > Murilo > From John.Spotten at CAPETOWN.GOV.ZA Mon Feb 14 21:25:31 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Tue, 15 Feb 2005 07:25:31 +0200 Subject: mapserver speed issues Message-ID: NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- Thanks Frank, I assume that full use is made of the attribute indexing in native shape files. bye for now john John Spotten Transport Modeller/GIS Developer Directorate of Transport, Roads and Stormwater City of Cape Town Tel : +27 21 4067325 Fax : +27 21 4186989 Cell : +27 846678901 Email : john.spotten at capetown.gov.za Web : www.capetown.gov.za -----Original Message----- From: Frank Warmerdam [mailto:fwarmerdam at gmail.com] Sent: 09 February 2005 10:09 PM To: John Spotten Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] mapserver speed issues On Wed, 9 Feb 2005 17:55:45 +0200, John Spotten wrote: > hi , > > does mapserver make use of indexing present in external databases such as > mapinfo, as I am considering breaking up a 90000 record layer into 5 classes > each with it's own styling and doing some further joining with other > sources. John, OGR currently has no support for using mapinfo attribute index, even though I (ironically) use mapinfo style attribute indexes for Shapefiles in OGR. In any event, it can be very hard to get MapServer to use OGR for attribute queries. On recently (in 4.5) was an option implemented in MapServer to pass the FILTER directive down to OGR. And even now classification expressions are always evaluated by MapServer. So, the situation for attribute query and classification is that you should really try and do any subsetting you can of data as a preprocessing step when working with mapserver through OGR. The situation is somewhat better with the RDBMS connectors in that you can provide SQL FILTERs that are evaluated by the database (though classification is still done in MapServer). The other kind of index is a spatial index. OGR and MapServer will indeed take full advantage of a mapinfo tab spatial index to quickly extract the features of a small area from a large file. Only a few other OGR format drivers support fast spatial searching. > I know I will have to check speeds over our intranet first for various > options and log test results. > > Is there any documentation on speed issues and tips and tricks on how to > improve speed. Nothing terribly organized I am afraid. For OGR drivers it can sometimes be helpful to read the driver/format information page on the ogr web site. 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 -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: From covariance at SHAW.CA Mon Feb 14 22:07:11 2005 From: covariance at SHAW.CA (Bob Bruce) Date: Tue, 15 Feb 2005 00:07:11 -0600 Subject: Error when compiling mapwmslayer.c when building MapServer on Windows 2000 Pro Message-ID: I am building mapserver so that I can build PHP MapScript and am getting some errors that I haven't seen before. I was getting some errors and an earlier note from the listserv said to enable the WMS Client and libcurl so I downloaded the libcurl source and configured the nmake.opt file to see it. Can someone tell me how to fix these compile errors? Thanks. Bob Bruce Part of the way through the build it produced the following error messages: Error building MapServer for PHP MapScript on Windows 2000 Pro cl /nologo /MD /W3 /DDEBUG -Ic:/projects/gdwin32 - Ic:\projects\proj-4.4.9/src -IC:\ php-5.0.3/regex -DPHP_NO_ALIASES -IC:/Projects/curl- 7.13.0/include -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASECMP -DNEED_STRNCASECMP -DNEED_STRLCAT - DWIN32 -D_WIN32 -DUSE_ PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP - DUSE_GD_GIF -DGD_HAS_GDIMAGEG IFPTR -DUSE_GD_FT -DGD_HAS_GETBITMAPFONT -DUSE_WMS_LYR - DIGNORE_MISSING_DATA -DENABLE_STDE RR_DEBUG -DUSE_GD_ANTIALIAS /c mapwmslayer.c /Fomapwmslayer.obj mapwmslayer.c mapwmslayer.c(272) : warning C4013: 'msOWSLookupMetadata' undefined; assuming extern returning int mapwmslayer.c(273) : warning C4047: '=' : 'const char *' differs in levels of indirection from 'int ' (this message repeated for different lines in the source file) mapwmslayer.c(432) : warning C4013: 'msSLDGenerateSLD' undefined; assuming extern returning int mapwmslayer.c(432) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' mapwmslayer.c(514) : warning C4013: 'msOWSParseVersionString' undefined; assuming extern return ing int mapwmslayer.c(517) : error C2065: 'OWS_1_0_8' : undeclared identifier mapwmslayer.c(517) : error C2051: case expression not constant mapwmslayer.c(518) : error C2065: 'OWS_1_1_0' : undeclared identifier mapwmslayer.c(520) : error C2065: 'OWS_1_0_0' : undeclared identifier mapwmslayer.c(520) : error C2051: case expression not constant mapwmslayer.c(521) : error C2065: 'OWS_1_0_7' : undeclared identifier mapwmslayer.c(521) : error C2051: case expression not constant mapwmslayer.c(522) : error C2051: case expression not constant mapwmslayer.c(523) : error C2065: 'OWS_1_1_1' : undeclared identifier mapwmslayer.c(523) : error C2051: case expression not constant NMAKE : fatal error U1077: 'cl' : return code '0x2' Stop. My nmake.opt file is configured as follows: # # 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.19 2004/12/09 20:18:22 frank 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 ######################################################################## # Uncomment the following to link mapserv.exe withh dll DLLBUILD=1 # Set the following to point to the current directory. MS_BASE = C:\projects\mapserver_dev # Optmization and related compile flags. # Optimized, with using MSVCRT. OPTFLAGS = /nologo /MD $(WARNING_LEVEL) $(DEBUG) #LDFLAGS = /NODEFAULTLIB:msvcrt /NODEFAULTLIB:libcd /DEBUG # Debug with MSVCRT #OPTFLAGS = /nologo /Zi /MD $(WARNING_LEVEL) $(DEBUG) # Optimized, with LIBC. #OPTFLAGS = /nologo $(WARNING_LEVEL) $(DEBUG) # Input raster format options: # # The lite version of mapserver 4.x supports only GIF, PNG and JPEG data for # input. If you wish to support many geospatial raster formats for input # you will need the GDAL support library from http://www.gdal.org/. # Once built, enable the GDAL flag, and point GDAL_DIR to the directory # where GDAL was built. #GDAL=-DUSE_GDAL #GDAL_DIR=c:\projects\gdal-1.2.5 # # Input vector format options # # The lite version of Mapserver 4.x only suports ESRI shapefiles for input. # # The OGR library (part of GDAL) supports a variety of geospatial vector # formats including mapinfo, Arc/Info binary coverages, S-57, SDTS, # Microstation DGN (pre-v7), TIGER, UK .NTF. It also include support for # treating non-spatial tablular data from ODBC, CSV, mysql, Oracle Spatial, # and PostgreSQL as spatial table with use of the VRT (virtual) driver. # # NOTE: Both -DUSE_OGR and -DUSE_GDAL need to be defined if you want to # use GDAL/OGR for both raster and vector support, but GDAL_DIR needs only # be defined once. # #OGR=-DUSE_OGR #GDAL_DIR=c:\projects\gdal-1.2.5 # 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=c:/projects/libjpeg # Output format options: # If you wish to allow JPEG output maps, uncomment the following flag. # If not using a GD build with an internal copy of libjpeg, you will # also need to uncomment JPEG_DIR and point to it; however, with BGD.DLL # that is not necessary. OUTPUT_JPEG=-DUSE_GD_JPEG #JPEG_DIR=c:/projects/libjpeg # If you wish to allow PNG output maps, uncomment the following flag. # If not using a GD build with an internal copy of libpng, you will # also need to uncomment PNG_DIR and ZLIB_DIR and point to it; however, with # BGD.DLL that is not necessary. # See http://www.libpng.org/pub/png/libpng.html for support library. # See http://www.gzip.org/zlib/ for support library. OUTPUT_PNG=-DUSE_GD_PNG #PNG_DIR=c:/projects/libpng-1.2.7 #ZLIB_DIR=c:/projects/zlib-1.2.1 # 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.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-6.0.0 # 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 # support library, unless it is provided within your GD build as is the # case with BGD.DLL. # See http://www.freetype.org for support library. ANNOTATION_FT=-DUSE_GD_FT #FT_DIR=c:/projects/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 # 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 # # To include experimental SDE_RASTER support, include "-DUSE_SDERASTER" in the # SDE_OPT. # #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. 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) 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/ #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 may also need to the full path to the windows socket library. WMSCLIENT= -DUSE_WMS_LYR #CURL_DIR=c:/projects/curl-7.10.2 #CURL_DIR=c:/projects/curl-7.10.7 CURL_DIR=C:/Projects/curl-7.13.0 #WINSOCK_LIB = "WSOCK32.LIB" 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 #WFS=-DUSE_WFS_SVR # Use -DUSE_WFS_LYR to compile with WFS client support, requires libcurl #WFSCLIENT= -DUSE_WFS_LYR # Use -DUSE_WCS_SVR to compile with WCS server support, requires GDAL. #WCS=-DUSE_WCS_SVR #libiconv support is used for to support double bytes (see bug 911). #uncomment the following to build with libiconv support. #ICONV=-DUSE_ICONV # # 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). PROJ.4 is # also required for all OGC services (WMS, WFS, and WCS). # # For PROJ_DIR use full path to Proj.4 distribution PROJ=-DUSE_PROJ -DUSE_PROJ_API_H PROJ_DIR=c:\projects\proj-4.4.9 # PHP Mapscript. # If you plan to build PHP mapscript uncomment the following flag and # set the full path to the PHP project directory PHP4=1 #PHP_DIR=c:\projects\php-4.3.4 PHP_DIR=C:\php-5.0.3 # 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=c:/projects/gdwin32 GD_LIB=$(GD_DIR)/bgd.lib #if the GD version you are using is above GD 2.0.22, uncomment the following flag to #have a proper support for bitmap fonts (see Bug 969 for more details) GD_HAS_GETBITMAPFONT=-DGD_HAS_GETBITMAPFONT # 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 PHP4 REGEX_DIR=c:\projects\regex-0.12 !ENDIF # FastCGI Support # # Uncomment, and update accordingly. #FCGIDIR=C:\projects\fcgi-2.4.0 #FCGILIB=$(FCGIDIR)\libfcgi\Debug\libfcgi.lib #FCGIINC=-I$(FCGIDIR)\include #FCGIDEF=-DUSE_FASTCGI ######################################################################## # 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. ######################################################################## MS_LIB = mapserver.lib MS_LIB_DLL = mapserver_i.lib # Proj.4 include and library !IFDEF PROJ_DIR PROJ_INC=-I$(PROJ_DIR)/src PROJ_LIB=$(PROJ_DIR)/src/proj_i.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 JPEG_DIR JPEG_LIB=$(JPEG_DIR)/libjpeg.lib !ENDIF # Set the png support libaries !IFDEF PNG_DIR PNG_LIB=$(PNG_DIR)/libpng.lib $(ZLIB_DIR)/zlib.lib !ENDIF # Set the FreeType library !IFDEF FT_DIR #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_LIBS= $(GD_DIR)/bgd.lib $(JPEG_LIB) $(PNG_LIB) $(FT_LIB) GD= $(OUTPUT_PNG) $(OUTPUT_JPEG) $(OUTPUT_WBMP) $(OUTPUT_GIF) $(ANNOTATION_FT) $(GD_HAS_GETBITMAPFONT) # Tiff library on input !IFDEF TIFF TIFF_INC=-I$(TIFF_DIR)/libtiff TIFF_LIB=$(TIFF_DIR)/libtiff/libtiff.lib !ENDIF # JPEG library on input !IFDEF JPEG_DIR JPEG_LIB=$(JPEG_DIR)/libjpeg.lib !ENDIF # Setup GDAL includes and libraries !IFDEF GDAL GDAL_INC = -I$(GDAL_DIR)/gcore -I$(GDAL_DIR)/alg -I$(GDAL_DIR)/ogr - I$(GDAL_DIR)/port 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)/port OGR_LIB = $(GDAL_DIR)/gdal_i.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 # Setup REGEX object and includes !IFNDEF PHP4 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 #libiconv support !IFDEF ICONV ICONV_LIB=c:\usr\lib\iconv.lib ICONV_INC= -Ic:\usr\include !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 ######################################################################## # Should not need to be updated. ######################################################################## EXTERNAL_LIBS=$(GD_LIBS) $(TIFF_LIB) $(JPEG_LIB) \ $(PROJ_LIB) $(OGR_LIB) $(GDAL_LIB)\ $(CURL_LIB) $(MING_LIB) $(PDF_LIB) \ $(WINSOCK_LIB) $(POSTGIS_LIB) $(IMGGEN_LIB) $(ERR_LIB) \ $(ORACLE_LIB) $(SDE_LIB) $(ICONV_LIB) $(FCGILIB) 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) $(SDE_INC)\ $(ICONV_INC) $(FCGIINC) MS_DEFS = $(REGEX_OPT) $(STRINGS) $(POSTGIS) -DWIN32 -D_WIN32 \ $(EPPL) $(PROJ) $(TIFF) $(JPEG) $(GD) $(OGR) $(WMS) \ $(WMSCLIENT) $(MING) $(IGNORE_MISSING_DATA) $(NEED_NONBLOCKING_STDERR) $(ENABLE_STDERR_DEBUG) \ $(GDAL) $(FCGIDEF) \ $(WFS) $(WFSCLIENT) $(WCS) $(PDF) $(EGIS) \ $(USE_GD_ANTIALIAS) $(ORACLE) $(MING_VERSION) $(SDE_OPT) $(ICONV) MS_CFLAGS=$(INCLUDES) $(MS_DEFS) From John.Spotten at CAPETOWN.GOV.ZA Tue Feb 15 00:02:30 2005 From: John.Spotten at CAPETOWN.GOV.ZA (John Spotten) Date: Tue, 15 Feb 2005 10:02:30 +0200 Subject: displaying mrsid files in mapserver Message-ID: NOTE: This e-mail (including attachments) is subject to the restrictions, qualifications and disclaimers (?disclaimer?) published at www.capetown.gov.za/disclaimer/email.pdf. Please read the disclaimer before opening any attachment or taking any other action in terms of this e-mail. If you cannot access the disclaimer, kindly send an email to infomail at capetown.gov.za and a copy will be provided to you. By acting on this e-mail or opening any attachment you agree to be bound by the provisions of the disclaimer. ------------------------------------------------- Thanks a million Frank, Now I see it. The reason I couldn't see the sid file in the applet was I hadn't renamed the georeferencing world file w55d.sdw to w55d.wld. I remember reading about it in a document on the mapserver site but forgot about it. A note of interest for other users, with the mrsid brower plugin from www.lizardtech.com installed and the gdal with mrsid reading/decoding support, when I click on the html anchors for the mrsid layers i.e. Sorry for the delay. > I couldn't send the w55d.sid mrsid file that doesn't display because it is rather large 60mb. John, If you can make it available for download by http somewhere, I could still grab it pretty easily. > below is an extract from the gdalinfo utility for w45a03.sid (3mb) and w55d.sid (60mb). > > I previously sent you mrsidinfo utility information for both files. > > any help would be much appreciated. I notice that the origin and pixel size properties in w45a03.sid are not present for w55d.sid. I get the impression that the input img file had georeferencing for w45a03.sid but this was not the case for the input tiff file for w55d.sid The coordinate system of the first file seems pretty screwy (linear unit is fathoms!) and what is there does not come through in the GDAL coordinate system description. The second file doesn't appear to have any georeferencing at all. If it has an sdw file, I suspect the problem is that GDAL is ignoring this. I believe there have been some recent improvements to world file handling in GDAL so a more recent build might be slightly better. In any event, if you rename the .sdw to .wld, MapServer will pick it up whether GDAL does or not. 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 -------------- A non-text attachment was scrubbed... Name: John Spotten.vcf Type: text/x-vcard Size: 226 bytes Desc: John Spotten.vcf URL: From sophie.chaveroux at AGRICULTURE.GOUV.FR Tue Feb 15 00:46:39 2005 From: sophie.chaveroux at AGRICULTURE.GOUV.FR (sophie chaveroux) Date: Tue, 15 Feb 2005 09:46:39 +0100 Subject: layer extent Message-ID: i'd like to display different layer on my interface. All this layer are described on my mapfile so for rach layer there is the same extent (define at the beginning of the mapfile...) but i'd like that some layer appear in different extent. How can i do this? Should i do deveral mapfile? From sophie.chaveroux at AGRICULTURE.GOUV.FR Tue Feb 15 01:09:55 2005 From: sophie.chaveroux at AGRICULTURE.GOUV.FR (sophie chaveroux) Date: Tue, 15 Feb 2005 10:09:55 +0100 Subject: layer extent Message-ID: Hello everybody!! i want to create a javascript fonction to zoom on a selected department but the fonction doesn't work and i don't know why??? somebody can help me? > > ... > > Cheers, > > Adam > > >> -----Original Message----- >> From: Stephen King [mailto:sdk at HARTLEYANDERSON.COM] >> Sent: Thursday, February 24, 2005 4:13 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Decimal Places in Attributes >> >> >> Hi, >> Can anyone tell me how to control the number of decimal >> places that are displayed by MapServer in an attributes >> template file? For example, I have a Shapefile that has two >> attributes called Eastings and Northings. When I do a query >> on a point using MapServer, these are output as >> 574074.31920000003 6599349.41849999970, I would like to show >> these to only two decimal places. Thanks, Stephen >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bf.toutain at FREE.FR Fri Feb 25 01:11:49 2005 From: bf.toutain at FREE.FR (=?ISO-8859-1?Q?Beno=EEt_Toutain?=) Date: Fri, 25 Feb 2005 10:11:49 +0100 Subject: Image Resolution Message-ID: Hi all, Is there any easy mean to change image resolution of images produced by mapserver with PHP/Mapscript ? I done it by modifying the size attribute in my map file, but I must change size of fonts and symbols too. I'd like to do it automatically. Thanks for your help, Beno?t From bartvde at XS4ALL.NL Fri Feb 25 01:18:14 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 25 Feb 2005 10:18:14 +0100 Subject: Image Resolution In-Reply-To: <421EEBD5.90909@free.fr> Message-ID: Hi, maybe you can use the resolution property of the map object? Default is 72 pixels per inch. Best regards, Bart > Hi all, > > Is there any easy mean to change image resolution of images produced by > mapserver with PHP/Mapscript ? > > I done it by modifying the size attribute in my map file, but I must > change size of fonts and symbols too. I'd like to do it automatically. > > Thanks for your help, > > Beno?t > From anuradha.barua at GMAIL.COM Fri Feb 25 01:31:04 2005 From: anuradha.barua at GMAIL.COM (Anuradha Barua) Date: Fri, 25 Feb 2005 15:01:04 +0530 Subject: Can someone help In-Reply-To: <421C8FAB.6000206@cerene.fr> Message-ID: Hi, I have looked at the TOLERANCE attribute for layer. I seem to be a bit confused here. Can I display also the attributes (like name of place) from the database for all points that are displayed ? At present, as I said earlier, my application (in Mapserver 4.0.1, PHP 4.3.4, mapscript 4.1 in windows)connects to a database (i am using ms-access)and checks for the x,y coordinate and if it matches, the polygon (and point) are highlited. Also some info about the point is shown in a table below. I would want to highlight adjoining points corresponding to the point the user clicked and areas too and display the related info from the access database. I would really appreciate help. Thanks and Regards From kristjan at TARKVARASTUUDIO.EE Fri Feb 25 01:32:28 2005 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Fri, 25 Feb 2005 11:32:28 +0200 Subject: Image Resolution In-Reply-To: <18392.212.238.227.182.1109323094.squirrel@212.238.227.182> Message-ID: Hi, What do you want to achieve with it? If you want to have a scaled printout, then you could use html and styles instead. Kristjan >Hi, > >maybe you can use the resolution property of the map object? Default is 72 >pixels per inch. > >Best regards, >Bart > > > >>Hi all, >> >>Is there any easy mean to change image resolution of images produced by >>mapserver with PHP/Mapscript ? >> >>I done it by modifying the size attribute in my map file, but I must >>change size of fonts and symbols too. I'd like to do it automatically. >> >>Thanks for your help, >> >>Beno?t >> >> >> From schick at SDAC.HANNOVER.BGR.DE Fri Feb 25 01:52:42 2005 From: schick at SDAC.HANNOVER.BGR.DE (Agneta Schick) Date: Fri, 25 Feb 2005 10:52:42 +0100 Subject: file system growing with open files Message-ID: Hello, We have a system problem on a machine with a mapserver application: "too many open files" A list of open files shows it is always the same file: the source file for a reference map (.png) which is in read mode and never closed. This could be a version problem because we have a similar application on another machine with no such problems. We run MapServer version 4.2.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE with mapscript perl 5.8.3 mod_perl-1.29 apache_1.3.27 on Solaris 9. We have set rlim_fd_cur=1024 and rlim_fd_max=4096 to no avail. On the machine without this problem we run MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE with mapscript perl 5.6.1 mod_perl-1.27 apache_1.3.22 on Solaris 8. Any hints are appreciated! Thanks in advance, Agneta Schick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Agneta Schick Bundesanstalt fuer Geowissenschaften und Rohstoffe Federal Institute for Geosciences and Natural Resources Stilleweg 2 D- 30655 Hannover Tel.: +49 511 643 3136 GERMANY FAX.: +49 511 643 3663 schick at sdac.hannover.bgr.de http://www.seismologie.bgr.de ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From bf.toutain at FREE.FR Fri Feb 25 02:02:41 2005 From: bf.toutain at FREE.FR (=?ISO-8859-1?Q?Beno=EEt_Toutain?=) Date: Fri, 25 Feb 2005 11:02:41 +0100 Subject: Image Resolution Message-ID: Hi, It's just to print my images on a pdf file with a good quality. When I change resolution propetry of the map object before doing a $map->draw() , it does not work (I use mapssever 4.2.5) Beno?t From stephane.riff at CERENE.FR Fri Feb 25 02:58:43 2005 From: stephane.riff at CERENE.FR (=?ISO-8859-1?Q?St=E9phane_RIFF?=) Date: Fri, 25 Feb 2005 11:58:43 +0100 Subject: Can someone help In-Reply-To: <5d49d2080502250131745c9461@mail.gmail.com> Message-ID: I don't remember exactly how it's work but the result of your queyByPoint should return all the indexes highlighted on the map Look at this code, it's not workable but hope it give you idea: call queryByxxx() function after call this function : function dumpQueryResults() { GLOBAL $map; $first = true; $numResultsTotal = 0; for($iLayer=0; $iLayer < $map->numlayers; $iLayer++) { $oLayer = $map->GetLayer($iLayer); $numResults = $oLayer->getNumResults(); if ($numResults == 0) continue; // No results in this layer $oLayer->open(""); $selFields = explode(" ", $oLayer->getMetaData("RESULT_FIELDS")); // // One row in table for each selected record // for ($iRes=0; $iRes < $numResults; $iRes++) { $oRes = $oLayer->getResult($iRes); if($oRes != FALSE) { $oShape = $oLayer->getShape(-1,$oRes->shapeindex); for($iField=0; $iField < sizeof($selFields); $iField++) { print($oShape->values[$selFields[$iField]]); } $oShape->free(); $numResultsTotal++; } } $oLayer->close(); } if ($numResultsTotal == 0) print("Nothing found at query location."); } hope this helps Anuradha Barua wrote: >Hi, >I have looked at the TOLERANCE attribute for layer. I seem to be a bit >confused here. Can I display also the attributes (like name of place) >from the database for all points that are displayed ? At present, as I >said earlier, my application (in Mapserver 4.0.1, PHP 4.3.4, mapscript >4.1 in windows)connects to a database (i am using ms-access)and checks >for the x,y coordinate and if it matches, the polygon (and point) are >highlited. Also some info about the point is shown in a table below. >I would want to highlight adjoining points corresponding to the point >the user clicked and areas too and display the related info from the >access database. >I would really appreciate help. > Thanks and Regards > > > > -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.4.0 - Release Date: 22/02/2005 From wlx at MYGIS.ORG Fri Feb 25 03:23:46 2005 From: wlx at MYGIS.ORG (wlx) Date: Fri, 25 Feb 2005 19:23:46 +0800 Subject: compiled error with php4 support on debian sarge system Message-ID: Hi, My system is debian sarge,and I compiled php 4 with a long parameter,about twenty lines,and I download the cvs code of mapserver,and comile with php support, the configure command is fine,but when I compile it - run make command, something wrong with it. The error message : php_mapscript.c:5970: error: too many arguments to function `php_header' Is this a bug or something I mistaken? Best wish! Sincerely yours, Liangxu Wang From superbla3000 at GMX.NET Fri Feb 25 03:39:24 2005 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 25 Feb 2005 12:39:24 +0100 Subject: which gdal steps In-Reply-To: <931f8ea90502241551fbb4131@mail.gmail.com> Message-ID: Frank, thanks for your answer, but I have a problem: > gdalwarp in.tif latlong.tif -t_srs WGS84 -co TILED=YES I did gdalwarp in.tif latlong.tif -t_srs WGS84 -co TILED=YES -rc After this, I opened the image again in globalmapper. The reprojection was fine, but now the image is somehow destroyed. It looks like a pointilism image, lots of very little colored areas, almost like points.. Was this the -rc option, or is the problem before that? Joerg From sandeep.bashyal at GMAIL.COM Fri Feb 25 03:49:20 2005 From: sandeep.bashyal at GMAIL.COM (Sandeep) Date: Fri, 25 Feb 2005 17:34:20 +0545 Subject: classifying with an external datasource In-Reply-To: Message-ID: On Fri, 25 Feb 2005 02:30:39 -0600, Richard Jansen wrote: > Hi List, > > I want to classify and color a poly shape. The values for classifying are > stored in a SQL Server database. When I read the List I understand that > this is not possible. I'm trying to join a template dbf file with the > needed values. I also tried to add new field to the dbf, that's not > simple. > I'm using PHP/Mapscript. Is there a way to do this? > > Thanks for your comments, > Richard Jansen Richard, If you don't have a very large number of polygons to classify, here's a snip from one of my earlier posts: ... you can generate classes and expressions dynamically with mapscript. Here is the php mapscript code I use to classify districts into "$no_classes" number of classes (using arcview-style quantile method) using data from an external mysql database (the external database has a field called DIST_ID that associates with the shapefile): //run sql query $sql = "SELECT DIST_ID, DIST_NAME, ".$databasefield." FROM DISTRICTS_".$databasetable.$filter_where; $result = mysql_query($sql, $connection); // assign sql results into arrays while ($row = mysql_fetch_assoc($result)){ $ID[]=$row["DIST_ID"]; $DIST_NAME[]=$row["DIST_NAME"]; ${$databasefield}[]=$row[$databasefield]; } //end while //sort the query results if (${$databasefield}){array_multisort(${$databasefield}, SORT_ASC, SORT_NUMERIC, $DIST_NAME, SORT_STRING, $ID, SORT_STRING);} mysql_free_result($result); mysql_close($connection); //count the number of records in the array $no_records=count($ID); if ($no_classes > $no_records){$no_classes = $no_records;} if ($no_classes > 0){ //number of class items $no_classitems = ceil($no_records / $no_classes); //split the arrays into chunks $class_ID=array_chunk($ID,$no_classitems,true); $class_value=array_chunk(${$databasefield},$no_classitems,true); } // end if $no_classes > 0 //set classitem $layer_districts->set("classitem","OBJID"); //draw classes $i=0; while ($i < $no_classes){ $i++; //class expressions $class_array = $class_ID[$i-1]; if ($class_array){ $expression[$i]="/".implode("|",$class_array)."/"; //legend key labels $class_legend_key1=$class_value[$i-1][($i-1)*$no_classitems]; $class_legend_key2=$class_value[$i-1][($i-1)*$no_classitems + $no_classitems -1]; if ($class_legend_key2 == NULL){$class_legend_key2 = $class_value[$i-1][$no_records-1];} $class_legend_key[$i]=$class_legend_key1." to ".$class_legend_key2; //draw layers $class[$i] = ms_newClassObj($layer_districts); $class[$i]->set("name",$class_legend_key[$i]); $class[$i]->setexpression($expression[$i]); $class_style[$i] = ms_newStyleObj ($class[$i]); $class_style[$i]->outlinecolor->setRGB(-1,-1,-1); $class_style[$i]->color->setRGB($color_r[$i-1],$color_g[$i-1],$color_b[$i-1]); } // end if $class_array }//end while -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ From floerke at DOCTRONIC.DE Fri Feb 25 04:46:29 2005 From: floerke at DOCTRONIC.DE (=?ISO-8859-1?Q?Holger_Fl=F6rke?=) Date: Fri, 25 Feb 2005 13:46:29 +0100 Subject: classifying with an external datasource In-Reply-To: Message-ID: Hi Richard, I did not find any way to add dynamically values to shapes from a shapefile. Setting those values with php/mapscript does not work and modifying the classindex attribute does not work. I ended with producing dynamically a new dbf file (caution the order of the rows in the dbf has to be exact the order of the shapes in the shapefile) and wrote a php/mapscript extension where I can tell mapserver to use the new dbf file instead of the shape-dbf file. HolgeR Richard Jansen schrieb: > Hi List, > > I want to classify and color a poly shape. The values for classifying are > stored in a SQL Server database. When I read the List I understand that > this is not possible. I'm trying to join a template dbf file with the > needed values. I also tried to add new field to the dbf, that's not simple. > I'm using PHP/Mapscript. Is there a way to do this? > > Thanks for your comments, > Richard Jansen > -- holger floerke d o c t r o n i c email floerke at doctronic.de information publishing + retrieval phone +49 2222 9292 90 http://www.doctronic.de From floerke at DOCTRONIC.DE Fri Feb 25 04:23:33 2005 From: floerke at DOCTRONIC.DE (=?ISO-8859-1?Q?Holger_Fl=F6rke?=) Date: Fri, 25 Feb 2005 13:23:33 +0100 Subject: Image Resolution In-Reply-To: <421EF7C1.1030805@free.fr> Message-ID: Hi Beno?t, I was faced with the same task: rendering high resolution images of maps for printing. The "resolution" value within the mapfile is only for the computation of the scale necessary. I ended with a php/mapscript script that increases the pixel width and height of the map and increase also all size/minsize/maxsize values of the map before drawing. The result is a *big* gif-image. The last drawback is, I couldn't set the right resolution to the image. HolgeR Beno?t Toutain schrieb: > Hi, > > It's just to print my images on a pdf file with a good quality. > When I change resolution propetry of the map object before doing a > $map->draw() , it does not work > (I use mapssever 4.2.5) > > Beno?t > -- holger floerke d o c t r o n i c email floerke at doctronic.de information publishing + retrieval phone +49 2222 9292 90 http://www.doctronic.de From bartvde at XS4ALL.NL Fri Feb 25 05:17:15 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 25 Feb 2005 14:17:15 +0100 Subject: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query Message-ID: Hi list, I have been trying to get rid of the Mapserver error messages as described in the subject line. Apparently there is a difference between using a CONNECTIONTYPE WMS raster layer, and a raster layer coming from GDAL. As far as I could see, msRASTERLayerOpen tries to get rasterLayerInfo information, but I can imagine that this is not provided for WMS client layers opposed to GDAL raster layers, with the error message as a consequence. Can something be done about this? Maybe the error messages are only valid for GDAL raster layers? Any info appreciated. Best regards, Bart From superbla3000 at GMX.NET Fri Feb 25 05:16:03 2005 From: superbla3000 at GMX.NET (joerg p) Date: Fri, 25 Feb 2005 14:16:03 +0100 Subject: example data Message-ID: hello, I have two questions: First: I'd like to build some mapserver demo sites to show maybe customers different data looks. So I need some 'nice', different data, no matter which area they cover. Do you know good vector example data? Do you know nice satellite raster data? ( I use landsat at the moment, which is quite good I think) Second: If I find (one far day) a customer with lot's of money :-) , where would I buy the data for the specific area? (I live in Germany) Where could I check the prices in advance to say a circa price to interested people? Joerg From fwarmerdam at GMAIL.COM Fri Feb 25 06:07:37 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 25 Feb 2005 09:07:37 -0500 Subject: msRASTERLayerOpen(): Attempt to open a RASTER layer, but this is only supported after a raster query In-Reply-To: <20563.212.238.227.182.1109337435.squirrel@212.238.227.182> Message-ID: On Fri, 25 Feb 2005 14:17:15 +0100, Bart van den Eijnden wrote: > Hi list, > > I have been trying to get rid of the Mapserver error messages as described > in the subject line. > > Apparently there is a difference between using a CONNECTIONTYPE WMS raster > layer, and a raster layer coming from GDAL. > > As far as I could see, msRASTERLayerOpen tries to get rasterLayerInfo > information, but I can imagine that this is not provided for WMS client > layers opposed to GDAL raster layers, with the error message as a > consequence. > > Can something be done about this? Maybe the error messages are only valid > for GDAL raster layers? Bart, This is bug 1118 in Bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1118 I'll work on it this morning. I really would like to correct this before we snap MapServer 4.4.2. 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 lfilak at MEDINACO.ORG Fri Feb 25 06:09:06 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Fri, 25 Feb 2005 09:09:06 -0500 Subject: file system growing with open files Message-ID: The following message was sent by Agneta Schick on Fri, 25 Feb 2005 10:52:42 +0100. > Hello, > > We have a system problem on a machine with a mapserver application: "too many > open files" > A list of open files shows it is always the same file: the source file for a > reference map (.png) which is in read mode and never closed. > This could be a version problem because we have a similar application on > another machine with no such problems. > > We run > MapServer version 4.2.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > with mapscript > perl 5.8.3 > mod_perl-1.29 > apache_1.3.27 > on Solaris 9. > > We have set rlim_fd_cur=1024 and rlim_fd_max=4096 to no avail. > > > On the machine without this problem we run > MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > with mapscript > perl 5.6.1 > mod_perl-1.27 > apache_1.3.22 > on Solaris 8. Agneta, A couple of thoughts. Are you sure the files are just being left open or are there a load of open connections (sockets) to the webserver itself that the processes are waiting on to finish? My understanding as of the 4.2+ series of MS is that Perl's garbage collection will close things when a cgi finishes but when running under mod_perl you probably need to explicitly undef the map object to trigger the cleanup.? I also noticed that the default max number of files per user is lower in solaris 9 then in solaris 8. Lowell From steve.hall at MERCATORGEOSYSTEMS.CO.UK Fri Feb 25 05:12:11 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Fri, 25 Feb 2005 13:12:11 -0000 Subject: Dot density maps Message-ID: Hi all, Sorry about the delay in getting this out - I don't have access to MapInfo all the time.... Attached is a sample image of the kind of thing I mean. This is a map of Total Population by Postcode for Melbourne, Aus. Each dot represents 25 people. The dot placement within postcode boundary (the red line) is random (i.e the dots location within the polygon is meaningless) but number of dots is highly relevant. The maps can be useful in this kind of context to give an impression of "density". Thanks Steve ----- Original Message ----- From: "Steve Lime" To: ; Sent: Thursday, February 10, 2005 2:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Dot density maps > I'm not familiar with the term, however if you post a sample map there > may well be a way... > > Steve > >>>> Steve Hall 02/09/05 2:11 PM >>>> > Hi all, > > Has anyone ever done any dot-density mapping using MapServer? For those > familiar with MapInfo i'm looking to replicate something like the > dot-density maps found in that product. I can't seem to find any > reference to it in the docs.... > > Many thanks, > > Steve Hall -------------- next part -------------- A non-text attachment was scrubbed... Name: dd_map.zip Type: application/x-zip-compressed Size: 37711 bytes Desc: not available URL: From vprak at APPSCI.COM Fri Feb 25 06:29:05 2005 From: vprak at APPSCI.COM (V P) Date: Fri, 25 Feb 2005 08:29:05 -0600 Subject: IIS Config problem Message-ID: I don't think it had anything to do with the dll's. But I could be wrong. I check the .map file.. line 381-ish.. I included the whole portion of this 'class'"?". I put some asterics next to it. I don't know what it's asking for. I even tried commenting it out. The url seemed fine. I'm clueless...will keep trying though. Hope someone can help. LAYER NAME mcd90py2_anno *** NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS OFF LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END METADATA WMS_TITLE "Minor Civil Divisions" WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation only)" WMS_SRS "EPSG:26915" END END From ed at TOPOZONE.COM Fri Feb 25 06:53:10 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 25 Feb 2005 09:53:10 -0500 Subject: IIS Config problem Message-ID: V P - The error message you're getting seems to mean just what it says - that layer has two NAME statements, and it can't have two names. I'm not familiar with the sample data you're using, but over the recent past MapServer has seen some syntax changes in the map file format, and has become stricter in some senses about enforcing the rules. It sounds like you're using an older example with newer code and running into trouble. You can comment out the second NAME field with an octathorpe (#) and see where that gets you. If your application complains that it can't find a layer named "cities", then switch and comment out the first one instead. - 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 V P Sent: Friday, February 25, 2005 9:29 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] IIS Config problem I don't think it had anything to do with the dll's. But I could be wrong. I check the .map file.. line 381-ish.. I included the whole portion of this 'class'"?". I put some asterics next to it. I don't know what it's asking for. I even tried commenting it out. The url seemed fine. I'm clueless...will keep trying though. Hope someone can help. LAYER NAME mcd90py2_anno *** NAME cities TYPE ANNOTATION DATA mcd90py2 STATUS OFF LABELITEM "city_name" CLASSITEM "city_name" LABELMAXSCALE 500000 CLASS EXPRESSION /./ COLOR -1 -1 -1 LABEL COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 2 2 TYPE BITMAP SIZE MEDIUM POSITION CC PARTIALS FALSE BUFFER 2 END END METADATA WMS_TITLE "Minor Civil Divisions" WMS_ABSTRACT "Minor civil divisions for Itasca County. (annotation only)" WMS_SRS "EPSG:26915" END END From vprak at APPSCI.COM Fri Feb 25 07:12:03 2005 From: vprak at APPSCI.COM (V P) Date: Fri, 25 Feb 2005 09:12:03 -0600 Subject: IIS Config problem Message-ID: I'm running the 'itasca3.5.tar.gz demo' on a pre-compiled Mapserver 4.4.1. I've got the map server working alone. But this demo file isn't. Yes, I noticed. I tried commenting out the NAME.. alternated from commenting one and then the other, saved after each comment and refreshed the IIS server. I had ever tried to comment out that whole layer class. When I do comment out, regardless of which one I do, I get this dialog box: The instruction at "0x77f88216" referenced memory at "0x00000010". The memory could not be "written". -Click OK to terminate the program -Click Cancel to debug the program I click OK and get a CGI Error. I click Cancel, nothing happens. I did a google on this message and it mentioned that it's a Perl error. I doubt this would be the case. I'm very stumped. I think I may be making this seem harder than it is. Thanks for any feedback. From cplists at GMAIL.COM Fri Feb 25 07:47:17 2005 From: cplists at GMAIL.COM (Corey Puffalt) Date: Fri, 25 Feb 2005 08:47:17 -0700 Subject: PHP/Mapscript Crash... In-Reply-To: <421EE063.1080902@free.fr> Message-ID: My php.ini doesn't appear to have an extension=gd.so line... nor do any of the files in php.d/* do anyone know how to disable the gd extension with the stock FC2 rpms? Thanks, Corey On Fri, 25 Feb 2005 09:22:59 +0100, Beno?t Toutain wrote: > I commented the extension=gd.so line in my php.ini and restarted apache > and now it works. > No more crash for me too :-) > > Thanks a lot > > Best regards > > Beno?t > > Constantin Cristian a ?crit : > > > I got the same problem, I googled for some answers: > > > >> Use phpinfo() to see if PHP has GD enabled, if it does then either > >> disable the PHP GD extension or make sure that both PHP and MapScript > >> use the same GD version. Also make sure that there is only one copy > >> of libgd.so and of the GD headers on your system. > > > > > > So I rebuilt my php installation and this time I used the gd that used to > > build mapscript rather then the bundled php gd > > and surprise... it doesn't crash anymore. > > > > > > > > ----- Original Message ----- > > From: "c p" > > To: > > Sent: Thursday, February 24, 2005 7:47 PM > > Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript Crash... > > > > > > Benoit, > > > > Well at least there's someone else to share my pain. :P After doing > > some more reading today I realized I wasn't running php as a cgi but > > as an apache DSO so I thought that must be my problem. Is it still > > true that PHP/Mapscript v4.4.1 still must be run as a cgi? Anyway, I > > reconfigured Apache to call php as a cgi but that did not resolve the > > crash. :( > > > > Regards, > > Corey > > > > On Thu, 24 Feb 2005 13:54:54 +0100, Beno?t Toutain > > wrote: > > > >> Hi Corey, > >> > >> I have the same pb as you. > >> Here is my configuration obtained with >> dl('php_mapscript.so');phpinfo(); ?> > >> > >> MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF > >> SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > >> SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >> ($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $) > >> > >> Is not there compatibity problems with freetype libraray and another > >> one ? > >> > >> Hope everybody can show us the right way ;-) > >> > >> Best regards, > >> > >> Beno?t > >> > >> c p a ?crit : > >> > >> >All, > >> > > >> >I'm hoping someone here can help or can point me to a more appropriate > >> >forum. I've been having problems getting the samples that ship with > >> >Chameleon v2.0 fully functional. When I attempt to view one of the > >> >sample maps I'm getting a segmentation fault: > >> > > >> >==> error_log <== > >> >[Wed Feb 23 15:59:59 2005] [notice] child pid 18222 exit signal > >> >Segmentation fault (11) > >> > > >> >By enabling/disabling different layers I was able to narrow the > >> >problem down to the popplace layer and specifically the FONT, TYPE & > >> >SIZE tags (which specify a truetype font) inside the LABEL definition. > >> > Commenting out these three tags result in the layer displaying > >> >(albeit with the default bitmap font). Although I've narrowed what > >> >triggers the crash I still have no idea how to rectify the problem. > >> >I'm further puzzled by the fact that when I use shp2img to render the > >> >map it works fine which seems to suggest the problem is specific to > >> >the php/mapscript module? > >> > > >> >I'm running Fedora Core 2 & Mapserver v4.4.1 using the RPMs hosted at > >> >the Mapping Hacks website (http://mappinghacks.com/rpm/). I've > >> >attached the chameleon.map file in case that helps. > >> > > >> >Any help would be appreciated. > >> > > >> >Thanks, > >> >Corey > >> > > >> > > >> > >> > > > > > From gomckenz at GEOSQL.COM Fri Feb 25 07:40:29 2005 From: gomckenz at GEOSQL.COM (Subscribe Mapserver-Users Gom) Date: Fri, 25 Feb 2005 09:40:29 -0600 Subject: IIS Config problem Message-ID: I had many errors using 4.4.1 and IIS. I switched to running the "kitchen sink" version of 4.4.1 and have had many of these problems disappear. Not very detailed response but I could not explain why things that were working in 4.4 just quit in 4.41 and they started working when I switched to the other executables. From bf.toutain at FREE.FR Fri Feb 25 07:57:41 2005 From: bf.toutain at FREE.FR (=?ISO-8859-1?Q?Beno=EEt_Toutain?=) Date: Fri, 25 Feb 2005 16:57:41 +0100 Subject: PHP/Mapscript Crash... In-Reply-To: Message-ID: Hi Corey, perhaps the name of your library file is libgd.so or something like that.... or your problem does not come from conflicts between two GD libraries. Have you got a GD section when you make a ? Beno?t Corey Puffalt a ?crit : >My php.ini doesn't appear to have an extension=gd.so line... nor do >any of the files in php.d/* do anyone know how to disable the gd >extension with the stock FC2 rpms? > >Thanks, >Corey > > >On Fri, 25 Feb 2005 09:22:59 +0100, Beno?t Toutain wrote: > > >>I commented the extension=gd.so line in my php.ini and restarted apache >>and now it works. >>No more crash for me too :-) >> >>Thanks a lot >> >>Best regards >> >>Beno?t >> >>Constantin Cristian a ?crit : >> >> >> >>>I got the same problem, I googled for some answers: >>> >>> >>> >>>>Use phpinfo() to see if PHP has GD enabled, if it does then either >>>>disable the PHP GD extension or make sure that both PHP and MapScript >>>>use the same GD version. Also make sure that there is only one copy >>>>of libgd.so and of the GD headers on your system. >>>> >>>> >>>So I rebuilt my php installation and this time I used the gd that used to >>>build mapscript rather then the bundled php gd >>>and surprise... it doesn't crash anymore. >>> >>> >>> >>>----- Original Message ----- >>>From: "c p" >>>To: >>>Sent: Thursday, February 24, 2005 7:47 PM >>>Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript Crash... >>> >>> >>>Benoit, >>> >>>Well at least there's someone else to share my pain. :P After doing >>>some more reading today I realized I wasn't running php as a cgi but >>>as an apache DSO so I thought that must be my problem. Is it still >>>true that PHP/Mapscript v4.4.1 still must be run as a cgi? Anyway, I >>>reconfigured Apache to call php as a cgi but that did not resolve the >>>crash. :( >>> >>>Regards, >>>Corey >>> >>>On Thu, 24 Feb 2005 13:54:54 +0100, Beno?t Toutain >>>wrote: >>> >>> >>> >>>>Hi Corey, >>>> >>>>I have the same pb as you. >>>>Here is my configuration obtained with >>>dl('php_mapscript.so');phpinfo(); ?> >>>> >>>>MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF >>>>SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT >>>>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS >>>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >>>>($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $) >>>> >>>>Is not there compatibity problems with freetype libraray and another >>>>one ? >>>> >>>>Hope everybody can show us the right way ;-) >>>> >>>>Best regards, >>>> >>>>Beno?t >>>> >>>>c p a ?crit : >>>> >>>> >>>> >>>>>All, >>>>> >>>>>I'm hoping someone here can help or can point me to a more appropriate >>>>>forum. I've been having problems getting the samples that ship with >>>>>Chameleon v2.0 fully functional. When I attempt to view one of the >>>>>sample maps I'm getting a segmentation fault: >>>>> >>>>>==> error_log <== >>>>>[Wed Feb 23 15:59:59 2005] [notice] child pid 18222 exit signal >>>>>Segmentation fault (11) >>>>> >>>>>By enabling/disabling different layers I was able to narrow the >>>>>problem down to the popplace layer and specifically the FONT, TYPE & >>>>>SIZE tags (which specify a truetype font) inside the LABEL definition. >>>>>Commenting out these three tags result in the layer displaying >>>>>(albeit with the default bitmap font). Although I've narrowed what >>>>>triggers the crash I still have no idea how to rectify the problem. >>>>>I'm further puzzled by the fact that when I use shp2img to render the >>>>>map it works fine which seems to suggest the problem is specific to >>>>>the php/mapscript module? >>>>> >>>>>I'm running Fedora Core 2 & Mapserver v4.4.1 using the RPMs hosted at >>>>>the Mapping Hacks website (http://mappinghacks.com/rpm/). I've >>>>>attached the chameleon.map file in case that helps. >>>>> >>>>>Any help would be appreciated. >>>>> >>>>>Thanks, >>>>>Corey >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>> >>> > > > > From cplists at GMAIL.COM Fri Feb 25 08:10:16 2005 From: cplists at GMAIL.COM (Corey Puffalt) Date: Fri, 25 Feb 2005 09:10:16 -0700 Subject: PHP/Mapscript Crash... In-Reply-To: <421F4AF5.8040906@free.fr> Message-ID: Yes there's a GD section when viewing phpinfo(); Are you running FC2? Thanks, Corey On Fri, 25 Feb 2005 16:57:41 +0100, Beno?t Toutain wrote: > Hi Corey, > > perhaps the name of your library file is libgd.so or something like > that.... or your problem does not come from conflicts between two GD > libraries. Have you got a GD section when you make a ? > > Beno?t > > Corey Puffalt a ?crit : > > >My php.ini doesn't appear to have an extension=gd.so line... nor do > >any of the files in php.d/* do anyone know how to disable the gd > >extension with the stock FC2 rpms? > > > >Thanks, > >Corey > > > > > >On Fri, 25 Feb 2005 09:22:59 +0100, Beno?t Toutain wrote: > > > > > >>I commented the extension=gd.so line in my php.ini and restarted apache > >>and now it works. > >>No more crash for me too :-) > >> > >>Thanks a lot > >> > >>Best regards > >> > >>Beno?t > >> > >>Constantin Cristian a ?crit : > >> > >> > >> > >>>I got the same problem, I googled for some answers: > >>> > >>> > >>> > >>>>Use phpinfo() to see if PHP has GD enabled, if it does then either > >>>>disable the PHP GD extension or make sure that both PHP and MapScript > >>>>use the same GD version. Also make sure that there is only one copy > >>>>of libgd.so and of the GD headers on your system. > >>>> > >>>> > >>>So I rebuilt my php installation and this time I used the gd that used to > >>>build mapscript rather then the bundled php gd > >>>and surprise... it doesn't crash anymore. > >>> > >>> > >>> > >>>----- Original Message ----- > >>>From: "c p" > >>>To: > >>>Sent: Thursday, February 24, 2005 7:47 PM > >>>Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript Crash... > >>> > >>> > >>>Benoit, > >>> > >>>Well at least there's someone else to share my pain. :P After doing > >>>some more reading today I realized I wasn't running php as a cgi but > >>>as an apache DSO so I thought that must be my problem. Is it still > >>>true that PHP/Mapscript v4.4.1 still must be run as a cgi? Anyway, I > >>>reconfigured Apache to call php as a cgi but that did not resolve the > >>>crash. :( > >>> > >>>Regards, > >>>Corey > >>> > >>>On Thu, 24 Feb 2005 13:54:54 +0100, Beno?t Toutain > >>>wrote: > >>> > >>> > >>> > >>>>Hi Corey, > >>>> > >>>>I have the same pb as you. > >>>>Here is my configuration obtained with >>>>dl('php_mapscript.so');phpinfo(); ?> > >>>> > >>>>MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF > >>>>SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > >>>>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > >>>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >>>>($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $) > >>>> > >>>>Is not there compatibity problems with freetype libraray and another > >>>>one ? > >>>> > >>>>Hope everybody can show us the right way ;-) > >>>> > >>>>Best regards, > >>>> > >>>>Beno?t > >>>> > >>>>c p a ?crit : > >>>> > >>>> > >>>> > >>>>>All, > >>>>> > >>>>>I'm hoping someone here can help or can point me to a more appropriate > >>>>>forum. I've been having problems getting the samples that ship with > >>>>>Chameleon v2.0 fully functional. When I attempt to view one of the > >>>>>sample maps I'm getting a segmentation fault: > >>>>> > >>>>>==> error_log <== > >>>>>[Wed Feb 23 15:59:59 2005] [notice] child pid 18222 exit signal > >>>>>Segmentation fault (11) > >>>>> > >>>>>By enabling/disabling different layers I was able to narrow the > >>>>>problem down to the popplace layer and specifically the FONT, TYPE & > >>>>>SIZE tags (which specify a truetype font) inside the LABEL definition. > >>>>>Commenting out these three tags result in the layer displaying > >>>>>(albeit with the default bitmap font). Although I've narrowed what > >>>>>triggers the crash I still have no idea how to rectify the problem. > >>>>>I'm further puzzled by the fact that when I use shp2img to render the > >>>>>map it works fine which seems to suggest the problem is specific to > >>>>>the php/mapscript module? > >>>>> > >>>>>I'm running Fedora Core 2 & Mapserver v4.4.1 using the RPMs hosted at > >>>>>the Mapping Hacks website (http://mappinghacks.com/rpm/). I've > >>>>>attached the chameleon.map file in case that helps. > >>>>> > >>>>>Any help would be appreciated. > >>>>> > >>>>>Thanks, > >>>>>Corey > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > >>>> > >>> > >>> > > > > > > > > > > From stevem at SPATIALMAPPING.COM Fri Feb 25 08:14:54 2005 From: stevem at SPATIALMAPPING.COM (Steven Monai) Date: Fri, 25 Feb 2005 10:14:54 -0600 Subject: php_mapscript as dso and mapserv Message-ID: Paul: I'm only somewhat "in the know", since I'm only a user and not a developer of MapServer, but I have run into a problem similar to the one you describe. I have found that building the php_mapscript module is somehow incompatible with building the FastCGI mapserv executable. If I configure both --with-php and --with-fastcgi at the same time, the mapserv FastCGI consistently segfaults. So I set up my MapServer build-script to build them separately in two passes. In summary, I feel your pain, but a serviceable workaround seems to be to configure and build the various parts (i.e. php_mapscript, CGI executable, FastCGI executable) separately. Regards, -SM -- On Thu, 24 Feb 2005 09:45:30 -0600, Paul Smith wrote: >Hello all, > >Can someone in the know please put this to rest?? > >Is it the recommendation that php_mapscript be "configured" separately from >mapserver? > >Other posters on this list have used that work-around: run configure >--with-php to build php_mapscript and then run configure --without-php to >get a working mapserv cgi. > >I myself run into this using > >mapserver 4.4.1 >php 4.3.10 >suse linux ent server 9 > >Paul From cplists at GMAIL.COM Fri Feb 25 08:38:55 2005 From: cplists at GMAIL.COM (Corey Puffalt) Date: Fri, 25 Feb 2005 09:38:55 -0700 Subject: PHP/Mapscript Crash... In-Reply-To: <421F513C.2010200@free.fr> Message-ID: I'm using the stock Fedora Core 2 php rpms (upgraded to the latest updates). According to phpinfo it was compiled with --with-gd ... the php.ini is located in /etc/php.ini it also references any files in /etc/php.d. Neither php.ini nor the php.d refers to gd.so or libgd.so anywhere as far as I can see... Corey On Fri, 25 Feb 2005 17:24:28 +0100, Beno?t Toutain wrote: > No I use a debian. > > Did you compile you PHP with GD library ( option --with-gd when you > execute ./configure) (see it in the first array of phpinfo() ) ? > Do you edit the right php.ini file (the right file is given in the first > array when you display php information) > > If you really don't find the gd shared object (gd.so or libgd.so or .... > ) in your php.ini file and on you FC2, you must recompile PHP without > the GD library > > Corey Puffalt a ?crit : > > >Yes there's a GD section when viewing phpinfo(); Are you running FC2? > > > >Thanks, > >Corey > > > > > >On Fri, 25 Feb 2005 16:57:41 +0100, Beno?t Toutain wrote: > > > > > >>Hi Corey, > >> > >>perhaps the name of your library file is libgd.so or something like > >>that.... or your problem does not come from conflicts between two GD > >>libraries. Have you got a GD section when you make a ? > >> > >>Beno?t > >> > >>Corey Puffalt a ?crit : > >> > >> > >> > >>>My php.ini doesn't appear to have an extension=gd.so line... nor do > >>>any of the files in php.d/* do anyone know how to disable the gd > >>>extension with the stock FC2 rpms? > >>> > >>>Thanks, > >>>Corey > >>> > >>> > >>>On Fri, 25 Feb 2005 09:22:59 +0100, Beno?t Toutain wrote: > >>> > >>> > >>> > >>> > >>>>I commented the extension=gd.so line in my php.ini and restarted apache > >>>>and now it works. > >>>>No more crash for me too :-) > >>>> > >>>>Thanks a lot > >>>> > >>>>Best regards > >>>> > >>>>Beno?t > >>>> > >>>>Constantin Cristian a ?crit : > >>>> > >>>> > >>>> > >>>> > >>>> > >>>>>I got the same problem, I googled for some answers: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Use phpinfo() to see if PHP has GD enabled, if it does then either > >>>>>>disable the PHP GD extension or make sure that both PHP and MapScript > >>>>>>use the same GD version. Also make sure that there is only one copy > >>>>>>of libgd.so and of the GD headers on your system. > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>So I rebuilt my php installation and this time I used the gd that used to > >>>>>build mapscript rather then the bundled php gd > >>>>>and surprise... it doesn't crash anymore. > >>>>> > >>>>> > >>>>> > >>>>>----- Original Message ----- > >>>>>From: "c p" > >>>>>To: > >>>>>Sent: Thursday, February 24, 2005 7:47 PM > >>>>>Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript Crash... > >>>>> > >>>>> > >>>>>Benoit, > >>>>> > >>>>>Well at least there's someone else to share my pain. :P After doing > >>>>>some more reading today I realized I wasn't running php as a cgi but > >>>>>as an apache DSO so I thought that must be my problem. Is it still > >>>>>true that PHP/Mapscript v4.4.1 still must be run as a cgi? Anyway, I > >>>>>reconfigured Apache to call php as a cgi but that did not resolve the > >>>>>crash. :( > >>>>> > >>>>>Regards, > >>>>>Corey > >>>>> > >>>>>On Thu, 24 Feb 2005 13:54:54 +0100, Beno?t Toutain > >>>>>wrote: > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>>Hi Corey, > >>>>>> > >>>>>>I have the same pb as you. > >>>>>>Here is my configuration obtained with >>>>>>dl('php_mapscript.so');phpinfo(); ?> > >>>>>> > >>>>>>MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SWF > >>>>>>SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > >>>>>>SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS > >>>>>>INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >>>>>>($Revision: 1.194.2.6 $ $Date: 2004/08/25 16:27:43 $) > >>>>>> > >>>>>>Is not there compatibity problems with freetype libraray and another > >>>>>>one ? > >>>>>> > >>>>>>Hope everybody can show us the right way ;-) > >>>>>> > >>>>>>Best regards, > >>>>>> > >>>>>>Beno?t > >>>>>> > >>>>>>c p a ?crit : > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>>>All, > >>>>>>> > >>>>>>>I'm hoping someone here can help or can point me to a more appropriate > >>>>>>>forum. I've been having problems getting the samples that ship with > >>>>>>>Chameleon v2.0 fully functional. When I attempt to view one of the > >>>>>>>sample maps I'm getting a segmentation fault: > >>>>>>> > >>>>>>>==> error_log <== > >>>>>>>[Wed Feb 23 15:59:59 2005] [notice] child pid 18222 exit signal > >>>>>>>Segmentation fault (11) > >>>>>>> > >>>>>>>By enabling/disabling different layers I was able to narrow the > >>>>>>>problem down to the popplace layer and specifically the FONT, TYPE & > >>>>>>>SIZE tags (which specify a truetype font) inside the LABEL definition. > >>>>>>>Commenting out these three tags result in the layer displaying > >>>>>>>(albeit with the default bitmap font). Although I've narrowed what > >>>>>>>triggers the crash I still have no idea how to rectify the problem. > >>>>>>>I'm further puzzled by the fact that when I use shp2img to render the > >>>>>>>map it works fine which seems to suggest the problem is specific to > >>>>>>>the php/mapscript module? > >>>>>>> > >>>>>>>I'm running Fedora Core 2 & Mapserver v4.4.1 using the RPMs hosted at > >>>>>>>the Mapping Hacks website (http://mappinghacks.com/rpm/). I've > >>>>>>>attached the chameleon.map file in case that helps. > >>>>>>> > >>>>>>>Any help would be appreciated. > >>>>>>> > >>>>>>>Thanks, > >>>>>>>Corey > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>> > >>> > >>> > >>> > >> > >> > > > > > > > > > > From woodbri at SWOODBRIDGE.COM Fri Feb 25 08:43:31 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 25 Feb 2005 11:43:31 -0500 Subject: Dot density maps In-Reply-To: <011001c51b3b$9ddd17a0$520a0a0a@scorpio> Message-ID: Steve, The goal of this algorithm is to in effect shade the polygon so that it is darker if you have more hits in it. AKA: thematic mapping. You can achieve the same idea by coloring the polygon based on a color ramp/steps where the color assigned is based on the number of hits the polygon gets. So if you had an attribute with the number of hits assign to each polygon, you could create a mapfile to color the polygons based on: LAYER TYPE POLYGON ... CLASS EXPRESSION ([attribute] < value1 && [attribute] >= value2) COLOR R G B ... END CLASS EXPRESSION ([attribute] < value2 && [attribute] >= value3) COLOR R2 G2 B2 ... END ... END If you want to do this with a JOIN then you should look at OGR ODBC connection or using PostGIS. -Steve W. Steve Hall wrote: > Hi all, > > Sorry about the delay in getting this out - I don't have access to > MapInfo all the time.... > > Attached is a sample image of the kind of thing I mean. This is a > map of Total Population by Postcode for Melbourne, Aus. Each dot > represents 25 people. The dot placement within postcode boundary > (the red line) is random (i.e the dots location within the polygon is > meaningless) but number of dots is highly relevant. > > The maps can be useful in this kind of context to give an impression > of "density". > > Thanks > > Steve > > > ----- Original Message ----- From: "Steve Lime" > To: ; > Sent: Thursday, February 10, > 2005 2:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Dot density maps > > >> I'm not familiar with the term, however if you post a sample map >> there may well be a way... >> >> Steve >> >>>>> Steve Hall 02/09/05 >>>>> 2:11 PM >>>>> >> Hi all, >> >> Has anyone ever done any dot-density mapping using MapServer? For >> those familiar with MapInfo i'm looking to replicate something like >> the dot-density maps found in that product. I can't seem to find >> any reference to it in the docs.... >> >> Many thanks, >> >> Steve Hall From vprak at APPSCI.COM Fri Feb 25 08:44:23 2005 From: vprak at APPSCI.COM (V P) Date: Fri, 25 Feb 2005 10:44:23 -0600 Subject: Itasca 3.5 Demo Error on Mapserver 4.4.1 Message-ID: Hi, I've sucessfully downloaded and installed the pre-compiled Mapserver 4.4.1 for win 2k. At the moment, I'm testing the Itasca 3.5 Demo with it. I downloaded it and made the necessary changes to the demo_init.html page and the demo.map file as indicated in the readme file. I run the test and the 'Map Server Demo Interface' page loads up properly. My problem is when I go to click the 'Initialize' button. I get this error.. getString(): Symbol definition error. Duplicate item (NAME):(line 381) I go to the demo.map file to like 381. Both line 380 and 381 have NAME items.. LAYER NAME mcd90py2_anno NAME cities TYPE ANNOTATION.... I tried commenting out (#) The first, saved, and ran the test...error. Then I switched it..commented the second instead.. same error. Then tried commenting both.. and even that whole layer class. Same error. Tried renaming the second NAME to GROUP like in the other layers. No luck. Dialog error reads.. The instruction at '0x77f88216' referenced memory at '0x00000010'. The memory could not be 'written'. Click on Ok to terminate or Cancel to debug. I hit okay, I get a page that reads.. 'CGI error message.'The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: I hit cancel, nothing happens. I'm pretty sure my IIS is configured properly. I get the 'No Query...' message when I run the http://localhost/../mapserv.exe link. I really need help. I was told to try a 'Kitchen Sink' version or a previous version. The link to the kitchen sink version is 'protected' and other links of that page are broken..(http://hobu.stat.iastate.edu/mapserver/).. is there a precompiled version of 4.4.0 that I can get somewhere. I've had no luck searching on the MN mapserver site. Only 4.4.1 precompiles. Please anyone. If you can help debug this problem, thanks so much. From sgillies at FRII.COM Fri Feb 25 08:57:22 2005 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 25 Feb 2005 09:57:22 -0700 Subject: Dot density maps In-Reply-To: Message-ID: Or you could use a range of symbols to fill the polygons with increasing size of the symbol envelope for decreasing density. Theoretically, that is, I haven't tried it. There is also an enhancement bug filed in Bugzilla for style-level transparency which would let you use ranges of solid fill transparency for your classes. I've got a customer that will need this eventually, so I might start on it this spring or summer. cheers, Sean On Feb 25, 2005, at 9:43 AM, Stephen Woodbridge wrote: > Steve, > > The goal of this algorithm is to in effect shade the polygon so that it > is darker if you have more hits in it. AKA: thematic mapping. You can > achieve the same idea by coloring the polygon based on a color > ramp/steps where the color assigned is based on the number of hits the > polygon gets. > > So if you had an attribute with the number of hits assign to each > polygon, you could create a mapfile to color the polygons based on: > LAYER > TYPE POLYGON > ... > CLASS > EXPRESSION ([attribute] < value1 && [attribute] >= value2) > COLOR R G B > ... > END > CLASS > EXPRESSION ([attribute] < value2 && [attribute] >= value3) > COLOR R2 G2 B2 > ... > END > ... > END > > If you want to do this with a JOIN then you should look at OGR ODBC > connection or using PostGIS. > > -Steve W. > > > Steve Hall wrote: >> Hi all, >> >> Sorry about the delay in getting this out - I don't have access to >> MapInfo all the time.... >> >> Attached is a sample image of the kind of thing I mean. This is a >> map of Total Population by Postcode for Melbourne, Aus. Each dot >> represents 25 people. The dot placement within postcode boundary >> (the red line) is random (i.e the dots location within the polygon is >> meaningless) but number of dots is highly relevant. >> >> The maps can be useful in this kind of context to give an impression >> of "density". >> >> Thanks >> >> Steve >> >> >> ----- Original Message ----- From: "Steve Lime" >> To: ; >> Sent: Thursday, February 10, >> 2005 2:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Dot density maps >> >> >>> I'm not familiar with the term, however if you post a sample map >>> there may well be a way... >>> >>> Steve >>> >>>>>> Steve Hall 02/09/05 >>>>>> 2:11 PM >>>>>> >>> Hi all, >>> >>> Has anyone ever done any dot-density mapping using MapServer? For >>> those familiar with MapInfo i'm looking to replicate something like >>> the dot-density maps found in that product. I can't seem to find >>> any reference to it in the docs.... >>> >>> Many thanks, >>> >>> Steve Hall > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From stephen.clark at FOCUS.CA Fri Feb 25 09:10:38 2005 From: stephen.clark at FOCUS.CA (Stephen Clark) Date: Fri, 25 Feb 2005 10:10:38 -0700 Subject: testing Message-ID: some text -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.clark at FOCUS.CA Fri Feb 25 09:12:49 2005 From: stephen.clark at FOCUS.CA (Stephen Clark) Date: Fri, 25 Feb 2005 10:12:49 -0700 Subject: BC OGC Web Map Service help Message-ID: Hi all, I am wondering if anyone has got the new BC OGC Web Map Service to work with mapserver? Ref url: http://geodiscover.cgdi.ca/gdp/search?action=entrySummary&entryType=webService&entryId=1685&entryLang=en thanks Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Feb 25 09:13:38 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 25 Feb 2005 12:13:38 -0500 Subject: Dot density maps In-Reply-To: <014c01c51b5a$67d07b10$520a0a0a@scorpio> Message-ID: OK, that makes sense and I cold use something similar. My thought on this and I'm not sure if this is what Sean Gillies was referring to in his post. is that you could have the polygon layer represented twice in the mapfile, once for each thematic layer< in the underlying layer you would use straight color fill for example for the sales and then on the upper layer (population) use a symbol where the dot density is represented by the symbol. You could have multiple symbols with varying dot densities or you could use various hatching patterns/color and the underlying polygon color would show through the hatching or dot patterns. I am assuming that if the symbol image is defined with a transparent background then the underlying color will in fact show through. Any developer care to comment on this? -Steve W. Steve Hall wrote: > Hi Steve, > > Thanks for this - I am familiar with thematic mapping and this is a > specific request for a dot-density map alas! > > I don't like them that much myself by my "client" does... They > particularly like the way that (in MapInfo anyway) you can overlay the > dot-density thematic on top of a "regular" thematic like the one you are > talking about here. A popular use is to thematically map a sales count > of their product using your technique here (e.g the more "green" it is, > the more sales they have) but then put something like Population "on > top" with a dot-density layer so you can, in the same map, compare your > product sales against population. > > I know this is a pretty specific requirement but it's part of a > potential plan to wean some clients off of MapInfo "desktop" and onto a > server-based platform (and hopefully MapServer based). MapInfo seem to > be amongst the very few that provide dot-density mapping. Not even > ESRI's ArcIMS does it... > > Thanks anway, > > Steve > > ----- Original Message ----- From: "Stephen Woodbridge" > > To: "Steve Hall" > Cc: > Sent: Friday, February 25, 2005 4:43 PM > Subject: Re: [UMN_MAPSERVER-USERS] Dot density maps > > >> Steve, >> >> The goal of this algorithm is to in effect shade the polygon so that >> it is darker if you have more hits in it. AKA: thematic mapping. You >> can achieve the same idea by coloring the polygon based on a color >> ramp/steps where the color assigned is based on the number of hits the >> polygon gets. >> >> So if you had an attribute with the number of hits assign to each >> polygon, you could create a mapfile to color the polygons based on: >> LAYER >> TYPE POLYGON >> ... >> CLASS >> EXPRESSION ([attribute] < value1 && [attribute] >= value2) >> COLOR R G B >> ... >> END >> CLASS >> EXPRESSION ([attribute] < value2 && [attribute] >= value3) >> COLOR R2 G2 B2 >> ... >> END >> ... >> END >> >> If you want to do this with a JOIN then you should look at OGR ODBC >> connection or using PostGIS. >> >> -Steve W. >> >> >> Steve Hall wrote: >> >>> Hi all, >>> >>> Sorry about the delay in getting this out - I don't have access to >>> MapInfo all the time.... >>> >>> Attached is a sample image of the kind of thing I mean. This is a >>> map of Total Population by Postcode for Melbourne, Aus. Each dot >>> represents 25 people. The dot placement within postcode boundary >>> (the red line) is random (i.e the dots location within the polygon is >>> meaningless) but number of dots is highly relevant. >>> >>> The maps can be useful in this kind of context to give an impression >>> of "density". >>> >>> Thanks >>> >>> Steve >>> >>> >>> ----- Original Message ----- From: "Steve Lime" >>> To: ; >>> Sent: Thursday, February 10, >>> 2005 2:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Dot density maps >>> >>> >>>> I'm not familiar with the term, however if you post a sample map >>>> there may well be a way... >>>> >>>> Steve >>>> >>>>>>> Steve Hall 02/09/05 >>>>>>> 2:11 PM >>>>>>> >>>> Hi all, >>>> >>>> Has anyone ever done any dot-density mapping using MapServer? For >>>> those familiar with MapInfo i'm looking to replicate something like >>>> the dot-density maps found in that product. I can't seem to find >>>> any reference to it in the docs.... >>>> >>>> Many thanks, >>>> >>>> Steve Hall > > > From steve.hall at MERCATORGEOSYSTEMS.CO.UK Fri Feb 25 08:52:35 2005 From: steve.hall at MERCATORGEOSYSTEMS.CO.UK (Steve Hall) Date: Fri, 25 Feb 2005 16:52:35 -0000 Subject: Dot density maps Message-ID: Hi Steve, Thanks for this - I am familiar with thematic mapping and this is a specific request for a dot-density map alas! I don't like them that much myself by my "client" does... They particularly like the way that (in MapInfo anyway) you can overlay the dot-density thematic on top of a "regular" thematic like the one you are talking about here. A popular use is to thematically map a sales count of their product using your technique here (e.g the more "green" it is, the more sales they have) but then put something like Population "on top" with a dot-density layer so you can, in the same map, compare your product sales against population. I know this is a pretty specific requirement but it's part of a potential plan to wean some clients off of MapInfo "desktop" and onto a server-based platform (and hopefully MapServer based). MapInfo seem to be amongst the very few that provide dot-density mapping. Not even ESRI's ArcIMS does it... Thanks anway, Steve ----- Original Message ----- From: "Stephen Woodbridge" To: "Steve Hall" Cc: Sent: Friday, February 25, 2005 4:43 PM Subject: Re: [UMN_MAPSERVER-USERS] Dot density maps > Steve, > > The goal of this algorithm is to in effect shade the polygon so that it is > darker if you have more hits in it. AKA: thematic mapping. You can achieve > the same idea by coloring the polygon based on a color ramp/steps where > the color assigned is based on the number of hits the polygon gets. > > So if you had an attribute with the number of hits assign to each polygon, > you could create a mapfile to color the polygons based on: > LAYER > TYPE POLYGON > ... > CLASS > EXPRESSION ([attribute] < value1 && [attribute] >= value2) > COLOR R G B > ... > END > CLASS > EXPRESSION ([attribute] < value2 && [attribute] >= value3) > COLOR R2 G2 B2 > ... > END > ... > END > > If you want to do this with a JOIN then you should look at OGR ODBC > connection or using PostGIS. > > -Steve W. > > > Steve Hall wrote: >> Hi all, >> >> Sorry about the delay in getting this out - I don't have access to >> MapInfo all the time.... >> >> Attached is a sample image of the kind of thing I mean. This is a >> map of Total Population by Postcode for Melbourne, Aus. Each dot >> represents 25 people. The dot placement within postcode boundary >> (the red line) is random (i.e the dots location within the polygon is >> meaningless) but number of dots is highly relevant. >> >> The maps can be useful in this kind of context to give an impression >> of "density". >> >> Thanks >> >> Steve >> >> >> ----- Original Message ----- From: "Steve Lime" >> To: ; >> Sent: Thursday, February 10, >> 2005 2:51 AM Subject: Re: [UMN_MAPSERVER-USERS] Dot density maps >> >> >>> I'm not familiar with the term, however if you post a sample map >>> there may well be a way... >>> >>> Steve >>> >>>>>> Steve Hall 02/09/05 >>>>>> 2:11 PM >>>>>> >>> Hi all, >>> >>> Has anyone ever done any dot-density mapping using MapServer? For >>> those familiar with MapInfo i'm looking to replicate something like >>> the dot-density maps found in that product. I can't seem to find >>> any reference to it in the docs.... >>> >>> Many thanks, >>> >>> Steve Hall From cdaily at GMAIL.COM Fri Feb 25 11:45:45 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Fri, 25 Feb 2005 13:45:45 -0600 Subject: Railroad symbol Message-ID: Does anyone have a good symbol or set of symbols that they use to draw railroads? I'd like the basic two parallel lines with horizontal 'ties'. I just can't seem to get it to work right. Otherwise, does anyone have any in-depth documentation for how to draw symbols? The documentation out there seems to be more a set of examples rather than an explanation of how mapserver actually interprets the data. -Camden Daily From keon at NACSE.ORG Fri Feb 25 12:03:55 2005 From: keon at NACSE.ORG (Dylan Keon) Date: Fri, 25 Feb 2005 12:03:55 -0800 Subject: Railroad symbol In-Reply-To: <16264e070502251145d6368b5@mail.gmail.com> Message-ID: Camden Daily wrote: > Does anyone have a good symbol or set of symbols that they use to draw > railroads? I'd like the basic two parallel lines with horizontal > 'ties'. I just can't seem to get it to work right. > > Otherwise, does anyone have any in-depth documentation for how to draw > symbols? The documentation out there seems to be more a set of > examples rather than an explanation of how mapserver actually > interprets the data. Camden, The following will produce a single line with tie marks. Not a double-parallel line, but it might get you started anyway. --Dylan In layer definition: CLASS NAME 'Active Line' EXPRESSION /Active/ STYLE SYMBOL 'circle' COLOR 0 0 0 SIZE 1 END OVERLAYSYMBOL 'fence' OVERLAYCOLOR 0 0 0 OVERLAYSIZE 7 END In my symbols.sym file: SYMBOL #12 NAME "fence" TYPE TRUETYPE FONT "arial" CHARACTER "I" GAP 10 END From karbon1 at GMAIL.COM Fri Feb 25 12:11:56 2005 From: karbon1 at GMAIL.COM (A. Sharif) Date: Fri, 25 Feb 2005 15:11:56 -0500 Subject: How to use zoomscale function in PHP mapscript Message-ID: Hello, I am trying to create a map with a dynamic point, at a determined zoomscale. When i use the function $oMap->zoomscale, the coordinates I have to pass the function are the X,Y in pixels, whereas I have Longitude, Latitude coordinates. Is there a way to convert the Geographic coordinates to pixel coordinates, or is a different function that will the geogrphic coordinates and display the map at a determined scale ? thank you, Abdul From keon at NACSE.ORG Fri Feb 25 12:41:50 2005 From: keon at NACSE.ORG (Dylan Keon) Date: Fri, 25 Feb 2005 12:41:50 -0800 Subject: How to use zoomscale function in PHP mapscript In-Reply-To: <9c03215d050225121142299fca@mail.gmail.com> Message-ID: A. Sharif wrote: > Hello, > > I am trying to create a map with a dynamic point, at a determined zoomscale. > > When i use the function $oMap->zoomscale, the coordinates I have to > pass the function are the X,Y in pixels, whereas I have Longitude, > Latitude coordinates. > > Is there a way to convert the Geographic coordinates to pixel > coordinates, or is a different function that will the geogrphic > coordinates and display the map at a determined scale ? Abdul, Here's the function I use to convert x,y in pixels to coordinates. There are probably more examples in the list archives. --Dylan // Function to convert an x,y pair of pixel coords to geographic coords // $extent array is (minx,miny,maxx,maxy) function pix2geo($imgX, $imgY, $extent) { GLOBAL $map; $imgWidth = $map->width; $imgHeight = $map->height; $mapX = (($imgX / $imgWidth) * ($extent[2] - $extent[0])) + $extent[0]; $mapY = $extent[3] - (($imgY / $imgHeight) * ($extent[3] - $extent[1])); $coords = $mapX . ',' . $mapY; return $coords; } From jdport at VERITIME.COM Fri Feb 25 12:38:37 2005 From: jdport at VERITIME.COM (Jeff Portwine) Date: Fri, 25 Feb 2005 15:38:37 -0500 Subject: How to use zoomscale function in PHP mapscript Message-ID: I've had to convert back and forth from pixels to Lat/Long and vis versa in several spots of my mapserver application. As long as your map extents are in the exact same proportion as your map image, it's pretty easy to do. In my case, my map is 600 pixels wide and 400 pixels tall, so I made sure that my X extents were 1.5x larger than my y extents. To convert from lat/long to pixels, you know the width of your image in pixels, you know the latitude (X geographic value), and you know the X extents... so you can do: X(pixels)=ImageWidth(x) * (latitude-min latitude extents) / (max latitude extents-min latitude extents) reversing it, you can get latitude from pixels with: Latitude=[(latitude max extents-latitude min extents) * X(pixels)/ImageWidth(x)] + latitude min extents Keep in mind, when doing the Y axis that latitude goes from bottom to top as the latitude increases, while pixels go from top to bottom as #pixels increases... so you have to change the formulas accordingly. I really hope this helps more than hurts, as I write this I find it difficult to put the math into written english and I hope I didn't make it sound really confusing because it's actually fairly simple. I've had a ton of help from this list as I first started with mapserver so I hope to be able to help out here and there =) -Jeff ----- Original Message ----- From: "A. Sharif" To: Sent: Friday, February 25, 2005 3:11 PM Subject: [UMN_MAPSERVER-USERS] How to use zoomscale function in PHP mapscript > Hello, > > I am trying to create a map with a dynamic point, at a determined > zoomscale. > > When i use the function $oMap->zoomscale, the coordinates I have to > pass the function are the X,Y in pixels, whereas I have Longitude, > Latitude coordinates. > > Is there a way to convert the Geographic coordinates to pixel > coordinates, or is a different function that will the geogrphic > coordinates and display the map at a determined scale ? > > thank you, > > Abdul > From roberto.bianconi at GMAIL.COM Fri Feb 25 12:54:59 2005 From: roberto.bianconi at GMAIL.COM (Roberto Bianconi) Date: Fri, 25 Feb 2005 21:54:59 +0100 Subject: Square polygons appear as triangles Message-ID: Hi, I have a shp file that describes a grid plot. It is made of adjacent square polygons and when viewed out of Mapserver it is displayed correctly. If I try to plot it with Mapserver, with something like: LAYER NAME grd STATUS DEFAULT TYPE POLYGON DATA /path_to_data/grd" CLASS EXPRESSION ([VALUE] > 1.e-5 and [VALUE] <= 1.e-4) COLOR 0 151 255 OUTLINECOLOR 0 0 0 END CLASS EXPRESSION ([VALUE] > 1.e-4 and [VALUE] <= 1.e-3) COLOR 0 223 255 OUTLINECOLOR 0 0 0 END END I get the square polygons represented as triangles, with a line connecting the lower right corner to the upper left corner (i.e. the lower left vertex is not connected). If I plot this layer - as a test - as TYPE POINT and add a CLASS vector symbol and size, I can see the 4 corners of each polygon grid, each with the selected symbol. Where am I wrong ? Any hint on how to get the correct behaviour? Thank you. Roberto From fwarmerdam at GMAIL.COM Fri Feb 25 13:07:06 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 25 Feb 2005 16:07:06 -0500 Subject: Square polygons appear as triangles In-Reply-To: <29879c6d050225125414d8cff@mail.gmail.com> Message-ID: On Fri, 25 Feb 2005 21:54:59 +0100, Roberto Bianconi wrote: > Hi, > I have a shp file that describes a grid plot. It is made of adjacent > square polygons and when viewed out of Mapserver it is displayed > correctly. > If I try to plot it with Mapserver, with something like: > > LAYER > NAME grd > STATUS DEFAULT > TYPE POLYGON > DATA /path_to_data/grd" > CLASS > EXPRESSION ([VALUE] > 1.e-5 and [VALUE] <= 1.e-4) > COLOR 0 151 255 > OUTLINECOLOR 0 0 0 > END > CLASS > EXPRESSION ([VALUE] > 1.e-4 and [VALUE] <= 1.e-3) > COLOR 0 223 255 > OUTLINECOLOR 0 0 0 > END > END > > I get the square polygons represented as triangles, with a line > connecting the lower right corner to the upper left corner (i.e. the > lower left vertex is not connected). If I plot this layer - as a test > - as TYPE POINT and add a CLASS vector symbol and size, I can see the > 4 corners of each polygon grid, each with the selected symbol. > > Where am I wrong ? Any hint on how to get the correct behaviour? > Thank you. Roberto, My first suspicion is that the polygons in the shapefile are not properly closed. There should be five vertices for each rectangle as a close rectangle must have matching first and last vertices. However, your description of how it is drawn doesn't quite sound like I would expect. You could inspect the file with shpdump or ogrinfo to see how many vertices the squares really have. Lots of sloppy shapefile generating apps fail to close polygons. Many apps will do it implicitly, but MapServer does not. Running the file through ogr2ogr may fix it up. 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 woodbri at SWOODBRIDGE.COM Fri Feb 25 13:42:44 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 25 Feb 2005 16:42:44 -0500 Subject: Square polygons appear as triangles In-Reply-To: <931f8ea9050225130778a203be@mail.gmail.com> Message-ID: OK, I have a question. Does the ESRI spec require polygons to be closed or is this just mapserver that requires it? It seems to me that if the user says it is a polygon layer, then we should be smart enough to check if it is closed and close it if it is not. This would make much more sense and make mapserver much more user friendly. -Steve Frank Warmerdam wrote: > On Fri, 25 Feb 2005 21:54:59 +0100, Roberto Bianconi > wrote: > >>Hi, >>I have a shp file that describes a grid plot. It is made of adjacent >>square polygons and when viewed out of Mapserver it is displayed >>correctly. >>If I try to plot it with Mapserver, with something like: >> >> LAYER >> NAME grd >> STATUS DEFAULT >> TYPE POLYGON >> DATA /path_to_data/grd" >> CLASS >> EXPRESSION ([VALUE] > 1.e-5 and [VALUE] <= 1.e-4) >> COLOR 0 151 255 >> OUTLINECOLOR 0 0 0 >> END >> CLASS >> EXPRESSION ([VALUE] > 1.e-4 and [VALUE] <= 1.e-3) >> COLOR 0 223 255 >> OUTLINECOLOR 0 0 0 >> END >> END >> >>I get the square polygons represented as triangles, with a line >>connecting the lower right corner to the upper left corner (i.e. the >>lower left vertex is not connected). If I plot this layer - as a test >>- as TYPE POINT and add a CLASS vector symbol and size, I can see the >>4 corners of each polygon grid, each with the selected symbol. >> >>Where am I wrong ? Any hint on how to get the correct behaviour? >>Thank you. > > > Roberto, > > My first suspicion is that the polygons in the shapefile are not > properly closed. There should be five vertices for each rectangle > as a close rectangle must have matching first and last vertices. > > However, your description of how it is drawn doesn't quite > sound like I would expect. You could inspect the file with > shpdump or ogrinfo to see how many vertices the squares > really have. Lots of sloppy shapefile generating apps fail to > close polygons. Many apps will do it implicitly, but MapServer > does not. > > Running the file through ogr2ogr may fix it up. > > 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 roberto.bianconi at GMAIL.COM Fri Feb 25 13:55:25 2005 From: roberto.bianconi at GMAIL.COM (Roberto Bianconi) Date: Fri, 25 Feb 2005 22:55:25 +0100 Subject: Square polygons appear as triangles In-Reply-To: <931f8ea9050225130778a203be@mail.gmail.com> Message-ID: Frank, that's exactly as you said: Shape:13739 (Polygon) nVertices=4, nParts=1 Bounds:( 59.250, 74.750, 0, 0) to ( 59.750, 75.250, 0, 0) ( 59.250, 74.750, 0, 0) Ring ( 59.750, 74.750, 0, 0) ( 59.750, 75.250, 0, 0) ( 59.250, 75.250, 0, 0) Thank you very much. Roberto On Fri, 25 Feb 2005 16:07:06 -0500, Frank Warmerdam wrote: > On Fri, 25 Feb 2005 21:54:59 +0100, Roberto Bianconi > wrote: > > Hi, > > I have a shp file that describes a grid plot. It is made of adjacent > > square polygons and when viewed out of Mapserver it is displayed > > correctly. > > If I try to plot it with Mapserver, with something like: > > > > LAYER > > NAME grd > > STATUS DEFAULT > > TYPE POLYGON > > DATA /path_to_data/grd" > > CLASS > > EXPRESSION ([VALUE] > 1.e-5 and [VALUE] <= 1.e-4) > > COLOR 0 151 255 > > OUTLINECOLOR 0 0 0 > > END > > CLASS > > EXPRESSION ([VALUE] > 1.e-4 and [VALUE] <= 1.e-3) > > COLOR 0 223 255 > > OUTLINECOLOR 0 0 0 > > END > > END > > > > I get the square polygons represented as triangles, with a line > > connecting the lower right corner to the upper left corner (i.e. the > > lower left vertex is not connected). If I plot this layer - as a test > > - as TYPE POINT and add a CLASS vector symbol and size, I can see the > > 4 corners of each polygon grid, each with the selected symbol. > > > > Where am I wrong ? Any hint on how to get the correct behaviour? > > Thank you. > > Roberto, > > My first suspicion is that the polygons in the shapefile are not > properly closed. There should be five vertices for each rectangle > as a close rectangle must have matching first and last vertices. > > However, your description of how it is drawn doesn't quite > sound like I would expect. You could inspect the file with > shpdump or ogrinfo to see how many vertices the squares > really have. Lots of sloppy shapefile generating apps fail to > close polygons. Many apps will do it implicitly, but MapServer > does not. > > Running the file through ogr2ogr may fix it up. > > 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 kenlord at GMAIL.COM Fri Feb 25 14:04:51 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 25 Feb 2005 14:04:51 -0800 Subject: Square polygons appear as triangles In-Reply-To: <421F9BD4.1000107@swoodbridge.com> Message-ID: A true ESRI compliant polygon shapefile must have properly closed polygons ... the final point must be the same as the starting point. I looked this info up recently directly in the ESRI shapefile whitepaper. Since the shapefile format was created by ESRI, If you have software that reads/writes shapefiles with polygons that are not closed, than your software is not following the standards. Cheers, Ken Lord On Fri, 25 Feb 2005 16:42:44 -0500, Stephen Woodbridge wrote: > OK, I have a question. Does the ESRI spec require polygons to be closed > or is this just mapserver that requires it? It seems to me that if the > user says it is a polygon layer, then we should be smart enough to check > if it is closed and close it if it is not. This would make much more > sense and make mapserver much more user friendly. > > -Steve > > Frank Warmerdam wrote: > > On Fri, 25 Feb 2005 21:54:59 +0100, Roberto Bianconi > > wrote: > > > >>Hi, > >>I have a shp file that describes a grid plot. It is made of adjacent > >>square polygons and when viewed out of Mapserver it is displayed > >>correctly. > >>If I try to plot it with Mapserver, with something like: > >> > >> LAYER > >> NAME grd > >> STATUS DEFAULT > >> TYPE POLYGON > >> DATA /path_to_data/grd" > >> CLASS > >> EXPRESSION ([VALUE] > 1.e-5 and [VALUE] <= 1.e-4) > >> COLOR 0 151 255 > >> OUTLINECOLOR 0 0 0 > >> END > >> CLASS > >> EXPRESSION ([VALUE] > 1.e-4 and [VALUE] <= 1.e-3) > >> COLOR 0 223 255 > >> OUTLINECOLOR 0 0 0 > >> END > >> END > >> > >>I get the square polygons represented as triangles, with a line > >>connecting the lower right corner to the upper left corner (i.e. the > >>lower left vertex is not connected). If I plot this layer - as a test > >>- as TYPE POINT and add a CLASS vector symbol and size, I can see the > >>4 corners of each polygon grid, each with the selected symbol. > >> > >>Where am I wrong ? Any hint on how to get the correct behaviour? > >>Thank you. > > > > > > Roberto, > > > > My first suspicion is that the polygons in the shapefile are not > > properly closed. There should be five vertices for each rectangle > > as a close rectangle must have matching first and last vertices. > > > > However, your description of how it is drawn doesn't quite > > sound like I would expect. You could inspect the file with > > shpdump or ogrinfo to see how many vertices the squares > > really have. Lots of sloppy shapefile generating apps fail to > > close polygons. Many apps will do it implicitly, but MapServer > > does not. > > > > Running the file through ogr2ogr may fix it up. > > > > 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 hermawan_s at HOTMAIL.COM Sat Feb 26 10:46:26 2005 From: hermawan_s at HOTMAIL.COM (Herman Teo) Date: Sat, 26 Feb 2005 12:46:26 -0600 Subject: Tiger Line Data Message-ID: Hi there. I am just getting started with mapserver. I saw that census provides a complete street level data of the whole united states. But the download only provides state-by-state layer-by-layer files. Is it possible to combine all layers and states for the whole us into one shp file that I can use to display any arbitrary location in us? Thanks a lot. Herman Teo From bartvde at GMAIL.COM Sat Feb 26 10:56:17 2005 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Sat, 26 Feb 2005 19:56:17 +0100 Subject: Tiger Line Data In-Reply-To: Message-ID: Hi, you can use an ogrtindex for this. This does not physically combine all shapefiles, but you can use all the data as one LAYER in Mapserver. See: http://gdal.org/ogr/ogr_utilities.html and http://mapserver.gis.umn.edu/doc44/ogr-howto.html Best regards, Bart On Sat, 26 Feb 2005 12:46:26 -0600, Herman Teo wrote: > Hi there. > I am just getting started with mapserver. I saw that census provides a > complete street level data of the whole united states. But the download only > provides state-by-state layer-by-layer files. Is it possible to combine all > layers and states for the whole us into one shp file that I can use to > display any arbitrary location in us? > Thanks a lot. > > > Herman Teo > From woodbri at SWOODBRIDGE.COM Sat Feb 26 11:13:13 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 26 Feb 2005 14:13:13 -0500 Subject: Tiger Line Data In-Reply-To: Message-ID: Herman, You do not need to and it it ill advised to combine all data into on huge shapefile. I have all the Tiger data in one mapfile for the whole US. There are nearly 300,000 files. See http://imaptools.com/tiger/ for a demo of this. The trick is to use a TILEINDEX for each layer to associate all the files for that layer. A TILEINDEX makes it very fast to only open and parse the files that are needed for any goven map draw. If you are zoomed in and only need to open one small file it will be much fast than opening one HUGE file and then scanning the whole file for objects that might need to be draw, when 99.99% probably do not need to be drawn of any given image. there is a utily program called tile4ms which will help you build your TILEINDEX. Then in the LAYER ... END block reference your TILEINDEX instead of a DATA statement. -Steve W. Herman Teo wrote: > Hi there. > I am just getting started with mapserver. I saw that census provides a > complete street level data of the whole united states. But the download only > provides state-by-state layer-by-layer files. Is it possible to combine all > layers and states for the whole us into one shp file that I can use to > display any arbitrary location in us? > Thanks a lot. > > > Herman Teo > From hermawan_s at HOTMAIL.COM Sat Feb 26 18:29:17 2005 From: hermawan_s at HOTMAIL.COM (Herman Teo) Date: Sat, 26 Feb 2005 20:29:17 -0600 Subject: Tiger Line Data Message-ID: Hi Stephen, Thanks for the tip. I'm now scouring through the previous list messages for 'tile' commands. There is not much of that going on. Is there a sample code where I might be able to learn how I should proceed with shape tiling and a sniff of a LAYER...END code in the map file. Also, is any of these tiger line on sale somewhere so that I might not have to download 300k files as you said. Thanks a lot. Herman From bluecarto at GMAIL.COM Sun Feb 27 10:17:28 2005 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Sun, 27 Feb 2005 19:17:28 +0100 Subject: GAP for pixmap symbols Message-ID: Wouldn't it be nice to be able to give a GAP value to a pixmap type symbol ? (i.e. to be able to see pixmap symbols along a line) Pierre GIRAUD From ckeller at INFORMATIK.HU-BERLIN.DE Sun Feb 27 14:51:27 2005 From: ckeller at INFORMATIK.HU-BERLIN.DE (Cornelius Keller) Date: Sun, 27 Feb 2005 23:51:27 +0100 Subject: php mapscript causes segfault, strace attatched Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello mapserver users, after installing php-mapserver on my laptop (debian unstable) and having fast successes adapting and modifying the chameleon examples, I tried to install php_mapscript on my webserver. Now I am trying for a whole week to make it run properly but everything I tried failed till now. Since my server is a linux-vserver, I will do another posting to the linux vserver list to see if there is an issue there later. First, I tried to run the self compiled php_mapscript (with php regex) module in the apache php module, but this crashed the apache while starting. So I contiued to try the cgi version of php. With the cgi version of php, I achieved to get an php_info that tells me that the mapscript extension is loaded, anyway it causes a segmentation fault when executing pages wich are using mpascript. I updated the web server so that it uses about the same php version and libs as my laptop but the problem stays. I am a bit desprate now, I tried all I can do but diving in to the mapserver c-code. I pruduced a stactrace with the calling strace /usr/lib/cgi-bin/php4 sample_basic_plainbuttons.phtml 2> strace.txt I'll send it with this email, maybe one of you more advanced mapserver users or devellopers can give me a hint what might be the problem. If I can provide any information to make the issue more clear to you please ask me. Thanks in advance for your time greetings form berlin, germany Cornelius Keller -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQEVAwUBQiJO75FbnvyehKdrAQI9dggAgnvO7ydjkijB2UdKmEvjjH+QvCPV2RSb kBFHv7vD7yne447/3ePFkfyin4rKYe+PVACtLei2M0Rh40+hfUuv0p+Z0Z07D6gP qnsh1sycwNACGmowNciGPRgS0A1qPC0BEO2cUrOnudPbrL5bjT1lTIw1D+ubJngf Az1EfpCs+rgoOlWxNYyI+lfGPXDVx43dYfQ+ZHoqPcEKQMbp7EQV12q3CnjhabuE Zqa0yCI26FXpkHz85nygRrIbfmvqYzkNJ9800esuDjXjlqr9+4mG5Z5sMP2yUw30 Qn85PxKnLUlFrT/QfcQTOVzWyyqB43020hkCQcXXAJMwxtjcopx4qA== =jG1b -----END PGP SIGNATURE----- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: strace.txt URL: From stradivarius at CENTRUM.CZ Sun Feb 27 15:17:48 2005 From: stradivarius at CENTRUM.CZ (Karel Cech) Date: Mon, 28 Feb 2005 00:17:48 +0100 Subject: tfw problem Message-ID: hi list, recently I ran into problems displaying rasters with mapserver. I have some 12 tiled ttf imges in S-JTSK (say EPSG 2065?) using tfw files. what would be a best way to display it in wgs84? I have read docs, but surely I had missed something. Unfortunatly, one single ostrava01.ttf file displays a blank image for me. It seems like I have bad epsg or bbox, but I think it's not the case. --------------mapfile-------------------------------------------- MAP NAME "ostrava raster" STATUS ON EXTENT -480000 -1110000 -470000 -1100000 SIZE 500 500 IMAGETYPE PNG IMAGECOLOR 255 255 255 UNITS METERS DEBUG ON WEB END LAYER NAME "raster" STATUS ON DATA "data/rastr/ostrava/ostrava01.ttf" TYPE RASTER PROJECTION "init=epsg:2065" END END END ---------------ostrava01.tfw------------------------------------------ 0.846823767052632400 0.0000000000000180141196676515190 0.00000000000182522424071225800 -0.846906496908438670 -487490.49058812181 -1087633.7429925622 ------------------mapserv--------------------------------------------------- ./mapserv -v MapServer version 4.2.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I'm new to mapserver so sorry if this topic is off.. Thanks a lot for your sugestions! greetings, karel From woodbri at SWOODBRIDGE.COM Sun Feb 27 19:15:23 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 27 Feb 2005 22:15:23 -0500 Subject: Tiger Line Data In-Reply-To: Message-ID: Herman Teo wrote: > Hi Stephen, > > Thanks for the tip. I'm now scouring through the previous list > messages for 'tile' commands. There is not much of that going on. Is > there a sample code where I might be able to learn how I should > proceed with shape tiling and a sniff of a LAYER...END code in the > map file. Also, is any of these tiger line on sale somewhere so that > I might not have to download 300k files as you said. Thanks a lot. Herman, There are two different tiling commands: 1) tile4ms which is distributed as part of the mapserver source and is documented on the mapserver utilities page of the website. It is used to tiling shapefiles. The easiest way to use it is to putt all the data you want to tile in a directory tree located in your SHAPEPATH directory. Then on Linux do something like: find data_dir -name "*.shp" > data_dir.in tile4ms data_dir.in data-tile shptree data-tile cat data_dir.in | xargs -n 1 shptree Then in your mapfile do something like: LAYER NAME "my tile data" TYPE whatever TILEINDEX data-tile ... CLASS ... END END One of the caveats of this is that all the shapefiles in the index MUST have the SAME attributes and order of attributes and they must be all the same type. 2) For tiling images you should use gdaltindex which is distributed as part of the gdal libraries and tools. The concept is similar to the above and I documented it on the wiki at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO in the Bathymetry and Topography HowTo link and others have added a lot more info there. From rati at POST.COM Sun Feb 27 21:28:12 2005 From: rati at POST.COM (David Radcliffe) Date: Sun, 27 Feb 2005 23:28:12 -0600 Subject: Itasca 3.5 Demo Error on Mapserver 4.4.1 Message-ID: Hi there, I'm getting exactly the same problem, only with the latest rendition of the demo, source and libraries. When I encounter the failure, I can trace it to a call to 'rewind' in the function 'int msAddImageSymbol(symbolSetObj *symbolset, char *filename)', defined within mapsymbol.c on line 488 (of version 4.4.1 of the source). It appears as though the program is failing when it tries to rewind a file pointer back to the start of an image file (given a stream). I can't explain why this is happening. Here's the query string I've been using: layer=lakespy2&layer=dlgstln2&zoomsize=2&map=itasca.map&program=mapserv.exe &root=.&map_web_imagepath=tmp&map_web_imageurl=tmp&map_web_template=itasca_ basic.html This occurs with the latest binary version AND all versions I have compiled myself. I am using Windows XP Professional with SP2 installed. Can anyone offer any explanation as to what is happening? Thanks, David From miller_joseph at BAH.COM Sun Feb 27 21:53:28 2005 From: miller_joseph at BAH.COM (Miller Joseph) Date: Mon, 28 Feb 2005 00:53:28 -0500 Subject: Java MapScript issues Servlet Message-ID: Hi, I'm having a baffling problem with a nightly build of Java Mapscript from about a month ago that I am running on Windows 2000 with Tomcat 5.5.4. The symptom I see is that I can generate the default image but after the fourth or fifth time that I pass a new envelope to change the extent of the image I get the following error: The relevant part of the stack trace: java.lang.UnknownError: Failed to draw layer named 'world'. at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) Occasionally I'll get a flex scanner error or tomcat will crash with an Exception_Access_Violation memmove error similar to the one referred to here: http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa dID=286832 All of this happens whether I instatiate new instances of the mapObj and set everything to null or if I use the same mapObj throughout and only after a few passes, suggesting to me that there is a memory issue somewhere. I can pass on some specific code, but all I am really doing is creating new envelopes to store extents and then assigning them to the mapObj or extracting the corner coordinates and setting the extent with them. I've been fighting this for a frustrating week now. Does anyone have any advice? Thanks, Joe Miller From kenlord at GMAIL.COM Sun Feb 27 21:58:34 2005 From: kenlord at GMAIL.COM (Ken Lord) Date: Sun, 27 Feb 2005 21:58:34 -0800 Subject: Itasca 3.5 Demo Error on Mapserver 4.4.1 In-Reply-To: Message-ID: Hi V, David, After discussing this problem in a couple messages last week, I upgraded from mapserver 4.2 to 4.4.1 myself using the windows binary available on the mapserver homepage. I ended up stuck with the same problem. I am no programmer, but Here's what I noticed: The version from the mapserver homepage is a small .exe that requires all the separate dll's, the dll versions are different from those of the previous mapserver versions. MapServer 4.2 would not run using the new dll's, itself giving the same http header error encountered when trying to run 4.4.1. ... Are we back to some kind of dll problem? Regardless, go to www.maptools.org/dl and get their version of 4.4.1. use the mapserv.exe that comes with it and the dll's that are in the zip files contained within the main zip file you download. This version is a larger .exe that rellies on fewer dll's ... and on two separate installations so far IT WORKS! 1st installation: windows 2000 2nd installation: windows xp sp1 Have Fun Ken Lord Vancouver BC On Sun, 27 Feb 2005 23:28:12 -0600, David Radcliffe wrote: > Hi there, > > I'm getting exactly the same problem, only with the latest rendition of > the demo, source and libraries. > > When I encounter the failure, I can trace it to a call to 'rewind' in the > function 'int msAddImageSymbol(symbolSetObj *symbolset, char *filename)', > defined within mapsymbol.c on line 488 (of version 4.4.1 of the source). > > It appears as though the program is failing when it tries to rewind a file > pointer back to the start of an image file (given a stream). I can't > explain why this is happening. > > Here's the query string I've been using: > layer=lakespy2&layer=dlgstln2&zoomsize=2&map=itasca.map&program=mapserv.exe > &root=.&map_web_imagepath=tmp&map_web_imageurl=tmp&map_web_template=itasca_ > basic.html > > This occurs with the latest binary version AND all versions I have > compiled myself. I am using Windows XP Professional with SP2 installed. > > Can anyone offer any explanation as to what is happening? > > Thanks, > > David > From tonyb at BUNDABERG.QLD.GOV.AU Sun Feb 27 22:19:08 2005 From: tonyb at BUNDABERG.QLD.GOV.AU (Tony Baylis) Date: Mon, 28 Feb 2005 00:19:08 -0600 Subject: Upgrade from 3.6.6 to 4.4.1 Message-ID: Hello All, I have just upgraded our machine, OS (RH8 to CentOS) and as such also Mapserver from 3.6.6 to 4.4.1 and PHP from 4.1.2 to 4.3.3. After config all seemed to work, the initial page and map is displayed, the legend html works, the reference map is displayed BUT all dynamic type features do not work. These include zooming, panning, addition of new layers etc. I have investigated the Migration WIKI, done the modification where required but to no avail. Can anyone point me in a new direction as I am a bit lost as to the source of the problem. Tony Bundaberg City Council From unicoletti at PROMETEO.IT Mon Feb 28 00:44:21 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 28 Feb 2005 09:44:21 +0100 Subject: Java MapScript issues Servlet In-Reply-To: <7585F83BC6F1DB4195D8496D9C68963A1D0736@MCLNEXVS08.resource.ds.bah.com> Message-ID: Did you enable threads support? Java, and especially servlets, are definitely highly concurrent environment, so you have to enable thread support when compiling mapserver and mapscript. One very problematic spot with regards to threads is in fact the parser of .map files. Do you attempt to reuse the same mapObj across multiple requests or just create one and dispose as soon as you are done within a single request? HTH, Umberto On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph wrote: > Hi, > I'm having a baffling problem with a nightly build of Java Mapscript > from about a month ago that I am running on Windows 2000 with Tomcat > 5.5.4. > > The symptom I see is that I can generate the default image but after the > fourth or fifth time that I pass a new envelope to change the extent of > the image I get the following error: > > The relevant part of the stack trace: > java.lang.UnknownError: Failed to draw layer named 'world'. > at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) > at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) > > Occasionally I'll get a flex scanner error or tomcat will crash with an > Exception_Access_Violation memmove error similar to the one referred to > here: > http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa > dID=286832 > > All of this happens whether I instatiate new instances of the mapObj and > set everything to null or if I use the same mapObj throughout and only > after a few passes, suggesting to me that there is a memory issue > somewhere. I can pass on some specific code, but all I am really doing > is creating new envelopes to store extents and then assigning them to > the mapObj or extracting the corner coordinates and setting the extent > with them. > > I've been fighting this for a frustrating week now. Does anyone have > any advice? > > Thanks, > Joe Miller -- Umberto Nicoletti At that point it will +390415701366 unicoletti at prometeo.it compile, but segfault, as it should.. Prometeo S.R.L. The Software Experience From schick at SDAC.HANNOVER.BGR.DE Mon Feb 28 04:28:23 2005 From: schick at SDAC.HANNOVER.BGR.DE (Agneta Schick) Date: Mon, 28 Feb 2005 13:28:23 +0100 Subject: file system growing with open files Message-ID: > The following message was sent by Agneta Schick > on Fri, 25 Feb 2005 10:52:42 +0100. > > > Hello, > > > > We have a system problem on a machine with a mapserver application: > "too many > > open files" > > A list of open files shows it is always the same file: the source file > for a > > reference map (.png) which is in read mode and never closed. > > This could be a version problem because we have a similar application on > > another machine with no such problems. > > > > We run > > MapServer version 4.2.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL > INPUT=SHAPEFILE > > with mapscript > > perl 5.8.3 > > mod_perl-1.29 > > apache_1.3.27 > > on Solaris 9. > > > > We have set rlim_fd_cur=1024 and rlim_fd_max=4096 to no avail. > > > > > > On the machine without this problem we run > > MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL > > INPUT=SHAPEFILE > > with mapscript > > perl 5.6.1 > > mod_perl-1.27 > > apache_1.3.22 > > on Solaris 8. > > Agneta, > > A couple of thoughts. > Are you sure the files are just being left open or are there a load of > open connections (sockets) to the webserver itself that the processes > are waiting on to finish? > My understanding as of the 4.2+ series of MS is that Perl's garbage > collection will close things when a cgi finishes but when running under > mod_perl you probably need to explicitly undef the map object to trigger > the cleanup.? > I also noticed that the default max number of files per user is lower in > solaris 9 then in solaris 8. > > Lowell We explicity increased the number of files for solaris 9. We have no open connections and the map object is explicitly 'undef'. The perl script has 'use strict' and 'use warnings' but the apache error_log is empty. I have reread and tested the perl script but see no reason for the reference map not being closed. Still the count of open files (reference map source) increases by one for each interaction. If the MapServer reads the source data for the map as well as source data for the reference map why does only the reference map remain open ? Agneta From miller_joseph at BAH.COM Mon Feb 28 04:35:18 2005 From: miller_joseph at BAH.COM (Joseph Miller) Date: Mon, 28 Feb 2005 06:35:18 -0600 Subject: Java MapScript issues Servlet Message-ID: Umberto, 1)I don't think I compiled specifically with multi-threading because it wasn't an option listed in the nmake.opt for Microsoft Visual C++ options file??? The last I heard multithreading was not even on the horizon for mapserver and yet I see it in the Unix build options file? What do I need to do this? 2)I tried both options you mentioned, I had the problem when passed the same mapObj from request to request and stored it in the session and when I set it to null after every request and instantiated it and assigned attributes based on other variables stored in the requests and sessions? I'm assuming the latter is preferred? Thanks, Joe Miller On Mon, 28 Feb 2005 09:44:21 +0100, Umberto Nicoletti wrote: >Did you enable threads support? >Java, and especially servlets, are definitely highly concurrent >environment, so you have to enable thread support when compiling >mapserver and mapscript. One very problematic spot with regards to >threads is in fact the parser of .map files. > >Do you attempt to reuse the same mapObj across multiple requests or just >create one and dispose as soon as you are done within a single request? > >HTH, >Umberto > > >On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph wrote: >> Hi, >> I'm having a baffling problem with a nightly build of Java Mapscript >> from about a month ago that I am running on Windows 2000 with Tomcat >> 5.5.4. >> >> The symptom I see is that I can generate the default image but after the >> fourth or fifth time that I pass a new envelope to change the extent of >> the image I get the following error: >> >> The relevant part of the stack trace: >> java.lang.UnknownError: Failed to draw layer named 'world'. >> at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) >> at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) >> >> Occasionally I'll get a flex scanner error or tomcat will crash with an >> Exception_Access_Violation memmove error similar to the one referred to >> here: >> http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa >> dID=286832 >> >> All of this happens whether I instatiate new instances of the mapObj and >> set everything to null or if I use the same mapObj throughout and only >> after a few passes, suggesting to me that there is a memory issue >> somewhere. I can pass on some specific code, but all I am really doing >> is creating new envelopes to store extents and then assigning them to >> the mapObj or extracting the corner coordinates and setting the extent >> with them. >> >> I've been fighting this for a frustrating week now. Does anyone have >> any advice? >> >> Thanks, >> Joe Miller >-- >Umberto Nicoletti At that point it will >+390415701366 unicoletti at prometeo.it compile, but segfault, as it should.. >Prometeo S.R.L. The Software Experience Umberto, 1)I don't think I compiled specifically with multi-threading because it wasn't an option listed in the nmake.opt for Microsoft Visual C++ options file??? The last I heard multithreading was not even on the horizon for mapserver and yet I see it in the Unix build options file? What do I need to do this? 2)I tried both options you mentioned, I had the problem when passed the same mapObj from request to request and stored it in the session and when I set it to null after every request and instantiated it and assigned attributes based on other variables stored in the requests and sessions? I'm assuming the latter is preferred? Thanks, Joe Miller From woodbri at SWOODBRIDGE.COM Mon Feb 28 05:25:45 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 28 Feb 2005 08:25:45 -0500 Subject: Upgrade from 3.6.6 to 4.4.1 In-Reply-To: Message-ID: Tony, If your application is using PHP/Mapscript it is likely do to the fact that some of the old default parameters in PHP have changed for security reasons. Specifically that form variables are not auto instantiated as PHP variables. I have had to add to most of my scripts code like: if (isset($_REQUEST["myvar"])) $myvar = $_REQUEST["myvar"]; for all the form vars that I want to use. -Steve W. Tony Baylis wrote: > Hello All, > > I have just upgraded our machine, OS (RH8 to CentOS) and as such also > Mapserver from 3.6.6 to 4.4.1 and PHP from 4.1.2 to 4.3.3. > > After config all seemed to work, the initial page and map is > displayed, the legend html works, the reference map is displayed BUT > all dynamic type features do not work. These include zooming, > panning, addition of new layers etc. > > I have investigated the Migration WIKI, done the modification where > required but to no avail. Can anyone point me in a new direction as > I am a bit lost as to the source of the problem. > > Tony Bundaberg City Council > From bluecarto at GMAIL.COM Mon Feb 28 05:38:21 2005 From: bluecarto at GMAIL.COM (Pierre GIRAUD) Date: Mon, 28 Feb 2005 14:38:21 +0100 Subject: GAP for pixmap symbols Message-ID: Wouldn't it be nice to be able to give a GAP value to a pixmap type symbol ? (i.e. to be able to see pixmap symbols along a line) From alba75 at YAHOO.COM Mon Feb 28 05:51:49 2005 From: alba75 at YAHOO.COM (Dott. Stefano Albanese) Date: Mon, 28 Feb 2005 05:51:49 -0800 Subject: How use a combo box to query a shp file and zoom to selected element Message-ID: Hi everybody, hi hope u can help me in solving my troubles. I'd like to add to my html file (where map is shown) a combo box storing names of a column in dbf file and to add the function of zooming to selected elements clicking on a "go button". I know it has to be an easy procedure for expert users, but i'm new user so it would be nice from u if u want to help me. I tryed some demos i found on the net but i wasn't able to solve. So could u help me replying with some comments on how i can make this? I will post u my codes, so that u can easily give me your solution to my problem. I used to compile project the avein plugin for arcview. The map shows a poligon theme where each poligon corrispond to the boundaries of towns (comuni) in an italian region. I would be able to search each town just clicking on its name in he combobox and to see the poligon zoomed and highlighted in red. The shape file used is called "campanianew.shp" Anyways if u want help me i can send to u a zip file with complete project. Thanx in advance. Steve Alba -------------------initialisation file omitted-------------------------------- -------------------Legend file omitted (legend.html)------------------- ------------------map file (comuni.map.map)-------------------------------------------------------- # # Start of map file - created Mon Feb 28 03:04:52 2005 # NAME 'Comuni.map' STATUS ON PROJECTION 'init=epsg:4326' END SIZE 550 716 EXTENT 2407592.810 4418363.643 2597206.421 4603867.357 UNITS meters SYMBOLSET 'C:/Programmi/Apache Group/Apache2/htdocs/avein2/symbols/symbset.sym' FONTSET 'C:/Programmi/Apache Group/Apache2/htdocs/avein2/fonts/fonts.fnt' IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB LOG Comuni.map.log TEMPLATE comuni.html IMAGEPATH 'C:/Programmi/Apache Group/Apache2/htdocs/temp/' IMAGEURL 'http://localhost/temp/' EMPTY 'http://localhost/avein2/nothing.html' # change this value to match your setup METADATA WMS_ONLINERESOURCE 'http://localhosthttp://localhost/cgi-bin/mapserv.exe?map=C:/Programmi/Apache Group/Apache2/htdocs/avein2/Comuni.map.map' 'WMS_SRS' 'epsg:4326' WMS_ACCESSCONSTRAINTS 'none' WMS_TITLE 'Comuni.map' WMS_FEATURE_INFO_MIME_TYPE 'text/html' WMS_ABSTRACT '' END #METADATA END #HEADER # # Properties for the querymap # QUERYMAP SIZE 200 200 STATUS ON #OFF STYLE HILITE COLOR 255 0 0 END # # Start of reference map # REFERENCE STATUS ON IMAGE graphics/ref_map.jpg SIZE 80 120 EXTENT 2407592.810 4418363.643 2597206.421 4603867.357 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END #REFERENCE # # Start of legend # LEGEND STATUS ON KEYSIZE 16 8 TEMPLATE 'legend.html' LABEL COLOR 120 120 120 END # ENDE LABEL END #LEGEND # # Start of scalebar # SCALEBAR STATUS EMBED POSITION lr STYLE 0 INTERVALS 4 IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END #ENDE LABEL SIZE 200 3 TRANSPARENT ON COLOR 0 0 0 BACKGROUNDCOLOR 255 170 0 OUTLINECOLOR 100 100 100 UNITS KILOMETERS END #SCALEBAR # # Start of layer definitions # # LAYER NAME 'Comuni' GROUP 'Comuni' DATA 'c:/programmi/apache group/apache2/htdocs/avein2/data/campanianew' STATUS ON TYPE Polygon TEMPLATE 'Campanianew.shp_query.html' METADATA 'WMS_SRS' 'epsg:4326' WMS_TITLE 'Comuni' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END PROJECTION 'init=epsg:4326' END CLASSITEM 'Pr' CLASS NAME 'AV' EXPRESSION /^AV/ COLOR 192 101 73 OUTLINECOLOR 0 0 0 END # CLASS CLASS NAME 'BN' EXPRESSION /^BN/ COLOR 255 215 0 OUTLINECOLOR 0 0 0 END # CLASS CLASS NAME 'CE' EXPRESSION /^CE/ COLOR 189 183 107 OUTLINECOLOR 0 0 0 END # CLASS CLASS NAME 'NA' EXPRESSION /^NA/ COLOR 247 181 103 OUTLINECOLOR 0 0 0 END # CLASS CLASS NAME 'SA' EXPRESSION /^SA/ COLOR 206 195 149 OUTLINECOLOR 0 0 0 END # CLASS CLASS NAME 'No Data' EXPRESSION /^/ # COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 END # CLASS END # END OF LAYERFILE LAYER # START OF ANNOTATION LAYERFILE NAME 'Comuni' DATA 'c:/programmi/apache group/apache2/htdocs/avein2/data/campanianew' STATUS DEFAULT TYPE ANNOTATION METADATA WMS_SRS 'epsg:4326' WMS_TITLE 'Comuni.map' WMS_FEATURE_INFO_MIME_TYPE 'text/html' END PROJECTION 'init=epsg:4326' END CLASSITEM 'Pr' LABELITEM 'Campan2_id' CLASS NAME 'Comuni' EXPRESSION /./ LABEL TYPE TRUETYPE FONT bluehigh SIZE 8 ANGLE 0 COLOR 0 0 0 BUFFER 0 POSITION cc PARTIALS TRUE END END # CLASS END # END OF LAYERFILE END # MAPFILE -----------------------------------html file where map is shown (comuni.html)--------------------------------------- Comuni Campania
Comuni Campania
Query Query attributes of theme Pan recenter map Zoom in Zoom into map Zoom out Zoom out Zoom size ReloadKarte aktualisieren Full extentVolle Ausdehnung HelpMapserver-Hilfe

 

WMS: GetCapabilities

nach W

[legend]

Scale 1 :

?Engeo Studio

powered by

-----------------------------------------query file for actual query funtion (clicking on element u can see attributes)-----------------------------------(Campanianew.shp_query.html)----------------
-------------------------------------------- Dott. Geol. Stefano Albanese Via S. Giacomo 6 83022 Baiano (AV) Italia Tel.: +390818243143 +393471982279 --------------------------------- Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. -------------- next part -------------- An HTML attachment was scrubbed... URL: From unicoletti at PROMETEO.IT Mon Feb 28 06:07:38 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 28 Feb 2005 15:07:38 +0100 Subject: Java MapScript issues Servlet In-Reply-To: Message-ID: Quoting Joseph Miller : > Umberto, > > 1)I don't think I compiled specifically with multi-threading because it > wasn't an option listed in the nmake.opt for Microsoft Visual C++ options > file??? The last I heard multithreading was not even on the horizon for > mapserver and yet I see it in the Unix build options file? What do I need > to do this? I only use mapserver on linux, so I can't say much about windows. Except for that I believe that thread support has been in mapserver for quite some time... > > 2)I tried both options you mentioned, I had the problem when passed the > same mapObj from request to request and stored it in the session and when I > set it to null after every request and instantiated it and assigned > attributes based on other variables stored in the requests and sessions? > I'm assuming the latter is preferred? > I think the per-request mapObj is preferrable to keeping mapObj in session and that is partly because of the way mapserver (and mapscript) was meant to work in the beginning, that's to say as a cgi. In fact a cgi is a process that is created once for each request and then exits, so it is stateless. A session approach might work too, but it would require some work to make sure you initialize everything correctly. Also the native code must be carefully checked for dealocks, memory leaks and so on, so programming is much more challenging. The disadvantages of the per request mapObj are relatively small and probably evident only when accessing network resources like database where the initialization part is significantly complex. Regards, Umberto > Thanks, > Joe Miller > > On Mon, 28 Feb 2005 09:44:21 +0100, Umberto Nicoletti > wrote: > > >Did you enable threads support? > >Java, and especially servlets, are definitely highly concurrent > >environment, so you have to enable thread support when compiling > >mapserver and mapscript. One very problematic spot with regards to > >threads is in fact the parser of .map files. > > > >Do you attempt to reuse the same mapObj across multiple requests or just > >create one and dispose as soon as you are done within a single request? > > > >HTH, > >Umberto > > > > > >On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph wrote: > >> Hi, > >> I'm having a baffling problem with a nightly build of Java Mapscript > >> from about a month ago that I am running on Windows 2000 with Tomcat > >> 5.5.4. > >> > >> The symptom I see is that I can generate the default image but after the > >> fourth or fifth time that I pass a new envelope to change the extent of > >> the image I get the following error: > >> > >> The relevant part of the stack trace: > >> java.lang.UnknownError: Failed to draw layer named 'world'. > >> at edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native Method) > >> at edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) > >> > >> Occasionally I'll get a flex scanner error or tomcat will crash with an > >> Exception_Access_Violation memmove error similar to the one referred to > >> here: > >> http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa > >> dID=286832 > >> > >> All of this happens whether I instatiate new instances of the mapObj and > >> set everything to null or if I use the same mapObj throughout and only > >> after a few passes, suggesting to me that there is a memory issue > >> somewhere. I can pass on some specific code, but all I am really doing > >> is creating new envelopes to store extents and then assigning them to > >> the mapObj or extracting the corner coordinates and setting the extent > >> with them. > >> > >> I've been fighting this for a frustrating week now. Does anyone have > >> any advice? > >> > >> Thanks, > >> Joe Miller > >-- > >Umberto Nicoletti At that point it > will > >+390415701366 unicoletti at prometeo.it compile, but segfault, as > it should.. > >Prometeo S.R.L. The Software Experience > > Umberto, > > 1)I don't think I compiled specifically with multi-threading because it > wasn't an option listed in the nmake.opt for Microsoft Visual C++ options > file??? The last I heard multithreading was not even on the horizon for > mapserver and yet I see it in the Unix build options file? What do I need > to do this? > > 2)I tried both options you mentioned, I had the problem when passed the > same mapObj from request to request and stored it in the session and when I > set it to null after every request and instantiated it and assigned > attributes based on other variables stored in the requests and sessions? > I'm assuming the latter is preferred? > > Thanks, > Joe Miller > From lfilak at MEDINACO.ORG Mon Feb 28 06:08:50 2005 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 28 Feb 2005 09:08:50 -0500 Subject: file system growing with open files Message-ID: The following message was sent by Agneta Schick on Mon, 28 Feb 2005 13:28:23 +0100. > > The following message was sent by Agneta Schick > > on Fri, 25 Feb 2005 10:52:42 +0100. > > > > > Hello, > > > > > > We have a system problem on a machine with a mapserver application: > > "too many > > > open files" > > > A list of open files shows it is always the same file: the source file > > for a > > > reference map (.png) which is in read mode and never closed. > > > This could be a version problem because we have a similar application on > > > another machine with no such problems. > > > > > > We run > > > MapServer version 4.2.3 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > > SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL > > INPUT=SHAPEFILE > > > with mapscript > > > perl 5.8.3 > > > mod_perl-1.29 > > > apache_1.3.27 > > > on Solaris 9. > > > > > > We have set rlim_fd_cur=1024 and rlim_fd_max=4096 to no avail. > > > > > > > > > On the machine without this problem we run > > > MapServer version 3.6.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ > > > SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=OGR INPUT=GDAL > > > INPUT=SHAPEFILE > > > with mapscript > > > perl 5.6.1 > > > mod_perl-1.27 > > > apache_1.3.22 > > > on Solaris 8. > > > > Agneta, > > > > A couple of thoughts. > > Are you sure the files are just being left open or are there a load of > > open connections (sockets) to the webserver itself that the processes > > are waiting on to finish? > > My understanding as of the 4.2+ series of MS is that Perl's garbage > > collection will close things when a cgi finishes but when running under > > mod_perl you probably need to explicitly undef the map object to trigger > > the cleanup.? > > I also noticed that the default max number of files per user is lower in > > solaris 9 then in solaris 8. > > > > Lowell > > We explicity increased the number of files for solaris 9. > We have no open connections and the map object is explicitly 'undef'. > The perl script has 'use strict' and 'use warnings' but the apache error_log > is empty. > I have reread and tested the perl script but see no reason for > the reference map not being closed. > Still the count of open files (reference map source) increases by one for each > interaction. > > If the MapServer reads the source data for the map as well as source data > for the reference map why does only the reference map remain open ? Agneta, Sorry, I overlooked the parameters you set (won't ulimit alone take care of that in 9?). Even though it may not solve the problem, is there any reason you can't upgrade to MS 4.4 so, if needed, a bug can be posted against the current base? Lowell From mweinelt at PLANIGLOBE.COM Mon Feb 28 06:12:31 2005 From: mweinelt at PLANIGLOBE.COM (Martin Weinelt) Date: Mon, 28 Feb 2005 15:12:31 +0100 Subject: CGI MapServer: custom error page Message-ID: Hi, is there a way with cgi mapserver to define a custom error page (WEB / ERROR in map file) which also embeds the error message usually displayed. S/th like an [ERROR]-cgi variable for the custom error page? Thanks, Martin From mhbasa at YAHOO.COM Mon Feb 28 06:31:40 2005 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Mon, 28 Feb 2005 06:31:40 -0800 Subject: Java MapScript issues Servlet In-Reply-To: Message-ID: Hi. From bengt.nilsson at AEROTECHTELUB.SE Mon Feb 28 06:11:09 2005 From: bengt.nilsson at AEROTECHTELUB.SE (Nilsson Bengt) Date: Mon, 28 Feb 2005 15:11:09 +0100 Subject: Bug in msPOSTGISLayerGetShape? Message-ID: Hi, I'm using mapserver 4.4.1together with postgis-1.0.0-rc1 under Apache on RH9. When trying to get a single shape via GetFeature the server breaks with 'Premature end of script headers: /usr/local/apache/cgi-bin/mapserv'. With a little bit of debugging I can see that it's msAddLine that fails, of two reasons actually; p->numlines is completely wrong and so is p->line. In my case 'msAddLine' is called by 'force_to_polygons' which in turn is called by 'msPOSTGISLayerGetShape'. Reset of p->numlines and p->line in 'force_to_polygons' seems to fix the problem but I suppose that it should be done somewhere else. /Regards Bengt From fwarmerdam at GMAIL.COM Mon Feb 28 07:16:26 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 28 Feb 2005 10:16:26 -0500 Subject: tfw problem In-Reply-To: Message-ID: On Mon, 28 Feb 2005 00:17:48 +0100, Karel Cech wrote: > hi list, > recently I ran into problems displaying rasters with mapserver. I have > some 12 tiled ttf imges in S-JTSK (say EPSG 2065?) using tfw files. > what would be a best way to display it in wgs84? I have read docs, but > surely I had missed something. Karel, Krovak is tricky because some uses of Krovak projection use unusual axis orientations which may not be well handled by PROJ.4 - or at least the epsg derived definitions. I would encourage you to start by running gdalinfo on your file and making sure that it's lat/long corners make sense. If the file has no projection definition you might want to add it manually with a command line: gdal_translate -a_srs EPSG:2065 ostrava01.ttf ostrava01_geo.tif gdalinfo ostrava01_geo.tif If that works properly, then MapServer should be ready to handle the projection of the image. You mention that your example mapfile displays a while image. I am not sure why that is, since the .tfw file and the image should be enough for MapServer to work on even if it does not understand the actual coordinate system. There could be a variety of normal issues of course. Have you enabled the layer in your render (STATUS ON really means this layer can be enabled), are there any path problems? Is the image white? etc. Normal MapServer debugging rules apply. I would encourage you to work out your base problems before trying to address the projections related issues. PS. why the .ttf extension? I am assuming these are TIFF files, for which the normal extension would be .tif or possibly .tiff. 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 unicoletti at PROMETEO.IT Mon Feb 28 07:31:42 2005 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 28 Feb 2005 16:31:42 +0100 Subject: Java MapScript issues Servlet In-Reply-To: <20050228143140.20928.qmail@web30506.mail.mud.yahoo.com> Message-ID: Quoting "Mario H. Basa" : > Hi. > > >From my experience, Java Mapscript still has some > problems with threads, and can still easily bring down > Tomcat even with the thread compile option is set. > Please correct me if I am wrong. > Yes, that is probably correct, although it is not *that easy*. I have also stressed mapscript with jmeter and actually not found errors, but I did not cover querying. That is why I voted for improved thread safety when the devs showed their wishlists. > What I did was I synchronized the class that does the > map processing, and now my test app can survive > benchmarking with JMeter. Here are my results as > compared with a simillar PHP CGI program: > This is definitely a correct workaround. > 4 threads (requests) per second, repeated 25 times > > PHP Mapscript 1.8 to 1.9 pages per second > Java Mapscript 2.3 to 2.5 pages per second > > I was honestly surprised with the result and it is > encouraging me to work with Java Mapscript even in a > synchronized mode. > Were you using apache 1.3 or 2.x in the php tests? Apache 1.3 uses a fork based model, that while being extremely safe and sound is not as fast as a threaded model. Apache 2.x has threads and should be faster. Regards, Umberto > mario > yokohama,japan > > > --- Joseph Miller wrote: > > > Umberto, > > > > 1)I don't think I compiled specifically with > > multi-threading because it > > wasn't an option listed in the nmake.opt for > > Microsoft Visual C++ options > > file??? The last I heard multithreading was not > > even on the horizon for > > mapserver and yet I see it in the Unix build options > > file? What do I need > > to do this? > > > > 2)I tried both options you mentioned, I had the > > problem when passed the > > same mapObj from request to request and stored it in > > the session and when I > > set it to null after every request and instantiated > > it and assigned > > attributes based on other variables stored in the > > requests and sessions? > > I'm assuming the latter is preferred? > > > > Thanks, > > Joe Miller > > > > On Mon, 28 Feb 2005 09:44:21 +0100, Umberto > > Nicoletti > > wrote: > > > > >Did you enable threads support? > > >Java, and especially servlets, are definitely > > highly concurrent > > >environment, so you have to enable thread support > > when compiling > > >mapserver and mapscript. One very problematic spot > > with regards to > > >threads is in fact the parser of .map files. > > > > > >Do you attempt to reuse the same mapObj across > > multiple requests or just > > >create one and dispose as soon as you are done > > within a single request? > > > > > >HTH, > > >Umberto > > > > > > > > >On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph > > wrote: > > >> Hi, > > >> I'm having a baffling problem with a nightly > > build of Java Mapscript > > >> from about a month ago that I am running on > > Windows 2000 with Tomcat > > >> 5.5.4. > > >> > > >> The symptom I see is that I can generate the > > default image but after the > > >> fourth or fifth time that I pass a new envelope > > to change the extent of > > >> the image I get the following error: > > >> > > >> The relevant part of the stack trace: > > >> java.lang.UnknownError: Failed to draw layer > > named 'world'. > > >> at > > > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native > > Method) > > >> at > > edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) > > >> > > >> Occasionally I'll get a flex scanner error or > > tomcat will crash with an > > >> Exception_Access_Violation memmove error similar > > to the one referred to > > >> here: > > >> > > > http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa > > >> dID=286832 > > >> > > >> All of this happens whether I instatiate new > > instances of the mapObj and > > >> set everything to null or if I use the same > > mapObj throughout and only > > >> after a few passes, suggesting to me that there > > is a memory issue > > >> somewhere. I can pass on some specific code, but > > all I am really doing > > >> is creating new envelopes to store extents and > > then assigning them to > > >> the mapObj or extracting the corner coordinates > > and setting the extent > > >> with them. > > >> > > >> I've been fighting this for a frustrating week > > now. Does anyone have > > >> any advice? > > >> > > >> Thanks, > > >> Joe Miller > > >-- > > >Umberto Nicoletti > > At that point it > > will > > >+390415701366 unicoletti at prometeo.it > > compile, but segfault, as > > it should.. > > >Prometeo S.R.L. The Software Experience > > > > Umberto, > > > > 1)I don't think I compiled specifically with > > multi-threading because it > > wasn't an option listed in the nmake.opt for > > Microsoft Visual C++ options > > file??? The last I heard multithreading was not > > even on the horizon for > > mapserver and yet I see it in the Unix build options > > file? What do I need > > to do this? > > > > 2)I tried both options you mentioned, I had the > > problem when passed the > > same mapObj from request to request and stored it in > > the session and when I > > set it to null after every request and instantiated > > it and assigned > > attributes based on other variables stored in the > > requests and sessions? > > I'm assuming the latter is preferred? > > > > Thanks, > > Joe Miller > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Sports - Sign up for Fantasy Baseball. > http://baseball.fantasysports.yahoo.com/ > From cdaily at GMAIL.COM Mon Feb 28 08:21:11 2005 From: cdaily at GMAIL.COM (Camden Daily) Date: Mon, 28 Feb 2005 10:21:11 -0600 Subject: Railroad symbol In-Reply-To: <421F84AB.6050108@nacse.org> Message-ID: Dylan, Thanks for the insight. I finally got mine working just the way I wanted, with two lines and 'ties' in between that angle with the railroad. Here's how I'm doing it: LAYER NAME "rail" TYPE LINE STATUS OFF DATA "rail" CLASS STYLE SYMBOL 'rail_line' COLOR 60 60 60 SIZE 1 OFFSET -2 -2 END STYLE SYMBOL 'tie' COLOR 60 60 60 SIZE 9 END STYLE SYMBOL 'rail_line' COLOR 60 60 60 SIZE 1 OFFSET 2 2 END END PROJECTION "init=epsg:4326" END END SYMBOL NAME 'rail_line' TYPE ellipse FILLED true POINTS 1 1 END END SYMBOL NAME 'tie' TYPE TRUETYPE FONT "arial" CHARACTER "I" GAP -10 # force mapserver to angle the symbol END -Camden On Fri, 25 Feb 2005 12:03:55 -0800, Dylan Keon wrote: > Camden Daily wrote: > > Does anyone have a good symbol or set of symbols that they use to draw > > railroads? I'd like the basic two parallel lines with horizontal > > 'ties'. I just can't seem to get it to work right. > > > > Otherwise, does anyone have any in-depth documentation for how to draw > > symbols? The documentation out there seems to be more a set of > > examples rather than an explanation of how mapserver actually > > interprets the data. > > Camden, > > The following will produce a single line with tie marks. Not a > double-parallel line, but it might get you started anyway. > > --Dylan > > In layer definition: > CLASS > NAME 'Active Line' > EXPRESSION /Active/ > STYLE > SYMBOL 'circle' > COLOR 0 0 0 > SIZE 1 > END > OVERLAYSYMBOL 'fence' > OVERLAYCOLOR 0 0 0 > OVERLAYSIZE 7 > END > > In my symbols.sym file: > SYMBOL #12 > NAME "fence" > TYPE TRUETYPE > FONT "arial" > CHARACTER "I" > GAP 10 > END > From frstylrz at JUNO.COM Mon Feb 28 09:13:37 2005 From: frstylrz at JUNO.COM (Lahn Pra) Date: Mon, 28 Feb 2005 11:13:37 -0600 Subject: GDAL for MS4W Message-ID: Hi. I'm a mapserver newbie. I dl'd a precompiled version of mapserver441 from maptools.org. I was wondering if there was some way i could install gdal to work with it. Where exactly could I dl Gdal from and what would I need to do in terms of configuration. Thanks for any help. From bartvde at XS4ALL.NL Mon Feb 28 09:11:12 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 28 Feb 2005 18:11:12 +0100 Subject: GDAL for MS4W In-Reply-To: Message-ID: Hi, download fwtools, that includes gdal and all the utilities associated with it. http://fwtools.maptools.org Best regards, Bart On Mon, 28 Feb 2005 11:13:37 -0600, Lahn Pra wrote: > Hi. I'm a mapserver newbie. I dl'd a precompiled version of mapserver441 > from maptools.org. I was wondering if there was some way i could install > gdal to work with it. Where exactly could I dl Gdal from and what would I > need to do in terms of configuration. Thanks for any help. > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From candrews at DIGITALGLOBE.COM Mon Feb 28 09:29:51 2005 From: candrews at DIGITALGLOBE.COM (Chris Andrews) Date: Mon, 28 Feb 2005 10:29:51 -0700 Subject: Good GIS/Map Portal site? Message-ID: Hey folks, Does anyone know of a good GIS or Map portal site (besides the GOMOOS site in Maine... I've already referenced them). I just need another example to speak about in an article. Preferrably, I'd like some suggestions by tomorrow or Wed at the latest. A portal should be a little more than just a map browser. Thanks! Chris Chris Andrews Director of GIS Solutions Idea Integration Denver, CO -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Feb 28 09:36:52 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 28 Feb 2005 12:36:52 -0500 Subject: Good GIS/Map Portal site? Message-ID: Chris - I don't mean to sound dense, but if you can define "portal" a little better it will be easier for us to help. What exactly are you looking for? "a little more than just a map browser" doesn't tell us much, because it probably includes lots of things you don't want. Thanks! - 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 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Andrews Sent: Monday, February 28, 2005 12:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Hey folks, Does anyone know of a good GIS or Map portal site (besides the GOMOOS site in Maine... I've already referenced them). I just need another example to speak about in an article. Preferrably, I'd like some suggestions by tomorrow or Wed at the latest. A portal should be a little more than just a map browser. Thanks! Chris Chris Andrews Director of GIS Solutions Idea Integration Denver, CO -------------- next part -------------- An HTML attachment was scrubbed... URL: From candrews at DIGITALGLOBE.COM Mon Feb 28 09:46:18 2005 From: candrews at DIGITALGLOBE.COM (Chris Andrews) Date: Mon, 28 Feb 2005 10:46:18 -0700 Subject: Good GIS/Map Portal site? Message-ID: Ed Sorry... good point. And I'm trying to come up with that definition myself as it's quite vague in typical usage. A GIS portal is possibly described as a site that is maintained by a single organization or company that may offer public and internal users access to maps, information, reports, applications, and feedback pertaining to a specific domain or business function. The information and tools accessible to the user may be customized or constrained by role- or user-level access privileges. For example, an airline map-based portal might have four different roles of users: general public, logged in users, frequent flyers, and various levels of internal corporate users. You might have access to flight reservations, a map of your flight history, reports differentiating business vs. personal travel, frequent flyer credit card information, billing information, etc. Right now there are as many opinions of what portals are as there are GIS people out there trying to implement them. I am very interested to see what folks think are good examples of GIS portals and I'm always hoping the open source community has some good leads. Thanks again! Chris ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Monday, February 28, 2005 10:37 AM To: Chris Andrews; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Chris - I don't mean to sound dense, but if you can define "portal" a little better it will be easier for us to help. What exactly are you looking for? "a little more than just a map browser" doesn't tell us much, because it probably includes lots of things you don't want. Thanks! - 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 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Andrews Sent: Monday, February 28, 2005 12:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Hey folks, Does anyone know of a good GIS or Map portal site (besides the GOMOOS site in Maine... I've already referenced them). I just need another example to speak about in an article. Preferrably, I'd like some suggestions by tomorrow or Wed at the latest. A portal should be a little more than just a map browser. Thanks! Chris Chris Andrews Director of GIS Solutions Idea Integration Denver, CO -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Feb 28 10:32:28 2005 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 28 Feb 2005 13:32:28 -0500 Subject: Good GIS/Map Portal site? Message-ID: Chris - Thanks for the clarification! I usually think of a "map portal" as a directory/index/gateway to multiple map sites. It sounds like you're looking for integrated sites that combine maps with other forms of related information. Time to put on my thinking cap (or browsing beanie, I suppose)! - 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 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Andrews Sent: Monday, February 28, 2005 12:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Ed Sorry... good point. And I'm trying to come up with that definition myself as it's quite vague in typical usage. A GIS portal is possibly described as a site that is maintained by a single organization or company that may offer public and internal users access to maps, information, reports, applications, and feedback pertaining to a specific domain or business function. The information and tools accessible to the user may be customized or constrained by role- or user-level access privileges. For example, an airline map-based portal might have four different roles of users: general public, logged in users, frequent flyers, and various levels of internal corporate users. You might have access to flight reservations, a map of your flight history, reports differentiating business vs. personal travel, frequent flyer credit card information, billing information, etc. Right now there are as many opinions of what portals are as there are GIS people out there trying to implement them. I am very interested to see what folks think are good examples of GIS portals and I'm always hoping the open source community has some good leads. Thanks again! Chris ________________________________ From: Ed McNierney [mailto:ed at topozone.com] Sent: Monday, February 28, 2005 10:37 AM To: Chris Andrews; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Chris - I don't mean to sound dense, but if you can define "portal" a little better it will be easier for us to help. What exactly are you looking for? "a little more than just a map browser" doesn't tell us much, because it probably includes lots of things you don't want. Thanks! - 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 ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Andrews Sent: Monday, February 28, 2005 12:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Hey folks, Does anyone know of a good GIS or Map portal site (besides the GOMOOS site in Maine... I've already referenced them). I just need another example to speak about in an article. Preferrably, I'd like some suggestions by tomorrow or Wed at the latest. A portal should be a little more than just a map browser. Thanks! Chris Chris Andrews Director of GIS Solutions Idea Integration Denver, CO -------------- next part -------------- An HTML attachment was scrubbed... URL: From Richard_D_Levine at RAYTHEON.COM Mon Feb 28 10:44:37 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Mon, 28 Feb 2005 13:44:37 -0500 Subject: Good GIS/Map Portal site? Message-ID: This from the mapserver homepage: http://www.dnr.state.mn.us/maps/compass.html A few clicks from the homepage: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml hth Rick Ed McNierney To: MAPSERVER-USERS at LISTS.UMN.EDU Sent by: UMN cc: MapServer Users List Subject: Re: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? 02/28/2005 01:32 PM Please respond to Ed McNierney Chris - Thanks for the clarification! I usually think of a "map portal" as a directory/index/gateway to multiple map sites. It sounds like you're looking for integrated sites that combine maps with other forms of related information. Time to put on my thinking cap (or browsing beanie, I suppose)! - 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 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Andrews Sent: Monday, February 28, 2005 12:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Ed Sorry... good point. And I'm trying to come up with that definition myself as it's quite vague in typical usage. A GIS portal is possibly described as a site that is maintained by a single organization or company that may offer public and internal users access to maps, information, reports, applications, and feedback pertaining to a specific domain or business function. The information and tools accessible to the user may be customized or constrained by role- or user-level access privileges. For example, an airline map-based portal might have four different roles of users: general public, logged in users, frequent flyers, and various levels of internal corporate users. You might have access to flight reservations, a map of your flight history, reports differentiating business vs. personal travel, frequent flyer credit card information, billing information, etc. Right now there are as many opinions of what portals are as there are GIS people out there trying to implement them. I am very interested to see what folks think are good examples of GIS portals and I?m always hoping the open source community has some good leads. Thanks again! Chris From: Ed McNierney [mailto:ed at topozone.com] Sent: Monday, February 28, 2005 10:37 AM To: Chris Andrews; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Chris - I don't mean to sound dense, but if you can define "portal" a little better it will be easier for us to help. What exactly are you looking for? "a little more than just a map browser" doesn't tell us much, because it probably includes lots of things you don't want. Thanks! - 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 From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Chris Andrews Sent: Monday, February 28, 2005 12:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Hey folks, Does anyone know of a good GIS or Map portal site (besides the GOMOOS site in Maine... I've already referenced them). I just need another example to speak about in an article. Preferrably, I'd like some suggestions by tomorrow or Wed at the latest. A portal should be a little more than just a map browser. Thanks! Chris Chris Andrews Director of GIS Solutions Idea Integration Denver, CO From frstylrz at JUNO.COM Mon Feb 28 12:25:28 2005 From: frstylrz at JUNO.COM (Lahn Pra) Date: Mon, 28 Feb 2005 14:25:28 -0600 Subject: Setting up GMAP for MS4W Message-ID: Hi.. I'm a bit confused as to how to set up GMAP_ms4w for a precompiled version of MS4W that I installed. I got the MS4W(4.4.1) and GMAP from maptools.org. I read the GMAP installations. I extracted into the root and created a c:\tmp\ms_tmp folder like it asked. Next, it says to create an alias in the Apache configuration. I'm new to MapServers (Web Servers in general) and not too familiar as to what this means. I'm assuming that I am supposed to insert an 'Alias' pointing to the ms_tmp file.."?" into the c:\ms4w\httpd.d -httpd_gmap.conf file? or the c:\apache\conf -httpd.conf file? I've tried both. Changes in the httpd.conf file resulted in errors. The Mapserver ended up loading pages with missing images. My 'httpd_gmap.conf' file looks like this... Alias /gmap/ "/ms4w/apps/gmap/htdocs/" Alias /gmap/ "/ms4w/tmp/ms_tmp" I made the changes and restarted the apache server. It doesn't work. In addition.. when I do try to access the Gmap link, I get the following error.. --- Warning: dl(): Unable to load dynamic library '/ms4w/Apache/php/extensions/php_mapscript_36.dll' - The specified module could not be found. in C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line 50 Fatal error: Call to undefined function: ms_getversion() in C:\ms4w\apps\gmap\htdocs\gmap75.php3 on line 51 ---- I think I may be doing this entirely wrong. If someone can help, tha'd be great. Thanks. From ealpert at DIGITALGLOBE.COM Mon Feb 28 12:25:48 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 28 Feb 2005 13:25:48 -0700 Subject: Good GIS/Map Portal site? Message-ID: http://www2.dmsolutions.on.ca/gmap/gmap75.phtml This link crashes my browser :/ From roberto.bianconi at GMAIL.COM Mon Feb 28 12:30:53 2005 From: roberto.bianconi at GMAIL.COM (Roberto Bianconi) Date: Mon, 28 Feb 2005 21:30:53 +0100 Subject: Query with dates in Message-ID: Hi, I have a shp file where data in the dbf associated are rows like this (field names in first row): CODE, BEGIN, END, VALUE A1, 2002-10-03T09:30:00, 2002-10-04T09:30:00, 60. A2, 2002-10-03T09:30:00, 2002-10-05T09:30:00, 60. Everything works if I just retrieve CODEs with: CLASS SYMBOL "cross" EXPRESSION ([VALUE] > 50. and [VALUE] <= 75.) COLOR 70 255 0 OUTLINECOLOR 0 0 0 END However, if I query on dates too, then nothing is retrieved: CLASS SYMBOL "cross" EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and [BEGIN] < '2002-10-06T18:00:00') COLOR 70 255 0 OUTLINECOLOR 0 0 0 END I've also tried the '2002-10-06 09:30' format, but no way... Thanks for any comment... Roberto From Richard_D_Levine at RAYTHEON.COM Mon Feb 28 12:32:32 2005 From: Richard_D_Levine at RAYTHEON.COM (Rick Levine) Date: Mon, 28 Feb 2005 15:32:32 -0500 Subject: Good GIS/Map Portal site? Message-ID: Hmmm. It worked in IE. I then tried Firefox and it didn't crash, but thought I need to install a JRE to display the map. What are you running? --Rick "Ethan Alpert" , lobe.com> cc: Subject: RE: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? 02/28/2005 03:25 PM http://www2.dmsolutions.on.ca/gmap/gmap75.phtml This link crashes my browser :/ From bartvde at XS4ALL.NL Mon Feb 28 12:31:11 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 28 Feb 2005 21:31:11 +0100 Subject: Setting up GMAP for MS4W In-Reply-To: Message-ID: Hi, first of all, it would be better to ask this question on the MS4W list. Fast answer, to install an MS4W application you have to do: -place the application specific conf file in the /ms4w/httpd.d directory -place the application specific pkg.html file in the /ms4w/apache/htdocs directory -place the application in /ms4w/apps/ -restart Apache If you have downloaded MS4W, you don't need to setup any aliases in Apache conf files. It is preconfigured. Btw never use the same name for an alias as in your example, Apache does not like that. The problem is that the MS4W GMap application is a bit outdated (2003!), there was an update on this to work with Mapserver/Mapscript 4, but not as an MS4W package, see gmap-ms40.zip on: http://dl.maptools.org/dl/ Hope this gets you started, if not please continue on the MS4W list. Best regards, Bart On Mon, 28 Feb 2005 14:25:28 -0600, Lahn Pra wrote: > Hi.. I'm a bit confused as to how to set up GMAP_ms4w for a precompiled > version of MS4W that I installed. I got the MS4W(4.4.1) and GMAP from > maptools.org. I read the GMAP installations. I extracted into the root > and > created a c:\tmp\ms_tmp folder like it asked. Next, it says to create an > alias in the Apache configuration. I'm new to MapServers (Web Servers in > general) and not too familiar as to what this means. I'm assuming that I > am > supposed to insert an 'Alias' pointing to the ms_tmp file.."?" into the > c:\ms4w\httpd.d -httpd_gmap.conf file? or the c:\apache\conf -httpd.conf > file? > > I've tried both. Changes in the httpd.conf file resulted in errors. The > Mapserver ended up loading pages with missing images. My > 'httpd_gmap.conf' > file looks like this... > > Alias /gmap/ "/ms4w/apps/gmap/htdocs/" > Alias /gmap/ "/ms4w/tmp/ms_tmp" > > I made the changes and restarted the apache server. It doesn't work. In > addition.. when I do try to access the Gmap link, I get the following > error.. > --- > Warning: dl(): Unable to load dynamic > library '/ms4w/Apache/php/extensions/php_mapscript_36.dll' - The > specified > module could not be found. in C:\ms4w\apps\gmap\htdocs\gmap75.phtml on > line > 50 > > Fatal error: Call to undefined function: ms_getversion() in > C:\ms4w\apps\gmap\htdocs\gmap75.php3 on line 51 > ---- > > I think I may be doing this entirely wrong. If someone can help, tha'd be > great. Thanks. > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Mon Feb 28 12:36:12 2005 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 28 Feb 2005 21:36:12 +0100 Subject: Good GIS/Map Portal site? In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB160453B084@COMAIL01.digitalglobe.com> Message-ID: Hi Chris, what about the Atlas of Canada? http://atlas.gc.ca/site/english/index.html Best regards, Bart On Mon, 28 Feb 2005 10:29:51 -0700, Chris Andrews wrote: > Hey folks, > > Does anyone know of a good GIS or Map portal site (besides the GOMOOS > site in Maine... I've already referenced them). I just need another > example to speak about in an article. Preferrably, I'd like some > suggestions by tomorrow or Wed at the latest. > A portal should be a little more than just a map browser. > > Thanks! > Chris > > > Chris Andrews > Director of GIS Solutions > Idea Integration > Denver, CO > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From fwarmerdam at GMAIL.COM Mon Feb 28 12:40:53 2005 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 28 Feb 2005 15:40:53 -0500 Subject: Query with dates in In-Reply-To: <29879c6d05022812307b07a52a@mail.gmail.com> Message-ID: On Mon, 28 Feb 2005 21:30:53 +0100, Roberto Bianconi wrote: > Hi, > > I have a shp file where data in the dbf associated are rows like this > (field names in first row): > > CODE, BEGIN, END, VALUE > A1, 2002-10-03T09:30:00, 2002-10-04T09:30:00, 60. > A2, 2002-10-03T09:30:00, 2002-10-05T09:30:00, 60. > > Everything works if I just retrieve CODEs with: > > CLASS > SYMBOL "cross" > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75.) > COLOR 70 255 0 > OUTLINECOLOR 0 0 0 > END > > However, if I query on dates too, then nothing is retrieved: > > CLASS > SYMBOL "cross" > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and [BEGIN] < > '2002-10-06T18:00:00') > COLOR 70 255 0 > OUTLINECOLOR 0 0 0 > END > > I've also tried the '2002-10-06 09:30' format, but no way... Roberto, Steve would know better, but aren't expressions just evaluated as simple arithmetic comparisons when you use < or >? Wouldn't '2002-10-06T18:00:00' just evaluate to the number 2002? In which case only records from before 2002 would be returned. If you want smart date handling I think you need to accomplish it somehow else. I could be wrong about the issue of course. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From ealpert at DIGITALGLOBE.COM Mon Feb 28 12:48:32 2005 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 28 Feb 2005 13:48:32 -0700 Subject: Good GIS/Map Portal site? Message-ID: I'm running IE, the next time I tried it worked so something on an earlier sight must have borked my JRE requiring a restart. -e -----Original Message----- From: Richard_D_Levine at raytheon.com [mailto:Richard_D_Levine at raytheon.com] Sent: Monday, February 28, 2005 1:33 PM To: Ethan Alpert Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? Hmmm. It worked in IE. I then tried Firefox and it didn't crash, but thought I need to install a JRE to display the map. What are you running? --Rick "Ethan Alpert" , lobe.com> cc: Subject: RE: [UMN_MAPSERVER-USERS] Good GIS/Map Portal site? 02/28/2005 03:25 PM http://www2.dmsolutions.on.ca/gmap/gmap75.phtml This link crashes my browser :/ From alba75 at YAHOO.COM Mon Feb 28 12:50:15 2005 From: alba75 at YAHOO.COM (Dott. Stefano Albanese) Date: Mon, 28 Feb 2005 12:50:15 -0800 Subject: Please Help me....How use a combo box to query a shp file and zoom to selected element Message-ID: Hi everybody, hi hope u can help me in solving my troubles. I'd like to add to my html file (where map is shown) a combo box storing names of a column in dbf file and to add the function of zooming to selected elements clicking on a "go button". I know it has to be an easy procedure for expert users, but i'm new user so it would be nice from u if u want to help me. I tryed some demos i found on the net but i wasn't able to solve. So could u help me replying with some comments on how i can make this? I will post u my codes, so that u can easily give me your solution to my problem. I used to compile project the avein plugin for arcview. The map shows a poligon theme where each poligon corrispond to the boundaries of towns (comuni) in an italian region. I would be able to search each town just clicking on its name in he combobox and to see the poligon zoomed and highlighted in red. The shape file used is called "campanianew.shp" Anyways if u want help me i can send to u a zip file with complete project. Thanx in advance. NB. I posted this request few hours ago. U can read there also contents of files i used. Dott. Geol. Stefano Albanese Via S. Giacomo 6 83022 Baiano (AV) Italia Tel.: +390818243143 +393471982279 --------------------------------- Do you Yahoo!? Yahoo! Mail - Find what you need with new enhanced search. Learn more. -------------- next part -------------- An HTML attachment was scrubbed... URL: From roberto.bianconi at GMAIL.COM Mon Feb 28 12:52:26 2005 From: roberto.bianconi at GMAIL.COM (Roberto Bianconi) Date: Mon, 28 Feb 2005 21:52:26 +0100 Subject: Query with dates in In-Reply-To: <931f8ea9050228124062cfa1f0@mail.gmail.com> Message-ID: Hi Frank, I've now tried this: CLASS # 1 SYMBOL "cross" EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and [BEGIN] < 3000) COLOR 70 255 0 OUTLINECOLOR 0 0 0 END and this: CLASS # 1 SYMBOL "cross" EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and [BEGIN] lt '3000') COLOR 70 255 0 OUTLINECOLOR 0 0 0 END but stilI I don't get anything. On Mon, 28 Feb 2005 15:40:53 -0500, Frank Warmerdam wrote: > On Mon, 28 Feb 2005 21:30:53 +0100, Roberto Bianconi > wrote: > > Hi, > > > > I have a shp file where data in the dbf associated are rows like this > > (field names in first row): > > > > CODE, BEGIN, END, VALUE > > A1, 2002-10-03T09:30:00, 2002-10-04T09:30:00, 60. > > A2, 2002-10-03T09:30:00, 2002-10-05T09:30:00, 60. > > > > Everything works if I just retrieve CODEs with: > > > > CLASS > > SYMBOL "cross" > > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75.) > > COLOR 70 255 0 > > OUTLINECOLOR 0 0 0 > > END > > > > However, if I query on dates too, then nothing is retrieved: > > > > CLASS > > SYMBOL "cross" > > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and [BEGIN] < > > '2002-10-06T18:00:00') > > COLOR 70 255 0 > > OUTLINECOLOR 0 0 0 > > END > > > > I've also tried the '2002-10-06 09:30' format, but no way... > > Roberto, > > Steve would know better, but aren't expressions just evaluated as simple > arithmetic comparisons when you use < or >? Wouldn't > '2002-10-06T18:00:00' just evaluate to the number 2002? In > which case only records from before 2002 would be returned. > > If you want smart date handling I think you need to accomplish > it somehow else. I could be wrong about the issue of course. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From assefa at DMSOLUTIONS.CA Mon Feb 28 12:52:30 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 28 Feb 2005 12:52:30 -0800 Subject: Query with dates in In-Reply-To: <29879c6d05022812307b07a52a@mail.gmail.com> Message-ID: To be able to do "real" time comparison, you need to enclose the field and the value between backtics (something like (`[time_field]` eq `2004-10-12`) should work. I think most of the common operators (if not all) should work with time values. Later, Roberto Bianconi wrote: >Hi, > >I have a shp file where data in the dbf associated are rows like this >(field names in first row): > >CODE, BEGIN, END, VALUE >A1, 2002-10-03T09:30:00, 2002-10-04T09:30:00, 60. >A2, 2002-10-03T09:30:00, 2002-10-05T09:30:00, 60. > >Everything works if I just retrieve CODEs with: > >CLASS > SYMBOL "cross" > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75.) > COLOR 70 255 0 > OUTLINECOLOR 0 0 0 > END > >However, if I query on dates too, then nothing is retrieved: > >CLASS > SYMBOL "cross" > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and [BEGIN] < >'2002-10-06T18:00:00') > COLOR 70 255 0 > OUTLINECOLOR 0 0 0 > END > >I've also tried the '2002-10-06 09:30' format, but no way... > >Thanks for any comment... >Roberto > > > From roberto.bianconi at GMAIL.COM Mon Feb 28 13:07:56 2005 From: roberto.bianconi at GMAIL.COM (Roberto Bianconi) Date: Mon, 28 Feb 2005 22:07:56 +0100 Subject: Query with dates in In-Reply-To: <4223848E.4070703@dmsolutions.ca> Message-ID: Thanks, it works as you suggested, both with: CLASS # 1 SYMBOL "cross" EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and `[BEGIN]` < `2002-10-05T06:00:00`) COLOR 70 255 0 OUTLINECOLOR 0 0 0 END and: CLASS # 1 SYMBOL "cross" EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and `[BEGIN]` lt `2002-10-05T06:00:00`) COLOR 70 255 0 OUTLINECOLOR 0 0 0 END By the way, if the date is not in ISO format (http://wwp.greenwichmeantime.com/info/iso.htm), it does not work: CLASS # 1 SYMBOL "cross" EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and `[BEGIN]` lt `05-10-2002 06:00`) COLOR 70 255 0 OUTLINECOLOR 0 0 0 END Thanks a lot, Roberto On Mon, 28 Feb 2005 12:52:30 -0800, Yewondwossen Assefa wrote: > To be able to do "real" time comparison, you need to enclose the field > and the value between backtics (something like (`[time_field]` eq > `2004-10-12`) should work. I think most of the common operators (if not > all) should work with time values. > > Later, > > Roberto Bianconi wrote: > > >Hi, > > > >I have a shp file where data in the dbf associated are rows like this > >(field names in first row): > > > >CODE, BEGIN, END, VALUE > >A1, 2002-10-03T09:30:00, 2002-10-04T09:30:00, 60. > >A2, 2002-10-03T09:30:00, 2002-10-05T09:30:00, 60. > > > >Everything works if I just retrieve CODEs with: > > > >CLASS > > SYMBOL "cross" > > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75.) > > COLOR 70 255 0 > > OUTLINECOLOR 0 0 0 > > END > > > >However, if I query on dates too, then nothing is retrieved: > > > >CLASS > > SYMBOL "cross" > > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and [BEGIN] < > >'2002-10-06T18:00:00') > > COLOR 70 255 0 > > OUTLINECOLOR 0 0 0 > > END > > > >I've also tried the '2002-10-06 09:30' format, but no way... > > > >Thanks for any comment... > >Roberto > > > > > > > > From assefa at DMSOLUTIONS.CA Mon Feb 28 13:38:56 2005 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Mon, 28 Feb 2005 16:38:56 -0500 Subject: Query with dates in In-Reply-To: <29879c6d050228130731bc85c@mail.gmail.com> Message-ID: >By the way, if the date is not in ISO format >(http://wwp.greenwichmeantime.com/info/iso.htm), it does not work: > > CLASS > # 1 > SYMBOL "cross" > EXPRESSION ([VALUE] > 50. and [VALUE] <= 75. and `[BEGIN]` >lt `05-10-2002 06:00`) > COLOR 70 255 0 > OUTLINECOLOR 0 0 0 > END > > > Not all time patterns are no supported, you can see the patterns supported in this doc (Table 1 time patterns) : http://mapserver.gis.umn.edu/doc44/wms-time-support-howto.html From aquiney at REFRACTIONS.NET Mon Feb 28 13:34:59 2005 From: aquiney at REFRACTIONS.NET (Adam Quiney) Date: Mon, 28 Feb 2005 13:34:59 -0800 Subject: Mapserver and SLDs Message-ID: Hello all, I'm working on an application that (in part) dynamically generates SLDs, then publishes these SLDs through a Java servlet. I've enjoyed reasonable success so far, but have hit a glitch when trying to test against this specific server: (http://wms1.agr.gc.ca/cgi-bin/mapeco). Our application works by allowing the user to specify styling information, then publishing this information as an SLD document, through a Java Servlet. This technique has worked with all of the servers so far, though with your server, I seem to run into problems with the fact that I am using a Servlet to publish this information. I have checked to make sure that the servlet is reachable from the outside web, and that the SLD document being generated is indeed correctly formed and valid to the SLD 1.0.0 specification. In order to ensure that the error is not occuring due to a clash of layer stylings (or something else along those lines), I have changed the SLD generating servlet to simply return the same string everytime it is called - this string provides valid styling (in the form of a complete SLD document) for the "ecodistricts" layer made available by this server. When I attempt to pass the URL to this servlet in the query string to the server, the layer is not styled according to the SLD document. The full URL I am using is: http://wms1.agr.gc.ca/cgi-bin/ mapeco?VERSION=1.1.1&REQUEST=GetMap&LAYERS=ecodistricts&STYLES=&SLD=htt p://office.refractions.net:9999/imf-ows/ SLDGenerator&SRS=EPSG%3A4269&BBOX=-138.0,45.438244853737814,- 114.0,63.561755146262186&WIDTH=923&HEIGHT=697&FORMAT=image/ png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage& The interesting thing is, when I copy the output from my servlet, and paste and save it into a web-accessible file (with either the extension .sld or .xml), I can provide the URL to this file in my request (instead of the URL to the servlet), and the layer is returned, styled according to the SLD document. I have not encountered this problem in any other case. To see the layer being styled correctly, use this URL: http://wms1.agr.gc.ca/cgi-bin/ mapeco?VERSION=1.1.1&REQUEST=GetMap&LAYERS=ecodistricts&STYLES=&SLD=htt p://office.refractions.net/~aquiney/ popplace.xml&SRS=EPSG%3A4269&BBOX=-138.0,45.438244853737814,- 114.0,63.561755146262186&WIDTH=923&HEIGHT=697&FORMAT=image/ png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage& The xml file can be viewed here: http://office.refractions.net/~aquiney/popplace.xml You can view the output generated by the servlet here: http://office.refractions.net:9999/imf-ows/SLDGenerator Is it possible to somehow configure mapserver in a manner that would prevent the passing of an SLD document this way? Has anyone else ever encountered this problem? Thanks a lot, --Adam -- Adam Quiney Analyst Refractions Research Inc. From uli.mueller at GMX.CH Mon Feb 28 14:36:19 2005 From: uli.mueller at GMX.CH (uli mueller [geOps]) Date: Mon, 28 Feb 2005 23:36:19 +0100 Subject: WMS TIME conflict with FILTER Message-ID: Hi I finally got some nice WMS with time support running. Now I fell into the problem that any time filter seems to override everything in the PostGIS layer's FILTER setting. I had read most of http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=872 so I understand that WMS time support is done (mis)using the FILTER parameter. However it would be preferrable if any existing FILTER could persist. Why not combine an existing filter and a WMS time filter through SQL-AND? Uli -- geOps GeoInformatics D-79100 Freiburg From Tom.Kralidis at EC.GC.CA Mon Feb 28 15:06:27 2005 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 28 Feb 2005 18:06:27 -0500 Subject: Mapserver and SLDs Message-ID: Hi, Maybe it's a port thing? i.e. the mapeco WMS has to connection to port 9999 for the SLD. Some orgs have these locked down. You may want to check with the contact for this WMS. ..Tom ========================= Tom Kralidis Senior Systems Scientist Environment Canada Tel: +01-905-336-4409 http://www.ec.gc.ca/ > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Adam Quiney > Sent: Monday, 28 February, 2005 16:35 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver and SLDs > > > Hello all, > > I'm working on an application that (in part) dynamically > generates SLDs, then publishes these SLDs through a Java > servlet. I've enjoyed reasonable success so far, but have > hit a glitch when trying to test against this specific > server: (http://wms1.agr.gc.ca/cgi-bin/mapeco). > > Our application works by allowing the user to specify styling > information, then publishing this information as an SLD > document, through a Java Servlet. This technique has worked > with all of the servers so far, though with your server, I > seem to run into problems > with the fact that I am using a Servlet to publish this > information. I > have checked to make sure that the servlet is reachable from > the outside web, and that the SLD document being generated is > indeed correctly formed and valid to the SLD 1.0.0 > specification. In order to ensure that the error is not > occuring due to a clash of layer stylings (or something else > along those lines), I have changed the SLD generating servlet > to simply return the same string everytime it is called - > this string provides valid styling (in the form of a > complete SLD document) for the "ecodistricts" layer made > available by this server. When I attempt to pass the URL to > this servlet in the query string to the server, the layer is > not styled according to the SLD document. The full URL I am > using is: > > http://wms1.agr.gc.ca/cgi-bin/ > mapeco?VERSION=1.1.1&REQUEST=GetMap&LAYERS=ecodistricts&STYLES > =&SLD=htt > p://office.refractions.net:9999/imf-ows/ > SLDGenerator&SRS=EPSG%3A4269&BBOX=-138.0,45.438244853737814,- > 114.0,63.561755146262186&WIDTH=923&HEIGHT=697&FORMAT=image/ > png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage& > > The interesting thing is, when I copy the output from my > servlet, and paste and save it into a web-accessible file > (with either the extension .sld or .xml), I can provide the > URL to this file in my request (instead of the URL to the > servlet), and the layer is returned, styled according to the > SLD document. I have not encountered this problem in any > other case. To see the layer being styled correctly, use this URL: > > http://wms1.agr.gc.ca/cgi-bin/ > mapeco?VERSION=1.1.1&REQUEST=GetMap&LAYERS=ecodistricts&STYLES > =&SLD=htt > p://office.refractions.net/~aquiney/ > popplace.xml&SRS=EPSG%3A4269&BBOX=-138.0,45.438244853737814,- > 114.0,63.561755146262186&WIDTH=923&HEIGHT=697&FORMAT=image/ > png&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage& > > The xml file can be viewed here: > > http://office.refractions.net/~aquiney/popplace.xml > > You can view the output generated by the servlet here: > > http://office.refractions.net:9999/imf-ows/SLDGenerator > > > Is it possible to somehow configure mapserver in a manner > that would prevent the passing of an SLD document this way? > Has anyone else ever encountered this problem? > > Thanks a lot, > > --Adam > > -- > > Adam Quiney > Analyst > Refractions Research Inc. > From wouter.schaubroeck at GMAIL.COM Mon Feb 28 15:57:08 2005 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Tue, 1 Mar 2005 00:57:08 +0100 Subject: OT: Why isn't PHP in Interactive Web Mapping Message-ID: Hi all, I know, it's a bit off topic, but i thought it would be an interesting discussion: Nowadays, for Interactive web mapping, ASP, Coldfusion and Java Servlets are common used as CGI replacement, but why is PHP not? I don't have to convince you all about the powers of php... Is there a reason why php is left behind? Is it perhaps it's open source and it depends on the goodwill of volunteers? Or is Microsoft using its powers? Or Macromedia (Coldfusion)? grtz Wouter Schaubroeck Student at the Ghent University From bpicinbono at WORLDONLINE.FR Mon Feb 28 12:42:13 2005 From: bpicinbono at WORLDONLINE.FR (blaise) Date: Mon, 28 Feb 2005 21:42:13 +0100 Subject: Good GIS/Map Portal site? In-Reply-To: Message-ID: hum, same old story with java virtual machines... ? works with mozilla 1.7.2 with Java(TM) Plug-in 1.5.0_01-b08 on linux box blaise > Hmmm. It worked in IE. I then tried Firefox and it didn't crash, but > thought I need to install a JRE to display the map. What are you running? > --Rick > > > http://www2.dmsolutions.on.ca/gmap/gmap75.phtml > > This link crashes my browser :/ From numerous at GMAIL.COM Mon Feb 28 17:03:42 2005 From: numerous at GMAIL.COM (Yar Doroshenko) Date: Mon, 28 Feb 2005 19:03:42 -0600 Subject: dealing with a large number of layers Message-ID: Hi Guys, I need a piece of advice: I have around 60 shapefiles with Oklahoma county roads (1 shapefile per county). What is the most efficient way to load them in Mapserver? I obviously don't want to define 60 layers. Should I maybe put them into MySQL and load only several shapefiles at a time depending on my XY coordinates and zoom level? If yes, what is the best practice of passing arguments to the mapserver? Would anyone have an example that I could look at? Feel free to e-mail me directly. Thank you very much!!! Yar From woodbri at SWOODBRIDGE.COM Mon Feb 28 17:15:37 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 28 Feb 2005 20:15:37 -0500 Subject: dealing with a large number of layers In-Reply-To: Message-ID: Yar, This was just explained over the last few days in the discussion on how to use TILEINDEXs for shapefiles. Please check the archive for the last few days. -Steve Yar Doroshenko wrote: > Hi Guys, > > I need a piece of advice: > > I have around 60 shapefiles with Oklahoma county roads (1 shapefile per > county). What is the most efficient way to load them in Mapserver? I > obviously don't want to define 60 layers. Should I maybe put them into > MySQL and load only several shapefiles at a time depending on my XY > coordinates and zoom level? If yes, what is the best practice of passing > arguments to the mapserver? Would anyone have an example that I could look > at? > > Feel free to e-mail me directly. > > Thank you very much!!! > > > Yar > From hermawan_s at HOTMAIL.COM Mon Feb 28 17:31:26 2005 From: hermawan_s at HOTMAIL.COM (Hermawan Sutantio) Date: Tue, 1 Mar 2005 01:31:26 +0000 Subject: Tiger Line Data In-Reply-To: <42228CCB.1040001@swoodbridge.com> Message-ID: Hi all. I might need some more help. Based on the recommendation that Stephen gave, I tried to compile 2 counties in michigan using the commands recommended. Below is the michigan.map file that i generated. Please help me review them whether anything is wrong. Thanks. FONTSET "C:\MS4W\apps\maplab-2.2\tutorial\etc\fonts.list" # # Start of map file # NAME Michigan STATUS ON SIZE 500 500 UNITS DD EXTENT -84.133748 42.072069 -83.539394 42.4345936 SHAPEPATH "C:\cygwin\hcslmap\data\tiger" IMAGECOLOR 255 255 255 # # Start of web interface definition # WEB # # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root # of the drive where the .MAP file resides. # IMAGEPATH "C/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" # LOG "/tmp/gmap.log" TEMPLATE demo.html METADATA "TITLE" "Michigan Test Demo" END END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS OFF END # # Start of scalebar # SCALEBAR IMAGECOLOR 255 255 255 LABEL COLOR 0 0 0 SIZE SMALL END SIZE 150 4 COLOR 255 255 255 BACKGROUNDCOLOR 0 0 0 OUTLINECOLOR 0 0 0 UNITS miles INTERVALS 3 STATUS ON END # # Querymap settings # # Style is one of NORMAL, HILITE, or SELECTED # QUERYMAP STYLE HILITE COLOR 255 0 0 END # # Start of layer definitions # LAYER NAME Street_Map TYPE LINE STATUS ON TILEINDEX "C:\cygwin\hcslmap\data\tiger\mich-tile.shp" CLASS NAME "Street_Map" END END # Layer END #map Herman Teo wrote: >Hi Stephen, > >Thanks for the tip. I'm now scouring through the previous list >messages for 'tile' commands. There is not much of that going on. Is >there a sample code where I might be able to learn how I should >proceed with shape tiling and a sniff of a LAYER...END code in the >map file. Also, is any of these tiger line on sale somewhere so that >I might not have to download 300k files as you said. Thanks a lot. Herman, There are two different tiling commands: 1) tile4ms which is distributed as part of the mapserver source and is documented on the mapserver utilities page of the website. It is used to tiling shapefiles. The easiest way to use it is to putt all the data you want to tile in a directory tree located in your SHAPEPATH directory. Then on Linux do something like: find data_dir -name "*.shp" > data_dir.in tile4ms data_dir.in data-tile shptree data-tile cat data_dir.in | xargs -n 1 shptree Then in your mapfile do something like: LAYER NAME "my tile data" TYPE whatever TILEINDEX data-tile ... CLASS ... END END One of the caveats of this is that all the shapefiles in the index MUST have the SAME attributes and order of attributes and they must be all the same type. 2) For tiling images you should use gdaltindex which is distributed as part of the gdal libraries and tools. The concept is similar to the above and I documented it on the wiki at http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO in the Bathymetry and Topography HowTo link and others have added a lot more info there. From rati at POST.COM Mon Feb 28 18:17:41 2005 From: rati at POST.COM (David Ratcliffe) Date: Mon, 28 Feb 2005 20:17:41 -0600 Subject: Problem with Mapserver 4.4.1 compiled with Visual Studio .NET Message-ID: This post is more of a report than a question, as I seem to have solved the problem. I?ve recently been trying to get Mapserver version 4 .4.1 up and running with Tomcat 5. I started off by using the latest versions of the Win32 binaries as linked from the Mapserver website. On nearly every occasion (once a query string was passed), mapserv.exe terminated with the error: The instruction at '0x77f88216' referenced memory at '0x00000010'. The memory could not be "written". I then tried compiling the version 4.4.1 source using Visual Studio .NET. I encountered exactly the same problem. Debugging mapserv.exe usually brought me to a call to 'rewind' in the function 'int msAddImageSymbol(symbolSetObj *symbolset, char *filename)', defined within mapsymbol.c on line 488 (of version 4.4.1 of the source). However, surely the problem can?t be there... I can?t see a problem with the code at that location. I believe it is more likely that there is a problem with Visual Studio .NET 2003, because when I tried again, compiling everything with Visual Studio (NOT the .NET version), everything worked first time without any problems. Have the Win32 binaries linked from the Mapserver website been compiled using Visual Studio .NET? They?re simply not working on my system. Here?s my setup: OS: Windows XP Professional with SP2 Web Server: Apache Tomcat/5.0.28 Mapserver Version: 4.4.1 (Source with only the required libs) DE: Microsoft Visual Studio 6 (previously Microsoft Visual Studio .NET 2003) -David From rati at POST.COM Mon Feb 28 18:22:05 2005 From: rati at POST.COM (David Ratcliffe) Date: Mon, 28 Feb 2005 20:22:05 -0600 Subject: Itasca 3.5 Demo Error on Mapserver 4.4.1 Message-ID: Thank you Ken, using the binaries from the site you suggested did the trick. Mapserver is now working on my system. However, I might have found a reason as to why we were getting that error. I refer you to my latest post (Tues 1 March EST), "Problem with Mapserver 4.4.1 compiled with Visual Studio .NET" Basically, I think the source (for 4.4.1 at least) doesn't like to be compiled using Visual Studio .NET. I tried using Visual Studio 6 (NOT .NET) and it all worked. Since we got the same errors from the binaries from the Mapserver website, I think they might have been compiled using Visual Studio .NET as well. I hope this information saves others from having to deal with this problem... -David From miller_joseph at BAH.COM Mon Feb 28 19:41:40 2005 From: miller_joseph at BAH.COM (Miller Joseph) Date: Mon, 28 Feb 2005 22:41:40 -0500 Subject: Java MapScript issues Servlet Message-ID: To All, Umberto and Mario are correct about the problems I've had. They are definitely related to the lack of thread safety in my mapscript.dll that I built using MS Visual C tools. Can anyone tell me why I don't have the option to turn on thread safety in nmake.opt (unlike in *Nix flavors of the build option files)? Was it an oversight, future feature or excluded because it is included by default whenever mapserver is built in Windows and there is no need to turn it off? Thanks, Joe Miller ________________________________ From: UMN MapServer Users List on behalf of Umberto Nicoletti Sent: Mon 2/28/2005 10:31 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Java MapScript issues Servlet Quoting "Mario H. Basa" : > Hi. > > >From my experience, Java Mapscript still has some > problems with threads, and can still easily bring down > Tomcat even with the thread compile option is set. > Please correct me if I am wrong. > Yes, that is probably correct, although it is not *that easy*. I have also stressed mapscript with jmeter and actually not found errors, but I did not cover querying. That is why I voted for improved thread safety when the devs showed their wishlists. > What I did was I synchronized the class that does the > map processing, and now my test app can survive > benchmarking with JMeter. Here are my results as > compared with a simillar PHP CGI program: > This is definitely a correct workaround. > 4 threads (requests) per second, repeated 25 times > > PHP Mapscript 1.8 to 1.9 pages per second > Java Mapscript 2.3 to 2.5 pages per second > > I was honestly surprised with the result and it is > encouraging me to work with Java Mapscript even in a > synchronized mode. > Were you using apache 1.3 or 2.x in the php tests? Apache 1.3 uses a fork based model, that while being extremely safe and sound is not as fast as a threaded model. Apache 2.x has threads and should be faster. Regards, Umberto > mario > yokohama,japan > > > --- Joseph Miller wrote: > > > Umberto, > > > > 1)I don't think I compiled specifically with > > multi-threading because it > > wasn't an option listed in the nmake.opt for > > Microsoft Visual C++ options > > file??? The last I heard multithreading was not > > even on the horizon for > > mapserver and yet I see it in the Unix build options > > file? What do I need > > to do this? > > > > 2)I tried both options you mentioned, I had the > > problem when passed the > > same mapObj from request to request and stored it in > > the session and when I > > set it to null after every request and instantiated > > it and assigned > > attributes based on other variables stored in the > > requests and sessions? > > I'm assuming the latter is preferred? > > > > Thanks, > > Joe Miller > > > > On Mon, 28 Feb 2005 09:44:21 +0100, Umberto > > Nicoletti > > wrote: > > > > >Did you enable threads support? > > >Java, and especially servlets, are definitely > > highly concurrent > > >environment, so you have to enable thread support > > when compiling > > >mapserver and mapscript. One very problematic spot > > with regards to > > >threads is in fact the parser of .map files. > > > > > >Do you attempt to reuse the same mapObj across > > multiple requests or just > > >create one and dispose as soon as you are done > > within a single request? > > > > > >HTH, > > >Umberto > > > > > > > > >On Mon, 2005-02-28 at 00:53 -0500, Miller Joseph > > wrote: > > >> Hi, > > >> I'm having a baffling problem with a nightly > > build of Java Mapscript > > >> from about a month ago that I am running on > > Windows 2000 with Tomcat > > >> 5.5.4. > > >> > > >> The symptom I see is that I can generate the > > default image but after the > > >> fourth or fifth time that I pass a new envelope > > to change the extent of > > >> the image I get the following error: > > >> > > >> The relevant part of the stack trace: > > >> java.lang.UnknownError: Failed to draw layer > > named 'world'. > > >> at > > > edu.umn.gis.mapscript.mapscriptJNI.mapObj_draw(Native > > Method) > > >> at > > edu.umn.gis.mapscript.mapObj.draw(mapObj.java:397) > > >> > > >> Occasionally I'll get a flex scanner error or > > tomcat will crash with an > > >> Exception_Access_Violation memmove error similar > > to the one referred to > > >> here: > > >> > > > http://forum.java.sun.com/thread.jspa?forumID=52&messageID=1124599&threa > > >> dID=286832 > > >> > > >> All of this happens whether I instatiate new > > instances of the mapObj and > > >> set everything to null or if I use the same > > mapObj throughout and only > > >> after a few passes, suggesting to me that there > > is a memory issue > > >> somewhere. I can pass on some specific code, but > > all I am really doing > > >> is creating new envelopes to store extents and > > then assigning them to > > >> the mapObj or extracting the corner coordinates > > and setting the extent > > >> with them. > > >> > > >> I've been fighting this for a frustrating week > > now. Does anyone have > > >> any advice? > > >> > > >> Thanks, > > >> Joe Miller > > >-- > > >Umberto Nicoletti > > At that point it > > will > > >+390415701366 unicoletti at prometeo.it > > compile, but segfault, as > > it should.. > > >Prometeo S.R.L. The Software Experience > > > > Umberto, > > > > 1)I don't think I compiled specifically with > > multi-threading because it > > wasn't an option listed in the nmake.opt for > > Microsoft Visual C++ options > > file??? The last I heard multithreading was not > > even on the horizon for > > mapserver and yet I see it in the Unix build options > > file? What do I need > > to do this? > > > > 2)I tried both options you mentioned, I had the > > problem when passed the > > same mapObj from request to request and stored it in > > the session and when I > > set it to null after every request and instantiated > > it and assigned > > attributes based on other variables stored in the > > requests and sessions? > > I'm assuming the latter is preferred? > > > > Thanks, > > Joe Miller > > > > > > > __________________________________ > Do you Yahoo!? > Yahoo! Sports - Sign up for Fantasy Baseball. > http://baseball.fantasysports.yahoo.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nuryadin at GMAIL.COM Mon Feb 28 19:43:29 2005 From: nuryadin at GMAIL.COM (Ruslan Nuryadin) Date: Tue, 1 Mar 2005 10:43:29 +0700 Subject: Setting up GMAP for MS4W In-Reply-To: Message-ID: Lahn Pra wrote: --cut-- > I made the changes and restarted the apache server. It doesn't work. In > addition.. when I do try to access the Gmap link, I get the following > error.. > --- > Warning: dl(): Unable to load dynamic > library '/ms4w/Apache/php/extensions/php_mapscript_36.dll' - The specified > module could not be found. in C:\ms4w\apps\gmap\htdocs\gmap75.phtml on line > 50 > > Fatal error: Call to undefined function: ms_getversion() in > C:\ms4w\apps\gmap\htdocs\gmap75.php3 on line 51 > ---- Latest MS4W distribution (v1.0.3, probably the one you have), uses PHP/Mapscript version 4.2.x or 4.4.x. You have to modify this line on ms4w/apps/gmap/htdocs/gmap75.phtml to correctly load PHP/Mapscript extension: if (!extension_loaded("MapScript")) { if (phpversion() < 4) dl("php3_mapscript.dll"); // PHP3 else dl("php_mapscript_36.dll"); // --> old text } becomes: if (!extension_loaded("MapScript")) { if (phpversion() < 4) dl("php3_mapscript.dll"); // PHP3 else dl("php_mapscript_44.dll"); // --> new text } Make sure you have this file: ms4w/Apache/php/extensions/php_mapscript_44.dll -- ruslan nuryadin nuryadin at gmail.com -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 266.5.1 - Release Date: 27/02/2005 From woodbri at SWOODBRIDGE.COM Mon Feb 28 20:28:34 2005 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 28 Feb 2005 23:28:34 -0500 Subject: Tiger Line Data In-Reply-To: Message-ID: Hermawan, See comments below Hermawan Sutantio wrote: > Hi all. > I might need some more help. > Based on the recommendation that Stephen gave, I tried to compile 2 > counties > in michigan using the commands recommended. Below is the michigan.map file > that i generated. Please help me review them whether anything is wrong. > Thanks. > You need to start your mapfile with: MAP > FONTSET "C:\MS4W\apps\maplab-2.2\tutorial\etc\fonts.list" > # > # Start of map file > # > NAME Michigan > STATUS ON > SIZE 500 500 > UNITS DD > EXTENT -84.133748 42.072069 -83.539394 42.4345936 > SHAPEPATH "C:\cygwin\hcslmap\data\tiger" > IMAGECOLOR 255 255 255 > > > # > # Start of web interface definition > # > WEB > # > # On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root > # of the drive where the .MAP file resides. > # > IMAGEPATH "C/ms4w/tmp/ms_tmp/" Are you missing a ":" as in "C:" > IMAGEURL "/ms_tmp/" > # LOG "/tmp/gmap.log" > > TEMPLATE demo.html > METADATA > "TITLE" "Michigan Test Demo" > END > END > > > # > # Start of legend > # > LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS OFF > END > > # > # Start of scalebar > # > SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 4 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS miles > INTERVALS 3 > STATUS ON > END > > # > # Querymap settings > # > # Style is one of NORMAL, HILITE, or SELECTED > # > > QUERYMAP > STYLE HILITE > COLOR 255 0 0 > END > > # > # Start of layer definitions > # > > LAYER > NAME Street_Map > TYPE LINE > STATUS ON STATUS ON says that you can display the layer, but not that it WILL be desplayed. Until you understand this, I would use STATUS DEFAULT > TILEINDEX "C:\cygwin\hcslmap\data\tiger\mich-tile.shp" > CLASS > NAME "Street_Map" You probably need to specify the color and style of the line. Try COLOR 0 0 0 # black SIZE 1 # one pixel width > END > END # Layer > > END #map > > > > Herman Teo wrote: > >> Hi Stephen, >> >> Thanks for the tip. I'm now scouring through the previous list >> messages for 'tile' commands. There is not much of that going on. Is >> there a sample code where I might be able to learn how I should >> proceed with shape tiling and a sniff of a LAYER...END code in the >> map file. Also, is any of these tiger line on sale somewhere so that >> I might not have to download 300k files as you said. Thanks a lot. > > > Herman, > > There are two different tiling commands: > > 1) tile4ms which is distributed as part of the mapserver source and is > documented on the mapserver utilities page of the website. It is used to > tiling shapefiles. The easiest way to use it is to putt all the data you > want to tile in a directory tree located in your SHAPEPATH directory. > Then on Linux do something like: > > find data_dir -name "*.shp" > data_dir.in > tile4ms data_dir.in data-tile > shptree data-tile > cat data_dir.in | xargs -n 1 shptree > > Then in your mapfile do something like: > > LAYER > NAME "my tile data" > TYPE whatever > TILEINDEX data-tile > ... > CLASS > ... > END > END > > One of the caveats of this is that all the shapefiles in the index MUST > have the SAME attributes and order of attributes and they must be all > the same type. > > 2) For tiling images you should use gdaltindex which is distributed as > part of the gdal libraries and tools. The concept is similar to the > above and I documented it on the wiki at > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO > in the Bathymetry and Topography HowTo link and others have added a lot > more info there. > From hermawan_s at HOTMAIL.COM Mon Feb 28 20:46:57 2005 From: hermawan_s at HOTMAIL.COM (Hermawan Sutantio) Date: Tue, 1 Mar 2005 04:46:57 +0000 Subject: Tiger Line Data In-Reply-To: <4223EF72.7060906@swoodbridge.com> Message-ID: Thanks,for your help. It helps in an instant. I'm trying to display feature labels of the roads. LAYER NAME "Michigan Labels" TYPE ANNOTATION STATUS DEFAULT TILEINDEX "C:\ms4w\apps\gmap\htdocs\michigan\mich-tile" LABELMAXSCALE 100000 CLASS Name "Michigan Labels" LABEL TYPE TRUETYPE FONT "arial" SIZE 10 ANGLE AUTO POSITION uc END END # Class END Does this layer...end code make any sense? Thanks again. Herman Hermawan, See comments below Hermawan Sutantio wrote: >Hi all. >I might need some more help. >Based on the recommendation that Stephen gave, I tried to compile 2 >counties >in michigan using the commands recommended. Below is the michigan.map file >that i generated. Please help me review them whether anything is wrong. >Thanks. > You need to start your mapfile with: MAP >FONTSET "C:\MS4W\apps\maplab-2.2\tutorial\etc\fonts.list" ># ># Start of map file ># >NAME Michigan >STATUS ON >SIZE 500 500 >UNITS DD >EXTENT -84.133748 42.072069 -83.539394 42.4345936 >SHAPEPATH "C:\cygwin\hcslmap\data\tiger" >IMAGECOLOR 255 255 255 > > ># ># Start of web interface definition ># >WEB ># ># On Windows systems, /tmp and /tmp/ms_tmp/ should be created at the root ># of the drive where the .MAP file resides. ># > IMAGEPATH "C/ms4w/tmp/ms_tmp/" Are you missing a ":" as in "C:" > IMAGEURL "/ms_tmp/" ># LOG "/tmp/gmap.log" > > TEMPLATE demo.html > METADATA > "TITLE" "Michigan Test Demo" > END >END > > ># ># Start of legend ># >LEGEND > KEYSIZE 18 12 > LABEL > TYPE BITMAP > SIZE MEDIUM > COLOR 0 0 89 > END > STATUS OFF >END > ># ># Start of scalebar ># >SCALEBAR > IMAGECOLOR 255 255 255 > LABEL > COLOR 0 0 0 > SIZE SMALL > END > SIZE 150 4 > COLOR 255 255 255 > BACKGROUNDCOLOR 0 0 0 > OUTLINECOLOR 0 0 0 > UNITS miles > INTERVALS 3 > STATUS ON >END > ># ># Querymap settings ># ># Style is one of NORMAL, HILITE, or SELECTED ># > >QUERYMAP > STYLE HILITE > COLOR 255 0 0 >END > ># ># Start of layer definitions ># > >LAYER > NAME Street_Map > TYPE LINE > STATUS ON STATUS ON says that you can display the layer, but not that it WILL be desplayed. Until you understand this, I would use STATUS DEFAULT > TILEINDEX "C:\cygwin\hcslmap\data\tiger\mich-tile.shp" > CLASS > NAME "Street_Map" You probably need to specify the color and style of the line. Try COLOR 0 0 0 # black SIZE 1 # one pixel width > END >END # Layer > >END #map > > > >Herman Teo wrote: > >>Hi Stephen, >> >>Thanks for the tip. I'm now scouring through the previous list >>messages for 'tile' commands. There is not much of that going on. Is >>there a sample code where I might be able to learn how I should >>proceed with shape tiling and a sniff of a LAYER...END code in the >>map file. Also, is any of these tiger line on sale somewhere so that >>I might not have to download 300k files as you said. Thanks a lot. > > >Herman, > >There are two different tiling commands: > >1) tile4ms which is distributed as part of the mapserver source and is >documented on the mapserver utilities page of the website. It is used to >tiling shapefiles. The easiest way to use it is to putt all the data you >want to tile in a directory tree located in your SHAPEPATH directory. >Then on Linux do something like: > >find data_dir -name "*.shp" > data_dir.in >tile4ms data_dir.in data-tile >shptree data-tile >cat data_dir.in | xargs -n 1 shptree > >Then in your mapfile do something like: > >LAYER > NAME "my tile data" > TYPE whatever > TILEINDEX data-tile > ... > CLASS > ... > END >END > >One of the caveats of this is that all the shapefiles in the index MUST >have the SAME attributes and order of attributes and they must be all >the same type. > >2) For tiling images you should use gdaltindex which is distributed as >part of the gdal libraries and tools. The concept is similar to the >above and I documented it on the wiki at >http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RasterHOWTO >in the Bathymetry and Topography HowTo link and others have added a lot >more info there. >

Queryresults

queried themeComuni
Istat [ISTAT]
Comune [COMUNE]
Pr [PR]

The queried object is colored in red

contact  www.terrestris.de # info at terrestris.de