From janeks.kamerovskis at SILVA.LV Wed Dec 1 00:31:43 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Wed, 1 Dec 2004 10:31:43 +0200 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: Sorry for disturbance about second part... I accidentaly didn't copiy some dlls to right place. But the first question is still actual! brgds Janeks > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Janeks Kamerovskis > Sent: Wednesday, December 01, 2004 9:50 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released > > > In readme I found: > The php_mapscript_44.dll was compiled with libconv library to be able > to support internayional languages. > > Where could I find more details regarding this international language > support? > > I tried PHP extension of 4.4.0. and got following message when call > dl('php_mapscript_44.dll'): > Warning: dl(): Unable to load dynamic library > 'c:\php\extensions\php_mapscript_44.dll' - The specified > procedure could not > be found. in E:\webFolders\ipasumi\test1.php on line 10 > > Also I tested mapserv.exe and got the message: > CGI Error > The specified CGI application misbehaved by not returning a > complete set of > HTTP headers. The headers it did return are: > > When I launch mapserv.exe directly I got message attached in error.gif. > > My system Win2000. > I copied all dlls from 440 package. And mapserver beta1 is working... > > > Looking forward for replay... > Janeks > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Daniel Morissette > > Sent: Tuesday, November 30, 2004 6:59 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released > > > > > > Good evening, > > > > The MapServer 4.4.0 release is now officially available, thanks to the > > hard work of everyone involved. > > > > Here is a very quick summary of what's new in version 4.4: > > > > * Added WCS support (server only) > > > > * Added support for Time dimension in WMS > > > > * Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many > > to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 > > test suite and is ready to be certified (Formal "WMS Compliance" > > certification with OGC is in the works). > > > > * Added FastCGI support > > > > * Lots of fixes to allow running in long-lived processes and > > multithreaded environments (memory leaks, mutex locking, etc.). > > > > * Added connection pooling (implemented for SDE and PostGIS). > > > > * Lots of improvements to SWIG MapScript API and docs. > > > > * Support for i18n encodings in map labels. Tested with Chinese, > > Japanese and Thai. > > > > * Added ability to produce rotated maps (i.e. North is not at the top) > > > > * Completion of SDE versioned query support > > > > ... and many many more fixes and enhancements. See the HISTORY.TXT that > > comes with the source package for the complete list (relevant parts > > included below). > > > > The source code package is available for download on the MapServer > > download page at http://mapserver.gis.umn.edu/dload.html and the default > > documentation pages should be switched to use version 4.4 > > documents shortly. > > > > Windows binaries should also be available shortly at the usual > > locations. I would invite those producing prebuilt binaries to please > > reply to this email and announce the availability of their binaries and > > their URL. > > > > As we've done for previous releases, we will produce 4.4.x bugfix > > releases as required in the coming months. With respect to 4.2.x: we > > will not produce any more 4.2.x releases unless major issues (e.g. > > security issues) are ever found in 4.2.5. > > > > What about the next release? The consensus seems to be to aim for a 4.6 > > release in the next 4-6 months. There are no major changes or new > > features planned for 4.6 at this point, mostly improvements of existing > > features. We'll try to document our plan for 4.6 and share it with this > > list when it's available. > > > > Enjoy! > > > > Daniel > > ------------------------------------------------------------ > > Daniel Morissette dmorissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > > > > > > > Complete list of changes since 4.2 (excerpt from HISTORY.TXT) > > > > > > Version 4.4.0 (2004-11-29) > > -------------------------- > > > > - Fixed WMS GetCapabilities 1.1.0 crash when wms_style_<...>_legendurl_* > > metadata were used (bug 1096) > > > > - WCS GetCapabilities : Added ResponsibleParty support. > > > > - WMS GetCapabilities : Service online resource was not url encoded (bug > > 1093) > > > > - Fixed php mapscript problem with wfs_filter selection : Bug 1092. > > > > - Fixed encoding problem with WFS server when wfs_service_onlineresource > > was not explicitly specified (bug 1082) > > > > - Add trailing "?" or "&" to connection string when required in WFS > > client layers using GET method (bug 1082) > > > > - Fixed : SLD rasters was failing when there was Spatial Filter > (Bug 1087) > > > > - Fixed mapwfslayer.c build error when WFS was not enabled (bug 1083) > > > > - Check that we have vsnprintf in mapimagemap.c before using it. > > > > > > Version 4.4.0-beta3 (2004-11-22) > > -------------------------------- > > > > - Added tests to mimimize the threat of recursion problems when > evaluating > > LAYER REQUIRES or LABELREQUIRES expressions. Note that via > MapScript it > > is possible to circumvent that test by defining layers with problems > > after running prepareImage. Other things crop up in that case too > > (symbol > > scaling dies) so it should be considered bad programming practice > > (bug 1059). > > > > - Added --with-sderaster configure option. > > > > - Make sure that msDrawWMSLayerLow calls msDrawLayer instead of > > msDrawRasterLayerLow directly ensuring that some logic (transparency) > > that > > are in msDrawLayer are applied (bug 541). > > > > - Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF > > if they are RGBA or ON. Makes user error such as in bug 1703 less > > likely. > > > > - Advertize only gd and gdal formats for wms capabilities (bug 455). > > > > - Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML > > attributes are returned as strings to MapServer. This is > most efficient > > and prevents problems with autodetection of some attribute types (bug > > 1043). > > > > - msOGCWKT2ProjectionObj() now uses the > > OGRSpatialReference::SetFromUserInput() > > method. This allows various convenient setting options, > including the > > ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". > > > > - Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' > > or '&' separator if it was not included in wms_onlineresource > > (bug 1065). > > > > - Updated WMS/WFS client and server code to lookup "ows_*" > metadata names > > in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was > > already > > implemented this way). This reduces the amount of duplication > > in mapfiles > > that support multiple OGC interfaces since "ows_*" metadata > can be used > > almost everywhere for common metadata items shared by multiple OGC > > interfaces (bug 568). > > > > - Added ows_service_onlineresource metadata for WMS/WFS to distinguish > > between service and GetMap/Capabilities onlineresources (bug 375). > > > > - Added map->setSize() to PHP MapScript (bug 1066). > > > > - Re-enabled building PHP MapScript using PHP's bundled > regex/*.o. This is > > needed to build in an environment with PHP configured as an > Apache DSO > > (bugs 990, 520). > > > > - Fixed problem with raster dither support on windows (related to ascii > > encoding pointers) (bug 722). > > > > - Moved PHP/SWIG MapScript layer->getExtent() logic down to > > msLayerGetExtent() > > to avoid code duplication (bug 1051). > > > > - Added SDE Raster drawing support (experimental). > > > > - HTML legends: Added [leg_header_html] and [leg_footer_html] > (bug 1032). > > > > - Added "z" support in SWIG MapScript for pointObj (bug 871). > > > > - In PHP Mpascript when using ms_newrectobj, the members minx, miny, > > maxx, maxy are initialized to -1 (bug 788). > > > > - Write out proper world file with remote WMS result, it was off by half > > a pixel (bug 1050). > > > > - Send a warning in the wms capabilities if the layer status is set > > to default (bug 638). > > > > - Fixed PHP MapScript compile warnings: dereferencing > type-punned pointer > > will break strict-aliasing rules (bug 1053). > > > > - Added $layer->isVisible() to PHP MapScript (bug 539). > > > > - Ported $layer->getExtent() to PHP MapScript (bug 826). > > > > - wms_group_abstract can now be used in the capabilities (bug 754). > > > > - If wms_stylelist is an empty string, do not output the tag > > for MapContexts (bug 595). > > > > - Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface > > (bug 1047). > > > > - Output warning in wms/wfs capabilities document if layer,group,map > > names have > > space in them (bug 486, bug 646). > > > > - maporaclespatial.c: fixed declarations problems (bug 1044). > > > > - Allow use of msOWSPrintURLType with no metadata. In this case > > the default > > parameters will be used (bug 1001). > > > > - Ensure the outputFormatObj attached to msImageLoadGDStream() results > > reflect > > the interlacedness of the loaded image. Also ensure that the RGB PNG > > reference images work (make imagemode match gdImg) (bug 1039). > > > > - Fixed support for non-square pixels in WCS (bug 1014). > > > > - Expose only GD formats for GetLegendGraphic in the capabilities (bug > > 1001). > > > > - Check for supported formats when process a GetLegendGraphic request > > (bug 1030). > > > > - mapraster.c: fixed problem with leaks in tileindexed case where the > > tile index is missing (bug 713). > > > > - Oracle Spatial: implemented connection pool support for > Oracle Spatial. > > New layer data parameters to support query functions, added > > "using unique ". Added "FILTER", "RELATE" and > > "GEOMRELATE" > > parameters, now permit users to choose the Oracle Spatial Filter. > > Modified > > the internal SQL to always apply FILTER function. And improve > > the Oracle > > Spatial performance. > > > > - Centralize "stdout binary mode setting" for win32 in > > msIO_needBinaryStdout(). > > Use it when writing GDAL files to stdout in mapgdal.c. Fixes > > problems with > > output of binary files from GDAL outputformat drivers on win32 via > > WMS/WCS. > > > > - MapServer now provides one default style named (default), title and > > LegendURL when generating capabilities. Added also the possibility > > to use > > the keyword default for STYLES parameter when doing a GetMap > > (..&STYLES=default,defeault,...) (bug 1001). > > > > - Add xlink:type="simple" in WMS MetadataURL (bug 1027). > > > > > > Version 4.4.0-beta2 (2004-11-03) > > -------------------------------- > > > > - free mapServObj properly in mapserv.c in OWS dispatch case to > fix minor > > memory leaks. > > > > - modified msCloseConnections() to also close raster layers so that > > held raster query results will be freed. > > > > - modified raster queries to properly set the classindex in the > > resultcache. > > > > - modified msDrawQueryCache() to be very careful to not try and lookup > > information on out-of-range classindex values. This seems to > > occur when > > default shapes come back witha classindex of 0 even if there are no > > classes. > > (ie. raster query results). > > > > - the loadmapcontext function has changed it behaviour. Before the 4.4 > > relase > > when loading layers from a map context, the layer name was > built using > > a unique prefix + the name found in the context (eg for the > > 2nd layer in > > map context named park, the layer name generated would possibly be > > l:2:park). > > Now the loadmapcontext takes a 2nd optional argument to force the > > creation > > of the unique names. The default behaviour is now to have the > > layer name > > equals to the name found in the context file (bug 1023). > > > > - Fixed problem with WMS GetCapabilities aborting when > wms_layer_group is > > used for some layers but not for all (bug 1024). > > > > - Changed raster queries to return the list of all pixel values as an > > attribute named "value_list" rather than "values" to avoid > > conflict with > > special [values] substitution rule in maptemplate.c. > > > > - Fixed raster queries to reproject results back to map > projection, and to > > do point queries distance checking against the correct projection > > (bug 1021). > > > > - Get rid of WMS 1.0.8 support. It's not an officially supported verison > > of the spec anyway: it's synonymous for 1.1.0 (bug 1022). > > > > - Allow use of '=' inside HTML template tag parser (bug 978). > > > > - Use metadata ows_schema_location for WMS/WFS/WCS/SLD (bugs 999, 1013, > > 938). > > The default value if metadata is not found is > > http://schemas.opengeospatial.net. > > > > - Generate a RULE tag when generating an SLD (bug 1010). > > > > - WMS GetLegendGraphic uses now the RULE value to return an icon for > > a class that has the same name as the RULE value (bug 843). > > > > - Add msOWSPrintURLType: This funciton is a generic URL printing fuction > > for > > OGC specification metadata (WMS, WFS, WCS, WMC, etc.) (bug 944). > > > > - Support MetadataURL, DataURL and LegendURL tags in WMS capabilities > > document and MetadataURL in WFS capabilities. > > > > - SWIG mapscript: clone methods for layerObj, classObj, styleObj > > (bug 1012). > > > > - Implemented an intarray helper class for SWIG mapscript which > allows for > > multi-language manipulation of layer drawing order (bugs 853, 1005). > > > > - Fixed WMS GetLegendGraphic which was returning an exception (GD error) > > when requested layer was out of scale (bug 1006). > > > > - Fixed maplexer.l to work with flex 2.5.31 (bug 975). > > > > - WMS GetMap requests now have MS_NONSQUARE enabled by default. > This means > > that if the width/height ratio doesn't match the extent's x/y > > ratio then > > the map is stretched as stated in the WMS specification (bug 862). > > > > - In WMS, layers with no explicit projection defined will receive a copy > > of the map's projectionObj if a new SRS is specified in the GetMap > > request > > or if MS_NONSQUARE is enabled. This will prevent the problem > > with layers > > that don't show up in WMS request when the server > administrator forgets > > to explicitly set projections on all the layers in a WMS mapfile (bug > > 947). > > > > - Implemented FastCGI cleanup support for win32 and unix in mapserv.c. > > > > - Solved configure/compile issues with libiconv (bugs 909, 1017). > > > > > > Version 4.4.0-beta1 (2004-10-21) > > -------------------------------- > > > > - "shared" compilation target now supports some kind of versioning, > > should at least prevent libmap.so version collisions when upgrading > > MapServer on a server (bug 982). > > > > - When no RULE parameter has been specified in the WMS request > > a legend should be returned with all classes for the specified LAYER. > > Changes has been made in mapwms.c (bug 653). Also if the SCALE > > parameter > > is provided in the WMS request is will be used to determine whether > > the legend of the specified layer should be drawn in the > case that the > > layer is scale dependant (big 809). > > > > - Nested layers in the capabilities are supported by using a > new metadata > > tag WMS_LAYER_GROUP (bug 776). > > > > - Added greyscale+alpha render support if mapdrawgdal.c (bug 965). > > > > - Added --with-fastcgi support to configure. > > > > - support OGC mapcontext through mapserver cgi (bug 946). > > > > - support for reading 3d shape file (z) (bug 869). > > > > - add php mapscript functions to expose the z element (bug 870). > > > > - imageObj::write() method for SWIG mapscript (bug 941). > > > > - Protect users from 3 potential sources of threading problems: parsing > > expression strings outside of msLoadMap, evaluating mapserver logical > > expressions, and loading symbol set files outside of msLoadMap > > (bug 339). > > > > - Various fixes allowing unit tests to run leak free under valgrind on > > i686. Memory is now properly freed when exiting from common error > > states (bug 927). > > > > - Restored ability to render transparent (indexed or alpha) > pixmap symbols > > on RGB map images, including annotation layers and embedded > scalebars. > > This feature remains OFF by default for map layers and is enabled by > > specifying TRANSPARENCY ALPHA (bugs 926, 490). > > > > - mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. > > > > - New mapserver exceptions for Java mapscript thanks to Umberto > Nicoletti > > (bug 895). > > > > - Removed mapindex.c, mapindex.h, shpindex.c components of old unused > > shapefile indexing method. > > > > - Use the symbol size instead of 1 for the default style size > > value. This is > > done by setting the default size to -1 and adding > > msSymbolGetDefaultSize() > > everywhere to get the default symbolsize (Bug 751). > > > > - Correct Bug with GML BBOX output when using a with a > > GetFeature request (Bug 913). > > > > - Encode all metadatas and mapfile parameters outputed in a xml document > > (Bug 802). > > > > - Implement the ENCODING label parameter to support > internationalization. > > Note this require the iconv library (Bug 858). > > > > - New and improved Java mapscript build provided by > unicoletti at prometeo.it > > and examples by Y.K. Choo (bug 876). > > > > - MapContext: Cleanup code to make future integration more easily and > > output > > SRS and DataURL in the order required by the spec. > > > > - Fixed issue with polygon outline colors and brush caching (bug 868). > > > > - New C# mapscript makefiles and examples provided by Y.K. Choo > > committed under mapscript/csharp/ (bug 867). > > > > - Renamed 'string' member of labelCacheMemberObj to 'text' to avoid > > conflicts in SWIG mapscript with C# and Java types (bug 852). > > > > - Fixed Bug 866 : problem when generating an sld on a pplygon layer > > > > - SWIG mapscript: map's output image width and height should be set > > simultaneously using new mapObj::setSize() method. This performs > > necessary map geotransform computation. Direct setting of map width > > and height is deprecated (bug 836). > > > > - Fixed bug 832 (validate srs value) : When the SRS parameter > in a GetMap > > request contains a SRS that is valid for some, but not all of > > the layers > > being requested, then the server shall throw a Service Exception > > (code = "InvalidSRS"). Before this fix, mapserver use to reproject > > the layers to the requested SRS. > > > > - Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE > > tables > > > > - Fixed bug 823 : adding a validation of the SRS parameter when doing > > a GetMap request on a wms server. Here is the OGC statement : > > 'When the SRS parameter in a GetMap request contains a SRS > > that is valid for some, but not all of the layers being requested, > > then the server shall throw a Service Exception (code = > "InvalidSRS").' > > > > - Set the background color of polygons or circles when using transparent > > PIXMAP symbol. > > > > - SWIG mapscript class extensions are completely moved from mapscript.i > > into separate interface files under mapscript/swiginc. > > > > - Overhaul of mapscript unit testing framework with a comprehensive test > > runner mapscript/python/tests/runtests.py. > > > > - Modified the MS_VALID_EXTENT macro to take an extent as its argument > > instead of the quartet of members. MapServer now checks that extents > > input > > through the mapfile are valid in mapfile.c (web, map, reference, > > and layer). Modified msMapSetExtent in mapobject.c to use the new > > macro instead of its home-grown version. Modified all cases that used > > MS_VALID_EXTENT to the new use case. > > > > - Layers now accept an EXTENT through the mapfile (bug 786). Nothing > > is done with it at this point, and getExtent still queries the > > datasource rather than getting information from the mapfile-specified > > extent. > > > > - Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a > > problem with msProjectRect and zero-size search rectangles (bug 794) > > > > - MapServer version now output to mapscriptvars and read by Perl > > Makefile.PL > > and Python setup.py (bug 795). > > > > - Map.web, layer, and class metadata are exposed in SWIG mapscript as > > first-class objects (bug 737). > > > > - Add support for spatial filters in the SLD (Bug 782) > > > > - A few fixes to allow php_mapscript to work with both PHP4 and PHP5. > > PHP5 support should still be considered experimental. (bug 718) > > > > - Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). > > The code now autosenses the unique row id column. > > > > - Enhanced SDE support to include support for queries against > > user-specified versions. The version name can be specified as the > > last parameter of the CONNECTION string. > > > > - Fixed automated generation of onlineresource in OWS GetCapabilities > > when the xxx_onlineresource metadata is not specified: the > > map= parameter > > used to be omitted and is now included in the default > onlineresource if > > it was explicitly set in QUERY_STRING (bug 643) > > > > - Fixed possible crash when producing WMS errors INIMAGE (bug 644) > > > > - Fixed automated generation of onlineresource in OWS GetCapabilities > > when the xxx_onlineresource metadata is not specified: the > > map= parameter > > used to be omitted and is now included in the default > onlineresource if > > it was explicitly set in QUERY_STRING (bug 643) > > > > - Fixed an issue with annotation label overlap. There was an issue with > > the way msRectToPolygon was computing it's bounding box. (bug 618) > > > > - Removed "xbasewohoo" debug output when using JOINs and fixed a few > > error messages related to MySQL joins (bug 652) > > > > - Fixed "raster cracking" problem (bug 493) > > > > - Improvements to Makefile.vc, and nmake.opt so that a > mapscriptvars file > > can be produced on windows. > > > > - Updated setup.py so Python MapScript builds on win32. > > > > - Added preliminary raster query support. > > > > - No more Python-stopping but otherwise benign errors raised from > > msDrawWMSLayer() (bug 650). > > > > - Finished prototyping all MapServer functions used by SWIG-Mapscript > > and added 'void' to prototypes of no-arg functions, eliminating all > > but two SWIG-Mapscript build warnings (bug 658). > > > > - Mapscript: resolved issue with pens and dynamic drawing of points (bug > > 663). > > > > - Mapscript: fixes to tests of shape copying and new image symbols. > > > > - Mapscript: new OWSRequest class based on cgiRequestObj structure in > > cgiutil.h is a first step to allow programming with MapServer's OWS > > dispatching (bug 670). > > > > - Mapscript: styles member of classObj structure is no longer exposed to > > SWIG (bug 611). > > > > - Implementation geotransform/rotation support in cgi core, and > > mapscript.i. > > > > - Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). > > Added an embedded scalebar which demonstrates that bug 519 is fixed. > > The test data package is also made more complete by > including two fonts > > from Bitstream's open Vera fonts (bug 694). > > > > - Mapscript (SWIG): remove promote and demote methods from > layerObj. Use > > of container's moveLayerUp/moveLayerDown is better, and this brings > > the module nearer to PHP-Mapscript (bug 692). > > > > - mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. > > > > - mapraster.c: fixed tile index corruption problem (bug 698) > > > > - Mladen Turk's map copying macros in mapcopy.h clean up map cloning and > > allow for copying of fontset and symbolset. Added cloning tests in > > python/tests/testCloneMap.py and refactored testing suite (bugs 640 & > > 701). > > > > - Mapscript: removing obsolete python/setup_wnone.py file. > > > > - CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for > > WMS). > > Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to > > allow > > non-square pixels. > > > > - When using the text/html mime type in a GetFeature request, if the > > layer's template is not set to a valid file, errors occur. > > Correction is : the text/html is not advertized by default and > > will only be advertized if the user has defined > > "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) > > > > - Make PHP MapScript's layer->open() produce a PHP Warning instead of a > > Fatal error (bug 742) > > > > - MapServer hash tables are now a structure containing a items pointer > > to hashObj. See maphash.h for new prototypes of hash table functions. > > In SWIG mapscript, Map, Layer, and Class metadata are now instances > > of the > > new hashTableObj class. fontset.fonts and Map.configoptions are also > > instances of hashTableObj. The older getMetaData/setMetaData and > > metadata iterator methods can be deprecated (bug 737). > > > > - Mapscript-SWIG: made the arguments of mapObj and layerObj constructors > > optional. A layerObj can now exist outside of a map and can be added > > to a mapObj using the insertLayer method. mapObj.removeLayer now > > returns a copy of the removed Layer rather than an integer (bug 759). > > > > - Fixed $map->processTemplate() which was always returning NULL. > > Bug introduced in version 4.0 in all flavours of MapScript (bug 410) > > > > > > Version 4.2-beta1 (2004-04-17) > > ------------------------------ > > > > - Added support for WMS 1.1.1 in the WMS interface. > > > > - Added support for WMS-SLD in client and server mode. > > > > - Added support for attribute filters in the WFS interface. > > > > - WMS Interface: several fixes to address issues found in running tests > > against the OGC testsuite. One of the side-effects is that incomplete > > GetMap requests that used to work in previous versions will produce > > errors now (see bug 622). > > > > - Modified configure scripts to be able to configure/build PHP MapScript > > using an installed PHP instead of requiring the full source tree. > > > > - Added ability to combine multiple WMS connections to the same server > > into a single request when the layers are adjacent and compatible. > > (bug 116) > > > > - Support POSTed requests without Content-Length set. > > > > - Added support for proper classification of non-8bit rasters. > > > > - Added support for BYTE rawmode output type. > > > > - Added support for multiple bands of output in rawmode. > > > > - MySQL joins available > > > > - Fixed problems with detection of OGRRegisterAll() with GDAL 1.1.9 in > > configure due to GDAL's library name change. Fixed a few other minor > > issues with GDAL/OGR in configure. > > > > - Modified configure to disable native TIFF/PNG/JPEG/GIF support > > by default > > if GDAL is enabled. You can still enable them explicitly if > you like. > > > > - Replace wms_style_%s_legendurl, wms_logourl, wms_descriptionurl, > > wms_dataurl > > and wms_metadataurl metadata by four new metadata by metadata > > replaced. The > > new metadata are called legendurl_width, legendurl_height, > > legendurl_format, > > legendurl_href, logourl_width, etc... > > Old dependancy to the metadata with four value in it , space > > separated, are > > not kept. > > > > - Implement DataURL, MetadataURL and DescriptionURL metadata in > > mapcontext.c (bug 523) > > > > - PHP MapScript's pasteImage() now takes a hex color value > (e.g. 0xrrggbb) > > for the transparent color instead of a color index. (bug 463) > > > > - OGR data sources with relative paths are now checked relative to > > SHAPEPATH first, and if not found then we try again relative to the > > mapfile location. (bug 295) > > > > - There is a new mapObj parameter called MAXSIZE to control > maximum image > > size to serve via the CGI and WMS interfaces. The default is 2048 as > > before but it can be changed in the map file now. (bug 435) > > > > - Added simple dataset for unit and regression tests (bug 453) > > > > - PostGIS: added postresql_NOTICE_HANDLER() sending output via msDebug() > > and only when layer->debug is set (bug 418) > > > > - Added Apache version detection in configure and added > non-blocking flag > > on stderr in msDebug() to work around Apache 2.x bug (bug 458) > > > > - MapScript rectObj: added optional bounding value args to > constructor and > > extended rectObj class with a toPolygon method (bug 508). > > > > - MapScript pointObj: added optional x/y args to constructor (bug 508). > > > > - MapScript colorObj: added optional RGB color value args to colorObj > > constructor, and extended colorObj class with setRGB, > setHex, and toHex > > methods. The hex methods use hex color strings like '#ffffff' rather > > than '0xffffff' for compatibility with HTML (bug 509). > > > > - MapScript outputFormatObj: extended with a getOption method (bug 510). > > > > - MapScript imageObj: added optional mapObj argument to the save method > > resolving bug 549 without breaking current API. Also added optional > > driver and filename arguments to constructor which allows imageObj > > instances to be created with a specified driver or from files on disk > > (bug 530). Added new code to Python MapScript which extends the > > filename option to Python file-like objects (bug 550). This means > > StringIO and urllib's network objects! > > > > - MapScript classObj and styleObj: added a new styleObj shadow class and > > extended classObj with getStyle, insertStyle, and > removeStyle methods. > > MapScript now supports multiple styles for dynamically > created classes > > (bug 548). > > > > - MapScript layerObj: added getExtent, getNumFeatures extension methods, > > allowing getShape to access inline features (bug 562). > > > > - Added fixes for AMD64/Linux in configure (bug 565) > > > > - Removed OGR_STATIC stuff in configure script that used to allow us to > > build with OGR statically by pointing to the OGR source tree. That > > means you can only build with OGR when *installed* as part of GDAL, > > but that's what everyone is doing these days anyway. > > > > - Mapscript outputFormatObj: extended constructor to allow format names, > > and mapObj methods to append and remove output formats from the > > outputformatlist (bug 511). > > > > - New SWIG mapscript development documentation in the spirit of the > > PHP-Mapscript readme file, but using reST (bug 576). > > > > - Paving way for future changes to SWIG mapscript API with new features > > enabled by NEXT_GENERATION_API symbol (bug 586). > > > > - Added ability to set string member variables to NULL in PHP MapScript > > (bug 591) > > > > - New key iterators for map, layer, and class metadata hash tables > > (bug 434) and fontset fonts hash table (bug 439). > > > > - Fixed potential crash when using nquery with a querymap enabled and > > some layers have a template set at the layer level instead of inside > > classes (bug 569). > > > > - New CONFIG keyword in the MAP object in a .map file to be used > > to set external configuration parameters such as PROJ_LIB and control > > of some GDAL and OGR driver behaviours (bug 619) > From bartvde at XS4ALL.NL Wed Dec 1 00:32:39 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 1 Dec 2004 09:32:39 +0100 Subject: WFS Problems In-Reply-To: <41ACD675.3080005@karsten-lessing.de> Message-ID: Hi, I think the best thing you can do is to contact the people who maintain this WFS. I would not say this WFS service does not support HTTP POST, as Mapserver was trying to POST to the index.html page of the main web server on this machine, and the web server complained about this not being allowed. But maybe the WFS service itself does support POST (if you get the correct URL). Another option would be to try and setup your own WFS server using Mapserver to play with it. Best regards, Bart > Hi Bart, > (and dear List Members), > > first of all I would like to apologize my late response on your quick > answer! > Unfortunatelly I was too busy to spend time on my WFS problem the last > couple of hours. > > Regarding your answer I chanched the string: > > CONNECTION > "http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&" > to: > CONNECTION "http://babyz.uni-muenster.de?/wfs/WFS?" > (you find the whole mapfile at the bottom of my answer) > > This resulted in the following gml-file which was stored in the /tmp > directory: > > > > 404 Not Found > >

Not Found

> The requested URL /wfs/wfs was not found on this server.

>


>
Oracle HTTP Server Powered by Apache/1.3.22 Server at > BabyZ.geoinformatik.geo.uni-muenster.de Port 80
> > > > Than I chanced the CONNECTION string to: > > CONNECTION "http://babyz.uni-muenster.de?" > > This resulted in the message of following gml-file: > > > > 405 Method Not Allowed > >

Method Not Allowed

> The requested method POST is not allowed for the URL /index.html.

>


>
Oracle HTTP Server Powered by Apache/1.3.22 Server at > BabyZ.geoinformatik.geo.uni-muenster.de Port 80
> > > As you mentioned earlier the WFS Server does not seem to be able to cope > with the POST request. > What does this mean ... and what can I do now? > For the first steps with WFS it might be an more promissing way to start > with another WFS server which is able to work with POST requests? > Would you - Or anybody else - know another WFS server and would also be > able to give me the necessary coordinates? > > many thanks beforehand > Karsten > > > (the changed mapfile) > > MAP > NAME "wfs_client" > SIZE 500 600 > IMAGECOLOR 255 255 255 > EXTENT 9000 5500000 1000000 5600000 > STATUS ON > PROJECTION > "init=epsg:4326" > END > > WEB > LOG "wfs_client.log" > TEMPLATE "/srv/www/cgi-bin/docs/template5.htm" > IMAGEPATH /var/tmp/ > IMAGEURL tmp > END > > OUTPUTFORMAT > NAME PNG > DRIVER "GDAL/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > LAYER > NAME "WaterLevel" > TYPE LINE > STATUS ON > CONNECTION "http://babyz.uni-muenster.de?" > CONNECTIONTYPE WFS > PROJECTION > "init=epsg:4326" > END > METADATA > "wfs_version" "1.0.0" > "wfs_typename" "bafg2" > "wfs_service" "WFS" > "wfs_connectiontimeout" "2000" > "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" > "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" > END > # CLASSITEM "lineId" > CLASS > # EXPRESSION '124.0' > Color 200 200 200 > END > END > END > > > > Bart van den Eijnden schrieb: > >> Hi, >> >> could you try using a connection string without parameters. The typename >> you set through metadata differs from the typename you specify in the >> connection. The preferred way to do this now is to set all the variables >> through the METADATA and not in the connection string. >> >> CONNECTION "http://babyz.uni-muenster.de/wfs/WFS?" >> >> Also, does your WFS server support HTTP POST requests? >> >> Are there any error messages in your error logs? Is the gml actually >> being >> downloaded to the tmp directory? >> >> Best regards, >> Bart >> >> On Mon, 29 Nov 2004 16:56:13 +0100, K. Lessing >> wrote: >> >>> Dear List member, >>> >>> I am new with the work on mapserver as wfs-client. >>> I am running Mapserver 4.2.5. with the support of all necessary >>> libraries on >>> Suse 9.1. >>> I read the How2 instruction page for setting up an WFS-Layer. >>> Unfortunatelly it does not work. >>> Does anybody maybe have a clue what could be wrong? >>> Please have a look on the following map file. >>> >>> thanx beforehand >>> K. Lessing >>> >>> >>> MAP >>> NAME "wfs_client" >>> SIZE 500 700 >>> IMAGECOLOR 50 50 50 >>> EXTENT 9000 5500000 1000000 5600000 >>> STATUS ON >>> PROJECTION >>> "init=epsg:32632" >>> END >>> >>> WEB >>> TEMPLATE "template5.html" >>> IMAGEPATH "/srv/www/htdocs/tmp/" >>> IMAGEURL "/tmp/" >>> END >>> >>> OUTPUTFORMAT >>> NAME "Farbenfroh" >>> DRIVER "GDAL/JPEG" >>> MIMETYPE "image/jpeg" >>> IMAGEMODE RGB >>> EXTENSION "jpeg" >>> END >>> >>> LAYER >>> NAME "WaterLevel" >>> TYPE LINE >>> STATUS DEFAULT >>> CONNECTION >>> "http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&" >>> >>> CONNECTIONTYPE WFS >>> PROJECTION >>> "init=epsg:32632" >>> END >>> METADATA >>> "wfs_version" "1.0.0" >>> "wfs_typename" "bafg2" >>> "wfs_service" "WFS" >>> "wfs_connectiontimeout" "60" >>> "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" >>> "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" >>> END >>> CLASSITEM "lineId" >>> CLASS >>> EXPRESSION '124.0' >>> Color 200 200 200 >>> END >>> END >>> END >> >> >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ >> > > From wlx at MYGIS.ORG Wed Dec 1 02:02:13 2004 From: wlx at MYGIS.ORG (wlx) Date: Wed, 1 Dec 2004 18:02:13 +0800 Subject: MapServer 4.4.0 released In-Reply-To: <41ACD06A.1060405@main-task.com> Message-ID: How to compile mapserver to make it as a apache DSO? > > Steven Monai wrote: > > >Hello, > > > >A quick question about the new v4.4.0 release: > > > >Scanning through the extensive changelog (wow, somebody's > been busy!), > >I see entries which lead me to hope that, with this version, > it might > >now be safe to use PHP/Mapscript with PHP loaded as an > apache module, > >rather than as an external CGI executable. Am I being overly > optimistic? > > > >Thanks, > >-SM > >-- > > > > > > > > > I've been using phpmapscript for 3 days or so, and everything > seems to work pretty well. > I'm working with: > Apache_1.3.33 > php-5.0.2 > mapserver-4.4.0-beta3 > In fedora. > > Php5 is compiled as an Apache DSO. > > Best regards, > > -- > Vladimir Ilich Guzm?n R. > ------------------------ > http://maintask.com > > From mathieuparent at INFONIE.FR Wed Dec 1 03:28:06 2004 From: mathieuparent at INFONIE.FR (Mathieu Parent) Date: Wed, 1 Dec 2004 12:28:06 +0100 Subject: windows for 4.4.0 release. PHP 5 ? In-Reply-To: <41AC9333.10902@dmsolutions.ca> Message-ID: Is there any PHP 5 windows version ? Thanks Yewondwossen Assefa a ?crit : > Hi There, > > Windows binaries are available for mapserver/php-mapscript 4.4.0 > release on maptools : > http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html > > > Best Regards, > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > From Micheal.Arnold at NSCORP.COM Wed Dec 1 05:55:51 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Wed, 1 Dec 2004 08:55:51 -0500 Subject: jbox area Message-ID: Thanks for the help Richard. Here is the projection we are using: PROJECTION "proj=longlat" "ellps=WGS84" END Would the constant used to determine the area change based on different UTM zones? Thanks again. Mike Arnold micheal.arnold at nscorp.com -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Tuesday, November 30, 2004 9:28 AM To: Arnold, Micheal B. Cc: mapserver-users at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox area jBox returns an area in screen pixels. You must convert it to sq feet, sq meters, sq miles, or whatever you like. I wrote the above functions to convert to sq feet and/or acres for a state plane coordinate system in US Survey Feet. You need to modify them for your coordinate system, resloution setting (if not 72), and desired output units. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com On Mon, 29 Nov 2004 10:42:49 -0500, Arnold, Micheal B. wrote: > > > > For some reason, the area that I am getting back for polygons using jbox > seems to be off. The segment length and total length seem to be fine, but > the area is off by a factor of about 5. Does anybody have any ideas or > suggestions? Below are the measure_handler functions I am using. > > > > Thanks for the help! > > > > Mike Arnold > > micheal.arnold at nscorp.com > > > > function measure_handler(name, s, t, n, a) > > { > > // c = 1 / 72dpi / 12inches_per_foot * > 1.0003state_plane_scale_factor > > var c = 0.0011577546296296; // constant > > var f = [scale] * c; // scale factor > > if ((s>0) || (t>0)) > > { > > if (n < 3) > > { > > defaultStatus = "This > segment = " + distFormat(s*f) + ", Total = " + distFormat(t*f) + ", Number > of vertices = " + n ; > > } > > else > > { > > defaultStatus = "This > segment = " + distFormat(s*f) + ", Total = " + distFormat(t*f) + ", Number > of vertices = " + n + ", Area = " + distFormat(a*f) ; > > } > > } > > } > > > > function roundFeet(x) > > { > > var fpp = ([maxx] - [minx]) / [mapwidth]; // resolution > (feet per pixel) > > if (fpp < 4) return (Math.round(x)); > > if (fpp < 8) return (Math.round(x/5)*5); > > if (fpp < 17) return (Math.round(x/10)*10); > > if (fpp < 40) return (Math.round(x/25)*25); > > if (fpp < 80) return (Math.round(x/50)*50); > > return (Math.round(x/100)*100); > > } > > > > function distFormat(x) > > { > > var d; > > if (x > 7920) return ((Math.round(x/5280*10)/10) + " miles"); > > d = roundFeet(x); > > if (d > 2640) > > return (d + " ft (" + (Math.round(x/5280*10)/10) + ")mile"); > > return (d + " ft"); > > } From 0098klbe at EDU.FH-KAERNTEN.AC.AT Wed Dec 1 05:54:39 2004 From: 0098klbe at EDU.FH-KAERNTEN.AC.AT (Bernhard Klingseisen) Date: Wed, 1 Dec 2004 07:54:39 -0600 Subject: php5 with Php_mapscript_44.dll Message-ID: Hi list members, According to the information on the website, mapserver 4.4.0 should be compatible with PHP5. But when I want to include the extension php_mapscript_44.dll in php.ini, I get an error when starting apache (2.0.52): " PHP Startup: Unable to load dynamic library 'c:/web/php/ext\php_mapscript_44.dll' " Notice the backslash in the error message. I'm thankful for any suggestions. Cheers Bernie From covariance at SHAW.CA Wed Dec 1 06:59:00 2004 From: covariance at SHAW.CA (Bob Bruce - Programmer) Date: Wed, 1 Dec 2004 08:59:00 -0600 Subject: LOGICAL attributes in Expressions? Message-ID: Has anyone had experience in using SHAPE file attributes of data type LOGICAL in MapServer Expressions in CLASSes? If so can you give me pointers in how to properly code them so that they will distinguish between TRUE and FALSE values? I have tried several variations and am unable to get it to use these. thanks, Bob Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Wed Dec 1 07:10:27 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 1 Dec 2004 10:10:27 -0500 Subject: [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Message-ID: I have the same msg with win2k, IIS and Oracle... Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Eduin Carrillo Envoy? : Tuesday, November 30, 2004 9:10 PM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) --- Howard Butler escribi?: > All, > > I have compiled what I am calling the "kitchen sink" Windows binaries > and made them available for download. They are located at > . Here is a quick rundown of > what is available for support: > > Outputs: GIF, JPEG, PNG, PDF, and SWF > Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, > depending on build type). > Servers: WCS, WFS, and WMS > Clients: WFS and WMS > GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus many > more) OGR formats: PostGIS, GML, & ODBC (plus many more) > > There are 4 build types, and you will need to choose the one that > appropriately does what you want with respect to Oracle and SDE as the > DLLs required to use those are not freely available. SDE and Oracle > builds require your own DLLs. SDE was built against ArcSDE 9.0, and > will require the 9.0 DLLs. Oracle was built against the Oracle 9.2 > client libraries and will require a 9.2 oci.dll. > > MapScript > Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are > also available at this website in the same 4 configurations. The Java > MapScript is known to pass the test cases that exist in CVS, but I am > not a Java programmer, so I don't know of the rest of their utility. > I'd be interested in hearing reports of how well they work for you. > > Congrats to all those who helped work on a great release. > > Howard > This binary do not works in my system (WINXP SP2). Warning is " System can't find lti_dsdk_dll.dll" ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From nicolas.fortin at EC.GC.CA Wed Dec 1 07:50:20 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 1 Dec 2004 10:50:20 -0500 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Message-ID: Oups...sorry, I didn't saw this line : You may need to download the MrSID SDK for vc6 at http://developer.lizardtech.com/data/download/ in order to use these binaries. The only SDK available for download on this site for windows is GeoExpress SDK for Windows - vc7.1 so I suppose it's the right one. I am dowloading it right now! Thanks a lot for these binaries Howard! Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fortin,Nicolas [SteFoy] Envoy? : Wednesday, December 01, 2004 10:10 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) I have the same msg with win2k, IIS and Oracle... Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Eduin Carrillo Envoy? : Tuesday, November 30, 2004 9:10 PM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) --- Howard Butler escribi?: > All, > > I have compiled what I am calling the "kitchen sink" Windows binaries > and made them available for download. They are located at > . Here is a quick rundown of > what is available for support: > > Outputs: GIF, JPEG, PNG, PDF, and SWF > Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, > depending on build type). > Servers: WCS, WFS, and WMS > Clients: WFS and WMS > GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus many > more) OGR formats: PostGIS, GML, & ODBC (plus many more) > > There are 4 build types, and you will need to choose the one that > appropriately does what you want with respect to Oracle and SDE as the > DLLs required to use those are not freely available. SDE and Oracle > builds require your own DLLs. SDE was built against ArcSDE 9.0, and > will require the 9.0 DLLs. Oracle was built against the Oracle 9.2 > client libraries and will require a 9.2 oci.dll. > > MapScript > Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are > also available at this website in the same 4 configurations. The Java > MapScript is known to pass the test cases that exist in CVS, but I am > not a Java programmer, so I don't know of the rest of their utility. > I'd be interested in hearing reports of how well they work for you. > > Congrats to all those who helped work on a great release. > > Howard > This binary do not works in my system (WINXP SP2). Warning is " System can't find lti_dsdk_dll.dll" ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From jlacroix at DMSOLUTIONS.CA Wed Dec 1 07:46:45 2004 From: jlacroix at DMSOLUTIONS.CA (Julien-Samuel Lacroix) Date: Wed, 1 Dec 2004 10:46:45 -0500 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: Hi, You can look at bug 858 in MapServer bugzilla: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=858 This was the bug used for the development of this feature. It contains link to documentation and a test case (Thanks to Mario Basa) to test this. Thanks Julien Janeks Kamerovskis wrote: > Sorry for disturbance about second part... > I accidentaly didn't copiy some dlls to right place. > > But the first question is still actual! > > brgds > Janeks > > >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Janeks Kamerovskis >>Sent: Wednesday, December 01, 2004 9:50 AM >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released >> >> >>In readme I found: >>The php_mapscript_44.dll was compiled with libconv library to be able >>to support internayional languages. >> >>Where could I find more details regarding this international language >>support? >> >>I tried PHP extension of 4.4.0. and got following message when call >>dl('php_mapscript_44.dll'): >>Warning: dl(): Unable to load dynamic library >>'c:\php\extensions\php_mapscript_44.dll' - The specified >>procedure could not >>be found. in E:\webFolders\ipasumi\test1.php on line 10 >> >>Also I tested mapserv.exe and got the message: >>CGI Error >>The specified CGI application misbehaved by not returning a >>complete set of >>HTTP headers. The headers it did return are: >> >>When I launch mapserv.exe directly I got message attached in error.gif. >> >>My system Win2000. >>I copied all dlls from 440 package. And mapserver beta1 is working... >> >> >>Looking forward for replay... >>Janeks >> >> >>>-----Original Message----- >>>From: UMN MapServer Users List >>>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Daniel Morissette >>>Sent: Tuesday, November 30, 2004 6:59 AM >>>To: MAPSERVER-USERS at LISTS.UMN.EDU >>>Subject: [UMN_MAPSERVER-USERS] MapServer 4.4.0 released >>> >>> >>>Good evening, >>> >>>The MapServer 4.4.0 release is now officially available, thanks to the >>>hard work of everyone involved. >>> >>>Here is a very quick summary of what's new in version 4.4: >>> >>>* Added WCS support (server only) >>> >>>* Added support for Time dimension in WMS >>> >>>* Lots of fixes/improvements to the OGC WMS and WFS interfaces (too many >>>to list here). MapServer 4.4 passes all the tests of the OGC WMS 1.1.1 >>>test suite and is ready to be certified (Formal "WMS Compliance" >>>certification with OGC is in the works). >>> >>>* Added FastCGI support >>> >>>* Lots of fixes to allow running in long-lived processes and >>>multithreaded environments (memory leaks, mutex locking, etc.). >>> >>>* Added connection pooling (implemented for SDE and PostGIS). >>> >>>* Lots of improvements to SWIG MapScript API and docs. >>> >>>* Support for i18n encodings in map labels. Tested with Chinese, >>>Japanese and Thai. >>> >>>* Added ability to produce rotated maps (i.e. North is not at the top) >>> >>>* Completion of SDE versioned query support >>> >>>... and many many more fixes and enhancements. See the HISTORY.TXT that >>>comes with the source package for the complete list (relevant parts >>>included below). >>> >>>The source code package is available for download on the MapServer >>>download page at http://mapserver.gis.umn.edu/dload.html and the default >>>documentation pages should be switched to use version 4.4 >>>documents shortly. >>> >>>Windows binaries should also be available shortly at the usual >>>locations. I would invite those producing prebuilt binaries to please >>>reply to this email and announce the availability of their binaries and >>>their URL. >>> >>>As we've done for previous releases, we will produce 4.4.x bugfix >>>releases as required in the coming months. With respect to 4.2.x: we >>>will not produce any more 4.2.x releases unless major issues (e.g. >>>security issues) are ever found in 4.2.5. >>> >>>What about the next release? The consensus seems to be to aim for a 4.6 >>>release in the next 4-6 months. There are no major changes or new >>>features planned for 4.6 at this point, mostly improvements of existing >>>features. We'll try to document our plan for 4.6 and share it with this >>>list when it's available. >>> >>>Enjoy! >>> >>>Daniel >>>------------------------------------------------------------ >>> Daniel Morissette dmorissette at dmsolutions.ca >>> DM Solutions Group http://www.dmsolutions.ca/ >>>------------------------------------------------------------ >>> >>> >>> >>>Complete list of changes since 4.2 (excerpt from HISTORY.TXT) >>> >>> >>>Version 4.4.0 (2004-11-29) >>>-------------------------- >>> >>>- Fixed WMS GetCapabilities 1.1.0 crash when wms_style_<...>_legendurl_* >>> metadata were used (bug 1096) >>> >>>- WCS GetCapabilities : Added ResponsibleParty support. >>> >>>- WMS GetCapabilities : Service online resource was not url encoded (bug >>>1093) >>> >>>- Fixed php mapscript problem with wfs_filter selection : Bug 1092. >>> >>>- Fixed encoding problem with WFS server when wfs_service_onlineresource >>> was not explicitly specified (bug 1082) >>> >>>- Add trailing "?" or "&" to connection string when required in WFS >>> client layers using GET method (bug 1082) >>> >>>- Fixed : SLD rasters was failing when there was Spatial Filter >> >>(Bug 1087) >> >>>- Fixed mapwfslayer.c build error when WFS was not enabled (bug 1083) >>> >>>- Check that we have vsnprintf in mapimagemap.c before using it. >>> >>> >>>Version 4.4.0-beta3 (2004-11-22) >>>-------------------------------- >>> >>>- Added tests to mimimize the threat of recursion problems when >> >>evaluating >> >>> LAYER REQUIRES or LABELREQUIRES expressions. Note that via >> >>MapScript it >> >>> is possible to circumvent that test by defining layers with problems >>> after running prepareImage. Other things crop up in that case too >>>(symbol >>> scaling dies) so it should be considered bad programming practice >>> (bug 1059). >>> >>>- Added --with-sderaster configure option. >>> >>>- Make sure that msDrawWMSLayerLow calls msDrawLayer instead of >>> msDrawRasterLayerLow directly ensuring that some logic (transparency) >>>that >>> are in msDrawLayer are applied (bug 541). >>> >>>- Force GD/JPEG outputFormatObjects to IMAGEMODE RGB and TRANSPARENT OFF >>> if they are RGBA or ON. Makes user error such as in bug 1703 less >>>likely. >>> >>>- Advertize only gd and gdal formats for wms capabilities (bug 455). >>> >>>- Pass config option GML_FIELDTYPES=ALWAYS_STRING to OGR so that all GML >>> attributes are returned as strings to MapServer. This is >> >>most efficient >> >>> and prevents problems with autodetection of some attribute types (bug >>>1043). >>> >>>- msOGCWKT2ProjectionObj() now uses the >>>OGRSpatialReference::SetFromUserInput() >>> method. This allows various convenient setting options, >> >>including the >> >>> ability to handle ESRI WKT by prefixing the WKT string with "ESRI::". >>> >>>- Fixed GetLegendGraphic in WMS Capabilities that were missing the '?' >>> or '&' separator if it was not included in wms_onlineresource >>>(bug 1065). >>> >>>- Updated WMS/WFS client and server code to lookup "ows_*" >> >>metadata names >> >>> in addition to the default "wms_*" (or "wfs_*") metadatas (WCS was >>>already >>> implemented this way). This reduces the amount of duplication >>>in mapfiles >>> that support multiple OGC interfaces since "ows_*" metadata >> >>can be used >> >>> almost everywhere for common metadata items shared by multiple OGC >>> interfaces (bug 568). >>> >>>- Added ows_service_onlineresource metadata for WMS/WFS to distinguish >>> between service and GetMap/Capabilities onlineresources (bug 375). >>> >>>- Added map->setSize() to PHP MapScript (bug 1066). >>> >>>- Re-enabled building PHP MapScript using PHP's bundled >> >>regex/*.o. This is >> >>> needed to build in an environment with PHP configured as an >> >>Apache DSO >> >>> (bugs 990, 520). >>> >>>- Fixed problem with raster dither support on windows (related to ascii >>> encoding pointers) (bug 722). >>> >>>- Moved PHP/SWIG MapScript layer->getExtent() logic down to >>>msLayerGetExtent() >>> to avoid code duplication (bug 1051). >>> >>>- Added SDE Raster drawing support (experimental). >>> >>>- HTML legends: Added [leg_header_html] and [leg_footer_html] >> >>(bug 1032). >> >>>- Added "z" support in SWIG MapScript for pointObj (bug 871). >>> >>>- In PHP Mpascript when using ms_newrectobj, the members minx, miny, >>> maxx, maxy are initialized to -1 (bug 788). >>> >>>- Write out proper world file with remote WMS result, it was off by half >>> a pixel (bug 1050). >>> >>>- Send a warning in the wms capabilities if the layer status is set >>> to default (bug 638). >>> >>>- Fixed PHP MapScript compile warnings: dereferencing >> >>type-punned pointer >> >>> will break strict-aliasing rules (bug 1053). >>> >>>- Added $layer->isVisible() to PHP MapScript (bug 539). >>> >>>- Ported $layer->getExtent() to PHP MapScript (bug 826). >>> >>>- wms_group_abstract can now be used in the capabilities (bug 754). >>> >>>- If wms_stylelist is an empty string, do not output the tag >>> for MapContexts (bug 595). >>> >>>- Avoid passing FILE* to GD library by utilizing GD's gdIOCtx interface >>> (bug 1047). >>> >>>- Output warning in wms/wfs capabilities document if layer,group,map >>>names have >>> space in them (bug 486, bug 646). >>> >>>- maporaclespatial.c: fixed declarations problems (bug 1044). >>> >>>- Allow use of msOWSPrintURLType with no metadata. In this case >>>the default >>> parameters will be used (bug 1001). >>> >>>- Ensure the outputFormatObj attached to msImageLoadGDStream() results >>>reflect >>> the interlacedness of the loaded image. Also ensure that the RGB PNG >>> reference images work (make imagemode match gdImg) (bug 1039). >>> >>>- Fixed support for non-square pixels in WCS (bug 1014). >>> >>>- Expose only GD formats for GetLegendGraphic in the capabilities (bug >>>1001). >>> >>>- Check for supported formats when process a GetLegendGraphic request >>> (bug 1030). >>> >>>- mapraster.c: fixed problem with leaks in tileindexed case where the >>> tile index is missing (bug 713). >>> >>>- Oracle Spatial: implemented connection pool support for >> >>Oracle Spatial. >> >>> New layer data parameters to support query functions, added >>> "using unique ". Added "FILTER", "RELATE" and >>>"GEOMRELATE" >>> parameters, now permit users to choose the Oracle Spatial Filter. >>>Modified >>> the internal SQL to always apply FILTER function. And improve >>>the Oracle >>> Spatial performance. >>> >>>- Centralize "stdout binary mode setting" for win32 in >>>msIO_needBinaryStdout(). >>> Use it when writing GDAL files to stdout in mapgdal.c. Fixes >>>problems with >>> output of binary files from GDAL outputformat drivers on win32 via >>>WMS/WCS. >>> >>>- MapServer now provides one default style named (default), title and >>> LegendURL when generating capabilities. Added also the possibility >>>to use >>> the keyword default for STYLES parameter when doing a GetMap >>> (..&STYLES=default,defeault,...) (bug 1001). >>> >>>- Add xlink:type="simple" in WMS MetadataURL (bug 1027). >>> >>> >>>Version 4.4.0-beta2 (2004-11-03) >>>-------------------------------- >>> >>>- free mapServObj properly in mapserv.c in OWS dispatch case to >> >>fix minor >> >>> memory leaks. >>> >>>- modified msCloseConnections() to also close raster layers so that >>> held raster query results will be freed. >>> >>>- modified raster queries to properly set the classindex in the >>>resultcache. >>> >>>- modified msDrawQueryCache() to be very careful to not try and lookup >>> information on out-of-range classindex values. This seems to >>>occur when >>> default shapes come back witha classindex of 0 even if there are no >>>classes. >>> (ie. raster query results). >>> >>>- the loadmapcontext function has changed it behaviour. Before the 4.4 >>>relase >>> when loading layers from a map context, the layer name was >> >>built using >> >>> a unique prefix + the name found in the context (eg for the >>>2nd layer in >>> map context named park, the layer name generated would possibly be >>>l:2:park). >>> Now the loadmapcontext takes a 2nd optional argument to force the >>>creation >>> of the unique names. The default behaviour is now to have the >>>layer name >>> equals to the name found in the context file (bug 1023). >>> >>>- Fixed problem with WMS GetCapabilities aborting when >> >>wms_layer_group is >> >>> used for some layers but not for all (bug 1024). >>> >>>- Changed raster queries to return the list of all pixel values as an >>> attribute named "value_list" rather than "values" to avoid >>>conflict with >>> special [values] substitution rule in maptemplate.c. >>> >>>- Fixed raster queries to reproject results back to map >> >>projection, and to >> >>> do point queries distance checking against the correct projection >>>(bug 1021). >>> >>>- Get rid of WMS 1.0.8 support. It's not an officially supported verison >>> of the spec anyway: it's synonymous for 1.1.0 (bug 1022). >>> >>>- Allow use of '=' inside HTML template tag parser (bug 978). >>> >>>- Use metadata ows_schema_location for WMS/WFS/WCS/SLD (bugs 999, 1013, >>>938). >>> The default value if metadata is not found is >>> http://schemas.opengeospatial.net. >>> >>>- Generate a RULE tag when generating an SLD (bug 1010). >>> >>>- WMS GetLegendGraphic uses now the RULE value to return an icon for >>> a class that has the same name as the RULE value (bug 843). >>> >>>- Add msOWSPrintURLType: This funciton is a generic URL printing fuction >>>for >>> OGC specification metadata (WMS, WFS, WCS, WMC, etc.) (bug 944). >>> >>>- Support MetadataURL, DataURL and LegendURL tags in WMS capabilities >>> document and MetadataURL in WFS capabilities. >>> >>>- SWIG mapscript: clone methods for layerObj, classObj, styleObj >>>(bug 1012). >>> >>>- Implemented an intarray helper class for SWIG mapscript which >> >>allows for >> >>> multi-language manipulation of layer drawing order (bugs 853, 1005). >>> >>>- Fixed WMS GetLegendGraphic which was returning an exception (GD error) >>> when requested layer was out of scale (bug 1006). >>> >>>- Fixed maplexer.l to work with flex 2.5.31 (bug 975). >>> >>>- WMS GetMap requests now have MS_NONSQUARE enabled by default. >> >>This means >> >>> that if the width/height ratio doesn't match the extent's x/y >>>ratio then >>> the map is stretched as stated in the WMS specification (bug 862). >>> >>>- In WMS, layers with no explicit projection defined will receive a copy >>> of the map's projectionObj if a new SRS is specified in the GetMap >>>request >>> or if MS_NONSQUARE is enabled. This will prevent the problem >>>with layers >>> that don't show up in WMS request when the server >> >>administrator forgets >> >>> to explicitly set projections on all the layers in a WMS mapfile (bug >>>947). >>> >>>- Implemented FastCGI cleanup support for win32 and unix in mapserv.c. >>> >>>- Solved configure/compile issues with libiconv (bugs 909, 1017). >>> >>> >>>Version 4.4.0-beta1 (2004-10-21) >>>-------------------------------- >>> >>>- "shared" compilation target now supports some kind of versioning, >>> should at least prevent libmap.so version collisions when upgrading >>> MapServer on a server (bug 982). >>> >>>- When no RULE parameter has been specified in the WMS request >>> a legend should be returned with all classes for the specified LAYER. >>> Changes has been made in mapwms.c (bug 653). Also if the SCALE >>>parameter >>> is provided in the WMS request is will be used to determine whether >>> the legend of the specified layer should be drawn in the >> >>case that the >> >>> layer is scale dependant (big 809). >>> >>>- Nested layers in the capabilities are supported by using a >> >>new metadata >> >>> tag WMS_LAYER_GROUP (bug 776). >>> >>>- Added greyscale+alpha render support if mapdrawgdal.c (bug 965). >>> >>>- Added --with-fastcgi support to configure. >>> >>>- support OGC mapcontext through mapserver cgi (bug 946). >>> >>>- support for reading 3d shape file (z) (bug 869). >>> >>>- add php mapscript functions to expose the z element (bug 870). >>> >>>- imageObj::write() method for SWIG mapscript (bug 941). >>> >>>- Protect users from 3 potential sources of threading problems: parsing >>> expression strings outside of msLoadMap, evaluating mapserver logical >>> expressions, and loading symbol set files outside of msLoadMap >>>(bug 339). >>> >>>- Various fixes allowing unit tests to run leak free under valgrind on >>> i686. Memory is now properly freed when exiting from common error >>> states (bug 927). >>> >>>- Restored ability to render transparent (indexed or alpha) >> >>pixmap symbols >> >>> on RGB map images, including annotation layers and embedded >> >>scalebars. >> >>> This feature remains OFF by default for map layers and is enabled by >>> specifying TRANSPARENCY ALPHA (bugs 926, 490). >>> >>>- mapserv_fcgi.c removed. Committed new comprehensive FastCGI support. >>> >>>- New mapserver exceptions for Java mapscript thanks to Umberto >> >>Nicoletti >> >>> (bug 895). >>> >>>- Removed mapindex.c, mapindex.h, shpindex.c components of old unused >>> shapefile indexing method. >>> >>>- Use the symbol size instead of 1 for the default style size >>>value. This is >>> done by setting the default size to -1 and adding >>>msSymbolGetDefaultSize() >>> everywhere to get the default symbolsize (Bug 751). >>> >>>- Correct Bug with GML BBOX output when using a with a >>> GetFeature request (Bug 913). >>> >>>- Encode all metadatas and mapfile parameters outputed in a xml document >>> (Bug 802). >>> >>>- Implement the ENCODING label parameter to support >> >>internationalization. >> >>> Note this require the iconv library (Bug 858). >>> >>>- New and improved Java mapscript build provided by >> >>unicoletti at prometeo.it >> >>> and examples by Y.K. Choo (bug 876). >>> >>>- MapContext: Cleanup code to make future integration more easily and >>>output >>> SRS and DataURL in the order required by the spec. >>> >>>- Fixed issue with polygon outline colors and brush caching (bug 868). >>> >>>- New C# mapscript makefiles and examples provided by Y.K. Choo >>> committed under mapscript/csharp/ (bug 867). >>> >>>- Renamed 'string' member of labelCacheMemberObj to 'text' to avoid >>> conflicts in SWIG mapscript with C# and Java types (bug 852). >>> >>>- Fixed Bug 866 : problem when generating an sld on a pplygon layer >>> >>>- SWIG mapscript: map's output image width and height should be set >>> simultaneously using new mapObj::setSize() method. This performs >>> necessary map geotransform computation. Direct setting of map width >>> and height is deprecated (bug 836). >>> >>>- Fixed bug 832 (validate srs value) : When the SRS parameter >> >>in a GetMap >> >>> request contains a SRS that is valid for some, but not all of >>>the layers >>> being requested, then the server shall throw a Service Exception >>> (code = "InvalidSRS"). Before this fix, mapserver use to reproject >>> the layers to the requested SRS. >>> >>>- Fixed bug 834: SE_ROW_ID in SDE not initialized for unregistered SDE >>>tables >>> >>>- Fixed bug 823 : adding a validation of the SRS parameter when doing >>> a GetMap request on a wms server. Here is the OGC statement : >>> 'When the SRS parameter in a GetMap request contains a SRS >>> that is valid for some, but not all of the layers being requested, >>> then the server shall throw a Service Exception (code = >> >>"InvalidSRS").' >> >>>- Set the background color of polygons or circles when using transparent >>> PIXMAP symbol. >>> >>>- SWIG mapscript class extensions are completely moved from mapscript.i >>> into separate interface files under mapscript/swiginc. >>> >>>- Overhaul of mapscript unit testing framework with a comprehensive test >>> runner mapscript/python/tests/runtests.py. >>> >>>- Modified the MS_VALID_EXTENT macro to take an extent as its argument >>> instead of the quartet of members. MapServer now checks that extents >>>input >>> through the mapfile are valid in mapfile.c (web, map, reference, >>> and layer). Modified msMapSetExtent in mapobject.c to use the new >>> macro instead of its home-grown version. Modified all cases that used >>> MS_VALID_EXTENT to the new use case. >>> >>>- Layers now accept an EXTENT through the mapfile (bug 786). Nothing >>> is done with it at this point, and getExtent still queries the >>> datasource rather than getting information from the mapfile-specified >>> extent. >>> >>>- Fixed problem with WMS GetFeatureInfo when map was reprojected. Was a >>> problem with msProjectRect and zero-size search rectangles (bug 794) >>> >>>- MapServer version now output to mapscriptvars and read by Perl >>>Makefile.PL >>> and Python setup.py (bug 795). >>> >>>- Map.web, layer, and class metadata are exposed in SWIG mapscript as >>> first-class objects (bug 737). >>> >>>- Add support for spatial filters in the SLD (Bug 782) >>> >>>- A few fixes to allow php_mapscript to work with both PHP4 and PHP5. >>> PHP5 support should still be considered experimental. (bug 718) >>> >>>- Fixed SDE only recognizing SE_ROW_ID as the unique column (bug 536). >>> The code now autosenses the unique row id column. >>> >>>- Enhanced SDE support to include support for queries against >>> user-specified versions. The version name can be specified as the >>> last parameter of the CONNECTION string. >>> >>>- Fixed automated generation of onlineresource in OWS GetCapabilities >>> when the xxx_onlineresource metadata is not specified: the >>>map= parameter >>> used to be omitted and is now included in the default >> >>onlineresource if >> >>> it was explicitly set in QUERY_STRING (bug 643) >>> >>>- Fixed possible crash when producing WMS errors INIMAGE (bug 644) >>> >>>- Fixed automated generation of onlineresource in OWS GetCapabilities >>> when the xxx_onlineresource metadata is not specified: the >>>map= parameter >>> used to be omitted and is now included in the default >> >>onlineresource if >> >>> it was explicitly set in QUERY_STRING (bug 643) >>> >>>- Fixed an issue with annotation label overlap. There was an issue with >>> the way msRectToPolygon was computing it's bounding box. (bug 618) >>> >>>- Removed "xbasewohoo" debug output when using JOINs and fixed a few >>> error messages related to MySQL joins (bug 652) >>> >>>- Fixed "raster cracking" problem (bug 493) >>> >>>- Improvements to Makefile.vc, and nmake.opt so that a >> >>mapscriptvars file >> >>> can be produced on windows. >>> >>>- Updated setup.py so Python MapScript builds on win32. >>> >>>- Added preliminary raster query support. >>> >>>- No more Python-stopping but otherwise benign errors raised from >>> msDrawWMSLayer() (bug 650). >>> >>>- Finished prototyping all MapServer functions used by SWIG-Mapscript >>> and added 'void' to prototypes of no-arg functions, eliminating all >>> but two SWIG-Mapscript build warnings (bug 658). >>> >>>- Mapscript: resolved issue with pens and dynamic drawing of points (bug >>>663). >>> >>>- Mapscript: fixes to tests of shape copying and new image symbols. >>> >>>- Mapscript: new OWSRequest class based on cgiRequestObj structure in >>> cgiutil.h is a first step to allow programming with MapServer's OWS >>> dispatching (bug 670). >>> >>>- Mapscript: styles member of classObj structure is no longer exposed to >>> SWIG (bug 611). >>> >>>- Implementation geotransform/rotation support in cgi core, and >>>mapscript.i. >>> >>>- Testing: fixed syntax error, 'EPSG' -> 'epsg' in test.map (bug 687). >>> Added an embedded scalebar which demonstrates that bug 519 is fixed. >>> The test data package is also made more complete by >> >>including two fonts >> >>> from Bitstream's open Vera fonts (bug 694). >>> >>>- Mapscript (SWIG): remove promote and demote methods from >> >>layerObj. Use >> >>> of container's moveLayerUp/moveLayerDown is better, and this brings >>> the module nearer to PHP-Mapscript (bug 692). >>> >>>- mapogr.cpp: Now echos CPLGetLastErrorMsg() results if OGR open fails. >>> >>>- mapraster.c: fixed tile index corruption problem (bug 698) >>> >>>- Mladen Turk's map copying macros in mapcopy.h clean up map cloning and >>> allow for copying of fontset and symbolset. Added cloning tests in >>> python/tests/testCloneMap.py and refactored testing suite (bugs 640 & >>>701). >>> >>>- Mapscript: removing obsolete python/setup_wnone.py file. >>> >>>- CONFIG MS_NONSQUARE YES now enables non-square pixel mode (mostly for >>>WMS). >>> Changes in mapdraw.c (msDrawMap()) to use the geotransform "hack" to >>>allow >>> non-square pixels. >>> >>>- When using the text/html mime type in a GetFeature request, if the >>> layer's template is not set to a valid file, errors occur. >>> Correction is : the text/html is not advertized by default and >>> will only be advertized if the user has defined >>> "WMS_FEATURE_INFO_MIME_TYPE" "text/html" (bug 736) >>> >>>- Make PHP MapScript's layer->open() produce a PHP Warning instead of a >>> Fatal error (bug 742) >>> >>>- MapServer hash tables are now a structure containing a items pointer >>> to hashObj. See maphash.h for new prototypes of hash table functions. >>> In SWIG mapscript, Map, Layer, and Class metadata are now instances >>>of the >>> new hashTableObj class. fontset.fonts and Map.configoptions are also >>> instances of hashTableObj. The older getMetaData/setMetaData and >>> metadata iterator methods can be deprecated (bug 737). >>> >>>- Mapscript-SWIG: made the arguments of mapObj and layerObj constructors >>> optional. A layerObj can now exist outside of a map and can be added >>> to a mapObj using the insertLayer method. mapObj.removeLayer now >>> returns a copy of the removed Layer rather than an integer (bug 759). >>> >>>- Fixed $map->processTemplate() which was always returning NULL. >>> Bug introduced in version 4.0 in all flavours of MapScript (bug 410) >>> >>> >>>Version 4.2-beta1 (2004-04-17) >>>------------------------------ >>> >>>- Added support for WMS 1.1.1 in the WMS interface. >>> >>>- Added support for WMS-SLD in client and server mode. >>> >>>- Added support for attribute filters in the WFS interface. >>> >>>- WMS Interface: several fixes to address issues found in running tests >>> against the OGC testsuite. One of the side-effects is that incomplete >>> GetMap requests that used to work in previous versions will produce >>> errors now (see bug 622). >>> >>>- Modified configure scripts to be able to configure/build PHP MapScript >>> using an installed PHP instead of requiring the full source tree. >>> >>>- Added ability to combine multiple WMS connections to the same server >>> into a single request when the layers are adjacent and compatible. >>>(bug 116) >>> >>>- Support POSTed requests without Content-Length set. >>> >>>- Added support for proper classification of non-8bit rasters. >>> >>>- Added support for BYTE rawmode output type. >>> >>>- Added support for multiple bands of output in rawmode. >>> >>>- MySQL joins available >>> >>>- Fixed problems with detection of OGRRegisterAll() with GDAL 1.1.9 in >>> configure due to GDAL's library name change. Fixed a few other minor >>> issues with GDAL/OGR in configure. >>> >>>- Modified configure to disable native TIFF/PNG/JPEG/GIF support >>>by default >>> if GDAL is enabled. You can still enable them explicitly if >> >>you like. >> >>>- Replace wms_style_%s_legendurl, wms_logourl, wms_descriptionurl, >>>wms_dataurl >>> and wms_metadataurl metadata by four new metadata by metadata >>>replaced. The >>> new metadata are called legendurl_width, legendurl_height, >>>legendurl_format, >>> legendurl_href, logourl_width, etc... >>> Old dependancy to the metadata with four value in it , space >>>separated, are >>> not kept. >>> >>>- Implement DataURL, MetadataURL and DescriptionURL metadata in >>> mapcontext.c (bug 523) >>> >>>- PHP MapScript's pasteImage() now takes a hex color value >> >>(e.g. 0xrrggbb) >> >>> for the transparent color instead of a color index. (bug 463) >>> >>>- OGR data sources with relative paths are now checked relative to >>> SHAPEPATH first, and if not found then we try again relative to the >>> mapfile location. (bug 295) >>> >>>- There is a new mapObj parameter called MAXSIZE to control >> >>maximum image >> >>> size to serve via the CGI and WMS interfaces. The default is 2048 as >>> before but it can be changed in the map file now. (bug 435) >>> >>>- Added simple dataset for unit and regression tests (bug 453) >>> >>>- PostGIS: added postresql_NOTICE_HANDLER() sending output via msDebug() >>> and only when layer->debug is set (bug 418) >>> >>>- Added Apache version detection in configure and added >> >>non-blocking flag >> >>> on stderr in msDebug() to work around Apache 2.x bug (bug 458) >>> >>>- MapScript rectObj: added optional bounding value args to >> >>constructor and >> >>> extended rectObj class with a toPolygon method (bug 508). >>> >>>- MapScript pointObj: added optional x/y args to constructor (bug 508). >>> >>>- MapScript colorObj: added optional RGB color value args to colorObj >>> constructor, and extended colorObj class with setRGB, >> >>setHex, and toHex >> >>> methods. The hex methods use hex color strings like '#ffffff' rather >>> than '0xffffff' for compatibility with HTML (bug 509). >>> >>>- MapScript outputFormatObj: extended with a getOption method (bug 510). >>> >>>- MapScript imageObj: added optional mapObj argument to the save method >>> resolving bug 549 without breaking current API. Also added optional >>> driver and filename arguments to constructor which allows imageObj >>> instances to be created with a specified driver or from files on disk >>> (bug 530). Added new code to Python MapScript which extends the >>> filename option to Python file-like objects (bug 550). This means >>> StringIO and urllib's network objects! >>> >>>- MapScript classObj and styleObj: added a new styleObj shadow class and >>> extended classObj with getStyle, insertStyle, and >> >>removeStyle methods. >> >>> MapScript now supports multiple styles for dynamically >> >>created classes >> >>> (bug 548). >>> >>>- MapScript layerObj: added getExtent, getNumFeatures extension methods, >>> allowing getShape to access inline features (bug 562). >>> >>>- Added fixes for AMD64/Linux in configure (bug 565) >>> >>>- Removed OGR_STATIC stuff in configure script that used to allow us to >>> build with OGR statically by pointing to the OGR source tree. That >>> means you can only build with OGR when *installed* as part of GDAL, >>> but that's what everyone is doing these days anyway. >>> >>>- Mapscript outputFormatObj: extended constructor to allow format names, >>> and mapObj methods to append and remove output formats from the >>> outputformatlist (bug 511). >>> >>>- New SWIG mapscript development documentation in the spirit of the >>> PHP-Mapscript readme file, but using reST (bug 576). >>> >>>- Paving way for future changes to SWIG mapscript API with new features >>> enabled by NEXT_GENERATION_API symbol (bug 586). >>> >>>- Added ability to set string member variables to NULL in PHP MapScript >>> (bug 591) >>> >>>- New key iterators for map, layer, and class metadata hash tables >>> (bug 434) and fontset fonts hash table (bug 439). >>> >>>- Fixed potential crash when using nquery with a querymap enabled and >>> some layers have a template set at the layer level instead of inside >>> classes (bug 569). >>> >>>- New CONFIG keyword in the MAP object in a .map file to be used >>> to set external configuration parameters such as PROJ_LIB and control >>> of some GDAL and OGR driver behaviours (bug 619) >> > -- ------------------------------------------------------------ Julien-Samuel Lacroix jlacroix at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From assefa at DMSOLUTIONS.CA Wed Dec 1 08:11:03 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 1 Dec 2004 11:11:03 -0500 Subject: windows for 4.4.0 release. PHP 5 ? In-Reply-To: <41ADAAC6.40708@infonie.fr> Message-ID: It did not build for me out of the box. I enetered a bug on it (1110) and will work on it before the next release. Later, Mathieu Parent wrote: > Is there any PHP 5 windows version ? > Thanks > > > Yewondwossen Assefa a ?crit : > >> Hi There, >> >> Windows binaries are available for mapserver/php-mapscript 4.4.0 >> release on maptools : >> http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html >> >> >> Best Regards, >> >> -- >> ---------------------------------------------------------------- >> 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 jmckenna at DMSOLUTIONS.CA Wed Dec 1 08:16:53 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 1 Dec 2004 11:16:53 -0500 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: The mapfile's LABEL object contains a new ENCODING parameter (http://mapserver.gis.umn.edu/doc/mapfile-reference.html#label). The link to Mario's documentation is also included in the mapfile description. jeff Janeks Kamerovskis wrote: > Where could I find more details regarding this international language > support? > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From dmorissette at DMSOLUTIONS.CA Wed Dec 1 08:24:52 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 1 Dec 2004 11:24:52 -0500 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: wlx wrote: > > How to compile mapserver to make it as a apache DSO? > > MapServer cannot be made an Apache DSO directly. However if you compile/install PHP as an Apache DSO, then php_mapscript.so which is loaded by PHP is indirectly loaded into Apache. There are instructions to compile PHP as a DSO on the PHP website. The MapServer part doesn't change. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Wed Dec 1 08:26:35 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 1 Dec 2004 11:26:35 -0500 Subject: MapServer 4.4.0 released In-Reply-To: <41ADE765.20802@dmsolutions.ca> Message-ID: Julien-Samuel Lacroix wrote: > Hi, > You can look at bug 858 in MapServer bugzilla: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=858 > The mapfile reference docs have also been updated. Look for the ENCODING keyword in http://mapserver.gis.umn.edu/doc/mapfile-reference.html Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From assefa at DMSOLUTIONS.CA Wed Dec 1 08:26:37 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 1 Dec 2004 11:26:37 -0500 Subject: WFS Problems In-Reply-To: <41ACD675.3080005@karsten-lessing.de> Message-ID: One other thing you can try is to force mapserver to send Get request to the wfs server by adding the following metadata on your layer (default is Post) : "wfs_request_method" "GET". You should also test the wfs_server by manulally sending some requests to make sure that that the wfs responsd properly. Does the http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&&REQUEST=GetFeature returns something for you (I does not work for me but It might me an internal URL) ? Later, K. Lessing wrote: > Hi Bart, > (and dear List Members), > > first of all I would like to apologize my late response on your quick > answer! > Unfortunatelly I was too busy to spend time on my WFS problem the last > couple of hours. > > Regarding your answer I chanched the string: > > CONNECTION > "http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&" > > to: > CONNECTION "http://babyz.uni-muenster.de?/wfs/WFS?" > (you find the whole mapfile at the bottom of my answer) > > This resulted in the following gml-file which was stored in the /tmp > directory: > > > > 404 Not Found > >

Not Found

> The requested URL /wfs/wfs was not found on this server.

>


>
Oracle HTTP Server Powered by Apache/1.3.22 Server at > BabyZ.geoinformatik.geo.uni-muenster.de Port 80
> > > > Than I chanced the CONNECTION string to: > > CONNECTION "http://babyz.uni-muenster.de?" > > This resulted in the message of following gml-file: > > > > 405 Method Not Allowed > >

Method Not Allowed

> The requested method POST is not allowed for the URL /index.html.

>


>
Oracle HTTP Server Powered by Apache/1.3.22 Server at > BabyZ.geoinformatik.geo.uni-muenster.de Port 80
> > > As you mentioned earlier the WFS Server does not seem to be able to cope > with the POST request. > What does this mean ... and what can I do now? > For the first steps with WFS it might be an more promissing way to start > with another WFS server which is able to work with POST requests? > Would you - Or anybody else - know another WFS server and would also be > able to give me the necessary coordinates? > > many thanks beforehand > Karsten > > > (the changed mapfile) > > MAP > NAME "wfs_client" > SIZE 500 600 > IMAGECOLOR 255 255 255 > EXTENT 9000 5500000 1000000 5600000 > STATUS ON > PROJECTION > "init=epsg:4326" > END > > WEB > LOG "wfs_client.log" > TEMPLATE "/srv/www/cgi-bin/docs/template5.htm" > IMAGEPATH /var/tmp/ > IMAGEURL tmp > END > > OUTPUTFORMAT > NAME PNG > DRIVER "GDAL/PNG" > MIMETYPE "image/png" > IMAGEMODE RGBA > EXTENSION "png" > END > > LAYER > NAME "WaterLevel" > TYPE LINE > STATUS ON > CONNECTION "http://babyz.uni-muenster.de?" > CONNECTIONTYPE WFS > PROJECTION > "init=epsg:4326" > END > METADATA > "wfs_version" "1.0.0" > "wfs_typename" "bafg2" > "wfs_service" "WFS" > "wfs_connectiontimeout" "2000" > "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" > "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" > END > # CLASSITEM "lineId" > CLASS > # EXPRESSION '124.0' > Color 200 200 200 > END > END > END > > > > Bart van den Eijnden schrieb: > >> Hi, >> >> could you try using a connection string without parameters. The typename >> you set through metadata differs from the typename you specify in the >> connection. The preferred way to do this now is to set all the variables >> through the METADATA and not in the connection string. >> >> CONNECTION "http://babyz.uni-muenster.de/wfs/WFS?" >> >> Also, does your WFS server support HTTP POST requests? >> >> Are there any error messages in your error logs? Is the gml actually >> being >> downloaded to the tmp directory? >> >> Best regards, >> Bart >> >> On Mon, 29 Nov 2004 16:56:13 +0100, K. Lessing >> wrote: >> >>> Dear List member, >>> >>> I am new with the work on mapserver as wfs-client. >>> I am running Mapserver 4.2.5. with the support of all necessary >>> libraries on >>> Suse 9.1. >>> I read the How2 instruction page for setting up an WFS-Layer. >>> Unfortunatelly it does not work. >>> Does anybody maybe have a clue what could be wrong? >>> Please have a look on the following map file. >>> >>> thanx beforehand >>> K. Lessing >>> >>> >>> MAP >>> NAME "wfs_client" >>> SIZE 500 700 >>> IMAGECOLOR 50 50 50 >>> EXTENT 9000 5500000 1000000 5600000 >>> STATUS ON >>> PROJECTION >>> "init=epsg:32632" >>> END >>> >>> WEB >>> TEMPLATE "template5.html" >>> IMAGEPATH "/srv/www/htdocs/tmp/" >>> IMAGEURL "/tmp/" >>> END >>> >>> OUTPUTFORMAT >>> NAME "Farbenfroh" >>> DRIVER "GDAL/JPEG" >>> MIMETYPE "image/jpeg" >>> IMAGEMODE RGB >>> EXTENSION "jpeg" >>> END >>> >>> LAYER >>> NAME "WaterLevel" >>> TYPE LINE >>> STATUS DEFAULT >>> CONNECTION >>> "http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&" >>> >>> >>> CONNECTIONTYPE WFS >>> PROJECTION >>> "init=epsg:32632" >>> END >>> METADATA >>> "wfs_version" "1.0.0" >>> "wfs_typename" "bafg2" >>> "wfs_service" "WFS" >>> "wfs_connectiontimeout" "60" >>> "wfs_latlonboundingbox" "9000 5500000 1000000 5600000" >>> "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" >>> END >>> CLASSITEM "lineId" >>> CLASS >>> EXPRESSION '124.0' >>> Color 200 200 200 >>> END >>> END >>> END >> >> >> >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From dbarron at DSWLLC.COM Wed Dec 1 08:32:59 2004 From: dbarron at DSWLLC.COM (Dan Barron) Date: Wed, 1 Dec 2004 08:32:59 -0800 Subject: simple mapserver instrucctions don't work!! In-Reply-To: <20041201151133.84559.qmail@web25106.mail.ukl.yahoo.com> Message-ID: Jose, I understand your frustration having gone through this not so long ago myself. Be sure to read all the previous threads on the subject as well. OK, from what I understand, there are a few things to check and pardon me if I am too verbose or do not have enough information on "why" these items are necessary. I am assuming you are using tomcat on some sort of U/Linux platform. 1) The java class that loads the mapscript library or the jar file that includes the class that loads the library must be in the /common/lib directory. for example: the jar file I is use - dswllc-mapscript.jar - that has the JavaMapscript.class (which is shown below and loads the mapscript library) is located in my /common/lib directory 2) As stated in previous threads, you *cannot* have the java class that loads the mapscript library in the /WEB-INF/classes directory. And you cannot have a jar file that includes the class that loads the library in the /WEB-INF/lib directory. for example: I could not place the above mentioned files in my /WEB-INF/lib or /WEB-INF/classes directories or I would get the "Library already loaded" error. 3) The mapscript.jar file created when compiling the java mapscript for Mapserver can also be in the /common/lib directory (if you want it available to all web apps under Tomcat), or in your /WEB-INF/lib directory. This is the jar file created when you run make in the /mapscript/java directory. Essentially once you run make in the /mapscript/java directory your should copy the mapscript.jar file to the /common/lib or your /WEB-INF/lib directory and the libmapscript.so file to a location the system knows to look for libraries - such as /usr/local/lib for example: In my configuration I copy the mapscript.jar file to my /common/lib directory and my libmapscript.so file to /usr/local/lib/special 4) You should set your environment variable LD_LIBRARY_PATH to the include the path the to libmapscript.so and/or edit your /etc/lib.so.conf file to include the path to the llibmapscript.so file - or just place it in a directory the system already knows to look for libraries - such as /usr/local/lib Hope that helps. Dan At 07:11 AM 12/1/2004, Jose Luis Gonzalez wrote: >I am working in java, with servlets. I can be able to load the library (I >think) but Its says that another class had already loaded it, because even >using the program you propose me it gives me an UnsatisfiedLinkError. >The great problem is that I can not acceed to the mapserver objects as you >say. >I think the libmapserver.so is not in the correct place.And I included it >in the path, but it seems he doesn't get it. >So if you have any sugestions please tell me. > >thank you > >Jose Luis > >n Barron wrote: >Jose Luis, > >What is your scenario again? You can load the mapscript library - and >prove it is loaded? Then you cannot create any mapserver objects? > >Please try to use the following files for a simple test. The first file >is the java object that loads the libmapscript.so. The second is simple >jsp file that can be used to create an instance of JavaMapscript, then >just print out its version info. > >Dan > > >>~~~~~~~~~ File - JavaMapscript.java ~~~~~~~~~~~~~~~~<< > >package edu.umn.gis.java.mapscript; > >/** > * Created by user: umberto at unicolet.org > * Date: May 23, 2004 > * License: GPL > */ > >public class JavaMapscript { > > private static JavaMapscript instance = null; > > private JavaMapscript() { > try { > System.loadLibrary("mapscript"); > } catch (Exception e) { > e.printStackTrace(); > System.err.println("* error loading native library *"); > System.err.println("Error is: "+e); > } > System.out.println(" * mapscript native library loaded *"); > } > > public static JavaMapscript getInstance() { > if ( instance == null ) { > instance = new JavaMapscript(); > } > return instance; > } >} > > > >>~~~~~~~~ FILE - test-mapsctipt.jsp ~~~~~~~~~<< > ><%@ page import="edu.umn.gis.mapscript.*"%> ><% > out.print("
loading mapscript library...
"); > > /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > * Load the libmapscript.so native library just once > * JavaMapscript class will ensure it is only loaded once > *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ > edu.umn.gis.java.mapscript.JavaMapscript.getInstance(); > > out.print("
mapscript library loaded sucessfully...
"); > > mapscript ms = new mapscript(); > > out.print("
mapscript library version: " + ms.msGetVersion() + > "
"); > >%> > >At 08:11 AM 11/30/2004, Jose Luis Gonzalez wrote: > >>I have wrote this email to the mapserver mailing list, and I do not >>obtain any solution. I think you had a similar problem, so could you help >>me please. >>I think it could be the libmapscript.so that is not locolized, but it >>apears correctly in the paths of my server...so I don't know what is the >>problem.(I send you how the paths are set in a .jpg file) >> >>Thank you >> >>Jose Luis >> >>p.d. I have tried with different mapserver instructions like mapObj map = >>new mapObj("test.map"); and I always obtain the same error. >>I am using mapserver 4.2.4. >>All I wanted to do is to do any simple mapserver instructions to see that >>everything works. >>I have tried the demos that apear when you install mapserver, but I >>wanted to see it work with my own code and deploying my archives to the >>server. >>For example it will be great if i could manage to just draw a .map file >>for instance as a response to the client. >>Do you now how to do this, or what easy instrctions I can use to see if >>it works? >> >>Thank you >> >>Jose Luis >>n Gillies wrote: >>On Nov 29, 2004, at 4:26 AM, Jose Luis Gonzalez wrote: >> > --0-82611386-1101727598=:30831 >> > Content-Type: text/plain; charset=iso-8859-1 >> > Content-Transfer-Encoding: 8bit >> > >> > This is my code: >> > First of all I have this file: >> > >> > package javamaps; >> > >> > public class MapserverLibLoad{ >> > public static void loadLibrary() throws UnsatisfiedLinkError{ >> > System.loadLibrary("mapscript"); >> > } >> > } >> > >> > Then this is the principal program, as you see it is a servlet: >> > >> > import javamaps.*; >> > import edu.umn.gis.mapscript.*; >> > import javax.ejb.*; >> > import javax.xml.parsers.*; >> > import javax.xml.transform.*; >> > import javax.xml.transform.dom.*; >> > import org.w3c.dom.*; >> > import java.sql.*; >> > import javax.sql.*; >> > import javax.naming.*; >> > >> > import javax.servlet.*; >> > import javax.servlet.http.*; >> > import java.io.*; >> > public class test2 extends HttpServlet{ >> > >> > InitialContext initialContext=null; >> > >> > static{ >> > try{ >> > MapserverLibLoad.loadLibrary(); >> > }catch(UnsatisfiedLinkError e){ >> > e.printStackTrace(); >> > System.out.println("CONTINUE"); >> > } >> > } >> > >> > >> > / >> > /---------------------------------------------------------------------- >> > ------------------------------------------------------ >> > >> > private Connection createDatabaseConnection()throws EJBException{ >> > DataSource dataSource; >> > Connection connection; >> > PreparedStatement stmt; >> > try{ >> > dataSource = (DataSource) initialContext.lookup("jdbc/lbs"); >> > connection= dataSource.getConnection(); >> > //System.out.println(" >> > DATABSE:::::"+connection.getMetaData().getUserName()); >> > return connection; >> > }catch (SQLException e){ >> > throw (new EJBException(e)); >> > }catch (NamingException e){ >> > throw (new EJBException(e)); >> > } >> > } >> > >> > >> > >> > / >> > /---------------------------------------------------------------------- >> > ------------------------------------------------------ >> > public void init (ServletConfig cfg){ >> > try{ >> > System.out.println("Try to init servlet"); >> > System.out.flush(); >> > initialContext= new InitialContext(); >> > }catch(Exception e){ >> > throw (new EJBException(e)); >> > } >> > >> > }//fin init >> > >> > public void service (HttpServletRequest req, HttpServletResponse res){ >> > Connection conexion=null; >> > String imei=null; >> > PrintWriter out=null; >> > Statement orden=null; >> > ResultSet rs=null; >> > String SQL=null; >> > >> > try{ itemObj item = new itemObj(); >> > System.out.println(" BIG NAME >> > :>>"+item.getName()+"<<"); >> > >> > conexion=this.createDatabaseConnection(); >> > imei=req.getParameter("IMEI"); >> > out=res.getWriter(); >> > SQL="SELECT * FROM Client WHERE Name="; >> > SQL=SQL+"'"+imei+"'"; >> > orden=conexion.createStatement(); >> > rs=orden.executeQuery(SQL); >> > res.setContentType("text/html"); >> > out.println(""); >> > out.println(" "); >> > rs.next();//I move to the first row >> > out.println(" >>"); >> > out.println(" >>"); >> > out.println(" >>"+rs.getString("Name")); >> > out.println(" "+rs.getString("Mobile")); >> > >> > out.println(" "+rs.getString("Telephone_Number")); >> > out.println(" >>"); >> > while (rs.next()){ >> > out.println(" >>"+rs.getString("Name")); >> > out.println(" "+rs.getString("Mobile")); >> > >> > out.println(" "+rs.getString("Telephone_Number")); >> > out.println(" >>"); >> > } >> > out.println(""); >> > >> > >> > >> > }//fin try >> > catch (Exception e){ >> > System.out.println(e); >> > }catch (Throwable e){ >> > System.out.println("WRONGG POINT"); >> > e.printStackTrace(); >> > }finally{ >> > try{ >> > out.close(); >> > rs.close(); >> > conexion.close(); >> > orden.close(); >> > }catch(Exception e){ >> > throw (new EJBException(e)); >> > } >> > >> > }//fin service >> > >> > } >> > } >> > >> > It seems as like he can't reach the mapserver librarys and I don't >> > know why.It gives me this error: >> > >> > java.lang.UnsatisfiedLinkError: new_itemObj >> > >> > Can someone help me? >> > Know what I'm doing wrong? >> > >> > Thank you >> > >> > Jose Luis >> > >>Jose Luis, >>1) it is *very* important that you mention which version of MapServer >>you use! The mapscript module has changed very much from 3.6 to 4.4. >>2) do not try to use itemObj, it is not functional. We use SWIG to >>generate the mapscript wrapper for Java, and it is very permissive, >>with the result that non-functional classes can be accidently >>added to mapscript. I'm going to shut itemObj out of the final 4.4 >>release. >>cheers, >>Sean >> >> >>-- >>Sean Gillies >>sgillies at frii dot com >>http://users.frii.com/sgillies >> >> >> >> >>Nuevo Correo Yahoo! >> >> >> >> >> >>Nuevo Correo Yahoo! > > > > >Nuevo Correo Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Wed Dec 1 08:54:45 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 1 Dec 2004 11:54:45 -0500 Subject: question about new Symbol as a file, for a certain class In-Reply-To: <000001c4d730$e1453df0$7c00a8c0@zamolxe> Message-ID: Hi Calin, You should always use the MapServer mailing list for questions (here is the link to join in case you are not already on the list: http://lists.umn.edu/archives/mapserver-users.html). I think your symbol path is correct. I think the only thing missing is a COLOR. e.g. CLASS SIZE 8 NAME "Cities" SYMBOL "./images/test.gif" COLOR 0 0 0 END jeff Calin NITU (IG) wrote: > Hi Jeff, > > > > Due to the new installed server I also upgraded to 4.2.5. > > > > I noticed that the SYMBOL is a little bit changed > > > > SYMBOL [integer|string|filename] > > The symbol name or number to use for all features if attribute tables > are not used. The number is the index of the symbol in the symbol file, > starting at 1, the 5th symbol in the file is therefore symbol number 5. > You can also give your symbols names using the /NAME/ keyword in the > symbol definition file, and use those to refer to them. Default is 0, > which results in a single pixel, single width line, or solid polygon > fill, depending on layer type. > > You can also specify a gif or png filename. The *path is relative to the > location of the mapfile.* > > The map file(s) are located on absolute path: > /web/internetgids.be/gemeentekaarten/map-files > > > > The symbols are located on absolute path: > /web/internetgids.be/maps/symbols/klanten/ > > > > So .. in the map file it should be: > > class > > status on > > expression /1240/ > > name "1240" > > symbol '../../maps/symbols/klanten/1240.png' > > end > > > > Still the symbol is not displayed?? > > > > The original ? with absolute path worked > > > > symbol '/web/internetgids.be/maps/symbols/klanten/1240.png' > > > > I tried also to save he image as GIF?. Still no display! > > > > Any hints? > > > > Thank you, > > Calin > > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From ierickson at ANALYGIS.COM Wed Dec 1 08:49:06 2004 From: ierickson at ANALYGIS.COM (Ian Erickson) Date: Wed, 1 Dec 2004 09:49:06 -0700 Subject: Problems with Dynamic Layer and Transparency Message-ID: I must be doing something wrong (MapServer 4.2.5, PHP 4, Apache 2, Windows 2000 Pro) . I've been able to create a dynamic layer, add points to this layer and set the color and symbol styles for all objects. What I have not been able to do is set the transparency for the layer. If I manually set the transparency for any layer in my .MAP file, I have no problem, but I've tried a number of different ways, all with no success. This is what I'm doing: $daLayer = ms_newLayerObj($map); $daLayer->set("type", MS_LAYER_POINT); $daLayer->setProjection("init=epsg:4326"); $daLayer->set("status", MS_ON); //Setting this property seems to have absolutely no effect...WHY? $daLayer->set("transparency", 40); //Alternatively, I've tried the following with the no results... $daLayer->transparency = 40; $class = ms_newClassObj($daLayer); $class->label->color->setRGB(0,0,0); $class->label->outlinecolor->setRGB(255,255,255); $class->label->set("type", MS_TRUETYPE); $class->label->set("size", 7); $class->label->set("font", "arial-bold"); $class->label->set("position", MS_UR); $style = ms_newStyleObj($class); $style->color->setRGB(128,0,0); $style->outlinecolor->setRGB(255,255,255); $style->set("symbolname", "circle"); $style->set("size", 12); $point = ms_newPointObj(); $point->setXY(-122.0, 38.0); $lineObj = ms_newLineObj(); $lineObj->add($point); $shapeObj = ms_newShapeObj(MS_SHAPE_POINT); $shapeObj->add($lineObj); $shapeObj->set("text", "MY LABEL"); $daLayer->addFeature($shapeObj); $point->draw($map, $daLayer, $mapimage, 0, "MY LABEL"); $shapeObj->free(); $lineObj->free(); $point->free(); Any help would be most appreciated! -- Ian Erickson AnalyGIS, LLC Gold Canyon, AZ 85218 http://www.analygis.com/ From hobu at IASTATE.EDU Wed Dec 1 09:04:07 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 1 Dec 2004 11:04:07 -0600 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: Message-ID: Nicolas, You need to download the GeoExpress SDK for Windows - vc6 SDK rather than the vc7.1 version. It is on the SDK download page right above the 7.1 version. I don't think the 7.1 version will work, but I'm not 100% sure on that. Howard At 09:50 AM 12/1/2004, Fortin,Nicolas [SteFoy] wrote: >Oups...sorry, I didn't saw this line : You may need to download the = >MrSID SDK for vc6 at http://developer.lizardtech.com/data/download/ in = >order to use these binaries.=20 > >The only SDK available for download on this site for windows is = >GeoExpress SDK for Windows - vc7.1 so I suppose it's the right one. > >I am dowloading it right now! > >Thanks a lot for these binaries Howard! > >Nicolas > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De = >la part de Fortin,Nicolas [SteFoy] >Envoy=E9 : Wednesday, December 01, 2004 10:10 AM >=C0 : MAPSERVER-USERS at LISTS.UMN.EDU >Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows = >Binaries (Oracle, SDE, and others) > > >I have the same msg with win2k, IIS and Oracle... > >Nicolas > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De = >la part de Eduin Carrillo Envoy=E9 : Tuesday, November 30, 2004 9:10 PM = >=C0 : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] = >4.4 Windows Binaries (Oracle, SDE, and others) > > > --- Howard Butler escribi=F3: > > All, > > > > I have compiled what I am calling the "kitchen sink" Windows binaries > > and made them available for download. They are located at=20 > > . Here is a quick rundown of = > > > what is available for support: > > > > Outputs: GIF, JPEG, PNG, PDF, and SWF > > Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, > > depending on build type). > > Servers: WCS, WFS, and WMS > > Clients: WFS and WMS > > GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus many = > > > more) OGR formats: PostGIS, GML, & ODBC (plus many more) > > > > There are 4 build types, and you will need to choose the one that > > appropriately does what you want with respect to Oracle and SDE as the = > > > DLLs required to use those are not freely available. SDE and Oracle=20 > > builds require your own DLLs. SDE was built against ArcSDE 9.0, and=20 > > will require the 9.0 DLLs. Oracle was built against the Oracle 9.2=20 > > client libraries and will require a 9.2 oci.dll. > > > > MapScript > > Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are > > also available at this website in the same 4 configurations. The Java = > > > MapScript is known to pass the test cases that exist in CVS, but I am=20 > > not a Java programmer, so I don't know of the rest of their utility. =20 > > I'd be interested in hearing reports of how well they work for you. > > > > Congrats to all those who helped work on a great release. > > > > Howard > > > >This binary do not works in my system (WINXP SP2). Warning is " System = >can't find lti_dsdk_dll.dll" > > >=3D=3D=3D=3D=3D >Eduin Yesid Carrillo Vega >yecarrillo at yahoo.com >COLOMBIA > >_________________________________________________________ >Do You Yahoo!? >Informaci=F3n de Estados Unidos y Am=E9rica Latina, en Yahoo! Noticias. = >Vis=EDtanos en http://noticias.espanol.yahoo.com From lists at WEBMAPIT.COM.BR Wed Dec 1 09:10:13 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Wed, 1 Dec 2004 15:10:13 -0200 Subject: error handling TIFF image Message-ID: Hi folks, I have a SPOT image and I?m using MapServer 3.6.6 but I?m getting the following error message when trying to test my mapfile using "mode=map": *drawTIFF(): Image handling error. Only colormapped and grayscale images are supported. * ===> My MapFile: MAP EXTENT 192876.831 7582480.866 269776.831 7655720.866 IMAGETYPE png SIZE 800 600 LAYER DATA "/local/spot_images/5_713393_20030615_131948_2J.tif" NAME "spot" STATUS DEFAULT TYPE RASTER END END ===> My SPOT image ?gdalinfo? result: Driver: GTiff/GeoTIFF Size is 7690, 7324 Coordinate System is: PROJCS["SAD69 / UTM zone 23S", GEOGCS["SAD69", DATUM["South_American_Datum_1969", SPHEROID["GRS 1967",6378160,298.2471674269942, AUTHORITY["EPSG","7036"]], AUTHORITY["EPSG","6291"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4291"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-45], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",10000000], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","29183"]] Origin = (192876.831462,7655720.866171) Pixel Size = (10.00000000,-10.00000000) Metadata: TIFFTAG_SOFTWARE=IMAGINE TIFF Support Copyright 1991 - 1999 by ERDAS, Inc. All Rights Reserved @(#)$RCSfile: etif.c $ $Revision: 1.10.1.9 $ $Date: 2003/11/13 19:25:49EST $ TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 192876.831, 7655720.866) ( 47d57'27.30"W, 21d10'26.44"S) Lower Left ( 192876.831, 7582480.866) ( 47d58'15.56"W, 21d50'5.47"S) Upper Right ( 269776.831, 7655720.866) ( 47d13'3.11"W, 21d11'7.24"S) Lower Right ( 269776.831, 7582480.866) ( 47d13'39.32"W, 21d50'47.66"S) Center ( 231326.831, 7619100.866) ( 47d35'36.34"W, 21d30'38.21"S) Band 1 Block=7690x1 Type=Byte, ColorInterp=Red Band 2 Block=7690x1 Type=Byte, ColorInterp=Green Band 3 Block=7690x1 Type=Byte, ColorInterp=Blue Band 4 Block=7690x1 Type=Byte, ColorInterp=Alpha ===> My MapServer dump version: MapServer version 3.6.6 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=TTF INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE What is wrong with my image? and a bad detail: I can?t upgrade to a new MapServer version and can?t recompile it using features like PROJ or GDAL... I mean: I have to put this image to work using this current enviroment set! thanks in advance. Eduardo Patto Kanegae http://www.webmapit.com.br ICQ: 303747254 Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** From nicolas.fortin at EC.GC.CA Wed Dec 1 09:10:58 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Wed, 1 Dec 2004 12:10:58 -0500 Subject: [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Message-ID: Hi Howard, I downloaded the version 7.1 and the only other I need to make it work is MSVCP71.dll I got it and it works fine now though I didn't make intensive test from now. Thanks! Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Howard Butler Envoy? : Wednesday, December 01, 2004 12:04 PM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Nicolas, You need to download the GeoExpress SDK for Windows - vc6 SDK rather than the vc7.1 version. It is on the SDK download page right above the 7.1 version. I don't think the 7.1 version will work, but I'm not 100% sure on that. Howard At 09:50 AM 12/1/2004, Fortin,Nicolas [SteFoy] wrote: >Oups...sorry, I didn't saw this line : You may need to download the = >MrSID SDK for vc6 at http://developer.lizardtech.com/data/download/ in >= order to use these binaries.=20 > >The only SDK available for download on this site for windows is = >GeoExpress SDK for Windows - vc7.1 so I suppose it's the right one. > >I am dowloading it right now! > >Thanks a lot for these binaries Howard! > >Nicolas > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De >= la part de Fortin,Nicolas [SteFoy] Envoy=E9 : Wednesday, December 01, >2004 10:10 AM =C0 : MAPSERVER-USERS at LISTS.UMN.EDU >Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows = >Binaries (Oracle, SDE, and others) > > >I have the same msg with win2k, IIS and Oracle... > >Nicolas > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De >= la part de Eduin Carrillo Envoy=E9 : Tuesday, November 30, 2004 9:10 >PM = =C0 : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: >[UMN_MAPSERVER-USERS] = 4.4 Windows Binaries (Oracle, SDE, and others) > > > --- Howard Butler escribi=F3: > > All, > > > > I have compiled what I am calling the "kitchen sink" Windows > > binaries and made them available for download. They are located > > at=20 . Here is a quick > > rundown of = > > > what is available for support: > > > > Outputs: GIF, JPEG, PNG, PDF, and SWF > > Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, > > depending on build type). > > Servers: WCS, WFS, and WMS > > Clients: WFS and WMS > > GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus > > many = > > > more) OGR formats: PostGIS, GML, & ODBC (plus many more) > > > > There are 4 build types, and you will need to choose the one that > > appropriately does what you want with respect to Oracle and SDE as > > the = > > > DLLs required to use those are not freely available. SDE and > > Oracle=20 builds require your own DLLs. SDE was built against ArcSDE > > 9.0, and=20 will require the 9.0 DLLs. Oracle was built against the > > Oracle 9.2=20 client libraries and will require a 9.2 oci.dll. > > > > MapScript > > Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are > > also available at this website in the same 4 configurations. The > > Java = > > > MapScript is known to pass the test cases that exist in CVS, but I > > am=20 not a Java programmer, so I don't know of the rest of their > > utility. =20 I'd be interested in hearing reports of how well they > > work for you. > > > > Congrats to all those who helped work on a great release. > > > > Howard > > > >This binary do not works in my system (WINXP SP2). Warning is " System >= can't find lti_dsdk_dll.dll" > > >=3D=3D=3D=3D=3D >Eduin Yesid Carrillo Vega >yecarrillo at yahoo.com >COLOMBIA > >_________________________________________________________ >Do You Yahoo!? >Informaci=F3n de Estados Unidos y Am=E9rica Latina, en Yahoo! Noticias. >= Vis=EDtanos en http://noticias.espanol.yahoo.com From assefa at DMSOLUTIONS.CA Wed Dec 1 09:11:56 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 1 Dec 2004 12:11:56 -0500 Subject: Get Map Request with SLD gives 500 Internal Server error on Oracle Spatial layer In-Reply-To: Message-ID: of a was supported in 4.2.3. I just tried your sld locally (modifying on the named layers and attributes) and It worked ok with a 4.2.3 binary as weel as 4.4 binaries. Note that I am testing this on local shape files. Someone reported few weeks back that he had a problem with an sld and SDE layers. I am wondering if there is a problem in the query/sld when working with db layers. I am not setup here to make tests with SDE or Oracle unfortunatly but If someone out there could make (or has already done) tests with SLD and DB layers, I would like to hear the results. Later, Trent Burton wrote: > I am trying to use an SLD with my GetMap request. It seems to work fine > for a simple Filter with just one , but if I try to add > a second, using an , I get back a 500 Internal Server error. You can > see my SLD below. > > I look in the server log and see: > > [Tue Nov 30 08:43:16 2004] [error] [client 192.168.1.2] Premature end of > script headers: mapserv.exe > > Is of a supported with mapserver 4.2.3? > > Thanks, > > Trent Burton > Holonics Data Management Group Ltd. > > > > > > KCG_APP_DEVELOPMENT_POINTS > > xxx > > > > > > APPLICATION_ID > 20 > > > MAP_TYPE > 1 > > > > > > > star > > #ff0000 > > > 10.0 > > > > > > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From fwarmerdam at GMAIL.COM Wed Dec 1 09:20:02 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 1 Dec 2004 12:20:02 -0500 Subject: error handling TIFF image In-Reply-To: <20041201171014.15290.qmail@hm47.locaweb.com.br> Message-ID: On Wed, 1 Dec 2004 15:10:13 -0200, Eduardo Patto Kanegae wrote: > Hi folks, > > I have a SPOT image and I?m using MapServer 3.6.6 but I?m getting the following error message when trying to test my mapfile using "mode=map": > > *drawTIFF(): Image handling error. Only colormapped and grayscale images are supported. * ... > Band 1 Block=7690x1 Type=Byte, ColorInterp=Red > Band 2 Block=7690x1 Type=Byte, ColorInterp=Green > Band 3 Block=7690x1 Type=Byte, ColorInterp=Blue > Band 4 Block=7690x1 Type=Byte, ColorInterp=Alpha Eduardo, Your basic problem is that the built-in TIFF support does not support RGB or RGBA images. You need to use the GDAL link for reading rasters if you really want to do. Given your stated constraints of having to stick with 3.6.6 and not being able to re-compile with GDAL added to the mix, it seems you will have to reprocess your image externally into a form suitable for use with this version of mapserver. You can use the rgb2pct.py script distributed with GDAL to convert an RGB image to a pseudo-colored image you can use. However, I can't stress enough that it will be very difficult to get support from the community for a version of Mapserver as antique as 3.6.6. 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 yecarrillo at YAHOO.COM Wed Dec 1 12:24:23 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Wed, 1 Dec 2004 14:24:23 -0600 Subject: Jbox Working Sample Message-ID: I'm trying to work at first time with Jbox, using the "Map image swapping" feature. What I want is reload map images without reloading the rest of the page, using Php/MapScript. It doesn't work. Working samples of Php/JavaScript+Jbox are welcome. Thanks in advance ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From stisidore at GMAIL.COM Wed Dec 1 13:31:21 2004 From: stisidore at GMAIL.COM (Gayathri Swaminathan) Date: Wed, 1 Dec 2004 15:31:21 -0600 Subject: Number of users In-Reply-To: <41AD5285.9050201@dmsolutions.ca> Message-ID: Hi: AWStats should work just fine for this analysis.. Sounds like you guys have been a very busy time after the Twiki incident. Gayathri On Wed, 1 Dec 2004 00:11:33 -0500, Daniel Morissette wrote: > Daniel FAIVRE wrote: > > Hello, > > > > Is anybody have an idea of how many peoples use (and enjoy ;-) !) > > Mapserver ? > > > > For DM solutions: How many downloads ? > > > > Um... your question made me realize that we didn't have stats for our > maptools downloads any more. :( One more thing for the ToDo list. It > would definitely be nice to have those stats for the 4.4 release, and > perhaps combine them with downloads from UMN and from other locations > offering prebuilt binaries. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > From bigfoot at MAIN-TASK.COM Wed Dec 1 13:42:13 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Wed, 1 Dec 2004 16:42:13 -0500 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: My configuration steps (In Fedora): Hope that helps. -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com wlx wrote: > >How to compile mapserver to make it as a apache DSO? > > > >>Steven Monai wrote: >> >> >> >>>Hello, >>> >>>A quick question about the new v4.4.0 release: >>> >>>Scanning through the extensive changelog (wow, somebody's >>> >>> >>been busy!), >> >> >>>I see entries which lead me to hope that, with this version, >>> >>> >>it might >> >> >>>now be safe to use PHP/Mapscript with PHP loaded as an >>> >>> >>apache module, >> >> >>>rather than as an external CGI executable. Am I being overly >>> >>> >>optimistic? >> >> >>>Thanks, >>>-SM >>>-- >>> >>> >>> >>> >>> >>> >>I've been using phpmapscript for 3 days or so, and everything >>seems to work pretty well. >>I'm working with: >>Apache_1.3.33 >>php-5.0.2 >>mapserver-4.4.0-beta3 >>In fedora. >> >>Php5 is compiled as an Apache DSO. >> >>Best regards, >> >>-- >>Vladimir Ilich Guzm?n R. >>------------------------ >>http://maintask.com >> >> >> >> > > > > -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: configure.txt URL: From nasir_pcit at YAHOO.COM Wed Dec 1 19:43:05 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Wed, 1 Dec 2004 19:43:05 -0800 Subject: Shapelib Message-ID: Hi, I want to know extent and other attributes of a shape file. For this, I have downloaded a shapelib and unziped it but dont know how to use it. Please, anybody can help me by use it? Regards, Nasir --------------------------------- Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.blumer at EPFL.CH Wed Dec 1 23:40:25 2004 From: christian.blumer at EPFL.CH (Christian Blumer) Date: Thu, 2 Dec 2004 08:40:25 +0100 Subject: Shapelib Message-ID: You may use GDAL library which include a program called ogrinfo. the following command "ogrinfo -al " for a detailed description and "ogrinfo -al -so " for a summary. Christian ----- Original Message ----- From: nasir mahmood To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, December 02, 2004 4:43 AM Subject: [UMN_MAPSERVER-USERS] Shapelib Hi, I want to know extent and other attributes of a shape file. For this, I have downloaded a shapelib and unziped it but dont know how to use it. Please, anybody can help me by use it? Regards, Nasir ------------------------------------------------------------------------------ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. -------------- next part -------------- An HTML attachment was scrubbed... URL: From info at GEO-IT.COM Thu Dec 2 00:27:53 2004 From: info at GEO-IT.COM (GeoIT) Date: Thu, 2 Dec 2004 09:27:53 +0100 Subject: Java Mapscript: ProcessLegendTemplate throws error Message-ID: Dear experts, I used mapObj.processLegendTemplate successfully with mapserver 4.0. Now I try to upgrade to version 440 and get the following error using this method: Java.lang.UnknownError: Can't free NULL table Any ideas ? The code is: public String getProcessedLegendTemplate(mapObj mapObject) { String[] names = {"img", "legend", "scalebar", "ref"}; String[] values = {"", "", "", ""}; int numItems = 4; return mapObject.processLegendTemplate(names, values, numItems); } regards Andreas Paukner-Ruzicka ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** From eric.belenfant at AC-ORLEANS-TOURS.FR Thu Dec 2 03:01:59 2004 From: eric.belenfant at AC-ORLEANS-TOURS.FR (eric BELENFANT) Date: Thu, 2 Dec 2004 05:01:59 -0600 Subject: building mapserver 4.4.0 on a fedora core 2 Message-ID: Gabriel Moricz wrote: > gcc -O2 -Wall -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H > -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_MING_FLASH -DUSE_GD_GIF -DUSE_GD_PN > G -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DUSE_PDF -DUSE_GDAL -D > USE_POSTGIS -I/usr/local/include -I/usr/local/include -I/usr/local > /include -I/usr/local/pgsql/include -I/usr/local/include > > hp2img.o -L. -lmap -L/usr/local/lib -lgd -ljpeg -lfreetype -lpng -lz -lpd > f -ljpeg -lfreetype -lpng -lz -L/usr/local/lib -lproj -ljpeg -L/usr/local > /lib -lgdal.1.1 -lming -L/usr/local/pgsql/lib -lpq -L/usr/local/lib -lcurl > -lz -ldl -lz -lm -o shp2img > ./libmap.a(mappdf.o): In function `msDrawMarkerSymbolPDF': > mappdf.o(.text+0x1b26): undefined reference to `gdImageJpegPtr' > ./libmap.a(mappdf.o): In function `msDrawRasterLayerPDF': > mappdf.o(.text+0x22c4): undefined reference to `gdImageJpegPtr' > ./libmap.a(mappdf.o): In function `msSaveImagePDF': > mappdf.o(.text+0x2536): undefined reference to `gdImageJpegPtr' > ./libmap.a(mappdf.o): In function `msDrawWMSLayerPDF': > mappdf.o(.text+0x2dca): undefined reference to `gdImageJpegPtr' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > Sounds like you may have two copies of GD on your system. The configure may have found one that includes JPEG support (in /usr/lib, coming from the gd-devel RPM), but at link time it is another one that doesn't include JPEG that is being used (maybe one that you have installed in /usr/local/lib). Make sure there is only one set of libgd.so, libgd.a and GD header files, then rerun configure and make clean;make BTW, there are step by step instructions to compile on various flavours of Linux in the wiki: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?PHPMapScript I have the same problem on a fedora core 2 i followed the instructions about install on fedora i checked that only one GD is installed ( /usr/local/libgd.so !!!) so ??? eric From 0098klbe at EDU.FH-KAERNTEN.AC.AT Thu Dec 2 03:14:33 2004 From: 0098klbe at EDU.FH-KAERNTEN.AC.AT (Bernhard Klingseisen) Date: Thu, 2 Dec 2004 05:14:33 -0600 Subject: MapServer 4.4.0 released Message-ID: Hi, I cannot answer your question but want to add an extra questiuon instead. I've been trying to install the php_mapscript_44.dll extension with php5 (as an apache module) for some time but apache returns me an werror when starting: "PHP startuo: Unable to load dynamic library 'c:\web\php\ext\php_mapscript_44.dll' - the module was not found " (translated from German). The same happens for php_proj.dll I don't have problems with the other extensions, so the path must be right. Is there some incompatibility with PHP5? Although the change log promiseses at least experimental PHP5 support. I'm working with Apache 2 on windows XP. I use the php5 binaries for windows as a module. Do I have to install php as CGI? I hope somebody can help me with this issue. Bernie From fabien at CHRONOTECH.NET Thu Dec 2 03:31:02 2004 From: fabien at CHRONOTECH.NET (Fabien VINCENT) Date: Thu, 2 Dec 2004 12:31:02 +0100 Subject: Segmentation fault with php_mapscript Message-ID: Hi, I'will use php_mapscript on my web server. I have compiled mapserver 4.4.0 successfully, but when i try this : $map = ms_newMapObj($map_path.$map_file); the php script crash and print "Segmentation fault" My configuration : mapserver 4.4.0 Linux Red Hat 7.2 php 4.3.9 Could you help me ? Fabien. From wlx at MYGIS.ORG Thu Dec 2 05:00:46 2004 From: wlx at MYGIS.ORG (wlx) Date: Thu, 2 Dec 2004 21:00:46 +0800 Subject: how to show hdf in mapserver Message-ID: Hi all, I has compiled gdal with hdf4 support in my debian linux system,and compiled mapserver with gdal's support,and I know how to write the hdf's subdataset data line,but result is a blank image. My hdf is ASTER Level 1B data,and I can use gdal_translate utility to convert its subdataset as a image. Are there something wrong? Best regards, LiangXu Wang My map file: ---------------------- MAP NAME "hdf" STATUS ON EXTENT 97 37 102 42 SIZE 400 400 IMAGETYPE PNG UNITS DD WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" END LAYER NAME "hdf" STATUS ON DATA "HDF4_EOS:EOS_SWATH:AST_L1B_003_02182001042410_12162003180257.hdf:VNIR_Swath :ImageData1" TYPE RASTER UNITS DD SIZEUNITS PIXELS projection "proj=latlong" end END END From superbla3000 at GMX.NET Thu Dec 2 05:31:49 2004 From: superbla3000 at GMX.NET (Joerg P) Date: Thu, 2 Dec 2004 14:31:49 +0100 Subject: where is make? Message-ID: hello, I am trying to compile mapserver on Suse9.1 the first time. I run ./configure --with-proj --with-gdal --with-freetype --with-jpg --with-eppl --with-php=/usr/include/php-cgi --with-httpd=/usr/sbin/httpd2 --with-wmsclient and the output seems to be ok. But when I want to run make afterwards, the make command is not found, there is no make. Where is it? Maybe you could have a look at my configure output at the bottom of this mail. (I want to use mapserver to display shape files, connect to a wms server, use phpmapscript, use symbols and fonts.) best regards Joerg checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... no checking for lex... no checking for yywrap in -lfl... no checking for yywrap in -ll... no checking for bison... no checking for byacc... no checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no configure: checking where FreeType 2.x is installed...... checking for freetype-config... /usr/bin/freetype-config using libfreetype from -lfreetype checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed...... checking for zlibVersion in -lz... yes using libz from system libs. configure: checking where PNG is installed...... checking for png_init_io in -lpng... yes using libpng from system libs. configure: checking whether we should include JPEG support...... checking for jpeg_read_header in -ljpeg... yes using libjpeg from system libs. configure: checking where libXpm is installed...... checking for XpmFreeXpmImage in -lXpm... no XPM (libXpm) library cannot be found, possibly needed for GD configure: checking where libiconv is installed...... checking for libiconv_open in -liconv... no libiconv library cannot be found, possibly needed for GD configure: checking for GD 2.0.12 or higher...... checking for gdImageSetAntiAliased in -lgd... yes using libgd 2.0.12 (or higher) from system libs (-L/usr/lib -lgd -ljpeg -lfreetype -lpng -lz ). checking for gdImageCreate in -lgd... yes checking for gdImageGif in -lgd... no checking for gdImagePng in -lgd... yes checking for gdImageJpeg in -lgd... yes checking for gdImageWBMP in -lgd... yes checking for gdImageStringFT in -lgd... yes checking for gdImageGifPtr in -lgd... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from system libs. configure: checking whether we should include PDF support...... checking for PDF_setlinewidth in -lpdf... no checking for PDF_setrgbcolor in -lpdf... no checking for PDF_moveto in -lpdf... no checking for PDF_curveto in -lpdf... no checking for PDF_show_xy in -lpdf... no libpdf not found... PDF support not included. configure: checking whether we should include EPPL7 support...... including EPPL7 support. configure: checking whether we should include PROJ.4 support...... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support...... thread safe support disabled. configure: checking whether we should include ESRI SDE support...... ESRI SDE support not requested. configure: checking whether we should compile in MPATROL support...... MPATROL support not requested. configure: checking whether we should include OGR support...... checking for gdal-config... /usr/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes checking checking ms JPEG output... no we, have GDAL available. configure: checking whether we should include TIFF support...... disabled since gdal is in use checking if PostGIS support requested... no checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support...... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support...... OGC WFS Server support not requested. configure: checking whether we should include WMS Client Connections support...... configure: checking whether we should include WFS Client Connections support...... configure: checking for curl-config... checking for curl-config... /usr/bin/curl-config found libcurl version 7.11.0 OGC WMS Client Connections enabled (-DUSE_WMS_LYR). configure: checking HTTPD server (Apache) version... using user-supplied httpd (/usr/sbin/httpd2) /usr/sbin/httpd2 version is Apache/2.0.49 (2000049). Compiling with -DIGNORE_MISSING_DATA. configure: checking whether we should enable debug features...... configure: checking for PHP/MapScript module options...... checking for g++ -shared ... yes using 'g++ -shared' for dynamic linking checking for location of config.h or php_config.h... /usr/include/php-cgi/main/php_config.h checking whether we have PHP3 or PHP4... -DPHP4 checking whether we should use PHP's regex... no PHP/MapScript module configured. configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/php3/Makefile config.status: creating mapscript/java/Makefile From Toomas.Aas at RAAD.TARTU.EE Thu Dec 2 05:22:04 2004 From: Toomas.Aas at RAAD.TARTU.EE (Toomas Aas) Date: Thu, 2 Dec 2004 15:22:04 +0200 Subject: POLYGON layers not transparent with imagetype JPEG Message-ID: Hello! Until recently, we were using Mapserver 3.6.6 to run our web applications. Now we installed a new web server with all new software, including Mapserver 4.2.5: MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE We noticed an interesting problem with our applications: when we use some layer of type POLYGON which is filled with some kind of SYMBOL, this layer is not transparent. Here's an example snippet of a .map file (I omitted most of the layers for brevity): ------------------------------ CUT ------------------------------ NAME tartu SIZE 420 420 STATUS OFF IMAGECOLOR 255 255 255 IMAGETYPE JPEG EXTENT 6000 3000 15000 12000 UNITS METERS SHAPEPATH "/home/httpd/html/www.tartu.ee/mapserv/data" SYMBOLSET "/home/httpd/html/www.tartu.ee/mapserv/symbols/symbol.sym" FONTSET "/home/httpd/html/www.tartu.ee/mapserv/symbols/fonts.list" LAYER NAME krundipiirid TYPE POLYGON STATUS off DATA tartu_region CLASSITEM 'aadress' CLASS NAME 'Krundid' EXPRESSION /./ SYMBOL cross SIZE 4 OUTLINECOLOR 151 170 119 COLOR 235 255 211 END HEADER "krundipiirid_header.html" FOOTER "krundipiirid_footer.html" TEMPLATE "krundipiirid.html" END LAYER NAME T2000 GROUP pilt STATUS OFF TILEINDEX t2000 TYPE RASTER MAXSCALE 1500 MINSCALE 100 OFFSITE 255 255 255 END ------------------------------ CUT ------------------------------ Symbol cross is defined like this in the SYMBOLSET: ------------------------------ CUT ------------------------------ SYMBOL NAME "cross" TYPE vector POINTS 2 0 2 4 -99 -99 0 2 4 2 END END ------------------------------ CUT ------------------------------ Now, if we display both layers 'krundipiirid' and 'T2000' simultaneously, the objects in 'krundipiirid' layer completely cover the raster layer, whereas on our old server the raster could be seen through the objects in 'krundipiirid'. After a lot of hair-pulling, I noticed that this only happens if I specify IMAGETYPE JPEG. When specifying IMAGETYPE PNG (or not specifying IMAGETYPE at all), the layers behave as on our old server. In some cases, I could work around the problem by adding TRANSPARENCY to the polygon layer, but in some cases even this didn't help. I also tried briefly with Mapserver 4.4.0, but the behaviour seemed to be the same there. Since our .map files had other problems with 4.4.0, I went back to 4.2.5 for now. I am actually not an web/application developer but merely a server administrator, so I apologize in advance if I'm missing something blatantly obvious. I've been forced to deal with this since the developers are currently unreachable. A fun week this has been. -- Toomas Aas From bartvde at XS4ALL.NL Thu Dec 2 06:03:33 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 2 Dec 2004 15:03:33 +0100 Subject: POLYGON layers not transparent with imagetype JPEG In-Reply-To: Message-ID: Hi, JPEG does not support transparency. Try png or gif. Best regards, Bart > Hello! > > Until recently, we were using Mapserver 3.6.6 to run our web applications. > Now we installed a new web server with all new software, including > Mapserver 4.2.5: > > MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > We noticed an interesting problem with our applications: when we use some > layer of type POLYGON which is filled with some kind of SYMBOL, this layer > is not transparent. Here's an example snippet of a .map file (I omitted > most of the layers for brevity): > > ------------------------------ CUT ------------------------------ > NAME tartu > SIZE 420 420 > STATUS OFF > IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > EXTENT 6000 3000 15000 12000 > UNITS METERS > SHAPEPATH "/home/httpd/html/www.tartu.ee/mapserv/data" > SYMBOLSET "/home/httpd/html/www.tartu.ee/mapserv/symbols/symbol.sym" > FONTSET "/home/httpd/html/www.tartu.ee/mapserv/symbols/fonts.list" > > LAYER > NAME krundipiirid > TYPE POLYGON > STATUS off > DATA tartu_region > CLASSITEM 'aadress' > CLASS > NAME 'Krundid' > EXPRESSION /./ > SYMBOL cross > SIZE 4 > OUTLINECOLOR 151 170 119 > COLOR 235 255 211 > END > HEADER "krundipiirid_header.html" > FOOTER "krundipiirid_footer.html" > TEMPLATE "krundipiirid.html" > END > > LAYER > NAME T2000 > GROUP pilt > STATUS OFF > TILEINDEX t2000 > TYPE RASTER > MAXSCALE 1500 > MINSCALE 100 > OFFSITE 255 255 255 > END > ------------------------------ CUT ------------------------------ > > Symbol cross is defined like this in the SYMBOLSET: > > ------------------------------ CUT ------------------------------ > SYMBOL > NAME "cross" > TYPE vector > POINTS > 2 0 > 2 4 > -99 -99 > 0 2 > 4 2 > END > END > ------------------------------ CUT ------------------------------ > > Now, if we display both layers 'krundipiirid' and 'T2000' simultaneously, > the objects in 'krundipiirid' layer completely cover the raster layer, > whereas on our old server the raster could be seen through the objects in > 'krundipiirid'. > > After a lot of hair-pulling, I noticed that this only happens if I specify > IMAGETYPE JPEG. When specifying IMAGETYPE PNG (or not specifying IMAGETYPE > at all), the layers behave as on our old server. > > In some cases, I could work around the problem by adding TRANSPARENCY to > the polygon layer, but in some cases even this didn't help. > > I also tried briefly with Mapserver 4.4.0, but the behaviour seemed to be > the same there. Since our .map files had other problems with 4.4.0, I went > back to 4.2.5 for now. > > I am actually not an web/application developer but merely a server > administrator, so I apologize in advance if I'm missing something > blatantly > obvious. I've been forced to deal with this since the developers are > currently unreachable. A fun week this has been. > > -- > Toomas Aas > From sgillies at FRII.COM Thu Dec 2 06:32:37 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 2 Dec 2004 07:32:37 -0700 Subject: POLYGON layers not transparent with imagetype JPEG In-Reply-To: Message-ID: On Dec 2, 2004, at 6:22 AM, Toomas Aas wrote: > Hello! > > Until recently, we were using Mapserver 3.6.6 to run our web > applications. > Now we installed a new web server with all new software, including > Mapserver 4.2.5: > > MapServer version 4.2.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 > INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > We noticed an interesting problem with our applications: when we use > some > layer of type POLYGON which is filled with some kind of SYMBOL, this > layer > is not transparent. Here's an example snippet of a .map file (I omitted > most of the layers for brevity): > I just checked with MapServer 4.4 and 4.2.5 and cannot confirm this. I am able to draw a symbol-filled polygon which transparently overlays the background. Add a TRANSPARENCY 50 to the 'POLYGON' layer in mapserver/tests/test.map and execute ../shp2img -m test.map -o xtest.jpg -I JPEG produces the proper image. Sean > ------------------------------ CUT ------------------------------ > NAME tartu > SIZE 420 420 > STATUS OFF > IMAGECOLOR 255 255 255 > IMAGETYPE JPEG > EXTENT 6000 3000 15000 12000 > UNITS METERS > SHAPEPATH "/home/httpd/html/www.tartu.ee/mapserv/data" > SYMBOLSET "/home/httpd/html/www.tartu.ee/mapserv/symbols/symbol.sym" > FONTSET "/home/httpd/html/www.tartu.ee/mapserv/symbols/fonts.list" > > LAYER > NAME krundipiirid > TYPE POLYGON > STATUS off > DATA tartu_region > CLASSITEM 'aadress' > CLASS > NAME 'Krundid' > EXPRESSION /./ > SYMBOL cross > SIZE 4 > OUTLINECOLOR 151 170 119 > COLOR 235 255 211 > END > HEADER "krundipiirid_header.html" > FOOTER "krundipiirid_footer.html" > TEMPLATE "krundipiirid.html" > END > > LAYER > NAME T2000 > GROUP pilt > STATUS OFF > TILEINDEX t2000 > TYPE RASTER > MAXSCALE 1500 > MINSCALE 100 > OFFSITE 255 255 255 > END > ------------------------------ CUT ------------------------------ > > Symbol cross is defined like this in the SYMBOLSET: > > ------------------------------ CUT ------------------------------ > SYMBOL > NAME "cross" > TYPE vector > POINTS > 2 0 > 2 4 > -99 -99 > 0 2 > 4 2 > END > END > ------------------------------ CUT ------------------------------ > > Now, if we display both layers 'krundipiirid' and 'T2000' > simultaneously, > the objects in 'krundipiirid' layer completely cover the raster layer, > whereas on our old server the raster could be seen through the objects > in > 'krundipiirid'. > > After a lot of hair-pulling, I noticed that this only happens if I > specify > IMAGETYPE JPEG. When specifying IMAGETYPE PNG (or not specifying > IMAGETYPE > at all), the layers behave as on our old server. > > In some cases, I could work around the problem by adding TRANSPARENCY > to > the polygon layer, but in some cases even this didn't help. > > I also tried briefly with Mapserver 4.4.0, but the behaviour seemed to > be > the same there. Since our .map files had other problems with 4.4.0, I > went > back to 4.2.5 for now. > > I am actually not an web/application developer but merely a server > administrator, so I apologize in advance if I'm missing something > blatantly > obvious. I've been forced to deal with this since the developers are > currently unreachable. A fun week this has been. > > -- > Toomas Aas > > -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From fwarmerdam at GMAIL.COM Thu Dec 2 06:33:27 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 2 Dec 2004 09:33:27 -0500 Subject: Shapelib In-Reply-To: <20041202034305.57171.qmail@web14927.mail.yahoo.com> Message-ID: On Wed, 1 Dec 2004 19:43:05 -0800, nasir mahmood wrote: > > Hi, > > I want to know extent and other attributes of a shape file. For this, I have > downloaded a shapelib and unziped it but dont know how to use it. > > Please, anybody can help me by use it? Nasir, I would suggest you review the documentation and then ask this question on the shapelib mailing list so as to not unnecessarily distract mapserver users. If you just want to run the shpdump command to get the extents then you would need to first build it. As per the README this would be accomplished on windows by running the VC++ VCVARS.BAT and then issuing the command "nmake /f makefile.vc". If you are unwilling to build stuff from source - don't have a compiler, etc, then I would strongly suggest you instead use OGR. The ogrinfo utility can report shapefile extents, field list and dumps of all the features using a command like "ogrinfo -al abc.shp | more". Pre-built OGR utilities are available as part of the FWTools kit. http://fwtools.maptools.org/ 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 Thu Dec 2 06:58:27 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 2 Dec 2004 09:58:27 -0500 Subject: Shapefile field problem Message-ID: A good amount of fields aren't showing up in MapServer for me. I use the following PHP script to dump out all layers and their fields for debugging. Does MapServer have problems with certain data types or certain values in a row? Thanks for any help. -Abe [snip] for ($i = 0; $i < $map->numlayers; $i++) { $l = $map->getLayer($i); putBrLine($l->name); if ($l->type == 2) // Shape files with data. { $l->open(); $s = $l->getShape(-1, 0); $vals = $s->values; while ($fld = current($vals)) { putBrLine("  ".key($vals)); next($vals); } $s->free(); $l->close(); } } From nicolas.fortin at EC.GC.CA Thu Dec 2 07:00:17 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Thu, 2 Dec 2004 10:00:17 -0500 Subject: [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Message-ID: Now I tested it on my Web Server and I got this message if I call an oracle layer ... msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. Connection failure. I can't find anything on this error Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fortin,Nicolas [SteFoy] Envoy? : Wednesday, December 01, 2004 12:11 PM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Hi Howard, I downloaded the version 7.1 and the only other I need to make it work is MSVCP71.dll I got it and it works fine now though I didn't make intensive test from now. Thanks! Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Howard Butler Envoy? : Wednesday, December 01, 2004 12:04 PM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Nicolas, You need to download the GeoExpress SDK for Windows - vc6 SDK rather than the vc7.1 version. It is on the SDK download page right above the 7.1 version. I don't think the 7.1 version will work, but I'm not 100% sure on that. Howard At 09:50 AM 12/1/2004, Fortin,Nicolas [SteFoy] wrote: >Oups...sorry, I didn't saw this line : You may need to download the = >MrSID SDK for vc6 at http://developer.lizardtech.com/data/download/ in >= order to use these binaries.=20 > >The only SDK available for download on this site for windows is = >GeoExpress SDK for Windows - vc7.1 so I suppose it's the right one. > >I am dowloading it right now! > >Thanks a lot for these binaries Howard! > >Nicolas > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De >= la part de Fortin,Nicolas [SteFoy] Envoy=E9 : Wednesday, December 01, >2004 10:10 AM =C0 : MAPSERVER-USERS at LISTS.UMN.EDU >Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows = >Binaries (Oracle, SDE, and others) > > >I have the same msg with win2k, IIS and Oracle... > >Nicolas > >-----Message d'origine----- >De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De >= la part de Eduin Carrillo Envoy=E9 : Tuesday, November 30, 2004 9:10 >PM = =C0 : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: >[UMN_MAPSERVER-USERS] = 4.4 Windows Binaries (Oracle, SDE, and others) > > > --- Howard Butler escribi=F3: > > All, > > > > I have compiled what I am calling the "kitchen sink" Windows > > binaries and made them available for download. They are located > > at=20 . Here is a quick > > rundown of = > > > what is available for support: > > > > Outputs: GIF, JPEG, PNG, PDF, and SWF > > Inputs: GDAL, OGR, PostGIS, and Shapefile. (SDE and/or Oracle, > > depending on build type). > > Servers: WCS, WFS, and WMS > > Clients: WFS and WMS > > GDAL formats: NetCDF, JPEG2000, ECW, TIFF, GeoTIFF, & MrSID (plus > > many = > > > more) OGR formats: PostGIS, GML, & ODBC (plus many more) > > > > There are 4 build types, and you will need to choose the one that > > appropriately does what you want with respect to Oracle and SDE as > > the = > > > DLLs required to use those are not freely available. SDE and > > Oracle=20 builds require your own DLLs. SDE was built against ArcSDE > > 9.0, and=20 will require the 9.0 DLLs. Oracle was built against the > > Oracle 9.2=20 client libraries and will require a 9.2 oci.dll. > > > > MapScript > > Python MapScript for Python 2.3 and Java MapScript for JDK 1.5 are > > also available at this website in the same 4 configurations. The > > Java = > > > MapScript is known to pass the test cases that exist in CVS, but I > > am=20 not a Java programmer, so I don't know of the rest of their > > utility. =20 I'd be interested in hearing reports of how well they > > work for you. > > > > Congrats to all those who helped work on a great release. > > > > Howard > > > >This binary do not works in my system (WINXP SP2). Warning is " System >= can't find lti_dsdk_dll.dll" > > >=3D=3D=3D=3D=3D >Eduin Yesid Carrillo Vega >yecarrillo at yahoo.com >COLOMBIA > >_________________________________________________________ >Do You Yahoo!? >Informaci=F3n de Estados Unidos y Am=E9rica Latina, en Yahoo! Noticias. >= Vis=EDtanos en http://noticias.espanol.yahoo.com From umn at KARSTEN-LESSING.DE Thu Dec 2 07:30:00 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Thu, 2 Dec 2004 16:30:00 +0100 Subject: WFS Problems In-Reply-To: <41ADF0BD.9030906@dmsolutions.ca> Message-ID: An HTML attachment was scrubbed... URL: From simon at INF.UNIVALI.BR Thu Dec 2 07:30:20 2004 From: simon at INF.UNIVALI.BR (FERNANDO SIMON) Date: Thu, 2 Dec 2004 13:30:20 -0200 Subject: [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED03745C@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hi Nicolas, This message can be when the mapserver can't connect in your database. Try to check your connection string or your Oracle tnsnames. Thanks. --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Quoting "Fortin,Nicolas [SteFoy]" : > Now I tested it on my Web Server and I got this message if I call an oracle > layer ... > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI Handlers. > Connection failure. > > I can't find anything on this error > > Nicolas > ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From bartvde at XS4ALL.NL Thu Dec 2 08:04:38 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 2 Dec 2004 17:04:38 +0100 Subject: WFS Problems In-Reply-To: <41AF34F8.2010900@karsten-lessing.de> Message-ID: Hi, I tried downloading your GML and ogrinfo can read it. Try to change your projection objects. You now have defined that your WFS client layer is in epsg:4326 but ofcourse your data is in epsg:32632. Hope this helps. Best regards, Bart > Hi Yewondwossen Assefa, > dear List members, > > thank you for your answer. > During the last hours I include your hint with the forced request method: > "wfs_request_method" "GET" > and I also found something else on my own: > > I left the port number (8088) in the URL string: > So, in my case the complet request is called: > > http://babyz.uni-muenster.de:8088/wfs/WFS? > This might also be the reason why you did not work for you, too! > > When sending above mentioned request the server sends a complete .gml > file which is stored in my tmp directory. > Nevertheless still these coordinates are not drawn from the mapserver. > > The beginning of the .gml file sounds like this: > > WLIS_UTM32555409.568178104,5650501.14750786 > 868199.990485413,5934332.6040282555409.5681781038,5934223.853692098 > 555418.5706741122,5934332.604028199 > PEGELSTAND100.0555418.5706741122,5934332.604028199 > 557407.5662599645,5933762.565755668 > PEGELSTAND100.07000000000001557407.5662599645,5933762.565755668 > 559292.2735897198,5933662.819451575 > > (... hundreds of coordinate pairs are following!) > > the gml file is stored in the /srv/www/htdocs/tmp directory > I am running the mapserver vers: 4.2.3 with wms client/server and wfs > client7server support > (that it what the mapserver gives back when typing the ./mapserv -v > command!) > > does anybody have an idea what could still be wrong? > > thanks > Karsten > > > schrieb: One other thing you can try is to force mapserver to send Get > request to the wfs server by adding the following metadata on your layer > (default is Post) : > "wfs_request_method" "GET". > > You should also test the wfs_server by manulally sending some requests > to make sure that that the wfs responsd properly. Does the > http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&VERSION=1.0.0&Typename=WLIS_UTM32&&REQUEST=GetFeature > returns something for you (I does not work for me but It might me an > internal URL) ? > > Later, > > > K. Lessing% From lists at WEBMAPIT.COM.BR Thu Dec 2 07:58:58 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 2 Dec 2004 13:58:58 -0200 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: Hi folks, I have a little doubt on MapScript SWIG modules: - does Perl/Python/Ruby mapscript modules need to be compiled too, as PHPMapScript does? or can I simply copy/include a .py/.pl/.rb for MapScript definitions and that's all? thanks Eduardo Patto Kanegae http://www.webmapit.com.br ICQ: 303747254 Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** From agillesp at VT.EDU Thu Dec 2 08:19:01 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 2 Dec 2004 11:19:01 -0500 Subject: Shapefile field problem Message-ID: I used ogrinfo and it shows all the fields just fine. Specifically I'm trying to get a roads layer to work. I need to use the NAME field for labeling and querying. But MapServer doesn't seem to recognize this field (or any other fields past NAME). Oh, also, this is my MapServer configuration: MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE Thanks. -Abe On Dec 2, 2004, at 9:58 AM, Abe Gillespie wrote: > A good amount of fields aren't showing up in MapServer for me. I use > the following PHP script to dump out all layers and their fields for > debugging. Does MapServer have problems with certain data types or > certain values in a row? > > Thanks for any help. > -Abe > > [snip] > for ($i = 0; $i < $map->numlayers; $i++) > { > $l = $map->getLayer($i); > putBrLine($l->name); > if ($l->type == 2) // Shape files with data. > { > $l->open(); > $s = $l->getShape(-1, 0); > $vals = $s->values; > while ($fld = current($vals)) > { > putBrLine("  ".key($vals)); > next($vals); > } > $s->free(); > $l->close(); > } > } > From agillesp at VT.EDU Thu Dec 2 08:22:14 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 2 Dec 2004 11:22:14 -0500 Subject: BACKGROUNDCOLOR for annotation labels? Message-ID: I use an annotation layer to add labels at runtime. It works mostly, accept I can't get BACKGROUNDCOLOR to work. Am I missing something? Following is the layer. [snip] LAYER NAME "annotation" STATUS ON TRANSFORM false TYPE ANNOTATION POSTLABELCACHE true CLASS LABEL TYPE TRUETYPE FONT arial SIZE 10 POSITION cr COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 END END END Thanks. -Abe From manuel.alonso at ERMAPPER.CO.UK Thu Dec 2 08:02:43 2004 From: manuel.alonso at ERMAPPER.CO.UK (Manuel Alonso) Date: Thu, 2 Dec 2004 10:02:43 -0600 Subject: Win XP and paths in the .map file Message-ID: Good afternoon: I have been running MapServer 4.2.0 in Windows 2K and that works OK. I have copied my application to Windows XP SP2 and configured all the permissions, etc. as I did on Windows 2K, and now it seems that MapServer is unable to read the paths from in the .map file. The .map file contents are: NAME satgeobase SHAPEPATH "shapefiles/satgeobase" UNITS meters IMAGECOLOR 255 255 255 TRANSPARENT ON SYMBOLSET symbols/symbols.sym LAYER DEBUG on NAME countries TYPE polygon STATUS ON DATA "cntry98" CLASS NAME "Country outline" COLOR 255 255 255 OUTLINECOLOR 255 255 0 END END END If I type the following line in Internet Explorer: http://127.0.0.1/mapserver/mapserv.exe? map=c:\Inetpub\wwwroot\satgeobase.map&mode=map&layer=countries&imgsize=800+ 400&mapext=-180+90+180+-90 Map Server returns: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles/satgeobase/cntry98) If I change the SHAPEPATH line to SHAPEPATH "shapefiles\satgeobase\", then the result is: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles\satgeobase\cntry98) I have tried to use double backslash, double forwardslash and many combinations, but it seems that MapServer.exe cannot find the shape files. The shapefiles exist, names and paths are correct, the default firewall that XP sets up is disabled, and I have even given administrative rights to the IUSR_<> user, just in case. I get the same result, the same answer that MapServer gives when the files do not exist. Does anyone know if this is a known problem? Any ideas? Thanks very much in advance, Manuel From agillesp at VT.EDU Thu Dec 2 08:31:36 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 2 Dec 2004 11:31:36 -0500 Subject: Shapefile field problem In-Reply-To: <931f8ea904120208055e719b9c@mail.gmail.com> Message-ID: I certainly will as soon as I have the chance. I'm working on getting this project out the door so I don't have much time right now. I've encountered "problematic" fields in the past where when MapServer encounters a problematic field it drops it and any fields after it. What I have done is just deleted fields that gave me problems and then the other "good" fields would show up. I thought it had to do with NULLs in these fields. Now one of the problematic fields is one I need to *use* ... so I can't exactly delete it. I can attach the files if so desired. Is it ok to simply attach files and post to the group? Are there any tools I can use to check the integrity of a shapefile (and the shapes / records within said file)? Thanks. -Abe On Dec 2, 2004, at 11:05 AM, Frank Warmerdam wrote: > On Thu, 2 Dec 2004 11:19:01 -0500, Abe Gillespie > wrote: >> I used ogrinfo and it shows all the fields just fine. Specifically >> I'm >> trying to get a roads layer to work. I need to use the NAME field for >> labeling and querying. But MapServer doesn't seem to recognize this >> field (or any other fields past NAME). Oh, also, this is my MapServer >> configuration: >> >> MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP >> SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > Abe, > > I don't know what is going wrong, but if you are keen to get a fix > I would encourage you to try and reproduce the problem with 4.4, > and if "successful" to report a detailed bug report along with > the file, and everything needed to reproduce the problem. Also > note the actual binaries you downloaded that resulted in the problem. > > I'm quite surprised by the problem you are encountering, but it doesn't > sounds like it is really in my area. Hopefully Steve will pick up on > it. > > Best regards, > > -- > --------------------------------------- > +-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > From sgillies at FRII.COM Thu Dec 2 08:17:21 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 2 Dec 2004 09:17:21 -0700 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: On Dec 2, 2004, at 8:58 AM, Eduardo Patto Kanegae wrote: > Hi folks, I have a little doubt on MapScript SWIG modules: > > - does Perl/Python/Ruby mapscript modules need to be compiled too, as > PHPMapScript does? > > or can I simply copy/include a .py/.pl/.rb for MapScript definitions > and that's all? > > thanks > > Eduardo Patto Kanegae > http://www.webmapit.com.br > ICQ: 303747254 > You need to compile them. Change directory into mapscript/* and follow the instructions. They are slightly different in each case. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ealpert at DIGITALGLOBE.COM Thu Dec 2 08:41:09 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 2 Dec 2004 09:41:09 -0700 Subject: Shapefile field problem Message-ID: This is interesting what are the field names? Any of them start with numbers? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Abe Gillespie Sent: Thursday, December 02, 2004 9:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem I certainly will as soon as I have the chance. I'm working on getting this project out the door so I don't have much time right now. I've encountered "problematic" fields in the past where when MapServer encounters a problematic field it drops it and any fields after it. What I have done is just deleted fields that gave me problems and then the other "good" fields would show up. I thought it had to do with NULLs in these fields. Now one of the problematic fields is one I need to *use* ... so I can't exactly delete it. I can attach the files if so desired. Is it ok to simply attach files and post to the group? Are there any tools I can use to check the integrity of a shapefile (and the shapes / records within said file)? Thanks. -Abe On Dec 2, 2004, at 11:05 AM, Frank Warmerdam wrote: > On Thu, 2 Dec 2004 11:19:01 -0500, Abe Gillespie > wrote: >> I used ogrinfo and it shows all the fields just fine. Specifically >> I'm trying to get a roads layer to work. I need to use the NAME >> field for labeling and querying. But MapServer doesn't seem to >> recognize this field (or any other fields past NAME). Oh, also, this >> is my MapServer >> configuration: >> >> MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP >> SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > > Abe, > > I don't know what is going wrong, but if you are keen to get a fix I > would encourage you to try and reproduce the problem with 4.4, and if > "successful" to report a detailed bug report along with the file, and > everything needed to reproduce the problem. Also note the actual > binaries you downloaded that resulted in the problem. > > I'm quite surprised by the problem you are encountering, but it > doesn't sounds like it is really in my area. Hopefully Steve will > pick up on 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 sirronj at PACBELL.NET Thu Dec 2 08:54:34 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 2 Dec 2004 08:54:34 -0800 Subject: teacher points on California zips revisited Message-ID: Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ealpert at DIGITALGLOBE.COM Thu Dec 2 09:01:01 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 2 Dec 2004 10:01:01 -0700 Subject: teacher points on California zips revisited Message-ID: Those are meters not lat/lon and are probably in the California state plane projection. You posted the .prj previously which clearly showed that you data was in the state plane projection. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 9:55 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From cord at LUPINEX.COM Thu Dec 2 09:02:27 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Thu, 2 Dec 2004 09:02:27 -0800 Subject: MapServer Spline Message-ID: I understand that Mapserver currently does not support spline, and in reading some earlier posts, it does not appear to be on the horizon (GD does not support this?). Where do feature priorities get tracked? Could we devise a voting system? As to splining, i am sure a true splining solution is not trivial, but what might be a reasonable solution is angled labels on the fly. A simple algorithm where when mapserver determines the location of a label, it fixes the center point there, determines the angle (there is a proper term for this?) of the associated line feature and then angles the label accordinly - this would simply replace the attribute-based angle calculation with a feature based calculation. Of course, in some cases, such as on very irregular shapes, this will result in some untoward results, but for some this might be a reasonable solution - LabelByLocalOrientation or some such method. Cord From David.Fawcett at STATE.MN.US Thu Dec 2 09:07:03 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 2 Dec 2004 11:07:03 -0600 Subject: teacher points on California zips revisited Message-ID: Joseph, A few days ago, Eric established that your Cal Zip layer is in a LCC projection that uses feet as units. (here is snip of that message) ____________ > On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: > > I got the extents from shpdump of shape file. I do have projection > > information on the file: > > > > PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", > > GEOGCS["GCS_North_American_1983", > > DATUM["D_North_American_1983", > > SPHEROID["GRS_1980", 6378137, 298.257222101]], > > PRIMEM["Greenwich", 0], > > UNIT["Degree", 0.017453292519943295]], > > PROJECTION["Lambert_Conformal_Conic"], > > PARAMETER["False_Easting", 6561666.666666666], > > PARAMETER["False_Northing", 1640416.666666667], > > PARAMETER["Central_Meridian", -122], > > PARAMETER["Standard_Parallel_1", 38.33333333333334], > > PARAMETER["Standard_Parallel_2", 39.83333333333334], > > PARAMETER["Latitude_Of_Origin", 37.66666666666666], > > UNIT["Foot_US", 0.30480060960121924]] > > Joseph, > > By looking in my epsg file (which comes with the proj4 install, on my > freeBSD system: /usr/local/share/proj it looks like your shape file has > an EPSG code of 26942.(California Zone 2) You can use the following > PROJECTION: > > PROJECTION > "init=epsg:26942" > END > > For UNITS you would use "feet" not DD. > > HTH. _____________________________________ My guess is that fGIS isn't projecting your layers and is assuming that they are both in the same projection. Stick with MapServer, you were getting very close. You have two layers in different projections, you need to set the projection that you want the output map to be in, and then within each layer, set the projection in which the data exists. There should be many examples of the use of projection in the list archives. David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 12/2/2004 10:54:34 AM >>> Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Thu Dec 2 09:08:25 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 2 Dec 2004 09:08:25 -0800 Subject: teacher points on California zips revisited In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B1953@COMAIL01.digitalglobe.com> Message-ID: Thanks for this information - so do I have to take my point file and create it within the state plane also? I so how will I do that build? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Thursday, December 02, 2004 9:01 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Those are meters not lat/lon and are probably in the California state plane projection. You posted the .prj previously which clearly showed that you data was in the state plane projection. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 9:55 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From agillesp at VT.EDU Thu Dec 2 09:27:06 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 2 Dec 2004 12:27:06 -0500 Subject: Shapefile field problem In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B1952@COMAIL01.digitalglobe.com> Message-ID: Nope, all pretty standard like NAME, FULLADDR, etc. Nothing blatantly weird. -Abe On Dec 2, 2004, at 11:41 AM, Ethan Alpert wrote: > > > This is interesting what are the field names? Any of them start with > numbers? > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Abe Gillespie > Sent: Thursday, December 02, 2004 9:32 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem > > > I certainly will as soon as I have the chance. I'm working on getting > this project out the door so I don't have much time right now. I've > encountered "problematic" fields in the past where when MapServer > encounters a problematic field it drops it and any fields after it. > What > I have done is just deleted fields that gave me problems and then the > other "good" fields would show up. I thought it had to do with NULLs > in > these fields. Now one of the problematic fields is one I need to *use* > ... so I can't exactly delete it. I can attach the files if so > desired. > Is it ok to simply attach files and post to the group? > > Are there any tools I can use to check the integrity of a shapefile > (and > the shapes / records within said file)? > > Thanks. > -Abe > > On Dec 2, 2004, at 11:05 AM, Frank Warmerdam wrote: > >> On Thu, 2 Dec 2004 11:19:01 -0500, Abe Gillespie >> wrote: >>> I used ogrinfo and it shows all the fields just fine. Specifically >>> I'm trying to get a roads layer to work. I need to use the NAME >>> field for labeling and querying. But MapServer doesn't seem to >>> recognize this field (or any other fields past NAME). Oh, also, this > >>> is my MapServer >>> configuration: >>> >>> MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP >>> SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE >> >> Abe, >> >> I don't know what is going wrong, but if you are keen to get a fix I >> would encourage you to try and reproduce the problem with 4.4, and if >> "successful" to report a detailed bug report along with the file, and >> everything needed to reproduce the problem. Also note the actual >> binaries you downloaded that resulted in the problem. >> >> I'm quite surprised by the problem you are encountering, but it >> doesn't sounds like it is really in my area. Hopefully Steve will >> pick up on 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 ealpert at DIGITALGLOBE.COM Thu Dec 2 09:10:22 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 2 Dec 2004 10:10:22 -0700 Subject: teacher points on California zips revisited Message-ID: Go back and read the answers to your previous posts. What your PROJECTION blocks should be was already discussed. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 10:08 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Thanks for this information - so do I have to take my point file and create it within the state plane also? I so how will I do that build? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Thursday, December 02, 2004 9:01 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Those are meters not lat/lon and are probably in the California state plane projection. You posted the .prj previously which clearly showed that you data was in the state plane projection. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 9:55 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Thu Dec 2 09:11:23 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 2 Dec 2004 09:11:23 -0800 Subject: teacher points on California zips revisited In-Reply-To: Message-ID: I can I not build my teacher point file with the same projection as the California zip file? If so how do I set these values? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Thursday, December 02, 2004 9:07 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Joseph, A few days ago, Eric established that your Cal Zip layer is in a LCC projection that uses feet as units. (here is snip of that message) ____________ > On Mon, 2004-11-29 at 15:26, Joseph Norris wrote: > > I got the extents from shpdump of shape file. I do have projection > > information on the file: > > > > PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", > > GEOGCS["GCS_North_American_1983", > > DATUM["D_North_American_1983", > > SPHEROID["GRS_1980", 6378137, 298.257222101]], > > PRIMEM["Greenwich", 0], > > UNIT["Degree", 0.017453292519943295]], > > PROJECTION["Lambert_Conformal_Conic"], > > PARAMETER["False_Easting", 6561666.666666666], > > PARAMETER["False_Northing", 1640416.666666667], > > PARAMETER["Central_Meridian", -122], > > PARAMETER["Standard_Parallel_1", 38.33333333333334], > > PARAMETER["Standard_Parallel_2", 39.83333333333334], > > PARAMETER["Latitude_Of_Origin", 37.66666666666666], > > UNIT["Foot_US", 0.30480060960121924]] > > Joseph, > > By looking in my epsg file (which comes with the proj4 install, on my > freeBSD system: /usr/local/share/proj it looks like your shape file has > an EPSG code of 26942.(California Zone 2) You can use the following > PROJECTION: > > PROJECTION > "init=epsg:26942" > END > > For UNITS you would use "feet" not DD. > > HTH. _____________________________________ My guess is that fGIS isn't projecting your layers and is assuming that they are both in the same projection. Stick with MapServer, you were getting very close. You have two layers in different projections, you need to set the projection that you want the output map to be in, and then within each layer, set the projection in which the data exists. There should be many examples of the use of projection in the list archives. David. David J. Fawcett MN Office of Environmental Assistance >>> Joseph Norris 12/2/2004 10:54:34 AM >>> Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From woodbri at SWOODBRIDGE.COM Thu Dec 2 09:10:58 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 2 Dec 2004 12:10:58 -0500 Subject: MapServer Spline In-Reply-To: <64616.66.15.156.209.1102006947.squirrel@www.elem.com> Message-ID: OK, Sounds like a great feature ... Oh wait we already have that :) Use ANGLE AUTO and truetype fonts -Steve W. Cord Thomas wrote: > I understand that Mapserver currently does not support spline, and in > reading some earlier posts, it does not appear to be on the horizon (GD > does not support this?). > > Where do feature priorities get tracked? Could we devise a voting system? > > As to splining, i am sure a true splining solution is not trivial, but > what might be a reasonable solution is angled labels on the fly. A simple > algorithm where when mapserver determines the location of a label, it > fixes the center point there, determines the angle (there is a proper term > for this?) of the associated line feature and then angles the label > accordinly - this would simply replace the attribute-based angle > calculation with a feature based calculation. Of course, in some cases, > such as on very irregular shapes, this will result in some untoward > results, but for some this might be a reasonable solution - > LabelByLocalOrientation or some such method. > > Cord > From jmckenna at DMSOLUTIONS.CA Thu Dec 2 09:15:52 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 2 Dec 2004 12:15:52 -0500 Subject: Shapefile field problem In-Reply-To: <638E6DEE-4487-11D9-8B2B-000A957A0F9C@vt.edu> Message-ID: Frank would know way more about this than me...but are any of the Shapelib utilities (http://shapelib.maptools.org/) useful for you? (shpdump, dbfdump) jeff Abe Gillespie wrote: > Nope, all pretty standard like NAME, FULLADDR, etc. Nothing blatantly > weird. > > -Abe > > On Dec 2, 2004, at 11:41 AM, Ethan Alpert wrote: > >> >> >> This is interesting what are the field names? Any of them start with >> numbers? >> >> -e >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On >> Behalf Of Abe Gillespie >> Sent: Thursday, December 02, 2004 9:32 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >> >> >> I certainly will as soon as I have the chance. I'm working on getting >> this project out the door so I don't have much time right now. I've >> encountered "problematic" fields in the past where when MapServer >> encounters a problematic field it drops it and any fields after it. >> What >> I have done is just deleted fields that gave me problems and then the >> other "good" fields would show up. I thought it had to do with NULLs >> in >> these fields. Now one of the problematic fields is one I need to *use* >> ... so I can't exactly delete it. I can attach the files if so >> desired. >> Is it ok to simply attach files and post to the group? >> >> Are there any tools I can use to check the integrity of a shapefile >> (and >> the shapes / records within said file)? >> >> Thanks. >> -Abe >> >> On Dec 2, 2004, at 11:05 AM, Frank Warmerdam wrote: >> >>> On Thu, 2 Dec 2004 11:19:01 -0500, Abe Gillespie >>> wrote: >>> >>>> I used ogrinfo and it shows all the fields just fine. Specifically >>>> I'm trying to get a roads layer to work. I need to use the NAME >>>> field for labeling and querying. But MapServer doesn't seem to >>>> recognize this field (or any other fields past NAME). Oh, also, this >> >> >>>> is my MapServer >>>> configuration: >>>> >>>> MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP >>>> SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE >>> >>> >>> Abe, >>> >>> I don't know what is going wrong, but if you are keen to get a fix I >>> would encourage you to try and reproduce the problem with 4.4, and if >>> "successful" to report a detailed bug report along with the file, and >>> everything needed to reproduce the problem. Also note the actual >>> binaries you downloaded that resulted in the problem. >>> >>> I'm quite surprised by the problem you are encountering, but it >>> doesn't sounds like it is really in my area. Hopefully Steve will >>> pick up on 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 >> >>> >> > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From David.Fawcett at STATE.MN.US Thu Dec 2 09:19:51 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Thu, 2 Dec 2004 11:19:51 -0600 Subject: teacher points on California zips revisited Message-ID: In addition to what Ethan says, For your teachers layer, you could use the below projection block in place of projection=latlong (this is just the EPSG code for latlong): PROJECTION "init=epsg:4267" END David J. Fawcett MN Office of Environmental Assistance >>> Ethan Alpert 12/2/2004 11:10:22 AM >>> Go back and read the answers to your previous posts. What your PROJECTION blocks should be was already discussed. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 10:08 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Thanks for this information - so do I have to take my point file and create it within the state plane also? I so how will I do that build? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Thursday, December 02, 2004 9:01 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Those are meters not lat/lon and are probably in the California state plane projection. You posted the .prj previously which clearly showed that you data was in the state plane projection. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 9:55 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From nicolas.fortin at EC.GC.CA Thu Dec 2 09:20:39 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Thu, 2 Dec 2004 12:20:39 -0500 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Message-ID: Hi Fernando, Thanks for your quick answer... I used the exact same mapfile I used for my previous version of mapserver. It worked fine with this previous version. Here's the mapserv-v output : MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE If I point directly to mapserver on the server I got the normal: No query information to decode. QUERY_STRING not set. If I asked for a raster layer, I got it normally. It's only when I asked for an Oracle layer that I get the error message. (We use Oracle 9.2.0.4 and 10g) Either the message from my previous post or : Erreur CGI L'application CGI sp?cifi?e a mal fonctionn? en ne renvoyant pas de jeu complet d'en-t?tes HTTP. Les en-t?tes renvoy?s sont : Do I have to change something in the mapfile!? Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de FERNANDO SIMON Envoy? : Thursday, December 02, 2004 10:30 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Hi Nicolas, This message can be when the mapserver can't connect in your database. Try to check your connection string or your Oracle tnsnames. Thanks. --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Quoting "Fortin,Nicolas [SteFoy]" : > Now I tested it on my Web Server and I got this message if I call an > oracle layer ... > msOracleSpatialLayerOpen(): OracleSpatial error. Cannot create OCI > Handlers. Connection failure. > > I can't find anything on this error > > Nicolas > ------------------------------------------------ Este e-mail foi enviado pelo webmail do curso de Ci?ncia da Computa??o - UNIVALI From agillesp at VT.EDU Thu Dec 2 09:39:46 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 2 Dec 2004 12:39:46 -0500 Subject: Shapefile field problem In-Reply-To: <41AF4DC8.40503@dmsolutions.ca> Message-ID: Like I said, I used ogrinfo and everything looked fine there. I assume the other tools use the same libraries so I don't expect to see anything different (but I also expect MapServer to use the same libraries too, so it's weird it's having problems). But I will try it in a little bit and get back. Thanks. -Abe On Dec 2, 2004, at 12:15 PM, Jeff McKenna wrote: > Frank would know way more about this than me...but are any of the > Shapelib utilities (http://shapelib.maptools.org/) useful for you? > (shpdump, dbfdump) > > jeff > > > > > > > Abe Gillespie wrote: >> Nope, all pretty standard like NAME, FULLADDR, etc. Nothing blatantly >> weird. >> -Abe >> On Dec 2, 2004, at 11:41 AM, Ethan Alpert wrote: >>> >>> >>> This is interesting what are the field names? Any of them start with >>> numbers? >>> >>> -e >>> >>> -----Original Message----- >>> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>> On >>> Behalf Of Abe Gillespie >>> Sent: Thursday, December 02, 2004 9:32 AM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >>> >>> >>> I certainly will as soon as I have the chance. I'm working on >>> getting >>> this project out the door so I don't have much time right now. I've >>> encountered "problematic" fields in the past where when MapServer >>> encounters a problematic field it drops it and any fields after it. >>> What >>> I have done is just deleted fields that gave me problems and then the >>> other "good" fields would show up. I thought it had to do with NULLs >>> in >>> these fields. Now one of the problematic fields is one I need to >>> *use* >>> ... so I can't exactly delete it. I can attach the files if so >>> desired. >>> Is it ok to simply attach files and post to the group? >>> >>> Are there any tools I can use to check the integrity of a shapefile >>> (and >>> the shapes / records within said file)? >>> >>> Thanks. >>> -Abe >>> >>> On Dec 2, 2004, at 11:05 AM, Frank Warmerdam wrote: >>> >>>> On Thu, 2 Dec 2004 11:19:01 -0500, Abe Gillespie >>>> wrote: >>>> >>>>> I used ogrinfo and it shows all the fields just fine. Specifically >>>>> I'm trying to get a roads layer to work. I need to use the NAME >>>>> field for labeling and querying. But MapServer doesn't seem to >>>>> recognize this field (or any other fields past NAME). Oh, also, >>>>> this >>> >>> >>>>> is my MapServer >>>>> configuration: >>>>> >>>>> MapServer version 4.2.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=WBMP >>>>> SUPPORTS=FREETYPE INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE >>>> >>>> >>>> Abe, >>>> >>>> I don't know what is going wrong, but if you are keen to get a fix I >>>> would encourage you to try and reproduce the problem with 4.4, and >>>> if >>>> "successful" to report a detailed bug report along with the file, >>>> and >>>> everything needed to reproduce the problem. Also note the actual >>>> binaries you downloaded that resulted in the problem. >>>> >>>> I'm quite surprised by the problem you are encountering, but it >>>> doesn't sounds like it is really in my area. Hopefully Steve will >>>> pick up on 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 >>> >>>> >>> > > > -- > Jeff McKenna > GIS Specialist > DM Solutions Group Inc. > http://www.dmsolutions.ca > From fwarmerdam at GMAIL.COM Thu Dec 2 09:27:00 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 2 Dec 2004 12:27:00 -0500 Subject: Shapefile field problem In-Reply-To: <2846BD53-4489-11D9-8B2B-000A957A0F9C@vt.edu> Message-ID: On Thu, 2 Dec 2004 12:39:46 -0500, Abe Gillespie wrote: > Like I said, I used ogrinfo and everything looked fine there. I assume > the other tools use the same libraries so I don't expect to see > anything different (but I also expect MapServer to use the same > libraries too, so it's weird it's having problems). But I will try it > in a little bit and get back. Abe, MapServer uses a highly modified variation of a very old version of shapelib which might have significantly different performance than the generic version. Note, there are good reasons for why Steve did this,and I would not suggest changing it. All that aside, I think you should accept that no one else has seen this problem, and submit a detailed bug report. If you need a prompt fix you could even motivate someone with money though I'm sure we will look into the problem if you can provide enough detail for us to reproduce the problem easiliy. 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 info2004 at RAJSINGH.ORG Thu Dec 2 09:17:30 2004 From: info2004 at RAJSINGH.ORG (Raj Singh) Date: Thu, 2 Dec 2004 12:17:30 -0500 Subject: MapServer Map Context Message-ID: Has anyone used the OGC web map context support in version 4.2.2? I'm having a tough time getting Web Map Context support working. I have proj4, gdal, php, wmsclient and wmsserver support working fine, but whenever I test map context support using this code: saveMapContext("/usr/local/apache2/htdocs/tmp/output.xml"); ?> I get the following message in my apache error log: [error] [client 66.31.41.182] PHP Warning: [MapServer Error]: msSaveMapContext(): Not implemented since Map Context is not enabled. --Raj From assefa at DMSOLUTIONS.CA Thu Dec 2 09:34:59 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 2 Dec 2004 12:34:59 -0500 Subject: MapServer Map Context In-Reply-To: <0C126A31-4486-11D9-9F42-000D93ADF030@rajsingh.org> Message-ID: You need to make sure that your build uses USE_WMS_LYR and USE_OGR flags (you need to build you mapserver/php_mapscript with wms and gdal/ogr support). Raj Singh wrote: > Has anyone used the OGC web map context support in version 4.2.2? > > I'm having a tough time getting Web Map Context support working. I have > proj4, gdal, php, wmsclient and wmsserver support working fine, but > whenever I test map context support using this code: > dl("php_mapscript.so"); > $oMap = ms_newMapObj("/usr/local/apache2/htdocs/umi5/parcel.map"); > $oMap->saveMapContext("/usr/local/apache2/htdocs/tmp/output.xml"); > ?> > > I get the following message in my apache error log: > [error] [client 66.31.41.182] PHP Warning: [MapServer Error]: > msSaveMapContext(): Not implemented since Map Context is not enabled. > > > --Raj > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From agillesp at VT.EDU Thu Dec 2 10:02:05 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 2 Dec 2004 13:02:05 -0500 Subject: Shapefile field problem Message-ID: Well, I'll keep plug'n along and maybe I'll stumble across something. When I reach the point where there's nothing left but get this fixed I'll do so then. I never got an answer, can I simply post the problematic shapefile to the group? Is that user-group kosher? And here's a sneak peak at the site I'm developing. It is in current development so some things maybe broken, but it's working pretty good now (i.e. only the address search is working). I'm pretty proud of it and it's a testament to MapServer's power: http://141.152.79.120/ashe/ I'll make an official announcement when it's completed. And don't worry, I'll definitely get a MapServer logo link up when it goes public. :) Thanks. -Abe On Dec 2, 2004, at 12:27 PM, Frank Warmerdam wrote: > On Thu, 2 Dec 2004 12:39:46 -0500, Abe Gillespie > wrote: >> Like I said, I used ogrinfo and everything looked fine there. I >> assume >> the other tools use the same libraries so I don't expect to see >> anything different (but I also expect MapServer to use the same >> libraries too, so it's weird it's having problems). But I will try it >> in a little bit and get back. > > Abe, > > MapServer uses a highly modified variation of a very old version > of shapelib which might have significantly different performance > than the generic version. Note, there are good reasons for > why Steve did this,and I would not suggest changing it. All > that aside, I think you should accept that no one else has > seen this problem, and submit a detailed bug report. If you need > a prompt fix you could even motivate someone with money though > I'm sure we will look into the problem if you can provide enough detail > for us to reproduce the problem easiliy. > > 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 simon at INF.UNIVALI.BR Thu Dec 2 08:03:51 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Thu, 2 Dec 2004 16:03:51 +0000 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED03745D@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hi Nicolas, In this new version the connection string didn't changed. This error didin't occured here, if you will look the source code this message appear only when the mapserver didn't connected the Oracle. So, are you tried with FastCGI support? How are you call the mapserver (CGI)? Is it query mode? Thanks. --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Fortin,Nicolas [SteFoy] wrote: >Hi Fernando, > >Thanks for your quick answer... > >I used the exact same mapfile I used for my previous version of mapserver. It worked fine with this previous version. >Here's the mapserv-v output : >MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >If I point directly to mapserver on the server I got the normal: >No query information to decode. QUERY_STRING not set. > >If I asked for a raster layer, I got it normally. > >It's only when I asked for an Oracle layer that I get the error message. (We use Oracle 9.2.0.4 and 10g) >Either the message from my previous post or : >Erreur CGI >L'application CGI sp?cifi?e a mal fonctionn? en ne renvoyant pas de jeu complet d'en-t?tes HTTP. Les en-t?tes renvoy?s sont : > >Do I have to change something in the mapfile!? > >Nicolas > > From ed at TOPOZONE.COM Thu Dec 2 10:04:22 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 2 Dec 2004 13:04:22 -0500 Subject: Win XP and paths in the .map file Message-ID: You are right in thinking that this is probably a permissions problem. Be sure that the IUSR account has read access to that particular file; I think permission settings are the most common cause of problems when migrating from one machine to another "identical" one. Separately, it might not be the best idea to store your shapefiles in the wwwroot tree if you want to protect them from being accessed outside of MapServer. It's usually wise to place MapServer's data files safely outside any place that grants access to Web users. - 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 Manuel Alonso Sent: Thursday, December 02, 2004 11:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Win XP and paths in the .map file Good afternoon: I have been running MapServer 4.2.0 in Windows 2K and that works OK. I have copied my application to Windows XP SP2 and configured all the permissions, etc. as I did on Windows 2K, and now it seems that MapServer is unable to read the paths from in the .map file. The .map file contents are: NAME satgeobase SHAPEPATH "shapefiles/satgeobase" UNITS meters IMAGECOLOR 255 255 255 TRANSPARENT ON SYMBOLSET symbols/symbols.sym LAYER DEBUG on NAME countries TYPE polygon STATUS ON DATA "cntry98" CLASS NAME "Country outline" COLOR 255 255 255 OUTLINECOLOR 255 255 0 END END END If I type the following line in Internet Explorer: http://127.0.0.1/mapserver/mapserv.exe? map=c:\Inetpub\wwwroot\satgeobase.map&mode=map&layer=countries&imgsize=8 00+ 400&mapext=-180+90+180+-90 Map Server returns: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles/satgeobase/cntry98) If I change the SHAPEPATH line to SHAPEPATH "shapefiles\satgeobase\", then the result is: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles\satgeobase\cntry98) I have tried to use double backslash, double forwardslash and many combinations, but it seems that MapServer.exe cannot find the shape files. The shapefiles exist, names and paths are correct, the default firewall that XP sets up is disabled, and I have even given administrative rights to the IUSR_<> user, just in case. I get the same result, the same answer that MapServer gives when the files do not exist. Does anyone know if this is a known problem? Any ideas? Thanks very much in advance, Manuel From sirronj at PACBELL.NET Thu Dec 2 10:13:07 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 2 Dec 2004 10:13:07 -0800 Subject: teacher points on California zips revisited In-Reply-To: Message-ID: Ok - here is my map file. I have set the min/max of the layers so that when I zoom in I should be able to see the teacher points and loose the "Teachers in Zip" coloring - this happens - sort of. When I zoom in I loose the color and get the teacher circle in the legend but I do not get any polygon outline and no circles for the teachers. MAP EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 TEMPLATEPATTERN "map" IMAGECOLOR 255 255 255 IMAGETYPE gif SHAPEPATH "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " SIZE 700 700 STATUS ON UNITS FEET PROJECTION "init=epsg:26942" END NAME "calmap" OUTPUTFORMAT NAME gif MIMETYPE image/gif DRIVER GD/GIF EXTENSION gif IMAGEMODE PC256 TRANSPARENT FALSE END SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LEGEND IMAGECOLOR 255 255 255 KEYSIZE 20 10 KEYSPACING 5 5 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE POSITION CC END POSITION LL STATUS EMBED END QUERYMAP COLOR 255 255 0 SIZE -1 -1 STATUS OFF STYLE HILITE END SCALEBAR COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL SIZE MEDIUM TYPE BITMAP BUFFER 0 COLOR 0 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS TRUE END POSITION LL SIZE 200 3 STATUS OFF STYLE 0 UNITS MILES END WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END LAYER CLASSITEM "zcta" DATA "cal_zp_st" NAME "calzip" SIZEUNITS PIXELS STATUS DEFAULT TOLERANCE 0 TOLERANCEUNITS PIXELS MINSCALE 1478131.017053 TYPE POLYGON PROJECTION "init=epsg:26942" END UNITS FEET CLASS NAME "Teachers in Zips" EXPRESSION /95822|94117|93230|94903|91941|94110|95818|95815|91006|92503|90305|90042|953 37|95020|90242|94123|92084|94949 |93702|92802|95648|94103|95135|91103|95687|95632|95329|92024|91326|92054|935 60|93010|90043|90805|93023|90012|94606|91405|9195 0|90720|93405|94124|91935|95128|95124|94112|92663|92308|94087|92630|92105|94 115|94520|90033|94040|94621|92804|95501|91764|939 07|92186|94901|95210|94509|95076|94513|91910|95825|90032|93274|94612|91601|9 5351|93960|90025|95608|94952|90405|94105|90241|95 665|94404|92028|92115|92629|92083|92107|92117|92675|93711|38125|92570|94558| 93291|93720|95816|92320|95864|94107|94607|94131|9 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|95139 |95692|94704|94611|92585|94402|92705|90063|94560| 93727|94549|90015|95993|90274|93901|90065|90232|91977|93212|91730|92127|9239 2|92111|93706|95452|94804|91107|91945|92612|94539 |93924|92505|93710|92019|92801|91962|95834|90270|90802|95126|94555|95823|943 03|92108|92128|95690|92064|92071|92120|92025|9310 9|94580|94904|91406|94108|94070|74580|93034|90066|92509|94401|90059|95562|94 947|95242|91911|95521|93111|95658|94122|94102|907 45|95050|93449|95060|93446|93726|95969|95110|91104|91001|90049|95838|94577|9 2131|92040|95204|94545|91932|95018|91411|92106|94 568|95304|95407|94531|95678|90292|92243|91711|92410|95070|93004|92008|95829| 93908|93721|94703|94954|95959|94134|95428|90003|9 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|94806 |92591|95531|90504|94705|94530|95376|93003|94707| 95841|95667/ STYLE COLOR 255 102 102 MAXSIZE 100 MINSIZE 1 SIZE 1 SYMBOL 0 END END CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END LAYER NAME "points" SIZEUNITS PIXELS STATUS DEFAULT TEMPLATE "bogus.html" TOLERANCE 10 TOLERANCEUNITS PIXELS TYPE POINT UNITS FEET MAXSCALE 1478131.017053 PROJECTION "proj=latlong" END CLASS NAME "Teachers" LABEL SIZE MEDIUM TYPE BITMAP BUFFER 2 COLOR 255 0 0 FORCE FALSE MINDISTANCE -1 MINFEATURESIZE -1 OFFSET 0 0 PARTIALS FALSE POSITION AUTO END STYLE COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE 8 SYMBOL "circle" END END FEATURE POINTS 38.5263 -121.507 END List of points for lat/long with text of teacher's names #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of David Fawcett Sent: Thursday, December 02, 2004 9:20 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited In addition to what Ethan says, For your teachers layer, you could use the below projection block in place of projection=latlong (this is just the EPSG code for latlong): PROJECTION "init=epsg:4267" END David J. Fawcett MN Office of Environmental Assistance >>> Ethan Alpert 12/2/2004 11:10:22 AM >>> Go back and read the answers to your previous posts. What your PROJECTION blocks should be was already discussed. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 10:08 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Thanks for this information - so do I have to take my point file and create it within the state plane also? I so how will I do that build? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Thursday, December 02, 2004 9:01 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Those are meters not lat/lon and are probably in the California state plane projection. You posted the .prj previously which clearly showed that you data was in the state plane projection. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 9:55 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Hello, Here we go again. I finally did the following: Created a shape file of all of my teacher points by their lat/long. Dropped the California zip code map on to my laptop and then the new teacher points file. I then used fGIS (http://www.digitalgrove.net/fgis.htm) and loaded the California zip layer and then my new teacher point layer. I can zoom to the zip layer but when I zoom to the point layer it is way far away from the zip layer. I did this as a sanity check because I did not think that I was even producing the teacher point layer. The questions are: If I create a point shape file based upon lat/lon and I have the California zip file - why will one not lie over the other - are they not both based upon lat/long? Can I open my teacher dbf file, and go search for the zip in the California zip file and then rebuild the teacher point file with coordinates from the California zip file thus allowing me to place my points in the zip polygon that they belong to? In my California shape file on a dump I get: ( 5983045.379, 3224996.563, 0, 0) ( 5989542.292, 3224832.974, 0, 0) ( 5989921.623, 3224823.475, 0, 0) ( 5989953.049, 3224815.898, 0, 0) ( 5990112.487, 3224777.458, 0, 0) ( 5991452.255, 3224753.633, 0, 0) ( 5993483.853, 3224717.643, 0, 0) ( 5993800.929, 3224702.331, 0, 0) ( 6011910.153, 3224087.577, 0, 0) ( 6017051.977, 3223915.448, 0, 0) ( 6026300.989, 3223711.249, 0, 0) ( 6026888.615, 3222812.493, 0, 0) What do these values mean - are they lat/long values? Thanks for all of the help that you have given me so far. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From Micheal.Arnold at NSCORP.COM Thu Dec 2 10:18:29 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Thu, 2 Dec 2004 13:18:29 -0500 Subject: mode=map question Message-ID: I am attempting to use jBox's setimage for image swapping, but am having problems when I use mode=map in my querystring. I get a 'page cannot be displayed' error. It works fine for browse mode. Does anyone have any ideas why or what I might do to get it working? Thanks once again for all of your help. - Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfletcher at LATITUDEGEO.COM Thu Dec 2 10:29:30 2004 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Thu, 2 Dec 2004 10:29:30 -0800 Subject: SLD Filter Using Default Mapfile Rendering Message-ID: Is there some way to filter the features drawn by Mapserver without having to send rendering information in the SLD? Most times that I want to filter features, the default rendering as set up in the mapfile is sufficient, yet I am having to duplicate that rendering information inside my SLD to get the features to show. I would like to just send a Filter without any Symbolizer - it's the most tedious for layers with many different scale or attribute dependent styles. I can't see anything in the SLD spec about this, though it's a weighty document and I may have missed it... Thanks in advance, John -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu Dec 2 10:37:08 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 2 Dec 2004 13:37:08 -0500 Subject: SLD Filter Using Default Mapfile Rendering Message-ID: In a nutshell, in OGC:WMS you can't get to Filter without SLD itself. What you could do is, if the data you're fetching is available as OGC:WFS, is use MapServer as a WFS client and apply the filter at the mapfile (or dynamically generated) level and assume the same rendering as per mapfile. There's most certainly a few more ways to make this happen; the above is using OGC approaches. ..Tom -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Fletcher Sent: Thursday, 02 December, 2004 13:30 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SLD Filter Using Default Mapfile Rendering Is there some way to filter the features drawn by Mapserver without having to send rendering information in the SLD? Most times that I want to filter features, the default rendering as set up in the mapfile is sufficient, yet I am having to duplicate that rendering information inside my SLD to get the features to show. I would like to just send a Filter without any Symbolizer - it's the most tedious for layers with many different scale or attribute dependent styles. I can't see anything in the SLD spec about this, though it's a weighty document and I may have missed it... Thanks in advance, John From James.Shanton2 at NSCORP.COM Thu Dec 2 10:48:02 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Thu, 2 Dec 2004 13:48:02 -0500 Subject: Jump to Lat / Lon --- Convert X,Y to GIS Coordinates Message-ID: Is there an easy way to jump to a GIS Lat/Lon location with Mapserver? I'm also trying to convert X and Y (returned by JBox) to GIS Coordinates, but am not having any luck finding a sample. Thank you, Jim Shanton Atlanta GA We are not using PHP or Mapscript, but are using the following. JBox Mapserver 4.2 From eric at GOMOOS.ORG Thu Dec 2 10:48:19 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 2 Dec 2004 13:48:19 -0500 Subject: teacher points on California zips revisited In-Reply-To: Message-ID: You need UNITS DD in your points layer where proj=latlong, or no UNITS since DD is probably the default. On Thu, 2004-12-02 at 13:13, Joseph Norris wrote: > Ok - here is my map file. I have set the min/max of the layers so that when > I zoom in I should be able to see the teacher points and loose the "Teachers > in Zip" coloring - this happens - sort of. When I zoom in I loose the color > and get the teacher circle in the legend but I do not get any polygon > outline and no circles for the teachers. > > MAP > EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 > TEMPLATEPATTERN "map" > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > SIZE 700 700 > STATUS ON > UNITS FEET > PROJECTION > "init=epsg:26942" > END > > NAME "calmap" > > OUTPUTFORMAT > NAME gif > MIMETYPE image/gif > DRIVER GD/GIF > EXTENSION gif > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CC > END > POSITION LL > STATUS EMBED > END > > QUERYMAP > COLOR 255 255 0 > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END > > SCALEBAR > COLOR 0 0 0 > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > SIZE 200 3 > STATUS OFF > STYLE 0 > UNITS MILES > END > > WEB > IMAGEPATH "" > IMAGEURL "" > QUERYFORMAT text/html > END > LAYER > CLASSITEM "zcta" > DATA "cal_zp_st" > NAME "calzip" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > MINSCALE 1478131.017053 > TYPE POLYGON > PROJECTION > "init=epsg:26942" > END > UNITS FEET > CLASS > NAME "Teachers in Zips" > EXPRESSION > /95822|94117|93230|94903|91941|94110|95818|95815|91006|92503|90305|90042|953 > 37|95020|90242|94123|92084|94949 > |93702|92802|95648|94103|95135|91103|95687|95632|95329|92024|91326|92054|935 > 60|93010|90043|90805|93023|90012|94606|91405|9195 > 0|90720|93405|94124|91935|95128|95124|94112|92663|92308|94087|92630|92105|94 > 115|94520|90033|94040|94621|92804|95501|91764|939 > 07|92186|94901|95210|94509|95076|94513|91910|95825|90032|93274|94612|91601|9 > 5351|93960|90025|95608|94952|90405|94105|90241|95 > 665|94404|92028|92115|92629|92083|92107|92117|92675|93711|38125|92570|94558| > 93291|93720|95816|92320|95864|94107|94607|94131|9 > 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|95139 > |95692|94704|94611|92585|94402|92705|90063|94560| > 93727|94549|90015|95993|90274|93901|90065|90232|91977|93212|91730|92127|9239 > 2|92111|93706|95452|94804|91107|91945|92612|94539 > |93924|92505|93710|92019|92801|91962|95834|90270|90802|95126|94555|95823|943 > 03|92108|92128|95690|92064|92071|92120|92025|9310 > 9|94580|94904|91406|94108|94070|74580|93034|90066|92509|94401|90059|95562|94 > 947|95242|91911|95521|93111|95658|94122|94102|907 > 45|95050|93449|95060|93446|93726|95969|95110|91104|91001|90049|95838|94577|9 > 2131|92040|95204|94545|91932|95018|91411|92106|94 > 568|95304|95407|94531|95678|90292|92243|91711|92410|95070|93004|92008|95829| > 93908|93721|94703|94954|95959|94134|95428|90003|9 > 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|94806 > |92591|95531|90504|94705|94530|95376|93003|94707| > 95841|95667/ > STYLE > COLOR 255 102 102 > MAXSIZE 100 > MINSIZE 1 > SIZE 1 > SYMBOL 0 > END > END > CLASS > NAME "Zip Boundries" > EXPRESSION /./ > STYLE > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 204 204 204 > OUTLINECOLOR 204 204 204 > SIZE 1 > SYMBOL 0 > END > END > END > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS DEFAULT > TEMPLATE "bogus.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS FEET > MAXSCALE 1478131.017053 > PROJECTION > "proj=latlong" > END > CLASS > NAME "Teachers" > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 2 > COLOR 255 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS FALSE > POSITION AUTO > END > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > SIZE 8 > SYMBOL "circle" > END > END > FEATURE > POINTS > 38.5263 -121.507 > END > > List of points for lat/long with text of teacher's names > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of David Fawcett > Sent: Thursday, December 02, 2004 9:20 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > In addition to what Ethan says, > > For your teachers layer, you could use the below projection block in > place of projection=latlong (this is just the EPSG code for latlong): > > PROJECTION > "init=epsg:4267" > END > > > David J. Fawcett > MN Office of Environmental Assistance > > >>> Ethan Alpert 12/2/2004 11:10:22 AM >>> > Go back and read the answers to your previous posts. What your > PROJECTION blocks should be was already discussed. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 10:08 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Thanks for this information - so do I have to take my point file and > create it within the state plane also? I so how will I do that build? > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > > Behalf Of Ethan Alpert > Sent: Thursday, December 02, 2004 9:01 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > Those are meters not lat/lon and are probably in the California state > plane projection. You posted the .prj previously which clearly showed > that you data was in the state plane projection. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 9:55 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Hello, > > Here we go again. I finally did the following: > > Created a shape file of all of my teacher points by their lat/long. > Dropped the California zip code map on to my laptop and then the new > teacher points file. I then used fGIS > (http://www.digitalgrove.net/fgis.htm) and loaded the California zip > layer and then my new teacher point layer. I can zoom to the zip layer > but when I zoom to the point layer it is way far away from the zip > layer. I did this as a sanity check because I did not think that I > was > even producing the teacher point layer. The questions are: > > If I create a point shape file based upon lat/lon and I have the > California zip file - why will one not lie over the other - are they > not > both based upon lat/long? > > Can I open my teacher dbf file, and go search for the zip in the > California zip file and then rebuild the teacher point file with > coordinates from the California zip file thus allowing me to place my > points in the zip polygon that they belong to? > > In my California shape file on a dump I get: > > ( 5983045.379, 3224996.563, 0, 0) > ( 5989542.292, 3224832.974, 0, 0) > ( 5989921.623, 3224823.475, 0, 0) > ( 5989953.049, 3224815.898, 0, 0) > ( 5990112.487, 3224777.458, 0, 0) > ( 5991452.255, 3224753.633, 0, 0) > ( 5993483.853, 3224717.643, 0, 0) > ( 5993800.929, 3224702.331, 0, 0) > ( 6011910.153, 3224087.577, 0, 0) > ( 6017051.977, 3223915.448, 0, 0) > ( 6026300.989, 3223711.249, 0, 0) > ( 6026888.615, 3222812.493, 0, 0) > > What do these values mean - are they lat/long values? > > Thanks for all of the help that you have given me so far. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From lehrs at ERAU.EDU Thu Dec 2 11:52:09 2004 From: lehrs at ERAU.EDU (Steve Lehr) Date: Thu, 2 Dec 2004 14:52:09 -0500 Subject: AVI/MPEG for visualization over time.. In-Reply-To: <419E2900.9090601@gmx.net> Message-ID: Group: Anyone making movies with Mapserv? I'd like to string a 1000 or so images generated into an AVI, say display a jpeg every N seconds. I can easily make script in php to generate the images, i'm looking for a "library" that allows me to string images together and make a movie type format. Preferrably something free and standard - really hoping for MPEG/AVI. For example the guys who talked at MUM2 about GOMOS might want to look at changes in water over a month. A viewer to string images together would be nice. Anyone using a tool with php or perl to do that? I'm thinking like something below - I'm not nec married to avi could be some other video type; nor am I married to JPEG's below could be png, gif something mapserver renderable #!/usr/bin/perl use AVI; # fictious and hopeful as are all avi calls below avi_file = AVI::create("my_first_action_video.avi"); open(FILE_PIPE, "ls -l width==1 *.jpg |"); while() { chomp(); avi->add_image($_); avi->show_image_for(2); # set delay 2 seconds } close(FILE_PIPE); avi->close(); 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 sirronj at PACBELL.NET Thu Dec 2 11:51:58 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 2 Dec 2004 11:51:58 -0800 Subject: teacher points on California zips revisited In-Reply-To: <1102013304.1985.4.camel@ubet.gomoos.org> Message-ID: I made this change - no change in output. When I zoom into a zip polygon I get the new legend reflecting my circle for teachers but I get not points identified in the polygon. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Thursday, December 02, 2004 10:48 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited You need UNITS DD in your points layer where proj=latlong, or no UNITS since DD is probably the default. On Thu, 2004-12-02 at 13:13, Joseph Norris wrote: > Ok - here is my map file. I have set the min/max of the layers so that when > I zoom in I should be able to see the teacher points and loose the "Teachers > in Zip" coloring - this happens - sort of. When I zoom in I loose the color > and get the teacher circle in the legend but I do not get any polygon > outline and no circles for the teachers. > > MAP > EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 > TEMPLATEPATTERN "map" > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > SIZE 700 700 > STATUS ON > UNITS FEET > PROJECTION > "init=epsg:26942" > END > > NAME "calmap" > > OUTPUTFORMAT > NAME gif > MIMETYPE image/gif > DRIVER GD/GIF > EXTENSION gif > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CC > END > POSITION LL > STATUS EMBED > END > > QUERYMAP > COLOR 255 255 0 > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END > > SCALEBAR > COLOR 0 0 0 > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > SIZE 200 3 > STATUS OFF > STYLE 0 > UNITS MILES > END > > WEB > IMAGEPATH "" > IMAGEURL "" > QUERYFORMAT text/html > END > LAYER > CLASSITEM "zcta" > DATA "cal_zp_st" > NAME "calzip" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > MINSCALE 1478131.017053 > TYPE POLYGON > PROJECTION > "init=epsg:26942" > END > UNITS FEET > CLASS > NAME "Teachers in Zips" > EXPRESSION > /95822|94117|93230|94903|91941|94110|95818|95815|91006|92503|90305|90042|953 > 37|95020|90242|94123|92084|94949 > |93702|92802|95648|94103|95135|91103|95687|95632|95329|92024|91326|92054|935 > 60|93010|90043|90805|93023|90012|94606|91405|9195 > 0|90720|93405|94124|91935|95128|95124|94112|92663|92308|94087|92630|92105|94 > 115|94520|90033|94040|94621|92804|95501|91764|939 > 07|92186|94901|95210|94509|95076|94513|91910|95825|90032|93274|94612|91601|9 > 5351|93960|90025|95608|94952|90405|94105|90241|95 > 665|94404|92028|92115|92629|92083|92107|92117|92675|93711|38125|92570|94558| > 93291|93720|95816|92320|95864|94107|94607|94131|9 > 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|95139 > |95692|94704|94611|92585|94402|92705|90063|94560| > 93727|94549|90015|95993|90274|93901|90065|90232|91977|93212|91730|92127|9239 > 2|92111|93706|95452|94804|91107|91945|92612|94539 > |93924|92505|93710|92019|92801|91962|95834|90270|90802|95126|94555|95823|943 > 03|92108|92128|95690|92064|92071|92120|92025|9310 > 9|94580|94904|91406|94108|94070|74580|93034|90066|92509|94401|90059|95562|94 > 947|95242|91911|95521|93111|95658|94122|94102|907 > 45|95050|93449|95060|93446|93726|95969|95110|91104|91001|90049|95838|94577|9 > 2131|92040|95204|94545|91932|95018|91411|92106|94 > 568|95304|95407|94531|95678|90292|92243|91711|92410|95070|93004|92008|95829| > 93908|93721|94703|94954|95959|94134|95428|90003|9 > 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|94806 > |92591|95531|90504|94705|94530|95376|93003|94707| > 95841|95667/ > STYLE > COLOR 255 102 102 > MAXSIZE 100 > MINSIZE 1 > SIZE 1 > SYMBOL 0 > END > END > CLASS > NAME "Zip Boundries" > EXPRESSION /./ > STYLE > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 204 204 204 > OUTLINECOLOR 204 204 204 > SIZE 1 > SYMBOL 0 > END > END > END > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS DEFAULT > TEMPLATE "bogus.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS FEET > MAXSCALE 1478131.017053 > PROJECTION > "proj=latlong" > END > CLASS > NAME "Teachers" > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 2 > COLOR 255 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS FALSE > POSITION AUTO > END > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > SIZE 8 > SYMBOL "circle" > END > END > FEATURE > POINTS > 38.5263 -121.507 > END > > List of points for lat/long with text of teacher's names > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of David Fawcett > Sent: Thursday, December 02, 2004 9:20 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > In addition to what Ethan says, > > For your teachers layer, you could use the below projection block in > place of projection=latlong (this is just the EPSG code for latlong): > > PROJECTION > "init=epsg:4267" > END > > > David J. Fawcett > MN Office of Environmental Assistance > > >>> Ethan Alpert 12/2/2004 11:10:22 AM >>> > Go back and read the answers to your previous posts. What your > PROJECTION blocks should be was already discussed. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 10:08 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Thanks for this information - so do I have to take my point file and > create it within the state plane also? I so how will I do that build? > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > > Behalf Of Ethan Alpert > Sent: Thursday, December 02, 2004 9:01 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > Those are meters not lat/lon and are probably in the California state > plane projection. You posted the .prj previously which clearly showed > that you data was in the state plane projection. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 9:55 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Hello, > > Here we go again. I finally did the following: > > Created a shape file of all of my teacher points by their lat/long. > Dropped the California zip code map on to my laptop and then the new > teacher points file. I then used fGIS > (http://www.digitalgrove.net/fgis.htm) and loaded the California zip > layer and then my new teacher point layer. I can zoom to the zip layer > but when I zoom to the point layer it is way far away from the zip > layer. I did this as a sanity check because I did not think that I > was > even producing the teacher point layer. The questions are: > > If I create a point shape file based upon lat/lon and I have the > California zip file - why will one not lie over the other - are they > not > both based upon lat/long? > > Can I open my teacher dbf file, and go search for the zip in the > California zip file and then rebuild the teacher point file with > coordinates from the California zip file thus allowing me to place my > points in the zip polygon that they belong to? > > In my California shape file on a dump I get: > > ( 5983045.379, 3224996.563, 0, 0) > ( 5989542.292, 3224832.974, 0, 0) > ( 5989921.623, 3224823.475, 0, 0) > ( 5989953.049, 3224815.898, 0, 0) > ( 5990112.487, 3224777.458, 0, 0) > ( 5991452.255, 3224753.633, 0, 0) > ( 5993483.853, 3224717.643, 0, 0) > ( 5993800.929, 3224702.331, 0, 0) > ( 6011910.153, 3224087.577, 0, 0) > ( 6017051.977, 3223915.448, 0, 0) > ( 6026300.989, 3223711.249, 0, 0) > ( 6026888.615, 3222812.493, 0, 0) > > What do these values mean - are they lat/long values? > > Thanks for all of the help that you have given me so far. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From sirronj at PACBELL.NET Thu Dec 2 11:56:10 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 2 Dec 2004 11:56:10 -0800 Subject: teacher points on California zips revisited In-Reply-To: <1102013304.1985.4.camel@ubet.gomoos.org> Message-ID: Can I not do some sort of merge of the two shape files or better yet can I not open both shape files programmatically and while looking at my California zip shape file build the teacher shape file in accord with the California shape file? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Thursday, December 02, 2004 10:48 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited You need UNITS DD in your points layer where proj=latlong, or no UNITS since DD is probably the default. On Thu, 2004-12-02 at 13:13, Joseph Norris wrote: > Ok - here is my map file. I have set the min/max of the layers so that when > I zoom in I should be able to see the teacher points and loose the "Teachers > in Zip" coloring - this happens - sort of. When I zoom in I loose the color > and get the teacher circle in the legend but I do not get any polygon > outline and no circles for the teachers. > > MAP > EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 > TEMPLATEPATTERN "map" > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata > " > SIZE 700 700 > STATUS ON > UNITS FEET > PROJECTION > "init=epsg:26942" > END > > NAME "calmap" > > OUTPUTFORMAT > NAME gif > MIMETYPE image/gif > DRIVER GD/GIF > EXTENSION gif > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CC > END > POSITION LL > STATUS EMBED > END > > QUERYMAP > COLOR 255 255 0 > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END > > SCALEBAR > COLOR 0 0 0 > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > SIZE 200 3 > STATUS OFF > STYLE 0 > UNITS MILES > END > > WEB > IMAGEPATH "" > IMAGEURL "" > QUERYFORMAT text/html > END > LAYER > CLASSITEM "zcta" > DATA "cal_zp_st" > NAME "calzip" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > MINSCALE 1478131.017053 > TYPE POLYGON > PROJECTION > "init=epsg:26942" > END > UNITS FEET > CLASS > NAME "Teachers in Zips" > EXPRESSION > /95822|94117|93230|94903|91941|94110|95818|95815|91006|92503|90305|90042|953 > 37|95020|90242|94123|92084|94949 > |93702|92802|95648|94103|95135|91103|95687|95632|95329|92024|91326|92054|935 > 60|93010|90043|90805|93023|90012|94606|91405|9195 > 0|90720|93405|94124|91935|95128|95124|94112|92663|92308|94087|92630|92105|94 > 115|94520|90033|94040|94621|92804|95501|91764|939 > 07|92186|94901|95210|94509|95076|94513|91910|95825|90032|93274|94612|91601|9 > 5351|93960|90025|95608|94952|90405|94105|90241|95 > 665|94404|92028|92115|92629|92083|92107|92117|92675|93711|38125|92570|94558| > 93291|93720|95816|92320|95864|94107|94607|94131|9 > 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|95139 > |95692|94704|94611|92585|94402|92705|90063|94560| > 93727|94549|90015|95993|90274|93901|90065|90232|91977|93212|91730|92127|9239 > 2|92111|93706|95452|94804|91107|91945|92612|94539 > |93924|92505|93710|92019|92801|91962|95834|90270|90802|95126|94555|95823|943 > 03|92108|92128|95690|92064|92071|92120|92025|9310 > 9|94580|94904|91406|94108|94070|74580|93034|90066|92509|94401|90059|95562|94 > 947|95242|91911|95521|93111|95658|94122|94102|907 > 45|95050|93449|95060|93446|93726|95969|95110|91104|91001|90049|95838|94577|9 > 2131|92040|95204|94545|91932|95018|91411|92106|94 > 568|95304|95407|94531|95678|90292|92243|91711|92410|95070|93004|92008|95829| > 93908|93721|94703|94954|95959|94134|95428|90003|9 > 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|94806 > |92591|95531|90504|94705|94530|95376|93003|94707| > 95841|95667/ > STYLE > COLOR 255 102 102 > MAXSIZE 100 > MINSIZE 1 > SIZE 1 > SYMBOL 0 > END > END > CLASS > NAME "Zip Boundries" > EXPRESSION /./ > STYLE > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 204 204 204 > OUTLINECOLOR 204 204 204 > SIZE 1 > SYMBOL 0 > END > END > END > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS DEFAULT > TEMPLATE "bogus.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS FEET > MAXSCALE 1478131.017053 > PROJECTION > "proj=latlong" > END > CLASS > NAME "Teachers" > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 2 > COLOR 255 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS FALSE > POSITION AUTO > END > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > SIZE 8 > SYMBOL "circle" > END > END > FEATURE > POINTS > 38.5263 -121.507 > END > > List of points for lat/long with text of teacher's names > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of David Fawcett > Sent: Thursday, December 02, 2004 9:20 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > In addition to what Ethan says, > > For your teachers layer, you could use the below projection block in > place of projection=latlong (this is just the EPSG code for latlong): > > PROJECTION > "init=epsg:4267" > END > > > David J. Fawcett > MN Office of Environmental Assistance > > >>> Ethan Alpert 12/2/2004 11:10:22 AM >>> > Go back and read the answers to your previous posts. What your > PROJECTION blocks should be was already discussed. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 10:08 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Thanks for this information - so do I have to take my point file and > create it within the state plane also? I so how will I do that build? > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > > Behalf Of Ethan Alpert > Sent: Thursday, December 02, 2004 9:01 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > Those are meters not lat/lon and are probably in the California state > plane projection. You posted the .prj previously which clearly showed > that you data was in the state plane projection. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 9:55 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Hello, > > Here we go again. I finally did the following: > > Created a shape file of all of my teacher points by their lat/long. > Dropped the California zip code map on to my laptop and then the new > teacher points file. I then used fGIS > (http://www.digitalgrove.net/fgis.htm) and loaded the California zip > layer and then my new teacher point layer. I can zoom to the zip layer > but when I zoom to the point layer it is way far away from the zip > layer. I did this as a sanity check because I did not think that I > was > even producing the teacher point layer. The questions are: > > If I create a point shape file based upon lat/lon and I have the > California zip file - why will one not lie over the other - are they > not > both based upon lat/long? > > Can I open my teacher dbf file, and go search for the zip in the > California zip file and then rebuild the teacher point file with > coordinates from the California zip file thus allowing me to place my > points in the zip polygon that they belong to? > > In my California shape file on a dump I get: > > ( 5983045.379, 3224996.563, 0, 0) > ( 5989542.292, 3224832.974, 0, 0) > ( 5989921.623, 3224823.475, 0, 0) > ( 5989953.049, 3224815.898, 0, 0) > ( 5990112.487, 3224777.458, 0, 0) > ( 5991452.255, 3224753.633, 0, 0) > ( 5993483.853, 3224717.643, 0, 0) > ( 5993800.929, 3224702.331, 0, 0) > ( 6011910.153, 3224087.577, 0, 0) > ( 6017051.977, 3223915.448, 0, 0) > ( 6026300.989, 3223711.249, 0, 0) > ( 6026888.615, 3222812.493, 0, 0) > > What do these values mean - are they lat/long values? > > Thanks for all of the help that you have given me so far. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From nicolas.fortin at EC.GC.CA Thu Dec 2 12:04:11 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Thu, 2 Dec 2004 15:04:11 -0500 Subject: [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries (Oracle, SDE, and others) Message-ID: Hi Fernando and List, I use an ASP page that call mapserver CGI with the correct mapfile. I use mapserver html template to test my services. It's not query mode but simple GetMap requests. One weird thing I saw with some testing : If I ask for two layers, a raster and an oracle spatial one by example, all work fine and I get an image! If I ask ONLY for oracle spatial layers (1 or more), I get the CGI error message... So I think the problem is not really the connection cause the layer(s) appear when it's not alone and with another type of Data. Calling mapserver directly with the usual parameter gives the same result. What's wrong with this? If anybody could help me solve this... What's FastCGI ? Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Fernando S. Envoy? : Thursday, December 02, 2004 11:04 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] 4.4 Windows Binaries (Oracle, SDE, and others) Hi Nicolas, In this new version the connection string didn't changed. This error didin't occured here, if you will look the source code this message appear only when the mapserver didn't connected the Oracle. So, are you tried with FastCGI support? How are you call the mapserver (CGI)? Is it query mode? Thanks. --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Fortin,Nicolas [SteFoy] wrote: >Hi Fernando, > >Thanks for your quick answer... > >I used the exact same mapfile I used for my previous version of >mapserver. It worked fine with this previous version. Here's the >mapserv-v output : MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG >OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE >SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS >INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >If I point directly to mapserver on the server I got the normal: No >query information to decode. QUERY_STRING not set. > >If I asked for a raster layer, I got it normally. > >It's only when I asked for an Oracle layer that I get the error >message. (We use Oracle 9.2.0.4 and 10g) Either the message from my >previous post or : Erreur CGI L'application CGI sp?cifi?e a mal >fonctionn? en ne renvoyant pas de jeu complet d'en-t?tes HTTP. Les >en-t?tes renvoy?s sont : > >Do I have to change something in the mapfile!? > >Nicolas > > From ealpert at DIGITALGLOBE.COM Thu Dec 2 12:04:54 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 2 Dec 2004 13:04:54 -0700 Subject: teacher points on California zips revisited Message-ID: Ok I grabbed your map file are you sure that POINTS should be lat lon and not lon lat? I think the X point should be first and the Y point second you have Y first and X second. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, December 02, 2004 12:56 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited Can I not do some sort of merge of the two shape files or better yet can I not open both shape files programmatically and while looking at my California zip shape file build the teacher shape file in accord with the California shape file? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Thursday, December 02, 2004 10:48 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips revisited You need UNITS DD in your points layer where proj=latlong, or no UNITS since DD is probably the default. On Thu, 2004-12-02 at 13:13, Joseph Norris wrote: > Ok - here is my map file. I have set the min/max of the layers so > that when > I zoom in I should be able to see the teacher points and loose the "Teachers > in Zip" coloring - this happens - sort of. When I zoom in I loose the color > and get the teacher circle in the legend but I do not get any polygon > outline and no circles for the teachers. > > MAP > EXTENT 5706290.827754 -192053.2 9127890.404246 3226086.749 > TEMPLATEPATTERN "map" > IMAGECOLOR 255 255 255 > IMAGETYPE gif > SHAPEPATH > "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/t data > " > SIZE 700 700 > STATUS ON > UNITS FEET > PROJECTION > "init=epsg:26942" > END > > NAME "calmap" > > OUTPUTFORMAT > NAME gif > MIMETYPE image/gif > DRIVER GD/GIF > EXTENSION gif > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > SYMBOL > NAME "circle" > TYPE ELLIPSE > FILLED TRUE > POINTS > 1 1 > END > END > > LEGEND > IMAGECOLOR 255 255 255 > KEYSIZE 20 10 > KEYSPACING 5 5 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > POSITION CC > END > POSITION LL > STATUS EMBED > END > > QUERYMAP > COLOR 255 255 0 > SIZE -1 -1 > STATUS OFF > STYLE HILITE > END > > SCALEBAR > COLOR 0 0 0 > IMAGECOLOR 255 255 255 > INTERVALS 4 > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 0 > COLOR 0 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS TRUE > END > POSITION LL > SIZE 200 3 > STATUS OFF > STYLE 0 > UNITS MILES > END > > WEB > IMAGEPATH "" > IMAGEURL "" > QUERYFORMAT text/html > END > LAYER > CLASSITEM "zcta" > DATA "cal_zp_st" > NAME "calzip" > SIZEUNITS PIXELS > STATUS DEFAULT > TOLERANCE 0 > TOLERANCEUNITS PIXELS > MINSCALE 1478131.017053 > TYPE POLYGON > PROJECTION > "init=epsg:26942" > END > UNITS FEET > CLASS > NAME "Teachers in Zips" > EXPRESSION > /95822|94117|93230|94903|91941|94110|95818|95815|91006|92503|90305|90042 |953 > 37|95020|90242|94123|92084|94949 > |93702|92802|95648|94103|95135|91103|95687|95632|95329|92024|91326|92054 |935 > 60|93010|90043|90805|93023|90012|94606|91405|9195 > 0|90720|93405|94124|91935|95128|95124|94112|92663|92308|94087|92630|9210 5|94 > 115|94520|90033|94040|94621|92804|95501|91764|939 > 07|92186|94901|95210|94509|95076|94513|91910|95825|90032|93274|94612|916 01|9 > 5351|93960|90025|95608|94952|90405|94105|90241|95 > 665|94404|92028|92115|92629|92083|92107|92117|92675|93711|38125|92570|94 558| > 93291|93720|95816|92320|95864|94107|94607|94131|9 > 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|9 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|5 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|1 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|3 0018|95125|91789|91101|95118|96001|94710|95032|95570|94121|92507|90262|9 > |95692|94704|94611|92585|94402|92705|90063|94560| > 93727|94549|90015|95993|90274|93901|90065|90232|91977|93212|91730|92127| 9239 > 2|92111|93706|95452|94804|91107|91945|92612|94539 > |93924|92505|93710|92019|92801|91962|95834|90270|90802|95126|94555|95823 |943 > 03|92108|92128|95690|92064|92071|92120|92025|9310 > 9|94580|94904|91406|94108|94070|74580|93034|90066|92509|94401|90059|9556 2|94 > 947|95242|91911|95521|93111|95658|94122|94102|907 > 45|95050|93449|95060|93446|93726|95969|95110|91104|91001|90049|95838|945 77|9 > 2131|92040|95204|94545|91932|95018|91411|92106|94 > 568|95304|95407|94531|95678|90292|92243|91711|92410|95070|93004|92008|95 829| > 93908|93721|94703|94954|95959|94134|95428|90003|9 > 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|9 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|4 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|8 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|0 1384|93591|94304|94501|94133|95670|95814|95127|93012|94591|92121|90220|6 > |92591|95531|90504|94705|94530|95376|93003|94707| > 95841|95667/ > STYLE > COLOR 255 102 102 > MAXSIZE 100 > MINSIZE 1 > SIZE 1 > SYMBOL 0 > END > END > CLASS > NAME "Zip Boundries" > EXPRESSION /./ > STYLE > MAXSIZE 100 > MINSIZE 1 > OUTLINECOLOR 204 204 204 > OUTLINECOLOR 204 204 204 > SIZE 1 > SYMBOL 0 > END > END > END > > LAYER > NAME "points" > SIZEUNITS PIXELS > STATUS DEFAULT > TEMPLATE "bogus.html" > TOLERANCE 10 > TOLERANCEUNITS PIXELS > TYPE POINT > UNITS FEET > MAXSCALE 1478131.017053 > PROJECTION > "proj=latlong" > END > CLASS > NAME "Teachers" > LABEL > SIZE MEDIUM > TYPE BITMAP > BUFFER 2 > COLOR 255 0 0 > FORCE FALSE > MINDISTANCE -1 > MINFEATURESIZE -1 > OFFSET 0 0 > PARTIALS FALSE > POSITION AUTO > END > STYLE > COLOR 255 255 0 > OUTLINECOLOR 0 0 0 > SIZE 8 > SYMBOL "circle" > END > END > FEATURE > POINTS > 38.5263 -121.507 > END > > List of points for lat/long with text of teacher's names > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of David Fawcett > Sent: Thursday, December 02, 2004 9:20 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > In addition to what Ethan says, > > For your teachers layer, you could use the below projection block in > place of projection=latlong (this is just the EPSG code for latlong): > > PROJECTION > "init=epsg:4267" > END > > > David J. Fawcett > MN Office of Environmental Assistance > > >>> Ethan Alpert 12/2/2004 11:10:22 AM >>> > Go back and read the answers to your previous posts. What your > PROJECTION blocks should be was already discussed. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 10:08 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Thanks for this information - so do I have to take my point file and > create it within the state plane also? I so how will I do that build? > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu]On > > Behalf Of Ethan Alpert > Sent: Thursday, December 02, 2004 9:01 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > Those are meters not lat/lon and are probably in the California state > plane projection. You posted the .prj previously which clearly showed > that you data was in the state plane projection. > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] > On > Behalf Of Joseph Norris > Sent: Thursday, December 02, 2004 9:55 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] teacher points on California zips > revisited > > > Hello, > > Here we go again. I finally did the following: > > Created a shape file of all of my teacher points by their lat/long. > Dropped the California zip code map on to my laptop and then the new > teacher points file. I then used fGIS > (http://www.digitalgrove.net/fgis.htm) and loaded the California zip > layer and then my new teacher point layer. I can zoom to the zip layer > but when I zoom to the point layer it is way far away from the zip > layer. I did this as a sanity check because I did not think that I > was even producing the teacher point layer. The questions are: > > If I create a point shape file based upon lat/lon and I have the > California zip file - why will one not lie over the other - are they > not both based upon lat/long? > > Can I open my teacher dbf file, and go search for the zip in the > California zip file and then rebuild the teacher point file with > coordinates from the California zip file thus allowing me to place my > points in the zip polygon that they belong to? > > In my California shape file on a dump I get: > > ( 5983045.379, 3224996.563, 0, 0) > ( 5989542.292, 3224832.974, 0, 0) > ( 5989921.623, 3224823.475, 0, 0) > ( 5989953.049, 3224815.898, 0, 0) > ( 5990112.487, 3224777.458, 0, 0) > ( 5991452.255, 3224753.633, 0, 0) > ( 5993483.853, 3224717.643, 0, 0) > ( 5993800.929, 3224702.331, 0, 0) > ( 6011910.153, 3224087.577, 0, 0) > ( 6017051.977, 3223915.448, 0, 0) > ( 6026300.989, 3223711.249, 0, 0) > ( 6026888.615, 3222812.493, 0, 0) > > What do these values mean - are they lat/long values? > > Thanks for all of the help that you have given me so far. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From mike.and.kerry at GMAIL.COM Thu Dec 2 12:35:44 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Thu, 2 Dec 2004 11:35:44 -0900 Subject: AVI/MPEG for visualization over time.. In-Reply-To: Message-ID: There is a a patch for php that allows you to create animated gif's from a series of gif images here: http://hyvatti.iki.fi/~jaakko/sw/ This probably wouldn't work well for 1000 or so images, like you mentioned. I am not sure about other image formats or movie formats. On Thu, 2 Dec 2004 14:52:09 -0500, Steve Lehr wrote: > Group: > > Anyone making movies with Mapserv? I'd like to string a 1000 or so images > generated into an AVI, say display a jpeg every N seconds. > > I can easily make script in php to generate the images, i'm looking for a > "library" that allows me to string images together and make a movie type > format. > > Preferrably something free and standard - really hoping for MPEG/AVI. For > example the guys who talked at MUM2 about GOMOS might want to look at > changes in water over a month. A viewer to string images together would be > nice. > > Anyone using a tool with php or perl to do that? > > I'm thinking like something below - I'm not nec married to avi could be some > other video type; nor am I married to JPEG's below could be png, gif > something mapserver renderable > > #!/usr/bin/perl > > use AVI; # fictious and hopeful as are all avi calls below > > avi_file = AVI::create("my_first_action_video.avi"); > open(FILE_PIPE, "ls -l width==1 *.jpg |"); > while() > { > chomp(); > avi->add_image($_); > avi->show_image_for(2); # set delay 2 seconds > } > close(FILE_PIPE); > avi->close(); > > 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 nhv at CAPE.COM Thu Dec 2 12:41:08 2004 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 2 Dec 2004 15:41:08 -0500 Subject: AVI/MPEG for visualization over time.. In-Reply-To: Message-ID: Steve Lehr writes: > > Anyone making movies with Mapserv? I'd like to string a 1000 or so images > generated into an AVI, say display a jpeg every N seconds. > > I can easily make script in php to generate the images, i'm looking for a > "library" that allows me to string images together and make a movie type > format. > > Preferrably something free and standard - really hoping for MPEG/AVI. For > example the guys who talked at MUM2 about GOMOS might want to look at > changes in water over a month. A viewer to string images together would be > nice. There are several programs that can take a directory of consecutively numbered images and make an AVI or mpeg google( "create AVI" ) should yield lots of hits Norman From Micheal.Arnold at NSCORP.COM Thu Dec 2 12:44:07 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Thu, 2 Dec 2004 15:44:07 -0500 Subject: mode=map question Message-ID: Thank you so much for the help. I was running version 4.2.0 on windows. I downloaded version 4.2.5 from maptools, and that worked like a charm! Thanks again, Mike Arnold micheal.arnold at nscorp.com -----Original Message----- From: Mike Davis [mailto:mike.and.kerry at gmail.com] Sent: Thursday, December 02, 2004 3:30 PM To: Arnold, Micheal B. Subject: Re: [UMN_MAPSERVER-USERS] mode=map question Which version of Mapserver are you using? Is it on Windows or Linux? I recently had problems of a similar nature, which were finaly attributed to an error with one of the support files (windows .dll file) I downloaded the maptools version and everything worked grea. On Thu, 2 Dec 2004 13:18:29 -0500, Arnold, Micheal B. wrote: > > > > I am attempting to use jBox's setimage for image swapping, but am having > problems when I use mode=map in my querystring. I get a 'page cannot be > displayed' error. It works fine for browse mode. Does anyone have any > ideas why or what I might do to get it working? > > > > Thanks once again for all of your help. > > > > - Mike From ed at TOPOZONE.COM Thu Dec 2 12:49:54 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 2 Dec 2004 15:49:54 -0500 Subject: OGC Service Access with Basic Authentication Message-ID: Folks - I'd like to set up some restricted-access OGC services using simple HTTP Basic Authentication. I'm a little confused on whether this is simple or not . My confusion comes from the wms_onlineresource metadata specified in the MAP file. I have always thought this was required, but I now see that it's actually "Recommended" in the OGC specs. I can easily restrict access to the resource using Basic Authentication through my Web server - that's not my question. Since I'm trying to set this up for general end-user access, I don't want to have to create a unique set of MAP files, each with a unique username/password in the wms_onlineresource field, one set of MAP files for each user. I'd like to simply manage the user authentication to a single set of services/MAP files. Can I do this? Can I simply omit the wms_onlineresource field in the metadata and trust the client to remember the URL root including username/password? I don't have a lot of experience with different WMS clients, so I'm worried that some will work and some won't. However, if the wms_onlineresource field is really not required, maybe I'm worrying about nothing. Any experience or input would be appreciated - 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 nhv at CAPE.COM Thu Dec 2 12:58:11 2004 From: nhv at CAPE.COM (Norman Vine) Date: Thu, 2 Dec 2004 15:58:11 -0500 Subject: OGC Service Access with Basic Authentication In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FD8D@ptolemy.topozone.com> Message-ID: Ed, There was a recent thread on this over on the WMS list http://lists.eogeo.org/pipermail/wms-dev/2004-November/000651.html HTH Norman > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Ed McNierney > Sent: Thursday, December 02, 2004 3:50 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] OGC Service Access with Basic > Authentication > > > Folks - > > I'd like to set up some restricted-access OGC services using simple HTTP > Basic Authentication. I'm a little confused on whether this is simple > or not . > > My confusion comes from the wms_onlineresource metadata specified in the > MAP file. I have always thought this was required, but I now see that > it's actually "Recommended" in the OGC specs. I can easily restrict > access to the resource using Basic Authentication through my Web server > - that's not my question. Since I'm trying to set this up for general > end-user access, I don't want to have to create a unique set of MAP > files, each with a unique username/password in the wms_onlineresource > field, one set of MAP files for each user. I'd like to simply manage > the user authentication to a single set of services/MAP files. > > Can I do this? Can I simply omit the wms_onlineresource field in the > metadata and trust the client to remember the URL root including > username/password? I don't have a lot of experience with different WMS > clients, so I'm worried that some will work and some won't. However, if > the wms_onlineresource field is really not required, maybe I'm worrying > about nothing. > > Any experience or input would be appreciated - 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 ed at TOPOZONE.COM Thu Dec 2 13:00:51 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 2 Dec 2004 16:00:51 -0500 Subject: OGC Service Access with Basic Authentication Message-ID: Norman - Thanks for the pointer! Unfortunately, that didn't really answer the question, although it looks like a few folks on this list are also concerned . Maybe it's just time for some experimentation... - Ed -----Original Message----- From: Norman Vine [mailto:nhv at cape.com] Sent: Thursday, December 02, 2004 3:58 PM To: Ed McNierney; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] OGC Service Access with Basic Authentication Ed, There was a recent thread on this over on the WMS list http://lists.eogeo.org/pipermail/wms-dev/2004-November/000651.html HTH Norman > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On > Behalf Of Ed McNierney > Sent: Thursday, December 02, 2004 3:50 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] OGC Service Access with Basic > Authentication > > > Folks - > > I'd like to set up some restricted-access OGC services using simple > HTTP Basic Authentication. I'm a little confused on whether this is > simple or not . > > My confusion comes from the wms_onlineresource metadata specified in > the MAP file. I have always thought this was required, but I now see > that it's actually "Recommended" in the OGC specs. I can easily > restrict access to the resource using Basic Authentication through my > Web server > - that's not my question. Since I'm trying to set this up for general > end-user access, I don't want to have to create a unique set of MAP > files, each with a unique username/password in the wms_onlineresource > field, one set of MAP files for each user. I'd like to simply manage > the user authentication to a single set of services/MAP files. > > Can I do this? Can I simply omit the wms_onlineresource field in the > metadata and trust the client to remember the URL root including > username/password? I don't have a lot of experience with different > WMS clients, so I'm worried that some will work and some won't. > However, if the wms_onlineresource field is really not required, maybe > I'm worrying about nothing. > > Any experience or input would be appreciated - 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 lists at WEBMAPIT.COM.BR Thu Dec 2 13:17:57 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 2 Dec 2004 19:17:57 -0200 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: Hi Sean, Do I have the possibility of compiling Perl or Python mapscript locally , upload it, and then use this module dinamically? Basically, my problem is that my host does not allow me to use "dl()" function of PHP. So, I'd like to know if a similar exists for Python/Perl/Ruby... thanks Eduardo Patto Kanegae http://www.webmapit.com.br ICQ: 303747254 Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** On Thu, 2 Dec 2004 09:17:21 -0700, Sean Gillies escreveu: > De: Sean Gillies > Data: Thu, 2 Dec 2004 09:17:21 -0700 > Para: Eduardo Patto Kanegae > Assunto: Re: MapServer 4.4.0 released > > On Dec 2, 2004, at 8:58 AM, Eduardo Patto Kanegae wrote: > > > Hi folks, I have a little doubt on MapScript SWIG modules: > > > > - does Perl/Python/Ruby mapscript modules need to be compiled too, as > > PHPMapScript does? > > > > or can I simply copy/include a .py/.pl/.rb for MapScript definitions > > and that's all? > > > > thanks > > > > Eduardo Patto Kanegae > > http://www.webmapit.com.br > > ICQ: 303747254 > > > > You need to compile them. Change directory into mapscript/* and follow > the > instructions. They are slightly different in each case. > > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > > > > From sgillies at FRII.COM Thu Dec 2 13:52:20 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 2 Dec 2004 14:52:20 -0700 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: On Dec 2, 2004, at 2:17 PM, Eduardo Patto Kanegae wrote: > Hi Sean, > > Do I have the possibility of compiling Perl or Python mapscript > locally , upload it, and then use this module dinamically? > > Basically, my problem is that my host does not allow me to use "dl()" > function of PHP. So, I'd like to know if a similar exists for > Python/Perl/Ruby... > > thanks > > Eduardo Patto Kanegae > http://www.webmapit.com.br > ICQ: 303747254 > Eduardo, It is unlikely that you can upload a module that will just work on the other system. For Python you will need to build the mapscript module using the system's python program, and it will also require that there is a C compiler on board. This will also be true for Perl or Ruby. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From dylan at IICI.NO-IP.ORG Thu Dec 2 14:03:01 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Thu, 2 Dec 2004 14:03:01 -0800 Subject: AVI/MPEG for visualization over time.. In-Reply-To: Message-ID: On Thursday 02 December 2004 12:41 pm, Norman Vine wrote: > Steve Lehr writes: > > Anyone making movies with Mapserv? I'd like to string a 1000 or so > > images generated into an AVI, say display a jpeg every N seconds. > > > > I can easily make script in php to generate the images, i'm looking for a > > "library" that allows me to string images together and make a movie type > > format. > > > > Preferrably something free and standard - really hoping for MPEG/AVI. > > For example the guys who talked at MUM2 about GOMOS might want to look at > > changes in water over a month. A viewer to string images together would > > be nice. > > There are several programs that can take a directory of consecutively > numbered images and make an AVI or mpeg > > google( "create AVI" ) should yield lots of hits > > Norman I use imagemagick (convert) and mpeg2encode to make mpegs out of PNG or PPM images on a Linux machine. imagemagick isn't too hard to get a hold of, but the mpeg2encode program must be compiled fromsource. -- Dylan Beaudette Soil Science Graduate Group University of California at Davis From Tom.Kralidis at EC.GC.CA Thu Dec 2 14:03:22 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 2 Dec 2004 17:03:22 -0500 Subject: AVI/MPEG for visualization over time.. Message-ID: This would be really sweet to animate time series information, even in OGC approaches (i.e. use WMS GetMap format=mpeg [or animated image] with TIME parameters passed for intervals of data). ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dylan Beaudette > Sent: Thursday, 02 December, 2004 17:03 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] AVI/MPEG for visualization > over time.. > > > On Thursday 02 December 2004 12:41 pm, Norman Vine wrote: > > Steve Lehr writes: > > > Anyone making movies with Mapserv? I'd like to string a > 1000 or so > > > images generated into an AVI, say display a jpeg every N seconds. > > > > > > I can easily make script in php to generate the images, > i'm looking > > > for a "library" that allows me to string images together > and make a > > > movie type format. > > > > > > Preferrably something free and standard - really hoping for > > > MPEG/AVI. For example the guys who talked at MUM2 about > GOMOS might > > > want to look at changes in water over a month. A viewer > to string > > > images together would be nice. > > > > There are several programs that can take a directory of > consecutively > > numbered images and make an AVI or mpeg > > > > google( "create AVI" ) should yield lots of hits > > > > Norman > > I use imagemagick (convert) and mpeg2encode to make mpegs out > of PNG or PPM images on a Linux machine. imagemagick isn't > too hard to get a hold of, but the mpeg2encode program must > be compiled fromsource. > > > > -- > Dylan Beaudette > Soil Science Graduate Group > University of California at Davis > From dylan at IICI.NO-IP.ORG Thu Dec 2 14:23:29 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Thu, 2 Dec 2004 14:23:29 -0800 Subject: AVI/MPEG for visualization over time.. In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7D705@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On Thursday 02 December 2004 02:03 pm, you wrote: > This would be really sweet to animate time series information, even in > OGC approaches (i.e. use WMS GetMap format=mpeg [or animated image] with > TIME parameters passed for intervals of data). > > ..Tom it sure is! I have done it a couple of times with output from POVRAY(http://169.237.35.250/~dylan/lab_website/dylan/gis/povray/friant1.mpeg) , and GRASS (http://169.237.35.250/~dylan/solar/beam1.mpg) ...but never with mapserver... have fun! Dylan > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dylan Beaudette > > Sent: Thursday, 02 December, 2004 17:03 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] AVI/MPEG for visualization > > over time.. > > > > On Thursday 02 December 2004 12:41 pm, Norman Vine wrote: > > > Steve Lehr writes: > > > > Anyone making movies with Mapserv? I'd like to string a > > > > 1000 or so > > > > > > images generated into an AVI, say display a jpeg every N seconds. > > > > > > > > I can easily make script in php to generate the images, > > > > i'm looking > > > > > > for a "library" that allows me to string images together > > > > and make a > > > > > > movie type format. > > > > > > > > Preferrably something free and standard - really hoping for > > > > MPEG/AVI. For example the guys who talked at MUM2 about > > > > GOMOS might > > > > > > want to look at changes in water over a month. A viewer > > > > to string > > > > > > images together would be nice. > > > > > > There are several programs that can take a directory of > > > > consecutively > > > > > numbered images and make an AVI or mpeg > > > > > > google( "create AVI" ) should yield lots of hits > > > > > > Norman > > > > I use imagemagick (convert) and mpeg2encode to make mpegs out > > of PNG or PPM images on a Linux machine. imagemagick isn't > > too hard to get a hold of, but the mpeg2encode program must > > be compiled fromsource. > > > > > > > > -- > > Dylan Beaudette > > Soil Science Graduate Group > > University of California at Davis From nasir_pcit at YAHOO.COM Thu Dec 2 14:41:46 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Thu, 2 Dec 2004 14:41:46 -0800 Subject: No subject Message-ID: Hi, I am trying to understand mapserver's tutorial examples. I am facing a problem with IMAGETYPE tag. when I set IMAGETYPE PNG, map isn't displayed but when I comment it out then it 's ok. Why it is so? Here is map files: MAP #IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "C:\Program Files\Apache Group\Apache2\htdocs\tutorial\data\" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" ellps=clrk66" "lat_0=45" "lon_0=-100" # Alternatively, you can specify an EPSG code. # "init=epsg:2163" END LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END # end of map file/object Nasir --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nasir_pcit at YAHOO.COM Thu Dec 2 14:42:00 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Thu, 2 Dec 2004 14:42:00 -0800 Subject: IMAGETYPE Message-ID: Hi, I am trying to understand mapserver's tutorial examples. I am facing a problem with IMAGETYPE tag. when I set IMAGETYPE PNG, map isn't displayed but when I comment it out then it 's ok. Why it is so? Here is map files: MAP #IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "C:\Program Files\Apache Group\Apache2\htdocs\tutorial\data\" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" ellps=clrk66" "lat_0=45" "lon_0=-100" # Alternatively, you can specify an EPSG code. # "init=epsg:2163" END LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END # end of map file/object Nasir --------------------------------- Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfletcher at LATITUDEGEO.COM Thu Dec 2 14:54:26 2004 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Thu, 2 Dec 2004 14:54:26 -0800 Subject: SLD Filter Using Default Mapfile Rendering Message-ID: > What you could do is, if the data you're fetching is > available as OGC:WFS, is use MapServer as a WFS client and > apply the filter at the mapfile (or dynamically generated) > level and assume the same rendering as per mapfile. That's a really good idea - one I hadn't considered. The only problem is that I need to be able to apply a filter dynamically through the CGI interface (I'm assuming Mapserver doesn't expose any CGI interface to access the filter for WFS layers). Has there ever been talk of the implementation of a DefaultSymbolizer in the SLD spec that would do this sort of thing? I suppose the SLD spec could also just recommend a default action for a WMS to take if no Symbolizer is present. Of course, I could just be exposing my ignorance of the whole subject... Thanks for the help. John From superbla3000 at GMX.NET Thu Dec 2 15:04:16 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 3 Dec 2004 00:04:16 +0100 Subject: make warnings Message-ID: hello list, i just proudly compiled my first mapserver on suse 9.1. It works fine, but I got lot's of warnings and missings in the make output. Is this normal? Below is a small selection. regards Joerg mapwms.c: In function `msWMSGetStyles': mapwms.c:1491: warning: implicit declaration of function `msSLDGenerateSLD' mapwms.c:1491: warning: assignment makes pointer from integer without a cast mapimagemap.c:58: warning: `searchImageCache' defined but not used mapimagemap.c:94: warning: `addImageCache' defined but not used mapimagemap.c:347: warning: `imageOffsetPolyline' defined but not used mapimagemap.c:378: warning: `imagePolyline' defined but not used mapimagemap.c:1414: warning: `billboardIM' defined but not used php_mapscript_util.o php_mapscript_util.c php_mapscript_util.c: In function `_phpms_fetch_handle2': php_mapscript_util.c:153: warning: dereferencing type-punned pointer will break strict-aliasing rules php_mapscript_util.c: In function `_phpms_fetch_property_handle2': php_mapscript_util.c:205: warning: dereferencing type-punned pointer will break strict-aliasing rules mapscript_i.c: In function `layerObj_generateSLD': mapscript_i.c:793: warning: return makes pointer from integer without a cast From lists at WEBMAPIT.COM.BR Thu Dec 2 16:20:44 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Thu, 2 Dec 2004 22:20:44 -0200 Subject: MapServer 4.4.0 released In-Reply-To: <70C6A462-44AC-11D9-8C8F-000D9329D732@frii.com> Message-ID: Thanks Sean, I think that maybe some basic shapefile functionally could solve my problem. Do you think is it possible to create a "PHP shapelib wrapper" using SWIG? best Eduardo Patto Kanegae http://www.webmapit.com.br ICQ: 303747254 Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** On Thu, 2 Dec 2004 14:52:20 -0700, Sean Gillies escreveu: > De: Sean Gillies > Data: Thu, 2 Dec 2004 14:52:20 -0700 > Para: Eduardo Patto Kanegae > Assunto: Re: MapServer 4.4.0 released > > On Dec 2, 2004, at 2:17 PM, Eduardo Patto Kanegae wrote: > > > Hi Sean, > > > > Do I have the possibility of compiling Perl or Python mapscript > > locally , upload it, and then use this module dinamically? > > > > Basically, my problem is that my host does not allow me to use "dl()" > > function of PHP. So, I'd like to know if a similar exists for > > Python/Perl/Ruby... > > > > thanks > > > > Eduardo Patto Kanegae > > http://www.webmapit.com.br > > ICQ: 303747254 > > > > Eduardo, > > It is unlikely that you can upload a module that will just work > on the other system. > > For Python you will need to build the mapscript module using the > system's python program, and it will also require that there is a > C compiler on board. This will also be true for Perl or Ruby. > > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies > > > > From sgillies at FRII.COM Thu Dec 2 16:26:21 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 2 Dec 2004 17:26:21 -0700 Subject: MapServer 4.4.0 released In-Reply-To: <20041203002044.20003.qmail@hm47.locaweb.com.br> Message-ID: On Dec 2, 2004, at 5:20 PM, Eduardo Patto Kanegae wrote: > Thanks Sean, > > I think that maybe some basic shapefile functionally could solve my > problem. > > Do you think is it possible to create a "PHP shapelib wrapper" using > SWIG? > > best > I don't know, and will have to defer to the PHP and shapelib experts. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ken at SANDNARROWS.COM Thu Dec 2 16:30:12 2004 From: ken at SANDNARROWS.COM (Ken Sanderson) Date: Thu, 2 Dec 2004 18:30:12 -0600 Subject: Need help with WMS and Projections Message-ID: Hello, I am trying to get my head around how remote WMS layers work with projections and hoping that someone here can steer me in the right direction. Here is how I have assumed it works. My client goes to a remote WMS layer and first asks for the layer in the projection of the client, if it doesnt support that it looks through the SRS tags of the WMS layer and finds the first one that it understands, by understands I mean thats included in my EPSG file, requests the image and my mapserver reprojects it to the projection my client is using. Thats what I thought, but using a WMS layer has drawn this into question, so is this true or not? Here is what has brought up the problem. I have two clients. One is in a projection of 4326 and another 42304 (LCC Canada). When I load a specific WMS layer it works in 4326, but would not work in 42304. Here is the SRS info from the remote WMS layer: EPSG:102190 EPSG:42102 EPSG:3005 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611 EPSG:32612 In my thinking since I have a number of these in my EPSG file, specifically 4326, than I should have no problem loaded the WMS layer into my client, regardless of what projection my client was using. In order to get this to work in both of my clients I had to add a new projection to my EPSG file. 102190 is BC Albers 42102 projection. As 102190 was the projection listed in the bounding box tag, I simply copied the 42102 and put a new one into my EPSG file with the number 102190. Works fine now. While this is working for me, I dont think its really a good solution as I cant be adding new entries to my EPSG file for every WMS layer my users may want to load. Sorry for this being long, but I really wanted to give all the details. How this has worked out has made me think my prior beliefs to how projections with remote WMS layers worked are wrong. So my question is, how do they work if they dont work the way I thought they did? Thanks, Ken From ed at TOPOZONE.COM Thu Dec 2 16:40:16 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 2 Dec 2004 19:40:16 -0500 Subject: Need help with WMS and Projections Message-ID: Ken - I'm having a hard time parsing your usage of "client", "my mapserver", and "remote". Could you explain the data flow a little more clearly? You say that your "client" requests a "remote" layer and asks for it in its desired projection, and if it can't get it, then "my mapserver" somehow appears to reproject it and save the day . Where did your mapserver come from? Is it always there, acting as a WMS client to the "remote WMS layer"? What application is your "client"? Feel free to throw in a little ASCII art.... - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Sanderson Sent: Thursday, December 02, 2004 7:30 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Need help with WMS and Projections Hello, I am trying to get my head around how remote WMS layers work with projections and hoping that someone here can steer me in the right direction. Here is how I have assumed it works. My client goes to a remote WMS layer and first asks for the layer in the projection of the client, if it doesnt support that it looks through the SRS tags of the WMS layer and finds the first one that it understands, by understands I mean thats included in my EPSG file, requests the image and my mapserver reprojects it to the projection my client is using. Thats what I thought, but using a WMS layer has drawn this into question, so is this true or not? Here is what has brought up the problem. I have two clients. One is in a projection of 4326 and another 42304 (LCC Canada). When I load a specific WMS layer it works in 4326, but would not work in 42304. Here is the SRS info from the remote WMS layer: EPSG:102190 EPSG:42102 EPSG:3005 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611 EPSG:32612 In my thinking since I have a number of these in my EPSG file, specifically 4326, than I should have no problem loaded the WMS layer into my client, regardless of what projection my client was using. In order to get this to work in both of my clients I had to add a new projection to my EPSG file. 102190 is BC Albers 42102 projection. As 102190 was the projection listed in the bounding box tag, I simply copied the 42102 and put a new one into my EPSG file with the number 102190. Works fine now. While this is working for me, I dont think its really a good solution as I cant be adding new entries to my EPSG file for every WMS layer my users may want to load. Sorry for this being long, but I really wanted to give all the details. How this has worked out has made me think my prior beliefs to how projections with remote WMS layers worked are wrong. So my question is, how do they work if they dont work the way I thought they did? Thanks, Ken From jacob.delfos at MAUNSELL.COM Thu Dec 2 16:43:57 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 3 Dec 2004 08:43:57 +0800 Subject: Win XP and paths in the .map file Message-ID: Manuel, I have had similar problems using IIS 6 on Windows Server 2003. The configuration of IIS is a bit confusing, and I haven't figured out the problem yet. Only thing you could check is to make sure that you got your execution permissions set up correctly. You may have to add your mapserver executable to the pool of programs that is allowed to run on the server, and then also specify for each directory that mapserver is allowed to run in there (it's kind of doubled-up in IIS). Aside from that it's still a mystery to me. I use the a similar configuration on win2k without problems. XP and 2003 server have a different configuration. Specifying IUSR permissions does not seem to suffice. I would suggest you make your shapepath absolute, though. To make sure there is no confusion about relativity to the webroot, or the executable path. Jacob P.S. be aware of the 10 user connection limit with IIS, on a non-server version of windows. May be better of using apache. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 3 December 2004 02:04 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Win XP and paths in the .map file You are right in thinking that this is probably a permissions problem. Be sure that the IUSR account has read access to that particular file; I think permission settings are the most common cause of problems when migrating from one machine to another "identical" one. Separately, it might not be the best idea to store your shapefiles in the wwwroot tree if you want to protect them from being accessed outside of MapServer. It's usually wise to place MapServer's data files safely outside any place that grants access to Web users. - 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 Manuel Alonso Sent: Thursday, December 02, 2004 11:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Win XP and paths in the .map file Good afternoon: I have been running MapServer 4.2.0 in Windows 2K and that works OK. I have copied my application to Windows XP SP2 and configured all the permissions, etc. as I did on Windows 2K, and now it seems that MapServer is unable to read the paths from in the .map file. The .map file contents are: NAME satgeobase SHAPEPATH "shapefiles/satgeobase" UNITS meters IMAGECOLOR 255 255 255 TRANSPARENT ON SYMBOLSET symbols/symbols.sym LAYER DEBUG on NAME countries TYPE polygon STATUS ON DATA "cntry98" CLASS NAME "Country outline" COLOR 255 255 255 OUTLINECOLOR 255 255 0 END END END If I type the following line in Internet Explorer: http://127.0.0.1/mapserver/mapserv.exe? map=c:\Inetpub\wwwroot\satgeobase.map&mode=map&layer=countries&imgsize=8 00+ 400&mapext=-180+90+180+-90 Map Server returns: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles/satgeobase/cntry98) If I change the SHAPEPATH line to SHAPEPATH "shapefiles\satgeobase\", then the result is: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles\satgeobase\cntry98) I have tried to use double backslash, double forwardslash and many combinations, but it seems that MapServer.exe cannot find the shape files. The shapefiles exist, names and paths are correct, the default firewall that XP sets up is disabled, and I have even given administrative rights to the IUSR_<> user, just in case. I get the same result, the same answer that MapServer gives when the files do not exist. Does anyone know if this is a known problem? Any ideas? Thanks very much in advance, Manuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From jacob.delfos at MAUNSELL.COM Thu Dec 2 16:50:12 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Fri, 3 Dec 2004 08:50:12 +0800 Subject: IMAGETYPE Message-ID: Nasir, You haven't actually specified an output format in your mapfile. Look at: http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#outputformat You must have an output format in there with a name that matches your imagetype. Your outputformat contain the instructions on what kind of image to create for that imagetype. Once your put the outputformat object in there (can be more than 1), your imagetype should work. It probably works when you commented it out because mapserver uses a default imagetype if it cannot find any output format object in the mapfile. regards, Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of nasir mahmood Sent: 3 December 2004 06:42 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] IMAGETYPE Hi, I am trying to understand mapserver's tutorial examples. I am facing a problem with IMAGETYPE tag. when I set IMAGETYPE PNG, map isn't displayed but when I comment it out then it 's ok. Why it is so? Here is map files: MAP #IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "C:\Program Files\Apache Group\Apache2\htdocs\tutorial\data\" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" ellps=clrk66" "lat_0=45" "lon_0=-100" # Alternatively, you can specify an EPSG code. # "init=epsg:2163" END LAYER # States polygon layer begins here NAME states DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS COLOR 232 232 232 OUTLINECOLOR 32 32 32 END END END # end of map file/object Nasir -------------------------------------------------------------------------------- Do you Yahoo!? Yahoo! Mail - Easier than ever with enhanced search. Learn more. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken at SANDNARROWS.COM Thu Dec 2 16:59:04 2004 From: ken at SANDNARROWS.COM (Ken) Date: Thu, 2 Dec 2004 17:59:04 -0700 Subject: Need help with WMS and Projections In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FD98@ptolemy.topozone.com> Message-ID: Sorry, let me expand a bit on my setup. I have mapserver setup and running on my server. Using chameleon I have applications working, which is what I mean by 'client'. The application includes my MAP file with some local layers (shp files), as well it is using chameleon's WMS Browser to load in remote WMS layers on the fly. So in the case of my client/application I am setting its projections in the MAP file for that specific application. So client, is my chameleon application thats running on my server, in conjunction with mapserver. Remote layer, would be any WMS served up on the internet that I can access. Is that enough information? Thanks again, Ken Ed McNierney wrote: > Ken - > > I'm having a hard time parsing your usage of "client", "my mapserver", > and "remote". Could you explain the data flow a little more clearly? > You say that your "client" requests a "remote" layer and asks for it in > its desired projection, and if it can't get it, then "my mapserver" > somehow appears to reproject it and save the day . Where did your > mapserver come from? Is it always there, acting as a WMS client to the > "remote WMS layer"? What application is your "client"? Feel free to > throw in a little ASCII art.... > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 978 251-4242 Fax: +1 978 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Ken Sanderson > Sent: Thursday, December 02, 2004 7:30 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Need help with WMS and Projections > > Hello, > > I am trying to get my head around how remote WMS layers work with > projections and hoping that someone here can steer me in the right > direction. > > Here is how I have assumed it works. My client goes to a remote WMS > layer and first asks for the layer in the projection of the client, if > it doesnt support that it looks through the SRS tags of the WMS layer > and finds the first one that it understands, by understands I mean thats > included in my EPSG file, requests the image and my mapserver reprojects > it to the projection my client is using. > > Thats what I thought, but using a WMS layer has drawn this into > question, so is this true or not? > > Here is what has brought up the problem. > > I have two clients. One is in a projection of 4326 and another 42304 > (LCC Canada). When I load a specific WMS layer it works in 4326, but > would not work in 42304. Here is the SRS info from the remote WMS layer: > > EPSG:102190 > EPSG:42102 > EPSG:3005 > EPSG:4269 > EPSG:4326 > EPSG:26708 > EPSG:26709 > EPSG:26710 > EPSG:26711 > EPSG:26712 > EPSG:26908 > EPSG:26909 > EPSG:26910 > EPSG:26911 > EPSG:26912 > EPSG:32608 > EPSG:32609 > EPSG:32610 > EPSG:32611 > EPSG:32612 > > In my thinking since I have a number of these in my EPSG file, > specifically 4326, than I should have no problem loaded the WMS layer > into my client, regardless of what projection my client was using. > > In order to get this to work in both of my clients I had to add a new > projection to my EPSG file. 102190 is BC Albers 42102 projection. As > 102190 was the projection listed in the bounding box tag, I simply > copied the 42102 and put a new one into my EPSG file with the number > 102190. > Works fine now. While this is working for me, I dont think its really a > good solution as I cant be adding new entries to my EPSG file for every > WMS layer my users may want to load. > > Sorry for this being long, but I really wanted to give all the details. > How this has worked out has made me think my prior beliefs to how > projections with remote WMS layers worked are wrong. So my question is, > how do they work if they dont work the way I thought they did? > > Thanks, > > Ken > > From richard.greenwood at GMAIL.COM Thu Dec 2 19:43:40 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 2 Dec 2004 20:43:40 -0700 Subject: Jump to Lat / Lon --- Convert X,Y to GIS Coordinates In-Reply-To: Message-ID: On Thu, 2 Dec 2004 13:48:02 -0500, Shanton, James A wrote: > Is there an easy way to jump to a GIS Lat/Lon location with Mapserver? > > I'm also trying to convert X and Y (returned by JBox) to GIS Coordinates, > but am not having any luck finding a sample. jBox returns screen pixels, so you need to convert screen pixels to map_units. It's pretty simple: map_width = max_x - min_x map_units/pixel = map_width / image_width GIS_X = min_x + pos_x * map_units/pixel where pos_x is the pixel x coordinate returned by jBox. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From ed at TOPOZONE.COM Thu Dec 2 19:04:03 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 2 Dec 2004 22:04:03 -0500 Subject: Need help with WMS and Projections Message-ID: Ken - Well, that's a horse of a different color . You might want to ask on the Chameleon user list, after checking the archives first - this may be a Chameleon question/issue. To give you a MapServer answer, each layer in your MAP file will have a projection defined - either explicitly (preferred) or inherited from the overall MAP file. For WMS layers, you can specify a list of projections - any projections that are supported by the WMS server you're talking to. MapServer will generate its OUTPUT image using either the MAP file projection (in "MapServer" mode) or the SRS parameter passed to it if it's acting as a WMS server itself. I've never tried it with EPSG codes I don't have installed, but I believe that if you list a series of EPSG codes in the "wms_srs" metadata for the WMS client layer, MapServer will select (a) the projection that matches its own output projection if available, or (b) the first projection it understands. I always make sure I only list projections I know I have installed, so I'm not certain about that. I'm not a Chameleon user, but it sounds like you should be expecting the Chameleon client to make a WMS request to the local MapServer, specifying the SRS requested as 42304. MapServer needs to know what projections the remote WMS server supports, and you need to tell it that through the wms_srs parameter for that layer. Simply looking at the capabilities document yourself and seeing that a familiar projection is listed will not help MapServer know that; make sure that 4326 is listed in the wms_srs field for that layer in the MAP file. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ken Sent: Thursday, December 02, 2004 7:59 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Need help with WMS and Projections Sorry, let me expand a bit on my setup. I have mapserver setup and running on my server. Using chameleon I have applications working, which is what I mean by 'client'. The application includes my MAP file with some local layers (shp files), as well it is using chameleon's WMS Browser to load in remote WMS layers on the fly. So in the case of my client/application I am setting its projections in the MAP file for that specific application. So client, is my chameleon application thats running on my server, in conjunction with mapserver. Remote layer, would be any WMS served up on the internet that I can access. Is that enough information? Thanks again, Ken Ed McNierney wrote: > Ken - > > I'm having a hard time parsing your usage of "client", "my mapserver", > and "remote". Could you explain the data flow a little more clearly? > You say that your "client" requests a "remote" layer and asks for it > in its desired projection, and if it can't get it, then "my mapserver" > somehow appears to reproject it and save the day . Where did your > mapserver come from? Is it always there, acting as a WMS client to > the "remote WMS layer"? What application is your "client"? Feel free > to throw in a little ASCII art.... > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 978 251-4242 Fax: +1 978 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Ken Sanderson > Sent: Thursday, December 02, 2004 7:30 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Need help with WMS and Projections > > Hello, > > I am trying to get my head around how remote WMS layers work with > projections and hoping that someone here can steer me in the right > direction. > > Here is how I have assumed it works. My client goes to a remote WMS > layer and first asks for the layer in the projection of the client, if > it doesnt support that it looks through the SRS tags of the WMS layer > and finds the first one that it understands, by understands I mean > thats included in my EPSG file, requests the image and my mapserver > reprojects it to the projection my client is using. > > Thats what I thought, but using a WMS layer has drawn this into > question, so is this true or not? > > Here is what has brought up the problem. > > I have two clients. One is in a projection of 4326 and another 42304 > (LCC Canada). When I load a specific WMS layer it works in 4326, but > would not work in 42304. Here is the SRS info from the remote WMS layer: > > EPSG:102190 > EPSG:42102 > EPSG:3005 > EPSG:4269 > EPSG:4326 > EPSG:26708 > EPSG:26709 > EPSG:26710 > EPSG:26711 > EPSG:26712 > EPSG:26908 > EPSG:26909 > EPSG:26910 > EPSG:26911 > EPSG:26912 > EPSG:32608 > EPSG:32609 > EPSG:32610 > EPSG:32611 > EPSG:32612 > > In my thinking since I have a number of these in my EPSG file, > specifically 4326, than I should have no problem loaded the WMS layer > into my client, regardless of what projection my client was using. > > In order to get this to work in both of my clients I had to add a new > projection to my EPSG file. 102190 is BC Albers 42102 projection. As > 102190 was the projection listed in the bounding box tag, I simply > copied the 42102 and put a new one into my EPSG file with the number > 102190. > Works fine now. While this is working for me, I dont think its really > a good solution as I cant be adding new entries to my EPSG file for > every WMS layer my users may want to load. > > Sorry for this being long, but I really wanted to give all the details. > How this has worked out has made me think my prior beliefs to how > projections with remote WMS layers worked are wrong. So my question > is, how do they work if they dont work the way I thought they did? > > Thanks, > > Ken > > From Tom.Kralidis at EC.GC.CA Thu Dec 2 17:06:45 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 2 Dec 2004 20:06:45 -0500 Subject: SLD Filter Using Default Mapfile Rendering Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Fletcher > Sent: Thursday, 02 December, 2004 17:54 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD Filter Using Default > Mapfile Rendering > > > > What you could do is, if the data you're fetching is > > available as OGC:WFS, is use MapServer as a WFS client and > > apply the filter at the mapfile (or dynamically generated) > > level and assume the same rendering as per mapfile. > > That's a really good idea - one I hadn't considered. The > only problem is that I need to be able to apply a filter > dynamically through the CGI interface (I'm assuming Mapserver > doesn't expose any CGI interface to access the filter for WFS layers). > The filter in the LAYER/METADATA object is set as: "wfs_filter" "somefilterstring" ...which you could set via map_layername_wfs_filter (the developers can confirm this -- I'm guessing this is allowed. ..Tom > Has there ever been talk of the implementation of a > DefaultSymbolizer in the SLD spec that would do this sort of > thing? I suppose the SLD spec could also just recommend a > default action for a WMS to take if no Symbolizer is present. > Of course, I could just be exposing my ignorance of the > whole subject... > > Thanks for the help. > > John > From dem at ACRI-ST.FR Fri Dec 3 00:21:18 2004 From: dem at ACRI-ST.FR (Julien Demaria) Date: Fri, 3 Dec 2004 09:21:18 +0100 Subject: AVI/MPEG for visualization over time.. In-Reply-To: Message-ID: Steve, I use ffmpeg to do that : http://ffmpeg.sourceforge.net/index.php On Linux or Win32 (with cygwin) you should download last CVS version (cvs -z9 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg), do ./configure (options ?); make; make install and then launch :ffmpeg -r 10 -i img%3d.jpg -f avi -vcodec msmpeg4v2 -qscale 5 -y anim.avi to convert your img001.jpg, img002.jpg to AVI readable at least tested on Win32. -r 10 = 10 images/s -qscale 5 = quality (1 = best, 31 = worse) the output video has good quality and computing time and memory is very good ! Regards, Julien At 20:52 02/12/2004, Steve Lehr wrote: >Group: > >Anyone making movies with Mapserv? I'd like to string a 1000 or so images >generated into an AVI, say display a jpeg every N seconds. > >I can easily make script in php to generate the images, i'm looking for a >"library" that allows me to string images together and make a movie type >format. > >Preferrably something free and standard - really hoping for MPEG/AVI. For >example the guys who talked at MUM2 about GOMOS might want to look at >changes in water over a month. A viewer to string images together would be >nice. > >Anyone using a tool with php or perl to do that? > >I'm thinking like something below - I'm not nec married to avi could be some >other video type; nor am I married to JPEG's below could be png, gif >something mapserver renderable > >#!/usr/bin/perl > >use AVI; # fictious and hopeful as are all avi calls below > >avi_file = AVI::create("my_first_action_video.avi"); >open(FILE_PIPE, "ls -l width==1 *.jpg |"); >while() >{ > chomp(); > avi->add_image($_); > avi->show_image_for(2); # set delay 2 seconds >} >close(FILE_PIPE); >avi->close(); > > > >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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From unicoletti at PROMETEO.IT Fri Dec 3 02:34:46 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Fri, 3 Dec 2004 11:34:46 +0100 Subject: shp2pdf segfaults Message-ID: Hi all, I have downloaded and compiled mapserver 4.4.0. When I run: ./shp2pdf -m tests/test.map -o my.pdf it gives segmentation fault. My configure options are: ./configure --with-proj --with-pdf --with-threads I have pdflib 5.0.2. shp2img works. Any help would be greatly appreciated, Umberto -- Umberto Nicoletti Prometeo SRL From superbla3000 at GMX.NET Fri Dec 3 03:40:14 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 3 Dec 2004 12:40:14 +0100 Subject: navigation Message-ID: hello, i built up my map with phpmapscript. I also would like to have the 'pan with hand' and 'zoom rectangle' navigation features. Do I have to use chameleon for this? Are there other projects, possibilities, classes, functions? regards Joerg From Frank.Broniewski at MNHA.ETAT.LU Fri Dec 3 04:04:30 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Fri, 3 Dec 2004 13:04:30 +0100 Subject: [UMN_MAPSERVER-USERS] navigation In-Reply-To: <41B0509E.1000107@gmx.net> Message-ID: I use rosa java navigation for such purposes. I don't exactly know, what you mean with pan with hand, but zoom rectangle is possible with rosa and even more. Take a look at http://www.maptools.org/rosa/ I think you can also use the jbox java applet, but I don't know which one is better for use with mapscript. Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de joerg pfeiffer Envoy? : Freitag, 3. Dezember 2004 12:40 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] navigation hello, i built up my map with phpmapscript. I also would like to have the 'pan with hand' and 'zoom rectangle' navigation features. Do I have to use chameleon for this? Are there other projects, possibilities, classes, functions? regards Joerg From simon at INF.UNIVALI.BR Fri Dec 3 02:31:07 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Fri, 3 Dec 2004 10:31:07 +0000 Subject: [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries (Oracle, SDE, and others) In-Reply-To: <118A9CF846431048B65C4AFB0E57C0ED03745E@ECQCSTFMAIL1.quebec.int.ec.gc.ca> Message-ID: Hi Nicolas, I tried to reproduce your system here, but the mapserver ran without problems. I tried call mapserver to draw one raster layer and one oracle layer. In both cases draw correctly. This is the mapserver log for cgi requests: For raster layer: CGI Request 1 on process 24964 msDrawRasterLayerLow(raster): entering. msDrawGDAL(): src=1236,745,133,133, dst=0,0,555,555 msDrawMap(): Layer 1 (raster), 0.078s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.079s For Oracle Spatial Layer: CGI Request 1 on process 24965 msOracleSpatialLayerOpen called with: geom from bairros msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerInitItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer connection: themis/themis at lca msOracleSpatialLayerClose. Cleaning Oracle handlers. msConnPoolRelease(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msConnPoolClose(XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerClose. Cleaning layerinfo handlers. msDrawMap(): Layer 19 (Bairros), 0.149s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.151s For both in the same map: CGI Request 1 on process 24966 msDrawRasterLayerLow(raster): entering. msDrawGDAL(): src=1236,745,133,133, dst=0,0,555,555 msDrawMap(): Layer 1 (raster), 0.087s msOracleSpatialLayerOpen called with: geom from bairros msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerInitItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer connection: themis/themis at lca msOracleSpatialLayerClose. Cleaning Oracle handlers. msConnPoolRelease(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msConnPoolClose(XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerClose. Cleaning layerinfo handlers. msDrawMap(): Layer 19 (Bairros), 0.231s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.320s Here I'm using mapserver running in my desktop Linux (Slackware) and this is my version: MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG So, what occur when you draw layers separately? I will try to reproduce the same in my windows, but where you download your mapserver version? Thanks --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Fortin,Nicolas [SteFoy] wrote: >Hi Fernando and List, > >I use an ASP page that call mapserver CGI with the correct mapfile. I use mapserver html template to test my services. It's not query mode but simple GetMap requests. > >One weird thing I saw with some testing : >If I ask for two layers, a raster and an oracle spatial one by example, all work fine and I get an image! >If I ask ONLY for oracle spatial layers (1 or more), I get the CGI error message... > >So I think the problem is not really the connection cause the layer(s) appear when it's not alone and with another type of Data. > >Calling mapserver directly with the usual parameter gives the same result. > >What's wrong with this? If anybody could help me solve this... > >What's FastCGI ? > >Nicolas > > > From laurent at 2LAGE.ORG Fri Dec 3 05:07:01 2004 From: laurent at 2LAGE.ORG (Laurent DELAGE) Date: Fri, 3 Dec 2004 14:07:01 +0100 Subject: Constructing map objet from a php string In-Reply-To: <000e01c4d930$3e907a50$aa696e94@EPCCARTOGIS> Message-ID: Hi I am working on a project, and I have some Php code that produce a String, which represent the content of a mapfile. I would like to construct a map object, with this string, instead of a Path name... The only solution that I've seen is to save my string in a temp file, and to create a map object from this .... Is there a "secret" constructor that will act from a text string ? I'm also working on a mapserver 4.4 debian paquet for Sarge, will that job interest someone ? Thanks a lot , Laurent DELAGE http://www.upct.org From manuel.alonso at ERMAPPER.CO.UK Fri Dec 3 05:36:11 2004 From: manuel.alonso at ERMAPPER.CO.UK (Manuel Alonso) Date: Fri, 3 Dec 2004 13:36:11 -0000 Subject: Win XP and paths in the .map file Message-ID: Ed and Jacob: Many thanks for your help. At the end, the problem was not caused by permissions or IIS/XP configuration. One of the data files was not present in the directory where the shapefiles are (my fault; I did not copy it with the rest). The file was the one with .shx extension. The application works now either with shapepath absolute or relative. My mapserver directory is under the web root and have execute permissions using IIS. I have set up a tmp directory that have IIS write permissions and also IUSR_ user account write permissions given at 'Windows level' (directory right-click -> Properties -> etc.). Thanks again, Manuel Alonso ER Mapper Blenheim House Crabtree Office Village Eversley Way, Egham Surrey, TW20 8RY, UK Telephone: +44 1784 430-691 Facsimile: +44 1784 430-692 -----Original Message----- From: Jacob Delfos [mailto:jacob.delfos at MAUNSELL.COM] Sent: 03 December 2004 00:44 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Win XP and paths in the .map file Manuel, I have had similar problems using IIS 6 on Windows Server 2003. The configuration of IIS is a bit confusing, and I haven't figured out the problem yet. Only thing you could check is to make sure that you got your execution permissions set up correctly. You may have to add your mapserver executable to the pool of programs that is allowed to run on the server, and then also specify for each directory that mapserver is allowed to run in there (it's kind of doubled-up in IIS). Aside from that it's still a mystery to me. I use the a similar configuration on win2k without problems. XP and 2003 server have a different configuration. Specifying IUSR permissions does not seem to suffice. I would suggest you make your shapepath absolute, though. To make sure there is no confusion about relativity to the webroot, or the executable path. Jacob P.S. be aware of the 10 user connection limit with IIS, on a non-server version of windows. May be better of using apache. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ed McNierney Sent: 3 December 2004 02:04 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Win XP and paths in the .map file You are right in thinking that this is probably a permissions problem. Be sure that the IUSR account has read access to that particular file; I think permission settings are the most common cause of problems when migrating from one machine to another "identical" one. Separately, it might not be the best idea to store your shapefiles in the wwwroot tree if you want to protect them from being accessed outside of MapServer. It's usually wise to place MapServer's data files safely outside any place that grants access to Web users. - 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 Manuel Alonso Sent: Thursday, December 02, 2004 11:03 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Win XP and paths in the .map file Good afternoon: I have been running MapServer 4.2.0 in Windows 2K and that works OK. I have copied my application to Windows XP SP2 and configured all the permissions, etc. as I did on Windows 2K, and now it seems that MapServer is unable to read the paths from in the .map file. The .map file contents are: NAME satgeobase SHAPEPATH "shapefiles/satgeobase" UNITS meters IMAGECOLOR 255 255 255 TRANSPARENT ON SYMBOLSET symbols/symbols.sym LAYER DEBUG on NAME countries TYPE polygon STATUS ON DATA "cntry98" CLASS NAME "Country outline" COLOR 255 255 255 OUTLINECOLOR 255 255 0 END END END If I type the following line in Internet Explorer: http://127.0.0.1/mapserver/mapserv.exe? map=c:\Inetpub\wwwroot\satgeobase.map&mode=map&layer=countries&imgsize=8 00+ 400&mapext=-180+90+180+-90 Map Server returns: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles/satgeobase/cntry98) If I change the SHAPEPATH line to SHAPEPATH "shapefiles\satgeobase\", then the result is: msDrawMap(): Image handling error. Failed to draw layer named 'countries'. msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\cntry98) msSHPOpenFile(): Unable to access file. (c:\Inetpub\wwwroot\shapefiles\satgeobase\cntry98) I have tried to use double backslash, double forwardslash and many combinations, but it seems that MapServer.exe cannot find the shape files. The shapefiles exist, names and paths are correct, the default firewall that XP sets up is disabled, and I have even given administrative rights to the IUSR_<> user, just in case. I get the same result, the same answer that MapServer gives when the files do not exist. Does anyone know if this is a known problem? Any ideas? Thanks very much in advance, Manuel From umn at KARSTEN-LESSING.DE Fri Dec 3 07:15:53 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Fri, 3 Dec 2004 16:15:53 +0100 Subject: WFS Problems / fundamental ? about WFS client capabilities In-Reply-To: <10155.212.238.227.182.1102003478.squirrel@212.238.227.182> Message-ID: An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri Dec 3 07:30:26 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 3 Dec 2004 16:30:26 +0100 Subject: WFS Problems / fundamental ? about WFS client capabilities In-Reply-To: <41B08329.6000208@karsten-lessing.de> Message-ID: Hi, yes Mapserver is able to visualize GML data directly. The tool I mentioned, ogrinfo, is what I use to check the "validity" of the GML. If ogrinfo can read it, Mapserver can, as it is based on a similar codebase AFAIK. Best regards, Bart > Hi Bart, > dear listmember, > > you are absolutely right: There were an inaccuracy in my projection > parameters. And after changing that I am also able to capture the gml > file in my tmp directory and see the coordinates. > > But I do have another, much more fundamental question: > Is mapserver not able to visualize gml data directly (for example > transfered points connected as lines in a map layer)? > Let me say it the other way round: For visualisation purposes of gml > files in mapserver is it necessary to convert transfered gml data with > any other (GIS-) tool (e.g. mentioned ogrinfo) before you are able to map > it with mapserver? > > best regards > Karsten > > > bartvde at xs4all.nl schrieb: > Hi, I tried downloading your GML and ogrinfo can read it. Try to > change your projection objects. You now have defined that your WFS > client layer is in epsg:4326 but ofcourse your data is in epsg:32632. > Hope this helps. Best regards, Bart Hi > Yewondwossen Assefa, dear List members, thank you for your answer. > During the last hours I include your hint with the forced request > method: "wfs_request_method" "GET" and I also found something else on > my own: I left the port number (8088) in the URL string: So, in my > case the complet request is called: > http://babyz.uni-muenster.de:8088/wfs/WFS? This might also be the > reason why you did not work for you, too! When sending above > mentioned request the server sends a complete .gml file which is > stored in my tmp directory. Nevertheless still these coordinates are > not drawn from the mapserver. The beginning of the .gml file sounds > like this: WLIS_UTM32555409.568178104,5650501.14750786 > 868199.990485413,5934332.6040282555409.5681781038,5934223.853692098 > 555418.5706741122,5934332.604028199 > PEGELSTAND100.0555418.5706741122,5934332.604028199 > 557407.5662599645,5933762.565755668 > PEGELSTAND100.07000000000001557407.5662599645,5933762.565755668 > 559292.2735897198,5933662.819451575 (... hundreds of coordinate > pairs are following!) the gml file is stored in the > /srv/www/htdocs/tmp directory I am running the mapserver vers: 4.2.3 > with wms client/server and wfs client7server support (that it what > the mapserver gives back when typing the ./mapserv -v command!) does > anybody have an idea what could still be wrong? thanks Karsten > schrieb: One other thing you can try is to force mapserver to send Get > request to the wfs server by adding the following metadata on your > layer (default is Post) : "wfs_request_method" "GET". You > should also test the wfs_server by manulally sending some requests to > make sure that that the wfs responsd properly. Does the > http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;VERSION=1.0.0&amp;Typename=WLIS_UTM32&amp;&amp;REQUEST=GetFeature > returns something for you (I does not work for me but It might me an > internal URL) ? Later, K. Lessing% > From umn at KARSTEN-LESSING.DE Fri Dec 3 07:42:32 2004 From: umn at KARSTEN-LESSING.DE (K. Lessing) Date: Fri, 3 Dec 2004 16:42:32 +0100 Subject: WFS Problems / fundamental ? about WFS client capabilities In-Reply-To: <5894.212.238.227.182.1102087826.squirrel@212.238.227.182> Message-ID: An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Fri Dec 3 08:22:59 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 3 Dec 2004 17:22:59 +0100 Subject: WFS Problems / fundamental ? about WFS client capabilities In-Reply-To: <41B08968.1050407@karsten-lessing.de> Message-ID: Hi, I have tried the same, but also can't get it to work without receiving error messages. I changed your TYPE POINT to TYPE LINE though. Maybe the problem is in the WFS that you are referencing, because Cadcorp SIS Mapbrowser cannot read the GML as well and even cannot parse the capabilities (because of an invalid element). What kind of software is this WFS? Maybe someone else has an idea on how to debug this problem. Ogrinfo seems to be able to read the gml file, it contains one really big linestring. Maybe that's the problem .... Best regards, Bart > Hi Bart, > > thank you for your quick answer. > In this case I am stll wondering, what is going wrong with my mapserver. > The exact mapfile I am using is mentioned at the buttom of this email. > I still use mapserver version 4.2.3 with wfs_client/server and > wms_client/server capabilities under SuSE 9.1 with an Opera and or > Firebird Browser. > The gml file is still stored under the tmp directory. But still nothing > can be seen in the map which is - no matter if I use map or browse mode! > Would you be able to see the points (as points or lines) in a webbrowser > if you would build up a map file as mentioned below? (of couse with your > path for the tmp directory)? > > best regards > Karsten > > MAP > NAME "wfs_client" > SIZE 500 700 > IMAGECOLOR 220 220 220 > EXTENT 9000 5500000 1000000 5900000 > STATUS ON > PROJECTION > "init=epsg:32632" > END > > WEB > TEMPLATE "template5.html" > IMAGEPATH "/srv/www/htdocs/tmp/" > IMAGEURL "/tmp/" > END > > OUTPUTFORMAT > NAME "Farbenfroh" > DRIVER "GDAL/PNG" > MIMETYPE "image/png" > IMAGEMODE RGB > EXTENSION "png" > END > > LAYER > NAME "WaterLevel" > TYPE POINT > STATUS DEFAULT > DUMP TRUE > CONNECTION "http://babyz.uni-muenster.de:8088/wfs/WFS?" > CONNECTIONTYPE WFS > PROJECTION > "init=epsg:32632" > END > METADATA > "wfs_version" "1.0.0" > "wfs_typename" "ELBE_UTM32" > "wfs_service" "WFS" > "wfs_request_method" "GET" > "wfs_connectiontimeout" "60" > "wfs_latlonboundingbox" "9000 5500000 1000000 5900000" > "wfs_latlonboundingbox" "4.608 46.879 9.725 52.077" > END > CLASS > Color 20 20 20 > END > END > END > > > bartvde at xs4all.nl schrieb: Hi, yes Mapserver is able to visualize GML > data directly. The tool I mentioned, ogrinfo, is what I use to check the > "validity" of the GML. If ogrinfo can read it, Mapserver can, as it is > based on a similar codebase AFAIK. Best regards, Bart > Hi Bart, dear listmember, you are absolutely right: There were an > inaccuracy in my projection parameters. And after changing that I am also > able to capture the gml file in my tmp directory and see the coordinates. > But I do have another, much more fundamental question: Is mapserver > not able to visualize gml data directly (for example transfered points > connected as lines in a map layer)? Let me say it the other way round: > For visualisation purposes of gml files in mapserver is it necessary to > convert transfered gml data with any other (GIS-) tool (e.g. mentioned > ogrinfo) before you are able to map it with mapserver? best regards > Karsten bartvde at xs4all.nl schrieb: Hi, I tried downloading your > GML and ogrinfo can read it. Try to change your projection objects. You > now have defined that your WFS client layer is in epsg:4326 but ofcourse > your data is in epsg:32632. Hope this helps. Best regards, Bart > Hi Yewondwossen Assefa, dear List members, thank you > for your answer. During the last hours I include your hint with the > forced request method: "wfs_request_method" "GET" and I also found > something else on my own: I left the port number (8088) in the URL > string: So, in my case the complet request is called: > http://babyz.uni-muenster.de:8088/wfs/WFS? This might also be the reason > why you did not work for you, too! When sending above mentioned request > the server sends a complete .gml file which is stored in my tmp > directory. Nevertheless still these coordinates are not drawn from the > mapserver. The beginning of the .gml file sounds like this: > WLIS_UTM32555409.568178104,5650501.14750786 > 868199.990485413,5934332.6040282555409.5681781038,5934223.853692098 > 555418.5706741122,5934332.604028199 > PEGELSTAND100.0555418.5706741122,5934332.604028199 > 557407.5662599645,5933762.565755668 > PEGELSTAND100.07000000000001557407.5662599645,5933762.565755668 > 559292.2735897198,5933662.819451575 (... hundreds of coordinate pairs > are following!) the gml file is stored in the /srv/www/htdocs/tmp > directory I am running the mapserver vers: 4.2.3 with wms client/server > and wfs client7server support (that it what the mapserver gives back > when typing the ./mapserv -v command!) does anybody have an idea what > could still be wrong? thanks Karsten schrieb: One other thing you can > try is to force mapserver to send Get request to the wfs server by adding > the following metadata on your layer (default is Post) : > "wfs_request_method" "GET". You should also test the wfs_server by > manulally sending some requests to make sure that that the wfs responsd > properly. Does the > http://babyz.uni-muenster.de/wfs/WFS?SERVICE=WFS&amp;amp;VERSION=1.0.0&amp;amp;Typename=WLIS_UTM32&amp;amp;&amp;amp;REQUEST=GetFeature > returns something for you (I does not work for me but It might me an > internal URL) ? Later, K. Lessing% > From nicolas.fortin at EC.GC.CA Fri Dec 3 08:15:38 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Fri, 3 Dec 2004 11:15:38 -0500 Subject: [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries Message-ID: Hi Fernando, I made more tests this morning with some wierd results: First, sometimes it works sometimes not, depending of either the zoom level or the layers activated. If I ask for one oracle spatial layer, I got the error each time and instantly. If I ask for an other type of layer than oracle spatial, all work fine. If I ask for mixed type of layers with oracle spatial included, it become complicated...it seems that the order of the layers in the mapfile have an effect; if the first layer found (and asked) in the mapfile is oracle spatial, it get an error. If it's a raster or something else, it works most of the time. I ran FileMon to see if this is a permission or file not found issue and it's not. I checked IIS log file and when I get an error, the http status code is 502: 2004-12-03 15:43:00 131.235.233.138 131.235.233.138 80 GET /cgi-bin/mapserv.exe 502 0 391 - When this happens, the sc-bytes number is always 391 I searched for the meaning of http 502 and found this from the w3c.org website: Service temporarily overloaded 502 (TO BE DISCUSSED) The server cannot process the request due to a high load (whether HTTP servicing or other requests). The implication is that this is a temporary condition which maybe alleviated at other times. OR 502 Bad Gateway The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request. First I thought that the reason is because my dev workstation is inside our firewall and Oracle Database is outside...but I tested with an Oracle database inside our firewall and the result is the same. When I shift to previous version (4.3 with oracle spatial downloaded from maptools.org) all work fine. Now I'm lost... I download my binaries from Howard site at : http://hobu.stat.iastate.edu/mapserver/ Here's the mapserv -v result: MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE How could you have such a complete log from mapserver ? When I got the error, I have no line add to my mapserver log... I'm on Windows 2000 SP4 with IIS 5.0 Thank you very much for your help Fernando. If someone other than Fernando has any idea of what I could do to find the solution, you're welcome! Nicolas -----Message d'origine----- De : Fernando S. [mailto:simon at inf.univali.br] Envoy? : Friday, December 03, 2004 5:31 AM ? : Fortin,Nicolas [SteFoy] Cc : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: RE : [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries (Oracle, SDE, and others) Hi Nicolas, I tried to reproduce your system here, but the mapserver ran without problems. I tried call mapserver to draw one raster layer and one oracle layer. In both cases draw correctly. This is the mapserver log for cgi requests: For raster layer: CGI Request 1 on process 24964 msDrawRasterLayerLow(raster): entering. msDrawGDAL(): src=1236,745,133,133, dst=0,0,555,555 msDrawMap(): Layer 1 (raster), 0.078s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.079s For Oracle Spatial Layer: CGI Request 1 on process 24965 msOracleSpatialLayerOpen called with: geom from bairros msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerInitItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer connection: themis/themis at lca msOracleSpatialLayerClose. Cleaning Oracle handlers. msConnPoolRelease(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msConnPoolClose(XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerClose. Cleaning layerinfo handlers. msDrawMap(): Layer 19 (Bairros), 0.149s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.151s For both in the same map: CGI Request 1 on process 24966 msDrawRasterLayerLow(raster): entering. msDrawGDAL(): src=1236,745,133,133, dst=0,0,555,555 msDrawMap(): Layer 1 (raster), 0.087s msOracleSpatialLayerOpen called with: geom from bairros msOracleSpatialLayerOpen. Shared connection not available. Creating one. msConnPoolRegister(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerInitItemInfo was called. msOracleSpatialLayerWhichShapes was called. msOracleSpatialLayerFreeItemInfo was called. msOracleSpatialLayerClose was called. Layer connection: themis/themis at lca msOracleSpatialLayerClose. Cleaning Oracle handlers. msConnPoolRelease(Bairros,XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msConnPoolClose(XXXXXXXX/XXXXXXXXXXX at XXXXX,0x8313210) msOracleSpatialLayerClose. Cleaning layerinfo handlers. msDrawMap(): Layer 19 (Bairros), 0.231s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.320s Here I'm using mapserver running in my desktop Linux (Slackware) and this is my version: MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=FASTCGI INPUT=TIFF INPUT=EPPL7 INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG So, what occur when you draw layers separately? I will try to reproduce the same in my windows, but where you download your mapserver version? Thanks --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Fortin,Nicolas [SteFoy] wrote: >Hi Fernando and List, > >I use an ASP page that call mapserver CGI with the correct mapfile. I >use mapserver html template to test my services. It's not query mode >but simple GetMap requests. > >One weird thing I saw with some testing : >If I ask for two layers, a raster and an oracle spatial one by example, >all work fine and I get an image! If I ask ONLY for oracle spatial >layers (1 or more), I get the CGI error message... > >So I think the problem is not really the connection cause the layer(s) >appear when it's not alone and with another type of Data. > >Calling mapserver directly with the usual parameter gives the same >result. > >What's wrong with this? If anybody could help me solve this... > >What's FastCGI ? > >Nicolas > > > From assefa at DMSOLUTIONS.CA Fri Dec 3 09:01:31 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 3 Dec 2004 12:01:31 -0500 Subject: SLD Filter Using Default Mapfile Rendering In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7D707@ecnwri1.ontario.int.ec.gc.ca> Message-ID: I haven't played much with the cgi but checking the code and the docuementaion, I do not think that you can set any metadata value from the cgi. Kralidis,Tom [Burlington] wrote: >>-----Original Message----- >>From: UMN MapServer Users List >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Fletcher >>Sent: Thursday, 02 December, 2004 17:54 >>To: MAPSERVER-USERS at LISTS.UMN.EDU >>Subject: Re: [UMN_MAPSERVER-USERS] SLD Filter Using Default >>Mapfile Rendering >> >> >> >>>What you could do is, if the data you're fetching is >>>available as OGC:WFS, is use MapServer as a WFS client and >>>apply the filter at the mapfile (or dynamically generated) >>>level and assume the same rendering as per mapfile. >> >>That's a really good idea - one I hadn't considered. The >>only problem is that I need to be able to apply a filter >>dynamically through the CGI interface (I'm assuming Mapserver >>doesn't expose any CGI interface to access the filter for WFS layers). >> > > > The filter in the LAYER/METADATA object is set as: > > "wfs_filter" "somefilterstring" > > ...which you could set via map_layername_wfs_filter (the developers can > confirm this -- I'm guessing this is allowed. > > ..Tom > > > >>Has there ever been talk of the implementation of a >>DefaultSymbolizer in the SLD spec that would do this sort of >>thing? I suppose the SLD spec could also just recommend a >>default action for a WMS to take if no Symbolizer is present. >> Of course, I could just be exposing my ignorance of the >>whole subject... >> >>Thanks for the help. >> >>John >> > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From hobu at IASTATE.EDU Fri Dec 3 09:33:33 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Fri, 3 Dec 2004 11:33:33 -0600 Subject: [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries In-Reply-To: Message-ID: Nicolas, A couple of thoughts. It could be very likely that my binaries are borked with respect to Oracle Spatial. My binaries are *not* compiled with FastCGI support, and Fernando might be able to comment more about its current relationship to Oracle Spatial support. The cvs log shows a significant change to maporaclespatial.c right at 4.4 beta 1. Things have very likely changed significantly since the 4.3 binaries you were using were made. As for my binaries, I only really use the SDE support, which seems to be working fine. My guess is that something is funky in my binaries, or you've run into some sort of bug. Any chance you can use shp2img.exe to test your mapfile and attach the msvc debugger to the process? Howard At 10:15 AM 12/3/2004, Fortin,Nicolas [SteFoy] wrote: >Hi Fernando, > >I made more tests this morning with some wierd results: > >First, sometimes it works sometimes not, depending of either the zoom = >level or the layers activated. > >If I ask for one oracle spatial layer, I got the error each time and = >instantly. >If I ask for an other type of layer than oracle spatial, all work fine. >If I ask for mixed type of layers with oracle spatial included, it = >become complicated...it seems that the order of the layers in the = >mapfile have an effect; if the first layer found (and asked) in the = >mapfile is oracle spatial, it get an error. If it's a raster or = >something else, it works most of the time. > >I ran FileMon to see if this is a permission or file not found issue and = >it's not. > >I checked IIS log file and when I get an error, the http status code is = >502: >2004-12-03 15:43:00 131.235.233.138 131.235.233.138 80 GET = >/cgi-bin/mapserv.exe 502 0 391 - >When this happens, the sc-bytes number is always 391 >I searched for the meaning of http 502 and found this from the w3c.org = >website: >Service temporarily overloaded 502 (TO BE DISCUSSED)=20 >The server cannot process the request due to a high load (whether HTTP = >servicing or other requests). The implication is that this is a = >temporary condition which maybe alleviated at other times.=20 >OR >502 Bad Gateway >The server, while acting as a gateway or proxy, received an invalid = >response from the upstream server it accessed in attempting to fulfill = >the request.=20 > >First I thought that the reason is because my dev workstation is inside = >our firewall and Oracle Database is outside...but I tested with an = >Oracle database inside our firewall and the result is the same. > >When I shift to previous version (4.3 with oracle spatial downloaded = >from maptools.org) all work fine. >Now I'm lost... > >I download my binaries from Howard site at : = >http://hobu.stat.iastate.edu/mapserver/ >Here's the mapserv -v result: >MapServer version 4.4.0 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = >OUTPUT=3DPDF OUTPUT=3DSWF SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE = >SUPPORTS=3DWMS_SERVER SUPPORTS=3DWMS_CLIENT SUPPORTS=3DWFS_SERVER = >SUPPORTS=3DWFS_CLIENT SUPPORTS=3DWCS_SERVER INPUT=3DPOSTGIS = >INPUT=3DORACLESPATIAL INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE > >How could you have such a complete log from mapserver ? When I got the = >error, I have no line add to my mapserver log... >I'm on Windows 2000 SP4 with IIS 5.0 > >Thank you very much for your help Fernando. If someone other than = >Fernando has any idea of what I could do to find the solution, you're = >welcome! > >Nicolas > > From nasir_pcit at YAHOO.COM Fri Dec 3 10:10:24 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Fri, 3 Dec 2004 10:10:24 -0800 Subject: Projection object parameters Message-ID: Hi, I think (but i dont know exactly that's y posting question ) different regions's map have different parameters for Projeciton objects inside map and layer objects. I am dealing with Europe map. Could somebody tell me (or some source to know about) projection parameters for Europe map. Thx a lot in advance Nasir --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? Get yours free! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dan.Liu at STATE.MN.US Fri Dec 3 11:03:19 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Fri, 3 Dec 2004 13:03:19 -0600 Subject: Raster layer tif file Message-ID: Hi, I got this warning randomly after I added a raster layer in the map file. "msDrawRasterLayerLow(): Attempt to render raster layer that requires reprojection but without GDAL available. Image reprojection requires GDAL." Could anybody tell me what it means? Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Fri Dec 3 11:12:05 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 3 Dec 2004 14:12:05 -0500 Subject: Raster layer tif file In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2C8A@admin-itg-exch3.state.mn.us> Message-ID: On Fri, 3 Dec 2004 13:03:19 -0600, Dan Liu wrote: > > > > Hi, > > I got this warning randomly after I added a raster layer in the map file. > > "msDrawRasterLayerLow(): Attempt to render raster layer that requires > reprojection but without GDAL available. Image reprojection requires GDAL." > > Could anybody tell me what it means? Dan, It *should* mean pretty much what it says. It should mean that your MapServer isn't built with GDAL input support (ie. configured --with-gdal) but you have made some sort of request that makes MapServer thing the input raster needs to be reprojected, or rotated to satisfy the map request. This is only supported via data read through GDAL in MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From nicolas.fortin at EC.GC.CA Fri Dec 3 11:12:44 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Fri, 3 Dec 2004 14:12:44 -0500 Subject: [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries Message-ID: Hi Howard, Thanks for your answer It would be fine if someone else try your mapserver binaries with oracle spatial to see if I'm trying to find a problem I can't solve. I tried with shp2img and it crash in the same conditions, I never used msvc debugger but here's the log file create by drwtsn32 ... but don't understand what it means: ?tat de vidage Thread Id 0x5b0 eax=01f21bbc ebx=7ffdf000 ecx=01f21bbc edx=01f21bbc esi=0012bf90 edi=0012bf10 eip=6066dfbe esp=0012bc64 ebp=0012be9c iopl=0 nv up ei pl nz na pe nc cs=001b ss=0023 ds=0023 es=0023 fs=0038 gs=0000 efl=00000202 fonction?: kpufhndl0 6066dfa0 55 push ebp 6066dfa1 8bec mov ebp,esp 6066dfa3 81ec2c020000 sub esp,0x22c 6066dfa9 8b4508 mov eax,[ebp+0x8] ss:00c15d82=25452544 6066dfac 53 push ebx 6066dfad 56 push esi 6066dfae 57 push edi 6066dfaf 85c0 test eax,eax 6066dfb1 c745fc00000000 mov dword ptr [ebp+0xfc],0x0 ss:00c15d82=25452544 6066dfb8 0f848a190000 je kpufhndl0+0x19a8 (6066f948) FAUTE ->6066dfbe 8138cbdae9f8 cmp dword ptr [eax],0xf8e9dacb ds:01f21bbc=???????? 6066dfc4 0f857e190000 jne kpufhndl0+0x19a8 (6066f948) 6066dfca 8b750c mov esi,[ebp+0xc] ss:00c15d82=25452544 6066dfcd 33c9 xor ecx,ecx 6066dfcf 8a4805 mov cl,[eax+0x5] ds:02a0baa2=?? 6066dfd2 3bce cmp ecx,esi 6066dfd4 0f856e190000 jne kpufhndl0+0x19a8 (6066f948) 6066dfda 8b580c mov ebx,[eax+0xc] ds:02a0baa2=???????? 6066dfdd 85db test ebx,ebx 6066dfdf 895df4 mov [ebp+0xf4],ebx ss:00c15d82=25452544 6066dfe2 0f8460190000 je kpufhndl0+0x19a8 (6066f948) 6066dfe8 813bcbdae9f8 cmp dword ptr [ebx],0xf8e9dacb ds:7ffdf000=00010000 *----> Parcours arri?re de la pile <----* FramePtr ReturnAd Param#1 Param#2 Param#3 Param#4 Function Name 0012BE9C 6066DF92 01F21BBC 00000007 00000000 0012BEC0 oraclient9!kpufhndl0 0012BEB0 6060121A 01F21BBC 00000007 0012BED0 00BC68BF oraclient9!kpufhndl 0012BEC0 00BC68BF 01F21BBC 00000007 0012BEE0 100567A2 oraclient9!OCIHandleFree 0012BED0 100567A2 01F21BBC 00000007 0012BEF0 100568C0 !OCIHandleFree 0012BEE0 100568C0 01EDAD38 01EDAD38 0012BF04 10047016 !msOracleSpatialLayerOpen 0012BEF0 10047016 01A9B780 00000007 0012BFAC 0012BFAC !msOracleSpatialLayerClose 0012BF04 1005BCF7 01A9B780 00000000 001491C0 00000001 !msLayerClose 0012BFAC 1005B57E 01A60048 01A9B780 01D54E90 01D54E90 !msDrawVectorLayer 0012BFD0 1005A7DE 01A60048 01A9B780 01D54E90 00000000 !msDrawLayer 0012FF04 0040182C 01A60048 FFFFFFFF 0012FF58 780014CF !msDrawMap 0012FF4C 004019F3 0000000C 00DC4890 00DC2EA8 00403000 ! 0012FFC0 77E9893D 00000000 001491C0 7FFDF000 C0000005 ! 0012FFF0 00000000 00401910 00000000 003A0043 0057005C kernel32!ProcessIdToSessionId *----> Vidage brut de la pile <----* 0012bc64 10 bf 12 00 90 bf 12 00 - 00 f0 fd 7f 10 00 00 00 ................ 0012bc74 18 02 dc 00 28 25 46 78 - b0 01 dc 00 b0 64 f2 01 ....(%Fx.....d.. 0012bc84 01 56 46 78 54 56 46 78 - b0 01 dc 00 b8 4c d5 01 .VFxTVFx.....L.. 0012bc94 00 00 dc 00 07 00 00 00 - 01 bc 12 00 38 4d d5 01 ............8M.. 0012bca4 ec bc 12 00 e8 d7 d4 01 - 01 25 46 78 ff ff ff ff .........%Fx.... 0012bcb4 38 bc 12 00 03 00 00 00 - 04 bd 12 00 55 1f 46 78 8...........U.Fx 0012bcc4 28 25 46 78 ff ff ff ff - 14 bd 12 00 e0 32 f2 01 (%Fx.........2.. 0012bcd4 48 2d f2 01 00 00 dc 00 - f8 bc 12 00 d9 c8 4a 78 H-............Jx 0012bce4 8d 00 00 00 e0 32 f2 01 - 00 00 dc 00 48 2d f2 01 .....2......H-.. 0012bcf4 50 2d f2 01 00 00 dc 00 - 00 00 dc 00 78 01 dc 00 P-..........x... 0012bd04 6b c8 4a 78 08 06 dc 00 - c2 c7 4a 78 9c 2d f2 01 k.Jx......Jx.-.. 0012bd14 50 2d f2 01 00 00 00 00 - e6 9c 11 61 60 4d d5 01 P-.........a`M.. 0012bd24 08 86 42 61 58 bd 12 00 - 87 8d 41 61 f0 d7 d4 01 ..BaX.....Aa.... 0012bd34 e2 99 11 61 6c 86 42 61 - 00 00 00 00 58 cf f2 01 ...al.Ba....X... 0012bd44 b8 fb f0 01 58 cf f2 01 - 78 01 dc 00 50 cf f2 01 ....X...x...P... 0012bd54 c4 85 42 61 bc bd 12 00 - 12 90 41 61 b4 bd 12 00 ..Ba......Aa.... 0012bd64 f0 d7 d4 01 c4 85 42 61 - 00 00 dc 00 40 01 00 00 ......Ba.... at ... 0012bd74 01 2d f2 01 00 00 00 00 - ff ff ff ff 48 2d f2 01 .-..........H-.. 0012bd84 01 92 13 61 d8 82 42 61 - 10 bd 12 00 68 86 42 61 ...a..Ba....h.Ba 0012bd94 dc bd 12 00 55 1f 46 78 - cc bd 12 00 c8 dd f2 01 ....U.Fx........ Part of my problem is that I'm quite dependant of peoples like you that are fine enough to compile it for other. Too bad I don't know how to compile it by myself... Nicolas -----Message d'origine----- De : Howard Butler [mailto:hobu at iastate.edu] Envoy? : Friday, December 03, 2004 12:34 PM ? : Fortin,Nicolas [SteFoy]; MAPSERVER-USERS at LISTS.UMN.EDU Objet : RE : [UMN_MAPSERVER-USERS] CGI Error - 4.4 Windows Binaries Nicolas, A couple of thoughts. It could be very likely that my binaries are borked with respect to Oracle Spatial. My binaries are *not* compiled with FastCGI support, and Fernando might be able to comment more about its current relationship to Oracle Spatial support. The cvs log shows a significant change to maporaclespatial.c right at 4.4 beta 1. Things have very likely changed significantly since the 4.3 binaries you were using were made. As for my binaries, I only really use the SDE support, which seems to be working fine. My guess is that something is funky in my binaries, or you've run into some sort of bug. Any chance you can use shp2img.exe to test your mapfile and attach the msvc debugger to the process? Howard At 10:15 AM 12/3/2004, Fortin,Nicolas [SteFoy] wrote: >Hi Fernando, > >I made more tests this morning with some wierd results: > >First, sometimes it works sometimes not, depending of either the zoom = >level or the layers activated. > >If I ask for one oracle spatial layer, I got the error each time and = >instantly. If I ask for an other type of layer than oracle spatial, all >work fine. If I ask for mixed type of layers with oracle spatial >included, it = become complicated...it seems that the order of the >layers in the = mapfile have an effect; if the first layer found (and >asked) in the = mapfile is oracle spatial, it get an error. If it's a >raster or = something else, it works most of the time. > >I ran FileMon to see if this is a permission or file not found issue >and = it's not. > >I checked IIS log file and when I get an error, the http status code is >= >502: >2004-12-03 15:43:00 131.235.233.138 131.235.233.138 80 GET = >/cgi-bin/mapserv.exe 502 0 391 - >When this happens, the sc-bytes number is always 391 >I searched for the meaning of http 502 and found this from the w3c.org = >website: >Service temporarily overloaded 502 (TO BE DISCUSSED)=20 >The server cannot process the request due to a high load (whether HTTP = >servicing or other requests). The implication is that this is a = >temporary condition which maybe alleviated at other times.=20 >OR >502 Bad Gateway >The server, while acting as a gateway or proxy, received an invalid = >response from the upstream server it accessed in attempting to fulfill = >the request.=20 > >First I thought that the reason is because my dev workstation is inside >= our firewall and Oracle Database is outside...but I tested with an = >Oracle database inside our firewall and the result is the same. > >When I shift to previous version (4.3 with oracle spatial downloaded = >from maptools.org) all work fine. Now I'm lost... > >I download my binaries from Howard site at : = >http://hobu.stat.iastate.edu/mapserver/ >Here's the mapserv -v result: >MapServer version 4.4.0 OUTPUT=3DGIF OUTPUT=3DPNG OUTPUT=3DJPEG = >OUTPUT=3DPDF OUTPUT=3DSWF SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE = >SUPPORTS=3DWMS_SERVER SUPPORTS=3DWMS_CLIENT SUPPORTS=3DWFS_SERVER = >SUPPORTS=3DWFS_CLIENT SUPPORTS=3DWCS_SERVER INPUT=3DPOSTGIS = >INPUT=3DORACLESPATIAL INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE > >How could you have such a complete log from mapserver ? When I got the >= error, I have no line add to my mapserver log... I'm on Windows 2000 >SP4 with IIS 5.0 > >Thank you very much for your help Fernando. If someone other than = >Fernando has any idea of what I could do to find the solution, you're = >welcome! > >Nicolas > > From Micheal.Arnold at NSCORP.COM Fri Dec 3 11:23:49 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Fri, 3 Dec 2004 14:23:49 -0500 Subject: jbox and panning Message-ID: Has anybody ever had a problem like this: I have implemented image swapping with jBox. When I try panning, everything works fine the first time I move my map. The second (and subsequent) attempts fail. When I try to pan, the map jumps to what seems like a random place. I am having similar problems trying to zoom in on my map. It seems like the problem might be with imgxy or imgbox, but I can't figure out where the disconnect is. I am not sure if something needs to be reset since I am not re-submitting the page. Can anybody offer any suggestions? Thanks, Mike Arnold micheal.arnold at nscorp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jzeisloft at GMAIL.COM Fri Dec 3 11:47:15 2004 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Fri, 3 Dec 2004 13:47:15 -0600 Subject: query layers Message-ID: Hello All, This question was sent to me by a colleague, Carola, who requested that I post it to the list-serv. I have not yet begun to work with query layers, but my understanding is that they are primarily defined through the map file (which is why I chose this list-serv). Several people have mentioned that also running Chameleon complicates defining the query layers. I will forward any answers to Carola. Thank you very much for your time! Jennifer Zeisloft Question: I am currently using Chameleon to develop my web mapping application. In order to perform a query on a point type layer using the identify feature tool, I needed to add an additional layer (query type) in the map file. The first layer shows the points in the map and the second one is used to perform the query. The query works perfectly, but the problem is that both layers appear on the legend. Is there a way to delete the query layer from the legend or, even better, use only one layer in the map file that would perform the query and show the point layer in the legend. Any help would be REALLY appreciated! Thanks in advance! - Carola Blazquez From info2004 at RAJSINGH.ORG Fri Dec 3 12:01:57 2004 From: info2004 at RAJSINGH.ORG (Raj Singh) Date: Fri, 3 Dec 2004 15:01:57 -0500 Subject: MapServer Map Context In-Reply-To: <41AF5243.6040801@dmsolutions.ca> Message-ID: Thanks Assefa. Your advice worked. The HOWTO should be updated because it seems incomplete. http://mapserver.gis.umn.edu/doc42/mapcontext-howto.html says only to, "Build/install the above libraries on your system adn then build MapServer with the '--with-wmsclient --with-proj --with-php' configure options." --Raj On Dec 2, 2004, at 12:34 PM, Yewondwossen Assefa wrote: > You need to make sure that your build uses USE_WMS_LYR and USE_OGR > flags (you need to build you mapserver/php_mapscript with wms and > gdal/ogr support). > > Raj Singh wrote: > >> Has anyone used the OGC web map context support in version 4.2.2? >> I'm having a tough time getting Web Map Context support working. I >> have >> proj4, gdal, php, wmsclient and wmsserver support working fine, but >> whenever I test map context support using this code: >> > dl("php_mapscript.so"); >> $oMap = ms_newMapObj("/usr/local/apache2/htdocs/umi5/parcel.map"); >> $oMap->saveMapContext("/usr/local/apache2/htdocs/tmp/output.xml"); >> ?> >> I get the following message in my apache error log: >> [error] [client 66.31.41.182] PHP Warning: [MapServer Error]: >> msSaveMapContext(): Not implemented since Map Context is not enabled. >> --Raj > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > From jfletcher at LATITUDEGEO.COM Fri Dec 3 12:06:06 2004 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Fri, 3 Dec 2004 12:06:06 -0800 Subject: SLD Filter Using Default Mapfile Rendering Message-ID: I would like to file an enhancement request for this, but I'm looking for feedback from Mapserver users / developers before doing so in case my suggestion goes against the SLD spec in some way or simply wouldn't work programmatically for some other reason. Here's my case: The SLD spec suggests that the Symbolizer element is optional inside a Rule, but doesn't specify what the behaviour should be if no Symbolizer is specified. Currently Mapserver does not draw features if there is no Symbolizer present. While this can be a handy method of filtering out features that you *don't* want displayed, you can accomplish the same thing by making sure these features don't have any matching Rules (according to the Filter). If Mapserver interpreted a Rule with no associated Symbolizer elements as an instruction to draw all features matching the Filter in the default rendering specified in the mapfile, a client could filter out unwanted features without needing to know anything about how the layer is styled in the mapfile. This becomes extremely useful in cases where the mapfile defines upwards of 40 classes with different rendering based on the value of a particular attribute. In addition, "highlighting" certain features could be accomplished by sending an SLD with an appropriate Filter and "highlight" rendering specified (yellow, bright blue a la ArcMap, etc), then just putting in another Rule with an ElseFilter and no Symbolizer: FIELD_NAME FIELD_VALUE circle #00ffff 4.0 Does anyone have thoughts on the matter? Thanks, John > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Yewondwossen Assefa > Sent: Friday, December 03, 2004 9:02 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] SLD Filter Using Default > Mapfile Rendering > > I haven't played much with the cgi but checking the code and > the docuementaion, I do not think that you can set any > metadata value from the cgi. > > Kralidis,Tom [Burlington] wrote: > >>-----Original Message----- > >>From: UMN MapServer Users List > >>[mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Fletcher > >>Sent: Thursday, 02 December, 2004 17:54 > >>To: MAPSERVER-USERS at LISTS.UMN.EDU > >>Subject: Re: [UMN_MAPSERVER-USERS] SLD Filter Using Default Mapfile > >>Rendering > >> > >> > >> > >>>What you could do is, if the data you're fetching is available as > >>>OGC:WFS, is use MapServer as a WFS client and apply the > filter at the > >>>mapfile (or dynamically generated) level and assume the same > >>>rendering as per mapfile. > >> > >>That's a really good idea - one I hadn't considered. The > only problem > >>is that I need to be able to apply a filter dynamically through the > >>CGI interface (I'm assuming Mapserver doesn't expose any > CGI interface > >>to access the filter for WFS layers). > >> > > > > > > The filter in the LAYER/METADATA object is set as: > > > > "wfs_filter" "somefilterstring" > > > > ...which you could set via map_layername_wfs_filter (the developers > > can confirm this -- I'm guessing this is allowed. > > > > ..Tom > > > > > > > >>Has there ever been talk of the implementation of a > DefaultSymbolizer > >>in the SLD spec that would do this sort of thing? I > suppose the SLD > >>spec could also just recommend a default action for a WMS > to take if > >>no Symbolizer is present. > >> Of course, I could just be exposing my ignorance of the whole > >>subject... > >> > >>Thanks for the help. > >> > >>John > >> > > > > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > From siki at AGT.BME.HU Fri Dec 3 15:42:18 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 3 Dec 2004 22:42:18 -0100 Subject: multiple join {Scanned} Message-ID: Hi, I have created an ogr data source to connect a shape file to an ODBC table. It works, but I was not able to create class expressions based on a column of the joined table. Do I need special column names to use the joined columns, eg. other than [column_name]? Part of my map file LAYER NAME xxx CONNECTIONTYPE OGR CONNECTION "base/kafold.shp" DATA "SELECT * FROM kafold LEFT JOIN 'ODBC:epeng'.ms_ugy on kafold.hrsz=ms_ugy.hrsz" TYPE POLYGON STATUS DEFAULT CLASS EXPRESSION ([case_id] = 2) STYLE COLOR 100 100 100 END END CLASS EXPRESSION ([case_id] = 4) STYLE COLOR 0 255 0 END END END These classes don't work, case_id is a column from joined table. Tanks Zoltan From nasir_pcit at YAHOO.COM Fri Dec 3 13:52:55 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Fri, 3 Dec 2004 13:52:55 -0800 Subject: chameleon config Message-ID: Hi, I am trying to install chameleon. There is no readme.txt or configuration help with it. I tried to configure by modifying cwc2 xml-dist file but when I run demo.php, i get following errors, Warning: copy(/hiberfil.sys): failed to open stream: Permission denied in C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on line 288 Warning: copy(/pagefile.sys): failed to open stream: Permission denied in C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on line 288 Warning: dl(): Unable to load dynamic library 'c:\php4\extensions\' - The specified module could not be found. in C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on line 598 Fatal error: Call to a member function on a non-object in C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on line 626 How to overcome this problem by making configuration correct. Can someone help me? Regards, Nasir --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? Get yours free! -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dan.Liu at STATE.MN.US Fri Dec 3 14:15:40 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Fri, 3 Dec 2004 16:15:40 -0600 Subject: Given map extent is invalid Message-ID: Hi, PHP mapscript application which worked in mapserv 4.2.5 now gives the error 'Given map extent is invalid.' after function 'ms_newMapObj()' is called. The extent is EXTENT 118109 5269319 792271 4997508 Does anybody know want is wrong? Any help is appreciated. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From nasir_pcit at YAHOO.COM Fri Dec 3 16:13:00 2004 From: nasir_pcit at YAHOO.COM (nasir mahmood) Date: Fri, 3 Dec 2004 16:13:00 -0800 Subject: Given map extent is invalid In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2C8D@admin-itg-exch3.state.mn.us> Message-ID: Hi, I have gone through this problem. The way I solved this problem is: 1 - download Fwtools from http://fwtools.maptools.org/ 2 - then you ogrinfo command to find extent of you shape file and then you that extent in you map file. command: ogrinfo -al -so myfile.shp regards, nasir Dan Liu wrote: Hi, PHP mapscript application which worked in mapserv 4.2.5 now gives the error 'Given map extent is invalid.' after function 'ms_newMapObj()' is called. The extent is EXTENT 118109 5269319 792271 4997508 Does anybody know want is wrong? Any help is appreciated. Dan --------------------------------- Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Fri Dec 3 17:11:29 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 3 Dec 2004 20:11:29 -0500 Subject: Given map extent is invalid In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2C8D@admin-itg-exch3.state.mn.us> Message-ID: On Fri, 3 Dec 2004 16:15:40 -0600, Dan Liu wrote: > > > > Hi, > > PHP mapscript application which worked in mapserv 4.2.5 now gives the error > 'Given map extent is invalid.' after function 'ms_newMapObj()' is called. > The extent is > > EXTENT 118109 5269319 792271 4997508 > > Does anybody know want is wrong? Any help is appreciated. Dan, The arguments to EXTENT are xmin, ymin, xmax, ymax. But your "ymax" value is smaller than your "ymin" value. MapServer 4.4 does more extent validation then used to be done. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From kenlord at GMAIL.COM Fri Dec 3 18:41:24 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 3 Dec 2004 18:41:24 -0800 Subject: query layers In-Reply-To: <817c010104120311473859cf5f@mail.gmail.com> Message-ID: Hi Carola and Jennifer, I am not familiar with how chameleon works, so you may have to adjust my suggestions to fit your situation .... My suggestions below refer to editing the mapserver mapfile.... Are you using the duplicate layer so that you can query a layer when it is not turned on? If you only need to query the layer when the layer is on, then you only need the original point layer. (unless chameleon changes how this is handled) However, If you do want to be able to query the layer when it is not turned on, then I think that when you copied the original layer in the mapfile, you may have left it as TYPE POINT, instead of setting it to TYPE QUERY. If that doesnt help, remove the NAME attribute from each of the classes in the query layer. Hope that helps, Ken Lord Vancouver BC On Fri, 3 Dec 2004 13:47:15 -0600, Jennifer Zeisloft wrote: > Hello All, > > This question was sent to me by a colleague, Carola, who requested > that I post it to the list-serv. I have not yet begun to work with > query layers, but my understanding is that they are primarily defined > through the map file (which is why I chose this list-serv). Several > people have mentioned that also running Chameleon complicates defining > the query layers. I will forward any answers to Carola. Thank you > very much for your time! > > Jennifer Zeisloft > > Question: > > I am currently using Chameleon to develop my web mapping application. > In order to perform a query on a point type layer using the identify > feature tool, I needed to add an additional layer (query type) in the > map file. The first layer shows the points in the map and the second > one is used to perform the query. The query works perfectly, but the > problem is that both layers appear on the legend. Is there a way to > delete the query layer from the legend or, even better, use only one > layer in the map file that would perform the query and show the point > layer in the legend. Any help would be REALLY appreciated! > Thanks in advance! > > - Carola Blazquez > From bartvde at XS4ALL.NL Sat Dec 4 02:16:29 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sat, 4 Dec 2004 11:16:29 +0100 Subject: chameleon config In-Reply-To: <20041203215255.11744.qmail@web14924.mail.yahoo.com> Message-ID: Hi Nasir, please post these type of questions to the chameleon-users list and not the mapserver-users list. http://www.maptools.org/chameleon/index.phtml?page=mailinglist.html Best regards, Bart On Fri, 3 Dec 2004 13:52:55 -0800, nasir mahmood wrote: > Hi, > > I am trying to install chameleon. There is no readme.txt or > configuration help with it. I tried to configure by modifying cwc2 > xml-dist file but when I run demo.php, i get following errors, > > Warning: copy(/hiberfil.sys): failed to open stream: Permission denied > in C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on > line 288 > > Warning: copy(/pagefile.sys): failed to open stream: Permission denied > in C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on > line 288 > > Warning: dl(): Unable to load dynamic library 'c:\php4\extensions\' - > The specified module could not be found. in C:\Program Files\Apache > Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on line 598 > > Fatal error: Call to a member function on a non-object in C:\Program > Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php on line 626 > > How to overcome this problem by making configuration correct. Can > someone help me? > > Regards, > Nasir > > > --------------------------------- > Do you Yahoo!? > The all-new My Yahoo! ? Get yours free! -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From richard.greenwood at GMAIL.COM Sat Dec 4 07:05:59 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sat, 4 Dec 2004 08:05:59 -0700 Subject: jbox and panning In-Reply-To: Message-ID: On Fri, 3 Dec 2004 14:23:49 -0500, Arnold, Micheal B. wrote: > > > > Has anybody ever had a problem like this: > > > > I have implemented image swapping with jBox. When I try panning, everything > works fine the first time I move my map. The second (and subsequent) > attempts fail. When I try to pan, the map jumps to what seems like a random > place. I am having similar problems trying to zoom in on my map. > > > > It seems like the problem might be with imgxy or imgbox, but I can't figure > out where the disconnect is. I am not sure if something needs to be reset > since I am not re-submitting the page. > > > > Can anybody offer any suggestions? > > > > Thanks, > > > > Mike Arnold > > micheal.arnold at nscorp.com Each time you swap images, you are chaning your map extents. Are you keeping track of that on the client? When you request a whole new pae, mapserver calculates the new map extent and usually you save that in hidden variables on the page. Then use that extent, combined with user-input pixels coordinates to request the next map. However, when you image swap, you need to calculate and keep track of the map extent on the client side. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From ARyan at CO.LINN.OR.US Sat Dec 4 12:06:09 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Sat, 4 Dec 2004 12:06:09 -0800 Subject: transparency lost when layer is queried Message-ID: Dear List, Has anyone experienced the loss of layer transparency when querying? I have the following querymap and layer: ... querymap status on style selected end ... layer data "sections" status default type polygon transparency 50 class style outlinecolor 175 0 0 color 0 200 0 end end end ... Transparency works fine unless I query the layer, in which case it seems to be ignored. Any thoughts? Cheers to all, Adam From thomaschesky at YAHOO.COM Sat Dec 4 18:11:18 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sat, 4 Dec 2004 18:11:18 -0800 Subject: getting map extent when using maxy and scale on cgi interface Message-ID: How can I request the map extent (bounding rectangle's coordinates) of the mapreturned by MapServer via the cgi interface when using mapxy and scale params . I have a cgi get string like this: &mapxy=-122.244+37.47502&scale=1&mapsize=600+400 Mapserver returns the image (map) correctly. I would like to know what are the bottom,left and top,right coordinates of the returned map. Can I do it via the cgi interface (any ascii response is good) or WFS or I have to use PHPmapscript? Thanks Thomas --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? What will yours do? -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Sun Dec 5 05:39:40 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Sun, 5 Dec 2004 12:39:40 -0100 Subject: getting map extent when using maxy and scale on cgi interface {Scanned} {Scanned} In-Reply-To: <20041205021118.59291.qmail@web54202.mail.yahoo.com> Message-ID: Hi, Check imgext cgi variable. It holds the minx miny maxx maxy of the actual map image. Bye Zoltan On Sat, 4 Dec 2004, Thomas Chesky wrote: > How can I request the map extent (bounding rectangle's coordinates) of the mapreturned by MapServer via the cgi interface when using mapxy and scale params . > > I have a cgi get string like this: > &mapxy=-122.244+37.47502&scale=1&mapsize=600+400 > > Mapserver returns the image (map) correctly. I would like to know what are the bottom,left and top,right coordinates of the returned map. > > Can I do it via the cgi interface (any ascii response is good) or WFS or I have to use PHPmapscript? > > Thanks > > Thomas > > > --------------------------------- > Do you Yahoo!? > The all-new My Yahoo! ? What will yours do? From thomaschesky at YAHOO.COM Sun Dec 5 08:37:04 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Sun, 5 Dec 2004 08:37:04 -0800 Subject: getting map extent when using maxy and scale on cgi interface {Scanned} {Scanned} In-Reply-To: Message-ID: Zoltan, Thanks for the answer. imgext is an input parameter as far as I know. If I know it, then I use imgext to request the map with that particular extent. But in my case I only know the center point (geocoded address), the scale and the image width/height. These are my inputs. Mapserver calculates the extent when drawing the map. How can I ask Mapserver to return this extent (coordinates of bottom-right and top-left of the map) besides returning the rendered image? So my input is: center lat/lon; scale; width/height pixels of map Current output: 1) image Desired output: 1) image and 2) bottom-right/top-left coordinates Thomas Siki Zoltan wrote: Hi, Check imgext cgi variable. It holds the minx miny maxx maxy of the actual map image. Bye Zoltan On Sat, 4 Dec 2004, Thomas Chesky wrote: > How can I request the map extent (bounding rectangle's coordinates) of the mapreturned by MapServer via the cgi interface when using mapxy and scale params . > > I have a cgi get string like this: > &mapxy=-122.244+37.47502&scale=1&mapsize=600+400 > > Mapserver returns the image (map) correctly. I would like to know what are the bottom,left and top,right coordinates of the returned map. > > Can I do it via the cgi interface (any ascii response is good) or WFS or I have to use PHPmapscript? > > Thanks > > Thomas > > > --------------------------------- > Do you Yahoo!? > The all-new My Yahoo! ? What will yours do? __________________________________________________ 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 jmckenna at DMSOLUTIONS.CA Sun Dec 5 09:36:01 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sun, 5 Dec 2004 12:36:01 -0500 Subject: MapServer Map Context In-Reply-To: <300B049B-4566-11D9-AE07-000D93ADF030@rajsingh.org> Message-ID: I've filed a bug for this (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1104). If you notice any documentation problems please file a bug in the MapServer Bugzilla (component: 'MapServer Documentation')...this helps us keep track of them. thanks. jeff Raj Singh wrote: > Thanks Assefa. Your advice worked. The HOWTO should be updated because > it seems incomplete. > http://mapserver.gis.umn.edu/doc42/mapcontext-howto.html says only to, > "Build/install the above libraries on your system adn then build > MapServer with the '--with-wmsclient --with-proj --with-php' configure > options." > > --Raj > > On Dec 2, 2004, at 12:34 PM, Yewondwossen Assefa wrote: > >> You need to make sure that your build uses USE_WMS_LYR and USE_OGR >> flags (you need to build you mapserver/php_mapscript with wms and >> gdal/ogr support). >> >> Raj Singh wrote: >> >>> Has anyone used the OGC web map context support in version 4.2.2? >>> I'm having a tough time getting Web Map Context support working. I >>> have >>> proj4, gdal, php, wmsclient and wmsserver support working fine, but >>> whenever I test map context support using this code: >>> >> dl("php_mapscript.so"); >>> $oMap = ms_newMapObj("/usr/local/apache2/htdocs/umi5/parcel.map"); >>> $oMap->saveMapContext("/usr/local/apache2/htdocs/tmp/output.xml"); >>> ?> >>> I get the following message in my apache error log: >>> [error] [client 66.31.41.182] PHP Warning: [MapServer Error]: >>> msSaveMapContext(): Not implemented since Map Context is not enabled. >>> --Raj >> >> >> >> -- >> ---------------------------------------------------------------- >> Assefa Yewondwossen >> Software Analyst >> >> Email: assefa at dmsolutions.ca >> http://www.dmsolutions.ca/ >> >> Phone: (613) 565-5056 (ext 14) >> Fax: (613) 565-0925 >> ---------------------------------------------------------------- >> >> > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From saintsjd at YAHOO.COM Sun Dec 5 11:43:35 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Sun, 5 Dec 2004 11:43:35 -0800 Subject: php mapscript persistance across requests In-Reply-To: <41B34701.1020207@dmsolutions.ca> Message-ID: I Am new to php mapscript. Is there any standard way of storing map extent and layer information across http requests in phpmapscript? I realize that storing the map object in the session is not possible. What are my other options? Thanks From siki at AGT.BME.HU Sun Dec 5 17:12:28 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 6 Dec 2004 00:12:28 -0100 Subject: getting map extent when using maxy and scale on cgi interface {Scanned} {Scanned} {Scanned} In-Reply-To: <20041205163704.45972.qmail@web54205.mail.yahoo.com> Message-ID: Hi Thomas, As far as I know imgext an output parameter, mapserver fills it with extents of actual image, mapext is the input parameter for the next map generated. Insert [imgext] into your html template and you can see the values. Bye Zoltan On Sun, 5 Dec 2004, Thomas Chesky wrote: > Zoltan, > > Thanks for the answer. > > imgext is an input parameter as far as I know. If I know it, then I use imgext to request the map with that particular extent. But in my case I only know the center point (geocoded address), the scale and the image width/height. These are my inputs. Mapserver calculates the extent when drawing the map. How can I ask Mapserver to return this extent (coordinates of bottom-right and top-left of the map) besides returning the rendered image? > > So my input is: center lat/lon; scale; width/height pixels of map > Current output: 1) image > > Desired output: 1) image and 2) bottom-right/top-left coordinates > > Thomas > > Siki Zoltan wrote: > Hi, > > Check imgext cgi variable. It holds the minx miny maxx maxy of the actual > map image. > > Bye > Zoltan > > On Sat, 4 Dec 2004, Thomas Chesky wrote: > > > How can I request the map extent (bounding rectangle's coordinates) of the mapreturned by MapServer via the cgi interface when using mapxy and scale params . > > > > I have a cgi get string like this: > > &mapxy=-122.244+37.47502&scale=1&mapsize=600+400 > > > > Mapserver returns the image (map) correctly. I would like to know what are the bottom,left and top,right coordinates of the returned map. > > > > Can I do it via the cgi interface (any ascii response is good) or WFS or I have to use PHPmapscript? > > > > Thanks > > > > Thomas > > > > > > --------------------------------- > > Do you Yahoo!? > > The all-new My Yahoo! ? What will yours do? > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com From pspencer at DMSOLUTIONS.CA Sun Dec 5 15:11:20 2004 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Sun, 5 Dec 2004 18:11:20 -0500 Subject: php mapscript persistance across requests In-Reply-To: <20041205194335.53438.qmail@web53909.mail.yahoo.com> Message-ID: John, here's three different approaches you might consider using 1. hidden HTML inputs 2. session variables 3. saving the entire map file You will probably need to use a combination of these ... each one is only an example, you'll need to do some work to figure out how to use it in your setup ... Cheers Paul -- 1. Hidden HTML variables extents->setextent( $aExtents[0], $aExtents[1], $aExtents[2], $aExtents[3] ); } } //some processing ?> extents)?>"> use the same approach (html hidden variables) for all other information 2. Session variables extents->setextent( $_SESSION['extents'][0], $_SESSION['extents'][1], $_SESSION['extents'][2], $_SESSION['extents'][3] ); } //some processing $_SESSION['extents'] = $oMap->extents; and use the same approach for all other information 3. Save map file ... save( $tempFile ); $_SESSION['previousState'] = $tempFile; ?> Jon Saints wrote: > I Am new to php mapscript. Is there any standard way > of storing map extent and layer information across > http requests in phpmapscript? > > I realize that storing the map object in the session > is not possible. What are my other options? > > Thanks > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From saso.celarc at HERMES-PLUS.SI Sun Dec 5 22:50:19 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 6 Dec 2004 00:50:19 -0600 Subject: example1-9 doesn't work in browse mode Message-ID: I have problems with example example1-9.html and other examples, where the ?browse? mode start. When opening D:\gis_projekti\freegis\mapserver\doc\tutorial\example1- 9.html, the first frame shows nice map but second frame is empty. When I click on it I get: 1.In browser's URL: http://localhost/cgi-bin/mapserv?map=%5Bmap%5D&imgext=%5Bmapext% 5D&imgxy=199.5+149.5&zoom=1&mode=browse&img.x=197&img.y=99 2.In browser's window: msEvalRegex(): Regular expression error. String ([map]) failed expression test. On the other side for ?map? mode using URL: http://sasoc/cgi-bin/mapserv? map=D:\gis_projekti\freegis\mapserver\doc\tutorial\example1-9.map&mode=map I get picture, but for http://localhost/cgi-bin/mapserv? map=D:\gis_projekti\freegis\mapserver\doc\tutorial\example1- 9.map&mode=browse i get the ?message msSaveImage(): Unable to access file. (/data/tmp/EX1.9_11022781551536.png)? In Apache's httpd.conf I have: Alias /data/ "D:\oracle/ora92/Apache/Apache/htdocs/data/" Alias /data/tmp/ "D:\oracle/ora92/Apache/Apache/htdocs/data/tmp/" I think there is a mess with /data/tmp/ phisical location and/or web server alias. I tried this on versions 4.2.3 and 4.4. for Win32 but result is the same. Do you have idea what is wrong ? Regards, Sa?o Celarc From temiz at DEPREM.GOV.TR Mon Dec 6 00:04:48 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 6 Dec 2004 10:04:48 +0200 Subject: mouse shape Message-ID: hello I see in some examples that mouse shape is changed in some way. For instance, for zoom action, some friends change it to "+" from classic arrow. How can it be carried out. I need some hints kind 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 stefan.schwarzer at GRID.UNEP.CH Mon Dec 6 00:15:39 2004 From: stefan.schwarzer at GRID.UNEP.CH (Stefan Schwarzer) Date: Mon, 6 Dec 2004 09:15:39 +0100 Subject: mouse shape In-Reply-To: <41B412A0.7040102@deprem.gov.tr> Message-ID: Ahmet, the image needs a "style" command. See the following.... I use javascript to change it.... javascript:..... switch (zoom_value) { case "zoom_in": document.map1.style.cursor = "crosshair"; break; case "zoom_out": document.map1.style.cursor = "crosshair"; break; case "pan": document.map1.style.cursor = "move"; break; case "query": document.map1.style.cursor = "help"; break; default: document.map1.style.cursor = "hand"; break; } >hello > >I see in some examples that mouse shape is changed in some way. >For instance, for zoom action, some friends change it to "+" from classic >arrow. >How can it be carried out. I need some hints > >kind 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. _______________________________________ Stefan Schwarzer GIS & Data Management UNEP/DEWA/GRID-Geneva Chemin des Anemones 11 CH - 1219 Chatelaine Switzerland Tel: (+41) 22.917.83.49 Fax: (+41) 22.917.80.29 Email: stefan.schwarzer at grid.unep.ch Internet: http://geodata.grid.unep.ch/ _______________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon Dec 6 02:19:38 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 6 Dec 2004 09:19:38 -0100 Subject: mouse shape {Scanned} In-Reply-To: <41B412A0.7040102@deprem.gov.tr> Message-ID: Hi, You can use javascript to change the mouse cursor shape for html elements. See http://developer.irt.org/script/185.htm Bye Zoltan On Mon, 6 Dec 2004, temiz wrote: > hello > > I see in some examples that mouse shape is changed in some way. > For instance, for zoom action, some friends change it to "+" from classic > arrow. > How can it be carried out. I need some hints > > kind 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 didier.georgieff at AGRICULTURE.GOUV.FR Mon Dec 6 02:26:58 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Mon, 6 Dec 2004 11:26:58 +0100 Subject: ./configure failed on 4.4.0 . Was OK on 4.2 Message-ID: Hello, I'm trying to ./configure 4.4.0 but got a problem with gd. Some weeks ago i compiled 4.2 without problem. ==> I'm on mandrake 10.0 official $ ./configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj --with-ogr --with-gdal --with-pdf --with-threads gives configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... no configure: checking whether GD needs libiconv... checking for gdImageSetAntiAliased in -lgd... no configure: error: Could not find gd.h or libgd.a/libgd.so in /usr/include. Make sure GD 2.0.12 or higher is compiled before calling configure. You may also get this error if you didn't specify the appropriate location for one of GD's dependencies (freetype, libpng, libjpeg or libiconv). ==> I checked the GD rpm and i have libgd2-2.0.15-4.2.100mdk. When i compiled sucessfully 4.2 i had libgd2-2.0.15-3mdk. ==> It seems that the GD files are in the right place. $ll /usr/lib/libgd.* -rwxr-xr-x 1 root root 773 nov 11 21:43 /usr/lib/libgd.la* lrwxrwxrwx 1 root root 14 nov 18 16:51 /usr/lib/libgd.so -> libgd.so.2.0.0* lrwxrwxrwx 1 root root 14 nov 18 16:50 /usr/lib/libgd.so.2 -> libgd.so.2.0.0* -rwxr-xr-x 1 root root 216368 nov 11 21:43 /usr/lib/libgd.so.2.0.0* $ll /usr/include/gd.* -rw-r--r-- 1 root root 23497 nov 11 21:43 /usr/include/gd.h ==> using --with-gd=/usr/lib or --with-gd=/usr/include doesn't work either. May be is it related ? List archives or Google gave no tip. Thanks for any idea or pointer about that. -- didier.georgieff From temiz at DEPREM.GOV.TR Mon Dec 6 02:56:58 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 6 Dec 2004 12:56:58 +0200 Subject: mouse shape In-Reply-To: <6.0.1.1.2.20041206091327.01e6bfa8@gridg.grid.unep.ch> Message-ID: thank you very much to all helpful people Ahmet Temiz > >> hello >> >> I see in some examples that mouse shape is changed in some way. >> For instance, for zoom action, some friends change it to "+" from classic >> arrow. >> How can it be carried out. I need some hints >> >> kind 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. > > _______________________________________ > > *Stefan Schwarzer > * GIS & Data Management > > UNEP/DEWA/GRID-Geneva > Chemin des Anemones 11 > CH - 1219 Chatelaine > Switzerland > > Tel: (+41) 22.917.83.49 > Fax: (+41) 22.917.80.29 > > Email: stefan.schwarzer at grid.unep.ch > Internet: http://geodata.grid.unep.ch/ > _______________________________________ > ______________________________________ 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 adams at TERRESTRIS.DE Mon Dec 6 03:01:43 2004 From: adams at TERRESTRIS.DE (Till Adams) Date: Mon, 6 Dec 2004 12:01:43 +0100 Subject: ./configure failed on 4.4.0 . Was OK on 4.2 In-Reply-To: <1102328818.3495.34.camel*didier.georgieff@agriculture.gouv.fr> Message-ID: Didier, I've just compiled ms4.4 on a mandrake 10.1 last friday, the "libgd.so" is in /usr/lib, here is my configure: ./configure --with-gd --with-gdal=/usr/bin/gdal-config --with-proj --with-ogr --with-jpeg=/usr/ --with-png=/usr/ --without-tiff --with-freetype --with-wmsserver --with-wmsclient --with-wfs --with-postgis this one worked fine, ;-) Till didier.georgieff wrote: >Hello, > >I'm trying to ./configure 4.4.0 but got a problem with gd. Some weeks >ago i compiled 4.2 without problem. > >==> I'm on mandrake 10.0 official > >$ ./configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj >--with-ogr --with-gdal --with-pdf --with-threads > >gives > >configure: checking for GD 2.0.12 or higher... >checking for gdImageSetAntiAliased in -lgd... no >configure: checking whether GD needs libiconv... >checking for gdImageSetAntiAliased in -lgd... no >configure: error: Could not find gd.h or libgd.a/libgd.so in >/usr/include. Make sure GD 2.0.12 or higher is compiled before calling >configure. You may also get this error if you didn't specify the >appropriate location for one of GD's dependencies (freetype, libpng, >libjpeg or libiconv). > >==> I checked the GD rpm and i have libgd2-2.0.15-4.2.100mdk. When i >compiled sucessfully 4.2 i had libgd2-2.0.15-3mdk. > >==> It seems that the GD files are in the right place. > >$ll /usr/lib/libgd.* >-rwxr-xr-x 1 root root 773 nov 11 21:43 /usr/lib/libgd.la* >lrwxrwxrwx 1 root root 14 nov 18 16:51 /usr/lib/libgd.so -> >libgd.so.2.0.0* >lrwxrwxrwx 1 root root 14 nov 18 16:50 /usr/lib/libgd.so.2 -> >libgd.so.2.0.0* >-rwxr-xr-x 1 root root 216368 nov 11 21:43 /usr/lib/libgd.so.2.0.0* > >$ll /usr/include/gd.* >-rw-r--r-- 1 root root 23497 nov 11 21:43 /usr/include/gd.h > >==> using --with-gd=/usr/lib or --with-gd=/usr/include doesn't work >either. > > >May be is it related ? List archives or Google gave no tip. > >Thanks for any idea or pointer about that. > > >-- >didier.georgieff > > > -- Mit freundlichen Gr?ssen aus Bonn, Till Adams ****************************************** * Schulungen im Geo-Consortium * * Fragen Sie uns! * * http://www.geo-consortium.de * ****************************************** ------------------------------------------ Dipl. Geogr. Till Adams terrestris, Paulsen&Adams GbR Siemensstr. 8 * 53121 Bonn Tel.: 0228 962 899 52 * Fax.: 0228 962 899 57 info at terrestris.de * www.terrestris.de From margottid at COMUNE.LUGO.RA.IT Mon Dec 6 04:35:14 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 6 Dec 2004 13:35:14 +0100 Subject: Internal Server Error Message-ID: Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ------------------------------------------------------------------------ ---- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From didier.georgieff at AGRICULTURE.GOUV.FR Mon Dec 6 04:45:38 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Mon, 6 Dec 2004 13:45:38 +0100 Subject: ./configure failed on 4.4.0 . Was OK on 4.2 In-Reply-To: <41B442F6.9000405*bt@ccgis.de> Message-ID: Le lun 06/12/2004 ? 12:24, Benjamin Thelen a ?crit : > I would supply --with-gd=/usr or at least --with-gd! Thanks. It works. > Of course neither --with-gd=/usr/lib nor --with-gd=/usr/include will > work. If you provide the first, configure doesn't find the second and > vice versa. Yes. Obviously. Dumb I am ;-) Thanks a lot. -- didier.georgieff From didier.georgieff at AGRICULTURE.GOUV.FR Mon Dec 6 05:47:26 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Mon, 6 Dec 2004 14:47:26 +0100 Subject: 4.4.0 build ok, but 4 python mapscript tests are failing Message-ID: Hello Sean, I just build OK the new MS 4.4.0 on mdk 10.0. I used : $ ./configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj --with-ogr --with-gdal --with-pdf --with-threads --with-gd=/usr --with-jpeg=/usr --with-libiconv=/usr --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-xpm=usr/X11R6 I have a python 2.3.3 and compiled python mapscript : $ cp mapscript/python/modern/* mapscript/python/ $ cd mapscript/python/ $ python setup.py build All seems fine. But when i want to test mapscript, 4 tests are failing (segfault if invoqued from mapscript/python/test/cases/, and ERROR if invoqued from mapscript/python/) 4 tests are clonetest.py, imagetest.py, outputformattest.py and symboltest.py. I can provide all the detailed report if you need it. ex: python tests/cases/imagetest.py -v imageObj constructor works ... ok imageObj with a filename works ... ERROR imageObj with a filename and a driver works ... ERROR imageObj with a file stream works ... ERROR imageObj with a cStringIO works ... ERROR imageObj with a URL stream works ... ERROR imageObj with an optional driver works ... ERROR image writes data to an open filehandle ... ERROR image writes data to a StringIO instance ... ERROR test that an image can be saved as a string ... ERROR ====================================================================== ERROR: imageObj with a filename works ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/cases/imagetest.py", line 95, in testConstructorFilename imgobj = mapscript.imageObj(test_image) File "build/lib.linux-i686-2.3/mapscript.py", line 1182, in __init__ if self.thisown: destroy(self) TypeError: new_imageObj() takes at least 2 arguments (1 given) ====================================================================== ERROR: imageObj with a filename and a driver works ---------------------------------------------------------------------- Traceback (most recent call last): File "tests/cases/imagetest.py", line 103, in testConstructorFilenameDriver imgobj = mapscript.imageObj(test_image) File "build/lib.linux-i686-2.3/mapscript.py", line 1182, in __init__ if self.thisown: destroy(self) TypeError: new_imageObj() takes at least 2 arguments (1 given) Thanks again for your hard work on python mapscript and your new PCL. -- didier.georgieff DIDSIT du Bas-Rhin From sgillies at FRII.COM Mon Dec 6 06:19:37 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 6 Dec 2004 07:19:37 -0700 Subject: 4.4.0 build ok, but 4 python mapscript tests are failing In-Reply-To: <1102340846.3495.61.camel*didier.georgieff@agriculture.gouv.fr> Message-ID: On Dec 6, 2004, at 6:47 AM, didier.georgieff wrote: > Hello Sean, > > I just build OK the new MS 4.4.0 on mdk 10.0. I used : > > $ ./configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj > --with-ogr --with-gdal --with-pdf --with-threads --with-gd=/usr > --with-jpeg=/usr --with-libiconv=/usr --with-freetype=/usr > --with-zlib=/usr --with-png=/usr --with-xpm=usr/X11R6 > > I have a python 2.3.3 and compiled python mapscript : > > $ cp mapscript/python/modern/* mapscript/python/ > $ cd mapscript/python/ > $ python setup.py build > > All seems fine. > > But when i want to test mapscript, 4 tests are failing (segfault if > invoqued from mapscript/python/test/cases/, and ERROR if invoqued from > mapscript/python/) > > 4 tests are clonetest.py, imagetest.py, outputformattest.py and > symboltest.py. I can provide all the detailed report if you need it. > > ex: > > python tests/cases/imagetest.py -v > imageObj constructor works ... ok > imageObj with a filename works ... ERROR > imageObj with a filename and a driver works ... ERROR > imageObj with a file stream works ... ERROR > imageObj with a cStringIO works ... ERROR > imageObj with a URL stream works ... ERROR > imageObj with an optional driver works ... ERROR > image writes data to an open filehandle ... ERROR > image writes data to a StringIO instance ... ERROR > test that an image can be saved as a string ... ERROR > > ====================================================================== > ERROR: imageObj with a filename works > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/cases/imagetest.py", line 95, in testConstructorFilename > imgobj = mapscript.imageObj(test_image) > File "build/lib.linux-i686-2.3/mapscript.py", line 1182, in __init__ > if self.thisown: destroy(self) > TypeError: new_imageObj() takes at least 2 arguments (1 given) > > ====================================================================== > ERROR: imageObj with a filename and a driver works > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "tests/cases/imagetest.py", line 103, in > testConstructorFilenameDriver > imgobj = mapscript.imageObj(test_image) > File "build/lib.linux-i686-2.3/mapscript.py", line 1182, in __init__ > if self.thisown: destroy(self) > TypeError: new_imageObj() takes at least 2 arguments (1 given) > > > Thanks again for your hard work on python mapscript and your new PCL. > -- > didier.georgieff > DIDSIT du Bas-Rhin > Hi Didier, It looks to me like there may be code compiled from the older, non-modern, source in build/lib.linux-i686-2.3. Can you try to delete the python/build directory and try again? I am unable to confirm your problem on my machine, all 228 tests pass. I'm on #mapserver on irc.freenode.net all day today if you would like quicker feedback on solving this problem. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sobomsawin at KASSINI.COM Mon Dec 6 06:29:51 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 6 Dec 2004 09:29:51 -0500 Subject: [UMN_MAPSERVER-USERS] Internal Server Error In-Reply-To: <007601c4db90$095e11f0$041410ac@comune.lugo.ra.it> Message-ID: Most of the time, internal server error is caused by a syntax error in the mapfile. Can you post the Elementi_stradali layer section of your mapfile? Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 6 d?cembre 2004 07:35 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Internal Server Error Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ---------------------------------------------------------------------------- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.blumer at EPFL.CH Mon Dec 6 06:39:14 2004 From: christian.blumer at EPFL.CH (Christian Blumer) Date: Mon, 6 Dec 2004 15:39:14 +0100 Subject: Internal Server Error Message-ID: MessaggioI got the same error due to mistakes in the Mapfile. You should try to check it too. Especially check if the layer definition for the shapefile is correct. Christian ----- Original Message ----- From: Daniele Margotti To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, December 06, 2004 1:35 PM Subject: [UMN_MAPSERVER-USERS] Internal Server Error Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ---------------------------------------------------------------------------- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Mon Dec 6 07:09:23 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 6 Dec 2004 16:09:23 +0100 Subject: Oracle Spatial and Mapserver 4.4 Message-ID: Hi list, I saw some e-mails from Nicolas on trying to use Oracle Spatial support in 4.4. Did you already get it to work Nicolas, or anybody else? We are experiencing the same problems, 4.2 binaries work, but 4.4 binaries don't. There doesn't seem to be anything wrong with Howard Butler's binaries as our own binaries experience the same problem (all requests to the database time out, GetCapabilities, GetMap etc.). Just before we investigate this further, did anything *magically* "happen" in the meantime (Fernando?) ? Best regards, Bart From didier.georgieff at AGRICULTURE.GOUV.FR Mon Dec 6 07:04:39 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Mon, 6 Dec 2004 16:04:39 +0100 Subject: 4.4.0 build ok, but 4 python mapscript tests are failing In-Reply-To: Message-ID: Dear Sean, > It looks to me like there may be code compiled from the older, > non-modern, source in build/lib.linux-i686-2.3. OK. > Can you try to delete the python/build directory and try again? 1 - tried deleting => same problem 2 - removed the whole mapserver folder and untar a fresh one => same problem. See below __exactly__ (from history) what I did. I'll keep searching. Just let me know if you want me to try something. >From what i saw, tests create jpg, png and fail on creating other images. More facts when i find information. > I am unable > to confirm your problem on my machine, all 228 tests pass. OK. Kernel 2.6.3-15mdk gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) Python 2.3.3 > I'm on #mapserver on irc.freenode.net all day today if you would > like quicker feedback on solving this problem. Thanks a lot for the proposal. But my firewall doesn't allow IRC ;-< ############# install mapserver 4.4.0 tar zxvf mapserver-4.4.0.tar.gz cd mapserver-4.4.0 ../configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj --with-ogr\\ --with-gdal --with-pdf --with-threads --with-gd=/usr \\ --with-jpeg=/usr --with-libiconv=/usr --with-freetype=/usr \\ --with-zlib=/usr --with-png=/usr --with-xpm=/usr/X11R6 make su cp mapscript/python/modern/* mapscript/python/ cd mapscript/python/ python setup.py build cd tests/cases python runalltests.py -v # Segfault python classtest.py -v # OK python imagetest.py -v # Segfault ############### Report from ./configure if this can help to diagnose. ../configure --prefix=/usr --with-httpd=/usr/sbin/httpd2 --with-proj --with-ogr --with-gdal --with-pdf --with-threads --with-gd=/usr --with-jpeg=/usr --with-libiconv=/usr --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-xpm=/usr/X11R6 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for ranlib... ranlib checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for exp in -lm... yes checking for __gxx_personality_v0 in -lstdc++... yes checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for strcasecmp... yes checking for strncasecmp... yes checking for strdup... yes checking for strlcat... no MapServer Version from map.h: '4.4.0' configure: checking where FreeType 2.x is installed... using libfreetype from -lfreetype -lz checking for FT_Init_FreeType in -lfreetype... yes using libfreetype -lfreetype from system libs. configure: checking where Zlib is installed... using libz from -L/usr/lib -lz configure: checking where PNG is installed... using libpng from -L/usr/lib -lpng configure: checking whether we should include JPEG support... using libjpeg from system -L/usr/lib -ljpeg configure: checking where libXpm is installed... using libXpm from -L/usr/X11R6/lib -lXpm -lX11 configure: checking where libiconv is installed... checking for iconv_open in -lc... yes checking for libiconv_open in -liconv... no using libiconv from -L/usr/lib -lc libiconv found. Enabling internationalization (-DUSE_ICONV) configure: checking for GD 2.0.12 or higher... checking for gdImageSetAntiAliased in -lgd... yes using libgd 2.0.12 (or higher) from -L/usr/lib -lgd -L/usr/lib -ljpeg -lfreetype -L/usr/lib -lpng -L/usr/lib -lz -L/usr/X11R6/lib -lXpm -lX11 checking for gdImageGif in -lc... no checking for gdImagePng in -lc... yes checking for gdImageJpeg in -lc... yes checking for gdImageWBMP in -lc... yes checking for gdImageStringFT in -lc... yes checking for gdImageGifPtr in -lc... no checking for gdFontGetTiny in -lc... no using GD ( -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT) from /usr. configure: checking whether we should include PDF support... checking for PDF_setlinewidth in -lpdf... yes checking for PDF_setrgbcolor in -lpdf... yes checking for PDF_moveto in -lpdf... yes checking for PDF_curveto in -lpdf... yes checking for PDF_show_xy in -lpdf... yes using libpdf from system libs. configure: checking whether we should include EPPL7 support... including EPPL7 support. configure: checking whether we should include PROJ.4 support... checking for pj_init in -lproj... yes checking for pj_transform in -lproj... yes checking for pj_latlong_from_proj in -lproj... yes using PROJ.4 from system libs. configure: checking whether we should include thread safe support... checking for pthread_create in -lpthread... yes using -lpthread from system libs. configure: checking whether we should include ESRI SDE support... ESRI SDE support not requested. configure: checking whether we should include SDE raster support... not including experimental SDE raster support. configure: checking whether we should compile in MPATROL support... MPATROL support not requested. checking if GEOS support requested... no configure: checking whether we should include OGR support... checking for gdal-config... /usr/bin/gdal-config OGR enabled (-DUSE_OGR). checking if GDAL support requested... yes checking checking ms JPEG output... no we, have GDAL available. configure: checking whether we should include TIFF support... disabled since gdal is in use checking if PostGIS support requested... no checking if MyGIS support requested... no checking if OracleSpatial support requested... no checking if MING/Flash support requested... no configure: checking whether we should include WMS Server support... OGC WMS compatibility enabled (-DUSE_WMS_SVR). configure: checking whether we should include WFS Server support... OGC WFS Server support not requested. configure: checking whether we should include WCS Server support... OGC WCS Server support not requested. configure: checking whether we should include WMS Client Connections support... configure: checking whether we should include WFS Client Connections support... configure: checking for curl-config... configure: checking whether FastCGI support should be enabled... FastCGI support not enabled. configure: checking HTTPD server (Apache) version... using user-supplied httpd (/usr/sbin/httpd2) /usr/sbin/httpd2 version is Apache-AdvancedExtranetServer/2.0.48 (2000048). Compiling with -DIGNORE_MISSING_DATA. configure: checking whether we should enable debug features... configure: checking for PHP/MapScript module options... PHP/MapScript module not configured. configure: creating ./config.status config.status: creating Makefile config.status: creating mapscript/java/Makefile From bartvde at XS4ALL.NL Mon Dec 6 07:27:48 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 6 Dec 2004 16:27:48 +0100 Subject: Oracle Spatial and Mapserver 4.4 In-Reply-To: <16402.212.238.227.182.1102345763.squirrel@212.238.227.182> Message-ID: Okay, we seem to have maps now. Only things like WMS GetFeatureInfo, WMS DescribeLayer give an internal server error. Premature end of script headers: mapserv.exe I do have a USING UNIQUE statement, so query functions should work. DATA "LOCATIE FROM MRG_GEMEENTEN USING UNIQUE ID SRID 90112" Also, do define a WMS_EXTENT for your layers otherwise the WMS capabilities don't work, something should be done about error handling there. There is an error message in the error log: msOracleSpatialLayerGetExtent(): OracleSpatial error. Function not implemented yet Best regards, Bart > Hi list, > > I saw some e-mails from Nicolas on trying to use Oracle Spatial support in > 4.4. Did you already get it to work Nicolas, or anybody else? > > We are experiencing the same problems, 4.2 binaries work, but 4.4 binaries > don't. There doesn't seem to be anything wrong with Howard Butler's > binaries as our own binaries experience the same problem (all requests to > the database time out, GetCapabilities, GetMap etc.). > > Just before we investigate this further, did anything *magically* "happen" > in the meantime (Fernando?) ? > > Best regards, > Bart > From teb at MALLIT.FR.UMN.EDU Mon Dec 6 07:08:08 2004 From: teb at MALLIT.FR.UMN.EDU (Thomas E Burk) Date: Mon, 6 Dec 2004 09:08:08 -0600 Subject: MapServer Map Context Message-ID: And/or use the "Add a Comment" link that's at the bottom of every MapServer documentation page to point out the issue. Comments are passed on to the documentation author the day we receive them. Thanks, Tom >X-Umn-Remote-Mta: [N] lsv-m.tc.umn.edu [160.94.23.1] #+HF+LO+NM >X-Umn-Remote-Mta: [N] mx2.magma.ca [206.191.0.250] #+NR+OF (I,-) >X-Umn-Report-As-Spam: >User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) >X-Accept-Language: en-us, en >MIME-Version: 1.0 >Content-Transfer-Encoding: 7bit >Date: Sun, 5 Dec 2004 12:36:01 -0500 >From: Jeff McKenna >Subject: Re: [UMN_MAPSERVER-USERS] MapServer Map Context >X-To: Raj Singh >To: MAPSERVER-USERS at lists.umn.edu > >I've filed a bug for this >(http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1104). If you notice >any documentation problems please file a bug in the MapServer Bugzilla >(component: 'MapServer Documentation')...this helps us keep track of >them. thanks. > >jeff > > > > > >Raj Singh wrote: >> Thanks Assefa. Your advice worked. The HOWTO should be updated because >> it seems incomplete. >> http://mapserver.gis.umn.edu/doc42/mapcontext-howto.html says only to, >> "Build/install the above libraries on your system adn then build >> MapServer with the '--with-wmsclient --with-proj --with-php' configure >> options." >> >> --Raj >> >> On Dec 2, 2004, at 12:34 PM, Yewondwossen Assefa wrote: >> >>> You need to make sure that your build uses USE_WMS_LYR and USE_OGR >>> flags (you need to build you mapserver/php_mapscript with wms and >>> gdal/ogr support). >>> >>> Raj Singh wrote: >>> >>>> Has anyone used the OGC web map context support in version 4.2.2? >>>> I'm having a tough time getting Web Map Context support working. I >>>> have >>>> proj4, gdal, php, wmsclient and wmsserver support working fine, but >>>> whenever I test map context support using this code: >>>> >>> dl("php_mapscript.so"); >>>> $oMap = ms_newMapObj("/usr/local/apache2/htdocs/umi5/parcel.map"); >>>> $oMap->saveMapContext("/usr/local/apache2/htdocs/tmp/output.xml"); >>>> ?> >>>> I get the following message in my apache error log: >>>> [error] [client 66.31.41.182] PHP Warning: [MapServer Error]: >>>> msSaveMapContext(): Not implemented since Map Context is not enabled. >>>> --Raj >>> >>> >>> >>> -- >>> ---------------------------------------------------------------- >>> Assefa Yewondwossen >>> Software Analyst >>> >>> Email: assefa at dmsolutions.ca >>> http://www.dmsolutions.ca/ >>> >>> Phone: (613) 565-5056 (ext 14) >>> Fax: (613) 565-0925 >>> ---------------------------------------------------------------- >>> >>> >> > > >-- >Jeff McKenna >GIS Specialist >DM Solutions Group Inc. >http://www.dmsolutions.ca > From sgillies at FRII.COM Mon Dec 6 07:27:39 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 6 Dec 2004 08:27:39 -0700 Subject: 4.4.0 build ok, but 4 python mapscript tests are failing In-Reply-To: Message-ID: On Dec 6, 2004, at 8:04 AM, didier.georgieff wrote: > Dear Sean, > >> It looks to me like there may be code compiled from the older, >> non-modern, source in build/lib.linux-i686-2.3. > > OK. > >> Can you try to delete the python/build directory and try again? > > 1 - tried deleting => same problem > > 2 - removed the whole mapserver folder and untar a fresh one => same > problem. > > See below __exactly__ (from history) what I did. > I'll keep searching. Just let me know if you want me to try something. > >> From what i saw, tests create jpg, png and fail on creating other > images. More facts when i find information. > >> I am unable >> to confirm your problem on my machine, all 228 tests pass. > > OK. > > Kernel 2.6.3-15mdk > gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) > Python 2.3.3 > >> I'm on #mapserver on irc.freenode.net all day today if you would >> like quicker feedback on solving this problem. > > Thanks a lot for the proposal. But my firewall doesn't allow IRC ;-< > Didier, I am unfamiliar with Mandrake ... I wonder if it is doing something different with the python path? The unit testing framework works by importing mapscript from python/tests/cases/testing.py. You can look in that file to see how it is done. To diagnose if the framework is failing, cd to python/tests/cases and try this: $ python >>> from testing import mapscript >>> mapscript.MS_VERSION '4.4.0' 4.4.0 is what I get. If the testing framework fails on mandrake, and you accidentally import another installed mapscript, the version string should make it clear. Sean From didier.georgieff at AGRICULTURE.GOUV.FR Mon Dec 6 07:48:12 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Mon, 6 Dec 2004 16:48:12 +0100 Subject: 4.4.0 build ok, but 4 python mapscript tests are failing In-Reply-To: <5D88DB88-479B-11D9-8281-000D9329D732*sgillies@frii.com> Message-ID: Le lun 06/12/2004 ? 16:27, Sean Gillies a ?crit : > The unit testing framework works by importing mapscript from > python/tests/cases/testing.py. You can look in that file to see > how it is done. OK. I'll look at it. > To diagnose if the framework is failing, cd to python/tests/cases and > try this: > > $ python > >>> from testing import mapscript > >>> mapscript.MS_VERSION > '4.4.0' $python Python 2.3.3 (#2, Feb 17 2004, 11:45:40) [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from testing import mapscript >>> mapscript.MS_VERSION '4.4.0' It seems to be fine. Sorry ;-) > 4.4.0 is what I get. If the testing framework fails on mandrake, and > you accidentally import another installed mapscript, the version string > should make it clear. 2 months ago, I installed mapscript from the previous 4.2.4. I'll try to see if something remains. Anyway, thnaks for the help. -- didier.georgieff DIDSIT du Bas-Rhin From simon at INF.UNIVALI.BR Mon Dec 6 05:49:49 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Mon, 6 Dec 2004 13:49:49 +0000 Subject: Oracle Spatial and Mapserver 4.4 In-Reply-To: <21561.212.238.227.182.1102346868.squirrel@212.238.227.182> Message-ID: Hi Bart, About the extent I will try to add this support for the next version. I didn't tested with WMS functions, can you show how are you trying to use WMS functions? I am trying to fix the Nicolas problem, but how Howard saw can be a package problem. About the docs, I tried update the new documentation for Oracle Spatial wiki page, but the status changed to "Read Only"??? Thanks. --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Bart van den Eijnden wrote: >Okay, we seem to have maps now. > >Only things like WMS GetFeatureInfo, WMS DescribeLayer give an internal >server error. > >Premature end of script headers: mapserv.exe > >I do have a USING UNIQUE statement, so query functions should work. > >DATA "LOCATIE FROM MRG_GEMEENTEN USING UNIQUE ID SRID 90112" > >Also, do define a WMS_EXTENT for your layers otherwise the WMS >capabilities don't work, something should be done about error handling >there. There is an error message in the error log: > >msOracleSpatialLayerGetExtent(): OracleSpatial error. Function not >implemented yet > >Best regards, >Bart > > > >>Hi list, >> >>I saw some e-mails from Nicolas on trying to use Oracle Spatial support in >>4.4. Did you already get it to work Nicolas, or anybody else? >> >>We are experiencing the same problems, 4.2 binaries work, but 4.4 binaries >>don't. There doesn't seem to be anything wrong with Howard Butler's >>binaries as our own binaries experience the same problem (all requests to >>the database time out, GetCapabilities, GetMap etc.). >> >>Just before we investigate this further, did anything *magically* "happen" >>in the meantime (Fernando?) ? >> >>Best regards, >>Bart >> >> >> > > > From didier.georgieff at AGRICULTURE.GOUV.FR Mon Dec 6 07:58:44 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Mon, 6 Dec 2004 16:58:44 +0100 Subject: 4.4.0 build ok, but 4 python mapscript tests are failing In-Reply-To: <5D88DB88-479B-11D9-8281-000D9329D732*sgillies@frii.com> Message-ID: Le lun 06/12/2004 ? 16:27, Sean Gillies a ?crit : > To diagnose if the framework is failing, cd to python/tests/cases and > try this: I think I found the cause. $ egrep PNG24 * clonetest.py: def testDrawClonePNG24(self): clonetest.py: self.mapobj_clone.selectOutputFormat('PNG24') clonetest.py: filename = 'testClonePNG24.png' outputformattest.py: def testBuiltInPNG24Format(self): outputformattest.py: self.map.selectOutputFormat('PNG24') outputformattest.py: filename = 'testBuiltInPNG24Format.png' symboltest.py: self.map.selectOutputFormat('PNG24') symboltest.py: def testRGBASymbolInPNG24(self): symboltest.py: self.map.setImageType('PNG24') symboltest.py~: self.map.selectOutputFormat('PNG24') symboltest.py~: def testRGBASymbolInPNG24(self): symboltest.py~: self.map.setImageType('PNG24') Using PNG24 seems to be the reason for segfaulting (except for imagetest.py). I'll see if my ./configure use the right library. I'll keep you informed. -- didier.georgieff DIDSIT du Bas-Rhin From bluecarto at FREE.FR Mon Dec 6 08:16:59 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Mon, 6 Dec 2004 17:16:59 +0100 Subject: mouse shape Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: "@(none)" <""pierre\"@(none)"> Subject: Re: [UMN_MAPSERVER-USERS] mouse shape {Scanned} Date: Mon, 06 Dec 2004 09:54:16 +0100 Size: 2267 URL: From nicolas.fortin at EC.GC.CA Mon Dec 6 08:16:35 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Mon, 6 Dec 2004 11:16:35 -0500 Subject: [UMN_MAPSERVER-USERS] Oracle Spatial and Mapserver 4.4 Message-ID: Unfortunately, here's a message I saw on the wiki... "Due to spamming problems, editing is currently disabled for the MapServer Wiki." I know my last post seems confusing to many of you (it is for me too!) but with some search, I found that the crash happens in one of the function in the oraclient9 dll (funtion name = kpufhndl). I don't know if this could help but i'm upgrading my test Oracle database from 9.2.0.1 to 9.2.0.4 ... Nicolas -----Message d'origine----- De : Fernando S. [mailto:simon at inf.univali.br] Envoy? : Monday, December 06, 2004 8:50 AM ? : bartvde at XS4ALL.NL; MAPSERVER-USERS at LISTS.UMN.EDU; Fortin,Nicolas [SteFoy] Objet : Re: [UMN_MAPSERVER-USERS] Oracle Spatial and Mapserver 4.4 Hi Bart, About the extent I will try to add this support for the next version. I didn't tested with WMS functions, can you show how are you trying to use WMS functions? I am trying to fix the Nicolas problem, but how Howard saw can be a package problem. About the docs, I tried update the new documentation for Oracle Spatial wiki page, but the status changed to "Read Only"??? Thanks. --------------------------------------------- Fernando Simon Mapserver and Oracle Spatial developer LCA - http://g10.cttmar.univali.br --------------------------------------------- Bart van den Eijnden wrote: >Okay, we seem to have maps now. > >Only things like WMS GetFeatureInfo, WMS DescribeLayer give an internal >server error. > >Premature end of script headers: mapserv.exe > >I do have a USING UNIQUE statement, so query functions should work. > >DATA "LOCATIE FROM MRG_GEMEENTEN USING UNIQUE ID SRID 90112" > >Also, do define a WMS_EXTENT for your layers otherwise the WMS >capabilities don't work, something should be done about error handling >there. There is an error message in the error log: > >msOracleSpatialLayerGetExtent(): OracleSpatial error. Function not >implemented yet > >Best regards, >Bart > > > >>Hi list, >> >>I saw some e-mails from Nicolas on trying to use Oracle Spatial >>support in 4.4. Did you already get it to work Nicolas, or anybody >>else? >> >>We are experiencing the same problems, 4.2 binaries work, but 4.4 >>binaries don't. There doesn't seem to be anything wrong with Howard >>Butler's binaries as our own binaries experience the same problem (all >>requests to the database time out, GetCapabilities, GetMap etc.). >> >>Just before we investigate this further, did anything *magically* >>"happen" in the meantime (Fernando?) ? >> >>Best regards, >>Bart >> >> >> > > > From steve.lime at DNR.STATE.MN.US Mon Dec 6 08:53:48 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 6 Dec 2004 10:53:48 -0600 Subject: ANNOUNCE: Open Source Geospatial '05 - MUM3/EOGEO Message-ID: Hi Folks: I'm pleased to announce that information pertaining to the next MapServer User Meeting (MUM3) is now available. Like last year the conference is broader than just MapServer and will cover a broad range of Open Source Geospatial software and projects. We are partnering with the folks at EOGEO (www.eogeo.org) in hosting this event. The conference will be held at the University of Minnesota in Minneapolis, MN USA from June 16th until June 18th 2005. Information about lodging, calls for presentation and a preliminary program are (or will be) available at the conference website: http://mapserver.gis.umn.edu/mum/mtg2005.html The site is just now being fleshed out and will change frequently so please check back often. Should be a terrific event and I hope to see you all in Minneapolis this summer! Steve Stephen Lime Data & Applications Manager Minnesota DNR 500 Lafayette Road St. Paul, MN 55155 651-297-2937 From pablorv at YAHOO.COM Mon Dec 6 09:04:23 2004 From: pablorv at YAHOO.COM (Pablo Toapanta) Date: Mon, 6 Dec 2004 09:04:23 -0800 Subject: Problem with Windows Server 2003 Message-ID: Hi I?m trying to install Mapserver over Windows Server 2003, I had followed all the steps to install it, and allowed CGI in Web Server Extensions (IIS Manager), but when I test it I received this message: "CGI Error - The specified CGI application misbehaved by not returning a complete set of HTTP headers". Could anyone help me with this?? Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From ed at TOPOZONE.COM Mon Dec 6 09:23:12 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Dec 2004 12:23:12 -0500 Subject: Problem with Windows Server 2003 Message-ID: The first place to look is to see if zlib.dll is installed in the system path or other place accessible to the mapserv.exe executable. If you get a "misbehaved" CGI application error, that at least confirms that the application (.exe) is being found and the correct permissions exist to execute it (otherwise it wouldn't get a chance to misbehave). - 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 Pablo Toapanta Sent: Monday, December 06, 2004 12:04 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with Windows Server 2003 Hi I?m trying to install Mapserver over Windows Server 2003, I had followed all the steps to install it, and allowed CGI in Web Server Extensions (IIS Manager), but when I test it I received this message: "CGI Error - The specified CGI application misbehaved by not returning a complete set of HTTP headers". Could anyone help me with this?? Thanks __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From Micheal.Arnold at NSCORP.COM Mon Dec 6 09:43:29 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Mon, 6 Dec 2004 12:43:29 -0500 Subject: jbox and panning Message-ID: Thanks Richard. Any idea how I would calculate the map extents using javascript? I know that the setbox_handler function has the minx, miny, maxx, and maxy variables, but I can't figure out how to calculate the extents. Thanks again, Mike Arnold micheal.arnold at nscorp.com -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Saturday, December 04, 2004 10:06 AM To: Arnold, Micheal B. Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox and panning On Fri, 3 Dec 2004 14:23:49 -0500, Arnold, Micheal B. wrote: > > > > Has anybody ever had a problem like this: > > > > I have implemented image swapping with jBox. When I try panning, everything > works fine the first time I move my map. The second (and subsequent) > attempts fail. When I try to pan, the map jumps to what seems like a random > place. I am having similar problems trying to zoom in on my map. > > > > It seems like the problem might be with imgxy or imgbox, but I can't figure > out where the disconnect is. I am not sure if something needs to be reset > since I am not re-submitting the page. > > > > Can anybody offer any suggestions? > > > > Thanks, > > > > Mike Arnold > > micheal.arnold at nscorp.com Each time you swap images, you are chaning your map extents. Are you keeping track of that on the client? When you request a whole new pae, mapserver calculates the new map extent and usually you save that in hidden variables on the page. Then use that extent, combined with user-input pixels coordinates to request the next map. However, when you image swap, you need to calculate and keep track of the map extent on the client side. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sirronj at PACBELL.NET Mon Dec 6 11:25:07 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 6 Dec 2004 11:25:07 -0800 Subject: back again - this time a different question about lat/long Message-ID: Everyone, I have built a teacher point file based upon lat/long. I pull it into fGIS and go to a specific point: When I do a wtm lat/long on the point I get: DD Latitude: 40.30749 DD Longitude: -96.11708 DM Latitude: 40 18.44958 DM Longitude: -96 7.02484 But in my shape file I have: LAT: 35.642952 LON: -120.662937 These estimated lat/longs are from http://geocoder.us/ Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From thomaschesky at YAHOO.COM Mon Dec 6 11:39:24 2004 From: thomaschesky at YAHOO.COM (Thomas Chesky) Date: Mon, 6 Dec 2004 11:39:24 -0800 Subject: getting map extent when using maxy and scale on cgi interface {Scanned} {Scanned} {Scanned} In-Reply-To: Message-ID: Thanks for the clarification. I give it a try. Thomas Siki Zoltan wrote: Hi Thomas, As far as I know imgext an output parameter, mapserver fills it with extents of actual image, mapext is the input parameter for the next map generated. Insert [imgext] into your html template and you can see the values. Bye Zoltan On Sun, 5 Dec 2004, Thomas Chesky wrote: > Zoltan, > > Thanks for the answer. > > imgext is an input parameter as far as I know. If I know it, then I use imgext to request the map with that particular extent. But in my case I only know the center point (geocoded address), the scale and the image width/height. These are my inputs. Mapserver calculates the extent when drawing the map. How can I ask Mapserver to return this extent (coordinates of bottom-right and top-left of the map) besides returning the rendered image? > > So my input is: center lat/lon; scale; width/height pixels of map > Current output: 1) image > > Desired output: 1) image and 2) bottom-right/top-left coordinates > > Thomas > > Siki Zoltan wrote: > Hi, > > Check imgext cgi variable. It holds the minx miny maxx maxy of the actual > map image. > > Bye > Zoltan > > On Sat, 4 Dec 2004, Thomas Chesky wrote: > > > How can I request the map extent (bounding rectangle's coordinates) of the mapreturned by MapServer via the cgi interface when using mapxy and scale params . > > > > I have a cgi get string like this: > > &mapxy=-122.244+37.47502&scale=1&mapsize=600+400 > > > > Mapserver returns the image (map) correctly. I would like to know what are the bottom,left and top,right coordinates of the returned map. > > > > Can I do it via the cgi interface (any ascii response is good) or WFS or I have to use PHPmapscript? > > > > Thanks > > > > Thomas > > > > > > --------------------------------- > > Do you Yahoo!? > > The all-new My Yahoo! ? What will yours do? > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com --------------------------------- Do you Yahoo!? All your favorites on one personal page ? Try My Yahoo! -------------- next part -------------- An HTML attachment was scrubbed... URL: From toddbirkey at YAHOO.COM Mon Dec 6 12:22:04 2004 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Mon, 6 Dec 2004 12:22:04 -0800 Subject: Formula for converting pixels to long lat points Message-ID: Formula for converting pixels to long lat points After I create a static image using the EXTENT -125.3556 10 -67 49.5 Mapserver creates a image that is 449x349 pixels I would like to use a ismap to reference the x,y points on my image and then pass that information to a second web app that will convert the pixel X,Y to long, Lat points. I tried a couple of formulas I found in the list but I can not seam to get it to work. Thanks for your help. Todd Birkenholtz --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? Get yours free! -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Dec 6 12:35:45 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Dec 2004 15:35:45 -0500 Subject: Formula for converting pixels to long lat points Message-ID: Todd - The first thing you should do is to ensure your geographic and image extents are proportional; otherwise MapServer will be forced to adjust your geographic extents and then you'll have to deduce what MapServer did to change them. You want to be sure that (MAXX - MINX) / WIDTH = (MAXY - MINY) / HEIGHT so the width and height of the ground area (in degrees) are proportional to the width and height of the image (in pixels). In the example you give, you want (-67 - (-125.3556)) / 449 = (49.5 - 10) / 349 (I'm guessing on the order of the width and height). That's not an equality, since it computes to: 0.129968 = 0.138968 You want to change either the extents or the image size. Once you've done that, you simply divide the width in degrees by the width in pixels to get "degrees per pixel" or DPP: that is, DPP = (MAXX - MINX) / WIDTH. Then the pixel at horizontal coordinate X will have an X-coordinate (longitude) of MINX + (X * DPP), and you do the same thing for Y. - 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 Todd Birkenholtz Sent: Monday, December 06, 2004 3:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Formula for converting pixels to long lat points Formula for converting pixels to long lat points After I create a static image using the EXTENT -125.3556 10 -67 49.5 Mapserver creates a image that is 449x349 pixels I would like to use a ismap to reference the x,y points on my image and then pass that information to a second web app that will convert the pixel X,Y to long, Lat points. I tried a couple of formulas I found in the list but I can not seam to get it to work. Thanks for your help. Todd Birkenholtz ________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! From sirronj at PACBELL.NET Mon Dec 6 12:41:44 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 6 Dec 2004 12:41:44 -0800 Subject: Formula for converting pixels to long lat points In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FDD8@ptolemy.topozone.com> Message-ID: What about a formula for doing the reverse - I have lat/long and I want to pixel position within an image. Thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Monday, December 06, 2004 12:36 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Formula for converting pixels to long lat points Todd - The first thing you should do is to ensure your geographic and image extents are proportional; otherwise MapServer will be forced to adjust your geographic extents and then you'll have to deduce what MapServer did to change them. You want to be sure that (MAXX - MINX) / WIDTH = (MAXY - MINY) / HEIGHT so the width and height of the ground area (in degrees) are proportional to the width and height of the image (in pixels). In the example you give, you want (-67 - (-125.3556)) / 449 = (49.5 - 10) / 349 (I'm guessing on the order of the width and height). That's not an equality, since it computes to: 0.129968 = 0.138968 You want to change either the extents or the image size. Once you've done that, you simply divide the width in degrees by the width in pixels to get "degrees per pixel" or DPP: that is, DPP = (MAXX - MINX) / WIDTH. Then the pixel at horizontal coordinate X will have an X-coordinate (longitude) of MINX + (X * DPP), and you do the same thing for Y. - 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 Todd Birkenholtz Sent: Monday, December 06, 2004 3:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Formula for converting pixels to long lat points Formula for converting pixels to long lat points After I create a static image using the EXTENT -125.3556 10 -67 49.5 Mapserver creates a image that is 449x349 pixels I would like to use a ismap to reference the x,y points on my image and then pass that information to a second web app that will convert the pixel X,Y to long, Lat points. I tried a couple of formulas I found in the list but I can not seam to get it to work. Thanks for your help. Todd Birkenholtz ________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! From saso.celarc at HERMES-PLUS.SI Mon Dec 6 12:46:47 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 6 Dec 2004 14:46:47 -0600 Subject: example1-9 doesn't work in browse mode Message-ID: Any idea ? I'am newbe and want perform the MS tutorial. Regards, Sa?o From agillesp at VT.EDU Mon Dec 6 13:09:34 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 6 Dec 2004 16:09:34 -0500 Subject: Formula for converting pixels to long lat points In-Reply-To: Message-ID: I don't mean to be a jerk, but it should be simple algebra to solve for the variables you want. -Abe On Dec 6, 2004, at 3:41 PM, Joseph Norris wrote: > What about a formula for doing the reverse - I have lat/long and I > want to > pixel position within an image. Thanks > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Ed McNierney > Sent: Monday, December 06, 2004 12:36 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Formula for converting pixels to > long lat > points > > Todd - > > The first thing you should do is to ensure your geographic and image > extents are proportional; otherwise MapServer will be forced to adjust > your geographic extents and then you'll have to deduce what MapServer > did to change them. > > You want to be sure that (MAXX - MINX) / WIDTH = (MAXY - MINY) / HEIGHT > so the width and height of the ground area (in degrees) are > proportional > to the width and height of the image (in pixels). In the example you > give, you want (-67 - (-125.3556)) / 449 = (49.5 - 10) / 349 (I'm > guessing on the order of the width and height). That's not an > equality, > since it computes to: > > 0.129968 = 0.138968 > > You want to change either the extents or the image size. > > Once you've done that, you simply divide the width in degrees by the > width in pixels to get "degrees per pixel" or DPP: that is, DPP = (MAXX > - MINX) / WIDTH. Then the pixel at horizontal coordinate X will have > an > X-coordinate (longitude) of MINX + (X * DPP), and you do the same thing > for Y. > > - 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 Todd Birkenholtz > Sent: Monday, December 06, 2004 3:22 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Formula for converting pixels to long > lat > points > > > > Formula for converting pixels to long lat points > > > > After I create a static image using the EXTENT -125.3556 10 -67 49.5 > Mapserver creates a image that is 449x349 pixels > > > > I would like to use a ismap to reference the x,y points on my image > and > then pass that information to a second web app that will convert the > pixel X,Y to long, Lat points. > > > > I tried a couple of formulas I found in the list but I can not seam to > get it to work. > > > > > > > > Thanks for your help. > > > > Todd Birkenholtz > > ________________________________ > > Do you Yahoo!? > The all-new My Yahoo! - Get yours free! > From ed at TOPOZONE.COM Mon Dec 6 12:54:29 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Dec 2004 15:54:29 -0500 Subject: Formula for converting pixels to long lat points Message-ID: Joseph - I'm wondering whether this is the MapServer list or the elementary algebra list . Last time I looked, if: LONG = MINX + (X * DPP) Then (LONG - MINX) / DPP = X - 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: Joseph Norris [mailto:sirronj at pacbell.net] Sent: Monday, December 06, 2004 3:42 PM To: Ed McNierney; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] Formula for converting pixels to long lat points What about a formula for doing the reverse - I have lat/long and I want to pixel position within an image. Thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Monday, December 06, 2004 12:36 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Formula for converting pixels to long lat points Todd - The first thing you should do is to ensure your geographic and image extents are proportional; otherwise MapServer will be forced to adjust your geographic extents and then you'll have to deduce what MapServer did to change them. You want to be sure that (MAXX - MINX) / WIDTH = (MAXY - MINY) / HEIGHT so the width and height of the ground area (in degrees) are proportional to the width and height of the image (in pixels). In the example you give, you want (-67 - (-125.3556)) / 449 = (49.5 - 10) / 349 (I'm guessing on the order of the width and height). That's not an equality, since it computes to: 0.129968 = 0.138968 You want to change either the extents or the image size. Once you've done that, you simply divide the width in degrees by the width in pixels to get "degrees per pixel" or DPP: that is, DPP = (MAXX - MINX) / WIDTH. Then the pixel at horizontal coordinate X will have an X-coordinate (longitude) of MINX + (X * DPP), and you do the same thing for Y. - 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 Todd Birkenholtz Sent: Monday, December 06, 2004 3:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Formula for converting pixels to long lat points Formula for converting pixels to long lat points After I create a static image using the EXTENT -125.3556 10 -67 49.5 Mapserver creates a image that is 449x349 pixels I would like to use a ismap to reference the x,y points on my image and then pass that information to a second web app that will convert the pixel X,Y to long, Lat points. I tried a couple of formulas I found in the list but I can not seam to get it to work. Thanks for your help. Todd Birkenholtz ________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! From agillesp at VT.EDU Mon Dec 6 13:18:13 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 6 Dec 2004 16:18:13 -0500 Subject: Formula for converting pixels to long lat points In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FDD9@ptolemy.topozone.com> Message-ID: Yes, one would expect you'd take a *little* initiative in solving your problems. :) -Abe On Dec 6, 2004, at 3:54 PM, Ed McNierney wrote: > Joseph - > > I'm wondering whether this is the MapServer list or the elementary > algebra list . Last time I looked, if: > > LONG = MINX + (X * DPP) > > Then > > (LONG - MINX) / DPP = X > > - 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: Joseph Norris [mailto:sirronj at pacbell.net] > Sent: Monday, December 06, 2004 3:42 PM > To: Ed McNierney; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] Formula for converting pixels to > long > lat points > > What about a formula for doing the reverse - I have lat/long and I want > to pixel position within an image. Thanks > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print > @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3, > -1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Ed McNierney > Sent: Monday, December 06, 2004 12:36 PM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Formula for converting pixels to > long > lat points > > Todd - > > The first thing you should do is to ensure your geographic and image > extents are proportional; otherwise MapServer will be forced to adjust > your geographic extents and then you'll have to deduce what MapServer > did to change them. > > You want to be sure that (MAXX - MINX) / WIDTH = (MAXY - MINY) / HEIGHT > so the width and height of the ground area (in degrees) are > proportional > to the width and height of the image (in pixels). In the example you > give, you want (-67 - (-125.3556)) / 449 = (49.5 - 10) / 349 (I'm > guessing on the order of the width and height). That's not an > equality, > since it computes to: > > 0.129968 = 0.138968 > > You want to change either the extents or the image size. > > Once you've done that, you simply divide the width in degrees by the > width in pixels to get "degrees per pixel" or DPP: that is, DPP = (MAXX > - MINX) / WIDTH. Then the pixel at horizontal coordinate X will have > an > X-coordinate (longitude) of MINX + (X * DPP), and you do the same thing > for Y. > > - 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 Todd Birkenholtz > Sent: Monday, December 06, 2004 3:22 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Formula for converting pixels to long > lat > points > > > > Formula for converting pixels to long lat points > > > > After I create a static image using the EXTENT -125.3556 10 -67 49.5 > Mapserver creates a image that is 449x349 pixels > > > > I would like to use a ismap to reference the x,y points on my image > and > then pass that information to a second web app that will convert the > pixel X,Y to long, Lat points. > > > > I tried a couple of formulas I found in the list but I can not seam to > get it to work. > > > > > > > > Thanks for your help. > > > > Todd Birkenholtz > > ________________________________ > > Do you Yahoo!? > The all-new My Yahoo! - Get yours free! > From saintsjd at YAHOO.COM Mon Dec 6 13:18:45 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Mon, 6 Dec 2004 13:18:45 -0800 Subject: projection config in mapfile Message-ID: I am new to mapserver and i am looking for some example of how to configure the PROJECTION tag in a mapfile. The example i am working in needs to be projected in Maryland State Plane Coordinates NAD 83 Thanks Jon From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Dec 6 13:35:24 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Mon, 6 Dec 2004 16:35:24 -0500 Subject: Problem migrating WMS from 3.6.6 to 4.4 Message-ID: Hello, I'm trying to migrate my 3.6.6 based WMS server to 4.4, and am running into a glitch: I keeps returning nothing (NOT a blank image, litrelly nothing), or, even better, empty error messages: I'm making a very simple call: ?request=getmap&version=1.1.1&layers=places_labels_2m This is a labeling layer. With basic geometry, it works. If I do geometry + labels, it fails again as above. The mapserver CGI I'm using draws non OGC maps fine, I've been test driving that for a few weeks now. I was having that problem with the micross font, but I removed it from my WMS, replacing it with Arial. With Micross I was getting a glyph error. So it looks like I have yet another font problem I guess ... Could it be??? Any ideas?? Thanks, Jean-Fran?ois Doyon Internet Service Development and Systems Support / Sp?cialiste de d?veloppements internet et soutien technique Canada Centre for Remote Sensing / Centre Canadien de t?l?d?tection Natural Resources Canada / Ressources naturelles Canada http://atlas.gc.ca Tel./T?l. : (613) 992-4902 Fax: (613) 947-2410 From murilo.yoshida at AGX.COM.BR Mon Dec 6 13:59:27 2004 From: murilo.yoshida at AGX.COM.BR (Murilo Lacerda Yoshida) Date: Mon, 6 Dec 2004 19:59:27 -0200 Subject: ENC: using mapserver with php 5 as an apache dso Message-ID: Hi all, I am planning to update mapserver and php on my web server, and I was wondering if someone did this earlier and experienced some problems. I guess that with mapserver I won't have many (any) problems, because you have said that you have tested it a lot. But and what about php and oracle for example, or simply php... Did anyone had any problems? Thanks, Murilo From mtperry78 at SBCGLOBAL.NET Mon Dec 6 14:12:14 2004 From: mtperry78 at SBCGLOBAL.NET (Matthew Perry) Date: Mon, 6 Dec 2004 14:12:14 -0800 Subject: projection config in mapfile In-Reply-To: <20041206211845.94279.qmail@web53903.mail.yahoo.com> Message-ID: Jon, Try http://ocean.csl.co.uk/ ... you can browse the database and search for "Maryland" in the Coordinate Reference Systems table. The "coord_ref_sys_code" is what you're looking for. For example if the code is 26710, your projection blcok would look like: PROJECTION "init=EPSG:26710" END If it's not listed there, you'll have to look up the correct proj4 parameters. Hope this helps. Matt Perry Humboldt State University --- Jon Saints wrote: > I am new to mapserver and i am looking for some > example of how to configure the PROJECTION tag in a > mapfile. > > The example i am working in needs to be projected in > Maryland State Plane Coordinates NAD 83 > > Thanks > Jon > From cord at LUPINEX.COM Mon Dec 6 14:17:46 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Mon, 6 Dec 2004 14:17:46 -0800 Subject: projection config in mapfile Message-ID: Have you found the documentation, particularly the documentation on the mapfile? http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#projection which also refers to ftp://ftp.remotesensing.org/pub/proj/OF90-284.pdf page 57 of this document starts the discussion of State Plane Coordinate System in proj4. State zone numbers are here: http://www.edc.uri.edu/nrs/classes/NRS522/Tools/StatePlaneZones.htm Maryland appears to be in zone 4126 and have the following lambert conic projection parameters: 1st Std.Parallel 38 18 00 2nd Std.Parallel 39 27 00 CentralMeridian -77 00 00 Origin(Latitude) 37 40 00 False Easting (m) 400000 False Northing(m) 0 Convert the degree minute second to decimal degrees: degrees + minutes / 60 + seconds / 3600 then use the standard project format: PROJECTION "proj=" "ellps=" "units=ft" "lon_0=" "lat_0=" "x_0=" "y_0=" "k=" END Of course, an easier way is to use EPSG: PROJECTION "init=epsg:26985" END for meters > I am new to mapserver and i am looking for some > example of how to configure the PROJECTION tag in a > mapfile. > > The example i am working in needs to be projected in > Maryland State Plane Coordinates NAD 83 > > Thanks > Jon > From dmorissette at DMSOLUTIONS.CA Mon Dec 6 15:08:43 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 6 Dec 2004 18:08:43 -0500 Subject: MapServer 4.4.0 released In-Reply-To: Message-ID: Sean Gillies wrote: > On Dec 2, 2004, at 5:20 PM, Eduardo Patto Kanegae wrote: >> >> Do you think is it possible to create a "PHP shapelib wrapper" using >> SWIG? >> ... > > I don't know, and will have to defer to the PHP and shapelib experts. > I didn't follow the rest of this thread so I'm not sure what you're trying to do exactly, but to answer your specific question about building PHP extensions: I don't know how hard that would be to do with SWIG, but that would probably not be a trivial task. You may also want to consider writing a custom PHP extension since the shapelib API is fairly simple. See the file README.EXT_SKEL in the PHP source package about building PHP extensions. BTW, did you know that the PHP MapScript extension already includes the shapeFileObj class that allows you to do simple things with shapefiles? You should probably look at that before reinventing the wheel. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Dec 6 15:15:11 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 6 Dec 2004 18:15:11 -0500 Subject: Shapefile field problem In-Reply-To: <9F5ECAC4-4472-11D9-8B2B-000A957A0F9C@vt.edu> Message-ID: Abe Gillespie wrote: > A good amount of fields aren't showing up in MapServer for me. I use > the following PHP script to dump out all layers and their fields for > debugging. Does MapServer have problems with certain data types or > certain values in a row? > Are you using a tiled shapefile layer or is this a regular shapefile layer? -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Dec 6 15:29:23 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 6 Dec 2004 18:29:23 -0500 Subject: make warnings In-Reply-To: <41AF9F70.1000303@gmx.net> Message-ID: joerg pfeiffer wrote: > hello list, > > i just proudly compiled my first mapserver on suse 9.1. It works fine, > but I got lot's of warnings and missings in the make output. > Are you using 4.4? Lots of warnings were fixed in that version. I wouldn't worry too much about them for your specific build, but If you still get lots of warnings with version 4.4.0 then I'd suggest that you file a bug with the list of warnings to have them addressed. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Dec 6 15:47:54 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 6 Dec 2004 18:47:54 -0500 Subject: Need help with WMS and Projections In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FD9C@ptolemy.topozone.com> Message-ID: Ed McNierney wrote: > > I've never tried it with EPSG codes I don't have installed, but I > believe that if you list a series of EPSG codes in the "wms_srs" > metadata for the WMS client layer, MapServer will select (a) the > projection that matches its own output projection if available, or (b) > the first projection it understands. I always make sure I only list > projections I know I have installed, so I'm not certain about that. > Actually, the rule is: MapServer will select (a) the projection that matches its own output projection if available in the wms_srs metadata of the WMS client layer, or (b) fallback on the first projection in the wms_srs metadata of the WMS client layer and then internally warp the returned image to match the output projection. MapServer doesn't do any check in the EPSG list to find out if it supports a given projection or not. It's realy up to you to list the SRSes that both your local server and the remote WMS server supports in the WMS client layer's wms_srs metadata and that's what drives everything. In your case, the LAYER should look like this: LAYER CONNECTIONTYPE WMS CONNECTION "http://some.wms.tld/path/to/thewms?" ... METADATA ... "wms_srs" "EPSG:102190 EPSG:42102 EPSG:3005 EPSG:4269 EPSG:4326 EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 EPSG:32610 EPSG:32611 EPSG:32612" ... END END If EPSG:102190 was not in your epsg file (it is not there by default) then you should either not include it in the wms_srs metadata, or add it to your local epsg file. HTH Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Dec 6 15:57:10 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 6 Dec 2004 18:57:10 -0500 Subject: transparency lost when layer is queried In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A83A8185@linnms.co.linn.or.us> Message-ID: Ryan, Adam wrote: > Dear List, > Has anyone experienced the loss of layer transparency when querying? I have > the following querymap and layer: You mean that you lose transparency in the QUERYMAP, right? The querymap rendering has a bunch of issues, including the lack of support for transparency. Hopefully this will be addressed in 4.4/4.6: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=774 In the meantime you're out of luck, the simple fix would be to avoid the combination of querymap + transparency. It should also be possible to use a temporary layer or custom classes in mapscript to emulate the querymap effect with a normal map->draw() call. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Dec 6 16:06:36 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 6 Dec 2004 19:06:36 -0500 Subject: Oracle Spatial and Mapserver 4.4 In-Reply-To: <41B4637D.3060908@inf.univali.br> Message-ID: Fernando S. wrote: > About the extent I will try to add this support for the next > version. I didn't tested with WMS functions, can you show how are you > trying to use WMS functions? I believe Bart is doing a simple WMS GetCapabilities, so you could reproduce that easily with any mapfile with a URL like the following: http://your.host/cgi-bin/mapserv?map=/path/to/mapfile.map&version=1.1.1&request=GetCapabilities > About the docs, I tried update the new documentation for Oracle > Spatial wiki page, but the status changed to "Read Only"??? Please file a bug with a copy of the new documentation under the "MapServer Documentation" component in bugzilla. Hopefully Kari can then take it from there. And until the new docs are published you can point users to this bug next time somebody asks for documentation. Thanks Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From dmorissette at DMSOLUTIONS.CA Mon Dec 6 16:14:48 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Mon, 6 Dec 2004 19:14:48 -0500 Subject: transparency lost when layer is queried In-Reply-To: <41B4F1D6.8010003@dmsolutions.ca> Message-ID: Daniel Morissette wrote: > Ryan, Adam wrote: > >> Dear List, >> Has anyone experienced the loss of layer transparency when querying? >> I have >> the following querymap and layer: > > > You mean that you lose transparency in the QUERYMAP, right? The querymap > rendering has a bunch of issues, including the lack of support for > transparency. Hopefully this will be addressed in 4.4/4.6: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=774 > Of course here I meant "4.5/4.6". Fixing this involves changes that are too big to make it in any 4.4.x bugfix release. -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From h.viola at BOM.GOV.AU Mon Dec 6 16:31:49 2004 From: h.viola at BOM.GOV.AU (Hester Viola) Date: Mon, 6 Dec 2004 18:31:49 -0600 Subject: WMS/WFS using PHP MapScript Message-ID: Hi, We have developed an internal web mapping tool within the Australian Bureau of Meteorology using standard CGI MapServer to view weather data. Our newest undertaking though is using PHP Mapscript to provide climate data (stored in PostgreSQL/PostGIS) to a Water Portal via a WFS, based on a dynamic request sent by that portal. The request sent by the portal, is used to generate a layer in a PHP mapscript file, by adding the data via an SQL query, (there are no layers defined in the map file in use) ie. section of the php file: ... $rain_layer->set("connectiontype",MS_POSTGIS); $rain_layer->set("connection","$rain_connection"); $rain_query="the_geom from (SELECT g_stations.the_geom as the_geom, onedrain.prcp as prcp, g_stations.name as name, g_stations.oid as oid FROM g_stations, onedrain $date_part $loc_part AND onedrain.stn_num = g_stations.stn_num) as foo USING UNIQUE oid USING SRID=-1"; $rain_layer->set("data","$rain_query"); ... where $date_part and $loc_part include the input arguments sent in the portal request. Now that I have explained the set up, I would like to know how to implement a WFS to this dynamically created rain_layer. I have experimented with using $rain_layer->executeWFSGetfeature() but this only returns an empty string. I am also interested in how a WMS is enabled using PHP mapscript, if the layers are not defined in the .map file. I hope that someone can provide some information. Thank you in anticipation. -- Regards Hester VIOLA IT Officer, Data Management Australian Bureau of Meteorology 700 Collins St, Melbourne, 3008 Email. h.viola at bom.gov.au From H.Viola at BOM.GOV.AU Mon Dec 6 16:28:46 2004 From: H.Viola at BOM.GOV.AU (Hester Jane Viola) Date: Tue, 7 Dec 2004 11:28:46 +1100 Subject: WMS/WFS using PHP MapScript Message-ID: Hi, We have developed an internal web mapping tool within the Australian Bureau of Meteorology using standard CGI MapServer to view weather data. Our newest undertaking though is using PHP Mapscript to provide climate data (stored in PostgreSQL/PostGIS) to a Water Portal via a WFS, based on a dynamic request sent by that portal. The request sent by the portal, is used to generate a layer in a PHP mapscript file, by adding the data via an SQL query, (there are no layers defined in the map file in use) ie. section of the php file: ... $rain_layer->set("connectiontype",MS_POSTGIS); $rain_layer->set("connection","$rain_connection"); $rain_query="the_geom from (SELECT g_stations.the_geom as the_geom, onedrain.prcp as prcp, g_stations.name as name, g_stations.oid as oid FROM g_stations, onedrain $date_part $loc_part AND onedrain.stn_num = g_stations.stn_num) as foo USING UNIQUE oid USING SRID=-1"; $rain_layer->set("data","$rain_query"); ... where $date_part and $loc_part include the input arguments sent in the portal request. Now that I have explained the set up, I would like to know how to implement a WFS to this dynamically created rain_layer. I have experimented with using $rain_layer->executeWFSGetfeature() but this only returns an empty string. I am also interested in how a WMS is enabled using PHP mapscript, if the layers are not defined in the .map file. I hope that someone can provide some information. Thank you in anticipation. -- Regards Hester VIOLA IT Officer, Data Management Australian Bureau of Meteorology 700 Collins St, Melbourne, 3008 Email. h.viola at bom.gov.au From agillesp at VT.EDU Mon Dec 6 17:14:25 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 6 Dec 2004 20:14:25 -0500 Subject: Shapefile field problem Message-ID: It's a regular shapefile. I think I've mostly narrowed it down. It seems to me (though I may be completely off) that MapServer loads the first record of the DBF in order to get the field definitions. If the first record has a string field and the value is zero length it won't give me the field (though the field count is always correct). In addition, it won't give me any fields after that either. If, however, I make sure that field has some value (a dash, an "x", whatever) then the field definition will come in correctly. I still haven't narrowed down a problematic number field though. Mind you, this is all done in MapServer PHP v. 4.2.0. -Abe On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: > Abe Gillespie wrote: >> A good amount of fields aren't showing up in MapServer for me. I use >> the following PHP script to dump out all layers and their fields for >> debugging. Does MapServer have problems with certain data types or >> certain values in a row? >> > > Are you using a tiled shapefile layer or is this a regular shapefile > layer? > > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > From ed at TOPOZONE.COM Mon Dec 6 18:13:35 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 6 Dec 2004 21:13:35 -0500 Subject: Shapefile field problem Message-ID: Abe - Can you post the shapefile somewhere we can look at it? The field definitions for a shapefile (DBF) are stored in a separate header, describing each field; you can't get the field definitions from the first record. In fact, you can't read the first record properly until *after* you've figured out the field definitions. Are you creating this shapefile yourself? Could you be creating a defective file? Have you tried running DBFDUMP on it? - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Abe Gillespie Sent: Monday, December 06, 2004 8:14 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem It's a regular shapefile. I think I've mostly narrowed it down. It seems to me (though I may be completely off) that MapServer loads the first record of the DBF in order to get the field definitions. If the first record has a string field and the value is zero length it won't give me the field (though the field count is always correct). In addition, it won't give me any fields after that either. If, however, I make sure that field has some value (a dash, an "x", whatever) then the field definition will come in correctly. I still haven't narrowed down a problematic number field though. Mind you, this is all done in MapServer PHP v. 4.2.0. -Abe On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: > Abe Gillespie wrote: >> A good amount of fields aren't showing up in MapServer for me. I use >> the following PHP script to dump out all layers and their fields for >> debugging. Does MapServer have problems with certain data types or >> certain values in a row? >> > > Are you using a tiled shapefile layer or is this a regular shapefile > layer? > > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > From ken at SANDNARROWS.COM Mon Dec 6 20:11:33 2004 From: ken at SANDNARROWS.COM (Ken) Date: Mon, 6 Dec 2004 21:11:33 -0700 Subject: reprojecting map context documents In-Reply-To: Message-ID: Using php mapscript is it possible to reproject a map object that was created using loadMapContext? I am loading up a context document and displaying some of its layers into an existing map object. I go through the layers in the context document and allow the user to select only the ones they want. It loads them fine, but the projection of the layer from the context document is off. I have tried reprojecting (using setprojection) the entire context map object and the layer object, both without any luck. The only way I can get the layer to line up is if I change my existing map object's projection to match that of the context document. Thoughts? Ken From toddbirkey at YAHOO.COM Mon Dec 6 21:07:51 2004 From: toddbirkey at YAHOO.COM (Todd Birkenholtz) Date: Mon, 6 Dec 2004 21:07:51 -0800 Subject: Formula for converting pixels to long lat points In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FDD8@ptolemy.topozone.com> Message-ID: Thanks Ed I had had the Formula correct my gradeschool math teacher would be proud. I had a bad extent and image size. Thanks again for the List help. Todd Ed McNierney wrote: Todd - The first thing you should do is to ensure your geographic and image extents are proportional; otherwise MapServer will be forced to adjust your geographic extents and then you'll have to deduce what MapServer did to change them. You want to be sure that (MAXX - MINX) / WIDTH = (MAXY - MINY) / HEIGHT so the width and height of the ground area (in degrees) are proportional to the width and height of the image (in pixels). In the example you give, you want (-67 - (-125.3556)) / 449 = (49.5 - 10) / 349 (I'm guessing on the order of the width and height). That's not an equality, since it computes to: 0.129968 = 0.138968 You want to change either the extents or the image size. Once you've done that, you simply divide the width in degrees by the width in pixels to get "degrees per pixel" or DPP: that is, DPP = (MAXX - MINX) / WIDTH. Then the pixel at horizontal coordinate X will have an X-coordinate (longitude) of MINX + (X * DPP), and you do the same thing for Y. - 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 Todd Birkenholtz Sent: Monday, December 06, 2004 3:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Formula for converting pixels to long lat points Formula for converting pixels to long lat points After I create a static image using the EXTENT -125.3556 10 -67 49.5 Mapserver creates a image that is 449x349 pixels I would like to use a ismap to reference the x,y points on my image and then pass that information to a second web app that will convert the pixel X,Y to long, Lat points. I tried a couple of formulas I found in the list but I can not seam to get it to work. Thanks for your help. Todd Birkenholtz ________________________________ Do you Yahoo!? The all-new My Yahoo! - Get yours free! --------------------------------- Do you Yahoo!? The all-new My Yahoo! ? What will yours do? -------------- next part -------------- An HTML attachment was scrubbed... URL: From temiz at DEPREM.GOV.TR Mon Dec 6 23:11:06 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 7 Dec 2004 09:11:06 +0200 Subject: better programming language ? Message-ID: hello, In terms of speed and easy to use, which one is better programming language for mapscript application ? python or php ? 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 margottid at COMUNE.LUGO.RA.IT Tue Dec 7 01:24:33 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 7 Dec 2004 10:24:33 +0100 Subject: R: [UMN_MAPSERVER-USERS] Internal Server Error In-Reply-To: <008601c4dba1$5bd57570$9852b280@photigr3> Message-ID: The Mapfile is ok, in fact I'm able to show other portions of the map (with the "bad" layer activated), and even the entire map. But when I zoom to certain parts of the map (one of them is the extent I reported in the previous mail) I get the "Internal Server Error". Daniele -----Messaggio originale----- Da: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Christian Blumer Inviato: luned? 6 dicembre 2004 15.39 A: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] Internal Server Error I got the same error due to mistakes in the Mapfile. You should try to check it too. Especially check if the layer definition for the shapefile is correct. Christian ----- Original Message ----- From: Daniele Margotti To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Monday, December 06, 2004 1:35 PM Subject: [UMN_MAPSERVER-USERS] Internal Server Error Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ------------------------------------------------------------------------ ---- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From margottid at COMUNE.LUGO.RA.IT Tue Dec 7 02:32:47 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 7 Dec 2004 11:32:47 +0100 Subject: [UMN_MAPSERVER-USERS] Internal Server Error In-Reply-To: <001e01c4dba0$0c505ca0$6402a8c0@jebediah> Message-ID: Here is it: ------------------------------------------------------------------------ ---- LAYER #Elementi stradali NAME "Elementi_stradali" GROUP "A - Catasto delle strade" DATA "./cat_strade/road_elements.shp" TYPE line STATUS on CLASSITEM "ID_LINE" MAXSCALE 50000 MINSCALE 0 TRANSPARENCY 100 TRANSFORM true SYMBOLSCALE 2000 HEADER "./templates/nocsup_re_header.html" FOOTER "./templates/nocsup_re_footer.html" METADATA "Oggetto" "Elementi stradali" "Data creazione" "03/03/2004" gix_layername "Elementi_stradali" gix_layerfieldnames "LAYER|ID_DATASET|ID_LINE|SPLIT|CLASS|ID_EDGE|FROMP|TOP|SOURCE|UFFICIALE |CONVENZION|PROPRIETAR|GESTORE|AMMINISTRA|TECNICO|LUNGHEZZA|DIVISIONE|DI REZIONE|DENOMIN|PERCORSO|" gix_layerfieldalias "Layer|Id_dataset|Id_line|Split|Class|Id_edge|Fromp|Top|Source|Ufficiale |Convenzion|Proprietar|Gestore|Amministra|Tecnico|Lunghezza|Divisione|Di rezione|Denomin|Percorso|" wms_abstract "fiorea Elementi stradali ** Gix Generated MapFile" wms_title "Elementi stradali" wms_srs "NONE" END CLASS NAME 'Road elements' TEMPLATE "./templates/nocsup_re_query.html" STYLE COLOR 0 0 0 SYMBOL "punto" SIZE 4 ANTIALIAS TRUE END STYLE COLOR 0 0 255 SYMBOL "punto" SIZE 2 ANTIALIAS TRUE END END #CLASS END # LAYER ------------------------------------------------------------------------ ---- As I told in another message, I can browse the map (and this layer) until I remain out of certain extents that give me error. Daniele -----Messaggio originale----- Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] Inviato: luned? 6 dicembre 2004 15.30 A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: RE : [UMN_MAPSERVER-USERS] Internal Server Error Most of the time, internal server error is caused by a syntax error in the mapfile. Can you post the Elementi_stradali layer section of your mapfile? Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 6 d?cembre 2004 07:35 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Internal Server Error Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ------------------------------------------------------------------------ ---- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From saintsjd at YAHOO.COM Tue Dec 7 05:41:30 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 7 Dec 2004 05:41:30 -0800 Subject: moving to shared hosting In-Reply-To: <006101c4dc48$18159480$041410ac@comune.lugo.ra.it> Message-ID: Has anyone expirience with moving a mapserver app with php mapscript to a shared hosting environment? I have been learning mapserver on a develiopment server using debian GIS project's packages. It includes phpmapscript. On my development server I have root access. On the live server I have root access to my home space only. PHP is globally installed. what problems might i face? any advice from those you attempted this in the past? Thanks Jon From sobomsawin at KASSINI.COM Tue Dec 7 06:32:20 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Tue, 7 Dec 2004 09:32:20 -0500 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error In-Reply-To: <006101c4dc48$18159480$041410ac@comune.lugo.ra.it> Message-ID: Are you sure of the two styles definition in your layer? Try to remove your MAXSCALE and load the entire map. If this layer is actually the problem, you should have an internal server error. Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 7 d?cembre 2004 05:33 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error Here is it: ---------------------------------------------------------------------------- LAYER #Elementi stradali NAME "Elementi_stradali" GROUP "A - Catasto delle strade" DATA "./cat_strade/road_elements.shp" TYPE line STATUS on CLASSITEM "ID_LINE" MAXSCALE 50000 MINSCALE 0 TRANSPARENCY 100 TRANSFORM true SYMBOLSCALE 2000 HEADER "./templates/nocsup_re_header.html" FOOTER "./templates/nocsup_re_footer.html" METADATA "Oggetto" "Elementi stradali" "Data creazione" "03/03/2004" gix_layername "Elementi_stradali" gix_layerfieldnames "LAYER|ID_DATASET|ID_LINE|SPLIT|CLASS|ID_EDGE|FROMP|TOP|SOURCE|UFFICIALE|CON VENZION|PROPRIETAR|GESTORE|AMMINISTRA|TECNICO|LUNGHEZZA|DIVISIONE|DIREZIONE| DENOMIN|PERCORSO|" gix_layerfieldalias "Layer|Id_dataset|Id_line|Split|Class|Id_edge|Fromp|Top|Source|Ufficiale|Con venzion|Proprietar|Gestore|Amministra|Tecnico|Lunghezza|Divisione|Direzione| Denomin|Percorso|" wms_abstract "fiorea Elementi stradali ** Gix Generated MapFile" wms_title "Elementi stradali" wms_srs "NONE" END CLASS NAME 'Road elements' TEMPLATE "./templates/nocsup_re_query.html" STYLE COLOR 0 0 0 SYMBOL "punto" SIZE 4 ANTIALIAS TRUE END STYLE COLOR 0 0 255 SYMBOL "punto" SIZE 2 ANTIALIAS TRUE END END #CLASS END # LAYER ---------------------------------------------------------------------------- As I told in another message, I can browse the map (and this layer) until I remain out of certain extents that give me error. Daniele -----Messaggio originale----- Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] Inviato: luned? 6 dicembre 2004 15.30 A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: RE : [UMN_MAPSERVER-USERS] Internal Server Error Most of the time, internal server error is caused by a syntax error in the mapfile. Can you post the Elementi_stradali layer section of your mapfile? Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 6 d?cembre 2004 07:35 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Internal Server Error Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ---------------------------------------------------------------------------- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From asimpson at I-55.COM Tue Dec 7 06:39:44 2004 From: asimpson at I-55.COM (Simpson) Date: Tue, 7 Dec 2004 08:39:44 -0600 Subject: Render Tiled JP2s with MRSID SDK enabled GDAL Message-ID: I have an installation of MapServer 4.4.0 using GDAL 1.2.5 on Linux 2.4.20-28.8smp. The GDAL is compiled with Geo_DSDK-4.0.9.713. I have a tile index layer of jp2 files that am having trouble rendering at certain scales. At a small scale and large scale, the image renders ok, but in between I get: mapserv: ../compressed/codestream.cpp:3944: kdu_tile kdu_codestream::open_tile(kdu_coords): Assertion `(tile_idx.x >= 0) && (tile_idx.x < state->num_tiles.x) && (tile_idx.y >= 0) && (tile_idx.y < state->num_tiles.y)' failed. I suspect an issue with the overviews in the jp2s: Band 1 Block=6269x64 Type=Byte, ColorInterp=Red Overviews: 3135x3508, 1567x1754, 784x877, 392x439, 196x219, 98x110, 49x55, 24x27, 12x14, 6x7, 3x3 Has anyone had a similar issue or have any suggestions? Thanks for any help, Drew. From eric at GOMOOS.ORG Tue Dec 7 06:52:44 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Tue, 7 Dec 2004 09:52:44 -0500 Subject: WMS/WFS using PHP MapScript In-Reply-To: Message-ID: On Mon, 2004-12-06 at 19:28, Hester Jane Viola wrote: > Hi, > > We have developed an internal web mapping tool within the Australian Bureau > of Meteorology using standard CGI MapServer to view weather data. > Our newest undertaking though is using PHP Mapscript to provide climate data > (stored in PostgreSQL/PostGIS) to a Water Portal via a WFS, based on a > dynamic request sent by that portal. > The request sent by the portal, is used to generate a layer in a PHP > mapscript file, by adding the data via an SQL query, (there are no layers > defined in the map file in use) ie. > > section of the php file: > ... > $rain_layer->set("connectiontype",MS_POSTGIS); > $rain_layer->set("connection","$rain_connection"); > $rain_query="the_geom from (SELECT g_stations.the_geom as the_geom, > onedrain.prcp as prcp, > g_stations.name as name, > g_stations.oid as oid > FROM g_stations, onedrain > $date_part > $loc_part > AND onedrain.stn_num = g_stations.stn_num) > as foo USING UNIQUE oid USING SRID=-1"; > > $rain_layer->set("data","$rain_query"); > ... > where $date_part and $loc_part include the input arguments sent in the > portal request. > > Now that I have explained the set up, I would like to know how to implement > a WFS to this dynamically created rain_layer. I have experimented with using > $rain_layer->executeWFSGetfeature() but this only returns an empty string. > I am also interested in how a WMS is enabled using PHP mapscript, if the > layers are not defined in the .map file. > > I hope that someone can provide some information. My guess is that executeWFSGetfeature() fails because your layer is not a WFS layer but a POSTGIS layer. I think it would quite difficult to duplicate Mapserver's WFS handling utilizing PHP and PHP Mapscript. I would suggest adding you POSTGIS layer to your map file which would make it very easy to serve as either a WMS or WFS layer. The dynamic part of your SQL query could go into a FILTER section. E.g. FILTER "date_field = %date_part% and location_field = %loc_part and onedrain.stn_num = g_stations.stn_num" The WFS requests then just need to add: &date_part=XXXXX&loc_part=NNNNN See the section on map file variable substitution in http://mapserver.gis.umn.edu/doc42/mapfile-reference.html Eric From bigfoot at MAIN-TASK.COM Tue Dec 7 06:58:55 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Tue, 7 Dec 2004 09:58:55 -0500 Subject: ENC: using mapserver with php 5 as an apache dso In-Reply-To: <000301c4dbde$e06318f0$1364a8c0@parapente> Message-ID: Murilo Lacerda Yoshida wrote: > Hi all, > > I am planning to update mapserver and php on my web server, and I was >wondering if someone did this earlier and experienced some problems. > I guess that with mapserver I won't have many (any) problems, because >you have said that you have tested it a lot. But and what about php and >oracle for example, or simply php... Did anyone had any problems? > Thanks, > Murilo > > > > I have experienced no problems at all. I'm using phpmapscript with php5 compiled as DSO running in Fedora. Best regards, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From bigfoot at MAIN-TASK.COM Tue Dec 7 07:06:53 2004 From: bigfoot at MAIN-TASK.COM (=?ISO-8859-1?Q?Vladimir_Guzm=E1n?=) Date: Tue, 7 Dec 2004 10:06:53 -0500 Subject: moving to shared hosting In-Reply-To: <20041207134130.54835.qmail@web53902.mail.yahoo.com> Message-ID: Jon Saints wrote: >Has anyone expirience with moving a mapserver app with >php mapscript to a shared hosting environment? > >I have been learning mapserver on a develiopment >server using debian GIS project's packages. It >includes phpmapscript. On my development server I have >root access. On the live server I have root access to >my home space only. PHP is globally installed. > >what problems might i face? any advice from those you >attempted this in the past? > >Thanks >Jon > > > > I had a succesful experience with it, but it was necessary to compile apache and php and put the apache to run in another port (8080), because apache and php must be compiled in certain non-standard way. Besides that, it was a little complicated because it was necessary to compile several packages in a non-standard path (--with-prefix=/home/me), and in some cases I needed to modify the Makefile files in order to make the compiler link with the correct library. If you need the detailed commands I used, please send me an email and I will send it to you. Best regards, -- Vladimir Ilich Guzm?n R. ------------------------ http://maintask.com From margottid at COMUNE.LUGO.RA.IT Tue Dec 7 07:08:52 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 7 Dec 2004 16:08:52 +0100 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error In-Reply-To: <000a01c4dc69$9120cfe0$6402a8c0@jebediah> Message-ID: I'm sure of the two styles definition, because I want a blue line with a black border (see http://www.mapmedia.de/dokumente/umn_signaturen_howto/). I also removed MAXSCALE, and I can see the entire map (but this appened also before removing MAXSCALE). When I zoom to certain portions of the map, I have the internal server error. So, I think that the problem is the shapefile, but what tools can I use for being sure of it? (BTW, the shapefile is managed by a colleague, who uses ArcView and, for him, all seems good). Daniele -----Messaggio originale----- Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] Inviato: marted? 7 dicembre 2004 15.32 A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error Are you sure of the two styles definition in your layer? Try to remove your MAXSCALE and load the entire map. If this layer is actually the problem, you should have an internal server error. Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 7 d?cembre 2004 05:33 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error Here is it: ------------------------------------------------------------------------ ---- LAYER #Elementi stradali NAME "Elementi_stradali" GROUP "A - Catasto delle strade" DATA "./cat_strade/road_elements.shp" TYPE line STATUS on CLASSITEM "ID_LINE" MAXSCALE 50000 MINSCALE 0 TRANSPARENCY 100 TRANSFORM true SYMBOLSCALE 2000 HEADER "./templates/nocsup_re_header.html" FOOTER "./templates/nocsup_re_footer.html" METADATA "Oggetto" "Elementi stradali" "Data creazione" "03/03/2004" gix_layername "Elementi_stradali" gix_layerfieldnames "LAYER|ID_DATASET|ID_LINE|SPLIT|CLASS|ID_EDGE|FROMP|TOP|SOURCE|UFFICIALE |CONVENZION|PROPRIETAR|GESTORE|AMMINISTRA|TECNICO|LUNGHEZZA|DIVISIONE|DI REZIONE|DENOMIN|PERCORSO|" gix_layerfieldalias "Layer|Id_dataset|Id_line|Split|Class|Id_edge|Fromp|Top|Source|Ufficiale |Convenzion|Proprietar|Gestore|Amministra|Tecnico|Lunghezza|Divisione|Di rezione|Denomin|Percorso|" wms_abstract "fiorea Elementi stradali ** Gix Generated MapFile" wms_title "Elementi stradali" wms_srs "NONE" END CLASS NAME 'Road elements' TEMPLATE "./templates/nocsup_re_query.html" STYLE COLOR 0 0 0 SYMBOL "punto" SIZE 4 ANTIALIAS TRUE END STYLE COLOR 0 0 255 SYMBOL "punto" SIZE 2 ANTIALIAS TRUE END END #CLASS END # LAYER ------------------------------------------------------------------------ ---- As I told in another message, I can browse the map (and this layer) until I remain out of certain extents that give me error. Daniele -----Messaggio originale----- Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] Inviato: luned? 6 dicembre 2004 15.30 A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: RE : [UMN_MAPSERVER-USERS] Internal Server Error Most of the time, internal server error is caused by a syntax error in the mapfile. Can you post the Elementi_stradali layer section of your mapfile? Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 6 d?cembre 2004 07:35 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Internal Server Error Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ------------------------------------------------------------------------ ---- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ------------------------------------------------------------------------ ---- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From unicoletti at PROMETEO.IT Tue Dec 7 07:29:12 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Tue, 7 Dec 2004 16:29:12 +0100 Subject: TrueType font support in scalebar Message-ID: I have been experimenting with pdf support lately and have found out that I am not able to output a map with an embedded scalebar because scalebars don't have support for truetype fonts (only bitmap). Is there any plan to support true type fonts in scalebars in the (near) future? Please answer, this is very important to me. Thanks in advance, umberto -- Umberto Nicoletti Prometeo SRL From Frank.Broniewski at MNHA.ETAT.LU Tue Dec 7 07:33:32 2004 From: Frank.Broniewski at MNHA.ETAT.LU (Frank Broniewski) Date: Tue, 7 Dec 2004 16:33:32 +0100 Subject: Supporting packages Message-ID: Hello all The download page http://mapserver.gis.umn.edu/dload.html mentions supporting packages. In order to use features from mapserver like truetype symbols, do I have to download the packages and install them? My mapserver configuration mentions "support=freetype", so I'm a little confused wether I have to install freetype or not. MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I'm using the ms4w package http://www.maptools.org/ms4w/index.phtml from maptools.org with windows xp. For answering in advance thank you very much :) Frank Broniewski Mus?e National d'Histoire et d'Art Section Pr?histoire / Projet EPC From mandhare at STATE.PA.US Tue Dec 7 07:49:21 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Tue, 7 Dec 2004 09:49:21 -0600 Subject: jBox.boxoff() Message-ID: Hi! I'm working on MapServer 4.2 and using the jBox applet for drawing the zoom rectangle. And it works fine for the zoom in. But when i tryed to fine tune it with the boxoff method of jBox, it doesn't work. If i write a code into javascript function like: document.frmtroutmap.jBox.boxoff(); and then call this function onclick event of Zoom out radio button, i get the error as: document.frmtroutmap.jBox is null or not an object Also, while writing the javascript code(i'm using front page for editing html code), i didn't get the list of jBox methods in the dropdown to select. And if i write that line of code, i get above error. Any sugeswstions whats goin wrong with it? Thanks, Manjiri Andhare From sobomsawin at KASSINI.COM Tue Dec 7 07:51:41 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Tue, 7 Dec 2004 10:51:41 -0500 Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error In-Reply-To: <008501c4dc6e$a9dd4360$041410ac@comune.lugo.ra.it> Message-ID: Have you tried a shp2img ?m yourmapfile.map ?i savedimage.png ?t ?l yourlayername ? What is saying your Apache error log (there can be more than one line over or under Premature end of script header)? What is saying your cgi-bin/mapserv ?v? You can try QGIS which is a viewer for shapefiles to check if everything is ok in your layer: HYPERLINK "http://www.qgis.org/"http://www.qgis.org/ Moreover, can you put your shapefile somewhere we can have access and see what's wrong? Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 7 d?cembre 2004 10:09 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error I'm sure of the two styles definition, because I want a blue line with a black border (see HYPERLINK "http://www.mapmedia.de/dokumente/umn_signaturen_howto/"http://www.mapmedia. de/dokumente/umn_signaturen_howto/). I also removed MAXSCALE, and I can see the entire map (but this appened also before removing MAXSCALE). When I zoom to certain portions of the map, I have the internal server error. So, I think that the problem is the shapefile, but what tools can I use for being sure of it? (BTW, the shapefile is managed by a colleague, who uses ArcView and, for him, all seems good). Daniele -----Messaggio originale----- Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] Inviato: marted? 7 dicembre 2004 15.32 A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: RE : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error Are you sure of the two styles definition in your layer? Try to remove your MAXSCALE and load the entire map. If this layer is actually the problem, you should have an internal server error. Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 7 d?cembre 2004 05:33 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] Internal Server Error Here is it: ---------------------------------------------------------------------------- LAYER #Elementi stradali NAME "Elementi_stradali" GROUP "A - Catasto delle strade" DATA "./cat_strade/road_elements.shp" TYPE line STATUS on CLASSITEM "ID_LINE" MAXSCALE 50000 MINSCALE 0 TRANSPARENCY 100 TRANSFORM true SYMBOLSCALE 2000 HEADER "./templates/nocsup_re_header.html" FOOTER "./templates/nocsup_re_footer.html" METADATA "Oggetto" "Elementi stradali" "Data creazione" "03/03/2004" gix_layername "Elementi_stradali" gix_layerfieldnames "LAYER|ID_DATASET|ID_LINE|SPLIT|CLASS|ID_EDGE|FROMP|TOP|SOURCE|UFFICIALE|CON VENZION|PROPRIETAR|GESTORE|AMMINISTRA|TECNICO|LUNGHEZZA|DIVISIONE|DIREZIONE| DENOMIN|PERCORSO|" gix_layerfieldalias "Layer|Id_dataset|Id_line|Split|Class|Id_edge|Fromp|Top|Source|Ufficiale|Con venzion|Proprietar|Gestore|Amministra|Tecnico|Lunghezza|Divisione|Direzione| Denomin|Percorso|" wms_abstract "fiorea Elementi stradali ** Gix Generated MapFile" wms_title "Elementi stradali" wms_srs "NONE" END CLASS NAME 'Road elements' TEMPLATE "./templates/nocsup_re_query.html" STYLE COLOR 0 0 0 SYMBOL "punto" SIZE 4 ANTIALIAS TRUE END STYLE COLOR 0 0 255 SYMBOL "punto" SIZE 2 ANTIALIAS TRUE END END #CLASS END # LAYER ---------------------------------------------------------------------------- As I told in another message, I can browse the map (and this layer) until I remain out of certain extents that give me error. Daniele -----Messaggio originale----- Da: Skweda O'Bomsawin [mailto:sobomsawin at kassini.com] Inviato: luned? 6 dicembre 2004 15.30 A: 'Daniele Margotti'; MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: RE : [UMN_MAPSERVER-USERS] Internal Server Error Most of the time, internal server error is caused by a syntax error in the mapfile. Can you post the Elementi_stradali layer section of your mapfile? Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Daniele Margotti Envoy? : 6 d?cembre 2004 07:35 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : [UMN_MAPSERVER-USERS] Internal Server Error Hi list, I use CGI MapServer 4.2.3 on a RH9 with Apache 2.0.50: All works, but I have a map that returns an "Internal Server Error" when I try to zoom and show a certain extent with a specific layer. I think the problem is due to the shapefile (or a part of it), but... how can I be sure of it? The browser only show the "Internal Server Error" page. The Apache error log says: "[Mon Dec 06 07:13:04 2004] [error] [client 172.16.20.4] Premature end of script headers: mapserv" I compiled MapServer with --enable-debug, set "DEBUG TRUE" in the map section of the mapfile, and tried to use shp2img with these results: ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 [Mon Dec 6 07:24:37 2004].748031 msDrawMap(): Layer 0 (Confini_comunali), 0.040s [Mon Dec 6 07:24:41 2004].893212 msDrawMap(): Layer 1 (Base_cartografica), 4.145s [Mon Dec 6 07:24:41 2004].908452 msDrawMap(): Layer 2 (Edifici), 0.015s [Mon Dec 6 07:24:41 2004].918383 msDrawMap(): Layer 3 (Aree_traffico), 0.010s Segmentation fault ---------------------------------------------------------------------------- [root at redhat cs]# /dati/geobase/bin/shp2img -m cs.map -o /dati/daniele.png -e 2491361 4510665 2492415 4511455 -l Elementi_stradali Segmentation fault ---------------------------------------------------------------------------- When shp2img processes the "bad" layer ('Elementi_stradali'), it exits with a 'Segmentation fault' and without a more explicit error message. I launched the following command (where "road_elements.shp" is the probably bad shapefile): [root at redhat cat_strade]# ogrinfo -al road_elements.shp -spat 2491361 4510665 2492415 451145 It returns a 85 Kb output with apparently no detected errors. How can I understand where the error lies? Is there a more powerful debug tool? Thank you, Daniele --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.804 / Virus Database: 546 - Release Date: 2004-11-30 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pspencer at DMSOLUTIONS.CA Tue Dec 7 07:57:21 2004 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Tue, 7 Dec 2004 10:57:21 -0500 Subject: chameleon config In-Reply-To: <20041203215255.11744.qmail@web14924.mail.yahoo.com> Message-ID: Nasir, there is an installation guide in the docs/html folder (of the cvs version and maybe beta 3). Chameleon uses 'chameleon.xml' as its configuration file. You should copy 'chameleon.xml-dist' to 'chameleon.xml' and edit it as described in the file (or in the installation guide). You may want to consider using MS4W (http://www.maptools.org/ms4w) as everything comes pre-configured ... Cheers, Paul nasir mahmood wrote: > Hi, > > I am trying to install chameleon. There is no readme.txt or > configuration help with it. I tried to configure by modifying cwc2 > xml-dist file but when I run demo.php, i get following errors, > > *Warning*: copy(/hiberfil.sys): failed to open stream: Permission denied > in *C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php* > on line *288* > > *Warning*: copy(/pagefile.sys): failed to open stream: Permission denied > in *C:\Program Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php* > on line *288* > > *Warning*: dl(): Unable to load dynamic library 'c:\php4\extensions\' - > The specified module could not be found. in *C:\Program Files\Apache > Group\Apache2\htdocs\cwc2\htdocs\cwc2.php* on line *598* > > *Fatal error*: Call to a member function on a non-object in *C:\Program > Files\Apache Group\Apache2\htdocs\cwc2\htdocs\cwc2.php* on line *626* > ** > *How to overcome this problem by making configuration correct. Can > someone help me?* > > Regards, > *Nasir* > > ------------------------------------------------------------------------ > Do you Yahoo!? > The all-new My Yahoo! ? Get yours free! -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From ealpert at DIGITALGLOBE.COM Tue Dec 7 07:59:59 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Dec 2004 08:59:59 -0700 Subject: moving to shared hosting Message-ID: Make sure you read the fine print on you hosting agreement before signing up. MS can eat up your monthly transfer limits if you are not careful. Also make sure your allowed to run/build your environment. Some hosting agreements don't allow you to run your own database for example. Check the versions of tools available to you too. You don't want to find out that the wrong version of compiler is available or that SWIG is not installed for example. Most likely you wont have access to an installation management either (apt/rpm) so you'll need to build all your dependencies rather than rely on precompiled binaries. Good luck, -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jon Saints Sent: Tuesday, December 07, 2004 6:42 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] moving to shared hosting Has anyone expirience with moving a mapserver app with php mapscript to a shared hosting environment? I have been learning mapserver on a develiopment server using debian GIS project's packages. It includes phpmapscript. On my development server I have root access. On the live server I have root access to my home space only. PHP is globally installed. what problems might i face? any advice from those you attempted this in the past? Thanks Jon From agillesp at VT.EDU Tue Dec 7 08:27:05 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 7 Dec 2004 11:27:05 -0500 Subject: Shapefile field problem In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FDE4@ptolemy.topozone.com> Message-ID: Attached is the problematic shapefile. I don't create it, I get it from a customer. However, if the need arises, I should be able to get detailed information on how the shapefile comes to be. Using the following PHP script should reveal the problem. I have not tried DBFDUMP; I don't know where to get it. for ($i = 0; $i < $map->numlayers; $i++) { $l = $map->getLayer($i); putBrLine($l->name.", type: ".$l->type); if ($l->data != null) // Shape files with data. { $l->open(); $s = $l->getShape(-1, 0); $vals = $s->values; putBrLine("field count: ".count($vals)); while ($fld = current($vals)) { putBrLine("  ".key($vals)); next($vals); } $s->free(); $l->close(); } } Thanks. -Abe -------------- next part -------------- A non-text attachment was scrubbed... Name: field_issues.zip Type: application/zip Size: 1156 bytes Desc: not available URL: -------------- next part -------------- On Dec 6, 2004, at 9:13 PM, Ed McNierney wrote: > Abe - > > Can you post the shapefile somewhere we can look at it? > > The field definitions for a shapefile (DBF) are stored in a separate > header, describing each field; you can't get the field definitions from > the first record. In fact, you can't read the first record properly > until *after* you've figured out the field definitions. > > Are you creating this shapefile yourself? Could you be creating a > defective file? Have you tried running DBFDUMP on it? > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 978 251-4242 Fax: +1 978 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Abe Gillespie > Sent: Monday, December 06, 2004 8:14 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem > > It's a regular shapefile. I think I've mostly narrowed it down. It > seems to me (though I may be completely off) that MapServer loads the > first record of the DBF in order to get the field definitions. If the > first record has a string field and the value is zero length it won't > give me the field (though the field count is always correct). In > addition, it won't give me any fields after that either. If, however, > I > make sure that field has some value (a dash, an "x", whatever) then the > field definition will come in correctly. I still haven't narrowed down > a problematic number field though. Mind you, this is all done in > MapServer PHP v. 4.2.0. > > -Abe > > On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: > >> Abe Gillespie wrote: >>> A good amount of fields aren't showing up in MapServer for me. I use > >>> the following PHP script to dump out all layers and their fields for >>> debugging. Does MapServer have problems with certain data types or >>> certain values in a row? >>> >> >> Are you using a tiled shapefile layer or is this a regular shapefile >> layer? >> >> -- >> ------------------------------------------------------------ >> Daniel Morissette dmorissette at dmsolutions.ca >> DM Solutions Group http://www.dmsolutions.ca/ >> ------------------------------------------------------------ >> > From jmckenna at DMSOLUTIONS.CA Tue Dec 7 08:17:24 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 7 Dec 2004 11:17:24 -0500 Subject: Shapefile field problem In-Reply-To: Message-ID: earlier in the thread i suggested dbfdump: Jeff McKenna wrote: > Frank would know way more about this than me...but are any of the > Shapelib utilities (http://shapelib.maptools.org/) useful for you? > (shpdump, dbfdump) > > jeff Abe Gillespie wrote: > Attached is the problematic shapefile. I don't create it, I get it > from a customer. However, if the need arises, I should be able to get > detailed information on how the shapefile comes to be. Using the > following PHP script should reveal the problem. I have not tried > DBFDUMP; I don't know where to get it. > > for ($i = 0; $i < $map->numlayers; $i++) > { > $l = $map->getLayer($i); > putBrLine($l->name.", type: ".$l->type); > if ($l->data != null) // Shape files with data. > { > $l->open(); > $s = $l->getShape(-1, 0); > $vals = $s->values; > putBrLine("field count: ".count($vals)); > while ($fld = current($vals)) > { > > putBrLine("  ".key($vals)); > next($vals); > } > $s->free(); > $l->close(); > } > } > > Thanks. > -Abe > > > > On Dec 6, 2004, at 9:13 PM, Ed McNierney wrote: > >> Abe - >> >> Can you post the shapefile somewhere we can look at it? >> >> The field definitions for a shapefile (DBF) are stored in a separate >> header, describing each field; you can't get the field definitions from >> the first record. In fact, you can't read the first record properly >> until *after* you've figured out the field definitions. >> >> Are you creating this shapefile yourself? Could you be creating a >> defective file? Have you tried running DBFDUMP on it? >> >> - Ed >> >> Ed McNierney >> President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> Phone: +1 978 251-4242 Fax: +1 978 251-1396 >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On >> Behalf Of Abe Gillespie >> Sent: Monday, December 06, 2004 8:14 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >> >> It's a regular shapefile. I think I've mostly narrowed it down. It >> seems to me (though I may be completely off) that MapServer loads the >> first record of the DBF in order to get the field definitions. If the >> first record has a string field and the value is zero length it won't >> give me the field (though the field count is always correct). In >> addition, it won't give me any fields after that either. If, however, >> I >> make sure that field has some value (a dash, an "x", whatever) then the >> field definition will come in correctly. I still haven't narrowed down >> a problematic number field though. Mind you, this is all done in >> MapServer PHP v. 4.2.0. >> >> -Abe >> >> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: >> >>> Abe Gillespie wrote: >>> >>>> A good amount of fields aren't showing up in MapServer for me. I use >> >> >>>> the following PHP script to dump out all layers and their fields for >>>> debugging. Does MapServer have problems with certain data types or >>>> certain values in a row? >>>> >>> >>> Are you using a tiled shapefile layer or is this a regular shapefile >>> layer? >>> >>> -- >>> ------------------------------------------------------------ >>> Daniel Morissette dmorissette at dmsolutions.ca >>> DM Solutions Group http://www.dmsolutions.ca/ >>> ------------------------------------------------------------ >>> >> -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From ARyan at CO.LINN.OR.US Tue Dec 7 08:27:30 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 7 Dec 2004 08:27:30 -0800 Subject: Shapefile field problem Message-ID: Abe, Here's a routine I use to get the header information (field info) from a dbf file. // ========== iDbf_fields ============== // $f is a dbf file path, returns an array of field arrays function iDbf_fields($f){ $h = fopen($f,"rb"); $a = unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/srecsize",fread($h,12)); fread($h,20); //skip some reserved space for($i=0;$i<($a["headsize"]-33)/32;$i++){ $fa = array(); $fname = trim(fread($h,11)); $fa["type"] = fread($h,1); fread($h,4); $fa = array_merge($fa,unpack("Clen/Cpre",fread($h,2))); fread($h,14); $flds[$fname] = $fa; } fclose($h); return $flds; } When I generate a result table I'll go through the array like this: ($so is the shape Object) foreach($flds as $fname => $fA){ $val = $so->values[$fname]; if ($val==null)$val=" "; $val = str_replace(" ","  ",$val); if ($fA["type"]=="D"){$val = substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} echo "$val";} } Cheers to all, Adam > -----Original Message----- > From: Abe Gillespie [mailto:agillesp at VT.EDU] > Sent: Monday, December 06, 2004 5:14 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem > > > It's a regular shapefile. I think I've mostly narrowed it > down. It seems to me (though I may be completely off) that > MapServer loads the first record of the DBF in order to get > the field definitions. If the first record has a string > field and the value is zero length it won't give me the field > (though the field count is always correct). In addition, it > won't give me any fields after that either. If, however, I > make sure that field has some value (a dash, an "x", > whatever) then the field definition will come in correctly. > I still haven't narrowed down a problematic number field > though. Mind you, this is all done in MapServer PHP v. 4.2.0. > > -Abe > > On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: > > > Abe Gillespie wrote: > >> A good amount of fields aren't showing up in MapServer for > me. I use > >> the following PHP script to dump out all layers and their > fields for > >> debugging. Does MapServer have problems with certain data > types or > >> certain values in a row? > >> > > > > Are you using a tiled shapefile layer or is this a regular > shapefile > > layer? > > > > -- > > ------------------------------------------------------------ > > Daniel Morissette dmorissette at dmsolutions.ca > > DM Solutions Group http://www.dmsolutions.ca/ > > ------------------------------------------------------------ > > > From agillesp at VT.EDU Tue Dec 7 08:50:03 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 7 Dec 2004 11:50:03 -0500 Subject: Shapefile field problem In-Reply-To: <41B5D794.4030205@dmsolutions.ca> Message-ID: Sorry, somehow I missed this. I just tried it though and it seems to work fine; the first record contains the field names with all the other records following. Albeit with a lot of (NULL)'s. :) -Abe On Dec 7, 2004, at 11:17 AM, Jeff McKenna wrote: > earlier in the thread i suggested dbfdump: > > Jeff McKenna wrote: > > Frank would know way more about this than me...but are any of the > > Shapelib utilities (http://shapelib.maptools.org/) useful for you? > > (shpdump, dbfdump) > > > > jeff > > > > > > Abe Gillespie wrote: >> Attached is the problematic shapefile. I don't create it, I get it >> from a customer. However, if the need arises, I should be able to get >> detailed information on how the shapefile comes to be. Using the >> following PHP script should reveal the problem. I have not tried >> DBFDUMP; I don't know where to get it. >> >> for ($i = 0; $i < $map->numlayers; $i++) >> { >> $l = $map->getLayer($i); >> putBrLine($l->name.", type: ".$l->type); >> if ($l->data != null) // Shape files with >> data. >> { >> $l->open(); >> $s = $l->getShape(-1, 0); >> $vals = $s->values; >> putBrLine("field count: >> ".count($vals)); >> while ($fld = current($vals)) >> { >> >> putBrLine("  ".key($vals)); >> next($vals); >> } >> $s->free(); >> $l->close(); >> } >> } >> >> Thanks. >> -Abe >> >> >> >> On Dec 6, 2004, at 9:13 PM, Ed McNierney wrote: >> >>> Abe - >>> >>> Can you post the shapefile somewhere we can look at it? >>> >>> The field definitions for a shapefile (DBF) are stored in a separate >>> header, describing each field; you can't get the field definitions >>> from >>> the first record. In fact, you can't read the first record properly >>> until *after* you've figured out the field definitions. >>> >>> Are you creating this shapefile yourself? Could you be creating a >>> defective file? Have you tried running DBFDUMP on it? >>> >>> - Ed >>> >>> Ed McNierney >>> President and Chief Mapmaker >>> TopoZone.com / Maps a la carte, Inc. >>> 73 Princeton Street, Suite 305 >>> North Chelmsford, MA 01863 >>> Phone: +1 978 251-4242 Fax: +1 978 251-1396 >>> >>> -----Original Message----- >>> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>> On >>> Behalf Of Abe Gillespie >>> Sent: Monday, December 06, 2004 8:14 PM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >>> >>> It's a regular shapefile. I think I've mostly narrowed it down. It >>> seems to me (though I may be completely off) that MapServer loads the >>> first record of the DBF in order to get the field definitions. If >>> the >>> first record has a string field and the value is zero length it won't >>> give me the field (though the field count is always correct). In >>> addition, it won't give me any fields after that either. If, >>> however, >>> I >>> make sure that field has some value (a dash, an "x", whatever) then >>> the >>> field definition will come in correctly. I still haven't narrowed >>> down >>> a problematic number field though. Mind you, this is all done in >>> MapServer PHP v. 4.2.0. >>> >>> -Abe >>> >>> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: >>> >>>> Abe Gillespie wrote: >>>> >>>>> A good amount of fields aren't showing up in MapServer for me. I >>>>> use >>> >>> >>>>> the following PHP script to dump out all layers and their fields >>>>> for >>>>> debugging. Does MapServer have problems with certain data types or >>>>> certain values in a row? >>>>> >>>> >>>> Are you using a tiled shapefile layer or is this a regular shapefile >>>> layer? >>>> >>>> -- >>>> ------------------------------------------------------------ >>>> Daniel Morissette dmorissette at dmsolutions.ca >>>> DM Solutions Group http://www.dmsolutions.ca/ >>>> ------------------------------------------------------------ >>>> >>> > > > -- > Jeff McKenna > GIS Specialist > DM Solutions Group Inc. > http://www.dmsolutions.ca > From agillesp at VT.EDU Tue Dec 7 08:54:43 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 7 Dec 2004 11:54:43 -0500 Subject: Shapefile field problem In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A8618D8D@linnms.co.linn.or.us> Message-ID: I do appreciate the help, but I'm not looking for an "external to MapServer" way of getting access to my DBF field values. I just use my PHP script to *reveal* problematic shapefile fields. When there is a problem it's unusable to MapServer! I.e.: I can't use the field for labelling. -Abe On Dec 7, 2004, at 11:27 AM, Ryan, Adam wrote: > Abe, > > Here's a routine I use to get the header information (field info) from > a dbf > file. > > // ========== iDbf_fields ============== > // $f is a dbf file path, returns an array of field arrays > function iDbf_fields($f){ > $h = fopen($f,"rb"); > $a = > unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/ > srecsize",fread($h,12)); > fread($h,20); //skip some reserved space > for($i=0;$i<($a["headsize"]-33)/32;$i++){ > $fa = array(); > $fname = trim(fread($h,11)); > $fa["type"] = fread($h,1); > fread($h,4); > $fa = array_merge($fa,unpack("Clen/Cpre",fread($h,2))); > fread($h,14); > $flds[$fname] = $fa; > } > fclose($h); > return $flds; > } > > When I generate a result table I'll go through the array like this: > ($so is > the shape Object) > > foreach($flds as $fname => $fA){ > $val = $so->values[$fname]; > if ($val==null)$val=" "; > $val = str_replace(" "," >  ",$val); > if ($fA["type"]=="D"){$val = > substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} > echo "$val";} > } > > > Cheers to all, > > Adam > >> -----Original Message----- >> From: Abe Gillespie [mailto:agillesp at VT.EDU] >> Sent: Monday, December 06, 2004 5:14 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >> >> >> It's a regular shapefile. I think I've mostly narrowed it >> down. It seems to me (though I may be completely off) that >> MapServer loads the first record of the DBF in order to get >> the field definitions. If the first record has a string >> field and the value is zero length it won't give me the field >> (though the field count is always correct). In addition, it >> won't give me any fields after that either. If, however, I >> make sure that field has some value (a dash, an "x", >> whatever) then the field definition will come in correctly. >> I still haven't narrowed down a problematic number field >> though. Mind you, this is all done in MapServer PHP v. 4.2.0. >> >> -Abe >> >> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: >> >>> Abe Gillespie wrote: >>>> A good amount of fields aren't showing up in MapServer for >> me. I use >>>> the following PHP script to dump out all layers and their >> fields for >>>> debugging. Does MapServer have problems with certain data >> types or >>>> certain values in a row? >>>> >>> >>> Are you using a tiled shapefile layer or is this a regular >> shapefile >>> layer? >>> >>> -- >>> ------------------------------------------------------------ >>> Daniel Morissette dmorissette at dmsolutions.ca >>> DM Solutions Group http://www.dmsolutions.ca/ >>> ------------------------------------------------------------ >>> >> > From ARyan at CO.LINN.OR.US Tue Dec 7 08:40:41 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Tue, 7 Dec 2004 08:40:41 -0800 Subject: transparency lost when layer is queried Message-ID: > -----Original Message----- > From: Daniel Morissette [mailto:dmorissette at dmsolutions.ca] > Sent: Monday, December 06, 2004 3:57 PM > To: Ryan, Adam > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] transparency lost when > layer is queried > > > Ryan, Adam wrote: > > Dear List, > > Has anyone experienced the loss of layer transparency when > querying? > > I have the following querymap and layer: > > You mean that you lose transparency in the QUERYMAP, right? > The querymap > rendering has a bunch of issues, including the lack of support for > transparency. Hopefully this will be addressed in 4.4/4.6: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi> ?id=774 > > In the > meantime you're out of luck, the simple fix > would be to avoid the > combination of querymap + transparency. It should also be possible to > use a temporary layer or custom classes in mapscript to emulate the > querymap effect with a normal map->draw() call. > > -- > ------------------------------------------------------------ > Daniel Morissette dmorissette at dmsolutions.ca > DM Solutions Group http://www.dmsolutions.ca/ > ------------------------------------------------------------ > Thanks for the reply Daniel. I can use other techniques in the meantime. I'm not sure I understand the fix you recommend. If I have a result set, say 30 records out of 48000. How would I display only those without the query mechanism? I can't use a filter because the set may be the result of a spatial query. I can't generate shapefiles because I routinely save and load query files, allowing me to refine my selection sets and this wouldn't be possible if I created entirely new shapefiles. Thanks for your time. Cheers, Adam From didier.georgieff at AGRICULTURE.GOUV.FR Tue Dec 7 08:46:29 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Tue, 7 Dec 2004 17:46:29 +0100 Subject: raster not showing Message-ID: Hello, I'm trying to setup a mapserver demo (4.4.0), based on itasca model, and spent the whole day on something that puzzle me ;-) - itasca works fine including raster files. - my demo works fine except that raster files doesn't show up (single image or tile), but i got no error message. Something starnge also is that if i change the -- didier.georgieff DIDSIT du Bas-Rhin From ealpert at DIGITALGLOBE.COM Tue Dec 7 08:57:07 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Dec 2004 09:57:07 -0700 Subject: raster not showing Message-ID: Unfortunately MS gives you plenty of rope to hang yourself. When things don't show up it is usually a misconfiguration in the mapfile. If you get the mapfile syntax wrong you'll get an error but if you get something like PROJECTION,UNITS, etc wrong you get nothing. The first step in debugging why a raster doesn't show up is to make sure you know what it's projection is and make sure your map file represents it. The Raster Data how-to actually has some nuggets in it: http://mapserver.gis.umn.edu/doc42/raster-howto.html Finally mapserver will do this a lot and it's always because you've done something wrong so you need to get to the point where you can check each of your layers independently. When this happens to me I try to display each layer separately to make sure that part works then put them into a single map file. You can use the mapserver CGI in mode=map map to quickly and easily load mapfiles with different layers and see if they work or don't. The key is to come up with ways you can diagnose your problem. Just keep in mind that it is very rarely an actual bug (especially if you're just getting started) -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of didier.georgieff Sent: Tuesday, December 07, 2004 9:46 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] raster not showing Hello, I'm trying to setup a mapserver demo (4.4.0), based on itasca model, and spent the whole day on something that puzzle me ;-) - itasca works fine including raster files. - my demo works fine except that raster files doesn't show up (single image or tile), but i got no error message. Something starnge also is that if i change the -- didier.georgieff DIDSIT du Bas-Rhin From grs at GRSGIS.COM Tue Dec 7 08:57:26 2004 From: grs at GRSGIS.COM (Geographic Resource Solutions) Date: Tue, 7 Dec 2004 08:57:26 -0800 Subject: itemnquery and qlayer not found, NAME vs GROUP Message-ID: Hi List, Last night I came finally got past a problem I had with itemnquery where I kept getting the qlayer not found message even though it was in my mapserver statement. My qlayer specified a layer GROUP name rather a layer NAME value. By chance I tried the actual layer NAME value and the locate feature worked. Can someone confirm that this call/function needs a qlayer value based on a NAME value rather than a GROUP value. Secondly, now that the function is returning the selected feature, none of the other features specified as layers to be drawn are being displayed. Is this for the same reason ? Does all layer input for commands like this have to be by name rather than group ? Thanks, Ken Geographic Resource Solutions 1125 16th Street, Suite 213 Arcata, CA 95521 Phone: (707) 822-8005 Fax: (707) 822-2864 www.grsgis.com From didier.georgieff at AGRICULTURE.GOUV.FR Tue Dec 7 09:05:55 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Tue, 7 Dec 2004 18:05:55 +0100 Subject: raster not showing Message-ID: Hello, I'm trying to setup a mapserver demo (4.4.0), based on itasca model, and spent the whole day on something that puzzle me ;-) - itasca works fine including raster files. - my demo works fine except that raster files doesn't show up (single image or tile), but i got no error message. ===> I have a sdpen.map, an adapted index.html and a sdpen_basic.html based on itasca_basic.html. So all works fine, except 'testign' (1 TIFF file) and 'ign25' (a tile shape for TIFFs) who are blank. I checked and tfw are in meter and in the right coordinate range. TIFF are individually viewable with any graphic program, and all this works like a charm under arc/info, arcview. Did I missed an obvious option ? Is there a simple way to have one of those TIFF showed by mapserver, to chack if thoses tiffs are valid for mapserver ? Any tip, idea would be welcome. Even a full solution ;-)))) ===> While trying to understand my raster problem, I found something strange (to me ;-) : if i change the layer name of one layer, without changing it in the sdpen_basic.html LAYER NAME ign25 to LAYER NAME ign25ZZZZZ in sdpen.map but still reference to 'ign25' in sdpen_basic.html i don't have any error on screen, and can't find error log message in httpd logs. Is there any sort of caching problem ? Where can i get debug messages (i have --enable-debug in ./configure)? Thnaks in dvance for any help. Regards. =====> This is what i changed in index.html
===> This is what i changed in sdpen_basic.html Select Layers to Display:
====> This is my sdpen.map # # /home/didier/data/sig-data/sdpen.map # mapserver 4.4.0 # MAP NAME SDPEN_1997 STATUS ON SIZE 400 400 EXTENT 930000 1100000 1030000 1150000 UNITS METERS SHAPEPATH "/home/didier/data/sig-data/" IMAGECOLOR 255 255 255 TEMPLATEPATTERN "sdpen" IMAGETYPE PNG # # Start of symbol definitions (we're only using a few) # 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 (including WMS enabling metadata) # WEB IMAGEPATH "" IMAGEURL "" QUERYFORMAT text/html END # # Start of reference map # REFERENCE IMAGE graphics/reference.png EXTENT 930000 1100000 1030000 1150000 SIZE 120 120 STATUS ON MINBOXSIZE 5 MAXBOXSIZE 100 COLOR 255 0 0 OUTLINECOLOR 0 0 0 MARKERSIZE 8 MARKER 'star' END # # Start of legend # LEGEND KEYSIZE 18 12 LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END STATUS ON END # # Start of scalebar # SCALEBAR IMAGECOLOR 0 0 0 LABEL COLOR 255 255 255 SIZE TINY END STYLE 1 SIZE 100 2 COLOR 255 255 255 UNITS METERS INTERVALS 1 TRANSPARENT TRUE STATUS ON END # # Start of layer definitions # LAYER NAME ign25 TYPE RASTER STATUS OFF OFFSITE 252 252 252 CLASS NAME 'Digital Raster Graphic' KEYIMAGE graphics/drgs_keyimage.png END TILEINDEX "ign25/index_ign25.shp" TILEITEM "location" END LAYER NAME testign TYPE RASTER STATUS OFF OFFSITE 252 252 252 CLASS NAME 'TEST IGN' KEYIMAGE graphics/drgs_keyimage.png END DATA "ign25/d516.tif" END LAYER NAME decoupe_ign TYPE POLYGON STATUS OFF DATA "ign25/index_ign25.shp" CLASS NAME "Decoupe IGN" STYLE OUTLINECOLOR 100 100 100 END END END LAYER NAME canton TYPE POLYGON STATUS OFF DATA "sdpen1997/canton" CLASS NAME "Cantons" STYLE COLOR 0 128 0 OUTLINECOLOR 0 0 0 END END END LAYER NAME zhum67 TYPE POLYGON STATUS OFF DATA "sdpen1997/zhum67" CLASS NAME "Zones Humides" STYLE OUTLINECOLOR 0 0 0 END END END END # Map file -- didier.georgieff DIDSIT du Bas-Rhin From didier.georgieff at AGRICULTURE.GOUV.FR Tue Dec 7 09:11:35 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Tue, 7 Dec 2004 18:11:35 +0100 Subject: raster not showing In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B195E*ealpert@digitalglobe.com> Message-ID: Dear Ethan, Thanks for your response. In fact i sent the message too early by mistake. A detailed one follows. Le mar 07/12/2004 ? 17:57, Ethan Alpert a ?crit : > Unfortunately MS gives you plenty of rope to hang yourself. When things > don't show up it is usually a misconfiguration in the mapfile. I tried to have exactly the same itasca syntax. > If you > get the mapfile syntax wrong you'll get an error but if you get > something like PROJECTION,UNITS, etc wrong you get nothing. I guess it's my case. > The first step in debugging why a raster doesn't show up is to make sure > you know what it's projection is and make sure your map file represents > it. Projections are the same for the shape files and the TIFFs. And i give no projections at all in the map file. Should I do ? > The Raster Data how-to actually has some nuggets in it: > http://mapserver.gis.umn.edu/doc42/raster-howto.html Thanks. I read it this afternoon. No luck since. > When this happens to me I try to display each layer separately to make > sure that part works then put them into a single map file. You can use > the mapserver CGI in mode=map map to quickly and easily load mapfiles > with different layers and see if they work or don't. The key is to come > up with ways you can diagnose your problem. Yes. I tried but couldn't find a simple CGI URL for just display the TIFF. I'll try to look deeper. > Just keep in mind that it is > very rarely an actual bug (especially if you're just getting started) Oh yes. I realy don't suspect a bug. I can witness on my dumbness ;-)) Thanks a lot for your response. D. From dmorissette at DMSOLUTIONS.CA Tue Dec 7 09:30:27 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 7 Dec 2004 12:30:27 -0500 Subject: Need help with WMS and Projections In-Reply-To: <41B5DFB2.4020404@rockies.ca> Message-ID: (I have CC'd this reply to the list for the benefit of other users who may have the same questions, see my answers below...) Ken Sanderson wrote: > Thanks Daniel for the reply. Just to make sure I understand what you > have stated below. > > I want to load a remote WMS layer (one thats out of my control, served > by another server), its SRS is as you described is: > > "wms_srs" "EPSG:102190 EPSG:42102 EPSG:3005 EPSG:4269 EPSG:4326 > EPSG:26708 EPSG:26709 EPSG:26710 EPSG:26711 EPSG:26712 EPSG:26908 > EPSG:26909 EPSG:26910 EPSG:26911 EPSG:26912 EPSG:32608 EPSG:32609 > EPSG:32610 EPSG:32611 EPSG:32612" > > Now first my chameleon client checks to see if it will support my output > projection of 42304 and goes through the wms_srs list, which in this > case it doesnt as its not in that list at all. So then it grabs the > first projection listed, which is 102190, which my client's mapserver > didnt understand as it wasnt listed in my EPSG file. It wont look to > 42102 or any beyond that I do have, it just stops at the first one? > Correct. It just stops at the first one. > Is that all correct? So if I am going to serve up a WMS layer its likely > best if I make my first SRS something very common like EPSG:4326 instead > of a unique like 102190? > Yep, in the context of MapServer you are better put the most common projection at the beginning. I don't know how other clients are implemented, but I wouldn't be surprised if many other WMS clients would have used the same strategy. We could potentially enhance MapServer to try to be smart and pick the projection from the wms_srs list that would create the least distortion when warping the image it gets from the remote WMS, but that could be very complex to implement and result in lots of overhead at runtime so I'm not even sure if that's a good idea. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From Dan.Liu at STATE.MN.US Tue Dec 7 09:33:53 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Tue, 7 Dec 2004 11:33:53 -0600 Subject: jbox zoom in Message-ID: Hi, When I do zoom in on a map which has over 4000 polygons in one layer, the map double blinks and then the zoomed in map shows. Does anybody know how to make the double blink disappear? Any help is appreciated. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Tue Dec 7 10:16:36 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Dec 2004 11:16:36 -0700 Subject: raster not showing Message-ID: > Yes. I tried but couldn't find a simple CGI URL for just display the TIFF. I'll try to look deeper. This is very simple and something I use over and over to find my errors. Here's an example I just did. In my home directory I wrote a mapfile with just one raster layer: MAP EXTENT 92.6165416666667 21.3363833333333 92.7901305555555 21.6384555555556 IMAGETYPE png SIZE 800 800 STATUS ON UNITS DD LAYER DATA "/home/ealpert/10100100036C4D00.tif" STATUS DEFAULT TYPE RASTER END END Then I called mapserv with the following URL: http://localhost/cgi-bin/mapserv?map=/home/ealpert/test.map&mode=map That's it and this confirms that my RASTER layer works. -e From ealpert at DIGITALGLOBE.COM Tue Dec 7 10:33:46 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Dec 2004 11:33:46 -0700 Subject: raster not showing Message-ID: I just read your last post why is STATUS set to OFF? STATUS should be either DEFAULT (displayed always) or ON (displayed when layer is set through CGI URL i.e. ..&layers=testign) -e LAYER NAME testign TYPE RASTER STATUS OFF OFFSITE 252 252 252 CLASS NAME 'TEST IGN' KEYIMAGE graphics/drgs_keyimage.png END DATA "ign25/d516.tif" END From jmckenna at DMSOLUTIONS.CA Tue Dec 7 11:15:59 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 7 Dec 2004 14:15:59 -0500 Subject: Shapefile field problem In-Reply-To: Message-ID: Abe, I made a tiny mapfile with your test shp, and i see labels properly in MapServer with it. I added an attribute in the "OWNERS_NAM" field and I successfully displayed it in mapserver. Am i misunderstanding your problem somehow? (mapfile below) jeff MAP NAME "field-test" STATUS ON EXTENT 1260565.500000 941362.000000 1261605.125000 942198.625000 SIZE 400 300 SHAPEPATH "D:/DMSG/projects/mapserver-bugs/" SYMBOLSET "../etc/symbols.sym" FONTSET "../etc/fonts.txt" IMAGETYPE gif IMAGECOLOR 255 255 255 UNITS METERS WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA END END OUTPUTFORMAT NAME "gif" MIMETYPE "image/gif" DRIVER "GD/GIF" EXTENSION "gif" IMAGEMODE PC256 TRANSPARENT FALSE END LAYER NAME test TYPE POLYGON STATUS ON DATA test LabelItem "OWNERS_NAM" CLASS NAME "ttt" COLOR 0 255 0 LABEL COLOR 255 0 0 FONT fritqat-italic TYPE truetype SIZE 8 POSITION AUTO PARTIALS FALSE OUTLINECOLOR 255 255 255 END END END # Layer END Abe Gillespie wrote: > I do appreciate the help, but I'm not looking for an "external to > MapServer" way of getting access to my DBF field values. I just use my > PHP script to *reveal* problematic shapefile fields. When there is a > problem it's unusable to MapServer! I.e.: I can't use the field for > labelling. > > -Abe > > On Dec 7, 2004, at 11:27 AM, Ryan, Adam wrote: > >> Abe, >> >> Here's a routine I use to get the header information (field info) from >> a dbf >> file. >> >> // ========== iDbf_fields ============== >> // $f is a dbf file path, returns an array of field arrays >> function iDbf_fields($f){ >> $h = fopen($f,"rb"); >> $a = >> unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/ >> srecsize",fread($h,12)); >> fread($h,20); //skip some reserved space >> for($i=0;$i<($a["headsize"]-33)/32;$i++){ >> $fa = array(); >> $fname = trim(fread($h,11)); >> $fa["type"] = fread($h,1); >> fread($h,4); >> $fa = array_merge($fa,unpack("Clen/Cpre",fread($h,2))); >> fread($h,14); >> $flds[$fname] = $fa; >> } >> fclose($h); >> return $flds; >> } >> >> When I generate a result table I'll go through the array like this: >> ($so is >> the shape Object) >> >> foreach($flds as $fname => $fA){ >> $val = $so->values[$fname]; >> if ($val==null)$val=" "; >> $val = str_replace(" "," >>  ",$val); >> if ($fA["type"]=="D"){$val = >> substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} >> echo "$val";} >> } >> >> >> Cheers to all, >> >> Adam >> >>> -----Original Message----- >>> From: Abe Gillespie [mailto:agillesp at VT.EDU] >>> Sent: Monday, December 06, 2004 5:14 PM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >>> >>> >>> It's a regular shapefile. I think I've mostly narrowed it >>> down. It seems to me (though I may be completely off) that >>> MapServer loads the first record of the DBF in order to get >>> the field definitions. If the first record has a string >>> field and the value is zero length it won't give me the field >>> (though the field count is always correct). In addition, it >>> won't give me any fields after that either. If, however, I >>> make sure that field has some value (a dash, an "x", >>> whatever) then the field definition will come in correctly. >>> I still haven't narrowed down a problematic number field >>> though. Mind you, this is all done in MapServer PHP v. 4.2.0. >>> >>> -Abe >>> >>> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: >>> >>>> Abe Gillespie wrote: >>>> >>>>> A good amount of fields aren't showing up in MapServer for >>> >>> me. I use >>> >>>>> the following PHP script to dump out all layers and their >>> >>> fields for >>> >>>>> debugging. Does MapServer have problems with certain data >>> >>> types or >>> >>>>> certain values in a row? >>>>> >>>> >>>> Are you using a tiled shapefile layer or is this a regular >>> >>> shapefile >>> >>>> layer? >>>> >>>> -- >>>> ------------------------------------------------------------ >>>> Daniel Morissette dmorissette at dmsolutions.ca >>>> DM Solutions Group http://www.dmsolutions.ca/ >>>> ------------------------------------------------------------ >>>> >>> >> > -- Jeff McKenna GIS Specialist DM Solutions Group Inc. http://www.dmsolutions.ca From asimpson at I-55.COM Tue Dec 7 12:05:41 2004 From: asimpson at I-55.COM (Simpson) Date: Tue, 7 Dec 2004 14:05:41 -0600 Subject: Render Tiled JP2s with MRSID SDK enabled GDAL In-Reply-To: Message-ID: After further testing, it may not be related to overviews. It seems to fail at most zoom levels. Here is a GDB backtrace of a shp2img using tile index of jp2s: #0 0x42028851 in kill () from /lib/i686/libc.so.6 #1 0x4081cf4d in raise () from /lib/i686/libpthread.so.0 #2 0x420284f4 in raise () from /lib/i686/libc.so.6 #3 0x42029beb in abort () from /lib/i686/libc.so.6 #4 0x420219f6 in __assert_fail () from /lib/i686/libc.so.6 #5 0x4050e43a in kdu_codestream::open_tile(kdu_coords) () from /usr/local/lib/libgdal.so.1 #6 0x404b0a1d in kdsd_tile::init(kdu_coords, kdu_codestream, kdsd_component_state*, bool) () from /usr/local/lib/libgdal.so.1 #7 0x404b2213 in kdu_stripe_decompressor::pull_common() () from /usr/local/lib/libgdal.so.1 #8 0x404b1c74 in kdu_stripe_decompressor::pull_stripe(unsigned char**, int*, int*, int*, int*) () from /usr/local/lib/libgdal.so.1 #9 0x40497751 in LizardTech::J2KImageReaderImp::doDecodeU8(int, LizardTech::LTISceneBuffer&) () from /usr/local/lib/libgdal.so.1 #10 0x40497915 in LizardTech::J2KImageReaderImp::decodeStrip_kak(LizardTech::LTISceneBuffer&, LizardTech::LTIScene const&) () from /usr/local/lib/libgdal.so.1 #11 0x404976b0 in LizardTech::J2KImageReaderImp::decodeStrip(LizardTech::LTISceneBuffer&, LizardTech::LTIScene const&) () from /usr/local/lib/libgdal.so.1 #12 0x4047a160 in LizardTech::J2KImageReader::decodeStrip(LizardTech::LTISceneBuffer&, LizardTech::LTIScene const&) () from /usr/local/lib/libgdal.so.1 #13 0x4047f846 in LizardTech::LTIImageStage::readStrip(LizardTech::LTISceneBuffer&, LizardTech::LTIScene const&) () from /usr/local/lib/libgdal.so.1 ---Type to continue, or q to quit--- #14 0x4047fdae in LizardTech::LTIImageStage::read(LizardTech::LTIScene const&, LizardTech::LTISceneBuffer&) () from /usr/local/lib/libgdal.so.1 #15 0x4037316c in MrSIDRasterBand::IReadBlock(int, int, void*) () from /usr/local/lib/libgdal.so.1 #16 0x403a7dbb in GDALRasterBand::GetBlockRef(int, int, int) () from /usr/local/lib/libgdal.so.1 #17 0x403aa373 in GDALRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int) () from /usr/local/lib/libgdal.so.1 #18 0x403a77b1 in GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int) () from /usr/local/lib/libgdal.so.1 #19 0x403ab29b in GDALRasterBand::OverviewRasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int) () from /usr/local/lib/libgdal.so.1 #20 0x403aa794 in GDALRasterBand::IRasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int) () from /usr/local/lib/libgdal.so.1 #21 0x403a77b1 in GDALRasterBand::RasterIO(GDALRWFlag, int, int, int, int, void*, int, int, GDALDataType, int, int) () from /usr/local/lib/libgdal.so.1 #22 0x403a7852 in GDALRasterIO () from /usr/local/lib/libgdal.so.1 #23 0x080b9be1 in LoadGDALImage (hBand=0x832c148, iColorIndex=1, layer=0x80f83d8, src_xoff=0, src_yoff=0, src_xsize=3025, src_ysize=7032, pabyBuffer=0x832c418 "??????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????? ?????????????????????????????????????????????????"..., dst_xsize=34, dst_ysize=81) at mapdrawgdal.c:1089 ---Type to continue, or q to quit--- #24 0x080b7cec in msDrawRasterLayerGDAL (map=0x40b72008, layer=0x80f83d8, image=0x8141328, hDSVoid=0x8324ac0) at mapdrawgdal.c:724 #25 0x080a8503 in msDrawRasterLayerLow (map=0x40b72008, layer=0x80f83d8, image=0x8141328) at mapraster.c:1514 #26 0x0806d691 in msDrawRasterLayer (map=0x40b72008, layer=0x6, image=0x80ebae1) at mapdraw.c:1124 #27 0x0806c747 in msDrawLayer (map=0x40b72008, layer=0x80f83d8, image=0x8141328) at mapdraw.c:760 #28 0x0806be3b in msDrawMap (map=0x40b72008) at mapdraw.c:425 #29 0x0804e03c in main (argc=14, argv=0xbfffed94) at shp2img.c:220 #30 0x420158f7 in __libc_start_main () from /lib/i686/libc.so.6 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Simpson Sent: Tuesday, December 07, 2004 8:40 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Render Tiled JP2s with MRSID SDK enabled GDAL I have an installation of MapServer 4.4.0 using GDAL 1.2.5 on Linux 2.4.20-28.8smp. The GDAL is compiled with Geo_DSDK-4.0.9.713. I have a tile index layer of jp2 files that am having trouble rendering at certain scales. At a small scale and large scale, the image renders ok, but in between I get: mapserv: ../compressed/codestream.cpp:3944: kdu_tile kdu_codestream::open_tile(kdu_coords): Assertion `(tile_idx.x >= 0) && (tile_idx.x < state->num_tiles.x) && (tile_idx.y >= 0) && (tile_idx.y < state->num_tiles.y)' failed. I suspect an issue with the overviews in the jp2s: Band 1 Block=6269x64 Type=Byte, ColorInterp=Red Overviews: 3135x3508, 1567x1754, 784x877, 392x439, 196x219, 98x110, 49x55, 24x27, 12x14, 6x7, 3x3 Has anyone had a similar issue or have any suggestions? Thanks for any help, Drew. From richard.greenwood at GMAIL.COM Tue Dec 7 12:36:06 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 7 Dec 2004 13:36:06 -0700 Subject: jBox.boxoff() In-Reply-To: Message-ID: On Tue, 7 Dec 2004 09:49:21 -0600, Manjiri Andhare wrote: > Hi! > I'm working on MapServer 4.2 and using the jBox applet for drawing the zoom > rectangle. And it works fine for the zoom in. But when i tryed to fine tune > it with the boxoff method of jBox, it doesn't work. If i write a code into > javascript function like: > document.frmtroutmap.jBox.boxoff(); Are you sure that it shouldn't be: document.jBox.boxoff(); -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mandhare at STATE.PA.US Tue Dec 7 12:46:05 2004 From: mandhare at STATE.PA.US (Andhare, Manjiri) Date: Tue, 7 Dec 2004 15:46:05 -0500 Subject: jBox.boxoff() Message-ID: If I do as: document.jBox.boxoff(); Then I get the error message for that line as: Failure to reset_handler('jBox',-1,-1,-1,-1) I really appreciate the response. Manjiri Andahre GIS co-ordinator PA Fish & Boat commission tel: (814)3595182 fax:(814)3595153 -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Tuesday, December 07, 2004 3:36 PM To: Manjiri Andhare Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jBox.boxoff() On Tue, 7 Dec 2004 09:49:21 -0600, Manjiri Andhare wrote: > Hi! > I'm working on MapServer 4.2 and using the jBox applet for drawing the zoom > rectangle. And it works fine for the zoom in. But when i tryed to fine tune > it with the boxoff method of jBox, it doesn't work. If i write a code into > javascript function like: > document.frmtroutmap.jBox.boxoff(); Are you sure that it shouldn't be: document.jBox.boxoff(); -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From agillesp at VT.EDU Tue Dec 7 13:17:10 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 7 Dec 2004 16:17:10 -0500 Subject: Shapefile field problem In-Reply-To: <41B6016F.8080900@dmsolutions.ca> Message-ID: The problem with adding a value for that attribute corrupts the test case. Can you try the following PHP code and compare your results with mine? [php] numlayers; $i++) { $l = $map->getLayer($i); putBrLine($l->name.", type: ".$l->type); if ($l->data != null) // Shape files with data. { $l->open(); $s = $l->getShape(-1, 0); $vals = $s->values; putBrLine("field count: ".count($vals)); while ($fld = current($vals)) { putBrLine("  ".key($vals)); next($vals); } $s->free(); $l->close(); } } function putBrLine($line) { echo "$line
?n"; } ?> [output] test, type: 2 field count: 54 ACAD_TEXT COUNT ACCOUNT_NU See how there's a discrepancy between the field count and the number of field names that get dumped? From my experience, the field just after ACCOUNT_NU has a NULL value. I see the same behavior on my Mac OS X and Debian Linux installs. -Abe On Dec 7, 2004, at 2:15 PM, Jeff McKenna wrote: > Abe, > > I made a tiny mapfile with your test shp, and i see labels properly in > MapServer with it. I added an attribute in the "OWNERS_NAM" field and > I successfully displayed it in mapserver. Am i misunderstanding your > problem somehow? (mapfile below) > > jeff > > MAP > NAME "field-test" > STATUS ON > EXTENT 1260565.500000 941362.000000 1261605.125000 942198.625000 > SIZE 400 300 > SHAPEPATH "D:/DMSG/projects/mapserver-bugs/" > SYMBOLSET "../etc/symbols.sym" > FONTSET "../etc/fonts.txt" > IMAGETYPE gif > IMAGECOLOR 255 255 255 > UNITS METERS > WEB > IMAGEPATH "/ms4w/tmp/ms_tmp/" > IMAGEURL "/ms_tmp/" > METADATA > END > END > > OUTPUTFORMAT > NAME "gif" > MIMETYPE "image/gif" > DRIVER "GD/GIF" > EXTENSION "gif" > IMAGEMODE PC256 > TRANSPARENT FALSE > END > > LAYER > NAME test > TYPE POLYGON > STATUS ON > DATA test > LabelItem "OWNERS_NAM" > CLASS > NAME "ttt" > COLOR 0 255 0 > LABEL > COLOR 255 0 0 > FONT fritqat-italic > TYPE truetype > SIZE 8 > POSITION AUTO > PARTIALS FALSE > OUTLINECOLOR 255 255 255 > END > END > END # Layer > > END > > > > > > Abe Gillespie wrote: >> I do appreciate the help, but I'm not looking for an "external to >> MapServer" way of getting access to my DBF field values. I just use >> my >> PHP script to *reveal* problematic shapefile fields. When there is a >> problem it's unusable to MapServer! I.e.: I can't use the field for >> labelling. >> -Abe >> On Dec 7, 2004, at 11:27 AM, Ryan, Adam wrote: >>> Abe, >>> >>> Here's a routine I use to get the header information (field info) >>> from >>> a dbf >>> file. >>> >>> // ========== iDbf_fields ============== >>> // $f is a dbf file path, returns an array of field arrays >>> function iDbf_fields($f){ >>> $h = fopen($f,"rb"); >>> $a = >>> unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/ >>> srecsize",fread($h,12)); >>> fread($h,20); //skip some reserved space >>> for($i=0;$i<($a["headsize"]-33)/32;$i++){ >>> $fa = array(); >>> $fname = trim(fread($h,11)); >>> $fa["type"] = fread($h,1); >>> fread($h,4); >>> $fa = >>> array_merge($fa,unpack("Clen/Cpre",fread($h,2))); >>> fread($h,14); >>> $flds[$fname] = $fa; >>> } >>> fclose($h); >>> return $flds; >>> } >>> >>> When I generate a result table I'll go through the array like this: >>> ($so is >>> the shape Object) >>> >>> foreach($flds as $fname => $fA){ >>> $val = $so->values[$fname]; >>> if ($val==null)$val=" "; >>> $val = str_replace(" "," >>>  ",$val); >>> if ($fA["type"]=="D"){$val = >>> substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} >>> echo "$val";} >>> } >>> >>> >>> Cheers to all, >>> >>> Adam >>> >>>> -----Original Message----- >>>> From: Abe Gillespie [mailto:agillesp at VT.EDU] >>>> Sent: Monday, December 06, 2004 5:14 PM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >>>> >>>> >>>> It's a regular shapefile. I think I've mostly narrowed it >>>> down. It seems to me (though I may be completely off) that >>>> MapServer loads the first record of the DBF in order to get >>>> the field definitions. If the first record has a string >>>> field and the value is zero length it won't give me the field >>>> (though the field count is always correct). In addition, it >>>> won't give me any fields after that either. If, however, I >>>> make sure that field has some value (a dash, an "x", >>>> whatever) then the field definition will come in correctly. >>>> I still haven't narrowed down a problematic number field >>>> though. Mind you, this is all done in MapServer PHP v. 4.2.0. >>>> >>>> -Abe >>>> >>>> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: >>>> >>>>> Abe Gillespie wrote: >>>>> >>>>>> A good amount of fields aren't showing up in MapServer for >>>> >>>> me. I use >>>> >>>>>> the following PHP script to dump out all layers and their >>>> >>>> fields for >>>> >>>>>> debugging. Does MapServer have problems with certain data >>>> >>>> types or >>>> >>>>>> certain values in a row? >>>>>> >>>>> >>>>> Are you using a tiled shapefile layer or is this a regular >>>> >>>> shapefile >>>> >>>>> layer? >>>>> >>>>> -- >>>>> ------------------------------------------------------------ >>>>> Daniel Morissette dmorissette at dmsolutions.ca >>>>> DM Solutions Group http://www.dmsolutions.ca/ >>>>> ------------------------------------------------------------ >>>>> >>>> >>> > > > -- > Jeff McKenna > GIS Specialist > DM Solutions Group Inc. > http://www.dmsolutions.ca > From w.blanken at GEON.NL Tue Dec 7 13:03:26 2004 From: w.blanken at GEON.NL (Wim Blanken) Date: Tue, 7 Dec 2004 22:03:26 +0100 Subject: itemnquery and qlayer not found, NAME vs GROUP Message-ID: Hello Ken, Just had the same problem with an app we are developing.... It seems you are right about the itemnquery problem, the documentation is clearly wrong about this. I had to merge my query layers (point, line and polygon) into one polygon layer to get this working...... Would be nice if this worked with groups. Kind Regards, Wim Blanken The Netherlands. ----- Original Message ----- From: "Geographic Resource Solutions" To: Sent: Tuesday, December 07, 2004 5:57 PM Subject: [UMN_MAPSERVER-USERS] itemnquery and qlayer not found, NAME vs GROUP > Hi List, > > Last night I came finally got past a problem I had with itemnquery where I > kept getting the qlayer not found message even though it was in my > mapserver statement. My qlayer specified a layer GROUP name rather a > layer > NAME value. By chance I tried the actual layer NAME value and the locate > feature worked. > > Can someone confirm that this call/function needs a qlayer value based on > a > NAME value rather than a GROUP value. > > Secondly, now that the function is returning the selected feature, none of > the other features specified as layers to be drawn are being displayed. > Is > this for the same reason ? Does all layer input for commands like this > have to be by name rather than group ? > > Thanks, > > Ken > Geographic Resource Solutions > 1125 16th Street, Suite 213 > Arcata, CA 95521 > Phone: (707) 822-8005 > Fax: (707) 822-2864 > > > www.grsgis.com > > From mapserver at GEOWORLD.DE Tue Dec 7 13:33:22 2004 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 7 Dec 2004 22:33:22 +0100 Subject: Shapefile field problem In-Reply-To: <5B2276D0-4895-11D9-9E92-000A957A0F9C@vt.edu> Message-ID: Hi Abe, i modified your script. Instead of 'while' i use the following 'foreach' loop. foreach ($vals as $key => $val) { printf ("%s -- %s\n", $key, $val); } This statement returns all 54 fields of your shapefile. HTH Nicol Am Di, den 07.12.2004 schrieb Abe Gillespie um 22:17: > The problem with adding a value for that attribute corrupts the test > case. Can you try the following PHP code and compare your results with > mine? > > [php] > > > dl("php_mapscript.so"); > $map = ms_newMapObj("/Users/abe/Sites/ms_test/test.map"); > for ($i = 0; $i < $map->numlayers; $i++) > { > $l = $map->getLayer($i); > putBrLine($l->name.", type: ".$l->type); > if ($l->data != null) // Shape files with data. > { > $l->open(); > $s = $l->getShape(-1, 0); > $vals = $s->values; > putBrLine("field count: ".count($vals)); > while ($fld = current($vals)) > { > putBrLine("  ".key($vals)); > next($vals); > } > $s->free(); > $l->close(); > } > } > > function putBrLine($line) > { > echo "$line
?n"; > } > ?> > > > > [output] > test, type: 2 > field count: 54 > ACAD_TEXT > COUNT > ACCOUNT_NU > > See how there's a discrepancy between the field count and the number of > field names that get dumped? From my experience, the field just after > ACCOUNT_NU has a NULL value. I see the same behavior on my Mac OS X > and Debian Linux installs. > > -Abe > > On Dec 7, 2004, at 2:15 PM, Jeff McKenna wrote: > > > Abe, > > > > I made a tiny mapfile with your test shp, and i see labels properly in > > MapServer with it. I added an attribute in the "OWNERS_NAM" field and > > I successfully displayed it in mapserver. Am i misunderstanding your > > problem somehow? (mapfile below) > > > > jeff > > > > MAP > > NAME "field-test" > > STATUS ON > > EXTENT 1260565.500000 941362.000000 1261605.125000 942198.625000 > > SIZE 400 300 > > SHAPEPATH "D:/DMSG/projects/mapserver-bugs/" > > SYMBOLSET "../etc/symbols.sym" > > FONTSET "../etc/fonts.txt" > > IMAGETYPE gif > > IMAGECOLOR 255 255 255 > > UNITS METERS > > WEB > > IMAGEPATH "/ms4w/tmp/ms_tmp/" > > IMAGEURL "/ms_tmp/" > > METADATA > > END > > END > > > > OUTPUTFORMAT > > NAME "gif" > > MIMETYPE "image/gif" > > DRIVER "GD/GIF" > > EXTENSION "gif" > > IMAGEMODE PC256 > > TRANSPARENT FALSE > > END > > > > LAYER > > NAME test > > TYPE POLYGON > > STATUS ON > > DATA test > > LabelItem "OWNERS_NAM" > > CLASS > > NAME "ttt" > > COLOR 0 255 0 > > LABEL > > COLOR 255 0 0 > > FONT fritqat-italic > > TYPE truetype > > SIZE 8 > > POSITION AUTO > > PARTIALS FALSE > > OUTLINECOLOR 255 255 255 > > END > > END > > END # Layer > > > > END > > > > > > > > > > > > Abe Gillespie wrote: > >> I do appreciate the help, but I'm not looking for an "external to > >> MapServer" way of getting access to my DBF field values. I just use > >> my > >> PHP script to *reveal* problematic shapefile fields. When there is a > >> problem it's unusable to MapServer! I.e.: I can't use the field for > >> labelling. > >> -Abe > >> On Dec 7, 2004, at 11:27 AM, Ryan, Adam wrote: > >>> Abe, > >>> > >>> Here's a routine I use to get the header information (field info) > >>> from > >>> a dbf > >>> file. > >>> > >>> // ========== iDbf_fields ============== > >>> // $f is a dbf file path, returns an array of field arrays > >>> function iDbf_fields($f){ > >>> $h = fopen($f,"rb"); > >>> $a = > >>> unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/ > >>> srecsize",fread($h,12)); > >>> fread($h,20); //skip some reserved space > >>> for($i=0;$i<($a["headsize"]-33)/32;$i++){ > >>> $fa = array(); > >>> $fname = trim(fread($h,11)); > >>> $fa["type"] = fread($h,1); > >>> fread($h,4); > >>> $fa = > >>> array_merge($fa,unpack("Clen/Cpre",fread($h,2))); > >>> fread($h,14); > >>> $flds[$fname] = $fa; > >>> } > >>> fclose($h); > >>> return $flds; > >>> } > >>> > >>> When I generate a result table I'll go through the array like this: > >>> ($so is > >>> the shape Object) > >>> > >>> foreach($flds as $fname => $fA){ > >>> $val = $so->values[$fname]; > >>> if ($val==null)$val=" "; > >>> $val = str_replace(" "," > >>>  ",$val); > >>> if ($fA["type"]=="D"){$val = > >>> substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} > >>> echo "$val";} > >>> } > >>> > >>> > >>> Cheers to all, > >>> > >>> Adam > >>> > >>>> -----Original Message----- > >>>> From: Abe Gillespie [mailto:agillesp at VT.EDU] > >>>> Sent: Monday, December 06, 2004 5:14 PM > >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem > >>>> > >>>> > >>>> It's a regular shapefile. I think I've mostly narrowed it > >>>> down. It seems to me (though I may be completely off) that > >>>> MapServer loads the first record of the DBF in order to get > >>>> the field definitions. If the first record has a string > >>>> field and the value is zero length it won't give me the field > >>>> (though the field count is always correct). In addition, it > >>>> won't give me any fields after that either. If, however, I > >>>> make sure that field has some value (a dash, an "x", > >>>> whatever) then the field definition will come in correctly. > >>>> I still haven't narrowed down a problematic number field > >>>> though. Mind you, this is all done in MapServer PHP v. 4.2.0. > >>>> > >>>> -Abe > >>>> > >>>> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: > >>>> > >>>>> Abe Gillespie wrote: > >>>>> > >>>>>> A good amount of fields aren't showing up in MapServer for > >>>> > >>>> me. I use > >>>> > >>>>>> the following PHP script to dump out all layers and their > >>>> > >>>> fields for > >>>> > >>>>>> debugging. Does MapServer have problems with certain data > >>>> > >>>> types or > >>>> > >>>>>> certain values in a row? > >>>>>> > >>>>> > >>>>> Are you using a tiled shapefile layer or is this a regular > >>>> > >>>> shapefile > >>>> > >>>>> layer? > >>>>> > >>>>> -- > >>>>> ------------------------------------------------------------ > >>>>> Daniel Morissette dmorissette at dmsolutions.ca > >>>>> DM Solutions Group http://www.dmsolutions.ca/ > >>>>> ------------------------------------------------------------ > >>>>> > >>>> > >>> > > > > > > -- > > Jeff McKenna > > GIS Specialist > > DM Solutions Group Inc. > > http://www.dmsolutions.ca > > -- \\:// (o -) Dipl.-Geogr. Nicol Hermann -------ooO-(_)-Ooo----------------------------------------------- Chattenstra?e 67 .oooO 55130 Mainz ( ) Oooo. Tel. 06131/6007550 ---\ (----( )--------------------------------------------------- \_) ) / http://www.nicol.info (_/ E-Mail: nicol at nicol.info WWW-Tip! -------- Geographisches Informationssystem http://www.geoworld.de/ From agillesp at VT.EDU Tue Dec 7 14:19:36 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 7 Dec 2004 17:19:36 -0500 Subject: Shapefile field problem In-Reply-To: <1102455035.3982.34.camel@katrin> Message-ID: Ok, you've proven to me you can *force* MapServer to give you the names of problem fields. But try this one (use the newly edited DBF file): numlayers; $i++) { $l = $map->getLayer($i); putBrLine($l->name.", type: ".$l->type); // Query test. @$l->queryByAttributes("CITY", "/foo/", MS_MULTIPLE); putBrLine($l->getNumResults()); if ($l->data != null) // Shape files with data. { $l->open(); $s = $l->getShape(-1, 0); $vals = $s->values; putBrLine("field count: ".count($vals)); /* while ($fld = current($vals)) { putBrLine("  ".key($vals)); next($vals); } */ foreach ($vals as $key => $val) { printf ("%s -- %s
\n", $key, $val); } $s->free(); $l->close(); } } function putBrLine($line) { echo "$line
\n"; } ?> For me I get 0 as the number of results but you can clearly see the value getting dumped out. Barring I didn't screw up the query, this is a problem no? Thanks as always. -Abe -------------- next part -------------- A non-text attachment was scrubbed... Name: parcels2.dbf Type: application/octet-stream Size: 3172 bytes Desc: not available URL: -------------- next part -------------- On Dec 7, 2004, at 4:30 PM, Nicol Hermann wrote: > Hi Abe, > > i modified your script. > Instead of 'while' i use the following 'foreach' loop. > > foreach ($vals as $key => $val) { > printf ("%s -- %s\n", $key, $val); > } > > This statement returns all 54 fields of your shapefile. > > HTH > Nicol > > > Am Di, den 07.12.2004 schrieb Abe Gillespie um 22:17: >> The problem with adding a value for that attribute corrupts the test >> case. Can you try the following PHP code and compare your results >> with >> mine? >> >> [php] >> >> >> > dl("php_mapscript.so"); >> $map = >> ms_newMapObj("/Users/abe/Sites/ms_test/test.map"); >> for ($i = 0; $i < $map->numlayers; $i++) >> { >> $l = $map->getLayer($i); >> putBrLine($l->name.", type: ".$l->type); >> if ($l->data != null) // Shape files with >> data. >> { >> $l->open(); >> $s = $l->getShape(-1, 0); >> $vals = $s->values; >> putBrLine("field count: >> ".count($vals)); >> while ($fld = current($vals)) >> { >> >> putBrLine("  ".key($vals)); >> next($vals); >> } >> $s->free(); >> $l->close(); >> } >> } >> >> function putBrLine($line) >> { >> echo "$line
?n"; >> } >> ?> >> >> >> >> [output] >> test, type: 2 >> field count: 54 >> ACAD_TEXT >> COUNT >> ACCOUNT_NU >> >> See how there's a discrepancy between the field count and the number >> of >> field names that get dumped? From my experience, the field just after >> ACCOUNT_NU has a NULL value. I see the same behavior on my Mac OS X >> and Debian Linux installs. >> >> -Abe >> >> On Dec 7, 2004, at 2:15 PM, Jeff McKenna wrote: >> >>> Abe, >>> >>> I made a tiny mapfile with your test shp, and i see labels properly >>> in >>> MapServer with it. I added an attribute in the "OWNERS_NAM" field >>> and >>> I successfully displayed it in mapserver. Am i misunderstanding your >>> problem somehow? (mapfile below) >>> >>> jeff >>> >>> MAP >>> NAME "field-test" >>> STATUS ON >>> EXTENT 1260565.500000 941362.000000 1261605.125000 942198.625000 >>> SIZE 400 300 >>> SHAPEPATH "D:/DMSG/projects/mapserver-bugs/" >>> SYMBOLSET "../etc/symbols.sym" >>> FONTSET "../etc/fonts.txt" >>> IMAGETYPE gif >>> IMAGECOLOR 255 255 255 >>> UNITS METERS >>> WEB >>> IMAGEPATH "/ms4w/tmp/ms_tmp/" >>> IMAGEURL "/ms_tmp/" >>> METADATA >>> END >>> END >>> >>> OUTPUTFORMAT >>> NAME "gif" >>> MIMETYPE "image/gif" >>> DRIVER "GD/GIF" >>> EXTENSION "gif" >>> IMAGEMODE PC256 >>> TRANSPARENT FALSE >>> END >>> >>> LAYER >>> NAME test >>> TYPE POLYGON >>> STATUS ON >>> DATA test >>> LabelItem "OWNERS_NAM" >>> CLASS >>> NAME "ttt" >>> COLOR 0 255 0 >>> LABEL >>> COLOR 255 0 0 >>> FONT fritqat-italic >>> TYPE truetype >>> SIZE 8 >>> POSITION AUTO >>> PARTIALS FALSE >>> OUTLINECOLOR 255 255 255 >>> END >>> END >>> END # Layer >>> >>> END >>> >>> >>> >>> >>> >>> Abe Gillespie wrote: >>>> I do appreciate the help, but I'm not looking for an "external to >>>> MapServer" way of getting access to my DBF field values. I just use >>>> my >>>> PHP script to *reveal* problematic shapefile fields. When there is >>>> a >>>> problem it's unusable to MapServer! I.e.: I can't use the field for >>>> labelling. >>>> -Abe >>>> On Dec 7, 2004, at 11:27 AM, Ryan, Adam wrote: >>>>> Abe, >>>>> >>>>> Here's a routine I use to get the header information (field info) >>>>> from >>>>> a dbf >>>>> file. >>>>> >>>>> // ========== iDbf_fields ============== >>>>> // $f is a dbf file path, returns an array of field arrays >>>>> function iDbf_fields($f){ >>>>> $h = fopen($f,"rb"); >>>>> $a = >>>>> unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/ >>>>> srecsize",fread($h,12)); >>>>> fread($h,20); //skip some reserved space >>>>> for($i=0;$i<($a["headsize"]-33)/32;$i++){ >>>>> $fa = array(); >>>>> $fname = trim(fread($h,11)); >>>>> $fa["type"] = fread($h,1); >>>>> fread($h,4); >>>>> $fa = >>>>> array_merge($fa,unpack("Clen/Cpre",fread($h,2))); >>>>> fread($h,14); >>>>> $flds[$fname] = $fa; >>>>> } >>>>> fclose($h); >>>>> return $flds; >>>>> } >>>>> >>>>> When I generate a result table I'll go through the array like this: >>>>> ($so is >>>>> the shape Object) >>>>> >>>>> foreach($flds as $fname => $fA){ >>>>> $val = $so->values[$fname]; >>>>> if ($val==null)$val=" "; >>>>> $val = str_replace(" "," >>>>>  ",$val); >>>>> if ($fA["type"]=="D"){$val = >>>>> substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} >>>>> echo "$val";} >>>>> } >>>>> >>>>> >>>>> Cheers to all, >>>>> >>>>> Adam >>>>> >>>>>> -----Original Message----- >>>>>> From: Abe Gillespie [mailto:agillesp at VT.EDU] >>>>>> Sent: Monday, December 06, 2004 5:14 PM >>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >>>>>> >>>>>> >>>>>> It's a regular shapefile. I think I've mostly narrowed it >>>>>> down. It seems to me (though I may be completely off) that >>>>>> MapServer loads the first record of the DBF in order to get >>>>>> the field definitions. If the first record has a string >>>>>> field and the value is zero length it won't give me the field >>>>>> (though the field count is always correct). In addition, it >>>>>> won't give me any fields after that either. If, however, I >>>>>> make sure that field has some value (a dash, an "x", >>>>>> whatever) then the field definition will come in correctly. >>>>>> I still haven't narrowed down a problematic number field >>>>>> though. Mind you, this is all done in MapServer PHP v. 4.2.0. >>>>>> >>>>>> -Abe >>>>>> >>>>>> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: >>>>>> >>>>>>> Abe Gillespie wrote: >>>>>>> >>>>>>>> A good amount of fields aren't showing up in MapServer for >>>>>> >>>>>> me. I use >>>>>> >>>>>>>> the following PHP script to dump out all layers and their >>>>>> >>>>>> fields for >>>>>> >>>>>>>> debugging. Does MapServer have problems with certain data >>>>>> >>>>>> types or >>>>>> >>>>>>>> certain values in a row? >>>>>>>> >>>>>>> >>>>>>> Are you using a tiled shapefile layer or is this a regular >>>>>> >>>>>> shapefile >>>>>> >>>>>>> layer? >>>>>>> >>>>>>> -- >>>>>>> ------------------------------------------------------------ >>>>>>> Daniel Morissette dmorissette at dmsolutions.ca >>>>>>> DM Solutions Group http://www.dmsolutions.ca/ >>>>>>> ------------------------------------------------------------ >>>>>>> >>>>>> >>>>> >>> >>> >>> -- >>> Jeff McKenna >>> GIS Specialist >>> DM Solutions Group Inc. >>> http://www.dmsolutions.ca >>> > From w.blanken at GEON.NL Tue Dec 7 14:07:23 2004 From: w.blanken at GEON.NL (Wim Blanken) Date: Tue, 7 Dec 2004 23:07:23 +0100 Subject: Fw: [UMN_MAPSERVER-USERS] Problem with Windows Server 2003 Message-ID: Hello Pablo, Well, in the past when I got this error I just executed the mapserv executable with the -v command: mapserv -v In the case of an error an alert would come up with the name of the dll that it needed (just copy the missing one into system32 and it would work ok). Succes, Wim Blanken The Netherlands ----- Original Message ----- > From: "Pablo Toapanta" > To: > Sent: Monday, December 06, 2004 6:04 PM > Subject: [UMN_MAPSERVER-USERS] Problem with Windows Server 2003 > > >> Hi >> >> I?m trying to install Mapserver over Windows Server >> 2003, I had followed all the steps to install it, and >> allowed CGI in Web Server Extensions (IIS Manager), >> but when I test it I received this message: "CGI Error >> - The specified CGI application misbehaved by not >> returning a complete set of HTTP headers". >> >> Could anyone help me with this?? >> >> Thanks >> >> __________________________________________________ >> Do You Yahoo!? >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >> >> > From mapserver at GEOWORLD.DE Tue Dec 7 14:29:14 2004 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 7 Dec 2004 23:29:14 +0100 Subject: Shapefile field problem In-Reply-To: <147C5E86-489E-11D9-9E92-000A957A0F9C@vt.edu> Message-ID: Try adding a template tag to the layer section in your mapfile e.g. TEMPLATE "dummy.html" getNumResults() are now 1 Nicol Am Di, den 07.12.2004 schrieb Abe Gillespie um 23:19: > Ok, you've proven to me you can *force* MapServer to give you the names > of problem fields. But try this one (use the newly edited DBF file): > > > > dl("php_mapscript.so"); > $map = ms_newMapObj("/Users/abe/Sites/ms_test/test.map"); > for ($i = 0; $i < $map->numlayers; $i++) > { > $l = $map->getLayer($i); > putBrLine($l->name.", type: ".$l->type); > > // Query test. > @$l->queryByAttributes("CITY", "/foo/", MS_MULTIPLE); > putBrLine($l->getNumResults()); > > if ($l->data != null) // Shape files with data. > { > $l->open(); > $s = $l->getShape(-1, 0); > $vals = $s->values; > putBrLine("field count: ".count($vals)); > /* > while ($fld = current($vals)) > { > putBrLine("  ".key($vals)); > next($vals); > } > */ > foreach ($vals as $key => $val) { > printf ("%s -- %s
\n", $key, $val); > } > $s->free(); > $l->close(); > } > } > > function putBrLine($line) > { > echo "$line
\n"; > } > ?> > > > > For me I get 0 as the number of results but you can clearly see the > value getting dumped out. Barring I didn't screw up the query, this is > a problem no? > > Thanks as always. > -Abe > > > ______________________________________________________________________ > On Dec 7, 2004, at 4:30 PM, Nicol Hermann wrote: > > > Hi Abe, > > > > i modified your script. > > Instead of 'while' i use the following 'foreach' loop. > > > > foreach ($vals as $key => $val) { > > printf ("%s -- %s\n", $key, $val); > > } > > > > This statement returns all 54 fields of your shapefile. > > > > HTH > > Nicol > > > > > > Am Di, den 07.12.2004 schrieb Abe Gillespie um 22:17: > >> The problem with adding a value for that attribute corrupts the test > >> case. Can you try the following PHP code and compare your results > >> with > >> mine? > >> > >> [php] > >> > >> > >> >> dl("php_mapscript.so"); > >> $map = > >> ms_newMapObj("/Users/abe/Sites/ms_test/test.map"); > >> for ($i = 0; $i < $map->numlayers; $i++) > >> { > >> $l = $map->getLayer($i); > >> putBrLine($l->name.", type: ".$l->type); > >> if ($l->data != null) // Shape files with > >> data. > >> { > >> $l->open(); > >> $s = $l->getShape(-1, 0); > >> $vals = $s->values; > >> putBrLine("field count: > >> ".count($vals)); > >> while ($fld = current($vals)) > >> { > >> > >> putBrLine("  ".key($vals)); > >> next($vals); > >> } > >> $s->free(); > >> $l->close(); > >> } > >> } > >> > >> function putBrLine($line) > >> { > >> echo "$line
?n"; > >> } > >> ?> > >> > >> > >> > >> [output] > >> test, type: 2 > >> field count: 54 > >> ACAD_TEXT > >> COUNT > >> ACCOUNT_NU > >> > >> See how there's a discrepancy between the field count and the number > >> of > >> field names that get dumped? From my experience, the field just after > >> ACCOUNT_NU has a NULL value. I see the same behavior on my Mac OS X > >> and Debian Linux installs. > >> > >> -Abe > >> > >> On Dec 7, 2004, at 2:15 PM, Jeff McKenna wrote: > >> > >>> Abe, > >>> > >>> I made a tiny mapfile with your test shp, and i see labels properly > >>> in > >>> MapServer with it. I added an attribute in the "OWNERS_NAM" field > >>> and > >>> I successfully displayed it in mapserver. Am i misunderstanding your > >>> problem somehow? (mapfile below) > >>> > >>> jeff > >>> > >>> MAP > >>> NAME "field-test" > >>> STATUS ON > >>> EXTENT 1260565.500000 941362.000000 1261605.125000 942198.625000 > >>> SIZE 400 300 > >>> SHAPEPATH "D:/DMSG/projects/mapserver-bugs/" > >>> SYMBOLSET "../etc/symbols.sym" > >>> FONTSET "../etc/fonts.txt" > >>> IMAGETYPE gif > >>> IMAGECOLOR 255 255 255 > >>> UNITS METERS > >>> WEB > >>> IMAGEPATH "/ms4w/tmp/ms_tmp/" > >>> IMAGEURL "/ms_tmp/" > >>> METADATA > >>> END > >>> END > >>> > >>> OUTPUTFORMAT > >>> NAME "gif" > >>> MIMETYPE "image/gif" > >>> DRIVER "GD/GIF" > >>> EXTENSION "gif" > >>> IMAGEMODE PC256 > >>> TRANSPARENT FALSE > >>> END > >>> > >>> LAYER > >>> NAME test > >>> TYPE POLYGON > >>> STATUS ON > >>> DATA test > >>> LabelItem "OWNERS_NAM" > >>> CLASS > >>> NAME "ttt" > >>> COLOR 0 255 0 > >>> LABEL > >>> COLOR 255 0 0 > >>> FONT fritqat-italic > >>> TYPE truetype > >>> SIZE 8 > >>> POSITION AUTO > >>> PARTIALS FALSE > >>> OUTLINECOLOR 255 255 255 > >>> END > >>> END > >>> END # Layer > >>> > >>> END > >>> > >>> > >>> > >>> > >>> > >>> Abe Gillespie wrote: > >>>> I do appreciate the help, but I'm not looking for an "external to > >>>> MapServer" way of getting access to my DBF field values. I just use > >>>> my > >>>> PHP script to *reveal* problematic shapefile fields. When there is > >>>> a > >>>> problem it's unusable to MapServer! I.e.: I can't use the field for > >>>> labelling. > >>>> -Abe > >>>> On Dec 7, 2004, at 11:27 AM, Ryan, Adam wrote: > >>>>> Abe, > >>>>> > >>>>> Here's a routine I use to get the header information (field info) > >>>>> from > >>>>> a dbf > >>>>> file. > >>>>> > >>>>> // ========== iDbf_fields ============== > >>>>> // $f is a dbf file path, returns an array of field arrays > >>>>> function iDbf_fields($f){ > >>>>> $h = fopen($f,"rb"); > >>>>> $a = > >>>>> unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/ > >>>>> srecsize",fread($h,12)); > >>>>> fread($h,20); //skip some reserved space > >>>>> for($i=0;$i<($a["headsize"]-33)/32;$i++){ > >>>>> $fa = array(); > >>>>> $fname = trim(fread($h,11)); > >>>>> $fa["type"] = fread($h,1); > >>>>> fread($h,4); > >>>>> $fa = > >>>>> array_merge($fa,unpack("Clen/Cpre",fread($h,2))); > >>>>> fread($h,14); > >>>>> $flds[$fname] = $fa; > >>>>> } > >>>>> fclose($h); > >>>>> return $flds; > >>>>> } > >>>>> > >>>>> When I generate a result table I'll go through the array like this: > >>>>> ($so is > >>>>> the shape Object) > >>>>> > >>>>> foreach($flds as $fname => $fA){ > >>>>> $val = $so->values[$fname]; > >>>>> if ($val==null)$val=" "; > >>>>> $val = str_replace(" "," > >>>>>  ",$val); > >>>>> if ($fA["type"]=="D"){$val = > >>>>> substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} > >>>>> echo "$val";} > >>>>> } > >>>>> > >>>>> > >>>>> Cheers to all, > >>>>> > >>>>> Adam > >>>>> > >>>>>> -----Original Message----- > >>>>>> From: Abe Gillespie [mailto:agillesp at VT.EDU] > >>>>>> Sent: Monday, December 06, 2004 5:14 PM > >>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU > >>>>>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem > >>>>>> > >>>>>> > >>>>>> It's a regular shapefile. I think I've mostly narrowed it > >>>>>> down. It seems to me (though I may be completely off) that > >>>>>> MapServer loads the first record of the DBF in order to get > >>>>>> the field definitions. If the first record has a string > >>>>>> field and the value is zero length it won't give me the field > >>>>>> (though the field count is always correct). In addition, it > >>>>>> won't give me any fields after that either. If, however, I > >>>>>> make sure that field has some value (a dash, an "x", > >>>>>> whatever) then the field definition will come in correctly. > >>>>>> I still haven't narrowed down a problematic number field > >>>>>> though. Mind you, this is all done in MapServer PHP v. 4.2.0. > >>>>>> > >>>>>> -Abe > >>>>>> > >>>>>> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: > >>>>>> > >>>>>>> Abe Gillespie wrote: > >>>>>>> > >>>>>>>> A good amount of fields aren't showing up in MapServer for > >>>>>> > >>>>>> me. I use > >>>>>> > >>>>>>>> the following PHP script to dump out all layers and their > >>>>>> > >>>>>> fields for > >>>>>> > >>>>>>>> debugging. Does MapServer have problems with certain data > >>>>>> > >>>>>> types or > >>>>>> > >>>>>>>> certain values in a row? > >>>>>>>> > >>>>>>> > >>>>>>> Are you using a tiled shapefile layer or is this a regular > >>>>>> > >>>>>> shapefile > >>>>>> > >>>>>>> layer? > >>>>>>> > >>>>>>> -- > >>>>>>> ------------------------------------------------------------ > >>>>>>> Daniel Morissette dmorissette at dmsolutions.ca > >>>>>>> DM Solutions Group http://www.dmsolutions.ca/ > >>>>>>> ------------------------------------------------------------ > >>>>>>> > >>>>>> > >>>>> > >>> > >>> > >>> -- > >>> Jeff McKenna > >>> GIS Specialist > >>> DM Solutions Group Inc. > >>> http://www.dmsolutions.ca > >>> > > -- \\:// (o -) Dipl.-Geogr. Nicol Hermann -------ooO-(_)-Ooo----------------------------------------------- Chattenstra?e 67 .oooO 55130 Mainz ( ) Oooo. Tel. 06131/6007550 ---\ (----( )--------------------------------------------------- \_) ) / http://www.nicol.info (_/ E-Mail: nicol at nicol.info WWW-Tip! -------- Geographisches Informationssystem http://www.geoworld.de/ From agillesp at VT.EDU Tue Dec 7 14:52:41 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 7 Dec 2004 17:52:41 -0500 Subject: Shapefile field problem In-Reply-To: <1102458554.3982.40.camel@katrin> Message-ID: Dang it, dang it. You're right, I forgot the darned template tag. That gets me a lot. Well geez, I swear I've had worse problems with this. Just can't seem to get it right now. Maybe I'll come across something more concrete as I continue on this project. Anyways, would the way you iterate through the fields be considered a "work around." I.e.: should the fields of the values array be able to be iterated via either method? Thanks for all the help. -Abe On Dec 7, 2004, at 5:29 PM, Nicol Hermann wrote: > Try adding a template tag to the layer section in your mapfile > e.g. > TEMPLATE "dummy.html" > > getNumResults() are now 1 > > Nicol > > Am Di, den 07.12.2004 schrieb Abe Gillespie um 23:19: >> Ok, you've proven to me you can *force* MapServer to give you the >> names >> of problem fields. But try this one (use the newly edited DBF file): >> >> >> >> > dl("php_mapscript.so"); >> $map = >> ms_newMapObj("/Users/abe/Sites/ms_test/test.map"); >> for ($i = 0; $i < $map->numlayers; $i++) >> { >> $l = $map->getLayer($i); >> putBrLine($l->name.", type: ".$l->type); >> >> // Query test. >> @$l->queryByAttributes("CITY", "/foo/", >> MS_MULTIPLE); >> putBrLine($l->getNumResults()); >> >> if ($l->data != null) // Shape files with data. >> { >> $l->open(); >> $s = $l->getShape(-1, 0); >> $vals = $s->values; >> putBrLine("field count: ".count($vals)); >> /* >> while ($fld = current($vals)) >> { >> >> putBrLine("  ".key($vals)); >> next($vals); >> } >> */ >> foreach ($vals as $key => $val) { >> printf ("%s -- %s
\n", $key, >> $val); >> } >> $s->free(); >> $l->close(); >> } >> } >> >> function putBrLine($line) >> { >> echo "$line
\n"; >> } >> ?> >> >> >> >> For me I get 0 as the number of results but you can clearly see the >> value getting dumped out. Barring I didn't screw up the query, this >> is >> a problem no? >> >> Thanks as always. >> -Abe >> >> >> ______________________________________________________________________ >> On Dec 7, 2004, at 4:30 PM, Nicol Hermann wrote: >> >>> Hi Abe, >>> >>> i modified your script. >>> Instead of 'while' i use the following 'foreach' loop. >>> >>> foreach ($vals as $key => $val) { >>> printf ("%s -- %s\n", $key, $val); >>> } >>> >>> This statement returns all 54 fields of your shapefile. >>> >>> HTH >>> Nicol >>> >>> >>> Am Di, den 07.12.2004 schrieb Abe Gillespie um 22:17: >>>> The problem with adding a value for that attribute corrupts the test >>>> case. Can you try the following PHP code and compare your results >>>> with >>>> mine? >>>> >>>> [php] >>>> >>>> >>>> >>> dl("php_mapscript.so"); >>>> $map = >>>> ms_newMapObj("/Users/abe/Sites/ms_test/test.map"); >>>> for ($i = 0; $i < $map->numlayers; $i++) >>>> { >>>> $l = $map->getLayer($i); >>>> putBrLine($l->name.", type: ".$l->type); >>>> if ($l->data != null) // Shape files with >>>> data. >>>> { >>>> $l->open(); >>>> $s = $l->getShape(-1, 0); >>>> $vals = $s->values; >>>> putBrLine("field count: >>>> ".count($vals)); >>>> while ($fld = current($vals)) >>>> { >>>> >>>> putBrLine("  ".key($vals)); >>>> next($vals); >>>> } >>>> $s->free(); >>>> $l->close(); >>>> } >>>> } >>>> >>>> function putBrLine($line) >>>> { >>>> echo "$line
?n"; >>>> } >>>> ?> >>>> >>>> >>>> >>>> [output] >>>> test, type: 2 >>>> field count: 54 >>>> ACAD_TEXT >>>> COUNT >>>> ACCOUNT_NU >>>> >>>> See how there's a discrepancy between the field count and the number >>>> of >>>> field names that get dumped? From my experience, the field just >>>> after >>>> ACCOUNT_NU has a NULL value. I see the same behavior on my Mac OS X >>>> and Debian Linux installs. >>>> >>>> -Abe >>>> >>>> On Dec 7, 2004, at 2:15 PM, Jeff McKenna wrote: >>>> >>>>> Abe, >>>>> >>>>> I made a tiny mapfile with your test shp, and i see labels properly >>>>> in >>>>> MapServer with it. I added an attribute in the "OWNERS_NAM" field >>>>> and >>>>> I successfully displayed it in mapserver. Am i misunderstanding >>>>> your >>>>> problem somehow? (mapfile below) >>>>> >>>>> jeff >>>>> >>>>> MAP >>>>> NAME "field-test" >>>>> STATUS ON >>>>> EXTENT 1260565.500000 941362.000000 1261605.125000 942198.625000 >>>>> SIZE 400 300 >>>>> SHAPEPATH "D:/DMSG/projects/mapserver-bugs/" >>>>> SYMBOLSET "../etc/symbols.sym" >>>>> FONTSET "../etc/fonts.txt" >>>>> IMAGETYPE gif >>>>> IMAGECOLOR 255 255 255 >>>>> UNITS METERS >>>>> WEB >>>>> IMAGEPATH "/ms4w/tmp/ms_tmp/" >>>>> IMAGEURL "/ms_tmp/" >>>>> METADATA >>>>> END >>>>> END >>>>> >>>>> OUTPUTFORMAT >>>>> NAME "gif" >>>>> MIMETYPE "image/gif" >>>>> DRIVER "GD/GIF" >>>>> EXTENSION "gif" >>>>> IMAGEMODE PC256 >>>>> TRANSPARENT FALSE >>>>> END >>>>> >>>>> LAYER >>>>> NAME test >>>>> TYPE POLYGON >>>>> STATUS ON >>>>> DATA test >>>>> LabelItem "OWNERS_NAM" >>>>> CLASS >>>>> NAME "ttt" >>>>> COLOR 0 255 0 >>>>> LABEL >>>>> COLOR 255 0 0 >>>>> FONT fritqat-italic >>>>> TYPE truetype >>>>> SIZE 8 >>>>> POSITION AUTO >>>>> PARTIALS FALSE >>>>> OUTLINECOLOR 255 255 255 >>>>> END >>>>> END >>>>> END # Layer >>>>> >>>>> END >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Abe Gillespie wrote: >>>>>> I do appreciate the help, but I'm not looking for an "external to >>>>>> MapServer" way of getting access to my DBF field values. I just >>>>>> use >>>>>> my >>>>>> PHP script to *reveal* problematic shapefile fields. When there >>>>>> is >>>>>> a >>>>>> problem it's unusable to MapServer! I.e.: I can't use the field >>>>>> for >>>>>> labelling. >>>>>> -Abe >>>>>> On Dec 7, 2004, at 11:27 AM, Ryan, Adam wrote: >>>>>>> Abe, >>>>>>> >>>>>>> Here's a routine I use to get the header information (field info) >>>>>>> from >>>>>>> a dbf >>>>>>> file. >>>>>>> >>>>>>> // ========== iDbf_fields ============== >>>>>>> // $f is a dbf file path, returns an array of field arrays >>>>>>> function iDbf_fields($f){ >>>>>>> $h = fopen($f,"rb"); >>>>>>> $a = >>>>>>> unpack("cversion/cyy/cmm/cdd/inumrecs/sheadsize/ >>>>>>> srecsize",fread($h,12)); >>>>>>> fread($h,20); //skip some reserved space >>>>>>> for($i=0;$i<($a["headsize"]-33)/32;$i++){ >>>>>>> $fa = array(); >>>>>>> $fname = trim(fread($h,11)); >>>>>>> $fa["type"] = fread($h,1); >>>>>>> fread($h,4); >>>>>>> $fa = >>>>>>> array_merge($fa,unpack("Clen/Cpre",fread($h,2))); >>>>>>> fread($h,14); >>>>>>> $flds[$fname] = $fa; >>>>>>> } >>>>>>> fclose($h); >>>>>>> return $flds; >>>>>>> } >>>>>>> >>>>>>> When I generate a result table I'll go through the array like >>>>>>> this: >>>>>>> ($so is >>>>>>> the shape Object) >>>>>>> >>>>>>> foreach($flds as $fname => $fA){ >>>>>>> $val = $so->values[$fname]; >>>>>>> if ($val==null)$val=" "; >>>>>>> $val = str_replace(" "," >>>>>>>  ",$val); >>>>>>> if ($fA["type"]=="D"){$val = >>>>>>> substr($val,4,2)."-".substr($val,6,2)."-".substr($val,0,4);} >>>>>>> echo "$val";} >>>>>>> } >>>>>>> >>>>>>> >>>>>>> Cheers to all, >>>>>>> >>>>>>> Adam >>>>>>> >>>>>>>> -----Original Message----- >>>>>>>> From: Abe Gillespie [mailto:agillesp at VT.EDU] >>>>>>>> Sent: Monday, December 06, 2004 5:14 PM >>>>>>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>>>>>> Subject: Re: [UMN_MAPSERVER-USERS] Shapefile field problem >>>>>>>> >>>>>>>> >>>>>>>> It's a regular shapefile. I think I've mostly narrowed it >>>>>>>> down. It seems to me (though I may be completely off) that >>>>>>>> MapServer loads the first record of the DBF in order to get >>>>>>>> the field definitions. If the first record has a string >>>>>>>> field and the value is zero length it won't give me the field >>>>>>>> (though the field count is always correct). In addition, it >>>>>>>> won't give me any fields after that either. If, however, I >>>>>>>> make sure that field has some value (a dash, an "x", >>>>>>>> whatever) then the field definition will come in correctly. >>>>>>>> I still haven't narrowed down a problematic number field >>>>>>>> though. Mind you, this is all done in MapServer PHP v. 4.2.0. >>>>>>>> >>>>>>>> -Abe >>>>>>>> >>>>>>>> On Dec 6, 2004, at 6:15 PM, Daniel Morissette wrote: >>>>>>>> >>>>>>>>> Abe Gillespie wrote: >>>>>>>>> >>>>>>>>>> A good amount of fields aren't showing up in MapServer for >>>>>>>> >>>>>>>> me. I use >>>>>>>> >>>>>>>>>> the following PHP script to dump out all layers and their >>>>>>>> >>>>>>>> fields for >>>>>>>> >>>>>>>>>> debugging. Does MapServer have problems with certain data >>>>>>>> >>>>>>>> types or >>>>>>>> >>>>>>>>>> certain values in a row? >>>>>>>>>> >>>>>>>>> >>>>>>>>> Are you using a tiled shapefile layer or is this a regular >>>>>>>> >>>>>>>> shapefile >>>>>>>> >>>>>>>>> layer? >>>>>>>>> >>>>>>>>> -- >>>>>>>>> ------------------------------------------------------------ >>>>>>>>> Daniel Morissette dmorissette at dmsolutions.ca >>>>>>>>> DM Solutions Group http://www.dmsolutions.ca/ >>>>>>>>> ------------------------------------------------------------ >>>>>>>>> >>>>>>>> >>>>>>> >>>>> >>>>> >>>>> -- >>>>> Jeff McKenna >>>>> GIS Specialist >>>>> DM Solutions Group Inc. >>>>> http://www.dmsolutions.ca >>>>> >>> > -- > \\:// > (o -) Dipl.-Geogr. Nicol Hermann > -------ooO-(_)-Ooo----------------------------------------------- > Chattenstra?e 67 > .oooO 55130 Mainz > ( ) Oooo. Tel. 06131/6007550 > ---\ (----( )--------------------------------------------------- > \_) ) / http://www.nicol.info > (_/ E-Mail: nicol at nicol.info > > > WWW-Tip! > -------- > Geographisches Informationssystem > http://www.geoworld.de/ > From tchaddad at CSHORE.COM Tue Dec 7 14:51:46 2004 From: tchaddad at CSHORE.COM (TC Haddad) Date: Tue, 7 Dec 2004 16:51:46 -0600 Subject: WMS Server - URL question on IIS Message-ID: this feels like a pretty ignorant question, but i'm not that familiar with IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box which we have GetMap and GetCapabilities requests working on. now we're interested in masking the URL a bit so it's a bit tidier. in the WMS-How-To there is a ASP script provided (see below) - but where does the script go in IIS if we want to implement this option? Any help would be great, tanya MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ASP script example from WMSServerHow-To: http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresourceurl <% Server.ScriptTimeout = 360 strRequest = Request.ServerVariables("QUERY_STRING") strURL = "http://myserver/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest Dim objHTTP Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open "GET", strURL, false objHTTP.send "" Response.ContentType = objHTTP.getResponseHeader("content-type") Response.BinaryWrite objHTTP.responseBody Set objHTTP = Nothing %> From richard.greenwood at GMAIL.COM Tue Dec 7 14:59:48 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 7 Dec 2004 15:59:48 -0700 Subject: WMS Server - URL question on IIS In-Reply-To: Message-ID: On Tue, 7 Dec 2004 16:51:46 -0600, TC Haddad wrote: > this feels like a pretty ignorant question, but i'm not that familiar with > IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box which we > have GetMap and GetCapabilities requests working on. now we're interested > in masking the URL a bit so it's a bit tidier. in the WMS-How-To there is a > ASP script provided (see below) - but where does the script go in IIS if we > want to implement this option? Any help would be great, > tanya > > MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > ASP script example from WMSServerHow-To: > > http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresourceurl > > <% > Server.ScriptTimeout = 360 > strRequest = Request.ServerVariables("QUERY_STRING") > strURL = "http://myserver/cgi-bin/mapserv.exe? > map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest > Dim objHTTP > Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") > objHTTP.open "GET", strURL, false > objHTTP.send "" > Response.ContentType = objHTTP.getResponseHeader("content-type") > Response.BinaryWrite objHTTP.responseBody > Set objHTTP = Nothing > %> > Save it as a 'default.asp' in an appropriate directory. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sirronj at PACBELL.NET Tue Dec 7 15:03:12 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 7 Dec 2004 15:03:12 -0800 Subject: Just trying to get a better understanding. Message-ID: I have this simple shapefile: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( 6862716.092, 1226032.862, 0, 0) to ( 6862716.092, 1226032.862, 0, 0) ( 6862716.092, 1226032.862, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:( 7249022.321, 1677559.623, 0, 0) to ( 7249022.321, 1677559.623, 0, 0) ( 7249022.321, 1677559.623, 0, 0) And it relates to this dbf file: 7750718.72:1391592.67:Fred Flinstone 6471392.9:2304680.12:Jeff Jackson 8433025.83:282843.63:Trueman Polygonas 6862716.09:1226032.86:Alfred Espinoza 7249022.32:1677559.62:Jim Apple I can bring this layer into place over my main map file and I see the points. What I do not see is the relationship between the xy coordinates in the dbf file and the Bounds in the shape file. Can someone give me an understanding of this? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Tue Dec 7 15:06:02 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 7 Dec 2004 15:06:02 -0800 Subject: Just trying to get a better understanding. Message-ID: One other thing in relationship to this: I see the relationship between these two files - what I should have said is how does the point in this shape file get related to polygon layer over which it is placed: Here is a small piece of the polygon layer that my point layer is being set on: Shape:390 (Polygon) nVertices=79, nParts=1 Bounds:( 7091270.672, 2203412.020, 0, 0) to ( 7114687.249, 2225095.474, 0, 0) ( 7106539.625, 2223683.529, 0, 0) Ring ( 7107073.404, 2224036.544, 0, 0) ( 7109516.272, 2224755.101, 0, 0) ( 7111026.701, 2225020.821, 0, 0) ( 7113357.724, 2225095.474, 0, 0) ( 7114229.843, 2224828.220, 0, 0) ( 7114687.249, 2224090.517, 0, 0) ( 7114197.375, 2221750.336, 0, 0) ( 7113287.876, 2221431.009, 0, 0) ( 7110975.713, 2221240.198, 0, 0) ( 7111010.904, 2220374.664, 0, 0) ( 7111414.635, 2220013.530, 0, 0) ( 7111238.804, 2219054.601, 0, 0) ( 7109979.647, 2217948.346, 0, 0) ( 7109089.719, 2217859.091, 0, 0) ( 7108514.557, 2217488.765, 0, 0) ( 7108407.442, 2217036.591, 0, 0) ( 7108464.643, 2216304.490, 0, 0) ( 7108908.967, 2215780.978, 0, 0) ( 7108900.157, 2215022.703, 0, 0) ( 7108778.988, 2214844.903, 0, 0) ( 7107349.702, 2213889.993, 0, 0) ( 7106028.775, 2214103.545, 0, 0) ( 7105339.672, 2213997.179, 0, 0) ( 7104579.906, 2213680.968, 0, 0) ( 7103998.374, 2213202.054, 0, 0) ( 7103556.689, 2210076.635, 0, 0) ( 7103582.541, 2209252.433, 0, 0) ( 7103309.865, 2207988.811, 0, 0) ( 7103052.938, 2207524.770, 0, 0) ( 7101955.782, 2207001.556, 0, 0) ( 7101705.036, 2206646.581, 0, 0) ( 7101444.072, 2205616.007, 0, 0) I have this simple shapefile: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( 6862716.092, 1226032.862, 0, 0) to ( 6862716.092, 1226032.862, 0, 0) ( 6862716.092, 1226032.862, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:( 7249022.321, 1677559.623, 0, 0) to ( 7249022.321, 1677559.623, 0, 0) ( 7249022.321, 1677559.623, 0, 0) And it relates to this dbf file: 7750718.72:1391592.67:Fred Flinstone 6471392.9:2304680.12:Jeff Jackson 8433025.83:282843.63:Trueman Polygonas 6862716.09:1226032.86:Alfred Espinoza 7249022.32:1677559.62:Jim Apple I can bring this layer into place over my main map file and I see the points. What I do not see is the relationship between the xy coordinates in the dbf file and the Bounds in the shape file. Can someone give me an understanding of this? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From richard.greenwood at GMAIL.COM Tue Dec 7 15:07:14 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 7 Dec 2004 16:07:14 -0700 Subject: jbox and panning In-Reply-To: Message-ID: On Mon, 6 Dec 2004 12:43:29 -0500, Arnold, Micheal B. wrote: > Thanks Richard. Any idea how I would calculate the map extents using > javascript? I know that the setbox_handler function has the minx, miny, > maxx, and maxy variables, but I can't figure out how to calculate the > extents. Check out the recent thread titled "Formula for converting pixels to long lat points". Does that answer your question? If not, maybe detail your question a little more. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Tue Dec 7 15:10:34 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 7 Dec 2004 16:10:34 -0700 Subject: jBox.boxoff() In-Reply-To: <42529C60130B66428EE04284C47C1A270139FA95@enhbgpri17.backup> Message-ID: On Tue, 7 Dec 2004 15:46:05 -0500, Andhare, Manjiri wrote: > If I do as: > document.jBox.boxoff(); > Then I get the error message for that line as: > Failure to reset_handler('jBox',-1,-1,-1,-1) > I really appreciate the response. Do you have a javascript reset_handler() function defined within your page? It doesn't have to do anything, but it's got to be there because jBox is calling it. For example: function reset_handler(name, minx, miny, maxx, maxy) { } Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From ealpert at DIGITALGLOBE.COM Tue Dec 7 16:03:47 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Dec 2004 17:03:47 -0700 Subject: Just trying to get a better understanding. Message-ID: The contents of the dbf file is just attributes for the shapes. They have no meaning what-so-ever with respect to mapping the data. Whoever wrote the dbf file decided to put the coordinates of the point into the dbf. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Tuesday, December 07, 2004 4:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Just trying to get a better understanding. I have this simple shapefile: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( 6862716.092, 1226032.862, 0, 0) to ( 6862716.092, 1226032.862, 0, 0) ( 6862716.092, 1226032.862, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:( 7249022.321, 1677559.623, 0, 0) to ( 7249022.321, 1677559.623, 0, 0) ( 7249022.321, 1677559.623, 0, 0) And it relates to this dbf file: 7750718.72:1391592.67:Fred Flinstone 6471392.9:2304680.12:Jeff Jackson 8433025.83:282843.63:Trueman Polygonas 6862716.09:1226032.86:Alfred Espinoza 7249022.32:1677559.62:Jim Apple I can bring this layer into place over my main map file and I see the points. What I do not see is the relationship between the xy coordinates in the dbf file and the Bounds in the shape file. Can someone give me an understanding of this? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Tue Dec 7 16:15:40 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 7 Dec 2004 16:15:40 -0800 Subject: Just trying to get a better understanding. In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B1966@COMAIL01.digitalglobe.com> Message-ID: Ethan, What I have are two layers one with the zip California file and I was able to place another layer of points over it using the utility fGIS. I there is no relation at all then how does the point shape file know that it should be putting its points over a specific place in the zip shape file? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Tuesday, December 07, 2004 4:04 PM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Just trying to get a better understanding. The contents of the dbf file is just attributes for the shapes. They have no meaning what-so-ever with respect to mapping the data. Whoever wrote the dbf file decided to put the coordinates of the point into the dbf. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Tuesday, December 07, 2004 4:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Just trying to get a better understanding. I have this simple shapefile: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( 6862716.092, 1226032.862, 0, 0) to ( 6862716.092, 1226032.862, 0, 0) ( 6862716.092, 1226032.862, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:( 7249022.321, 1677559.623, 0, 0) to ( 7249022.321, 1677559.623, 0, 0) ( 7249022.321, 1677559.623, 0, 0) And it relates to this dbf file: 7750718.72:1391592.67:Fred Flinstone 6471392.9:2304680.12:Jeff Jackson 8433025.83:282843.63:Trueman Polygonas 6862716.09:1226032.86:Alfred Espinoza 7249022.32:1677559.62:Jim Apple I can bring this layer into place over my main map file and I see the points. What I do not see is the relationship between the xy coordinates in the dbf file and the Bounds in the shape file. Can someone give me an understanding of this? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From jacob.delfos at MAUNSELL.COM Tue Dec 7 16:14:42 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 8 Dec 2004 08:14:42 +0800 Subject: Just trying to get a better understanding. Message-ID: Joseph, A shapefile can hold any (and only one) of three types of object: point, line or polygon. The shape objects are stored in a sequential order of some sort (normally the order in which they have been created), and the DBF file holds the attribute in the same order. So the link between the spatial object and the attribute is simply sequential. I don't think it makes use of bounding rectangles (except if you create a spatial index, correct me if I'm wrong). If you are able to open up the DBF file in Excel, you will see it's just a table. The .shp and .shx file hold the spatial component for each row. Hope this is what you meant. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: 8 December 2004 07:03 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Just trying to get a better understanding. I have this simple shapefile: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( 6862716.092, 1226032.862, 0, 0) to ( 6862716.092, 1226032.862, 0, 0) ( 6862716.092, 1226032.862, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:( 7249022.321, 1677559.623, 0, 0) to ( 7249022.321, 1677559.623, 0, 0) ( 7249022.321, 1677559.623, 0, 0) And it relates to this dbf file: 7750718.72:1391592.67:Fred Flinstone 6471392.9:2304680.12:Jeff Jackson 8433025.83:282843.63:Trueman Polygonas 6862716.09:1226032.86:Alfred Espinoza 7249022.32:1677559.62:Jim Apple I can bring this layer into place over my main map file and I see the points. What I do not see is the relationship between the xy coordinates in the dbf file and the Bounds in the shape file. Can someone give me an understanding of this? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Tue Dec 7 16:22:05 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 7 Dec 2004 17:22:05 -0700 Subject: Just trying to get a better understanding. Message-ID: http://www.esri.com/library/whitepapers/pdfs/shapefile.pdf -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Tuesday, December 07, 2004 5:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Just trying to get a better understanding. Ethan, What I have are two layers one with the zip California file and I was able to place another layer of points over it using the utility fGIS. I there is no relation at all then how does the point shape file know that it should be putting its points over a specific place in the zip shape file? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Tuesday, December 07, 2004 4:04 PM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] Just trying to get a better understanding. The contents of the dbf file is just attributes for the shapes. They have no meaning what-so-ever with respect to mapping the data. Whoever wrote the dbf file decided to put the coordinates of the point into the dbf. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Tuesday, December 07, 2004 4:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Just trying to get a better understanding. I have this simple shapefile: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) Shape:3 (Point) nVertices=1, nParts=0 Bounds:( 6862716.092, 1226032.862, 0, 0) to ( 6862716.092, 1226032.862, 0, 0) ( 6862716.092, 1226032.862, 0, 0) Shape:4 (Point) nVertices=1, nParts=0 Bounds:( 7249022.321, 1677559.623, 0, 0) to ( 7249022.321, 1677559.623, 0, 0) ( 7249022.321, 1677559.623, 0, 0) And it relates to this dbf file: 7750718.72:1391592.67:Fred Flinstone 6471392.9:2304680.12:Jeff Jackson 8433025.83:282843.63:Trueman Polygonas 6862716.09:1226032.86:Alfred Espinoza 7249022.32:1677559.62:Jim Apple I can bring this layer into place over my main map file and I see the points. What I do not see is the relationship between the xy coordinates in the dbf file and the Bounds in the shape file. Can someone give me an understanding of this? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ed at TOPOZONE.COM Tue Dec 7 16:36:33 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 7 Dec 2004 19:36:33 -0500 Subject: WMS Server - URL question on IIS Message-ID: Tanya - That code needs to go wherever you want the resource to live - wherever you want the URL to point. If you saved it in the root of your Web directory and you named it "obfuscate.asp" then your WMS URL might be: http://www.mymapserver.com/obfuscate.asp As Rich pointed out, IIS is normally configured to look for a file named default.asp in a directory, and so it will automagically open that file if you give IIS a URL that points to a directory. Therefore, if you saved this ASP code in the root of your Web directory and named it "default.asp" as he suggests, you could use either: http://www.mymapserver.com/default.asp OR http://www.mymapserver.com As your online resource URL. Assuming, of course, that you replace www.mymapserver.com with your server's name. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of TC Haddad Sent: Tuesday, December 07, 2004 5:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Server - URL question on IIS this feels like a pretty ignorant question, but i'm not that familiar with IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box which we have GetMap and GetCapabilities requests working on. now we're interested in masking the URL a bit so it's a bit tidier. in the WMS-How-To there is a ASP script provided (see below) - but where does the script go in IIS if we want to implement this option? Any help would be great, tanya MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE ASP script example from WMSServerHow-To: http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresourceu rl <% Server.ScriptTimeout = 360 strRequest = Request.ServerVariables("QUERY_STRING") strURL = "http://myserver/cgi-bin/mapserv.exe? map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest Dim objHTTP Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") objHTTP.open "GET", strURL, false objHTTP.send "" Response.ContentType = objHTTP.getResponseHeader("content-type") Response.BinaryWrite objHTTP.responseBody Set objHTTP = Nothing %> From TCHaddad at CSHORE.COM Tue Dec 7 16:45:31 2004 From: TCHaddad at CSHORE.COM (TCHaddad) Date: Tue, 7 Dec 2004 19:45:31 -0500 Subject: WMS Server - URL question on IIS Message-ID: Tried Richard's suggestion and then edited the URL to this format: http://www.ourserver.com/path/default.asp?REQUEST=GetCapabilities http://www.ourserver.com/path/default.asp?REQUEST=GetMap&LAYERS=States&BBOX=-1607383.613942,-259884.526499,2359824.013095,2787988.445255&FORMAT=image/png&STYLES=&WIDTH=400&HEIGHT=300&VERSION=1.1.1 but we got the following server error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /path/default.asp, line 6 Invalid ProgID. So are we messing up the idea of the URLs, or is this something we need to/can correct on the server ? this is the long format of the URLs which do work: http://www.ourserver.com/path/mapserv.exe?map=D:\path\path\cgi-bin\atlas_wms.map&REQUEST=GetCapabilities http://www.ourserver.com/path/mapserv.exe?map=D:\path\path\cgi-bin\atlas_wms.map&REQUEST=GetMap&LAYERS=States&BBOX=-1607383.613942,-259884.526499,2359824.013095,2787988.445255&FORMAT=image/png&STYLES=&WIDTH=400&HEIGHT=300&VERSION=1.1.1 thanks for any ideas ... Tanya ---------- Original Message ---------------------------------- From: Richard Greenwood Reply-To: Richard Greenwood Date: Tue, 7 Dec 2004 15:59:48 -0700 >On Tue, 7 Dec 2004 16:51:46 -0600, TC Haddad wrote: >> this feels like a pretty ignorant question, but i'm not that familiar with >> IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box which we >> have GetMap and GetCapabilities requests working on. now we're interested >> in masking the URL a bit so it's a bit tidier. in the WMS-How-To there is a >> ASP script provided (see below) - but where does the script go in IIS if we >> want to implement this option? Any help would be great, >> tanya >> >> MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER >> SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS >> INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE >> >> ASP script example from WMSServerHow-To: >> >> http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresourceurl >> >> <% >> Server.ScriptTimeout = 360 >> strRequest = Request.ServerVariables("QUERY_STRING") >> strURL = "http://myserver/cgi-bin/mapserv.exe? >> map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest >> Dim objHTTP >> Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") >> objHTTP.open "GET", strURL, false >> objHTTP.send "" >> Response.ContentType = objHTTP.getResponseHeader("content-type") >> Response.BinaryWrite objHTTP.responseBody >> Set objHTTP = Nothing >> %> >> > >Save it as a 'default.asp' in an appropriate directory. > >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com > ________________________________________________________________ From saintsjd at YAHOO.COM Tue Dec 7 17:06:23 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Tue, 7 Dec 2004 17:06:23 -0800 Subject: moving to shared hosting In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B195C@COMAIL01.digitalglobe.com> Message-ID: Thanks for the input from all of you on how best to run php-mapscript on my shared host. Re-installing apache, php as cgi, and maintaining my own sercurity on those packages, however, seems too dificult and time consuming. I just noticed that there is also Python mapscript and It look as if it installs MUCH MUCH more easily than phpmapscript and offers simillar functionality. Is this true? In the long run learning python might be the simplest way to go. Am i right? Also, on an unrelated and nerdy note, I just successfully connected an test app based on mozilla firefox XUL interface language to mapserver. Zooms only right now. But it is a proof of concept for Rich Client Mapserver applications that could offer much potenial and "speed up" complex mapping applications. Thanks From ed at TOPOZONE.COM Tue Dec 7 17:54:59 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 7 Dec 2004 20:54:59 -0500 Subject: WMS Server - URL question on IIS Message-ID: Tanya - I'm starting to think that you really should know a bit more about ASP and IIS if you're going to try this route. It's not complicated, but it's really hard to implement and maintain a solution when you really know nothing at all about how it works. That error message means what it says - your ASP code is unable to create the MSXML2.ServerXMLHTTP object, presumably because it's not installed on your machine (the example doesn't say anything about finding it and installing it). You can start here, at the Microsoft KB article "Frequently Asked Questions about ServerXMLHTTP": http://support.microsoft.com/kb/290761/EN-US/ Which includes information on downloading, installing, and configuring your server to use this component. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of TCHaddad Sent: Tuesday, December 07, 2004 7:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] WMS Server - URL question on IIS Tried Richard's suggestion and then edited the URL to this format: http://www.ourserver.com/path/default.asp?REQUEST=GetCapabilities http://www.ourserver.com/path/default.asp?REQUEST=GetMap&LAYERS=States&B BOX=-1607383.613942,-259884.526499,2359824.013095,2787988.445255&FORMAT= image/png&STYLES=&WIDTH=400&HEIGHT=300&VERSION=1.1.1 but we got the following server error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed /path/default.asp, line 6 Invalid ProgID. So are we messing up the idea of the URLs, or is this something we need to/can correct on the server ? this is the long format of the URLs which do work: http://www.ourserver.com/path/mapserv.exe?map=D:\path\path\cgi-bin\atlas _wms.map&REQUEST=GetCapabilities http://www.ourserver.com/path/mapserv.exe?map=D:\path\path\cgi-bin\atlas _wms.map&REQUEST=GetMap&LAYERS=States&BBOX=-1607383.613942,-259884.52649 9,2359824.013095,2787988.445255&FORMAT=image/png&STYLES=&WIDTH=400&HEIGH T=300&VERSION=1.1.1 thanks for any ideas ... Tanya ---------- Original Message ---------------------------------- From: Richard Greenwood Reply-To: Richard Greenwood Date: Tue, 7 Dec 2004 15:59:48 -0700 >On Tue, 7 Dec 2004 16:51:46 -0600, TC Haddad wrote: >> this feels like a pretty ignorant question, but i'm not that familiar >> with IIS, and i'm hoping someone can help. we have a Win2k IIS 5 box >> which we have GetMap and GetCapabilities requests working on. now >> we're interested in masking the URL a bit so it's a bit tidier. in >> the WMS-How-To there is a ASP script provided (see below) - but where >> does the script go in IIS if we want to implement this option? Any >> help would be great, tanya >> >> MapServer version 4.2.2 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP >> OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE >> SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER >> SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL >> INPUT=SHAPEFILE >> >> ASP script example from WMSServerHow-To: >> >> http://mapserver.gis.umn.edu/doc42/wms-server-howto.html#onlineresour >> ceurl >> >> <% >> Server.ScriptTimeout = 360 >> strRequest = Request.ServerVariables("QUERY_STRING") >> strURL = "http://myserver/cgi-bin/mapserv.exe? >> map=C:\Inetpub\wwwroot\WMS\mymap.map&" & strRequest >> Dim objHTTP >> Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") >> objHTTP.open "GET", strURL, false >> objHTTP.send "" >> Response.ContentType = objHTTP.getResponseHeader("content-type") >> Response.BinaryWrite objHTTP.responseBody >> Set objHTTP = Nothing >> %> >> > >Save it as a 'default.asp' in an appropriate directory. > >-- >Richard Greenwood >richard.greenwood at gmail.com >www.greenwoodmap.com > ________________________________________________________________ From richard.greenwood at GMAIL.COM Tue Dec 7 18:36:58 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 7 Dec 2004 19:36:58 -0700 Subject: jbox zoom in In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2C96@admin-itg-exch3.state.mn.us> Message-ID: On Tue, 7 Dec 2004 11:33:53 -0600, Dan Liu wrote: > > > > Hi, > > When I do zoom in on a map which has over 4000 polygons in one layer, the > map double blinks and then the zoomed in map shows. Does anybody know how to > make the double blink disappear? > > Any help is appreciated. I've pondered this myself. I assume you're using a Sun Java VM? My best guess is that the browser is displaying the image while the applet loads and initializes, then the image get redisplayed by the applet. The solution? Learn to live with it. Possibly it could be supressed with the busy image. Let me know if you figure anything out. At this point I do not think it is a issue with jBox, but I could be wrong. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From h.viola at BOM.GOV.AU Tue Dec 7 19:12:21 2004 From: h.viola at BOM.GOV.AU (Hester Viola) Date: Tue, 7 Dec 2004 21:12:21 -0600 Subject: Accessing multipoint data from PostGIS via WFS Message-ID: Hi, This question regards reading a PostGIS table of type MULTIPOINT into MapServer and providing a WFS, containing the Multipoint data type within GML . I have undertaken the following steps 1. Created a multipoint shapefile 2. Loaded the multipoint shapefile into PostGIS as a MULTIPOINT table 3. Read and displayed the shapefile into MapServer as a point layer 4. Read and displayed the PostGIS MULTIPOINT table into MapServer as a point layer 5. Accessed the multipoint shapefile layer via WFS and successfully received back Multipoint GML BUT 6. when accessing the multipoint PostGIS layer via WFS, the GML returned was NOT Multipoint GML. It returned only the first point in each section of data as a single point entry , so that most of the data was missing from the WFS output (even though it all displayed ok when visualised in MapServer). If anyone can help with a solution to this or with any information, it would be appreciated. I would like to know if it is possible to work around this or if it is a bug that could be fixed. Thank you for your time Hester From siki at AGT.BME.HU Wed Dec 8 02:03:09 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 8 Dec 2004 09:03:09 -0100 Subject: itemnquery and qlayer not found, NAME vs GROUP {Scanned} {Scanned} In-Reply-To: <003c01c4dca0$3411db00$6401a8c0@blanken> Message-ID: Hi, I had similar problem with query recently. But you should realize that shpae files in the group may have different attribute table (eg. dbf). It is not neccessary to have the save table structure for all layers in the group, that is way I think query can't work for groups. One trick I used, to add template to all layers in the group. If the table structure is the same for all layers in the group than you can use the same template. mode=query will use the top most layer at the given position. Bye Zoltan On Tue, 7 Dec 2004, Wim Blanken wrote: > Hello Ken, > > Just had the same problem with an app we are developing.... > It seems you are right about the itemnquery problem, the documentation > is clearly wrong about this. > I had to merge my query layers (point, line and polygon) into one polygon > layer to get this working...... > Would be nice if this worked with groups. > > Kind Regards, > > Wim Blanken > The Netherlands. > > ----- Original Message ----- > From: "Geographic Resource Solutions" > To: > Sent: Tuesday, December 07, 2004 5:57 PM > Subject: [UMN_MAPSERVER-USERS] itemnquery and qlayer not found, NAME vs > GROUP > > > > Hi List, > > > > Last night I came finally got past a problem I had with itemnquery where I > > kept getting the qlayer not found message even though it was in my > > mapserver statement. My qlayer specified a layer GROUP name rather a > > layer > > NAME value. By chance I tried the actual layer NAME value and the locate > > feature worked. > > > > Can someone confirm that this call/function needs a qlayer value based on > > a > > NAME value rather than a GROUP value. > > > > Secondly, now that the function is returning the selected feature, none of > > the other features specified as layers to be drawn are being displayed. > > Is > > this for the same reason ? Does all layer input for commands like this > > have to be by name rather than group ? > > > > Thanks, > > > > Ken > > Geographic Resource Solutions > > 1125 16th Street, Suite 213 > > Arcata, CA 95521 > > Phone: (707) 822-8005 > > Fax: (707) 822-2864 > > > > > > www.grsgis.com > > > > > From mhbasa at YAHOO.COM Wed Dec 8 01:11:59 2004 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Wed, 8 Dec 2004 01:11:59 -0800 Subject: Java Mapscript Questions In-Reply-To: Message-ID: Hello. What is the proper method to create pointObj and rectObj classes within Java Mapscript? pointObj pt = new pointObj() nor pointObj pt = new pointObj(double_x,double_y) does not seem to work. Same goes with rectObj. Also, I don't know if it is just me but whenever I call mapObj.processTemplate(1,null,null,0) the [layers] tag always gets transformed to " " even if I set all the layers' status to on (layer.setStatus(mapscriptConstants.MS_ON). All the other template tags seem to work though. Am I doing anything wrong? I am using version 4.4. Thanks! mario basa yokohama,japan __________________________________ Do you Yahoo!? Yahoo! Mail - now with 250MB free storage. Learn more. http://info.mail.yahoo.com/mail_250 From didier.georgieff at AGRICULTURE.GOUV.FR Wed Dec 8 01:24:33 2004 From: didier.georgieff at AGRICULTURE.GOUV.FR (didier.georgieff) Date: Wed, 8 Dec 2004 10:24:33 +0100 Subject: raster not showing In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B195F*ealpert@digitalglobe.com> Message-ID: Le mar 07/12/2004 ? 19:16, Ethan Alpert a ?crit : > This is very simple and something I use over and over to find my errors. > Here's an example I just did. In my home directory I wrote a mapfile > with just one raster layer: [...] > Then I called mapserv with the following URL: > http://localhost/cgi-bin/mapserv?map=/home/ealpert/test.map&mode=map Thanks A LOT !! This what I needed. And this allowed me to confirm that the raster alone was not showing up. The problem's origin was in folder persmissions (chmod o+w solved the problem !) Thanks again for the tip. For MS developpers, just one small note related to that : even with --enable-debug i had no error message on the browser or in the Apache log. May be a log warning "can't access the raster file" would be of some help. I think i remember that this kind of problem on shp files produces an error output (my memory can be wrong) So thanks for the help, and thanks to MS developpers for such a beast ! D. From floerke at DOCTRONIC.DE Wed Dec 8 01:55:11 2004 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Wed, 8 Dec 2004 03:55:11 -0600 Subject: Setting classindex of shape instances in MapScript Message-ID: Hi there, under which circumstances I can set the "classindex" attribute of a shape instance from MapScript? I tried to open an existing layer (from the mapfile definitions) with open, iterate over the shapes (getShape) and use the shape->set("classindex",x) method to dynamically assign a class (generated bythe script) to this shape. After closing the layer the assignments are lost. The shapes do not show the assigned styles and retrieving the shape again after the close-method shows the old value. After that dilemma I create a layer with MapScript, open the shape-file with ShapeFileObj, iterate over the shapes, assings the "classindex"-attribute and push the onto the layer with "addFeature". That works, but I can't retrieve the associated values of the shape without manually openign the dbf-file. The goal is the color the shapes with the result of a complex computation. I tried to add the results as a value to the shapes and let the expression of the ClassObj choose the class, but I couldn't dynamically add some values to the shapes of a layer with a datafile assigned. Any ideas? HolgeR From johannes.krzyzanowski at LGB-RLP.DE Wed Dec 8 02:01:22 2004 From: johannes.krzyzanowski at LGB-RLP.DE (Johannes Krzyzanowski) Date: Wed, 8 Dec 2004 11:01:22 +0100 Subject: MrSid image not displayed Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: johannes.krzyzanowski.vcf Type: text/x-vcard Size: 301 bytes Desc: not available URL: From temiz at DEPREM.GOV.TR Wed Dec 8 05:21:23 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Wed, 8 Dec 2004 15:21:23 +0200 Subject: grid lines Message-ID: hello I was wondering how I can create grid lines which show coordinates on the map with php map script? kind 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 bartvde at XS4ALL.NL Wed Dec 8 05:39:25 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 8 Dec 2004 14:39:25 +0100 Subject: grid lines In-Reply-To: <41B6FFD3.4080802@deprem.gov.tr> Message-ID: Hi, see: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerGrid and: http://mapserver.gis.umn.edu/doc44/phpmapscript-class-guide.html#gridobj Best regards, Bart > hello > > I was wondering how I can create grid lines which show coordinates on > the map with php map script? > > kind 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 sgillies at FRII.COM Wed Dec 8 06:40:25 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 8 Dec 2004 07:40:25 -0700 Subject: Setting classindex of shape instances in MapScript In-Reply-To: Message-ID: On Dec 8, 2004, at 2:55 AM, Holger Floerke wrote: > Hi there, > > under which circumstances I can set the "classindex" attribute of a > shape > instance from MapScript? > > I tried to open an existing layer (from the mapfile definitions) with > open, > iterate over the shapes (getShape) and use the > shape->set("classindex",x) > method to dynamically assign a class (generated bythe script) to this > shape. After closing the layer the assignments are lost. The shapes do > not > show the assigned styles and retrieving the shape again after the > close-method shows the old value. > > After that dilemma I create a layer with MapScript, open the shape-file > with ShapeFileObj, iterate over the shapes, assings the > "classindex"-attribute and push the onto the layer with "addFeature". > That > works, but I can't retrieve the associated values of the shape without > manually openign the dbf-file. > > The goal is the color the shapes with the result of a complex > computation. > I tried to add the results as a value to the shapes and let the > expression > of the ClassObj choose the class, but I couldn't dynamically add some > values to the shapes of a layer with a datafile assigned. > > Any ideas? > > HolgeR > Holger, Setting the classindex only has meaning for shapes that are subsequently added to the layer with setFeature or that are drawn individually using shapeObj::draw. I recommend the second approach for your application. There is at least one bug in shapeObj.draw -- it does not honor the transparency of the specified layer, but it will work. In the development version I have recently added a few default values to newly created shapes and a shapeObj::setValue method that can be used to allow labeling of inline features, but this feature won't be released soon. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From mandhare at STATE.PA.US Wed Dec 8 06:44:09 2004 From: mandhare at STATE.PA.US (Andhare, Manjiri) Date: Wed, 8 Dec 2004 09:44:09 -0500 Subject: jBox.boxoff() Message-ID: No!! That's what I was thinking about. I opened the java code of the jBox utility and I found that this function is called in jBox.java. And I didn't define this function nor used it anywhere on my html page. I assume that jBox is calling this function and due to some reason may be b'coz of incorrect input parameters or anything like that, its not getting executed properly. But if I just ignore the error message and deny to debug it, I see that the zoom box turns off and I get to click on a single point where I want to zoom out. Is there anything that I need to define... this function on the html page? What I did with jBox is just followed the instructions from jBox HOWTO 4.2 Thank you, Manjiri Andahre GIS co-ordinator PA Fish & Boat commission tel: (814)3595182 fax:(814)3595153 -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Tuesday, December 07, 2004 6:11 PM To: Andhare, Manjiri Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jBox.boxoff() On Tue, 7 Dec 2004 15:46:05 -0500, Andhare, Manjiri wrote: > If I do as: > document.jBox.boxoff(); > Then I get the error message for that line as: > Failure to reset_handler('jBox',-1,-1,-1,-1) > I really appreciate the response. Do you have a javascript reset_handler() function defined within your page? It doesn't have to do anything, but it's got to be there because jBox is calling it. For example: function reset_handler(name, minx, miny, maxx, maxy) { } Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From lfilak at MEDINACO.ORG Wed Dec 8 06:46:14 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Wed, 8 Dec 2004 09:46:14 -0500 Subject: Perl Mapscript samples needed for development Message-ID: Greetings. Attention all Perl Mapscript users. A project to develop the required typemaps for map->processLegendTemplate, map->processTemplate, map->processQueryTemplate, & image->write is underway. In order to verify useability I need a Perl Mapscript sample utilizing the different methods. Please provide any samples you have available asap. Thank you. Lowell From sirronj at PACBELL.NET Wed Dec 8 06:58:02 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 8 Dec 2004 06:58:02 -0800 Subject: simple tool for conversion Message-ID: Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From andrew.seales at ED.AC.UK Wed Dec 8 06:52:36 2004 From: andrew.seales at ED.AC.UK (Andrew Seales) Date: Wed, 8 Dec 2004 08:52:36 -0600 Subject: PDF Output Message-ID: I seem to be having trouble outputting data from a WMS Server in PDF format. When I call GetCapabilities, application/x-pdf doesn't appear as an image format in the , tags. PDF support is compiled in using PDFLib 5.04, and mapserv -v returns: MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WFS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE At the top of the capabilities file, the comments below also indicate that PDF support is compiled in. These are the OUTPUTFORMAT lines in the map file: OUTPUTFORMAT NAME pdf DRIVER "pdf" MIMETYPE "application/x-pdf" IMAGEMODE RGB EXTENSION "pdf" END The type of data being drawn is vector data, and I am using Solaris 8. Anyone got any ideas? Thanks, Andrew Seales From klawrenc at NRCAN.GC.CA Wed Dec 8 07:05:29 2004 From: klawrenc at NRCAN.GC.CA (Lawrence, Kevin) Date: Wed, 8 Dec 2004 10:05:29 -0500 Subject: simple tool for conversion Message-ID: proj - the same utility used for on the fly re-projection one example echo $lat $long | proj +proj=lcc +lon_0=95w +lat_0=0 +lat_1=49 +lat2=77 -r project geographic to lambert conformal origin -95 0 1st parallel 49 2nd parallel 77 KL > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Joseph Norris[SMTP:sirronj at PACBELL.NET] > Reply To: Joseph Norris > Sent: Wednesday, December 08, 2004 9:58 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] simple tool for conversion > > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14 > ,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From osgis.lists at GMAIL.COM Wed Dec 8 07:09:48 2004 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 8 Dec 2004 09:09:48 -0600 Subject: simple tool for conversion In-Reply-To: Message-ID: What do you mean by xy coordinates? Do you mean image coordinates or do you mean coordinates in some projection (ie UTM or State Plane)? On Wed, 8 Dec 2004 06:58:02 -0800, Joseph Norris wrote: > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From sirronj at PACBELL.NET Wed Dec 8 07:21:51 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 8 Dec 2004 07:21:51 -0800 Subject: simple tool for conversion In-Reply-To: <71c3c6c504120807095492e436@mail.gmail.com> Message-ID: The coordinates necessary for a shapefile. Latitude/longitude -> Esri Shapefile coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: David Bitner [mailto:osgis.lists at gmail.com] Sent: Wednesday, December 08, 2004 7:10 AM To: Joseph Norris Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion What do you mean by xy coordinates? Do you mean image coordinates or do you mean coordinates in some projection (ie UTM or State Plane)? On Wed, 8 Dec 2004 06:58:02 -0800, Joseph Norris wrote: > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From sobomsawin at KASSINI.COM Wed Dec 8 07:24:11 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Wed, 8 Dec 2004 10:24:11 -0500 Subject: [UMN_MAPSERVER-USERS] simple tool for conversion In-Reply-To: Message-ID: proj will make the job. You should already have compiled mapserver with proj. See http://proj.maptools.org/ for more information about the parameters to set. Skweda O'Bomsawin -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy??: 8 d?cembre 2004 09:58 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 From kristjan at TARKVARASTUUDIO.EE Wed Dec 8 07:59:35 2004 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 8 Dec 2004 17:59:35 +0200 Subject: white text under color text Message-ID: Hi I have seen in various samples that text labels i.e. street names are drawn with black characters witch are placed on top of a little bit bigger white characters - it makes text much better to read especialy on ortophotos. Does anybody know how it is done? thanks Kristjan From eric at GOMOOS.ORG Wed Dec 8 08:04:07 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 8 Dec 2004 11:04:07 -0500 Subject: white text under color text In-Reply-To: <41B724E7.7000705@tarkvarastuudio.ee> Message-ID: On Wed, 2004-12-08 at 10:59, Kristjan Annus wrote: > Hi > > I have seen in various samples that text labels i.e. street names are drawn > with black characters witch are placed on top of a little bit bigger white > characters - it makes text much better to read especialy on ortophotos. > Does anybody know how it is done? In your mapfile LABEL section add something like: SHADOWCOLOR 200 200 200 SHADOWSIZE 1 1 From assefa at DMSOLUTIONS.CA Wed Dec 8 08:10:28 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 8 Dec 2004 11:10:28 -0500 Subject: PDF Output In-Reply-To: Message-ID: The 4.4 release only supports GD and GDAL formats for WMS. This is described in bug 455 (http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455). The next release will have a mechanism (not yet decided) where the user can specify the additional formats that he wants to publish in the capablities. Later, Andrew Seales wrote: > I seem to be having trouble outputting data from a WMS Server in PDF format. > When I call GetCapabilities, application/x-pdf doesn't appear as an image > format in the , tags. > > PDF support is compiled in using PDFLib 5.04, and mapserv -v returns: > > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > OUTPUT=PDF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > SUPPORTS=WFS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > At the top of the capabilities file, the comments below version="1.1.1"> also indicate that PDF support is compiled in. > > These are the OUTPUTFORMAT lines in the map file: > > OUTPUTFORMAT > NAME pdf > DRIVER "pdf" > MIMETYPE "application/x-pdf" > IMAGEMODE RGB > EXTENSION "pdf" > END > > The type of data being drawn is vector data, and I am using Solaris 8. > > Anyone got any ideas? > > Thanks, > Andrew Seales > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From ealpert at DIGITALGLOBE.COM Wed Dec 8 08:27:38 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 8 Dec 2004 09:27:38 -0700 Subject: simple tool for conversion Message-ID: This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Wed Dec 8 08:36:53 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 8 Dec 2004 08:36:53 -0800 Subject: simple tool for conversion In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B1968@COMAIL01.digitalglobe.com> Message-ID: Yes that is what I am trying to do. I have the latitude and longitude for different Mysql database records and I wish to produce a point shape file of these coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, December 08, 2004 8:28 AM To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ed at TOPOZONE.COM Wed Dec 8 08:45:55 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 8 Dec 2004 11:45:55 -0500 Subject: simple tool for conversion Message-ID: Joseph - You should realize that there's nothing wrong with putting lat/lon coordinates in a shapefile. You seem to think that some "conversion" is necessary, and it's not. The world is full of shapefiles with lat/lon coordinates in them. - 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 Joseph Norris Sent: Wednesday, December 08, 2004 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Yes that is what I am trying to do. I have the latitude and longitude for different Mysql database records and I wish to produce a point shape file of these coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, December 08, 2004 8:28 AM To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ealpert at DIGITALGLOBE.COM Wed Dec 8 08:49:55 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 8 Dec 2004 09:49:55 -0700 Subject: simple tool for conversion Message-ID: If you're pulling data from mysql then I suggest using perl DBI and Geo::Shapelib to create the shapefile in one step. A google search turned up some C++ code and java code to do this. I use postgis so I usually rely on pgsql2shp to create my shapefiles. -e -----Original Message----- From: Joseph Norris [mailto:sirronj at pacbell.net] Sent: Wednesday, December 08, 2004 9:37 AM To: Ethan Alpert Cc: mapserver users Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion Yes that is what I am trying to do. I have the latitude and longitude for different Mysql database records and I wish to produce a point shape file of these coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, December 08, 2004 8:28 AM To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Wed Dec 8 08:53:47 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 8 Dec 2004 08:53:47 -0800 Subject: simple tool for conversion In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FE1A@ptolemy.topozone.com> Message-ID: Well - here is my experience: I did just that - wrote a script that built a shapefile using the lat/long coordiance. My shape file looked like this on a dump: File Bounds: ( 32.586, -124.206,0,0) to ( 41.773, -89.769,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 38.526, -121.507, 0, 0) to ( 38.526, -121.507, 0, 0) ( 38.526, -121.507, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 37.775, -122.451, 0, 0) to ( 37.775, -122.451, 0, 0) ( 37.775, -122.451, 0, 0) Then I went and used fGIS and plotted some points on a layer over my California map and I got the following: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) There is a big difference which led me to believe that I needed to convert lat/long to x/y coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Wednesday, December 08, 2004 8:46 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - You should realize that there's nothing wrong with putting lat/lon coordinates in a shapefile. You seem to think that some "conversion" is necessary, and it's not. The world is full of shapefiles with lat/lon coordinates in them. - 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 Joseph Norris Sent: Wednesday, December 08, 2004 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Yes that is what I am trying to do. I have the latitude and longitude for different Mysql database records and I wish to produce a point shape file of these coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, December 08, 2004 8:28 AM To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Wed Dec 8 08:56:55 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 8 Dec 2004 08:56:55 -0800 Subject: simple tool for conversion In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B1969@COMAIL01.digitalglobe.com> Message-ID: I did use this to create a shapefile, but there is still the problem of my $shape = new Geo::Shapelib; foreach my $i (0..10) { push @{$shape->{Shapes}},{SHPType=>POINT, ShapeID=>$i++, Vertices=>[[$i,$i,0,0]] }; } I need the Vertices for my points - as far as I can see I can only get that from conversion of my lat/long to x/y coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Wednesday, December 08, 2004 8:50 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion If you're pulling data from mysql then I suggest using perl DBI and Geo::Shapelib to create the shapefile in one step. A google search turned up some C++ code and java code to do this. I use postgis so I usually rely on pgsql2shp to create my shapefiles. -e -----Original Message----- From: Joseph Norris [mailto:sirronj at pacbell.net] Sent: Wednesday, December 08, 2004 9:37 AM To: Ethan Alpert Cc: mapserver users Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion Yes that is what I am trying to do. I have the latitude and longitude for different Mysql database records and I wish to produce a point shape file of these coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, December 08, 2004 8:28 AM To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From pspencer at DMSOLUTIONS.CA Wed Dec 8 08:58:46 2004 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Wed, 8 Dec 2004 11:58:46 -0500 Subject: simple tool for conversion In-Reply-To: Message-ID: what about using ogr2ogr? You should be able to build a vrt file for your mysql records then use ogr2ogr to convert to shapefile. You can even reproject on the fly I think ... see: http://gdal.org/ogr/ http://gdal.org/ogr/ogr_utilities.html http://gdal.org/ogr/drv_mysql.html http://gdal.org/ogr/drv_vrt.html Paul Joseph Norris wrote: > Yes that is what I am trying to do. I have the latitude and longitude for > different Mysql database records and I wish to produce a point shape file of > these coordinates. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Ethan Alpert [mailto:ealpert at digitalglobe.com] > Sent: Wednesday, December 08, 2004 8:28 AM > To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion > > > This makes no sense to me what-so-ever what are you trying to do? Take > vertices in a text file and build a shapefile? Project lat/lon values > into California State Plane? > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of Joseph Norris > Sent: Wednesday, December 08, 2004 7:58 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] simple tool for conversion > > > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From fwarmerdam at GMAIL.COM Wed Dec 8 09:03:42 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 8 Dec 2004 12:03:42 -0500 Subject: simple tool for conversion In-Reply-To: Message-ID: On Wed, 8 Dec 2004 08:53:47 -0800, Joseph Norris wrote: > Then I went and used fGIS and plotted some points on a layer over my > California map and I got the following: > > File Bounds: ( 6471392.899, 282843.628,0,0) > to ( 8433025.828, 2304680.124,0,0) Joseph, Well, the above is the fundamental information you didn't supply in your original query. You have existing data in some projected coordinate system, and you want to produce a shapefile in the same coordinate system from latlong input points. You won't get anywhere till you figure out what coordinate system you are working with. Likely some sort of state plane feet coordinate system though the distances look awfully large and suggest to me that data is outside the normal area of use of the coordinate system. Once you know the coordinate system you could use the ogr2ogr utility to reproject your lat/long shapefile to the target coordinate system specified using PROJ.4 syntax. eg. ogr2ogr -s_srs WGS84 -t_srs '+proj=...' out.shp in.shp If you just want to use the data in MapServer you don't actually have to reproject the data ahead of time, though it might be a good idea. But you do need to properly declare your coordinate system of which there are many thousands of frequently used ones in the world. Till you know the details of your coordinate system you really don't know anything about what the x/y coordinate values mean. 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 Wed Dec 8 09:05:40 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 8 Dec 2004 10:05:40 -0700 Subject: simple tool for conversion Message-ID: Joseph you still have lat (Y) and long (X) reversed. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 9:54 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Well - here is my experience: I did just that - wrote a script that built a shapefile using the lat/long coordiance. My shape file looked like this on a dump: File Bounds: ( 32.586, -124.206,0,0) to ( 41.773, -89.769,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 38.526, -121.507, 0, 0) to ( 38.526, -121.507, 0, 0) ( 38.526, -121.507, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 37.775, -122.451, 0, 0) to ( 37.775, -122.451, 0, 0) ( 37.775, -122.451, 0, 0) Then I went and used fGIS and plotted some points on a layer over my California map and I got the following: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) There is a big difference which led me to believe that I needed to convert lat/long to x/y coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Wednesday, December 08, 2004 8:46 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - You should realize that there's nothing wrong with putting lat/lon coordinates in a shapefile. You seem to think that some "conversion" is necessary, and it's not. The world is full of shapefiles with lat/lon coordinates in them. - 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 Joseph Norris Sent: Wednesday, December 08, 2004 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Yes that is what I am trying to do. I have the latitude and longitude for different Mysql database records and I wish to produce a point shape file of these coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, December 08, 2004 8:28 AM To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Wed Dec 8 09:08:38 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 8 Dec 2004 09:08:38 -0800 Subject: simple tool for conversion In-Reply-To: <931f8ea904120809036501c46d@mail.gmail.com> Message-ID: Thank you Frank - this has made a great deal of sense to me. Can I get that information from the .prj file that comes with my map? Here it is - though I don't know how to read it. PROJCS["NAD_1983_StatePlane_California_II_FIPS_0402_Feet", GEOGCS["GCS_North_American_1983", DATUM["D_North_American_1983", SPHEROID["GRS_1980", 6378137, 298.257222101]], PRIMEM["Greenwich", 0], UNIT["Degree", 0.017453292519943295]], PROJECTION["Lambert_Conformal_Conic"], PARAMETER["False_Easting", 6561666.666666666], PARAMETER["False_Northing", 1640416.666666667], PARAMETER["Central_Meridian", -122], PARAMETER["Standard_Parallel_1", 38.33333333333334], PARAMETER["Standard_Parallel_2", 39.83333333333334], PARAMETER["Latitude_Of_Origin", 37.66666666666666], UNIT["Foot_US", 0.30480060960121924]] #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Frank Warmerdam Sent: Wednesday, December 08, 2004 9:04 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion On Wed, 8 Dec 2004 08:53:47 -0800, Joseph Norris wrote: > Then I went and used fGIS and plotted some points on a layer over my > California map and I got the following: > > File Bounds: ( 6471392.899, 282843.628,0,0) > to ( 8433025.828, 2304680.124,0,0) Joseph, Well, the above is the fundamental information you didn't supply in your original query. You have existing data in some projected coordinate system, and you want to produce a shapefile in the same coordinate system from latlong input points. You won't get anywhere till you figure out what coordinate system you are working with. Likely some sort of state plane feet coordinate system though the distances look awfully large and suggest to me that data is outside the normal area of use of the coordinate system. Once you know the coordinate system you could use the ogr2ogr utility to reproject your lat/long shapefile to the target coordinate system specified using PROJ.4 syntax. eg. ogr2ogr -s_srs WGS84 -t_srs '+proj=...' out.shp in.shp If you just want to use the data in MapServer you don't actually have to reproject the data ahead of time, though it might be a good idea. But you do need to properly declare your coordinate system of which there are many thousands of frequently used ones in the world. Till you know the details of your coordinate system you really don't know anything about what the x/y coordinate values mean. 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 richard.greenwood at GMAIL.COM Wed Dec 8 09:49:54 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 8 Dec 2004 10:49:54 -0700 Subject: jBox.boxoff() In-Reply-To: <42529C60130B66428EE04284C47C1A270139FAB1@enhbgpri17.backup> Message-ID: On Wed, 8 Dec 2004 09:44:09 -0500, Andhare, Manjiri wrote: > No!! That's what I was thinking about. I opened the java code of the > jBox utility and I found that this function is called in jBox.java. And > I didn't define this function nor used it anywhere on my html page. I > assume that jBox is calling this function and due to some reason may be > b'coz of incorrect input parameters or anything like that, its not > getting executed properly. > But if I just ignore the error message and deny to debug it, I see that > the zoom box turns off and I get to click on a single point where I want > to zoom out. > Is there anything that I need to define... this function on the html > page? See the jBox HOWTO JavaScript Functions section: http://mapserver.gis.umn.edu/doc42/jbox-howto.html#jscript_func -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From ed at TOPOZONE.COM Wed Dec 8 09:50:36 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Wed, 8 Dec 2004 12:50:36 -0500 Subject: simple tool for conversion Message-ID: Joseph - Sorry, but I don't know what fGIS is, so I'll be a little vague, but if you're using multiple data sources in different projections then you need to (a) be using software that can handle layers in different projections and (b) accurately describe what projection each of your layers is using. If you can't do that, then you will need to reproject your lat/lon data, but if that's the case it's a limitation of the software or the user, not a limitation of shapefiles. - 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: Joseph Norris [mailto:sirronj at pacbell.net] Sent: Wednesday, December 08, 2004 11:54 AM To: Ed McNierney; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion Well - here is my experience: I did just that - wrote a script that built a shapefile using the lat/long coordiance. My shape file looked like this on a dump: File Bounds: ( 32.586, -124.206,0,0) to ( 41.773, -89.769,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 38.526, -121.507, 0, 0) to ( 38.526, -121.507, 0, 0) ( 38.526, -121.507, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 37.775, -122.451, 0, 0) to ( 37.775, -122.451, 0, 0) ( 37.775, -122.451, 0, 0) Then I went and used fGIS and plotted some points on a layer over my California map and I got the following: File Bounds: ( 6471392.899, 282843.628,0,0) to ( 8433025.828, 2304680.124,0,0) Shape:0 (Point) nVertices=1, nParts=0 Bounds:( 7750718.722, 1391592.674, 0, 0) to ( 7750718.722, 1391592.674, 0, 0) ( 7750718.722, 1391592.674, 0, 0) Shape:1 (Point) nVertices=1, nParts=0 Bounds:( 6471392.899, 2304680.124, 0, 0) to ( 6471392.899, 2304680.124, 0, 0) ( 6471392.899, 2304680.124, 0, 0) Shape:2 (Point) nVertices=1, nParts=0 Bounds:( 8433025.828, 282843.628, 0, 0) to ( 8433025.828, 282843.628, 0, 0) ( 8433025.828, 282843.628, 0, 0) There is a big difference which led me to believe that I needed to convert lat/long to x/y coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Wednesday, December 08, 2004 8:46 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - You should realize that there's nothing wrong with putting lat/lon coordinates in a shapefile. You seem to think that some "conversion" is necessary, and it's not. The world is full of shapefiles with lat/lon coordinates in them. - 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 Joseph Norris Sent: Wednesday, December 08, 2004 11:37 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Yes that is what I am trying to do. I have the latitude and longitude for different Mysql database records and I wish to produce a point shape file of these coordinates. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Wednesday, December 08, 2004 8:28 AM To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion This makes no sense to me what-so-ever what are you trying to do? Take vertices in a text file and build a shapefile? Project lat/lon values into California State Plane? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Joseph Norris Sent: Wednesday, December 08, 2004 7:58 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] simple tool for conversion Can anyone make a recommendation for unix command line tool that will convert lat/long to xy coordinates? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From bt at CCGIS.DE Wed Dec 8 10:10:59 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Wed, 8 Dec 2004 19:10:59 +0100 Subject: mapserver 4.4.0 / Oracle 9.2.0.4 on SuSE SLES9 Message-ID: Hi, are there any tricks to get mapserver 4.4.0 compiled with Oracle? Compiling mapserver 4.2.5 on the same machine with oracle was no problem at all! As far as I know, it isn't required to install oracle server, oracle client is sufficient - at least under windows. Please look at the following error: SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include/pgsql -I/opt/oracle/O raHome1/rdbms/demo -I/opt/oracle/OraHome1/rdbms/public mapwms.c -o mapwms.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS _SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include/pgsql -I/opt/oracle/O raHome1/rdbms/demo -I/opt/oracle/OraHome1/rdbms/public mapwmslayer.c -o mapwmslayer.o gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS _SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include/pgsql -I/opt/oracle/O raHome1/rdbms/demo -I/opt/oracle/OraHome1/rdbms/public maporaclespatial.c -o maporaclespatial.o maporaclespatial.c:107:17: oci.h: No such file or directory ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ maporaclespatial.c:125: error: parse error before "OCINumber" maporaclespatial.c:125: warning: no semicolon at end of struct or union maporaclespatial.c:126: warning: type defaults to `int' in declaration of `y' maporaclespatial.c:126: warning: data definition has no type or storage class maporaclespatial.c:127: error: parse error before "z" maporaclespatial.c:127: warning: type defaults to `int' in declaration of `z' maporaclespatial.c:127: warning: data definition has no type or storage class maporaclespatial.c:129: warning: type defaults to `int' in declaration of `SDOPointObj' maporaclespatial.c:129: warning: data definition has no type or storage class maporaclespatial.c:133: error: parse error before "OCINumber" maporaclespatial.c:133: warning: no semicolon at end of struct or union maporaclespatial.c:134: warning: type defaults to `int' in declaration of `srid' maporaclespatial.c:134: warning: data definition has no type or storage class maporaclespatial.c:135: error: parse error before "point" maporaclespatial.c:135: warning: type defaults to `int' in declaration of `point' maporaclespatial.c:135: warning: data definition has no type or storage cla Indeed, there is no oci.h! I found one on a oracle server installation and copied this and some other missing *.h files to /OraHome/../rdbms/demo/ /OraHome/../rdbms/public/ on the oracle client machine. But the same error occured again. I then copied these *.h files to /usr/local, what caused another error. Please see below. I suppose, that copy some files some where wasn't the best thing I could do :-)! gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS _SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -DUSE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include/pgsql -I/opt/oracle/r dbms/demo -I/opt/oracle/rdbms/public shp2img.c -o shp2img.o gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS_SV R -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DUSE_ GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS -DUSE_OGR -DUSE_GDAL -DUSE_ICONV -D USE_POSTGIS -I/usr/include -I/usr/local/include -I/usr/include/pgsql -I/opt/oracle/rdbm s/demo -I/opt/oracle/rdbms/public shp2img.o -L. -lmap -lgd -L/usr/lib -lgd -ljpeg -lfreetype -lp ng -lz -ljpeg -lfreetype -lpng -lz -lproj -ljpeg -L/usr/local/lib -lgdal -L/usr/lib -lpq -L/ usr/lib -lcurl -L/usr/ssl/lib -lz -lssl -lcrypto -ldl -L/opt/oracle/lib -lclntsh -lc -lm -lstdc+ + -o shp2img /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: cannot find -lclntsh collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Has somebody any idea? What about this oci.h? Why is it missing on the oracle client. Why does ms-4.2.5 compile successfully? What can I do with ms-4.4.0? Thanks for any help! Best Regards, Benjamin From simon at INF.UNIVALI.BR Wed Dec 8 08:18:31 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Wed, 8 Dec 2004 16:18:31 +0000 Subject: mapserver 4.4.0 / Oracle 9.2.0.4 on SuSE SLES9 In-Reply-To: <41B743B3.7070404@ccgis.de> Message-ID: Hi Benjamin, You need to install "Oracle Call Interface" for install oci.h. This is the best way to add this support. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Benjamin Thelen wrote: > Hi, > > are there any tricks to get mapserver 4.4.0 compiled with Oracle? > Compiling mapserver 4.2.5 on the same machine with oracle was no > problem at all! > As far as I know, it isn't required to install oracle server, oracle > client is sufficient - at least under windows. > > Please look at the following error: > > SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR > -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU > SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS > -DUSE_OGR -DUSE_GDAL -DUSE_ICONV > -DUSE_POSTGIS -I/usr/include -I/usr/local/include > -I/usr/include/pgsql -I/opt/oracle/O > raHome1/rdbms/demo -I/opt/oracle/OraHome1/rdbms/public mapwms.c -o > mapwms.o > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS > _SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR > -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU > SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS > -DUSE_OGR -DUSE_GDAL -DUSE_ICONV > -DUSE_POSTGIS -I/usr/include -I/usr/local/include > -I/usr/include/pgsql -I/opt/oracle/O > raHome1/rdbms/demo -I/opt/oracle/OraHome1/rdbms/public > mapwmslayer.c -o mapwmslayer.o > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS > _SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR > -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU > SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS > -DUSE_OGR -DUSE_GDAL -DUSE_ICONV > -DUSE_POSTGIS -I/usr/include -I/usr/local/include > -I/usr/include/pgsql -I/opt/oracle/O > raHome1/rdbms/demo -I/opt/oracle/OraHome1/rdbms/public > maporaclespatial.c -o maporaclespatial.o > maporaclespatial.c:107:17: oci.h: No such file or directory > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > maporaclespatial.c:125: error: parse error before "OCINumber" > maporaclespatial.c:125: warning: no semicolon at end of struct or union > maporaclespatial.c:126: warning: type defaults to `int' in declaration > of `y' > maporaclespatial.c:126: warning: data definition has no type or > storage class > maporaclespatial.c:127: error: parse error before "z" > maporaclespatial.c:127: warning: type defaults to `int' in declaration > of `z' > maporaclespatial.c:127: warning: data definition has no type or > storage class > maporaclespatial.c:129: warning: type defaults to `int' in declaration > of `SDOPointObj' > maporaclespatial.c:129: warning: data definition has no type or > storage class > maporaclespatial.c:133: error: parse error before "OCINumber" > maporaclespatial.c:133: warning: no semicolon at end of struct or union > maporaclespatial.c:134: warning: type defaults to `int' in declaration > of `srid' > maporaclespatial.c:134: warning: data definition has no type or > storage class > maporaclespatial.c:135: error: parse error before "point" > maporaclespatial.c:135: warning: type defaults to `int' in declaration > of `point' > maporaclespatial.c:135: warning: data definition has no type or > storage cla > > > > > > > Indeed, there is no oci.h! I found one on a oracle server installation > and copied this and some other missing *.h files to > > /OraHome/../rdbms/demo/ > /OraHome/../rdbms/public/ > > > on the oracle client machine. But the same error occured again. > > I then copied these *.h files to /usr/local, what caused another > error. Please see below. I suppose, that copy some files some where > wasn't the best thing I could do :-)! > > > gcc -c -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT > -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_WMS > _SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR > -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DU > SE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS > -DUSE_OGR -DUSE_GDAL -DUSE_ICONV > -DUSE_POSTGIS -I/usr/include -I/usr/local/include > -I/usr/include/pgsql -I/opt/oracle/r > dbms/demo -I/opt/oracle/rdbms/public shp2img.c -o shp2img.o > gcc -O2 -fPIC -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_PROJ > -DUSE_PROJ_API_H -DUSE_WMS_SV > R -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR > -DUSE_ORACLESPATIAL -DUSE_GD_PNG -DUSE_ > GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GETBITMAPFONTS -DUSE_OGR > -DUSE_GDAL -DUSE_ICONV -D > USE_POSTGIS -I/usr/include -I/usr/local/include > -I/usr/include/pgsql -I/opt/oracle/rdbm > s/demo -I/opt/oracle/rdbms/public shp2img.o -L. -lmap -lgd > -L/usr/lib -lgd -ljpeg -lfreetype -lp > ng -lz -ljpeg -lfreetype -lpng -lz -lproj -ljpeg > -L/usr/local/lib -lgdal -L/usr/lib -lpq -L/ > usr/lib -lcurl -L/usr/ssl/lib -lz -lssl -lcrypto -ldl > -L/opt/oracle/lib -lclntsh -lc -lm -lstdc+ > + -o shp2img > /usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld: > > > cannot find -lclntsh > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > > > Has somebody any idea? What about this oci.h? Why is it missing on the > oracle client. Why does ms-4.2.5 compile successfully? What can I do > with ms-4.4.0? > > Thanks for any help! > > Best Regards, > Benjamin > From saintsjd at YAHOO.COM Wed Dec 8 11:27:03 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Wed, 8 Dec 2004 11:27:03 -0800 Subject: simple tool for conversion In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FE1F@ptolemy.topozone.com> Message-ID: Hi I have a Mr Sid raster i would like to display in mapserver. What is the best way to do that? should i convert to another format? Thanks --- Ed McNierney wrote: > Joseph - > > Sorry, but I don't know what fGIS is, so I'll be a > little vague, but if > you're using multiple data sources in different > projections then you > need to (a) be using software that can handle layers > in different > projections and (b) accurately describe what > projection each of your > layers is using. > > If you can't do that, then you will need to > reproject your lat/lon data, > but if that's the case it's a limitation of the > software or the user, > not a limitation of shapefiles. > > - 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: Joseph Norris [mailto:sirronj at pacbell.net] > Sent: Wednesday, December 08, 2004 11:54 AM > To: Ed McNierney; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] simple tool for > conversion > > Well - here is my experience: > > I did just that - wrote a script that built a > shapefile using the > lat/long coordiance. My shape file looked like this > on a dump: > > File Bounds: ( 32.586, -124.206,0,0) > to ( 41.773, -89.769,0,0) > > Shape:0 (Point) nVertices=1, nParts=0 > Bounds:( 38.526, -121.507, 0, 0) > to ( 38.526, -121.507, 0, 0) > ( 38.526, -121.507, 0, 0) > > Shape:1 (Point) nVertices=1, nParts=0 > Bounds:( 37.775, -122.451, 0, 0) > to ( 37.775, -122.451, 0, 0) > ( 37.775, -122.451, 0, 0) > > > Then I went and used fGIS and plotted some points on > a layer over my > California map and I got the following: > > > File Bounds: ( 6471392.899, 282843.628,0,0) > to ( 8433025.828, 2304680.124,0,0) > > Shape:0 (Point) nVertices=1, nParts=0 > Bounds:( 7750718.722, 1391592.674, 0, 0) > to ( 7750718.722, 1391592.674, 0, 0) > ( 7750718.722, 1391592.674, 0, 0) > > Shape:1 (Point) nVertices=1, nParts=0 > Bounds:( 6471392.899, 2304680.124, 0, 0) > to ( 6471392.899, 2304680.124, 0, 0) > ( 6471392.899, 2304680.124, 0, 0) > > Shape:2 (Point) nVertices=1, nParts=0 > Bounds:( 8433025.828, 282843.628, 0, 0) > to ( 8433025.828, 282843.628, 0, 0) > ( 8433025.828, 282843.628, 0, 0) > > There is a big difference which led me to believe > that I needed to > convert lat/long to x/y coordinates. > > > #Joseph Norris (Perl - what else is > there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu]On > Behalf Of Ed McNierney > Sent: Wednesday, December 08, 2004 8:46 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] simple tool for > conversion > > Joseph - > > You should realize that there's nothing wrong with > putting lat/lon > coordinates in a shapefile. You seem to think that > some "conversion" is > necessary, and it's not. The world is full of > shapefiles with lat/lon > coordinates in them. > > - 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 Joseph Norris > Sent: Wednesday, December 08, 2004 11:37 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] simple tool for > conversion > > Yes that is what I am trying to do. I have the > latitude and longitude > for different Mysql database records and I wish to > produce a point shape > file of these coordinates. > > > #Joseph Norris (Perl - what else is > there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > -----Original Message----- > From: Ethan Alpert [mailto:ealpert at digitalglobe.com] > Sent: Wednesday, December 08, 2004 8:28 AM > To: Joseph Norris; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] simple tool for > conversion > > > This makes no sense to me what-so-ever what are you > trying to do? Take > vertices in a text file and build a shapefile? > Project lat/lon values > into California State Plane? > > -e > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu] On > Behalf Of Joseph Norris > Sent: Wednesday, December 08, 2004 7:58 AM > To: MAPSERVER-USERS at lists.umn.edu > Subject: [UMN_MAPSERVER-USERS] simple tool for > conversion > > > Can anyone make a recommendation for unix command > line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is > there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, > 14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From saintsjd at YAHOO.COM Wed Dec 8 11:28:20 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Wed, 8 Dec 2004 11:28:20 -0800 Subject: Mr SID in mapserver In-Reply-To: <41B743B3.7070404@ccgis.de> Message-ID: Hi I have a Mr Sid raster i would like to display in mapserver. What is the best way to do that? should i convert to another format? Thanks Jon From ARyan at CO.LINN.OR.US Wed Dec 8 11:35:04 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 8 Dec 2004 11:35:04 -0800 Subject: Emulating mode=map with python mapscript Message-ID: Dear list, I'd like to emulate mode=map using python mapscript, but I'm getting errors. Is this how it's done:?:? #-------------------------- import mapscript mapO = mapscript.mapObj("mymap.map") mapImg = mapO.draw() print "Content-Type: image/png\n" print mapImg.write() #-------------------------- IE gives me that little empty image icon (no surprise there) while Mozilla tells me "The image cannot be displayed because it contains errors" and running it on the command line gives me my header and a bunch of gobbly guck: Content-Type: image/png ?PNG ? IHDR d d?? ????? ?PLTE??? 2?2 d ? ?????????? ?5IDATx??XKr? ?ea?\YP?YD ?? ???"?_?Ig???o2!X~????el ... I know the map file is fine because the regular method works without a hitch: #-------------------------- import mapscript mapO = mapscript.mapObj("mymap.map") mapImg = mapO.draw() mapImg.save("myimg.png") print "Content-Type: text/html\n" print "" print "" print "" #-------------------------- Any thoughts? Cheers to all, Adam From arnulf.christl at CCGIS.DE Wed Dec 8 11:43:08 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Wed, 8 Dec 2004 20:43:08 +0100 Subject: white text under color text In-Reply-To: <1102521852.1810.1.camel@ubet.gomoos.org> Message-ID: Eric Bridger wrote: > On Wed, 2004-12-08 at 10:59, Kristjan Annus wrote: > >>Hi >> >>I have seen in various samples that text labels i.e. street names are drawn >>with black characters witch are placed on top of a little bit bigger white >>characters - it makes text much better to read especialy on ortophotos. >>Does anybody know how it is done? > > > In your mapfile LABEL section add something like: > > SHADOWCOLOR 200 200 200 > SHADOWSIZE 1 1 > You can either do that (gives a drop shadow of the text) or you can add OUTLINECOLOR [r] [g] [b] which gives you a 1-pixel outline around every character. Do some experimenting to find our which combination suits you best. Remember to take care of font sizes at different scales, very tiny fonts might look strange with those options. You can combine effects to render the labels looking like embossed. The below MAP file settings render labels like can be seen in the German MapServer Users' map (I toyed around with both options). small scale: http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/umn_user.map&WMTVER=1.0.0&REQUEST=map&LAYERS=UMN%20USER,UMN_USER_NAMES&STYLES=,&SRS=EPSG:4326&BBOX=-11,32,32,75&WIDTH=150&HEIGHT=150&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE larger: http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/umn_user.map&WMTVER=1.0.0&REQUEST=map&LAYERS=UMN%20USER,UMN_USER_NAMES&STYLES=,&SRS=EPSG:4326&BBOX=6.4,50,8.4,52.3&WIDTH=150&HEIGHT=150&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE CLASS EXPRESSION /./ NAME "UMN MapServer User" MINSCALE 0 MAXSCALE 1000000000 LABEL TYPE TRUETYPE FONT "arialbold" WRAP "*" SIZE 8 MINSIZE 6 MAXSIZE 10 POSITION AUTO OFFSET 8 3 BUFFER 2 BACKGROUNDCOLOR 190 190 190 BACKGROUNDSHADOWSIZE -1 -1 BACKGROUNDSHADOWCOLOR 254 254 255 #OUTLINECOLOR 255 255 245 SHADOWCOLOR 236 236 236 SHADOWSIZE -1 -1 MINDISTANCE 10 COLOR 0 0 0 #102 102 255 ANTIALIAS TRUE PARTIALS FALSE FORCE FALSE END END I think it would be a great idea to have more samples of what can be done. Long time ago Frank was suggesting to set up an always up-to-date demo & test environment, what has happened to that one? Maybe we could do both and just put MAP file snippets like the above on a server together with a WMS example showing each. ...why am I asking this, thats just a bloody lot of work (-: Cheers, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.de http://www.mapbender.org ------------------------ From hobu at IASTATE.EDU Wed Dec 8 11:39:05 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 8 Dec 2004 13:39:05 -0600 Subject: Emulating mode=map with python mapscript In-Reply-To: Message-ID: I think you need a blank line after the content type. Here is how I did it with earlier mapscript > print "Content-type: image/jpeg" > print > output = open(drgimagefilename, 'rb').read() > print output That extra print statement after the printing of the content type ends the header block. Howard From fwarmerdam at GMAIL.COM Wed Dec 8 11:42:14 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 8 Dec 2004 14:42:14 -0500 Subject: Mr SID in mapserver In-Reply-To: <20041208192820.58746.qmail@web53906.mail.yahoo.com> Message-ID: On Wed, 8 Dec 2004 11:28:20 -0800, Jon Saints wrote: > Hi > > I have a Mr Sid raster i would like to display in > mapserver. What is the best way to do that? should i > convert to another format? Jon, It is possible to download the MrSID SDK from Lizardtech and then build a GDAL using it, and then build MapServer using that GDAL. But that is a somewhat complex process. If you don't particularly need to serve directly from the MrSID files, I would suggest just converting to GeoTIFF and using that. Most existing binaries should support GeoTIFF directly. 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 saintsjd at YAHOO.COM Wed Dec 8 11:47:42 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Wed, 8 Dec 2004 11:47:42 -0800 Subject: Mr SID in mapserver In-Reply-To: <931f8ea90412081142af210bb@mail.gmail.com> Message-ID: What is the best way to convert MrSID to GeoTiff? is there a way to do it on linux? Thanks Jon --- Frank Warmerdam wrote: > On Wed, 8 Dec 2004 11:28:20 -0800, Jon Saints > wrote: > > Hi > > > > I have a Mr Sid raster i would like to display in > > mapserver. What is the best way to do that? should > i > > convert to another format? > > Jon, > > It is possible to download the MrSID SDK from > Lizardtech > and then build a GDAL using it, and then build > MapServer > using that GDAL. But that is a somewhat complex > process. > If you don't particularly need to serve directly > from the MrSID > files, I would suggest just converting to GeoTIFF > and using > that. Most existing binaries should support GeoTIFF > directly. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > From ARyan at CO.LINN.OR.US Wed Dec 8 11:49:41 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 8 Dec 2004 11:49:41 -0800 Subject: Emulating mode=map with python mapscrip t Message-ID: Hey, thanks for the reply. So I have to save the image in order to spit it back? Is there no way to do this w/o saving? Adam > -----Original Message----- > From: Howard Butler [mailto:hobu at IASTATE.EDU] > Sent: Wednesday, December 08, 2004 11:39 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Emulating mode=map with > python mapscript > > > I think you need a blank line after the content type. Here > is how I did it with earlier mapscript > > > print "Content-type: image/jpeg" > > print > > output = open(drgimagefilename, 'rb').read() > > print output > > That extra print statement after the printing of the content > type ends the header block. > > Howard > From hobu at IASTATE.EDU Wed Dec 8 11:54:54 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 8 Dec 2004 13:54:54 -0600 Subject: Emulating mode=map with python mapscrip t In-Reply-To: Message-ID: Adam, No, as I was saying this is an older mapscript variant. Do what you were doing, but just add an extra \n by giving it a print with a blank line. Sorry for the confusion. print "Content-type: image/jpeg" print print mapImg.write() At 01:49 PM 12/8/2004, Ryan, Adam wrote: >Hey, thanks for the reply. > >So I have to save the image in order to spit it back? Is there no way to do >this w/o saving? > >Adam > > > -----Original Message----- > > From: Howard Butler [mailto:hobu at IASTATE.EDU] > > Sent: Wednesday, December 08, 2004 11:39 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Emulating mode=map with > > python mapscript > > > > > > I think you need a blank line after the content type. Here > > is how I did it with earlier mapscript > > > > > print "Content-type: image/jpeg" > > > print > > > output = open(drgimagefilename, 'rb').read() > > > print output > > > > That extra print statement after the printing of the content > > type ends the header block. > > > > Howard > > From ARyan at CO.LINN.OR.US Wed Dec 8 12:07:30 2004 From: ARyan at CO.LINN.OR.US (Ryan, Adam) Date: Wed, 8 Dec 2004 12:07:30 -0800 Subject: Emulating mode=map with python mapscrip t Message-ID: Weird...neither of these works for me: --------- print "Content-type: image/png" print print mapImg.write() --------- mapImg.save("myimg.png") content = open("myimg.png").read() print "Content-type: image/png" print print content --------- Using the latter method the file is saved and looks fine (opening it up from Windows explorer), it's just not getting to the browser w/o errors. Adam > -----Original Message----- > From: Howard Butler [mailto:hobu at iastate.edu] > Sent: Wednesday, December 08, 2004 11:55 AM > To: Ryan, Adam; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Emulating mode=map with python mapscrip t > > > Adam, > > No, as I was saying this is an older mapscript variant. Do > what you were > doing, but just add an extra \n by giving it a print with a blank > line. Sorry for the confusion. > > print "Content-type: image/jpeg" > print > print mapImg.write() > > At 01:49 PM 12/8/2004, Ryan, Adam wrote: > >Hey, thanks for the reply. > > > >So I have to save the image in order to spit it back? Is > there no way > >to do this w/o saving? > > > >Adam > > > > > -----Original Message----- > > > From: Howard Butler [mailto:hobu at IASTATE.EDU] > > > Sent: Wednesday, December 08, 2004 11:39 AM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] Emulating mode=map with python > > > mapscript > > > > > > > > > I think you need a blank line after the content type. > Here is how I > > > did it with earlier mapscript > > > > > > > print "Content-type: image/jpeg" > > > > print > > > > output = open(drgimagefilename, 'rb').read() > > > > print output > > > > > > That extra print statement after the printing of the content type > > > ends the header block. > > > > > > Howard > > > > From fwarmerdam at GMAIL.COM Wed Dec 8 12:08:31 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 8 Dec 2004 15:08:31 -0500 Subject: Mr SID in mapserver In-Reply-To: <20041208194742.39526.qmail@web53908.mail.yahoo.com> Message-ID: On Wed, 8 Dec 2004 11:47:42 -0800, Jon Saints wrote: > What is the best way to convert MrSID to GeoTiff? > > is there a way to do it on linux? Jon, Well "best way" is a broad request. I am pretty sure there are linux tools (or at least the SDK) available from MrSID. But I am not aware of any binary distributions of a translator package that is freely available from any other source that includes MrSID support. I would suggest you look into what Lizardtech has to offer. You might need to do the translation on windows to use their utilities. I might yet dig into including MrSID support in my FWTools builds. 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.lime at DNR.STATE.MN.US Wed Dec 8 12:13:52 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 8 Dec 2004 14:13:52 -0600 Subject: white text under color text Message-ID: You can also use OUTLINECOLOR in the LABEL object. For black over white you'd do: COLOR 0 0 0 OUTLINECOLOR 255 255 255 You can use Eric's suggestion to then add a drop shadow. Steve >>> Eric Bridger 12/8/2004 10:04:07 AM >>> On Wed, 2004-12-08 at 10:59, Kristjan Annus wrote: > Hi > > I have seen in various samples that text labels i.e. street names are drawn > with black characters witch are placed on top of a little bit bigger white > characters - it makes text much better to read especialy on ortophotos. > Does anybody know how it is done? In your mapfile LABEL section add something like: SHADOWCOLOR 200 200 200 SHADOWSIZE 1 1 From jeff at PROPERTYKEY.COM Wed Dec 8 12:36:59 2004 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Wed, 8 Dec 2004 14:36:59 -0600 Subject: Mr SID in mapserver In-Reply-To: <931f8ea904120812086dbb476b@mail.gmail.com> Message-ID: Frank Warmerdam wrote: > On Wed, 8 Dec 2004 11:47:42 -0800, Jon Saints wrote: > >>What is the best way to convert MrSID to GeoTiff? >> >>is there a way to do it on linux? > > > Jon, > > Well "best way" is a broad request. I am pretty sure there > are linux tools (or at least the SDK) available from MrSID. > But I am not aware of any binary distributions of a translator > package that is freely available from any other source that > includes MrSID support. > > I would suggest you look into what Lizardtech has to offer. You > might need to do the translation on windows to use their utilities. LizardTech does have a image converter called mrsiddecode in their SDK that will convert from MrSid to a variety of formats (TIFF, GeoTIFF, JPEG, etc.). I've used the Linux version and it seems to work fine for me. You can download the SDK from developer.lizardtech.com. -- Jeff Hoffmann jeff at propertykey.com From bob.basques at CI.STPAUL.MN.US Wed Dec 8 12:51:32 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 8 Dec 2004 14:51:32 -0600 Subject: Mr SID in mapserver In-Reply-To: Message-ID: I've done something similar, only I used the old (FREE) MrSid server. I wrote a script that hit the free server for producing new seamless tiled datasets from a set of tiled MrSid files at various resolutions. The Free Server is still out on the Net floating around. I've used the Linux version with PERL exclusively, but I believe there is a Windows version as well. bobb Jeff Hoffmann wrote: >Frank Warmerdam wrote: > > >>On Wed, 8 Dec 2004 11:47:42 -0800, Jon Saints wrote: >> >> >> >>>What is the best way to convert MrSID to GeoTiff? >>> >>>is there a way to do it on linux? >>> >>> >>Jon, >> >>Well "best way" is a broad request. I am pretty sure there >>are linux tools (or at least the SDK) available from MrSID. >>But I am not aware of any binary distributions of a translator >>package that is freely available from any other source that >>includes MrSID support. >> >>I would suggest you look into what Lizardtech has to offer. You >>might need to do the translation on windows to use their utilities. >> >> > >LizardTech does have a image converter called mrsiddecode in their SDK >that will convert from MrSid to a variety of formats (TIFF, GeoTIFF, >JPEG, etc.). I've used the Linux version and it seems to work fine for >me. You can download the SDK from developer.lizardtech.com. > >-- >Jeff Hoffmann >jeff at propertykey.com > > > From saintsjd at YAHOO.COM Wed Dec 8 12:46:13 2004 From: saintsjd at YAHOO.COM (Jon Saints) Date: Wed, 8 Dec 2004 12:46:13 -0800 Subject: Mr SID in mapserver In-Reply-To: <41B765EB.20503@propertykey.com> Message-ID: I found the link to the download page for the utility to convert MrSID to Tiff, geoTiff, jpeg etc. http://www.lizardtech.com/download/dl_options.php?page=tools Thanks Jon --- Jeff Hoffmann wrote: > Frank Warmerdam wrote: > > On Wed, 8 Dec 2004 11:47:42 -0800, Jon Saints > wrote: > > > >>What is the best way to convert MrSID to GeoTiff? > >> > >>is there a way to do it on linux? > > > > > > Jon, > > > > Well "best way" is a broad request. I am pretty > sure there > > are linux tools (or at least the SDK) available > from MrSID. > > But I am not aware of any binary distributions of > a translator > > package that is freely available from any other > source that > > includes MrSID support. > > > > I would suggest you look into what Lizardtech has > to offer. You > > might need to do the translation on windows to use > their utilities. > > LizardTech does have a image converter called > mrsiddecode in their SDK > that will convert from MrSid to a variety of formats > (TIFF, GeoTIFF, > JPEG, etc.). I've used the Linux version and it > seems to work fine for > me. You can download the SDK from > developer.lizardtech.com. > > -- > Jeff Hoffmann > jeff at propertykey.com > From bfischer at HOUSTONENGINEERINGINC.COM Wed Dec 8 13:17:43 2004 From: bfischer at HOUSTONENGINEERINGINC.COM (Brian Fischer) Date: Wed, 8 Dec 2004 15:17:43 -0600 Subject: Mr SID in mapserver Message-ID: While were on the subject. Has anyone compiled Mr SID support into PHP mapscript? If so, is the .dll available to download? Also has anyone done any comparison on using a large Mr SID image vs a tiled dataset of tiff, GeoTiff or jgep for a layer? I guess I am wondering if I would see much of a difference in speed when generating an image from MapServer. Thanks, Brian ________________________________ From: UMN MapServer Users List on behalf of Jon Saints Sent: Wed 12/8/2004 2:46 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mr SID in mapserver I found the link to the download page for the utility to convert MrSID to Tiff, geoTiff, jpeg etc. http://www.lizardtech.com/download/dl_options.php?page=tools Thanks Jon --- Jeff Hoffmann wrote: > Frank Warmerdam wrote: > > On Wed, 8 Dec 2004 11:47:42 -0800, Jon Saints > wrote: > > > >>What is the best way to convert MrSID to GeoTiff? > >> > >>is there a way to do it on linux? > > > > > > Jon, > > > > Well "best way" is a broad request. I am pretty > sure there > > are linux tools (or at least the SDK) available > from MrSID. > > But I am not aware of any binary distributions of > a translator > > package that is freely available from any other > source that > > includes MrSID support. > > > > I would suggest you look into what Lizardtech has > to offer. You > > might need to do the translation on windows to use > their utilities. > > LizardTech does have a image converter called > mrsiddecode in their SDK > that will convert from MrSid to a variety of formats > (TIFF, GeoTIFF, > JPEG, etc.). I've used the Linux version and it > seems to work fine for > me. You can download the SDK from > developer.lizardtech.com. > > -- > Jeff Hoffmann > jeff at propertykey.com > From sirronj at PACBELL.NET Wed Dec 8 15:40:34 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Wed, 8 Dec 2004 15:40:34 -0800 Subject: simple tool for conversion In-Reply-To: <907DDD78335655428D36618B5DA4D1FD1B7D12@s2-ssm-r1.glfc.forestry.ca> Message-ID: I do the following: [joseph at spare:]$ proj +units=us-ft +init=nad83:4202 < -119.770623 > 36.830072 > EOD -7049825.31 -4677803.10 45036164.88 26747054.17 I am not sure what the results are. Are these x/y coordinates? And if so - which set the upper or the lower. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Lawrence, Kevin Sent: Wednesday, December 08, 2004 7:05 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion proj - the same utility used for on the fly re-projection one example echo $lat $long | proj +proj=lcc +lon_0=95w +lat_0=0 +lat_1=49 +lat2=77 -r project geographic to lambert conformal origin -95 0 1st parallel 49 2nd parallel 77 KL > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Joseph Norris[SMTP:sirronj at PACBELL.NET] > Reply To: Joseph Norris > Sent: Wednesday, December 08, 2004 9:58 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] simple tool for conversion > > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14 > ,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > From richard.roger at AGRIC.NSW.GOV.AU Wed Dec 8 18:03:41 2004 From: richard.roger at AGRIC.NSW.GOV.AU (Richard E. Roger) Date: Thu, 9 Dec 2004 13:03:41 +1100 Subject: Does MRSID SDK use Kakadu JPEG2000 ? Message-ID: Slightly off topic, I'm afraid... I gather from Drew's message (below) that Geo_DSDK-4... is the MRSID SDK which Lizardtech produce. I note that the error message mentions "kdu_tile". This seems to be part of the Kakadu Software JPEG2000 implementation (www.kakadusoftware.com). Google "kdu_tile". Does this mean that Lizardtech are licensing the Kakadu Software JPEG2000 SDK to provide their (Lizardtech's) JPEG2000 capabilities? Anyone know, even if your response is of the "You may very well think that but I couldn't possibly comment" variety? Regards Richard E. Roger Dr. R. E. Roger NSW Department of Primary Industries Spatial Information Officer Systems 161 Kite St Resource Information Unit Locked Bag 21 ORANGE NSW 2800 ph: (02) 6391 3697 fax: (02) 6391 3740 ------------------------------ Date: Tue, 7 Dec 2004 08:39:44 -0600 From: Simpson Subject: Render Tiled JP2s with MRSID SDK enabled GDAL I have an installation of MapServer 4.4.0 using GDAL 1.2.5 on Linux 2.4.20-28.8smp. The GDAL is compiled with Geo_DSDK-4.0.9.713. I have a tile index layer of jp2 files that am having trouble rendering at certain scales. At a small scale and large scale, the image renders ok, but in between I get: mapserv: ../compressed/codestream.cpp:3944: kdu_tile kdu_codestream::open_tile(kdu_coords): Assertion `(tile_idx.x >= 0) && (tile_idx.x < state->num_tiles.x) && (tile_idx.y >= 0) && (tile_idx.y < state->num_tiles.y)' failed. I suspect an issue with the overviews in the jp2s: Band 1 Block=6269x64 Type=Byte, ColorInterp=Red Overviews: 3135x3508, 1567x1754, 784x877, 392x439, 196x219, 98x110, 49x55, 24x27, 12x14, 6x7, 3x3 Has anyone had a similar issue or have any suggestions? Thanks for any help, Drew. This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Dec 8 18:26:58 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 8 Dec 2004 21:26:58 -0500 Subject: Does MRSID SDK use Kakadu JPEG2000 ? In-Reply-To: Message-ID: On Thu, 9 Dec 2004 13:03:41 +1100, Richard E. Roger wrote: > Does this mean that Lizardtech are licensing the Kakadu Software JPEG2000 > SDK to provide their (Lizardtech's) JPEG2000 capabilities? Richard, My understanding is that this is the same (perhaps evolved) SDK that was developed by Mapping Science before it was absorbed into Lizardtech. My understanding from then was that they licenced a early version of Kakadu and built on that, making a variety of fairly significant changes to the internals of the code. Apparently the ERMapper JPEG2000 support in their SDK is built on the j2000 freeware sdk. I imagine they also have made a variety of improvements. GDAL provides JPEG2000 via any of Kakadu directly, the ECW SDK, the MrSID SDK or the JasPer library. Of these JasPer has severe performance issues for large images. Since the Kakadu library is not freely available I would expect to de-emphasize it's use in GDAL in favour of the ECW or MrSID SDK based solutions for JPEG2000 in the 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 saso.celarc at HERMES-PLUS.SI Thu Dec 9 00:46:43 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Thu, 9 Dec 2004 02:46:43 -0600 Subject: example1-9 doesn't work in browse mode Message-ID: It seems there is problem with setting value to [map], [mapext], [img] variables. When I use starting html page where these variables are already set, the mechanism works fine. I did this by changing form definition for starting page:
In case of original form definiton:
i get : "msEvalRegex(): Regular expression error. String ([map]) failed expression test. " I think, that also with original form, the variables should get values from somewhere ! Do you have any idea, what is wrong here ? Regards, Sa?o Celarc From jcastil1 at TRAGSA.ES Thu Dec 9 03:53:21 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Thu, 9 Dec 2004 12:53:21 +0100 Subject: datapattern and OGR connectiontype and MORE Message-ID: Hi there, I'm wondering if there is any methos related or notr with DATAPATTER that allow to chande the "DATA". Tyler Mitchell wrote one year ago "Can the datapattern method be used for other data sources than simple shape file references (i.e. used in the sql for a postgis layer?)." I've been seraching the archives with not results...my question is just that . I'm using mapserv4.2 IIS php OracleSpatia on Oralce8.1.7 I would like to change the DATA 'cos I have to select the data depending on some parameters from the users. I've tried with "DATAPATTERN ".*" (and all it's different ways) + "map_layername_data" but no results, no errors and the DATA comes from the mapfile definition!!! It works find with shp+bdf files!!!! It works find with CONNECTIONTYPE oraclespatial!!!! (but I will have problems when query the map--> "msOracleSpatialLayerGetShape(): OracleSpatial error. Function not implemented yet") It fails with CONNECTIONTYPE OGR here is an mapfile scratch: MAP NAME Frames_ IMAGETYPE png24 SIZE 800 600 EXTENT -450000 3800000 1200000 4870000 SHAPEPATH "../data/" SYMBOLSET "../symbols/symbols35.sym" FONTSET "../fonts/fonts.list" UNITS METERS DATAPATTERN ".*" . . . . LAYER # Autonomias NAME autonomias STATUS DEFAULT TYPE POLYGON GROUP NOLEYENDA CONNECTIONTYPE OGR CONNECTION "OCI:XXX/XXXXX at XXX" DATA "SELECT * FROM AUTONOMIAS_vw" . . . Any Idea? Other question: Does any one know why : DATA "GEOMETRY FROM (SELECT * FROM AUTONOMIAS_VW WHERE BUSINESS like DECODE ('%Business%','TantoPorCiento','%','%Business%') AND EMERGENCIA like DECODE ('%Emerg%','TantoPorCiento','%','%Emerg%') AND LINEGO like DECODE('% Linego%','TantoPorCiento','%','%Linego%'))" retuns no data when the data on business, emergencia, lineo is different to "TantoPorCiento", I mean, if a change any values of business, emergencia, lineo there is no data returned but If I try the same query on the SQL_Plus... the data exits I'm trying to know the "DATA" query that mapserver send to oracle. I'm trying whit DEBUG, but I have not a clear idea of how to use it :-( Thanks in advance From temiz at DEPREM.GOV.TR Thu Dec 9 05:53:47 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Thu, 9 Dec 2004 15:53:47 +0200 Subject: my mapserver does not work in IE Message-ID: hello For mapscript zoom function, this javascript code does not work in IE, but works in Linux browsers such as FireFox and Mozilla . Which part does not suit IE ? Here is the code ? ~~~~~~~~~~~~ function startRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = 0; r.style.height = 0; r.style.pixelLeft = event.x; r.style.pixelTop = event.y; r.style.visibility = 'visible'; } else if (document.layers) { var r = document.rubberBand; r.clip.width = 0; r.clip.height = 0; r.left = evt.x; r.top = evt.y; r.visibility = 'show'; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = 0; r.style.height = 0; r.style.left = evt.clientX + 'px'; r.style.top = evt.clientY + 'px'; r.style.visibility = 'visible'; } document.captureEvents(Event.MOUSEMOVE); document.onmousemove = moveRubber; } function moveRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = event.x - r.style.pixelLeft - 2; r.style.height = event.y - r.style.pixelTop - 2; var f = document.forms('viewmap'); f.w.value = r.style.width; f.h.value = r.style.height; } else if (document.layers) { var r = document.rubberBand; r.clip.width = evt.x - r.left - 2 ; r.clip.height = evt.y - r.top - 2; r.document.open(); r.document.write('
<\/td><\/tr><\/table>'); r.document.close(); var f = document.forms('viewmap'); f.w.value = r.clip.width; f.h.value = r.clip.height; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = evt.clientX - parseInt(r.style.left) - 2; r.style.height = evt.clientY - parseInt(r.style.top) - 2; var ht = document.getElementById('h'); var wt = document.getElementById('w'); wt.value = r.style.width; ht.value = r.style.height; } } function stopRubber (evt) { document.releaseEvents(Event.MOUSEMOVE); document.onmousemove = null; } ~~~~~~~~~~~~~~~~ kind 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 mercutio at POBOX.COM Thu Dec 9 06:00:33 2004 From: mercutio at POBOX.COM (Aaron Craig) Date: Thu, 9 Dec 2004 15:00:33 +0100 Subject: Segfault under Mapscript/Perl - Mapserver 4.4.0 Message-ID: I'm getting a segmentation fault when I ask for a layer's name under Perl. The following script (make sure you've got mapscript.pm installed, copy the text into a file, chmod 0755 the file and run it off the command line) demonstrates the error. I've done a fresh build/install of mapserver 4.4.0 and the perl module in mapscript/perl inside the 4.4.0 tarball. Any insight would be appreciated. ============================================================================================= #!/usr/bin/perl use strict; use warnings; use mapscript; $| = 1; my $sMapFileName = "test.map"; print "Creating test map file..."; MakeMapfile(); print "OK\n"; print "Creating map object..."; my $map = new mapscript::mapObj($sMapFileName) || die("Couldn't create map instance"); print "OK\n"; my $nLayerCount = $map->{numlayers}; print "Getting information for $nLayerCount layer(s)\n"; for(my $i = 0; $i < $nLayerCount; $i++) { print "Getting layer at index $i..."; my $lyr = $map->getLayer($i) || die("Couldn't get a layer for index $i"); print "OK\n"; print "Getting layer name..."; my $sLayerName = ""; # comment out this line and the segfault disappears $sLayerName = $lyr->{name} || "No name"; print "OK\n"; print "$i: "; print "$lyr: "; print "$sLayerName\n"; } print "Cleaning up..."; unlink $sMapFileName; print "OK\n"; sub MakeMapfile { open(OUT, ">$sMapFileName") || die("Couldn't create test mapfile: $!"); print OUT qq{MAP NAME "Test" STATUS ON EXTENT -71.5 39.5 -63.0 46.0 SIZE 504 385 IMAGETYPE PNG UNITS DD OUTPUTFORMAT NAME PNG DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGB END SYMBOL TYPE ELLIPSE NAME "circle" POINTS 1 1 END FILLED TRUE END SYMBOL TYPE VECTOR NAME "plus" POINTS .5 0 .5 1 -99 -99 0 .5 1 .5 END END LAYER NAME "clickline" TYPE LINE STATUS OFF END LAYER NAME "clickline1" TYPE LINE STATUS OFF END LAYER NAME "clickline2" TYPE LINE STATUS OFF END LAYER NAME "clickline3" TYPE LINE STATUS OFF END LAYER NAME "clickline4" TYPE LINE STATUS OFF END END }; close OUT; } ====================================================================================================== -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== From ealpert at DIGITALGLOBE.COM Thu Dec 9 06:26:31 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 9 Dec 2004 07:26:31 -0700 Subject: simple tool for conversion Message-ID: I still don't see why you feel you must reproject your lat/long data. Look back at the emails people have sent you. You just need to set a correct PROJECTION block for each layer and the mapfile and mapserver will take care of the rest. -e ________________________________ From: UMN MapServer Users List on behalf of Joseph Norris Sent: Wed 12/8/2004 4:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion I do the following: [joseph at spare:]$ proj +units=us-ft +init=nad83:4202 < -119.770623 > 36.830072 > EOD -7049825.31 -4677803.10 45036164.88 26747054.17 I am not sure what the results are. Are these x/y coordinates? And if so - which set the upper or the lower. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Lawrence, Kevin Sent: Wednesday, December 08, 2004 7:05 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion proj - the same utility used for on the fly re-projection one example echo $lat $long | proj +proj=lcc +lon_0=95w +lat_0=0 +lat_1=49 +lat2=77 -r project geographic to lambert conformal origin -95 0 1st parallel 49 2nd parallel 77 KL > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Joseph Norris[SMTP:sirronj at PACBELL.NET] > Reply To: Joseph Norris > Sent: Wednesday, December 08, 2004 9:58 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] simple tool for conversion > > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14 > ,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bjoern.platzen at MOMATEC.DE Thu Dec 9 07:46:13 2004 From: bjoern.platzen at MOMATEC.DE (=?iso-8859-1?Q?Bj=F6rn_Platzen?=) Date: Thu, 9 Dec 2004 16:46:13 +0100 Subject: my mapserver does not work in IE In-Reply-To: Message-ID: Hi Ahmet, this one works for me in all browsers: function startRubber (evt) { if (document.mapform.mode.value=='zoombox'){ if (document.all) { var r = document.all.rubberBand; r.style.width = 0; r.style.height = 0; r.style.pixelLeft = event.x; r.style.pixelTop = event.y; r.style.visibility = 'visible'; document.mapform.boxxy1.value = event.offsetX + ' ' + event.offsetY; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = 0; r.style.height = 0; r.style.left = evt.clientX + 'px'; r.style.top = evt.clientY + 'px'; r.style.visibility = 'visible'; document.mapform.boxxy1.value = evt.clientX + ' ' + evt.clientY; } else if (document.layers) { var r = document.rubberBand; r.clip.width = 0; r.clip.height = 0; r.left = evt.x; r.top = evt.y; r.visibility = 'show'; document.mapform.boxxy1.value = evt.x + ' ' + evt.y; } if (document.layers) document.captureEvents(Event.MOUSEMOVE); document.onmousemove = moveRubber; } } function moveRubber (evt) { if (document.all) { var r = document.all.rubberBand; r.style.width = event.x - r.style.pixelLeft; r.style.height = event.y - r.style.pixelTop; } else if (document.getElementById) { var r = document.getElementById('rubberBand'); r.style.width = evt.clientX - parseInt(r.style.left); r.style.height = evt.clientY - parseInt(r.style.top); } else if (document.layers) { var r = document.rubberBand; r.clip.width = evt.x - r.left; r.clip.height = evt.y - r.top; r.document.open(); r.document.write('
<\/TD><\/TR><\/TABLE>'); r.document.close(); } } function stopRubber (evt) { if (document.all){ document.mapform.boxxy2.value = event.offsetX + ' ' + event.offsetY; } if (document.all && !document.getElementById){ document.releaseEvents(Event.MOUSEMOVE); document.onmousemove = null; r.style.visibility = 'hidden'; document.mapform.submit(); } else if (document.getElementById) { var r = document.getElementById('rubberBand'); document.onmousemove = null; if (!document.all){ document.mapform.boxxy2.value = evt.clientX + ' ' + evt.clientY; } if (document.mapform.boxxy2.value == document.mapform.boxxy1.value){ document.mapform.imgxy.value=document.mapform.boxxy1.value; document.mapform.boxxy1.value=''; document.mapform.boxxy2.value=''; document.mapform.mode.value="pan"; document.mapform.zoomdir.value = 2; } document.mapform.submit(); } else if (document.layers) { var r = document.rubberBand; document.mapform.boxxy2.value = evt.x + ' ' + evt.y; document.mapform.submit(); } } I'm setting the mode in my "mapform" and submit a hidden input for MouseDown and MouseUp (boxxy1 and boxxy2). If boxxy1==boxxy2, I delete the values and fill imgxy instead and set a zoomfactor = 2. I don't know if that will work for you as well, but here it's tested with IE6, Firefox 0.8-1.0, Netscape 7, Mozilla 1.7 and Safari. hth, regards, Bjoern. From mercutio at POBOX.COM Thu Dec 9 08:25:38 2004 From: mercutio at POBOX.COM (Aaron Craig) Date: Thu, 9 Dec 2004 17:25:38 +0100 Subject: Segfault under Mapscript/Perl - Mapserver 4.4.0 In-Reply-To: <41B85A81.8080907@pobox.com> Message-ID: Never mind. Removing /usr/lib/libmap.a fixed the problem. I believe I put it there by hand some time ago :S Aaron Craig wrote: > I'm getting a segmentation fault when I ask for a layer's name under > Perl. > > The following script (make sure you've got mapscript.pm installed, copy > the text into a file, chmod 0755 the file and run it off the command > line) demonstrates the error. > > I've done a fresh build/install of mapserver 4.4.0 and the perl module > in mapscript/perl inside the 4.4.0 tarball. > > Any insight would be appreciated. > > ============================================================================================== > > > -- Aaron Craig mercutio at pobox.com =========================================================== Get Firefox! http://www.spreadfirefox.com/?q=affiliates&id=0&t=1 =========================================================== From grs at GRSGIS.COM Thu Dec 9 08:34:26 2004 From: grs at GRSGIS.COM (Geographic Resource Solutions) Date: Thu, 9 Dec 2004 08:34:26 -0800 Subject: itemnquery (qstring) search specifications -- "=" vs like Message-ID: An HTML attachment was scrubbed... URL: From bluecarto at FREE.FR Thu Dec 9 08:54:13 2004 From: bluecarto at FREE.FR (GIRAUD Pierre) Date: Thu, 9 Dec 2004 17:54:13 +0100 Subject: my mapserver does not work in IE Message-ID: -------------- next part -------------- An embedded message was scrubbed... From: GIRAUD Pierre Subject: Re: [UMN_MAPSERVER-USERS] my mapserver does not work in IE Date: Thu, 09 Dec 2004 16:53:39 +0100 Size: 3708 URL: From msmith at SANANGELOMPO.ORG Thu Dec 9 09:11:02 2004 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Thu, 9 Dec 2004 11:11:02 -0600 Subject: jbox (redraw) Message-ID: Hi, I was reading the jbox documentation. I says you can auto refresh the zoom box by adding this line to the end of the javascript on your page. if (redraw) { document.mapserv.submit(); } This seems to work correctly, but I am now getting errors on the page. When I select details it tells me that (redraw) is not defined. Any suggestions? Mike From sirronj at PACBELL.NET Thu Dec 9 09:12:03 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 9 Dec 2004 09:12:03 -0800 Subject: simple tool for conversion In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16147AFE@COMAIL01.digitalglobe.com> Message-ID: Ethan, At the risk of being flamed into non-existence on this subject. I have repeatedly modified my map file to include the projection blocks that you and others in this list have mentioned. Each change has provided no results. I have sent copies of my projection file for the California zip map and I have received no explanation of what the terms mean. I have tried to get simple features to work and this has been unsuccessful. I am a complete newbie in the use of mapserver and I have approached the list giving full knowledge of this. Not seeing any change at all between my teacher location shapefile and my California zip file, I began to examine in detail the shapefile itself - my teacher shapefile. I used the utility fGIS a free arcview look-a-like and I began to manually build a teacher point layer over my California zip map and then dump the shape file. ( Incidentally I could bring both my California zip file and the Teacher point file that I built manually up to my mapserver and it displays perfectly) After examining my new point shapefile built with fGIS, I found no lat/long information that was in accord with the lat/long information I have in my database. This led me to the conclusion that I had to convert my lat/long data to x/y coordinates in accord with the California Zip file. Again I began to ask on this list about this - the use of proj and conversion utilities etc. I even asked about ( in replies to others inquires ) formulas for conversion. I received replies of learn basic algebra or something along that line. This was of no offense to me but it was not productive. Many of the discoveries that I have made that have furthered my on understanding have resulted from serious hacking sessions of writing script after script trying to find some correlation between the entries of one shapefile to entries in the other. I keep asking questions following the Chinese proverb: better to ask a question and look the fool for 5 minutes than not ask and look the fool for a lifetime. The term "newbie" which does not register in my spell-checker should be taken seriously and in all fairness some of the list members have take me as such and been very helpful. I apologies to any and all if my newbie-ness has caused any frustration. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Thursday, December 09, 2004 6:27 AM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion I still don't see why you feel you must reproject your lat/long data. Look back at the emails people have sent you. You just need to set a correct PROJECTION block for each layer and the mapfile and mapserver will take care of the rest. -e _____ From: UMN MapServer Users List on behalf of Joseph Norris Sent: Wed 12/8/2004 4:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion I do the following: [joseph at spare:]$ proj +units=us-ft +init=nad83:4202 < -119.770623 > 36.830072 > EOD -7049825.31 -4677803.10 45036164.88 26747054.17 I am not sure what the results are. Are these x/y coordinates? And if so - which set the upper or the lower. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [ mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Lawrence, Kevin Sent: Wednesday, December 08, 2004 7:05 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion proj - the same utility used for on the fly re-projection one example echo $lat $long | proj +proj=lcc +lon_0=95w +lat_0=0 +lat_1=49 +lat2=77 -r project geographic to lambert conformal origin -95 0 1st parallel 49 2nd parallel 77 KL > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Joseph Norris[SMTP:sirronj at PACBELL.NET] > Reply To: Joseph Norris > Sent: Wednesday, December 08, 2004 9:58 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] simple tool for conversion > > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14 > ,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sobomsawin at KASSINI.COM Thu Dec 9 10:50:22 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Thu, 9 Dec 2004 13:50:22 -0500 Subject: [UMN_MAPSERVER-USERS] simple tool for conversion In-Reply-To: Message-ID: Joseph, I would like to say that we are trying to help you as best as we can. But the projections concepts are not easy to understand and requires many knowledge that obviously you don't have (no offense). Many of us has studied in geographic, cartographic or geomatic domain and learned the projection concepts in classrooms or read a lot about that. So as a "newbie" like you say, I recommend you to take the time to demystify the projections and underlying concepts and maybe meet a person who can help you (it's more easy to understand something when somebody can explain it in front of you, not by e-mail!). To begin, I recommend you to take a look at these simple tutorials which will guide you through the concepts of projection systems: HYPERLINK "http://www.colorado.edu/geography/gcraft/notes/coordsys/coordsys_f.html"htt p://www.colorado.edu/geography/gcraft/notes/coordsys/coordsys_f.html HYPERLINK "http://www.geo.hunter.cuny.edu/mp/index.html"http://www.geo.hunter.cuny.edu /mp/index.html HYPERLINK "http://www.udel.edu/johnmack/frec480/480lec_projections.html"http://www.ude l.edu/johnmack/frec480/480lec_projections.html After, you will be able to better understand the parameters to set in proj as well as the dynamic and impact of projected and unprojected datas. These concepts are the basis of a good understanding of Mapserver. Hope this will help you to clarify all these concepts! Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy? : 9 d?cembre 2004 12:12 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] simple tool for conversion Ethan, At the risk of being flamed into non-existence on this subject. I have repeatedly modified my map file to include the projection blocks that you and others in this list have mentioned. Each change has provided no results. I have sent copies of my projection file for the California zip map and I have received no explanation of what the terms mean. I have tried to get simple features to work and this has been unsuccessful. I am a complete newbie in the use of mapserver and I have approached the list giving full knowledge of this. Not seeing any change at all between my teacher location shapefile and my California zip file, I began to examine in detail the shapefile itself - my teacher shapefile. I used the utility fGIS a free arcview look-a-like and I began to manually build a teacher point layer over my California zip map and then dump the shape file. ( Incidentally I could bring both my California zip file and the Teacher point file that I built manually up to my mapserver and it displays perfectly) After examining my new point shapefile built with fGIS, I found no lat/long information that was in accord with the lat/long information I have in my database. This led me to the conclusion that I had to convert my lat/long data to x/y coordinates in accord with the California Zip file. Again I began to ask on this list about this - the use of proj and conversion utilities etc. I even asked about ( in replies to others inquires ) formulas for conversion. I received replies of learn basic algebra or something along that line. This was of no offense to me but it was not productive. Many of the discoveries that I have made that have furthered my on understanding have resulted from serious hacking sessions of writing script after script trying to find some correlation between the entries of one shapefile to entries in the other. I keep asking questions following the Chinese proverb: better to ask a question and look the fool for 5 minutes than not ask and look the fool for a lifetime. The term "newbie" which does not register in my spell-checker should be taken seriously and in all fairness some of the list members have take me as such and been very helpful. I apologies to any and all if my newbie-ness has caused any frustration. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Thursday, December 09, 2004 6:27 AM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion I still don't see why you feel you must reproject your lat/long data. Look back at the emails people have sent you. You just need to set a correct PROJECTION block for each layer and the mapfile and mapserver will take care of the rest. -e _____ From: UMN MapServer Users List on behalf of Joseph Norris Sent: Wed 12/8/2004 4:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion I do the following: [joseph at spare:]$ proj +units=us-ft +init=nad83:4202 < -119.770623 > 36.830072 > EOD -7049825.31 -4677803.10 45036164.88 26747054.17 I am not sure what the results are. Are these x/y coordinates? And if so - which set the upper or the lower. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [HYPERLINK "mailto:MAPSERVER-USERS at lists.umn.edu"mailto:MAPSERVER-USERS at lists.umn.edu]O n Behalf Of Lawrence, Kevin Sent: Wednesday, December 08, 2004 7:05 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion proj - the same utility used for on the fly re-projection one example echo $lat $long | proj +proj=lcc +lon_0=95w +lat_0=0 +lat_1=49 +lat2=77 -r project geographic to lambert conformal origin -95 0 1st parallel 49 2nd parallel 77 KL > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Joseph Norris[SMTP:sirronj at PACBELL.NET] > Reply To: Joseph Norris > Sent: Wednesday, December 08, 2004 9:58 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] simple tool for conversion > > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14 > ,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 From Dan.Liu at STATE.MN.US Thu Dec 9 10:49:21 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Thu, 9 Dec 2004 12:49:21 -0600 Subject: jbox- java applet notinited Message-ID: Hi, In my demo.html file with JBox in it, I get 'applet jbox notinited error' once a while. The map is grey with a red 'x' at the top left of the map. Other than this, everything works fine. Does anybody know why? Thanks. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Thu Dec 9 11:15:14 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Dec 2004 12:15:14 -0700 Subject: jbox- java applet notinited In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2CA1@admin-itg-exch3.state.mn.us> Message-ID: On Thu, 9 Dec 2004 12:49:21 -0600, Dan Liu wrote: > > > > Hi, > > In my demo.html file with JBox in it, I get 'applet jbox notinited error' > once a while. The map is grey with a red 'x' at the top left of the map. > Other than this, everything works fine. > > > > Does anybody know why? > > Thanks. > > Dan I can not say for certain, but be sure not to call any jBox functions while it is initializing. jBox initializes when the tag gets read by the browser. I think that some browser/VM combinations will continue to process the HTML page while the applet is still loading. If the page then calls the applet, you will get the error you describe. For example, if you have a function that calls jBox.boxon() immediately after the applet tag, you may get the error. So instead use the parameter/value pair: within the applet tag, thus eliminating the possible conflict. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sirronj at PACBELL.NET Thu Dec 9 11:16:52 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 9 Dec 2004 11:16:52 -0800 Subject: [UMN_MAPSERVER-USERS] simple tool for conversion In-Reply-To: <001101c4de1f$f030f7f0$6701a8c0@jebediah> Message-ID: To all on and off the list, Please do not take my email just sent as any more than frustration with trying to accomplish a given task and not understanding all of the tools involved with the task. Yes what you have said is important - an understanding of these cartography principals is very important and I wish to add that nothing I said in my email was in any way an attempt to offend anyone. I just expressed my frustration at where I am in this project at the moment. However..... My position is what I state in my signature. I am first and foremost an application programmer in the areas given below. I have written accounting systems and I would say that I have no knowledge of accounting other than being put with those who do. I have written a advanced javascript and dbf manipulation modules for ARCIMS applications knowing nothing of Mapping other than being with those who do, publishing systems for publishers - knowing nothing of publishing other than being with those who do, advanced encrypting code - with little or no knowledge to the Math that went into creating the algorithm - but working with those who do . In other words for the past 20 years I have had to adapt what I do to the needs of users that were far more advanced in their fields than I could ever hope to be. In each case, they could always provide me with a model that I could follow to continue production. I would never claim to be able to acquire the expertise that you have acquired in your field and though I love this whole GIS concept, I am not in the position to get to level that you have on the timeline that I have at this moment. Remember that this was a proof of concept exercise. If proof is provided it could lead to a timeline that would allow the deeper understanding of the issues involved. The proof of concept was: 1. get mapserver running with demo - completed 2. create a linux based GIS lab environment with all of the tools (perl modules, command line, web based etc.) completed 3. pull data from Mysql database and put a point for each record pulled from the database on my California zip map - not completed 4. be happy with new projects that would extend 2 and my own knowledge of GIS I am at 3 with this problem and I am trying to get to 4, but time is running out for 3. Thanks to all for your patience and your help - again I am sorry if I caused any offence. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Skweda O'Bomsawin Sent: Thursday, December 09, 2004 10:50 AM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] RE : [UMN_MAPSERVER-USERS] simple tool for conversion Joseph, I would like to say that we are trying to help you as best as we can. But the projections concepts are not easy to understand and requires many knowledge that obviously you don't have (no offense). Many of us has studied in geographic, cartographic or geomatic domain and learned the projection concepts in classrooms or read a lot about that. So as a "newbie" like you say, I recommend you to take the time to demystify the projections and underlying concepts and maybe meet a person who can help you (it's more easy to understand something when somebody can explain it in front of you, not by e-mail!). To begin, I recommend you to take a look at these simple tutorials which will guide you through the concepts of projection systems: HYPERLINK "http://www.colorado.edu/geography/gcraft/notes/coordsys/coordsys_f.html"htt p://www.colorado.edu/geography/gcraft/notes/coordsys/coordsys_f.html HYPERLINK "http://www.geo.hunter.cuny.edu/mp/index.html"http://www.geo.hunter.cuny.edu /mp/index.html HYPERLINK "http://www.udel.edu/johnmack/frec480/480lec_projections.html"http://www.ude l.edu/johnmack/frec480/480lec_projections.html After, you will be able to better understand the parameters to set in proj as well as the dynamic and impact of projected and unprojected datas. These concepts are the basis of a good understanding of Mapserver. Hope this will help you to clarify all these concepts! Skweda O'Bomsawin -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy? : 9 d?cembre 2004 12:12 ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] simple tool for conversion Ethan, At the risk of being flamed into non-existence on this subject. I have repeatedly modified my map file to include the projection blocks that you and others in this list have mentioned. Each change has provided no results. I have sent copies of my projection file for the California zip map and I have received no explanation of what the terms mean. I have tried to get simple features to work and this has been unsuccessful. I am a complete newbie in the use of mapserver and I have approached the list giving full knowledge of this. Not seeing any change at all between my teacher location shapefile and my California zip file, I began to examine in detail the shapefile itself - my teacher shapefile. I used the utility fGIS a free arcview look-a-like and I began to manually build a teacher point layer over my California zip map and then dump the shape file. ( Incidentally I could bring both my California zip file and the Teacher point file that I built manually up to my mapserver and it displays perfectly) After examining my new point shapefile built with fGIS, I found no lat/long information that was in accord with the lat/long information I have in my database. This led me to the conclusion that I had to convert my lat/long data to x/y coordinates in accord with the California Zip file. Again I began to ask on this list about this - the use of proj and conversion utilities etc. I even asked about ( in replies to others inquires ) formulas for conversion. I received replies of learn basic algebra or something along that line. This was of no offense to me but it was not productive. Many of the discoveries that I have made that have furthered my on understanding have resulted from serious hacking sessions of writing script after script trying to find some correlation between the entries of one shapefile to entries in the other. I keep asking questions following the Chinese proverb: better to ask a question and look the fool for 5 minutes than not ask and look the fool for a lifetime. The term "newbie" which does not register in my spell-checker should be taken seriously and in all fairness some of the list members have take me as such and been very helpful. I apologies to any and all if my newbie-ness has caused any frustration. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ethan Alpert [mailto:ealpert at digitalglobe.com] Sent: Thursday, December 09, 2004 6:27 AM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion I still don't see why you feel you must reproject your lat/long data. Look back at the emails people have sent you. You just need to set a correct PROJECTION block for each layer and the mapfile and mapserver will take care of the rest. -e _____ From: UMN MapServer Users List on behalf of Joseph Norris Sent: Wed 12/8/2004 4:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion I do the following: [joseph at spare:]$ proj +units=us-ft +init=nad83:4202 < -119.770623 > 36.830072 > EOD -7049825.31 -4677803.10 45036164.88 26747054.17 I am not sure what the results are. Are these x/y coordinates? And if so - which set the upper or the lower. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [HYPERLINK "mailto:MAPSERVER-USERS at lists.umn.edu"mailto:MAPSERVER-USERS at lists.umn.edu]O n Behalf Of Lawrence, Kevin Sent: Wednesday, December 08, 2004 7:05 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion proj - the same utility used for on the fly re-projection one example echo $lat $long | proj +proj=lcc +lon_0=95w +lat_0=0 +lat_1=49 +lat2=77 -r project geographic to lambert conformal origin -95 0 1st parallel 49 2nd parallel 77 KL > ---------- > From: UMN MapServer Users List[SMTP:MAPSERVER-USERS at LISTS.UMN.EDU] > on behalf of Joseph Norris[SMTP:sirronj at PACBELL.NET] > Reply To: Joseph Norris > Sent: Wednesday, December 08, 2004 9:58 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] simple tool for conversion > > Can anyone make a recommendation for unix command line tool that will > convert lat/long to xy coordinates? > > Thanks. > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14 > ,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 From eric at GOMOOS.ORG Thu Dec 9 11:18:36 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 9 Dec 2004 14:18:36 -0500 Subject: simple tool for conversion In-Reply-To: Message-ID: On Thu, 2004-12-09 at 12:12, Joseph Norris wrote: > Ethan, > > At the risk of being flamed into non-existence on this subject. I have > repeatedly modified my map file to include the projection blocks that you > and others in this list have mentioned. Each change has provided no > results. I have sent copies of my projection file for the California zip > map and I have received no explanation of what the terms mean. I have tried > to get simple features to work and this has been unsuccessful. Joseph, We've all been there. But it take patience and the willingness to start all over from scratch. It has finally occured to me that the root of your problem is that your California zip code file (is that a shape file?) is in a strange projection. An LCC projection but in US Feet. Meters are the usual units used. Early on we found this in the Proj4 epsg file with an epsg code between 26941 and 26946.Any of these should work except for the fact that your zip file is using US Feet vs. Meters. E.g. # NAD83 / California zone 1 <26941> +proj=lcc +lat_1=41.666666667 +lat_2=40.000000000 +lat_0=39.333333333 +lon_0=-122.000000000 +x_0=2000000.000 +y_0=500000.000 +ellps=GRS80 +datum=NAD83 +units=m no_defs <> Perhaps you could use a projection of init=epsg:26943 but with UNITS set to FEET. Have you tried that in your map file? That failing I would reccommend starting with a California Zip Code shape file in lat/long coordinates. These are available for free from the Census bureau: http://www.census.gov/geo/www/cob/z52000.html#shp Hope this finally helps. Eric From richard.greenwood at GMAIL.COM Thu Dec 9 11:40:14 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Dec 2004 12:40:14 -0700 Subject: [UMN_MAPSERVER-USERS] simple tool for conversion In-Reply-To: Message-ID: I haven't read all of this thread, so maybe this was already discussed. It sounds like your data are in two different coordinate systems. Mapserver can convert between coordinate systems. (to keep this breif, we'll pretend that "coordinate system" and "projection" are synonyms.) Lat/Lon is a spherical representation of the whole earth. Units are degrees of arc. California State Plane is a cartesian (flat) representation. Units are in feet. To get mapserver to convert your data you have to: 1. define a projection for the map output as a whole (what mapserver generates, and which is displayed in the browser). 2. define the projection of each input layer. If all your input data is in the same coordinate system you don't need to mess with that stuff. So if you want to output your maps in California Zone 1 put this in the MAP section of your map file projection "init=epsg: 2225" end And put this inside the LAYER definition of your lat/lon layer(s): projection "init=epsg: 4269" end The epsg number defines a projection and is in turn, defined in the "epsg" file in the $PROJ_LIB directory. (You may need to use other epsg numbers, I didn't look to see if you were in California Zone 1, that was just the first one I found.) HTH -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Dan.Liu at STATE.MN.US Thu Dec 9 11:47:00 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Thu, 9 Dec 2004 13:47:00 -0600 Subject: jbox- java applet notinited Message-ID: Hi Richard, Thanks first for answering. I called 'document.jBox.boxon()' when zoom in button is clicked. (See the demo.html below) Is this function call causing the problem? MapServer Demo Interface

MapServer Demo Interface


 Powered by MapServer

Browse map
Query feature
Query multiple features


Select Layers to Display:

Zoom In Pan Zoom Out

Zoom Size

Legend




-----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Thursday, December 09, 2004 1:15 PM To: Dan Liu Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited On Thu, 9 Dec 2004 12:49:21 -0600, Dan Liu wrote: > > > > Hi, > > In my demo.html file with JBox in it, I get 'applet jbox notinited error' > once a while. The map is grey with a red 'x' at the top left of the map. > Other than this, everything works fine. > > > > Does anybody know why? > > Thanks. > > Dan I can not say for certain, but be sure not to call any jBox functions while it is initializing. jBox initializes when the tag gets read by the browser. I think that some browser/VM combinations will continue to process the HTML page while the applet is still loading. If the page then calls the applet, you will get the error you describe. For example, if you have a function that calls jBox.boxon() immediately after the applet tag, you may get the error. So instead use the parameter/value pair: within the applet tag, thus eliminating the possible conflict. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mandhare at STATE.PA.US Thu Dec 9 11:57:58 2004 From: mandhare at STATE.PA.US (Manjiri Andhare) Date: Thu, 9 Dec 2004 13:57:58 -0600 Subject: jBox cursor style persistance Message-ID: Hello!! I'm in the process to include the jBox into my application. According to the documents, if i call the setcursor(string) method of jBox, the cursor style changes. But it changes only for the first click/first zoom rectangle drawing. After that the cursor style changes back to the default. I was trying to find more information about how to persist the mouse style in jBox. I even tryed to write a java script funciton to set the cursor style and to call onclick event of the radio button(radio button for pan, zoom-in,zoom- out. Any suggestions? Thank you, Manjiri Andhare From hunt at ZEDXINC.COM Thu Dec 9 12:09:16 2004 From: hunt at ZEDXINC.COM (Aaron D. Hunt) Date: Thu, 9 Dec 2004 15:09:16 -0500 Subject: NetCDF Message-ID: Does anyone have an example of how to use and display a NetCDF file in mapserver. Aaron From richard.greenwood at GMAIL.COM Thu Dec 9 12:24:26 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Dec 2004 13:24:26 -0700 Subject: jbox- java applet notinited In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2CA4@admin-itg-exch3.state.mn.us> Message-ID: On Thu, 9 Dec 2004 13:47:00 -0600, Dan Liu wrote: > > Hi Richard, > Thanks first for answering. I called 'document.jBox.boxon()' when zoom in > button is clicked. (See the demo.html below) Is this function call causing > the problem? No. Not unless the user is a REALLY fast clicker. I was refering to calling a jBox function during the page load, which it does not appear that you are doing. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com > > > > MapServer Demo Interface > > > > > >

MapServer Demo Interface

>
> >
>
> > > > >
> > > > > > > > > > >
> codebase="[host]/java/jBox" > code="jBoxPNG.class" > archive="jBoxPNG.jar,png.jar" > width="500" > height="500" > name="jBox" > MAYSCRIPT> > > >
  color="#FFFFFF">Powered by MapServer
>
> >
>
>

> > Browse > map
> Query > feature
> Query multiple > features > >


> >

> Select Layers to Display:
> > >

> Zoom In OnClick='document.jBox.boxon()' [zoomdir_1_check]> > Pan OnClick='document.jBox.dragon()' [zoomdir_0_check]> > Zoom Out OnClick='document.jBox.boxoff()' [zoomdir_-1_check]> >

> Zoom Size >

> > Legend


>
> >

>

border="0">
>
> >
>
> > > > > > > > > > > >
>


> > > > > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Thursday, December 09, 2004 1:15 PM > To: Dan Liu > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited > > On Thu, 9 Dec 2004 12:49:21 -0600, Dan Liu wrote: > > > > > > > > Hi, > > > > In my demo.html file with JBox in it, I get 'applet jbox notinited error' > > once a while. The map is grey with a red 'x' at the top left of the map. > > Other than this, everything works fine. > > > > > > > > Does anybody know why? > > > > Thanks. > > > > Dan > > I can not say for certain, but be sure not to call any jBox functions > while it is initializing. jBox initializes when the tag > gets read by the browser. I think that some browser/VM combinations > will continue to process the HTML page while the applet is still > loading. If the page then calls the applet, you will get the error you > describe. > > For example, if you have a function that calls jBox.boxon() > immediately after the applet tag, you may get the error. So instead > use the parameter/value pair: > > within the applet tag, thus eliminating the possible conflict. > > Regards, > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > From richard.greenwood at GMAIL.COM Thu Dec 9 12:27:23 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Dec 2004 13:27:23 -0700 Subject: jBox cursor style persistance In-Reply-To: Message-ID: On Thu, 9 Dec 2004 13:57:58 -0600, Manjiri Andhare wrote: > Hello!! > I'm in the process to include the jBox into my application. According to > the documents, if i call the setcursor(string) method of jBox, the cursor > style changes. But it changes only for the first click/first zoom rectangle > drawing. After that the cursor style changes back to the default. > I was trying to find more information about how to persist the mouse style > in jBox. > I even tryed to write a java script funciton to set the cursor style and to > call onclick event of the radio button(radio button for pan, zoom-in,zoom- > out. > Any suggestions? > Thank you, > Manjiri Andhare > Are you reloading the entire page each time, or are you using image swapping? If you are reloading the whole page, then obviously you need to reinitialize the cursor each page load. If you are using image swapping then it sounds like a bug. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mandhare at STATE.PA.US Thu Dec 9 12:39:35 2004 From: mandhare at STATE.PA.US (Andhare, Manjiri) Date: Thu, 9 Dec 2004 15:39:35 -0500 Subject: jBox cursor style persistance Message-ID: On Thu, 9 Dec 2004 13:57:58 -0600, Manjiri Andhare wrote: > Hello!! > I'm in the process to include the jBox into my application. According > to the documents, if i call the setcursor(string) method of jBox, the > cursor style changes. But it changes only for the first click/first > zoom rectangle drawing. After that the cursor style changes back to the default. > I was trying to find more information about how to persist the mouse > style in jBox. > I even tryed to write a java script funciton to set the cursor style > and to call onclick event of the radio button(radio button for pan, > zoom-in,zoom- out. > Any suggestions? > Thank you, > Manjiri Andhare > Are you reloading the entire page each time, or are you using image swapping? If you are reloading the whole page, then obviously you need to reinitialize the cursor each page load. If you are using image swapping then it sounds like a bug. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com Thank you Rich!! I'm not using image swapping. Do I need to write some java script code to initialize the cursor and call that function on form submit? Manjiri Andhare GIS co-ordinator PA Fish & Boat commission tel: (814)3595182 fax:(814)3595153 -------------- next part -------------- An HTML attachment was scrubbed... URL: From grs at GRSGIS.COM Thu Dec 9 12:40:00 2004 From: grs at GRSGIS.COM (Geographic Resource Solutions) Date: Thu, 9 Dec 2004 12:40:00 -0800 Subject: itemnquery (qstring) search specifications -- "=" vs like In-Reply-To: Message-ID: An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Thu Dec 9 13:17:55 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 9 Dec 2004 13:17:55 -0800 Subject: simple tool for conversion In-Reply-To: <1102619922.1434.31.camel@ubet.gomoos.org> Message-ID: Eric, Thank you for this information. If I have to switch shapefiles to get this to work - then I am all for it. So as I understand you, I have obtained the California state map as you indicated on your link. Does this mean that I can build my teacher shape file using the actual lat/long that I have and then I would be closer to my new California state map knowing about my new teacher shapefile? Thanks again for your help. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 11:19 AM To: Joseph Norris Cc: UMN MapServerList Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 12:12, Joseph Norris wrote: > Ethan, > > At the risk of being flamed into non-existence on this subject. I have > repeatedly modified my map file to include the projection blocks that you > and others in this list have mentioned. Each change has provided no > results. I have sent copies of my projection file for the California zip > map and I have received no explanation of what the terms mean. I have tried > to get simple features to work and this has been unsuccessful. Joseph, We've all been there. But it take patience and the willingness to start all over from scratch. It has finally occured to me that the root of your problem is that your California zip code file (is that a shape file?) is in a strange projection. An LCC projection but in US Feet. Meters are the usual units used. Early on we found this in the Proj4 epsg file with an epsg code between 26941 and 26946.Any of these should work except for the fact that your zip file is using US Feet vs. Meters. E.g. # NAD83 / California zone 1 <26941> +proj=lcc +lat_1=41.666666667 +lat_2=40.000000000 +lat_0=39.333333333 +lon_0=-122.000000000 +x_0=2000000.000 +y_0=500000.000 +ellps=GRS80 +datum=NAD83 +units=m no_defs <> Perhaps you could use a projection of init=epsg:26943 but with UNITS set to FEET. Have you tried that in your map file? That failing I would reccommend starting with a California Zip Code shape file in lat/long coordinates. These are available for free from the Census bureau: http://www.census.gov/geo/www/cob/z52000.html#shp Hope this finally helps. Eric From jfletcher at LATITUDEGEO.COM Thu Dec 9 13:50:16 2004 From: jfletcher at LATITUDEGEO.COM (John Fletcher) Date: Thu, 9 Dec 2004 13:50:16 -0800 Subject: SLD Temporary Files When Passing SLD url Message-ID: It seems that for every request that I make to Mapserver with an SLD= parameter, a temporary file is created in the same directory as the mapfile, with an sld.xml extension. The contents of these sld.xml files are identical to the contents of the SLD residing at the remote url as passed to Mapserver. Are these temporary sld files normally removed manually? Have other people experienced the same behaviour? I'm using Mapserver 4.4 release (kindly compiled by Howard Butler - thanks) on Windows 2000 and Apache. I normally like to figure these things out on my own, but couldn't find anything about this one... Thanks for the help, as always. John From bfraser at GEOANALYTIC.COM Thu Dec 9 13:50:30 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 9 Dec 2004 14:50:30 -0700 Subject: TileIndexes and Paths - YAP (yet another proposal) Message-ID: Tile Indexers, I'd like to resolve the tile-index problem soon (v4.6?). To briefly re-state the problem: The Current Situation: ================= Paths to tiles are currently constructed by Mapserver by appending various strings: mapfile path + SHAPEPATH + tile item value + DATA If any of the first three strings contain an absolute path, the ones to the left of it are ignored. This makes for not a very flexible (or portable) data arrangement if you've got more than one index.. A Choice of Enhancements for a Solution: ============================== 1. Mapserver would use the same absolute-path rule as above, but if it doesn't resolve to an existing file, would also try mapfile path + tile index path + tile item value + DATA OR 2. Add another keyword to the LAYER object: TILEPATHPREFIX (or something better) if present in the data LAYER, construct the path as: mapfile path + TILEPATHPREFIX + tile item value + DATA (the same absolute-path rule would apply) Either solution would not break existing site and should accomodate my wish to spread my data across file systems and Steve W's to have the tileindex in the same spot as the data. Any thoughts? preferences? Brent Fraser GeoAnalytic Inc. Tel:(403) 213-2700 bfraser at geoanalytic.com www.geoanalytic.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu Dec 9 13:54:19 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 9 Dec 2004 16:54:19 -0500 Subject: SLD Temporary Files When Passing SLD url Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of John Fletcher > Sent: Thursday, 09 December, 2004 16:50 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] SLD Temporary Files When > Passing SLD url > > > It seems that for every request that I make to Mapserver with > an SLD= parameter, a temporary file is created in the same > directory as the mapfile, with an sld.xml extension. The > contents of these sld.xml files are identical to the contents > of the SLD residing at the remote url as passed to Mapserver. > Are these temporary sld files normally removed manually? > Have other people experienced the same behaviour? > Another question: can such files be processed as streams by MapServer, as opposed to being stored on disk? > I'm using Mapserver 4.4 release (kindly compiled by Howard Butler - > thanks) on Windows 2000 and Apache. I normally like to > figure these things out on my own, but couldn't find anything > about this one... > > Thanks for the help, as always. > > John > From eric at GOMOOS.ORG Thu Dec 9 14:03:55 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 9 Dec 2004 17:03:55 -0500 Subject: simple tool for conversion In-Reply-To: Message-ID: On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California state > map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. From sirronj at PACBELL.NET Thu Dec 9 14:08:16 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 9 Dec 2004 14:08:16 -0800 Subject: simple tool for conversion In-Reply-To: <1102629840.1434.80.camel@ubet.gomoos.org> Message-ID: This is great! - Let me hack! :) #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 2:04 PM To: Joseph Norris Cc: UMN MapServerList Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California state > map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. From assefa at DMSOLUTIONS.CA Thu Dec 9 14:25:06 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 9 Dec 2004 17:25:06 -0500 Subject: SLD Temporary Files When Passing SLD url In-Reply-To: <08198B38967CBC478213D6FEA76C3040087305@napoleon> Message-ID: I have corrected this in mapserver cvs (just delete the temoorary file). I have created a Bug 1123 to track this change. If you have any problems with the fix please update the bug report. Best Regards, John Fletcher wrote: > It seems that for every request that I make to Mapserver with an SLD= > parameter, a temporary file is created in the same directory as the > mapfile, with an sld.xml extension. The contents of these sld.xml files > are identical to the contents of the SLD residing at the remote url as > passed to Mapserver. Are these temporary sld files normally removed > manually? Have other people experienced the same behaviour? > > I'm using Mapserver 4.4 release (kindly compiled by Howard Butler - > thanks) on Windows 2000 and Apache. I normally like to figure these > things out on my own, but couldn't find anything about this one... > > Thanks for the help, as always. > > John > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From richard.greenwood at GMAIL.COM Thu Dec 9 14:52:08 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Dec 2004 15:52:08 -0700 Subject: jBox cursor style persistance In-Reply-To: <42529C60130B66428EE04284C47C1A270139FB28@enhbgpri17.backup> Message-ID: On Thu, 9 Dec 2004 15:39:35 -0500, Andhare, Manjiri wrote: > > > > On Thu, 9 Dec 2004 13:57:58 -0600, Manjiri Andhare > wrote: > > > Hello!! > > > I'm in the process to include the jBox into my application. According > > > to the documents, if i call the setcursor(string) method of jBox, the > > > cursor style changes. But it changes only for the first click/first > > > zoom rectangle drawing. After that the cursor style changes back to the > default. > > > I was trying to find more information about how to persist the mouse > > > style in jBox. > > > I even tryed to write a java script funciton to set the cursor style > > > and to call onclick event of the radio button(radio button for pan, > > > zoom-in,zoom- out. > > > Any suggestions? > > > Thank you, > > > Manjiri Andhare > > > > > > > Are you reloading the entire page each time, or are you using image > swapping? If you are reloading the whole page, then obviously you need to > reinitialize the cursor each page load. If you are using image swapping then > it sounds like a bug. > > > > Thank you Rich!! > > I'm not using image swapping. Do I need to write some java script code to > initialize the cursor and call that function on form submit? Each time you load a new page, you are also loading a new copy of jBox which has to be initialized each time. (Hopefully the browser is caching jBox so that it does not have to fetch a copy each time, but that's not relevant here) jBox has not persistence beyond the scope of the current page. So you need a javascript function to set the cursor image when jBox initializes, which is to say, each time you load a new page. Rich From siki at AGT.BME.HU Thu Dec 9 17:18:09 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 10 Dec 2004 00:18:09 -0100 Subject: itemnquery (qstring) search specifications -- "=" vs like {Scanned} {Scanned} In-Reply-To: <200412092046.iB9Kk7mu036040@pimout3-ext.prodigy.net> Message-ID: Hi, It's regexp, try /^A$/ Bye Zoltan On Thu, 9 Dec 2004, Geographic Resource Solutions wrote: > Richard- > > Thanks for the reply- > > Sorry for my confusion - I typed a "|" when it should have been a "/" I > appear to have the syntax correct for making a match. > > If I seach for qstring=/A/ I get every land use type with that as part > of the use designation > including the 'AC-RW' - I don't want the 'AC-RW' match as it is not of > type 'A' > > If I leave it as A, /A, or A/ I get "no records found" - How do I get > a match for only the polygons of type 'A' and none of the others with an > A in the type ? > > I need to be able to specify an absolute equality/match for character > fields as opposed to a match based on a portion of any character value in > that field. Are there other characters to include in the qstring that > specify what type of match to perform ? > > Ken > > At 12:02 PM 12/9/2004 -0700, you wrote: > >On Thu, 9 Dec 2004 08:34:26 -0800, Geographic Resource Solutions > > wrote: > >> Dear list- > >> > >> I have searched the list for something like this and have come up > empty. > >> > >> After getting everything to work I find my queries are not returning > the > >> features I desire. Rather they are returning too many 'hits.' The > search > >> expression is obviously operating as an SQL 'like' with wildcards at > each > >> end of the specified value rather than an SQL '='. For example, > >> > >> qstring = |101011| > >> > >> when applied to my parcel data returns all parcels that have the > 101011 > >> characters present in their value, no matter where they are in the > string. > >> Thus I get parcels 12 parcels starting with 101011, but I also get > parcels > >> like 522101011' which I do not want. > >> > >> Similarly, when searching for a land use code of 'A' I return all > the 'A' > >> land use polygons, but I also get all the 'AC-WR' and any others that > have > >> an 'A' in them which I do not want located. > >> > >> So my question is: > >> > >> Am I doing somethin wrong ? How do I specify an expression that > should be > >> an equality '=' rather than a 'like' ? Is there a wildcard that can > be > >> included in the expression statement so that it operates as I define > it > >> (e.g. (101011% or A%)) rather than assuming wildcards are part of the > >> expression at beginning and end. This is obviously not following > standard > >> SQL formatting so what are the definitions that apply to expressions > and how > >> can I generate the query results I need. Queries that return improper > >> results make the programmer look rather foolish - and of course I > would like > >> to avaoid that appearance ! I figure there must be a way - and if > not, then > >> there really needs to be a way - but what is it ? > >> > >> Thanks in advance, > >> > >> Ken Stumpf > >> > >> > >> > >> Geographic Resource Solutions > >> 1125 16th Street, Suite 213 > >> Arcata, CA 95521 > >> Phone: (707) 822-8005 > >> Fax: (707) 822-2864 > >> www.grsgis.com > > > > > >Mapserver uses regular expression syntax, not SQL syntax, on the > >qstring. Try leaving off the pipe characters for starters, the apply > >regex symbols. > > > >Regards, > >-- > >Richard Greenwood > >richard.greenwood at gmail.com > >www.greenwoodmap.com > > > Geographic Resource Solutions > 1125 16th Street, Suite 213 > Arcata, CA 95521 > Phone: (707) 822-8005 > Fax: (707) 822-2864 > > www.grsgis.com > From christian.reyes at UTEM.CL Thu Dec 9 15:15:48 2004 From: christian.reyes at UTEM.CL (Christian Reyes A.) Date: Thu, 9 Dec 2004 20:15:48 -0300 Subject: Warning:[MapServer Error]: msLoadMap(): Message-ID: Hi Map Server Users Just download and install all software to run mapserv and mapscript, but when point my browser to test PHP script receive the next messages: Warning:[MapServer Error]: msLoadMap(): in /var/www/html/mapserver/test.php on line 19 Warning: Failed to open map file /var/www/html/mapserver/datos.map in /var/www/html/mapserver/test.php on line 19 Fatal error: Call to a member function on a non-object in /var/www/html/mapserver/test.php on line 46 I tried with many configurations, modify path (relative, direct, etc) always receive same messages Version of installed software are next: RedHat 9.0 Apache 2.0.40-21 PHP 4.2.2 Mapserver 4.4.0 PROJ.4.3.3 GDAL 1.2.5 pdflib 6.0.1 gd-2.0.33 libtiff 3.5.7-11 libjpeg 6b-26 libpng 1.2.2 zlib-1.1.4-8 xerces 1_6_0 parameter for compiling mapserver: --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-pdf --with-eppl --with-proj=/usr --with-sde=no --with-geos=no --with-mpatrol=no --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-tiff=/usr --with-php=/usr/local/php-4.2.2 --with-php-regex --with-proj=no --with-curl=no --enable-debug --with-wms=no --with-wfs=no --with-wcs=no --with-wmsclient=no --with-wfsclient=no No mayor compiling warningsr, only variables declared but not used I'm stuck , anybody can help to resolve this problem ( if solution is not a problem !!!) Thanks Regards Christian Reyes PD: Sorry for my English, i hope your understand -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Thu Dec 9 16:19:50 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 9 Dec 2004 17:19:50 -0700 Subject: Warning:[MapServer Error]: msLoadMap(): Message-ID: Did you check the permissions of /var/www/html/mapserver/datos.map? Can it be read by your httpd instance? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Reyes A. Sent: Thursday, December 09, 2004 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Hi Map Server Users Just download and install all software to run mapserv and mapscript, but when point my browser to test PHP script receive the next messages: Warning:[MapServer Error]: msLoadMap(): in /var/www/html/mapserver/test.php on line 19 Warning: Failed to open map file /var/www/html/mapserver/datos.map in /var/www/html/mapserver/test.php on line 19 Fatal error: Call to a member function on a non-object in /var/www/html/mapserver/test.php on line 46 I tried with many configurations, modify path (relative, direct, etc) always receive same messages Version of installed software are next: RedHat 9.0 Apache 2.0.40-21 PHP 4.2.2 Mapserver 4.4.0 PROJ.4.3.3 GDAL 1.2.5 pdflib 6.0.1 gd-2.0.33 libtiff 3.5.7-11 libjpeg 6b-26 libpng 1.2.2 zlib-1.1.4-8 xerces 1_6_0 parameter for compiling mapserver: --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-pdf --with-eppl --with-proj=/usr --with-sde=no --with-geos=no --with-mpatrol=no --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-tiff=/usr --with-php=/usr/local/php-4.2.2 --with-php-regex --with-proj=no --with-curl=no --enable-debug --with-wms=no --with-wfs=no --with-wcs=no --with-wmsclient=no --with-wfsclient=no No mayor compiling warningsr, only variables declared but not used I'm stuck , anybody can help to resolve this problem ( if solution is not a problem !!!) Thanks Regards Christian Reyes PD: Sorry for my English, i hope your understand -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Thu Dec 9 16:32:35 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 9 Dec 2004 17:32:35 -0700 Subject: itemnquery (qstring) search specifications -- "=" vs like In-Reply-To: <200412092046.iB9Kk7mu036040@pimout3-ext.prodigy.net> Message-ID: On Thu, 9 Dec 2004 12:40:00 -0800, Geographic Resource Solutions wrote: > Richard- > > Thanks for the reply- > > Sorry for my confusion - I typed a "|" when it should have been a "/" I > appear to have the syntax correct for making a match. > > If I seach for qstring=/A/ I get every land use type with that as part of > the use designation > including the 'AC-RW' - I don't want the 'AC-RW' match as it is not of > type 'A' > > If I leave it as A, /A, or A/ I get "no records found" - How do I get a > match for only the polygons of type 'A' and none of the others with an A in > the type ? > > I need to be able to specify an absolute equality/match for character > fields as opposed to a match based on a portion of any character value in > that field. Are there other characters to include in the qstring that > specify what type of match to perform ? > > Ken 1. Try putting it quotes, single or double. 2. Where are you putting this qstring=A? Typically a "qstring=x" is specified in the URL and passed to mapserver. And then your map file would have a FILTER and FILTERITEM for that layer. 3. Remeber that you're working with regex expressions, not SQL statements. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sirronj at PACBELL.NET Thu Dec 9 20:57:38 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 9 Dec 2004 20:57:38 -0800 Subject: simple tool for conversion In-Reply-To: <1102629840.1434.80.camel@ubet.gomoos.org> Message-ID: I would like to thank you for your help - AT LAST - I have my proof of concept and it all had to do with the maps that I was using. Thanks to you and to all. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Thursday, December 09, 2004 2:04 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California state > map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. From bob.basques at CI.STPAUL.MN.US Thu Dec 9 21:32:47 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Thu, 9 Dec 2004 23:32:47 -0600 Subject: PNG stuff Message-ID: All, ok, this is going to sound like a wierd request, but here goes. Is there or has it been thought about, the addition of adding in "Text Strings" to the PNG output, things like IMGEXT, LAYERS, etc. Something that could be retrievable programetrically (PERL) ? bobb From fwarmerdam at GMAIL.COM Thu Dec 9 21:56:11 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 10 Dec 2004 00:56:11 -0500 Subject: PNG stuff In-Reply-To: <41B934FF.3020203@ci.stpaul.mn.us> Message-ID: On Thu, 9 Dec 2004 23:32:47 -0600, Blammo wrote: > All, > > ok, this is going to sound like a wierd request, but here goes. > > Is there or has it been thought about, the addition of adding in "Text > Strings" to the PNG output, things like IMGEXT, LAYERS, etc. Something > that could be retrievable programetrically (PERL) ? > > bobb Bob, Generally speaking this would be hard to do using the GD PNG output since it does not give much low level access to libpng for writing specialized chunks (as far as I know). Potentially I could extend the GDAL PNG output to allow adding chunks from "creation options" if that was desired, but it would be a bit clumsy. 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 tylermitchell at SHAW.CA Thu Dec 9 22:12:21 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 9 Dec 2004 22:12:21 -0800 Subject: Western Canada/Alaska Message-ID: I was just perusing the MapServer users map and I'm sure there are more users in places like Yukon and Alaska. If you haven't already done so, you can add yourself to this map. I'd love to know more about those around me :) Here's the site: http://www.moximedia.com:8080/imf-ows/imf.jsp?site=ms_users From bob.basques at CI.STPAUL.MN.US Thu Dec 9 22:13:29 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri, 10 Dec 2004 00:13:29 -0600 Subject: PNG stuff In-Reply-To: <931f8ea90412092156137d76a6@mail.gmail.com> Message-ID: I thought about it some more. Frank, It would be interesting for example to embed text values for pixel colors for example. A mouse over effect could use the data to make some nice tooltip functions. The first posting I was after a way to store the creation parameters for an image, inside of the image for retrieval. I'm (we're) using quite a bit of DHTML. and doing an ItemQuery (with no IMGEXT) makes it difficult to make a subsequent call based on IMGEXT for an overlay object (transparent PNG). If the settings like IMGEXT that were used to create the image were available inside of the image for retrieval, that would be perfect. I may yet take you up on it even if it becomes a private PNG chunk for our use only. I was just thinking that if some basic parameter related to the image creation could be embedded into it. That would go a ways towards solving the problem. I'l still looking through things to try and figure it out though. I wonder if it wouldn't be wise to consider something like this as a post process to GDAL creation. I suupose the parameters would still need to be passed from Mapserver though, so I suppose breaking it out would have little effect. Thanks for the info. bobb Frank Warmerdam wrote: >On Thu, 9 Dec 2004 23:32:47 -0600, Blammo wrote: > > >>All, >> >>ok, this is going to sound like a wierd request, but here goes. >> >>Is there or has it been thought about, the addition of adding in "Text >>Strings" to the PNG output, things like IMGEXT, LAYERS, etc. Something >>that could be retrievable programetrically (PERL) ? >> >>bobb >> >> > >Bob, > >Generally speaking this would be hard to do using the GD PNG output >since it does not give much low level access to libpng for writing specialized >chunks (as far as I know). Potentially I could extend the GDAL PNG output >to allow adding chunks from "creation options" if that was desired, but it >would be a bit clumsy. > >Best regards, > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: bob.b.vcf Type: text/x-vcard Size: 237 bytes Desc: not available URL: From gis at UNDPHAIS.ORG.NP Thu Dec 9 22:39:50 2004 From: gis at UNDPHAIS.ORG.NP (Sandeep Bashyal) Date: Fri, 10 Dec 2004 12:24:50 +0545 Subject: my mapserver does not work in IE In-Reply-To: <41B858EB.2010900@deprem.gov.tr> Message-ID: On Thu, 9 Dec 2004 15:53:47 +0200, temiz wrote: > hello > > For mapscript zoom function, this javascript code does not work in IE, > but works in Linux browsers such as FireFox and Mozilla . > > Which part does not suit IE ? > > Here is the code ? > > ~~~~~~~~~~~~ > function startRubber (evt) { > > if (document.all) { > > var r = document.all.rubberBand; > r.style.width = 0; > r.style.height = 0; > r.style.pixelLeft = event.x; > r.style.pixelTop = event.y; > r.style.visibility = 'visible'; > } > > else if (document.layers) { > var r = document.rubberBand; > r.clip.width = 0; r.clip.height = 0; > r.left = evt.x; > r.top = evt.y; > r.visibility = 'show'; > } > > else if (document.getElementById) { > var r = document.getElementById('rubberBand'); > r.style.width = 0; > r.style.height = 0; > r.style.left = evt.clientX + 'px'; > r.style.top = evt.clientY + 'px'; > r.style.visibility = 'visible'; > } > > document.captureEvents(Event.MOUSEMOVE); > document.onmousemove = moveRubber; > } > > function moveRubber (evt) { > > if (document.all) { > var r = document.all.rubberBand; > r.style.width = event.x - r.style.pixelLeft - 2; > r.style.height = event.y - r.style.pixelTop - 2; > var f = document.forms('viewmap'); > f.w.value = r.style.width; > f.h.value = r.style.height; > } > > else if (document.layers) { > var r = document.rubberBand; > r.clip.width = evt.x - r.left - 2 ; > r.clip.height = evt.y - r.top - 2; > r.document.open(); > r.document.write('
<\/td><\/tr><\/table>'); > r.document.close(); > var f = document.forms('viewmap'); > f.w.value = r.clip.width; > f.h.value = r.clip.height; > } > > else if (document.getElementById) { > var r = document.getElementById('rubberBand'); > r.style.width = evt.clientX - parseInt(r.style.left) - 2; > r.style.height = evt.clientY - parseInt(r.style.top) - 2; > var ht = document.getElementById('h'); > var wt = document.getElementById('w'); > wt.value = r.style.width; > ht.value = r.style.height; > } > } > > function stopRubber (evt) { > document.releaseEvents(Event.MOUSEMOVE); > document.onmousemove = null; > > } Ahmet, These two lines apply only for netscape browsers: > document.captureEvents(Event.MOUSEMOVE); > document.releaseEvents(Event.MOUSEMOVE); You should put them into an if(document.layers) condition. -- Sandeep Bashyal -- National GIS Officer Humanitarian Assistance Information System (HAIS) United Nations (NEP/01/008) UN House, Pulchowk G.P.O. Box 107 Kathmandu, Nepal Tel: (+977) 01 5543957 (+977) 01 5554304 Cell:(+977) 9841270854 Fax: (+977) 01 5528059 -------------------------------------------------- mailto:gis at undphais.org.np mailto:sandeep at earthmapping.com http://www.undp.org.np From siki at AGT.BME.HU Fri Dec 10 01:37:19 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 10 Dec 2004 08:37:19 -0100 Subject: mrsid {Scanned} Message-ID: Hi, I've tried to build gdal 1.1.9 with mrsid. I've downloaded mrsid Geo_DSDK-4.0.9.713. I've configured gdal --with-mrsid=... Making gdal several header files were not found. make[2]: Entering directory `/home1/users/siki/mapserv.source/gdal-1.1.9/frmts/mrsid' g++ -c -I../.. -I../../port -I../../gcore -I../../ogr -I../../mrsid/Geo_DSDK-4.0.9.713/include -Wall -fPIC -O2 -D_REENTRANT mrsiddataset.cpp -o mrsiddataset.o mrsiddataset.cpp:48:26: lt_fileUtils.h: No such file or directory mrsiddataset.cpp:49:23: lt_xTrans.h: No such file or directory mrsiddataset.cpp:50:32: lt_imageBufferInfo.h: No such file or directory mrsiddataset.cpp:51:22: lt_pixel.h: No such file or directory mrsiddataset.cpp:52:27: lt_colorSpace.h: No such file or directory mrsiddataset.cpp:53:28: MrSIDImageFile.h: No such file or directory mrsiddataset.cpp:54:28: MrSIDNavigator.h: No such file or directory mrsiddataset.cpp:55:28: MetadataReader.h: No such file or directory mrsiddataset.cpp:56:29: MetadataElement.h: No such file or directory mrsiddataset.cpp:58:27: geo_normalize.h: No such file or directory mrsiddataset.cpp:59:23: geovalues.h: No such file or directory The mrsid DSDK has several subdirectory in the include directory base, c_api, filters, etc. Which versions should I use? Thanks Zoltan From sirronj at PACBELL.NET Thu Dec 9 23:35:46 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 9 Dec 2004 23:35:46 -0800 Subject: simple tool for conversion In-Reply-To: <1102629840.1434.80.camel@ubet.gomoos.org> Message-ID: Eric, I have one question now that all of my points are showing via lon/lat I have one other question. I have tried to put features in but they will not show. Can I not do something like Feature Points mylon mylat end Text " my text " End And it should show up on the map? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 2:04 PM To: Joseph Norris Cc: UMN MapServerList Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California state > map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. From fwarmerdam at GMAIL.COM Thu Dec 9 23:52:12 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 10 Dec 2004 02:52:12 -0500 Subject: mrsid {Scanned} In-Reply-To: Message-ID: On Fri, 10 Dec 2004 08:37:19 -0100, Siki Zoltan wrote: > Hi, > > I've tried to build gdal 1.1.9 with mrsid. > I've downloaded mrsid Geo_DSDK-4.0.9.713. > I've configured gdal --with-mrsid=... > Making gdal several header files were not found. Zoltan, Why did you configure with "--with-mrsid=..". Is the MrSID stuff really the directory above GDAL? I would advise against using a relative path in the configure even if it was, since the generated paths will be used from many parts of the GDAL tree. Second, why use GDAL 1.1.9? Substantial advances have been made in MrSID support in recent versions and amoung those changes are support for the more recent MrSID SDK releases. I would encourage you to try again with GDAL 1.2.5. 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 tjolibois at CLS.FR Fri Dec 10 00:26:37 2004 From: tjolibois at CLS.FR (Tony Jolibois) Date: Fri, 10 Dec 2004 09:26:37 +0100 Subject: NetCDF In-Reply-To: <41B8B0EC.1030303@zedxinc.com> Message-ID: I have an example displaying netCDF via Opendap (www.opendap.org) in mapserver, but not netCDF directly. Soon I will try to build mapserver to display both netCDF and Opendap datasets. Tony Aaron D. Hunt wrote: > Does anyone have an example of how to use and display a NetCDF file in > mapserver. > > Aaron > From siki at AGT.BME.HU Fri Dec 10 03:03:53 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 10 Dec 2004 10:03:53 -0100 Subject: mrsid {Scanned} In-Reply-To: <931f8ea90412092352130bcd43@mail.gmail.com> Message-ID: Dear Frank, Thank you for your help. I've downloaded gdal 1.2.5 and configured it for mrsid. Now the configure sets the good include path, comparing to gdal-1.1.9. But mrsiddataset.cpp looks for lt_types.h lt_base.h, etc. I have no such files in the mrsid DSDK. /bin/sh ../../libtool --mode=compile g++ -Wall -O2 -I../../port -I../../gcore -I../../ogr -I../../alg -I../../mrsid/Geo_DSDK-4.0.9.713/include/base -I../../mrsid/Geo_DSDK-4.0.9.713/include/metadata -I../../mrsid/Geo_DSDK-4.0.9.713/include/mrsid_readers -I../../mrsid/Geo_DSDK-4.0.9.713/include/j2k_readers -I../../mrsid/Geo_DSDK-4.0.9.713/include/support -I../../frmts/gtiff/libgeotiff -D_REENTRANT -I../../port -c -o ../o/mrsiddataset.o mrsiddataset.cpp g++ -Wall -O2 -I../../port -I../../gcore -I../../ogr -I../../alg -I../../mrsid/Geo_DSDK-4.0.9.713/include/base -I../../mrsid/Geo_DSDK-4.0.9.713/include/metadata -I../../mrsid/Geo_DSDK-4.0.9.713/include/mrsid_readers -I../../mrsid/Geo_DSDK-4.0.9.713/include/j2k_readers -I../../mrsid/Geo_DSDK-4.0.9.713/include/support -I../../frmts/gtiff/libgeotiff -D_REENTRANT -I../../port -c mrsiddataset.cpp -fPIC -DPIC -o ../o/.libs/mrsiddataset.o mrsiddataset.cpp:1229:22: lt_types.h: No such file or directory mrsiddataset.cpp:1230:21: lt_base.h: No such file or directory mrsiddataset.cpp:1231:25: lt_fileSpec.h: No such file or directory mrsiddataset.cpp:1232:29: lt_ioFileStream.h: No such file or directory mrsiddataset.cpp:1233:26: lti_geoCoord.h: No such file or directory mrsiddataset.cpp:1234:23: lti_pixel.h: No such file or directory mrsiddataset.cpp:1235:27: lti_navigator.h: No such file or directory mrsiddataset.cpp:1236:29: lti_sceneBuffer.h: No such file or directory mrsiddataset.cpp:1237:34: lti_metadataDatabase.h: No such file or directory mrsiddataset.cpp:1238:32: lti_metadataRecord.h: No such file or directory mrsiddataset.cpp:1239:23: lti_utils.h: No such file or directory mrsiddataset.cpp:1240:30: MrSIDImageReader.h: No such file or directory mrsiddataset.cpp:1241:28: J2KImageReader.h: No such file or directory mrsiddataset.cpp:1248: `LizardTech' was not declared in this scope mrsiddataset.cpp:1256: ISO C++ forbids declaration of `LT_USE_NAMESPACE' with no type On Fri, 10 Dec 2004, Frank Warmerdam wrote: > On Fri, 10 Dec 2004 08:37:19 -0100, Siki Zoltan wrote: > > Hi, > > > > I've tried to build gdal 1.1.9 with mrsid. > > I've downloaded mrsid Geo_DSDK-4.0.9.713. > > I've configured gdal --with-mrsid=... > > Making gdal several header files were not found. > > Zoltan, > > Why did you configure with "--with-mrsid=..". Is the MrSID stuff > really the directory above GDAL? I would advise against using > a relative path in the configure even if it was, since the generated > paths will be used from many parts of the GDAL tree. Lizardtech provides .a library which is statically linked, I think it is no matter where to put mrsid DSDK. > > Second, why use GDAL 1.1.9? Substantial advances have been > made in MrSID support in recent versions and amoung those > changes are support for the more recent MrSID SDK releases. > I would encourage you to try again with GDAL 1.2.5. > Tanks, Zoltan From temiz at DEPREM.GOV.TR Fri Dec 10 01:34:46 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Fri, 10 Dec 2004 11:34:46 +0200 Subject: span of the grids Message-ID: hello Concerning grids, All examples I have seen in lat and long. format. Could you possibly you can tell me how I can arrange the span of the grids if it is in "UTM" coord system. I mean MINSUBDIVIDE,MAXSUBDIVIDE ,MININTERVAL ,MAXINTERVAL . LAYER NAME "GRID" TRANSPARENCY 30 PROJECTION "proj=utm" "ellps=intl" "zone=36" "north" "no_defs" END TYPE LINE STATUS DEFAULT CLASS COLOR 0 0 0 LABEL TYPE BITMAP #SIZE MEDIUM SIZE SMALL COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END GRID #MINSUBDIVIDE ???? #MAXSUBDIVIDE ?????? #MININTERVAL ??? #MAXINTERVAL ??? #LABELFORMAT ??? END END kind 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 thomas at MICRODOP.ORG Fri Dec 10 01:37:48 2004 From: thomas at MICRODOP.ORG (Thomas Sondag) Date: Fri, 10 Dec 2004 10:37:48 +0100 Subject: Segfault with PHP mapscript 4.4.0 Message-ID: Hi list, I try to build php mapscript with the new option : --with-php-regex-dir . It work fine with php as an apache DSO module, but now, I have problems when I try to use it with php4 CGI binary. Php cgi load the module without problem but segfault on ms_newmapobj function use. Part of the ltrace : strlen("MapScript") = 9 malloc(45) = 0x8381c38 memcpy(0x8381c58, "MapScript", 10) = 0x8381c58 malloc(72) = 0x8381c70 memcpy(0x8381c70, "H", 72) = 0x8381c70 strlen("MapScript") = 9 memcpy(0x836f1cc, "ms_newmapobj", 12) = 0x836f1cc memcpy(0x836f3ac, "map/apserver.map", 16) = 0x836f3ac --- SIGSEGV (Segmentation fault) --- +++ killed by SIGSEGV +++ the map file map/apserver.map doesn't exist. My configure options : ./configure \ --prefix=/usr \ --enable-debug \ --without-tiff \ --without-pdf \ --with-gd=/usr \ --with-freetype=/usr \ --with-zlib=/usr \ --with-png=/usr \ --with-xpm=/usr \ --with-jpeg=/usr \ --with-gdal \ --with-ogr \ --with-proj \ --with-eppl \ --with-postgis \ --with-wcs \ --with-wms \ --with-wmsclient \ --with-wfs \ --with-wfsclient \ --with-php=/usr/include/php4 \ --with-php-regex-dir=/usr/include/php4/regex \ --with-threads Shared lib version : ldd /usr/lib/php4/20020429/php_mapscript.so libcurl.so.3 => /usr/lib/libcurl.so.3 (0x400f3000) libidn.so.11 => /usr/lib/libidn.so.11 (0x40122000) libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x40153000) libcrypto.so.0.9.7 => /usr/lib/i686/cmov/libcrypto.so.0.9.7 (0x40184000) libdl.so.2 => /lib/libdl.so.2 (0x40283000) libz.so.1 => /usr/lib/libz.so.1 (0x40286000) libpq.so.3 => /usr/lib/libpq.so.3 (0x40298000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x402b7000) libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x402d6000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40343000) libgdal.so.1 => /usr/lib/libgdal.so.1 (0x40368000) libpthread.so.0 => /lib/libpthread.so.0 (0x406d2000) libproj.so.0 => /usr/lib/libproj.so.0 (0x40723000) libgd.so.2 => /usr/lib/libgd.so.2 (0x40758000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x407a9000) libm.so.6 => /lib/libm.so.6 (0x40863000) libc.so.6 => /lib/libc.so.6 (0x40885000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x409b8000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0x409c1000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x40a29000) libresolv.so.2 => /lib/libresolv.so.2 (0x40a57000) libnsl.so.1 => /lib/libnsl.so.1 (0x40a69000) libodbc.so.1 => /usr/lib/libodbc.so.1 (0x40a7e000) libxerces-c.so.21 => /usr/lib/libxerces-c.so.21 (0x40af6000) libjasper-1.701.so.1 => /usr/lib/libjasper-1.701.so.1 (0x40d71000) libmfhdf.so.4 => /usr/lib/libmfhdf.so.4 (0x40dbe000) libdf.so.4 => /usr/lib/libdf.so.4 (0x40de1000) libungif.so.4 => /usr/lib/libungif.so.4 (0x40e80000) libtiff.so.4 => /usr/lib/libtiff.so.4 (0x40e88000) libnetcdf.so.3 => /usr/lib/libnetcdf.so.3 (0x40ed6000) libcfitsio.so.2 => /usr/lib/libcfitsio.so.2 (0x40ef9000) libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x41066000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x41076000) libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x4113d000) libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0x41164000) libcom_err.so.2 => /lib/libcom_err.so.2 (0x41186000) libltdl.so.3 => /usr/lib/libltdl.so.3 (0x41189000) libexpat.so.1 => /usr/lib/libexpat.so.1 (0x41191000) Debian packages : http://agrogeomatic.educagri.fr/debian/dists/experimental/ Do I mis something ? Thanks for your help Thomas From EZS at SYNCERA-ITSOLUTIONS.NL Fri Dec 10 02:45:07 2004 From: EZS at SYNCERA-ITSOLUTIONS.NL (Emil Zegers) Date: Fri, 10 Dec 2004 11:45:07 +0100 Subject: Question about MapServer/OGR and MapInfo tab with multiple geometry types Message-ID: Hello, Using MapInfo tab files with multiple geometry types, some strange things occur. Some of these issues have been mentioned before on the list and in Bugzilla but I would like to ask these questions again to find out if there are recent changes, updates or plans on this. Example 1) a tab file with POINT, POLYGON, MULTIPOLYGON objects Questioning this file with ogrinfo only reports one layer with no geometry type specified. Using the tab file as layer in MapServer with TYPE POLYGON works ok, with TYPE POINT an error message follow: msDrawMap(): Image handling error. Failed to draw layer named 'bis_rap'. ogrGeomPoints(): OGR error. OGRGeometry type `MULTIPOLYGON' not supported yet. This is reported before on the list (http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0107/msg00049.html) In Bugzilla bugs 448 and 478 seem more or less related to this but there is no specific info on how to get around this. In the OGR HOWTO on http://mapserver.gis.umn.edu/doc44/ogr-howto.html it states that Mapserver does not yet support tab files with mixed geometry types. Is MapServer support for mixed geometry types in tab files planned? What effort will be necessary to get it done? Example 2) a tab file with POINT, LINESTRING objects Questioning this file with ogrinfo only reports one layer with no geometry type specified. Using the tab file as layer in MapServer with TYPE LINE works ok, with TYPE POINT not only the point objects are displayed but also the points from the LINESTRING objects. Is this behaviour by design and/or can it be changed? For example by putting a query filter on the object type? As workaround I can put a query filter on one of the attributes but I would prefer the LINESTRING points not to be displayed at all when using TYPE POINT or filter them out with a filter on the object type. Regards, Emil Zegers From lists at WEBMAPIT.COM.BR Fri Dec 10 04:11:34 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Fri, 10 Dec 2004 09:11:34 -0300 Subject: MapServer/FreeGIS and the market Message-ID: Hi folks, this is more a discussion and "opinion-collector" topic than a technical question. Despite the known high potencial of MapServer and other very useful free gis tools, it's still very hard to find MapServer/Free GIS job offers at gis jobs websites or other GIS related sites. Why do you think this happen this way? - do you think mapserver/freegis packs are not sufficient known to get a place at commercial media? - or could commercial proprietary software companies be doing something to avoid free gis from growing up? - or does companies know that this kind of professional is more difficult to find and then prefer not to loose time on high media announces and look for professionals only via people networking? best regards, Eduardo Patto Kanegae http://www.webmapit.com.br ICQ: 303747254 MSN: eduardo_patto at hotmail.com phone:+55(16)9994-2928 Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** From fx.gamoy at MAPXPLORE.COM Fri Dec 10 04:35:21 2004 From: fx.gamoy at MAPXPLORE.COM (fx gamoy) Date: Fri, 10 Dec 2004 13:35:21 +0100 Subject: probleme with querybyattributes Message-ID: Hello everybody, i am getting problems with querybyattributes I use a self-compiled php/mapscript 4.2.4 (--with-regex=system) on a linux mandrake box. Querybyattributes works fine using integer on a point type layer. When i try to do the same using a line layer, mapserver return me the whole lines of the layer instead of only the selected ones. $oLayer = $oMapSession->oMap->getLayerByName( 'listvoies' ); // (listvoies with template "something") $dblquery = "([CODE_VOIE] = ".$_SESSION["index"].")"; //CODE_VOIE is integer $fieldname= "CODE_VOIE"; if (@$oLayer->queryByAttributes($fieldname, $dblquery, MS_MULTIPLE) == MS_SUCCESS) { $oLayer->open(); $nbrep=$oLayer->getNumResults(); echo $nbrep; //return 1200 that's to say the whole file }//if What is wrong? i've tried many way to exprim $dblquery but i get still the same issue. The same use of querybyattributes works fine when i use a point type layer... Any help wil be appreciated. thanks fx -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Fri Dec 10 05:49:30 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 10 Dec 2004 08:49:30 -0500 Subject: simple tool for conversion Message-ID: Joseph - You can indeed do something like that; please post the entire LAYER block that you're using to create those points. Remember that inline features go in a separate layer, not in your zip point shapefile layer. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Friday, December 10, 2004 2:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Eric, I have one question now that all of my points are showing via lon/lat I have one other question. I have tried to put features in but they will not show. Can I not do something like Feature Points mylon mylat end Text " my text " End And it should show up on the map? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 2:04 PM To: Joseph Norris Cc: UMN MapServerList Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California > state map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. From eric at GOMOOS.ORG Fri Dec 10 06:07:15 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 10 Dec 2004 09:07:15 -0500 Subject: simple tool for conversion In-Reply-To: Message-ID: At 11:35 PM 12/09/2004 -0800, Joseph Norris wrote: >Eric, > >I have one question now that all of my points are showing via lon/lat I have >one other question. > >I have tried to put features in but they will not show. Can I not do >something like > >Feature > > Points mylon mylat end > Text " my text " >End > >And it should show up on the map? Yes. But will also need CLASS and LABEL and STYLE sections in your layer. I've only used FEATURE where the LAYER has TRANFORM FALSE, meaning the POINT values are pixels not long/lat. POINT END From Dan.Liu at STATE.MN.US Fri Dec 10 06:19:20 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Fri, 10 Dec 2004 08:19:20 -0600 Subject: jbox- java applet notinited Message-ID: I can get the error 'java applet notinited' sometimes even if I click the map not fast at all. -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Thursday, December 09, 2004 2:24 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited On Thu, 9 Dec 2004 13:47:00 -0600, Dan Liu wrote: > > Hi Richard, > Thanks first for answering. I called 'document.jBox.boxon()' when zoom in > button is clicked. (See the demo.html below) Is this function call causing > the problem? No. Not unless the user is a REALLY fast clicker. I was refering to calling a jBox function during the page load, which it does not appear that you are doing. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com > > > > MapServer Demo Interface > > > > > >

MapServer Demo Interface

>
> >
>
> > > > >
> > > > > > > > > > >
> codebase="[host]/java/jBox" > code="jBoxPNG.class" > archive="jBoxPNG.jar,png.jar" > width="500" > height="500" > name="jBox" > MAYSCRIPT> > > >
  color="#FFFFFF">Powered by MapServer
>
> >
>
>

> > Browse > map
> Query > feature
> Query multiple > features > >


> >

> Select Layers to Display:
> > >

> Zoom In OnClick='document.jBox.boxon()' [zoomdir_1_check]> > Pan OnClick='document.jBox.dragon()' [zoomdir_0_check]> > Zoom Out OnClick='document.jBox.boxoff()' [zoomdir_-1_check]> >

> Zoom Size >

> > Legend


>
> >

>

border="0">
>
> >
>
> > > > > > > > > > > >
>


> > > > > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Thursday, December 09, 2004 1:15 PM > To: Dan Liu > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited > > On Thu, 9 Dec 2004 12:49:21 -0600, Dan Liu wrote: > > > > > > > > Hi, > > > > In my demo.html file with JBox in it, I get 'applet jbox notinited error' > > once a while. The map is grey with a red 'x' at the top left of the map. > > Other than this, everything works fine. > > > > > > > > Does anybody know why? > > > > Thanks. > > > > Dan > > I can not say for certain, but be sure not to call any jBox functions > while it is initializing. jBox initializes when the tag > gets read by the browser. I think that some browser/VM combinations > will continue to process the HTML page while the applet is still > loading. If the page then calls the applet, you will get the error you > describe. > > For example, if you have a function that calls jBox.boxon() > immediately after the applet tag, you may get the error. So instead > use the parameter/value pair: > > within the applet tag, thus eliminating the possible conflict. > > Regards, > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > From richard.greenwood at GMAIL.COM Fri Dec 10 06:26:01 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 10 Dec 2004 07:26:01 -0700 Subject: mrsid {Scanned} In-Reply-To: Message-ID: On Fri, 10 Dec 2004 10:03:53 -0100, Siki Zoltan wrote: > Dear Frank, > > Thank you for your help. > I've downloaded gdal 1.2.5 and configured it for mrsid. > Now the configure sets the good include path, comparing to gdal-1.1.9. > But mrsiddataset.cpp looks for lt_types.h lt_base.h, etc. > I have no such files in the mrsid DSDK. I used the windows SDK an it came with the headrer files. Maybe you should download the windows SDK and put the header files from it into your version. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From sgillies at FRII.COM Fri Dec 10 06:31:23 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Fri, 10 Dec 2004 07:31:23 -0700 Subject: current world political boundaries and cities, iso 3166? Message-ID: Hi all, I get so busy programming that I haven't been staying up to date on available datasets. Anybody have a recommendation for up-to-date world political boundaries and cities in an OGR format for MapServer which includes an ISO 3166 (ish) 2-letter country name attribute? Free or commercial. WFS would work for me as well if anybody knows of such a beast. thanks, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From fwarmerdam at GMAIL.COM Fri Dec 10 07:38:02 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 10 Dec 2004 10:38:02 -0500 Subject: Question about MapServer/OGR and MapInfo tab with multiple geometry types In-Reply-To: Message-ID: On Fri, 10 Dec 2004 11:45:07 +0100, Emil Zegers wrote: > Hello, > > Using MapInfo tab files with multiple geometry types, some strange things occur. Emil, I believe it is intended that MapServer's OGR link should allow use of mixed geometry layers, but by quietly discarding geometries not appropriate to the layer type. I would appreciate it if you could submit a bug report on the case you found didn't work (point layer with multipolygons). I believe this is just a missing case when previos fixes were done. I would add it would appear the OGR howto is a bit out of date. If you add a note about the mixed-layer issue in the howto we can try to fix that up to. 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 fwarmerdam at GMAIL.COM Fri Dec 10 07:41:18 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 10 Dec 2004 10:41:18 -0500 Subject: NetCDF In-Reply-To: <41B8B0EC.1030303@zedxinc.com> Message-ID: On Thu, 9 Dec 2004 15:09:16 -0500, Aaron D. Hunt wrote: > Does anyone have an example of how to use and display a NetCDF file in > mapserver. Aaron, NetCDF files should work like any other raster file within the limits of the NetCDF driver. In GDAL 1.2.5 there is a GMT driver which supports GMT generated NetCDF files well. There is also a more generic NetCDF driver but it often fails depending on the organization of the netcdf file. Make sure that a gdalinfo report of your file looks sensible before trying to use it in MapServer. As Tony notes, you could also setup an OPeNDAP server for the netCDF file,but that is quite a bit of complication just to get data into MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From martin426 at YAHOO.COM Fri Dec 10 07:42:56 2004 From: martin426 at YAHOO.COM (James Martin) Date: Fri, 10 Dec 2004 09:42:56 -0600 Subject: Raster image cuts off 10%, sometimes mirrored, repeats Message-ID: Hello, I've got a 8192x4096 tiff of the earth ("Blue Marble" by NASA) that I am trying use as a raster layer on my map. My starting extent is -180 -60 180 83 which covers almost everything besides Antartica. When added as a layer, the image that is output overlays perfectly and matches up with my country outlines, except for the leftmost 10% (About the midpoint of Alaska all the way to -180)--it doesn't display at all except for my country outline. In addition, if I try to produce a larger output file, say 1000x500, the blue marble layer's rendering is mirrored, however everything is displayed. In both cases, when I zoom in the output is all correct. The blue marble layer also repeats/wraps. If I pan left at my original extent so that Alaska is now in the middle, Asia will appear to the left of Alaska, but nothing else wraps and I'd like to prevent this if possible. Any insight into these issues is greatly appreciated. I have included some info from my files that may or may not be helpful. WORLD FILE 0.0439453125 0.0 0.0 -0.0439453125 -180 90 LAYER NAME blue_marble DATA "raster/ev11656_land_shallow_topo_8192-8bit.tiff" STATUS default TYPE raster PROJECTION "init=epsg:4326" END END Projection of my mapfile: PROJECTION "proj=merc" "ellps=GRS80" "lon_0=0" "lat_ts=0" "no_defs" END -James From fwarmerdam at GMAIL.COM Fri Dec 10 07:49:01 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Fri, 10 Dec 2004 10:49:01 -0500 Subject: Raster image cuts off 10%, sometimes mirrored, repeats In-Reply-To: Message-ID: On Fri, 10 Dec 2004 09:42:56 -0600, James Martin wrote: > Hello, > > I've got a 8192x4096 tiff of the earth ("Blue Marble" by NASA) that I am > trying use as a raster layer on my map. My starting extent is -180 -60 180 > 83 which covers almost everything besides Antartica. When added as a > layer, the image that is output overlays perfectly and matches up with my > country outlines, except for the leftmost 10% (About the midpoint of Alaska > all the way to -180)--it doesn't display at all except for my country outline. James, You might want to try adding the following line to your raster layer definition. PROCESSING "LOAD_WHOLE_IMAGE=TRUE" In world mapping cases involving reprojection, MapServer sometimes gets confused. The above directive tells MapServer to not try and reproject the request window, but instead to just load the whole image. > In addition, if I try to produce a larger output file, say 1000x500, the > blue marble layer's rendering is mirrored, however everything is displayed. I have never seen this case before. I would encourage you to submit a detailed bug report and ensure it gets assigned to me. I would add there is a wiki topic on WorldMappingIssues at: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?WorldMappingIssues Normally I would suggest you update the wiki with info about your particular problems, but for the time being the wiki is read-only. 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 richard.greenwood at GMAIL.COM Fri Dec 10 08:12:29 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 10 Dec 2004 09:12:29 -0700 Subject: jbox- java applet notinited In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2CA6@admin-itg-exch3.state.mn.us> Message-ID: On Fri, 10 Dec 2004 08:19:20 -0600, Dan Liu wrote: > I can get the error 'java applet notinited' sometimes even if I click the > map not fast at all. Is your page public? Can you provide a link? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Dan.Liu at STATE.MN.US Fri Dec 10 08:44:41 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Fri, 10 Dec 2004 10:44:41 -0600 Subject: jbox- java applet notinited Message-ID: It is not. I will make it public. -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Friday, December 10, 2004 10:12 AM To: Dan Liu Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited On Fri, 10 Dec 2004 08:19:20 -0600, Dan Liu wrote: > I can get the error 'java applet notinited' sometimes even if I click the > map not fast at all. Is your page public? Can you provide a link? -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From jfuch at INDEC.MECON.GOV.AR Fri Dec 10 08:39:51 2004 From: jfuch at INDEC.MECON.GOV.AR (Juan Carlos Fuchs) Date: Fri, 10 Dec 2004 10:39:51 -0600 Subject: mysql query segfaults Message-ID: On Tuesday 14 September 2004 15:45, Peter Drake wrote: > I am getting a segfault whenever I try to query a MySQL layer. > mapserver will display these layers fine but queries end up in a > segfault. I don't know enough about programming to find a solution to find I have not tested the mygis module with queries so it is possible that there are some hidden bugs, I'll try and check this. Sorry, but up to day, has some figure this out? From eric.belenfant at AC-ORLEANS-TOURS.FR Fri Dec 10 10:32:20 2004 From: eric.belenfant at AC-ORLEANS-TOURS.FR (eric BELENFANT) Date: Fri, 10 Dec 2004 12:32:20 -0600 Subject: problem with mapscript PointObj method Draw Message-ID: Hello, I use php Mapscript 4.2 under linux 9. I try adding a point on the map like this : // DRAW MAP AND SET GEO EXTENT (IN MAP UNITS) IN SID FOR SUBSEQUENT ZOOM ACTIONS // $mapimg = $map->draw(); // ECRIT LES ETABLISSEMENTS AYANT DES FORMATIONS SUR LA CARTE writeFormations($map,$mapimg,'%','400');//ne marche pas impossible d'?crire le point avec le symbole $couche=$map->getLayerByName("commune_symboles"); $monpoint = ms_newPointObj(); $monpoint->setXY(600000,220000); $monpoint->draw($map,$couche,$mapimg,0,""); I can't just see this point and the symbol i want to add with. It gets on my nerves !! If you could help me it would be nice ! Here is my .map file MAP ####################################################################### # EXTENTS ####################################################################### # FRANCE #EXTENT 47531.670814 1618389.142847 1197599.772331 2677338.195481 # ACADEMIE ORLEANS TOURS EXTENT 426931.766796 2149441.377593 659404.715011 2438768.654693 #UNITS meters SIZE 450 450 #SHAPEPATH "data" SYMBOLSET "demodata/symbols/symbols35.sym" FONTSET "/outils/httpd-2.0.52/htdocs/tutorial/fonts/fonts.list" # # Start of web interface definition # WEB TEMPLATE "map.phtml" IMAGEPATH "/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA END # Metadata LOG /tmp/mapscript.log END # Web # # Start of Reference map definition # REFERENCE EXTENT 426931.766796 2149441.377593 659404.715011 2438768.654693 IMAGE "images/academie.gif" SIZE 178 133 COLOR -1 -1 -1 OUTLINECOLOR 255 0 0 END # Reference LEGEND END # # Start of ScaleBar definition # SCALEBAR INTERVALS 4 SIZE 200 3 UNITS kilometers COLOR 250 250 250 OUTLINECOLOR 0 0 0 BACKGROUNDCOLOR 100 100 100 STYLE 0 POSTLABELCACHE true TRANSPARENT ON LABEL COLOR 255 255 255 OUTLINECOLOR 0 0 0 SIZE small END # Label END # Reference # SYMBOLS USED IN PMAPPER # - 'circle' always necessary (used e.g. for highlight) # - 'square' used in currecnt map file # Symbols can also be defined via tag SYMBOLSET (see above) Symbol Name 'circle' Type ELLIPSE Filled TRUE Points 1 1 END END Symbol Name 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END #================== START OF LAYER SECTION =====================# # # CALQUE DES D?partements # LAYER NAME "departement" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/F_dept.TAB" METADATA "DESCRIPTION" "|||D?partements" "RESULT_FIELDS" "CODE_DEPART,NOM,POPSDC,SUPERFICIE_KM2" "RESULT_HEADERS" "|||Code,Nom,Population,Superficie (km2)" END LABELITEM "NOM" CLASS NAME "HORS ACADEMIE" OUTLINECOLOR 100 100 100 COLOR 235 235 235 EXPRESSION ('[CODE_DEPART]' != '18' and '[CODE_DEPART]' != '28' and '[CODE_DEPART]' != '36' and '[CODE_DEPART]'!='37' and '[CODE_DEPART]'!='41' and '[CODE_DEPART]'!='45') TEMPLATE void LABEL COLOR 120 120 120 #BACKGROUNDCOLOR 200 200 100 POSITION CC TYPE truetype FONT arial SIZE 7 END END CLASS NAME "ACADEMIE d'Orl?ans Tours" OUTLINECOLOR 100 100 100 #COLOR 136 151 173 # A UTILISER POUR GENERER LA CARTE DE REFERENCE COLOR 249 179 99 EXPRESSION ('[CODE_DEPART]' = '18' or '[CODE_DEPART]' = '28' or '[CODE_DEPART]' = '36' or '[CODE_DEPART]'='37' or '[CODE_DEPART]'='41' or '[CODE_DEPART]'='45') TEMPLATE void #LABEL #COLOR 0 0 0 #BACKGROUNDCOLOR 200 200 100 #POSITION CC #TYPE truetype #FONT arial #SIZE 7 #END END END # # CALQUES DES COMMUNES # LAYER NAME "chefsLieux" TYPE POLYGON GROUP "communes" STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/communes_eric.TAB" METADATA "DESCRIPTION" "|||Communes" "RESULT_FIELDS" "CODE_INSEE,NOM_COM,PSDC99,SUPERFICIE_KM2" "RESULT_HEADERS" "|||Code,Nom,Population,Superficie (km2)" END LABELITEM "NOM_COM" CLASS NAME "Chefs-lieux de d?partement" #OUTLINECOLOR 0 0 0 COLOR 247 232 168 TEMPLATE void EXPRESSION ('[NOM_COM]' = 'BOURGES' or '[NOM_COM]' = 'CHARTRES' or '[NOM_COM]' = 'CHATEAUROUX' or '[NOM_COM]'='TOURS' or '[NOM_COM]'='BLOIS' or '[NOM_COM]'='ORLEANS') LABEL COLOR 0 0 0 #BACKGROUNDCOLOR 200 200 100 POSITION CC TYPE bitmap SIZE small #FORCE TRUE END END END # LAYER LAYER NAME "commune" GROUP "communes" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/communes_eric.TAB" MAXSCALE 1000000 LABELMAXSCALE 150000 LABELITEM "NOM_COM" METADATA "DESCRIPTION" "|||Communes" "RESULT_FIELDS" "CODE_INSEE,NOM_COM,PSDC99,SUPERFICIE_KM2" "RESULT_HEADERS" "|||Code,Nom,Population,Superficie (km2)" END CLASS NAME "Contour des communes" OUTLINECOLOR 48 106 137 #COLOR 249 222 42 TEMPLATE void LABEL COLOR 0 0 127 #BACKGROUNDCOLOR 200 200 100 POSITION CC TYPE bitmap SIZE tiny WRAP " " FORCE TRUE END END END # LAYER LAYER NAME "commune_symboles" STATUS OFF CONNECTIONTYPE OGR CONNECTION "data/communes_eric.TAB" TYPE POLYGON CLASS NAME "Lyc?es Pro." TEMPLATE void COLOR 0 0 120 SYMBOL 'star' SIZE 5 END END # LAYER # # CALQUES DES ZONES D'EMPLOI # LAYER NAME "zonemploi" TYPE POLYGON STATUS DEFAULT CONNECTIONTYPE OGR CONNECTION "data/zonemploi.TAB" METADATA "DESCRIPTION" "|||Zones d'emploi" "RESULT_FIELDS" "codeemploi,zoneemploi" "RESULT_HEADERS" "|||Code,Nom" END CLASS SYMBOL 'circle' NAME "Contour des zones d'emploi" OUTLINECOLOR 0 0 102 SIZE 2 #COLOR 249 222 42 TEMPLATE void END END # LAYER END #Map Thanks eric From eric at GOMOOS.ORG Fri Dec 10 11:08:01 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 10 Dec 2004 14:08:01 -0500 Subject: problem with mapscript PointObj method Draw In-Reply-To: Message-ID: At 12:32 PM 12/10/2004 -0600, eric BELENFANT wrote: >Hello, >I use php Mapscript 4.2 under linux 9. >I try adding a point on the map like this : > >// DRAW MAP AND SET GEO EXTENT (IN MAP UNITS) IN SID FOR SUBSEQUENT ZOOM >ACTIONS // >$mapimg = $map->draw(); > > >// ECRIT LES ETABLISSEMENTS AYANT DES FORMATIONS SUR LA CARTE >writeFormations($map,$mapimg,'%','400');//ne marche pas impossible d'?crire >le point avec le symbole >$couche=$map->getLayerByName("commune_symboles"); >$monpoint = ms_newPointObj(); >$monpoint->setXY(600000,220000); >$monpoint->draw($map,$couche,$mapimg,0,""); > >I can't just see this point and the symbol i want to add with. >It gets on my nerves !! >If you could help me it would be nice ! Some guesses: 1) commune_symboles layer has STATUS OFF on your map file so you must do $couche->status = MS_ON; 2) That layer uses SYMBOL 'star' but I don't see that symbol defined in your map file. From christian.reyes at UTEM.CL Fri Dec 10 11:59:56 2004 From: christian.reyes at UTEM.CL (Christian Reyes A.) Date: Fri, 10 Dec 2004 16:59:56 -0300 Subject: Warning:[MapServer Error]: msLoadMap(): Message-ID: Hi Ethan: First, thaks for your response. Yeah, the files are view for apache process, will be neccesary re-compile mapserv with the curl libraries ?? I think the problem is not apache or php else mapserver compiling options, any idea? Thanks Regards Christian Reyes ----- Original Message ----- From: Ethan Alpert To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, December 09, 2004 9:19 PM Subject: Re: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Did you check the permissions of /var/www/html/mapserver/datos.map? Can it be read by your httpd instance? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Reyes A. Sent: Thursday, December 09, 2004 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Hi Map Server Users Just download and install all software to run mapserv and mapscript, but when point my browser to test PHP script receive the next messages: Warning:[MapServer Error]: msLoadMap(): in /var/www/html/mapserver/test.php on line 19 Warning: Failed to open map file /var/www/html/mapserver/datos.map in /var/www/html/mapserver/test.php on line 19 Fatal error: Call to a member function on a non-object in /var/www/html/mapserver/test.php on line 46 I tried with many configurations, modify path (relative, direct, etc) always receive same messages Version of installed software are next: RedHat 9.0 Apache 2.0.40-21 PHP 4.2.2 Mapserver 4.4.0 PROJ.4.3.3 GDAL 1.2.5 pdflib 6.0.1 gd-2.0.33 libtiff 3.5.7-11 libjpeg 6b-26 libpng 1.2.2 zlib-1.1.4-8 xerces 1_6_0 parameter for compiling mapserver: --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-pdf --with-eppl --with-proj=/usr --with-sde=no --with-geos=no --with-mpatrol=no --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-tiff=/usr --with-php=/usr/local/php-4.2.2 --with-php-regex --with-proj=no --with-curl=no --enable-debug --with-wms=no --with-wfs=no --with-wcs=no --with-wmsclient=no --with-wfsclient=no No mayor compiling warningsr, only variables declared but not used I'm stuck , anybody can help to resolve this problem ( if solution is not a problem !!!) Thanks Regards Christian Reyes PD: Sorry for my English, i hope your understand -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Fri Dec 10 12:14:44 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 10 Dec 2004 13:14:44 -0700 Subject: Warning:[MapServer Error]: msLoadMap(): Message-ID: If apache can read the file then ther must be an error in the mapfile. I don't think libcurl has anything to do with it. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Reyes A. Sent: Friday, December 10, 2004 1:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Hi Ethan: First, thaks for your response. Yeah, the files are view for apache process, will be neccesary re-compile mapserv with the curl libraries ?? I think the problem is not apache or php else mapserver compiling options, any idea? Thanks Regards Christian Reyes ----- Original Message ----- From: Ethan Alpert To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, December 09, 2004 9:19 PM Subject: Re: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Did you check the permissions of /var/www/html/mapserver/datos.map? Can it be read by your httpd instance? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Reyes A. Sent: Thursday, December 09, 2004 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Hi Map Server Users Just download and install all software to run mapserv and mapscript, but when point my browser to test PHP script receive the next messages: Warning:[MapServer Error]: msLoadMap(): in /var/www/html/mapserver/test.php on line 19 Warning: Failed to open map file /var/www/html/mapserver/datos.map in /var/www/html/mapserver/test.php on line 19 Fatal error: Call to a member function on a non-object in /var/www/html/mapserver/test.php on line 46 I tried with many configurations, modify path (relative, direct, etc) always receive same messages Version of installed software are next: RedHat 9.0 Apache 2.0.40-21 PHP 4.2.2 Mapserver 4.4.0 PROJ.4.3.3 GDAL 1.2.5 pdflib 6.0.1 gd-2.0.33 libtiff 3.5.7-11 libjpeg 6b-26 libpng 1.2.2 zlib-1.1.4-8 xerces 1_6_0 parameter for compiling mapserver: --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-pdf --with-eppl --with-proj=/usr --with-sde=no --with-geos=no --with-mpatrol=no --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-tiff=/usr --with-php=/usr/local/php-4.2.2 --with-php-regex --with-proj=no --with-curl=no --enable-debug --with-wms=no --with-wfs=no --with-wcs=no --with-wmsclient=no --with-wfsclient=no No mayor compiling warningsr, only variables declared but not used I'm stuck , anybody can help to resolve this problem ( if solution is not a problem !!!) Thanks Regards Christian Reyes PD: Sorry for my English, i hope your understand -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Fri Dec 10 12:26:21 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 10 Dec 2004 12:26:21 -0800 Subject: simple tool for conversion In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FE56@ptolemy.topozone.com> Message-ID: Thanks for the help - I have attached the test mapfile. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Friday, December 10, 2004 5:50 AM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - You can indeed do something like that; please post the entire LAYER block that you're using to create those points. Remember that inline features go in a separate layer, not in your zip point shapefile layer. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Friday, December 10, 2004 2:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Eric, I have one question now that all of my points are showing via lon/lat I have one other question. I have tried to put features in but they will not show. Can I not do something like Feature Points mylon mylat end Text " my text " End And it should show up on the map? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 2:04 PM To: Joseph Norris Cc: UMN MapServerList Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California > state map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. -------------- next part -------------- A non-text attachment was scrubbed... Name: test_map Type: application/octet-stream Size: 31991 bytes Desc: not available URL: From steve.lime at DNR.STATE.MN.US Fri Dec 10 13:00:20 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 10 Dec 2004 15:00:20 -0600 Subject: itemnquery (qstring) search specifications -- "=" vs like Message-ID: Actually qstring=A will match all values in qitem that contain exactly 'A'. The default expression handler is just a straight case-sensitive string match. Also remember that whatever EXTENT is set in your mapfile (or via the CGI or MapScript) is used to filter shapes before checking their attributes. It's possible then that setting qstring=A will fail if potential matches fall outside that area of interest. Steve >>> Richard Greenwood 12/9/2004 6:32:35 PM >>> On Thu, 9 Dec 2004 12:40:00 -0800, Geographic Resource Solutions wrote: > Richard- > > Thanks for the reply- > > Sorry for my confusion - I typed a "|" when it should have been a "/" I > appear to have the syntax correct for making a match. > > If I seach for qstring=/A/ I get every land use type with that as part of > the use designation > including the 'AC-RW' - I don't want the 'AC-RW' match as it is not of > type 'A' > > If I leave it as A, /A, or A/ I get "no records found" - How do I get a > match for only the polygons of type 'A' and none of the others with an A in > the type ? > > I need to be able to specify an absolute equality/match for character > fields as opposed to a match based on a portion of any character value in > that field. Are there other characters to include in the qstring that > specify what type of match to perform ? > > Ken 1. Try putting it quotes, single or double. 2. Where are you putting this qstring=A? Typically a "qstring=x" is specified in the URL and passed to mapserver. And then your map file would have a FILTER and FILTERITEM for that layer. 3. Remeber that you're working with regex expressions, not SQL statements. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From msmith at SANANGELOMPO.ORG Fri Dec 10 13:07:16 2004 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Fri, 10 Dec 2004 15:07:16 -0600 Subject: Query Highlight Map Message-ID: Hi, I have my legend and scale embedded in my map image and am using jbox for may application. When I am in query mode and select a feature it displays the selected feature's data just like the demo does it. The 200X200 pixel query image on the query page fills up with my legend and you can't see the query map to tell where the feature you have selected is. How can I get the legend not to appear in my query map image or will I have to not embed the legend in my map window? Can anyone help? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: City Bus Routes Proposed1102712106316.gif Type: image/gif Size: 5507 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: City%20Bus%20Routes%20Proposed1102712106316[1].gif Type: image/gif Size: 5507 bytes Desc: not available URL: From ed at TOPOZONE.COM Fri Dec 10 13:25:16 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 10 Dec 2004 16:25:16 -0500 Subject: simple tool for conversion Message-ID: Joseph - If all your layers are lat/lon, then those coordinates should be fine - but why did you put TRANSFORM FALSE in there? That tells MapServer that your coordinates are NOT geographic, but image-based coordinates, and that's not what you have. I didn't try to do a thorough review, but you have UNITS FEET and UNITS METERS scattered through there, both of which are incorrect. The first UNITS statement at the top of the mapfile should read UNITS DD since your output projection is lat/lon and therefore the units are decimal degrees. - 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 Joseph Norris Sent: Friday, December 10, 2004 3:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Thanks for the help - I have attached the test mapfile. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Friday, December 10, 2004 5:50 AM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - You can indeed do something like that; please post the entire LAYER block that you're using to create those points. Remember that inline features go in a separate layer, not in your zip point shapefile layer. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Friday, December 10, 2004 2:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Eric, I have one question now that all of my points are showing via lon/lat I have one other question. I have tried to put features in but they will not show. Can I not do something like Feature Points mylon mylat end Text " my text " End And it should show up on the map? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 2:04 PM To: Joseph Norris Cc: UMN MapServerList Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California > state map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. From msmith at SANANGELOMPO.ORG Fri Dec 10 14:11:13 2004 From: msmith at SANANGELOMPO.ORG (Michael Smith) Date: Fri, 10 Dec 2004 16:11:13 -0600 Subject: Class Object - Template Message-ID: Hi, Is it possible to make the template in a class object open in a new "_blank" window? If so what is the syntax? TEMPLATE "sched.html" LAYER NAME "Route 1" GROUP "routes" STATUS ON DATA "transportation\bus\rt1_04_2" TYPE LINE CLASS NAME "Route 1" TEMPLATE "sched.html" SYMBOL 'line' SIZE 4 #changes size of line COLOR 234 117 0 #COLOR -1 -1 -1 #fills inside of circle END # Class From yecarrillo at YAHOO.COM Fri Dec 10 14:11:08 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Fri, 10 Dec 2004 16:11:08 -0600 Subject: Gix 0.3 released Message-ID: A new version of Gix has come. http://gix.sourceforge.net Changes: - View2MAP: More flexible options for almost all objects values in the export process - View2MAP: Full support for overlayed symbols (CompositePen, CompositeMarker, CompositeFill) using STYLE objects if version > 4 - View2MAP: Reference image exported as JPG. No more jpg2gif conversion. - Full support for Quantum GIS projects - Experimental support for OpenEv projects - Fixed Error when exporting views with Image Themes in all View export formats (bug 1046091) - Full support to exporting View to Thuban Session format (http://thuban.intevation.org/) - View2MAP: Fixed string fields with single quote in themes with definition SQL (FILTER) - View2MAP: Symbols can be named by Layer index instead of layer name (optional) - Fixed filename in Export Themes Dialog - Themes2SQL: Added ALTER TABLE DROP CONSTRAINT command - View2MAP: Fixed Extension bug when Language Packs for ArcView are installed (make, install, uninstall scripts) - View2MAP: Added support for MapServer 4.4 features: ENCODING, wms_timeformat, wms_default ... More at: http://sourceforge.net/project/shownotes.php?release_id=288991 Gix for ArcGis in under development. This port will be sponsored by DMSolutions. ArcObjects developers interested in take part of this team are welcome. Eduin ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From osgis.lists at GMAIL.COM Fri Dec 10 14:14:14 2004 From: osgis.lists at GMAIL.COM (David Bitner) Date: Fri, 10 Dec 2004 16:14:14 -0600 Subject: WFS Time Support? Message-ID: Does the new time support for WMS also extend to WFS? From Tom.Kralidis at EC.GC.CA Fri Dec 10 14:17:42 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 10 Dec 2004 17:17:42 -0500 Subject: WFS Time Support? Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of David Bitner > Sent: Friday, 10 December, 2004 17:14 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] WFS Time Support? > > > Does the new time support for WMS also extend to WFS? > Nope, it is WMS specific. The WFS spec does not support time the way WMS does. ..Tom From kgeurts at GIS.UMN.EDU Fri Dec 10 14:24:25 2004 From: kgeurts at GIS.UMN.EDU (Kari Geurts) Date: Fri, 10 Dec 2004 16:24:25 -0600 Subject: MapServer Documentation Update 4.4 Message-ID: Hello MapServer Folks, The documentation webpage (http://mapserver.gis.umn.edu/doc.html) has been updated to reflect the 4.4 release. Thank you to all the hard work by the documentation authors and contributors. If your document is not on the website currently, and you would like to contribute a 4.4 version please commit your document to the "branch-4-4" CVS. Also, please include 4.4 in the title of the document and send me an email so I can add a link on the webpage to your document. The previous stable version (4.2) documentation is still available through links on the main documentation webpage. Just a friendly reminder to the authors, if you make changes to past version documents i.e.4.2 or earlier, please let me know so I can manually update the appropriate webpage. Thanks again, Kari -- 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 eric at GOMOOS.ORG Fri Dec 10 13:41:47 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Fri, 10 Dec 2004 16:41:47 -0500 Subject: simple tool for conversion In-Reply-To: Message-ID: At 12:26 PM 12/10/2004 -0800, Joseph Norris wrote: >Thanks for the help - I have attached the test mapfile. >LAYER > NAME "Teacher Names" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > > FEATURE > POINTS -120.630190 35.144119 END > TEXT "name 327" > END > > FEATURE > POINTS -121.942468 37.340641 END > TEXT "name 124" > END .... This layer may still need a CLASS and STYLE section, I'm not sure about ANNOTATION layers. But the real problem is you have TRANSFORM FALSE but your FEATURE POINTs are in long lat. TRANSFORM FALSE means the points would be pixel values not map coordinates. Try removing the TRANSFRORM FALSE. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Fri Dec 10 15:08:08 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 10 Dec 2004 15:08:08 -0800 Subject: simple tool for conversion In-Reply-To: <4.3.2.7.2.20041210163559.00af8df0@mail.gomoos.org> Message-ID: I did just that - thank you - now my features are over my circles - is there a way to move those to the side or above? Thank you. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Friday, December 10, 2004 1:42 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion At 12:26 PM 12/10/2004 -0800, Joseph Norris wrote: Thanks for the help - I have attached the test mapfile. >LAYER > NAME "Teacher Names" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > > FEATURE > POINTS -120.630190 35.144119 END > TEXT "name 327" > END > > FEATURE > POINTS -121.942468 37.340641 END > TEXT "name 124" > END .... This layer may still need a CLASS and STYLE section, I'm not sure about ANNOTATION layers. But the real problem is you have TRANSFORM FALSE but your FEATURE POINTs are in long lat. TRANSFORM FALSE means the points would be pixel values not map coordinates. Try removing the TRANSFRORM FALSE. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Fri Dec 10 15:18:20 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 10 Dec 2004 15:18:20 -0800 Subject: simple tool for conversion In-Reply-To: Message-ID: I found the answer - do an offset in the label - x y for pixels relative to the point. Works great now! thanks #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Joseph Norris Sent: Friday, December 10, 2004 3:08 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion I did just that - thank you - now my features are over my circles - is there a way to move those to the side or above? Thank you. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Eric Bridger Sent: Friday, December 10, 2004 1:42 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion At 12:26 PM 12/10/2004 -0800, Joseph Norris wrote: Thanks for the help - I have attached the test mapfile. >LAYER > NAME "Teacher Names" > STATUS DEFAULT > TRANSFORM FALSE > TYPE ANNOTATION > > FEATURE > POINTS -120.630190 35.144119 END > TEXT "name 327" > END > > FEATURE > POINTS -121.942468 37.340641 END > TEXT "name 124" > END .... This layer may still need a CLASS and STYLE section, I'm not sure about ANNOTATION layers. But the real problem is you have TRANSFORM FALSE but your FEATURE POINTs are in long lat. TRANSFORM FALSE means the points would be pixel values not map coordinates. Try removing the TRANSFRORM FALSE. -------------- next part -------------- An HTML attachment was scrubbed... URL: From woodbri at SWOODBRIDGE.COM Fri Dec 10 15:18:44 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Fri, 10 Dec 2004 18:18:44 -0500 Subject: simple tool for conversion In-Reply-To: Message-ID: Joseph Norris wrote: > I did just that ? thank you ? now my features are over my circles - is > there a way to move those to the side or above? Yes, read the mapfile reference for the LABEL object and there are positioning directives and offset directives that you can apply. -Steve W. > Thank you. > > > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,-68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > > > -----Original Message----- > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu]*On Behalf Of *Eric Bridger > *Sent:* Friday, December 10, 2004 1:42 PM > *To:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] simple tool for conversion > > > > At 12:26 PM 12/10/2004 -0800, Joseph Norris wrote: > > Thanks for the help - I have attached the test mapfile. > > >>LAYER >> NAME "Teacher Names" >> STATUS DEFAULT >> TRANSFORM FALSE >> TYPE ANNOTATION >> >> FEATURE >> POINTS -120.630190 35.144119 END >> TEXT "name 327" >> END >> >> FEATURE >> POINTS -121.942468 37.340641 END >> TEXT "name 124" >> END > .... > > This layer may still need a CLASS and STYLE section, I'm not sure about > ANNOTATION layers. > But the real problem is you have TRANSFORM FALSE but your FEATURE POINTs > are in long lat. > TRANSFORM FALSE means the points would be pixel values not map coordinates. > Try removing the TRANSFRORM FALSE. > From sirronj at PACBELL.NET Fri Dec 10 15:34:32 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 10 Dec 2004 15:34:32 -0800 Subject: simple tool for conversion In-Reply-To: <41BA2ED4.3030802@swoodbridge.com> Message-ID: Found it thanks. Still another question: Can I put a url in a label that allows user to click on it to go to the other url? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Stephen Woodbridge Sent: Friday, December 10, 2004 3:19 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph Norris wrote: > I did just that - thank you - now my features are over my circles - is > there a way to move those to the side or above? Yes, read the mapfile reference for the LABEL object and there are positioning directives and offset directives that you can apply. -Steve W. > Thank you. > > > > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map > chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); > > > > -----Original Message----- > *From:* UMN MapServer Users List > [mailto:MAPSERVER-USERS at lists.umn.edu]*On Behalf Of *Eric Bridger > *Sent:* Friday, December 10, 2004 1:42 PM > *To:* MAPSERVER-USERS at lists.umn.edu > *Subject:* Re: [UMN_MAPSERVER-USERS] simple tool for conversion > > > > At 12:26 PM 12/10/2004 -0800, Joseph Norris wrote: > > Thanks for the help - I have attached the test mapfile. > > >>LAYER >> NAME "Teacher Names" >> STATUS DEFAULT >> TRANSFORM FALSE >> TYPE ANNOTATION >> >> FEATURE >> POINTS -120.630190 35.144119 END >> TEXT "name 327" >> END >> >> FEATURE >> POINTS -121.942468 37.340641 END >> TEXT "name 124" >> END > .... > > This layer may still need a CLASS and STYLE section, I'm not sure about > ANNOTATION layers. > But the real problem is you have TRANSFORM FALSE but your FEATURE POINTs > are in long lat. > TRANSFORM FALSE means the points would be pixel values not map coordinates. > Try removing the TRANSFRORM FALSE. > From sirronj at PACBELL.NET Fri Dec 10 15:55:46 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 10 Dec 2004 15:55:46 -0800 Subject: simple tool for conversion In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FE63@ptolemy.topozone.com> Message-ID: Ed, Do you know if there is any limit to the number of features that can be put in a layer? If there is limit - what are my alternatives? Create a shape file of the name labels? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Friday, December 10, 2004 1:25 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - If all your layers are lat/lon, then those coordinates should be fine - but why did you put TRANSFORM FALSE in there? That tells MapServer that your coordinates are NOT geographic, but image-based coordinates, and that's not what you have. I didn't try to do a thorough review, but you have UNITS FEET and UNITS METERS scattered through there, both of which are incorrect. The first UNITS statement at the top of the mapfile should read UNITS DD since your output projection is lat/lon and therefore the units are decimal degrees. - 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 Joseph Norris Sent: Friday, December 10, 2004 3:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Thanks for the help - I have attached the test mapfile. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Friday, December 10, 2004 5:50 AM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - You can indeed do something like that; please post the entire LAYER block that you're using to create those points. Remember that inline features go in a separate layer, not in your zip point shapefile layer. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Friday, December 10, 2004 2:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Eric, I have one question now that all of my points are showing via lon/lat I have one other question. I have tried to put features in but they will not show. Can I not do something like Feature Points mylon mylat end Text " my text " End And it should show up on the map? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 2:04 PM To: Joseph Norris Cc: UMN MapServerList Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California > state map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. From bob.basques at CI.STPAUL.MN.US Fri Dec 10 16:39:59 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Fri, 10 Dec 2004 18:39:59 -0600 Subject: Oracle Spatial. Message-ID: All, Anyone have any pointers to a basic setup tutorial/procedures step list or something similar? Even a basic database connection would help. I just decided to try out a Oracle Spatialdataset as a LAYER in MapServer to guage performance and such. Any concerns hints would be appreciated. Thanks bobb From kenlord at GMAIL.COM Fri Dec 10 17:22:33 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Fri, 10 Dec 2004 17:22:33 -0800 Subject: Query Highlight Map In-Reply-To: <20041210210520.XAKO4801.imta01a2.registeredsite.com@PLANGIS> Message-ID: Hi Micheal, I dont use Jbox, but I hope my suggestion points you in the right direction. I have made similar highlight maps in my query results using html with tags where the src ponts to mapserver with all the parameters in the URL. In my case to loose the legend, the 'src=' url would include a parameter such as: &map_legend_status=OFF You can modify any part of the mapfile in this way which is great if you dont want to make duplicate map files modified just for your query snapshots. There is a paragraph or three of documentation on this here: http://mapserver.gis.umn.edu/doc44/cgi-reference.html scroll down to 'Changing map file parameters via a form or a URL' But note that I have had problems making such an image work with mapserver 4.2. ... works great with 3.6, but is very sporadic with 4.2. I've posted on this with no replies, and in our application I've had to keep mapserver 3.6 around with map files to keep the snapshots working correctly. Haven't tried with 4.4 yet. Perhaps in your case a second map file, edited for your query maps would be easier ... but not having used jbox, I may be out to lunch. Cheers, Ken Lord Vancouver BC On Fri, 10 Dec 2004 15:07:16 -0600, Michael Smith wrote: > > > Hi, > > I have my legend and scale embedded in my map image and am using jbox for > may application. When I am in query mode and select a feature it displays > the selected feature's data just like the demo does it. The 200X200 pixel > query image on the query page fills up with my legend and you can't see the > query map to tell where the feature you have selected is. How can I get the > legend not to appear in my query map image or will I have to not embed the > legend in my map window? Can anyone help? Thanks. > From hfl at HOME.NL Sat Dec 11 02:46:11 2004 From: hfl at HOME.NL (Huub) Date: Sat, 11 Dec 2004 11:46:11 +0100 Subject: copyright text Message-ID: Hi List, I would love to add a copyright text POSITION LL, but that must be fabriqued with a layer like the following. I 'm using a fancy resizing viewer, but the copyright text doesn' know that, so it's a bit in the way if the height is bigger than 400 The only alternative i see is position 0 0 and the label position lr but point 0 0 is not lower left in the corner I would prefer, like SCALEBAR, a COPYRIGHTNOTICE that also could incorporate a © sign -- LAYER NAME "copyright" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 80 390 END TEXT 'Copyright mine mine mine!' END CLASS LABEL SIZE 8 COLOR 0 0 0 TYPE TRUETYPE FONT Arial ANTIALIAS false END END END -- -- Geodan IT b.v. Buitenhaven 27-A 5211 TP 's-Hertogenbosch (NL) ------------------------------------- Tel: +31 (0)73 - 692 5151 Fax: +31 (0)73 - 692 5150 Mobiel: ------------------------------------- Postadres / mailing address President Kennedylaan 1 1079 MB Amsterdam (NL) ------------------------------------- E-mail: huub.fleuren at geodan.nl Website: www.geodan.nl Disclaimer: www.geodan.nl/disclaimer ------------------------------------- From bob.basques at CI.STPAUL.MN.US Sat Dec 11 12:39:57 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Sat, 11 Dec 2004 14:39:57 -0600 Subject: Oracle connection (Newbie) Message-ID: Paul Ramsey wrote: >> I just decided to try out a Oracle Spatial dataset as a LAYER in >> MapServer to guage performance and such. Any concerns hints would be >> appreciated. > > > Make sure you get some great numbers! :) > JMeter is a nice load-generation tool, we have an extension we can > give you that does randomized WMS calls. > - Test concurrent load as well as single load > - Test PostGIS too so you can get a head-to-head number I'm pretty much stuck with ORACLE , as it's used across the Organization and is integrated into quite a few other applications that I'll be feeding from AutoCAD. I just figured out the AutoCAD spatial writing tools, now to get the process to publish through MapServer. There are only 92,000 points in the layer. so it shouldn't be to bad performance wise, even if I don't quite get it right the first time. :c) bobb From covariance at SHAW.CA Sat Dec 11 14:27:15 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Sat, 11 Dec 2004 16:27:15 -0600 Subject: Does PHP still have to be installed as a CGI with MapServer 4.4? Message-ID: My hosting provider has asked me this question in light of the statement under the What's New section of the MapServer homepage that says: " Lots of fixes to allow running of long-lived processes and in multi-threaded environments (memory leaks, mutex locking, etc.)." My hosting provider would much rather have PHP installed and running as an Apache DSO and still give me access to PHP Mapscript. Is it now safe and reliable to run PHP Mapscript with PHP running as an Apache DSO? the system that I am running this under is: Linux venus 2.6.9OpenITloguid #1 SMP Tue Nov 2 21:57:56 CST 2004 i686 with: Apache 2.0 Handler and: MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE and: PHP MapScript Version ($Revision: 1.220 $ $Date: 2004/11/16 17:23:13 $) thanks, Bob Bruce From woodbri at SWOODBRIDGE.COM Sat Dec 11 14:52:04 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sat, 11 Dec 2004 17:52:04 -0500 Subject: Does PHP still have to be installed as a CGI with MapServer 4.4? In-Reply-To: Message-ID: Bob, I can't answer the question related to running PHP/Mapscript in an apache DSO, but running mod_php in apache has never been exclusive of running php?mapscript as a cgi. If you generally configure your site to use mod_php, you can then specify that with some directory that you want to run php as cgi. I have been doing this for a long time. My whole site runs mod_php, except when I am calling mapscript pages, then it runs a separate php built for use with mapscript as a cgi. This can all be configured in the apache config files. -Steve W. Bob Bruce wrote: > My hosting provider has asked me this question in light of the statement > under the What's New section of the MapServer homepage that says: > > " Lots of fixes to allow running of long-lived processes and in > multi-threaded environments (memory leaks, mutex locking, etc.)." > > My hosting provider would much rather have PHP installed and running as an > Apache DSO and still give me access to PHP Mapscript. > > Is it now safe and reliable to run PHP Mapscript with PHP running as an > Apache DSO? > > the system that I am running this under is: > Linux venus 2.6.9OpenITloguid #1 SMP Tue Nov 2 21:57:56 CST 2004 i686 > with: > Apache 2.0 Handler > and: > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 > INPUT=JPEG INPUT=SHAPEFILE > and: > PHP MapScript Version ($Revision: 1.220 $ $Date: 2004/11/16 17:23:13 $) > > thanks, > Bob Bruce > From covariance at SHAW.CA Sat Dec 11 17:58:57 2004 From: covariance at SHAW.CA (Bob Bruce - Programmer) Date: Sat, 11 Dec 2004 19:58:57 -0600 Subject: Does PHP still have to be installed as a CGI with MapServer 4.4? In-Reply-To: <41BB7A14.7020507@swoodbridge.com> Message-ID: Thanks for that Steve. We were just wondering if there was any requirement to have it configured as a CGI anymore. Bob -----Original Message----- From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] Sent: Saturday, December 11, 2004 4:52 PM To: Bob Bruce Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Does PHP still have to be installed as a CGI with MapServer 4.4? Bob, I can't answer the question related to running PHP/Mapscript in an apache DSO, but running mod_php in apache has never been exclusive of running php?mapscript as a cgi. If you generally configure your site to use mod_php, you can then specify that with some directory that you want to run php as cgi. I have been doing this for a long time. My whole site runs mod_php, except when I am calling mapscript pages, then it runs a separate php built for use with mapscript as a cgi. This can all be configured in the apache config files. -Steve W. Bob Bruce wrote: > My hosting provider has asked me this question in light of the statement > under the What's New section of the MapServer homepage that says: > > " Lots of fixes to allow running of long-lived processes and in > multi-threaded environments (memory leaks, mutex locking, etc.)." > > My hosting provider would much rather have PHP installed and running as an > Apache DSO and still give me access to PHP Mapscript. > > Is it now safe and reliable to run PHP Mapscript with PHP running as an > Apache DSO? > > the system that I am running this under is: > Linux venus 2.6.9OpenITloguid #1 SMP Tue Nov 2 21:57:56 CST 2004 i686 > with: > Apache 2.0 Handler > and: > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 > INPUT=JPEG INPUT=SHAPEFILE > and: > PHP MapScript Version ($Revision: 1.220 $ $Date: 2004/11/16 17:23:13 $) > > thanks, > Bob Bruce > From wlx at MYGIS.ORG Sun Dec 12 02:40:47 2004 From: wlx at MYGIS.ORG (wlx) Date: Sun, 12 Dec 2004 18:40:47 +0800 Subject: Does PHP still have to be installed as a CGI with MapServer 4.4? In-Reply-To: Message-ID: I have do so by the maillist's help,and I think the system run healthy. > > My hosting provider has asked me this question in light of > the statement under the What's New section of the MapServer > homepage that says: > > " Lots of fixes to allow running of long-lived processes and > in multi-threaded environments (memory leaks, mutex locking, etc.)." > > My hosting provider would much rather have PHP installed and > running as an Apache DSO and still give me access to PHP Mapscript. > > Is it now safe and reliable to run PHP Mapscript with PHP > running as an Apache DSO? > > the system that I am running this under is: > Linux venus 2.6.9OpenITloguid #1 SMP Tue Nov 2 21:57:56 CST > 2004 i686 > with: > Apache 2.0 Handler > and: > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE > and: > PHP MapScript Version ($Revision: 1.220 $ $Date: > 2004/11/16 17:23:13 $) > > thanks, > Bob Bruce > > From miroslav.sulc at STARTNET.CZ Sun Dec 12 07:06:04 2004 From: miroslav.sulc at STARTNET.CZ (=?ISO-8859-2?Q?Miroslav_=A9ulc?=) Date: Sun, 12 Dec 2004 16:06:04 +0100 Subject: How to find out whether point is in map extent? Message-ID: Hello, I am very new to mapserver so I cannot figure out how to do this. I have several separate maps and I would like to display the correct map according to retrieved coordinate. In other words, I have a point specified by coordinates and I have to find out what map to display. I use the cgi version of map server. I think I should use some sort of query command but I don't know how. I would appreciate any help. -- Miroslav ?ulc -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From woodbri at SWOODBRIDGE.COM Sun Dec 12 08:46:06 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Sun, 12 Dec 2004 11:46:06 -0500 Subject: How to find out whether point is in map extent? In-Reply-To: <41BC5E5C.9010707@startnet.cz> Message-ID: Hello Miroslav, The way mapserver works is that "maps" are the data the mapserver serves to the client. the data can be any of numerous formats like geo-referenced rasters, or point, line, polygon data, etc. When a client requests [a location and scale] or [a bounding box] to view, mapserver searches through all the data it has been given and then displays the requested view. So what you need to do is: 1) create a mapfile with layers that define you "maps" data 2) If your data is broken into multiple files then you might need to create and use a tileindex 3) create a template UI that calls the CGI interface to get user requests and passes the requests to mapserver CGI You can use the demo application as a starting point for a CGI template application. Can you tell us more about your "maps" data. How many files? What type of files are they? Is it raster data? Tiff?, jpeg, png, gif, other? Is it geo-referenced? ie: does it have world files? -Steve W Miroslav ?ulc wrote: > Hello, > > I am very new to mapserver so I cannot figure out how to do this. I have > several separate maps and I would like to display the correct map > according to retrieved coordinate. In other words, I have a point > specified by coordinates and I have to find out what map to display. I > use the cgi version of map server. I think I should use some sort of > query command but I don't know how. > > I would appreciate any help. > > -- > Miroslav ?ulc > From yecarrillo at YAHOO.COM Sun Dec 12 08:56:34 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Sun, 12 Dec 2004 10:56:34 -0600 Subject: Gix 0.3 released In-Reply-To: Message-ID: Thanks for reply. --- Bart van den Eijnden escribi?: > Hi Eduin, > > when exporting to MAP file, a lot of the same symbols are generated > (especially the circle symbol). This seems a bit inefficient. Is there a > way you could work around this? Could you use more general symbols which > can be reused by different layers? > This is true specially for outline symbols. It can be easy to use a generic outline symbol to reduce the number of generated symbols. > Also for WMS interface it is not good to have layer names (NAME) with > spaces in them, this results in problems with GetFeatureInfo in GML etc. > Better is to change all spaces to underscores. > Currently I do not use Mapserver as WMS client, but if spaces cause problems, It can be removed... > What do I need to add in my apr project in order to get the projection/SRS > information extracted by gix? I now have SRS NONE and no PROJ definitions. > Or is this part not supported? > Gix uses the ArcView name for predefined projections with a known EPSG code. I limited number of these "alias" has been defined. I live near Ecuator, so do not use projections frecuently. You can customize this "alias" in the file: $AVHOME\tools\GixMSTools.ESRIProj for your own projections. Send me a copy of your modifications for the next version. > Nice tool btw! > > Best regards, > Bart > Thanks again for your comments. ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From saurin.shah at TAMU.EDU Sun Dec 12 15:06:32 2004 From: saurin.shah at TAMU.EDU (Saurin Shah) Date: Sun, 12 Dec 2004 17:06:32 -0600 Subject: New to Mapservers (Help regarding Tomcat server) Message-ID: Hi mapserver users, I am Saurin Shah, from Texas A and M University. I am new to Mapservers, and had some questions about it. My professor wants to use JSP instead of PHP on a tomcat web server and call the mapserv.exe file. Does Tomcat webserver support Mapservers ? Waiting for ur replies, Thanks and Regards, Saurin. From saso.celarc at HERMES-PLUS.SI Sun Dec 12 21:38:23 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Sun, 12 Dec 2004 23:38:23 -0600 Subject: Oracle Spatial / ArcSDE connection Message-ID: Where can i find some documentation or examples of Oracle Spatial or ArcSDE connection ? Thanks, Sa?o Celarc From bartvde at XS4ALL.NL Sun Dec 12 23:37:28 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 13 Dec 2004 08:37:28 +0100 Subject: Oracle Spatial / ArcSDE connection In-Reply-To: Message-ID: Hi, Oracle Spatial (this doc is not up to date for Mapserver 4.4, there are now more options then described here, but it's a good start): http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?OracleSpatial SDE: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE Best regards, Bart > Where can i find some documentation or examples of Oracle Spatial or > ArcSDE > connection ? > > Thanks, > Sa?o Celarc > > From bartvde at XS4ALL.NL Sun Dec 12 23:41:44 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 13 Dec 2004 08:41:44 +0100 Subject: New to Mapservers (Help regarding Tomcat server) In-Reply-To: Message-ID: Hi, have a look at the following threads: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0212/msg00019.html http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0302/msg00641.html you might also wanna have a look at the Java Mapscript: http://www.unicolet.org/mapserver/compile.html Best regards, Bart > Hi mapserver users, > > I am Saurin Shah, from Texas A and M University. I am new to Mapservers, > and had some questions about it. > > My professor wants to use JSP instead of PHP on a tomcat web server and > call the mapserv.exe file. Does Tomcat webserver support Mapservers ? > > Waiting for ur replies, > > Thanks and Regards, > > Saurin. > From temiz at DEPREM.GOV.TR Sun Dec 12 23:46:17 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Mon, 13 Dec 2004 09:46:17 +0200 Subject: grid object Message-ID: hello I need to see an example map file containing grid object in UTM format I will appreciate if you provide it 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 0098klbe at EDU.FH-KAERNTEN.AC.AT Mon Dec 13 00:42:06 2004 From: 0098klbe at EDU.FH-KAERNTEN.AC.AT (Bernhard Klingseisen) Date: Mon, 13 Dec 2004 02:42:06 -0600 Subject: PHP mapscript windows binaries for PHP5 Message-ID: Hi list members, I was just wondering, if somebody has compiled windows binaries of PHPmapscript for PHP5 already. According to the change log, PHP5 should be supported (at least experimental). Does anybody have the binaries available or can help me with the compilation. Many thanks in advance Bernhard From margottid at COMUNE.LUGO.RA.IT Mon Dec 13 01:44:30 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Mon, 13 Dec 2004 10:44:30 +0100 Subject: Decode values in CGI query mode Message-ID: Hi list, I use CGI MapServer for browsing and querying shapefile-based maps. This is the version: In a shapefile I have a numeric field which is a codified value (i.e.: values 0, 1, 2, ... each corresponding to a very long description of the attribute). I don't want / can't modify the shapefile and/or the .DBF file, and I'd like to set this long description ONLY ONE TIME in the mapfile, so that when I query the map I don't see the anonymous numeric values but MapServer decodes and substitutes them with my more exausting long description. Is it possible to set these substitutions in the mapfile? Thank you, Daniele -------------- next part -------------- An HTML attachment was scrubbed... URL: From saso.celarc at HERMES-PLUS.SI Mon Dec 13 02:28:47 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 13 Dec 2004 04:28:47 -0600 Subject: Oracle Spatial / ArcSDE connection Message-ID: Thanks very much. I tested them both. Connection to ArcSDE works fine and fast. When connecting to Oracle Spatial, the small zoom is also working, but when I zoom in to scale about 1:10000 or more, the mapserver crashes. I get "mapserver.EXE has encountered a problem and needs to close...". I have: MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS =WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER INPUT=SDE INPUT=POSTGIS INPU T=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Web Server is Apache on Windows XP. Where could be a problem ? Regards, Sa?o Celarc From kevin.sweeney at UNN.AC.UK Mon Dec 13 02:41:14 2004 From: kevin.sweeney at UNN.AC.UK (kevin.sweeney) Date: Mon, 13 Dec 2004 10:41:14 -0000 Subject: Mapping product Message-ID: Hello all. I am currently trying to find a mapping application to create a web based dynamic map of the university I am studying at. Obviously I can't afford a full GIS development tool like MapInfo (Anyone got one for free?) so I have been looking around for a good substitute and have been pointed to Mapserver. Is there anyone able to answer the following.... 1. Is mapserver a good way to create an interactive map? 2. Is it difficult to use? 3. What do I need to start creating maps? I have been to the set up section and see I need Apache(Got) do I need anything else to get started? 4. Anyone got any spare examples for me to butcher and change so I can learn how it all Works? I know I am asking a lot of questions but their must be someone who can answer them. You can E-mail at kevin.sweeney at unn.ac.uk if you want to. Please help. Many thanks. Kevin. From bartvde at XS4ALL.NL Mon Dec 13 03:01:05 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 13 Dec 2004 12:01:05 +0100 Subject: Mapping product In-Reply-To: <2792F778DC79D411A86500508BCF83CAFC2B3A@anchorage.unn.ac.uk> Message-ID: Hi Kevin, > 1. Is mapserver a good way to create an interactive map? Depends on what you consider an interactive map. You can do all sorts of navigation, querying, highlighting etc. so that's pretty interactive in my opinion. But keep in mind that webmapping cannot always be compared with a standalone GIS like Mapinfo. > 2. Is it difficult to use? That depends on a lot of things, including your familiarity with webmapping and GIS in general. In my opinion it is not difficult to use, but I am not a newbie so it's difficult for me to judge on this point. > 3. What do I need to start creating maps? I have been to the set up > section and see I need Apache(Got) do I need anything else to get started? You need a webserver which can serve cgi. Normally you create a MAP file to define your data, which classification to use etc. The most simple visualization is through a HTML template (like the Itasca demo), but you can also use the WMS protocol. > 4. Anyone got any spare examples for me to butcher and change so I can > learn how it all Check out the proceedings from the Mapserver User Meeting 2, there are lots of tutorials over there: http://www.omsug.ca/osgis2004/proceedings.html Best regards, Bart > Hello all. > > I am currently trying to find a mapping application to create a web based > dynamic map of the university I am studying at. Obviously I can't afford > a > full GIS development tool like MapInfo (Anyone got one for free?) so I > have > been looking around for a good substitute and have been pointed to > Mapserver. > > Is there anyone able to answer the following.... > > 1. Is mapserver a good way to create an interactive map? > 2. Is it difficult to use? > 3. What do I need to start creating maps? I have been to the set up > section and see I > need Apache(Got) do I need anything else to get started? > 4. Anyone got any spare examples for me to butcher and change so I can > learn how it all > Works? > > I know I am asking a lot of questions but their must be someone who can > answer them. You can E-mail at kevin.sweeney at unn.ac.uk if you want to. > > Please help. > > Many thanks. > > Kevin. > From simon at INF.UNIVALI.BR Mon Dec 13 03:02:42 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Mon, 13 Dec 2004 11:02:42 +0000 Subject: Oracle Spatial. In-Reply-To: <41BA41DF.6040607@ci.stpaul.mn.us> Message-ID: Hi, You can use the wiki page to start the mapserver definition. In Oracle Spatial, you can use the User Guide how a reference, you can insert the same exemples in your database and test using mapserver. About the performance, check your index, if you are using the 10g version don't define the SDO_LEVEL parameter. If you define one wrong spatial index your performance is to bad. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Blammo wrote: > All, > > > Anyone have any pointers to a basic setup tutorial/procedures step list > or something similar? Even a basic database connection would help. > > I just decided to try out a Oracle Spatialdataset as a LAYER in > MapServer to guage performance and such. Any concerns hints would be > appreciated. > > Thanks > > bobb > From javiermartin at NETSYSTEMSI.COM Mon Dec 13 03:05:58 2004 From: javiermartin at NETSYSTEMSI.COM (Javier Mart=?ISO-8859-1?Q?=EDn?=) Date: Mon, 13 Dec 2004 05:05:58 -0600 Subject: Problems updating keymap Message-ID: Hi List, I'm working with maplab 2.2 and mapserver 4.2 in a gis application, but i have some problems with it. I have implement a search application in a map, and it works perfectly but when i do: $oMapNavigator->zoomPoint(25, $pxX, $pyY); $szCurrentState = $oMapSession->saveState(); only refresh main map and not keymap. How can i refresh both at the same time???. In other side, i'm trying to show a point in main map when it find something updating data field in layer object, but when i do "$szCurrentState = $oMapSession->saveState();" it is not showed. What is worng???? How can i refresh de main map????. Thanks to all, and excuse me for my english. From joseluismapserver at YAHOO.ES Mon Dec 13 03:13:57 2004 From: joseluismapserver at YAHOO.ES (Jose Luis Gonzalez) Date: Mon, 13 Dec 2004 12:13:57 +0100 Subject: How to dump directly to the web browser Message-ID: Hello to everyone I am using Mapserver 4.4 and java (servlets), and I have used the example that the instalation program gives me. I't this one: mapObj map = new mapObj("test_nofontset.map"); map.getImagecolor().setRGB(153, 153, 204); styleObj st = map.getLayer(1).getClass(0).getStyle(0); st.getColor().setHex("#000000"); imageObj img = map.draw(); System.out.println("The map will be drawn to: result5.png"); img.save("result5.png", map); But what I want to do is to draw directly to the web browser, not to save the file. Could someone tell me how to do it? Thank you Jose Luis --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From ivano.picco at AQUPI.TK Mon Dec 13 03:18:46 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Mon, 13 Dec 2004 05:18:46 -0600 Subject: How to render a layer with HTML/JS with MapServer 4.4.0 (configuration problem) Message-ID: Hi list! In my previous posts I tried to explain my problem with the SVG generation by some Query request and using SVG template. On my last post I pointed out a problem with the query when someone try to load all points of all geometry on a layer, the only way to get the point to build the SVG document. Now I'm trying a new way to get points, maybe better than the old: I found html output support for a single WMS layer in the mapserver (version 4.3) included on OpenEV_FW 1.8.2 package. With this i can get the points with a simple GetMap request (using WMS url) and with Javascript I can build my SVG document on the fly with the client's browser. The 4.3 version included on OpenEV_FW has some problem with Oracle Spatial, so I have to use the last mapserver build, but I can't add html support to WMS. What do I have to do? Do I have to change the Map file?, or do I have to rebuild my binary? If so, what does the configure need? Thanks for your support, sorry for my english, Ivano Picco Against the same demo.map (the glourious Itasca demo :)) the old 4.3 gives me this response during a GetCapabilities request: [..SNIP..] image/png image/jpeg image/wbmp text/html image/tiff [..SNIP..] where 4.4.0 gives: [..SNIP..] image/gif image/png image/jpeg image/wbmp image/tiff [..SNIP..] This it 4.3 mapscriptvars: -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL -I. -I/usr3/pkg4/OpenEV_FW_Tree/OpenEV_FW/include -I/usr/local/include -I/usr3/pkg4/OpenEV_FW_Tree/OpenEV_FW/include -L. -lmap and this is mine: -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR -DUSE_WCS_SVR -I. -I/home/mapserver/include -I/home/mapserver/lib/arcsde/sdeexe90/include -L. -lmap -L/home/mapserver/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg -lfreetype -lpng -lz -L/home/mapserver/lib -lproj -ljpeg -L/home/mapserver/lib/arcsde/sdeexe90/lib -lsde90 -lpe90 -lsg90 -lpthread -ldl -lgdal -lming -lcurl -L/usr/kerberos/lib -lssl -lcrypto -ldl -lssl -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -L/home/mapserver/lib/oracle/10.1.0.2/client/lib -lclntsh -lc -lm -lstdc++ From bartvde at XS4ALL.NL Mon Dec 13 03:43:46 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 13 Dec 2004 12:43:46 +0100 Subject: How to render a layer with HTML/JS with MapServer 4.4.0 (configuration problem) In-Reply-To: Message-ID: Hi, the support is probably still in there, but some changes were done to the formats that a WMS GetCapabilities response outputs. There is no current mechanism to define (as a user) your own output formats for WMS. Do you get an exception when you ask for format=text/html in 4.4? See: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072 Best regards, Bart > Hi list! > In my previous posts I tried to explain my problem with the SVG generation > by some Query request and using SVG template. On my last post I pointed > out > a problem with the query when someone try to load all points of all > geometry > on a layer, the only way to get the point to build the SVG document. > Now I'm trying a new way to get points, maybe better than the old: > I found html output support for a single WMS layer in the mapserver > (version > 4.3) included on OpenEV_FW 1.8.2 package. With this i can get the points > with a simple GetMap request (using WMS url) and with Javascript I can > build > my SVG document on the fly with the client's browser. > The 4.3 version included on OpenEV_FW has some problem with Oracle > Spatial, > so I have to use the last mapserver build, but I can't add html support > to WMS. > What do I have to do? Do I have to change the Map file?, or do I have to > rebuild my binary? If so, what does the configure need? > Thanks for your support, > sorry for my english, > Ivano Picco > > Against the same demo.map (the glourious Itasca demo :)) the old 4.3 gives > me this response during a GetCapabilities request: > [..SNIP..] > > image/png > image/jpeg > image/wbmp > text/html > image/tiff > [..SNIP..] > where 4.4.0 gives: > [..SNIP..] > > image/gif > image/png > image/jpeg > image/wbmp > image/tiff > [..SNIP..] > > This it 4.3 mapscriptvars: > -DIGNORE_MISSING_DATA -DUSE_EPPL -DUSE_PROJ -DUSE_PROJ_API_H -DUSE_GD_PNG > -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DUSE_OGR -DUSE_GDAL > -I. -I/usr3/pkg4/OpenEV_FW_Tree/OpenEV_FW/include -I/usr/local/include > -I/usr3/pkg4/OpenEV_FW_Tree/OpenEV_FW/include > -L. -lmap > and this is mine: > -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_PROJ > -DUSE_PROJ_API_H > -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT > -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_SDE -DUSE_OGR > -DUSE_GDAL -DUSE_WMS_SVR -DUSE_WMS_LYR -DUSE_WFS_SVR -DUSE_WFS_LYR > -DUSE_WCS_SVR > -I. -I/home/mapserver/include > -I/home/mapserver/lib/arcsde/sdeexe90/include > -L. -lmap -L/home/mapserver/lib -lgd -ljpeg -lfreetype -lpng -lz -ljpeg > -lfreetype -lpng -lz -L/home/mapserver/lib -lproj -ljpeg > -L/home/mapserver/lib/arcsde/sdeexe90/lib -lsde90 -lpe90 -lsg90 -lpthread > -ldl -lgdal -lming -lcurl -L/usr/kerberos/lib -lssl -lcrypto -ldl -lssl > -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl > -L/home/mapserver/lib/oracle/10.1.0.2/client/lib -lclntsh -lc -lm -lstdc++ > From ivano.picco at AQUPI.TK Mon Dec 13 03:40:02 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Mon, 13 Dec 2004 05:40:02 -0600 Subject: How to render a layer with HTML/JS with MapServer 4.4.0 (configuration problem) Message-ID: Hi, Yes, I try it and I get this message: msWMSLoadGetMapParams(): Image handling error. Unsupported output format (text/html). Ok, i can't define my output formats, but what do i have to do to use supported formats? Many thanks On Mon, 13 Dec 2004 12:43:46 +0100, Bart van den Eijnden wrote: >Hi, > >the support is probably still in there, but some changes were done to the >formats that a WMS GetCapabilities response outputs. There is no current >mechanism to define (as a user) your own output formats for WMS. > >Do you get an exception when you ask for format=text/html in 4.4? > >See: >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 >http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072 > >Best regards, >Bart > From bartvde at XS4ALL.NL Mon Dec 13 04:24:45 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 13 Dec 2004 13:24:45 +0100 Subject: How to render a layer with HTML/JS with MapServer 4.4.0 (configuration problem) In-Reply-To: Message-ID: Hi, I think that unfortunately you have run into something which is not possible with 4.4. AFAIK this will only be possible when the functionality to define your own outputformats has been realized, and the target for that one is FUTURE in bugzilla. "I will leave this open (and set it to FUTRUE) since we will need to instaure a user defined mecahnism to be able to advertize other formats." Best regards, Bart > Hi, > Yes, I try it and I get this message: > > msWMSLoadGetMapParams(): Image handling error. Unsupported output format > (text/html). > > > Ok, i can't define my output formats, but what do i have to do to use > supported formats? > Many thanks > > On Mon, 13 Dec 2004 12:43:46 +0100, Bart van den Eijnden > > wrote: > >>Hi, >> >>the support is probably still in there, but some changes were done to the >>formats that a WMS GetCapabilities response outputs. There is no current >>mechanism to define (as a user) your own output formats for WMS. >> >>Do you get an exception when you ask for format=text/html in 4.4? >> >>See: >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 >>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1072 >> >>Best regards, >>Bart >> > From simon at INF.UNIVALI.BR Mon Dec 13 04:14:47 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Mon, 13 Dec 2004 12:14:47 +0000 Subject: Oracle Spatial / ArcSDE connection In-Reply-To: Message-ID: Hi, It's very strange that the mapserver with oracle work with little extent and without one large. So, how did you defined your layer? Or how did you defined your data string? Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Sa?o Celarc wrote: >Thanks very much. > >I tested them both. Connection to ArcSDE works fine and fast. >When connecting to Oracle Spatial, the small zoom is also working, but when >I zoom in to scale about 1:10000 or more, the mapserver crashes. I get >"mapserver.EXE has encountered a problem and needs to close...". I have: > >MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=PDF >OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS >=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT >SUPPORTS=WCS_SERVER INPUT=SDE INPUT=POSTGIS INPU >T=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > >Web Server is Apache on Windows XP. >Where could be a problem ? > >Regards, >Sa?o Celarc > > > From simon at INF.UNIVALI.BR Mon Dec 13 04:56:37 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Mon, 13 Dec 2004 12:56:37 +0000 Subject: Mysql problem Message-ID: Hi folks, I'm testing Mysql for one new project but little problems appeared. When I import the shapes to Mysql the script (shp2mysql) import the data with wrong definition. The same shape work perfectly with Oracle Spatial and Postgis. I'm using the mapserver 4.2.4 and mysql 4.1.7. I used the same layer definition for both (Postgis and Mysql) . I added the images. Any hints? ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: mapservmysql_error_1.png Type: image/png Size: 3463 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapservmysql_error_2.png Type: image/png Size: 3723 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapservpostgis_1.png Type: image/png Size: 3095 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapservpostgis_2.png Type: image/png Size: 2514 bytes Desc: not available URL: From ivano.picco at AQUPI.TK Mon Dec 13 05:06:30 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Mon, 13 Dec 2004 07:06:30 -0600 Subject: How to render a layer with HTML/JS with MapServer 4.4.0 (configuration problem) Message-ID: Oh nooo!, I think there's no way to get points from a layer without using a query request, isn't it? But the wasted time waiting for a response it's long, as you can read on my old post. I think the only affordable alternative way is to use the GetMap with an easy modifiable output format like text/html. However, thanks for your help, Ivano Picco On Mon, 13 Dec 2004 13:24:45 +0100, Bart van den Eijnden wrote: >Hi, > >I think that unfortunately you have run into something which is not >possible with 4.4. AFAIK this will only be possible when the functionality >to define your own outputformats has been realized, and the target for >that one is FUTURE in bugzilla. > >"I will leave this open (and set it to FUTRUE) since we will need to >instaure a user defined mecahnism to be able to advertize other formats." > >Best regards, >Bart > From cernohor at CENTRUM.CZ Mon Dec 13 04:30:46 2004 From: cernohor at CENTRUM.CZ (Karel Cernohorsky) Date: Mon, 13 Dec 2004 13:30:46 +0100 Subject: Image output pixel coordinates Message-ID: Hello folks, I need an advice, I am trying to develop small java application where I am displaying a map as a background. I wasn't able to succesfuly compile and rum Java mapscript on Windows platform. (I will post some questions to this problem later) Now I am using php to prepare the map using PHP/MapScript. And this page is returned as an png image. I have a set of GPS positions and I can display them as a points in the map using php (which is able to set another layer and write points symbols there.) $image=$map->draw(); $layer=$map->getLayerByName('add_points'); for ($n = 0; $n setXY($map_pointx[$n],$map_pointy[$n]); $point[$n]->draw($map,$layer,$image,0,'yuhuu'); } Is there any way how can I get the pixel coordinates of each point object I have drawn in the "add_points" layer? My output projection is default PROJECTION "proj=latlong" "ellps=WGS84" "datum=WGS84" END I thought It could be easy to simply calculate them from height and width and from the min and max latitude and longitude of the returned map extent., am I right or wrong? Can anybody help me or give me any advice? Looking forward to read your hints, Karel Cernohorsky. Karel --- Odchoz? zpr?va neobsahuje viry. Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). Verze: 6.0.802 / Virov? b?ze: 545 - datum vyd?n?: 26.11.2004 From bt at CCGIS.DE Mon Dec 13 05:14:37 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Mon, 13 Dec 2004 14:14:37 +0100 Subject: Logging error messages, environment variable MS_ERRORFILE Message-ID: Hi, I was told somewhere that I could set an environment variable called MS_ERRORFILE within system variables under Windows and assign a path to a text file for logging purposes. Then UMN-MapServer error messages are expected to be more communicative. I never testet it under Windows, I need this for Unix/Linux systems. I tried to set this variable in a shell, but UMN-MapServer doesn't write anything to the assigned file. Background for this are error messages like "Cannot draw layer XYZ". It would be really helpful, to have more information about this "Cannot" :-)! Any ideas? Any ideas about this MS_ERRORFILE. You'll find the following line in maperror.c (that is not the only appearance) errfile = getenv("MS_ERRORFILE"); Maybe that is a questions which would better be addressed to the dev-list? Kind Regards, Benjamin From info at GEO-IT.COM Mon Dec 13 05:14:55 2004 From: info at GEO-IT.COM (GeoIT) Date: Mon, 13 Dec 2004 14:14:55 +0100 Subject: SWIGMapscript: processLegendTemplate throws error Message-ID: Dear experts, I used mapObj.processLegendTemplate successfully with mapserver 4.0. Now I try to upgrade to version 440 and get the following error using this method: Java.lang.UnknownError: Can't free NULL table Any ideas ? The code is: public String getProcessedLegendTemplate(mapObj mapObject) { String[] names = {"img", "legend", "scalebar", "ref"}; String[] values = {"", "", "", ""}; int numItems = 4; return mapObject.processLegendTemplate(names, values,numItems); } regards Andreas Paukner-Ruzicka ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** > -----Urspr?ngliche Nachricht----- > Von: Karel Cernohorsky [mailto:cernohor at CENTRUM.CZ] > Gesendet: Montag, 13. Dezember 2004 13:31 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: [UMN_MAPSERVER-USERS] Image output pixel coordinates > > > Hello folks, > > I need an advice, > > I am trying to develop small java application > where I am displaying a map as a background. > > I wasn't able to succesfuly compile and rum Java mapscript on > Windows platform. (I will post some questions to this problem later) > > Now I am using php to prepare the map using PHP/MapScript. > And this page is returned as an png image. > > I have a set of GPS positions and I can display them as a > points in the map using php (which is able to set another > layer and write points symbols there.) > > $image=$map->draw(); > $layer=$map->getLayerByName('add_points'); > > for ($n = 0; $n $point[$n] = ms_newPointObj(); > $point[$n]->setXY($map_pointx[$n],$map_pointy[$n]); > $point[$n]->draw($map,$layer,$image,0,'yuhuu'); > } > > Is there any way how can I get the pixel coordinates of each > point object I have drawn in the "add_points" layer? > > My output projection is default > > PROJECTION > "proj=latlong" > "ellps=WGS84" > "datum=WGS84" > END > > I thought It could be easy to simply calculate them from > height and width and from the min and max latitude and > longitude of the returned map extent., am I right or wrong? > Can anybody help me or give me any advice? > > Looking forward to read your hints, > Karel Cernohorsky. > > > Karel > > > --- > Odchoz? zpr?va neobsahuje viry. > Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). > Verze: 6.0.802 / Virov? b?ze: 545 - datum vyd?n?: 26.11.2004 > From bartvde at XS4ALL.NL Mon Dec 13 05:35:03 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 13 Dec 2004 14:35:03 +0100 Subject: Logging error messages, environment variable MS_ERRORFILE In-Reply-To: <41BD95BD.70000@ccgis.de> Message-ID: Hi, are you using Apache? You can then set the variable using SetEnv in the httpd.conf. Also on Windows, I could not get Mapserver to use the system (or user) environment variables, I had to set them in Apache. See also: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver Best regards, Bart > Hi, > > I was told somewhere that I could set an environment variable called > MS_ERRORFILE within system variables under Windows and assign a path > to a text file for logging purposes. Then UMN-MapServer error messages > are expected to be more communicative. I never testet it under > Windows, I need this for Unix/Linux systems. I tried to set this > variable in a shell, but UMN-MapServer doesn't write anything to the > assigned file. > > Background for this are error messages like "Cannot draw layer XYZ". > It would be really helpful, to have more information about this > "Cannot" :-)! > > > Any ideas? Any ideas about this MS_ERRORFILE. You'll find the > following line in maperror.c (that is not the only appearance) > errfile = getenv("MS_ERRORFILE"); > > Maybe that is a questions which would better be addressed to the dev-list? > > > Kind Regards, > Benjamin > From saso.celarc at HERMES-PLUS.SI Mon Dec 13 05:26:55 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 13 Dec 2004 07:26:55 -0600 Subject: Oracle Spatial / ArcSDE connection Message-ID: This is definition of my layer: LAYER # Meje poligonov za naselja NAME raba TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "uname/pwd at lucka" DATA "GEOMETRY FROM (SELECT GEOMETRY FROM RABA_10042003_SDO)" DUMP TRUE STATUS OFF #Če je off, sloj ni viden na začetku PROJECTION "init=epsg:32603" END CLASS NAME 'Raba' OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END #Raba KZ Table is: SQL> desc RABA_10042003_SDO Name Null? Type ----------------------------------------- -------- ---------------------------- ID NOT NULL NUMBER(38) GEOMETRY MDSYS.SDO_GEOMETRY POLY NUMBER(11) RABA NUMBER(11) AREA NUMBER(16) PERIMETER NUMBER(16) HECTARES NUMBER(16) VALID VARCHAR2(100) ROUND_GEOMETRY MDSYS.SDO_GEOMETRY Regards, Sa?o Celarc From simon at INF.UNIVALI.BR Mon Dec 13 05:38:58 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Mon, 13 Dec 2004 13:38:58 +0000 Subject: Oracle Spatial / ArcSDE connection In-Reply-To: Message-ID: Hi, Try to define your layer data attribute as: DATA "GEOMETRY FROM (SELECT ID, GEOMETRY FROM RABA_10042003_SDO) USING UNIQUE ID FILTER" It's a definition for 4.4 version. Sorry, I need to update the docs. Just one question, why 2 geom columns? You can try define without projection. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Sa?o Celarc wrote: >This is definition of my layer: > >LAYER # Meje poligonov za naselja > NAME raba > TYPE POLYGON > CONNECTIONTYPE oraclespatial > CONNECTION "uname/pwd at lucka" > DATA "GEOMETRY FROM (SELECT GEOMETRY FROM RABA_10042003_SDO)" > DUMP TRUE > STATUS OFF #Če je off, sloj ni viden na začetku > > PROJECTION > "init=epsg:32603" > END > CLASS > NAME 'Raba' > OUTLINECOLOR 0 0 0 > COLOR 0 128 128 > END >END #Raba KZ > >Table is: > >SQL> desc RABA_10042003_SDO > Name Null? Type > ----------------------------------------- -------- ---------------------------- > ID NOT NULL NUMBER(38) > GEOMETRY MDSYS.SDO_GEOMETRY > POLY NUMBER(11) > RABA NUMBER(11) > AREA NUMBER(16) > PERIMETER NUMBER(16) > HECTARES NUMBER(16) > VALID VARCHAR2(100) > ROUND_GEOMETRY MDSYS.SDO_GEOMETRY > >Regards, >Sa?o Celarc > > > From saso.celarc at HERMES-PLUS.SI Mon Dec 13 05:55:21 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 13 Dec 2004 07:55:21 -0600 Subject: Oracle Spatial / ArcSDE connection Message-ID: Thanks Fernando, I changed the definition of data as you adviced, but there is no improvement. I have two geometries just for testing purposes. In ROUND_GEOMETRY are rounded ordinates of GEOMETRY. ROUND_GEOMETRY is not indexed. Saso From floerke at DOCTRONIC.DE Mon Dec 13 05:55:22 2004 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Mon, 13 Dec 2004 07:55:22 -0600 Subject: How to calculate LABELMINSCALE and LABELMAXSCALE Message-ID: Hi there, how can I calculate the LABELMINSCALE and LABELMAXSCALE parameters within my mapfile? Is there a formula? My shapefiles are coded with units dd and by "try and error" I guess some *big* numbers for the scale. But I would like to calculate them. TIA, HolgeR From sgillies at FRII.COM Mon Dec 13 06:17:34 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 13 Dec 2004 07:17:34 -0700 Subject: How to dump directly to the web browser In-Reply-To: Message-ID: On Dec 13, 2004, at 4:13 AM, Jose Luis Gonzalez wrote: > --0-341181828-1102936437=:31144 > Content-Type: text/plain; charset=iso-8859-1 > Content-Transfer-Encoding: 8bit > > Hello to everyone > > I am using Mapserver 4.4 and java (servlets), and I have used the > example that the instalation program gives me. I't this one: > > mapObj map = new mapObj("test_nofontset.map"); > map.getImagecolor().setRGB(153, 153, 204); > styleObj st = map.getLayer(1).getClass(0).getStyle(0); > st.getColor().setHex("#000000"); > imageObj img = map.draw(); > System.out.println("The map will be drawn to: > result5.png"); > img.save("result5.png", map); > > But what I want to do is to draw directly to the web browser, not to > save the file. > > Could someone tell me how to do it? > > Thank you > > Jose Luis > Jose, This feature exists for the Python mapscript module but not yet for Java because I am not a Java user and have not been able to justify the time to do it. I believe there is someone working on it and it may be ready for a 4.4.1 or 4.4.2 release. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Mon Dec 13 06:23:37 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 13 Dec 2004 07:23:37 -0700 Subject: SWIGMapscript: processLegendTemplate throws error In-Reply-To: Message-ID: On Dec 13, 2004, at 6:14 AM, GeoIT wrote: > Dear experts, > I used mapObj.processLegendTemplate successfully with mapserver 4.0. = > Now I > try to upgrade to version 440 and get the following error using this = > method: > > Java.lang.UnknownError: Can't free NULL table > > Any ideas ? > > The code is: > public String getProcessedLegendTemplate(mapObj mapObject) { > String[] names =3D {"img", "legend", "scalebar", = > "ref"}; > String[] values =3D {"", "", "", ""}; > int numItems =3D 4; > return mapObject.processLegendTemplate(names, > values,numItems); > } > > > regards > Andreas Paukner-Ruzicka > Andreas, I am very surprised that you could call processLegendTemplate with MapServer 4.0. It was my understanding that Java mapscript was broken at that time. Please enter a report into the MapServer Bugzilla under the SWIG mapscript component and I will investigate and try to fix it before the next release. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From simon at INF.UNIVALI.BR Mon Dec 13 06:27:30 2004 From: simon at INF.UNIVALI.BR (Fernando S.) Date: Mon, 13 Dec 2004 14:27:30 +0000 Subject: Oracle Spatial / ArcSDE connection In-Reply-To: Message-ID: Hi, How did you download this version? Other users had problems only with windows version. Nicolas suggested that can be a little bug with Oracle Client dll (version 9.2.0.3). I didn't confirmed this bug yet, can be one problem with my source code. I will compile in windows this week ( I hope....) to check windows version. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Sa?o Celarc wrote: >Thanks Fernando, > >I changed the definition of data as you adviced, but there is no improvement. >I have two geometries just for testing purposes. In ROUND_GEOMETRY are >rounded ordinates of GEOMETRY. ROUND_GEOMETRY is not indexed. > > >Saso > > > From woodbri at SWOODBRIDGE.COM Mon Dec 13 06:28:48 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 13 Dec 2004 09:28:48 -0500 Subject: How to calculate LABELMINSCALE and LABELMAXSCALE In-Reply-To: Message-ID: The easiest way to know what scale you are at is to put [scale] in your template and it will display the current scale of the map on your HTML page. Then zoom in and out and see what scale you are at when you want to turn it on/off and round the values and put them in your mapfile. -Steve W. Holger Floerke wrote: > Hi there, > > how can I calculate the LABELMINSCALE and LABELMAXSCALE parameters within my > mapfile? Is there a formula? > > My shapefiles are coded with units dd and by "try and error" I guess some > *big* numbers for the scale. But I would like to calculate them. > > TIA, > > HolgeR > From Anke.Olaniyon at DELPHI-IMM.DE Mon Dec 13 06:26:25 2004 From: Anke.Olaniyon at DELPHI-IMM.DE (Anke Olaniyon) Date: Mon, 13 Dec 2004 15:26:25 +0100 Subject: WFS-Client Message-ID: I have some generale Quetions to the WFS-Client of the UMN-Mapserver. I'm using mapserver Version 4.2.5 with the support of wms und wfs -server/client. I can get some WFS-Layer from WFS_Servers created by umnmapserver. But I can't get Layer from other "OGC"-conform WFS-Server like degree. I only get a gml in my tmp-Directory . What I see is, that the gml-schema is different. Umn-WFS use the keywords "" and the degree has "". Is there a possibility in my Client-map to tell that this is the same and my mapserver can show me this layer in my map? I hope you can understand my Question (it's a little bit difficult to descibe). Perhaps you have a solution. Regards Anke Olaniyon From sobomsawin at KASSINI.COM Mon Dec 13 06:36:05 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 13 Dec 2004 09:36:05 -0500 Subject: [UMN_MAPSERVER-USERS] simple tool for conversion In-Reply-To: Message-ID: Joseph, How many objects you have in your layer? Personally, I display layers with more than million objects without issues. Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Joseph Norris Envoy??: 10 d?cembre 2004 18:56 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Ed, Do you know if there is any limit to the number of features that can be put in a layer? If there is limit - what are my alternatives? Create a shape file of the name labels? #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Friday, December 10, 2004 1:25 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - If all your layers are lat/lon, then those coordinates should be fine - but why did you put TRANSFORM FALSE in there? That tells MapServer that your coordinates are NOT geographic, but image-based coordinates, and that's not what you have. I didn't try to do a thorough review, but you have UNITS FEET and UNITS METERS scattered through there, both of which are incorrect. The first UNITS statement at the top of the mapfile should read UNITS DD since your output projection is lat/lon and therefore the units are decimal degrees. - 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 Joseph Norris Sent: Friday, December 10, 2004 3:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Thanks for the help - I have attached the test mapfile. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Ed McNierney [mailto:ed at topozone.com] Sent: Friday, December 10, 2004 5:50 AM To: Joseph Norris; MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion Joseph - You can indeed do something like that; please post the entire LAYER block that you're using to create those points. Remember that inline features go in a separate layer, not in your zip point shapefile layer. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Friday, December 10, 2004 2:36 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] simple tool for conversion Eric, I have one question now that all of my points are showing via lon/lat I have one other question. I have tried to put features in but they will not show. Can I not do something like Feature Points mylon mylat end Text " my text " End And it should show up on the map? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: Eric Bridger [mailto:eric at gomoos.org] Sent: Thursday, December 09, 2004 2:04 PM To: Joseph Norris Cc: UMN MapServerList Subject: RE: [UMN_MAPSERVER-USERS] simple tool for conversion On Thu, 2004-12-09 at 16:17, Joseph Norris wrote: > Eric, > > Thank you for this information. If I have to switch shapefiles to get this > to work - then I am all for it. So as I understand you, > > I have obtained the California state map as you indicated on your link. > Does this mean that I can build my teacher shape file using the actual > lat/long that I have and then I would be closer to my new California > state map knowing about my new teacher shapefile? Yes. These are zipcode polygons with no projection, in latitude longitude. You can use: mapserver-N.N.N/mapscript/perl/examples/shpinfo.pl -file=zt06_d00 to find the extents and the field names in the DBF. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 From floerke at DOCTRONIC.DE Mon Dec 13 06:39:32 2004 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Mon, 13 Dec 2004 08:39:32 -0600 Subject: How to calculate LABELMINSCALE and LABELMAXSCALE Message-ID: Hi Steve, I do not use the templates. I produce the map images with MapScript because I have added some additional information like charts,... . Therefore I can't use the [scale] variable in my template. Any other idea? Or do I have to write a template just for this reason? HolgeR > The easiest way to know what scale you are at is to put [scale] in your > template and it will display the current scale of the map on your HTML > page. Then zoom in and out and see what scale you are at when you want > to turn it on/off and round the values and put them in your mapfile. > -Steve W. > Holger Floerke wrote: > > Hi there, > > > > how can I calculate the LABELMINSCALE and LABELMAXSCALE parameters within my > > mapfile? Is there a formula? > > > > My shapefiles are coded with units dd and by "try and error" I guess some > > *big* numbers for the scale. But I would like to calculate them. > > > > TIA, > > > > HolgeR > > From fwarmerdam at GMAIL.COM Mon Dec 13 06:44:00 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Mon, 13 Dec 2004 09:44:00 -0500 Subject: WFS-Client In-Reply-To: Message-ID: On Mon, 13 Dec 2004 15:26:25 +0100, Anke Olaniyon wrote: > I have some generale Quetions to the WFS-Client of the UMN-Mapserver. I'm > using mapserver Version 4.2.5 with the support of wms und > wfs -server/client. I can get some WFS-Layer from WFS_Servers created by > umnmapserver. But I can't get Layer from other "OGC"-conform WFS-Server like > degree. I only get a gml in my tmp-Directory . What I see is, that the > gml-schema is different. Umn-WFS use the keywords "" > and the degree has "". Is there a possibility in my Client-map to > tell that this is the same and my mapserver can show me this layer in my > map? > I hope you can understand my Question (it's a little bit difficult to > descibe). Perhaps you have a solution. > Regards > Anke Olaniyon Anke, I believe the problem is due to limitations of the GML reader in OGR that MapServer uses for reading GML responses from other WFS servers. It takes an adhoc approach to parsing GML that is dependent on finding certain key element names to identify what are features. So you can alter your request then to "what do I need to do to get OGR's GML reader to work with WFS servers like Deegree". If you can provide me samples by direct email I could look into whether something can be done easily. 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 Mon Dec 13 07:02:07 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 13 Dec 2004 10:02:07 -0500 Subject: Custom shape changes color Message-ID: I created a measure tool and use the following layer for the lines: LAYER NAME "custom_solid_line" STATUS ON TYPE LINE POSTLABELCACHE true CLASS SYMBOL "solid" COLOR 255 255 0 SIZE 2 END END I add lines to the map with code similar to the following: $line = ms_newLineObj(); $line->addXY($x, $y); $shp = ms_newShapeObj(MS_SHAPE_LINE); $shp->add($line); $layer = $map->getLayerByName("custom_solid_line"); $retVal = $layer->addFeature($shp); $shp->free(); $line->free(); // Draw the map later on ... The problem is the lines don't always stay yellow. I've seen them green and pinkish too. The color seems to depend on other visible layers. I've also seen the same phenomenon with the extents box in the reference map. In fact, the color of the lines and the extent box is always the same. I.e.: when one changes color the other does too. I do draw my reference map in a sort of nonstandard way though by drawing the map and ref. map separately and then pasting them together. Thanks for any help. -Abe -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1112 bytes Desc: not available URL: From agillesp at VT.EDU Mon Dec 13 07:03:32 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 13 Dec 2004 10:03:32 -0500 Subject: How to calculate LABELMINSCALE and LABELMAXSCALE In-Reply-To: Message-ID: In PHP I use $map->scale. -Abe On Dec 13, 2004, at 9:39 AM, Holger Floerke wrote: > Hi Steve, > > I do not use the templates. I produce the map images with MapScript > because > I have added some additional information like charts,... . Therefore I > can't > use the [scale] variable in my template. > > Any other idea? Or do I have to write a template just for this reason? > > HolgeR > >> The easiest way to know what scale you are at is to put [scale] in >> your >> template and it will display the current scale of the map on your HTML >> page. Then zoom in and out and see what scale you are at when you want >> to turn it on/off and round the values and put them in your mapfile. > >> -Steve W. > >> Holger Floerke wrote: >>> Hi there, >>> >>> how can I calculate the LABELMINSCALE and LABELMAXSCALE parameters >>> within my >>> mapfile? Is there a formula? >>> >>> My shapefiles are coded with units dd and by "try and error" I guess >>> some >>> *big* numbers for the scale. But I would like to calculate them. >>> >>> TIA, >>> >>> HolgeR >>> > From woodbri at SWOODBRIDGE.COM Mon Dec 13 06:48:07 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 13 Dec 2004 09:48:07 -0500 Subject: How to calculate LABELMINSCALE and LABELMAXSCALE In-Reply-To: Message-ID: Hello Holger, Well you can get the map scale from the map object and echo it on your output page so you can see what the map scale is while you are developing your application and making changes to your mapfile. When you are happy, just comment out the line that echos the scale to the html page that your application renders to. Their may be a better way, but I haven't found it yet and this gets the job done for me anyway. -Steve Holger Floerke wrote: > Hi Steve, > > I do not use the templates. I produce the map images with MapScript because > I have added some additional information like charts,... . Therefore I can't > use the [scale] variable in my template. > > Any other idea? Or do I have to write a template just for this reason? > > HolgeR > > >>The easiest way to know what scale you are at is to put [scale] in your >>template and it will display the current scale of the map on your HTML >>page. Then zoom in and out and see what scale you are at when you want >>to turn it on/off and round the values and put them in your mapfile. > > >>-Steve W. > > >>Holger Floerke wrote: >> >>>Hi there, >>> >>>how can I calculate the LABELMINSCALE and LABELMAXSCALE parameters within my >>>mapfile? Is there a formula? >>> >>>My shapefiles are coded with units dd and by "try and error" I guess some >>>*big* numbers for the scale. But I would like to calculate them. >>> >>>TIA, >>> >>>HolgeR >>> > > From floerke at DOCTRONIC.DE Mon Dec 13 06:53:21 2004 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Mon, 13 Dec 2004 08:53:21 -0600 Subject: How to calculate LABELMINSCALE and LABELMAXSCALE Message-ID: Sorry, (although I wear glasses) I haven't seen the "scale" property of the map class, yet. Thanks for your quick responses. HolgeR From saso.celarc at HERMES-PLUS.SI Mon Dec 13 06:55:44 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 13 Dec 2004 08:55:44 -0600 Subject: Oracle Spatial / ArcSDE connection Message-ID: I have Windows version from "Hobu's kitchen sink MapServer 4.4" binaries. I downloaded it at 1.12. Saso From sobomsawin at KASSINI.COM Mon Dec 13 06:56:29 2004 From: sobomsawin at KASSINI.COM (Skweda O'Bomsawin) Date: Mon, 13 Dec 2004 09:56:29 -0500 Subject: [UMN_MAPSERVER-USERS] grid object In-Reply-To: <41BD48C9.60008@deprem.gov.tr> Message-ID: Temiz, You can have a look at the Mapserver documentation, there is an example of what you should add to your mapfile to have a UTM grid. http://mapserver.gis.umn.edu/doc44/mapfile-reference.html#grid Skweda -----Message d'origine----- De?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de temiz Envoy??: 13 d?cembre 2004 02:46 ??: MAPSERVER-USERS at LISTS.UMN.EDU Objet?: [UMN_MAPSERVER-USERS] grid object hello I need to see an example map file containing grid object in UTM format I will appreciate if you provide it 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. --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.807 / Virus Database: 549 - Release Date: 2004-12-07 From woodbri at SWOODBRIDGE.COM Mon Dec 13 07:16:29 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 13 Dec 2004 10:16:29 -0500 Subject: Custom shape changes color In-Reply-To: Message-ID: Abe, Check out for the problem and a potential work around: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 -Steve W Abe Gillespie wrote: > I created a measure tool and use the following layer for the lines: > > LAYER > NAME "custom_solid_line" > STATUS ON > TYPE LINE > POSTLABELCACHE true > CLASS > SYMBOL "solid" > COLOR 255 255 0 > SIZE 2 > END > END > > I add lines to the map with code similar to the following: > > $line = ms_newLineObj(); > $line->addXY($x, $y); > $shp = ms_newShapeObj(MS_SHAPE_LINE); > $shp->add($line); > $layer = $map->getLayerByName("custom_solid_line"); > $retVal = $layer->addFeature($shp); > $shp->free(); > $line->free(); > // Draw the map later on ... > > The problem is the lines don't always stay yellow. I've seen them green > and pinkish too. The color seems to depend on other visible layers. I've > also seen the same phenomenon with the extents box in the reference map. > In fact, the color of the lines and the extent box is always the same. > I.e.: when one changes color the other does too. I do draw my reference > map in a sort of nonstandard way though by drawing the map and ref. map > separately and then pasting them together. > > Thanks for any help. > -Abe From james at DANISAT.NET Mon Dec 13 07:09:20 2004 From: james at DANISAT.NET (James Anderson) Date: Mon, 13 Dec 2004 17:09:20 +0200 Subject: Mapserver problems Message-ID: Hi, After Upgrading from Mapserver 4.2.5 MapServer version 4.2.5 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE To Mapserver 4.4.0 MapServer version 4.4.0 OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE I am having problems with symbols and transparency. I have been using transparent png files. Since the upgrade the transparent part of the symbols comes out all black. This makes my map look rather nasty. Does anyone have any idea whats changed in the newer mapserver version that might cause this ? Any help appreciated. Thanks, James Anderson. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sgillies at FRII.COM Mon Dec 13 07:57:50 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 13 Dec 2004 08:57:50 -0700 Subject: Mapserver problems In-Reply-To: Message-ID: On Dec 13, 2004, at 8:09 AM, James Anderson wrote: > This is a multi-part message in MIME format. > > ------=_NextPart_000_0047_01C4E136.7C4F1E60 > Content-Type: text/plain; > charset="Windows-1252" > Content-Transfer-Encoding: quoted-printable > > > > Hi, > > After Upgrading from Mapserver 4.2.5 > > MapServer version 4.2.5 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER > INPUT=3DEPPL7 = > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE > > > To Mapserver 4.4.0 > MapServer version 4.4.0 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER > INPUT=3DEPPL7 = > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE > > I am having problems with symbols and transparency. > I have been using transparent png files. Since the upgrade the = > transparent part of the symbols comes out all black. This makes my > map = > look rather nasty. > > Does anyone have any idea whats changed in the newer mapserver version > = > that might cause this ? > > Any help appreciated. > > Thanks, > > James Anderson. > James, You omitted what is probably the most important information we need ... what output format are you using? Do you define transparency for the output? In many cases where a user reports that they have different results between versions, it turns out that the user has changed their *usage* between versions. I'm not discounting your problem, just want to make sure that you've absolutely ruled out that cause. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From ivano.picco at AQUPI.TK Mon Dec 13 08:02:24 2004 From: ivano.picco at AQUPI.TK (Ivano Picco) Date: Mon, 13 Dec 2004 10:02:24 -0600 Subject: How to render a layer with HTML/JS with MapServer 4.4.0 (configuration problem) Message-ID: Ok Ok, I found it! After a closer look to the source code (mapoutput.c) I found that I can't use this kind of ouput because it's not listed in the WMS available formats list, but the support is still here: if I use simply the older way to get a MAP (a MODE=MAP request) with the text/html as IMAGETYPE in the mapfile, then I can get my points. Since now I can use javascript to convert from this kind of output to my SVG, maybe in the FUTURE I will define my own format. Thanks for your help, Ivano Picco From ealpert at DIGITALGLOBE.COM Mon Dec 13 08:09:26 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 13 Dec 2004 09:09:26 -0700 Subject: Custom shape changes color Message-ID: What version of mapserver? There was a bug with symbol caching in earlier 4.x releases. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Abe Gillespie Sent: Monday, December 13, 2004 8:02 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Custom shape changes color I created a measure tool and use the following layer for the lines: LAYER NAME "custom_solid_line" STATUS ON TYPE LINE POSTLABELCACHE true CLASS SYMBOL "solid" COLOR 255 255 0 SIZE 2 END END I add lines to the map with code similar to the following: $line = ms_newLineObj(); $line->addXY($x, $y); $shp = ms_newShapeObj(MS_SHAPE_LINE); $shp->add($line); $layer = $map->getLayerByName("custom_solid_line"); $retVal = $layer->addFeature($shp); $shp->free(); $line->free(); // Draw the map later on ... The problem is the lines don't always stay yellow. I've seen them green and pinkish too. The color seems to depend on other visible layers. I've also seen the same phenomenon with the extents box in the reference map. In fact, the color of the lines and the extent box is always the same. I.e.: when one changes color the other does too. I do draw my reference map in a sort of nonstandard way though by drawing the map and ref. map separately and then pasting them together. Thanks for any help. -Abe -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.fortin at EC.GC.CA Mon Dec 13 08:53:51 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Mon, 13 Dec 2004 11:53:51 -0500 Subject: [UMN_MAPSERVER-USERS] Oracle Spatial / ArcSDE connection Message-ID: Same as mine ... And I failed to make it work correctly from now, sometimes it works sometimes it doesn't. In fact I had to return to previous version to continue my developpment. As far as I know, there's something wrong relate to oraclient9 ... The next thing I want to try before giving up is to upgrade my client to 10g and to see if the prob will be back My previous version was downloaded from maptools.org site and was named : mapserver-4.3-win32-php4.3.7_oracle.zip I don't know who compiled this version but it's a great build for me since it includes both oracle spatial and mapscript, which I need to use with chameleon. Fernando, I saw in one of your last post that you want to compile it for windows. If you do this, I'll be glad to test it for you :) Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] De la part de Sa?o Celarc Envoy? : Monday, December 13, 2004 9:56 AM ? : MAPSERVER-USERS at LISTS.UMN.EDU Objet : Re: [UMN_MAPSERVER-USERS] Oracle Spatial / ArcSDE connection I have Windows version from "Hobu's kitchen sink MapServer 4.4" binaries. I downloaded it at 1.12. Saso From sirronj at PACBELL.NET Mon Dec 13 09:05:28 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Mon, 13 Dec 2004 09:05:28 -0800 Subject: something strange happening. Message-ID: Thanks to all of your help my teacher/zip project is looking fine - so I made some refinements. I set it up so that one could make a selection of three types of teachers getting different colored ellipsis for each type. Then I allow zoom in to a certain scale and the name of the teacher appears. Then I added a feature that allows selection of all teachers and this works great - you can see the all the different colored ellipsis..... However..... When zooming in on the selection of all teachers it gets to a point where it shows a blank page - And I think it is at the layer where the teacher's names should show up. Can anyone see a problem with this? Thanks. Here is the map file that is produced: map name calmap status on extent -124.410 32.534 -114.134 42.010 imagetype gif size 500 500 units feet shapepath "/usr/local/apache/htdocs/mco.communityservers.com/htdocs/maps/teacher/tdata " imagecolor 255 255 255 templatepattern "map" SYMBOL NAME "circle" TYPE ELLIPSE FILLED TRUE POINTS 1 1 END END LAYER CLASSITEM "ZCTA" DATA "zt06_d00" NAME "colorpolys" STATUS DEFAULT TYPE POLYGON UNITS METERS labelitem "ZCTA" CLASS NAME "Zip Boundries" EXPRESSION /./ STYLE MAXSIZE 100 MINSIZE 1 OUTLINECOLOR 204 204 204 SIZE 1 SYMBOL 0 END END END LAYER CLASSITEM "ZCTA" DATA "fileTYFKPc" NAME "Teachers in Zip type1" STATUS DEFAULT TYPE POINT CLASS NAME "Zip Boundries type1" expression /95452|94087|95531|92111|95814|91406|94401|94112|74580|95351|95570|94580|945 49|92083|92675|90232|94105|95501|95834|94131|93109|92131|94108|92107|93901|9 4949|92507|92019|90270|95670|91104|95128|94040|95818|94568|90032|94123|95841 |94513|92392|95864|94070|93711|90805|90065|92503|90063|95304|93702|90802|934 46|92008|92128|94404|90015|95658|95124|93710|95135|94545|90025|90066|92064|9 0042|94115|90043|94703|94304|91006|90504|95521|92505|93560|93924|94607|91103 |91411|90220|93023|95242|92801|94560|92509|93274|95018|92630|95020|96001|956 32|92804|94117|95993|94707|93034|95562|92629|93727|92591|94102|92705|94704|9 4110|95825|93212|92024|93960|92585|94621|95678|94901|94402|95050|94612|95126 |94134|93010|94539|92071|95118|92663|95204|95829|92025|90003|90033|90262|919 62|90012|95959|91932|90292|93111|95823|91601|91405|90242|94947|93004|94531|9 4509|93907|91935|95125|95032|94611|95329|91730|92108|38125|93230|91945|95815 |92028|92084|93291|95687|92105|94501|94520|94705|91764|94107|91977|91384|907 20|94555|91911|95608|90305|93003|90405|92612|92121|91107|94952|94903|95838|9 5690|90049|94558|94606|91001|94103|94804|95060|95665|92802|94303|94806|92054 |94122|92120|93720|95667|93449|92570|91910|91326|91950|95428|92410|92127|907 45|93908|92308|94591|94530|95127|94904|95110|92115|90018|92320|91101|93706|9 5822|94121|90059|92186|95376|95407|93721|95648|95969|95816|90241|90274|93726 |92243|91789|94577|95070|94710|95210|95337|95692|91941|95139|94124|91711|950 76|93591|93405|94133|92117|93012|92040|92106|94954/ STYLE MAXSIZE 100 MINSIZE 1 COLOR 102 255 102 SIZE 5 SYMBOL "circle" END END END LAYER CLASSITEM "ZCTA" DATA "fileTYFKPc" NAME "Teachers in Zip type2" STATUS DEFAULT TYPE POINT CLASS NAME "Zip Boundries type2" expression /92069|95610|95667|93907|94103|93277|90621|95946|95370|95682|95959|92692|945 09|91342|95616|92109|95814|95482|95116|94107|94612|95452|92628|90220|92084|9 4019|92507|95969|95351|94710|94118|94707|92115|93710|95825|92131|94549|90210 |94954|90003|94105|90044|90720|92882|90028|95350|95453|90248|91325|92583|904 05|90806|95304|94588|93245|91107|94591|90005|91767|91902|92037|92057|90723|9 2082|91205|97444|91504|95476|90291|94301|95388|94558|92111|90660|94605|92620 |91402|96001|94028|95670|91303|92392|95033|92562|95838|95062|92024|90041|946 09|94303|94941|95827|94574|90016|93940|94965|94804|95472|93960|94952|94061|9 0014|92107|94611|95404|94403|94110|93305|90066|90212|95020|95035|94131|92108 |95358|94041|90305|95425|94040|92040|91304|91604|94521|92701|90002|95608|900 17|92832|92320|90025|90260|94619|95111|90275|93023|92354|95386|94901|92128|9 3721|95632|95356|90048|92407|94621|93230|95945|92008|91737|93117|94544|96080 |65020|95831|90011|95124|96007|90638|92253|94577|95338|95113|92614|90680|945 90|94523|92231|93308|94010|94587|90803|92802|94704|80501|92868|93726|91367|9 5366|94930|90813|94949|95928|92660|95401|94114|95816|92708|96097|90064|92782 |94112|90274|95821|95010|91011|94530|95242|92027|94070|92110|91356|94116|904 01|95758|92234|93309|95076|95971|94608|95355|94602|92646|95018|91106|94115|9 5901|93631|92663|92691|93644|94108|95132|95381|94121|93291|95926|92129|94122 |91709|90254|90814|90046|95128|90063|94709|92307|93727|95501|90746|95991|947 03|95403|93301|91766|91101|94306|90272|90035|92117|94402/ STYLE MAXSIZE 100 MINSIZE 1 COLOR 102 102 255 SIZE 5 SYMBOL "circle" END END END LAYER CLASSITEM "ZCTA" DATA "fileTYFKPc" NAME "Teachers in Zip type3" STATUS DEFAULT TYPE POINT CLASS NAME "Zip Boundries type3" expression /94025|92121|93726|95465|95814|95350|94403|94553|93950|92110|94610|95351|900 44|94112|94114|92108|94105|90014|90025|93001|92886|90301|94965|94706|90064|9 0210|92009|94558|90035|95628|95973|92679|92392|91331|90004|93638|93460|90265 |90601|90033|94606|94510|90303|91406|92081|94612|92008|92405|92595|96001|960 97|92037|92313|95127|94115|92069|90401|91311|92103|92626|94306|95758|92612|9 4509|94116|91106|90731|95403|95315|91011|90808|92660|90003|95608|95482|94501 |92336|91741|95060|95959|92301|92083|92881|95776|94043|92557|90016|91325|958 64|95820|92101|95826|92663|93906|94134|94402|95833|94122|91344|94019|92102|9 5678|90713|94109|95117|90802|92130|95407|91744|90039|90740|90242|90220|92026 |92056|95611|90042|91403|91206|92509|92614|95336|93550|90272|95111|95825|904 03|91001|95472|91340|94066|95818|92324|91902|92027|92117|95670|95409|95660|9 2691|90034|95134|94949|94608|92075|92028|95376|94704|90293|90021|93305|92507 |90007|95020|94123|94607|95128|92109|96080|95062|95070|92869|92688|95209|946 05|93311|94401|96150|90806|92123|94103|95503|95045|95405|95667|95821|95816|9 1978|94563|92126|95076|92802|90020|94928|94619|92582|94611|95926|95110|94702 |91941|90720|95695|95616|95603|93706|90260|92115|94028|94602|93721|94559|945 83|92201|95834|91107|94517|91776|90405|92551|90065|90010|94550|95945|95358|9 2841|94533|95991|94952|93631|94707|93561|95050|92373|94024|91202|91030|93711 |93907|94070|94536|90404|95823|95765|95687|94577|95621|94010|94703|95301|939 33|93245|94547|90043|95023|95692|92284|93309|94566|93727|94804|93291|94107/ STYLE MAXSIZE 100 MINSIZE 1 COLOR 255 0 0 SIZE 5 SYMBOL "circle" END END END LAYER NAME "Teacher Names" DATA "fileTYFKPc" STATUS DEFAULT TYPE POINT LABELITEM "FNAME" CLASS MAXSCALE 2.219616 LABEL POSITION AUTO TYPE BITMAP COLOR 0 0 0 END END END END # end map from header #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From unicoletti at PROMETEO.IT Mon Dec 13 09:08:33 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Mon, 13 Dec 2004 18:08:33 +0100 Subject: SWIGMapscript: processLegendTemplate throws error In-Reply-To: <945FC68C-4D12-11D9-A204-000D9329D732@frii.com> Message-ID: Sean, the problem is in maphash.c around line 126. There you can see that mapserver sets an error because the user tried to free an already null hashTable and this causes Java mapscript to bail out with an exception, while in earlier versions the error was ignored. This is a consequence of my patch for handling mapserver errors as exceptions in java mapscript. In fact I have faced a similar error while trying to produce pdf output from Java mapscript. The same map file was working fine with shp2pdf because shp2pdf was just ignoring the error. I believe that my patch, while trying to prevent the java virtual machine from crashing altogether, ends up throwing exceptions when instead it is dealing with a warning (even tough it is an error in mapserver terms). What we need is probably some fine tuning for situations like this... Apologies to Andreas if this is not helping you, but I am just trying to generalize your problem so that we can work out a (hopefully) better solution. Please let me know what you think about this, Umberto On Mon, 2004-12-13 at 07:23 -0700, Sean Gillies wrote: > On Dec 13, 2004, at 6:14 AM, GeoIT wrote: > > > Dear experts, > > I used mapObj.processLegendTemplate successfully with mapserver 4.0. = > > Now I > > try to upgrade to version 440 and get the following error using this = > > method: > > > > Java.lang.UnknownError: Can't free NULL table > > > > Any ideas ? > > > > The code is: > > public String getProcessedLegendTemplate(mapObj mapObject) { > > String[] names =3D {"img", "legend", "scalebar", = > > "ref"}; > > String[] values =3D {"", "", "", ""}; > > int numItems =3D 4; > > return mapObject.processLegendTemplate(names, > > values,numItems); > > } > > > > > > regards > > Andreas Paukner-Ruzicka > > > > Andreas, > > I am very surprised that you could call processLegendTemplate > with MapServer 4.0. It was my understanding that Java mapscript > was broken at that time. > > Please enter a report into the MapServer Bugzilla under the > SWIG mapscript component and I will investigate and try to fix > it before the next release. > > cheers, > Sean > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies -- Umberto Nicoletti Prometeo SRL From sgillies at FRII.COM Mon Dec 13 09:16:39 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 13 Dec 2004 10:16:39 -0700 Subject: SWIGMapscript: processLegendTemplate throws error In-Reply-To: <1102957713.20196.18.camel@friedrich.prometeo.it> Message-ID: Can you not try and catch, and pass in the case of an exception? This is essentially what happens with shp2pdf. I still have a hard time believing that the templating can work. The mapscript function expects char** and Andreas is passing a Java array of strings. Does Swig-java translate these automatically? The templating functions certainly do not work for Perl and Python. Sean On Dec 13, 2004, at 10:08 AM, Umberto Nicoletti wrote: > Sean, > the problem is in maphash.c around line 126. There you can see that > mapserver sets an error because the user tried to free an already null > hashTable and this causes Java mapscript to bail out with an exception, > while in earlier versions the error was ignored. > > This is a consequence of my patch for handling mapserver errors as > exceptions in java mapscript. In fact I have faced a similar error > while > trying to produce pdf output from Java mapscript. The same map file was > working fine with shp2pdf because shp2pdf was just ignoring the error. > I believe that my patch, while trying to prevent the java virtual > machine from crashing altogether, ends up throwing exceptions when > instead it is dealing with a warning (even tough it is an error in > mapserver terms). > What we need is probably some fine tuning for situations like this... > > Apologies to Andreas if this is not helping you, but I am just trying > to > generalize your problem so that we can work out a (hopefully) better > solution. > > Please let me know what you think about this, > Umberto > > > > On Mon, 2004-12-13 at 07:23 -0700, Sean Gillies wrote: >> On Dec 13, 2004, at 6:14 AM, GeoIT wrote: >> >>> Dear experts, >>> I used mapObj.processLegendTemplate successfully with mapserver 4.0. >>> = >>> Now I >>> try to upgrade to version 440 and get the following error using this >>> = >>> method: >>> >>> Java.lang.UnknownError: Can't free NULL table >>> >>> Any ideas ? >>> >>> The code is: >>> public String getProcessedLegendTemplate(mapObj mapObject) { >>> String[] names =3D {"img", "legend", "scalebar", = >>> "ref"}; >>> String[] values =3D {"", "", "", ""}; >>> int numItems =3D 4; >>> return mapObject.processLegendTemplate(names, >>> values,numItems); >>> } >>> >>> >>> regards >>> Andreas Paukner-Ruzicka >>> >> >> Andreas, >> >> I am very surprised that you could call processLegendTemplate >> with MapServer 4.0. It was my understanding that Java mapscript >> was broken at that time. >> >> Please enter a report into the MapServer Bugzilla under the >> SWIG mapscript component and I will investigate and try to fix >> it before the next release. >> >> cheers, >> Sean >> >> -- >> Sean Gillies >> sgillies at frii dot com >> http://users.frii.com/sgillies > -- > Umberto Nicoletti > Prometeo SRL > From kenlord at GMAIL.COM Mon Dec 13 09:40:54 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Mon, 13 Dec 2004 09:40:54 -0800 Subject: Decode values in CGI query mode In-Reply-To: <002501c4e0f8$599d2a80$041410ac@comune.lugo.ra.it> Message-ID: Hi Daniele, You may be able to setup variable pairs in the mapfile, I believe that is a new feature in versions 4 and younger. Another way you might want to do it, especially if there are a lot of codes, would be to setup a simple database with a table containing the codes and descriptions. I have done this in my query results pages, the result templates create links for each result that contains the code, following the link activates an ASP page that reads and uses the code, and reads the database. This can add a lot of information to your website that otherwise might be hard to get at, and you can then format the data to better suit your needs. This is great for querying drill hole data on a mining exploration map. query a drill hole, follow a link and end up with a table of drill hole assays or geologic intersections generated on the fly. On other websites I have used this technique to link queried data to a flash database application (built by another person at my job, long before we played with MapServer) .. to make interactive charts of data tied to a point on the map. I'm sure there's plenty of other open source ways to do the same thing. Cheers, Ken Lord Vancouver On Mon, 13 Dec 2004 10:44:30 +0100, Daniele Margotti wrote: > > Hi list, > I use CGI MapServer for browsing and querying shapefile-based maps. > > This is the version: > > > In a shapefile I have a numeric field which is a codified value (i.e.: > values 0, 1, 2, ... each corresponding to a very long description of the > attribute). > I don't want / can't modify the shapefile and/or the .DBF file, and I'd like > to set this long description ONLY ONE TIME in the mapfile, so that when I > query the map I don't see the anonymous numeric values but MapServer decodes > and substitutes them with my more exausting long description. > > Is it possible to set these substitutions in the mapfile? > > Thank you, > Daniele > From bt at CCGIS.DE Mon Dec 13 09:47:56 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Mon, 13 Dec 2004 18:47:56 +0100 Subject: Logging error messages, environment variable MS_ERRORFILE In-Reply-To: <19209.212.238.227.182.1102944903.squirrel@212.238.227.182> Message-ID: Thanks Bart, meanwhile I found out how to accomplish this. Yes, I'm using Apache. Something like this: In httpd.conf SetEnv MS_ERRORFILE "stderr" SetEnv MS_ERRORFILE /tmp/logfile The pitty is, that I still don't get closer to my Oracle connection error. I had the hope, that I get more detailed debugging information. But that will follow as a new thread. Regards, Ben Bart van den Eijnden wrote: > Hi, > > are you using Apache? You can then set the variable using SetEnv in the > httpd.conf. > > Also on Windows, I could not get Mapserver to use the system (or user) > environment variables, I had to set them in Apache. > > See also: > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?DebuggingMapserver > > Best regards, > Bart > > >>Hi, >> >>I was told somewhere that I could set an environment variable called >>MS_ERRORFILE within system variables under Windows and assign a path >>to a text file for logging purposes. Then UMN-MapServer error messages >>are expected to be more communicative. I never testet it under >>Windows, I need this for Unix/Linux systems. I tried to set this >>variable in a shell, but UMN-MapServer doesn't write anything to the >>assigned file. >> >>Background for this are error messages like "Cannot draw layer XYZ". >>It would be really helpful, to have more information about this >>"Cannot" :-)! >> >> >>Any ideas? Any ideas about this MS_ERRORFILE. You'll find the >>following line in maperror.c (that is not the only appearance) >>errfile = getenv("MS_ERRORFILE"); >> >>Maybe that is a questions which would better be addressed to the dev-list? >> >> >>Kind Regards, >>Benjamin >> > > From christian.reyes at UTEM.CL Mon Dec 13 11:22:18 2004 From: christian.reyes at UTEM.CL (Christian Reyes A.) Date: Mon, 13 Dec 2004 16:22:18 -0300 Subject: Fw: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Message-ID: MessageHi Ethan: Look, I follow your advise and "off corse" you're in the correct my map file is in the wrong format (Uhhn), sorry for waste your time. Thanks a lot Regards Christian ----- Original Message ----- From: Ethan Alpert To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, December 10, 2004 5:14 PM Subject: Re: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): If apache can read the file then ther must be an error in the mapfile. I don't think libcurl has anything to do with it. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Reyes A. Sent: Friday, December 10, 2004 1:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Hi Ethan: First, thaks for your response. Yeah, the files are view for apache process, will be neccesary re-compile mapserv with the curl libraries ?? I think the problem is not apache or php else mapserver compiling options, any idea? Thanks Regards Christian Reyes ----- Original Message ----- From: Ethan Alpert To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Thursday, December 09, 2004 9:19 PM Subject: Re: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Did you check the permissions of /var/www/html/mapserver/datos.map? Can it be read by your httpd instance? -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Christian Reyes A. Sent: Thursday, December 09, 2004 4:16 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Warning:[MapServer Error]: msLoadMap(): Hi Map Server Users Just download and install all software to run mapserv and mapscript, but when point my browser to test PHP script receive the next messages: Warning:[MapServer Error]: msLoadMap(): in /var/www/html/mapserver/test.php on line 19 Warning: Failed to open map file /var/www/html/mapserver/datos.map in /var/www/html/mapserver/test.php on line 19 Fatal error: Call to a member function on a non-object in /var/www/html/mapserver/test.php on line 46 I tried with many configurations, modify path (relative, direct, etc) always receive same messages Version of installed software are next: RedHat 9.0 Apache 2.0.40-21 PHP 4.2.2 Mapserver 4.4.0 PROJ.4.3.3 GDAL 1.2.5 pdflib 6.0.1 gd-2.0.33 libtiff 3.5.7-11 libjpeg 6b-26 libpng 1.2.2 zlib-1.1.4-8 xerces 1_6_0 parameter for compiling mapserver: --with-freetype=/usr --with-zlib=/usr --with-png=/usr --with-jpeg=/usr --with-pdf --with-eppl --with-proj=/usr --with-sde=no --with-geos=no --with-mpatrol=no --with-ogr=/usr/local/bin/gdal-config --with-gdal=/usr/local/bin/gdal-config --with-tiff=/usr --with-php=/usr/local/php-4.2.2 --with-php-regex --with-proj=no --with-curl=no --enable-debug --with-wms=no --with-wfs=no --with-wcs=no --with-wmsclient=no --with-wfsclient=no No mayor compiling warningsr, only variables declared but not used I'm stuck , anybody can help to resolve this problem ( if solution is not a problem !!!) Thanks Regards Christian Reyes PD: Sorry for my English, i hope your understand -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Mon Dec 13 13:23:48 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Mon, 13 Dec 2004 20:23:48 -0100 Subject: Decode values in CGI query mode {Scanned} In-Reply-To: <55dd01fa04121309407bdeb587@mail.gmail.com> Message-ID: Hi, Alternatively you can create a small code table (dbf file) with code and description pairs, then the two tables can be joined by mapserver. Check JOIN in cgi mapserver documentation. Bye Zoltan On Mon, 13 Dec 2004, Ken Lord wrote: > Hi Daniele, > > You may be able to setup variable pairs in the mapfile, I believe that > is a new feature in versions 4 and younger. > > Another way you might want to do it, especially if there are a lot of > codes, would be to setup a simple database with a table containing the > codes and descriptions. > > I have done this in my query results pages, the result templates > create links for each result that contains the code, following the > link activates an ASP page that reads and uses the code, and reads the > database. This can add a lot of information to your website that > otherwise might be hard to get at, and you can then format the data to > better suit your needs. > > This is great for querying drill hole data on a mining exploration > map. query a drill hole, follow a link and end up with a table of > drill hole assays or geologic intersections generated on the fly. > > On other websites I have used this technique to link queried data to a > flash database application (built by another person at my job, long > before we played with MapServer) .. to make interactive charts of data > tied to a point on the map. > > I'm sure there's plenty of other open source ways to do the same thing. > > Cheers, > Ken Lord > Vancouver > > > > On Mon, 13 Dec 2004 10:44:30 +0100, Daniele Margotti > wrote: > > > > Hi list, > > I use CGI MapServer for browsing and querying shapefile-based maps. > > > > This is the version: > > > > > > In a shapefile I have a numeric field which is a codified value (i.e.: > > values 0, 1, 2, ... each corresponding to a very long description of the > > attribute). > > I don't want / can't modify the shapefile and/or the .DBF file, and I'd like > > to set this long description ONLY ONE TIME in the mapfile, so that when I > > query the map I don't see the anonymous numeric values but MapServer decodes > > and substitutes them with my more exausting long description. > > > > Is it possible to set these substitutions in the mapfile? > > > > Thank you, > > Daniele > > > From agillesp at VT.EDU Mon Dec 13 11:42:50 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 13 Dec 2004 14:42:50 -0500 Subject: Custom shape changes color In-Reply-To: <41BDB24D.6040908@swoodbridge.com> Message-ID: The work-around with adding a layer with the necessary color works. Thanks for the help! -Abe On Dec 13, 2004, at 10:16 AM, Stephen Woodbridge wrote: > Abe, > > Check out for the problem and a potential work around: > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=306 > > -Steve W > > Abe Gillespie wrote: >> I created a measure tool and use the following layer for the lines: >> >> LAYER >> NAME "custom_solid_line" >> STATUS ON >> TYPE LINE >> POSTLABELCACHE true >> CLASS >> SYMBOL "solid" >> COLOR 255 255 0 >> SIZE 2 >> END >> END >> >> I add lines to the map with code similar to the following: >> >> $line = ms_newLineObj(); >> $line->addXY($x, $y); >> $shp = ms_newShapeObj(MS_SHAPE_LINE); >> $shp->add($line); >> $layer = $map->getLayerByName("custom_solid_line"); >> $retVal = $layer->addFeature($shp); >> $shp->free(); >> $line->free(); >> // Draw the map later on ... >> >> The problem is the lines don't always stay yellow. I've seen them >> green >> and pinkish too. The color seems to depend on other visible layers. >> I've >> also seen the same phenomenon with the extents box in the reference >> map. >> In fact, the color of the lines and the extent box is always the same. >> I.e.: when one changes color the other does too. I do draw my >> reference >> map in a sort of nonstandard way though by drawing the map and ref. >> map >> separately and then pasting them together. >> >> Thanks for any help. >> -Abe > From agillesp at VT.EDU Mon Dec 13 11:44:36 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 13 Dec 2004 14:44:36 -0500 Subject: MrSID on Windows Message-ID: I know DM Solutions is the place to go to get Windows MapServer binaries. Is there one with MrSID functionality available? Thanks. -Abe From steve.lime at DNR.STATE.MN.US Mon Dec 13 11:31:50 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 13 Dec 2004 13:31:50 -0600 Subject: Decode values in CGI query mode Message-ID: Not in the mapfile, but you can do this using a MapServer join object. You could set up an external database (MySQL, DBF and comma seperated value files are supported) to hold the code and the long name. You access the joined column then in your template. So, if you have a file that looks like: 0,Long name for code 0 1,Long name for code 1 ... You could define something like this in your mapfile: JOIN NAME "longname" CONNECTIONTYPE CSV TABLE "lookup.txt" FROM "CODE" TO "1" # refers to column 1 END and in your query template perhaps something like: [CODE]: [longname_2] where [CODE] is from the dbf file and [longname_2] refers to the second column in the longname join. Csv joins don't have column names hence the column references. Hope this helps. Steve >>> Daniele Margotti 12/13/2004 3:44:30 AM >>> Hi list, I use CGI MapServer for browsing and querying shapefile-based maps. This is the version: In a shapefile I have a numeric field which is a codified value (i.e.: values 0, 1, 2, ... each corresponding to a very long description of the attribute). I don't want / can't modify the shapefile and/or the .DBF file, and I'd like to set this long description ONLY ONE TIME in the mapfile, so that when I query the map I don't see the anonymous numeric values but MapServer decodes and substitutes them with my more exausting long description. Is it possible to set these substitutions in the mapfile? Thank you, Daniele From bartvde at XS4ALL.NL Mon Dec 13 11:30:04 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 13 Dec 2004 20:30:04 +0100 Subject: MrSID on Windows In-Reply-To: <6B7E82FB-4D3F-11D9-8CC6-000A957A0F9C@vt.edu> Message-ID: Hi, MrSID is compiled in with Howard Butler's binaries: http://hobu.stat.iastate.edu/mapserver/ Best regards, Bart On Mon, 13 Dec 2004 14:44:36 -0500, Abe Gillespie wrote: > I know DM Solutions is the place to go to get Windows MapServer > binaries. Is there one with MrSID functionality available? > > Thanks. > -Abe > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From hobu at IASTATE.EDU Mon Dec 13 12:06:16 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Mon, 13 Dec 2004 14:06:16 -0600 Subject: MrSID on Windows In-Reply-To: Message-ID: http://hobu.stat.iastate.edu/mapserver/ At 01:44 PM 12/13/2004, Abe Gillespie wrote: >I know DM Solutions is the place to go to get Windows MapServer >binaries. Is there one with MrSID functionality available? > >Thanks. >-Abe From MHoward at SPACEIMAGING.COM Mon Dec 13 13:04:06 2004 From: MHoward at SPACEIMAGING.COM (Howard Mark) Date: Mon, 13 Dec 2004 14:04:06 -0700 Subject: LL2UTM Message-ID: Anybody have a quick way to convert LAT/LON to UTM zone,X,Y as a web service on IIS or Tomcat? TIA Mark ******************************************************************************** This message is intended only for the use of the Addressee and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please erase all copies of the message and its attachments and notify Space Imaging immediately. ******************************************************************************** From woodbri at SWOODBRIDGE.COM Mon Dec 13 13:26:07 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 13 Dec 2004 16:26:07 -0500 Subject: LL2UTM In-Reply-To: <13685000AB02F2479DF2C632B9B1988E01266E46@imager8.corp.spaceimaging.com> Message-ID: http://www.windreader.com/geodesy/functions.htm You can download VB or Delphi code for this or check some of the other links at google http://www.google.com/search?hl=en&q=ll2utm&btnG=Google+Search -Steve Howard Mark wrote: > Anybody have a quick way to convert LAT/LON to UTM zone,X,Y as a web service on IIS or Tomcat? > > TIA > Mark > > > ******************************************************************************** > This message is intended only for the use of the Addressee and may > contain information that is PRIVILEGED and CONFIDENTIAL. > > If you are not the intended recipient, you are hereby notified that any > dissemination of this communication is strictly prohibited. If you have > received this communication in error, please erase all copies of the > message and its attachments and notify Space Imaging immediately. > ******************************************************************************** > From superbla3000 at GMX.NET Mon Dec 13 14:53:37 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Mon, 13 Dec 2004 23:53:37 +0100 Subject: something strange happening. In-Reply-To: Message-ID: > LAYER > NAME "Teacher Names" > DATA "fileTYFKPc" > STATUS DEFAULT > TYPE POINT > LABELITEM "FNAME" > CLASS > MAXSCALE 2.219616 > LABEL > POSITION AUTO > TYPE BITMAP > COLOR 0 0 0 > END > END > END > > END # end map from header > Check out you MAXSCALE 2.219616 It was also quite strange to me, play around with it and you will see how it works. regards Joerg From arachnid at NOTDOT.NET Tue Dec 14 01:09:47 2004 From: arachnid at NOTDOT.NET (Nick Johnson) Date: Tue, 14 Dec 2004 22:09:47 +1300 Subject: Is mod_php support ever going to happen? Message-ID: Hi, I'm running PHP5 as an apache DSO, and I would very much like to not have to set up a seperate CGI version of PHP just for mapscript related stuff. Is support for php mapscript in DSO mode ever going to occur? It's been 'soon' for a long time now, and from what I can tell, nothing's happening. I have some knowledge of PHP internals - is there anything I can do to help it along? Also, I'm curious what the problem is in the first place: this problem occurs even when running apache in prefork mode - meaning no threads, only forked processes. What is it that mapscript is doing that causes it to crash? My best guess is that it's treating module startup and shutdown badly, and ends up sharing handles on things. When apache starts up, the parent apache process loads the DSOs and fires their module startup functions, then forks its children. As a result, all the children end up with all the handles and resources allocated in the module startup - if this includes things that each should have their own handles for (sockets, for example), the result could be a real mess. Can anyone confirm if this is the case, or if it's something else? Thanks, Nick Johnson From margottid at COMUNE.LUGO.RA.IT Tue Dec 14 01:14:21 2004 From: margottid at COMUNE.LUGO.RA.IT (Daniele Margotti) Date: Tue, 14 Dec 2004 10:14:21 +0100 Subject: R: [UMN_MAPSERVER-USERS] Decode values in CGI query mode In-Reply-To: Message-ID: Thank you very much! The use of CSV file is the ideal solution for me, since I have only few different values to decode. Bye, Daniele -----Messaggio originale----- Da: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Per conto di Steve Lime Inviato: luned? 13 dicembre 2004 20.32 A: MAPSERVER-USERS at LISTS.UMN.EDU Oggetto: Re: [UMN_MAPSERVER-USERS] Decode values in CGI query mode Not in the mapfile, but you can do this using a MapServer join object. You could set up an external database (MySQL, DBF and comma seperated value files are supported) to hold the code and the long name. You access the joined column then in your template. So, if you have a file that looks like: 0,Long name for code 0 1,Long name for code 1 ... You could define something like this in your mapfile: JOIN NAME "longname" CONNECTIONTYPE CSV TABLE "lookup.txt" FROM "CODE" TO "1" # refers to column 1 END and in your query template perhaps something like: [CODE]: [longname_2] where [CODE] is from the dbf file and [longname_2] refers to the second column in the longname join. Csv joins don't have column names hence the column references. Hope this helps. Steve >>> Daniele Margotti 12/13/2004 3:44:30 AM >>> Hi list, I use CGI MapServer for browsing and querying shapefile-based maps. This is the version: In a shapefile I have a numeric field which is a codified value (i.e.: values 0, 1, 2, ... each corresponding to a very long description of the attribute). I don't want / can't modify the shapefile and/or the .DBF file, and I'd like to set this long description ONLY ONE TIME in the mapfile, so that when I query the map I don't see the anonymous numeric values but MapServer decodes and substitutes them with my more exausting long description. Is it possible to set these substitutions in the mapfile? Thank you, Daniele From mapserver at GEOWORLD.DE Tue Dec 14 01:24:01 2004 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Tue, 14 Dec 2004 10:24:01 +0100 Subject: layeritems with java mapscript Message-ID: Hi List, i would like to detect the names of the attribut fields with java mapscript. I tried the code below but i alway get back zero fields. What i am doing wrong? Thanks for any help Nicol package msjava; import edu.umn.gis.mapscript.*; public class layeritems { public static void main(String[] args) { System.loadLibrary("mapscript"); mapObj map = new mapObj("/home/nicol/public_html/mapserver/dev/brd.map"); layerObj layer = map.getLayer(0); System.out.println("Count of fields from layer " +layer.getName() + " : " + layer.getNumitems()); for (int i =0; i < layer.getNumitems(); i++) { System.out.println("Fieldname: " + layer.getItem(0)); } } } From temiz at DEPREM.GOV.TR Tue Dec 14 01:28:10 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 14 Dec 2004 11:28:10 +0200 Subject: horizantal line symbol Message-ID: hello how can I create horizantal line symbol class ? kind 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 arachnid at NOTDOT.NET Tue Dec 14 01:37:55 2004 From: arachnid at NOTDOT.NET (Nick Johnson) Date: Tue, 14 Dec 2004 22:37:55 +1300 Subject: Is mod_php support ever going to happen? In-Reply-To: <41BEADDB.9050500@notdot.net> Message-ID: My apologies - I just read the replies to the 4.4 release notes, and it seems it's more or less working. Thanks - I couldn't have asked for better timing! :) -Nick Johnson Nick Johnson wrote: > Hi, > > I'm running PHP5 as an apache DSO, and I would very much like to not > have to set up a seperate CGI version of PHP just for mapscript related > stuff. Is support for php mapscript in DSO mode ever going to occur? > It's been 'soon' for a long time now, and from what I can tell, > nothing's happening. > > I have some knowledge of PHP internals - is there anything I can do to > help it along? > > Also, I'm curious what the problem is in the first place: this problem > occurs even when running apache in prefork mode - meaning no threads, > only forked processes. What is it that mapscript is doing that causes it > to crash? My best guess is that it's treating module startup and > shutdown badly, and ends up sharing handles on things. When apache > starts up, the parent apache process loads the DSOs and fires their > module startup functions, then forks its children. As a result, all the > children end up with all the handles and resources allocated in the > module startup - if this includes things that each should have their own > handles for (sockets, for example), the result could be a real mess. > > Can anyone confirm if this is the case, or if it's something else? > > Thanks, > > > Nick Johnson > From miroslav.sulc at STARTNET.CZ Tue Dec 14 01:46:58 2004 From: miroslav.sulc at STARTNET.CZ (=?windows-1252?Q?Miroslav_=8Aulc?=) Date: Tue, 14 Dec 2004 10:46:58 +0100 Subject: Is mod_php support ever going to happen? In-Reply-To: <41BEADDB.9050500@notdot.net> Message-ID: Hi, Nick, I cannot answer you question to php but I vote for this to be solved :-) I don't intend to perform php in cgi mode so I decided to use the curl functions in php to get my results from the mapserver cgi script - not very comportable solution :-( BTW: Could someone configure the list to contain reply address to the list and not to the sender? This would be very helpful as many people just press 'reply'. I sent accidentally two answers directly to Stephen because I didn't mention this (sorry for that, Stephen). Miroslav ulc Nick Johnson wrote: > Hi, > > I'm running PHP5 as an apache DSO, and I would very much like to not > have to set up a seperate CGI version of PHP just for mapscript related > stuff. Is support for php mapscript in DSO mode ever going to occur? > It's been 'soon' for a long time now, and from what I can tell, > nothing's happening. > > I have some knowledge of PHP internals - is there anything I can do to > help it along? > > Also, I'm curious what the problem is in the first place: this problem > occurs even when running apache in prefork mode - meaning no threads, > only forked processes. What is it that mapscript is doing that causes it > to crash? My best guess is that it's treating module startup and > shutdown badly, and ends up sharing handles on things. When apache > starts up, the parent apache process loads the DSOs and fires their > module startup functions, then forks its children. As a result, all the > children end up with all the handles and resources allocated in the > module startup - if this includes things that each should have their own > handles for (sockets, for example), the result could be a real mess. > > Can anyone confirm if this is the case, or if it's something else? > > Thanks, > > > Nick Johnson -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From temiz at DEPREM.GOV.TR Tue Dec 14 03:05:34 2004 From: temiz at DEPREM.GOV.TR (temiz) Date: Tue, 14 Dec 2004 13:05:34 +0200 Subject: brick wall symbol Message-ID: hello Does anyone have this symbol set ? A brick wall a brick wall - limestone 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 floerke at DOCTRONIC.DE Tue Dec 14 04:52:48 2004 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Tue, 14 Dec 2004 06:52:48 -0600 Subject: How to join data tables for visualization Message-ID: Hi there, how can I join additional data fields to my shape-file? There is a shapefile only with "id" and "name" for the shapes. I have additional data (like population) as a dbf file, I would like to dynamically join to the shape values and use theese joined values for dividing the shapes into different classes. There is a JOIN object mentioned within the mapfile reference, but it's for query objects only. Any idea? HolgeR From TENIERER at GOV.NS.CA Tue Dec 14 04:55:58 2004 From: TENIERER at GOV.NS.CA (Rene Teniere) Date: Tue, 14 Dec 2004 08:55:58 -0400 Subject: PHP/MapScript processQueryTemplate Help Message-ID: Hi, Just trying to get info functionality working in our site using PHP/Mapscript. It seems to get stalled while processing the template. Am I doing this wrong? LAYER NAME "Rivers" GROUP "Base Data" STATUS ON TEMPLATE "c:/Inetpub/wwwroot/template/rivers_template.html" TYPE LINE TILEINDEX "coindex" TILEITEM "lorivers" CLASSITEM "rivers_id" MAXSCALE 500000 TOLERANCE 10 TOLERANCEUNITS PIXELS CLASS EXPRESSION /./ STYLE SYMBOL 0 COLOR 0 0 230 SIZE 1 MINSIZE 1 MAXSIZE 100 END END END Template:
[LRIS_FCODE]   [RIVERS_ID]   [LENGTH]
MapScript Code: $image = $map->draw(); $queryImage = $map->drawQuery(); $query_url = $queryImage->saveWebImage(); $array[0] = ''; if($qRectRes == 'MS_SUCCESS' || $qPtRes == 'MS_SUCCESS') { $image_url = $query_url; //$queryHTML = $map->processQueryTemplate($array,MS_FALSE); //echo($queryHTML); //error_log($queryHTML); } else $image_url = $image->saveWebImage(); Rene J.R. Teniere - BSc., D.GIS GIS Programmer/Analyst Nova Scotia Department of Natural Resources Forestry Division (GIS) - Truro Phone: (902) 893-5655 Mobile: (902) 209-8956 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmcilhagga at DMSOLUTIONS.CA Tue Dec 14 06:00:21 2004 From: dmcilhagga at DMSOLUTIONS.CA (Dave McIlhagga) Date: Tue, 14 Dec 2004 09:00:21 -0500 Subject: [Freegis-list] MapServer/FreeGIS and the market In-Reply-To: <007001c4deb1$70ab7900$cf19eac8@diamante> Message-ID: Hi Eduardo, In Canada we are beginning to see more and more job postings that do include experience with MapServer. I believe this is directly related to the efforts we have made at DM to promote and sell our company, the value that comes from the technology, and the open source software development approach. Importantly -- this is in large part due to the types of people we present this to - decision makers, not just technical people. Very different arguments and messages appeal to decision makers, and unfortunately, too often individuals or companies only promote technical and "free" benefits of open source software. When properly composed, from sound business fundamentals - we have witnessed that the message can be very powerful and as a consequence of this hard work, we have seen attitudes in Canada change dramatically in the past four years. The ultimate result of this has been that in the past couple of years we have begun to see job postings for people with skills in open source technologies -- and as this message continues to grow and spread -- I'm confident that this will multiply in the future. Dave -- Dave McIlhagga President, DM Solutions Group http://www.dmsolutions.ca EMail : dmcilhagga at dmsolutions.ca Phone : 613-565-5056 x15 Fax : 613-565-0925 Eduardo Patto Kanegae wrote: > Hi folks, > > this is more a discussion and "opinion-collector" topic than a technical > question. > > Despite the known high potencial of MapServer and other very useful free gis > tools, it's still very hard to find MapServer/Free GIS job offers at gis > jobs websites or other GIS related sites. > > Why do you think this happen this way? > - do you think mapserver/freegis packs are not sufficient known to get a > place at commercial media? > - or could commercial proprietary software companies be doing something to > avoid free gis from growing up? > - or does companies know that this kind of professional is more difficult to > find and then prefer not to loose time on high media announces and look for > professionals only via people networking? > > best regards, > > Eduardo Patto Kanegae > http://www.webmapit.com.br > ICQ: 303747254 > MSN: eduardo_patto at hotmail.com > phone:+55(16)9994-2928 > > Treinamento em UMN MapServer - > http://www.webmapit.com.br/ptbr/?menuoption=mapserver > F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum > > ***Fim da Mensagem / End of Message *** > > _______________________________________________ > Freegis-list mailing list > Freegis-list at intevation.de > https://intevation.de/mailman/listinfo/freegis-list > From miroslav.sulc at STARTNET.CZ Tue Dec 14 06:31:54 2004 From: miroslav.sulc at STARTNET.CZ (=?ISO-8859-2?Q?Miroslav_=A9ulc?=) Date: Tue, 14 Dec 2004 15:31:54 +0100 Subject: Negative values in extent Message-ID: Hi, I have upgraded to mapserver 4.4.0 and I am having problem with negative values in EXTENT in MAP file. I have maps in S-JTSK (Czech norm) and this is a system with negative values. Here is my EXTENT: EXTENT -747200 -1043200 -747000 -1046000 These worked for me when I used the mapserver script. But I cannot make them work throught the php mapscript. Thought I finally "succeeded" (they appear in the $map->extent till next method is called) to get the negative extent to the map object, I still get error that the map cannot be drawn. Info: object(ms_rect_obj)#46 (5) { ["_handle_"]=> resource(361) of type (Unknown) ["minx"]=> int(-747200) ["miny"]=> int(-1043200) ["maxx"]=> int(-747000) ["maxy"]=> int(-1046000) } *Warning*: [MapServer Error]: msDrawMap(): Unable to initialize image. in */var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* on line *106* *Warning*: [MapServer Error]: msCalculateScale(): Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. in */var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* on line *106* Here is my code (it's copied from the hello example): $map = ms_newMapObj($this->m_Row['MapFilePath']); $extent = ms_newRectObj(); $extent->minx = -747200; $extent->miny = -1043200; $extent->maxx = -747000; $extent->maxy = -1046000; $map->extent = $extent; $image = $map->draw(); $map_file = $image->saveWebImage(); Does Mapserver support negative values in extent? If not, is there any workaround? I will appreciate any suggestion. -- Miroslav ?ulc, CEO StartNet s.r.o. ---------------------------------------------------- Vrchlick?ho 161/5, Praha 5, 150 00, ?esk? republika ---------------------------------------------------- ICQ: 60144073 web: www.startnet.cz, www.novavystavba.cz ---------------------------------------------------- mobil: +420 603 711 413 telefon: +420 257 225 602 ---------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From ed at TOPOZONE.COM Tue Dec 14 06:49:46 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 14 Dec 2004 09:49:46 -0500 Subject: Negative values in extent Message-ID: Miroslav - Your EXTENT statement has a maximum Y value (-1046000) that is smaller than the minimum Y value (-1043200). Negative values are fine, but MINY must be less than MAXY. - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Miroslav ?ulc Sent: Tuesday, December 14, 2004 9:32 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Negative values in extent Hi, I have upgraded to mapserver 4.4.0 and I am having problem with negative values in EXTENT in MAP file. I have maps in S-JTSK (Czech norm) and this is a system with negative values. Here is my EXTENT: EXTENT -747200 -1043200 -747000 -1046000 These worked for me when I used the mapserver script. But I cannot make them work throught the php mapscript. Thought I finally "succeeded" (they appear in the $map->extent till next method is called) to get the negative extent to the map object, I still get error that the map cannot be drawn. Info: object(ms_rect_obj)#46 (5) { ["_handle_"]=> resource(361) of type (Unknown) ["minx"]=> int(-747200) ["miny"]=> int(-1043200) ["maxx"]=> int(-747000) ["maxy"]=> int(-1046000) } *Warning*: [MapServer Error]: msDrawMap(): Unable to initialize image. in */var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* on line *106* *Warning*: [MapServer Error]: msCalculateScale(): Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. in */var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* on line *106* Here is my code (it's copied from the hello example): $map = ms_newMapObj($this->m_Row['MapFilePath']); $extent = ms_newRectObj(); $extent->minx = -747200; $extent->miny = -1043200; $extent->maxx = -747000; $extent->maxy = -1046000; $map->extent = $extent; $image = $map->draw(); $map_file = $image->saveWebImage(); Does Mapserver support negative values in extent? If not, is there any workaround? I will appreciate any suggestion. -- Miroslav ?ulc, CEO StartNet s.r.o. ---------------------------------------------------- Vrchlick?ho 161/5, Praha 5, 150 00, ?esk? republika ---------------------------------------------------- ICQ: 60144073 web: www.startnet.cz, www.novavystavba.cz ---------------------------------------------------- mobil: +420 603 711 413 telefon: +420 257 225 602 ---------------------------------------------------- From akrherz at IASTATE.EDU Tue Dec 14 06:48:40 2004 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Tue, 14 Dec 2004 08:48:40 -0600 Subject: Negative values in extent In-Reply-To: <41BEF95A.4060603@startnet.cz> Message-ID: Hello, On Tue, 14 Dec 2004, [ISO-8859-2] Miroslav ?ulc wrote: >Hi, > >I have upgraded to mapserver 4.4.0 and I am having problem with negative >values in EXTENT in MAP file. I have maps in S-JTSK (Czech norm) and >this is a system with negative values. Here is my EXTENT: > >EXTENT -747200 -1043200 -747000 -1046000 > >These worked for me when I used the mapserver script. But I cannot make >them work throught the php mapscript. Thought I finally "succeeded" >(they appear in the $map->extent till next method is called) to get the >negative extent to the map object, I still get error that the map cannot >be drawn. > >Info: object(ms_rect_obj)#46 (5) { ["_handle_"]=> resource(361) of type >(Unknown) ["minx"]=> int(-747200) ["miny"]=> int(-1043200) ["maxx"]=> >int(-747000) ["maxy"]=> int(-1046000) } > >*Warning*: [MapServer Error]: msDrawMap(): Unable to initialize image. >in >*/var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* >on line *106* > >*Warning*: [MapServer Error]: msCalculateScale(): Invalid image extent, >minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. in >*/var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* >on line *106* > >Here is my code (it's copied from the hello example): > > $map = ms_newMapObj($this->m_Row['MapFilePath']); > $extent = ms_newRectObj(); > $extent->minx = -747200; > $extent->miny = -1043200; > $extent->maxx = -747000; > $extent->maxy = -1046000; > $map->extent = $extent; > $image = $map->draw(); > $map_file = $image->saveWebImage(); > >Does Mapserver support negative values in extent? If not, is there any >workaround? I will appreciate any suggestion. $extent->maxy needs to be greater than $extent->miny . Try switching them around and it should work... HTH, daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From sgillies at FRII.COM Tue Dec 14 07:10:09 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 14 Dec 2004 08:10:09 -0700 Subject: layeritems with java mapscript In-Reply-To: Message-ID: On Dec 14, 2004, at 2:24 AM, Nicol Hermann wrote: > Hi List, > > i would like to detect the names of the attribut fields with java > mapscript. I tried the code below but i alway get back zero fields. > What i am doing wrong? > > Thanks for any help > Nicol > > > package msjava; > import edu.umn.gis.mapscript.*; > > public class layeritems { > public static void main(String[] args) { > System.loadLibrary("mapscript"); > > mapObj map = new > mapObj("/home/nicol/public_html/mapserver/dev/brd.map"); > layerObj layer = map.getLayer(0); > System.out.println("Count of fields from layer " > +layer.getName() > + " : " + layer.getNumitems()); > for (int i =0; i < layer.getNumitems(); i++) { > System.out.println("Fieldname: " + > layer.getItem(0)); > } > } > } > > Nicol, You have to open a layer before you can get the items or any values of shapes. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From Dan.Liu at STATE.MN.US Tue Dec 14 07:10:09 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Tue, 14 Dec 2004 09:10:09 -0600 Subject: jbox- java applet notinited Message-ID: Hi Richard, Is there any way to fix this error? I tried everything. The 'applet noinited error' still shows from time to time on both Mozilla and IE. Dan -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Friday, December 10, 2004 4:26 PM To: Dan Liu Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited On Fri, 10 Dec 2004 13:18:39 -0600, Dan Liu wrote: > Hi Richard, > Is it possible that sometimes the applet is requesting the image before it > has been completely written to disk on the server? Possible, but not likely. I have seen the appplet notinited errors in the one case which I described in my first email. And this had to do strictly with client (browser) side problems. So I wanted to look at your application and see if there was anything similar. I'll check it out as soon as I get a chance. What Browser and Java VM are you using? Have you tested with other browser/VM configurations? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From pram at PRAMCENTRAL.COM Tue Dec 14 07:18:38 2004 From: pram at PRAMCENTRAL.COM (Prashanth Ram) Date: Tue, 14 Dec 2004 10:18:38 -0500 Subject: jbox- java applet notinited Message-ID: ----- Original Message ----- From: "Dan Liu" To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited Date: Tue, 14 Dec 2004 09:10:09 -0600 > > Hi Richard, > Is there any way to fix this error? I tried everything. The 'applet noinited > error' still shows from time to time on both Mozilla and IE. > > Dan > > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Friday, December 10, 2004 4:26 PM > To: Dan Liu > Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited > Dan: On the Java Console, what errors do you get? -Prashanth -- HTMLX.com Mapserver, Mapscript, PHP Hosting From Dan.Liu at STATE.MN.US Tue Dec 14 07:37:02 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Tue, 14 Dec 2004 09:37:02 -0600 Subject: jbox- java applet notinited Message-ID: I tried lots of zooming-in to make the error occur. But error doesn't show. In the java console, I have an error like this, is this the error? java.lang.IllegalArgumentException: null source at java.util.EventObject.(Unknown Source) at java.awt.AWTEvent.(Unknown Source) at java.awt.event.ComponentEvent.(Unknown Source) at java.awt.event.WindowEvent.(Unknown Source) at java.awt.event.WindowEvent.(Unknown Source) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.SequencedEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Thanks. Dan -----Original Message----- From: pram at pramcentral.com [mailto:pram at pramcentral.com] Sent: Tuesday, December 14, 2004 9:19 AM To: Dan Liu; MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited ----- Original Message ----- From: "Dan Liu" To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited Date: Tue, 14 Dec 2004 09:10:09 -0600 > > Hi Richard, > Is there any way to fix this error? I tried everything. The 'applet noinited > error' still shows from time to time on both Mozilla and IE. > > Dan > > -----Original Message----- > From: Richard Greenwood [mailto:richard.greenwood at gmail.com] > Sent: Friday, December 10, 2004 4:26 PM > To: Dan Liu > Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited > Dan: On the Java Console, what errors do you get? -Prashanth -- HTMLX.com Mapserver, Mapscript, PHP Hosting From richard.greenwood at GMAIL.COM Tue Dec 14 07:52:04 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 14 Dec 2004 08:52:04 -0700 Subject: jbox- java applet notinited In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2CB3@admin-itg-exch3.state.mn.us> Message-ID: On Tue, 14 Dec 2004 09:10:09 -0600, Dan Liu wrote: > Hi Richard, > Is there any way to fix this error? I tried everything. The 'applet noinited > error' still shows from time to time on both Mozilla and IE. > > Dan Sorry. Your server was down over the weekend, and then I kind of forgot... I Iooked at your code and viewed the page. I do not see anything suspicious and I did not get an error, so I can only suggest some general avenues to explore. 1. Open the Java console when you run it. It will display considerably more error information when an error does occur. 2. Try the 'regular' jBox instead of the jBoxPNG. Sun's recent Java VMs can display PNGs natively. It is only the Microsoft Java VM that can not, and that therefoer requires the jBoxPNG. 3. Test some other Java enabled sites (e.g. www2.tetonwyo.org/mapsever) to be sure that it's not simply your client configuration. Sorry that I don't have a more specific solution. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From markadams at CUESTASYS.COM Tue Dec 14 08:31:30 2004 From: markadams at CUESTASYS.COM (Mark Adams) Date: Tue, 14 Dec 2004 10:31:30 -0600 Subject: Mapserver 44 image display problem Message-ID: We're working with the binary download of Mapserver 44 and mapscript from the Maptools site. We have everything working OK, however our colour raster image is displaying as greyscale, and our north arrow GIF is showing without transparency. We've noticed this problem on 2 different machines we've tried so far. Any ideas what might be causing this problem? Thanks in advance, Mark Adams markadams at cuestasys.com From mike.merrett at CITY.WHITEHORSE.YK.CA Tue Dec 14 08:31:45 2004 From: mike.merrett at CITY.WHITEHORSE.YK.CA (Mike Merrett) Date: Tue, 14 Dec 2004 10:31:45 -0600 Subject: Logging error messages, environment variable MS_ERRORFILE Message-ID: in your map file put this after the map section start CONFIG MS_ERRORFILE 'E:\\inetpub\\wwwroot\\tmp\\_gmap_dev.log' CONFIG PROJ_DEBUG "ON" make sure that that directory is writeable - this works on windows and should work on linux (with the latest mapserver anyway) From siki at AGT.BME.HU Tue Dec 14 10:49:54 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 14 Dec 2004 17:49:54 -0100 Subject: brick wall symbol {Scanned} In-Reply-To: <41BEC8FE.7050200@deprem.gov.tr> Message-ID: Hi, I put some useful hatch pattern on the wiki page into the Symbol example section (mapserver.gis.umn.edu/cgi-bin/wiki.pl?SymbolExamples). You may get idea ... Bye Zoltan On Tue, 14 Dec 2004, temiz wrote: > hello > > Does anyone have this symbol set ? > A brick wall > > a brick wall - limestone > 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 dmorissette at DMSOLUTIONS.CA Tue Dec 14 09:00:34 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Tue, 14 Dec 2004 12:00:34 -0500 Subject: PHP/MapScript processQueryTemplate Help In-Reply-To: Message-ID: Rene Teniere wrote: > Hi, > > Just trying to get info functionality working in our site using > PHP/Mapscript. It seems to get stalled while processing the template. Am > I doing this wrong? > Which version of MapServer are you using? There was bug 569 that was fixed in v4.2 (quite a while ago) that was causing problems if you had TEMPLATE set only at the layer level and not inside classes like you have done. If you are using a version older than 4.2.0 then you should either upgrade or try adding the TEMPLATE inside the CLASS as well. Other than that, I can't see what's wrong based on the information that you provided. If you are using version 4.4 and the problem persists then you could maybe file a bug with a small testcase to reproduce. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ From sgillies at FRII.COM Tue Dec 14 09:06:11 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Tue, 14 Dec 2004 10:06:11 -0700 Subject: Mapserver 44 image display problem In-Reply-To: Message-ID: On Dec 14, 2004, at 9:31 AM, Mark Adams wrote: > We're working with the binary download of Mapserver 44 and mapscript > from > the Maptools site. We have everything working OK, however our colour > raster > image is displaying as greyscale, and our north arrow GIF is showing > without transparency. We've noticed this problem on 2 different > machines > we've tried so far. Any ideas what might be causing this problem? > > Thanks in advance, > > Mark Adams > markadams at cuestasys.com > > Mark, I ran into a problem with the same symptoms today. I had been assigning an default class and style to the raster layer. Once I fixed this, full RGB output was restored. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From pspencer at DMSOLUTIONS.CA Tue Dec 14 09:19:23 2004 From: pspencer at DMSOLUTIONS.CA (Paul Spencer) Date: Tue, 14 Dec 2004 12:19:23 -0500 Subject: Negative values in extent In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FE9B@ptolemy.topozone.com> Message-ID: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=937 I've requested that Steve change the error message to actually tell the user what is wrong (i.e. extents are invalid because miny > maxy or minx > maxx Paul Ed McNierney wrote: > Miroslav - > > Your EXTENT statement has a maximum Y value (-1046000) that is smaller than the minimum Y value (-1043200). Negative values are fine, but MINY must be less than MAXY. > > - Ed > > Ed McNierney > President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: +1 978 251-4242 Fax: +1 978 251-1396 > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Miroslav ?ulc > Sent: Tuesday, December 14, 2004 9:32 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Negative values in extent > > Hi, > > I have upgraded to mapserver 4.4.0 and I am having problem with negative values in EXTENT in MAP file. I have maps in S-JTSK (Czech norm) and this is a system with negative values. Here is my EXTENT: > > EXTENT -747200 -1043200 -747000 -1046000 > > These worked for me when I used the mapserver script. But I cannot make them work throught the php mapscript. Thought I finally "succeeded" > (they appear in the $map->extent till next method is called) to get the negative extent to the map object, I still get error that the map cannot be drawn. > > Info: object(ms_rect_obj)#46 (5) { ["_handle_"]=> resource(361) of type > (Unknown) ["minx"]=> int(-747200) ["miny"]=> int(-1043200) ["maxx"]=> > int(-747000) ["maxy"]=> int(-1046000) } > > *Warning*: [MapServer Error]: msDrawMap(): Unable to initialize image. > in > */var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* > on line *106* > > *Warning*: [MapServer Error]: msCalculateScale(): Invalid image extent, minx=-1.000000, miny=-1.000000, maxx=-1.000000, maxy=-1.000000. in > */var/www/intranet.centaur.startnet.cz/htdocs/modules/maps/CMap.cls.php* > on line *106* > > Here is my code (it's copied from the hello example): > > $map = ms_newMapObj($this->m_Row['MapFilePath']); > $extent = ms_newRectObj(); > $extent->minx = -747200; > $extent->miny = -1043200; > $extent->maxx = -747000; > $extent->maxy = -1046000; > $map->extent = $extent; > $image = $map->draw(); > $map_file = $image->saveWebImage(); > > Does Mapserver support negative values in extent? If not, is there any workaround? I will appreciate any suggestion. > > -- > Miroslav ?ulc, CEO > StartNet s.r.o. > ---------------------------------------------------- > Vrchlick?ho 161/5, Praha 5, 150 00, ?esk? republika > ---------------------------------------------------- > ICQ: 60144073 > web: www.startnet.cz, www.novavystavba.cz > ---------------------------------------------------- > mobil: +420 603 711 413 > telefon: +420 257 225 602 > ---------------------------------------------------- > > -- +-----------------------------------------------------------------+ |Paul Spencer pspencer at dmsolutions.ca | +-----------------------------------------------------------------+ |Applications & Software Development | |DM Solutions Group Inc http://www.dmsolutions.ca/| +-----------------------------------------------------------------+ From kenlord at GMAIL.COM Tue Dec 14 09:36:39 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 14 Dec 2004 09:36:39 -0800 Subject: How to join data tables for visualization In-Reply-To: Message-ID: Hi Holger, If you are very careful, you can simply add the new fields to the dbf file of the shapefile, saving the need to perform the join everytime you view that layer. If you do not have the GIS software to add the fields and corresponding data in a safe way, and if the shapefile isn't too huge in the number of records, you can add the fields using a spreadsheet program such as Excel. Just be absolutely sure you do not re-order the records or add any records or they will loose their assocciation with the corresponding shapes and indices of the shapefile. Also only do this if the data in the shapefile is fairly simple as it is easy to loose the data types and field widths using this method. But it works in a pinch. Cheers, Ken Lord Vancouver BC On Tue, 14 Dec 2004 06:52:48 -0600, Holger Floerke wrote: > Hi there, > > how can I join additional data fields to my shape-file? > > There is a shapefile only with "id" and "name" for the shapes. I have > additional data (like population) as a dbf file, I would like to dynamically > join to the shape values and use theese joined values for dividing the > shapes into different classes. > > There is a JOIN object mentioned within the mapfile reference, but it's for > query objects only. > > Any idea? > > HolgeR > From Dan.Liu at STATE.MN.US Tue Dec 14 10:18:57 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Tue, 14 Dec 2004 12:18:57 -0600 Subject: shapes in an extent Message-ID: Hi, Is there a function that returns all shapes in an extent (rectangle object) in PHP/Mapscript? Thanks. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From agillesp at VT.EDU Tue Dec 14 10:52:57 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 14 Dec 2004 13:52:57 -0500 Subject: Print-to-scale ideas Message-ID: Is there anyway a MapServer map might be printed to scale over the web? Or is this an impossible task due to the discrepancies in resolutions among the web users' monitors / printers? If it's not impossible, can someone point me somewhere / offer any ideas to get started on this? Thanks. -Abe From woodbri at SWOODBRIDGE.COM Tue Dec 14 10:46:52 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 14 Dec 2004 13:46:52 -0500 Subject: Print-to-scale ideas In-Reply-To: <5EBCCA0E-4E01-11D9-8CC6-000A957A0F9C@vt.edu> Message-ID: I'm not sure of the details of how to do this, but I think you best bet at doing this is with either pdf or postscript. Both of these should give you the control you need to control the physical size of the image on the output medium. -Steve Abe Gillespie wrote: > Is there anyway a MapServer map might be printed to scale over the web? > Or is this an impossible task due to the discrepancies in resolutions > among the web users' monitors / printers? > > If it's not impossible, can someone point me somewhere / offer any > ideas to get started on this? > > Thanks. > -Abe > From ealpert at DIGITALGLOBE.COM Tue Dec 14 11:20:33 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 14 Dec 2004 12:20:33 -0700 Subject: shapes in an extent Message-ID: queryByRect A description is found in: http://www.maptools.org/php_mapscript/index.phtml?page=php_mapscript_doc s44.txt -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Dan Liu Sent: Tuesday, December 14, 2004 11:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] shapes in an extent Hi, Is there a function that returns all shapes in an extent (rectangle object) in PHP/Mapscript? Thanks. Dan -------------- next part -------------- An HTML attachment was scrubbed... URL: From sirronj at PACBELL.NET Tue Dec 14 11:23:20 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Tue, 14 Dec 2004 11:23:20 -0800 Subject: Trouble with build on new machine Message-ID: Hello, I am installing mapserver on a new linux box and I am getting this on the make: ./libmap.a(mapwfslayer.o)(.text+0x9e): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0xcd): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0xfd): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0x12d): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' ./libmap.a(mapwfslayer.o)(.text+0x152): In function `msBuildRequestParams': : undefined reference to `msOWSLookupMetadata' collect2: ld returned 1 exit status make: *** [shp2img] Error 1 Am I missing something or is there a configure option I should be using? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From kenlord at GMAIL.COM Tue Dec 14 12:08:05 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 14 Dec 2004 14:08:05 -0600 Subject: TOLERANCEUNITS problem Message-ID: Hi List, I have a problem querying with mapserver 4.2 CGI. The problem did not exist in 3.6. To query a point, I must have the 'TOLERANCE' set in my layer despite the documentation declaring that there is a default value of 3 pixels. I recall mapserver 3.6 using the default value correctly without having to place the tolerance in the layer. The 'TOLERANCEUNITS' setting is having no effect at all, acting as if it is permanently set to kilometers ... no matter for my overview scale map, but a real pain for my local zoomed in maps. The problem seems to happen with points, lines or polygons. Any suggestions? Has this been noticed and fixed in 4.4? Thanks, Ken Lord Vancouver BC From akrherz at IASTATE.EDU Tue Dec 14 14:27:48 2004 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Tue, 14 Dec 2004 16:27:48 -0600 Subject: Trouble with build on new machine In-Reply-To: Message-ID: Hi Joseph, On Tue, 14 Dec 2004, Joseph Norris wrote: > Hello, > > I am installing mapserver on a new linux box and I am getting this on the > make: > > ./libmap.a(mapwfslayer.o)(.text+0x9e): In function `msBuildRequestParams': > : undefined reference to `msOWSLookupMetadata' > ./libmap.a(mapwfslayer.o)(.text+0xcd): In function `msBuildRequestParams': > : undefined reference to `msOWSLookupMetadata' > ./libmap.a(mapwfslayer.o)(.text+0xfd): In function `msBuildRequestParams': > : undefined reference to `msOWSLookupMetadata' > ./libmap.a(mapwfslayer.o)(.text+0x12d): In function `msBuildRequestParams': > : undefined reference to `msOWSLookupMetadata' > ./libmap.a(mapwfslayer.o)(.text+0x152): In function `msBuildRequestParams': > : undefined reference to `msOWSLookupMetadata' > collect2: ld returned 1 exit status > make: *** [shp2img] Error 1 > > Am I missing something or is there a configure option I should be using? Did you start over with a new archive extract on this new machine? Or did you copy over your build directory from the old machine? Either way, send along the ./configure options and make sure that you do a 'make clean' before building... daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From steve.lime at DNR.STATE.MN.US Tue Dec 14 15:05:23 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Dec 2004 17:05:23 -0600 Subject: TOLERANCEUNITS problem Message-ID: We did notice the issue with the default value of TOLERANCE. We decided to update the documentation for 4.4 rather than change the value. Didn't want to break 4.x apps. I'm not aware of any issues with tolerance units. The query code itself has been very stable for a good while now. The default tolerance unit is PIXELs. If you have an example mapfile and test case that would help. I'd try 4.4 first to see if that makes like better. Steve >>> Ken Lord 12/14/2004 2:08:05 PM >>> Hi List, I have a problem querying with mapserver 4.2 CGI. The problem did not exist in 3.6. To query a point, I must have the 'TOLERANCE' set in my layer despite the documentation declaring that there is a default value of 3 pixels. I recall mapserver 3.6 using the default value correctly without having to place the tolerance in the layer. The 'TOLERANCEUNITS' setting is having no effect at all, acting as if it is permanently set to kilometers ... no matter for my overview scale map, but a real pain for my local zoomed in maps. The problem seems to happen with points, lines or polygons. Any suggestions? Has this been noticed and fixed in 4.4? Thanks, Ken Lord Vancouver BC From bob.basques at CI.STPAUL.MN.US Tue Dec 14 15:46:17 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Tue, 14 Dec 2004 17:46:17 -0600 Subject: Using Attributes Message-ID: All, I have a SHP file with a "COLOR" column in it with a RGB value (255 255 255). How do I use this in the MAPFILE as a COLOR value? I've been looking on and off all day in the Wiki, I've come to the conclusion that I'm not using the correct Search term. Does anyone have an example of how to use the column attribute value as the color value in the MAPFILE? LAYER NAME 'cities' DATA '' STATUS DEFAULT CLASSITEM 'MUNI_NAME' CLASS OUTLINECOLOR 207 50 150 COLOR '' SIZE 2 SYMBOL 'circle' END END I think I'm having a brain freeze or something . . . . . mutter, mutter . . . . bobb From cord at LUPINEX.COM Tue Dec 14 15:53:39 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Tue, 14 Dec 2004 15:53:39 -0800 Subject: Using Attributes In-Reply-To: <41BF7B49.2050602@ci.stpaul.mn.us> Message-ID: I believe the LAYER entry closest to what you want is STYLEITEM - but reading docs, it appears to be experimental, and on how to use it is unclear - i would guess the intention is that the attribute would point to an indexed item in your STYLE collection. So, this would not be appropriate for color. Bob Basques wrote: > All, > > I have a SHP file with a "COLOR" column in it with a RGB value (255 255 > 255). > > How do I use this in the MAPFILE as a COLOR value? > > I've been looking on and off all day in the Wiki, I've come to the > conclusion that I'm not using the correct Search term. Does anyone have > an example of how to use the column attribute value as the color value > in the MAPFILE? > > > > LAYER > NAME 'cities' > DATA '' > STATUS DEFAULT > CLASSITEM 'MUNI_NAME' > CLASS > OUTLINECOLOR 207 50 150 > COLOR '' > SIZE 2 > SYMBOL 'circle' > END > END > > > I think I'm having a brain freeze or something . . . . . mutter, mutter > . . . . > > bobb -------------------- 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 mike.and.kerry at GMAIL.COM Tue Dec 14 16:00:02 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Tue, 14 Dec 2004 15:00:02 -0900 Subject: MapServer/FreeGIS and the market In-Reply-To: <007001c4deb1$70ab7900$cf19eac8@diamante> Message-ID: I believe it will be a while before you start to see Mapserver related job postings in any large quantity. To a certain extent this is because web-mapping is still a relatively small segment of the GIS industry and there are many more GIS Analyst/ Cartographer/ Image Analyst positions than positions that solely deal with web based mapping. Many shops that produce Mapserver or ArcIMS sites have a GIS Analyst working double duty when necessary or an IT guy who can throw together and manage IMS sites. That being said I think there is a definite advantage to knowing how to create and manage web sites with multiple tools. Companies and Gov't Institutions go through phases of "we are going Microsoft/ ESRI everything" or "Open Source is CHEAP lets do everything Open Source" and someone who can adapt to meet their needs using the tools available will always be valuable. To answer your questions: I don't think experience with free GIS or Mapserver is enough to get you started. I would recommend at least a GIS certificate from a Community College or Technical University. This will give you some basic foundations in the theory behind GIS as well as some hands on with different GIS software (although these days ESRI seems to have a lock on the education side). If this option is not available start volunteering for local non-profit organizations (like conservation groups, crime stoppers, etc) set up some nifty web sites for them and then use them for resume padding. I don't believe that commercial software companies are actively trying to discourage jobs that use free GIS software in any way other than their natural push to encourage people to use their software. We use Mapserver for all our web mapping needs, but the rest of our GIS infrastructure is ESRI based. When I mention this to the ESRI folks I usually get a mixture of bewilderment and mild amusement from them. Most ESRI folks have absolutely no idea what Mapserver is and those that do don't seem to know what its capabilities are compared to their software. On Fri, 10 Dec 2004 09:11:34 -0300, Eduardo Patto Kanegae wrote: > Hi folks, > > this is more a discussion and "opinion-collector" topic than a technical > question. > > Despite the known high potencial of MapServer and other very useful free gis > tools, it's still very hard to find MapServer/Free GIS job offers at gis > jobs websites or other GIS related sites. > > Why do you think this happen this way? > - do you think mapserver/freegis packs are not sufficient known to get a > place at commercial media? > - or could commercial proprietary software companies be doing something to > avoid free gis from growing up? > - or does companies know that this kind of professional is more difficult to > find and then prefer not to loose time on high media announces and look for > professionals only via people networking? > > best regards, > > Eduardo Patto Kanegae > http://www.webmapit.com.br > ICQ: 303747254 > MSN: eduardo_patto at hotmail.com > phone:+55(16)9994-2928 > > Treinamento em UMN MapServer - > http://www.webmapit.com.br/ptbr/?menuoption=mapserver > F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum > > ***Fim da Mensagem / End of Message *** > From kenlord at GMAIL.COM Tue Dec 14 16:24:25 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 14 Dec 2004 16:24:25 -0800 Subject: TOLERANCEUNITS problem In-Reply-To: Message-ID: Hi Steve, Thanks for your response, I think I've found the problem. I had UNITS instead of TOLERANCEUNITS in my layer definition. Curiously, this did not cause the map to fail, or to look wrong. My issue only occured if the erroneous UNITS keyword was placed below TOLERANCE in the layer definition, always leading to a TOLERANCE measured in kilometers. If it was placed above, it was disregarded and the queries worked as normal. That solves the point query problem, but polygon queries still have a minor issue. Using no TOLERANCEUNITS (using the default), or TOLERANCEUNITS set to pixels in the layer definition is returning query results for the nearest feature no matter how far away you click from it. I must set TOLERANCEUNITS to meters with a reasonable TOLERANCE distance to keep it working properly. However, I have not been able to replicate this problem on a simple html website that I could post here, and I have the workaround, so it is probably not worth pursuing. Thanks again, Ken Lord Vancouver BC On Tue, 14 Dec 2004 17:05:23 -0600, Steve Lime wrote: > We did notice the issue with the default value of TOLERANCE. We decided > to update the documentation for 4.4 rather than change the value. Didn't > want to break 4.x apps. I'm not aware of any issues with tolerance > units. The query code itself has been very stable for a good while now. > The default tolerance unit is PIXELs. If you have an example mapfile and > test case that would help. I'd try 4.4 first to see if that makes like > better. > > Steve > > >>> Ken Lord 12/14/2004 2:08:05 PM >>> > Hi List, > > I have a problem querying with mapserver 4.2 CGI. The problem did not > exist > in 3.6. > > To query a point, I must have the 'TOLERANCE' set in my layer despite > the > documentation declaring that there is a default value of 3 pixels. I > recall > mapserver 3.6 using the default value correctly without having to place > the > tolerance in the layer. > > The 'TOLERANCEUNITS' setting is having no effect at all, acting as if > it is > permanently set to kilometers ... no matter for my overview scale map, > but > a real pain for my local zoomed in maps. > > The problem seems to happen with points, lines or polygons. > > Any suggestions? Has this been noticed and fixed in 4.4? > > Thanks, > Ken Lord > Vancouver BC > From cernohor at CENTRUM.CZ Tue Dec 14 16:35:27 2004 From: cernohor at CENTRUM.CZ (Karel Cernohorsky) Date: Wed, 15 Dec 2004 01:35:27 +0100 Subject: Troubles with regex-0.12 Message-ID: Hi list, I am trying to compile mapserver on windows 2000 but unfortunately I have a problem to compile required regex-0.12 to get necessary regex.obj I have set up all necessary options in nmake.opt and I have run nmake /f Makefile.vc And it is compiling ok until it reachs the regex. When it is trying to run following command cl /nologo /MD /W3 UG -Id:\MapServerSupportProjects\gdwin32 -Id:\MapserverCompilation\maps erver\regex-0.12 -DHAVE_STRING_H -DREGEX_MALLOC -DNEED_STRCASEC MP -DNEED_STRNCASECMP -DNEED_STRLCAT -DWIN32 -D_WIN32 -DUSE_GD_PNG -D USE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_GIF -DGD_HAS_GDIMAGEGIFPTR -DUSE_GD_FT -D GD_HAS_GETBITMAPFONT -DIGNORE_MISSING_DATA -DENABLE_STDERR_DEBUG -DUSE_GD_ANTIALIAS /c d:\MapserverCompilation\mapserver\regex-0.12\regex.c /Fod:\MapserverCompilation\mapserver\regex-0.12\regex.obj I am receiving many of following warnings d:\MapserverCompilation\mapserver\regex-0.12\regex.c(768) : warning C4018: '<' : signed/unsigned mismatch d:\MapserverCompilation\mapserver\regex-0.12\regex.c(774) : warning C4018: '<' : signed/unsigned mismatch d:\MapserverCompilation\mapserver\regex-0.12\regex.c(1123) : warning C4018: '<' : signed/unsigned mismatch d:\MapserverCompilation\mapserver\regex-0.12\regex.c(1189) : warning C4018: '>' : signed/unsigned mismatch d:\MapserverCompilation\mapserver\regex-0.12\regex.c(1204) : warning C4018: '>' : signed/unsigned mismatch ... and it leads to this conclusion Creating library mapserver_i.lib and object mapserver_i.exp regex.obj : error LNK2019: unresolved external symbol _printchar referenced in function _print_fastmap libmap.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. Am I missing something? Can anybody send me Makefile.vc for regex-0.12? Thanks for help, Karel Cernohorsky. arel --- Odchoz? zpr?va neobsahuje viry. Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). Verze: 6.0.811 / Virov? b?ze: 552 - datum vyd?n?: 14.12.2004 From jacob.delfos at MAUNSELL.COM Tue Dec 14 16:32:20 2004 From: jacob.delfos at MAUNSELL.COM (Jacob Delfos) Date: Wed, 15 Dec 2004 08:32:20 +0800 Subject: Print-to-scale ideas Message-ID: Abe, I've done this in the past. As Steve says, PDF would be safest, because you can control size and resolution. Alternatively, you can take the risk of assuming your clients will print at 96dpi (which most users do, Internet explorer is set up this way by default), and then use a print scale variable which is derived from the normal scale variable (multiply with constant). You could also manually calculate your scale from scratch, by calculating the distance on the ground, and calculating your distance on paper (96 pixels to an inch). But do not assume the 96dpi to always be true. Jacob -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Stephen Woodbridge Sent: 15 December 2004 02:47 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Print-to-scale ideas I'm not sure of the details of how to do this, but I think you best bet at doing this is with either pdf or postscript. Both of these should give you the control you need to control the physical size of the image on the output medium. -Steve Abe Gillespie wrote: > Is there anyway a MapServer map might be printed to scale over the web? > Or is this an impossible task due to the discrepancies in resolutions > among the web users' monitors / printers? > > If it's not impossible, can someone point me somewhere / offer any > ideas to get started on this? > > Thanks. > -Abe > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenlord at GMAIL.COM Tue Dec 14 17:06:19 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 14 Dec 2004 17:06:19 -0800 Subject: Using Attributes In-Reply-To: <41BF7B49.2050602@ci.stpaul.mn.us> Message-ID: Hi Bob, Unless things have changed in the last year, you can't do it the way you want to with shapefiles. ... I do hope things have changed. One way to get around it, if you have access to using MapInfo is to create a MapInfo table containing the data you want to display, colouring the features using a colour table with Mapinfo. Then use an OGR connection to display the MapInfo table as a layer in MapServer and set a STYLEITEM to "AUTO" within the layer definition. I've done this with regional scale geology polygons over canada, so that I could be sure the polygons were being coloured using the standard Geological Survey of Canada colours. If I had used a shapefile and coloured the polygons by classes, there would have been too many classes within the layer for MapServer to handle ... and it would have taken an unreasonable effort to make all those classes. In my example it did still take some effort to colour the features in MapInfo by a colour table given the large dataset. But the end result has been good. Cheers, Ken Lord Vancouver BC On Tue, 14 Dec 2004 17:46:17 -0600, Bob Basques wrote: > All, > > I have a SHP file with a "COLOR" column in it with a RGB value (255 255 > 255). > > How do I use this in the MAPFILE as a COLOR value? > > I've been looking on and off all day in the Wiki, I've come to the > conclusion that I'm not using the correct Search term. Does anyone have > an example of how to use the column attribute value as the color value > in the MAPFILE? > > LAYER > NAME 'cities' > DATA '' > STATUS DEFAULT > CLASSITEM 'MUNI_NAME' > CLASS > OUTLINECOLOR 207 50 150 > COLOR '' > SIZE 2 > SYMBOL 'circle' > END > END > > I think I'm having a brain freeze or something . . . . . mutter, mutter > . . . . > > bobb > From woodbri at SWOODBRIDGE.COM Tue Dec 14 17:14:05 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 14 Dec 2004 20:14:05 -0500 Subject: Using Attributes In-Reply-To: <55dd01fa04121417061b8f6150@mail.gmail.com> Message-ID: Ken or Bob, This sounds like a reasonable feature request. You should write an enhancement request bug in bugzilla. -Steve Ken Lord wrote: > Hi Bob, > > Unless things have changed in the last year, you can't do it the way > you want to with shapefiles. ... I do hope things have changed. > > One way to get around it, if you have access to using MapInfo is to > create a MapInfo table containing the data you want to display, > colouring the features using a colour table with Mapinfo. > > Then use an OGR connection to display the MapInfo table as a layer in > MapServer and set a STYLEITEM to "AUTO" within the layer definition. > > I've done this with regional scale geology polygons over canada, so > that I could be sure the polygons were being coloured using the > standard Geological Survey of Canada colours. If I had used a > shapefile and coloured the polygons by classes, there would have been > too many classes within the layer for MapServer to handle ... and it > would have taken an unreasonable effort to make all those classes. > > In my example it did still take some effort to colour the features in > MapInfo by a colour table given the large dataset. But the end result > has been good. > > Cheers, > Ken Lord > Vancouver BC > > > > > On Tue, 14 Dec 2004 17:46:17 -0600, Bob Basques > wrote: > >>All, >> >>I have a SHP file with a "COLOR" column in it with a RGB value (255 255 >>255). >> >>How do I use this in the MAPFILE as a COLOR value? >> >>I've been looking on and off all day in the Wiki, I've come to the >>conclusion that I'm not using the correct Search term. Does anyone have >>an example of how to use the column attribute value as the color value >>in the MAPFILE? >> >>LAYER >> NAME 'cities' >> DATA '' >> STATUS DEFAULT >> CLASSITEM 'MUNI_NAME' >> CLASS >> OUTLINECOLOR 207 50 150 >> COLOR '' >> SIZE 2 >> SYMBOL 'circle' >> END >>END >> >>I think I'm having a brain freeze or something . . . . . mutter, mutter >>. . . . >> >>bobb >> > > From kenlord at GMAIL.COM Tue Dec 14 17:43:38 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Tue, 14 Dec 2004 17:43:38 -0800 Subject: MapServer/FreeGIS and the market In-Reply-To: <631c85c1041214160022a99c9f@mail.gmail.com> Message-ID: Hi Mike, A side note to your point about ESRI vs MapServer .... Things must be different here in Vancouver BC. ESRI is very familiar with MapServer here and definately is against it. I had the 'pleasure' of dealing with an ESRI salesmen here at a mining conference last year who not only tried to put down MapServer in every way possible, but also dragged in the name of a local MapServer proponent, claiming that the person had gotten fed up with and dumped MapServer for ArcIMS, not knowing that I knew the person myself. That person had a great laugh hearing how ESRI had told me of his demise ... I gave him the news right after he had brought me up to date with a number of mapserver advances his group was working on. I myself have no experience with ArcIMS, and only limited experience with ArcSDE, but soon after the encounter with the ESRI salesmen I priced out what it would cost to run ArcIMS with ArcSDE on an Oracle database and found the price to be roughly $50,000 not including roughly $15,000 in annual maintenance fees. So take your open source experience, apply for jobs that don't even mention open source ... and tell the company how you can save them $50,000+ by using MapServer with PostGIS. It's as if they are getting you for free while you build a product for them. Since my run-in with that ESRI salesmen at the mining conference, I have built what I think is a powerful mining/exploration Mapserver website for a small exploration company ... for a fraction of what just the software would have cost from ESRI. In fact if ESRI were the only option, the project would have remained a dream. In other words, open source gives you leads into the market for jobs or projects that are simply unaffordable using ESRI. You need to show the companies that cheaper options exist that can give them what they want ... and that will keep you busy. Cheers, Ken Lord Vancouver BC On Tue, 14 Dec 2004 15:00:02 -0900, Mike Davis wrote: > I believe it will be a while before you start to see Mapserver related > job postings in any large quantity. To a certain extent this is > because web-mapping is still a relatively small segment of the GIS > industry and there are many more GIS Analyst/ Cartographer/ Image > Analyst positions than positions that solely deal with web based > mapping. Many shops that produce Mapserver or ArcIMS sites have a GIS > Analyst working double duty when necessary or an IT guy who can throw > together and manage IMS sites. > > That being said I think there is a definite advantage to knowing how > to create and manage web sites with multiple tools. Companies and > Gov't Institutions go through phases of "we are going Microsoft/ ESRI > everything" or "Open Source is CHEAP lets do everything Open Source" > and someone who can adapt to meet their needs using the tools > available will always be valuable. > > To answer your questions: > > I don't think experience with free GIS or Mapserver is enough to get > you started. I would recommend at least a GIS certificate from a > Community College or Technical University. This will give you some > basic foundations in the theory behind GIS as well as some hands on > with different GIS software (although these days ESRI seems to have a > lock on the education side). If this option is not available start > volunteering for local non-profit organizations (like conservation > groups, crime stoppers, etc) set up some nifty web sites for them and > then use them for resume padding. > > I don't believe that commercial software companies are actively trying > to discourage jobs that use free GIS software in any way other than > their natural push to encourage people to use their software. We use > Mapserver for all our web mapping needs, but the rest of our GIS > infrastructure is ESRI based. When I mention this to the ESRI folks I > usually get a mixture of bewilderment and mild amusement from them. > Most ESRI folks have absolutely no idea what Mapserver is and those > that do don't seem to know what its capabilities are compared to their > software. > > On Fri, 10 Dec 2004 09:11:34 -0300, Eduardo Patto Kanegae > wrote: > > Hi folks, > > > > this is more a discussion and "opinion-collector" topic than a technical > > question. > > > > Despite the known high potencial of MapServer and other very useful free gis > > tools, it's still very hard to find MapServer/Free GIS job offers at gis > > jobs websites or other GIS related sites. > > > > Why do you think this happen this way? > > - do you think mapserver/freegis packs are not sufficient known to get a > > place at commercial media? > > - or could commercial proprietary software companies be doing something to > > avoid free gis from growing up? > > - or does companies know that this kind of professional is more difficult to > > find and then prefer not to loose time on high media announces and look for > > professionals only via people networking? > > > > best regards, > > > > Eduardo Patto Kanegae > > http://www.webmapit.com.br > > ICQ: 303747254 > > MSN: eduardo_patto at hotmail.com > > phone:+55(16)9994-2928 > > > > Treinamento em UMN MapServer - > > http://www.webmapit.com.br/ptbr/?menuoption=mapserver > > F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum > > > > ***Fim da Mensagem / End of Message *** > > > From bob.basques at CI.STPAUL.MN.US Tue Dec 14 18:07:46 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Tue, 14 Dec 2004 20:07:46 -0600 Subject: Using Attributes In-Reply-To: Message-ID: All, Ok, then. Let's forget a static color value for the time being. What about a color ramp. Can a color ramp be used somehow (without going a database route, or using MapScript) to color a set of polygons based on some value in a column, or even simply divide the number of Polygons (or entities) into the color ramp and color them based on sorting. Anything, to get a varied color range for neighboring polygons. I'm just trying to color the polygons uniquely is all. I actually added in the column for coloring thinking it to be a simple operation for MapServer. I did it as a 7 color Ramp that I applied by sorting the names alphabetically. I can add in the 7 classes needed to do it easy enough the long way. It will just look really weird going at it backwards, especially when I have to explain to some mapserver admin in the future that installs a new version and asks me why I'm macthing the RGB values in the Attribute to populate the CLASS with the same values. Don't you think? I guess I'm just getting (too) used to MapServer being able to do everything I ask of it. I guess I need to watch my step. :c) Stephen Woodbridge wrote: >Ken or Bob, > >This sounds like a reasonable feature request. You should write an >enhancement request bug in bugzilla. > > Done. Thanks for the help. I added in the bug enhancement per your suggestion. I hope I didn't keep it too short and simple though. bobb >-Steve > >Ken Lord wrote: > > >>Hi Bob, >> >>Unless things have changed in the last year, you can't do it the way >>you want to with shapefiles. ... I do hope things have changed. >> >> >> >> >>>All, >>> >>>I have a SHP file with a "COLOR" column in it with a RGB value (255 255 >>>255). >>> >>>How do I use this in the MAPFILE as a COLOR value? >>> >>>I've been looking on and off all day in the Wiki, I've come to the >>>conclusion that I'm not using the correct Search term. Does anyone have >>>an example of how to use the column attribute value as the color value >>>in the MAPFILE? >>> >>>LAYER >>>NAME 'cities' >>>DATA '' >>>STATUS DEFAULT >>>CLASSITEM 'MUNI_NAME' >>>CLASS >>> OUTLINECOLOR 207 50 150 >>> COLOR '' >>> SIZE 2 >>> SYMBOL 'circle' >>>END >>>END >>> >>>I think I'm having a brain freeze or something . . . . . mutter, mutter >>>. . . . >>> >>>bobb >>> >>> >>> >> >> > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From steve.lime at DNR.STATE.MN.US Tue Dec 14 21:07:47 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 14 Dec 2004 23:07:47 -0600 Subject: Super simple example that may interest folks... Message-ID: Hi all: I spent a bit of time this afternoon working up a sample application for our graphic designer and some business users to preview species range maps. It shows some basic functionionality for modifying layer properties on the fly, plus some simple javascript. There are about 400 identical shapefiles that vary by pathname behind it. Both the HTML file and map file are at: http://maps.dnr.state.mn.us/eco/rsg/minnesota/test.html http://maps.dnr.state.mn.us/eco/rsg/minnesota/range.map Hope it might help someone get started. Steve From covariance at SHAW.CA Tue Dec 14 21:51:35 2004 From: covariance at SHAW.CA (Bob Bruce - Programmer) Date: Tue, 14 Dec 2004 23:51:35 -0600 Subject: Internal Server Error - UNIX CGI - But not PHP MapScript Message-ID: My hosting provider has tried to set up MapServer on a UNIX server but we have run into this problem. I can run the the PHP MapScript MapServerRecipe examples fine but when I try to run the MapServer CGI I get this problem. I tried to run the Itasca workshop example and it gave this "Internal Server Error" so then I tried to run the most basic case of the the CGI in mode=map and it still gave this error. The strange thing is that I used exactly the same map with the first PHP Mapscript MapServerRecipe example and it worked great. After reviewing similar error reports in the Listserv I cannot come up with a solution, so I'm asking for help from somebody out there. My url to attempt to generate the most simple mode=map image is: http://murals.bighostbox.com/cgi-bin/mapserv?map=/home/m/murals/html/MapServ erRecipes/hello.map&map_web_imagepath=/home/m/murals/html/tmp/&map_web_image url=/tmp/&mode=map (when I send the same URL on my Windows server, with the directory names changed for the Windows system, it displays the image properly, which leads me to believe that the map file is OK) however when I run the php script that uses this same map file: http://murals.bighostbox.com/MapServerRecipes/hello.phtml it works OK. The world protection on my html directory is: r-x , the world protection on my cgi-bin directory is: r-x and the world protection on the mapserv CGI file in this directory is: r-x. The world protection on the tmp directory where the map image files are stored is: rwx. So I'm assuming that the protections are set up OK. When I run phpinfo() (which you can see by going to: http://murals.bighostbox.com), I get: MapServer Version MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.220 $ $Date: 2004/11/16 17:23:13 $) The map file is: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 # IMAGECOLOR 200 255 255 IMAGECOLOR 255 0 0 IMAGETYPE GIF WEB IMAGEPATH "/home/m/murals/html/tmp/" IMAGEURL "/tmp/" # IMAGEPATH "/var/www/html/tmp/" # IMAGEURL "/tmp/" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'Hello world. Mapserver rocks.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END thanks, in advance, for your help, Bob Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From floerke at DOCTRONIC.DE Tue Dec 14 23:41:39 2004 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Wed, 15 Dec 2004 01:41:39 -0600 Subject: More than one symbol for one point Message-ID: Is it possible to draw more than one symbol (dependent on some data fields) for one point of a point layer? For example drawing cities with a circle, but if the city has an airport (data value "[airport]=1"), then draw an additional airport symbol near the city without having another airport layer. Thanks in advance, HolgeR From unicoletti at PROMETEO.IT Tue Dec 14 23:49:27 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 15 Dec 2004 08:49:27 +0100 Subject: SWIGMapscript: processLegendTemplate throws error In-Reply-To: Message-ID: On Mon, 2004-12-13 at 10:16 -0700, Sean Gillies wrote: > Can you not try and catch, and pass in the case of an exception? > This is essentially what happens with shp2pdf. > I have modified the DrawMap example as follows: mapObj map = new mapObj(args[0]); map.getImagecolor().setRGB(153, 153, 204); styleObj st = map.getLayer(1).getClass(0).getStyle(0); st.getColor().setHex("#000000"); outputFormatObj pdf=new outputFormatObj("pdf","pdf"); //outputFormatObj flash=new outputFormatObj("SWF","swf"); imageObj img=null; try { map.setOutputFormat(pdf); //map.setOutputFormat(flash); //map.getScalebar().setStatus(mapscript.MS_OFF); System.out.println("Scalebar status: "+map.getScalebar().getStatus()); img = map.draw(); System.out.println("The map will be drawn to:"+args[1]); } catch(Throwable e) { } img.save(args[1], map); but, as I suspected it does not work because draw() does not return and img is therefore null. I attach a patch for this PDF specific error. Let me know if you like it or if we should work it out differently. Regards, Umberto > I still have a hard time believing that the templating can work. > The mapscript function expects char** and Andreas is passing a > Java array of strings. Does Swig-java translate these > automatically? > > The templating functions certainly do not work for Perl and Python. > > Sean > > On Dec 13, 2004, at 10:08 AM, Umberto Nicoletti wrote: > > > Sean, > > the problem is in maphash.c around line 126. There you can see that > > mapserver sets an error because the user tried to free an already null > > hashTable and this causes Java mapscript to bail out with an exception, > > while in earlier versions the error was ignored. > > > > This is a consequence of my patch for handling mapserver errors as > > exceptions in java mapscript. In fact I have faced a similar error > > while > > trying to produce pdf output from Java mapscript. The same map file was > > working fine with shp2pdf because shp2pdf was just ignoring the error. > > I believe that my patch, while trying to prevent the java virtual > > machine from crashing altogether, ends up throwing exceptions when > > instead it is dealing with a warning (even tough it is an error in > > mapserver terms). > > What we need is probably some fine tuning for situations like this... > > > > Apologies to Andreas if this is not helping you, but I am just trying > > to > > generalize your problem so that we can work out a (hopefully) better > > solution. > > > > Please let me know what you think about this, > > Umberto > > > > > > > > On Mon, 2004-12-13 at 07:23 -0700, Sean Gillies wrote: > >> On Dec 13, 2004, at 6:14 AM, GeoIT wrote: > >> > >>> Dear experts, > >>> I used mapObj.processLegendTemplate successfully with mapserver 4.0. > >>> = > >>> Now I > >>> try to upgrade to version 440 and get the following error using this > >>> = > >>> method: > >>> > >>> Java.lang.UnknownError: Can't free NULL table > >>> > >>> Any ideas ? > >>> > >>> The code is: > >>> public String getProcessedLegendTemplate(mapObj mapObject) { > >>> String[] names =3D {"img", "legend", "scalebar", = > >>> "ref"}; > >>> String[] values =3D {"", "", "", ""}; > >>> int numItems =3D 4; > >>> return mapObject.processLegendTemplate(names, > >>> values,numItems); > >>> } > >>> > >>> > >>> regards > >>> Andreas Paukner-Ruzicka > >>> > >> > >> Andreas, > >> > >> I am very surprised that you could call processLegendTemplate > >> with MapServer 4.0. It was my understanding that Java mapscript > >> was broken at that time. > >> > >> Please enter a report into the MapServer Bugzilla under the > >> SWIG mapscript component and I will investigate and try to fix > >> it before the next release. > >> > >> cheers, > >> Sean > >> > >> -- > >> Sean Gillies > >> sgillies at frii dot com > >> http://users.frii.com/sgillies > > -- > > Umberto Nicoletti > > Prometeo SRL > > -- Umberto Nicoletti Prometeo SRL -------------- next part -------------- A non-text attachment was scrubbed... Name: patch-pdf-bitmapfonts.diff Type: text/x-patch Size: 731 bytes Desc: not available URL: From bob.basques at CI.STPAUL.MN.US Wed Dec 15 00:11:18 2004 From: bob.basques at CI.STPAUL.MN.US (Blammo) Date: Wed, 15 Dec 2004 02:11:18 -0600 Subject: More than one symbol for one point In-Reply-To: Message-ID: Holger Floerke wrote: >Is it possible to draw more than one symbol (dependent on some data fields) >for one point of a point layer? For example drawing cities with a circle, >but if the city has an airport (data value "[airport]=1"), then draw an >additional airport symbol near the city without having another airport layer. > >Thanks in advance, > >HolgeR > > > You would need to adjust the symbol definitions to move the symbols out of the way of each other. These examples just stack two different symbols on top of one another. This might help get you started (i don't believe it can be used with more than two symbols though) bobb ------------------------: in the MAPFILE: LAYER NAME 'monuments-cogo' DATA '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/COGO/Monuments-cogo' GROUP 'monuments' STATUS DEFAULT TYPE POINT LABELITEM 'OLD' CLASS OUTLINECOLOR 0 0 0 COLOR 255 200 200 SIZE 10 SYMBOL 'square' OVERLAYOUTLINECOLOR 0 0 0 OVERLAYCOLOR 0 0 0 OVERLAYSIZE 5 OVERLAYSYMBOL 'circle' END ##HEADER '../../imagemap/monuments_header.html' TEMPLATE '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/COGO/monuments-cogo_record.html' FOOTER '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/COGO/monuments-cogo_footer.html' END LAYER NAME 'monuments-nocogo' DATA '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/NOCOGO/Monuments-nocogo' GROUP 'monuments' STATUS DEFAULT TYPE POINT LABELITEM 'OLD' CLASS OUTLINECOLOR 0 0 0 COLOR 200 200 255 SIZE 10 SYMBOL 'square' OVERLAYOUTLINECOLOR 0 0 0 OVERLAYCOLOR 0 0 0 OVERLAYSIZE 10 OVERLAYSYMBOL 'x' END HEADER '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/NOCOGO/monuments-nocogo_header.html' TEMPLATE '/pearl/SHP/SAINT_PAUL/PUBLIC_WORKS/MONUMENTS/SURVEY/2004_00/NOCOGO/monuments-nocogo_record.html' ##FOOTER '../../imagemap/monuments_footer.html' END In the SYMBOL file: SYMBOL NAME 'circle' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME "x" TYPE vector POINTS 0 4 4 0 -99 -99 0 0 4 4 END END SYMBOL NAME 'square' TYPE vector FILLED true POINTS 0 0 0 4 4 4 4 0 0 0 END END From jcastil1 at TRAGSA.ES Wed Dec 15 00:31:47 2004 From: jcastil1 at TRAGSA.ES (Javier Castillejo Montes) Date: Wed, 15 Dec 2004 09:31:47 +0100 Subject: More than one symbol for one point Message-ID: Hi Holger, Hi all, If I understood properly LAYER #Cities NAME CitiesAndAirports STATUS default TYPE POINT GROUP Legend DATA Cities template "XXX.html" TRANSPARENCY 50 CLASS COLOR 100 100 100 OUTLINECOLOR 0 0 0 TRANSPARENCY END END LAYER #Cities NAME CitiesAndAirports STATUS default TYPE POINT GROUP Legend DATA Cities template "XXX.html" TRANSPARENCY 50 CLASSITEM "HasAirport" CLASS EXPRESSION "YES" STYLE symbol 'Airport' #Assuming you have an airport symbol color -1 -1 -1 OUTLINECOLOR 0 0 0 SIZE XXX END END This is working for me. Regards, Javier -----Mensaje original----- De: Holger Floerke [mailto:floerke at DOCTRONIC.DE] Enviado el: mi?rcoles, 15 de diciembre de 2004 8:42 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] More than one symbol for one point Is it possible to draw more than one symbol (dependent on some data fields) for one point of a point layer? For example drawing cities with a circle, but if the city has an airport (data value "[airport]=1"), then draw an additional airport symbol near the city without having another airport layer. Thanks in advance, HolgeR From floerke at DOCTRONIC.DE Wed Dec 15 00:33:00 2004 From: floerke at DOCTRONIC.DE (Holger Floerke) Date: Wed, 15 Dec 2004 02:33:00 -0600 Subject: More than one symbol for one point Message-ID: May it be an option to use a symbol font and "pre-render" strings within the data corresponding to the features of the point (airport, station,...)? Then I can use the labels to draw the strings with the symbol font and I will get all the symbols in a row. Anybody does this before? HolgeR Blammo schrieb: > Holger Floerke wrote: > >> Is it possible to draw more than one symbol (dependent on some data >> fields) >> for one point of a point layer? For example drawing cities with a circle, >> but if the city has an airport (data value "[airport]=1"), then draw an >> additional airport symbol near the city without having another airport >> layer. >> >> Thanks in advance, >> >> HolgeR >> >> >> > You would need to adjust the symbol definitions to move the symbols out > of the way of each other. These examples just stack two different > symbols on top of one another. > > This might help get you started (i don't believe it can be used with > more than two symbols though) > From james at DANISAT.NET Wed Dec 15 00:28:00 2004 From: james at DANISAT.NET (James Anderson) Date: Wed, 15 Dec 2004 10:28:00 +0200 Subject: Mapserver problems Message-ID: Hi, I am using png format for output. Considering the input format is a png file with transparency, it should not matter what the output format is. The output does not need to have transparency. It could be something like jpeg or bitmap or whatever, and it still should work correctly. I have included two sample maps rendered using the two different mapserver versions. Version 4.2.5 image is mapserv_4-2-5.png This is the correct one. Version 4.4.0 image is mapserv_4-4.png This is the one with the problem. I have also included my symbol file, mobileicon.png, which is a PNG file with transparency. This you can verify with an image editing tool like Photoshop, Paint Shop Pro, Gimp, etc. I have not changed my input map file format between mapserver versions. Maybe I am missing something that version 4.4 needs ? Here is some code from my map file. OUTPUTFORMAT NAME PNG DRIVER 'GD/PNG' MIMETYPE 'image/png' EXTENSION PNG IMAGEMODE RGB END Now this is making a plain 24bit png file with no transparency. But there should not be a problem here as I dont need transparency in my output. What I want is it to overlay my symbol file correctly. In certain places in my project I pipe the output of mapserver into a Java applet. Now java does not like png that well, so I then use JPEG format for output. When using jpeg output I get the same results with 4.2.5 and 4.4 .. eg 4.2.5 works, and 4.4 does not. Here is how I am specifying my symbol: SYMBOL Name "mi83467696824027" Type PIXMAP Image "/home/maps/tempmap/mi83467696824027.png" END now the image file mi83467696824027.png is identical to the mobileicon.png image. It just has another name in this case as its sucked out of database on the fly when I create the map file. My Script file makes a mif file with the lat/lon of where the symbol should be. I then make a layer using the symbol like this. LAYER NAME "mobile_Layer" TYPE point CONNECTIONTYPE OGR CONNECTION "/home/maps/tempmap/83467696824027.mif" STATUS DEFAULT CLASSITEM "Car" CLASS COLOR 0 0 0 SYMBOL "mi83467696824027" END END Ok, now here you will see I specify the color to be 0 0 0 which is black. But if I remove this statement, the Symbol is not drawn at all on either version. On 4.2.5 it accepts the transparency in the symbol image file. In 4.4, it does not. I have also found that on version 4.4, with some different symbol image files with transparency, the color is say green instead of black. This seems to be because its ignoring the transparency and drawing the color in the color map thats supposed to be transparent. This I see as a problem. Have they perhaps added some other statement/directive to go into the mapfile somewhere to solve this ?? Or is this just a nasty bug in the newer version ?? I hope I have clearly explained my difficulties ?? Do any of you out there have any ideas ?? Thanks and Regards, James Anderson. ----- Original Message ----- From: "Sean Gillies" To: "James Anderson" Cc: Sent: Monday, December 13, 2004 5:57 PM Subject: Re: Mapserver problems | On Dec 13, 2004, at 8:09 AM, James Anderson wrote: | | > This is a multi-part message in MIME format. | > | > ------=_NextPart_000_0047_01C4E136.7C4F1E60 | > Content-Type: text/plain; | > charset="Windows-1252" | > Content-Transfer-Encoding: quoted-printable | > | > | > | > Hi, | > | > After Upgrading from Mapserver 4.2.5 | > | > MapServer version 4.2.5 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = | > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER | > INPUT=3DEPPL7 = | > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE | > | > | > To Mapserver 4.4.0 | > MapServer version 4.4.0 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = | > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER | > INPUT=3DEPPL7 = | > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE | > | > I am having problems with symbols and transparency. | > I have been using transparent png files. Since the upgrade the = | > transparent part of the symbols comes out all black. This makes my | > map = | > look rather nasty. | > | > Does anyone have any idea whats changed in the newer mapserver version | > = | > that might cause this ? | > | > Any help appreciated. | > | > Thanks, | > | > James Anderson. | > | | James, | | You omitted what is probably the most important information we | need ... what output format are you using? Do you define | transparency for the output? | | In many cases where a user reports that they have different | results between versions, it turns out that the user has changed | their *usage* between versions. I'm not discounting your problem, | just want to make sure that you've absolutely ruled out that cause. | | Sean | | -- | Sean Gillies | sgillies at frii dot com | http://users.frii.com/sgillies -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv_4-4.png Type: image/png Size: 71228 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv_4-2-5.png Type: image/png Size: 71207 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mobileicon.png Type: image/png Size: 1419 bytes Desc: not available URL: From guillaume.sueur at GEOSIGNAL.FR Wed Dec 15 00:43:24 2004 From: guillaume.sueur at GEOSIGNAL.FR (=?ISO-8859-1?Q?=22Guillaume_SUEUR_=28G=E9osignal=29=22?=) Date: Wed, 15 Dec 2004 09:43:24 +0100 Subject: More than one symbol for one point In-Reply-To: Message-ID: Hi, What I do to solve ths kind of problem is to render the symbols after the map, with the addPoint method. I parse my data table after the map is rendered and add my pins on it. I just need to have X and Y fields in the data table, not even a true spatial one. Guillaume Holger Floerke wrote: > *********************** > Your mail has been scanned by InterScan VirusWall. > ***********-*********** > > > May it be an option to use a symbol font and "pre-render" strings within the > data corresponding to the features of the point (airport, station,...)? Then > I can use the labels to draw the strings with the symbol font and I will get > all the symbols in a row. > > Anybody does this before? > > HolgeR > > Blammo schrieb: > > >>Holger Floerke wrote: >> >> >>>Is it possible to draw more than one symbol (dependent on some data >>>fields) >>>for one point of a point layer? For example drawing cities with a circle, >>>but if the city has an airport (data value "[airport]=1"), then draw an >>>additional airport symbol near the city without having another airport >>>layer. >>> >>>Thanks in advance, >>> >>>HolgeR >>> >>> >>> >> >>You would need to adjust the symbol definitions to move the symbols out >>of the way of each other. These examples just stack two different >>symbols on top of one another. >> >>This might help get you started (i don't believe it can be used with >>more than two symbols though) >> > > > > > -- --------------------------- Guillaume SUEUR GEOSIGNAL - Groupe BVA 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From unicoletti at PROMETEO.IT Wed Dec 15 00:44:30 2004 From: unicoletti at PROMETEO.IT (Umberto Nicoletti) Date: Wed, 15 Dec 2004 09:44:30 +0100 Subject: Print-to-scale ideas In-Reply-To: <41BF351C.3060402@swoodbridge.com> Message-ID: On Tue, 2004-12-14 at 13:46 -0500, Stephen Woodbridge wrote: > I'm not sure of the details of how to do this, but I think you best bet > at doing this is with either pdf or postscript. Both of these should > give you the control you need to control the physical size of the image > on the output medium. > > -Steve > I am using pdf and it seems to work. When printing the user must choose NOT to scale the image to fit the page in the print options dialog. PNG images work too, but you must print from an imaging program like irfan and choose to keep the original resolution. Also, when using png images, the output is not as good as lines appear 'jagged'. Regards, Umberto > Abe Gillespie wrote: > > Is there anyway a MapServer map might be printed to scale over the web? > > Or is this an impossible task due to the discrepancies in resolutions > > among the web users' monitors / printers? > > > > If it's not impossible, can someone point me somewhere / offer any > > ideas to get started on this? > > > > Thanks. > > -Abe > > -- Umberto Nicoletti Prometeo SRL From mhbasa at YAHOO.COM Wed Dec 15 02:59:36 2004 From: mhbasa at YAHOO.COM (Mario H. Basa) Date: Wed, 15 Dec 2004 02:59:36 -0800 Subject: PHP/MapScript processQueryTemplate Help In-Reply-To: <41BF1C32.9060507@dmsolutions.ca> Message-ID: Hello, In my case, processQueryTemplate works fine, but I am having problems with processtemplate. Tags like [map] does not get processed, [layers] always returns "",and the extents ([minx][miny][maxx][maxy]) return values that are a little bit off (i.e. 55791.80240616297, -115384.4500609421, 58256.76106400836, -113553.979622542 => 55595.914369, -115384.450061, 58452.648831, -113553.979623). This happens in both Java and PHP Mapscripts. I wondering now if anybody else is experiencing this. mario. -- Daniel Morissette wrote: > Rene Teniere wrote: > > Hi, > > > > Just trying to get info functionality working in > our site using > > PHP/Mapscript. It seems to get stalled while > processing the template. Am > > I doing this wrong? > > > > Which version of MapServer are you using? There was > bug 569 that was > fixed in v4.2 (quite a while ago) that was causing > problems if you had > TEMPLATE set only at the layer level and not inside > classes like you > have done. If you are using a version older than > 4.2.0 then you should > either upgrade or try adding the TEMPLATE inside the > CLASS as well. > > Other than that, I can't see what's wrong based on > the information that > you provided. If you are using version 4.4 and the > problem persists then > you could maybe file a bug with a small testcase to > reproduce. > > Daniel > -- > ------------------------------------------------------------ > Daniel Morissette > dmorissette at dmsolutions.ca > DM Solutions Group > http://www.dmsolutions.ca/ > ------------------------------------------------------------ > __________________________________ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com From mapserver at GEOWORLD.DE Wed Dec 15 05:26:20 2004 From: mapserver at GEOWORLD.DE (Nicol Hermann) Date: Wed, 15 Dec 2004 14:26:20 +0100 Subject: symbolobj of php mapscript Message-ID: Hi List, i noticed a little problem with the symbolObj of php mapscript. When i set the point values like this: $sympoints[0] = 0; $sympoints[1] = 1; $sympoints[2] = 0.5; $sympoints[3] = 1.5; $symbolobj->setpoints($sympoints); i get back the following array when i execute print_r ($symbolobj->getpointsarray()); Array ( [0] => 0 [1] => 1 [2] => 0 [3] => 1 ) The decimal places of the last two values get lost. According to the docs (http://www2.dmsolutions.ca/mapserver/dl/mapserver-4.x-PHP-MAPSCRIPT-README.txt) setpoints expects double values. To me it seems as they are treated as int. Is this a bug? Also i noticed that numpoints is still zero after the $symbolobj->setpoints($sympoints); call. Thanks for any hints Nicol From hfl at HOME.NL Wed Dec 15 05:27:55 2004 From: hfl at HOME.NL (huub fleuren) Date: Wed, 15 Dec 2004 14:27:55 +0100 Subject: Print-to-scale ideas In-Reply-To: <5EBCCA0E-4E01-11D9-8CC6-000A957A0F9C@vt.edu> Message-ID: Hallo Abe, [see also] OGC docs for SLD scale_denominator i think you can calculate a scale 1 : X cm for an image with this denominator thing. if you know the dimensions of the screen in pixels and the size of the screen on the monitor in inches (together dpi on the screen) you might want to ask the latter size from the computer user you might have to ajust for other dpi settings of a PDF document and other dpi resolution of a downloaded image. from the elements in the following calculation you could also calculate a bbox for a certain scale for a certain device once you know: -dpi on screen of a certain monitor size -or the dpi of the bare image -and/or dpi setting of the pdf/{e}ps. function get_scaledenominator() { /* example from SLD spec linear width = 200 meter //(bbox.width/image.width) 100dpi = 1/100 inches (actual pixel size in inches) 1/100 inches ? 25.4mm/inch = 0.254mm (actual pixel size) 0.254mm ? 1000mm/m = 0.000254m (actual pixel size in meters) 200m ? 0.000254m = 787401.5748 (actual scale denominator) The actual scale denominator is translated into the ?standard? scale denominator as: 0.28mm ? 0.254mm = 1.102362205 (multiplier for scale conversion) 787401.5748 ? 1.102362205 = 868001.736 (standard scale denominator) The standard scale denominator is approximately 868K. The ?type? of the last calculation is correct since the types of its components have the form: actual ? standard/actual = standard */ var meterperinch = 0.0254 var standard_dpi = 72 var actual_dpi = 72 var actual_meter_perpixel = widthperpixel()/(1/actual_dpi * meterperinch) var standard_scale_denominator = ((1/actual_dpi)/(1/standard_dpi)) * actual_meter_perpixel return standard_scale_denominator } Huub Tuesday, December 14, 2004, 7:52:57 PM, you wrote: AG> Is there anyway a MapServer map might be printed to scale over the web? AG> Or is this an impossible task due to the discrepancies in resolutions AG> among the web users' monitors / printers? AG> If it's not impossible, can someone point me somewhere / offer any AG> ideas to get started on this? AG> Thanks. AG> -Abe From TENIERER at GOV.NS.CA Wed Dec 15 05:31:09 2004 From: TENIERER at GOV.NS.CA (Rene Teniere) Date: Wed, 15 Dec 2004 09:31:09 -0400 Subject: PHP/MapScript processQueryTemplate Help Message-ID: Daniel, I tried what you suggested and I get a server timeout. It shouldn't take that long to process should it? Only one shape is selected. >>> Daniel Morissette 2004-12-14 1:00:34 PM >>> Rene Teniere wrote: > Hi, > > Just trying to get info functionality working in our site using > PHP/Mapscript. It seems to get stalled while processing the template. Am > I doing this wrong? > Which version of MapServer are you using? There was bug 569 that was fixed in v4.2 (quite a while ago) that was causing problems if you had TEMPLATE set only at the layer level and not inside classes like you have done. If you are using a version older than 4.2.0 then you should either upgrade or try adding the TEMPLATE inside the CLASS as well. Other than that, I can't see what's wrong based on the information that you provided. If you are using version 4.4 and the problem persists then you could maybe file a bug with a small testcase to reproduce. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From markadams at CUESTASYS.COM Wed Dec 15 06:17:20 2004 From: markadams at CUESTASYS.COM (Mark Adams) Date: Wed, 15 Dec 2004 09:17:20 -0500 Subject: Mapserver 44 image display problem In-Reply-To: <7444910C-4DF2-11D9-8F63-000D9329D732@frii.com> Message-ID: Well, I did the same and it worked - I now get the image in colour. But surely this isn't the way it's supposed to work? One immediate problem that arises is that none of the map file elements that exist at the CLASS level can now be used with raster layers, including the keyimage element I had been using. Should I file a bug for this? Also, I still have the problem with transparency on the GIF I'm using for the north arrow. On both machines that I'm using mapserver 44 on, this image shows with an opaque grey colour background, which should be transparent. I tried setting TRANSPAREMT ON in the map file, now anything white becomes this grey colour - legend image background, map window background etc. Is this a GD issue? Thanks for your help. ------------------------------ Mark Adams Business & Systems Analyst Cuesta Systems Inc. 5230 South Service Road Burlington, ON L7L 5K2 Phone: 905-333-4544 x14 Fax: 905-333-0455 Email: markadams at cuestasys.com -----Original Message----- From: Sean Gillies [mailto:sgillies at frii.com] Sent: Tuesday, December 14, 2004 12:06 PM To: Mark Adams Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: Mapserver 44 image display problem On Dec 14, 2004, at 9:31 AM, Mark Adams wrote: > We're working with the binary download of Mapserver 44 and mapscript > from > the Maptools site. We have everything working OK, however our colour > raster > image is displaying as greyscale, and our north arrow GIF is showing > without transparency. We've noticed this problem on 2 different > machines > we've tried so far. Any ideas what might be causing this problem? > > Thanks in advance, > > Mark Adams > markadams at cuestasys.com > > Mark, I ran into a problem with the same symptoms today. I had been assigning an default class and style to the raster layer. Once I fixed this, full RGB output was restored. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From bfraser at GEOANALYTIC.COM Wed Dec 15 07:18:57 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Wed, 15 Dec 2004 08:18:57 -0700 Subject: Mapserver 44 image display problem Message-ID: Mark, There is a bug filed for a related problem (2003/1/20): http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=270 And an enhancement request a few weeks ago: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1015 I wonder if new bug reports should automatically be posted to the [user? dev?] mailing list? Brent Fraser ----- Original Message ----- From: "Mark Adams" To: Sent: Wednesday, December 15, 2004 7:17 AM Subject: Re: [UMN_MAPSERVER-USERS] Mapserver 44 image display problem > Well, I did the same and it worked - I now get the image in colour. But > surely this isn't the way it's supposed to work? One immediate problem > that arises is that none of the map file elements that exist at the > CLASS level can now be used with raster layers, including the keyimage > element I had been using. > > Should I file a bug for this? > > Also, I still have the problem with transparency on the GIF I'm using > for the north arrow. On both machines that I'm using mapserver 44 on, > this image shows with an opaque grey colour background, which should be > transparent. I tried setting TRANSPAREMT ON in the map file, now > anything white becomes this grey colour - legend image background, map > window background etc. Is this a GD issue? > > Thanks for your help. > > ------------------------------ > Mark Adams > Business & Systems Analyst > Cuesta Systems Inc. > 5230 South Service Road > Burlington, ON L7L 5K2 > Phone: 905-333-4544 x14 > Fax: 905-333-0455 > Email: markadams at cuestasys.com > > > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Tuesday, December 14, 2004 12:06 PM > To: Mark Adams > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Mapserver 44 image display problem > > On Dec 14, 2004, at 9:31 AM, Mark Adams wrote: > > > We're working with the binary download of Mapserver 44 and mapscript > > from > > the Maptools site. We have everything working OK, however our colour > > raster > > image is displaying as greyscale, and our north arrow GIF is showing > > without transparency. We've noticed this problem on 2 different > > machines > > we've tried so far. Any ideas what might be causing this problem? > > > > Thanks in advance, > > > > Mark Adams > > markadams at cuestasys.com > > > > > > Mark, > > I ran into a problem with the same symptoms today. I had been > assigning an default class and style to the raster layer. Once > I fixed this, full RGB output was restored. > > cheers, > Sean > > > -- > Sean Gillies > sgillies at frii dot com > http://users.frii.com/sgillies From osgis.lists at GMAIL.COM Wed Dec 15 07:20:21 2004 From: osgis.lists at GMAIL.COM (David Bitner) Date: Wed, 15 Dec 2004 09:20:21 -0600 Subject: Super simple example that may interest folks... In-Reply-To: Message-ID: Steve, I went to see the js functions that you had in the utils.js and I noticed in your javascript directory that there is a new version of dbox that has the line draw built in. Do you have any examples of a page using this? David On Tue, 14 Dec 2004 23:07:47 -0600, Steve Lime wrote: > Hi all: I spent a bit of time this afternoon working up a sample > application for our graphic designer and some business users to preview > species range maps. It shows some basic functionionality for modifying > layer properties on the fly, plus some simple javascript. There are > about 400 identical shapefiles that vary by pathname behind it. Both the > HTML file and map file are at: > > http://maps.dnr.state.mn.us/eco/rsg/minnesota/test.html > http://maps.dnr.state.mn.us/eco/rsg/minnesota/range.map > > Hope it might help someone get started. > > Steve > From sgillies at FRII.COM Wed Dec 15 07:20:20 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 15 Dec 2004 08:20:20 -0700 Subject: Mapserver 44 image display problem In-Reply-To: Message-ID: On Dec 15, 2004, at 7:17 AM, Mark Adams wrote: > Well, I did the same and it worked - I now get the image in colour. But > surely this isn't the way it's supposed to work? One immediate problem > that arises is that none of the map file elements that exist at the > CLASS level can now be used with raster layers, including the keyimage > element I had been using. > > Should I file a bug for this? > > Also, I still have the problem with transparency on the GIF I'm using > for the north arrow. On both machines that I'm using mapserver 44 on, > this image shows with an opaque grey colour background, which should be > transparent. I tried setting TRANSPAREMT ON in the map file, now > anything white becomes this grey colour - legend image background, map > window background etc. Is this a GD issue? > > Thanks for your help. > > ------------------------------ > Mark Adams > Business & Systems Analyst > Cuesta Systems Inc. > 5230 South Service Road > Burlington, ON L7L 5K2 > Phone: 905-333-4544 x14 > Fax: 905-333-0455 > Email: markadams at cuestasys.com > > > -----Original Message----- > From: Sean Gillies [mailto:sgillies at frii.com] > Sent: Tuesday, December 14, 2004 12:06 PM > To: Mark Adams > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: Mapserver 44 image display problem > > On Dec 14, 2004, at 9:31 AM, Mark Adams wrote: > >> We're working with the binary download of Mapserver 44 and mapscript >> from >> the Maptools site. We have everything working OK, however our colour >> raster >> image is displaying as greyscale, and our north arrow GIF is showing >> without transparency. We've noticed this problem on 2 different >> machines >> we've tried so far. Any ideas what might be causing this problem? >> >> Thanks in advance, >> >> Mark Adams >> markadams at cuestasys.com >> >> > > Mark, > > I ran into a problem with the same symptoms today. I had been > assigning an default class and style to the raster layer. Once > I fixed this, full RGB output was restored. > > cheers, > Sean > Try class without a style and no mapserver 3-ish color definitions in the class. If that doesn't work, file a bug. Overlaying a transparent symbol on a RGB map, if it ever worked, was definitely broken in MapServer 4.0. I fixed it in 4.2.4 and 4.4, but now you need to explicitly direct MapServer with a TRANSPARENCY ALPHA for layers that use transparent pixmaps. In the most recent versions, you can even use alpha transparent PNG symbols. The new keyword exists because this is a fairly expensive operation and need not be done for most layers. The new directive is *not* needed when drawing indexed transparent pixmaps like your GIF onto 256-color output. That should work as before. Finally, map-level transparency is deprecated. You should adjust this within an OUTPUTFORMAT block. It has no meaning for RGB output anyway. cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Wed Dec 15 07:30:06 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 15 Dec 2004 08:30:06 -0700 Subject: Mapserver problems In-Reply-To: <006201c4e280$16b3cd30$254726c4@beast> Message-ID: On Dec 15, 2004, at 1:28 AM, James Anderson wrote: > Hi, > > I am using png format for output. > Considering the input format is a png file with transparency, it > should not > matter what the output format is. The output does not need to have > transparency. It could be something like jpeg or bitmap or whatever, > and it > still should work correctly. > I have included two sample maps rendered using the two different > mapserver > versions. > > Version 4.2.5 image is mapserv_4-2-5.png This is the correct > one. > Version 4.4.0 image is mapserv_4-4.png This is the one with > the > problem. > > I have also included my symbol file, mobileicon.png, which is a PNG > file > with transparency. This you can verify with an image editing tool like > Photoshop, Paint Shop Pro, Gimp, etc. > > I have not changed my input map file format between mapserver versions. > Maybe I am missing something that version 4.4 needs ? > > Here is some code from my map file. > > OUTPUTFORMAT > NAME PNG > DRIVER 'GD/PNG' > MIMETYPE 'image/png' > EXTENSION PNG > IMAGEMODE RGB > END > > Now this is making a plain 24bit png file with no transparency. But > there > should not be a problem here as I dont need transparency in my output. > What > I want is it to overlay my symbol file correctly. In certain places > in my > project I pipe the output of mapserver into a Java applet. Now java > does > not like png that well, so I then use JPEG format for output. When > using > jpeg output I get the same results with 4.2.5 and 4.4 .. eg 4.2.5 > works, and > 4.4 does not. > > Here is how I am specifying my symbol: > > SYMBOL > Name "mi83467696824027" > Type PIXMAP > Image "/home/maps/tempmap/mi83467696824027.png" > END > > now the image file mi83467696824027.png is identical to the > mobileicon.png > image. It just has another name in this case as its sucked out of > database > on the fly when I create the map file. > > My Script file makes a mif file with the lat/lon of where the symbol > should > be. > I then make a layer using the symbol like this. > > LAYER > NAME "mobile_Layer" > TYPE point > CONNECTIONTYPE OGR > CONNECTION "/home/maps/tempmap/83467696824027.mif" > STATUS DEFAULT > CLASSITEM "Car" > CLASS > COLOR 0 0 0 > SYMBOL "mi83467696824027" > END > END > > Ok, now here you will see I specify the color to be 0 0 0 which is > black. > But if I remove this statement, the Symbol is not drawn at all on > either > version. On 4.2.5 it accepts the transparency in the symbol image > file. In > 4.4, it does not. I have also found that on version 4.4, with some > different symbol image files with transparency, the color is say green > instead of black. This seems to be because its ignoring the > transparency > and drawing the color in the color map thats supposed to be > transparent. > This I see as a problem. Have they perhaps added some other > statement/directive to go into the mapfile somewhere to solve this ?? > Or is > this just a nasty bug in the newer version ?? I hope I have clearly > explained my difficulties ?? Do any of you out there have any ideas ?? > > Thanks and Regards, > > James Anderson. > > > > > > ----- Original Message ----- > From: "Sean Gillies" > To: "James Anderson" > Cc: > Sent: Monday, December 13, 2004 5:57 PM > Subject: Re: Mapserver problems > > > | On Dec 13, 2004, at 8:09 AM, James Anderson wrote: > | > | > This is a multi-part message in MIME format. > | > > | > ------=_NextPart_000_0047_01C4E136.7C4F1E60 > | > Content-Type: text/plain; > | > charset="Windows-1252" > | > Content-Transfer-Encoding: quoted-printable > | > > | > > | > > | > Hi, > | > > | > After Upgrading from Mapserver 4.2.5 > | > > | > MapServer version 4.2.5 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = > | > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER > | > INPUT=3DEPPL7 = > | > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE > | > > | > > | > To Mapserver 4.4.0 > | > MapServer version 4.4.0 OUTPUT=3DPNG OUTPUT=3DJPEG OUTPUT=3DWBMP = > | > SUPPORTS=3DPROJ SUPPORTS=3DFREETYPE SUPPORTS=3DWMS_SERVER > | > INPUT=3DEPPL7 = > | > INPUT=3DOGR INPUT=3DGDAL INPUT=3DSHAPEFILE > | > > | > I am having problems with symbols and transparency. > | > I have been using transparent png files. Since the upgrade the = > | > transparent part of the symbols comes out all black. This makes my > | > map = > | > look rather nasty. > | > > | > Does anyone have any idea whats changed in the newer mapserver > version > | > = > | > that might cause this ? > | > > | > Any help appreciated. > | > > | > Thanks, > | > > | > James Anderson. > | > > | > | James, > | > | You omitted what is probably the most important information we > | need ... what output format are you using? Do you define > | transparency for the output? > | > | In many cases where a user reports that they have different > | results between versions, it turns out that the user has changed > | their *usage* between versions. I'm not discounting your problem, > | just want to make sure that you've absolutely ruled out that cause. > | > | Sean > | If you want a symbol rendered with transparency onto a RGB map, you need to define TRANSPARENCY ALPHA for that layer. I added this to 4.2.4 to fix a long-standing bug. I also saw that you are not defining the symbol properly for your class. Please read the current mapfile reference documentation. Your usage is out of date. You should do something like this: LAYER CLASS STYLE SYMBOL "mi83467696824027" END END END There are examples for each of these cases in mapserver/tests/test.map in the MapServer distribution. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From sgillies at FRII.COM Wed Dec 15 07:36:59 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 15 Dec 2004 08:36:59 -0700 Subject: SWIGMapscript: processLegendTemplate throws error In-Reply-To: Message-ID: On Dec 15, 2004, at 12:49 AM, Umberto Nicoletti wrote: > --=-J2DZuAKnD/5NuQhhNysL > Content-Type: text/plain > Content-Transfer-Encoding: 7bit > > On Mon, 2004-12-13 at 10:16 -0700, Sean Gillies wrote: >> Can you not try and catch, and pass in the case of an exception? >> This is essentially what happens with shp2pdf. >> > > I have modified the DrawMap example as follows: > > mapObj map = new mapObj(args[0]); > map.getImagecolor().setRGB(153, 153, 204); > styleObj st = map.getLayer(1).getClass(0).getStyle(0); > st.getColor().setHex("#000000"); > outputFormatObj pdf=new outputFormatObj("pdf","pdf"); > //outputFormatObj flash=new outputFormatObj("SWF","swf"); > imageObj img=null; > try { > map.setOutputFormat(pdf); > //map.setOutputFormat(flash); > //map.getScalebar().setStatus(mapscript.MS_OFF); > System.out.println("Scalebar status: > "+map.getScalebar().getStatus()); > img = map.draw(); > System.out.println("The map will be drawn to:"+args[1]); > } catch(Throwable e) { > } > img.save(args[1], map); > > but, as I suspected it does not work because draw() does not return and > img is therefore null. > I attach a patch for this PDF specific error. Let me know if you like > it > or if we should work it out differently. > > Regards, > Umberto > You are catching an error, but what is it? I'm not going to do anything about the PDF patch. Please create an new issue in the MapServer Bugzilla and attach the patch to that issue. Then the PDF output format maintainer can address it properly. At any rate, this thread is decomposing. Started out about templates and is now PDF? To continue the discussion I think we should start over. cheers, Sean From bhudspeth at EDAC.UNM.EDU Wed Dec 15 07:50:03 2004 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Wed, 15 Dec 2004 08:50:03 -0700 Subject: Problems displaying GRASS raster layers Message-ID: Hello All, I am having problems getting GRASS raster layers to display. I am using the Python mapscript module. When I try to display a GRASS layer, I get the following error: ..... [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] phairmap.draw_map()!!!!#build the map image and store in /tmp [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] File "/var/www/cgi-bin/reason/mapmodule.py", line 61, in draw_map [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] self.map_image=self.nmMap.draw() [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] File "/usr/local/lib/python2.3/site-packages/mapscript.py", line 1759, in draw [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] def draw (*args): return _mapscript.mapObj_draw(*args) [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] IOError: msDrawRaster(): Unable to access file. (/home/bhudspeth/grass_data/western_us/mod08_ozone/cellhd/dem_scale) My Mapfile entry looks like this: LAYER NAME "DEM" TYPE RASTER STATUS ON DATA /home/bhudspeth/grass_data/western_us/mod08_ozone/cellhd/dem_scale END My machine setup is as follows: 1. Red Hat Fedora Core 3 2. Mapserver Version 4.2.1 3. GDAL version 1.1.9.0 - GRASS database rasters ARE enabled (i.e., GRASS: GRASS Database Rasters) 4. Running GRASS 5.3 Having read various mailing list postings and relevant text in "Open Source GIS: A GRASS GIS Approach", I have made sure that the following steps have also been taken: 1. I have placed a copy of the .grassrc53 file in $DocumentRoot as specified in httpd.conf file (/var/www/html2) 2. GRASS LOCATION group and owner is set to Apache (the book cited above indicates that the GRASS LOCATION data for UNM/Mapserver have to be stored with the same user-ID as the Web Server is running) I would very much appreciate any help on addressing this error. Thanks, Bill Hudspeth From sgillies at FRII.COM Wed Dec 15 08:02:49 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Wed, 15 Dec 2004 09:02:49 -0700 Subject: Problems displaying GRASS raster layers In-Reply-To: Message-ID: On Dec 15, 2004, at 8:50 AM, William Hudspeth wrote: > Hello All, > > I am having problems getting GRASS raster layers to display. I am using > the Python mapscript module. When I try to display a GRASS layer, I get > the following error: > > ..... > [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] > phairmap.draw_map()!!!!#build the map image and store in /tmp > [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] File > "/var/www/cgi-bin/reason/mapmodule.py", line 61, in draw_map > [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] > self.map_image=self.nmMap.draw() > [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] File > "/usr/local/lib/python2.3/site-packages/mapscript.py", line 1759, in > draw > [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] def draw > (*args): return _mapscript.mapObj_draw(*args) > [Tue Dec 14 15:37:37 2004] [error] [client 10.16.1.109] IOError: > msDrawRaster(): Unable to access file. > (/home/bhudspeth/grass_data/western_us/mod08_ozone/cellhd/dem_scale) > > My Mapfile entry looks like this: > > LAYER > NAME "DEM" > TYPE RASTER > STATUS ON > DATA > /home/bhudspeth/grass_data/western_us/mod08_ozone/cellhd/dem_scale > END > > My machine setup is as follows: > > 1. Red Hat Fedora Core 3 > 2. Mapserver Version 4.2.1 > 3. GDAL version 1.1.9.0 - GRASS database rasters ARE enabled (i.e., > GRASS: GRASS Database Rasters) > 4. Running GRASS 5.3 > > Having read various mailing list postings and relevant text in "Open > Source GIS: A GRASS GIS Approach", I have made sure that the following > steps have also been taken: > 1. I have placed a copy of the .grassrc53 file in $DocumentRoot as > specified in httpd.conf file (/var/www/html2) > 2. GRASS LOCATION group and owner is set to Apache (the book cited > above > indicates that the GRASS LOCATION data for UNM/Mapserver have to be > stored with the same user-ID as the Web Server is running) > > I would very much appreciate any help on addressing this error. Thanks, > Bill Hudspeth > > Bill, Python makes it easy to diagnose problems. Start up the interpreter as a user with the same permissions as Apache, import mapscript, load the mapfile and see if you can directly access the GRASS file: Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript >>> mo = mapscript.mapObj('...') >>> lo = mo.getLayerByName('DEM') >>> f = open(lo.data, 'r') If your data isn't available, this will raise an exception. cheers, Sean From jfuch at INDEC.MECON.GOV.AR Wed Dec 15 08:11:35 2004 From: jfuch at INDEC.MECON.GOV.AR (Fuchs Juan Carlos) Date: Wed, 15 Dec 2004 13:11:35 -0300 Subject: How get Mysql to draw a map using an other table who share's a co mmon field? Message-ID: Hi folk's: Finally I got map server to work with mysql. putting the shp data into mysql with shp2mysql.pl. it works fine, I get the map and the labels, its ok. Now, is there a way to do a Select to an other table in the same database, just as we can do with the join statement, to retrieve the new map? By the way, the only way we can do a query up to day, is by do the query on a SHP and then retrieve the data from MySql via Join. Is there a way to do that directly in MySql.? Thanks. From Zamil.Murji at DIVESTCO.COM Wed Dec 15 08:31:00 2004 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Wed, 15 Dec 2004 09:31:00 -0700 Subject: please help me optimize my mapserver query Message-ID: Hello list, I have a mapserver layer that is extremely slow. After yesterday's data update, this layer is taking forever to draw. Here is the query that is generated: SELECT uwi::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (select main_well2.the_geom as the_geom, main_well2.oid as oid, main_well2.uwi as uwi, well_log_curve2.source as source from main_well2 inner join well_log_curve2 on main_well2.uwi = well_log_curve2.uwi) as new_table WHERE (source = 'TIG600') and (the_geom && setSRID( 'BOX3D(-142.633293514961 38.5465516731216,-51.4598436170248 76.5484665317199)'::BOX3D,find_srid('','main_well2','the_geom') )) The key part to this query is the FILTER tag (source = 'TIG600'). well_log_curve2 has approximately 5.6 million rows. main_well2 has approximately 543000 rows. Before the update, the query plan use to filter the well_log_curve table by source before joining to main_well2 and then apply the gist index. Now it is filtering by source at the very end. This is significant because if you filter by source first, then you will only receive back around 100 rows. Here is the plan now: QUERY PLAN ---------------------------------------------------------------------------------------------------------------------------------------- Nested Loop (cost=0.00..844.36 rows=1 width=74) -> Index Scan using main_well2_the_geom_idx on main_well2 (cost=0.00..12.90 rows=3 width=55) Index Cond: (the_geom && 'SRID=-1;BOX3D(-142.633293514961 38.5465516731216 0,-51.4598436170248 76.5484665317199 0)'::geometry) -> Index Scan using well_log_curve2_uwi_idx on well_log_curve2 (cost=0.00..306.22 rows=2 width=19) Index Cond: ("outer".uwi = well_log_curve2.uwi) Filter: (source = 'TIG600'::character varying) (6 rows) Also, there is no point in using the gist index first because EVERYTHING fits inside that box. Here are the relevant parts to my .map file: DATA "the_geom from (select main_well2.the_geom as the_geom, main_well2.oid as oid, main_well2.uwi as uwi, well_log_curve2.source as source from main_well2 inner join well_log_curve2 on main_well2.uwi = well_log_curve2.uwi) as new_table using unique oid" FILTER "source = '%source%'" I have tried the following: SELECT update_geometry_stats('main_well2','the_geom'); VACUUM ANALYZE; after this, the query still returns the same query plan. How can I force it to filter by source before joining with main_well2. I am up for changing the DATA statement and/or removing the FILTER tag and incorporating it into the DATA statement somehow. Thanks in advance, Zamil From Zamil.Murji at DIVESTCO.COM Wed Dec 15 08:41:21 2004 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Wed, 15 Dec 2004 09:41:21 -0700 Subject: [postgis-users] please help me optimize my mapserver query Message-ID: Just another side note. \d well_log_curve2 Table "public.well_log_curve2" Column | Type | Modifiers --------+-----------------------+----------- uwi | character varying(20) | source | character varying(12) | Indexes: well_log_curve2_source_idx btree (source), well_log_curve2_uwi_idx btree (uwi) Notice that there is a index built on source column, however, if i run: select uwi from well_log_curve2 where source = 'TIG600' the query plan looks like so: QUERY PLAN ---------------------------------------------------------------------------------------------------------------------------- Seq Scan on well_log_curve2 (cost=0.00..117418.86 rows=234294 width=19) (actual time=1907.28..13906.98 rows=1058 loops=1) Filter: (source = 'SHD477'::character varying) Total runtime: 13907.88 msec (3 rows) It doesn't even use the index. Could this be the reason the other query is acting slow; because pg seems to ignore the source index. I have tried vacuum analyzing the table and I've tried dropping and recreating the index. Both of these steps don't work. Please help... Zamil -----Original Message----- From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net]On Behalf Of Zamil Murji Sent: Wednesday, December 15, 2004 9:31 AM To: PostGIS Users Discussion Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [postgis-users] please help me optimize my mapserver query Hello list, I have a mapserver layer that is extremely slow. After yesterday's data update, this layer is taking forever to draw. Here is the query that is generated: SELECT uwi::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (select main_well2.the_geom as the_geom, main_well2.oid as oid, main_well2.uwi as uwi, well_log_curve2.source as source from main_well2 inner join well_log_curve2 on main_well2.uwi = well_log_curve2.uwi) as new_table WHERE (source = 'TIG600') and (the_geom && setSRID( 'BOX3D(-142.633293514961 38.5465516731216,-51.4598436170248 76.5484665317199)'::BOX3D,find_srid('','main_well2','the_geom') )) The key part to this query is the FILTER tag (source = 'TIG600'). well_log_curve2 has approximately 5.6 million rows. main_well2 has approximately 543000 rows. Before the update, the query plan use to filter the well_log_curve table by source before joining to main_well2 and then apply the gist index. Now it is filtering by source at the very end. This is significant because if you filter by source first, then you will only receive back around 100 rows. Here is the plan now: QUERY PLAN ---------------------------------------------------------------------------------------------------------------------------------------- Nested Loop (cost=0.00..844.36 rows=1 width=74) -> Index Scan using main_well2_the_geom_idx on main_well2 (cost=0.00..12.90 rows=3 width=55) Index Cond: (the_geom && 'SRID=-1;BOX3D(-142.633293514961 38.5465516731216 0,-51.4598436170248 76.5484665317199 0)'::geometry) -> Index Scan using well_log_curve2_uwi_idx on well_log_curve2 (cost=0.00..306.22 rows=2 width=19) Index Cond: ("outer".uwi = well_log_curve2.uwi) Filter: (source = 'TIG600'::character varying) (6 rows) Also, there is no point in using the gist index first because EVERYTHING fits inside that box. Here are the relevant parts to my .map file: DATA "the_geom from (select main_well2.the_geom as the_geom, main_well2.oid as oid, main_well2.uwi as uwi, well_log_curve2.source as source from main_well2 inner join well_log_curve2 on main_well2.uwi = well_log_curve2.uwi) as new_table using unique oid" FILTER "source = '%source%'" I have tried the following: SELECT update_geometry_stats('main_well2','the_geom'); VACUUM ANALYZE; after this, the query still returns the same query plan. How can I force it to filter by source before joining with main_well2. I am up for changing the DATA statement and/or removing the FILTER tag and incorporating it into the DATA statement somehow. Thanks in advance, Zamil _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users From ealpert at DIGITALGLOBE.COM Wed Dec 15 08:56:36 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Dec 2004 09:56:36 -0700 Subject: Internal Server Error - UNIX CGI - But not PHP MapScript Message-ID: Can you/have you done an ldd on the mapserv executable? Does it run at the command live with mapserv -v ? I susspect that mapserv is missing a shared object. It may be possible that your shell environment has a proper LD_LIBRARY_PATH but your webserver doesn't. Do your httpd error logs have any additional info? My experience is that the error log will just have an "ended prematurely" error in the case of the library path problem. Most of the time when you get a 500 error I find that the CGI core dumped. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Bruce - Programmer Sent: Tuesday, December 14, 2004 10:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Internal Server Error - UNIX CGI - But not PHP MapScript My hosting provider has tried to set up MapServer on a UNIX server but we have run into this problem. I can run the the PHP MapScript MapServerRecipe examples fine but when I try to run the MapServer CGI I get this problem. I tried to run the Itasca workshop example and it gave this "Internal Server Error" so then I tried to run the most basic case of the the CGI in mode=map and it still gave this error. The strange thing is that I used exactly the same map with the first PHP Mapscript MapServerRecipe example and it worked great. After reviewing similar error reports in the Listserv I cannot come up with a solution, so I'm asking for help from somebody out there. My url to attempt to generate the most simple mode=map image is: http://murals.bighostbox.com/cgi-bin/mapserv?map=/home/m/murals/html/Map ServerRecipes/hello.map&map_web_imagepath=/home/m/murals/html/tmp/&map_w eb_imageurl=/tmp/&mode=map (when I send the same URL on my Windows server, with the directory names changed for the Windows system, it displays the image properly, which leads me to believe that the map file is OK) however when I run the php script that uses this same map file: http://murals.bighostbox.com/MapServerRecipes/hello.phtml it works OK. The world protection on my html directory is: r-x , the world protection on my cgi-bin directory is: r-x and the world protection on the mapserv CGI file in this directory is: r-x. The world protection on the tmp directory where the map image files are stored is: rwx. So I'm assuming that the protections are set up OK. When I run phpinfo() (which you can see by going to: http://murals.bighostbox.com), I get: MapServer Version MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.220 $ $Date: 2004/11/16 17:23:13 $) The map file is: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 # IMAGECOLOR 200 255 255 IMAGECOLOR 255 0 0 IMAGETYPE GIF WEB IMAGEPATH "/home/m/murals/html/tmp/" IMAGEURL "/tmp/" # IMAGEPATH "/var/www/html/tmp/" # IMAGEURL "/tmp/" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'Hello world. Mapserver rocks.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END thanks, in advance, for your help, Bob Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Wed Dec 15 08:59:40 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Dec 2004 09:59:40 -0700 Subject: Internal Server Error - UNIX CGI - But not PHP MapScript Message-ID: I just want to qualify. when I say the CGI core dumped I refering to CGI apps in general not mapserv. mapserv rarely core dumps. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Ethan Alpert Sent: Wednesday, December 15, 2004 9:57 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Internal Server Error - UNIX CGI - But not PHP MapScript Can you/have you done an ldd on the mapserv executable? Does it run at the command live with mapserv -v ? I susspect that mapserv is missing a shared object. It may be possible that your shell environment has a proper LD_LIBRARY_PATH but your webserver doesn't. Do your httpd error logs have any additional info? My experience is that the error log will just have an "ended prematurely" error in the case of the library path problem. Most of the time when you get a 500 error I find that the CGI core dumped. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bob Bruce - Programmer Sent: Tuesday, December 14, 2004 10:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Internal Server Error - UNIX CGI - But not PHP MapScript My hosting provider has tried to set up MapServer on a UNIX server but we have run into this problem. I can run the the PHP MapScript MapServerRecipe examples fine but when I try to run the MapServer CGI I get this problem. I tried to run the Itasca workshop example and it gave this "Internal Server Error" so then I tried to run the most basic case of the the CGI in mode=map and it still gave this error. The strange thing is that I used exactly the same map with the first PHP Mapscript MapServerRecipe example and it worked great. After reviewing similar error reports in the Listserv I cannot come up with a solution, so I'm asking for help from somebody out there. My url to attempt to generate the most simple mode=map image is: http://murals.bighostbox.com/cgi-bin/mapserv?map=/home/m/murals/html/Map ServerRecipes/hello.map&map_web_imagepath=/home/m/murals/html/tmp/&map_w eb_imageurl=/tmp/&mode=map (when I send the same URL on my Windows server, with the directory names changed for the Windows system, it displays the image properly, which leads me to believe that the map file is OK) however when I run the php script that uses this same map file: http://murals.bighostbox.com/MapServerRecipes/hello.phtml it works OK. The world protection on my html directory is: r-x , the world protection on my cgi-bin directory is: r-x and the world protection on the mapserv CGI file in this directory is: r-x. The world protection on the tmp directory where the map image files are stored is: rwx. So I'm assuming that the protections are set up OK. When I run phpinfo() (which you can see by going to: http://murals.bighostbox.com), I get: MapServer Version MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=TIFF INPUT=EPPL7 INPUT=JPEG INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.220 $ $Date: 2004/11/16 17:23:13 $) The map file is: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 # IMAGECOLOR 200 255 255 IMAGECOLOR 255 0 0 IMAGETYPE GIF WEB IMAGEPATH "/home/m/murals/html/tmp/" IMAGEURL "/tmp/" # IMAGEPATH "/var/www/html/tmp/" # IMAGEURL "/tmp/" END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 200 150 END TEXT 'Hello world. Mapserver rocks.' END CLASS LABEL TYPE BITMAP COLOR 0 0 0 END END END END thanks, in advance, for your help, Bob Bruce -------------- next part -------------- An HTML attachment was scrubbed... URL: From fwarmerdam at GMAIL.COM Wed Dec 15 09:04:36 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Wed, 15 Dec 2004 12:04:36 -0500 Subject: Troubles with regex-0.12 In-Reply-To: <006501c4e23d$f935c6b0$0e602093@zhefear> Message-ID: Karel, I would suggest you review: http://mapserver.gis.umn.edu/doc44/win32_compile-howto.html In particular there is a section that reads: Regex Build Problems. 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. This occurs if you use the stock regex-0.12 we referenced. I work around this by commenting out the "extern" statement for the printchar() function, and replacing it with a stub implementation in regex-0.12\regex.c. //extern void printchar (); void printchar( int i ) {} 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 jzeisloft at GMAIL.COM Wed Dec 15 09:25:11 2004 From: jzeisloft at GMAIL.COM (Jennifer Zeisloft) Date: Wed, 15 Dec 2004 11:25:11 -0600 Subject: Reference Map Disappearing Message-ID: Hello All, I am using the Chameleon widget to create a a legend. All of the layers do appear in the map. However, after working on the legend, the reference map doesn't initially appear until I zoom in or perform another action. Also, it seems that the red box on the reference map doesn't quite show what is on the map. Any ideas?? Thanks in advance, Carola Blazquez From steve.lime at DNR.STATE.MN.US Wed Dec 15 10:37:01 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 15 Dec 2004 12:37:01 -0600 Subject: Super simple example that may interest folks... Message-ID: You bet, check out a new version of LandView that a couple of us here have been playing with. http://www.dnr.state.mn.us/maps/landview_dhtml_x.html There are controls to turn the measure tool on/off just below the main interface (haven't had time to create a logo). This version of dbox.js uses the Walter Zorn (www.walterzorn.com) graphics library for box drawing and line drawing. Since DHTML line drawing is rather intensive (pixel = div) new lines only appear once defined so you have to click once to define a starting point, then again for the second point, and then you'll see a line. Of course then you can define additional segments. Note that while this code is very stable, it's not complete (no area computations, no "working" image). There is another developer that's been working on dbox.js and mapserv.js enhancements that I need to hook up with to produce a unified version. Note that the API is identical (or as close as possible) to Rich Greenwood's jbox component. They are designed to be interchangable. Steve >>> David Bitner 12/15/2004 9:20:21 AM >>> Steve, I went to see the js functions that you had in the utils.js and I noticed in your javascript directory that there is a new version of dbox that has the line draw built in. Do you have any examples of a page using this? David On Tue, 14 Dec 2004 23:07:47 -0600, Steve Lime wrote: > Hi all: I spent a bit of time this afternoon working up a sample > application for our graphic designer and some business users to preview > species range maps. It shows some basic functionionality for modifying > layer properties on the fly, plus some simple javascript. There are > about 400 identical shapefiles that vary by pathname behind it. Both the > HTML file and map file are at: > > http://maps.dnr.state.mn.us/eco/rsg/minnesota/test.html > http://maps.dnr.state.mn.us/eco/rsg/minnesota/range.map > > Hope it might help someone get started. > > Steve > From ealpert at DIGITALGLOBE.COM Wed Dec 15 10:39:55 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Dec 2004 11:39:55 -0700 Subject: SWIGMapscript: processLegendTemplate throws error Message-ID: I'm no expert but I've been learning about swig lately and I can't see anyway you ever got this to work with any version of mapserver and swig. Could you send me the mapObj.java you compiled into your jar as well as what version of SWIG you had installed? Because it ever working is indeed extremely odd. I'm not a mapserver developer but I sure am curious. Thanks, -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of GeoIT Sent: Monday, December 13, 2004 6:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] SWIGMapscript: processLegendTemplate throws error Dear experts, I used mapObj.processLegendTemplate successfully with mapserver 4.0. Now I try to upgrade to version 440 and get the following error using this method: Java.lang.UnknownError: Can't free NULL table Any ideas ? The code is: public String getProcessedLegendTemplate(mapObj mapObject) { String[] names = {"img", "legend", "scalebar", "ref"}; String[] values = {"", "", "", ""}; int numItems = 4; return mapObject.processLegendTemplate(names, values,numItems); } regards Andreas Paukner-Ruzicka ********************************************************** Geo-IT GmbH - Geoinformatik, IT-Services Guggenberg 3, D-82380 Peissenberg Tel: 08803-498372, Fax: 08803-498373 eMail: info at geo-it.com - Homepage: http://www.geo-it.com ********************************************************** > -----Urspr?ngliche Nachricht----- > Von: Karel Cernohorsky [mailto:cernohor at CENTRUM.CZ] > Gesendet: Montag, 13. Dezember 2004 13:31 > An: MAPSERVER-USERS at LISTS.UMN.EDU > Betreff: [UMN_MAPSERVER-USERS] Image output pixel coordinates > > > Hello folks, > > I need an advice, > > I am trying to develop small java application > where I am displaying a map as a background. > > I wasn't able to succesfuly compile and rum Java mapscript on > Windows platform. (I will post some questions to this problem later) > > Now I am using php to prepare the map using PHP/MapScript. And this > page is returned as an png image. > > I have a set of GPS positions and I can display them as a > points in the map using php (which is able to set another > layer and write points symbols there.) > > $image=$map->draw(); $layer=$map->getLayerByName('add_points'); > > for ($n = 0; $n $point[$n] = ms_newPointObj(); > $point[$n]->setXY($map_pointx[$n],$map_pointy[$n]); > $point[$n]->draw($map,$layer,$image,0,'yuhuu'); > } > > Is there any way how can I get the pixel coordinates of each > point object I have drawn in the "add_points" layer? > > My output projection is default > > PROJECTION > "proj=latlong" > "ellps=WGS84" > "datum=WGS84" > END > > I thought It could be easy to simply calculate them from > height and width and from the min and max latitude and > longitude of the returned map extent., am I right or wrong? > Can anybody help me or give me any advice? > > Looking forward to read your hints, > Karel Cernohorsky. > > > Karel > > > --- > Odchoz? zpr?va neobsahuje viry. > Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). > Verze: 6.0.802 / Virov? b?ze: 545 - datum vyd?n?: 26.11.2004 > From cdaily at GMAIL.COM Wed Dec 15 11:11:08 2004 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 15 Dec 2004 13:11:08 -0600 Subject: projection problem Message-ID: Hi all. I'm working on a mapserver application, and running into issues with projections. I have absolutely no background in GIS, but I've managed to hack together a pretty good map application using tiger/line data, which I believe is in latlong format. However, I have a new shapefile I've grabbed for the mass transit in my city, and it's in a completely different projection, and I have no idea how to get it to work in mapserver. When I run ogrinfo on my new shapefile I get the following: ---------------------------------------------------------------- INFO: Open of `CTA_Line.shp' using driver `ESRI Shapefile' successful. Layer name: CTA_Line Geometry: Line String Feature Count: 186 Extent: (1101584.450000, 1841973.900000) - (1186739.850000, 1969991.020000) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",984250.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-88.33333333333333], PARAMETER["Scale_Factor",0.999975], PARAMETER["Latitude_Of_Origin",36.66666666666666], UNIT["Foot_US",0.3048006096012192]] CTALINE_ID: Integer (11.0) ROUTE: String (50.0) COLOR: String (7.0) SHAPE_LEN: Real (19.11) SHAPE_FID: Integer (9.0) ---------------------------------------------------------------- For my mapfile, I'm using: ---------------------------------------------------------------- MAP NAME Chicago STATUS ON DEBUG ON SIZE 300 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/web_system/data" FONTSET "/web_system/fonts/fonts.list" EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 UNITS METERS WEB LOG "/web_system/logs/mapserver.log" IMAGEPATH "/web_system/tmp/" IMAGEURL "/tmp/" END LAYER NAME "cta_line" TYPE LINE STATUS ON DEBUG ON DATA "CTA_Line" CLASS COLOR 0 0 0 END PROJECTION "proj=tmerc" "lat_0=36.666666" "lon_0=-83.333333" "x_0=984250.0" "y_0=0.0" "k=0.999975" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096" "no_defs" END END END ---------------------------------------------------------------- Of course, no matter how hard I try, my map always comes up blank. If anyone can see anything obvious I'm doing wrong, or can point me in the right direction with how to debug projection issues, I'd greatly appreciate it. -Camden Daily From James.Shanton2 at NSCORP.COM Wed Dec 15 11:25:50 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Wed, 15 Dec 2004 14:25:50 -0500 Subject: Mapserver 4.4 timing out ( Windows Binaries ) Message-ID: When I try to zoom / Pan (jbox) with version 4.4 it works the first time but then sits and times out the second time I try to do anything. Is there something wrong with the windows binary (mapserv.exe) ? I'm using the mapserver 4.4 windows binaries, and I've noticed that the mapserv.exe is only 36K. Is this correct ? I was previously using Version 4.2.5 and its file size was about 2.5 MB. It was working fine. Is there something else I'm supposed to install with this version besides the dlls that come with it ? Thanks! Jim Shanton -------------- next part -------------- An HTML attachment was scrubbed... URL: From ealpert at DIGITALGLOBE.COM Wed Dec 15 11:46:23 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Dec 2004 12:46:23 -0700 Subject: projection problem Message-ID: Have you tried putting the projection BLOCK in the MAP block rather than the LAYER? -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Camden Daily Sent: Wednesday, December 15, 2004 12:11 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] projection problem Hi all. I'm working on a mapserver application, and running into issues with projections. I have absolutely no background in GIS, but I've managed to hack together a pretty good map application using tiger/line data, which I believe is in latlong format. However, I have a new shapefile I've grabbed for the mass transit in my city, and it's in a completely different projection, and I have no idea how to get it to work in mapserver. When I run ogrinfo on my new shapefile I get the following: ---------------------------------------------------------------- INFO: Open of `CTA_Line.shp' using driver `ESRI Shapefile' successful. Layer name: CTA_Line Geometry: Line String Feature Count: 186 Extent: (1101584.450000, 1841973.900000) - (1186739.850000, 1969991.020000) Layer SRS WKT: PROJCS["NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet", GEOGCS["GCS_North_American_1983", DATUM["North_American_Datum_1983", SPHEROID["GRS_1980",6378137.0,298.257222101]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Transverse_Mercator"], PARAMETER["False_Easting",984250.0], PARAMETER["False_Northing",0.0], PARAMETER["Central_Meridian",-88.33333333333333], PARAMETER["Scale_Factor",0.999975], PARAMETER["Latitude_Of_Origin",36.66666666666666], UNIT["Foot_US",0.3048006096012192]] CTALINE_ID: Integer (11.0) ROUTE: String (50.0) COLOR: String (7.0) SHAPE_LEN: Real (19.11) SHAPE_FID: Integer (9.0) ---------------------------------------------------------------- For my mapfile, I'm using: ---------------------------------------------------------------- MAP NAME Chicago STATUS ON DEBUG ON SIZE 300 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/web_system/data" FONTSET "/web_system/fonts/fonts.list" EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 UNITS METERS WEB LOG "/web_system/logs/mapserver.log" IMAGEPATH "/web_system/tmp/" IMAGEURL "/tmp/" END LAYER NAME "cta_line" TYPE LINE STATUS ON DEBUG ON DATA "CTA_Line" CLASS COLOR 0 0 0 END PROJECTION "proj=tmerc" "lat_0=36.666666" "lon_0=-83.333333" "x_0=984250.0" "y_0=0.0" "k=0.999975" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096" "no_defs" END END END ---------------------------------------------------------------- Of course, no matter how hard I try, my map always comes up blank. If anyone can see anything obvious I'm doing wrong, or can point me in the right direction with how to debug projection issues, I'd greatly appreciate it. -Camden Daily From ealpert at DIGITALGLOBE.COM Wed Dec 15 11:51:44 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Dec 2004 12:51:44 -0700 Subject: projection problem Message-ID: Looks like you have units meters and the data has units feet. Also is there NAD support in your version of libproj4? I seem to recal there are legality problems wrt distribution of NAD support in libproj4 and you need to dowload it separately. You may also want to look up the EPSG code for your projection and try that rather than the proj parameters. -e -----Original Message----- From: Camden Daily [mailto:cdaily at gmail.com] Sent: Wednesday, December 15, 2004 12:49 PM To: Ethan Alpert Subject: Re: [UMN_MAPSERVER-USERS] projection problem Yeah, I've given that a shot as well, but no luck! Thanks though, -Camden Daily On Wed, 15 Dec 2004 12:46:23 -0700, Ethan Alpert wrote: > Have you tried putting the projection BLOCK in the MAP block rather > than the LAYER? > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On Behalf Of Camden Daily > Sent: Wednesday, December 15, 2004 12:11 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] projection problem > > Hi all. I'm working on a mapserver application, and running into > issues with projections. I have absolutely no background in GIS, but > I've managed to hack together a pretty good map application using > tiger/line data, which I believe is in latlong format. > > However, I have a new shapefile I've grabbed for the mass transit in > my city, and it's in a completely different projection, and I have no > idea how to get it to work in mapserver. > > When I run ogrinfo on my new shapefile I get the following: > > ---------------------------------------------------------------- > INFO: Open of `CTA_Line.shp' > using driver `ESRI Shapefile' successful. > > Layer name: CTA_Line > Geometry: Line String > Feature Count: 186 > Extent: (1101584.450000, 1841973.900000) - (1186739.850000, > 1969991.020000) Layer SRS WKT: > PROJCS["NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet", > GEOGCS["GCS_North_American_1983", > DATUM["North_American_Datum_1983", > SPHEROID["GRS_1980",6378137.0,298.257222101]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Transverse_Mercator"], > PARAMETER["False_Easting",984250.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",-88.33333333333333], > PARAMETER["Scale_Factor",0.999975], > PARAMETER["Latitude_Of_Origin",36.66666666666666], > UNIT["Foot_US",0.3048006096012192]] > CTALINE_ID: Integer (11.0) > ROUTE: String (50.0) > COLOR: String (7.0) > SHAPE_LEN: Real (19.11) > SHAPE_FID: Integer (9.0) > ---------------------------------------------------------------- > > For my mapfile, I'm using: > > ---------------------------------------------------------------- > MAP > > NAME Chicago > STATUS ON > DEBUG ON > SIZE 300 300 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "/web_system/data" > FONTSET "/web_system/fonts/fonts.list" > EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 > UNITS METERS > > WEB > LOG "/web_system/logs/mapserver.log" > IMAGEPATH "/web_system/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME "cta_line" > TYPE LINE > STATUS ON > DEBUG ON > DATA "CTA_Line" > CLASS > COLOR 0 0 0 > END > PROJECTION > "proj=tmerc" > "lat_0=36.666666" > "lon_0=-83.333333" > "x_0=984250.0" > "y_0=0.0" > "k=0.999975" > "ellps=GRS80" > "datum=NAD83" > "to_meter=0.3048006096" > "no_defs" > END > END > > END > ---------------------------------------------------------------- > > Of course, no matter how hard I try, my map always comes up blank. If > anyone can see anything obvious I'm doing wrong, or can point me in > the right direction with how to debug projection issues, I'd greatly > appreciate it. > > -Camden Daily > From trondmm-mapserver at CRUSADERS.NO Wed Dec 15 11:47:15 2004 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Wed, 15 Dec 2004 20:47:15 +0100 Subject: projection problems and coordinate systems Message-ID: Hi. Where I work, we have an in-house developed map generating software, that I'm working on creating a WMS-frontend for. The frontend itself is pretty much done, and I've confirmed that I get mapserver to fetch images from it. But, projections are (as espected) making things ... interesting :) Our system has been around for a while, and as far as I know, all projection handling is done in Fortran libraries. It does not use proj, and it's not likely to do so in the (near) future. So, I'm pretty much stuck with the projections our system already knows, which are: polar stereographic, mercator, geographic and spherical_rot, with polar stereographic being our most commonly used projection. So, I've been looking at proj, and trying to figure out how to configure mapserver to use the same rotation we do, and I'm not really sure where to begin. Our polar stereographic projections has the latitude of true scale at 60 degrees north, central meridian is 0. Is this the right set of parameters for a projection like this? PROJECTION "ellps=WGS84" "proj=stere" "lat_0=60" "lat_ts=60" "lon_0=0" END Where should it go? Should I add this to every layer, or is it enough to define this in the main section of the map file? I've seen the proj documentation mention a parameter 'k' as the scaling factor. I've assumed that this is 1, but I don't know. What about the WMS-parameter SRS? I haven't found any definition in /usr/local/share/proj/epsg that matches these parameters. Should I just add one, and assign it whatever number I like, or is there a more standardized way of doing that? At the moment, I just picked EPSG:2175, as that's the closest I could found (not a good idea, I know). Next obstacle is coordinate systems of course. I still don't know what the numbers mapserver sends in the WMS-request means, so converting to our internal system is a bit of a challenge :) Our system is based on the distance from the north pole to equator. I can decide how many units this should be, which will give me a grid with 0,0 being the north pole. I can also decide exactly where I want to position 0,0. So - the big question, I suppose, is how much work will it be to convert from one system to the other? Is it as simple as adding an offset, and multiplying by some scale? (Assuming the projections are identical, of course). Or is it considerably more complex? Any information will be greatly appreciated. If I've left out important information, just ask, it's probably because I don't know exactly what I'm doing. -- Trond Michelsen From James.Shanton2 at NSCORP.COM Wed Dec 15 11:59:52 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Wed, 15 Dec 2004 14:59:52 -0500 Subject: Mapserver 4.4 timing out ( Windows Binaries ) Message-ID: When I try to zoom / Pan (jbox) with version 4.4 it works the first time but then sits and times out the second time I try to do anything. Is there something wrong with the windows binary (mapserv) ? I'm using the mapserver 4.4 windows binaries, and I've noticed that the mapserv.exe is only 36K. Is this correct ? I was previously using Version 4.2.5 and its file size was about 2.5 MB. It was working fine. Is there something else I'm supposed to install with this version besides the dlls that come with it ? Thanks! Jim Shanton From ealpert at DIGITALGLOBE.COM Wed Dec 15 12:03:45 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Dec 2004 13:03:45 -0700 Subject: projection problem Message-ID: Did you try setting STATUS DEFAULT instead of STATUS ON? -e -----Original Message----- From: Camden Daily [mailto:cdaily at gmail.com] Sent: Wednesday, December 15, 2004 1:00 PM To: Ethan Alpert Subject: Re: [UMN_MAPSERVER-USERS] projection problem I tried feet as well, but to no avail. Could you point me to where I can look up the EPSG code for my projection? Thanks, -Camden Daily On Wed, 15 Dec 2004 12:51:44 -0700, Ethan Alpert wrote: > > Looks like you have units meters and the data has units feet. > > Also is there NAD support in your version of libproj4? I seem to recal > there are legality problems wrt distribution of NAD support in > libproj4 and you need to dowload it separately. > > You may also want to look up the EPSG code for your projection and try > that rather than the proj parameters. > > -e > > -----Original Message----- > From: Camden Daily [mailto:cdaily at gmail.com] > Sent: Wednesday, December 15, 2004 12:49 PM > To: Ethan Alpert > Subject: Re: [UMN_MAPSERVER-USERS] projection problem > > Yeah, I've given that a shot as well, but no luck! > > Thanks though, > -Camden Daily > > On Wed, 15 Dec 2004 12:46:23 -0700, Ethan Alpert > wrote: > > Have you tried putting the projection BLOCK in the MAP block rather > > than the LAYER? > > > > -e > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > On Behalf Of Camden Daily > > Sent: Wednesday, December 15, 2004 12:11 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] projection problem > > > > Hi all. I'm working on a mapserver application, and running into > > issues with projections. I have absolutely no background in GIS, > > but I've managed to hack together a pretty good map application > > using tiger/line data, which I believe is in latlong format. > > > > However, I have a new shapefile I've grabbed for the mass transit in > > my city, and it's in a completely different projection, and I have > > no idea how to get it to work in mapserver. > > > > When I run ogrinfo on my new shapefile I get the following: > > > > ---------------------------------------------------------------- > > INFO: Open of `CTA_Line.shp' > > using driver `ESRI Shapefile' successful. > > > > Layer name: CTA_Line > > Geometry: Line String > > Feature Count: 186 > > Extent: (1101584.450000, 1841973.900000) - (1186739.850000, > > 1969991.020000) Layer SRS WKT: > > PROJCS["NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet", > > GEOGCS["GCS_North_American_1983", > > DATUM["North_American_Datum_1983", > > SPHEROID["GRS_1980",6378137.0,298.257222101]], > > PRIMEM["Greenwich",0.0], > > UNIT["Degree",0.0174532925199433]], > > PROJECTION["Transverse_Mercator"], > > PARAMETER["False_Easting",984250.0], > > PARAMETER["False_Northing",0.0], > > PARAMETER["Central_Meridian",-88.33333333333333], > > PARAMETER["Scale_Factor",0.999975], > > PARAMETER["Latitude_Of_Origin",36.66666666666666], > > UNIT["Foot_US",0.3048006096012192]] > > CTALINE_ID: Integer (11.0) > > ROUTE: String (50.0) > > COLOR: String (7.0) > > SHAPE_LEN: Real (19.11) > > SHAPE_FID: Integer (9.0) > > ---------------------------------------------------------------- > > > > For my mapfile, I'm using: > > > > ---------------------------------------------------------------- > > MAP > > > > NAME Chicago > > STATUS ON > > DEBUG ON > > SIZE 300 300 > > IMAGETYPE PNG > > IMAGECOLOR 240 240 240 > > SHAPEPATH "/web_system/data" > > FONTSET "/web_system/fonts/fonts.list" > > EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 > > UNITS METERS > > > > WEB > > LOG "/web_system/logs/mapserver.log" > > IMAGEPATH "/web_system/tmp/" > > IMAGEURL "/tmp/" > > END > > > > LAYER > > NAME "cta_line" > > TYPE LINE > > STATUS ON > > DEBUG ON > > DATA "CTA_Line" > > CLASS > > COLOR 0 0 0 > > END > > PROJECTION > > "proj=tmerc" > > "lat_0=36.666666" > > "lon_0=-83.333333" > > "x_0=984250.0" > > "y_0=0.0" > > "k=0.999975" > > "ellps=GRS80" > > "datum=NAD83" > > "to_meter=0.3048006096" > > "no_defs" > > END > > END > > > > END > > ---------------------------------------------------------------- > > > > Of course, no matter how hard I try, my map always comes up blank. > > If > > > anyone can see anything obvious I'm doing wrong, or can point me in > > the right direction with how to debug projection issues, I'd greatly > > appreciate it. > > > > -Camden Daily > > > From Zamil.Murji at DIVESTCO.COM Wed Dec 15 12:07:11 2004 From: Zamil.Murji at DIVESTCO.COM (Zamil Murji) Date: Wed, 15 Dec 2004 13:07:11 -0700 Subject: [postgis-users] please help me optimize my mapserver query Message-ID: By focusing on the well_log_curve table as my main problem I was able to solve the issue. Basically this is what I did to kick start the index on the source column in well_log_curve. I dropped all indexes on well_log_curve, vacuum analyze the entire db, recreated the indexes on well_log_curve, vacuum analyze well_log_curve and then voila...like magic the index starts working again. idc=# explain analyze select * from well_log_curve2 where source = 'SHD477'; QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------------------- Index Scan using well_log_curve2_source_idx on well_log_curve2 (cost=0.00..14639.63 rows=3761 width=34) (actual time=34.87..479.00 rows=1058 loops=1) Index Cond: (source = 'SHD477'::character varying) Total runtime: 479.78 msec (3 rows) Thanks to all those with suggestions on my problem. Zamil -----Original Message----- From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net]On Behalf Of Zamil Murji Sent: Wednesday, December 15, 2004 9:41 AM To: PostGIS Users Discussion Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: RE: [postgis-users] please help me optimize my mapserver query Just another side note. \d well_log_curve2 Table "public.well_log_curve2" Column | Type | Modifiers --------+-----------------------+----------- uwi | character varying(20) | source | character varying(12) | Indexes: well_log_curve2_source_idx btree (source), well_log_curve2_uwi_idx btree (uwi) Notice that there is a index built on source column, however, if i run: select uwi from well_log_curve2 where source = 'TIG600' the query plan looks like so: QUERY PLAN ---------------------------------------------------------------------------------------------------------------------------- Seq Scan on well_log_curve2 (cost=0.00..117418.86 rows=234294 width=19) (actual time=1907.28..13906.98 rows=1058 loops=1) Filter: (source = 'SHD477'::character varying) Total runtime: 13907.88 msec (3 rows) It doesn't even use the index. Could this be the reason the other query is acting slow; because pg seems to ignore the source index. I have tried vacuum analyzing the table and I've tried dropping and recreating the index. Both of these steps don't work. Please help... Zamil -----Original Message----- From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-bounces at postgis.refractions.net]On Behalf Of Zamil Murji Sent: Wednesday, December 15, 2004 9:31 AM To: PostGIS Users Discussion Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [postgis-users] please help me optimize my mapserver query Hello list, I have a mapserver layer that is extremely slow. After yesterday's data update, this layer is taking forever to draw. Here is the query that is generated: SELECT uwi::text,asbinary(force_collection(force_2d(the_geom)),'NDR'),oid::text from (select main_well2.the_geom as the_geom, main_well2.oid as oid, main_well2.uwi as uwi, well_log_curve2.source as source from main_well2 inner join well_log_curve2 on main_well2.uwi = well_log_curve2.uwi) as new_table WHERE (source = 'TIG600') and (the_geom && setSRID( 'BOX3D(-142.633293514961 38.5465516731216,-51.4598436170248 76.5484665317199)'::BOX3D,find_srid('','main_well2','the_geom') )) The key part to this query is the FILTER tag (source = 'TIG600'). well_log_curve2 has approximately 5.6 million rows. main_well2 has approximately 543000 rows. Before the update, the query plan use to filter the well_log_curve table by source before joining to main_well2 and then apply the gist index. Now it is filtering by source at the very end. This is significant because if you filter by source first, then you will only receive back around 100 rows. Here is the plan now: QUERY PLAN ---------------------------------------------------------------------------------------------------------------------------------------- Nested Loop (cost=0.00..844.36 rows=1 width=74) -> Index Scan using main_well2_the_geom_idx on main_well2 (cost=0.00..12.90 rows=3 width=55) Index Cond: (the_geom && 'SRID=-1;BOX3D(-142.633293514961 38.5465516731216 0,-51.4598436170248 76.5484665317199 0)'::geometry) -> Index Scan using well_log_curve2_uwi_idx on well_log_curve2 (cost=0.00..306.22 rows=2 width=19) Index Cond: ("outer".uwi = well_log_curve2.uwi) Filter: (source = 'TIG600'::character varying) (6 rows) Also, there is no point in using the gist index first because EVERYTHING fits inside that box. Here are the relevant parts to my .map file: DATA "the_geom from (select main_well2.the_geom as the_geom, main_well2.oid as oid, main_well2.uwi as uwi, well_log_curve2.source as source from main_well2 inner join well_log_curve2 on main_well2.uwi = well_log_curve2.uwi) as new_table using unique oid" FILTER "source = '%source%'" I have tried the following: SELECT update_geometry_stats('main_well2','the_geom'); VACUUM ANALYZE; after this, the query still returns the same query plan. How can I force it to filter by source before joining with main_well2. I am up for changing the DATA statement and/or removing the FILTER tag and incorporating it into the DATA statement somehow. Thanks in advance, Zamil _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users _______________________________________________ postgis-users mailing list postgis-users at postgis.refractions.net http://postgis.refractions.net/mailman/listinfo/postgis-users From jmckenna at DMSOLUTIONS.CA Wed Dec 15 12:24:35 2004 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 15 Dec 2004 15:24:35 -0500 Subject: Mapserver 4.4 timing out ( Windows Binaries ) In-Reply-To: Message-ID: Hi Jim, I believe the 4.4 mapserv.exe is around 3.7 MB. I would download it again: either by itself (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html) or in the MS4W base package (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). jeff Shanton, James A wrote: > When I try to zoom / Pan (jbox) with version 4.4 it works the first time > but then sits and times out the second time I try to do anything. > > Is there something wrong with the windows binary (mapserv) ? > > I'm using the mapserver 4.4 windows binaries, and I've noticed that the > mapserv.exe is only 36K. Is this correct ? > > I was previously using Version 4.2.5 and its file size was about 2.5 MB. It > was working fine. > > Is there something else I'm supposed to install with this version besides > the dlls that come with it ? > > Thanks! > > Jim Shanton > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From ealpert at DIGITALGLOBE.COM Wed Dec 15 12:32:26 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 15 Dec 2004 13:32:26 -0700 Subject: projection problem Message-ID: Well it's a right of passage for mapserver users. STATUS DEFAULT means always on so when you switch to mode=map it will still be on STATUS ON really means that it can be controlled externally with the layers= CGI parameter. -e -----Original Message----- From: Camden Daily [mailto:cdaily at gmail.com] Sent: Wednesday, December 15, 2004 1:10 PM To: Ethan Alpert Subject: Re: [UMN_MAPSERVER-USERS] projection problem That was it! Why on earth would that break things? Thanks a lot! -Camden On Wed, 15 Dec 2004 13:03:45 -0700, Ethan Alpert wrote: > > > Did you try setting STATUS DEFAULT instead of STATUS ON? > > -e > > -----Original Message----- > From: Camden Daily [mailto:cdaily at gmail.com] > Sent: Wednesday, December 15, 2004 1:00 PM > To: Ethan Alpert > Subject: Re: [UMN_MAPSERVER-USERS] projection problem > > I tried feet as well, but to no avail. Could you point me to where I > can look up the EPSG code for my projection? > > Thanks, > -Camden Daily > > On Wed, 15 Dec 2004 12:51:44 -0700, Ethan Alpert > wrote: > > > > Looks like you have units meters and the data has units feet. > > > > Also is there NAD support in your version of libproj4? I seem to > > recal > > > there are legality problems wrt distribution of NAD support in > > libproj4 and you need to dowload it separately. > > > > You may also want to look up the EPSG code for your projection and > > try > > > that rather than the proj parameters. > > > > -e > > > > -----Original Message----- > > From: Camden Daily [mailto:cdaily at gmail.com] > > Sent: Wednesday, December 15, 2004 12:49 PM > > To: Ethan Alpert > > Subject: Re: [UMN_MAPSERVER-USERS] projection problem > > > > Yeah, I've given that a shot as well, but no luck! > > > > Thanks though, > > -Camden Daily > > > > On Wed, 15 Dec 2004 12:46:23 -0700, Ethan Alpert > > wrote: > > > Have you tried putting the projection BLOCK in the MAP block > > > rather than the LAYER? > > > > > > -e > > > > > > -----Original Message----- > > > From: UMN MapServer Users List > > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > > > On Behalf Of Camden Daily > > > Sent: Wednesday, December 15, 2004 12:11 PM > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: [UMN_MAPSERVER-USERS] projection problem > > > > > > Hi all. I'm working on a mapserver application, and running into > > > issues with projections. I have absolutely no background in GIS, > > > but I've managed to hack together a pretty good map application > > > using tiger/line data, which I believe is in latlong format. > > > > > > However, I have a new shapefile I've grabbed for the mass transit > > > in > > > > my city, and it's in a completely different projection, and I have > > > no idea how to get it to work in mapserver. > > > > > > When I run ogrinfo on my new shapefile I get the following: > > > > > > ---------------------------------------------------------------- > > > INFO: Open of `CTA_Line.shp' > > > using driver `ESRI Shapefile' successful. > > > > > > Layer name: CTA_Line > > > Geometry: Line String > > > Feature Count: 186 > > > Extent: (1101584.450000, 1841973.900000) - (1186739.850000, > > > 1969991.020000) Layer SRS WKT: > > > PROJCS["NAD_1983_StatePlane_Illinois_East_FIPS_1201_Feet", > > > GEOGCS["GCS_North_American_1983", > > > DATUM["North_American_Datum_1983", > > > SPHEROID["GRS_1980",6378137.0,298.257222101]], > > > PRIMEM["Greenwich",0.0], > > > UNIT["Degree",0.0174532925199433]], > > > PROJECTION["Transverse_Mercator"], > > > PARAMETER["False_Easting",984250.0], > > > PARAMETER["False_Northing",0.0], > > > PARAMETER["Central_Meridian",-88.33333333333333], > > > PARAMETER["Scale_Factor",0.999975], > > > PARAMETER["Latitude_Of_Origin",36.66666666666666], > > > UNIT["Foot_US",0.3048006096012192]] > > > CTALINE_ID: Integer (11.0) > > > ROUTE: String (50.0) > > > COLOR: String (7.0) > > > SHAPE_LEN: Real (19.11) > > > SHAPE_FID: Integer (9.0) > > > ---------------------------------------------------------------- > > > > > > For my mapfile, I'm using: > > > > > > ---------------------------------------------------------------- > > > MAP > > > > > > NAME Chicago > > > STATUS ON > > > DEBUG ON > > > SIZE 300 300 > > > IMAGETYPE PNG > > > IMAGECOLOR 240 240 240 > > > SHAPEPATH "/web_system/data" > > > FONTSET "/web_system/fonts/fonts.list" > > > EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 > > > UNITS METERS > > > > > > WEB > > > LOG "/web_system/logs/mapserver.log" > > > IMAGEPATH "/web_system/tmp/" > > > IMAGEURL "/tmp/" > > > END > > > > > > LAYER > > > NAME "cta_line" > > > TYPE LINE > > > STATUS ON > > > DEBUG ON > > > DATA "CTA_Line" > > > CLASS > > > COLOR 0 0 0 > > > END > > > PROJECTION > > > "proj=tmerc" > > > "lat_0=36.666666" > > > "lon_0=-83.333333" > > > "x_0=984250.0" > > > "y_0=0.0" > > > "k=0.999975" > > > "ellps=GRS80" > > > "datum=NAD83" > > > "to_meter=0.3048006096" > > > "no_defs" > > > END > > > END > > > > > > END > > > ---------------------------------------------------------------- > > > > > > Of course, no matter how hard I try, my map always comes up blank. > > > If > > > > > anyone can see anything obvious I'm doing wrong, or can point me > > > in the right direction with how to debug projection issues, I'd > > > greatly > > > > appreciate it. > > > > > > -Camden Daily > > > > > > From mike.and.kerry at GMAIL.COM Wed Dec 15 12:34:48 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Wed, 15 Dec 2004 11:34:48 -0900 Subject: Mapserver 4.4 timing out ( Windows Binaries ) In-Reply-To: <41C09D83.9090209@dmsolutions.ca> Message-ID: I know the different binaries available are of different sizes depending on how they were compiled. The Maptools binary seem to be fairly large, but if you use the "kitchen sink" binary available is is much smaller. I have had similar problems when trying to replace our existing maptools binaries with the "kitchen sink" builds from Iowa State (http://hobu.stat.iastate.edu/mapserver/) I think you need to double check all the dll's to make sure you have the versions that came with the binary build you are using. On Wed, 15 Dec 2004 15:24:35 -0500, Jeff McKenna wrote: > Hi Jim, > > I believe the 4.4 mapserv.exe is around 3.7 MB. I would download it > again: either by itself > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html) > or in the MS4W base package > (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). > > jeff > > > Shanton, James A wrote: > > When I try to zoom / Pan (jbox) with version 4.4 it works the first time > > but then sits and times out the second time I try to do anything. > > > > Is there something wrong with the windows binary (mapserv) ? > > > > I'm using the mapserver 4.4 windows binaries, and I've noticed that the > > mapserv.exe is only 36K. Is this correct ? > > > > I was previously using Version 4.2.5 and its file size was about 2.5 MB. It > > was working fine. > > > > Is there something else I'm supposed to install with this version besides > > the dlls that come with it ? > > > > Thanks! > > > > Jim Shanton > > > > > -- > Jeff McKenna > DM Solutions Group Inc. > http://www.dmsolutions.ca > From hobu at IASTATE.EDU Wed Dec 15 13:01:46 2004 From: hobu at IASTATE.EDU (Howard Butler) Date: Wed, 15 Dec 2004 15:01:46 -0600 Subject: Mapserver 4.4 timing out ( Windows Binaries ) In-Reply-To: Message-ID: Mike, Jeff, and James, The "kitchen sink" binaries are linked against libmap.dll, hence the smaller executable footprint. I have not tested every possible interaction of my binaries. If the binaries on maptools.org have the features you need, I see no reason to use the binaries on my site. They haven't been tested as much and are not as widely deployed. Another interaction that Mike alludes to is the dll stuff. The "kitchen sink" binaries can quickly put you in "DLL Hell", as the entire package is dynamically linked. If you have dlls of the same name (but different versions, etc) in front of the ones that the build expects on the PATH, funky things can happen. I try to include all of the dependencies with the package (except for ones that I can't distribute). I don't think the maptools.org binaries have these kinds of problems, and they are likely much easier to use. I would be interested in getting a traceback of the error you are seeing with jbox if you have time or want to pursue this further. You would have to attach a debugger to it (like MSVC, but there are others) to do so. With more information, I can investigate why this might be happening. Howard At 02:34 PM 12/15/2004, Mike Davis wrote: >I know the different binaries available are of different sizes >depending on how they were compiled. The Maptools binary seem to be >fairly large, but if you use the "kitchen sink" binary available is is >much smaller. > >I have had similar problems when trying to replace our existing >maptools binaries with the "kitchen sink" builds from Iowa State >(http://hobu.stat.iastate.edu/mapserver/) > >I think you need to double check all the dll's to make sure you have >the versions that came with the binary build you are using. > > >On Wed, 15 Dec 2004 15:24:35 -0500, Jeff McKenna > wrote: > > Hi Jim, > > > > I believe the 4.4 mapserv.exe is around 3.7 MB. I would download it > > again: either by itself > > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html) > > or in the MS4W base package > > (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). > > > > jeff > > > > > > Shanton, James A wrote: > > > When I try to zoom / Pan (jbox) with version 4.4 it works the first time > > > but then sits and times out the second time I try to do anything. > > > > > > Is there something wrong with the windows binary (mapserv) ? > > > > > > I'm using the mapserver 4.4 windows binaries, and I've noticed that the > > > mapserv.exe is only 36K. Is this correct ? > > > > > > I was previously using Version 4.2.5 and its file size was about 2.5 > MB. It > > > was working fine. > > > > > > Is there something else I'm supposed to install with this version besides > > > the dlls that come with it ? > > > > > > Thanks! > > > > > > Jim Shanton > > > > > > > > > -- > > Jeff McKenna > > DM Solutions Group Inc. > > http://www.dmsolutions.ca > > From saurin782 at GMAIL.COM Wed Dec 15 14:47:28 2004 From: saurin782 at GMAIL.COM (saurin shah) Date: Wed, 15 Dec 2004 16:47:28 -0600 Subject: Error while executing mapserv on Tomcat Message-ID: Hi Mapserver users, I have configured Tomcat to run CGI and it runs fine.. I have also configured mapsever on it. Now, if I try to run mapserv on the server, it gives the following error. INFO: cgi: runCGI (stderr):Unrecognized character \x7F at /usr/jakarta-tomcat-5.5.4/webapps/ROOT/test-cgi/mapserv.cgi line 1. I think the problem is : Tomcat is treating mapserv as a script and trying to execute it instead of treating it as a binary executable. I get the exact same error when i ran [sshah at rmedc test-cgi]$ perl mapserv Unrecognized character \x7F at mapserv line 1. Is it possible to run mapserv ( a CGI binary executable ) on Tomcat ? Could you please post your suggestions. Thanks, Regards, Saurin. From bhudspeth at EDAC.UNM.EDU Wed Dec 15 15:13:09 2004 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Wed, 15 Dec 2004 16:13:09 -0700 Subject: Continuing problems with displaying GRASS layers in Mapserver Message-ID: Hello, Thanks for the responses. I have addressed both of the issues sent to me, and I still have had no success. I have undertaken the following steps: 1. I tried using the apache user to create a new location with the raster data I am interested in it. I ran gdalinfo on the raster set with no problems (from inside of GRASS). I also ran gdalinfo from outside of GRASS with no problems. It appears to show the correct projection and data statistics. 2. A moved a copy of the .grassrc53 file from the apache users grass data directory to the $DocumentRoot specified in httpd.conf file. The resource file points to the correct location. 3. I have run the python commands suggested by Sean Gillies with no apparent errors. Thanks, Bill From richard.greenwood at GMAIL.COM Wed Dec 15 16:40:56 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 15 Dec 2004 17:40:56 -0700 Subject: Continuing problems with displaying GRASS layers in Mapserver In-Reply-To: <1103152389.4121.26.camel@localhost.localdomain> Message-ID: On Wed, 15 Dec 2004 16:13:09 -0700, William Hudspeth wrote: > Hello, Thanks for the responses. I have addressed both of the issues > sent to me, and I still have had no success. I have undertaken the > following steps: > > 1. I tried using the apache user to create a new location with the > raster data I am interested in it. I ran gdalinfo on the raster set with > no problems (from inside of GRASS). I also ran gdalinfo from outside of > GRASS with no problems. It appears to show the correct projection and > data statistics. > > 2. A moved a copy of the .grassrc53 file from the apache users grass > data directory to the $DocumentRoot specified in httpd.conf file. The > resource file points to the correct location. > > 3. I have run the python commands suggested by Sean Gillies with no > apparent errors. > > Thanks, Bill > Try renaming the .grassrc53 to .grassrc5 in $DocumentRoot directory. -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From piero.cavalieri at HEIDI.IT Thu Dec 16 02:23:48 2004 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 16 Dec 2004 04:23:48 -0600 Subject: maps mosaic Message-ID: Hi all, I'm new to WebGIS, and in general I used GIS not too much. The question is: I have a lots of DTM which toghter cover a wide area, wich I want to have in the extents of my .map I want that these DTMs act as a 1 layer in the map. Have I first to create a single map from these DTMs with a DesktopGIS (e.g. GRASS) or there is a method to tell MapServer that all that DTMs have to act as single layer ? Thanks Piero From piero.cavalieri at HEIDI.IT Thu Dec 16 02:33:53 2004 From: piero.cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 16 Dec 2004 04:33:53 -0600 Subject: MapServer - ArcSDE feedback Message-ID: Hi all, the company for wich I work is taking into account to buy an ArcSDE license. Is there someone which can give me some feedback (or links to) about connection of MapServer with ArcSDE ? I would like to know problems and advantages especially compared with having data in PostGIS. I think this could be usefull also for other people ... Thanks Piero From bartvde at XS4ALL.NL Thu Dec 16 03:01:15 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 16 Dec 2004 12:01:15 +0100 Subject: maps mosaic In-Reply-To: Message-ID: Hi, you can use one the following to tell my Mapserver to use those datasets as 1 layer: 1. use the GROUP keyword (see MAP file reference) 2. use a tileindex to group them together (gdaltindex or ogrtindex utilities respectively for raster and vector data). I would prefer option 2 as there is no overhead for this in your MAP file. See: http://gdal.maptools.org/gdal_utilities.html http://gdal.maptools.org/ogr/ogr_utilities.html in your MAP file you would then use the following: LAYER ... TILEINDEX "F:/Data/Geostreets/3/level3.shp" TILEITEM "location" .. END Best regards, Bart > Hi all, > I'm new to WebGIS, and in general I used GIS not too much. > The question is: > > I have a lots of DTM which toghter cover a wide area, wich I want to have > in the extents of my .map > > I want that these DTMs act as a 1 layer in the map. > > Have I first to create a single map from these DTMs with a DesktopGIS > (e.g. > GRASS) or there is a method to tell MapServer that all that DTMs have to > act as single layer ? > > Thanks > Piero > From bartvde at XS4ALL.NL Thu Dec 16 03:30:04 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 16 Dec 2004 12:30:04 +0100 Subject: MapServer - ArcSDE feedback In-Reply-To: Message-ID: Hi, all the info about Mapserver and SDE is on the Wiki: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE I'll let others (who are more capable) comment on the PostGIS-ArcSDE comparison .... the only thing I know is that ArcSDE has a deadly connection overhead so you should use Mapserver in FastCGI mode for that to get an acceptable performance. Best regards, Bart > Hi all, > > the company for wich I work is taking into account to buy an ArcSDE > license. > Is there someone which can give me some feedback (or links to) about > connection of MapServer with ArcSDE ? > I would like to know problems and advantages especially compared with > having data in PostGIS. > > I think this could be usefull also for other people ... > > Thanks > Piero > From v.schulze at CCGIS.DE Thu Dec 16 03:31:18 2004 From: v.schulze at CCGIS.DE (V. Schulze) Date: Thu, 16 Dec 2004 05:31:18 -0600 Subject: Format for FeatureInfoRequest MapServer 4.4 Bug? Message-ID: Hi List, I have the following problem: The supported Format for the FeatureInfo Request MapServer 4.4 are "text/plain" and "text/html". But I got this error message back: - msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value (text/html). Can anybody give me a hint how to solve this? Thanks in advance, Vera From bartvde at XS4ALL.NL Thu Dec 16 04:22:20 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 16 Dec 2004 13:22:20 +0100 Subject: Format for FeatureInfoRequest MapServer 4.4 Bug? In-Reply-To: Message-ID: Hi, if I do a GetCapabilities request on a 4.4 server I get: text/plain application/vnd.ogc.gml .. So text/html is not in the list. Did you get that sentence from one of the Mapserver 4.4 docs? Best regards, Bart > Hi List, > > I have the following problem: > > The supported Format for the FeatureInfo Request MapServer 4.4 are > "text/plain" and "text/html". > > But I got this error message back: > - > > > msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value > (text/html). > > > > Can anybody give me a hint how to solve this? > > Thanks in advance, > Vera > From miroslav.sulc at STARTNET.CZ Thu Dec 16 04:19:16 2004 From: miroslav.sulc at STARTNET.CZ (=?ISO-8859-2?Q?Miroslav_=A9ulc?=) Date: Thu, 16 Dec 2004 13:19:16 +0100 Subject: Display map with specified point in center Message-ID: Hi, I am still newbie so maybe I ask a stupid question but I cannot solve this one. I have a set (about 5000) points with coordinates in MySQL database and map that covers the region of the points. When user says "display THIS point on map", I would like to display map with this point in the center. I suppose I should 1) estimate the extent of the map that I want to display 2) insert the point into a layer (the point has coordinates) and draw the point I can somehow estimate the extent but I don't know how I can insert the point specified by coordinates into the map. I use PHP Mapscript. I would appreciate any suggestion. -- Miroslav ?ulc, CEO StartNet s.r.o. ---------------------------------------------------- Vrchlick?ho 161/5, Praha 5, 150 00, ?esk? republika ---------------------------------------------------- ICQ: 60144073 web: www.startnet.cz, www.novavystavba.cz ---------------------------------------------------- mobil: +420 603 711 413 telefon: +420 257 225 602 ---------------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From James.Shanton2 at NSCORP.COM Thu Dec 16 04:18:34 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Thu, 16 Dec 2004 07:18:34 -0500 Subject: Mapserver 4.4 timing out ( Windows Bina ries ) Message-ID: Thanks for all the help, I used the Maptools Binaries, and its working now. Thanks ! Jim Shanton -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Howard Butler Sent: Wednesday, December 15, 2004 4:02 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapserver 4.4 timing out ( Windows Binaries ) Mike, Jeff, and James, The "kitchen sink" binaries are linked against libmap.dll, hence the smaller executable footprint. I have not tested every possible interaction of my binaries. If the binaries on maptools.org have the features you need, I see no reason to use the binaries on my site. They haven't been tested as much and are not as widely deployed. Another interaction that Mike alludes to is the dll stuff. The "kitchen sink" binaries can quickly put you in "DLL Hell", as the entire package is dynamically linked. If you have dlls of the same name (but different versions, etc) in front of the ones that the build expects on the PATH, funky things can happen. I try to include all of the dependencies with the package (except for ones that I can't distribute). I don't think the maptools.org binaries have these kinds of problems, and they are likely much easier to use. I would be interested in getting a traceback of the error you are seeing with jbox if you have time or want to pursue this further. You would have to attach a debugger to it (like MSVC, but there are others) to do so. With more information, I can investigate why this might be happening. Howard At 02:34 PM 12/15/2004, Mike Davis wrote: >I know the different binaries available are of different sizes >depending on how they were compiled. The Maptools binary seem to be >fairly large, but if you use the "kitchen sink" binary available is is >much smaller. > >I have had similar problems when trying to replace our existing >maptools binaries with the "kitchen sink" builds from Iowa State >(http://hobu.stat.iastate.edu/mapserver/) > >I think you need to double check all the dll's to make sure you have >the versions that came with the binary build you are using. > > >On Wed, 15 Dec 2004 15:24:35 -0500, Jeff McKenna > wrote: > > Hi Jim, > > > > I believe the 4.4 mapserv.exe is around 3.7 MB. I would download it > > again: either by itself > > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html) > > or in the MS4W base package > > (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). > > > > jeff > > > > > > Shanton, James A wrote: > > > When I try to zoom / Pan (jbox) with version 4.4 it works the first time > > > but then sits and times out the second time I try to do anything. > > > > > > Is there something wrong with the windows binary (mapserv) ? > > > > > > I'm using the mapserver 4.4 windows binaries, and I've noticed that the > > > mapserv.exe is only 36K. Is this correct ? > > > > > > I was previously using Version 4.2.5 and its file size was about 2.5 > MB. It > > > was working fine. > > > > > > Is there something else I'm supposed to install with this version besides > > > the dlls that come with it ? > > > > > > Thanks! > > > > > > Jim Shanton > > > > > > > > > -- > > Jeff McKenna > > DM Solutions Group Inc. > > http://www.dmsolutions.ca > > From James.Shanton2 at NSCORP.COM Thu Dec 16 04:26:45 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Thu, 16 Dec 2004 07:26:45 -0500 Subject: Display map with specified point in cen ter Message-ID: Miroslav, I'm doing it this way. http://www.mydomain.com/mapserver/bin/mapserv.exe?map=D%3A%5CMAPS%5CGIS2%5Ct hex.map&mapxy=" & rst("LONGITUDE") & "+" & rst("LATITUDE") & "&layer=idogr&layer14=railroad&layer14=ortho&scale=5000&mapsize=600+500 replace the " & rst("LONGITUDE") & "+" & rst("LATITUDE") & " with your lat and Long. Jim Shanton -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Miroslav ?ulc Sent: Thursday, December 16, 2004 7:19 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display map with specified point in center Hi, I am still newbie so maybe I ask a stupid question but I cannot solve this one. I have a set (about 5000) points with coordinates in MySQL database and map that covers the region of the points. When user says "display THIS point on map", I would like to display map with this point in the center. I suppose I should 1) estimate the extent of the map that I want to display 2) insert the point into a layer (the point has coordinates) and draw the point I can somehow estimate the extent but I don't know how I can insert the point specified by coordinates into the map. I use PHP Mapscript. I would appreciate any suggestion. -- Miroslav ?ulc, CEO StartNet s.r.o. ---------------------------------------------------- Vrchlick?ho 161/5, Praha 5, 150 00, ?esk? republika ---------------------------------------------------- ICQ: 60144073 web: www.startnet.cz, www.novavystavba.cz ---------------------------------------------------- mobil: +420 603 711 413 telefon: +420 257 225 602 ---------------------------------------------------- From TENIERER at GOV.NS.CA Thu Dec 16 04:46:14 2004 From: TENIERER at GOV.NS.CA (Rene Teniere) Date: Thu, 16 Dec 2004 08:46:14 -0400 Subject: PHP/MapScript processQueryTemplate Help Message-ID: Hi all, For those who wish to know for future thread searches, the reason it didn't work is that I thought both parameters in the function processQueryTemplate(array params, boolean generateimages) were mandatory. It turns out that it isn't. Since I did not need any additional parameters, but thought it was mandatory, I stuck in an empty array. That caused a CGI timeout. Once I took it out, it worked fine. Here's what I ended up with: $queryHTML = $map->processQueryTemplate(MS_FALSE); Rene >>> Daniel Morissette 2004-12-14 1:00:34 PM >>> Rene Teniere wrote: > Hi, > > Just trying to get info functionality working in our site using > PHP/Mapscript. It seems to get stalled while processing the template. Am > I doing this wrong? > Which version of MapServer are you using? There was bug 569 that was fixed in v4.2 (quite a while ago) that was causing problems if you had TEMPLATE set only at the layer level and not inside classes like you have done. If you are using a version older than 4.2.0 then you should either upgrade or try adding the TEMPLATE inside the CLASS as well. Other than that, I can't see what's wrong based on the information that you provided. If you are using version 4.4 and the problem persists then you could maybe file a bug with a small testcase to reproduce. Daniel -- ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From miroslav.sulc at STARTNET.CZ Thu Dec 16 04:47:49 2004 From: miroslav.sulc at STARTNET.CZ (=?ISO-8859-2?Q?Miroslav_=A9ulc?=) Date: Thu, 16 Dec 2004 13:47:49 +0100 Subject: Display map with specified point in cen ter In-Reply-To: Message-ID: Thank you, James, does anybody know whether this can also be done through php mapscript? Shanton, James A wrote: >Miroslav, > >I'm doing it this way. > >http://www.mydomain.com/mapserver/bin/mapserv.exe?map=D%3A%5CMAPS%5CGIS2%5Ct >hex.map&mapxy=" & rst("LONGITUDE") & "+" & rst("LATITUDE") & >"&layer=idogr&layer14=railroad&layer14=ortho&scale=5000&mapsize=600+500 > >replace the " & rst("LONGITUDE") & "+" & rst("LATITUDE") & " >with your lat and Long. > >Jim Shanton > > -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From trondmm-mapserver at CRUSADERS.NO Thu Dec 16 04:50:25 2004 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 16 Dec 2004 13:50:25 +0100 Subject: Keeping tempfiles Message-ID: Hi. Is it possible to get mapserver to not delete the temp-files. I'm using mapserver as a WMS-client, and I'm frequently getting error-messages like this: msDrawMap(): Image handling error. Failed to draw layer named 'kart'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /var/www/tmp/1103200159255940.img.tmp is not an EPPL file. But it works fine when I reload the page. I would like to inspect this file to see if my WMS-server is doing something it shouldn't, but the file is gone when I look in /var/www/tmp -- Trond Michelsen From bartvde at XS4ALL.NL Thu Dec 16 05:13:49 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 16 Dec 2004 14:13:49 +0100 Subject: Keeping tempfiles In-Reply-To: <20041216125025.GA19509@crusaders.no> Message-ID: Hi, in mapwmslayer.c I see the following comment: * Do not delete the temporary file comming from the server if we are in debug * mode. (DEBUG ON on the layer) So try using DEBUG ON on your layer. Best regards, Bart > Hi. Is it possible to get mapserver to not delete the temp-files. I'm > using mapserver as a WMS-client, and I'm frequently getting error-messages > like this: > > > msDrawMap(): Image handling error. Failed to draw layer named 'kart'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format > drawEPP(): Image handling error. /var/www/tmp/1103200159255940.img.tmp is > not an EPPL file. > > > But it works fine when I reload the page. I would like to inspect this > file to see if my WMS-server is doing something it shouldn't, but the > file is gone when I look in /var/www/tmp > > -- > Trond Michelsen > From miroslav.sulc at STARTNET.CZ Thu Dec 16 05:54:55 2004 From: miroslav.sulc at STARTNET.CZ (=?ISO-8859-2?Q?Miroslav_=A9ulc?=) Date: Thu, 16 Dec 2004 14:54:55 +0100 Subject: Display map with specified point in center In-Reply-To: <41C17D44.7000601@startnet.cz> Message-ID: I have made some tests and it seems to me that if I count the extent of the map with my point in the center of map then the extent is adjusted according to the size of map when drawing the map but the center remains still the same. For example: point: 400 600 my counted extent: 350 550 450 650 (counted by me, - 50, - 50, + 50, + 50) adjusted extent: 350 570 450 620 (adjusted by php myscript when drawing the map) Can somebody confirm it? Maybe I am wrong so I just want to be sure. Miroslav ?ulc Miroslav ?ulc wrote: > Hi, > > I am still newbie so maybe I ask a stupid question but I cannot solve > this one. > > I have a set (about 5000) points with coordinates in MySQL database and > map that covers the region of the points. When user says "display THIS > point on map", I would like to display map with this point in the center. > > I suppose I should > 1) estimate the extent of the map that I want to display > 2) insert the point into a layer (the point has coordinates) and draw > the point > > I can somehow estimate the extent but I don't know how I can insert the > point specified by coordinates into the map. I use PHP Mapscript. I > would appreciate any suggestion. > > -- > Miroslav ?ulc, CEO > StartNet s.r.o. > ---------------------------------------------------- > Vrchlick?ho 161/5, Praha 5, 150 00, ?esk? republika > ---------------------------------------------------- > ICQ: 60144073 > web: www.startnet.cz, www.novavystavba.cz > ---------------------------------------------------- > mobil: +420 603 711 413 > telefon: +420 257 225 602 > ---------------------------------------------------- > -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From trondmm-mapserver at CRUSADERS.NO Thu Dec 16 05:32:03 2004 From: trondmm-mapserver at CRUSADERS.NO (Trond Michelsen) Date: Thu, 16 Dec 2004 14:32:03 +0100 Subject: Keeping tempfiles In-Reply-To: <6911.212.238.227.182.1103202829.squirrel@212.238.227.182> Message-ID: On Thu, Dec 16, 2004 at 02:13:49PM +0100, bartvde at xs4all.nl wrote: > Hi, > > in mapwmslayer.c I see the following comment: > > * Do not delete the temporary file comming from the server if we are in > debug > * mode. (DEBUG ON on the layer) > > So try using DEBUG ON on your layer. Ah. As simple as that. Thanks. -- // Trond Michelsen \X/ mike at crusaders.no From woodbri at SWOODBRIDGE.COM Thu Dec 16 06:22:14 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 16 Dec 2004 09:22:14 -0500 Subject: arabic labels in mapserver In-Reply-To: <20041216114621.68608.qmail@web61002.mail.yahoo.com> Message-ID: parwaiz, I cc this to the mapserver list as there are more people there and they might have an answer for you. I never followed up on that issue as the contract never came through. But what I do know is that you need at least these elements: 1) a truetype font that supports arabic 2) mapserver to support right to left rendering of text strings or you might be able to reverse the character in the string to fake the rendering direction. Does anyone have more information on this? -Steve W. parwaiz eqbal wrote: > sir > > i found your question posted on net on Thu, 23 Jan > 2003 regarding arabic lebels in mapserver or maplab. > Did u find any clue.If so can u help me in this > regard. > At present i am facing the same problem. > Labels are not coming or showing in arabic. > > thanking u > parwaiz > > > > __________________________________ > Do you Yahoo!? > Yahoo! Mail - Helps protect you from nasty viruses. > http://promotions.yahoo.com/new_mail > From yecarrillo at YAHOO.COM Thu Dec 16 06:30:04 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Thu, 16 Dec 2004 08:30:04 -0600 Subject: arabic labels in mapserver In-Reply-To: <41C19A16.5020900@swoodbridge.com> Message-ID: --- Stephen Woodbridge escribi?: > parwaiz, > > I cc this to the mapserver list as there are more people there and they > might have an answer for you. > > I never followed up on that issue as the contract never came through. > But what I do know is that you need at least these elements: > > 1) a truetype font that supports arabic > 2) mapserver to support right to left rendering of text strings > or you might be able to reverse the character in the string > to fake the rendering direction. > > Does anyone have more information on this? > > -Steve W. > I think, you can find useful this list of charsets supported by libiconv-1.9.1 (MapServer 4.4) Use "ENCODING charset" in your mapfile. http://cvs.sourceforge.net/viewcvs.py/gix/mstools/GixMSTools.charsets?view=markup ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From cernohor at CENTRUM.CZ Thu Dec 16 06:38:13 2004 From: cernohor at CENTRUM.CZ (Karel Cernohorsky) Date: Thu, 16 Dec 2004 15:38:13 +0100 Subject: Troubles with java mapscript compilation on windows Message-ID: Thans Frank, Win32 Compilation and Installation HOWTO helped me a lot. But journey continue. I am now trying to compile java mapscript and I have a similar problems :( Now I have compiled mapserver succesfuly. mapserv -v MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=SHAPEFILE DEBUG=MSDEBUG Is there any similar HOWTO concerning java mapscript compilation on windows? makefile.vc for java mapscrip ends with this error. But I dont understand it well, but is seems like problems with layers. Am I missing some library or what? mapscript_wrap.c link /dll /debug mapscript_wrap.obj d:\MapServerSupportProjects\gdwin32/bgd.lib d:\M apServerSupportProjects\proj-4.4.9/src/proj_i.lib ..\..\mapserver_i.lib /NODEFAULTLIB :"MSVCRTD" /NODEFAULTLIB:libcd /NODEFAULTLIB:libcmtd /NODEFAULTLIB:msvcrtd /NODEFAULTLIB:LIBC /DEBUG /def:..\..\mapserver.def /out:mapscript.dll /implib:mapscript_i.lib Microsoft (R) Incremental Linker Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. Creating library mapscript_i.lib and object mapscript_i.exp mapscript_wrap.obj : error LNK2019: unresolved external symbol _msSLDApplySLD referenced in function _layerObj_applySLD mapscript_wrap.obj : error LNK2019: unresolved external symbol _msSLDApplySLDURL referenced in funct ion _layerObj_applySLDURL mapscript_wrap.obj : error LNK2019: unresolved external symbol _msSLDGenerateSLD referenced in funct ion _layerObj_generateSLD mapscript.dll : fatal error LNK1120: 3 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. I am looking forward to read any hints, Karel. ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Wednesday, December 15, 2004 6:04 PM Subject: Re: [UMN_MAPSERVER-USERS] Troubles with regex-0.12 > Karel, > > I would suggest you review: > > http://mapserver.gis.umn.edu/doc44/win32_compile-howto.html > > In particular there is a section that reads: > > Regex Build Problems. > > 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. > > This occurs if you use the stock regex-0.12 we referenced. I work > around this by commenting out the "extern" statement for the > printchar() function, and replacing it with a stub implementation in > regex-0.12\regex.c. > > //extern void printchar (); > void printchar( int i ) {} > > 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 > --- Odchoz? zpr?va neobsahuje viry. Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). Verze: 6.0.811 / Virov? b?ze: 552 - datum vyd?n?: 13.12.2004 From sgillies at FRII.COM Thu Dec 16 06:44:22 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 16 Dec 2004 07:44:22 -0700 Subject: Troubles with java mapscript compilation on windows In-Reply-To: Message-ID: Howard Butler has a pre-compiled mapscript for windows and the 1.5 runtime. http://hobu.stat.iastate.edu/mapserver/build_output/4_4_0/none You may want to try that to get started. The problem with msSLDApplySLD() is probably because you did not configure for WMS Client support. The OWS code's conditional compilation directives are screwed up and enforce some unnecessary dependencies. If you can not build a more capable MapServer (with Curl, and full WMS/WFS), you can hack mapscript/swiginc/map.i and mapscript/swiginc/layer.i and comment out the "applySLD", "applySLDURL", and "generateSLD" methods. cheers, Sean On Dec 16, 2004, at 7:38 AM, Karel Cernohorsky wrote: > Thans Frank, > > Win32 Compilation and Installation HOWTO helped me a lot. > But journey continue. > I am now trying to compile java mapscript and I have a similar > problems :( > > Now I have compiled mapserver succesfuly. > mapserv -v > MapServer version 4.5 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE > SUPPORTS=WMS_SERVER INPUT=SHAPEFILE DEBUG=MSDEBUG > > Is there any similar HOWTO concerning java mapscript compilation on > windows? > > makefile.vc for java mapscrip ends with this error. > But I dont understand it well, but is seems like problems with layers. > Am I missing some library or what? > > mapscript_wrap.c > link /dll /debug mapscript_wrap.obj > d:\MapServerSupportProjects\gdwin32/bgd.lib d:\M > apServerSupportProjects\proj-4.4.9/src/proj_i.lib > ..\..\mapserver_i.lib /NODEFAULTLIB > :"MSVCRTD" /NODEFAULTLIB:libcd /NODEFAULTLIB:libcmtd > /NODEFAULTLIB:msvcrtd > /NODEFAULTLIB:LIBC /DEBUG > /def:..\..\mapserver.def /out:mapscript.dll /implib:mapscript_i.lib > Microsoft (R) Incremental Linker Version 7.00.9466 > Copyright (C) Microsoft Corporation. All rights reserved. > > Creating library mapscript_i.lib and object mapscript_i.exp > mapscript_wrap.obj : error LNK2019: unresolved external symbol > _msSLDApplySLD referenced in function > _layerObj_applySLD > mapscript_wrap.obj : error LNK2019: unresolved external symbol > _msSLDApplySLDURL referenced in funct > ion _layerObj_applySLDURL > mapscript_wrap.obj : error LNK2019: unresolved external symbol > _msSLDGenerateSLD referenced in funct > ion _layerObj_generateSLD > mapscript.dll : fatal error LNK1120: 3 unresolved externals > NMAKE : fatal error U1077: 'link' : return code '0x460' > Stop. > > > I am looking forward to read any hints, > Karel. > > ----- Original Message ----- > From: "Frank Warmerdam" > To: > Sent: Wednesday, December 15, 2004 6:04 PM > Subject: Re: [UMN_MAPSERVER-USERS] Troubles with regex-0.12 > > >> Karel, >> >> I would suggest you review: >> >> http://mapserver.gis.umn.edu/doc44/win32_compile-howto.html >> >> In particular there is a section that reads: >> >> Regex Build Problems. >> >> 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. >> >> This occurs if you use the stock regex-0.12 we referenced. I work >> around this by commenting out the "extern" statement for the >> printchar() function, and replacing it with a stub implementation in >> regex-0.12\regex.c. >> >> //extern void printchar (); >> void printchar( int i ) {} >> >> 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 >> > > > --- > Odchoz? zpr?va neobsahuje viry. > Zkontrolov?no antivirov?m syst?mem AVG (http://www.grisoft.cz). > Verze: 6.0.811 / Virov? b?ze: 552 - datum vyd?n?: 13.12.2004 > From eric at GOMOOS.ORG Thu Dec 16 06:46:08 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 16 Dec 2004 09:46:08 -0500 Subject: Display map with specified point in cen ter In-Reply-To: <41C183F5.7070107@startnet.cz> Message-ID: On Thu, 2004-12-16 at 07:47, Miroslav ?ulc wrote: > Thank you, James, > > does anybody know whether this can also be done through php mapscript? > > Shanton, James A wrote: > > >Miroslav, > > > >I'm doing it this way. > > > >http://www.mydomain.com/mapserver/bin/mapserv.exe?map=D%3A%5CMAPS%5CGIS2%5Ct > >hex.map&mapxy=" & rst("LONGITUDE") & "+" & rst("LATITUDE") & > >"&layer=idogr&layer14=railroad&layer14=ortho&scale=5000&mapsize=600+500 Yes this can be done with Mapscript. Unfortunately I'm not sure of the PHP syntax, but here is a Perl Mapscript example. The trick here is getting an image object and doing the drawing yourself using pointObj->draw(). my $map = new mapscript::mapObj("simple_points.map"); # create an image for drawing. my $img = $map->draw(); my $layerObj = $map->getLayerByName('points'); my $point = new mapscript::pointObj(); $point->{x} = $longitude; $point->{y} = $latitude; my $label = "The label"; $point->draw($map, $layerObj, $img, undef, $label); # To display labels. $map->drawLabelCache($img); $img->save("/tmp/map.png"); ############### Map file fragment LAYER NAME "points" TYPE POINT STATUS ON TOLERANCE 10 # Need fake template for querys to work TEMPLATE "bogus.html" CLASS NAME "buoy" STYLE SYMBOL "circle" SIZE 10 COLOR 255 0 0 OUTLINECOLOR 0 0 0 END LABEL COLOR 255 0 0 TYPE BITMAP SIZE MEDIUM POSITION AUTO PARTIALS FALSE BUFFER 2 END # end of label END PROJECTION "proj=latlong" END END From eric at GOMOOS.ORG Thu Dec 16 06:47:26 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 16 Dec 2004 09:47:26 -0500 Subject: Display map with specified point in center In-Reply-To: <41C193AF.6050908@startnet.cz> Message-ID: On Thu, 2004-12-16 at 08:54, Miroslav ?ulc wrote: > I have made some tests and it seems to me that if I count the extent of > the map with my point in the center of map then the extent is adjusted > according to the size of map when drawing the map but the center remains > still the same. > > For example: > point: 400 600 > my counted extent: 350 550 450 650 (counted by me, - 50, > - 50, + 50, + 50) > adjusted extent: 350 570 450 620 (adjusted by php myscript when drawing > the map) > > Can somebody confirm it? Maybe I am wrong so I just want to be sure. > Yes. I don't know the details but this is the case. From miroslav.sulc at STARTNET.CZ Thu Dec 16 06:59:33 2004 From: miroslav.sulc at STARTNET.CZ (=?ISO-8859-15?Q?Miroslav_=A6ulc?=) Date: Thu, 16 Dec 2004 15:59:33 +0100 Subject: Display map with specified point in cen ter In-Reply-To: <1103208373.1526.33.camel@ubet.gomoos.org> Message-ID: Thank, you, Eric, for both mails. I think it wouldn't be a problem to rewrite it in PHP. Thank you very much. Miroslav ?ulc Eric Bridger wrote: >Yes this can be done with Mapscript. Unfortunately I'm not sure of the >PHP syntax, but here is a Perl Mapscript example. The trick here is >getting an image object and doing the drawing yourself using >pointObj->draw(). > >my $map = new mapscript::mapObj("simple_points.map"); ># create an image for drawing. >my $img = $map->draw(); >my $layerObj = $map->getLayerByName('points'); >my $point = new mapscript::pointObj(); >$point->{x} = $longitude; >$point->{y} = $latitude; >my $label = "The label"; >$point->draw($map, $layerObj, $img, undef, $label); ># To display labels. >$map->drawLabelCache($img); >$img->save("/tmp/map.png"); > >############### Map file fragment >LAYER > NAME "points" > TYPE POINT > STATUS ON > TOLERANCE 10 > # Need fake template for querys to work > TEMPLATE "bogus.html" > CLASS > NAME "buoy" > STYLE > SYMBOL "circle" > SIZE 10 > COLOR 255 0 0 > OUTLINECOLOR 0 0 0 > END > LABEL > COLOR 255 0 0 > TYPE BITMAP > SIZE MEDIUM > POSITION AUTO > PARTIALS FALSE > BUFFER 2 > END # end of label > END > PROJECTION > "proj=latlong" > END >END > > > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From nkk at KMS.DK Thu Dec 16 07:08:53 2004 From: nkk at KMS.DK (Nikolaj Kamstrup) Date: Thu, 16 Dec 2004 16:08:53 +0100 Subject: MapServer with SLD support Message-ID: Dear list members I'm currently evaluating a few map engines including MapServer. However, I'm having some problems of finding af compiled version of MapServer for Windows that supports SLD. I have previously downloaded the windows binaries 4.2 version and recently the 4.4 version from the MapServer homepage but both of them throw an exception when trying to make a WMS request that includes SLD. Exception is something like "MapServer supports only default styles and is expecting an empty string for the STYLES parameter....". I would appreciate if someone could direct me to a downloadable compiled version of MapServer for windows that supports SLD. I would prefer a version compiled with OracleSpatial input support but it's not a must. Thanks Nikolaj Kamstrup -------------- next part -------------- An HTML attachment was scrubbed... URL: From bartvde at XS4ALL.NL Thu Dec 16 07:39:34 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 16 Dec 2004 16:39:34 +0100 Subject: MapServer with SLD support In-Reply-To: Message-ID: Hi, the binaries from Maptools include SLD support. But you have to remember that Mapserver does not support named styles. So it always expects &STYLES= to be empty (the default style according to OGC). If you want to use an SLD (user style) you can e.g. use &sld=http:// etc. Best regards, Bart > Dear list members > > I'm currently evaluating a few map engines including MapServer. However, > I'm having some problems of finding af compiled version of MapServer for > Windows that supports SLD. I have previously downloaded the windows > binaries 4.2 version and recently the 4.4 version from the MapServer > homepage but both of them throw an exception when trying to make a WMS > request that includes SLD. Exception is something like "MapServer supports > only default styles and is expecting an empty string for the STYLES > parameter....". > > I would appreciate if someone could direct me to a downloadable compiled > version of MapServer for windows that supports SLD. I would prefer a > version compiled with OracleSpatial input support but it's not a must. > > Thanks > > Nikolaj Kamstrup > From adams at TERRESTRIS.DE Thu Dec 16 07:40:44 2004 From: adams at TERRESTRIS.DE (Till Adams) Date: Thu, 16 Dec 2004 16:40:44 +0100 Subject: MapServer with SLD support In-Reply-To: Message-ID: Nikolaj Kamstrup wrote: > > Dear list members > > I'm currently evaluating a few map engines including MapServer. > However, I'm having some problems of finding af compiled version of > MapServer for Windows that supports SLD. I have previously downloaded > the windows binaries 4.2 version and recently the 4.4 version from the > MapServer homepage but both of them throw an exception when trying to > make a WMS request that includes SLD. Exception is something like > "MapServer supports only default styles and is expecting an empty > string for the STYLES parameter....". > > I would appreciate if someone could direct me to a downloadable > compiled version of MapServer for windows that supports SLD. I would > prefer a version compiled with OracleSpatial input support but it's > not a must. > > Thanks > > Nikolaj Kamstrup Nikolaj, be sure to include the "wms_sld_body" "AUTO" in your WMS tag of the layer in your mapfile. I worked on our demo-laptop with umn v4.2 and SLD. The problem is, that umn just seem to ignore the SLD-tag, if your configuration is not correct. For the map-request leave the STYLES= Section empty, an example: http://212.79.172.184/cgi-bin/mapserv42?map=/var/data/sld/world.map&VERsion=1.1.1&REQUEST=getmap&LAYERS=country&STYLES=&SRS=EPSG:4326&BBOX=-180,-180,180,180&WIDTH=400&HEIGHT=200&FORMAT=PNG&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=INIMAGE&SLD=http://212.79.172.184/sld/world/country.xml You may download the SLD from our demoserver and play around with this (Building side!!!). Greetings from Germany, Till 8-) From cdaily at GMAIL.COM Thu Dec 16 08:29:41 2004 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 16 Dec 2004 10:29:41 -0600 Subject: Projection/Extent help Message-ID: Hello all. I'm a mapserver newbie trying to figure something out. Basically, I have two sets of shapefiles in different projections and units. One has units of dd, and one has units of feet. When I combine the two, I'd like to define my extents for the whole .map file using dd instead of feet. I've made up a sample .map file where I'm simply trying to display one layer with units of feet while defining the extent using dd. However, everything I try just gives me a blank page. If I define the extent in terms of feet and drop the "proj=latlong" line, it shows up fine. But I just can't get it to work when I define the extent in dd. Any help would be much appreciated! -Camden Daily MAP NAME Chicago STATUS ON DEBUG ON SIZE 300 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/web_system/data" FONTSET "/web_system/fonts/fonts.list" -------- EXTENT -87.74 41.80 -87.56 41.98 UNITS DD PROJECTION "proj=latlong" END ------- #EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 #UNITS FEET ------- WEB LOG "/web_system/logs/mapserver.log" IMAGEPATH "/web_system/tmp/" IMAGEURL "/tmp/" END LAYER NAME "cta_line" TYPE LINE STATUS DEFAULT DEBUG ON DATA "CTA_Line" CLASS COLOR 0 0 0 END PROJECTION "init=epsg:26971" END UNITS FEET END END From frans at GEODAN.NL Thu Dec 16 08:49:21 2004 From: frans at GEODAN.NL (Frans Knibbe) Date: Thu, 16 Dec 2004 17:49:21 +0100 Subject: Does the 4.4.0 windows binary really support SWF? Message-ID: Hello, I have downloaded and installed the binary Windows distribution, version 4.4.0. In the description on the website, it says the binaries are build with SWF support. When I do a request for capabilities, SWF is mentioned in a comment in the output XML file, but does not show up as a supported GetMap output format. Indeed, when I request a map in SWF format, the following error is returned: msWMSLoadGetMapParams(): Image handling error. Unsupported output format (application/x-shockwave-flash). Am I doing something wrong or is the text accompanying the binaries wrong? Greetings, Frans From agillesp at VT.EDU Thu Dec 16 09:18:01 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 16 Dec 2004 12:18:01 -0500 Subject: Printing To Scale - revisited Message-ID: Thank you everyone for the help. I've decided to look into the PDF option. Is the built-in PHP PDF API (oh the acronyms!) the best place to start: http://us2.php.net/manual/en/ref.pdf.php Or is there something else / better I should be working with? Thanks. -Abe From ed at TOPOZONE.COM Thu Dec 16 09:02:19 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 16 Dec 2004 12:02:19 -0500 Subject: Projection/Extent help Message-ID: Camden - Your EXTENT and UNITS need to be described in the units of the output projection your map is using. In your example below, everything is fine. But if you switch to the two commented EXTENT and UNITS lines, it won't work unless your PROJECTION block is changed to have the map generated in a different projection that uses those units. Leave your EXTENT and UNITS alone, since you want to (I think) still have your output projection be "latlong". You need to create a new PROJECTION block that's *inside* the LAYER definition block for the new layer that's got units in feet. By default MapServer assumes that all LAYERs not otherwise described are in the same projection as the output projection of the image (the one defined by the top-level PROJECTION block). If that's not the case, MapServer can't guess - you have to tell it that a given layer is in a different projection by including a PROJECTION block inside that layer definition. What is the "other" projection? You need to know either its name (if it's a common, standard projection) or all the mathematical parameters describing it if it's a custom projection. If you don't know how to describe it accurately, MapServer won't be able to guess for you ! - 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: Thursday, December 16, 2004 11:30 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Projection/Extent help Hello all. I'm a mapserver newbie trying to figure something out. Basically, I have two sets of shapefiles in different projections and units. One has units of dd, and one has units of feet. When I combine the two, I'd like to define my extents for the whole .map file using dd instead of feet. I've made up a sample .map file where I'm simply trying to display one layer with units of feet while defining the extent using dd. However, everything I try just gives me a blank page. If I define the extent in terms of feet and drop the "proj=latlong" line, it shows up fine. But I just can't get it to work when I define the extent in dd. Any help would be much appreciated! -Camden Daily MAP NAME Chicago STATUS ON DEBUG ON SIZE 300 300 IMAGETYPE PNG IMAGECOLOR 240 240 240 SHAPEPATH "/web_system/data" FONTSET "/web_system/fonts/fonts.list" -------- EXTENT -87.74 41.80 -87.56 41.98 UNITS DD PROJECTION "proj=latlong" END ------- #EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 #UNITS FEET ------- WEB LOG "/web_system/logs/mapserver.log" IMAGEPATH "/web_system/tmp/" IMAGEURL "/tmp/" END LAYER NAME "cta_line" TYPE LINE STATUS DEFAULT DEBUG ON DATA "CTA_Line" CLASS COLOR 0 0 0 END PROJECTION "init=epsg:26971" END UNITS FEET END END From assefa at DMSOLUTIONS.CA Thu Dec 16 09:02:39 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 16 Dec 2004 12:02:39 -0500 Subject: Does the 4.4.0 windows binary really support SWF? In-Reply-To: <41C1BC91.5010906@geodan.nl> Message-ID: Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 describes this issue. Only GDAL/GD formats are supported for wms in 4.4. This will be upgadred to other formats for 4.6 release. Frans Knibbe wrote: > Hello, > > I have downloaded and installed the binary Windows distribution, version > 4.4.0. In the description on the website, it says the binaries are build > with SWF support. When I do a request for capabilities, SWF is mentioned > in a comment in the output XML file, but does not show up as a supported > GetMap output format. Indeed, when I request a map in SWF format, > the following error is returned: > msWMSLoadGetMapParams(): Image handling error. Unsupported output format > (application/x-shockwave-flash). > > Am I doing something wrong or is the text accompanying the binaries wrong? > > Greetings, > > Frans > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From agillesp at VT.EDU Thu Dec 16 09:21:02 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Thu, 16 Dec 2004 12:21:02 -0500 Subject: Printing To Scale - revisited In-Reply-To: <7057794C-4F86-11D9-8CC6-000A957A0F9C@vt.edu> Message-ID: Oh, hmmm, also perhaps something free? I didn't read much further than the first paragraph. It seems you have to buy a license for commercial use. -Abe On Dec 16, 2004, at 12:18 PM, Abe Gillespie wrote: > Thank you everyone for the help. I've decided to look into the PDF > option. Is the built-in PHP PDF API (oh the acronyms!) the best place > to start: > http://us2.php.net/manual/en/ref.pdf.php > > Or is there something else / better I should be working with? > > Thanks. > -Abe > From pramsey at REFRACTIONS.NET Thu Dec 16 09:20:18 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 16 Dec 2004 09:20:18 -0800 Subject: MapServer - ArcSDE feedback In-Reply-To: <23489.212.238.227.182.1103196604.squirrel@212.238.227.182> Message-ID: The main advantage of ArcSDE is that you can directly edit your data with ArcMap. There are also some other good desktop-integrated features like versioning and topology that work well with ArcMap. Everything else is disadvantages. Performance, flexibility, price, standards compliance: PostGIS wins on them all. Paul Bart van den Eijnden wrote: > all the info about Mapserver and SDE is on the Wiki: > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE > > I'll let others (who are more capable) comment on the PostGIS-ArcSDE > comparison .... the only thing I know is that ArcSDE has a deadly > connection overhead so you should use Mapserver in FastCGI mode for that > to get an acceptable performance. > > Best regards, > Bart > > >>Hi all, >> >>the company for wich I work is taking into account to buy an ArcSDE >>license. >>Is there someone which can give me some feedback (or links to) about >>connection of MapServer with ArcSDE ? >>I would like to know problems and advantages especially compared with >>having data in PostGIS. >> >>I think this could be usefull also for other people ... >> >>Thanks >> Piero >> From cammeresi at TELSASOFT.COM Thu Dec 16 09:18:33 2004 From: cammeresi at TELSASOFT.COM (Sidney Cammeresi) Date: Thu, 16 Dec 2004 11:18:33 -0600 Subject: Screen coordinates of points/symbols Message-ID: Is there a way to find out the screen coordinates of a point contained in a layer or the coordinates/bbox of the symbol rendered for that point? I am interested in knowing exactly where in the image a point I'm drawing is located so that I can do some animations and other fanciness. Thanks, -- Sidney CAMMERESI http://www.telsasoft.com/ From Dan.Liu at STATE.MN.US Thu Dec 16 09:31:12 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Thu, 16 Dec 2004 11:31:12 -0600 Subject: jbox- java applet notinited Message-ID: Hi Richard, Thank you for the suggestions. The error I got from Java console is: netscape.javascript.JSException: Failure to evaluate reset_handler('jBox',-1.0,-1.0,-1.0,-1.0); at sun.plugin.javascript.ocx.JSObject.eval(Unknown Source) at jBoxPNG.boxoff(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) at sun.plugin.com.DispatchImpl.invoke(Unknown Source) And on any computers I tried this demo got the grey image with a red cross. So I don't think it is not client configuration. Thanks again. Dan -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at GMail.com] Sent: Tuesday, December 14, 2004 9:52 AM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited On Tue, 14 Dec 2004 09:10:09 -0600, Dan Liu wrote: > Hi Richard, > Is there any way to fix this error? I tried everything. The 'applet noinited > error' still shows from time to time on both Mozilla and IE. > > Dan Sorry. Your server was down over the weekend, and then I kind of forgot... I Iooked at your code and viewed the page. I do not see anything suspicious and I did not get an error, so I can only suggest some general avenues to explore. 1. Open the Java console when you run it. It will display considerably more error information when an error does occur. 2. Try the 'regular' jBox instead of the jBoxPNG. Sun's recent Java VMs can display PNGs natively. It is only the Microsoft Java VM that can not, and that therefoer requires the jBoxPNG. 3. Test some other Java enabled sites (e.g. www2.tetonwyo.org/mapsever) to be sure that it's not simply your client configuration. Sorry that I don't have a more specific solution. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From kenlord at GMAIL.COM Thu Dec 16 09:51:33 2004 From: kenlord at GMAIL.COM (Ken Lord) Date: Thu, 16 Dec 2004 09:51:33 -0800 Subject: MapServer - ArcSDE feedback In-Reply-To: <41C1C3D2.4020809@refractions.net> Message-ID: You can directly edit your spatial data in PostGIS with ArcMap too, there is an ODBC driver available on sourceforge that allows the connection. Last I checked several months ago, it still needed work, when editing a table you had to save a new version of the table to the database, then delete the old table, perhaps that has improved in the time since, or perhaps there's some whiz here that could make that better for us :) I have not used MapServer with ArcSDE but I have heard nightmares of having to build mapserver for the exact version of ArcSDE you are using. I have setup test websites with PostGIS, keeping data in shapefiles for easy editing which I then import into PostGIS after editing. It's an extra step, but in my opinion its well worth the ~$20,000 cdn (plus annual 'maintenance' fees) that you can save using PostGIS. Cheers, Ken Lord Vancouver BC On Thu, 16 Dec 2004 09:20:18 -0800, Paul Ramsey wrote: > The main advantage of ArcSDE is that you can directly edit your data > with ArcMap. There are also some other good desktop-integrated features > like versioning and topology that work well with ArcMap. > Everything else is disadvantages. Performance, flexibility, price, > standards compliance: PostGIS wins on them all. > > Paul > > Bart van den Eijnden wrote: > > > all the info about Mapserver and SDE is on the Wiki: > > > > http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE > > > > I'll let others (who are more capable) comment on the PostGIS-ArcSDE > > comparison .... the only thing I know is that ArcSDE has a deadly > > connection overhead so you should use Mapserver in FastCGI mode for that > > to get an acceptable performance. > > > > Best regards, > > Bart > > > > > >>Hi all, > >> > >>the company for wich I work is taking into account to buy an ArcSDE > >>license. > >>Is there someone which can give me some feedback (or links to) about > >>connection of MapServer with ArcSDE ? > >>I would like to know problems and advantages especially compared with > >>having data in PostGIS. > >> > >>I think this could be usefull also for other people ... > >> > >>Thanks > >> Piero > >> > From pramsey at REFRACTIONS.NET Thu Dec 16 10:05:26 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 16 Dec 2004 10:05:26 -0800 Subject: MapServer - ArcSDE feedback In-Reply-To: <55dd01fa041216095149af22be@mail.gmail.com> Message-ID: Ken Lord wrote: > You can directly edit your spatial data in PostGIS with ArcMap too, > there is an ODBC driver available on sourceforge that allows the > connection. Yes, and soon uDig will provide a nice read/write tool for PostGIS (and many other things). > I have not used MapServer with ArcSDE but I have heard nightmares of > having to build mapserver for the exact version of ArcSDE you are > using. We have not had that experience. Compiled against the 9.0 libraries we could work against 8.X databases fine, and also 9.0 databases. > I have setup test websites with PostGIS, keeping data in shapefiles > for easy editing which I then import into PostGIS after editing. It's > an extra step, but in my opinion its well worth the ~$20,000 cdn (plus > annual 'maintenance' fees) that you can save using PostGIS. Indeed. You really have to evaluate what functionality you think you are getting from SDE. Unless you have an installed base of ArcMap users with a true concurrent editing requirement, it might not be getting you anything PostGIS doesn't do better. Paul > On Thu, 16 Dec 2004 09:20:18 -0800, Paul Ramsey wrote: > >> The main advantage of ArcSDE is that you can directly edit your data >>with ArcMap. There are also some other good desktop-integrated features >>like versioning and topology that work well with ArcMap. >> Everything else is disadvantages. Performance, flexibility, price, >>standards compliance: PostGIS wins on them all. >> >>Paul >> >>Bart van den Eijnden wrote: >> >> >>>all the info about Mapserver and SDE is on the Wiki: >>> >>>http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE >>> >>>I'll let others (who are more capable) comment on the PostGIS-ArcSDE >>>comparison .... the only thing I know is that ArcSDE has a deadly >>>connection overhead so you should use Mapserver in FastCGI mode for that >>>to get an acceptable performance. >>> >>>Best regards, >>>Bart >>> >>> >>> >>>>Hi all, >>>> >>>>the company for wich I work is taking into account to buy an ArcSDE >>>>license. >>>>Is there someone which can give me some feedback (or links to) about >>>>connection of MapServer with ArcSDE ? >>>>I would like to know problems and advantages especially compared with >>>>having data in PostGIS. >>>> >>>>I think this could be usefull also for other people ... >>>> >>>>Thanks >>>> Piero >>>> >> From ed at TOPOZONE.COM Thu Dec 16 10:08:32 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Thu, 16 Dec 2004 13:08:32 -0500 Subject: Projection/Extent help Message-ID: Paul - First, ALWAYS reply to the entire list. Just because I was the first to answer your question doesn't mean I'm the best to answer the rest of your questions, nor am I agreeing to be your personal answer man for life . And it's important for everyone else to learn from your questions, and to have them go into the archives. Thanks! Well, I guessed wrong - you didn't say whether the layer in your map file was the DD layer or the FEET layer. And I overlooked the PROJECTION block in your LAYER definition - sorry about that; I didn't scroll down far enough . Is 26971 incorrect? Well, it's units are not feet, but meters, as are most state plane systems. Get rid of the UNITS FEET in the LAYER block, as it's not going to change your projection for you. Your coordinates appear to be 26971 coordinates converted to feet, so you will need to create a custom projection definition that's the equivalent of NAD83 Illinois East in feet. Here's the definition of 26971: NAD83 / Illinois East <26971> proj=tmerc lat_0=36.666666667 lon_0=-88.333333333 k=0.999975 x_0=300000.000 y_0=0.000 ellps=GRS80 datum=NAD83 units=m no_defs <> If you replace the "units=m" statement with "to_meter=0.3048006096" you will adjust this projection definition to be in feet. You will need to explicitly describe this projection as: PROJECTION "proj=tmerc" "lat_0=36.666666667" "lon_0=-88.333333333" "k=0.999975" "x_0=300000.000" "y_0=0.000" "ellps=GRS80" "datum=NAD83" "to_meter=0.3048006096" "no_defs" END This should accurately describe your data layer, and allow MapServer to reproject it. - 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: Camden Daily [mailto:cdaily at gmail.com] Sent: Thursday, December 16, 2004 12:15 PM To: Ed McNierney Subject: Re: [UMN_MAPSERVER-USERS] Projection/Extent help Ed, Thanks for the reply, but I'm still a little confused... > Your EXTENT and UNITS need to be described in the units of the output > projection your map is using. In your example below, everything is > fine. But if you switch to the two commented EXTENT and UNITS lines, > it won't work unless your PROJECTION block is changed to have the map > generated in a different projection that uses those units. The example I posted doesn't work right now. In fact, the only I way I can get it to work is to drop out the mapfile projection and switch to the commented out extent in feet, the same units as the layer. > Leave your EXTENT and UNITS alone, since you want to (I think) still > have your output projection be "latlong". You need to create a new > PROJECTION block that's *inside* the LAYER definition block for the > new layer that's got units in feet. I have a projection block within my layer. Is it incorrect? > By default MapServer assumes that all LAYERs not otherwise described > are in the same projection as the output projection of the image (the > one defined by the top-level PROJECTION block). If that's not the > case, MapServer can't guess - you have to tell it that a given layer > is in a different projection by including a PROJECTION block inside > that layer definition. > > What is the "other" projection? You need to know either its name (if > it's a common, standard projection) or all the mathematical parameters > describing it if it's a custom projection. If you don't know how to > describe it accurately, MapServer won't be able to guess for you ! The other projection that I'm trying to merge this with is in latlong, which is why I'm trying to get this layer working with the extent in dd as opposed to feet. Thanks, -Camden > - 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: Thursday, December 16, 2004 11:30 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Projection/Extent help > > Hello all. I'm a mapserver newbie trying to figure something out. > Basically, I have two sets of shapefiles in different projections and > units. One has units of dd, and one has units of feet. > > When I combine the two, I'd like to define my extents for the whole > .map file using dd instead of feet. I've made up a sample .map file > where I'm simply trying to display one layer with units of feet while > defining the extent using dd. However, everything I try just gives me > a blank page. > > If I define the extent in terms of feet and drop the "proj=latlong" > line, it shows up fine. But I just can't get it to work when I define > the extent in dd. > > Any help would be much appreciated! > -Camden Daily > > MAP > > NAME Chicago > STATUS ON > DEBUG ON > SIZE 300 300 > IMAGETYPE PNG > IMAGECOLOR 240 240 240 > SHAPEPATH "/web_system/data" > FONTSET "/web_system/fonts/fonts.list" > -------- > EXTENT -87.74 41.80 -87.56 41.98 > UNITS DD > PROJECTION > "proj=latlong" > END > ------- > #EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 > #UNITS FEET > ------- > WEB > LOG "/web_system/logs/mapserver.log" > IMAGEPATH "/web_system/tmp/" > IMAGEURL "/tmp/" > END > > LAYER > NAME "cta_line" > TYPE LINE > STATUS DEFAULT > DEBUG ON > DATA "CTA_Line" > CLASS > COLOR 0 0 0 > END > PROJECTION > "init=epsg:26971" > END > UNITS FEET > END > > END > From fsozzi at INTERCAD.CH Thu Dec 16 10:08:28 2004 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Thu, 16 Dec 2004 19:08:28 +0100 Subject: oracle spatial troubles Message-ID: Hi all, MAPSERVER 4.4 I'm trying reading oracle spatial tables from a server Oracle 9i Enterprise Edition by use of mapserver 4.4.0. The problem is that on submitting map file from browser, in one machine I get a general protection fault, and in another I get a CGI error. In both case I can't read any oracle spatial data. I have to say that my mapserver installation works fine with shp and rasters. I have troubles only with oracle. MAPSERVER 4.2 I've also tried this version, and it works a little better. In this case I can renderer points and lines, but if I try to renderer a polygon I get an error (mapserver says that it finds no polygon geometry). These tables work fine with other products (MapGuide, ArcView, MapObject, ecc...). Anybody can suggest me something?... regards Francesco From fsimon at UNIVALI.BR Thu Dec 16 08:49:16 2004 From: fsimon at UNIVALI.BR (Fernando S.) Date: Thu, 16 Dec 2004 16:49:16 +0000 Subject: oracle spatial troubles In-Reply-To: <001d01c4e39a$3f6e2bb0$1901a8c0@Franz1> Message-ID: Hi Francesco, In this last version (4.4) the Oracle driver change. So, how did you defined your layer data string? Are you using Linux (*nix) or Windows? Some users report error with Windows binaries, Linux are working. I'm working to find the problem. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Francesco Sozzi wrote: >Hi all, > >MAPSERVER 4.4 >I'm trying reading oracle spatial tables from a server Oracle 9i Enterprise >Edition by use of mapserver 4.4.0. >The problem is that on submitting map file from browser, in one machine I >get a general protection fault, and in another I get a CGI error. In both >case I can't read any oracle spatial data. >I have to say that my mapserver installation works fine with shp and >rasters. I have troubles only with oracle. > >MAPSERVER 4.2 >I've also tried this version, and it works a little better. In this case I >can renderer points and lines, but if I try to renderer a polygon I get an >error (mapserver says that it finds no polygon geometry). These tables work >fine with other products (MapGuide, ArcView, MapObject, ecc...). > >Anybody can suggest me something?... > >regards > >Francesco > > > From sirronj at PACBELL.NET Thu Dec 16 11:52:48 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 16 Dec 2004 11:52:48 -0800 Subject: proper way to report back errors wit mapscript Message-ID: Hello again, I am getting the following errors that I am reporting this way using perl/mapscript New mapObj() error: \n [Thu Dec 16 11:44:11 2004] [error] New mapObj() error: \n [Thu Dec 16 11:44:36 2004] [error] New mapObj() error: \n I am coding this way: my $map = new mapscript::mapObj("/tmp/$map_file"); if(!$map){ die " New mapObj() error: $mapscript::ms_error->{message}\n"; } I got this ms_error-> deal from another sample script but I don't think it is reporting what is going on. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ealpert at DIGITALGLOBE.COM Thu Dec 16 12:02:52 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 16 Dec 2004 13:02:52 -0700 Subject: proper way to report back errors wit mapscript Message-ID: Maybe because you're calling $mapscript::ms_error->{message} when there's no error? ----> if(!map) -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, December 16, 2004 12:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] proper way to report back errors wit mapscript Hello again, I am getting the following errors that I am reporting this way using perl/mapscript New mapObj() error: \n [Thu Dec 16 11:44:11 2004] [error] New mapObj() error: \n [Thu Dec 16 11:44:36 2004] [error] New mapObj() error: \n I am coding this way: my $map = new mapscript::mapObj("/tmp/$map_file"); if(!$map){ die " New mapObj() error: $mapscript::ms_error->{message}\n"; } I got this ms_error-> deal from another sample script but I don't think it is reporting what is going on. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ealpert at DIGITALGLOBE.COM Thu Dec 16 12:04:39 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Thu, 16 Dec 2004 13:04:39 -0700 Subject: proper way to report back errors wit mapscript Message-ID: Sorry meant to hit cancel and hit send -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Ethan Alpert Sent: Thursday, December 16, 2004 1:03 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] proper way to report back errors wit mapscript Maybe because you're calling $mapscript::ms_error->{message} when there's no error? ----> if(!map) -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, December 16, 2004 12:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] proper way to report back errors wit mapscript Hello again, I am getting the following errors that I am reporting this way using perl/mapscript New mapObj() error: \n [Thu Dec 16 11:44:11 2004] [error] New mapObj() error: \n [Thu Dec 16 11:44:36 2004] [error] New mapObj() error: \n I am coding this way: my $map = new mapscript::mapObj("/tmp/$map_file"); if(!$map){ die " New mapObj() error: $mapscript::ms_error->{message}\n"; } I got this ms_error-> deal from another sample script but I don't think it is reporting what is going on. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From sirronj at PACBELL.NET Thu Dec 16 12:10:09 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Thu, 16 Dec 2004 12:10:09 -0800 Subject: proper way to report back errors wit mapscript In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B1999@COMAIL01.digitalglobe.com> Message-ID: I have this same script running on another mapserver installation and I have not got to an error. The logic says that if (!$map) which means that I did not get an object back from the call to new mapscript::mapObj - which is an error. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ethan Alpert Sent: Thursday, December 16, 2004 12:03 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] proper way to report back errors wit mapscript Maybe because you're calling $mapscript::ms_error->{message} when there's no error? ----> if(!map) -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Joseph Norris Sent: Thursday, December 16, 2004 12:53 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] proper way to report back errors wit mapscript Hello again, I am getting the following errors that I am reporting this way using perl/mapscript New mapObj() error: \n [Thu Dec 16 11:44:11 2004] [error] New mapObj() error: \n [Thu Dec 16 11:44:36 2004] [error] New mapObj() error: \n I am coding this way: my $map = new mapscript::mapObj("/tmp/$map_file"); if(!$map){ die " New mapObj() error: $mapscript::ms_error->{message}\n"; } I got this ms_error-> deal from another sample script but I don't think it is reporting what is going on. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From cdaily at GMAIL.COM Thu Dec 16 12:24:59 2004 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 16 Dec 2004 14:24:59 -0600 Subject: Projection/Extent help In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FEC3@ptolemy.topozone.com> Message-ID: Ed, that worked great! Thanks so much! -Camden Daily On Thu, 16 Dec 2004 13:08:32 -0500, Ed McNierney wrote: > Paul - > > First, ALWAYS reply to the entire list. Just because I was the first to > answer your question doesn't mean I'm the best to answer the rest of > your questions, nor am I agreeing to be your personal answer man for > life . And it's important for everyone else to learn from your > questions, and to have them go into the archives. Thanks! > > Well, I guessed wrong - you didn't say whether the layer in your map > file was the DD layer or the FEET layer. And I overlooked the > PROJECTION block in your LAYER definition - sorry about that; I didn't > scroll down far enough . > > Is 26971 incorrect? Well, it's units are not feet, but meters, as are > most state plane systems. Get rid of the UNITS FEET in the LAYER block, > as it's not going to change your projection for you. Your coordinates > appear to be 26971 coordinates converted to feet, so you will need to > create a custom projection definition that's the equivalent of NAD83 > Illinois East in feet. Here's the definition of 26971: > > NAD83 / Illinois East > <26971> > proj=tmerc > lat_0=36.666666667 > lon_0=-88.333333333 > k=0.999975 > x_0=300000.000 > y_0=0.000 > ellps=GRS80 > datum=NAD83 > units=m > no_defs > <> > > If you replace the "units=m" statement with "to_meter=0.3048006096" you > will adjust this projection definition to be in feet. You will need to > explicitly describe this projection as: > > PROJECTION > "proj=tmerc" > "lat_0=36.666666667" > "lon_0=-88.333333333" > "k=0.999975" > "x_0=300000.000" > "y_0=0.000" > "ellps=GRS80" > "datum=NAD83" > "to_meter=0.3048006096" > "no_defs" > END > > This should accurately describe your data layer, and allow MapServer to > reproject it. > > - 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: Camden Daily [mailto:cdaily at gmail.com] > Sent: Thursday, December 16, 2004 12:15 PM > To: Ed McNierney > Subject: Re: [UMN_MAPSERVER-USERS] Projection/Extent help > > Ed, > > Thanks for the reply, but I'm still a little confused... > > > Your EXTENT and UNITS need to be described in the units of the output > > projection your map is using. In your example below, everything is > > fine. But if you switch to the two commented EXTENT and UNITS lines, > > it won't work unless your PROJECTION block is changed to have the map > > generated in a different projection that uses those units. > > The example I posted doesn't work right now. In fact, the only I way I > can get it to work is to drop out the mapfile projection and switch to > the commented out extent in feet, the same units as the layer. > > > Leave your EXTENT and UNITS alone, since you want to (I think) still > > have your output projection be "latlong". You need to create a new > > PROJECTION block that's *inside* the LAYER definition block for the > > new layer that's got units in feet. > > I have a projection block within my layer. Is it incorrect? > > > By default MapServer assumes that all LAYERs not otherwise described > > are in the same projection as the output projection of the image (the > > one defined by the top-level PROJECTION block). If that's not the > > case, MapServer can't guess - you have to tell it that a given layer > > is in a different projection by including a PROJECTION block inside > > that layer definition. > > > > What is the "other" projection? You need to know either its name (if > > it's a common, standard projection) or all the mathematical parameters > > > describing it if it's a custom projection. If you don't know how to > > describe it accurately, MapServer won't be able to guess for you ! > > The other projection that I'm trying to merge this with is in latlong, > which is why I'm trying to get this layer working with the extent in dd > as opposed to feet. > > Thanks, > -Camden > > > - 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: Thursday, December 16, 2004 11:30 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Projection/Extent help > > > > Hello all. I'm a mapserver newbie trying to figure something out. > > Basically, I have two sets of shapefiles in different projections and > > units. One has units of dd, and one has units of feet. > > > > When I combine the two, I'd like to define my extents for the whole > > .map file using dd instead of feet. I've made up a sample .map file > > where I'm simply trying to display one layer with units of feet while > > defining the extent using dd. However, everything I try just gives me > > > a blank page. > > > > If I define the extent in terms of feet and drop the "proj=latlong" > > line, it shows up fine. But I just can't get it to work when I define > > > the extent in dd. > > > > Any help would be much appreciated! > > -Camden Daily > > > > MAP > > > > NAME Chicago > > STATUS ON > > DEBUG ON > > SIZE 300 300 > > IMAGETYPE PNG > > IMAGECOLOR 240 240 240 > > SHAPEPATH "/web_system/data" > > FONTSET "/web_system/fonts/fonts.list" > > -------- > > EXTENT -87.74 41.80 -87.56 41.98 > > UNITS DD > > PROJECTION > > "proj=latlong" > > END > > ------- > > #EXTENT 1101584.450000 1841973.900000 1186739.850000 1969991.020000 > > #UNITS FEET > > ------- > > WEB > > LOG "/web_system/logs/mapserver.log" > > IMAGEPATH "/web_system/tmp/" > > IMAGEURL "/tmp/" > > END > > > > LAYER > > NAME "cta_line" > > TYPE LINE > > STATUS DEFAULT > > DEBUG ON > > DATA "CTA_Line" > > CLASS > > COLOR 0 0 0 > > END > > PROJECTION > > "init=epsg:26971" > > END > > UNITS FEET > > END > > > > END > > > From mike.and.kerry at GMAIL.COM Thu Dec 16 12:32:44 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Thu, 16 Dec 2004 11:32:44 -0900 Subject: Virtual Spatial Data crashing map In-Reply-To: Message-ID: I have been messing around with using x,y points in our Mapserver 4.2 sites via OGR's Virtual Spatial Data feature. The data is stored in an Access database and I am using a working ODBC connection to get to the data. In the .map file I have configured the CONNECTION as follows: ' ODBC:username/password at gis_projects project_locations ArmPIT_ID wkbPoint EPSG:32606 ' This connection string checks out fine using ogrinfo on the server hosting the ODBC connection and I configured the layer in my .map file like this: LAYER NAME test_points TYPE point CONNECTIONTYPE OGR CONNECTION --same as above-- DATA "project_loc" STATUS default CLASS NAME "POINTS" SYMBOL 'firepoint' COLOR 0 0 0 END END When the layer is set to Default mapserv returns a 404 error "The page cannot be found". I am wondering if anyone out there has any tips or advice on Virtual Spatial Data. Thanks in advance -Mike From richard.greenwood at GMAIL.COM Thu Dec 16 12:39:09 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 16 Dec 2004 13:39:09 -0700 Subject: jbox- java applet notinited In-Reply-To: <26B96243D0F5D51191A10008C7B129A404AF2CC0@admin-itg-exch3.state.mn.us> Message-ID: On Thu, 16 Dec 2004 11:31:12 -0600, Dan Liu wrote: > Hi Richard, > Thank you for the suggestions. > The error I got from Java console is: > netscape.javascript.JSException: Failure to evaluate > reset_handler('jBox',-1.0,-1.0,-1.0,-1.0); > > at sun.plugin.javascript.ocx.JSObject.eval(Unknown Source) > > at jBoxPNG.boxoff(Unknown Source) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) > > at sun.plugin.com.DispatchImpl.invoke(Unknown Source) > > And on any computers I tried this demo got the grey image with a red cross. > So I don't think it is not client configuration. > > Thanks again. > Dan Dan, I just went to your site and panned & zoomed a few dozen times and could not reproduce the error. Can you tell me exactly what steps you are doing when the error occurs? Have you tried it from outside your local network - like could there be a proxy error or something? Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From fwarmerdam at GMAIL.COM Thu Dec 16 12:39:27 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 16 Dec 2004 15:39:27 -0500 Subject: Virtual Spatial Data crashing map In-Reply-To: <631c85c1041216123271b3e9c1@mail.gmail.com> Message-ID: On Thu, 16 Dec 2004 11:32:44 -0900, Mike Davis wrote: > I have been messing around with using x,y points in our Mapserver 4.2 > sites via OGR's Virtual Spatial Data feature. The data is stored in > an Access database and I am using a working ODBC connection to get to > the data. In the .map file I have configured the CONNECTION as > follows: Mike, What version of GDAL are you using? Some recent versions had a crash triggering condition in the vrt handling code but GDAL 1.2.5 should be clean. If you are using something older please update to that. 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 bfraser at GEOANALYTIC.COM Thu Dec 16 14:47:11 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 16 Dec 2004 15:47:11 -0700 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? Message-ID: I'm using the new TYPE TILEINDEX layer (pointed to by an indexed raster layer) and I'd like to prevent this layer from being listed in the GETCAPABILITIES XML (and hence listed as a "valid" layer in various WMS clients). Any thoughts? Windows2000, IIS 5.0 MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks! Brent Fraser GeoAnalytic Inc. Tel:(403) 213-2700 bfraser at geoanalytic.com www.geoanalytic.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jb at NUCOMP.COM Thu Dec 16 14:51:11 2004 From: jb at NUCOMP.COM (John Bolster) Date: Thu, 16 Dec 2004 17:51:11 -0500 Subject: crosshatch Message-ID: Hello, I've figured out how to fill polygons with a crosshatch by using a vector symbol with points of 0 0 1 1 and this gives a nice diagonal line. But how can I make the crosshatch line thicker so it is more bold? I can vary the spacing with the size attribute in the class, but this doesn't change the thickness of the crosshatch line itself. I've experimented with trying to make a filled vector symbol that's thicker but I haven't been able to make one that lines up to form continuous hatch lines. Anyone have any suggestions on how to do this? Thanks, John Bolster From pf at MAPMEDIA.DE Thu Dec 16 15:37:25 2004 From: pf at MAPMEDIA.DE (Peter Freimuth) Date: Fri, 17 Dec 2004 00:37:25 +0100 Subject: crosshatch In-Reply-To: Message-ID: John Bolster schrieb: >Hello, > >I've figured out how to fill polygons with a crosshatch by using a vector >symbol with points of 0 0 1 1 and this gives a nice diagonal line. But how >can I make the crosshatch line thicker so it is more bold? I can vary the >spacing with the size attribute in the class, but this doesn't change the >thickness of the crosshatch line itself. > >I've experimented with trying to make a filled vector symbol that's thicker >but I haven't been able to make one that lines up to form continuous hatch >lines. Anyone have any suggestions on how to do this? > >Thanks, > >John Bolster > > Hey John, send a request for this to arnulf.christl at ccgis.de or to steve lime. They develloped this graphic feature just a short time ago and normally it should be allredy integrated in the current code of relese 4.4. Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth MapMedia Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From woodbri at SWOODBRIDGE.COM Thu Dec 16 16:06:59 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 16 Dec 2004 19:06:59 -0500 Subject: crosshatch In-Reply-To: Message-ID: This was posted a while back http://www.mapmedia.de/dokumente/umn_signaturen_howto/ While it is in German, I think you can probably get enough of an idea from the example to do what you want. I think someone was going to check into getting it translated to English and get permission to include it on the mapserver site. -Steve W. John Bolster wrote: > Hello, > > I've figured out how to fill polygons with a crosshatch by using a vector > symbol with points of 0 0 1 1 and this gives a nice diagonal line. But how > can I make the crosshatch line thicker so it is more bold? I can vary the > spacing with the size attribute in the class, but this doesn't change the > thickness of the crosshatch line itself. > > I've experimented with trying to make a filled vector symbol that's thicker > but I haven't been able to make one that lines up to form continuous hatch > lines. Anyone have any suggestions on how to do this? > > Thanks, > > John Bolster > From steve.lime at DNR.STATE.MN.US Thu Dec 16 21:20:16 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 16 Dec 2004 23:20:16 -0600 Subject: crosshatch Message-ID: At the moment you can't change the thickness of the lines. It's not that it's impossible, it's just that the styleObj doesn't have enough specificity to support it. What's needed is a second size related parameter. I would propose 'THICKNESS' which would control the thickness of what are now single pixel width lines: lines with no symbol, hatch lines, vector symbol renderings and so on. This would remove the requirement of defining a circle symbol to draw 'fat' lines (although that would still work). You'd just need something like: STYLE COLOR 255 0 0 THICKNESS 4 END Note that the new hatching work Arnulf and I did allows for arbitrary hatch angles and does not allow for thick lines. SIZE controls the spacing. This is not a particularly difficult addition for GD, not sure about PDF and SWF output. Steve >>> Peter Freimuth 12/16/04 5:37 PM >>> John Bolster schrieb: >Hello, > >I've figured out how to fill polygons with a crosshatch by using a vector >symbol with points of 0 0 1 1 and this gives a nice diagonal line. But how >can I make the crosshatch line thicker so it is more bold? I can vary the >spacing with the size attribute in the class, but this doesn't change the >thickness of the crosshatch line itself. > >I've experimented with trying to make a filled vector symbol that's thicker >but I haven't been able to make one that lines up to form continuous hatch >lines. Anyone have any suggestions on how to do this? > >Thanks, > >John Bolster > > Hey John, send a request for this to arnulf.christl at ccgis.de or to steve lime. They develloped this graphic feature just a short time ago and normally it should be allredy integrated in the current code of relese 4.4. Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth MapMedia Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From saso.celarc at HERMES-PLUS.SI Thu Dec 16 23:54:32 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Fri, 17 Dec 2004 01:54:32 -0600 Subject: Labeling algorithm in MapServer Message-ID: I need labeling engine for our GIS project in Java and I fell, that labeling poligons in MapServer works fine. My question is: - is alghoritm for labeling polygons published somewhere - is there some implemented libraries for Java (public or commercial) on this topic. Regards, Sa?o Celarc From frans at GEODAN.NL Fri Dec 17 00:44:57 2004 From: frans at GEODAN.NL (Frans Knibbe) Date: Fri, 17 Dec 2004 09:44:57 +0100 Subject: Does the 4.4.0 windows binary really support SWF? In-Reply-To: <41C1BFAF.40003@dmsolutions.ca> Message-ID: Thank you for the pointer. However, I am not sure I entirely understand. Does MapServer only support image (GDAL) output at the moment, that is, PDF and SWF are not supported? Is it only the precompiled windows binary that does not support these formats or is it in general not possible to enable support for non-image output? Yewondwossen Assefa wrote: > Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 describes > this issue. Only GDAL/GD formats are supported for wms in 4.4. This > will be upgadred to other formats for 4.6 release. > > Frans Knibbe wrote: > >> Hello, >> >> I have downloaded and installed the binary Windows distribution, version >> 4.4.0. In the description on the website, it says the binaries are build >> with SWF support. When I do a request for capabilities, SWF is mentioned >> in a comment in the output XML file, but does not show up as a supported >> GetMap output format. Indeed, when I request a map in SWF format, >> the following error is returned: >> msWMSLoadGetMapParams(): Image handling error. Unsupported output format >> (application/x-shockwave-flash). >> >> Am I doing something wrong or is the text accompanying the binaries >> wrong? >> >> Greetings, >> >> Frans >> > > From bartvde at XS4ALL.NL Fri Dec 17 01:03:55 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 17 Dec 2004 10:03:55 +0100 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? In-Reply-To: <04ca01c4e3c1$2e2d23c0$020002c0@SHARK> Message-ID: Hi, not possible yet. See: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=337 Best regards, Bart > I'm using the new TYPE TILEINDEX layer (pointed to by an indexed raster > layer) and I'd like to prevent this layer from being listed in the > GETCAPABILITIES XML (and hence listed as a "valid" layer in various WMS > clients). > > Any thoughts? > > > Windows2000, IIS 5.0 > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=OGR > INPUT=GDAL INPUT=SHAPEFILE > > Thanks! > Brent Fraser > GeoAnalytic Inc. > Tel:(403) 213-2700 > bfraser at geoanalytic.com > www.geoanalytic.com From bartvde at XS4ALL.NL Fri Dec 17 01:08:15 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 17 Dec 2004 10:08:15 +0100 Subject: Does the 4.4.0 windows binary really support SWF? In-Reply-To: <41C29C89.1010906@geodan.nl> Message-ID: Frans, all the support for the other formats besides GD/GDAL (like flash, PDF) is still in the binary, only it is not accessible through the WMS interface. These formats are not exported to the WMS capabilities and hence not available for use with the WMS interface. This is not at all specific to the Windows binary. You could try using Mapserver's native interface (mode=map). Best regards, Bart > Thank you for the pointer. However, I am not sure I entirely understand. > Does MapServer only support image (GDAL) output at the moment, that is, > PDF and SWF are not supported? Is it only the precompiled windows binary > that does not support these formats or is it in general not possible to > enable support for non-image output? > > > Yewondwossen Assefa wrote: > >> Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 describes >> this issue. Only GDAL/GD formats are supported for wms in 4.4. This >> will be upgadred to other formats for 4.6 release. >> >> Frans Knibbe wrote: >> >>> Hello, >>> >>> I have downloaded and installed the binary Windows distribution, >>> version >>> 4.4.0. In the description on the website, it says the binaries are >>> build >>> with SWF support. When I do a request for capabilities, SWF is >>> mentioned >>> in a comment in the output XML file, but does not show up as a >>> supported >>> GetMap output format. Indeed, when I request a map in SWF format, >>> the following error is returned: >>> msWMSLoadGetMapParams(): Image handling error. Unsupported output >>> format >>> (application/x-shockwave-flash). >>> >>> Am I doing something wrong or is the text accompanying the binaries >>> wrong? >>> >>> Greetings, >>> >>> Frans >>> >> >> > From kristjan at TARKVARASTUUDIO.EE Fri Dec 17 01:42:29 2004 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Fri, 17 Dec 2004 11:42:29 +0200 Subject: Printing To Scale - revisited In-Reply-To: <7057794C-4F86-11D9-8CC6-000A957A0F9C@vt.edu> Message-ID: I have used just HTML and CSS You can set the print width and height in cm. It works fine in IE at least, I have not tried the other browsers because it works in specialised application. Kristjan > Thank you everyone for the help. I've decided to look into the PDF > option. Is the built-in PHP PDF API (oh the acronyms!) the best place > to start: > http://us2.php.net/manual/en/ref.pdf.php > > Or is there something else / better I should be working with? > > Thanks. > -Abe From adams at TERRESTRIS.DE Fri Dec 17 01:51:21 2004 From: adams at TERRESTRIS.DE (Till Adams) Date: Fri, 17 Dec 2004 10:51:21 +0100 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? In-Reply-To: <04ca01c4e3c1$2e2d23c0$020002c0@SHARK> Message-ID: Brent Fraser wrote: > I'm using the new TYPE TILEINDEX layer (pointed to by an > indexed raster layer) and I'd like to prevent this layer from being > listed in the GETCAPABILITIES XML (and hence listed as a "valid" layer > in various WMS clients). > > Any thoughts? > > > Windows2000, IIS 5.0 > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=JPEG > INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > Thanks! > Brent Fraser > GeoAnalytic Inc. > Tel:(403) 213-2700 > bfraser at geoanalytic.com > www.geoanalytic.com Dear Brent, we have developped a workaround, which is not 100% OGC WMS: In the mapfile in the expression we have implemented a parameter, e.g.: CLASS EXPRESSION [index] > %user% COLOR 0 0 0 ... END So the mapfile does not deliver any map, just a white image. Then we use the GetStyle-request to generate a Styled Layer Descriptor (SLD) from the actual mapfile. In this SLD we change the "%user%" in the filter with a key on demand, which we assigned to a registered user (this is possible in the Mapbender client suite). When a registerd user demands a map, the map-request only can send a "usable" map, when the correct SLD assigned to the getMap request: http:// .... &getMap& .... & SLD=URL_to_SLD.xml The client changes the "%user%" in the XML on demand (pure PHP) with in this case "0", so that the filter in the SLD looks like this FILTER EXPRESSION [index] > 0 Just some thoughts, may they'll help you ... Greetings from Bonn, Till From cernohor at CENTRUM.CZ Fri Dec 17 02:11:08 2004 From: cernohor at CENTRUM.CZ (Karel Cernohorsky) Date: Fri, 17 Dec 2004 11:11:08 +0100 Subject: MapServer with SLD support Message-ID: From arnulf.christl at CCGIS.DE Fri Dec 17 02:12:15 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 17 Dec 2004 11:12:15 +0100 Subject: crosshatch In-Reply-To: Message-ID: Steve Lime wrote: > At the moment you can't change the thickness of the lines. It's not that it's impossible, it's just that the styleObj doesn't have enough specificity to support it. What's needed is a second size related parameter. I would propose 'THICKNESS' which would control the thickness of what are now single pixel width lines: lines with no symbol, hatch lines, vector symbol renderings and so on. This would remove the requirement of defining a circle symbol to draw 'fat' lines (although that would still work). You'd just need something like: > > STYLE > COLOR 255 0 0 > THICKNESS 4 > END > > Note that the new hatching work Arnulf and I did allows for arbitrary hatch angles and does not allow for thick lines. SIZE controls the spacing. This is not a particularly difficult addition for GD, not sure about PDF and SWF output. > > Steve > > Hi, what we first needed was arbitrary hatch angles as Steve already pointed out. Beeing able to change the line thickness would be a great addition. There is a lot more to it though, I believe we should spend some discussion on that when we meet at the Geospatial '05. Should we plan workshop? The mentioned cartography documentation by Peter Freimuth has been translated and is currently beeing docbooked by Jeff. Should be availabe soon. You can have a look at the HTML here: http://www.mapbender.org/umn_cartography/cartographic_symbols.html This link will be reomved as soon as it is availabe in the UMN MapServer docs to keep versions clean. Cheers, Arnulf >>>>Peter Freimuth 12/16/04 5:37 PM >>> > > John Bolster schrieb: > > >>Hello, >> >>I've figured out how to fill polygons with a crosshatch by using a vector >>symbol with points of 0 0 1 1 and this gives a nice diagonal line. But how >>can I make the crosshatch line thicker so it is more bold? I can vary the >>spacing with the size attribute in the class, but this doesn't change the >>thickness of the crosshatch line itself. >> >>I've experimented with trying to make a filled vector symbol that's thicker >>but I haven't been able to make one that lines up to form continuous hatch >>lines. Anyone have any suggestions on how to do this? >> >>Thanks, >> >>John Bolster >> >> > > Hey John, > send a request for this to arnulf.christl at ccgis.de or to steve lime. > They develloped this graphic feature just a short time ago and normally > it should be allredy integrated in the current code of relese 4.4. > Kind regards, > Peter > > -- > Mit freundlichem Gru? > > Peter Freimuth > MapMedia > Kartographie und raumbezogene Informationssysteme > > Heilbronner Stra?e 10 > D-10711 Berlin Charlottenburg > > fon: +49.(0)30.89 06 82 70 > fax: +49.(0)30.89 06 82 73 > mail: pf at mapmedia.de > net: www.mapmedia.de > pgp: on demand > _________________________________________________ > -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.de http://www.mapbender.org ------------------------ From d.huisman at INGBCC.NL Fri Dec 17 02:26:02 2004 From: d.huisman at INGBCC.NL (Dirk Jan Huisman) Date: Fri, 17 Dec 2004 04:26:02 -0600 Subject: grids Message-ID: Hello, I'm new to mapserver. I want to use grids in my application. The helpfile of mapserver (http://mapserver.gis.umn.edu/doc44/mapfile- reference.html#grid) doesn't help me. I have an arcview grid. The DATA field is empty, why. Thanks in advance From arnulf.christl at CCGIS.DE Fri Dec 17 02:43:25 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Fri, 17 Dec 2004 11:43:25 +0100 Subject: Printing To Scale - revisited In-Reply-To: <41C2AA05.9020205@tarkvarastuudio.ee> Message-ID: Kristjan Annus wrote: > I have used just HTML and CSS > > style="width:15cm;height;15cm"> > > You can set the print width and height in cm. > It works fine in IE at least, I have not tried the other browsers > because it works in > specialised application. > > Kristjan > >> Thank you everyone for the help. I've decided to look into the PDF >> option. Is the built-in PHP PDF API (oh the acronyms!) the best place >> to start: >> http://us2.php.net/manual/en/ref.pdf.php >> >> Or is there something else / better I should be working with? >> >> Thanks. >> -Abe > > Hi, we implement hq printing by cheating with standard WMS request. What we do is to first request an image 4*4 times larger than needed for the 72 dpi screen. Thereafter we resize (or compress) the image by the same factor 4 which gives us 288 dpi on paper which is good for most printouts. We have no trouble whatsoever with scaling the maps on paper, the printout is more accurate than standard paper can handle (humindity index, direction of fiber, etc.). You do have to tune the WMS though. When addressing a UMN MapServer we currently maintain two separate MAP files, as the postprocess resizing also compresses non-scalable objects like texts, symbols and line width (new parameter THICKNESS for hatches?!). You have the option to use SYMBOLSCALE, SIZE, MINSIZE and MAXSIZE, etc. but most of the time this srews the cartography of standard WMS requests. Notice that requesting larger images changes the scale of an image, MAXSCALE and MINSCALE might omit layers from the printout where you wouldn't want to. If I have the time or if there is enough interest we might add our experiences to the WIKI or docs. We are keen on having more options with SLD, but I think thats still a long way to go, starting with the spec. To be discussed at the Open Geospatial '05. Cheers, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.de http://www.mapbender.org ------------------------ From bartvde at XS4ALL.NL Fri Dec 17 02:45:32 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 17 Dec 2004 11:45:32 +0100 Subject: grids In-Reply-To: Message-ID: Hi, the GRID keyword is not for displaying grid data, it is for adding a graticule to your map. If you want to display ESRI grid files, you will want to display them through GDAL, so make sure GDAL support is compiled in. E.g.: LAYER .. DATA "ahn_100\geogegevens\landsdekkend\ahn_100\w001001.adf" TYPE RASTER .. Btw, what type of Arcview grid do you have? Look here to see if your format is supported: http://gdal.maptools.org/formats_list.html Hope this helps. Best regards, Bart > Hello, > > I'm new to mapserver. I want to use grids in my application. > The helpfile of mapserver (http://mapserver.gis.umn.edu/doc44/mapfile- > reference.html#grid) doesn't help me. > I have an arcview grid. The DATA field is empty, why. > > Thanks in advance > From saso.celarc at HERMES-PLUS.SI Fri Dec 17 03:30:57 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Fri, 17 Dec 2004 05:30:57 -0600 Subject: MySQL on windows Message-ID: Hi ! Is MySQL datasorces supported in windows binaries for MS 4.4 ? I want to test configuration: Win XP Apache (Oracle distribution) MapServer 4.4 (binaries) MySQL 4.1.7 on WinXP regards, Sa?o Celarc From frans at GEODAN.NL Fri Dec 17 03:47:31 2004 From: frans at GEODAN.NL (Frans Knibbe) Date: Fri, 17 Dec 2004 12:47:31 +0100 Subject: Does the 4.4.0 windows binary really support SWF? In-Reply-To: <11399.212.238.227.182.1103274495.squirrel@212.238.227.182> Message-ID: Allright, I understand now. Thanks for explaining. I have just tried out your suggestion, using the proprietary CGI parameters. I used the IMAGETYPE setting in the map file to force SWF output, using the default settings for this format. When I requested a map, the mapserver process started using all available CPU capacity for creating a large SWF file in my directory for temporary files. I stopped the process when this file had grown to 1.6 Gigabytes. All works well when I change IMAGETYPE to GIF or PNG for example. So now I?m back at my original question: Am I doing something wrong or is there something wrong with the binaries? Bart van den Eijnden wrote: >Frans, > >all the support for the other formats besides GD/GDAL (like flash, PDF) is >still in the binary, only it is not accessible through the WMS interface. >These formats are not exported to the WMS capabilities and hence not >available for use with the WMS interface. This is not at all specific to >the Windows binary. > >You could try using Mapserver's native interface (mode=map). > >Best regards, >Bart > > > >>Thank you for the pointer. However, I am not sure I entirely understand. >>Does MapServer only support image (GDAL) output at the moment, that is, >>PDF and SWF are not supported? Is it only the precompiled windows binary >>that does not support these formats or is it in general not possible to >>enable support for non-image output? >> >> >>Yewondwossen Assefa wrote: >> >> >> >>>Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 describes >>>this issue. Only GDAL/GD formats are supported for wms in 4.4. This >>>will be upgadred to other formats for 4.6 release. >>> >>>Frans Knibbe wrote: >>> >>> >>> >>>>Hello, >>>> >>>>I have downloaded and installed the binary Windows distribution, >>>>version >>>>4.4.0. In the description on the website, it says the binaries are >>>>build >>>>with SWF support. When I do a request for capabilities, SWF is >>>>mentioned >>>>in a comment in the output XML file, but does not show up as a >>>>supported >>>>GetMap output format. Indeed, when I request a map in SWF format, >>>>the following error is returned: >>>>msWMSLoadGetMapParams(): Image handling error. Unsupported output >>>>format >>>>(application/x-shockwave-flash). >>>> >>>>Am I doing something wrong or is the text accompanying the binaries >>>>wrong? >>>> >>>>Greetings, >>>> >>>>Frans >>>> >>>> >>>> >>> >>> > > > > From janeks.kamerovskis at SILVA.LV Fri Dec 17 05:17:01 2004 From: janeks.kamerovskis at SILVA.LV (Janeks Kamerovskis) Date: Fri, 17 Dec 2004 15:17:01 +0200 Subject: MySQL on windows In-Reply-To: Message-ID: You can use them as Virtual OGR data. I succesfuly got to display points and poligons. For points it was simple table with X and Y in separate columns. For poligons I store poligons in Geom columns, but to use them in as Virtual data I had to make query, that converts native mySql Geom to WKT format. See Wiki docs and list archive! brgds Janeks > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Sa?o Celarc > Sent: Friday, December 17, 2004 1:31 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MySQL on windows > > > Hi ! > > Is MySQL datasorces supported in windows binaries for MS 4.4 ? > > I want to test configuration: > > Win XP > Apache (Oracle distribution) > MapServer 4.4 (binaries) > MySQL 4.1.7 on WinXP > > > regards, > Sa?o Celarc From jb at NUCOMP.COM Fri Dec 17 05:36:18 2004 From: jb at NUCOMP.COM (John Bolster) Date: Fri, 17 Dec 2004 08:36:18 -0500 Subject: crosshatch In-Reply-To: <41C22323.3020508@swoodbridge.com> Message-ID: Thank you. The howto looks like it would be a great reference if translated. I've made progress but am still having a problem. My layer includes this: CLASS COLOR 204 102 0 SIZE 80 SYMBOL "xhatch" END The symbol is defined as this: SYMBOL NAME 'xhatch' TYPE vector FILLED true Type VECTOR Points 3 0 15 12 15 15 0 0 3 0 -1 -1 0 12 3 15 0 15 0 12 END END To show what I'm getting I've put screen shots in a Word document which is attached. If there is another way I should show the list my results please tell me. The upper picture is what I think the vector points define (assuming the origin is top left, which isn't specified anywhere I could find). The lower picture is how it looks when super enlarged so I can see what's going on. Any ideas why this isn't working how I expected the vectors to render? Thanks again, John > -----Original Message----- > From: Stephen Woodbridge [mailto:woodbri at swoodbridge.com] > Sent: Thursday, December 16, 2004 7:07 PM > To: John Bolster > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] crosshatch > > > This was posted a while back > http://www.mapmedia.de/dokumente/umn_signaturen_howto/ > While it is in German, I think you can probably get enough of an idea > from the example to do what you want. > > I think someone was going to check into getting it translated to English > and get permission to include it on the mapserver site. > > -Steve W. > > John Bolster wrote: > > Hello, > > > > I've figured out how to fill polygons with a crosshatch by > using a vector > > symbol with points of 0 0 1 1 and this gives a nice diagonal > line. But how > > can I make the crosshatch line thicker so it is more bold? I > can vary the > > spacing with the size attribute in the class, but this doesn't > change the > > thickness of the crosshatch line itself. > > > > I've experimented with trying to make a filled vector symbol > that's thicker > > but I haven't been able to make one that lines up to form > continuous hatch > > lines. Anyone have any suggestions on how to do this? > > > > Thanks, > > > > John Bolster > > > > -------------- next part -------------- A non-text attachment was scrubbed... Name: xhatch.doc Type: application/msword Size: 28160 bytes Desc: not available URL: From jb at NUCOMP.COM Fri Dec 17 05:40:52 2004 From: jb at NUCOMP.COM (John Bolster) Date: Fri, 17 Dec 2004 08:40:52 -0500 Subject: crosshatch In-Reply-To: <8292E3D1E5E2EF4A94C36FE80D2443A867BD85@linnms.co.linn.or.us> Message-ID: Thank you for this. It gave me an idea to get started. Please take a look at my latest post on this thread for the problem I'm still having. I tried doing it with several parrallel individual lines and not filled, but I was having a hard time getting the lines in each tile to be drawn straight. Each crosshatch had a bump in it where the symbol joins with the one next to it. So I tried doing it with an outline that is filled and ran into my current problem. > -----Original Message----- > From: Ryan, Adam [mailto:ARyan at co.linn.or.us] > Sent: Thursday, December 16, 2004 7:24 PM > To: John Bolster > Subject: RE: [UMN_MAPSERVER-USERS] crosshatch > > > > > Adam Ryan > GIS Analyst > Linn County GIS Department > County Courthouse / Room 25 > 300 SW Fourth Ave. > Albany, OR 97321 > 541.812.8760 > aryan at co.linn.or.us > > > > > -----Original Message----- > > From: John Bolster [mailto:jb at NUCOMP.COM] > > Sent: Thursday, December 16, 2004 2:51 PM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] crosshatch > > > > > > Hello, > > > > I've figured out how to fill polygons with a crosshatch by > > using a vector symbol with points of 0 0 1 1 and this gives a > > nice diagonal line. But how can I make the crosshatch line > > thicker so it is more bold? I can vary the spacing with the > > size attribute in the class, but this doesn't change the > > thickness of the crosshatch line itself. > > > > I've experimented with trying to make a filled vector symbol > > that's thicker but I haven't been able to make one that lines > > up to form continuous hatch lines. Anyone have any > > suggestions on how to do this? > > > > Thanks, > > > > John Bolster > > > > John, > > I've found that when I'm using 'fill' symbols with type vector > and defining > points as you mention, I have to think of the grid I'm defining. That may > not be how it's actually done but it helps me. > > When I use > Points 0 0 1 1 end, I think of a 2 by 2 box. > > If I want to do a 22.5 degree hash with double line thickness, I need to > squash the size of the box and then write another vector offset from the > first one pixel. Like this: > > Symbol > Name "LineFill-22-12-C" > Type VECTOR > Points > 0 0 > 11 23 > -1 -1 > 1 0 > 11 21 > -1 -1 > 0 22 > 0 23 > END > END > > Hope it helps. Cheers to all, > > Adam > From palanisamyg at ORNL.GOV Fri Dec 17 05:55:30 2004 From: palanisamyg at ORNL.GOV (Palanisamy, Giri) Date: Fri, 17 Dec 2004 08:55:30 -0500 Subject: Is there a WCS how to do documentation? Message-ID: Hi Group, I am wondering is there a How to do documentation for the Web Coverage Service (WCS) for Mapserver 4.4 version? The release notes says it supports WCS, but I couldn't really find any documentation on the mapserver home page. Thanks! Giri From steve.lime at DNR.STATE.MN.US Fri Dec 17 06:27:59 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Fri, 17 Dec 2004 08:27:59 -0600 Subject: Is there a WCS how to do documentation? Message-ID: Um, (head bowed looking ashamed), no I've not written it yet. With this public confession I'll commit to a how-to (patterned after WMS/WFS) by Thurs. of next week. Steve >>> "Palanisamy, Giri" 12/17/04 7:55 AM >>> Hi Group, I am wondering is there a How to do documentation for the Web Coverage Service (WCS) for Mapserver 4.4 version? The release notes says it supports WCS, but I couldn't really find any documentation on the mapserver home page. Thanks! Giri From Dan.Liu at STATE.MN.US Fri Dec 17 07:08:37 2004 From: Dan.Liu at STATE.MN.US (Dan Liu) Date: Fri, 17 Dec 2004 09:08:37 -0600 Subject: jbox- java applet notinited Message-ID: Hi Richard, Any clicks may produce the error. Zoom in and pan and zoom out can produce the error. Sometimes it occurs when you simply zoom in and sometimes it occurs when you switch to zoom out. Sometimes I can't get the error after hundreds of clicks. Sometimes I get the error after only several clicks. I haven't tried it outside my local network. I don't have any other environment to run the demo. Again, thank you. Dan -----Original Message----- From: Richard Greenwood [mailto:richard.greenwood at gmail.com] Sent: Thursday, December 16, 2004 2:39 PM To: Dan Liu Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] jbox- java applet notinited On Thu, 16 Dec 2004 11:31:12 -0600, Dan Liu wrote: > Hi Richard, > Thank you for the suggestions. > The error I got from Java console is: > netscape.javascript.JSException: Failure to evaluate > reset_handler('jBox',-1.0,-1.0,-1.0,-1.0); > > at sun.plugin.javascript.ocx.JSObject.eval(Unknown Source) > > at jBoxPNG.boxoff(Unknown Source) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > > at java.lang.reflect.Method.invoke(Unknown Source) > > at sun.plugin.com.MethodDispatcher.invoke(Unknown Source) > > at sun.plugin.com.DispatchImpl.invoke(Unknown Source) > > And on any computers I tried this demo got the grey image with a red cross. > So I don't think it is not client configuration. > > Thanks again. > Dan Dan, I just went to your site and panned & zoomed a few dozen times and could not reproduce the error. Can you tell me exactly what steps you are doing when the error occurs? Have you tried it from outside your local network - like could there be a proxy error or something? From bfraser at GEOANALYTIC.COM Fri Dec 17 07:34:01 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 17 Dec 2004 08:34:01 -0700 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? Message-ID: Bart, Thanks for the pointer to the bug report. After reading the bug info, it occurred to me that the whole architecture of: one-mapfile-layer =one-OWS-layer might lead to some serious limitations in the future. I need to look through some old email on layer grouping, etc. Thanks again, Brent ----- Original Message ----- From: "Bart van den Eijnden" To: Sent: Friday, December 17, 2004 2:03 AM Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS GETCAPABILITIES XML? > Hi, > > not possible yet. > > See: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=337 > > Best regards, > Bart > > > I'm using the new TYPE TILEINDEX layer (pointed to by an indexed raster > > layer) and I'd like to prevent this layer from being listed in the > > GETCAPABILITIES XML (and hence listed as a "valid" layer in various WMS > > clients). > > > > Any thoughts? > > > > > > Windows2000, IIS 5.0 > > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP > > SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=OGR > > INPUT=GDAL INPUT=SHAPEFILE > > > > Thanks! > > Brent Fraser > > GeoAnalytic Inc. > > Tel:(403) 213-2700 > > bfraser at geoanalytic.com > > www.geoanalytic.com From ed at TOPOZONE.COM Fri Dec 17 07:37:05 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 17 Dec 2004 10:37:05 -0500 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? Message-ID: Brent - Using the GROUP statement to batch layers together will not prevent the individual layers from being advertised in the GetCapabilities request. - 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 Brent Fraser Sent: Friday, December 17, 2004 10:34 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS GETCAPABILITIES XML? Bart, Thanks for the pointer to the bug report. After reading the bug info, it occurred to me that the whole architecture of: one-mapfile-layer =one-OWS-layer might lead to some serious limitations in the future. I need to look through some old email on layer grouping, etc. Thanks again, Brent ----- Original Message ----- From: "Bart van den Eijnden" To: Sent: Friday, December 17, 2004 2:03 AM Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS GETCAPABILITIES XML? > Hi, > > not possible yet. > > See: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=337 > > Best regards, > Bart > > > I'm using the new TYPE TILEINDEX layer (pointed to by an indexed > > raster > > layer) and I'd like to prevent this layer from being listed in the > > GETCAPABILITIES XML (and hence listed as a "valid" layer in various > > WMS clients). > > > > Any thoughts? > > > > > > Windows2000, IIS 5.0 > > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > > OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > Thanks! > > Brent Fraser > > GeoAnalytic Inc. > > Tel:(403) 213-2700 > > bfraser at geoanalytic.com > > www.geoanalytic.com From bfraser at GEOANALYTIC.COM Fri Dec 17 07:52:01 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 17 Dec 2004 08:52:01 -0700 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? Message-ID: Till, Many thanks for the explanation. I'll have to work through it in detail to make sure I understand the implications of using SLDs. But for the WMS site I'm building, I can't use a solution that involves client-side code as I expect most of my users will access the site using ArcMap, MapInfo, and other stand-alone client apps not under my control. This is supposed to be the great promise of OWS: any server to any client. You did give me an idea though (something Ed McNierney had suggested to solve a different problem): have some server-side ASP return a hand-edited version of the XML doc when GETCAPABILITIES are requested by the client. I'll just remove any layers I don't want exposed... Thanks, Brent > Brent Fraser wrote: > > > I'm using the new TYPE TILEINDEX layer (pointed to by an > > indexed raster layer) and I'd like to prevent this layer from being > > listed in the GETCAPABILITIES XML (and hence listed as a "valid" layer > > in various WMS clients). > > > > Any thoughts? > > Brent Fraser > > Dear Brent, > > we have developped a workaround, which is not 100% OGC WMS: > > In the mapfile in the expression we have implemented a parameter, e.g.: > > CLASS > EXPRESSION [index] > %user% > COLOR 0 0 0 > ... > END > > > So the mapfile does not deliver any map, just a white image. Then we use > the GetStyle-request to generate a Styled Layer Descriptor (SLD) from > the actual mapfile. In this SLD we change the "%user%" in the filter > with a key on demand, which we assigned to a registered user (this is > possible in the Mapbender client suite). > When a registerd user demands a map, the map-request only can send a > "usable" map, when the correct SLD assigned to the getMap request: > > http:// .... &getMap& .... & SLD=URL_to_SLD.xml > > The client changes the "%user%" in the XML on demand (pure PHP) with in > this case "0", so that the filter in the SLD looks like this > > FILTER EXPRESSION [index] > 0 > > Just some thoughts, may they'll help you ... > > Greetings from Bonn, Till From valik.solorzano.barboza at GEODAN.NL Fri Dec 17 08:03:56 2004 From: valik.solorzano.barboza at GEODAN.NL (Valik Solorzano Barboza) Date: Fri, 17 Dec 2004 17:03:56 +0100 Subject: oracle spatial troubles In-Reply-To: <41C1BC8C.5000700@univali.br> Message-ID: Hi Francesco, I also had some problems with mapserver 4.4.0 and Oracle and I could solve them by doing the following changes in maporaclespatial.c: In function msOracleSpatialLayerClose I put the following lines in comments because I see that msOCIClearLayerInfo still needs the connection /* if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning Oracle handlers.\n"); msConnPoolRelease( layer, layerinfo->orahandlers ); layerinfo->orahandlers = NULL; */ if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning layerinfo handlers.\n"); msOCIClearLayerInfo( layerinfo ); if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning Oracle handlers.\n"); msConnPoolRelease( layer, layerinfo->orahandlers ); layerinfo->orahandlers = NULL; Could you also check if this changes does not affect the Linux (*nix) implementations? I did check this changes in Windows XP, Windows 2003 and Windows 2000 using Oracle Client 9.2 and connecting to a Oracle 10G database. Cheers, Valik Sol?rzano Barboza -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fernando S. Sent: 16 December 2004 17:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: oracle spatial troubles Hi Francesco, In this last version (4.4) the Oracle driver change. So, how did you defined your layer data string? Are you using Linux (*nix) or Windows? Some users report error with Windows binaries, Linux are working. I'm working to find the problem. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Francesco Sozzi wrote: >Hi all, > >MAPSERVER 4.4 >I'm trying reading oracle spatial tables from a server Oracle 9i Enterprise >Edition by use of mapserver 4.4.0. >The problem is that on submitting map file from browser, in one machine I >get a general protection fault, and in another I get a CGI error. In both >case I can't read any oracle spatial data. >I have to say that my mapserver installation works fine with shp and >rasters. I have troubles only with oracle. > >MAPSERVER 4.2 >I've also tried this version, and it works a little better. In this case I >can renderer points and lines, but if I try to renderer a polygon I get an >error (mapserver says that it finds no polygon geometry). These tables work >fine with other products (MapGuide, ArcView, MapObject, ecc...). > >Anybody can suggest me something?... > >regards > >Francesco > > > From bfraser at GEOANALYTIC.COM Fri Dec 17 08:09:22 2004 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Fri, 17 Dec 2004 09:09:22 -0700 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? Message-ID: Ed, Yeah, I already ran into that one. My thought was to have a map file design to deal with the issues of - don't want to expose a map file layer in GETCAPABILITES (but still want mapserver to render/use it) - may want to expose a group of map file layers as only one OWS layer - method should be the same for WMS, WFS, WCS (others yet to be defined?) - other similar issues? so I was going through some many-to-one, one-to-none (and many-to-many? yikes!) mapfile layer to OWS layer scenarios to see what made sense. My work-around in the short term is to do server-side filtering of the XML doc... Brent ----- Original Message ----- From: "Ed McNierney" To: Sent: Friday, December 17, 2004 8:37 AM Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS GETCAPABILITIES XML? Brent - Using the GROUP statement to batch layers together will not prevent the individual layers from being advertised in the GetCapabilities request. - 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 Brent Fraser Sent: Friday, December 17, 2004 10:34 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS GETCAPABILITIES XML? Bart, Thanks for the pointer to the bug report. After reading the bug info, it occurred to me that the whole architecture of: one-mapfile-layer =one-OWS-layer might lead to some serious limitations in the future. I need to look through some old email on layer grouping, etc. Thanks again, Brent ----- Original Message ----- From: "Bart van den Eijnden" To: Sent: Friday, December 17, 2004 2:03 AM Subject: Re: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS GETCAPABILITIES XML? > Hi, > > not possible yet. > > See: > > http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=337 > > Best regards, > Bart > > > I'm using the new TYPE TILEINDEX layer (pointed to by an indexed > > raster > > layer) and I'd like to prevent this layer from being listed in the > > GETCAPABILITIES XML (and hence listed as a "valid" layer in various > > WMS clients). > > > > Any thoughts? > > > > > > Windows2000, IIS 5.0 > > MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG > > OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER > > INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > > > Thanks! > > Brent Fraser > > GeoAnalytic Inc. > > Tel:(403) 213-2700 > > bfraser at geoanalytic.com > > www.geoanalytic.com From tburton at HOLONICS.CA Fri Dec 17 08:19:06 2004 From: tburton at HOLONICS.CA (Trent Burton) Date: Fri, 17 Dec 2004 10:19:06 -0600 Subject: oracle spatial troubles Message-ID: Can we get the Windows binaries updated on the MapServer web site with this fix? Thanks, Trent Burton Hi Francesco, I also had some problems with mapserver 4.4.0 and Oracle and I could solve them by doing the following changes in maporaclespatial.c: In function msOracleSpatialLayerClose I put the following lines in comments because I see that msOCIClearLayerInfo still needs the connection /* if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning Oracle handlers.\n"); msConnPoolRelease( layer, layerinfo->orahandlers ); layerinfo->orahandlers = NULL; */ if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning layerinfo handlers.\n"); msOCIClearLayerInfo( layerinfo ); if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning Oracle handlers.\n"); msConnPoolRelease( layer, layerinfo->orahandlers ); layerinfo->orahandlers = NULL; Could you also check if this changes does not affect the Linux (*nix) implementations? I did check this changes in Windows XP, Windows 2003 and Windows 2000 using Oracle Client 9.2 and connecting to a Oracle 10G database. Cheers, Valik Sol?rzano Barboza -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fernando S. Sent: 16 December 2004 17:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: oracle spatial troubles Hi Francesco, In this last version (4.4) the Oracle driver change. So, how did you defined your layer data string? Are you using Linux (*nix) or Windows? Some users report error with Windows binaries, Linux are working. I'm working to find the problem. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Francesco Sozzi wrote: >Hi all, > >MAPSERVER 4.4 >I'm trying reading oracle spatial tables from a server Oracle 9i >Enterprise Edition by use of mapserver 4.4.0. The problem is that on >submitting map file from browser, in one machine I get a general >protection fault, and in another I get a CGI error. In both case I >can't read any oracle spatial data. I have to say that my mapserver >installation works fine with shp and rasters. I have troubles only with >oracle. > >MAPSERVER 4.2 >I've also tried this version, and it works a little better. In this >case I can renderer points and lines, but if I try to renderer a >polygon I get an error (mapserver says that it finds no polygon >geometry). These tables work fine with other products (MapGuide, >ArcView, MapObject, ecc...). > >Anybody can suggest me something?... > >regards > >Francesco > > > From nicolas.fortin at EC.GC.CA Fri Dec 17 08:26:02 2004 From: nicolas.fortin at EC.GC.CA (Fortin,Nicolas [SteFoy]) Date: Fri, 17 Dec 2004 11:26:02 -0500 Subject: [UMN_MAPSERVER-USERS] oracle spatial troubles Message-ID: Yes it's a good idea! I also had the same problems with this version that I had with the binaries from hobu site. Few times, it works but most of the time, I get a CGI error page from oraclespatial layers. It would be also fine to have a guide to the change we have to made to our mapfile to make it works correctly. I read some days ago that the DATA element can't be write as it was in 4.2 for oraclespatial layers. Thx to all who are trying to solve this problem! Nicolas -----Message d'origine----- De : UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] De la part de Trent Burton Envoy? : Friday, December 17, 2004 11:19 AM ? : MAPSERVER-USERS at lists.umn.edu Objet : Re: [UMN_MAPSERVER-USERS] oracle spatial troubles Can we get the Windows binaries updated on the MapServer web site with this fix? Thanks, Trent Burton Hi Francesco, I also had some problems with mapserver 4.4.0 and Oracle and I could solve them by doing the following changes in maporaclespatial.c: In function msOracleSpatialLayerClose I put the following lines in comments because I see that msOCIClearLayerInfo still needs the connection /* if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning Oracle handlers.\n"); msConnPoolRelease( layer, layerinfo->orahandlers ); layerinfo->orahandlers = NULL; */ if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning layerinfo handlers.\n"); msOCIClearLayerInfo( layerinfo ); if (layer->debug) msDebug("msOracleSpatialLayerClose. Cleaning Oracle handlers.\n"); msConnPoolRelease( layer, layerinfo->orahandlers ); layerinfo->orahandlers = NULL; Could you also check if this changes does not affect the Linux (*nix) implementations? I did check this changes in Windows XP, Windows 2003 and Windows 2000 using Oracle Client 9.2 and connecting to a Oracle 10G database. Cheers, Valik Sol?rzano Barboza -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fernando S. Sent: 16 December 2004 17:49 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: oracle spatial troubles Hi Francesco, In this last version (4.4) the Oracle driver change. So, how did you defined your layer data string? Are you using Linux (*nix) or Windows? Some users report error with Windows binaries, Linux are working. I'm working to find the problem. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Francesco Sozzi wrote: >Hi all, > >MAPSERVER 4.4 >I'm trying reading oracle spatial tables from a server Oracle 9i >Enterprise Edition by use of mapserver 4.4.0. The problem is that on >submitting map file from browser, in one machine I get a general >protection fault, and in another I get a CGI error. In both case I >can't read any oracle spatial data. I have to say that my mapserver >installation works fine with shp and rasters. I have troubles only with >oracle. > >MAPSERVER 4.2 >I've also tried this version, and it works a little better. In this >case I can renderer points and lines, but if I try to renderer a >polygon I get an error (mapserver says that it finds no polygon >geometry). These tables work fine with other products (MapGuide, >ArcView, MapObject, ecc...). > >Anybody can suggest me something?... > >regards > >Francesco > > > From Maxc at SPICERGROUP.COM Fri Dec 17 08:16:14 2004 From: Maxc at SPICERGROUP.COM (Clever, Max) Date: Fri, 17 Dec 2004 11:16:14 -0500 Subject: Problem with Oblique and Hotine oblique projections in proj? Message-ID: Hello, I have been trying to project Michigan state plane coordinate shapefiles (EPSG:2253 or EPSG:102690 both are LCC) onto a Mapfile defined in Michigan Georef (EPSG:102123) which is a hotine oblique mercator. I think Proj is miscalculating the reprojection because the state plane data is showing up in the area of the false northing and easting of the georef projection. I have checked the parameters of the projection in the EPSG file and they are correct according to http://www.michigan.gov/documents/DNR_Map_Proj_and_MI_Georef_Info_20889_7.pdf. Also, I know that these parameters work when applied correctly, because I've written my own small VB program to convert coordinates from state plane to georef and back. To check that proj was actually calculating the projections, I checked it by assigning the State Plane projection to the mapfile then projecting a shapefile in UTM zone 17 onto it. That was flawless, but once I switch the Mapfile back to Georef proj miscalculates. To see where everything has been going I have set my extents to gargantuon numbers to encompass any possible placement of the projections and has helped me find where everything was going. So now, if it really comes down to getting dirty I think I might need to open up PROJ4's guts and check out what its doing wrong. Hopefully though, I am the one that is screwing things up, so if anybody knows about how proj handles oblique mercators, I would be happy to hear any comments. Also here is the portions of the mapfile that are pertinent to this message: MAP NAME zooba.map STATUS ON SIZE 400 400 EXTENT 129827.580 41110.205 823355.654 889381.112 #EXTENT 13067766 660421 13155653 722085 UNITS meters SHAPEPATH "c:\webgisdata\zooba\v1c\" SYMBOLSET "c:\ms4w\Apache\htdocs\zooba.org\zoobastart\gis\symbols.sym" IMAGETYPE png24 FONTSET "c:\ms4w\Apache\htdocs\zooba.org\zoobastart\gis\fonts.list" #GEOREF PROJECTION BASED USING GRS80 ELLIPSOID IN METERS PROJECTION "init=EPSG:102123" # "proj=omerc" # "lat_0=45.30916666666666" # "lonc=-86" # "alpha=337.255555555556" # "k_0=0.9996" # "x_0=2546731.496" # "y_0=-4354009.816" # "ellps=GRS80" # "datum=NAD83" # "units=m" # " no_defs" # "init=EPSG:2253" END #PROJECTION QUERYMAP STATUS ON STYLE SELECTED COLOR 255 255 0 END LAYER NAME easements_4_27_04.shp TYPE Polygon TRANSPARENCY 50 # maxscale 1500000 STATUS on PROJECTION "init=epsg:102123" END #PROJECTION DATA easements_4_27_04 HEADER 'easements_4_27_04.shp_header.html' TEMPLATE easements_4_27_04.shp_query.html CLASS Name 'Easements' COLOR 100 100 231 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER LAYER NAME geoeasements_4_27_04.shp TYPE Polygon TRANSPARENCY 50 maxscale 1500000 STATUS on PROJECTION "init=EPSG:102690" #"+proj=lcc" #"+lat_1=43.66666666666666" #"+lat_2=42.1" #"+lat_0=41.5" #"+lon_0=-84.36666666666666" #"+x_0=3999999.999984" #"+y_0=0 +ellps=GRS80" #"+datum=NAD83" #"+to_meter=0.3048" #"+no_defs" #"no_defs" END #PROJECTION DATA Geoeasements_4_27_04 HEADER 'easements_4_27_04.shp_header.html' TEMPLATE easements_4_27_04.shp_query.html CLASS Name 'Geoeasements' COLOR 255 138 231 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER From ealpert at DIGITALGLOBE.COM Fri Dec 17 09:00:11 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Fri, 17 Dec 2004 10:00:11 -0700 Subject: How do I hide a layer from WMS GETCAPABILITIES XML? Message-ID: You could of course could wrap your mapserv call in mapscript and filter the layers you want to hide. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Brent Fraser Sent: Thursday, December 16, 2004 3:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] How do I hide a layer from WMS GETCAPABILITIES XML? I'm using the new TYPE TILEINDEX layer (pointed to by an indexed raster layer) and I'd like to prevent this layer from being listed in the GETCAPABILITIES XML (and hence listed as a "valid" layer in various WMS clients). Any thoughts? Windows2000, IIS 5.0 MapServer version 4.4.0 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER INPUT=JPEG INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE Thanks! Brent Fraser GeoAnalytic Inc. Tel:(403) 213-2700 bfraser at geoanalytic.com www.geoanalytic.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsozzi at INTERCAD.CH Fri Dec 17 09:02:39 2004 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Fri, 17 Dec 2004 18:02:39 +0100 Subject: pdf troubles Message-ID: Hi all, I'm trying to write map on pdf by use of pdflib. My code is: setSize(1200,1200); $gImage=$gMap->draw(); $gImageUrl=$gHost.$gImage->saveWebImage('MS_PNG', 0, 0, 0); $gPdf = pdf_new(); echo $gImageUrl; pdf_open_image_file($gPdf, "png", $gImageUrl); //... ?> What I get is: http://192.168.1.25/MapServer/tmp/110330218632641.png Warning: Internal PDFlib warning: [1910] PDF_open_image_file: Tried to allocate 0 or negative number of bytes in function pdf_grow_images in C:\App\MapServer\tutorial\php\locarno\pdf.php on line 16 Fatal error: PDFlib error: [2100] PDF_open_image_file: Function must not be called in 'object' scope in C:\App\MapServer\tutorial\php\locarno\pdf.php on line 16 Please note that: - the URL is right - I'm using mapserver 4.4 on Windows XP/IIS Anybody has some suggestions?... Best regards Francesco From mms at GNETCONSULTING.COM Fri Dec 17 09:11:11 2004 From: mms at GNETCONSULTING.COM (MapServer User) Date: Fri, 17 Dec 2004 12:11:11 -0500 Subject: Dynamic shape colors w/ PHP MapScript Message-ID: All: I'm currently using PHP MapScript w/ MapServer 4.2.5. I have several shape files I use to display data. What I'm looking for is a snippet to dynamically color each state or county a different color. I also have verious points that I would like to color, based on the state. Is there is any code snippet anyone could share that would enable me to do this? I would appreciate any guidance on the matter. I think I've found every way NOT to do it. : ) Thanks. Joel From ed at TOPOZONE.COM Fri Dec 17 10:43:09 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 17 Dec 2004 13:43:09 -0500 Subject: Problem with Oblique and Hotine oblique projections in proj? Message-ID: Max - Dylan Keon ran into a similar problem with this projection back in August (searching the archives is a good idea!), and asked about it on the PROJ mailing list; I'm not sure he got a resolution. IMHO, it is highly unlikely that the CODE in PROJ is broken (although that's possible) and it's much more likely that there's something wrong with the parametric description of that projection. I can't see anything obviously wrong with it, and Frank Warmerdam didn't notice anything obviously wrong back in August when Dylan reported the same problem. - 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 Clever, Max Sent: Friday, December 17, 2004 11:16 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problem with Oblique and Hotine oblique projections in proj? Hello, I have been trying to project Michigan state plane coordinate shapefiles (EPSG:2253 or EPSG:102690 both are LCC) onto a Mapfile defined in Michigan Georef (EPSG:102123) which is a hotine oblique mercator. I think Proj is miscalculating the reprojection because the state plane data is showing up in the area of the false northing and easting of the georef projection. I have checked the parameters of the projection in the EPSG file and they are correct according to http://www.michigan.gov/documents/DNR_Map_Proj_and_MI_Georef_Info_20889_ 7.pdf. Also, I know that these parameters work when applied correctly, because I've written my own small VB program to convert coordinates from state plane to georef and back. To check that proj was actually calculating the projections, I checked it by assigning the State Plane projection to the mapfile then projecting a shapefile in UTM zone 17 onto it. That was flawless, but once I switch the Mapfile back to Georef proj miscalculates. To see where everything has been going I have set my extents to gargantuon numbers to encompass any possible placement of the projections and has helped me find where everything was going. So now, if it really comes down to getting dirty I think I might need to open up PROJ4's guts and check out what its doing wrong. Hopefully though, I am the one that is screwing things up, so if anybody knows about how proj handles oblique mercators, I would be happy to hear any comments. Also here is the portions of the mapfile that are pertinent to this message: MAP NAME zooba.map STATUS ON SIZE 400 400 EXTENT 129827.580 41110.205 823355.654 889381.112 #EXTENT 13067766 660421 13155653 722085 UNITS meters SHAPEPATH "c:\webgisdata\zooba\v1c\" SYMBOLSET "c:\ms4w\Apache\htdocs\zooba.org\zoobastart\gis\symbols.sym" IMAGETYPE png24 FONTSET "c:\ms4w\Apache\htdocs\zooba.org\zoobastart\gis\fonts.list" #GEOREF PROJECTION BASED USING GRS80 ELLIPSOID IN METERS PROJECTION "init=EPSG:102123" # "proj=omerc" # "lat_0=45.30916666666666" # "lonc=-86" # "alpha=337.255555555556" # "k_0=0.9996" # "x_0=2546731.496" # "y_0=-4354009.816" # "ellps=GRS80" # "datum=NAD83" # "units=m" # " no_defs" # "init=EPSG:2253" END #PROJECTION QUERYMAP STATUS ON STYLE SELECTED COLOR 255 255 0 END LAYER NAME easements_4_27_04.shp TYPE Polygon TRANSPARENCY 50 # maxscale 1500000 STATUS on PROJECTION "init=epsg:102123" END #PROJECTION DATA easements_4_27_04 HEADER 'easements_4_27_04.shp_header.html' TEMPLATE easements_4_27_04.shp_query.html CLASS Name 'Easements' COLOR 100 100 231 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER LAYER NAME geoeasements_4_27_04.shp TYPE Polygon TRANSPARENCY 50 maxscale 1500000 STATUS on PROJECTION "init=EPSG:102690" #"+proj=lcc" #"+lat_1=43.66666666666666" #"+lat_2=42.1" #"+lat_0=41.5" #"+lon_0=-84.36666666666666" #"+x_0=3999999.999984" #"+y_0=0 +ellps=GRS80" #"+datum=NAD83" #"+to_meter=0.3048" #"+no_defs" #"no_defs" END #PROJECTION DATA Geoeasements_4_27_04 HEADER 'easements_4_27_04.shp_header.html' TEMPLATE easements_4_27_04.shp_query.html CLASS Name 'Geoeasements' COLOR 255 138 231 OUTLINECOLOR 0 0 0 END # CLASS END # LAYER From mike.and.kerry at GMAIL.COM Fri Dec 17 11:24:14 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Fri, 17 Dec 2004 10:24:14 -0900 Subject: Mapserver 4.4 timing out ( Windows Bina ries ) In-Reply-To: Message-ID: I have also been having time-out issues with the "kitchen sink" binaries. I can see images being created in the tmp directory for most map requests... but the url times out in the web browser. I have also noticed that some simple map requests (no imagery, small numbers of layers, etc..) will sucessfully execute, while others won't. Wondering if anyone else has had these issues, and if anyone who is better versed in the world of dll's can help. Thanks in advance. -Mike On Thu, 16 Dec 2004 07:18:34 -0500, Shanton, James A wrote: > Thanks for all the help, > I used the Maptools Binaries, and its working now. > > Thanks ! > > Jim Shanton > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Howard Butler > Sent: Wednesday, December 15, 2004 4:02 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Mapserver 4.4 timing out ( Windows > Binaries ) > > Mike, Jeff, and James, > > The "kitchen sink" binaries are linked against libmap.dll, hence the > smaller executable footprint. > > I have not tested every possible interaction of my binaries. If the > binaries on maptools.org have the features you need, I see no reason to use > the binaries on my site. They haven't been tested as much and are not as > widely deployed. > > Another interaction that Mike alludes to is the dll stuff. The "kitchen > sink" binaries can quickly put you in "DLL Hell", as the entire package is > dynamically linked. If you have dlls of the same name (but different > versions, etc) in front of the ones that the build expects on the PATH, > funky things can happen. I try to include all of the dependencies with the > package (except for ones that I can't distribute). I don't think the > maptools.org binaries have these kinds of problems, and they are likely > much easier to use. > > I would be interested in getting a traceback of the error you are seeing > with jbox if you have time or want to pursue this further. You would have > to attach a debugger to it (like MSVC, but there are others) to do > so. With more information, I can investigate why this might be happening. > > Howard > > At 02:34 PM 12/15/2004, Mike Davis wrote: > >I know the different binaries available are of different sizes > >depending on how they were compiled. The Maptools binary seem to be > >fairly large, but if you use the "kitchen sink" binary available is is > >much smaller. > > > >I have had similar problems when trying to replace our existing > >maptools binaries with the "kitchen sink" builds from Iowa State > >(http://hobu.stat.iastate.edu/mapserver/) > > > >I think you need to double check all the dll's to make sure you have > >the versions that came with the binary build you are using. > > > > > >On Wed, 15 Dec 2004 15:24:35 -0500, Jeff McKenna > > wrote: > > > Hi Jim, > > > > > > I believe the 4.4 mapserv.exe is around 3.7 MB. I would download it > > > again: either by itself > > > (http://www.maptools.org/php_mapscript/index.phtml?page=downloads.html) > > > or in the MS4W base package > > > (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). > > > > > > jeff > > > > > > > > > Shanton, James A wrote: > > > > When I try to zoom / Pan (jbox) with version 4.4 it works the first > time > > > > but then sits and times out the second time I try to do anything. > > > > > > > > Is there something wrong with the windows binary (mapserv) ? > > > > > > > > I'm using the mapserver 4.4 windows binaries, and I've noticed that > the > > > > mapserv.exe is only 36K. Is this correct ? > > > > > > > > I was previously using Version 4.2.5 and its file size was about 2.5 > > MB. It > > > > was working fine. > > > > > > > > Is there something else I'm supposed to install with this version > besides > > > > the dlls that come with it ? > > > > > > > > Thanks! > > > > > > > > Jim Shanton > > > > > > > > > > > > > -- > > > Jeff McKenna > > > DM Solutions Group Inc. > > > http://www.dmsolutions.ca > > > > From kueda at WSO.WILLIAMS.EDU Fri Dec 17 11:18:00 2004 From: kueda at WSO.WILLIAMS.EDU (Ken-ichi) Date: Fri, 17 Dec 2004 11:18:00 -0800 Subject: php dso and the mapserv cgi Message-ID: Hi all. I tried compiling MapServer against PHP 4.3.10 compiled as an Apache DSO, given recent messages on this list suggesting this was now possible. PHP MapScript seems to work fine, but the mapserv cgi just gives 500 errors, and the error log says "Premature end of script headers: mapserv". I've tried adding lines to httpd.conf specifying the LD_LIBRARY_PATH to all relevant directories, and updating my environment variables (env-update, as I'm on Gentoo), but with no luck. Any idea what's going on? I don't understand why the mapserv cgi even cares how php is running. It's not even using php! Oh, and here are my configure statements, if it helps: APACHE ./configure \ --with-openssl \ --with-zlib \ --with-dbase \ --with-dbx \ --with-gd=/usr \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib-dir=/usr \ --with-freetype-dir=/usr \ --with-mcrypt \ --with-pdflib=/usr \ --with-pgsql \ --with-pspell \ --with-pear \ --with-apxs2=/usr/local/apache2/bin/apxs \ --enable-force-cgi-redirect \ --enable-discard-path \ --with-regex=system MAPSERVER ./configure --with-gd=/usr \ --with-freetype=/usr \ --with-zlib=/usr \ --with-png=/usr \ --with-jpeg=/usr \ --with-pdf=/usr \ --with-proj=/usr \ --with-ogr=/usr/local/bin/gdal-config \ --with-gdal=/usr/local/bin/gdal-config \ --with-postgis=/usr/local/pgsql/bin/pg_config \ --with-wfs \ --with-wmsclient \ --with-wfsclient \ --with-curl-config=/usr/bin/curl-config \ --with-httpd=/usr/local/apache2/bin/httpd \ --with-php=/usr/local/src/php-4.3.10 \ --without-tiff -Ken-ichi From assefa at DMSOLUTIONS.CA Fri Dec 17 11:59:46 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 17 Dec 2004 14:59:46 -0500 Subject: Format for FeatureInfoRequest MapServer 4.4 Bug? In-Reply-To: <15195.212.238.227.182.1103199740.squirrel@212.238.227.182> Message-ID: Normally you can define an additional GetFeatureInfo format by using wms_feature_info_mime_type "text/html". Vera, Is that what was defined ? If that is the case : you see the text/html in the capabilities and you get an exception, please file a bug about it. Thanks, Bart van den Eijnden wrote: > Hi, > > if I do a GetCapabilities request on a 4.4 server I get: > > > text/plain > application/vnd.ogc.gml > > > .. > > So text/html is not in the list. > > Did you get that sentence from one of the Mapserver 4.4 docs? > > Best regards, > Bart > > >>Hi List, >> >>I have the following problem: >> >>The supported Format for the FeatureInfo Request MapServer 4.4 are >>"text/plain" and "text/html". >> >>But I got this error message back: >>- >> >> >>msWMSFeatureInfo(): WMS server error. Unsupported INFO_FORMAT value >>(text/html). >> >> >> >>Can anybody give me a hint how to solve this? >> >>Thanks in advance, >>Vera >> > > -- ---------------------------------------------------------------- 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 Fri Dec 17 12:06:31 2004 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 17 Dec 2004 15:06:31 -0500 Subject: Does the 4.4.0 windows binary really support SWF? In-Reply-To: <41C2C753.9050706@geodan.nl> Message-ID: Frans, If you provide me with a simple map/data to reproduce this or even better if you enter a bug on it in Mapserver (compnent Output-SWF), I will be to llok at it. Later, Frans Knibbe wrote: > Allright, I understand now. Thanks for explaining. > I have just tried out your suggestion, using the proprietary CGI > parameters. I used the IMAGETYPE setting in the map file to force SWF > output, using the default settings for this format. When I requested a > map, the mapserver process started using all available CPU capacity for > creating a large SWF file in my directory for temporary files. I stopped > the process when this file had grown to 1.6 Gigabytes. All works well > when I change IMAGETYPE to GIF or PNG for example. > > So now I?m back at my original question: Am I doing something wrong or > is there something wrong with the binaries? > > > Bart van den Eijnden wrote: > >> Frans, >> >> all the support for the other formats besides GD/GDAL (like flash, >> PDF) is >> still in the binary, only it is not accessible through the WMS interface. >> These formats are not exported to the WMS capabilities and hence not >> available for use with the WMS interface. This is not at all specific to >> the Windows binary. >> >> You could try using Mapserver's native interface (mode=map). >> >> Best regards, >> Bart >> >> >> >>> Thank you for the pointer. However, I am not sure I entirely understand. >>> Does MapServer only support image (GDAL) output at the moment, that is, >>> PDF and SWF are not supported? Is it only the precompiled windows binary >>> that does not support these formats or is it in general not possible to >>> enable support for non-image output? >>> >>> >>> Yewondwossen Assefa wrote: >>> >>> >>> >>>> Bug http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=455 describes >>>> this issue. Only GDAL/GD formats are supported for wms in 4.4. This >>>> will be upgadred to other formats for 4.6 release. >>>> >>>> Frans Knibbe wrote: >>>> >>>> >>>> >>>>> Hello, >>>>> >>>>> I have downloaded and installed the binary Windows distribution, >>>>> version >>>>> 4.4.0. In the description on the website, it says the binaries are >>>>> build >>>>> with SWF support. When I do a request for capabilities, SWF is >>>>> mentioned >>>>> in a comment in the output XML file, but does not show up as a >>>>> supported >>>>> GetMap output format. Indeed, when I request a map in SWF format, >>>>> the following error is returned: >>>>> msWMSLoadGetMapParams(): Image handling error. Unsupported output >>>>> format >>>>> (application/x-shockwave-flash). >>>>> >>>>> Am I doing something wrong or is the text accompanying the binaries >>>>> wrong? >>>>> >>>>> Greetings, >>>>> >>>>> Frans >>>>> >>>>> >>>>> >>>> >>>> >> >> >> >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From miroslav.sulc at STARTNET.CZ Fri Dec 17 12:16:21 2004 From: miroslav.sulc at STARTNET.CZ (=?windows-1252?Q?Miroslav_=8Aulc?=) Date: Fri, 17 Dec 2004 21:16:21 +0100 Subject: php dso and the mapserv cgi In-Reply-To: <41C330E8.7020905@wso.williams.edu> Message-ID: I have the same problem with MapServer and PHP 5.0.2 (and I am also on Gentoo). I thougth that the problem is on my side but I decided to use only PHP MapScript which showed up can give me what I want. Up to that, I didn't find any way to find out what's wrong with the CGI. Miroslav ulc Ken-ichi wrote: > Hi all. I tried compiling MapServer against PHP 4.3.10 compiled as an > Apache DSO, given recent messages on this list suggesting this was now > possible. PHP MapScript seems to work fine, but the mapserv cgi just > gives 500 errors, and the error log says "Premature end of script > headers: mapserv". I've tried adding lines to httpd.conf specifying the > LD_LIBRARY_PATH to all relevant directories, and updating my environment > variables (env-update, as I'm on Gentoo), but with no luck. Any idea > what's going on? I don't understand why the mapserv cgi even cares how > php is running. It's not even using php! > > Oh, and here are my configure statements, if it helps: > > APACHE > ./configure \ > --with-openssl \ > --with-zlib \ > --with-dbase \ > --with-dbx \ > --with-gd=/usr \ > --with-jpeg-dir=/usr \ > --with-png-dir=/usr \ > --with-zlib-dir=/usr \ > --with-freetype-dir=/usr \ > --with-mcrypt \ > --with-pdflib=/usr \ > --with-pgsql \ > --with-pspell \ > --with-pear \ > --with-apxs2=/usr/local/apache2/bin/apxs \ > --enable-force-cgi-redirect \ > --enable-discard-path \ > --with-regex=system > > MAPSERVER > ./configure > --with-gd=/usr \ > --with-freetype=/usr \ > --with-zlib=/usr \ > --with-png=/usr \ > --with-jpeg=/usr \ > --with-pdf=/usr \ > --with-proj=/usr \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-gdal=/usr/local/bin/gdal-config \ > --with-postgis=/usr/local/pgsql/bin/pg_config \ > --with-wfs \ > --with-wmsclient \ > --with-wfsclient \ > --with-curl-config=/usr/bin/curl-config \ > --with-httpd=/usr/local/apache2/bin/httpd \ > --with-php=/usr/local/src/php-4.3.10 \ > --without-tiff > > -Ken-ichi -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From superbla3000 at GMX.NET Fri Dec 17 13:10:18 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Fri, 17 Dec 2004 22:10:18 +0100 Subject: 100 meters too much south Message-ID: hello, I am using landsat images and put my gps tracks onto them. But somehow my track is always ca. 100 meters too much to the south.... Where should I search the error? best regards Joerg From sirronj at PACBELL.NET Fri Dec 17 13:36:58 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 17 Dec 2004 13:36:58 -0800 Subject: mixture of perl/mapscript and mapserver Message-ID: Everyone, I have the following bit of code: $layerObj->draw($map, $img); $point_layer->draw($map, $img); my $new_map = "$png_location/" . sprintf("mx%0.10d",rand(1000000000)) . ".map"; $map->save($new_map); my $image_name = "$png_location/" . sprintf("map%0.10d",rand(1000000000)) . ".png"; $img->save($image_name, $map); $img->free(); my $url = qq!http://$domain/cgi-bin/mapserv!; $url .= "?map_web_template=$template_path/map_template.html"; $url .= "&zoomsize=5"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$new_map"; $url .= "&map_web_imagepath=$png_location/"; $url .= "&map_web_imageurl=/$http_png_location/"; $url .= "&root=/maps/"; $url .= "&img=$image_name"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; I thought that upon the run of mapserver in my map_template_html I would be able to load the [img] via the &img=$image_name. However when it loads I am getting a whole new image that contains nothing and is not at all the same name that I have built. I am not sure how to mix these - I would like to start out building my own layers ( which I have been able to do - thanks to all of your help ), save these out in an image and the load this into mapserver so as to have the browse capability. Have I made myself clear as mud? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ed at TOPOZONE.COM Fri Dec 17 13:45:22 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 17 Dec 2004 16:45:22 -0500 Subject: mixture of perl/mapscript and mapserver Message-ID: Joseph - No, you're mixing apples and oranges. Running MapServer through your $url HTTP GET request simply fires off a different, completely unrelated instance of MapServer. IF you created a template file that consisted solely of the single line [img] Then that HTTP GET request (executing MapServer) would return to you nothing but the URL pointing to the map image it just created. You can then load that image file separately and do whatever you like with it. But there's no "IMG" querystring variable to pass the name of an image file - IMG.X and IMG.Y are CGI variables for passing the coordinates of a mouse click. - 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 Joseph Norris Sent: Friday, December 17, 2004 4:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mixture of perl/mapscript and mapserver Everyone, I have the following bit of code: $layerObj->draw($map, $img); $point_layer->draw($map, $img); my $new_map = "$png_location/" . sprintf("mx%0.10d",rand(1000000000)) . ".map"; $map->save($new_map); my $image_name = "$png_location/" . sprintf("map%0.10d",rand(1000000000)) . ".png"; $img->save($image_name, $map); $img->free(); my $url = qq!http://$domain/cgi-bin/mapserv!; $url .= "?map_web_template=$template_path/map_template.html"; $url .= "&zoomsize=5"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$new_map"; $url .= "&map_web_imagepath=$png_location/"; $url .= "&map_web_imageurl=/$http_png_location/"; $url .= "&root=/maps/"; $url .= "&img=$image_name"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; I thought that upon the run of mapserver in my map_template_html I would be able to load the [img] via the &img=$image_name. However when it loads I am getting a whole new image that contains nothing and is not at all the same name that I have built. I am not sure how to mix these - I would like to start out building my own layers ( which I have been able to do - thanks to all of your help ), save these out in an image and the load this into mapserver so as to have the browse capability. Have I made myself clear as mud? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From keon at NACSE.ORG Fri Dec 17 14:07:13 2004 From: keon at NACSE.ORG (Dylan Keon) Date: Fri, 17 Dec 2004 14:07:13 -0800 Subject: Problem with Oblique and Hotine oblique projections in proj? In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8FED7@ptolemy.topozone.com> Message-ID: Just for the benefit of the list - I never did reach a resolution using PROJ with the Michigan Georef projection. --Dylan On 12/17/2004 10:43 AM, Ed McNierney wrote: > Max - > > Dylan Keon ran into a similar problem with this projection back in > August (searching the archives is a good idea!), and asked about it on > the PROJ mailing list; I'm not sure he got a resolution. > > IMHO, it is highly unlikely that the CODE in PROJ is broken (although > that's possible) and it's much more likely that there's something wrong > with the parametric description of that projection. I can't see > anything obviously wrong with it, and Frank Warmerdam didn't notice > anything obviously wrong back in August when Dylan reported the same > problem. > > - 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 Clever, Max > Sent: Friday, December 17, 2004 11:16 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Problem with Oblique and Hotine oblique > projections in proj? > > Hello, > > I have been trying to project Michigan state plane coordinate shapefiles > (EPSG:2253 or EPSG:102690 both are LCC) onto a Mapfile defined in > Michigan Georef (EPSG:102123) which is a hotine oblique mercator. I > think Proj is miscalculating the reprojection because the state plane > data is showing up in the area of the false northing and easting of the > georef projection. I have checked the parameters of the projection in > the EPSG file and they are correct according to > http://www.michigan.gov/documents/DNR_Map_Proj_and_MI_Georef_Info_20889_ > 7.pdf. Also, I know that these parameters work when applied correctly, > because I've written my own small VB program to convert coordinates from > state plane to georef and back. To check that proj was actually > calculating the projections, I checked it by assigning the State Plane > projection to the mapfile then projecting a shapefile in UTM zone 17 > onto it. That was flawless, but once I switch the Mapfile back to > Georef proj miscalculates. To see where everything has been going I > have set my extents to gargantuon numbers to encompass any possible > placement of the projections and has helped me find where everything was > going. > > So now, if it really comes down to getting dirty I think I might need to > open up PROJ4's guts and check out what its doing wrong. Hopefully > though, I am the one that is screwing things up, so if anybody knows > about how proj handles oblique mercators, I would be happy to hear any > comments. From AWOOLEY at MOUNTAINLAND.ORG Fri Dec 17 14:55:03 2004 From: AWOOLEY at MOUNTAINLAND.ORG (ANDREW WOOLEY) Date: Fri, 17 Dec 2004 15:55:03 -0700 Subject: 100 meters too much south Message-ID: It sounds like you have a datum issue. You need to be sure that your landsat and the GPS coordinates are in the same coordinate system and datum. Andrew Wooley GIS Coordinator Mountainland Association of Governments 586 E 800 N Orem, UT 84097 ph: 801.229.3844 email: awooley at mountainland.org web: http://maps.mountainland.org >>> joerg pfeiffer 12/17/2004 2:10:18 PM >>> hello, I am using landsat images and put my gps tracks onto them. But somehow my track is always ca. 100 meters too much to the south.... Where should I search the error? best regards Joerg From sirronj at PACBELL.NET Fri Dec 17 15:06:56 2004 From: sirronj at PACBELL.NET (Joseph Norris) Date: Fri, 17 Dec 2004 15:06:56 -0800 Subject: mixture of perl/mapscript and mapserver In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FC856@ptolemy.topozone.com> Message-ID: Ed, So in the scenario you mention below. I would get a blank img that I could lay layers on top of? Currently I am pulling in the map file and adding new layers to that. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Friday, December 17, 2004 1:45 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] mixture of perl/mapscript and mapserver Joseph - No, you're mixing apples and oranges. Running MapServer through your $url HTTP GET request simply fires off a different, completely unrelated instance of MapServer. IF you created a template file that consisted solely of the single line [img] Then that HTTP GET request (executing MapServer) would return to you nothing but the URL pointing to the map image it just created. You can then load that image file separately and do whatever you like with it. But there's no "IMG" querystring variable to pass the name of an image file - IMG.X and IMG.Y are CGI variables for passing the coordinates of a mouse click. - 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 Joseph Norris Sent: Friday, December 17, 2004 4:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mixture of perl/mapscript and mapserver Everyone, I have the following bit of code: $layerObj->draw($map, $img); $point_layer->draw($map, $img); my $new_map = "$png_location/" . sprintf("mx%0.10d",rand(1000000000)) . ".map"; $map->save($new_map); my $image_name = "$png_location/" . sprintf("map%0.10d",rand(1000000000)) . ".png"; $img->save($image_name, $map); $img->free(); my $url = qq!http://$domain/cgi-bin/mapserv!; $url .= "?map_web_template=$template_path/map_template.html"; $url .= "&zoomsize=5"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$new_map"; $url .= "&map_web_imagepath=$png_location/"; $url .= "&map_web_imageurl=/$http_png_location/"; $url .= "&root=/maps/"; $url .= "&img=$image_name"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; I thought that upon the run of mapserver in my map_template_html I would be able to load the [img] via the &img=$image_name. However when it loads I am getting a whole new image that contains nothing and is not at all the same name that I have built. I am not sure how to mix these - I would like to start out building my own layers ( which I have been able to do - thanks to all of your help ), save these out in an image and the load this into mapserver so as to have the browse capability. Have I made myself clear as mud? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From ed at TOPOZONE.COM Fri Dec 17 15:24:46 2004 From: ed at TOPOZONE.COM (Ed McNierney) Date: Fri, 17 Dec 2004 18:24:46 -0500 Subject: mixture of perl/mapscript and mapserver Message-ID: Joseph - It would be much more helpful if you could describe in some detail what it is you're trying to do - then we can recommend the best solution, rather than trying to patch up a solution that might have gotten off on the wrong foot in the first place! - Ed Ed McNierney President and Chief Mapmaker TopoZone.com / Maps a la carte, Inc. 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: +1 978 251-4242 Fax: +1 978 251-1396 -----Original Message----- From: Joseph Norris [mailto:sirronj at pacbell.net] Sent: Friday, December 17, 2004 6:07 PM To: Ed McNierney; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] mixture of perl/mapscript and mapserver Ed, So in the scenario you mention below. I would get a blank img that I could lay layers on top of? Currently I am pulling in the map file and adding new layers to that. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu]On Behalf Of Ed McNierney Sent: Friday, December 17, 2004 1:45 PM To: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] mixture of perl/mapscript and mapserver Joseph - No, you're mixing apples and oranges. Running MapServer through your $url HTTP GET request simply fires off a different, completely unrelated instance of MapServer. IF you created a template file that consisted solely of the single line [img] Then that HTTP GET request (executing MapServer) would return to you nothing but the URL pointing to the map image it just created. You can then load that image file separately and do whatever you like with it. But there's no "IMG" querystring variable to pass the name of an image file - IMG.X and IMG.Y are CGI variables for passing the coordinates of a mouse click. - 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 Joseph Norris Sent: Friday, December 17, 2004 4:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] mixture of perl/mapscript and mapserver Everyone, I have the following bit of code: $layerObj->draw($map, $img); $point_layer->draw($map, $img); my $new_map = "$png_location/" . sprintf("mx%0.10d",rand(1000000000)) . ".map"; $map->save($new_map); my $image_name = "$png_location/" . sprintf("map%0.10d",rand(1000000000)) . ".png"; $img->save($image_name, $map); $img->free(); my $url = qq!http://$domain/cgi-bin/mapserv!; $url .= "?map_web_template=$template_path/map_template.html"; $url .= "&zoomsize=5"; $url .= "&zoomdir=1"; $url .= "&zoom=2"; $url .= "&map=$new_map"; $url .= "&map_web_imagepath=$png_location/"; $url .= "&map_web_imageurl=/$http_png_location/"; $url .= "&root=/maps/"; $url .= "&img=$image_name"; $url .= "&program=/cgi-bin/mapserv"; $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; $url .= "&mode=browse"; I thought that upon the run of mapserver in my map_template_html I would be able to load the [img] via the &img=$image_name. However when it loads I am getting a whole new image that contains nothing and is not at all the same name that I have built. I am not sure how to mix these - I would like to start out building my own layers ( which I have been able to do - thanks to all of your help ), save these out in an image and the load this into mapserver so as to have the browse capability. Have I made myself clear as mud? Thanks. #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1, 14,- 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From thomas at MICRODOP.ORG Sat Dec 18 01:45:58 2004 From: thomas at MICRODOP.ORG (Thomas Sondag) Date: Sat, 18 Dec 2004 10:45:58 +0100 Subject: php dso and the mapserv cgi In-Reply-To: <41C330E8.7020905@wso.williams.edu> Message-ID: I have the same problem too on a debian Sarge, could you try to build (just for test) without the proj4 support ? (not very usable, but seen to fix the problem) Ken-ichi wrote: > Hi all. I tried compiling MapServer against PHP 4.3.10 compiled as an > Apache DSO, given recent messages on this list suggesting this was now > possible. PHP MapScript seems to work fine, but the mapserv cgi just > gives 500 errors, and the error log says "Premature end of script > headers: mapserv". I've tried adding lines to httpd.conf specifying the > LD_LIBRARY_PATH to all relevant directories, and updating my environment > variables (env-update, as I'm on Gentoo), but with no luck. Any idea > what's going on? I don't understand why the mapserv cgi even cares how > php is running. It's not even using php! > > Oh, and here are my configure statements, if it helps: > > APACHE > ./configure \ > --with-openssl \ > --with-zlib \ > --with-dbase \ > --with-dbx \ > --with-gd=/usr \ > --with-jpeg-dir=/usr \ > --with-png-dir=/usr \ > --with-zlib-dir=/usr \ > --with-freetype-dir=/usr \ > --with-mcrypt \ > --with-pdflib=/usr \ > --with-pgsql \ > --with-pspell \ > --with-pear \ > --with-apxs2=/usr/local/apache2/bin/apxs \ > --enable-force-cgi-redirect \ > --enable-discard-path \ > --with-regex=system > > MAPSERVER > ./configure > --with-gd=/usr \ > --with-freetype=/usr \ > --with-zlib=/usr \ > --with-png=/usr \ > --with-jpeg=/usr \ > --with-pdf=/usr \ > --with-proj=/usr \ > --with-ogr=/usr/local/bin/gdal-config \ > --with-gdal=/usr/local/bin/gdal-config \ > --with-postgis=/usr/local/pgsql/bin/pg_config \ > --with-wfs \ > --with-wmsclient \ > --with-wfsclient \ > --with-curl-config=/usr/bin/curl-config \ > --with-httpd=/usr/local/apache2/bin/httpd \ > --with-php=/usr/local/src/php-4.3.10 \ > --without-tiff > > -Ken-ichi From beny.santoso at GMAIL.COM Sat Dec 18 04:40:32 2004 From: beny.santoso at GMAIL.COM (beny santoso) Date: Sat, 18 Dec 2004 19:40:32 +0700 Subject: Split Polygon in oracle spatial Message-ID: Dear All, I have a map (polygon type) in oracle spatial. I want to split a polygon using polyline, but i can't do that. In oracle spatial i just find subprogram to join some polygon. Does anyone can help me? Thank's for your help. Regard Beny From lorena_medellin at YAHOO.ES Sat Dec 18 09:08:47 2004 From: lorena_medellin at YAHOO.ES (Lorena Medellin) Date: Sat, 18 Dec 2004 18:08:47 +0100 Subject: Problem with Oracle Spatial Message-ID: Hi, I have Oracle EE 9.2.0.1.0 with Oracle Spatial, I loaded a layer with shp2sdo to oracle spatial. The USER_SDO_GEOM_METADATA table is ok. Then I install mapserver4.4.0-oracle binary and my mapfile is: NAME MANIZALES STATUS ON SIZE 300 200 EXTENT 1169230 1047365 1183658 1056453 UNITS METERS IMAGECOLOR 255 255 255 IMAGETYPE PNG LAYER NAME BARRIO TYPE POLYGON CONNECTIONTYPE oraclespatial CONNECTION "system/oracle at dbtitan" DATA "GEOMETRIE FROM (SELECT GEOMETRIE FROM BARRIO)" DUMP TRUE CLASS OUTLINECOLOR 0 0 0 COLOR 0 128 128 END END END and when I tried to connect by browser there is a problem, mapserver doesn't show me the image, I used mode map: http://titan/cgi-bin/mapserv.exe?map=C:\apache\Apache2\htdocs\oracle\manizales.map&mode=map Please, help me! Regards Lorena Elsa Lorena Medellin V. --------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Sat Dec 18 12:33:25 2004 From: fsimon at UNIVALI.BR (Fernando Simon) Date: Sat, 18 Dec 2004 18:33:25 -0200 Subject: Problem with Oracle Spatial In-Reply-To: <20041218170847.46641.qmail@web25209.mail.ukl.yahoo.com> Message-ID: Hi, The problem is not with oracle table. I believe that the problem is with the MIGRATE procedure. After you import your data, did you executed the "EXECUTE SDO_MIGRATE.TO_CURRENT('','');" procedure in sqlplus? If you don't execute this procedure after import the data with shp2sdo the mapserver don't draw any data from oracle. Thanks. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- Citando Lorena Medellin : > Hi, > > I have Oracle EE 9.2.0.1.0 with Oracle Spatial, I loaded a layer > with shp2sdo to oracle spatial. The USER_SDO_GEOM_METADATA table is > ok. > > Then I install mapserver4.4.0-oracle binary and my mapfile is: > > NAME MANIZALES > STATUS ON > SIZE 300 200 > EXTENT 1169230 1047365 1183658 1056453 > UNITS METERS > IMAGECOLOR 255 255 255 > IMAGETYPE PNG > > LAYER > NAME BARRIO > TYPE POLYGON > CONNECTIONTYPE oraclespatial > CONNECTION "system/oracle at dbtitan" > DATA "GEOMETRIE FROM (SELECT GEOMETRIE FROM BARRIO)" > DUMP TRUE > CLASS > OUTLINECOLOR 0 0 0 > COLOR 0 128 128 > END > END > END > > and when I tried to connect by browser there is a problem, > mapserver doesn't show me the image, I used mode map: > http://titan/cgi-bin/mapserv.exe?map=C:\apache\Apache2\htdocs\oracle\manizales.map&mode=map > > Please, help me! > > Regards > > Lorena > > > Elsa Lorena Medellin V. > > > --------------------------------- > > ------------------------------------------------- Univali - Webmail - http://webmail.univali.br From lists at WEBMAPIT.COM.BR Sat Dec 18 14:38:56 2004 From: lists at WEBMAPIT.COM.BR (Eduardo Patto Kanegae) Date: Sat, 18 Dec 2004 20:38:56 -0200 Subject: Oracle Spatial for Linux Message-ID: Hi, I can't remember the name, but I believe there's a "Oracle Lite" or "Oracle Personal" edition which is NO-cost version for development purposes. Does anybody know if this version has a Linux version ? and does it contains Oracle Spatial module? best Eduardo Patto Kanegae http://www.webmapit.com.br ICQ: 303747254 Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum ***Fim da Mensagem / End of Message *** From agillesp at VT.EDU Sun Dec 19 10:26:15 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Sun, 19 Dec 2004 13:26:15 -0500 Subject: Buffer Query Message-ID: Is there a way in PHP, or a set of steps someone could describe, to do a buffer query from a shape as opposed to just a point. I'm looking for something that would be like this: MapObj::queryByShape(shapeObj shape, double buffer) I wouldn't mind doing this by hand if there is no built in functionality. I imagine you have to loop through each line of the polygon and offset them by the buffer distance away from the centroid. Once that's done you'd have to extend all the offset lines so they connect. The theory's easy, but I'm lacking in the equations to accomplish this. Can anyone point me some place that will get me started? Thanks. -Abe From pf at MAPMEDIA.DE Sun Dec 19 15:13:49 2004 From: pf at MAPMEDIA.DE (Peter Freimuth) Date: Mon, 20 Dec 2004 00:13:49 +0100 Subject: Buffer Query In-Reply-To: <77AA699F-51EB-11D9-8CC6-000A957A0F9C@vt.edu> Message-ID: Abe Gillespie schrieb: > Is there a way in PHP, or a set of steps someone could describe, to do > a buffer query from a shape as opposed to just a point. I'm looking > for something that would be like this: > > MapObj::queryByShape(shapeObj shape, double buffer) > > I wouldn't mind doing this by hand if there is no built in > functionality. I imagine you have to loop through each line of the > polygon and offset them by the buffer distance away from the centroid. > Once that's done you'd have to extend all the offset lines so they > connect. The theory's easy, but I'm lacking in the equations to > accomplish this. Can anyone point me some place that will get me > started? > > Thanks. > -Abe Dear Abe, I'm not sure about the current status, but I know that Steve Lime was working on the integration of the geos library which is perfect to handle all kind of spatial queries, including buffer generation. In the source code I recognized already some code to prepare the using of buffer(shapeObj) from geos. You will need a mapserver which was build with geos support and the geos library itself. Maybe you can contact Steve Lime to get further infos about the status of the geos integration to mapserver. Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth MapMedia Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From fsozzi at INTERCAD.CH Sun Dec 19 23:35:55 2004 From: fsozzi at INTERCAD.CH (Francesco Sozzi) Date: Mon, 20 Dec 2004 08:35:55 +0100 Subject: Oracle Spatial for Linux Message-ID: Oracle has three versions: Lite, Personal and Enterprise. Oracle Spatial is an option for Enterprise only, but for Personal Edition, Oracle provides "Locator", which is a subset of Oracle Spatial (fully compatible, of course; only the name changes). Enterpise is fully supported into Linux, and I think also all other versions (Oracle is investing on this platform). Oracle Lite is the chepest option, but you haven't Spatial. Hope this helps Regards Francesco ----- Original Message ----- From: "Eduardo Patto Kanegae" To: Sent: Saturday, December 18, 2004 11:38 PM Subject: [UMN_MAPSERVER-USERS] Oracle Spatial for Linux > Hi, > > I can't remember the name, but I believe there's a "Oracle Lite" or "Oracle Personal" edition which is NO-cost version for development purposes. > > Does anybody know if this version has a Linux version ? and does it contains Oracle Spatial module? > > best > > Eduardo Patto Kanegae > http://www.webmapit.com.br > ICQ: 303747254 > > Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver > F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum > > ***Fim da Mensagem / End of Message *** > > From saso.celarc at HERMES-PLUS.SI Sun Dec 19 23:50:53 2004 From: saso.celarc at HERMES-PLUS.SI (Sa=?ISO-8859-1?Q?=9Ao?= Celarc) Date: Mon, 20 Dec 2004 01:50:53 -0600 Subject: Split Polygon in oracle spatial Message-ID: Hi! Use SDO_UTIL.EXTRACT. Regards, Sa?o Celarc From oi at POWELGEMINI.NO Mon Dec 20 01:07:52 2004 From: oi at POWELGEMINI.NO (=?ISO-8859-1?Q?=D8yvind_Idland?=) Date: Mon, 20 Dec 2004 10:07:52 +0100 Subject: Problem with spam Message-ID: Hi, I did some posting on this list a couple of years ago. My (and other) email-adress appears in clear text, which makes one an easy target for spam. Is it possible to have the adress removed from the archives ? example: http://mapserver.gis.umn.edu/data2/wilma/mapserver-users/0110/msg00105.html Best regards, Oyvind Idland From Michael.Smith at ERDC.USACE.ARMY.MIL Mon Dec 20 03:25:59 2004 From: Michael.Smith at ERDC.USACE.ARMY.MIL (Smith, Michael ERDC-CRREL-NH) Date: Mon, 20 Dec 2004 05:25:59 -0600 Subject: Oracle Spatial for Linux Message-ID: Actually, Oracle Spatial is available for Oracle Personal, just not as a extra cost option. Oracle Personal is intended to be 100% compatible to Oracle Enterprise. Also, with Oracle's development license, you can use any version free of charge for development. You only need to pay for support. Oracle Spatial is installed with every version but in some cases is may not be licensed. Mike Smith -----Original Message----- From: Francesco Sozzi To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: 12/20/2004 2:35 AM Subject: Re: [UMN_MAPSERVER-USERS] Oracle Spatial for Linux Oracle has three versions: Lite, Personal and Enterprise. Oracle Spatial is an option for Enterprise only, but for Personal Edition, Oracle provides "Locator", which is a subset of Oracle Spatial (fully compatible, of course; only the name changes). Enterpise is fully supported into Linux, and I think also all other versions (Oracle is investing on this platform). Oracle Lite is the chepest option, but you haven't Spatial. Hope this helps Regards Francesco ----- Original Message ----- From: "Eduardo Patto Kanegae" To: Sent: Saturday, December 18, 2004 11:38 PM Subject: [UMN_MAPSERVER-USERS] Oracle Spatial for Linux > Hi, > > I can't remember the name, but I believe there's a "Oracle Lite" or "Oracle Personal" edition which is NO-cost version for development purposes. > > Does anybody know if this version has a Linux version ? and does it contains Oracle Spatial module? > > best > > Eduardo Patto Kanegae > http://www.webmapit.com.br > ICQ: 303747254 > > Treinamento em UMN MapServer - http://www.webmapit.com.br/ptbr/?menuoption=mapserver > F?rum MapServer Brasil - http://mapserver.cttmar.univali.br/forum > > ***Fim da Mensagem / End of Message *** > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From fsimon at UNIVALI.BR Mon Dec 20 04:16:45 2004 From: fsimon at UNIVALI.BR (Fernando S.) Date: Mon, 20 Dec 2004 12:16:45 +0000 Subject: Oracle Spatial support Message-ID: Hi users, I fixed the bug with layer close and added the support for NONE token. I added t the how to documentation for Oracle Spatial. I updated the source code with the fix this morning. Thanks Valik for the hints with layer close and thanks Francois for the hints about NONE token. Thanks for all. ---------------------------------------------------------------- Fernando Simon - simon at inf.univali.br Mapserver and Oracle Spatial developer G10 - Laboratorio de Computacao Aplicada http://g10.cttmar.univali.br ---------------------------------------------------------------- -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: mapserver_oracle_spatial.txt URL: From lfilak at MEDINACO.ORG Mon Dec 20 06:49:45 2004 From: lfilak at MEDINACO.ORG (Lowell Filak) Date: Mon, 20 Dec 2004 09:49:45 -0500 Subject: mixture of perl/mapscript and mapserver Message-ID: As Ed explained, you can not incorporate an image in that manner. The only ways I can think to do what you want are: 1) Setup your mapscript app to provide a WMS reply for supplying the image to mapserv under a WMS layer deffinition. 2) Write a .wld file to go along with the image and include it in the mapfile used by your mapserv instance as a raster layer. HTH Lowell The following message was sent by Joseph Norris on Fri, 17 Dec 2004 13:36:58 -0800. > Everyone, > > I have the following bit of code: > > $layerObj->draw($map, $img); > $point_layer->draw($map, $img); > > > my $new_map = "$png_location/" . sprintf("mx%0.10d",rand(1000000000)) . > ".map"; > > $map->save($new_map); > > my $image_name = "$png_location/" . sprintf("map%0.10d",rand(1000000000)) . > ".png"; > > > $img->save($image_name, $map); > > $img->free(); > > > my $url = qq!http://$domain/cgi-bin/mapserv!; > $url .= "?map_web_template=$template_path/map_template.html"; > $url .= "&zoomsize=5"; > $url .= "&zoomdir=1"; > $url .= "&zoom=2"; > $url .= "&map=$new_map"; > $url .= "&map_web_imagepath=$png_location/"; > $url .= "&map_web_imageurl=/$http_png_location/"; > $url .= "&root=/maps/"; > $url .= "&img=$image_name"; > $url .= "&program=/cgi-bin/mapserv"; > $url .= "&imgext=5890870.385 -192053.200 8943310.847 3226086.749"; > $url .= "&mode=browse"; > > > I thought that upon the run of mapserver in my map_template_html I would be > able to load the [img] via the &img=$image_name. However when it loads I am > getting a whole new image that contains nothing and is not at all the same > name that I have built. > > I am not sure how to mix these - I would like to start out building my own > layers ( which I have been able to do - thanks to all of your help ), > save these out in an image and the load this into mapserver so as to have > the browse capability. > > Have I made myself clear as mud? > > Thanks. > > > #Joseph Norris (Perl - what else is there?/Linux/CGI/Mysql) print @c=map chr > $_+100,(6,17,15,16,-68,-3,10,11,16,4,1,14,-68,12,1,14,8,-68,4,-3,-1,7,1,14,- > 68,-26,11,15,1,12,4,-68,-22,11,14,14,5,15,-90); From bt at CCGIS.DE Mon Dec 20 09:31:46 2004 From: bt at CCGIS.DE (Benjamin Thelen) Date: Mon, 20 Dec 2004 18:31:46 +0100 Subject: Mr.SID performance Message-ID: Hi, I have rather bad performance displaying Mr.SID raster data with mapserver 4.2.5 via gdal 1.2.5 - about 15 sec. I'm talking about 8-bit, 144000x14000, 6.1 MB compressed Mr.SID files, each uncompressed (tiff) 187 MB. I tried various methods displaying these images. Irfan View with Mr.SID plug-in needs about 15 sec to load a Mr.SID image, but then Irfan View is even faster than Mr.SID Viewer, interesting, isn't it?! Quite interesting too is the different memory management. Irfan View or PaintShop need 195 MB of RAM, Mr.SID Viewer at loading time only 4MB, what also means, that at first the quality of the image is quite worse and then it get's better. But even then Mr.SID Viewer only needs 16 MB of RAM! Does anybody have an idea how to tweak performance? Thank's in advance, Benjamin From steve.lime at DNR.STATE.MN.US Mon Dec 20 09:32:07 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Dec 2004 11:32:07 -0600 Subject: Buffer Query Message-ID: Only GEOS stubs have been written to date so that code's not ready. However you can do buffered queries by point and polygon by just using layer tolerance values. No buffered feature is created but distances are computed to ensure features are within a certain distance of one another. For example, to find all houses within 10 miles of a shape you'd set the tolerance for the house layer to 10 and the the tolerance units to MILES and then do the queryByShape. Steve >>> Peter Freimuth 12/19/2004 5:13:49 PM >>> Abe Gillespie schrieb: > Is there a way in PHP, or a set of steps someone could describe, to do > a buffer query from a shape as opposed to just a point. I'm looking > for something that would be like this: > > MapObj::queryByShape(shapeObj shape, double buffer) > > I wouldn't mind doing this by hand if there is no built in > functionality. I imagine you have to loop through each line of the > polygon and offset them by the buffer distance away from the centroid. > Once that's done you'd have to extend all the offset lines so they > connect. The theory's easy, but I'm lacking in the equations to > accomplish this. Can anyone point me some place that will get me > started? > > Thanks. > -Abe Dear Abe, I'm not sure about the current status, but I know that Steve Lime was working on the integration of the geos library which is perfect to handle all kind of spatial queries, including buffer generation. In the source code I recognized already some code to prepare the using of buffer(shapeObj) from geos. You will need a mapserver which was build with geos support and the geos library itself. Maybe you can contact Steve Lime to get further infos about the status of the geos integration to mapserver. Kind regards, Peter -- Mit freundlichem Gru? Peter Freimuth MapMedia Kartographie und raumbezogene Informationssysteme Heilbronner Stra?e 10 D-10711 Berlin Charlottenburg fon: +49.(0)30.89 06 82 70 fax: +49.(0)30.89 06 82 73 mail: pf at mapmedia.de net: www.mapmedia.de pgp: on demand _________________________________________________ From mike.and.kerry at GMAIL.COM Mon Dec 20 09:46:58 2004 From: mike.and.kerry at GMAIL.COM (Mike Davis) Date: Mon, 20 Dec 2004 08:46:58 -0900 Subject: XMLHttp Object and Mapserver In-Reply-To: <20041220144941.6AFDB1A65A5@mail.medinaco.org> Message-ID: I have been following the dissection of the new Google Suggest (http://www.google.com/webhp?complete=1&hl=en) service with great interest. Particularly the use of the XMLHttp object to transfer data back and fourth from the server without re-loading the page. Apparently this feature (originally created by Microsoft) has been implemented in Mozilla and Safari (with some minor differences) and is for all intents and purposes "cross platform". Check out the code dissection here: http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html I am curious if anyone has implemented, or considered using this method to swap map images using the mapserver cgi? -Mike From Jean-Francois.Doyon at CCRS.NRCAN.GC.CA Mon Dec 20 09:52:58 2004 From: Jean-Francois.Doyon at CCRS.NRCAN.GC.CA (Jean-Francois Doyon) Date: Mon, 20 Dec 2004 12:52:58 -0500 Subject: XMLHttp Object and Mapserver Message-ID: Mike, Yup. Steve Lime has an application that uses it, and I do something similar, but without XML. I use HTML as if it was XML, to pass structured data, it's cheating, but is much easier on the browser ... The basic paradigm remains the same however. My interface should be ready to look at in January, or April 1st at the latest. Steve can point you to his app. This way of approaching interface design with the CGI opens up a world of possibilities, I've been having lots of fun with it. J.F. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Mike Davis Sent: December 20, 2004 12:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] XMLHttp Object and Mapserver I have been following the dissection of the new Google Suggest (http://www.google.com/webhp?complete=1&hl=en) service with great interest. Particularly the use of the XMLHttp object to transfer data back and fourth from the server without re-loading the page. Apparently this feature (originally created by Microsoft) has been implemented in Mozilla and Safari (with some minor differences) and is for all intents and purposes "cross platform". Check out the code dissection here: http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html I am curious if anyone has implemented, or considered using this method to swap map images using the mapserver cgi? -Mike From agillesp at VT.EDU Mon Dec 20 10:26:38 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 20 Dec 2004 13:26:38 -0500 Subject: XMLHttp Object and Mapserver In-Reply-To: <631c85c104122009465d0e0c1a@mail.gmail.com> Message-ID: Funny, when I saw this post on /. using it in MapServer was the first thing I thought of too! ;) -Abe On Dec 20, 2004, at 12:46 PM, Mike Davis wrote: > I have been following the dissection of the new Google Suggest > (http://www.google.com/webhp?complete=1&hl=en) service with great > interest. Particularly the use of the XMLHttp object to transfer data > back and fourth from the server without re-loading the page. > Apparently this feature (originally created by Microsoft) has been > implemented in Mozilla and Safari (with some minor differences) and is > for all intents and purposes "cross platform". Check out the code > dissection here: > > http://serversideguy.blogspot.com/2004/12/google-suggest-dissected.html > > I am curious if anyone has implemented, or considered using this > method to swap map images using the mapserver cgi? > > -Mike > From mapserver at METEOLOGICA.ES Mon Dec 20 09:35:52 2004 From: mapserver at METEOLOGICA.ES (Paco Regodon) Date: Mon, 20 Dec 2004 18:35:52 +0100 Subject: OGR postgresql empty query makes mapserver fail Message-ID: Hello, i hace created an OGR layer to connect to a postgresql layer in order to query for some data. All works fine except that if no data is available, mapservers doesn't generate an empty map. Instead, i get this error: msDrawMap(): Image handling error. Failed to draw layer named 'OBSRAYOS'. msOGRFileOpen(): OGR error. Open failed for OGR connection ` PG:dbname=obs user=obs select x, y, from observations where obs_date between '20041216 00:00:00' and '20041216 11:59:59' WGS84 wkbPoint '. File not found or unsupported format. How can i do to avoid this error and get an empty map? Paco Regod?n Meteologica S.A. tel. +34.914561001 fax. +34.914561002 From bhudspeth at EDAC.UNM.EDU Mon Dec 20 10:33:37 2004 From: bhudspeth at EDAC.UNM.EDU (William Hudspeth) Date: Mon, 20 Dec 2004 11:33:37 -0700 Subject: Problems with Python Mapscript Zoomrectangle function Message-ID: Hello, I am using Mapserver 4.2, and Python Mapscript revision 1.4.2.1. I have written some code to pass pixel values from a user-selected rectangle to Zoomrectangle. My underlying map is in geographic coordinates with approximate borders north=44N south=27N west=125W (or -125) east=93W (or -93). I have used the code successfully with UTM coordinates, but am having trouble with negative DD values. My code is: #pixel values passed in x_min=289 y_min=78 x_max=450 y_max=201 prevExtent=mapscript.rectObj(minx,miny,maxx,maxy)#default x and y limits of mapfile zoomRect=mapscript.rectObj() zoomRect.minx, zoomRect.miny, zoomRect.maxx, zoomRect.maxy = (minx, miny, maxx, maxy) self.map.zoomRectangle(zoomRect, int(self.img_width), int (self.img_height), prevExtent, prevExtent) **I have tried reversing the miny and maxy values where I assign them to the zoomRect.* variables. Any help appreciated. Bill From sgillies at FRII.COM Mon Dec 20 11:04:26 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 20 Dec 2004 12:04:26 -0700 Subject: Problems with Python Mapscript Zoomrectangle function In-Reply-To: Message-ID: On Dec 20, 2004, at 11:33 AM, William Hudspeth wrote: > Hello, > > I am using Mapserver 4.2, and Python Mapscript revision 1.4.2.1. I have > written some code to pass pixel values from a user-selected rectangle > to > Zoomrectangle. My underlying map is in geographic coordinates with > approximate borders north=44N south=27N west=125W (or -125) east=93W > (or > -93). I have used the code successfully with UTM coordinates, but am > having trouble with negative DD values. My code is: > > #pixel values passed in > x_min=289 > y_min=78 > x_max=450 > y_max=201 > This won't work, Bill, because image coordinates have their origin at the upper left corner of the image. Don't try to think of the image in terms of x and y, think in terms of pixels and lines and save x and y for the spatial coordinates. Some work was done to tighten up MapServer's rectObj around 4.2.3 and since then you need to use an extra switch if your rectangle is in image coordinates. I seem to recall that you helped me find this issue in the first place. See the rectObj documentation under mapscript/doc/mapscript.txt. > prevExtent=mapscript.rectObj(minx,miny,maxx,maxy)#default x and y > limits > of mapfile > zoomRect=mapscript.rectObj() > zoomRect.minx, zoomRect.miny, zoomRect.maxx, zoomRect.maxy = (minx, > miny, maxx, maxy) > self.map.zoomRectangle(zoomRect, int(self.img_width), int > (self.img_height), prevExtent, prevExtent) > > **I have tried reversing the miny and maxy values where I assign them > to > the zoomRect.* variables. Any help appreciated. > > Bill > > Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From Daniel.Dufour at XST.CA Mon Dec 20 11:50:18 2004 From: Daniel.Dufour at XST.CA (Daniel DUFOUR) Date: Mon, 20 Dec 2004 14:50:18 -0500 Subject: QUEBEC CITY - JOB OPPORTUNITY Message-ID: BlankA position is opened in QUEBEC CITY (CANADA) for a MapServer developper. The offer shall be closed shortly so get in touch with me asap. Regards, Daniel Dufour Xpert Solutions Technologiques inc. - 7053, Ozias-Leduc, L?vis (QC) G6V 9K7 ((418) 648-4893 Bureau ((418) 837-5437 T?l?copieur mailto:daniel.dufour at xst.ca -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 12/17/2004 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Blank Bkgrd.gif Type: image/gif Size: 145 bytes Desc: not available URL: From yecarrillo at YAHOO.COM Mon Dec 20 13:18:22 2004 From: yecarrillo at YAHOO.COM (Eduin Carrillo) Date: Mon, 20 Dec 2004 15:18:22 -0600 Subject: WMS Layer Name Message-ID: I'm using HTML escaped latin characters for naming layers: NAME 'Pantano - Ciénaga' With PhpMapScript it works fine, but WMS server do not load this layers. ?There is some workaround? ===== Eduin Yesid Carrillo Vega yecarrillo at yahoo.com COLOMBIA _________________________________________________________ Do You Yahoo!? Informaci?n de Estados Unidos y Am?rica Latina, en Yahoo! Noticias. Vis?tanos en http://noticias.espanol.yahoo.com From pramsey at REFRACTIONS.NET Mon Dec 20 13:30:37 2004 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 20 Dec 2004 13:30:37 -0800 Subject: WMS Layer Name In-Reply-To: <20041220211822.22234.qmail@web12206.mail.yahoo.com> Message-ID: WMS layer name are generally simple, and the titles are more expressive. I generally keep all spaces and special characters out of my layer names and leave that stuff for the title. Eduin Carrillo wrote: > I'm using HTML escaped latin characters for naming layers: > NAME 'Pantano - Ciénaga' > > With PhpMapScript it works fine, but WMS server do not load this layers. ?There > is some workaround? From hvelasquezv at CAR.GOV.CO Mon Dec 20 12:28:57 2004 From: hvelasquezv at CAR.GOV.CO (=?iso-8859-1?Q?Harold_Jhon_Jairo_Vel=E1squez_Vanegas?=) Date: Mon, 20 Dec 2004 15:28:57 -0500 Subject: Problem with mapserv 4.4 in Windows XP - IIS Message-ID: Hi all, I?m try to install MapServer 4.4 in a windows XP machine with IIS. I follow the instructions of the REAME file and execute mapserv ?v whitout errors. My problem is when I try to test mapserv.exe in my browser appear this message: CGI Error The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are: Could anyone help me with this?? Thanks Harold Jhon Jairo Vel?squez Vanegas -------------- next part -------------- An HTML attachment was scrubbed... URL: From stigmata_blackangel at YAHOO.COM Mon Dec 20 13:57:27 2004 From: stigmata_blackangel at YAHOO.COM (Gregor Mosheh) Date: Mon, 20 Dec 2004 13:57:27 -0800 Subject: No subject Message-ID: I'm trying to work a search-and-highlight capability into our mapfile. Using static classes and expressions, I can get selected features to have non-default coloring. Easy. The examples I've seen of letting the user dynamically enter data for an expression use only the value, but I'll want to allow the user to supply the column and an operator, also. e.g. "price, <=, 50000". How can I make my mapfile handle this properly? I've tried something like this: EXRPRESSION ([%col%] %op% %val%) but it has problems when no search has been performed yet; if any of those 3 elements are missing it's an invalid expression and it barfs. Any thoughts on how I can "set a default" for these, or cause the expression to be gracefully ignored if this happens? Also, is it still true that expressions like this can only be performed on shapefile layers? __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail From steve.lime at DNR.STATE.MN.US Mon Dec 20 14:10:28 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 20 Dec 2004 16:10:28 -0600 Subject: XMLHttp Object and Mapserver Message-ID: J.F. and I were talking about recently. Lot's of possibilities. Not so much for images because you can already do that with javascript and image objects, but it's come in handy for handling legends and configuration information. I've got a couple of examples running that use the technique. http://www.dnr.state.mn.us/maps/landview_dhtml_x.html?layers=dlgstln2+lakes Uses the XMLHttp object to grab new legends controls from the MapServer CGI (HTML legend plus mode=legend). I've got a small DHTML class that anchors a DHTML element to an inline element (eg. image) and has a method to retrieve a URL and display it in the element (adds scrollbars too), makes page design easy. The images (map, reference and scalebar) are grabbed from MapServer CGI using your standard "document.imagename.src=..." code. http://maps.dnr.state.mn.us/mapserver_demos/wcs/demo.html Uses the XMLHttp object to grab the WCS capabilities response and builds the application from that. Sort of a smart configuation. The capabilities output is run through "XML for is that what you're looking for? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From pablorv at YAHOO.COM Wed Dec 22 11:50:13 2004 From: pablorv at YAHOO.COM (Pablo Toapanta) Date: Wed, 22 Dec 2004 11:50:13 -0800 Subject: More about Hidden Tags In-Reply-To: <2576812186CDD411BF1500508B6DCE9508A7D80F@ecnwri1.ontario.int.ec.gc.ca> Message-ID: Hi I understand about the tags, but where are defined??, for example I know that the tag [mapext] stores the extent, but neither the map file nor the html file I see the value of that tag. I just want to know where are defined the values of that tags. Thanks __________________________________ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com From akrherz at IASTATE.EDU Wed Dec 22 12:40:54 2004 From: akrherz at IASTATE.EDU (Daryl Herzmann) Date: Wed, 22 Dec 2004 14:40:54 -0600 Subject: PHP/Mapscript on Linux Red Hat Advance Server In-Reply-To: <001301c4e736$31a677e0$0364a8c0@geraldxp> Message-ID: On Tue, 21 Dec 2004, gerald villacarlos wrote: > hello groups > > does anybody here ever tried installing mapserver on Redhat Linux > Advance Server, if so. please help. im stuck on using Redhat Enterprise > Advance Server on my mapserver application. > > waiting for your reponse. any comments or opitions is very much welcome. Can you possibly provide some information on what the problem is? For the most part, you can follow the RedHat 9 instructions that are on the Mapserver Wiki.... http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?RedHat9AndMapserver40 daryl -- /** * Daryl Herzmann (akrherz at iastate.edu) * Program Assistant -- Iowa Environmental Mesonet * http://mesonet.agron.iastate.edu */ From kfraleytx at YAHOO.COM Wed Dec 22 13:12:45 2004 From: kfraleytx at YAHOO.COM (keith fraley) Date: Wed, 22 Dec 2004 13:12:45 -0800 Subject: Installing at hosting facility... Message-ID: I am new to map server, what a breath of fresh air!!! Im glad to see this effort moving forward! I come from an ArcIMS and ArcGIS Server background so I have much exposure to web based mapping. The question I have is, am I going to run into problems trying to get this system set up at my hosting facility (http://www.lunarpages.com)? Is it something that can be compiled elsewhere and then just FTP'd up to the hosting site? I am totally lost here, thanks in advance! __________________________________ 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 Wed Dec 22 15:51:47 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 22 Dec 2004 22:51:47 -0100 Subject: More about Hidden Tags {Scanned} In-Reply-To: <20041222195013.18252.qmail@web53801.mail.yahoo.com> Message-ID: Hi, On Wed, 22 Dec 2004, Pablo Toapanta wrote: > Hi > I understand about the tags, but where are defined??, > for example I know that the tag [mapext] stores the > extent, but neither the map file nor the html file I > see the value of that tag. > > I just want to know where are defined the values of > that tags. When CGI mapserver processes the map file and the html template it subtitutes [...] tags with the actual value of that variable. You can see the value of those variables if you put the tags into your template. For example

Actual scale 1:[scale]

on the client side you get (looking at the page source)

Actual scale 1:2345.234 or something similar. Bye Zoltan From nacional at CBS.UMN.EDU Wed Dec 22 14:43:40 2004 From: nacional at CBS.UMN.EDU (Pericles S. Nacionales) Date: Wed, 22 Dec 2004 16:43:40 -0600 Subject: Installing at hosting facility... In-Reply-To: <20041222211245.68930.qmail@web40804.mail.yahoo.com> Message-ID: I was just helping someone deal with this very issue... If your hosting service is unix-based you're better off compiling MapServer within their server (if allowed). You can of course compile MapServer using a similar platform and upload the binaries to the server. The potential problem here is that the libraries you compiled MapServer with might not be the same version as the libraries installed in the server. It's a pain to deal with this. Ultimately, what you can do is compile MapServer, copy all the libraries you used and package them together. Now, you'll probably end up with duplicate libraries on the server and that will give you other problems. What you can do is create a wrapper shell script like so: #!/bin/sh LD_LIBRARY_PATH=/some/path/to/mapserver/libs export LD_LIBRARY_PATH /cgi-bin/mapserv Save that script as something like mapserv.cgi in your CGI directory and make sure it's executable. Now, when you call MapServer, use mapserv.cgi instead of mapserv. If they give you an editable Apache config (or whatever httpd server they use), you can also just append SetEnv LD_LIBRARY_PATH "/some/path/to/mapserver/libs" to this config file and forego writing a wrapper script. If your hosting service is Windows-based, you still need to copy those libraries as chances are they don't exist in the server. You can also follow the same strategy as with the unix server but instead of specifying LD_LIBRARY_PATH you'll be editing the PATH (you could screw things royally if you don't know how to edit this). And unless your Windows server has a bash shell installed you'll be using Windows CMD shell. Also, if you're on Windows, there are a few binaries available for your use. Check maptools.org and the main MapServer web site. I'm still providing binaries for Windows but I actually don't use them as I'm strictly on Linux these days. So, if you use mine, I might not be able to provide help. Sorry to give you such a long reply and probably confusing you in the process. The short answer is YES, but not insurmountably hard, and NO, if you anticipate the problems I mentioned above. There are other ways, of course, and this only applies to the CGI program. Talk to your hosting service people, they might already have MapServer installed for you. ;) Good luck and welcome to the MapServer world! Perry N. On Wednesday 22 December 2004 03:12 pm, keith fraley wrote: > I am new to map server, what a breath of fresh air!!! > > Im glad to see this effort moving forward! > > I come from an ArcIMS and ArcGIS Server background so > I have much exposure to web based mapping. The > question I have is, am I going to run into problems > trying to get this system set up at my hosting > facility (http://www.lunarpages.com)? Is it something > that can be compiled elsewhere and then just FTP'd up > to the hosting site? > I am totally lost here, thanks in advance! > > > > > __________________________________ > Do you Yahoo!? > Take Yahoo! Mail with you! Get it on your mobile phone. > http://mobile.yahoo.com/maildemo -- Pericles S. Nacionales Dept. of Ecology, Evolution, and Behavior University of Minnesota work: 612 624 6713 e-mail: nacional at cbs.umn.edu From schuyler at NOCAT.NET Wed Dec 22 14:59:40 2004 From: schuyler at NOCAT.NET (Schuyler Erle) Date: Wed, 22 Dec 2004 14:59:40 -0800 Subject: RPM packages of MapServer and prerequisites available In-Reply-To: <001801c4e7fd$46992400$041410ac@comune.lugo.ra.it> Message-ID: * On 22-Dec-2004 at 6:29AM PST, Daniele Margotti said: > Very interesting thing! > > A couple of questions: > - would these RPMs work also with new Fedora Core 3? Possibly. Alternately you could rebuild them from the source RPMs in the archive. This should not be too difficult. > - do we need a particular configuration of our Fedora distribution > (e.g. install or NOT install some programs/packages/libraries, etc.)? Not that I know of. If these RPMs become popular, I would be willing to set up a bug tracker and accept patches to the spec files. > - is your RPM MapServer still Oracle-spatial and/or MySQL-spatial > enabled, or spatial extension only works with postgresql? I don't use either of those two, so offhand I would have to guess not. Personally I'm unlikely to ever use Oracle but I could be probably persuaded to support MySQL and/or accept patches to make the SRPMs look for Oracle libs when built (and not fail if they aren't present). Try them out and let me know? > - are these RPMs only for server purpouse or do they configure a > (almost) full GIS destkop workstation? Well, Linux is Linux IMHO ;-) I use these RPMs both on my webserver and my desktop, so, sure, why not. I would be willing to add other packages to the archive if there are things that people want and would use. I've been thinking of adding gpsbabel, gpsd, and one or more of: QGIS, Thuban, and/or OpenEV. Thanks for your interest. SDE From ealpert at DIGITALGLOBE.COM Wed Dec 22 15:18:36 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 22 Dec 2004 16:18:36 -0700 Subject: Installing at hosting facility... Message-ID: If you're hosting service is not unix-based...find one that is. Why anyone would run a web hosting service using IIS is beyound me. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Pericles S. Nacionales Sent: Wednesday, December 22, 2004 3:44 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Installing at hosting facility... I was just helping someone deal with this very issue... If your hosting service is unix-based you're better off compiling MapServer within their server (if allowed). From dmorissette at DMSOLUTIONS.CA Wed Dec 22 15:31:55 2004 From: dmorissette at DMSOLUTIONS.CA (Daniel Morissette) Date: Wed, 22 Dec 2004 18:31:55 -0500 Subject: MapServer 4.4.1 released Message-ID: MapServer 4.4.1 has been released just in time for Xmas. This new release addresses a few issues that were found in version 4.4.0 and contains no new functionality. The list of fixes is included at the end of this message. The source package is available in the downloads page of the website as usual. Due to the (bad) timing with the holidays, it may take a few days before Windows binaries are available for this version. Happy holidays everyone! Daniel ------------------------------------------------------------ Daniel Morissette dmorissette at dmsolutions.ca DM Solutions Group http://www.dmsolutions.ca/ ------------------------------------------------------------ Version 4.4.1 (2004-12-22) -------------------------- - Spacing between hatch lines (new HATCH symbol type) is now consistent regardless of angle. - Oracle Spatial: Fixed problem with LayerClose function. Added token NONE for DATA statement. Thanks Valik with the hints about the LayerClose problem and Francois with the hints about NONE token. - numpoints and stylelength members of the symbol object need to be in sync with the low level values after calls to setpoints and setstyle (Bug 1137). - Use doubles instead of integers in function php3_ms_symbol_setPoints (Bug 1137). - Fixed msFreeFileCtx() to call free() instead of gdFree() as per bug 1125. Also renamed gdFreeFileCtx() to msFreeFileCtx(). - Fixed MyGIS build error introduced when adding msLayerIsOpen() (bug 1116) - Fixed segmentation fault when generating PDF output (bug 1105) - Fixed wms 1.1.1 capabilities issue: Point to WMS_MS_Capabilities.dtd instead of capabilities_1_1_1.dtd (Bug 1097) - Fixed problem with accumlated error stacks in fastcgi mode. Bug 1122 - Fixed support for SIZEUNITS based scaling of text when map is rotated. Bug 1127. From jclabaugh at MAC.COM Wed Dec 22 16:26:50 2004 From: jclabaugh at MAC.COM (Jerod Clabaugh) Date: Wed, 22 Dec 2004 18:26:50 -0600 Subject: LabelRequires & MS 4.4.0 Message-ID: All: I have a quick question regarding LABELREQUIRES syntax. See mapfile below. I want to only show this district label layer if 'district' layer is ON. This layer syntax below worked fine in MS 4.2.6, but upon switching to MS 4.4.0, I get the following error msValidateContexts: Recursion error found for LABELREQUIRES parameter for layer district. I checked the lastest mapfile manual online and the mapserver list archives and tried various permutations, all to no avail. Anyone have a solution? Cheers, Jerod ########## BEGIN DISTRICT LABELS LAYER LAYER CONNECTIONTYPE postgis NAME district GROUP 'People & Society' CONNECTION "user=xxxxxx dbname=xxxxxx password=xxxxxx host=localhost" DATA "the_geom from shape_district using SRID=26716 using unique oid" TYPE ANNOTATION STATUS DEFAULT DUMP TRUE MINSCALE 0 MAXSCALE 1000000 LABELITEM "district" LABELREQUIRES "[district] = 1" CLASSITEM "district" CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT "Vera" SIZE 9 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 ANTIALIAS TRUE POSITION Cc PARTIALS FALSE MINDISTANCE 100 MINFEATURESIZE 100 WRAP "\n" OFFSET 3 3 BUFFER 4 END # end of label END # end of class object METADATA WMS_TITLE "District Labels" WMS_ABSTRACT "District shapefile." WMS_SRS "EPSG:26716" WMS_SHOWINLEGEND "no" END # end of metadata object END ########## END DISTRICT LABELS LAYER -------------- next part -------------- An HTML attachment was scrubbed... URL: From mschulz at WEBGIS.DE Thu Dec 23 02:39:53 2004 From: mschulz at WEBGIS.DE (Michael Schulz) Date: Thu, 23 Dec 2004 11:39:53 +0100 Subject: POLYGON layers not transparent with imagetype JPEG Message-ID: Hi, i found this thread, because I realized the same behavior with our mapserv4.2.5. A polygon layer that has a diagonal vector(lines) fill, displays with white background instead of showing through layers that are underneath. This happens with imagetypes png24 and jpeg (where it is no problem to display whole layers with a certain transparency) - png and gif work as expected. One can come around this by defining a layer transparency of 100. But actually that's not what the layer transparency is intended to be for. Is this a bug for the outputformats with RGB colors? map-class-snipplet: CLASS NAME "Biotop ?24" STYLE COLOR 255 0 0 OUTLINECOLOR 255 0 0 SYMBOL 1 END END symbol-definition: SYMBOL NAME "downwarddiagonalfill" TYPE vector TRANSPARENT 0 POINTS 0 1 1 0 END END Merry christmas to all, Michael -- ----------------------------------------------------------- Michael Schulz in medias res Dipl.-Geologe Gesellschaft f?r Informationstechnologie mbH In den Weihermatten 66 79108 Freiburg 0761 55695-95 (Fax 96) mschulz at webgis.de www.webgis.de/www.zopecms.de From James.Shanton2 at NSCORP.COM Thu Dec 23 05:53:19 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Thu, 23 Dec 2004 08:53:19 -0500 Subject: Updating [minx], [maxx], [miny], [maxy] variables with Javasc ript Message-ID: Thanks ! That's what I needed to do. Jim -----Original Message----- From: Sean Gillies [mailto:sgillies at frii.com] Sent: Wednesday, December 22, 2004 1:56 PM To: Shanton, James A Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: Updating [minx], [maxx], [miny], [maxy] variables with Javascript On Dec 22, 2004, at 10:40 AM, Shanton, James A wrote: > Is there a way I can update [minx], [maxx], [miny], [maxy] CGI template > variables with Javascript ? > > I'm trying to implement image swapping with jbox. > > Image swapping works the first time I zoom in, but the second time I > zoom > in, the coordinates on the template are not updated. > > I've tried hidden variables on the template and updating those, but I > keep > getting NaN and weird numbers like -79.7097-6.31680 for longitude > > Thanks ! > > Jim Shanton > MapServer's templating can let you write Javascript: is that what you're looking for? Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From richard.greenwood at GMAIL.COM Thu Dec 23 06:36:26 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 23 Dec 2004 07:36:26 -0700 Subject: ArcIMS Emulator and ArcGIS 9sp2 In-Reply-To: <4BF377919225F449BB097CB76FFE9BC80FC89D@ptolemy.topozone.com> Message-ID: On Wed, 22 Dec 2004 09:50:16 -0500, Ed McNierney wrote: > Of course, SP2 breaks ArcIMS emulators, but it also adds WMS support > into the core product; see > http://downloads.esri.com/support/downloads/ao_/ArcGIS-90sp2-WMS-spt.pdf > for the instructions. As a result, I'm inclined to abandon further > ArcIMS emulation support and tell ESRI users to use WMS! I tend to agree with Ed's point. We need promote the use of standards, not the use of "Defacto Standards", which is what I see the ArcIMS emulator as doing.The ArcIMS emulator is a nifty hack, but it puts one more brick in the ESRI wall, whereas requiring ESRI users to avail themselves of standards-based tools takes a brick out of that wall. It reminds the ESRI user that there is a bigger world out there. The WMS capabilities in ArcGIS 9.0 SP2 appear to be very good in my limited testing. There is also an OGC add-on for ArcGIS 8.3 and one of the free ESRI viewers (the Windows one I think) which are less capable than the SP2 interface, but still quite functional. Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From James.Shanton2 at NSCORP.COM Thu Dec 23 07:34:32 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Thu, 23 Dec 2004 10:34:32 -0500 Subject: jbox SetImage and Reference Map / Scalebar Message-ID: I'm working with the jbox setimage command, and image swapping. How do I access the new Reference map / Scalebar since mapserver is not creating one within my old image temp directory ? I have the zoom portion / extents working correctly, and I noticed that there are no temp files being created. Where does the jbox applet store them ? Thanks ! Jim Shanton From richard.greenwood at GMAIL.COM Thu Dec 23 08:54:29 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 23 Dec 2004 09:54:29 -0700 Subject: jbox SetImage and Reference Map / Scalebar In-Reply-To: Message-ID: On Thu, 23 Dec 2004 10:34:32 -0500, Shanton, James A wrote: > I'm working with the jbox setimage command, and image swapping. > > How do I access the new Reference map / Scalebar since mapserver is not > creating one within my old image temp directory ? > > I have the zoom portion / extents working correctly, and I noticed that > there are no temp files being created. Where does the jbox applet store > them ? When you use image swapping you are accessing mapserver in "map" mode, which means mapserver is only producing an image, no temporary image is saved to the server (or the client, jBox in this case) and mapserver is not template variable substitution for you. So you need to make additional calls to mapserver for any other things you need, like a reference map, scalebar, etc. You also have to keep track of your map extents yourself (you could make another request to mapserver to do the calculations, but that would involve more overhead that it's worth). Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bartvde at XS4ALL.NL Thu Dec 23 08:59:54 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Thu, 23 Dec 2004 17:59:54 +0100 Subject: SLD and transparent polygon fill Message-ID: Hi list, is it possible using Mapserver to have a transparent polygon fill through SLD? E.g.: #ff0000 0.5 If not, is there a work-around to accomplish this using SLD? Thanks in advance. Best regards, Bart From steve.lime at DNR.STATE.MN.US Thu Dec 23 09:02:47 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 23 Dec 2004 11:02:47 -0600 Subject: LabelRequires & MS 4.4.0 Message-ID: Gee and I figured nobody would ever see that error message. Guess it was worth pulling my hair out. Anyway, your statement: LABELREQUIRES "[district] = 1" is invalid. LABELREQUIRES is used to toggle labeling based on the status of OTHER layers. For example, you might not want to show lake labels if you're displaying a scanned map as a backdrop that already has them. Your use of LABELREQUIRES basically draw labels if the layer is on. That's how MapServer works by default so it's unnessesary. Remove that line and you should be fine. If you have 2 layers called district then you'll need to rename one. You cannot reference the current layer nor other layers that depend on the current layer in REQUIRES or LABELREQUIRES statements. Otherwise you will get the recursion error. Steve >>> Jerod Clabaugh 12/22/2004 6:26:50 PM >>> All: I have a quick question regarding LABELREQUIRES syntax. See mapfile below. I want to only show this district label layer if 'district' layer is ON. This layer syntax below worked fine in MS 4.2.6, but upon switching to MS 4.4.0, I get the following error msValidateContexts: Recursion error found for LABELREQUIRES parameter for layer district. I checked the lastest mapfile manual online and the mapserver list archives and tried various permutations, all to no avail. Anyone have a solution? Cheers, Jerod ########## BEGIN DISTRICT LABELS LAYER LAYER CONNECTIONTYPE postgis NAME district GROUP 'People & Society' CONNECTION "user=xxxxxx dbname=xxxxxx password=xxxxxx host=localhost" DATA "the_geom from shape_district using SRID=26716 using unique oid" TYPE ANNOTATION STATUS DEFAULT DUMP TRUE MINSCALE 0 MAXSCALE 1000000 LABELITEM "district" LABELREQUIRES "[district] = 1" CLASSITEM "district" CLASS COLOR -1 -1 -1 LABEL TYPE TRUETYPE FONT "Vera" SIZE 9 COLOR 0 0 0 SHADOWCOLOR 218 218 218 SHADOWSIZE 1 1 ANTIALIAS TRUE POSITION Cc PARTIALS FALSE MINDISTANCE 100 MINFEATURESIZE 100 WRAP "\n" OFFSET 3 3 BUFFER 4 END # end of label END # end of class object METADATA WMS_TITLE "District Labels" WMS_ABSTRACT "District shapefile." WMS_SRS "EPSG:26716" WMS_SHOWINLEGEND "no" END # end of metadata object END ########## END DISTRICT LABELS LAYER From steve.lime at DNR.STATE.MN.US Thu Dec 23 09:04:06 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 23 Dec 2004 11:04:06 -0600 Subject: More about Hidden Tags Message-ID: They are computed within a particular run of MapServer and then output via a template. Steve >>> Pablo Toapanta 12/22/2004 1:50:13 PM >>> Hi I understand about the tags, but where are defined??, for example I know that the tag [mapext] stores the extent, but neither the map file nor the html file I see the value of that tag. I just want to know where are defined the values of that tags. Thanks __________________________________ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com From sgillies at FRII.COM Thu Dec 23 09:12:41 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Thu, 23 Dec 2004 10:12:41 -0700 Subject: SLD and transparent polygon fill In-Reply-To: Message-ID: On Dec 23, 2004, at 9:59 AM, Bart van den Eijnden wrote: > Hi list, > > is it possible using Mapserver to have a transparent polygon fill > through > SLD? > > E.g.: > > > #ff0000 > 0.5 > > > If not, is there a work-around to accomplish this using SLD? > > Thanks in advance. > > Best regards, > Bart > > One problem you will run into is that MapServer only has layer-level transparency and cannot have transparency defined at the style (symbolizer) level. I'm not sure how the MapServer OGC SLD programmers have worked around this. Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From eric at GOMOOS.ORG Thu Dec 23 14:43:13 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 23 Dec 2004 17:43:13 -0500 Subject: More about Hidden Tags In-Reply-To: Message-ID: The complete list of template variables can be found here: http://mapserver.gis.umn.edu/doc44/template-reference.html Perhaps that is what you are looking for. At 11:04 AM 12/23/2004 -0600, Steve Lime wrote: >They are computed within a particular run of MapServer and then output >via a template. > >Steve > >>>> Pablo Toapanta 12/22/2004 1:50:13 PM >>> >Hi >I understand about the tags, but where are defined??, >for example I know that the tag [mapext] stores the >extent, but neither the map file nor the html file I >see the value of that tag. > >I just want to know where are defined the values of >that tags. > >Thanks From richard.greenwood at GMAIL.COM Thu Dec 23 20:26:31 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 23 Dec 2004 21:26:31 -0700 Subject: Scale value output in MapServer CGI In-Reply-To: <2576812186CDD411BF1500508B6DCE9507367D0E@ecnwri1.ontario.int.ec.gc.ca> Message-ID: On Wed, 22 Dec 2004 13:08:49 -0500, Kralidis,Tom [Burlington] wrote: > Hi, > > Using MapServer CGI, I currently run the [scale] value through the > JavaScript functions below: > > // fix scale values > function fnxRoundNo(i) { > var new_scale; > new_scale = separate(Math.round(i/100)*100, ","); > document.write("Scale 1: " + new_scale); > } > > function separate(input, separator) { > var input2 = "" + input; > var output = ""; > for (var i=0; i < input2.length; i++) { > if (i != 0 && (input2.length - i) % 3 == 0) output += separator; > output += input2.charAt(i); > } > return output; > } > > So something like 226787247.360000 is output as: 1: 226,787,200 via: > javascript:fnxRoundNo(226787247.360000); > > Is there a way to get this from the CGI itself without having to put > through JavaScript? Not that I know of. > If no, does anyone think this would be a useful > enhancement to MapServer CGI (i.e. addition of [scale_rounded] type > template variable)? Yes, seems like it would be useful. Like if you wanted to avoid javascript. But I would think it should be a map file parameter. Why are you thinking template variable? Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From tylermitchell at SHAW.CA Thu Dec 23 21:27:48 2004 From: tylermitchell at SHAW.CA (Tyler Mitchell) Date: Thu, 23 Dec 2004 21:27:48 -0800 Subject: Request for MapScript Examples Message-ID: I'm collecting MapScript 'recipes' for an upcoming book to published by O'Reilly. I will be using them as examples or tutorials for new MapServer application developers. If you have a favourite project that you'd be willing to share, I'd love to hear from you. Or if you have any special applications that would be appealing to other new developers or MapScript hackers, that'd be great too. I'd also be interested in examples that show the power of MapScript in as few lines as possible (much easier to put in a book!). What I'd need from you: -Your name for credit purposes -A URL to your application or the contents zipped in an email to me (off list please) -An explanation of any dependencies your app. may have -As complete a dataset as possible if required -Your permission use and include the application and datasets in the book or in downloadable files to support the book. The book is due out Summer 2005. It is not all MapServer, but will has Open Source GIS as its focus including: OpenEV, GDAL/OGR, PostGIS and MapServer. Have a blessed Christmas. Tyler From arachnid at NOTDOT.NET Fri Dec 24 02:59:54 2004 From: arachnid at NOTDOT.NET (Nick Johnson) Date: Fri, 24 Dec 2004 23:59:54 +1300 Subject: Mapserver 4.4 CGI segfaults Message-ID: Hi, I've downloaded and compiled Mapserver 4.4, and whilst the PHP module seems to work fine (PHP5 on Apache 2), the CGI program consistently segfaults. For example: arachnid at calculon mapserver-4.4.0 $ ./mapserv "QUERY_STRING=map=hellow.map&mode=map" Segmentation fault The map file in this case is the trivial example 'hello world' one from the mapserver examples in the docs section, but the segfault occurs on any map file - it even occurs if the map file doesn't even exist! Running mapserver under gdb: arachnid at calculon mapserver-4.4.0 $ gdb ./mapserv GNU gdb 6.0 Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run "QUERY_STRING=map=hellow.map&mode=map" Starting program: /mnt/content/home/arachnid/mapserver-4.4.0/mapserv "QUERY_STRING=map=hellow.map&mode=map" warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 18391)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 16384 (LWP 18391)] 0x08069565 in loadMapInternal () (gdb) backtrace #0 0x08069565 in loadMapInternal () #1 0x0804e641 in loadMap () #2 0x0805128b in main () Unfortunately, I don't have the standard libraries compiled with debug flags, so that's all I get. My configure arguments were: '--with-proj=/usr/local' '--with-geos=/usr/local/bin/geos-confi g' '--with-ogr=/usr/local/bin/gdal-config' '--with-gdal=/usr/local/bin/gdal-conf ig' '--with-postgis=yes' '--with-ming=/usr/lib/ming' '--with-httpd=/usr/sbin/apa che2' '--with-php=/usr/include/php' '--with-php-regex-dir=/var/tmp/portage/php-5 .0.2-r1/work/php-5.0.2/regex' Is anyone able to suggest why this might be segfaulting? The CGI isn't vitally important to me, but it'd still be nice if it actually worked... -Nick Johnson From Tom.Kralidis at EC.GC.CA Fri Dec 24 05:09:29 2004 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 24 Dec 2004 08:09:29 -0500 Subject: Scale value output in MapServer CGI Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Richard Greenwood > Sent: Thursday, 23 December, 2004 23:27 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Scale value output in MapServer CGI > > > On Wed, 22 Dec 2004 13:08:49 -0500, Kralidis,Tom [Burlington] > wrote: > > Hi, > > > > Using MapServer CGI, I currently run the [scale] value through the > > JavaScript functions below: > > > > // fix scale values > > function fnxRoundNo(i) { > > var new_scale; > > new_scale = separate(Math.round(i/100)*100, ","); > > document.write("Scale 1: " + new_scale); > > } > > > > function separate(input, separator) { > > var input2 = "" + input; > > var output = ""; > > for (var i=0; i < input2.length; i++) { > > if (i != 0 && (input2.length - i) % 3 == 0) output += > separator; > > output += input2.charAt(i); > > } > > return output; > > } > > > > So something like 226787247.360000 is output as: 1: > 226,787,200 via: > > javascript:fnxRoundNo(226787247.360000); > > > > Is there a way to get this from the CGI itself without > having to put > > through JavaScript? > > Not that I know of. > > > If no, does anyone think this would be a useful > > enhancement to MapServer CGI (i.e. addition of [scale_rounded] type > > template variable)? > > Yes, seems like it would be useful. Like if you wanted to > avoid javascript. But I would think it should be a map file > parameter. Why are you thinking template variable? > I'm not sure :) Perhaps I'm using the incorrect terminology, but my use case is as you note, to avoid using JavaScript for this. ..Tom > Regards, > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > From Godwinl at AGR.GC.CA Fri Dec 24 08:24:32 2004 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Fri, 24 Dec 2004 11:24:32 -0500 Subject: SDE, WFS and filter encoding Message-ID: Hello list! Has anyone been able to successfully request filtered data from a WFS service that connects to SDE? Problem: - Data being served is stored in SDE - Displays ok in all methods (WMS/WFS/direct) - GetFeature returns all features ok - GetFeature with a filter set returns an an error on the server: Premature end of script headers: mapserv - sometimes i get a "missing" instead (see bug 1143 http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1143) - if I switch the dataset to a shapefile instead, it all works just fine. - also have errors with GML in a WMS getFeatureInfo request Cheers, and I hope everyone is enjoying their holidays around the world!! Liz Godwin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Godwinl at AGR.GC.CA Fri Dec 24 08:25:43 2004 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Fri, 24 Dec 2004 11:25:43 -0500 Subject: SDE, WFS and filter encoding - addendum Message-ID: I forgot to add that I'm using Mapserver 4.4.0 Cheers, Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: From Godwinl at AGR.GC.CA Fri Dec 24 08:35:52 2004 From: Godwinl at AGR.GC.CA (Godwin, Elizabeth) Date: Fri, 24 Dec 2004 11:35:52 -0500 Subject: SDE, WFS and filter encoding - works on 4.2.5 Message-ID: I have decided that it must be a bug, unless there is something new I'm supposed to do to mapfiles/request to make it work in 4.4.0 I'm not filing a new bug, because there already is one that might be applicable. Bug 1143: http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=1143 Again, Happy Holidays and New year too! Liz -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Fri Dec 24 11:29:11 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 24 Dec 2004 12:29:11 -0700 Subject: Updating [minx], [maxx], [miny], [maxy] variables with Javascript In-Reply-To: <300E1C82-544B-11D9-AE24-000D9329D732@frii.com> Message-ID: On Wed, 22 Dec 2004 11:56:28 -0700, Sean Gillies wrote: > On Dec 22, 2004, at 10:40 AM, Shanton, James A wrote: > > > Is there a way I can update [minx], [maxx], [miny], [maxy] CGI template > > variables with Javascript ? > > > > I'm trying to implement image swapping with jbox. > > > > Image swapping works the first time I zoom in, but the second time I > > zoom > > in, the coordinates on the template are not updated. > > > > I've tried hidden variables on the template and updating those, but I > > keep > > getting NaN and weird numbers like -79.7097-6.31680 for longitude > > > > Thanks ! > > > > Jim Shanton When you image swap the client page is only requesting an image, so the templae file and it's [template_variables] are not processed. You need to do the calculations on the client (typically with javascript) or make another request to mapserver to do the calculations for you (which sort of defeats the purpose of image swapping). Regards, -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Fri Dec 24 11:35:55 2004 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Fri, 24 Dec 2004 12:35:55 -0700 Subject: Request for MapScript Examples In-Reply-To: <200412232127.48395.tylermitchell@shaw.ca> Message-ID: On Thu, 23 Dec 2004 21:27:48 -0800, Tyler Mitchell wrote: > I'm collecting MapScript 'recipes' for an upcoming book to published by > O'Reilly. > The book is due out Summer 2005. It is not all MapServer, but will has Open > Source GIS as its focus including: OpenEV, GDAL/OGR, PostGIS and MapServer. Good job Tyler! Make sure you have it out by the June MapServer meeting in Minnesota because we will all want autographed copies. Happy Holidays, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From edman007x at MAC.COM Fri Dec 24 16:34:18 2004 From: edman007x at MAC.COM (Ed Martin) Date: Fri, 24 Dec 2004 19:34:18 -0500 Subject: PHP/Mapscript, Find what Shape of layer one is each point of layer 2 in Message-ID: i have a layer of cities and a layer of counties, and right now i'm trying to make a table in mysql of that county each city is in, the problem is i can't figure out how should go about doing this, what i have done so far is make an array of all the points in the cities layer, but then after that i'm stuck as to how to determine what county that point it is in, this is the code i have so far, and i just get thousands of errors saying nothing found -----code----- $map = ms_newMapObj("map/map.map"); $cities = $map->getlayerbyname('Cities'); $counties = $map->getlayerbyname('County'); $cities->open(); $id = 0; $query = 'SELECT id FROM cities ORDER BY id DESC'; $result= mysql_query($query); $id_max = mysql_fetch_array($result, MYSQL_NUM); $id_max[0]--; //get the shape, then line, then point for each city while ($city_shape[$id] = $cities->getshape(-1, $id)){ if ($id >= $id_max[0]){ break; } $id++; } $cities->close(); $size = sizeof($city_shape); $dont_touch = array(); for ($i = 0; $i<$size; $i++){ $city_line[$i] = $city_shape[$i]->line(0); if (!is_object($city_line[$i])){ $dont_touch[] = $i;//for some reason 3 lines return false instead of a point //so this makes an array of those so they can be skipped } } for ($i = 0; $i<$size; $i++){ if (in_array($i, $dont_touch)){ continue;//skip the non-objects } $city_point[$i] = $city_line[$i]->point(0); } for ($i = 0; $i<$size; $i++){ if (in_array($i, $dont_touch)){ continue;//skip the non-objects } $counties->querybypoint($city_point[$i], MS_SINGLE, 1);//this justs gives errors //once i can get the id of the county i feel i will be able to dump it to mysql } ---relevant parts of mapfile--- MAP #The First layer is drawn first so it will be under everything else NAME "Ads By Town" EXTENT -126.30536309017 6.3903743998824 -63.798263662392 68.919064491698 # EXTENT -179.133 17.675 179.788 71.398 IMAGETYPE jpeg IMAGECOLOR -1 -1 -1 STATUS ON SIZE 600 600 UNITS dd SYMBOLSET "symbols.txt" OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE RGB EXTENSION "jpg" FORMATOPTION "QUALITY=65" END #layer for the counties LAYER NAME "County" TYPE POLYGON STATUS DEFAULT DATA "/usr/local/apache/htdocs/adsbytown/mapserver/map/data/countyp020" MAXSCALE 8203600 CLASS NAME "County Boarder" STYLE OUTLINECOLOR 0 200 200 SYMBOL "dashed_line" SIZE 1 END END END #layer for the cities LAYER NAME "Cities" TYPE POINT STATUS default DATA "/usr/local/apache/htdocs/adsbytown/mapserver/map/data/ci10de03" LABELMAXSCALE 1025400 LABELITEM "NAME" MAXSCALE 4101800 LABELCACHE on TOLERANCE 25 TOLERANCEUNITS miles METADATA "title" "Ads By Town Cities" "author" "Me!" END #this is for cities default CLASS TEMPLATE void NAME "City" LABEL ANGLE 0 ANTIALIAS FALSE COLOR 0 0 0 SIZE small TYPE bitmap BUFFER 2 OFFSET 0 5 POSITION lc #FORCE TRUE#force everything to be labeled (text overlaps) END STYLE OUTLINECOLOR 255 0 0 COLOR 255 0 0 SYMBOL 1 SIZE 2 END END From romoloman at HOTMAIL.COM Fri Dec 24 18:29:40 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Sat, 25 Dec 2004 03:29:40 +0100 Subject: Mapserver 4.4 CGI segfaults Message-ID: ----- Original Message ----- From: "Nick Johnson" To: Sent: Friday, December 24, 2004 11:59 AM Subject: [UMN_MAPSERVER-USERS] Mapserver 4.4 CGI segfaults > Hi, > > I've downloaded and compiled Mapserver 4.4, and whilst the PHP module > seems to work fine (PHP5 on Apache 2), the CGI program consistently > segfaults. > > My configure arguments were: > > '--with-proj=/usr/local' '--with-geos=/usr/local/bin/geos-confi > g' '--with-ogr=/usr/local/bin/gdal-config' > '--with-gdal=/usr/local/bin/gdal-conf > ig' '--with-postgis=yes' '--with-ming=/usr/lib/ming' > '--with-httpd=/usr/sbin/apa > che2' '--with-php=/usr/include/php' > '--with-php-regex-dir=/var/tmp/portage/php-5 > .0.2-r1/work/php-5.0.2/regex' > I think that the problem is in using the php-regex library even for the cgi, i have actually solved the problem with a double make process, one for the cgi and one for the php/mapscript stuff. I'm experiencing this problem in 4.4.0 and in 4.4.1. Best Regards Romolo Manfredini From bartvde at XS4ALL.NL Sun Dec 26 04:50:37 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Sun, 26 Dec 2004 13:50:37 +0100 Subject: wfs GetFeature request In-Reply-To: Message-ID: Hi, Within is a spatial filter to get data within a certain box, it cannot be used to filter the properties you want to get returned from Mapserver WFS. Best regards, Bart On Wed, 22 Dec 2004 09:10:30 -0600, N Zhou wrote: > Hi Bart, > > Thank you very much for your comment. Instead of using propertyname > outside > Filter, I tried to get a property in Filter, but I still got the whole > set > of properties. > > http://myhost/cgi-bin/mapserv?map=/mymap.map&Service=WFS&version=1.0.0&Request=GetFeature&Typename=water&FILTER=water/PIDminx,miny > maxx,maxy > > Is this a correct URL request to get a property of PID? > > Thanks. > > Naijun > >> From: "Bart van den Eijnden" >> To: "N Zhou" , MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] wfs GetFeature request >> Date: Tue, 21 Dec 2004 20:43:30 +0100 >> >> Hi, >> >> AFAIK this is not implemented, see also: >> >> http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=675 >> >> Although this specific bug is about a HTTP POST request, it references >> the >> same feature which is missing (filtering fields/properties). >> >> Best regards, >> Bart >> >> On Tue, 21 Dec 2004 13:41:11 -0600, N Zhou >> wrote: >> >>> Hi, >>> >>> I try to query and retrieve specific properties of a feature. My URL >>> request >>> is: >>> http://myhost/cgi-bin/mapserv?map=/mymap.map&Service=WFS&version=1.0.0&Request=GetFeature&PROPERTYNAME=water/PID&Typename=water >>> >>> But I got the full set of properties instead of PID, like the requrest >>> without PROPERTYNAME. Could any one tell me what is wrong with the >>> request, >>> or the .map file? >>> >>> Thank you very much! >>> >>> N. Zhou >>> >>> PS: the DescribeFeatureType returned: >>> >>> >>> >> xmlns:myns="http://www.ttt.org/myns" >>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" >>> xmlns="http://www.w3.org/2001/XMLSchema" >>> xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified" >>> version="0.1"> >>> >> schemaLocation="http://www.opengis.net/gml/2.1/feature.xsd" /> >>> >> substitutionGroup="gml:_Feature" /> >>> >>> >>> >>> >>> >> type="gml:PointPropertyType" >>> nillable="false" /> >>> >>> ...... >>> >>> >>> >>> >>> >>> >>> >> >> >> >> -- >> Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From covariance at SHAW.CA Sun Dec 26 13:00:22 2004 From: covariance at SHAW.CA (Bob Bruce) Date: Sun, 26 Dec 2004 15:00:22 -0600 Subject: Request for MapScript Examples Message-ID: Hi Tyler: I have been delving into PHP MapScript and it has been a bit of an eye-opening experience because a few things that worked on my CGI page now stopped working here. But I used the MapServer recipes from Mobile Geographics to get started: http://www.mobilegeographics.com/mapserver/ which is a pretty cool way to get started. If you don't have this in your documents, you might want to use it. We used it to test the MapServer PHP environment that our hosting provider installed. Bob Bruce From arunoday_chatterjee at VSNL.NET Sun Dec 26 21:50:41 2004 From: arunoday_chatterjee at VSNL.NET (Arunoday Chatterjee) Date: Sun, 26 Dec 2004 23:50:41 -0600 Subject: PHPMapscript using dynamic data Message-ID: Hi! I am creating a map with data like roads, cities, counties from already created shape files. Now i want to display some locations on the map based on their latitude and longitude. I've these stored in MySql db, i would want to fetch it dynamically from the db each time the map is requested and generated the points on the map. I tried to use a template and had 3 fields viz. id, latitude, longitude in it. Then fetched the data from the db and used processTemplate function and passed the above three values in an array in a while loop into the processTemplate functions as it's signature suggests. But it doesn't seems to be working, with MS_TRUE specified as the last parameter it seems to hang and with the other option it doesn't show anything. I'm not sure if i'm using the right method. Can anyone advice as to what method to resort to achieve the my objective as described above, a small example in this regard would be of great help. I searched the net for some example with the advanced php mapscript functions but without any luck, there doesn't seem to be any good documentation with example available on the net on this topic. Any help in this regard would be very much appreciable. Thanks From bartvde at XS4ALL.NL Sun Dec 26 23:53:40 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Mon, 27 Dec 2004 08:53:40 +0100 Subject: PHPMapscript using dynamic data In-Reply-To: Message-ID: Hi, why not use the Virtual Spatial Data option of OGR instead? See: http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData Best regards, Bart > Hi! > I am creating a map with data like roads, cities, counties from already > created shape files. Now i want to display some locations on the map based > on their latitude and longitude. I've these stored in MySql db, i would > want to fetch it dynamically from the db each time the map is requested > and > generated the points on the map. I tried to use a template and had 3 > fields > viz. id, latitude, longitude in it. Then fetched the data from the db and > used processTemplate function and passed the above three values in an > array > in a while loop into the processTemplate functions as it's signature > suggests. But it doesn't seems to be working, with MS_TRUE specified as > the > last parameter it seems to hang and with the other option it doesn't show > anything. > I'm not sure if i'm using the right method. > Can anyone advice as to what method to resort to achieve the my objective > as described above, a small example in this regard would be of great help. > I searched the net for some example with the advanced php mapscript > functions but without any luck, there doesn't seem to be any good > documentation with example available on the net on this topic. > Any help in this regard would be very much appreciable. > > Thanks > From ealpert at DIGITALGLOBE.COM Mon Dec 27 06:26:06 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 27 Dec 2004 07:26:06 -0700 Subject: Request for MapScript Examples Message-ID: Will some portion of the proceeds of your book go to mapserver? ________________________________ From: UMN MapServer Users List on behalf of Tyler Mitchell Sent: Thu 12/23/2004 10:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Request for MapScript Examples I'm collecting MapScript 'recipes' for an upcoming book to published by O'Reilly. I will be using them as examples or tutorials for new MapServer application developers. If you have a favourite project that you'd be willing to share, I'd love to hear from you. Or if you have any special applications that would be appealing to other new developers or MapScript hackers, that'd be great too. I'd also be interested in examples that show the power of MapScript in as few lines as possible (much easier to put in a book!). What I'd need from you: -Your name for credit purposes -A URL to your application or the contents zipped in an email to me (off list please) -An explanation of any dependencies your app. may have -As complete a dataset as possible if required -Your permission use and include the application and datasets in the book or in downloadable files to support the book. The book is due out Summer 2005. It is not all MapServer, but will has Open Source GIS as its focus including: OpenEV, GDAL/OGR, PostGIS and MapServer. Have a blessed Christmas. Tyler -------------- next part -------------- An HTML attachment was scrubbed... URL: From James.Shanton2 at NSCORP.COM Mon Dec 27 07:20:05 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Mon, 27 Dec 2004 10:20:05 -0500 Subject: calculating scale with Javascript? Message-ID: Is there a way to calculate scale with javascript ? I'm trying to implement jbox image swapping so I can't use [scale] Thanks ! Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From superbla3000 at GMX.NET Mon Dec 27 08:57:44 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Mon, 27 Dec 2004 17:57:44 +0100 Subject: performance problem Message-ID: hello, I have a 4000 point track in mysql. I build my trackline with $TrackLayerObj = $this->map->getLayerByName('gpstrack'); $pointObj = ms_newPointObj(); $line = ms_newLineObj(); for($i=0;$isetXY($long,$lat); $line->add($pointObj); $shp = ms_newShapeObj(MS_SHAPE_LINE); $shp->add($line); if($TrackLayerObj->addFeature($shp) == -1){ echo "addFeature in lineLayer failed"; } } If I choose just a few trackpoints, it's no problem. But when I want to show all 4000, linux 'top' shows php-cgi running and running and then I get a blank browser site, due to timeout I guess. Are 4000 points too much? Any ideas? Joerg From superbla3000 at GMX.NET Mon Dec 27 09:37:22 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Mon, 27 Dec 2004 18:37:22 +0100 Subject: performance problem In-Reply-To: <41D041C0.9060807@geosignal.fr> Message-ID: unfortunately, I can't find map.c on my Suse 9.1 and I also can't find more infos to MAX_CLASSES.. Which map.c file do you mean? Could you specify it a little bit more? Seems like it's the solution! Joerg Guillaume SUEUR (G?osignal) wrote: > it may be a limit of the program itself on the number of shapeObj by > example. For an application I'va done, I had to change the MAX_CLASSES > value in the map.c file to allow using more than 50 different classes. > Same for the symbols, limited to 255 by default. > > Good luck > > joerg pfeiffer wrote: > >> *********************** >> Votre mail a ?t?t scann? par InterScan VirusWall. >> ***********-*********** >> >> >> hello, >> >> I have a 4000 point track in mysql. I build my trackline with >> >> $TrackLayerObj = $this->map->getLayerByName('gpstrack'); >> $pointObj = ms_newPointObj(); >> $line = ms_newLineObj(); >> >> for($i=0;$i> $lat=$pointlist[$i][0]; >> $long=$pointlist[$i][1]; >> $pointObj->setXY($long,$lat); >> $line->add($pointObj); >> $shp = ms_newShapeObj(MS_SHAPE_LINE); >> $shp->add($line); >> if($TrackLayerObj->addFeature($shp) == -1){ >> echo "addFeature in lineLayer failed"; >> } >> } >> >> If I choose just a few trackpoints, it's no problem. But when I want to >> show all 4000, linux 'top' shows php-cgi running and running and then I >> get a blank browser site, due to timeout I guess. >> >> Are 4000 points too much? >> Any ideas? >> >> Joerg >> >> >> >> > From agillesp at VT.EDU Mon Dec 27 11:27:34 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 27 Dec 2004 14:27:34 -0500 Subject: Compiling for C# Message-ID: Not too long ago I noticed a "csharp" directory in the mapscript branch of the source tree. I tried to compile whatever's in there. I get this error: /usr/bin/ld: cannot find -lttf collect2: ld returned 1 exit status make: *** [mapscript_so] Error 1 It looks like a true-type library? I thought in the the open source world this was included in the freetype library. Might someone know what I'm missing / point me where to get it. Also, am I jumping the gun here? I've seen no mention of a .Net API and maybe it's too early to start playing around with it. Thanks. -Abe Happy holidays! From sgillies at FRII.COM Mon Dec 27 11:27:27 2004 From: sgillies at FRII.COM (Sean Gillies) Date: Mon, 27 Dec 2004 12:27:27 -0700 Subject: Compiling for C# In-Reply-To: Message-ID: On Dec 27, 2004, at 12:27 PM, Abe Gillespie wrote: > Not too long ago I noticed a "csharp" directory in the mapscript branch > of the source tree. I tried to compile whatever's in there. I get > this error: > > /usr/bin/ld: cannot find -lttf > collect2: ld returned 1 exit status > make: *** [mapscript_so] Error 1 > > It looks like a true-type library? I thought in the the open source > world this was included in the freetype library. Might someone know > what I'm missing / point me where to get it. > > Also, am I jumping the gun here? I've seen no mention of a .Net API > and maybe it's too early to start playing around with it. > > Thanks. > -Abe > > Happy holidays! Abe, The C# stuff was contributed by YK Choo a few months ago. He claims it works for him, and I was able to get it to compile, so we thought it was worth committing it to our CVS. It does not build as smoothly as other language modules. You'll need to hack the Makefile. See line 15. Jumping the gun? You're certainly heading off the beaten path here, but why not try it out? cheers, Sean -- Sean Gillies sgillies at frii dot com http://users.frii.com/sgillies From jeff at PROPERTYKEY.COM Mon Dec 27 11:39:58 2004 From: jeff at PROPERTYKEY.COM (Jeff Hoffmann) Date: Mon, 27 Dec 2004 13:39:58 -0600 Subject: confused about WMS request behavior Message-ID: I'm using Mapserver 4.4.0 to serve WMS requests in both meters and US feet and I'm seeing something strange in requests for the "US feet" version at relatively small scale levels. The way I have it set up is that I have one configuration file to deliver the image in meters and then one configuration that is effectively just a relay that accepts the coordinates as feet and whose only layer is a WMS request to the meters configuration. This is working fine for larger scale images, but on small scale images, it appears to convert the feet to meters and then back to feet before sending the request on the the meters configuration. What is causing mapserver to think that it should convert ft->m->ft in certain situations? -- Jeff Hoffmann jeff at propertykey.com From steve.lime at DNR.STATE.MN.US Mon Dec 27 13:50:56 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 27 Dec 2004 15:50:56 -0600 Subject: performance problem Message-ID: As I read this you're creating 4000 line features, each one point longer than the first. So the first line contains 1 point (bad!), the second line contains 2 points, the third 3 points. Are you sure that's what you want? I can see why you have a bit of a performance issue. Shouldn't adding the track to the shape and layer happen outside the for loop? Like so: # build the track for($i=0;$isetXY($long,$lat); $line->add($pointObj); } # create a feature from the track and add to feature $shp = ms_newShapeObj(MS_SHAPE_LINE); $shp->add($line); if($TrackLayerObj->addFeature($shp) == -1){ echo "addFeature in lineLayer failed"; } This would result in one 4000 point feature being added to the 'gpstrack' layer. Steve >>> joerg pfeiffer 12/27/2004 10:57:44 AM >>> hello, I have a 4000 point track in mysql. I build my trackline with $TrackLayerObj = $this->map->getLayerByName('gpstrack'); $pointObj = ms_newPointObj(); $line = ms_newLineObj(); for($i=0;$isetXY($long,$lat); $line->add($pointObj); $shp = ms_newShapeObj(MS_SHAPE_LINE); $shp->add($line); if($TrackLayerObj->addFeature($shp) == -1){ echo "addFeature in lineLayer failed"; } } If I choose just a few trackpoints, it's no problem. But when I want to show all 4000, linux 'top' shows php-cgi running and running and then I get a blank browser site, due to timeout I guess. Are 4000 points too much? Any ideas? Joerg From steve.lime at DNR.STATE.MN.US Mon Dec 27 13:54:39 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 27 Dec 2004 15:54:39 -0600 Subject: calculating scale with Javascript? Message-ID: You might want to use the mapserv.js script I wrote. It was designed for use with jbox and dbox. At worst it has example code to compute scale assuming you're managing extents with your own stuff. You can find it at http://maps.dnr.state.mn.us/javascript/mapserv.js. Look for the getscale method... Steve >>> "Shanton, James A" 12/27/2004 9:20:05 AM >>> Is there a way to calculate scale with javascript ? I'm trying to implement jbox image swapping so I can't use [scale] Thanks ! Jim From agillesp at VT.EDU Mon Dec 27 14:22:02 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 27 Dec 2004 17:22:02 -0500 Subject: Timeout with REQUIRES Message-ID: I have two layers that look like this: LAYER NAME "Flood Zone" STATUS ON DATA "flood_zo" TYPE polygon MAXSCALE 300000 UNITS FEET CLASS COLOR 68 126 171 OUTLINECOLOR 11 57 92 END GROUP "Layers" END LAYER NAME "Flood Elevation" STATUS ON DATA "flood_el" TYPE line UNITS FEET MAXSCALE 20000 CLASS COLOR 68 155 255 TEXT ([ELEVATION]') LABEL TYPE TRUETYPE FONT arial SIZE 8 POSITION cc COLOR 0 0 0 ANGLE auto MINFEATURESIZE 1 END END REQUIRES "([Flood Zone] = 1)" END Notice the "REQUIRES" tag. These two layers cause no problems. However, I also have these two layers further in the map file: LAYER NAME "Buildings" STATUS ON DATA "bldg1" TYPE polygon MAXSCALE 15000 UNITS FEET LABELITEM "ADDRESS" LABELCACHE on LABELMAXSCALE 6000 CLASS COLOR 220 149 146 OUTLINECOLOR 190 95 96 LABEL MINFEATURESIZE 12 TYPE truetype FONT arial ANTIALIAS true ANGLE auto POSITION cc COLOR 0 0 0 OUTLINECOLOR 255 255 255 BUFFER 3 SIZE 8 END END TOLERANCE 3 TEMPLATE "x" METADATA search_field "FULLADDR" search_fields "FULLADDR" search_aliases "Address" END GROUP "Layers" END LAYER NAME "Buildings 0" STATUS ON DATA "bldg0" TYPE polygon MAXSCALE 15000 UNITS FEET CLASS COLOR 168 168 168 OUTLINECOLOR 97 97 97 END REQUIRES "([Buildings] = 1)" END With the "Buildings 0" layer, if I include the "REQUIRES" tag MapServer will timeout. If I remove the "REQUIRES" tag everything runs smoothly. I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was Mapscript 4.0) this worked fine. So something has changed between then and now with the "REQUIRES" algorithm. Any ideas? Thanks. -Abe From ealpert at DIGITALGLOBE.COM Mon Dec 27 14:05:41 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Mon, 27 Dec 2004 15:05:41 -0700 Subject: Timeout with REQUIRES Message-ID: Look at the TEXT label for the Flood Elevation layer. TEXT ([ELEVATION]') You're missing a ' I've had all kinds of problems before when I miss a " or ' -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Abe Gillespie Sent: Monday, December 27, 2004 3:22 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES I have two layers that look like this: LAYER NAME "Flood Zone" STATUS ON DATA "flood_zo" TYPE polygon MAXSCALE 300000 UNITS FEET CLASS COLOR 68 126 171 OUTLINECOLOR 11 57 92 END GROUP "Layers" END LAYER NAME "Flood Elevation" STATUS ON DATA "flood_el" TYPE line UNITS FEET MAXSCALE 20000 CLASS COLOR 68 155 255 TEXT ([ELEVATION]') LABEL TYPE TRUETYPE FONT arial SIZE 8 POSITION cc COLOR 0 0 0 ANGLE auto MINFEATURESIZE 1 END END REQUIRES "([Flood Zone] = 1)" END Notice the "REQUIRES" tag. These two layers cause no problems. However, I also have these two layers further in the map file: LAYER NAME "Buildings" STATUS ON DATA "bldg1" TYPE polygon MAXSCALE 15000 UNITS FEET LABELITEM "ADDRESS" LABELCACHE on LABELMAXSCALE 6000 CLASS COLOR 220 149 146 OUTLINECOLOR 190 95 96 LABEL MINFEATURESIZE 12 TYPE truetype FONT arial ANTIALIAS true ANGLE auto POSITION cc COLOR 0 0 0 OUTLINECOLOR 255 255 255 BUFFER 3 SIZE 8 END END TOLERANCE 3 TEMPLATE "x" METADATA search_field "FULLADDR" search_fields "FULLADDR" search_aliases "Address" END GROUP "Layers" END LAYER NAME "Buildings 0" STATUS ON DATA "bldg0" TYPE polygon MAXSCALE 15000 UNITS FEET CLASS COLOR 168 168 168 OUTLINECOLOR 97 97 97 END REQUIRES "([Buildings] = 1)" END With the "Buildings 0" layer, if I include the "REQUIRES" tag MapServer will timeout. If I remove the "REQUIRES" tag everything runs smoothly. I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was Mapscript 4.0) this worked fine. So something has changed between then and now with the "REQUIRES" algorithm. Any ideas? Thanks. -Abe From agillesp at VT.EDU Mon Dec 27 14:41:24 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Mon, 27 Dec 2004 17:41:24 -0500 Subject: Timeout with REQUIRES In-Reply-To: <1FB6937A87F9074C9A2B8F9D9137EB16017B19BC@COMAIL01.digitalglobe.com> Message-ID: Uh, no, that shouldn't be a problem. If it was, the whole map file wouldn't parse correctly. That single quote just adds a "feet" designation to the elevation measurement. In fact, if I remove the "Buildings 0" layer completely, everything runs fine. -Abe On Dec 27, 2004, at 5:05 PM, Ethan Alpert wrote: > Look at the TEXT label for the Flood Elevation layer. > > TEXT ([ELEVATION]') > > You're missing a ' > > I've had all kinds of problems before when I miss a " or ' > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Abe Gillespie > Sent: Monday, December 27, 2004 3:22 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES > > > I have two layers that look like this: > > LAYER > NAME "Flood Zone" > STATUS ON > DATA "flood_zo" > TYPE polygon > MAXSCALE 300000 > UNITS FEET > CLASS > COLOR 68 126 171 > OUTLINECOLOR 11 57 92 > END > GROUP "Layers" > END > > LAYER > NAME "Flood Elevation" > STATUS ON > DATA "flood_el" > TYPE line > UNITS FEET > MAXSCALE 20000 > CLASS > COLOR 68 155 255 > TEXT ([ELEVATION]') > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > POSITION cc > COLOR 0 0 0 > ANGLE auto > MINFEATURESIZE 1 > END > END > REQUIRES "([Flood Zone] = 1)" > END > > Notice the "REQUIRES" tag. These two layers cause no problems. > However, > I also have these two layers further in the map file: > > LAYER > NAME "Buildings" > STATUS ON > DATA "bldg1" > TYPE polygon > MAXSCALE 15000 > UNITS FEET > LABELITEM "ADDRESS" > LABELCACHE on > LABELMAXSCALE 6000 > CLASS > COLOR 220 149 146 > OUTLINECOLOR 190 95 96 > LABEL > MINFEATURESIZE 12 > TYPE truetype > FONT arial > ANTIALIAS true > ANGLE auto > POSITION cc > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > BUFFER 3 > SIZE 8 > END > END > TOLERANCE 3 > TEMPLATE "x" > METADATA > search_field "FULLADDR" > search_fields "FULLADDR" > search_aliases "Address" > END > GROUP "Layers" > END > > LAYER > NAME "Buildings 0" > STATUS ON > DATA "bldg0" > TYPE polygon > MAXSCALE 15000 > UNITS FEET > CLASS > COLOR 168 168 168 > OUTLINECOLOR 97 97 97 > END > REQUIRES "([Buildings] = 1)" > END > > With the "Buildings 0" layer, if I include the "REQUIRES" tag MapServer > will timeout. If I remove the "REQUIRES" tag everything runs smoothly. > I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was > Mapscript 4.0) this worked fine. So something has changed between then > and now with the "REQUIRES" algorithm. > > Any ideas? > > Thanks. > -Abe > From steve.lime at DNR.STATE.MN.US Mon Dec 27 16:45:45 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 27 Dec 2004 18:45:45 -0600 Subject: Timeout with REQUIRES Message-ID: Abe's right the single quote isn't a problem. The requires directive was mostly broken in 4.2 and probably 4.0. There were changes made in portions of the code that made requires basically useless. The problem was only found and fixed right before 4.4 was released. I don't see anything obvious but let's try a couple of things and see if they help. 1) You don't need ()'s nor equality tests. So REQUIRES "([Buildings] = 1)" should be REQUIRES "[Buildings]" and REQUIRES "([Flood Zone] = 1)" should be REQUIRES "[Flood Zone]" 2) Try renaming "Buildings 0" to "Buildings_0". I'm thinking there may be an issue with some string comparisons someplace. Please try these one at a time and let me know how it goes. Steve >>> Abe Gillespie 12/27/04 4:41 PM >>> Uh, no, that shouldn't be a problem. If it was, the whole map file wouldn't parse correctly. That single quote just adds a "feet" designation to the elevation measurement. In fact, if I remove the "Buildings 0" layer completely, everything runs fine. -Abe On Dec 27, 2004, at 5:05 PM, Ethan Alpert wrote: > Look at the TEXT label for the Flood Elevation layer. > > TEXT ([ELEVATION]') > > You're missing a ' > > I've had all kinds of problems before when I miss a " or ' > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Abe Gillespie > Sent: Monday, December 27, 2004 3:22 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES > > > I have two layers that look like this: > > LAYER > NAME "Flood Zone" > STATUS ON > DATA "flood_zo" > TYPE polygon > MAXSCALE 300000 > UNITS FEET > CLASS > COLOR 68 126 171 > OUTLINECOLOR 11 57 92 > END > GROUP "Layers" > END > > LAYER > NAME "Flood Elevation" > STATUS ON > DATA "flood_el" > TYPE line > UNITS FEET > MAXSCALE 20000 > CLASS > COLOR 68 155 255 > TEXT ([ELEVATION]') > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > POSITION cc > COLOR 0 0 0 > ANGLE auto > MINFEATURESIZE 1 > END > END > REQUIRES "([Flood Zone] = 1)" > END > > Notice the "REQUIRES" tag. These two layers cause no problems. > However, > I also have these two layers further in the map file: > > LAYER > NAME "Buildings" > STATUS ON > DATA "bldg1" > TYPE polygon > MAXSCALE 15000 > UNITS FEET > LABELITEM "ADDRESS" > LABELCACHE on > LABELMAXSCALE 6000 > CLASS > COLOR 220 149 146 > OUTLINECOLOR 190 95 96 > LABEL > MINFEATURESIZE 12 > TYPE truetype > FONT arial > ANTIALIAS true > ANGLE auto > POSITION cc > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > BUFFER 3 > SIZE 8 > END > END > TOLERANCE 3 > TEMPLATE "x" > METADATA > search_field "FULLADDR" > search_fields "FULLADDR" > search_aliases "Address" > END > GROUP "Layers" > END > > LAYER > NAME "Buildings 0" > STATUS ON > DATA "bldg0" > TYPE polygon > MAXSCALE 15000 > UNITS FEET > CLASS > COLOR 168 168 168 > OUTLINECOLOR 97 97 97 > END > REQUIRES "([Buildings] = 1)" > END > > With the "Buildings 0" layer, if I include the "REQUIRES" tag MapServer > will timeout. If I remove the "REQUIRES" tag everything runs smoothly. > I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was > Mapscript 4.0) this worked fine. So something has changed between then > and now with the "REQUIRES" algorithm. > > Any ideas? > > Thanks. > -Abe > From steve.lime at DNR.STATE.MN.US Mon Dec 27 17:06:46 2004 From: steve.lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 27 Dec 2004 19:06:46 -0600 Subject: Timeout with REQUIRES Message-ID: Oh, also post the entire mapfile if you would... >>> Abe Gillespie 12/27/04 4:41 PM >>> Uh, no, that shouldn't be a problem. If it was, the whole map file wouldn't parse correctly. That single quote just adds a "feet" designation to the elevation measurement. In fact, if I remove the "Buildings 0" layer completely, everything runs fine. -Abe On Dec 27, 2004, at 5:05 PM, Ethan Alpert wrote: > Look at the TEXT label for the Flood Elevation layer. > > TEXT ([ELEVATION]') > > You're missing a ' > > I've had all kinds of problems before when I miss a " or ' > > -e > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] > On > Behalf Of Abe Gillespie > Sent: Monday, December 27, 2004 3:22 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES > > > I have two layers that look like this: > > LAYER > NAME "Flood Zone" > STATUS ON > DATA "flood_zo" > TYPE polygon > MAXSCALE 300000 > UNITS FEET > CLASS > COLOR 68 126 171 > OUTLINECOLOR 11 57 92 > END > GROUP "Layers" > END > > LAYER > NAME "Flood Elevation" > STATUS ON > DATA "flood_el" > TYPE line > UNITS FEET > MAXSCALE 20000 > CLASS > COLOR 68 155 255 > TEXT ([ELEVATION]') > LABEL > TYPE TRUETYPE > FONT arial > SIZE 8 > POSITION cc > COLOR 0 0 0 > ANGLE auto > MINFEATURESIZE 1 > END > END > REQUIRES "([Flood Zone] = 1)" > END > > Notice the "REQUIRES" tag. These two layers cause no problems. > However, > I also have these two layers further in the map file: > > LAYER > NAME "Buildings" > STATUS ON > DATA "bldg1" > TYPE polygon > MAXSCALE 15000 > UNITS FEET > LABELITEM "ADDRESS" > LABELCACHE on > LABELMAXSCALE 6000 > CLASS > COLOR 220 149 146 > OUTLINECOLOR 190 95 96 > LABEL > MINFEATURESIZE 12 > TYPE truetype > FONT arial > ANTIALIAS true > ANGLE auto > POSITION cc > COLOR 0 0 0 > OUTLINECOLOR 255 255 255 > BUFFER 3 > SIZE 8 > END > END > TOLERANCE 3 > TEMPLATE "x" > METADATA > search_field "FULLADDR" > search_fields "FULLADDR" > search_aliases "Address" > END > GROUP "Layers" > END > > LAYER > NAME "Buildings 0" > STATUS ON > DATA "bldg0" > TYPE polygon > MAXSCALE 15000 > UNITS FEET > CLASS > COLOR 168 168 168 > OUTLINECOLOR 97 97 97 > END > REQUIRES "([Buildings] = 1)" > END > > With the "Buildings 0" layer, if I include the "REQUIRES" tag MapServer > will timeout. If I remove the "REQUIRES" tag everything runs smoothly. > I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was > Mapscript 4.0) this worked fine. So something has changed between then > and now with the "REQUIRES" algorithm. > > Any ideas? > > Thanks. > -Abe > From guillaume.sueur at GEOSIGNAL.FR Tue Dec 28 00:11:34 2004 From: guillaume.sueur at GEOSIGNAL.FR (=?ISO-8859-1?Q?=22Guillaume_SUEUR_=28G=E9osignal=29=22?=) Date: Tue, 28 Dec 2004 09:11:34 +0100 Subject: performance problem In-Reply-To: <41D04852.2080100@gmx.net> Message-ID: Sorry, it's the map.h header file you need. It's in your mapserver source directory. On lines 249 and 250, you have : #define MS_MAXCLASSES 250 #define MS_MAXSTYLES 5 which means than a layer object can't have more than 250 classes (my settings here, default is 50) and a class object can't have more than 5 styles. In mapsymbol.h you have these : #define MS_MAXSYMBOLS 64 // maximum number of symbols in a symbol file #define MS_MAXVECTORPOINTS 100 // shade, marker and line symbol parameters #define MS_MAXSTYLELENGTH 10 I think your problem is around here. The solution is to change these default settings to more appropriate ones, and rebuild mapserver/mapscript Good luck then ! joerg pfeiffer wrote: > *********************** > Votre mail a ?t?t scann? par InterScan VirusWall. > ***********-*********** > > > unfortunately, I can't find map.c on my Suse 9.1 > and I also can't find more infos to MAX_CLASSES.. > > Which map.c file do you mean? > Could you specify it a little bit more? Seems like it's the solution! > > Joerg > > > Guillaume SUEUR (G?osignal) wrote: > >> it may be a limit of the program itself on the number of shapeObj by >> example. For an application I'va done, I had to change the MAX_CLASSES >> value in the map.c file to allow using more than 50 different classes. >> Same for the symbols, limited to 255 by default. >> >> Good luck >> >> joerg pfeiffer wrote: >> >>> *********************** >>> Votre mail a ?t?t scann? par InterScan VirusWall. >>> ***********-*********** >>> >>> >>> hello, >>> >>> I have a 4000 point track in mysql. I build my trackline with >>> >>> $TrackLayerObj = $this->map->getLayerByName('gpstrack'); >>> $pointObj = ms_newPointObj(); >>> $line = ms_newLineObj(); >>> >>> for($i=0;$i>> $lat=$pointlist[$i][0]; >>> $long=$pointlist[$i][1]; >>> $pointObj->setXY($long,$lat); >>> $line->add($pointObj); >>> $shp = ms_newShapeObj(MS_SHAPE_LINE); >>> $shp->add($line); >>> if($TrackLayerObj->addFeature($shp) == -1){ >>> echo "addFeature in lineLayer failed"; >>> } >>> } >>> >>> If I choose just a few trackpoints, it's no problem. But when I want to >>> show all 4000, linux 'top' shows php-cgi running and running and then I >>> get a blank browser site, due to timeout I guess. >>> >>> Are 4000 points too much? >>> Any ideas? >>> >>> Joerg >>> >>> >>> >>> >> > > > > > -- --------------------------- Guillaume SUEUR GEOSIGNAL - Groupe BVA 25bis Avenue Marcel Dassault 31505 TOULOUSE CEDEX 5 ---------------------------- From arunoday_chatterjee at VSNL.NET Tue Dec 28 01:48:34 2004 From: arunoday_chatterjee at VSNL.NET (Arunoday Chatterjee) Date: Tue, 28 Dec 2004 03:48:34 -0600 Subject: Getting the ID of the object with user click Message-ID: Hi! All, I've been able to create a dynamic layer using data from MySQL by creating shape files on the fly. This sufficed my requirement that i posted yesterday. Now in this dynamic layer i'm plotting some points using a symbol. The dbf file will have 3 fields vix. id,latitude,longitude. My requirement is to obtain the id of the point in the map the user is clicking so that i can use it for further processing like displaying some more data from the db which can be fetched using the id. Do i use template and then querybypoint or processtemplate - i tried but it gives me an error stating invalid header etc.. Can anyone advice how do i achieve the above mentioned requirement of mine. Thanks! From superbla3000 at GMX.NET Tue Dec 28 03:14:54 2004 From: superbla3000 at GMX.NET (joerg pfeiffer) Date: Tue, 28 Dec 2004 12:14:54 +0100 Subject: performance problem In-Reply-To: Message-ID: thanks a lot, you are completely right, of course. Now it works fantastic! best regards joerg Steve Lime wrote: > As I read this you're creating 4000 line features, each one point longer > than the first. So the first line contains 1 point (bad!), the second > line contains 2 points, the third 3 points. Are you sure that's what you > want? I can see why you have a bit of a performance issue. Shouldn't > adding the track to the shape and layer happen outside the for loop? > Like so: > > # build the track > for($i=0;$i $lat=$pointlist[$i][0]; > $long=$pointlist[$i][1]; > $pointObj->setXY($long,$lat); > $line->add($pointObj); > } > > # create a feature from the track and add to feature > $shp = ms_newShapeObj(MS_SHAPE_LINE); > $shp->add($line); > if($TrackLayerObj->addFeature($shp) == -1){ > echo "addFeature in lineLayer failed"; > } > > This would result in one 4000 point feature being added to the > 'gpstrack' layer. > > Steve > > >>>>joerg pfeiffer 12/27/2004 10:57:44 AM >>> > > hello, > > I have a 4000 point track in mysql. I build my trackline with > > $TrackLayerObj = $this->map->getLayerByName('gpstrack'); > $pointObj = ms_newPointObj(); > $line = ms_newLineObj(); > > for($i=0;$i $lat=$pointlist[$i][0]; > $long=$pointlist[$i][1]; > $pointObj->setXY($long,$lat); > $line->add($pointObj); > $shp = ms_newShapeObj(MS_SHAPE_LINE); > $shp->add($line); > if($TrackLayerObj->addFeature($shp) == -1){ > echo "addFeature in lineLayer failed"; > } > } > > If I choose just a few trackpoints, it's no problem. But when I want > to > show all 4000, linux 'top' shows php-cgi running and running and then > I > get a blank browser site, due to timeout I guess. > > Are 4000 points too much? > Any ideas? > > Joerg > > From arunoday_chatterjee at VSNL.NET Tue Dec 28 04:11:25 2004 From: arunoday_chatterjee at VSNL.NET (Arunoday Chatterjee) Date: Tue, 28 Dec 2004 06:11:25 -0600 Subject: Moving map in different directions Message-ID: Hi! All, I've my map and now i want to move it to North, South, East or West based on users choice via some radio buttons say. How do i achieve this? I know it can be achiedved through panning but how do i calcualte the coordinates for moving north, south etc..i can subtract the left, right, up or down limits but will that match exactly with the direction? Pls. help. Thanks! From sengc at WEB.DE Tue Dec 28 04:33:39 2004 From: sengc at WEB.DE (Christian Sengstock) Date: Tue, 28 Dec 2004 06:33:39 -0600 Subject: wrong img extent coordinates after draw() method (mapscript) Message-ID: Hi! Ive got a problem with the image extent of my mapscript map object. It is changed during the method "mapobject->draw()" and i cant see why! The class "mymap" is initialized with a map filename and the four image extent coordinates and should draw the mapimage with the methods ... - (Constructor) $mapobject = new mymap($mapfilename, -100, -50, 0, 50); - (mapobject extent is set to the image extent coordinates) $mapobject->setext(); - (get image handle and image url) $mapobject->drawmap(); - (write html img link to html page) $mapobject->htmloutput(); That?s my source ... Test2 pageMap = ms_newMapObj($filename); $this->extoutp($this->pageMap->extent, "pageMap"); $this->ExtRect = ms_newRectObj(); $this->ExtRect->setextent($minx, $miny, $maxx, $maxy); $this->extoutp($this->ExtRect, "ExtRect"); } function setext () { $this->pageMap->extent = $this->ExtRect; $this->extoutp($this->pageMap->extent, "PageMap after setext"); } function drawmap() { $this->extoutp($this->pageMap->extent, "PageMap before drawmap"); $image=$this->pageMap->draw(); $this->imgUrl = $image->saveWebImage(); $this->extoutp($this->pageMap->extent, "PageMap after drawmap"); } function htmloutput () { echo "imgUrl\">"; } function extoutp($rectangle, $str) { $mix = $rectangle->minx; $miy = $rectangle->miny; $max = $rectangle->maxx; $may = $rectangle->maxy; echo "

$str data: $mix, $miy, $max, $may

"; } } $mA = new mymap($mapfilename, -100, -50, 0, 50); $mA->setext(); $mA->drawmap(); $mA->htmloutput(); ?> and that?s my output ... pageMap data: -180, -90, 180, 90 /* init ext from mapfile *( ExtRect data: -100, -50, 0, 50 /* generated rectangle from given coord */ PageMap after setext data: -100, -50, 0, 50 /* set mapobject OK */ PageMap before drawmap data: -100, -50, 0, 50 /* OK before draw */ PageMap after drawmap data: -180, -144, 180, 144 /* <-- weird transform */ Thanks for any help, Chris From siki at AGT.BME.HU Tue Dec 28 08:02:11 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 28 Dec 2004 15:02:11 -0100 Subject: Moving map in different directions {Scanned} In-Reply-To: Message-ID: Hi, You can find a solution for this at http://maps.dnr.state.mn.us/mapserver_demos/ download workshop.zip or change to workshop directory to check it on-line, select "Adds pan controls" from the list. Bye Zoltan On Tue, 28 Dec 2004, Arunoday Chatterjee wrote: > Hi! All, > I've my map and now i want to move it to North, South, East or West based > on users choice via some radio buttons say. How do i achieve this? I know > it can be achiedved through panning but how do i calcualte the coordinates > for moving north, south etc..i can subtract the left, right, up or down > limits but will that match exactly with the direction? > > Pls. help. > > Thanks! > From jdport at VERITIME.COM Tue Dec 28 06:43:29 2004 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 28 Dec 2004 09:43:29 -0500 Subject: Mapscript issues... Message-ID: I'm brand new to mapserver and mapscript and am just starting to attempt to learn how to use it. I got it all installed, I believe correctly. I decided to start with the "Simple Recipes" scripts as a starting point to figuring everything out, but when I run the first example, hello.phtml I get an Internal Server Error. Looking at the error logs, I see: /usr/local/apache2/cgi-bin/php: relocation error: /var/php/extensions/php_mapscript.so: undefined symbol: gdImageGifCtx This is with mapserver-4.4.0 and php-4.3.4 under RedHat 9.0 if that helps. When I do a test with phpinfo, I do see the mapscript extension listed properly and as far as I can tell I have everything installed properly. Does anybody have any suggestions on what the problem might be, and any links that might help smooth the learning curve would be appreciated as well. Thanks! -Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From siki at AGT.BME.HU Tue Dec 28 10:04:50 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 28 Dec 2004 17:04:50 -0100 Subject: Mapscript issues... {Scanned} In-Reply-To: <005601c4eceb$987c2900$5ff2fbd0@solo> Message-ID: Hi, Check your php_mapscript.so using ldd ldd php_mapscript.so You will get a list of loadable libraries which the mapscript depends on. Probably the libgd missing or the version is old or the directory of the so file is not in the /etc/ld.so.conf file, see man ldconfig. I hope it helps you. Bye Zoltan On Tue, 28 Dec 2004, Jeff Portwine wrote: > I'm brand new to mapserver and mapscript and am just starting to attempt to learn how to use it. I got it all installed, I believe correctly. I decided to start with the "Simple Recipes" scripts as a starting point to figuring everything out, but when I run the first example, hello.phtml I get an Internal Server Error. Looking at the error logs, I see: > > /usr/local/apache2/cgi-bin/php: relocation error: /var/php/extensions/php_mapscript.so: undefined symbol: gdImageGifCtx > > This is with mapserver-4.4.0 and php-4.3.4 under RedHat 9.0 if that helps. > > When I do a test with phpinfo, I do see the mapscript extension listed properly and as far as I can tell I have everything installed properly. Does anybody have any suggestions on what the problem might be, and any links that might help smooth the learning curve would be appreciated as well. Thanks! > > -Jeff > From bartvde at XS4ALL.NL Tue Dec 28 08:16:27 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Tue, 28 Dec 2004 17:16:27 +0100 Subject: compiling with fastcgi enabled on Windows Message-ID: Hi list, has anybody compiled Mapserver in fastcgi mode on Windows? The current makefiles don't have options for enabling FASTCGI (the configure file has though for Unix/Linux), so I am looking for what to add to the makefile.vc or nmake.opt in order to get a Mapserver FastCGI. Thanks in advance. Best regards, Bart From jdport at VERITIME.COM Tue Dec 28 08:20:07 2004 From: jdport at VERITIME.COM (Jeff Portwine) Date: Tue, 28 Dec 2004 11:20:07 -0500 Subject: Mapscript issues... {Scanned} Message-ID: Here is the output of ldd php_mapscript.so. I'm not entirely sure what I'm looking for here. The only thing strange that jumps out at me is that I installed the gd libs in /usr/local/lib and this is showing gd libraries in /usr/local/nushpere/lib. Other than that I can't really tell that there is anything missing or wrong. I've tried running some of the other examples besides hello.phtml and I get an error that says "loadProjection(): Projection support is not available. It's very confusing... I wish I could find a beginners tutorial that took me through the basics of the mapserver.. let me know where to put files, etc. Instead of looking around in various places for examples when I don't even know where exactly I should be putting the example files. ldd php_mapscript.so libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x400a7000) libz.so.1 => /usr/lib/libz.so.1 (0x400f8000) libiconv.so.2 => /usr/lib/libiconv.so.2 (0x40106000) libgd.so.2 => /usr/local/nusphere/lib/libgd.so.2 (0x401dd000) libm.so.6 => /lib/tls/libm.so.6 (0x40216000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40238000) libc.so.6 => /lib/tls/libc.so.6 (0x42000000) libjpeg.so.62 => /usr/local/nusphere/lib/libjpeg.so.62 (0x402ec000) libpng12.so.0 => /usr/local/nusphere/lib/libpng12.so.0 (0x4030e000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40336000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Thanks for any help, it is appreciated. -Jeff ----- Original Message ----- From: "Siki Zoltan" To: Sent: Tuesday, December 28, 2004 1:04 PM Subject: Re: [UMN_MAPSERVER-USERS] Mapscript issues... {Scanned} > Hi, > > Check your php_mapscript.so using ldd > > ldd php_mapscript.so > > You will get a list of loadable libraries which the mapscript depends on. > Probably the libgd missing or the version is old or the directory of > the so file is not in the /etc/ld.so.conf file, see man ldconfig. > > I hope it helps you. > > Bye > Zoltan From ealpert at DIGITALGLOBE.COM Tue Dec 28 09:27:18 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 28 Dec 2004 10:27:18 -0700 Subject: Mapscript issues... {Scanned} Message-ID: Remember also that you are using the LD_SEARCH_PATH of your httpd when running as php. So just because something is found when you run ldd in your shell does not mean that apache or whatever web server you're using can find the .so. Make sure that all the paths below *and* the path to your php_mapscript.so appear in the output of phpinfo() -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jeff Portwine Sent: Tuesday, December 28, 2004 9:20 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Mapscript issues... {Scanned} Here is the output of ldd php_mapscript.so. I'm not entirely sure what I'm looking for here. The only thing strange that jumps out at me is that I installed the gd libs in /usr/local/lib and this is showing gd libraries in /usr/local/nushpere/lib. Other than that I can't really tell that there is anything missing or wrong. I've tried running some of the other examples besides hello.phtml and I get an error that says "loadProjection(): Projection support is not available. It's very confusing... I wish I could find a beginners tutorial that took me through the basics of the mapserver.. let me know where to put files, etc. Instead of looking around in various places for examples when I don't even know where exactly I should be putting the example files. ldd php_mapscript.so libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x400a7000) libz.so.1 => /usr/lib/libz.so.1 (0x400f8000) libiconv.so.2 => /usr/lib/libiconv.so.2 (0x40106000) libgd.so.2 => /usr/local/nusphere/lib/libgd.so.2 (0x401dd000) libm.so.6 => /lib/tls/libm.so.6 (0x40216000) libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40238000) libc.so.6 => /lib/tls/libc.so.6 (0x42000000) libjpeg.so.62 => /usr/local/nusphere/lib/libjpeg.so.62 (0x402ec000) libpng12.so.0 => /usr/local/nusphere/lib/libpng12.so.0 (0x4030e000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40336000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Thanks for any help, it is appreciated. -Jeff ----- Original Message ----- From: "Siki Zoltan" To: Sent: Tuesday, December 28, 2004 1:04 PM Subject: Re: [UMN_MAPSERVER-USERS] Mapscript issues... {Scanned} > Hi, > > Check your php_mapscript.so using ldd > > ldd php_mapscript.so > > You will get a list of loadable libraries which the mapscript depends > on. Probably the libgd missing or the version is old or the directory > of the so file is not in the /etc/ld.so.conf file, see man ldconfig. > > I hope it helps you. > > Bye > Zoltan From agillesp at VT.EDU Tue Dec 28 10:52:41 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 28 Dec 2004 13:52:41 -0500 Subject: Timeout with REQUIRES In-Reply-To: Message-ID: Sure thing. I've include the mapfile below; I'll do some debugging soon. Thanks. -Abe MAP NAME "Ashe" STATUS on EXTENT 1190000 913200 1340000 1045550 SIZE 100 100 SHAPEPATH "../data/" IMAGETYPE png IMAGECOLOR 255 255 255 FONTSET "../../ms_data/fonts/fonts.txt" SYMBOLSET "./symbols.sym" UNITS feet WEB IMAGEPATH "../ms_data/images/" IMAGEURL "/ms_data/images/" METADATA id_layers "Buildings,Parcels,Roads" always_id_layers "Voting Districts,Fire Zones,Townships" addr_layer "Buildings" parcel_layer "Parcels" END END QUERYMAP STYLE HILITE COLOR 219 196 0 END # This layer protects our custom yellow items from changing color. LAYER NAME "measure_hilite_color" STATUS DEFAULT TYPE point TRANSFORM false FEATURE POINTS 1 1 END END CLASS COLOR 219 196 0 END END LAYER NAME "annotation" STATUS ON TRANSFORM false TYPE ANNOTATION POSTLABELCACHE true CLASS LABEL TYPE TRUETYPE FONT arial SIZE 10 POSITION cr COLOR 0 0 0 OUTLINECOLOR 255 255 255 END END END LAYER NAME "custom_solid_line" STATUS ON TYPE LINE POSTLABELCACHE true CLASS SYMBOL "solid" COLOR 219 196 0 SIZE 2 END END LAYER NAME "custom_dashed_line" STATUS ON TYPE LINE POSTLABELCACHE true CLASS SYMBOL "dashed" COLOR 219 196 0 SIZE 2 END END SCALEBAR STATUS embed STYLE 1 INTERVALS 2 SIZE 100 5 COLOR 0 0 0 BACKGROUNDCOLOR 255 255 255 OUTLINECOLOR 0 0 0 UNITS miles POSITION lr TRANSPARENT false STYLE 0 LABEL SIZE tiny COLOR 0 0 0 END POSTLABELCACHE true END LEGEND KEYSIZE 18 12 STATUS ON IMAGECOLOR 255 255 255 LABEL TYPE bitmap SIZE medium COLOR 0 0 89 END END REFERENCE IMAGE "../images/keymap.gif" EXTENT 1190000 913200 1340000 1045550 STATUS ON COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 SIZE 100 80 END LAYER NAME "County" STATUS ON DATA "ashecl" TYPE POLYGON CLASS NAME "parcels off" COLOR 126 143 155 OUTLINECOLOR 102 102 102 MINSCALE 20000 END CLASS NAME "parcels on" COLOR 255 255 255 OUTLINECOLOR 102 102 102 MAXSCALE 20000 END GROUP "Overlays" END LAYER NAME "Fire Zones" STATUS OFF DATA "firezon" TYPE polygon TOLERANCE 3 CLASSITEM "NAME" CLASS COLOR 255 36 0 OUTLINECOLOR 151 21 0 EXPRESSION "Pond Mtn" END CLASS COLOR 255 72 0 OUTLINECOLOR 151 21 0 EXPRESSION "Creston" END CLASS COLOR 255 96 0 OUTLINECOLOR 151 21 0 EXPRESSION "Todd" END CLASS COLOR 255 114 0 OUTLINECOLOR 151 21 0 EXPRESSION "Deep Gap" END CLASS COLOR 255 132 0 OUTLINECOLOR 151 21 0 EXPRESSION "Glendale Springs" END CLASS COLOR 255 150 0 OUTLINECOLOR 151 21 0 EXPRESSION "Fleetwood" END CLASS COLOR 255 180 0 OUTLINECOLOR 151 21 0 EXPRESSION "Glendale Springs" END CLASS COLOR 255 198 0 OUTLINECOLOR 151 21 0 EXPRESSION "Warrensville" END CLASS COLOR 255 216 0 OUTLINECOLOR 151 21 0 EXPRESSION "All" END CLASS COLOR 255 240 0 OUTLINECOLOR 151 21 0 EXPRESSION "Lansing" END CLASS COLOR 249 255 83 OUTLINECOLOR 151 21 0 EXPRESSION "Lansing" END CLASS COLOR 234 247 203 OUTLINECOLOR 151 21 0 EXPRESSION "Lansing" END CLASS COLOR 227 240 250 OUTLINECOLOR 151 21 0 EXPRESSION "Lansing" END GROUP "Overlays" TEMPLATE "x" TOLERANCE 3 METADATA id_fields "NAME" id_aliases "" END END LAYER NAME "Townships" STATUS off DATA "ashets" TYPE polygon TOLERANCE 3 CLASSITEM "TWNSHIP_NO" CLASS COLOR 40 141 190 EXPRESSION "2" END CLASS COLOR 33 172 223 EXPRESSION "3" END CLASS COLOR 131 210 241 EXPRESSION "4" END CLASS COLOR 28 146 171 EXPRESSION "5" END CLASS COLOR 72 158 186 EXPRESSION "6" END CLASS COLOR 81 178 228 EXPRESSION "7" END CLASS COLOR 69 204 252 EXPRESSION "8" END CLASS COLOR 132 190 236 EXPRESSION "9" END CLASS COLOR 58 186 215 EXPRESSION "10" END CLASS COLOR 93 156 190 EXPRESSION "11" END CLASS COLOR 96 208 234 EXPRESSION "12" END CLASS COLOR 94 181 213 EXPRESSION "13" END CLASS COLOR 30 156 193 EXPRESSION "14" END CLASS COLOR 31 168 186 EXPRESSION "15" END CLASS COLOR 78 180 203 EXPRESSION "16" END CLASS COLOR 112 161 203 EXPRESSION "17" END CLASS COLOR 80 151 199 EXPRESSION "18" END CLASS COLOR 109 203 249 EXPRESSION "19" END CLASS COLOR 55 203 217 EXPRESSION "20" END GROUP "Overlays" TEMPLATE "x" METADATA id_fields "TWNSHIP_NA" id_aliases "" END END LAYER NAME "Voting Districts" STATUS off DATA "voting districtsd" TYPE polygon TOLERANCE 3 CLASSITEM "TWNSHIP_NO" CLASS COLOR 125 162 197 EXPRESSION "0" END CLASS COLOR 130 146 178 EXPRESSION "2" END CLASS COLOR 128 153 180 EXPRESSION "3" END CLASS COLOR 255 178 178 EXPRESSION "4" END CLASS COLOR 125 162 197 EXPRESSION "5" END CLASS COLOR 165 192 227 EXPRESSION "6" END CLASS COLOR 166 206 229 EXPRESSION "7" END CLASS COLOR 170 175 188 EXPRESSION "8" END CLASS COLOR 174 194 204 EXPRESSION "9" END CLASS COLOR 146 189 225 EXPRESSION "10" END CLASS COLOR 128 153 180 EXPRESSION "11" END CLASS COLOR 131 157 211 EXPRESSION "12" END CLASS COLOR 173 192 215 EXPRESSION "13" END CLASS COLOR 135 164 205 EXPRESSION "14" END CLASS COLOR 155 185 202 EXPRESSION "15" END CLASS COLOR 197 208 216 EXPRESSION "16" END CLASS COLOR 154 170 196 EXPRESSION "17" END CLASS COLOR 132 177 204 EXPRESSION "19" END GROUP "Overlays" TEMPLATE "x" TOLERANCE 3 METADATA id_fields "TWNSHIP_NA" id_aliases "" END END LAYER NAME "City Limits" STATUS ON DATA "citylimits" TYPE polygon MAXSCALE 200000 UNITS FEET CLASS COLOR 170 203 179 OUTLINECOLOR 68 171 95 END GROUP "Layers" END LAYER NAME "Farm Preservation" STATUS on DATA "farmpres" TYPE polygon MAXSCALE 200000 UNITS FEET CLASS COLOR 126 199 0 BACKGROUNDCOLOR 126 199 0 OUTLINECOLOR 62 98 0 END GROUP "Layers" END LAYER NAME "Flood Zone" STATUS ON DATA "flood_zo" TYPE polygon MAXSCALE 300000 UNITS FEET CLASS COLOR 68 126 171 OUTLINECOLOR 11 57 92 END GROUP "Layers" END LAYER NAME "Flood Way" STATUS ON DATA "floodwy" TYPE polygon MAXSCALE 300000 UNITS FEET CLASS COLOR 132 174 147 BACKGROUNDCOLOR 132 174 147 END GROUP "Layers" END LAYER NAME "Flood Elevation" STATUS ON DATA "flood_el" TYPE line UNITS FEET MAXSCALE 20000 CLASS COLOR 68 155 255 TEXT ([ELEVATION]') LABEL TYPE TRUETYPE FONT arial SIZE 8 POSITION cc COLOR 0 0 0 ANGLE auto MINFEATURESIZE 1 END END REQUIRES "([Flood Zone] = 1)" END LAYER NAME "Parcels" STATUS ON DATA "parcels" TYPE POLYGON MAXSCALE 20000 CLASS OUTLINECOLOR 33 201 18 LABEL COLOR 0 0 0 OUTLINECOLOR 255 255 255 TYPE TRUETYPE FONT arial SIZE 9 ANTIALIAS true POSITION cc PARTIALS false MINDISTANCE 300 BUFFER 4 END END TEMPLATE "x" TOLERANCE 3 METADATA owner_field "OWNERS_NAM" parcel_id_field "ACAD_TEXT" id_fields "OWNERS_NAM,ADDRESS_2,CITY,STATE,ZIP,ACAD_TEXT,LOTS_ACRES,DEED_ACRES,BLD G_VAL,LAND_VAL,DEED_BOOK,DEED_PAGE,PLAT_BOOK,PLAT_PAGE,GPIN,TRANSFER_D" id_aliases "Owner,Address,City,State,Zip,Parcel ID,Lots Acres,Deed Acres,Bldg Value,Total Value,Deed Book,Deed Page,Plat Book,Plat Page,Gpin,Xfer Date" search_fields "ACAD_TEXT,OWNERS_NAM,ADDRESS_2,CITY,STATE,ZIP" search_aliases "Parcel ID,Owner,Address,City,State,Zip" END GROUP "Layers" END LAYER NAME "Water" STATUS ON DATA "water" TYPE LINE MAXSCALE 300000 CLASS NAME "main" COLOR 56 166 186 END GROUP "Layers" END LAYER NAME "Roado" STATUS ON DATA "roado" TYPE LINE MAXSCALE 18000 UNITS FEET CLASS COLOR 255 10 0 END REQUIRES "([Roads] = 1)" END LAYER NAME "Roads" STATUS ON DATA "roads" TYPE LINE MAXSCALE 100000 UNITS FEET LABELITEM "NAME" LABELMAXSCALE 20000 CLASS COLOR 168 7 0 OUTLINECOLOR 102 102 102 LABEL MINDISTANCE 200 MINFEATURESIZE auto TYPE truetype FONT arial ANTIALIAS true MINSIZE 8 MAXSIZE 9 ANGLE auto POSITION auto COLOR 0 0 0 OUTLINECOLOR 255 255 255 BUFFER 3 END END TEMPLATE "x" TOLERANCE 3 METADATA search_fields "NAME" search_aliases "" END GROUP "Layers" END LAYER NAME "Buildings" STATUS ON DATA "bldg1" TYPE polygon MAXSCALE 15000 UNITS FEET LABELITEM "ADDRESS" LABELCACHE on LABELMAXSCALE 6000 CLASS COLOR 220 149 146 OUTLINECOLOR 190 95 96 LABEL MINFEATURESIZE 12 TYPE truetype FONT arial ANTIALIAS true ANGLE auto POSITION cc COLOR 0 0 0 OUTLINECOLOR 255 255 255 BUFFER 3 SIZE 8 END END TOLERANCE 3 TEMPLATE "x" METADATA search_field "FULLADDR" search_fields "FULLADDR" search_aliases "Address" END GROUP "Layers" END LAYER NAME "Buildings 0" STATUS ON DATA "bldg0" TYPE polygon MAXSCALE 15000 UNITS FEET CLASS COLOR 168 168 168 OUTLINECOLOR 97 97 97 END REQUIRES "([Buildings] = 1)" END LAYER NAME "Taxgrid" STATUS ON DATA "Taxgrid" TYPE polygon UNITS FEET MINSCALE 6000 CLASS OUTLINECOLOR 158 167 120 END GROUP "Layers" END END On Dec 27, 2004, at 8:06 PM, Steve Lime wrote: > Oh, also post the entire mapfile if you would... > >>>> Abe Gillespie 12/27/04 4:41 PM >>> > Uh, no, that shouldn't be a problem. If it was, the whole map file > wouldn't parse correctly. That single quote just adds a "feet" > designation to the elevation measurement. In fact, if I remove the > "Buildings 0" layer completely, everything runs fine. > > -Abe > > On Dec 27, 2004, at 5:05 PM, Ethan Alpert wrote: > >> Look at the TEXT label for the Flood Elevation layer. >> >> TEXT ([ELEVATION]') >> >> You're missing a ' >> >> I've had all kinds of problems before when I miss a " or ' >> >> -e >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On >> Behalf Of Abe Gillespie >> Sent: Monday, December 27, 2004 3:22 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES >> >> >> I have two layers that look like this: >> >> LAYER >> NAME "Flood Zone" >> STATUS ON >> DATA "flood_zo" >> TYPE polygon >> MAXSCALE 300000 >> UNITS FEET >> CLASS >> COLOR 68 126 171 >> OUTLINECOLOR 11 57 92 >> END >> GROUP "Layers" >> END >> >> LAYER >> NAME "Flood Elevation" >> STATUS ON >> DATA "flood_el" >> TYPE line >> UNITS FEET >> MAXSCALE 20000 >> CLASS >> COLOR 68 155 255 >> TEXT ([ELEVATION]') >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 8 >> POSITION cc >> COLOR 0 0 0 >> ANGLE auto >> MINFEATURESIZE 1 >> END >> END >> REQUIRES "([Flood Zone] = 1)" >> END >> >> Notice the "REQUIRES" tag. These two layers cause no problems. >> However, >> I also have these two layers further in the map file: >> >> LAYER >> NAME "Buildings" >> STATUS ON >> DATA "bldg1" >> TYPE polygon >> MAXSCALE 15000 >> UNITS FEET >> LABELITEM "ADDRESS" >> LABELCACHE on >> LABELMAXSCALE 6000 >> CLASS >> COLOR 220 149 146 >> OUTLINECOLOR 190 95 96 >> LABEL >> MINFEATURESIZE 12 >> TYPE truetype >> FONT arial >> ANTIALIAS true >> ANGLE auto >> POSITION cc >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> BUFFER 3 >> SIZE 8 >> END >> END >> TOLERANCE 3 >> TEMPLATE "x" >> METADATA >> search_field "FULLADDR" >> search_fields "FULLADDR" >> search_aliases "Address" >> END >> GROUP "Layers" >> END >> >> LAYER >> NAME "Buildings 0" >> STATUS ON >> DATA "bldg0" >> TYPE polygon >> MAXSCALE 15000 >> UNITS FEET >> CLASS >> COLOR 168 168 168 >> OUTLINECOLOR 97 97 97 >> END >> REQUIRES "([Buildings] = 1)" >> END >> >> With the "Buildings 0" layer, if I include the "REQUIRES" tag > MapServer >> will timeout. If I remove the "REQUIRES" tag everything runs > smoothly. >> I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was >> Mapscript 4.0) this worked fine. So something has changed between > then >> and now with the "REQUIRES" algorithm. >> >> Any ideas? >> >> Thanks. >> -Abe >> > -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 13718 bytes Desc: not available URL: From siki at AGT.BME.HU Tue Dec 28 14:32:54 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 28 Dec 2004 21:32:54 -0100 Subject: Mapscript issues... {Scanned} In-Reply-To: <004a01c4ecf9$189d2460$5ff2fbd0@solo> Message-ID: Hi, Did you build mapserv and mapscript from source of use an RPM? Is the /usr/local/nushpere/lib in the /etc/ld.so.conf? Is the libgd.so.2 in that directory? If not add it to the end and run ldconfig to read the new configuration. Was the mapserv built/configured --with-gd and --with-proj? You may had better to move libgd to usual place /usr/lib or /usr/local/lib. If you get error about projection than probably you should load php_proj.so dl("php_proj.so"); I only guess ... Bye Zoltan On Tue, 28 Dec 2004, Jeff Portwine wrote: > Here is the output of ldd php_mapscript.so. > I'm not entirely sure what I'm looking for here. The only thing strange > that jumps out at me is that I installed the gd libs in /usr/local/lib and > this is showing gd libraries in /usr/local/nushpere/lib. Other than that > I can't really tell that there is anything missing or wrong. > > I've tried running some of the other examples besides hello.phtml and I get > an error that says "loadProjection(): Projection support is not available. > It's very confusing... I wish I could find a beginners tutorial that took me > through the basics of the mapserver.. let me know where to put files, etc. > Instead of looking around in various places for examples when I don't even > know where exactly I should be putting the example files. > > > > ldd php_mapscript.so > libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x400a7000) > libz.so.1 => /usr/lib/libz.so.1 (0x400f8000) > libiconv.so.2 => /usr/lib/libiconv.so.2 (0x40106000) > libgd.so.2 => /usr/local/nusphere/lib/libgd.so.2 (0x401dd000) > libm.so.6 => /lib/tls/libm.so.6 (0x40216000) > libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x40238000) > libc.so.6 => /lib/tls/libc.so.6 (0x42000000) > libjpeg.so.62 => /usr/local/nusphere/lib/libjpeg.so.62 (0x402ec000) > libpng12.so.0 => /usr/local/nusphere/lib/libpng12.so.0 (0x4030e000) > libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40336000) > /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) > > > Thanks for any help, it is appreciated. > > -Jeff > ----- Original Message ----- > From: "Siki Zoltan" > To: > Sent: Tuesday, December 28, 2004 1:04 PM > Subject: Re: [UMN_MAPSERVER-USERS] Mapscript issues... {Scanned} > > > > Hi, > > > > Check your php_mapscript.so using ldd > > > > ldd php_mapscript.so > > > > You will get a list of loadable libraries which the mapscript depends on. > > Probably the libgd missing or the version is old or the directory of > > the so file is not in the /etc/ld.so.conf file, see man ldconfig. > > > > I hope it helps you. > > > > Bye > > Zoltan > > From siki at AGT.BME.HU Tue Dec 28 14:38:27 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Tue, 28 Dec 2004 21:38:27 -0100 Subject: Mapscript issues... {Scanned} In-Reply-To: <004a01c4ecf9$189d2460$5ff2fbd0@solo> Message-ID: Hi, I forget to reflect to some issues from your letter. > I've tried running some of the other examples besides hello.phtml and I get > an error that says "loadProjection(): Projection support is not available. > It's very confusing... I wish I could find a beginners tutorial that took me > through the basics of the mapserver.. let me know where to put files, etc. > Instead of looking around in various places for examples when I don't even > know where exactly I should be putting the example files. You may collect your experiencies to help others. Make it public. Volunters are wellcome. That is called Open Source Community ... Bye Zoltan From agillesp at VT.EDU Tue Dec 28 13:54:29 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 28 Dec 2004 16:54:29 -0500 Subject: Timeout with REQUIRES In-Reply-To: Message-ID: Comments are inline. -Abe On Dec 27, 2004, at 7:45 PM, Steve Lime wrote: > Abe's right the single quote isn't a problem. The requires directive > was > mostly broken in 4.2 and probably 4.0. There were changes made in > portions of the code that made requires basically useless. The problem > was only found and fixed right before 4.4 was released. > > I don't see anything obvious but let's try a couple of things and see > if > they help. > > 1) You don't need ()'s nor equality tests. So > > REQUIRES "([Buildings] = 1)" should be REQUIRES "[Buildings]" and Didn't change anything - still timing out. > REQUIRES "([Flood Zone] = 1)" should be REQUIRES "[Flood Zone]" Didn't change anything - continued to work w/o problems. > > 2) Try renaming "Buildings 0" to "Buildings_0". I'm thinking there may > be an issue with some string comparisons someplace. Didn't change anything - still timing out. > > Please try these one at a time and let me know how it goes. > > Steve > >>>> Abe Gillespie 12/27/04 4:41 PM >>> > Uh, no, that shouldn't be a problem. If it was, the whole map file > wouldn't parse correctly. That single quote just adds a "feet" > designation to the elevation measurement. In fact, if I remove the > "Buildings 0" layer completely, everything runs fine. > > -Abe > > On Dec 27, 2004, at 5:05 PM, Ethan Alpert wrote: > >> Look at the TEXT label for the Flood Elevation layer. >> >> TEXT ([ELEVATION]') >> >> You're missing a ' >> >> I've had all kinds of problems before when I miss a " or ' >> >> -e >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >> On >> Behalf Of Abe Gillespie >> Sent: Monday, December 27, 2004 3:22 PM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES >> >> >> I have two layers that look like this: >> >> LAYER >> NAME "Flood Zone" >> STATUS ON >> DATA "flood_zo" >> TYPE polygon >> MAXSCALE 300000 >> UNITS FEET >> CLASS >> COLOR 68 126 171 >> OUTLINECOLOR 11 57 92 >> END >> GROUP "Layers" >> END >> >> LAYER >> NAME "Flood Elevation" >> STATUS ON >> DATA "flood_el" >> TYPE line >> UNITS FEET >> MAXSCALE 20000 >> CLASS >> COLOR 68 155 255 >> TEXT ([ELEVATION]') >> LABEL >> TYPE TRUETYPE >> FONT arial >> SIZE 8 >> POSITION cc >> COLOR 0 0 0 >> ANGLE auto >> MINFEATURESIZE 1 >> END >> END >> REQUIRES "([Flood Zone] = 1)" >> END >> >> Notice the "REQUIRES" tag. These two layers cause no problems. >> However, >> I also have these two layers further in the map file: >> >> LAYER >> NAME "Buildings" >> STATUS ON >> DATA "bldg1" >> TYPE polygon >> MAXSCALE 15000 >> UNITS FEET >> LABELITEM "ADDRESS" >> LABELCACHE on >> LABELMAXSCALE 6000 >> CLASS >> COLOR 220 149 146 >> OUTLINECOLOR 190 95 96 >> LABEL >> MINFEATURESIZE 12 >> TYPE truetype >> FONT arial >> ANTIALIAS true >> ANGLE auto >> POSITION cc >> COLOR 0 0 0 >> OUTLINECOLOR 255 255 255 >> BUFFER 3 >> SIZE 8 >> END >> END >> TOLERANCE 3 >> TEMPLATE "x" >> METADATA >> search_field "FULLADDR" >> search_fields "FULLADDR" >> search_aliases "Address" >> END >> GROUP "Layers" >> END >> >> LAYER >> NAME "Buildings 0" >> STATUS ON >> DATA "bldg0" >> TYPE polygon >> MAXSCALE 15000 >> UNITS FEET >> CLASS >> COLOR 168 168 168 >> OUTLINECOLOR 97 97 97 >> END >> REQUIRES "([Buildings] = 1)" >> END >> >> With the "Buildings 0" layer, if I include the "REQUIRES" tag > MapServer >> will timeout. If I remove the "REQUIRES" tag everything runs > smoothly. >> I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was >> Mapscript 4.0) this worked fine. So something has changed between > then >> and now with the "REQUIRES" algorithm. >> >> Any ideas? >> >> Thanks. >> -Abe >> > From wouter.schaubroeck at GMAIL.COM Tue Dec 28 13:32:15 2004 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Tue, 28 Dec 2004 22:32:15 +0100 Subject: Premature end of script headers: mapserv.exe Message-ID: Hi, I'm installing the new mapserver 4.4.1 (windows binaries) on a apache 2.0.52 and i'm recieving an error like this: premature end of script headers: mapserv.exe. I've tried reinstalling apache, but that didn't work. PHP isn't installed anymore. What is the problem, and how can i solve it? Oh, i'm working on win xp, and i've installed the dll's in system32 and in the cgi-bin. Thx Wouter Schaubroeck Student at the University of Ghent (Belgium) From agillesp at VT.EDU Tue Dec 28 14:06:07 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Tue, 28 Dec 2004 17:06:07 -0500 Subject: Timeout with REQUIRES In-Reply-To: <0C7CCFC9-591B-11D9-9738-000A957A0F9C@vt.edu> Message-ID: A couple of other tests that also didn't fix anything. Where REQUIRES "[Flood Zone]" works for the "Flood Elevation" layer it won't work for the "Buildings 0" layer. I.e.: LAYER NAME "Buildings 0" STATUS ON DATA "bldg0" TYPE polygon MAXSCALE 15000 UNITS FEET CLASS COLOR 168 168 168 OUTLINECOLOR 97 97 97 END REQUIRES "[Flood Zone]" END Renaming "Buildings" to "Foo" and then using REQUIRES "[Foo]" was fruitless. These two tests seem to isolate the dependent layer as being the problem as opposed to the independent layer. -Abe On Dec 28, 2004, at 4:54 PM, Abe Gillespie wrote: > Comments are inline. > > -Abe > > On Dec 27, 2004, at 7:45 PM, Steve Lime wrote: > >> Abe's right the single quote isn't a problem. The requires directive >> was >> mostly broken in 4.2 and probably 4.0. There were changes made in >> portions of the code that made requires basically useless. The problem >> was only found and fixed right before 4.4 was released. >> >> I don't see anything obvious but let's try a couple of things and see >> if >> they help. >> >> 1) You don't need ()'s nor equality tests. So >> >> REQUIRES "([Buildings] = 1)" should be REQUIRES "[Buildings]" and > > Didn't change anything - still timing out. > >> REQUIRES "([Flood Zone] = 1)" should be REQUIRES "[Flood Zone]" > > Didn't change anything - continued to work w/o problems. > >> >> 2) Try renaming "Buildings 0" to "Buildings_0". I'm thinking there may >> be an issue with some string comparisons someplace. > > Didn't change anything - still timing out. > >> >> Please try these one at a time and let me know how it goes. >> >> Steve >> >>>>> Abe Gillespie 12/27/04 4:41 PM >>> >> Uh, no, that shouldn't be a problem. If it was, the whole map file >> wouldn't parse correctly. That single quote just adds a "feet" >> designation to the elevation measurement. In fact, if I remove the >> "Buildings 0" layer completely, everything runs fine. >> >> -Abe >> >> On Dec 27, 2004, at 5:05 PM, Ethan Alpert wrote: >> >>> Look at the TEXT label for the Flood Elevation layer. >>> >>> TEXT ([ELEVATION]') >>> >>> You're missing a ' >>> >>> I've had all kinds of problems before when I miss a " or ' >>> >>> -e >>> >>> -----Original Message----- >>> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>> On >>> Behalf Of Abe Gillespie >>> Sent: Monday, December 27, 2004 3:22 PM >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES >>> >>> >>> I have two layers that look like this: >>> >>> LAYER >>> NAME "Flood Zone" >>> STATUS ON >>> DATA "flood_zo" >>> TYPE polygon >>> MAXSCALE 300000 >>> UNITS FEET >>> CLASS >>> COLOR 68 126 171 >>> OUTLINECOLOR 11 57 92 >>> END >>> GROUP "Layers" >>> END >>> >>> LAYER >>> NAME "Flood Elevation" >>> STATUS ON >>> DATA "flood_el" >>> TYPE line >>> UNITS FEET >>> MAXSCALE 20000 >>> CLASS >>> COLOR 68 155 255 >>> TEXT ([ELEVATION]') >>> LABEL >>> TYPE TRUETYPE >>> FONT arial >>> SIZE 8 >>> POSITION cc >>> COLOR 0 0 0 >>> ANGLE auto >>> MINFEATURESIZE 1 >>> END >>> END >>> REQUIRES "([Flood Zone] = 1)" >>> END >>> >>> Notice the "REQUIRES" tag. These two layers cause no problems. >>> However, >>> I also have these two layers further in the map file: >>> >>> LAYER >>> NAME "Buildings" >>> STATUS ON >>> DATA "bldg1" >>> TYPE polygon >>> MAXSCALE 15000 >>> UNITS FEET >>> LABELITEM "ADDRESS" >>> LABELCACHE on >>> LABELMAXSCALE 6000 >>> CLASS >>> COLOR 220 149 146 >>> OUTLINECOLOR 190 95 96 >>> LABEL >>> MINFEATURESIZE 12 >>> TYPE truetype >>> FONT arial >>> ANTIALIAS true >>> ANGLE auto >>> POSITION cc >>> COLOR 0 0 0 >>> OUTLINECOLOR 255 255 255 >>> BUFFER 3 >>> SIZE 8 >>> END >>> END >>> TOLERANCE 3 >>> TEMPLATE "x" >>> METADATA >>> search_field "FULLADDR" >>> search_fields "FULLADDR" >>> search_aliases "Address" >>> END >>> GROUP "Layers" >>> END >>> >>> LAYER >>> NAME "Buildings 0" >>> STATUS ON >>> DATA "bldg0" >>> TYPE polygon >>> MAXSCALE 15000 >>> UNITS FEET >>> CLASS >>> COLOR 168 168 168 >>> OUTLINECOLOR 97 97 97 >>> END >>> REQUIRES "([Buildings] = 1)" >>> END >>> >>> With the "Buildings 0" layer, if I include the "REQUIRES" tag >> MapServer >>> will timeout. If I remove the "REQUIRES" tag everything runs >> smoothly. >>> I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it was >>> Mapscript 4.0) this worked fine. So something has changed between >> then >>> and now with the "REQUIRES" algorithm. >>> >>> Any ideas? >>> >>> Thanks. >>> -Abe >>> >> > From ealpert at DIGITALGLOBE.COM Tue Dec 28 13:48:07 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Tue, 28 Dec 2004 14:48:07 -0700 Subject: Premature end of script headers: mapserv.exe Message-ID: You can try: http://www.dependencywalker.com/ To investigate the dll's and executable to see what's not being found. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Wouter Schaubroeck Sent: Tuesday, December 28, 2004 2:32 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Premature end of script headers: mapserv.exe Hi, I'm installing the new mapserver 4.4.1 (windows binaries) on a apache 2.0.52 and i'm recieving an error like this: premature end of script headers: mapserv.exe. I've tried reinstalling apache, but that didn't work. PHP isn't installed anymore. What is the problem, and how can i solve it? Oh, i'm working on win xp, and i've installed the dll's in system32 and in the cgi-bin. Thx Wouter Schaubroeck Student at the University of Ghent (Belgium) From dylan at IICI.NO-IP.ORG Tue Dec 28 15:36:08 2004 From: dylan at IICI.NO-IP.ORG (Dylan Beaudette) Date: Tue, 28 Dec 2004 15:36:08 -0800 Subject: [non-spatial]-mysql: point data source Message-ID: Greetings everyone! I have been using mapserver for quite some time with shapefiles, and am quite pleased with its flexibility. I was wondering if it would be possible to add point data records, stored in a MySQL data base, to a map that was created by shapefiles. The records in mysql would be formatted as follows: point_id, x, y, attribute_1, ... this is not in the openGIS format that the myGIS connector is using, and so I wonder if it is even possible to get a 'list' of points like this into a mapserver application. I would like to use PHPmapscript, but i have problems running PHP as a CGI as opposed to the more traditional Apache DSO (maybe this problem has been solved...) any ideas would be greatly appreciated. Dylan From kristjan at TARKVARASTUUDIO.EE Wed Dec 29 00:13:23 2004 From: kristjan at TARKVARASTUUDIO.EE (Kristjan Annus) Date: Wed, 29 Dec 2004 10:13:23 +0200 Subject: [non-spatial]-mysql: point data source In-Reply-To: <33566.67.182.60.65.1104276968.squirrel@iici.no-ip.org> Message-ID: This is how I do it with PHPMapscript (its a fragment of code from larger application that shows public transportation of a city): $layer = $map->getLayerByName('bus_stops'); $cmd = "SELECT x, y from bus_stops"; mysql_query( $cmd); $result = mysql_query($cmd); while ($myrow=mysql_fetch_array($result)) { $x = $myrow["x"]; $y = $myrow["y"]; $bus_stop = ms_newPointObj(); $bus_stop->setXY( $x, $y); $bus_stop->draw( $map, $layer, $image, 0, ''); } } But can anybody send an example of map file where MySQL spatial data is used as datasource for Mapserver layer? Is it possible at all? >Greetings everyone! > >I have been using mapserver for quite some time with shapefiles, and am >quite pleased with its flexibility. > >I was wondering if it would be possible to add point data records, stored >in a MySQL data base, to a map that was created by shapefiles. The records >in mysql would be formatted as follows: > >point_id, x, y, attribute_1, ... > >this is not in the openGIS format that the myGIS connector is using, and >so I wonder if it is even possible to get a 'list' of points like this >into a mapserver application. > >I would like to use PHPmapscript, but i have problems running PHP as a CGI >as opposed to the more traditional Apache DSO (maybe this problem has been >solved...) > >any ideas would be greatly appreciated. > >Dylan > > From rbianconi at ENVIROWARE.COM Wed Dec 29 02:04:21 2004 From: rbianconi at ENVIROWARE.COM (Roberto Bianconi) Date: Wed, 29 Dec 2004 11:04:21 +0100 Subject: [non-spatial]-mysql: point data source In-Reply-To: <33566.67.182.60.65.1104276968.squirrel@iici.no-ip.org> Message-ID: Hi, these could be some hints (i.e. won't run as it is) to create the layer with the points, using Perl. I think you can grab the ideas and implement it into Php, if it is what you need. # load mapscript and XBase modules use mapscript; use XBase; # Set the path and name to the shapefile you'll create my $basename = 'path_to_filename' # Create the new shapefile my $shapefile = new mapscript::shapefileObj("$basename", 1) or die; # Create the new DBF table my $table = XBase->create("name" => $basename, "field_names" => ["X", "Y", "ATTRIBUTE_1", "ATTRIBUTE_2"], "field_types" => ["N", "N", "C", "C"], "field_lengths" => [8, 8, 50, 2], "field_decimals" => [4, 4, 0, 0) or die; # Create a new pointObj my $point = new mapscript::pointObj(); # Assuming you connect to the MySQL database to get the data (use DBI and DBD modules to do that, # and standard SQL syntax) you loop on table records or store them into hashes or arrays, and for # each record you set $point->{x} = $x; $point->{y} = $y; $shapefile->addPoint($point); # Then you fill the DBF record ($i is the loop index) $table->set_record($i, $x, $y, $attribute_1, $attribute_2); # When you're done with the loop on your points, close the DBF $table->close(); undef $shapefile; Hope this helps. Roberto ------------------------------------------------ ENVIROWARE SRL Centro Direzionale Colleoni, Palazzo Andromeda 1 I-20041 Agrate Brianza (MI) - Italy T:++39 039 6890073 / F:++39 039 6881459 mailto:rbianconi at enviroware.com http://www.enviroware.com ------------------------------------------------ On Tue, 27 Dec 2004, Dylan Beaudette wrote: > Greetings everyone! > > I have been using mapserver for quite some time with shapefiles, and am > quite pleased with its flexibility. > > I was wondering if it would be possible to add point data records, stored > in a MySQL data base, to a map that was created by shapefiles. The records > in mysql would be formatted as follows: > > point_id, x, y, attribute_1, ... > > this is not in the openGIS format that the myGIS connector is using, and > so I wonder if it is even possible to get a 'list' of points like this > into a mapserver application. > > I would like to use PHPmapscript, but i have problems running PHP as a CGI > as opposed to the more traditional Apache DSO (maybe this problem has been > solved...) > > any ideas would be greatly appreciated. > > Dylan > From bartvde at XS4ALL.NL Wed Dec 29 01:42:21 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 29 Dec 2004 10:42:21 +0100 Subject: [non-spatial]-mysql: point data source In-Reply-To: <33566.67.182.60.65.1104276968.squirrel@iici.no-ip.org> Message-ID: Hi Dylan, just a thought, you could also use OGR Virtual Spatial Data (and then group your layers together in the MAP file). http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?VirtualSpatialData Best regards, Bart > Greetings everyone! > > I have been using mapserver for quite some time with shapefiles, and am > quite pleased with its flexibility. > > I was wondering if it would be possible to add point data records, stored > in a MySQL data base, to a map that was created by shapefiles. The records > in mysql would be formatted as follows: > > point_id, x, y, attribute_1, ... > > this is not in the openGIS format that the myGIS connector is using, and > so I wonder if it is even possible to get a 'list' of points like this > into a mapserver application. > > I would like to use PHPmapscript, but i have problems running PHP as a CGI > as opposed to the more traditional Apache DSO (maybe this problem has been > solved...) > > any ideas would be greatly appreciated. > > Dylan > From bartvde at XS4ALL.NL Wed Dec 29 03:25:53 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 29 Dec 2004 12:25:53 +0100 Subject: curl win32 compilation Message-ID: Hi list, I have just finished compiling curl on win32 in order to enable Mapserver as a WMS client, and I thought my notes might be helpful to people as this is not part of the general Win32 compilation HOWTO. What I did is use the MSVC version of curl available for download from the curl site, I did not try to compile curl myself. Here are my instructions: Added WMS client support: ------------------------- Downloaded Curl from http://curl.haxx.se/download.html Win32 - MSVC version, but it misses curlver.h, so also downloaded: curl-7.12.2.zip. And copied curlver.h to C:\projects\curl-7.12.2\include\curl\curlver.h Moved libcurl.lib to C:\projects\curl-7.12.2\lib Error encountered: Creating library mapserver_i.lib and object mapserver_i.exp maphttp.obj : error LNK2001: unresolved external symbol __imp__select at 20 libmap.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link' : return code '0x460' Stop. This was because I did not uncomment and configure the path to the following: WINSOCK_LIB = "d:\program files\Microsoft Visual Studio\VC98\Lib\WSOCK32.LIB" Copied libcurl.dll to the mapserv.exe directory, but now it is missing zlibwapi.dll. After a search I found this dll at: http://www.winimage.com/zLibDll/ and more specific: http://www.winimage.com/zLibDll/zlib122dll.zip Best regards, Bart From tenierer at GOV.NS.CA Wed Dec 29 05:38:15 2004 From: tenierer at GOV.NS.CA (Rene Teniere) Date: Wed, 29 Dec 2004 07:38:15 -0600 Subject: HTML Legend Operators Message-ID: Hi all, Does anyone know the operators besides eq and neq?? I would like to have a nested IF whereby: [if name=layer_name oper=eq value=Roads] OR [if name=layer_name oper=eq value=Crown/Federal] OR [if name=layer_name oper=eq value=Forest] Do this........ [/if] [/if] [/if] Thanks, Rene Rene J.R. Teniere - BSc., D.GIS GIS Programmer/Analyst Nova Scotia Department of Natural Resources Forestry Division (GIS) - Truro Phone: (902) 893-5655 Mobile: (902) 209-8956 From bartvde at XS4ALL.NL Wed Dec 29 05:53:14 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 29 Dec 2004 14:53:14 +0100 Subject: HTML Legend Operators In-Reply-To: Message-ID: Hi Rene, The operators are: eq|neq|isset|isnull I think default behaviour with nesting if statements is AND, i.e. I tried using the below example but nothing showed up for a layer which was named ExpressionBuilderAnnotation: [if name=layer_name oper=eq value=ExpressionBuilderAnnotation] [if name=layer_name oper=eq value=LabelAnnotation] [if name=layer_name oper=eq value=MapNotesAnnotation]

test

[/if] [/if] [/if] [/if] You can always copy the html you want to output if you want ORs, so e.g. [if name=layer_name oper=eq value=ExpressionBuilderAnnotation]

test

[/if] [if name=layer_name oper=eq value=LabelAnnotation]

test

[/if] [if name=layer_name oper=eq value=MapNotesAnnotation]

test

[/if] Hope this helps. Best regards, Bart > Hi all, > Does anyone know the operators besides eq and neq?? I would like to have a > nested IF whereby: > > [if name=layer_name oper=eq value=Roads] > OR > [if name=layer_name oper=eq value=Crown/Federal] > OR > [if name=layer_name oper=eq value=Forest] > Do this........ > [/if] > [/if] > [/if] > > Thanks, > Rene > > > Rene J.R. Teniere - BSc., D.GIS > GIS Programmer/Analyst > Nova Scotia Department of Natural Resources > Forestry Division (GIS) - Truro > > Phone: (902) 893-5655 > Mobile: (902) 209-8956 > From m.marsella at ITWORKS.IT Wed Dec 29 07:30:49 2004 From: m.marsella at ITWORKS.IT (Marco Marsella) Date: Wed, 29 Dec 2004 09:30:49 -0600 Subject: Time support with filenames only ? Message-ID: Hi, we are trying out MapServer and it looks great! However, we plan to serve a lot of time-dependent raster layers (satellite images) both through WMS and WCS. Our images are store in files where the date is part of the filename (e.g. 2004-12-23.tif or similar). My understanding is that we need either a DB or a shapefile to index the time values. Is that right ? If this is true, this would be an inconvenience because each time we get a new image (and some are received every 30 minutes) we would have to update the DB or the shapefile. What about some way to use tokens in filenames ? For instance, we could write something like: LAYER NAME "meteosat" TYPE RASTER DATA "%YY%-%MM%-%DD%.tif" FILTER "%time%" END The idea being that the time filter item is automatically parsed in its components whose values are placed in the %YY%, %MM%, %DD% (and %HH%, %MI%, %SS% if present) tokens that are then plugged into the filename template provided by DATA to obtain the final filename to get. This would be a considerable simplification would it not ? Please advise. Regards From bartvde at XS4ALL.NL Wed Dec 29 08:15:14 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 29 Dec 2004 17:15:14 +0100 Subject: curl win32 compilation In-Reply-To: <14171.212.238.227.182.1104319553.squirrel@212.238.227.182> Message-ID: Hi list, I had some problems with this compile (mapserv occassionally crashing because of an unhandled exception, internal server error) when requesting for more than one layer in the WMS client. So I tried a different approach compiling the curl-7.12.3 from source, through the following commands: C:\projects\curl-7.12.3\lib>nmake /f makefile.vc6 CFG=release C:\projects\curl-7.12.3\lib>nmake /f makefile.vc6 CFG=release-dll and changing nmake.opt of mapserv to also use libcurl_imp.lib: CURL_LIB = $(CURL_DIR)/lib/libcurl.lib $(CURL_DIR)/lib/libcurl_imp.lib But I still get the occassional crashing behaviour. Is Mapserver not "compatible" with this version of libcurl, or am I doing something wrong? Best regards, Bart > Hi list, > > I have just finished compiling curl on win32 in order to enable Mapserver > as a WMS client, and I thought my notes might be helpful to people as this > is not part of the general Win32 compilation HOWTO. > > What I did is use the MSVC version of curl available for download from the > curl site, I did not try to compile curl myself. Here are my instructions: > > Added WMS client support: > ------------------------- > Downloaded Curl from http://curl.haxx.se/download.html > > Win32 - MSVC version, but it misses curlver.h, so also downloaded: > > curl-7.12.2.zip. > > And copied curlver.h to C:\projects\curl-7.12.2\include\curl\curlver.h > > Moved libcurl.lib to C:\projects\curl-7.12.2\lib > > Error encountered: > > Creating library mapserver_i.lib and object mapserver_i.exp > maphttp.obj : error LNK2001: unresolved external symbol __imp__select at 20 > libmap.dll : fatal error LNK1120: 1 unresolved externals > NMAKE : fatal error U1077: 'link' : return code '0x460' > Stop. > > This was because I did not uncomment and configure the path to the > following: > > WINSOCK_LIB = "d:\program files\Microsoft Visual > Studio\VC98\Lib\WSOCK32.LIB" > > Copied libcurl.dll to the mapserv.exe directory, but now it is missing > zlibwapi.dll. > > After a search I found this dll at: > > http://www.winimage.com/zLibDll/ > > and more specific: > http://www.winimage.com/zLibDll/zlib122dll.zip > > Best regards, > Bart > From bartvde at XS4ALL.NL Wed Dec 29 08:31:04 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Wed, 29 Dec 2004 17:31:04 +0100 Subject: curl win32 compilation [2] In-Reply-To: <11885.212.238.227.182.1104336914.squirrel@212.238.227.182> Message-ID: Sorry for replying to my own threads :) I just compiled with curl 7.10.7 and then there is no problem. I also did not need the libcurl_imp.lib, and everything just got compiled into the libmap.dll (I do not need a libcurl.dll). But maybe someone (Daniel?) can still comment on why it does not work well with the latest curl? Best regards, Bart > Hi list, > > I had some problems with this compile (mapserv occassionally crashing > because of an unhandled exception, internal server error) when requesting > for more than one layer in the WMS client. > > So I tried a different approach compiling the curl-7.12.3 from source, > through the following commands: > > C:\projects\curl-7.12.3\lib>nmake /f makefile.vc6 CFG=release > C:\projects\curl-7.12.3\lib>nmake /f makefile.vc6 CFG=release-dll > > and changing nmake.opt of mapserv to also use libcurl_imp.lib: > > CURL_LIB = $(CURL_DIR)/lib/libcurl.lib $(CURL_DIR)/lib/libcurl_imp.lib > > But I still get the occassional crashing behaviour. > > Is Mapserver not "compatible" with this version of libcurl, or am I doing > something wrong? > > Best regards, > Bart > >> Hi list, >> >> I have just finished compiling curl on win32 in order to enable >> Mapserver >> as a WMS client, and I thought my notes might be helpful to people as >> this >> is not part of the general Win32 compilation HOWTO. >> >> What I did is use the MSVC version of curl available for download from >> the >> curl site, I did not try to compile curl myself. Here are my >> instructions: >> >> Added WMS client support: >> ------------------------- >> Downloaded Curl from http://curl.haxx.se/download.html >> >> Win32 - MSVC version, but it misses curlver.h, so also downloaded: >> >> curl-7.12.2.zip. >> >> And copied curlver.h to C:\projects\curl-7.12.2\include\curl\curlver.h >> >> Moved libcurl.lib to C:\projects\curl-7.12.2\lib >> >> Error encountered: >> >> Creating library mapserver_i.lib and object mapserver_i.exp >> maphttp.obj : error LNK2001: unresolved external symbol __imp__select at 20 >> libmap.dll : fatal error LNK1120: 1 unresolved externals >> NMAKE : fatal error U1077: 'link' : return code '0x460' >> Stop. >> >> This was because I did not uncomment and configure the path to the >> following: >> >> WINSOCK_LIB = "d:\program files\Microsoft Visual >> Studio\VC98\Lib\WSOCK32.LIB" >> >> Copied libcurl.dll to the mapserv.exe directory, but now it is missing >> zlibwapi.dll. >> >> After a search I found this dll at: >> >> http://www.winimage.com/zLibDll/ >> >> and more specific: >> http://www.winimage.com/zLibDll/zlib122dll.zip >> >> Best regards, >> Bart >> > From jdport at VERITIME.COM Wed Dec 29 08:33:11 2004 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 29 Dec 2004 11:33:11 -0500 Subject: Premature end of script headers: php Message-ID: I think I've resolved the majority of my library problems and other issues with mapserver but I'm still getting one error. When I try to run any of the example scripts (hello.phtml, usa1.phtml, etc) I get an internal server error and looking in the web server error logs shows: Premature end of script headers: php Has anybody come across this error before, or have any suggestions on what it could mean or how to resolve it? PHP definately works otherwise... Thanks for any suggestions. Regards, Jeff From eric at GOMOOS.ORG Wed Dec 29 08:34:22 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Wed, 29 Dec 2004 11:34:22 -0500 Subject: Time support with filenames only ? In-Reply-To: Message-ID: On Wed, 2004-12-29 at 10:30, Marco Marsella wrote: > Hi, > > we are trying out MapServer and it looks great! However, we plan to serve a lot of time-dependent > raster layers (satellite images) both through WMS and WCS. Our images are store in files where the > date is part of the filename (e.g. 2004-12-23.tif or similar). My understanding is that we need > either a DB or a shapefile to index the time values. Is that right ? > > If this is true, this would be an inconvenience because each time we get a new image (and some > are received every 30 minutes) we would have to update the DB or the shapefile. What about some > way to use tokens in filenames ? > > For instance, we could write something like: > > LAYER > NAME "meteosat" > TYPE RASTER > DATA "%YY%-%MM%-%DD%.tif" > FILTER "%time%" > END > > The idea being that the time filter item is automatically parsed in its components whose values are > placed in the %YY%, %MM%, %DD% (and %HH%, %MI%, %SS% if present) tokens that are then plugged > into the filename template provided by DATA to obtain the final filename to get. > > This would be a considerable simplification would it not ? When you pass additional parameters to a Mapserver based WMS or WCS service there are no "rules" on what format they can be. Any query string name=value pair will be substituted into most (not all) %name% tags found in the map file. So you can insist that your users pass: time=YY-MM-DD and in your map file use: DATA "%time%.tif" Or you could require year=YY&month=MM&day=DD and use %year%, %month%, etc. For a raster layer FILTER "%time%" would have not affect anyway. Eric From paul at WARRINER.US Wed Dec 29 09:35:36 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Wed, 29 Dec 2004 12:35:36 -0500 Subject: GeoTIFF display problem Message-ID: I am having problems displaying the following GeoTIFF file. I was able to create a shape file index from these tif files, and it displays fine, but the map file below will not display the image. Hoping for any help. Regards, Paul gdalinfo: w_10950988_12_07200_col_2002.tif Driver: GTiff/GeoTIFF Size is 3000, 2000 Coordinate System is `' Origin = (1095000.000000,990000.000000) Pixel Size = (1.00000000,-1.00000000) Corner Coordinates: Upper Left ( 1095000.000, 990000.000) Lower Left ( 1095000.000, 988000.000) Upper Right ( 1098000.000, 990000.000) Lower Right ( 1098000.000, 988000.000) Center ( 1096500.000, 989000.000) Band 1 Block=3000x2 Type=Byte, ColorInterp=Red Band 2 Block=3000x2 Type=Byte, ColorInterp=Green Band 3 Block=3000x2 Type=Byte, ColorInterp=Blue START MAP FILE---------------- NAME "OP2004_" SIZE 800 800 STATUS ON EXTENT 998800.750 888365.9375 1194305.375 1129057.375 UNITS FEET TEMPLATEPATTERN "printable.html|loader.html" SHAPEPATH "/opmap/mapsurfer/shapes" IMAGETYPE png OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGBA EXTENSION "tif" END WEB TEMPLATE "printable.html" EMPTY "/opmap/mapsurfer/info.html" # path relative to the webserver document root IMAGEPATH "/var/www/htdocs/opmap/mapsurfer/tmp/" IMAGEURL "/opmap/mapsurfer/tmp/" END LAYER NAME "w_10950988_12_07200_col_2002" DATA "shapes/geotiff/w_10950988_12_07200_col_2002.tif" STATUS ON TYPE RASTER END LAYER NAME "geotiff_index" DATA "shapes/geotiff_index.shp" STATUS ON TYPE POLYGON CLASS STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 END END END -----cut PostGIS layers From David.Fawcett at STATE.MN.US Wed Dec 29 09:41:45 2004 From: David.Fawcett at STATE.MN.US (David Fawcett) Date: Wed, 29 Dec 2004 11:41:45 -0600 Subject: GeoTIFF display problem Message-ID: Paul, Can you get one image tile to display without the index? Try putting your index shapefile and your tiles in the same directory and setting all of the paths to reflect that. David. >>> "R. Paul Warriner" 12/29/2004 11:35:36 AM >>> I am having problems displaying the following GeoTIFF file. I was able to create a shape file index from these tif files, and it displays fine, but the map file below will not display the image. Hoping for any help. Regards, Paul gdalinfo: w_10950988_12_07200_col_2002.tif Driver: GTiff/GeoTIFF Size is 3000, 2000 Coordinate System is `' Origin = (1095000.000000,990000.000000) Pixel Size = (1.00000000,-1.00000000) Corner Coordinates: Upper Left ( 1095000.000, 990000.000) Lower Left ( 1095000.000, 988000.000) Upper Right ( 1098000.000, 990000.000) Lower Right ( 1098000.000, 988000.000) Center ( 1096500.000, 989000.000) Band 1 Block=3000x2 Type=Byte, ColorInterp=Red Band 2 Block=3000x2 Type=Byte, ColorInterp=Green Band 3 Block=3000x2 Type=Byte, ColorInterp=Blue START MAP FILE---------------- NAME "OP2004_" SIZE 800 800 STATUS ON EXTENT 998800.750 888365.9375 1194305.375 1129057.375 UNITS FEET TEMPLATEPATTERN "printable.html|loader.html" SHAPEPATH "/opmap/mapsurfer/shapes" IMAGETYPE png OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGBA EXTENSION "tif" END WEB TEMPLATE "printable.html" EMPTY "/opmap/mapsurfer/info.html" # path relative to the webserver document root IMAGEPATH "/var/www/htdocs/opmap/mapsurfer/tmp/" IMAGEURL "/opmap/mapsurfer/tmp/" END LAYER NAME "w_10950988_12_07200_col_2002" DATA "shapes/geotiff/w_10950988_12_07200_col_2002.tif" STATUS ON TYPE RASTER END LAYER NAME "geotiff_index" DATA "shapes/geotiff_index.shp" STATUS ON TYPE POLYGON CLASS STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 END END END -----cut PostGIS layers From agillesp at VT.EDU Wed Dec 29 11:36:55 2004 From: agillesp at VT.EDU (Abe Gillespie) Date: Wed, 29 Dec 2004 14:36:55 -0500 Subject: Timeout with REQUIRES In-Reply-To: Message-ID: Latest and greatest on all the major players: Linux, Mac OS 10, and Windows (this bug occurs on all). Probably not the smartest setup but my dev machine is Mac, my server is Linux, and my clients use Windows. :) -Abe On Dec 28, 2004, at 4:51 PM, Steve Lime wrote: > What versions/platform are you using? > > Steve > >>>> Abe Gillespie 12/28/2004 4:06:07 PM >>> > A couple of other tests that also didn't fix anything. > > Where REQUIRES "[Flood Zone]" works for the "Flood Elevation" layer it > > won't work for the "Buildings 0" layer. I.e.: > > LAYER > NAME "Buildings 0" > STATUS ON > DATA "bldg0" > TYPE polygon > MAXSCALE 15000 > UNITS FEET > CLASS > COLOR 168 168 168 > OUTLINECOLOR 97 97 97 > END > REQUIRES "[Flood Zone]" > END > > Renaming "Buildings" to "Foo" and then using REQUIRES "[Foo]" was > fruitless. These two tests seem to isolate the dependent layer as > being the problem as opposed to the independent layer. > > -Abe > > On Dec 28, 2004, at 4:54 PM, Abe Gillespie wrote: > >> Comments are inline. >> >> -Abe >> >> On Dec 27, 2004, at 7:45 PM, Steve Lime wrote: >> >>> Abe's right the single quote isn't a problem. The requires > directive >>> was >>> mostly broken in 4.2 and probably 4.0. There were changes made in >>> portions of the code that made requires basically useless. The > problem >>> was only found and fixed right before 4.4 was released. >>> >>> I don't see anything obvious but let's try a couple of things and > see >>> if >>> they help. >>> >>> 1) You don't need ()'s nor equality tests. So >>> >>> REQUIRES "([Buildings] = 1)" should be REQUIRES "[Buildings]" and >> >> Didn't change anything - still timing out. >> >>> REQUIRES "([Flood Zone] = 1)" should be REQUIRES "[Flood Zone]" >> >> Didn't change anything - continued to work w/o problems. >> >>> >>> 2) Try renaming "Buildings 0" to "Buildings_0". I'm thinking there > may >>> be an issue with some string comparisons someplace. >> >> Didn't change anything - still timing out. >> >>> >>> Please try these one at a time and let me know how it goes. >>> >>> Steve >>> >>>>>> Abe Gillespie 12/27/04 4:41 PM >>> >>> Uh, no, that shouldn't be a problem. If it was, the whole map file >>> wouldn't parse correctly. That single quote just adds a "feet" >>> designation to the elevation measurement. In fact, if I remove the >>> "Buildings 0" layer completely, everything runs fine. >>> >>> -Abe >>> >>> On Dec 27, 2004, at 5:05 PM, Ethan Alpert wrote: >>> >>>> Look at the TEXT label for the Flood Elevation layer. >>>> >>>> TEXT ([ELEVATION]') >>>> >>>> You're missing a ' >>>> >>>> I've had all kinds of problems before when I miss a " or ' >>>> >>>> -e >>>> >>>> -----Original Message----- >>>> From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] >>>> On >>>> Behalf Of Abe Gillespie >>>> Sent: Monday, December 27, 2004 3:22 PM >>>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: [UMN_MAPSERVER-USERS] Timeout with REQUIRES >>>> >>>> >>>> I have two layers that look like this: >>>> >>>> LAYER >>>> NAME "Flood Zone" >>>> STATUS ON >>>> DATA "flood_zo" >>>> TYPE polygon >>>> MAXSCALE 300000 >>>> UNITS FEET >>>> CLASS >>>> COLOR 68 126 171 >>>> OUTLINECOLOR 11 57 92 >>>> END >>>> GROUP "Layers" >>>> END >>>> >>>> LAYER >>>> NAME "Flood Elevation" >>>> STATUS ON >>>> DATA "flood_el" >>>> TYPE line >>>> UNITS FEET >>>> MAXSCALE 20000 >>>> CLASS >>>> COLOR 68 155 255 >>>> TEXT ([ELEVATION]') >>>> LABEL >>>> TYPE TRUETYPE >>>> FONT arial >>>> SIZE 8 >>>> POSITION cc >>>> COLOR 0 0 0 >>>> ANGLE auto >>>> MINFEATURESIZE 1 >>>> END >>>> END >>>> REQUIRES "([Flood Zone] = 1)" >>>> END >>>> >>>> Notice the "REQUIRES" tag. These two layers cause no problems. >>>> However, >>>> I also have these two layers further in the map file: >>>> >>>> LAYER >>>> NAME "Buildings" >>>> STATUS ON >>>> DATA "bldg1" >>>> TYPE polygon >>>> MAXSCALE 15000 >>>> UNITS FEET >>>> LABELITEM "ADDRESS" >>>> LABELCACHE on >>>> LABELMAXSCALE 6000 >>>> CLASS >>>> COLOR 220 149 146 >>>> OUTLINECOLOR 190 95 96 >>>> LABEL >>>> MINFEATURESIZE 12 >>>> TYPE truetype >>>> FONT arial >>>> ANTIALIAS true >>>> ANGLE auto >>>> POSITION cc >>>> COLOR 0 0 0 >>>> OUTLINECOLOR 255 255 255 >>>> BUFFER 3 >>>> SIZE 8 >>>> END >>>> END >>>> TOLERANCE 3 >>>> TEMPLATE "x" >>>> METADATA >>>> search_field "FULLADDR" >>>> search_fields "FULLADDR" >>>> search_aliases "Address" >>>> END >>>> GROUP "Layers" >>>> END >>>> >>>> LAYER >>>> NAME "Buildings 0" >>>> STATUS ON >>>> DATA "bldg0" >>>> TYPE polygon >>>> MAXSCALE 15000 >>>> UNITS FEET >>>> CLASS >>>> COLOR 168 168 168 >>>> OUTLINECOLOR 97 97 97 >>>> END >>>> REQUIRES "([Buildings] = 1)" >>>> END >>>> >>>> With the "Buildings 0" layer, if I include the "REQUIRES" tag >>> MapServer >>>> will timeout. If I remove the "REQUIRES" tag everything runs >>> smoothly. >>>> I'm using PHP Mapscript 4.4.1. Before I upgraded (I think it > was >>>> Mapscript 4.0) this worked fine. So something has changed between >>> then >>>> and now with the "REQUIRES" algorithm. >>>> >>>> Any ideas? >>>> >>>> Thanks. >>>> -Abe >>>> >>> >> > From paul.oduro at SPPS.ORG Wed Dec 29 11:45:12 2004 From: paul.oduro at SPPS.ORG (Paul Smith) Date: Wed, 29 Dec 2004 13:45:12 -0600 Subject: labeling streetlines Message-ID: Hello All I have an application that utilizes public domain tiger streetlines. When I add labels, there are multiple labels for street segments. How can I have the redundant labels removed sort of like I have merged by street names. Paul From bob.basques at CI.STPAUL.MN.US Wed Dec 29 12:01:59 2004 From: bob.basques at CI.STPAUL.MN.US (Bob Basques) Date: Wed, 29 Dec 2004 14:01:59 -0600 Subject: labeling streetlines In-Reply-To: Message-ID: Paul Smith wrote: >Hello All > >I have an application that utilizes public domain tiger streetlines. When I >add labels, there are multiple labels for street segments. How can I have >the redundant labels removed sort of like I have merged by street names. > >Paul > > > This should get you close (pay particular attention to the MINDISTANCE and MINFEATURESIZE values in the LAYER definition), you'll need to experiment with the settings to use : LAYER NAME 'names' DATA '../../data/tlg01/tlg_roads_l' STATUS DEFAULT TYPE ANNOTATION LABELITEM 'STREETALL' CLASS LABEL ANGLE AUTO TYPE TRUETYPE FONT bluehigh ANTIALIAS FALSE COLOR 255 255 0 OUTLINECOLOR 0 0 0 SIZE 14 POSITION CC MINDISTANCE 300 MINFEATURESIZE 20 PARTIALS FALSE ##WRAP ' ' END END MINSCALE 501 ## 4 feet per pixel MAXSCALE 16000 ## 32 feet per pixel END From siki at AGT.BME.HU Wed Dec 29 14:38:11 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 29 Dec 2004 21:38:11 -0100 Subject: Premature end of script headers: php {Scanned} {Scanned} In-Reply-To: <005001c4edc4$16267ad0$5ff2fbd0@solo> Message-ID: Hi, On Wed, 29 Dec 2004, Jeff Portwine wrote: > I think I've resolved the majority of my library problems and other issues > with mapserver but I'm still getting one error. When I try to run any of > the example scripts (hello.phtml, usa1.phtml, etc) I get an internal server > error and looking in the web server error logs shows: > > Premature end of script headers: php > > Has anybody come across this error before, or have any suggestions on what > it could mean or how to resolve it? PHP definately works otherwise... > > Thanks for any suggestions. > Some suggestions: 1st Does the map file work? Test it with shp2img shp2img -m your_map_file -o image_file or through the web server with the url your_host/cgi-bin/mapserv?mode=map&map=your_map_file 2nd did you register .phtml extension in the apache config file? Bye Zoltan From siki at AGT.BME.HU Wed Dec 29 14:52:31 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Wed, 29 Dec 2004 21:52:31 -0100 Subject: GeoTIFF display problem {Scanned} In-Reply-To: <200412291735.CFS27450@ms9.netsolmail.com> Message-ID: Hi, Your layer definition is not correct, you have to use TILEINDEX and TILEITEM. Try this LAYER NAME "geotiff_index" TILEINDEX "shapes/geotiff_index" TILEITEM "Location" STATUS DEFAULT TYPE RASTER END Bye Zoltan From jdport at VERITIME.COM Wed Dec 29 13:08:49 2004 From: jdport at VERITIME.COM (Jeff Portwine) Date: Wed, 29 Dec 2004 16:08:49 -0500 Subject: Premature end of script headers: php {Scanned} {Scanned} Message-ID: > 1st Does the map file work? Test it with shp2img > shp2img -m your_map_file -o image_file > or through the web server with the url > your_host/cgi-bin/mapserv?mode=map&map=your_map_file When I try running shp2img I just get a segmentation fault When I try using the web server I get: "ned.: Unable to access file. g()" Strangely enough though, with all of the example files I was able to get them working if I ran PHP as a module in apache instead of running it in CGI mode. I know I read that you must run PHP in CGI mode for this to work, but yet the examples work if I run them with PHP running as a module and I get that strange "premature end of script headers: php" error if I try to run PHP in CGI. > 2nd did you register .phtml extension in the apache config file? Yes I did, my web server runs most php applications as an apache module, but I configured my server to run files with the .phtml extension in CGI mode just for map server. Thanks, Jeff From cdaily at GMAIL.COM Wed Dec 29 13:26:47 2004 From: cdaily at GMAIL.COM (Camden Daily) Date: Wed, 29 Dec 2004 15:26:47 -0600 Subject: Dynamic point layer via mapscript Message-ID: Hello all. I'm trying to do something which seems like it should be simple, but for some reason it isn't working for me. I have a .map file, and I'm trying to add a set of points to the map using mapscript. My code doesn't make mapserver crash or anything, but the points don't show up on my rendered map. The code I use to try to add a symbol for a specific point is: $layer = ms_newLayerObj($map); $layer->set("name", "points"); $layer->set("type", MS_LAYER_POINT); $layer->set("status", MS_ON); $class = ms_newClassObj($layer); $class->set("status", MS_ON); $class->label->set("font", "arial"); $class->label->color->setRGB(255, 0, 0); $style = ms_newStyleObj($class); $symbol = $map->getSymbolByName("square"); $style->set("symbol", $symbol); $style->set("size", 8); $style->color->setRGB(255, 0, 0); $image = $map->prepareImage(); $point = ms_newPointObj(); $point->setXY($longitude, $latitude); $point->draw($map, $layer, $image, 0, "test"); $layer->draw($image); $image = $map->draw(); $image_url = $image->saveWebImage('MS_JPG', 1, 1, 0); My map file is projected as latlong, and my $latitude and $longitude values are in dd, the same as the map file extent. If anyone has any help on why my code might be failing, or could point me to a working example, that'd be great. I've scoured the archives and google, but nothing I've seen seems to work for me. -Camden From ealpert at DIGITALGLOBE.COM Wed Dec 29 13:30:34 2004 From: ealpert at DIGITALGLOBE.COM (Ethan Alpert) Date: Wed, 29 Dec 2004 14:30:34 -0700 Subject: Dynamic point layer via mapscript Message-ID: I usually call $layer->close() before I draw. -e -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at lists.umn.edu] On Behalf Of Camden Daily Sent: Wednesday, December 29, 2004 2:27 PM To: MAPSERVER-USERS at lists.umn.edu Subject: [UMN_MAPSERVER-USERS] Dynamic point layer via mapscript Hello all. I'm trying to do something which seems like it should be simple, but for some reason it isn't working for me. I have a .map file, and I'm trying to add a set of points to the map using mapscript. My code doesn't make mapserver crash or anything, but the points don't show up on my rendered map. The code I use to try to add a symbol for a specific point is: $layer = ms_newLayerObj($map); $layer->set("name", "points"); $layer->set("type", MS_LAYER_POINT); $layer->set("status", MS_ON); $class = ms_newClassObj($layer); $class->set("status", MS_ON); $class->label->set("font", "arial"); $class->label->color->setRGB(255, 0, 0); $style = ms_newStyleObj($class); $symbol = $map->getSymbolByName("square"); $style->set("symbol", $symbol); $style->set("size", 8); $style->color->setRGB(255, 0, 0); $image = $map->prepareImage(); $point = ms_newPointObj(); $point->setXY($longitude, $latitude); $point->draw($map, $layer, $image, 0, "test"); $layer->draw($image); $image = $map->draw(); $image_url = $image->saveWebImage('MS_JPG', 1, 1, 0); My map file is projected as latlong, and my $latitude and $longitude values are in dd, the same as the map file extent. If anyone has any help on why my code might be failing, or could point me to a working example, that'd be great. I've scoured the archives and google, but nothing I've seen seems to work for me. -Camden From wouter.schaubroeck at GMAIL.COM Wed Dec 29 14:48:39 2004 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Wed, 29 Dec 2004 23:48:39 +0100 Subject: Displaying classes in a layer Message-ID: Hi all, I'm just learning how to work with mapserver. I do this by following the tutorial on http://terrasip.gis.umn.edu/projects/tutorial/. But i'm stuck at example 1.3. My mapserver is configured correctly (I think, because the two first are displayed correctly), and the mapfile is also ok. But it doesn't work!!! What do I wrong? This is the mapfile: MAP IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states_poly DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASSITEM "CLASS" CLASS EXPRESSION 'land' COLOR 232 232 232 END CLASS EXPRESSION 'water' COLOR 198 198 255 END END # States polygon layer ends here LAYER # States line layer begins here NAME states_line DATA states_ugl STATUS DEFAULT TYPE LINE PROJECTION "init=epsg:4269" END CLASSITEM "CLASS" CLASS EXPRESSION 'land' COLOR 32 32 32 END END # States line layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file Thx in advance!!! Wouter Schaubroeck From miroslav.sulc at STARTNET.CZ Wed Dec 29 23:58:23 2004 From: miroslav.sulc at STARTNET.CZ (=?windows-1250?Q?Miroslav_=8Aulc?=) Date: Thu, 30 Dec 2004 08:58:23 +0100 Subject: labeling streetlines In-Reply-To: Message-ID: If I remember well, I my case helped to set FORCE FALSE PARTIALS TRUE Here is my layer definition that works for me: LAYER NAME "uu" STATUS DEFAULT DATA "uu.shp" TYPE LINE MAXSCALE 2000 LABELCACHE ON LABELMAXSCALE 2000 CLASS NAME "streets" TEXT ([NUVP]) LABEL ANTIALIAS TRUE TYPE TRUETYPE FONT arialbd ANGLE AUTO SIZE 10 COLOR 100 100 100 FORCE FALSE PARTIALS TRUE END END END Miroslav ulc Paul Smith wrote: >Hello All > >I have an application that utilizes public domain tiger streetlines. When I >add labels, there are multiple labels for street segments. How can I have >the redundant labels removed sort of like I have merged by street names. > >Paul > > -------------- next part -------------- A non-text attachment was scrubbed... Name: miroslav.sulc.vcf Type: text/x-vcard Size: 387 bytes Desc: not available URL: From James.Shanton2 at NSCORP.COM Thu Dec 30 04:17:09 2004 From: James.Shanton2 at NSCORP.COM (Shanton, James A) Date: Thu, 30 Dec 2004 07:17:09 -0500 Subject: Dynamic where clause in OGR/ OVF file Message-ID: Is it Possible to put asp or other dynamic content in an OGR file ? (Specifically the where clause of the SQL statement ) In my Sample below I'd like to replace the '%myuid' in the SQL with the users id -- something like <%session("myuid")%> ODBC:dbuid/mypwd at mydsn mynotes select icon_id,gis_note,latitude as y,longitude as x,insert_id from gis_object where insert_id like '%myuid' wkbPoint WGS84 From eric at GOMOOS.ORG Thu Dec 30 06:19:18 2004 From: eric at GOMOOS.ORG (Eric Bridger) Date: Thu, 30 Dec 2004 09:19:18 -0500 Subject: Dynamic point layer via mapscript In-Reply-To: <16264e07041229132667e56422@mail.gmail.com> Message-ID: On Wed, 2004-12-29 at 16:26, Camden Daily wrote: > Hello all. I'm trying to do something which seems like it should be > simple, but for some reason it isn't working for me. > > I have a .map file, and I'm trying to add a set of points to the map > using mapscript. My code doesn't make mapserver crash or anything, > but the points don't show up on my rendered map. > > The code I use to try to add a symbol for a specific point is: > > $layer = ms_newLayerObj($map); > $layer->set("name", "points"); > $layer->set("type", MS_LAYER_POINT); > $layer->set("status", MS_ON); > > $class = ms_newClassObj($layer); > $class->set("status", MS_ON); > > $class->label->set("font", "arial"); > $class->label->color->setRGB(255, 0, 0); > > $style = ms_newStyleObj($class); > $symbol = $map->getSymbolByName("square"); > $style->set("symbol", $symbol); > $style->set("size", 8); > $style->color->setRGB(255, 0, 0); > > $image = $map->prepareImage(); > > $point = ms_newPointObj(); > $point->setXY($longitude, $latitude); > $point->draw($map, $layer, $image, 0, "test"); > $layer->draw($image); > > $image = $map->draw(); > $image_url = $image->saveWebImage('MS_JPG', 1, 1, 0); > I think when you call $image = $map->draw(); you are probably overwriting the previous $image = $map->prepareImage(). Try skipping that. You should also try skipping $layer->draw(). You've already drawn this layer using $point->draw(), no need to call layer->draw(). HTH. Eric From Micheal.Arnold at NSCORP.COM Thu Dec 30 06:32:02 2004 From: Micheal.Arnold at NSCORP.COM (Arnold, Micheal B.) Date: Thu, 30 Dec 2004 09:32:02 -0500 Subject: image swapping and extent calculation Message-ID: All, When using image swapping in my map, I am having some trouble calculating the extents of the new image that was created. I know that I must keep track of it on the client side since I am not refreshing the whole page, but I can't get it to work. I have tried using the below formula based on what I saw in both the mapserver source code and mapserv.js: function AdjustExtent(extent, width, height) { var cellsize = Math.max((extent[2] - extent[0])/width, (extent[3] - extent[1])/height); if(cellsize > 0) { var ox = Math.max((width - (extent[2] - extent[0])/cellsize)/2,0); var oy = Math.max((height - (extent[3] - extent[1])/cellsize)/2,0); extent[0] = extent[0] - ox*cellsize; extent[1] = extent[1] - oy*cellsize; extent[2] = extent[2] + ox*cellsize; extent[3] = extent[3] + oy*cellsize; } return(cellsize); } Here is the projection of my map file: PROJECTION "proj=longlat" "ellps=WGS84" END After the above function, I am converting to decimal degrees using these functions: function DetX(x) { var mapwidth = omaxx - ominx; var mappixel = mapwidth / 600; GIS_X = ominx + (x * mappixel); return GIS_X; } function DetY(y) { var mapheight = omaxy-ominy; var mappixel = mapheight / 500; GIS_Y = omaxy - (y * mappixel); return GIS_Y; } This does not seem to be working for me. Is there any call that I can make to the mapserver CGI to get the extents of the map? Thanks for your help. Mike Arnold micheal.arnold at nscorp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From arnulf.christl at CCGIS.DE Thu Dec 30 06:40:40 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Thu, 30 Dec 2004 15:40:40 +0100 Subject: Open Source Geospatial '05 Message-ID: Hey, for those of you who missed it or might still wonder whether it will be of any value to visit the Open Source Geospatial '05. The '04 event "Open Source GIS Conference/MapServer User Meeting" is titled "One of the hottest conferences" of '04 with prominent coverage in the latest GIS Monitor: http://www.gismonitor.com/news/newsletter/archive/122304.php I suspect that this years event will draw even more attention (& no hallowed walls as yet :-). So please keep spreading the word as you are by far the most immportant information outlet. Best regards, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.org http://www.mapbender.org ------------------------ From Max.Boecke at INIT.DE Thu Dec 30 07:01:38 2004 From: Max.Boecke at INIT.DE (=?iso-8859-1?Q?B=F6cke=2C_Max_=28init=29?=) Date: Thu, 30 Dec 2004 16:01:38 +0100 Subject: legend error Message-ID: Hello users, i've got a problem with the mapserver legend. It is not shown in the map_template. The entry in the Template-File: entry in Map-File: LEGEND KEYSIZE 12 12 STATUS ON LABEL TYPE BITMAP SIZE MEDIUM COLOR 0 0 89 END END The generated picture should be filed in the temp-dictionary, but there is nothing. On Apache it is working great but on my IIS not. Where is the problem. Is there anyone, who has the same problem. Best regards Max B?cke -------------- next part -------------- An HTML attachment was scrubbed... URL: From wouter.schaubroeck at GMAIL.COM Thu Dec 30 07:06:39 2004 From: wouter.schaubroeck at GMAIL.COM (Wouter Schaubroeck) Date: Thu, 30 Dec 2004 16:06:39 +0100 Subject: Displaying classes in a layer Message-ID: Hi all, I'm just learning how to work with mapserver. I do this by following the tutorial on http://terrasip.gis.umn.edu/projects/tutorial/. But i'm stuck at example 1.3. My mapserver is configured correctly (I think, because the two first are displayed correctly), and the mapfile is also ok. But it doesn't work!!! What do I wrong? This is the mapfile: MAP IMAGETYPE PNG EXTENT 201621.496941 -294488.285333 1425518.020722 498254.511514 SIZE 400 300 SHAPEPATH "data" IMAGECOLOR 255 255 255 PROJECTION "proj=laea" "ellps=clrk66" "lat_0=45" "lon_0=-100" # # Alternatively, you can specify an EPSG code. # "init=epsg:2163" # END # Start of LAYER DEFINITIONS --------------------------------------------- LAYER # States polygon layer begins here NAME states_poly DATA states_ugl STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4269" END CLASSITEM "CLASS" CLASS EXPRESSION 'land' COLOR 232 232 232 END CLASS EXPRESSION 'water' COLOR 198 198 255 END END # States polygon layer ends here LAYER # States line layer begins here NAME states_line DATA states_ugl STATUS DEFAULT TYPE LINE PROJECTION "init=epsg:4269" END CLASSITEM "CLASS" CLASS EXPRESSION 'land' COLOR 32 32 32 END END # States line layer ends here # End of LAYER DEFINITIONS ------------------------------- END # end of map file Thx in advance!!! Wouter Schaubroeck From w.blanken at GEON.NL Thu Dec 30 07:30:13 2004 From: w.blanken at GEON.NL (Wim Blanken) Date: Thu, 30 Dec 2004 16:30:13 +0100 Subject: Make problem mapserver 4.2.5 Message-ID: Hello List, Maybe a stupid question but do i really need g++ to compile mapserver? If not how can i fix the following make error on a system with only the gcc compiler installed I used no options during ./configure. -------- KNIP ----------------- gcc -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_G D_GIF -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -I/usr/local/incl ude mapsde.c -o mapsde.o g++ -c -O2 -Wall -DIGNORE_MISSING_DATA -DNEED_STRLCAT -DUSE_EPPL -DUSE_G D_GIF -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_GDIMAGEGIFPTR -I/usr/local/incl ude mapogr.cpp -o mapogr.o make: g++: Command not found make: *** [mapogr.o] Error 127 ---------KNIP --------------------- Regards and happy mapsurfing!! Wim Blanken The Netherlands -------------- next part -------------- An HTML attachment was scrubbed... URL: From vinicio.balducci at IRPI.CNR.IT Thu Dec 30 07:18:55 2004 From: vinicio.balducci at IRPI.CNR.IT (Vinicio Balducci) Date: Thu, 30 Dec 2004 16:18:55 +0100 Subject: Printing a map Message-ID: I have installed Mapserver 4.4.0 on Fedora Core3. I would like to add a print function (a print tool) to print only the map (without legend, or reference map etc.) 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 cdaily at GMAIL.COM Thu Dec 30 07:33:22 2004 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 30 Dec 2004 09:33:22 -0600 Subject: Dynamic point layer via mapscript In-Reply-To: <1104416364.1874.5.camel@ubet.gomoos.org> Message-ID: Thanks for the replies! It's working now. I think the issue was with when I was calling $image->draw. It should be called before $point->draw so that the point appears over the rest of the map (I believe). My revised and working code is as follows: $layer = ms_newLayerObj($map); $layer->set("name", "points"); $layer->set("type", MS_LAYER_POINT); $layer->set("status", MS_DEFAULT); $class = ms_newClassObj($layer); $class->label->set("font", "arial"); $class->label->color->setRGB(255, 0, 0); $style = ms_newStyleObj($class); $symbol = $map->getSymbolByName("square"); $style->set("symbol", $symbol); $style->set("size", 8); $style->color->setRGB(255, 0, 0); $image = $map->draw(); $point = ms_newPointObj(); $point->setXY($longitude, $latitude); $point->draw($map, $layer, $image, 0, "test"); $image_url = $image->saveWebImage('MS_JPG', 1, 1, 0); From fwarmerdam at GMAIL.COM Thu Dec 30 07:35:01 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 30 Dec 2004 10:35:01 -0500 Subject: Make problem mapserver 4.2.5 In-Reply-To: <000c01c4ee84$772d7ca0$6401a8c0@blanken> Message-ID: On Thu, 30 Dec 2004 16:30:13 +0100, Wim Blanken wrote: > > Hello List, > > Maybe a stupid question but do i really need g++ to compile mapserver? > If not how can i fix the following make error on a system with only the gcc > compiler installed > I used no options during ./configure. Wim, The mapogr.cpp module really is C++ and requires a c++ compiler. However, you can invoke gcc on it, and if it is C++ enabled it will compile the module properly. The problem may arise later at link time. Linking using gcc instead of g++ (or c++ as it is sometimes available) will result in the executable not linking in C++ support libraries that are likely required by mapogr.cpp. To make this work you may need to find the name of the C++ support libraries and explicitly include them in the link. They are usually something like libstdc++.so so having -lstdc++ in the link line may be sufficient. To later these settings just edit the Makefile and alter all occurances of g++ to gcc and add -lstdc++ in the EXE_LDFLAGS variable. Note that it is rather unusual in my experience to have gcc installed without g++. This may indicate that your GCC was built without C++ support in which case you will not be able to include the OGR support in MapServer. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From woodbri at SWOODBRIDGE.COM Thu Dec 30 07:35:12 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 30 Dec 2004 10:35:12 -0500 Subject: Printing a map In-Reply-To: <41D41C5F.50306@irpi.cnr.it> Message-ID: One way to do that would be to have a "Print" link that renders an html page with nothing but the map image on it. The details of how to do that would be dependent on how you are rendering you map page to start with. For example, are you using CGI and templates, mapscript, etc. -Steve Vinicio Balducci wrote: > I have installed Mapserver 4.4.0 on Fedora Core3. > I would like to add a print function (a print tool) to print only the > map (without legend, or reference map etc.) > 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 w.blanken at GEON.NL Thu Dec 30 07:48:56 2004 From: w.blanken at GEON.NL (Wim Blanken) Date: Thu, 30 Dec 2004 16:48:56 +0100 Subject: Make problem mapserver 4.2.5 Message-ID: Hello Frank, Thanx for your clear answer. This list is really one the strengths of mapserver!! I will ask my provider to install g++. Do you think that my problem will be solved if g++ is installed? Regards, Wim ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Thursday, December 30, 2004 4:35 PM Subject: Re: [UMN_MAPSERVER-USERS] Make problem mapserver 4.2.5 > On Thu, 30 Dec 2004 16:30:13 +0100, Wim Blanken wrote: >> >> Hello List, >> >> Maybe a stupid question but do i really need g++ to compile mapserver? >> If not how can i fix the following make error on a system with only the >> gcc >> compiler installed >> I used no options during ./configure. > > Wim, > > The mapogr.cpp module really is C++ and requires a c++ > compiler. However, you can invoke gcc on it, and if it is > C++ enabled it will compile the module properly. The problem > may arise later at link time. Linking using gcc instead of g++ > (or c++ as it is sometimes available) will result in the executable > not linking in C++ support libraries that are likely required by > mapogr.cpp. To make this work you may need to find the name > of the C++ support libraries and explicitly include them in the link. > They are usually something like libstdc++.so so having -lstdc++ in > the link line may be sufficient. > > To later these settings just edit the Makefile and alter all > occurances of g++ to gcc and add -lstdc++ in the EXE_LDFLAGS > variable. > > Note that it is rather unusual in my experience to have gcc > installed without g++. This may indicate that your GCC was > built without C++ support in which case you will not be able to > include the OGR support in MapServer. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > From arnulf.christl at CCGIS.DE Thu Dec 30 09:22:13 2004 From: arnulf.christl at CCGIS.DE (Arnulf Christl) Date: Thu, 30 Dec 2004 18:22:13 +0100 Subject: Projection trouble In-Reply-To: Message-ID: Hi, we experience a strange offset when overlaying the same data as WMS maps with MapServer versions 4.0.1 and 4.4.1. *4.0.1 server* Windows 2000: SP4 IIS: 5 proj: came with 4.0.1 gd: came with 4.0.1 gdal: came with 4.0.1 Cap URL: http://wms.ccgis.de/umn/bin/mapserv.exe?map=d:/umn/germany.map&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.0 Data: local shape files in EPSG:4326 projected to EPSG:31467 *4.4.1 server* FreeBSD: 4.10 Apache: 1.3.33 proj: 4.4.9 gd: 2.0.33 gdal: 1.2.1 Cap URL: http://wms1.ccgis.de/cgi-bin/mapserv?map=/data/umn/germany_demo/germany_demo.map&VERSION=1.1.1&REQUEST=GetCapabilities&SERVICE=WMS Data: the same shape files as above (WGS84) but dumped to PostgreSQL/PostGIS (and also projected to EPSG:31467). The problem does not seem to result from MapServer but from proj? You can have a look at the problem here: http://www.mapbender.org/demoserver.html Zoom in to a scale of 1:100,000 or less to see the post code areas. They overlap with an x-offset (north): in northern Germany 190m in central Germany 145m in southern Germany 100m The y-offset (east) is: in western Germany 45m in eastern Germany 125m That resembles a lot to a datum shift which we stumbled accross (years ago) when reading GPS EPSG:4326 WGS84 data directly into the database and overlaying it with Gauss-Kruger EPSG:31467 (Bessel projection). What has been changed and what impact does it have on projects which overlay other data? Best regards, Arnulf. -- ------------------------ Arnulf B. Christl ------------------------ http://www.ccgis.de http://www.mapbender.org ------------------------ From fwarmerdam at GMAIL.COM Thu Dec 30 09:31:10 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 30 Dec 2004 12:31:10 -0500 Subject: Dynamic where clause in OGR/ OVF file In-Reply-To: Message-ID: On Thu, 30 Dec 2004 07:17:09 -0500, Shanton, James A wrote: > Is it Possible to put asp or other dynamic content in an OGR file ? > > (Specifically the where clause of the SQL statement ) > > In my Sample below I'd like to replace the '%myuid' in the SQL with the > users id -- something like <%session("myuid")%> > > > > ODBC:dbuid/mypwd at mydsn > mynotes > select icon_id,gis_note,latitude as y,longitude as > x,insert_id from gis_object where insert_id like '%myuid' > wkbPoint > WGS84 > > > James, If you have the OGR VRT datasource definition in it's own file, then there is no practical way to have substitutions occur. However, if you have it "in line" in the CONNECTION value of the layer in your .map file you could in theory use normal MapServer variable substitution to replace key values. Note that this can be tricky due to the multiple levels of escaping that apply (the SQL style escaping in the where clause itself, the XML escaping for the VRT fragment, and the .map file escaping required in string constants. I don't know exactly how .map file substitutation works unfortunately, so you will need to look that up in the reference documents ... or perhaps someone else will explain it. However, my advise would be to consider moving to MapScript before letting stuff get to complex in a static .map file approach. With MapScript you can apply arbitrary logic to form the OGR connection string (aka VRT data) without being restricted to simple substiution. 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 blaine_hack1 at YAHOO.COM Thu Dec 30 09:52:18 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Thu, 30 Dec 2004 09:52:18 -0800 Subject: Reverse Geocoding Message-ID: All Does anyone have any suggestions how one might reverse geocode an xy coordinate using MapServer? Thanks in advance. Blaine __________________________________ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail From blaine_hack1 at YAHOO.COM Thu Dec 30 10:10:15 2004 From: blaine_hack1 at YAHOO.COM (Blaine Hackett) Date: Thu, 30 Dec 2004 10:10:15 -0800 Subject: Dynamic where clause in OGR/ OVF file In-Reply-To: <931f8ea9041230093169ff5a5e@mail.gmail.com> Message-ID: James You do have to put the OGR Connection in the .map file. You can't dynamically change it if you use an .ovf file. Here is how I do it. LAYER NAME "layername" TYPE annotation CONNECTIONTYPE OGR CONNECTION " ODBC:user/pass at nameofODBCyoucreated SELECT * FROM subset WHERE tim_time BETWEEN (#%time1%#) AND (#%time2%#) wkbPoint WGS84 " (REST OF LAYER SYNTAX DELETED) Then I send default values from the initialize page for the variables or it will cack on you. I have an input form on the MapServer webpage which sends the typed in variables to the OGR connection, sending back the data that meets the criteria. I had some problems with syntaxthe variables when trying to query a date or time field because depending on the database you are using, they might use different syntax. Hope this helps! Blaine --- Frank Warmerdam wrote: > On Thu, 30 Dec 2004 07:17:09 -0500, Shanton, James A > wrote: > > Is it Possible to put asp or other dynamic content > in an OGR file ? > > > > (Specifically the where clause of the SQL > statement ) > > > > In my Sample below I'd like to replace the > '%myuid' in the SQL with the > > users id -- something like <%session("myuid")%> > > > > > > > > > ODBC:dbuid/mypwd at mydsn > > mynotes > > select icon_id,gis_note,latitude as > y,longitude as > > x,insert_id from gis_object where insert_id like > '%myuid' > > wkbPoint > > WGS84 > > x="x" y="y"/> > > > > > > James, > > If you have the OGR VRT datasource definition in > it's own file, > then there is no practical way to have substitutions > occur. > However, if you have it "in line" in the CONNECTION > value of the layer in your .map file you could in > theory use normal > MapServer variable substitution to replace key > values. Note > that this can be tricky due to the multiple levels > of escaping that > apply (the SQL style escaping in the where clause > itself, the > XML escaping for the VRT fragment, and the .map file > escaping required in string constants. > > I don't know exactly how .map file substitutation > works unfortunately, > so you will need to look that up in the reference > documents ... or > perhaps someone else will explain it. > > However, my advise would be to consider moving to > MapScript > before letting stuff get to complex in a static .map > file approach. > With MapScript you can apply arbitrary logic to form > the > OGR connection string (aka VRT data) without being > restricted > to simple substiution. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank > Warmerdam, warmerdam at pobox.com > light and sound - activate the windows | > http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial > Programmer for Rent > __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com From paul at WARRINER.US Thu Dec 30 10:26:41 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Thu, 30 Dec 2004 13:26:41 -0500 Subject: GeoTIFF display problem Message-ID: Thank you David and Siki for the replies. I did as suggested, and I can get my index and image if defined individually, but when tying to access with TILEINDEX/TILEITEM it fails.!? (I am working with mapserver 4.4.0 and gdal 1.2.3) #works LAYER NAME "geoindex" DATA "mapsurfer/shapes/geotiff/geoindex.shp" STATUS ON TYPE POLYGON CLASS STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 END END END #works LAYER NAME "w_10950988_12_07200_col_2002" DATA "mapsurfer/shapes/geotiff/w_10950988_12_07200_col_2002.tif" TYPE RASTER # MINSCALE 700 # MAXSCALE 3000 STATUS ON END #seg fault #11 LAYER NAME "w_10950988_12_07200_col_2002" TILEINDEX "mapsurfer/shapes/geotiff/geoindex" TILEITEM "Location" STATUS ON TYPE RASTER MINSCALE 700 MAXSCALE 3000 END From cdaily at GMAIL.COM Thu Dec 30 12:53:08 2004 From: cdaily at GMAIL.COM (Camden Daily) Date: Thu, 30 Dec 2004 14:53:08 -0600 Subject: Reverse Geocoding In-Reply-To: <20041230175218.47814.qmail@web41105.mail.yahoo.com> Message-ID: To the best of my knowledge, mapserver doesn't do any geocoding at all. The only package I've been able to find that can do it is the Geo::Coder::US perl module from CPAN. The module has an import() function that can be used to generate a database for geocoding from TIGER/Line data files, and a geocode() function that can then geocode a given address. I've managed to build my own database and get my PHP/Mapscript to interface with the perl module for geocoding, but reverse would be much trickier. If you don't care much too much about accuracy, it would seem that the same alogorithm used to geocode could be reversed with a little work. If you've got good Perl skills, I'd suggest looking at the source for Geo::Coder:US. From woodbri at SWOODBRIDGE.COM Thu Dec 30 13:27:28 2004 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Thu, 30 Dec 2004 16:27:28 -0500 Subject: Reverse Geocoding In-Reply-To: <16264e0704123012534236a27a@mail.gmail.com> Message-ID: I have a product that does this, see: http://imaptools.com/demos1/?tab=4 The algorithm is not too complicated. 1) locate a list of line segments based on a lat/long 2) find which line segments are closest to the lat/long 3) drop a normal to the closest line segment 4) compute the ratio of the length from start of line to the projected point compared to the total line length 5) determine if the lat/long is on the right or left side of the line 6) compute the house number from the range of house numbers on the right or left and the ratio position of the projected point. -Steve W. Camden Daily wrote: > To the best of my knowledge, mapserver doesn't do any geocoding at > all. The only package I've been able to find that can do it is the > Geo::Coder::US perl module from CPAN. The module has an import() > function that can be used to generate a database for geocoding from > TIGER/Line data files, and a geocode() function that can then geocode > a given address. I've managed to build my own database and get my > PHP/Mapscript to interface with the perl module for geocoding, but > reverse would be much trickier. > > If you don't care much too much about accuracy, it would seem that the > same alogorithm used to geocode could be reversed with a little work. > If you've got good Perl skills, I'd suggest looking at the source for > Geo::Coder:US. > From cord at LUPINEX.COM Thu Dec 30 13:40:24 2004 From: cord at LUPINEX.COM (Cord Thomas) Date: Thu, 30 Dec 2004 13:40:24 -0800 Subject: Reverse Geocoding In-Reply-To: <41D472C0.9070901@swoodbridge.com> Message-ID: Stephen's process is pretty much the algorithm i am using in my address matching project Cord Stephen Woodbridge wrote: > I have a product that does this, see: > > http://imaptools.com/demos1/?tab=4 > > The algorithm is not too complicated. > 1) locate a list of line segments based on a lat/long > 2) find which line segments are closest to the lat/long > 3) drop a normal to the closest line segment > 4) compute the ratio of the length from start of line to the projected > point compared to the total line length > 5) determine if the lat/long is on the right or left side of the line > 6) compute the house number from the range of house numbers on the right > or left and the ratio position of the projected point. > > -Steve W. > > Camden Daily wrote: > >> To the best of my knowledge, mapserver doesn't do any geocoding at >> all. The only package I've been able to find that can do it is the >> Geo::Coder::US perl module from CPAN. The module has an import() >> function that can be used to generate a database for geocoding from >> TIGER/Line data files, and a geocode() function that can then geocode >> a given address. I've managed to build my own database and get my >> PHP/Mapscript to interface with the perl module for geocoding, but >> reverse would be much trickier. >> >> If you don't care much too much about accuracy, it would seem that the >> same alogorithm used to geocode could be reversed with a little work. >> If you've got good Perl skills, I'd suggest looking at the source for >> Geo::Coder:US. >> -------------------- 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 LuckyEddie at GMX.NET Thu Dec 30 13:42:51 2004 From: LuckyEddie at GMX.NET (Frank Ehlers) Date: Thu, 30 Dec 2004 15:42:51 -0600 Subject: NetCDF via OpenDAP/DODS into mapserv Message-ID: Hi! I have tried to display the content of a NetCDF .nc file with MAPSERVER. The DODS seems to work: If I am using ogrinfo with appropriate parameters on DODS:http//..allnetworkstuff..file.nc?Depth[1,1,10][1,1,1] (or was it Depth[1:1:10][1:1:10] ? Sorry, I cannot remember at the moment) I see the following kind of output for the 10 items I requested: lat .... some_value_lat lon .... some_value_lon Depth .... some_value_depth POINT (some_value_lon some_value_lat) Now, my ideas was to display the depth chart via mapserver. The only examples I found have lines of code like these: CONNECTION ....(like the input for ogrinfo, but with 1000 times 1000 values) TYPE POINT DATA "Depth" CLASS COLOR 255 0 0 END All I see in the web browser (after putting the correct latlong values into the map file to view the area the latlong values specify in the NetCDF file) is then a rectangular area filled with red points. That makes me believe that in principle the connection, the .nc NetCDF file and the map file are ok. My QUESTION: How can I plot an image (color coded depth values) with this method? It would be great if anyone could help me here(e.g. some example code)! Best regards, Frank From fwarmerdam at GMAIL.COM Thu Dec 30 17:53:19 2004 From: fwarmerdam at GMAIL.COM (Frank Warmerdam) Date: Thu, 30 Dec 2004 20:53:19 -0500 Subject: compiling with fastcgi enabled on Windows In-Reply-To: <15215.212.238.227.182.1104250587.squirrel@212.238.227.182> Message-ID: On Tue, 28 Dec 2004 17:16:27 +0100, Bart van den Eijnden wrote: > Hi list, > > has anybody compiled Mapserver in fastcgi mode on Windows? > > The current makefiles don't have options for enabling FASTCGI (the > configure file has though for Unix/Linux), so I am looking for what to add > to the makefile.vc or nmake.opt in order to get a Mapserver FastCGI. Bart, Sorry about that. I neglected to get the FastCGI stuff into 4.4 in time. You might want to just use MapServer 4.5 (aka dev) which does have stubs in the nmake.opt for FastCGI support. It looks something like: # 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 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) NCLUDES=$(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) Let me know if you run into specific problems. My next FWTools build of MapServer for win32 will come shipped with FastCGI enabled. 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 maphew at GMAIL.COM Fri Dec 31 00:02:00 2004 From: maphew at GMAIL.COM (Matt Wilkie) Date: Fri, 31 Dec 2004 00:02:00 -0800 Subject: install as cgi, with no shell? Message-ID: Hi, Is it possible to install mapserver-cgi on a unix host with no shell access? If yes, how? My host has cpanel and ftp access but no ssh or telnet. I have a rudimentary cgi shell script which allows me to use commands like chmod and wget but not any compilers (e.g. configure; make; install; won't work). thanks, -- -matt From edspremolla at ANTEL.COM.UY Fri Dec 31 03:21:14 2004 From: edspremolla at ANTEL.COM.UY (Eduardo Spremolla) Date: Fri, 31 Dec 2004 09:21:14 -0200 Subject: install as cgi, with no shell? In-Reply-To: Message-ID: If you can put a file in the cgi-bin dir of the server, you may tray to set up a box with the same OS version and compile mapserver there, then put the resulting bin at the web server. LALO Happy New Year to everyone. On Fri, 2004-12-31 at 00:02 -0800, Matt Wilkie wrote: > Hi, > > Is it possible to install mapserver-cgi on a unix host with no shell access? > If yes, how? > > My host has cpanel and ftp access but no ssh or telnet. I have a > rudimentary cgi shell script which allows me to use commands like > chmod and wget but not any compilers (e.g. configure; make; install; > won't work). > > thanks, > > -- > -matt -- Ing. Eduardo Spremolla Jefe de Investigacion y Desarrollo Antel,Uruguay From siki at AGT.BME.HU Fri Dec 31 05:31:36 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 31 Dec 2004 12:31:36 -0100 Subject: Printing a map {Scanned} In-Reply-To: <41D41C5F.50306@irpi.cnr.it> Message-ID: Hi, You can create a new browser window and the user can print it
If you would like to start printing as well, use the window.print() in a javascript. if (window.print) window.print(); Bye Zoltan On Thu, 30 Dec 2004, Vinicio Balducci wrote: > I have installed Mapserver 4.4.0 on Fedora Core3. > I would like to add a print function (a print tool) to print only the map (without legend, or reference map etc.) > 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 siki at AGT.BME.HU Fri Dec 31 05:53:59 2004 From: siki at AGT.BME.HU (Siki Zoltan) Date: Fri, 31 Dec 2004 12:53:59 -0100 Subject: GeoTIFF display problem {Scanned} In-Reply-To: <200412301826.CFW39642@ms9.netsolmail.com> Message-ID: Hi, Check the path in your tileindex table (location column). There were some issues about relative pathes. I use relative path to the map file. Bye Zoltan On Thu, 30 Dec 2004, R. Paul Warriner wrote: > Thank you David and Siki for the replies. > > I did as suggested, and I can get my > index and image if defined individually, > but when tying to access with > TILEINDEX/TILEITEM it fails.!? > > (I am working with mapserver 4.4.0 and > gdal 1.2.3) > > > #works > LAYER > NAME "geoindex" > DATA > "mapsurfer/shapes/geotiff/geoindex.shp" > STATUS ON > TYPE POLYGON > CLASS > STYLE > OUTLINECOLOR 0 0 0 > COLOR -1 -1 -1 > END > END > END > > #works > LAYER > NAME "w_10950988_12_07200_col_2002" > DATA > "mapsurfer/shapes/geotiff/w_10950988_12_07200_col_2002.tif" > TYPE RASTER > # MINSCALE 700 > # MAXSCALE 3000 > STATUS ON > END > > #seg fault #11 > LAYER > NAME "w_10950988_12_07200_col_2002" > TILEINDEX > "mapsurfer/shapes/geotiff/geoindex" > TILEITEM "Location" > STATUS ON > TYPE RASTER > MINSCALE 700 > MAXSCALE 3000 > END > From bartvde at XS4ALL.NL Fri Dec 31 04:06:02 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 31 Dec 2004 13:06:02 +0100 Subject: compiling with fastcgi enabled on Windows In-Reply-To: <931f8ea904123017533e67cc4e@mail.gmail.com> Message-ID: Hi Frank, thanks. I have run into a problem runtime (in normal cgi mode, not fastcgi mode yet) not compile time. What I did was: -download fcgi-2.4.0 -nmake /f makefile.nt CFG=Debug -put your settings into the nmake.opt file Everything compiles perfectly, for running mapserv.exe I now needed two MSVC dll's: MSVCP60D.DLL and MSVCRTD.DLL (probably because of the debug mode of fcgi). When I try to run a WMS GetCapabilities, my capabilities are mucked up. If I comment the FASTCGI support in the makefile, and recompile, the WMS GetCapabilities work as expected. This is the mucked up part (the last line should be where UserLayer= ends): default default "0" UserStyle="1" RemoteWFS="0"/> Do you have any idea what's going on here? Best regards, Bart On Thu, 30 Dec 2004 20:53:19 -0500, Frank Warmerdam wrote: > On Tue, 28 Dec 2004 17:16:27 +0100, Bart van den Eijnden > wrote: >> Hi list, >> >> has anybody compiled Mapserver in fastcgi mode on Windows? >> >> The current makefiles don't have options for enabling FASTCGI (the >> configure file has though for Unix/Linux), so I am looking for what to >> add >> to the makefile.vc or nmake.opt in order to get a Mapserver FastCGI. > > Bart, > > Sorry about that. I neglected to get the FastCGI stuff into > 4.4 in time. You might want to just use MapServer 4.5 (aka dev) > which does have stubs in the nmake.opt for FastCGI support. > > It looks something like: > > # 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 > > 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) > > NCLUDES=$(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) > > Let me know if you run into specific problems. My next FWTools > build of MapServer for win32 will come shipped with FastCGI > enabled. > > 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 > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From bartvde at XS4ALL.NL Fri Dec 31 04:40:48 2004 From: bartvde at XS4ALL.NL (Bart van den Eijnden) Date: Fri, 31 Dec 2004 13:40:48 +0100 Subject: compiling with fastcgi enabled on Windows In-Reply-To: Message-ID: Okay, found out this is caused by some old fprintf calls in mapwms.c. Replacing them with msIO_fprintf solves my WMS Capabilities problem. This is also still a problem in the current CVS release (I checked the nightly just now). Best regards, Bart On Fri, 31 Dec 2004 13:06:02 +0100, Bart van den Eijnden wrote: > Hi Frank, > > thanks. I have run into a problem runtime (in normal cgi mode, not > fastcgi mode yet) not compile time. > > What I did was: > -download fcgi-2.4.0 > -nmake /f makefile.nt CFG=Debug > -put your settings into the nmake.opt file > > Everything compiles perfectly, for running mapserv.exe I now needed two > MSVC dll's: MSVCP60D.DLL and MSVCRTD.DLL (probably because of the debug > mode of fcgi). > > When I try to run a WMS GetCapabilities, my capabilities are mucked up. > If I comment the FASTCGI support in the makefile, and recompile, the WMS > GetCapabilities work as expected. > > This is the mucked up part (the last line should be where UserLayer= > ends): > > > default > default > > "0" UserStyle="1" RemoteWFS="0"/> > > Do you have any idea what's going on here? > > Best regards, > Bart > > On Thu, 30 Dec 2004 20:53:19 -0500, Frank Warmerdam > wrote: > >> On Tue, 28 Dec 2004 17:16:27 +0100, Bart van den Eijnden >> wrote: >>> Hi list, >>> >>> has anybody compiled Mapserver in fastcgi mode on Windows? >>> >>> The current makefiles don't have options for enabling FASTCGI (the >>> configure file has though for Unix/Linux), so I am looking for what to >>> add >>> to the makefile.vc or nmake.opt in order to get a Mapserver FastCGI. >> >> Bart, >> >> Sorry about that. I neglected to get the FastCGI stuff into >> 4.4 in time. You might want to just use MapServer 4.5 (aka dev) >> which does have stubs in the nmake.opt for FastCGI support. >> >> It looks something like: >> >> # 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 >> >> 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) >> >> NCLUDES=$(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) >> >> Let me know if you run into specific problems. My next FWTools >> build of MapServer for win32 will come shipped with FastCGI >> enabled. >> >> 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 >> > > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ From paul at WARRINER.US Fri Dec 31 07:43:05 2004 From: paul at WARRINER.US (R. Paul Warriner) Date: Fri, 31 Dec 2004 10:43:05 -0500 Subject: GeoTIFF display problem {Scanned} Message-ID: Hello, I rebuilt the shape index in the directory above the GeoTIFF files: shapes/*.shp shapes/geotiff/*.tif The [location] went: from ./*.tif to geotiff/*.tif and it works. Sorry to say, I can't tell if it was my shape file rebuild or the elimination of ./ in the path that fixed this, but I do know that the before and after shape file sizes were identical. Thanks for the help Siki. Regards, Paul ---- Original message ---- >Date: Fri, 31 Dec 2004 12:53:59 -0100 >From: Siki Zoltan >Subject: Re: [UMN_MAPSERVER-USERS] GeoTIFF display problem {Scanned} >To: MAPSERVER-USERS at LISTS.UMN.EDU > >Hi, > >Check the path in your tileindex table (location column). >There were some issues about relative pathes. >I use relative path to the map file. > >Bye >Zoltan > >On Thu, 30 Dec 2004, R. Paul Warriner wrote: > >> Thank you David and Siki for the replies. >> >> I did as suggested, and I can get my >> index and image if defined individually, >> but when tying to access with >> TILEINDEX/TILEITEM it fails.!? >> >> (I am working with mapserver 4.4.0 and >> gdal 1.2.3) >> >> >> #works >> LAYER >> NAME "geoindex" >> DATA >> "mapsurfer/shapes/geotiff/geoindex.s hp" >> STATUS ON >> TYPE POLYGON >> CLASS >> STYLE >> OUTLINECOLOR 0 0 0 >> COLOR -1 -1 -1 >> END >> END >> END >> >> #works >> LAYER >> NAME "w_10950988_12_07200_col_2002" >> DATA >> "mapsurfer/shapes/geotiff/w_10950988 _12_07200_col_2002.tif" >> TYPE RASTER >> # MINSCALE 700 >> # MAXSCALE 3000 >> STATUS ON >> END >> >> #seg fault #11 >> LAYER >> NAME "w_10950988_12_07200_col_2002" >> TILEINDEX >> "mapsurfer/shapes/geotiff/geoindex" >> TILEITEM "Location" >> STATUS ON >> TYPE RASTER >> MINSCALE 700 >> MAXSCALE 3000 >> END >> From romoloman at HOTMAIL.COM Fri Dec 31 16:08:44 2004 From: romoloman at HOTMAIL.COM (Romolo Manfredini) Date: Sat, 1 Jan 2005 01:08:44 +0100 Subject: OT: Happy new year Message-ID: I wish you a very good 2005 year, I also wish to remember all the people died just before the end of this year and all the others suffering at the moment. If you spared some bucks after this happy end of year consider the following organization: http://www.doctorswithoutborders.org/ Again may the 2005 be a very happy and successfull year for all you all. Romolo Manfredini