From Matti.Silvennoinen at ARBONAUT.COM Mon Oct 1 04:11:21 2007 From: Matti.Silvennoinen at ARBONAUT.COM (Matti Silvennoinen) Date: Mon, 1 Oct 2007 14:11:21 +0300 Subject: STILL: WFS problem with tileindex and filter accepting by MapServer Message-ID: Hi list, I post this again. Has anyone found a solution for this. Tab files with tileindex doesn't return any attributes and are not selectable using uDig. We have following version running on Windows: MapServer version 4.10.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PD F OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPP ORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPP ORTS=SOS_SERVER SUPPORTS=FASTCGI SUPPORTS=THREADS SUPPORTS=GEOS INPUT=JPEG INPUT =POSTGIS INPUT=ORACLESPATIAL INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG We have problem with tileindexed tab-files when using those through WFS-connection. Tests: - MapServer 4.10.1 - Client: uDig - Data: TAB-files containing relative large dataset ~10 MB per file, altohether more than 80 files. Geometry type is line. A file does not contain unique attribute. Cases: - Single shp-file: everything works ok - Single TAB-file: everything works ok - shps with tileindex (tileindex created using ogrtindex) : all features are visible, using info tool attribute info is readable, box selection selects only one feature - possible bug - tabs with tileindex (tileindex created using ogrtindex) : all features are visible, using info tool NO attribute info is readable, box selection does NOT select any feature - possible bug We have also tried to create tileindex using tile4ms but the result is same. We found some bugs of MapServer that seems to relate to this issue. However, developers have worked with those bugs already a long time ago. #1615, #1616 The same query through MapServer - WFS - Oracle connection works OK (native connection). Any solution for this problem? Matti Silvennoinen From yvan.calcagni at VOILA.FR Mon Oct 1 07:21:41 2007 From: yvan.calcagni at VOILA.FR (Y. Calcagni) Date: Mon, 1 Oct 2007 09:21:41 -0500 Subject: VS: [UMN_MAPSERVER-USERS] WMS Client Connection through a proxy Message-ID: On Fri, 28 Sep 2007 15:09:16 +0300, Rahkonen Jukka wrote: > > >> -----Alkuper?inen viesti----- >> L?hett?j?: UMN MapServer Users List >> [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Kralidis,Tom >> [Burlington] >> L?hetetty: 28. syyskuuta 2007 15:01 >> Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU >> Aihe: Re: [UMN_MAPSERVER-USERS] WMS Client Connection through a proxy >> >> >> > I'm trying as a WMS client to connect an OGC server through >> a proxy, >> > but all I'm getting is a blank image. >> > >> > I'm using Mapserver 4.6.1 with WFS_CLIENT support and here >> is to code >> > from the mapfile I'm using : >> > >> > LAYER >> > CONNECTION >> > "http://ogcrisques.brgm.fr/cgi-bin/mapserv?map=/application/ma >> pserver/mapFiles/risquesIT.map?" >> > CONNECTIONTYPE WMS >> > METADATA >> > "wms_srs" "EPSG:27582" >> > "wms_exceptions_format" "application/vnd.ogc.se_xml" >> > "wms_name" "DAT_SIREN_FS" >> > "wms_proxy_*" "192.168.1.14:8080" >> > "wms_format" "image/png" >> > "wms_server_version" "1.1.1" >> > END >> > NAME "layerBD_MVT" >> > PROJECTION >> > "init=epsg:27582" >> > END >> > SIZEUNITS PIXELS >> > STATUS ON >> > TOLERANCEUNITS PIXELS >> > TYPE RASTER >> > UNITS METERS >> > END >> > >> >> I'm not sure if this is supported (i.e. I don't see any proxy >> type metdata in either WMS client or WFS client). Is the >> CONNECTION URL only accessible via proxy? >> >> ..Tom > > >Hi, > >In MS4W installation proxy is handled in Apache httpd.conf file: >SetEnv "http_proxy" "proxy.address:port" > >and possibly SetEnv "NO_PROXY" in a similar way. > >-Jukka Rahkonen- Thanks, in fact it was my apache mod_env which wasn't set correctly. Now everything works fine. See you. Yvan From zhonghaiw at GMAIL.COM Mon Oct 1 07:50:46 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 1 Oct 2007 16:50:46 +0200 Subject: Weidr Output image with the esri tile index file -- GDALTINDEX Message-ID: HI guys, I've created a tile index file with the GDALTINDEX utility for my small raster jpeg images, all things work well, but the end output jpeg image with MapServer is a little weird, there are some white grid lines on the output image. I don't know if there are some blank areas between the tile images when creating the tile index file, or the tile index grid are drawn by MapServer on the output jpeg image. attached is a small example output jpeg image. any clues are welcome. Best Regards Zhongahi -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: WeirdImage.jpg Type: image/jpeg Size: 8655 bytes Desc: not available URL: From wesp at GDV.COM Mon Oct 1 08:22:18 2007 From: wesp at GDV.COM (Oliver Wesp) Date: Mon, 1 Oct 2007 10:22:18 -0500 Subject: Changing projection via cgi request using 5.0 Message-ID: Dear List, I'm trying to change the map projection via cgi. To my understanding this should work using the map.projection or map_projection syntax. Unfortunatley it doesn't. I like to set the projection by using the corresponding espg code. I searched the archives and did some experiments using 4.10.2. With 4.10.2 it's working using the complete projection string ...&map_PROJECTION=proj%3dortho,lon_0%3d-90,lat_0%3d-10 or the epsg code like ...&map_PROJECTION=init%3depsg:4326 With Mapserver 5.0 it seems like map_PROJECTION or map.PROJECTION is simply ignored returning the map in the projection defined in the mapfile no matter what's passed with the url string. Changing other mapfile parameters like a class style or something works fine. Am I missing something? best regards, Oliver From docterrobert at MSN.COM Mon Oct 1 09:12:06 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Mon, 1 Oct 2007 11:12:06 -0500 Subject: Weidr Output image with the esri tile index file -- GDALTINDEX In-Reply-To: <2534c4120710010750k24592992p6334db06afe78a3f@mail.gmail.com> Message-ID: Just throwing this out there, but I recently created a tile index using gdaltindex. I did not get the white lines you are talking about. It could be that there are gaps in between the tiles, which would point to the georefencing info for each tile being slightly off. Also, are you zoomed way out? Try zooming in close and see if they are still there. The tile-indexed image I have is huge (2602 X 2800), so it looks funny when zoomed all the way out when trying to view the entire image - still no lines though. Also, try using a .gif or .png instead of a .jpg and see what happens. Just some suggestions. That's all I really have. I'm just another Mapserver user - not an admin. - Chris Date: Mon, 1 Oct 2007 16:50:46 +0200 From: zhonghaiw at GMAIL.COM Subject: [UMN_MAPSERVER-USERS] Weidr Output image with the esri tile index file -- GDALTINDEX To: MAPSERVER-USERS at LISTS.UMN.EDU HI guys, I've created a tile index file with the GDALTINDEX utility for my small raster jpeg images, all things work well, but the end output jpeg image with MapServer is a little weird, there are some white grid lines on the output image. I don't know if there are some blank areas between the tile images when creating the tile index file, or the tile index grid are drawn by MapServer on the output jpeg image. attached is a small example output jpeg image. any clues are welcome. Best Regards Zhongahi _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From mendes at GAVETA.NET Mon Oct 1 09:05:33 2007 From: mendes at GAVETA.NET (Pedro Mendes) Date: Mon, 1 Oct 2007 09:05:33 -0700 Subject: Transparent raster layer (with Jpegs source rasters) Message-ID: Hi people, I?m trying to display a raster layer from a tileindex file (.shp). The source rasters for this shapefile are jpeg with the following info: Driver: JPEG/JPEG JFIF Size is 6401, 4001 Coordinate System is `' Origin = (-15999.111000000001000,100001.744000000010000) Pixel Size = (2.500000000000000,-2.500000000000000) Corner Coordinates: Upper Left ( -15999.111, 100001.744) Lower Left ( -15999.111, 89999.244) Upper Right ( 3.389, 100001.744) Lower Right ( 3.389, 89999.244) Center ( -7997.861, 95000.494) Band 1 Block=6401x1 Type=Byte, ColorInterp=Gray The OUTPUT objects: IMAGETYPE png32 OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE PC256 EXTENSION "gif" TRANSPARENT ON END OUTPUTFORMAT NAME jpeg DRIVER "GD/JPEG" MIMETYPE "image/jpeg" IMAGEMODE PC256 EXTENSION "jpg" END OUTPUTFORMAT NAME png32 DRIVER "GDAL/PNG" IMAGEMODE RGBA TRANSPARENT ON END The layer object: LAYER NAME vinte_cinco_alta METADATA "wms_title" "vinte_cinco_alta" END STATUS ON TILEINDEX '25000_alta.shp' TILEITEM 'location' TYPE RASTER #PROCESSING "SCALE_1=3,0" #PROCESSING "SCALE_2=3,0" #PROCESSING "SCALE_3=3,0" #PROCESSING "SCALE=AUTO" #PROCESSING "COLOR_MATCH_THRESHOLD=1" #PROCESSING "BANDS=2 OFFSITE 255 255 255 TRANSPARENCY ALPHA PROJECTION "init=epsg:27492" END DEBUG ON MINSCALE 10000 MAXSCALE 26000 END My prob is that i can?t force mapserver only to render the black color in the rasters (i tried changing several parameters in the layer object, and using different output declarations). If it?s possible can u show it to me? The output format isn?t important, just wanna get fully transparent layers (in colors grey and white, keeping black). Thanks in advance! Cumps, Pedro Mendes -- View this message in context: http://www.nabble.com/Transparent-raster-layer-%28with-Jpegs-source-rasters%29-tf4549266.html#a12982125 Sent from the Mapserver - User mailing list archive at Nabble.com. From warmerdam at POBOX.COM Mon Oct 1 09:22:09 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 1 Oct 2007 09:22:09 -0700 Subject: STILL: WFS problem with tileindex and filter accepting by MapServer In-Reply-To: Message-ID: Matti, I'm on the road currently, but if the problem persists I would encourage you to follow up with me directly next week and I'll see if I can help. It sounds like an "mapogr.cpp" problem. It would be very helpful if you can boil this down to a minimal demonstration that can be filed via Trac. The bug report should include example data, mapfile, and the exact url to mapserver (something I can use with mapserver on the commandline) to reproduce the problem. Best regards, On 10/1/07, Matti Silvennoinen wrote: > Hi list, > > I post this again. Has anyone found a solution for this. Tab files with > tileindex doesn't return any attributes and are not selectable using uDig. ... > Any solution for this problem? > > Matti Silvennoinen > -- ---------------------------------------+-------------------------------------- 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 docterrobert at MSN.COM Mon Oct 1 09:39:50 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Mon, 1 Oct 2007 11:39:50 -0500 Subject: Rasters, TileIndex and Shapefiles - Oh My! Now markers won't display tran In-Reply-To: <4BF377919225F449BB097CB76FFE9BC801988468@ptolemy.topozone.com> Message-ID: (Problem described on second parapraph.) Alrighty...........it works! What's most exciting is that the problem that I eluded to in my last reply (the markers or points being off a few hundred yards in a circular pattern) has been fixed as a result of all your advice from earlier. I don't know if it was from me using a shapefile to describe the tile index or if it was from me adjusting lines 1 & 4 in the world file to correctly define the x and y map unit/pixel ratio. I'll play around with it and figure it out. I got it working last Friday right before I left work. Thanks a million! Now - one minor issue. The markers that I'm placing all display and show up at the right spots, but they aren't displaying there transparent backgrounds. I'm using .png's, and always there's a black background being displayed. I've double checked in The GIMP and there's definitely no background. I noticed on the Mapscript API in the "Layers" class that there's a member called transparency and that it takes an int value. I know that a lot of the members that say int actually take a constant as defined in the constants section, but none of them work (MS_ON, MS_TRUE, MS_YES, MS_GD_ALPHA) and actual integers like -10 through 10 don't work either. I know the layer's type shouldn't be set to Raster. Here's the code snippets and sections where I define my marker and the layer it is on: //Location Marker Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $markerLayer = ms_newLayerObj($map); $markerLayer->set(name, "Marker"); $markerLayer->set(type, MS_LAYER_POINT); $markerLayer->set(status, MS_DEFAULT); //Location Marker layer class $markerclass = ms_newClassObj($markerLayer); //Location Marker layer class style $markerstyle = ms_newStyleObj($markerclass); //Sets the size of the marker. The bigger, the badder....... $markerstyle->set(size, 15); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// and $layer=$map->getLayerByName("Marker"); $layer->status = MS_DEFAULT; //Loop creates marker points then populates them on the map for($i=0; $i<$markerCount; $i++){ //Creates a point so the marker can be drawn $marker[$i] = ms_newPointObj(); //Sets that marker according to respective x,y's $marker[$i]->setXY($mx[$i], $my[$i]); //Gives the location of the symbol to place as a marker $markerstyle->set(symbolname, "data/statesp020/$mi[$i]"); //Draws the point using the map, layer Marker, and the image generated, and the only class it has (Index 0) $marker[$i]->draw($map, $layer, $image, 0, ""); } Here's the rest of my php (with the code above in it): The marker count is: $markerCount
"; //Map pic width, height parameters ////////////////////////////////////////////////////////////////////////// $mapwidth = $_GET['width']; $mapheight = $_GET['height']; //New point object for Zooming $centerpoint = ms_newPointObj(); //Taking the center points of the image $centerX = $mapwidth/2; $centerY = $mapheight/2; $centerpoint->setXY($centerX, $centerY); ////////////////////////////////////////////////////////////////////////// //The zoompoint and zoomscale parameters ////////////////////////////////////////////////////////////////////////// //$zoompoint = $_GET['zoompoint']; ZOOMPOINT ZOOMS IN ON A PIXEL $zoomscale = $_GET['zoomscale']; ////////////////////////////////////////////////////////////////////////// //Center Coordinates passed will be in decimal degrees ////////////////////////////////////////////////////////////////////////// $x = $_GET['lon1']; $y = $_GET['lat1']; //Create a new recObj with dd extents $extent = ms_newRectObj(); //Set those extents $extent->setextent($x-.002, $y-.002, $x+.002, $y+.002); //Set the newly adjusted extent variables $x1 = $extent->minx; $y1 = $extent->miny; $x2 = $extent->maxx; $y2 = $extent->maxy; //Upper left and lower right coordinates //$ULx = $x1; //$ULy = $y2; //$LRx = $x2; //$LRy = $y1; ////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //The Map Itself /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //The mapfile path and map file itself $map_path = "/var/www/mapserver/campuscomber/"; $map_file = "indexAlt.map"; $map = ms_newMapObj($map_path.$map_file); //The size of the window set by mapserver $map->setSize($mapwidth, $mapheight); //The name of the map $map->set(name, "US Universities"); $app = $_GET['app']; //The type of image produced depending if request comes from Wap, Kiwi, or Webcomber if($app=="app"){ $map->selectOutputFormat("GIF"); //Sets the output format type $map->outputformat->setOption(name, "gif"); $map->outputformat->setOption(driver, "GD/GIF"); $map->outputformat->setOption(mimetype, "image/gif"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_RGB); $map->outputformat->setOption(extension, "gif"); } if($app=="kiwi" || $app=="web"){ $map->selectOutputFormat("PNG"); //Sets the output format type $map->outputformat->setOption(name, "png"); $map->outputformat->setOption(driver, "GD/PNG"); $map->outputformat->setOption(mimetype, "image/png"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_PC256); $map->outputformat->setOption(extension, "png"); } //The color of the background $map->imagecolor->setRGB(140, 140, 140); //Tells where the US Shapefile info and images are located $map->set(shapepath, "/var/www/mapserver/campuscomber/data/statesp020/"); //Sets the map projection lat/lon $map->setProjection("+proj=latlong +ellps=GRS80 +datum=NAD83"); //sets the EXTENT $map->setExtent($x1, $y1, $x2, $y2); $map->set(units, MS_DD); $map->set(debug, MS_ON); //Web Object which specifies the image path and the image url for the image Maperver generates $map->web->set(imagepath, "/var/www/mapserver/campuscomber/images/"); $map->web->set(imageurl, "/mapserver/campuscomber/images/"); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //United States layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $us = ms_newLayerObj($map); $us->set(name, "US state polygons"); $us->set(type, MS_LAYER_POLYGON); $us->set(status, MS_DEFAULT); $us->set(data, "statesp020"); //United States layer class $usclass = ms_newClassObj($us); //United States layer class style $usstyle = ms_newStyleObj($usclass); $usstyle->color->setRGB(240, 230, 140); $usstyle->set(symbol, 0); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //US Boundaries Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $usbounds = ms_newLayerObj($map); $usbounds->set(name, "US state boundaries"); $usbounds->set(type, MS_LAYER_LINE); $usbounds->set(status, MS_DEFAULT); $usbounds->set(data, "statesp020"); //US Boundaries layer class $usboundsclass = ms_newClassObj($usbounds); //US Boundaries layer class style $usboundsstyle = ms_newStyleObj($usboundsclass); $usboundsstyle->color->setRGB(50, 50, 50); $usboundsstyle->set(size, 3); $usboundsstyle->set(symbol, 0);$usboundsstyle->set(symbol, 0); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //University Map Layer (Actually, I don't think we even need this layer - but ehhh, who knows?) /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $university = ms_newLayerObj($map); $university->set(name, "University of Illinois"); $university->set(type, MS_LAYER_RASTER); $university->set(status, MS_OFF); $university->set(data, "UofICampusMapAlt.gif"); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Tiled University Map Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $universityTiles = ms_newLayerObj($map); $universityTiles->set(name, "University of Illinois Tiles"); $universityTiles->set(type, MS_LAYER_RASTER); $universityTiles->set(status, MS_DEFAULT); $universityTiles->set(tileindex, "u_of_ill.shp"); $universityTiles->set(tileitem, "Location"); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //Location Marker Layer /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $markerLayer = ms_newLayerObj($map); $markerLayer->set(name, "Marker"); $markerLayer->set(type, MS_LAYER_POINT); $markerLayer->set(status, MS_DEFAULT); //Location Marker layer class $markerclass = ms_newClassObj($markerLayer); //Location Marker layer class style $markerstyle = ms_newStyleObj($markerclass); //Sets the size of the marker. The bigger, the badder....... $markerstyle->set(size, 15); /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //$map->zoompoint(1, $centerpoint, $mapwidth, $mapheight, $extent); //Sets the zoom scale for zooming in and out $map->zoomscale($zoomscale, $centerpoint, $mapwidth, $mapheight, $extent); //Draws the image $image=$map->draw(); //Gets the Marker Layer $layer=$map->getLayerByName("Marker"); $layer->status = MS_DEFAULT; //Loop creates marker points then populates them on the map for($i=0; $i<$markerCount; $i++){ //Creates a point so the marker can be drawn $marker[$i] = ms_newPointObj(); //Sets that marker according to respective x,y's $marker[$i]->setXY($mx[$i], $my[$i]); //Gives the location of the symbol to place as a marker $markerstyle->set(symbolname, "data/statesp020/$mi[$i]"); //Draws the point using the map, layer Marker, and the image generated, and the only class it has (Index 0) $marker[$i]->draw($map, $layer, $image, 0, ""); } //Produces a url to reference the image by $image_url=$image->saveWebImage(); echo $image_url."
"; ?> Mapserver "University of Illinois" _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhonghaiw at GMAIL.COM Mon Oct 1 09:50:27 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 1 Oct 2007 18:50:27 +0200 Subject: Weidr Output image with the esri tile index file -- GDALTINDEX In-Reply-To: Message-ID: Actually, the white lines only appears on this tile index file, all the others are fine. What I am worrying about is what you said - the gaps between image georeferencing, but I am not really sure. My images are just 400*^300 pixels, so if I get a image rendered by MapServer, i can see the white grids on the every output image. Am I the only one who gets the white lines on output image? Zhonghai On 10/1/07, Christopher Harris wrote: > > Just throwing this out there, but I recently created a tile index using > gdaltindex. I did not get the white lines you are talking about. It could > be that there are gaps in between the tiles, which would point to the > georefencing info for each tile being slightly off. Also, are you zoomed > way out? Try zooming in close and see if they are still there. The > tile-indexed image I have is huge (2602 X 2800), so it looks funny when > zoomed all the way out when trying to view the entire image - still no lines > though. Also, try using a .gif or .png instead of a .jpg and see what > happens. Just some suggestions. That's all I really have. I'm just > another Mapserver user - not an admin. > - Chris > > ------------------------------ > Date: Mon, 1 Oct 2007 16:50:46 +0200 > From: zhonghaiw at GMAIL.COM > Subject: [UMN_MAPSERVER-USERS] Weidr Output image with the esri tile index > file -- GDALTINDEX > To: MAPSERVER-USERS at LISTS.UMN.EDU > > HI guys, > > I've created a tile index file with the GDALTINDEX utility for my small > raster jpeg images, all things work well, but the end output jpeg image with > MapServer is a little weird, there are some white grid lines on the output > image. I don't know if there are some blank areas between the tile images > when creating the tile index file, or the tile index grid are drawn by > MapServer on the output jpeg image. > > attached is a small example output jpeg image. > > any clues are welcome. > > Best Regards > > Zhongahi > > > ------------------------------ > Invite your mail contacts to join your friends list with Windows Live > Spaces. It's easy! Try it! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From docterrobert at MSN.COM Mon Oct 1 10:38:42 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Mon, 1 Oct 2007 12:38:42 -0500 Subject: Weidr Output image with the esri tile index file -- GDALTINDEX In-Reply-To: <2534c4120710010950mf6622a7u4164bda02359569b@mail.gmail.com> Message-ID: This helped me a bunch in calculating the positions for my tiles. I created and used a world file for each tile after calculating the top left x,y coordinate (in meters, lat/lon, feet, etc.) of each tile. Once all my world files were created and I checked them over to see if they were correct, I used gdaltindex. I'm going to post a section of a previous post someone sent me when I was encountering problems with tile indexing: OK ? it?s not as bad as all that ? don?t fire up Photoshop yet. If you have a set of tiles which together create a seamless large image, and those tiles are of a regular size and shape, don?t bother pasting them together. Each world file has six numbers in it, two of which will be 0. For each image tile you need a world file that contains the X/Y coordinates of the upper left pixel of the image (two numbers), and the dimension (size) of each pixel in X (one number) and Y (one number) units. In the vast majority of cases the last two numbers will be identical except for sign (the Y value is normally a negative number since Y values decrease as you go from the top to the bottom of the image). If your images make a rectangle when pasted together, just treat them as one. Find the X/Y coordinates of the upper left corner of the entire image area, and the X/Y coordinates of the lower right corner of the entire image area. Find the size of the entire mosaiced rectangle in X and Y pixels. The X pixel dimension will be (maxx ? minx) / xpixels, and the Y will be (miny ? maxy) / ypixels. You should find that the X number is -1 times the Y number. For all your world files, these two X and Y extent values (the first and fourth lines) will be constants. The last two lines are the upper left X and Y coordinates of each tile. Your tiles will all have the same Y value across each row, and the same X value down each column. You know what the upper-left corner of the upper-left tile is, because you measured it. You know the number of X pixels in each tile and the number of Y pixels in each tile, and you now know the size in X and Y units of each pixel, so you know the extent of each image tile in X and Y units, so you can calculate the upper-left corner coordinate of the image to the right and the image below. Repeat until complete. The top left corner will have the minx and miny values, whereas the bottom right corner will have the maxx and maxy values. I had to figure out the x pixel dimension and the y pixel dimension of the entire image first, then apply those dimensions to each tile. For example: The entire image first: TL - lat = 40.117268, lon = -88.248281 (miny and minx) BL - lat = 40.082274, lon = -88.205980 (maxy and maxx) Width = 2602 = xpixels (The width and height of my image) Height = 2800 = ypixels x pixel dimension = (maxX - minX)/xpixels y pixel dimension = (maxY - minY)/ypixels For me, x pixel dimension =0.000016257 and the y pixel dimension = -0.000012497 Now, keep in mind it should be more like 0.000016257 and -0.000016257, but I had an unusual case, so the numbers didn't do that. Now that I have these 2 valuse, just apply this to the top left tile: TL - lat = 40.117268, lon = -88.248281 (miny and minx) BL - lat = ?, lon = ? (maxy and miny) Width = 548 (The width and height of my tiles) Height = 300 x pixel dimension = (maxX-minX)/xpixels 0.000016257 = (maxX - (-88.248281))/548 0.000016257 = (maxX + 88.24281)/548 0.008908836 = maxX + 88.24281 -88.239372164 = maxX (Bottom right x coordinate for first tile) y pixel dimension = (maxY-minY)/ypixels -0.000012497 = (maxY - 40.117268)/300 -0.0037491 = maxY - 40.117268 40.113519 = maxY (Bottom right y coordinate for first tile) X should typically be a negative number, while Y should typically be positive (if you're in North America). Ok, now that I have those I can figure out the other tiles. The tile that will be SouthEast of the first tile would have the bottom right coordinates that we just figured out as its top left coordinates. The tile East of the tile we just figured out would have the same y coordinate and the bottom left x coordinate we just figured out. And, the tile South of the tile we just figured out would have the same x coordinate and the bottom left y coordinate we just figured out. And so on, and so on..... So. One tile's bottom left coordinates should provide a coordinate for the next connecting tile. Hope this helps. It sounds like some calculation issues. - Chris Date: Mon, 1 Oct 2007 18:50:27 +0200 From: zhonghaiw at gmail.com To: docterrobert at msn.com Subject: Re: [UMN_MAPSERVER-USERS] Weidr Output image with the esri tile index file -- GDALTINDEX CC: MAPSERVER-USERS at lists.umn.edu Actually, the white lines only appears on this tile index file, all the others are fine. What I am worrying about is what you said - the gaps between image georeferencing, but I am not really sure. My images are just 400*^300 pixels, so if I get a image rendered by MapServer, i can see the white grids on the every output image. Am I the only one who gets the white lines on output image? Zhonghai On 10/1/07, Christopher Harris wrote: Just throwing this out there, but I recently created a tile index using gdaltindex. I did not get the white lines you are talking about. It could be that there are gaps in between the tiles, which would point to the georefencing info for each tile being slightly off. Also, are you zoomed way out? Try zooming in close and see if they are still there. The tile-indexed image I have is huge (2602 X 2800), so it looks funny when zoomed all the way out when trying to view the entire image - still no lines though. Also, try using a .gif or .png instead of a .jpg and see what happens. Just some suggestions. That's all I really have. I'm just another Mapserver user - not an admin. - Chris Date: Mon, 1 Oct 2007 16:50:46 +0200 From: zhonghaiw at GMAIL.COM Subject: [UMN_MAPSERVER-USERS] Weidr Output image with the esri tile index file -- GDALTINDEX To: MAPSERVER-USERS at LISTS.UMN.EDU HI guys, I've created a tile index file with the GDALTINDEX utility for my small raster jpeg images, all things work well, but the end output jpeg image with MapServer is a little weird, there are some white grid lines on the output image. I don't know if there are some blank areas between the tile images when creating the tile index file, or the tile index grid are drawn by MapServer on the output jpeg image. attached is a small example output jpeg image. any clues are welcome. Best Regards Zhongahi Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it! _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: From dmorissette at MAPGEARS.COM Mon Oct 1 11:57:06 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 1 Oct 2007 14:57:06 -0400 Subject: SVG for symbology encoding In-Reply-To: <12876595.post@talk.nabble.com> Message-ID: varyag wrote: > Thanks. Will SVG(for Symbology Encoding) be supported in next versions of > Mapserver? > I am not aware of any plans to support SVG symbol definitions in future releases, but that may not be a bad idea (I think I also heard that suggestion a few times before). Perhaps you could file a enhancement ticket including sample symbol definitions and refs to relevant spec/docs. At least that would start us thinking about this and increase the chances of seeing SVG symbol definitions supported in future releases. Please include me (id=dmorissette) in the CC of the ticket if you create one. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at DNR.STATE.MN.US Mon Oct 1 12:47:52 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 1 Oct 2007 14:47:52 -0500 Subject: Changing projection via cgi request using 5.0 In-Reply-To: Message-ID: Oliver: This is a bug. I filed a ticket and have already fixed the problem in the main SVN trunk. See http://trac.osgeo.org/mapserver/ticket/2335. There is no workaround but the change is simple. In maplexer.l, around line 258 change: projection { return(PROJECTION); } to: projection { return(PROJECTION); } and rebuild. Steve >>> On 10/1/2007 at 10:22 AM, in message , Oliver Wesp wrote: > Dear List, > > I'm trying to change the map projection via cgi. To my understanding this > should work using the map.projection or map_projection syntax. Unfortunatley > it doesn't. I like to set the projection by using the corresponding espg > code. I searched the archives and did some experiments using 4.10.2. With > 4.10.2 it's working using the complete projection string > > ...&map_PROJECTION=proj%3dortho,lon_0%3d-90,lat_0%3d-10 > > or the epsg code like > > ...&map_PROJECTION=init%3depsg:4326 > > With Mapserver 5.0 it seems like map_PROJECTION or map.PROJECTION is simply > ignored returning the map in the projection defined in the mapfile no matter > what's passed with the url string. Changing other mapfile parameters like a > class style or something works fine. Am I missing something? > > best regards, > Oliver From gooogle at FREE.FR Mon Oct 1 13:39:06 2007 From: gooogle at FREE.FR (=?ISO-8859-1?Q?J=E9r=F4me_Martin?=) Date: Mon, 1 Oct 2007 22:39:06 +0200 Subject: Error on adding EPSG code In-Reply-To: <46FCE666.3070302@maplecroft.net> Message-ID: Hello, I'm perhaps telling you something wrong, but I think it's only because EPSG codes are stocked on a short in programming system, because the last epsg:code is 32766 (# WGS 84 / TM 36 SE). A short is a 16 bit signed value, so the max value for a short is 2^(16-1) = 2^15 = 32768. I suggest you to try just to take a code number not used in the epsg file code less than 32768, and try again if it's working, because your 1234567 should be so big in mapserv. Moreover, if you want to add a new epsg code, you should use your personal namespace and personal code number. when you put EPSG:code, it's means you want use an epsg code. if you use ESRI:code, it's means you want to use an esri code. So, create your personal file and put yours personal definitions. You after could use PERSONALNAMESPACE:mycode to set up the projection. Be sure your PROJ_LIB variable is setted to /usr/share/proj and your put your file "PERSONALNAMESPACE" on the same directory. You perhaps could use the PROJ_LIB variable to /home/my_name/path/to/my/own/share/proj/ and put it your file "PERSONALNAMESPACE" if you are only using this namespace (no EPSG code). This method is better if you don't have the write access to the folder /usr/share/proj. If you want this method and use an epsg code (or esri code...) just do a symbolic link to the file "epsg" in your personal share proj directory. I hope it's could be useful for you, J?r?me Martin Mark de Blois a ?crit : > Hi there, > > I Am trying to add an EPSG code for Winkel Triple to my MapServer proj > file but I keep getting the error: > msProcessProjection(): Projection library error. no options found > in 'init' file > > I added the entry: > > # Winkel Triple > <1234567> +proj=wintri +lat_1=45 +x_0=0 +y_0=0 +ellps=WGS84 > +datum=WGS84 +units=m +no_defs <> > > to the file epsg (located at /usr/share/proj on my Ubuntu machine) and > rebooted. > > Ogrinfo tells me the following about the shapefile I am trying to serve: > > Extent: (-16707480.310734, -10018754.171395) - (16920780.652974, > 9320947.177797) > Layer SRS WKT: > PROJCS["World_Winkel_Tripel_NGS", > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137.0,298.257223563]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Winkel_Tripel"], > PARAMETER["False_Easting",0.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",0.0], > PARAMETER["Standard_Parallel_1",45.0], > UNIT["Meter",1.0]] > > In the mapfile I am referencing this shapefile through: > > LAYER > NAME 'WTCountries' > DATA 'maplecroft_countries_winkel_45' > STATUS off > TYPE Polygon > > METADATA > WMS_SRS 'epsg:1234567' > WMS_TITLE 'Countries_WT' > WMS_FEATURE_INFO_MIME_TYPE 'text/html' > END #METADATA > > PROJECTION > 'init=epsg:1234567' > END > > Does anyone have any idea what I am doing wrong? Your help would be > greatly appreciated! > > cheers, > Mark de Blois > Maplecroft From crschmidt at METACARTA.COM Mon Oct 1 13:44:58 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Mon, 1 Oct 2007 16:44:58 -0400 Subject: Error on adding EPSG code In-Reply-To: <47015AEA.2060403@free.fr> Message-ID: On Mon, Oct 01, 2007 at 10:39:06PM +0200, J?r?me Martin wrote: > Hello, > > I'm perhaps telling you something wrong, but I think it's only because > EPSG codes are stocked on a short in programming system, > because the last epsg:code is 32766 (# WGS 84 / TM 36 SE). > A short is a 16 bit signed value, so the max value for a short is > 2^(16-1) = 2^15 = 32768. This isn't why. MapServer supports EPSG:900913 -- obviously greater than 32768. Regards, -- Christopher Schmidt MetaCarta From tutey at O2.PL Mon Oct 1 13:48:09 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Mon, 1 Oct 2007 22:48:09 +0200 Subject: MS 5.0 crashes on pdf output, 4.10.2 is OK Message-ID: MS 5.0 crashes on a map file with output type set as: IMAGETYPE pdf OUTPUTFORMAT NAME pdf DRIVER pdf END Examples: ./shp2pdf -m pdf.map -o pdf_ms5.pdf *** glibc detected *** free(): invalid next size (fast): 0x08254f00 *** ./shp2img -m pdf.map -o pdf_ms5.pdf *** glibc detected *** free(): invalid next size (fast): 0x08179608 *** The same map file works OK with shp2img and shp2pdf from MS 4.10.2. Both MS 4.10.2 and 5.0 built and running against the same libraries, on the same machine. Both source codes were configured with exactly the same switches. Ubuntu Dapper 32bit, using PDFLib-Lite 7.0.2. If more details are needed please let me know. Maciek From warmerdam at POBOX.COM Mon Oct 1 19:32:10 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 1 Oct 2007 19:32:10 -0700 Subject: Transparent raster layer (with Jpegs source rasters) In-Reply-To: <12982125.post@talk.nabble.com> Message-ID: On 10/1/07, Pedro Mendes wrote: > Hi people, > > I?m trying to display a raster layer from a tileindex file (.shp). The > source rasters for this shapefile are jpeg with the following info: ... > My prob is that i can?t force mapserver only to render the black color in > the rasters (i tried changing several parameters in the layer object, and > using different output declarations). If it?s possible can u show it to me? > > The output format isn?t important, just wanna get fully transparent layers > (in colors grey and white, keeping black). Pedro, My understanding is that you want black (0,0,0) in your source raster to be rendered, and all other values to be treated as transparent ... is that right? The only mechanism that comes to mind to accomplish this is to define a class for pixel value 0 with a color of 0,0,0 and no other classes so all other values will appear as transparent. Something like: CLASS EXPRESSION ([pixel] = 0) COLOR 0 0 0 END You may find that the source jpeg file has corrupted some black pixels causing them to have values near zero but not quite equal to zero. to capture these too, you might change your expression to be something like [pixel] < 5. Good luck, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From jorn at SPACETEC.NO Mon Oct 1 23:46:52 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Tue, 2 Oct 2007 08:46:52 +0200 Subject: TIFF/TFW fails in v5.0 Message-ID: Hi all, I have just migrated from Mapserver-4.9/FWTools to Mapserver-5.0/FWTools-1.3.7. In my map file I have some TIFF files with .TFW (world file). The problem is that mapserv returns: "msDrawMap(): Image handling error. Failed to draw layer named 'TROMS_LARGE'. msDrawRaster(): Image handling error. Unrecognized or unsupported image format drawEPP(): Image handling error. /srv/www/htdocs/konserv/konservs1a/data/TROMS_LARGE.tif is not an EPPL file." The same map file works for mapserv 4.9. Here is my map file layer entry LAYER #stamp: 1189671749 NAME "TROMS_LARGE" DATA "TROMS_LARGE.tif" TYPE RASTER STATUS ON TRANSPARENCY 50 OFFSITE 0 0 0 DEBUG ON CLASS NAME "" KEYIMAGE "/srv/www/htdocs/legends/terra_chlora_legend.png" END PROJECTION "proj=stere" "lat_0=63.0" "lon_0=16.0" END END I have also tried to rename the file to .tiff. Do you have some ideas? cheers J?rn Vegard ------------------------------------------------------- From jorn at SPACETEC.NO Mon Oct 1 23:55:31 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Tue, 2 Oct 2007 08:55:31 +0200 Subject: SOS and PostGIS Message-ID: Hi, we are trying to setup Mapserver to provide SOS observations from a PostGIS table. So far without success. We have managed to setup a map file to provide SOS observations from shapefiles and OGR VRT Datasource. For PostGIS we have been using the same connection as be normally use for WMS: CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=db_name host=host.domain.org port=5432" DATA "geom from feature using SRID=4326" Are there constraints for SOS and PostGIS? Maybe someone has examples? cheers J?rn Vegard R?snes From bartvde at GMAIL.COM Mon Oct 1 23:56:45 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Tue, 2 Oct 2007 08:56:45 +0200 Subject: TIFF/TFW fails in v5.0 In-Reply-To: <200710020846.53176.jorn@spacetec.no> Message-ID: Just to confirm we've had this same problem with that particular FWTools release on Fedora 3 using Geotiff files. Downgrading FWTools solved it for us. Best regards, Bart On 10/2/07, J?rn Vegard R?snes wrote: > > Hi all, > > I have just migrated from Mapserver-4.9/FWTools to > Mapserver-5.0/FWTools-1.3.7. > > In my map file I have some TIFF files with .TFW (world file). > > The problem is that mapserv returns: > "msDrawMap(): Image handling error. Failed to draw layer named > 'TROMS_LARGE'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format drawEPP(): Image handling > error. /srv/www/htdocs/konserv/konservs1a/data/TROMS_LARGE.tif is not an > EPPL > file." > > The same map file works for mapserv 4.9. > > Here is my map file layer entry > LAYER > #stamp: 1189671749 > NAME "TROMS_LARGE" > DATA "TROMS_LARGE.tif" > TYPE RASTER > STATUS ON > TRANSPARENCY 50 > OFFSITE 0 0 0 > DEBUG ON > CLASS > NAME "" > KEYIMAGE "/srv/www/htdocs/legends/terra_chlora_legend.png" > END > PROJECTION > "proj=stere" > "lat_0=63.0" > "lon_0=16.0" > END > END > > I have also tried to rename the file to .tiff. > > Do you have some ideas? > > cheers > J?rn Vegard > > ------------------------------------------------------- > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gabe at AGTRIX.COM Tue Oct 2 00:14:51 2007 From: gabe at AGTRIX.COM (Gabe) Date: Tue, 2 Oct 2007 17:14:51 +1000 Subject: Transparency in JPGs on windows In-Reply-To: <200710020846.53176.jorn@spacetec.no> Message-ID: Hi We are running several instances of mapserver on Linux and Windows. I have some maps that display a tiled aerial photography layer and some other vector layers. The vector layers are polygons displayed using a symbol with a transparent background. While the photography is switched off the map is produced as a png and all works as expected. However when the photography layer is on (and the image is produced as a jpg) the vector layers no longer have any transparency and use instead the map background colour. That happens on the windows boxes but not on the linux boxes. The installations are as similar as possible and this effect has been consistent since about mapserver 4.8 (now using 4.10.2 and 5.0.0) Is there a fix for this ? Gabe From loose at LWF.UNI-MUENCHEN.DE Tue Oct 2 02:49:33 2007 From: loose at LWF.UNI-MUENCHEN.DE (Johannes Loose) Date: Tue, 2 Oct 2007 04:49:33 -0500 Subject: Display non spatial table Message-ID: Hello List, I'd like to display a non spatial table from an ORACLE Database (accessible trough SDE) using Mapserver. The table includes two fields X and Y that contain coordinates, representing point features. In ArcGIS it is possible to create an event layer from X/Y data. Is there anything comparable using mapserver? When asking in the IRC channel, alienbrain told me that it's no problem to display X/Y data using mapscript, but what I need is a WMS to be used in mapbender. Can this be done? If yes, what is the correct mapfile syntax? Best regards Johannes From mendes at GAVETA.NET Tue Oct 2 03:59:37 2007 From: mendes at GAVETA.NET (Pedro Mendes) Date: Tue, 2 Oct 2007 03:59:37 -0700 Subject: Transparent raster layer (with Jpegs source rasters) In-Reply-To: <931f8ea90710011932j1683f4fat30474e54966703e4@mail.gmail.com> Message-ID: Frank, Thanks! it was just what I needed! I only have to set the expression to a higher value - [pixel] < 150 - to render all the pixels I want. Thanks again! Cumps, Pedro Frank Warmerdam-2 wrote: > > On 10/1/07, Pedro Mendes wrote: >> Hi people, >> >> I?m trying to display a raster layer from a tileindex file (.shp). The >> source rasters for this shapefile are jpeg with the following info: > ... >> My prob is that i can?t force mapserver only to render the black color in >> the rasters (i tried changing several parameters in the layer object, and >> using different output declarations). If it?s possible can u show it to >> me? >> >> The output format isn?t important, just wanna get fully transparent >> layers >> (in colors grey and white, keeping black). > > Pedro, > > My understanding is that you want black (0,0,0) in your > source raster to be rendered, and all other values to be > treated as transparent ... is that right? > > The only mechanism that comes to mind to accomplish > this is to define a class for pixel value 0 with a color > of 0,0,0 and no other classes so all other values will > appear as transparent. Something like: > > CLASS > EXPRESSION ([pixel] = 0) > COLOR 0 0 0 > END > > You may find that the source jpeg file has corrupted some > black pixels causing them to have values near zero but not > quite equal to zero. to capture these too, you might change > your expression to be something like [pixel] < 5. > > Good luck, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | Geospatial Programmer for Rent > > -- View this message in context: http://www.nabble.com/Transparent-raster-layer-%28with-Jpegs-source-rasters%29-tf4549266.html#a12996665 Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at STATKART.NO Tue Oct 2 04:26:09 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Tue, 2 Oct 2007 04:26:09 -0700 Subject: MapServer 5.0 and AGG output in WMS server Message-ID: Hi! I'm trying to enable AGG rendering in a mapfile which is used to produce a WMS service, but the mime types gets all wrong. I tried to use the following output format: OUTPUTFORMAT NAME "png" DRIVER "AGG/PNG" MIMETYPE "image/png" IMAGEMODE "RGB" EXTENSION "png" END but the capabilities file only shows the png mime type image/png; mode=24bit. If I change the MIMTYPE of the outputformat to image/png; mode=24bit OUTPUTFORMAT NAME "png" DRIVER "AGG/PNG" MIMETYPE "image/png; mode=24bit" IMAGEMODE "RGB" EXTENSION "png" END the capabilities file then shows png mime type image/png. It looks like the opposite of what is written in the map file is published in the capabilities file. This is not the case when the GD driver is used. Regards P?l Kristensen -- View this message in context: http://www.nabble.com/MapServer-5.0-and-AGG-output-in-WMS-server-tf4554336.html#a12996932 Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at EC.GC.CA Tue Oct 2 05:13:40 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 2 Oct 2007 08:13:40 -0400 Subject: SOS and PostGIS In-Reply-To: A<200710020855.31236.jorn@spacetec.no> Message-ID: > we are trying to setup Mapserver to provide SOS observations > from a PostGIS table. > So far without success. > We have managed to setup a map file to provide SOS > observations from shapefiles and OGR VRT Datasource. > > For PostGIS we have been using the same connection as be > normally use for WMS: > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=db_name host=host.domain.org > port=5432" > DATA "geom from feature using SRID=4326" > > Are there constraints for SOS and PostGIS? > Maybe someone has examples? That's weird. What version of MapServer are you using? Can you send along (offlist) a mapfile and perhaps a small dump (if possible) of records; I can do an initial test. ..Tom From jt at MAPMEDIA.DE Tue Oct 2 05:13:13 2007 From: jt at MAPMEDIA.DE (=?UTF-8?B?IkrDtnJnIFRob21zZW4gKE1hcE1lZGlhIEdtYkgpIg==?=) Date: Tue, 2 Oct 2007 14:13:13 +0200 Subject: Connection Time Out Message? In-Reply-To: <12996932.post@talk.nabble.com> Message-ID: Hi, I would like to generate an inimage error-message like 'service xy is not available" if a wms server does not answer or does answer to late, like wms_connectiontimeout 30 wms_connectiontimeout_message service is not available So that the user knows, that there should be more information in the map. Any idea? regards, J?rg From btrimble at SFWMD.GOV Tue Oct 2 05:33:30 2007 From: btrimble at SFWMD.GOV (Trimble, Beheen) Date: Tue, 2 Oct 2007 08:33:30 -0400 Subject: symbols Message-ID: Hi People, Does anyone have few symbols I can use? I only have the default star and circle. I need triangle and few more. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorn at SPACETEC.NO Tue Oct 2 06:04:29 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Tue, 2 Oct 2007 15:04:29 +0200 Subject: SOS and PostGIS In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059EE5@ecburexch1.ontario.int.ec.gc.ca> Message-ID: > > we are trying to setup Mapserver to provide SOS observations > > from a PostGIS table. > > So far without success. > > We have managed to setup a map file to provide SOS > > observations from shapefiles and OGR VRT Datasource. > > > > For PostGIS we have been using the same connection as be > > normally use for WMS: > > CONNECTIONTYPE POSTGIS > > CONNECTION "user=postgres dbname=db_name host=host.domain.org > > port=5432" > > DATA "geom from feature using SRID=4326" > > > > Are there constraints for SOS and PostGIS? > > Maybe someone has examples? > On Tuesday 02 October 2007 14:13, Kralidis,Tom [Burlington] wrote: > That's weird. What version of MapServer are you using? Can you send along > (offlist) a mapfile and perhaps a small dump (if possible) of records; I > can do an initial test. > > ..Tom I found the problem when creating the test case. We had wrong format for the EXTENT in the beginning of the map file. It was in meters, should be dd. Very annoying ;-) cheers J?rn Vegard From David.Fawcett at STATE.MN.US Tue Oct 2 06:21:07 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 2 Oct 2007 08:21:07 -0500 Subject: symbols In-Reply-To: A Message-ID: There are a few examples here: http://mapserver.gis.umn.edu/docs/howto/symbologyexchange_vector Here are a few more definitions: SYMBOL NAME 'square' TYPE VECTOR FILLED TRUE POINTS 0 0 1 0 1 1 0 1 0 0 END END SYMBOL NAME 'diamond' TYPE VECTOR FILLED TRUE POINTS .5 0 1 .5 .5 1 0 .5 .5 0 END END There is more info here: http://mapserver.gis.umn.edu/docs/howto/cartosymbols Arnulf has created an extensive symbol file that you can download here: http://www.mapmedia.de/dokumente/umn_signaturen_howto/vortrag_demo.zip The names of the symbols are in German, but on the cartosymbols page, there are examples of the symbols with their names. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Trimble, Beheen Sent: Tuesday, October 02, 2007 7:34 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] symbols Hi People, Does anyone have few symbols I can use? I only have the default star and circle. I need triangle and few more. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Tue Oct 2 06:34:09 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Tue, 2 Oct 2007 08:34:09 -0500 Subject: Display non spatial table In-Reply-To: A Message-ID: If your data was a feature class in SDE, you could connect through an OGR SDE connection, more info here: http://mapserver.gis.umn.edu/docs/reference/vector_data/arcsde You can likely do a 'virtual datasource' connection using OGR. Info at the below link. In setting it up, you define which columns contain your X and Y coords. I have done this with Access, text, and MySQL, but not Oracle. The documentation indicates that it is possible with Oracle. Performance should be OK for drawing, but it is not optimal for queries. http://mapserver.gis.umn.edu/docs/reference/vector_data/VirtualSpatialDa ta David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Johannes Loose Sent: Tuesday, October 02, 2007 4:50 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Display non spatial table Hello List, I'd like to display a non spatial table from an ORACLE Database (accessible trough SDE) using Mapserver. The table includes two fields X and Y that contain coordinates, representing point features. In ArcGIS it is possible to create an event layer from X/Y data. Is there anything comparable using mapserver? When asking in the IRC channel, alienbrain told me that it's no problem to display X/Y data using mapscript, but what I need is a WMS to be used in mapbender. Can this be done? If yes, what is the correct mapfile syntax? Best regards Johannes From assefa at DMSOLUTIONS.CA Tue Oct 2 07:05:17 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Tue, 2 Oct 2007 10:05:17 -0400 Subject: flash swf polygon highlight In-Reply-To: <46FC051C.8050503@locationinc.com> Message-ID: Shannon, I have entered a bug on it http://trac.osgeo.org/mapserver/ticket/2336 and will add the instances names. If you could cc yourself to that bug and possibly help with tests/input, that would be great. Best Regards, Shannon Scott wrote: > Anyone with interest, > I have made limited progress on this issue. > It turns out that the polygons are created in the swf output as > instances of object Button. These button instances do not have instance > names associated with them so they cannot be referenced in ActionScript > ( I guess ). > I am trying to alter the mapswf.c to add names to the button instances. > I am not a c developer, so I am struggling. > Any help or advice would be greatly appreciated. > Thank you. > Shannon > > Shannon Scott wrote: >> Hello, >> I have a flash map. I have built an application so that when the >> person mouses over the map - the highlighted polygon ( under mouse ) >> will highlight part of the web page - with corresponding information. >> I would like to also make it so when the web page is moused over the >> respective polygon will also become highlighted. I am able to access >> the polygon attributes through the Element array. >> Is there a way to highlight the polygon using actionscript - if I know >> the Element array index number? >> >> Any help or pointers are appreciated. >> Thank you. >> Shannon >> > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From carpio1 at GMAIL.COM Tue Oct 2 07:33:07 2007 From: carpio1 at GMAIL.COM (Antonio Fdez Carpio) Date: Tue, 2 Oct 2007 16:33:07 +0200 Subject: Tomcat and connection OGR:OCI Windows Message-ID: I have installed Tomcat 5.5 and I want to execute mapserver in Tomcat standalone (without Apache). I have copied c:/ms4w/Apache/cgi-bin to /webapps/Root/WEB-INF/cgi. I have continued all the steps and I have the correct error message http://localhost/cgi-bin/mapserv.exe The problem goes when in my file .map: CONNECTIONTYPE OGR CONNECTION 'OCI:user/password at sid' This is the message: msOGRFileOpen(): OGR error. Open failed for OGR connection. File not found or unsupported format Can anyone help me?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ml.dje at GEOCONTENT.DE Tue Oct 2 07:44:48 2007 From: ml.dje at GEOCONTENT.DE (Dirk Jesko) Date: Tue, 2 Oct 2007 16:44:48 +0200 Subject: Railway symbol not working with MS5 / AGG Message-ID: Hello, I just updated to Mapserver 5 and activated AGG for the output. Unfortunately, the railway symbol as described in http://mapserver.gis.umn.edu/docs/howto/cartosymbols does not work anymore. Is there another way to create such a symbol with the new Mapserver? Regards, Dirk From warmerdam at POBOX.COM Tue Oct 2 07:54:30 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 2 Oct 2007 07:54:30 -0700 Subject: TIFF/TFW fails in v5.0 In-Reply-To: <200710020846.53176.jorn@spacetec.no> Message-ID: On 10/1/07, J?rn Vegard R?snes wrote: > Hi all, > > I have just migrated from Mapserver-4.9/FWTools to > Mapserver-5.0/FWTools-1.3.7. > > In my map file I have some TIFF files with .TFW (world file). > > The problem is that mapserv returns: > "msDrawMap(): Image handling error. Failed to draw layer named > 'TROMS_LARGE'. > msDrawRaster(): Image handling error. Unrecognized or unsupported image > format drawEPP(): Image handling > error. /srv/www/htdocs/konserv/konservs1a/data/TROMS_LARGE.tif is not an EPPL > file." J?rn, I don't know what the problem is. Does gdalinfo work on the same file? I'd like to work out what has changed. Perhaps you could file a bug with all the details needed for me to reproduce? Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From warmerdam at POBOX.COM Tue Oct 2 08:00:32 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Tue, 2 Oct 2007 08:00:32 -0700 Subject: Transparency in JPGs on windows In-Reply-To: Message-ID: On 10/2/07, Gabe wrote: > Hi > > > We are running several instances of mapserver on Linux and Windows. > > I have some maps that display a tiled aerial photography layer and some > other vector layers. The vector layers are polygons displayed using a > symbol with a transparent background. While the photography is switched off > the map is produced as a png and all works as expected. However when the > photography layer is on (and the image is produced as a jpg) the vector > layers no longer have any transparency and use instead the map background > colour. > > That happens on the windows boxes but not on the linux boxes. The > installations are as similar as possible and this effect has been consistent > since about mapserver 4.8 (now using 4.10.2 and 5.0.0) > > Is there a fix for this ? Gabe, JPEG files do not support transparency so as long as the output format is JPEG there is no way to return files with transparent areas. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent From flavio at TYDAC.CH Tue Oct 2 08:08:36 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Tue, 2 Oct 2007 17:08:36 +0200 Subject: Railway symbol not working with MS5 / AGG In-Reply-To: <47025960.60404@geocontent.de> Message-ID: Hi Dirk cartoline is not really useful anymore with AGG. you can create it the normal way (better as below using STYLES, once the black line below the the white dashed on top): LAYER NAME "Bahn" GROUP "teleatlas" TYPE LINE MINSCALE 0 MAXSCALE 140000 STATUS ON DATA teleatlas/topo/topography_railways_polyline CLASS COLOR 0 0 0 SYMBOL "continue" SIZE 2 OVERLAYSYMBOL "dashed-line-medium" OVERLAYSIZE 1 OVERLAYCOLOR 255 255 255 END END Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Dirk Jesko To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 2 Oct 2007 16:44:48 +0200 Subject: [UMN_MAPSERVER-USERS] Railway symbol not working with MS5 / AGG > Hello, > > I just updated to Mapserver 5 and activated AGG for the output. > Unfortunately, the railway symbol as described in > http://mapserver.gis.umn.edu/docs/howto/cartosymbols does not work > anymore. > > Is there another way to create such a symbol with the new Mapserver? > > > Regards, > Dirk From arevaco90 at YAHOO.ES Tue Oct 2 08:27:31 2007 From: arevaco90 at YAHOO.ES (=?UTF-8?Q?Juan_Ar=C3=A9valo?=) Date: Tue, 2 Oct 2007 08:27:31 -0700 Subject: GetfeatureInfo as WMS Message-ID: Hi everyone, I installed my mapserver as a WMS server. The getfeatureinfo operation is working for gvSIG and I get the gml with the attributes, however the same server doesn?t work for UDIG or ArcGIS, I get the layers but when I try to use the info-tool it shows me the template.html (the one that I got from mapserver?s website) but no the attributes. My mapfile looks like: WEB TEMPLATE "D:\ms4w\maps\etc\template.html" IMAGEPATH "D:\ms4w\tmp" IMAGEURL "/tmp/" LOG "D:/ms4w/mapserver.txt" METADATA "wms_metadataurl_format" "text/html" "wms_feature_info_mime_type" "text/html" LAYER NAME provincias TYPE LINE CONNECTIONTYPE oraclespatial CONNECTION "ap_visor/hjj at BDSDE" DATA "SHAPE FROM (SELECT OBJECTID, SHAPE, COD_ENT, PROVINCIA FROM CAR_TERRMG.DA3_100) USING UNIQUE OBJECTID" DUMP TRUE DEBUG ON PROCESSING "CLOSE_CONNECTION=DEFER" TRANSPARENCY ALPHA PROJECTION "init=epsg:23030" "init=epsg:4230" "init=epsg:4324" "init=epsg:32629" "init=epsg:32630" END TOLERANCE 3 TOLERANCEUNITS PIXELS TEMPLATE "D:\ms4w\maps\etc\template.html" CLASSITEM 'PROVINCIA' LABELMINSCALE 8000 LABELMAXSCALE 200001 CLASS NAME 'Provincias' STYLE SYMBOL "linie-gestr4" SIZE 1 COLOR 0 0 0 END #STYLE END METADATA "wms_title" "Provincias" "wms_keywordlist" "WMS Calidad" "wms_srs" "EPSG:23029 EPSG:23030 EPSG:4230 EPSG:4324 EPSG:4326" "wms_extent" "101003 3816667 628642 4288082" WMS_FEATURE_INFO_MIME_TYPE 'text/html' "wms_dataurl_format" "image/png" "wms_metadataurl_format" "text/html" "gml_featureid" "OBJECTID" "gml_include_items" "PROVINCIA" END END Any ideas on how to solve it? I read some posts about possible solutions for the problem but no joy so far!!! Thanks very much!!:)- Juan Ar?valo -- View this message in context: http://www.nabble.com/GetfeatureInfo-as-WMS-tf4549090.html#a12981534 Sent from the Mapserver - User mailing list archive at Nabble.com. From Tom.Kralidis at EC.GC.CA Tue Oct 2 13:13:42 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 2 Oct 2007 16:13:42 -0400 Subject: WMS Server: Filtering Raster/Vector data based on request params Message-ID: MapServer WMS Server does not natively support the filter parameter straight from a KVP style request. You can, however, send a GetMap request with an SLD documet, which can contain a Filter expression. ..Tom ________________________________ From: UMN MapServer Users List on behalf of Jeremy Nix Sent: Tue 04-Sep-07 14:46 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] WMS Server: Filtering Raster/Vector data based on request params Is it possible to submit a GetMap request that performs a filtering mechanism on the fly? In Geoserver, it is possible to pass an additional parameter "FILTER" that accepts an OGC formatted filter string where it is feasible to do commands like "PropertyIsEqualTo". I have a large shapefile that I built using the MosaicIndexBuilder from the Geoserver project. The image files that make up this shapefile are not uniform in size, density, or color model. These images have surrounding borders and legends that will overlap other images. If we were dealing with only a handful of images I would set up the individual files separately as different layers. As it is, we have over 100K images that fit this profile, so we've opted to go with the shapefile solution. As the images have been named using specific naming conventions, we wanted to see if we could pass a request parameter to do something like this: FILTER=locationFILENAME Is this possible. If not, does anyone have a suggestion on how I can implement this. I was worried about the negative performance that would most likely be involved with have a map file that consisted of 100K+ layers for all of our image files. Thanks in advance for any help. -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 From ed at TOPOZONE.COM Tue Oct 2 13:27:14 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Tue, 2 Oct 2007 16:27:14 -0400 Subject: WMS Server: Filtering Raster/Vector data based on request params In-Reply-To: <46DDA800.30506@sfsltd.com> Message-ID: Jeremy - I'll defer to Tom and others on the filtering questions, but I hope you don't really intend to have a map file with over 100,000 layers! I am assuming that those are not 100,000 logically separate layers but rather a small number of layers each of which is represented by a large number of individual image files. If that's the case, you need to consider using a TILEINDEX mechanism to logically group images together. The images in a TILEINDEX layer do not need to be "uniform in size, density, or color model" - they are just a collection of raster images that are, for the purposes of your application, a single logical set. If that is not suitable for you, then I would recommend you consider creating (in an automated way) a large number of small mapfiles, and using some logic in constructing your MapServer request to direct each request to the small mapfile appropriate to that request. If you do indeed have a scenario in which only one image is ever used in a request, then you might actually want to have 100,000 mapfiles, each with one layer. That will not be a performance problem, but 100,000 layers in one mapfile will give you some serious performance challenges. - Ed -- Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 Phone: (978) 251-4242 Fax: (978) 251-1396 ed at topozone.com > From: Jeremy Nix > Organization: Southwest Financial Services, LTD. > Reply-To: Jeremy Nix > Date: Tue, 4 Sep 2007 14:46:24 -0400 > To: > Subject: [UMN_MAPSERVER-USERS] WMS Server: Filtering Raster/Vector data based > on request params > > I was worried about the negative performance that would > most likely be involved with have a map file that consisted of 100K+ > layers for all of our image files. From Steve.Lime at DNR.STATE.MN.US Tue Oct 2 22:01:21 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 3 Oct 2007 00:01:21 -0500 Subject: Conditional IMAGETYPE possible w/ CGI? Message-ID: Dave: I handle this on the client-side by changing the imagetype (in 5.0 this would be done using &map.imagetype=JPEG or map.imagetype=PNG) as necessary just before submitting the request. Here's a site that does just that: http://www.dnr.state.mn.us/maps/fom/mapper.html Only when the orthophotos are on do I request jpegs. Otherwise it's a gif. Steve >>> Dave Fuhry 09/17/07 1:11 PM >>> I'm using CGI mapserver, and would like it to return JPEGs when an ortho layer is active, and 8-bit PNGs otherwise. The CGI reference makes no reference of an exposed IMAGETYPE or equivalent parameter. Variable substitution in the mapfile (IMAGETYPE "%param%") doesn't seem to work. Are there any easy ways to conditionally specify the IMAGETYPE using CGI mapserver, or will I have to preprocess the mapfile? Thanks, Dave Fuhry From flavio at TYDAC.CH Tue Oct 2 23:20:46 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 3 Oct 2007 08:20:46 +0200 Subject: Terminology Cleanup - SCARY Message-ID: Hi Steve I was reading the section about "Terminology Cleanup" (MS RFC 26) seeing that some terms such as MINSCALE will be replaced by ugly terms like MinScaleDenom ... Someone really being picky about terms there. As there is no such thing as a scale on screen I'd suggest to call it PseudoMinScaleDenom to be really finicky about that ;-) ... What I however really hope for, is that the old and completely understandable terms will be supported forever. I am not keen to go and have to adopt hundreds and hundreds of MapFiles just because someone out there is picky about terms. And I am sure lots of users out there agree with me. So PLEASEEEEEEEEEEEE support the old terms forever as stated as option in MS RFC 26. Should this become a new RFC? Upwards Compatibility Assurance? Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From Todd.Harris at LANDGATE.WA.GOV.AU Wed Oct 3 01:07:46 2007 From: Todd.Harris at LANDGATE.WA.GOV.AU (Todd Harris) Date: Wed, 3 Oct 2007 16:07:46 +0800 Subject: feature_count problem. Message-ID: Hi All, I am having trouble getting Gaia to return more that one GetFeatureInfo result. Including "feature_count" is successful in the GetFeatureInfo web browser url request but I have not been able to locate any info on how (if possible) to include "feature_count" in a mapfile to allow Gaia to return more than one result. Any assistance would be greatly appreciated. Regards Todd This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate?s liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Wed Oct 3 02:41:21 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Wed, 3 Oct 2007 11:41:21 +0200 Subject: MS 5.0 crashes on pdf output, 4.10.2 is OK In-Reply-To: <47015D09.8040704@o2.pl> Message-ID: I've posted a patch that solves this issue here: http://trac.osgeo.org/mapserver/ticket/2338 Please let me know if it works. Umberto On 10/1/07, Maciej Sieczka wrote: > MS 5.0 crashes on a map file with output type set as: > > IMAGETYPE pdf > OUTPUTFORMAT > NAME pdf > DRIVER pdf > END > > > > Examples: > > ./shp2pdf -m pdf.map -o pdf_ms5.pdf > *** glibc detected *** free(): invalid next size (fast): > 0x08254f00 *** > > ./shp2img -m pdf.map -o pdf_ms5.pdf > *** glibc detected *** free(): invalid next size (fast): > 0x08179608 *** > > The same map file works OK with shp2img and shp2pdf from MS > 4.10.2. > > Both MS 4.10.2 and 5.0 built and running against the same > libraries, on the same machine. Both source codes were > configured with exactly the same switches. > > Ubuntu Dapper 32bit, using PDFLib-Lite 7.0.2. If more > details are needed please let me know. > > Maciek > From rdmailings at DUIF.NET Wed Oct 3 02:43:01 2007 From: rdmailings at DUIF.NET (Richard Duivenvoorde) Date: Wed, 3 Oct 2007 11:43:01 +0200 Subject: 'straightened' roads and projection Message-ID: Hi List, my 'problem": I've a set of roads in a normal coordinate system. I've got an algorithm to 'stretch up' these road (points) so they can be viewed more easily. A sort of symbolisation. The roads are seen as horizontal lines, every x meter road is one pixel on the (symbolic) map. The (call it 'reprojected') data is in a postgis database). What's the easiest/best way to view this 'maps' via mapserver? I want to be able to click on road-segments to get featureinfo of them, and I want to be able to do classification on the segments. I'm aware of the fact that the hardest part is the 'reprojection' of the roads. I'm uncertain if I should re project this stuff in the normal (metric) coordinate system, or I should 'pixelize/rasterize' it. And IF I rasterize them, what kind of 'projection' I should use then, it sounds like a raster then with a 1:1 world file, but I do not have a real raster...? Any ideas, or pointers to information will be appreciated; I thought of an article about serving rontgen or dna- images using mapserver which is near I think, but I can't find it anymore. TIA Richard Duivenvoorde From mikesaunt at GMAIL.COM Wed Oct 3 03:45:27 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Wed, 3 Oct 2007 11:45:27 +0100 Subject: Any help appreciated!! - Fwd: 5.0 - use of qstring_validation_pattern for attribute queries In-Reply-To: <75b4b93e0709280459p4d34d96gfef096bc72c6a5e6@mail.gmail.com> Message-ID: Hi All For completeness I thought I'd let people know - I've got this solved now - I wasn't on the 5.0 release version (doh!) and map file is like this to let any query through METADATA qstring_validation_pattern '.' END Thanks Mike On 28/09/2007, Umberto Nicoletti wrote: > > Try: > > /.*/ > > On 9/28/07, Mike Saunt wrote: > > Hi All > > > > I sent this out earliler in the week - has anyone used a 'qstring' in > > MapServer 5.0 where the pattern should be able to match any string? I > can't > > seem to get it to work even though I get messages back such as Failed to > > parse expression: Mendip = Mendip msyyparse(): Expression parser error. > > parse error msEvalExpression: Expression parser error. > > > > Would there be any examples in the test cases / data etc? > > > > Any help appreciated!! > > Cheers > > Mike > > > > > > Hi All > > > > I was wondering whether anyone has an example of the METADATA key for > > qstring_validation_pattern that is required for v5.0 layers that are to > be > > attribute queried? > > > > I would like to be able to accept any string (as through my app you > can't > > inject the values) > > > > I've tried the following qstring_validation_pattern /^[0-9]*$/ and > > qstring_validation_pattern '.' but neither seem to match (the first > throws a > > symbol definition error): > > > > LAYER > > NAME Ward > > TYPE POLYGON > > STATUS OFF > > CONNECTIONTYPE OGR > > CONNECTION > > "Overlays\CouncilDemocracy\Ward_Boundaries_2004.TAB" > > TOLERANCEUNITS METERS > > METADATA > > qstring_validation_pattern '.' > > END > > CLASS > > STYLE > > COLOR -1 -1 -1 > > END > > STYLE > > OUTLINECOLOR 0 0 0 > > WIDTH 2 > > END > > END > > END > > > > I've also tried as TYPE QUERY... > > > > Any help would be greatly appreciated > > > > Cheers > > Mike > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ross.elliott at INFOTERRA-GLOBAL.COM Wed Oct 3 04:14:57 2007 From: ross.elliott at INFOTERRA-GLOBAL.COM (Ross Elliott) Date: Wed, 3 Oct 2007 06:14:57 -0500 Subject: Cascading WMS and re-projection Message-ID: If I use a layer that calls a WMS server and I want the resultant map reprojected into an SRS different to that of the cascaded WMS it fails. I think it fails because the re-projection code uses the layer extents to define the re-projection matrix, which works fine for static files but not for a WMS where the returned image is always a different extent. Would I be right in thinking that a fix would be to use the bbox of the requested map rather than the layer extent? Hopefully this makes sense to someone other than me. Ross Elliott From traviskirstine at GMAIL.COM Wed Oct 3 05:19:13 2007 From: traviskirstine at GMAIL.COM (Travis Kirstine) Date: Wed, 3 Oct 2007 08:19:13 -0400 Subject: Mapserver 5.0.0 demo sites Message-ID: If anyone has a demo site using mapserver 5.0.0 with AGG I would love to check it out. Please provide links Many Thanks -- Travis K. Toronto, Canada ------------------------------------------------------------ "She knows there's no success like failure And that failure's no success at all." -Bob Dylan- ------------------------------------------------------------ From flavio at TYDAC.CH Wed Oct 3 05:22:16 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 3 Oct 2007 14:22:16 +0200 Subject: Mapserver 5.0.0 demo sites In-Reply-To: <681116190710030519nf4a70d7u8b6a69edaecbf266@mail.gmail.com> Message-ID: Hi Travis www.ortsplan.ch Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: Travis Kirstine To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 3 Oct 2007 08:19:13 -0400 Subject: [UMN_MAPSERVER-USERS] Mapserver 5.0.0 demo sites > If anyone has a demo site using mapserver 5.0.0 with AGG I would love > to check it out. Please provide links > > Many Thanks > > -- > Travis K. > > Toronto, Canada > ------------------------------------------------------------ > "She knows there's no success like failure > And that failure's no success at all." > -Bob Dylan- > ------------------------------------------------------------ From Josh.Hevenor at DPRA.COM Wed Oct 3 06:03:16 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Wed, 3 Oct 2007 08:03:16 -0500 Subject: Display non spatial table In-Reply-To: Message-ID: I think an OGR connection might do...take a look at http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#introduction ===================================== > > Hello List, > > I'd like to display a non spatial table from an ORACLE Database (accessible > trough SDE) using Mapserver. The table includes two fields X and Y that > contain coordinates, representing point features. In ArcGIS it is possible > to create an event layer from X/Y data. Is there anything comparable using > mapserver? > > When asking in the IRC channel, alienbrain told me that it's no problem to > display X/Y data using mapscript, but what I need is a WMS to be used in > mapbender. Can this be done? If yes, what is the correct mapfile syntax? > > Best regards > > Johannes -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at IPCSWIRELESSINC.COM Wed Oct 3 06:26:57 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 3 Oct 2007 09:26:57 -0400 Subject: Display non spatial table In-Reply-To: A Message-ID: Johannes, I'm not sure which version of Oracle you are using, we're on 10g, however, I was recently in the same position as you. What I found out was that all editions of 10g include some minimal Oracle Spatial capabilities, and it's called "Locator". What this gave me is the ability to create the spatial data right in the database form the X/Y coordinates. All I had to do what make sure that MapServer was compiled with Oracle Spatial support and enter the connection and spatial query directly in my mapfile. The other way to do this is via OGR however there are performance hits going this route as to compared with using actual spatial data from the database. If you need any help setting up your MapServer to use Oracle spatial let me know as I've done it on both Solaris and HostGIS. -----Original Message----- Hello List, I'd like to display a non spatial table from an ORACLE Database (accessible trough SDE) using Mapserver. The table includes two fields X and Y that contain coordinates, representing point features. In ArcGIS it is possible to create an event layer from X/Y data. Is there anything comparable using mapserver? When asking in the IRC channel, alienbrain told me that it's no problem to display X/Y data using mapscript, but what I need is a WMS to be used in mapbender. Can this be done? If yes, what is the correct mapfile syntax? ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From yjacolin at FREE.FR Wed Oct 3 07:54:04 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Wed, 3 Oct 2007 16:54:04 +0200 Subject: GROUP parameter in a mapfile Message-ID: Hi, Is it possible to define two group in the GROUP parameter something like this: LAYER ... GROUP group1,group2 ... END Thanks, In case I can not use more than one group, do you know a workaround to do it? Best regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From stephan.holl at INTEVATION.DE Wed Oct 3 08:01:24 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Wed, 3 Oct 2007 17:01:24 +0200 Subject: PHP-MapScript: QueryByAttribute() Message-ID: Dear MapServer-Users, I am working with php mapscript and try to highlight my search results in the map. I am using an attribute-based search for my queryable layers. Is it possible to search all layers with querybyattribute(), iterate through the results and draw all highlighted features _all_ at once on the map? My tries only highlight the results from the last layer of my iteration. A workarround could be to generate temporary layer which is highlighted like the query-result and add the results in there, but I like to avoid this. Are there any other possibilities to highlight search results of more layers at once? TIA Stephan From tutey at O2.PL Wed Oct 3 09:42:33 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Wed, 3 Oct 2007 18:42:33 +0200 Subject: MS 5.0 crashes on pdf output, 4.10.2 is OK In-Reply-To: <75b4b93e0710030241j4bc87d56g5ba2d4c4111cdc97@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: > I've posted a patch that solves this issue here: > > http://trac.osgeo.org/mapserver/ticket/2338 > > Please let me know if it works. Worked OK! Thanks, Umberto. Maciek From tutey at O2.PL Wed Oct 3 11:10:12 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Wed, 3 Oct 2007 20:10:12 +0200 Subject: pdf output issues: labels garbled and not buffered, lines "broken" Message-ID: Hi, After apllying Umberto's patch for PDF output [1] I'm able to create pdfs with MapServer 5. However, I have the same issues I had with MS 4.10.2. In PDF the national characters in labels are garbled, labels are not buffered and vector lines have some turns not round in PDF while all these look nice and round in PNG. If anybody would like too look into this issue, please compare the attached PDF and PNG, both created with MS 5 shp2img. The PNG is OK, PDF has artifacts. Is it my error or something else? The input shapefile and map file are here [2] (300 KB) if needed. Ubuntu Dapper 32bit, using PDFLib-Lite 7.0.2. If more details are needed please let me know. Cheers, Maciek [1]http://trac.osgeo.org/mapserver/attachment/ticket/2338/2338.patch [2]http://kufaya.googlepages.com/MS_sampledata.zip -------------- next part -------------- A non-text attachment was scrubbed... Name: map.pdf Type: application/pdf Size: 7321 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: map.png Type: image/png Size: 39859 bytes Desc: not available URL: From Steve.Lime at DNR.STATE.MN.US Wed Oct 3 12:33:16 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 3 Oct 2007 14:33:16 -0500 Subject: Terminology Cleanup - SCARY In-Reply-To: Message-ID: Scale does seem to be a FAQ around here and I've experienced confused users in classes and workshops I've taught. So while I (and others) are very used to the mapserver-ish way of doing things it can be a struggle for new folks. Hence the change. That said, there is mapfile-level backwards compatibility with any of the changes in that RFC and there are no plans to stop recognizing those keywords in the future. I would think for that to happen there would have to be other significant changes that would absolutely break things and I don't see that happening. We tried to get anything with the potential to cause heartburn into the 5.0 release. Steve >>> On 10/3/2007 at 1:20 AM, in message , Flavio Hendry wrote: > Hi Steve > > I was reading the section about "Terminology Cleanup" (MS RFC 26) seeing > that some terms such as MINSCALE will be replaced by ugly terms like > MinScaleDenom ... Someone really being picky about terms there. As there > is no such thing as a scale on screen I'd suggest to call it > PseudoMinScaleDenom to be really finicky about that ;-) ... > > What I however really hope for, is that the old and completely > understandable terms will be supported forever. I am not keen to go and > have to adopt hundreds and hundreds of MapFiles just because someone out > there is picky about terms. And I am sure lots of users out there agree > with me. > > So PLEASEEEEEEEEEEEE support the old terms forever as stated as option > in MS RFC 26. Should this become a new RFC? Upwards Compatibility Assurance? > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- From Steve.Lime at DNR.STATE.MN.US Wed Oct 3 12:35:46 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 3 Oct 2007 14:35:46 -0500 Subject: GROUP parameter in a mapfile In-Reply-To: <200710031654.04092.yjacolin@free.fr> Message-ID: It is not possible for a layer to be in more than one group. You could duplicate the layer and assign each copy to a group. If the groups are otherwise mutually exclusive then you wouldn't have the duplicate layers being drawn twice. Steve >>> On 10/3/2007 at 9:54 AM, in message <200710031654.04092.yjacolin at free.fr>, Jacolin Yves wrote: > Hi, > > Is it possible to define two group in the GROUP parameter something like > this: > > LAYER > ... > GROUP group1,group2 > ... > END > > Thanks, > > In case I can not use more than one group, do you know a workaround to do > it? > > Best regards, > > Y. > -- > Yves Jacolin > --- > http://softlibre.gloobe.org From hal at MOBILEGEOGRAPHICS.COM Wed Oct 3 14:36:06 2007 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Wed, 3 Oct 2007 14:36:06 -0700 Subject: Terminology Cleanup - SCARY In-Reply-To: Message-ID: At 8:20 AM +0200 10/3/07, Flavio Hendry wrote: >just because someone out >there is picky about terms. That language makes the Mapserver change sound like pedantic nonsense. I assure you it is not. Someone coming into Mapserver from a cartographic or navigation background looks at "scale" as an axis increasing in one direction, but the old Mapserver terminology turned that axis completely around. I was forever questioning what "smaller scale" and "minimum scale" meant in the documentation--do they mean the real definition, or the Mapserver definition? If you're going to use precise terms from any discipline in a software project for that discipline, the software should honor their meaning, not reverse it. Hal From docterrobert at MSN.COM Wed Oct 3 14:12:50 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Wed, 3 Oct 2007 16:12:50 -0500 Subject: Rasters, TileIndex and Shapefiles - Oh My! Now markers won't display tran In-Reply-To: Message-ID: Nope. I know about that. I'm using Firefox. I know IE7 can handle .png's. I hate IE6 - especially when I'm compensating for that crap browser when I'm using CSS. From: williams at websawyer.com Subject: Re: [UMN_MAPSERVER-USERS] Rasters, TileIndex and Shapefiles - Oh My! Now markers won't display tran Date: Tue, 2 Oct 2007 08:52:12 -0600 To: docterrobert at MSN.COM IE6 will not show a transparent png as transparent, only a transparent gif. Could be a browser problem! On Oct 1, 2007, at 10:39 AM, Christopher Harris wrote:(Problem described on second parapraph.)Alrighty...........it works! What's most exciting is that the problem that I eluded to in my last reply (the markers or points being off a few hundred yards in a circular pattern) has been fixed as a result of all your advice from earlier. I don't know if it was from me using a shapefile to describe the tile index or if it was from me adjusting lines 1 & 4 in the world file to correctly define the x and y map unit/pixel ratio. I'll play around with it and figure it out. I got it working last Friday right before I left work. Thanks a million!Now - one minor issue. The markers that I'm placing all display and show up at the right spots, but they aren't displaying there transparent backgrounds. I'm using .png's, and always there's a black background being displayed. I've double checked in The GIMP and there's definitely no background. I noticed on the Mapscript API in the "Layers" class that there's a member called transparency and that it takes an int value. I know that a lot of the members that say int actually take a constant as defined in the constants section, but none of them work (MS_ON, MS_TRUE, MS_YES, MS_GD_ALPHA) and actual integers like -10 through 10 don't work either. I know the layer's type shouldn't be set to Raster. Here's the code snippets and sections where I define my marker and the layer it is on://Location Marker Layer///////////////////////////////////////////////////////////////////////////////////////////////////////////////////$markerLayer = ms_newLayerObj($map);$markerLayer->set(name, "Marker");$markerLayer->set(type, MS_LAYER_POINT);$markerLayer->set(status, MS_DEFAULT);//Location Marker layer class$markerclass = ms_newClassObj($markerLayer);//Location Marker layer class style$markerstyle = ms_newStyleObj($markerclass);//Sets the size of the marker. The bigger, the badder.......$markerstyle->set(size, 15);///////////////////////////////////////////////////////////////////////////////////////////////////////////////////and$layer=$map->getLayerByName("Marker");$layer->status = MS_DEFAULT;//Loop creates marker points then populates them on the mapfor($i=0; $i<$markerCount; $i++){ //Creates a point so the marker can be drawn $marker[$i] = ms_newPointObj(); //Sets that marker according to respective x,y's $marker[$i]->setXY($mx[$i], $my[$i]); //Gives the location of the symbol to place as a marker $markerstyle->set(symbolname, "data/statesp020/$mi[$i]"); //Draws the point using the map, layer Marker, and the image generated, and the only class it has (Index 0) $marker[$i]->draw($map, $layer, $image, 0, "");}Here's the rest of my php (with the code above in it):The marker count is: $markerCount
";//Map pic width, height parameters//////////////////////////////////////////////////////////////////////////$mapwidth = $_GET['width'];$mapheight = $_GET['height'];//New point object for Zooming$centerpoint = ms_newPointObj();//Taking the center points of the image$centerX = $mapwidth/2;$centerY = $mapheight/2;$centerpoint->setXY($centerX, $centerY);////////////////////////////////////////////////////////////////////////////The zoompoint and zoomscale parameters////////////////////////////////////////////////////////////////////////////$zoompoint = $_GET['zoompoint']; ZOOMPOINT ZOOMS IN ON A PIXEL$zoomscale = $_GET['zoomscale'];////////////////////////////////////////////////////////////////////////////Center Coordinates passed will be in decimal degrees//////////////////////////////////////////////////////////////////////////$x = $_GET['lon1'];$y = $_GET['lat1'];//Create a new recObj with dd extents$extent = ms_newRectObj();//Set those extents$extent->setextent($x-.002, $y-.002, $x+.002, $y+.002);//Set the newly adjusted extent variables$x1 = $extent->minx;$y1 = $extent->miny;$x2 = $extent->maxx;$y2 = $extent->maxy;//Upper left and lower right coordinates//$ULx = $x1;//$ULy = $y2;//$LRx = $x2;//$LRy = $y1;///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////The Map Itself/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////The mapfile path and map file itself$map_path = "/var/www/mapserver/campuscomber/";$map_file = "indexAlt.map";$map = ms_newMapObj($map_path.$map_file);//The size of the window set by mapserver$map->setSize($mapwidth, $mapheight);//The name of the map$map->set(name, "US Universities");$app = $_GET['app'];//The type of image produced depending if request comes from Wap, Kiwi, or Webcomberif($app=="app"){ $map->selectOutputFormat("GIF"); //Sets the output format type $map->outputformat->setOption(name, "gif"); $map->outputformat->setOption(driver, "GD/GIF"); $map->outputformat->setOption(mimetype, "image/gif"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_RGB); $map->outputformat->setOption(extension, "gif");}if($app=="kiwi" || $app=="web"){ $map->selectOutputFormat("PNG"); //Sets the output format type $map->outputformat->setOption(name, "png"); $map->outputformat->setOption(driver, "GD/PNG"); $map->outputformat->setOption(mimetype, "image/png"); $map->outputformat->setOption(imagemode, MS_IMAGEMODE_PC256); $map->outputformat->setOption(extension, "png");}//The color of the background$map->imagecolor->setRGB(140, 140, 140);//Tells where the US Shapefile info and images are located$map->set(shapepath, "/var/www/mapserver/campuscomber/data/statesp020/");//Sets the map projection lat/lon$map->setProjection("+proj=latlong +ellps=GRS80 +datum=NAD83");//sets the EXTENT$map->setExtent($x1, $y1, $x2, $y2);$map->set(units, MS_DD);$map->set(debug, MS_ON);//Web Object which specifies the image path and the image url for the image Maperver generates$map->web->set(imagepath, "/var/www/mapserver/campuscomber/images/");$map->web->set(imageurl, "/mapserver/campuscomber/images/");/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////United States layer///////////////////////////////////////////////////////////////////////////////////////////////////////////////////$us = ms_newLayerObj($map);$us->set(name, "US state polygons");$us->set(type, MS_LAYER_POLYGON);$us->set(status, MS_DEFAULT);$us->set(data, "statesp020");//United States layer class$usclass = ms_newClassObj($us);//United States layer class style$usstyle = ms_newStyleObj($usclass);$usstyle->color->setRGB(240, 230, 140);$usstyle->set(symbol, 0);/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////US Boundaries Layer///////////////////////////////////////////////////////////////////////////////////////////////////////////////////$usbounds = ms_newLayerObj($map);$usbounds->set(name, "US state boundaries");$usbounds->set(type, MS_LAYER_LINE);$usbounds->set(status, MS_DEFAULT);$usbounds->set(data, "statesp020");//US Boundaries layer class$usboundsclass = ms_newClassObj($usbounds);//US Boundaries layer class style$usboundsstyle = ms_newStyleObj($usboundsclass);$usboundsstyle->color->setRGB(50, 50, 50);$usboundsstyle->set(size, 3);$usboundsstyle->set(symbol, 0);$usboundsstyle->set(symbol, 0);/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////University Map Layer (Actually, I don't think we even need this layer - but ehhh, who knows?)///////////////////////////////////////////////////////////////////////////////////////////////////////////////////$university = ms_newLayerObj($map);$university->set(name, "University of Illinois");$university->set(type, MS_LAYER_RASTER);$university->set(status, MS_OFF);$university->set(data, "UofICampusMapAlt.gif");/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Tiled University Map Layer///////////////////////////////////////////////////////////////////////////////////////////////////////////////////$universityTiles = ms_newLayerObj($map);$universityTiles->set(name, "University of Illinois Tiles");$universityTiles->set(type, MS_LAYER_RASTER);$universityTiles->set(status, MS_DEFAULT);$universityTiles->set(tileindex, "u_of_ill.shp");$universityTiles->set(tileitem, "Location");/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Location Marker Layer///////////////////////////////////////////////////////////////////////////////////////////////////////////////////$markerLayer = ms_newLayerObj($map);$markerLayer->set(name, "Marker");$markerLayer->set(type, MS_LAYER_POINT);$markerLayer->set(status, MS_DEFAULT);//Location Marker layer class$markerclass = ms_newClassObj($markerLayer);//Location Marker layer class style$markerstyle = ms_newStyleObj($markerclass);//Sets the size of the marker. The bigger, the badder.......$markerstyle->set(size, 15);/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////$map->zoompoint(1, $centerpoint, $mapwidth, $mapheight, $extent);//Sets the zoom scale for zooming in and out$map->zoomscale($zoomscale, $centerpoint, $mapwidth, $mapheight, $extent);//Draws the image$image=$map->draw();//Gets the Marker Layer$layer=$map->getLayerByName("Marker");$layer->status = MS_DEFAULT;//Loop creates marker points then populates them on the mapfor($i=0; $i<$markerCount; $i++){ //Creates a point so the marker can be drawn $marker[$i] = ms_newPointObj(); //Sets that marker according to respective x,y's $marker[$i]->setXY($mx[$i], $my[$i]); //Gives the location of the symbol to place as a marker $markerstyle->set(symbolname, "data/statesp020/$mi[$i]"); //Draws the point using the map, layer Marker, and the image generated, and the only class it has (Index 0) $marker[$i]->draw($map, $layer, $image, 0, "");}//Produces a url to reference the image by$image_url=$image->saveWebImage();echo $image_url."
";?> Mapserver "University of Illinois" Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it! _________________________________________________________________ Peek-a-boo FREE Tricks & Treats for You! http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Wed Oct 3 22:50:14 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 4 Oct 2007 07:50:14 +0200 Subject: Terminology Cleanup - SCARY In-Reply-To: <4703A82C.5157.008F.0@dnr.state.mn.us> Message-ID: Hi Steve As for example LABELANGLEITEM and LABELSIZEITEM were thrown out in MS 5.0, we will have a some headache moving to 5.0 (go find all the files using in and change them all manually and this during production). Seeing the Scale issues headache was increasing. As said, we have hundreds of MapFiles around, and I find that backward compatibility is crucial. And btw, for non English speaking people "MinScaleDenom" will be far more confusing then "MinScale" (which is to me and to any client I ever met crystal clear). Denom sounds to us more as an after shave as something else (or was it Denim?) ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From pscott at UWC.AC.ZA Wed Oct 3 23:03:34 2007 From: pscott at UWC.AC.ZA (Paul Scott) Date: Thu, 4 Oct 2007 08:03:34 +0200 Subject: Terminology Cleanup - SCARY In-Reply-To: Message-ID: On Thu, 2007-10-04 at 07:50 +0200, Flavio Hendry wrote: > As for example LABELANGLEITEM and LABELSIZEITEM were thrown out in MS > 5.0, we will have a some headache moving to 5.0 (go find all the files > using in and change them all manually and this during production). Awk and sed are your friends? :) --Paul -------------- next part -------------- All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm From tutey at O2.PL Wed Oct 3 23:29:15 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Thu, 4 Oct 2007 08:29:15 +0200 Subject: pdf output issues: labels garbled and not buffered, lines "broken" In-Reply-To: <4703E30C.7080201@neogeo-online.net> Message-ID: Guillaume Sueur wrote: > Hi, It's been a long time since I haven't done some > direct PDF outpout by mapserver... However, I maybe have > a clue. There was by that time a FORMATOPTION > "OUTPUT_TYPE=RASTER" for PDF. In that way, the image was > generated as PNG and included into the PDF. I think that > may solve your problem. Hi Guillaume, Thanks for your reply. I know about the OUTPUT_TYPE=RASTER option. I don't want to use it as it is a raster output as a matter of fact. For raster output PNG is just OK. I was looking for a way to generate a nice vector map (SVG does not look good either). > Usually for creating PDF, I use the php pdf binding to > create a file from scratch and then add images and text > to it. Well still images are raster in that case. > For a map, I double width and height but include > it on its original size to gain resolution. (I guess pure vector PDF could be also smaller than a PDF containing high-res rasters.) The point of my post is that PDF output seems broken - national characters in labels are garbled, labels are not buffered, vector lines disjoined. Is this a bug, a feature or my error? Maciek From umberto.nicoletti at GMAIL.COM Wed Oct 3 23:58:23 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 4 Oct 2007 08:58:23 +0200 Subject: pdf output issues: labels garbled and not buffered, lines "broken" In-Reply-To: <4703DB04.8080208@o2.pl> Message-ID: Maciej, you should open a ticket for this issue and attach the sample data. Regards, Umberto On 10/3/07, Maciej Sieczka wrote: > Hi, > > After apllying Umberto's patch for PDF output [1] I'm able > to create pdfs with MapServer 5. > > However, I have the same issues I had with MS 4.10.2. In PDF > the national characters in labels are garbled, labels are > not buffered and vector lines have some turns not round in > PDF while all these look nice and round in PNG. > > If anybody would like too look into this issue, please > compare the attached PDF and PNG, both created with MS 5 > shp2img. The PNG is OK, PDF has artifacts. Is it my error or > something else? The input shapefile and map file are here > [2] (300 KB) if needed. > > Ubuntu Dapper 32bit, using PDFLib-Lite 7.0.2. If more > details are needed please let me know. > > Cheers, > Maciek > > [1]http://trac.osgeo.org/mapserver/attachment/ticket/2338/2338.patch > [2]http://kufaya.googlepages.com/MS_sampledata.zip > > > From flavio at TYDAC.CH Wed Oct 3 23:57:57 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 4 Oct 2007 08:57:57 +0200 Subject: Terminology Cleanup - SCARY In-Reply-To: <1191477814.6471.19.camel@paul-laptop> Message-ID: Hi Paul This is under a production environment with hundereds of MapFileson different Servers. And those LABELANGLEITEM and LABELSIZEITEM can't just be searched an replaced as they moved from LAYER level to CLASS or even STYLE Level ... And my friend is Bill Gates anyway ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From umberto.nicoletti at GMAIL.COM Thu Oct 4 00:05:48 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 4 Oct 2007 09:05:48 +0200 Subject: pdf output issues: labels garbled and not buffered, lines "broken" In-Reply-To: <4704883B.7000008@o2.pl> Message-ID: > The point of my post is that PDF output seems broken - > national characters in labels are garbled, labels are > not buffered, vector lines disjoined. Is this a bug, a > feature or my error? Probably a bug ;-). There has been considerable effort in support national characters in mapserver lately, although it might not have been ported back to the pdf output writer. Please check that the environment (LANG, LC_*) used by shp2img reflects *exactly* the encoding used to create the dbf/shp files. I.e.: if you created the shp files in UTF-8 and then have the ISO8859-? encoding, when rendering with shp2img it is quite possible that national chars become mangled. Umberto > > Maciek > From yjacolin at FREE.FR Thu Oct 4 01:06:42 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Thu, 4 Oct 2007 10:06:42 +0200 Subject: GROUP parameter in a mapfile In-Reply-To: <4703A8C1.5157.008F.0@dnr.state.mn.us> Message-ID: Hi Steve, Thanks. Is it possible to add this as a new feature? Do you think it could be interesting for everyone? Regards, Y. Le Wednesday 03 October 2007 21:35:46 Steve Lime, vous avez ?crit?: > It is not possible for a layer to be in more than one group. You could > duplicate the layer and assign each copy to a group. If the groups are > otherwise mutually exclusive then you wouldn't have the duplicate layers > being drawn twice. > > Steve > > >>> On 10/3/2007 at 9:54 AM, in message > >>> <200710031654.04092.yjacolin at free.fr>, > > Jacolin Yves wrote: > > Hi, > > > > Is it possible to define two group in the GROUP parameter something like > > this: > > > > LAYER > > ... > > GROUP group1,group2 > > ... > > END > > > > Thanks, > > > > In case I can not use more than one group, do you know a workaround to do > > it? > > > > Best regards, > > > > Y. > > -- > > Yves Jacolin > > --- > > http://softlibre.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org From metlud at YAHOO.IT Thu Oct 4 01:14:37 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Thu, 4 Oct 2007 10:14:37 +0200 Subject: css design pattern for mapping site Message-ID: Hi, does anybody know where to find abstract examples about the layout design of a mapping site? I want to create a three columns web page, first column for navigation command, second for the map e third for filter, all using css and not html tables. Does anybody know where to find material? Of course there are many working mapping sites to analyze, but most of them are very complex... -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlf at ENIRO.DK Thu Oct 4 06:00:49 2007 From: jlf at ENIRO.DK (James Lindstorff) Date: Thu, 4 Oct 2007 08:00:49 -0500 Subject: Python mapscript and AGG Message-ID: Having just compiled and tried out mapserver 5.0 with AGG support in CGI mode (WMS) and being very impressed with the rendering quality I turned to the Python mapscript I use for producing maps for our production environment. Here though I ran into a bit of trouble. I get the following error when doing import mapscript: ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined symbol: _ZN3agg12g_sqrt_tableE I'm having AGG version 2.5 running Debian 64 bit. Anyone having similar problems and a possible solution? From jlf at ENIRO.DK Thu Oct 4 06:10:42 2007 From: jlf at ENIRO.DK (James Lindstorff) Date: Thu, 4 Oct 2007 08:10:42 -0500 Subject: Python mapscript and AGG Message-ID: Having just compiled and tried out mapserver 5.0 with AGG support in CGI mode (WMS) and being very impressed with the rendering quality I turned to the Python mapscript I use for producing maps for our production environment. Here though I ran into a bit of trouble. I get the following error when doing import mapscript: Python 2.4.4 (#2, Apr 25 2007, 22:41:41) [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import mapscript Traceback (most recent call last): File "", line 1, in ? File "/usr/lib/python2.4/site-packages/mapscript.py", line 7, in ? import _mapscript ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined symbol: _ZN3agg12g_sqrt_tableE From umberto.nicoletti at GMAIL.COM Thu Oct 4 06:53:49 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 4 Oct 2007 15:53:49 +0200 Subject: Python mapscript and AGG In-Reply-To: Message-ID: Could you describe the exact steps you used to build python mapscript and the version of swig? Umberto On 10/4/07, James Lindstorff wrote: > Having just compiled and tried out mapserver 5.0 with AGG support in CGI > mode (WMS) and being very impressed with the rendering quality I turned to > the Python mapscript I use for producing maps for our production > environment. Here though I ran into a bit of trouble. I get the following > error when doing import mapscript: > > ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined > symbol: _ZN3agg12g_sqrt_tableE > > I'm having AGG version 2.5 running Debian 64 bit. > > > Anyone having similar problems and a possible solution? > From jlf at ENIRO.DK Thu Oct 4 07:11:25 2007 From: jlf at ENIRO.DK (James Lindstorff) Date: Thu, 4 Oct 2007 09:11:25 -0500 Subject: Python mapscript and AGG Message-ID: From mapscript/python directory I did the following: SWIG Version 1.3.31 swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i python setup.py install --force /james From jlf at ENIRO.DK Thu Oct 4 07:01:26 2007 From: jlf at ENIRO.DK (James Lindstorff) Date: Thu, 4 Oct 2007 16:01:26 +0200 Subject: Python mapscript and AGG In-Reply-To: <75b4b93e0710040653j8c9aad4oe2d0008d8aad74af@mail.gmail.com> Message-ID: From umberto.nicoletti at GMAIL.COM Thu Oct 4 07:19:06 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 4 Oct 2007 16:19:06 +0200 Subject: Python mapscript and AGG In-Reply-To: Message-ID: > Python 2.4.4 (#2, Apr 25 2007, 22:41:41) > [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> import mapscript > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.4/site-packages/mapscript.py", line 7, in ? > import _mapscript > ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined > symbol: _ZN3agg12g_sqrt_tableE > This is using mapscript. Building means: python setup.py build python setup.py install version of swig (type swig -version on a console)? Umberto From hobu.inc at GMAIL.COM Thu Oct 4 07:36:49 2007 From: hobu.inc at GMAIL.COM (Howard Butler) Date: Thu, 4 Oct 2007 09:36:49 -0500 Subject: Python mapscript and AGG In-Reply-To: Message-ID: James, If I recall correctly, this issue is related to AGG not being built with -fPIC. Howard On Oct 4, 2007, at 8:10 AM, James Lindstorff wrote: > Having just compiled and tried out mapserver 5.0 with AGG support > in CGI > mode (WMS) and being very impressed with the rendering quality I > turned to > the Python mapscript I use for producing maps for our production > environment. Here though I ran into a bit of trouble. I get the > following > error when doing import mapscript: > > Python 2.4.4 (#2, Apr 25 2007, 22:41:41) > [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import mapscript > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.4/site-packages/mapscript.py", line 7, in ? > import _mapscript > ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined > symbol: _ZN3agg12g_sqrt_tableE From jlf at ENIRO.DK Thu Oct 4 07:23:23 2007 From: jlf at ENIRO.DK (James Lindstorff) Date: Thu, 4 Oct 2007 16:23:23 +0200 Subject: Python mapscript and AGG In-Reply-To: <75b4b93e0710040719i6537a519w146a8a9c2c32b2b3@mail.gmail.com> Message-ID: From yjacolin at FREE.FR Thu Oct 4 08:17:00 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Thu, 4 Oct 2007 17:17:00 +0200 Subject: SLD issues Message-ID: Hi list, I am trying to setup a SLD file for a layer. I create a SLD file: geosignal xxx 0.6 Which the aims is to change the opacity. My url is: http://www2.xxxx.com/cgi-bin/mapserv_wms? LAYERS=orthophoto,geosignal,sncf& TRANSPARENT=true& FORMAT=jpeg&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetMap&EXCEPTIONS=application-vnd.ogc.se_inimage& STYLES=,,&SLD=http://www2.xxx.com/lpdi/sld/geosignal.xml& SRS=EPSG:27582& BBOX=579452.7126630786,2420705.106583846,608239.3637849536,2441871.7618205184& WIDTH=680&HEIGHT=500 My geosignal layer is not transparent. Do I need to do something to mapserver side (build, configuration)? I didn't change anything in my mapfile. Am I right? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From jlf at ENIRO.DK Thu Oct 4 07:59:14 2007 From: jlf at ENIRO.DK (James Lindstorff) Date: Thu, 4 Oct 2007 16:59:14 +0200 Subject: Python mapscript and AGG In-Reply-To: A Message-ID: Tried changing the makefile in AGG so it's compiled with -O3 -I/usr/X11R6/include -L/usr/X11R6/lib -fPIC But the effect seems to be the same. Mapserver configuration is : MapServer is now configured for -------------- Compiler Info ------------- C compiler: gcc -O2 -fPIC -Wall C++ compiler: g++ -O2 -fPIC -Wall Debug: Generic NINT: Threading support: -DUSE_THREAD -------------- Renderer Settings --------- zlib support: -DUSE_ZLIB png support: jpeg support: iconv support: -DUSE_ICONV AGG support: -DUSE_AGG AGG Freetype support: agg_font_freetype.o Ming(flash) support: PDFLib support: -------------- Data Format Drivers ------- native tiff support: PostGIS support: Proj.4 support: -DUSE_PROJ EPPL7 support: -DUSE_EPPL ArcSDE support: OGR support: GDAL support: -DUSE_GDAL GEOS support: Oracle Spatial support: FastCGI support: -------------- OGC Services -------------- WMS Server: -DUSE_WMS_SVR WMS Client: -DUSE_WMS_LYR WFS Server: WFS Client: -DUSE_WMS_LYR WCS Server: SOS Server: -------------- MapScript ----------------- PHP MapScript: no /james -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Howard Butler Sent: 4. oktober 2007 16:37 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG James, If I recall correctly, this issue is related to AGG not being built with -fPIC. Howard On Oct 4, 2007, at 8:10 AM, James Lindstorff wrote: > Having just compiled and tried out mapserver 5.0 with AGG support > in CGI > mode (WMS) and being very impressed with the rendering quality I > turned to > the Python mapscript I use for producing maps for our production > environment. Here though I ran into a bit of trouble. I get the > following > error when doing import mapscript: > > Python 2.4.4 (#2, Apr 25 2007, 22:41:41) > [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2 > Type "help", "copyright", "credits" or "license" for more information. >>>> import mapscript > Traceback (most recent call last): > File "", line 1, in ? > File "/usr/lib/python2.4/site-packages/mapscript.py", line 7, in ? > import _mapscript > ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined > symbol: _ZN3agg12g_sqrt_tableE From tutey at O2.PL Thu Oct 4 13:56:11 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Thu, 4 Oct 2007 22:56:11 +0200 Subject: pdf output issues: labels garbled and not buffered, lines "broken" In-Reply-To: <75b4b93e0710040005l208e6073k10372f2f7c563b08@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: >> The point of my post is that PDF output seems broken - >> national characters in labels are garbled, labels are >> not buffered, vector lines disjoined. Is this a bug, a >> feature or my error? > Probably a bug ;-). There has been considerable effort in support > national characters in mapserver lately, although it might not have > been ported back to the pdf output writer. > > Please check that the environment (LANG, LC_*) used by shp2img > reflects *exactly* the encoding used to create the dbf/shp files. > I.e.: if you created the shp files in UTF-8 and then have the > ISO8859-? encoding, when rendering with shp2img it is quite possible > that national chars become mangled. The DBF comming with SHP is UTF-8, and all my locale is pl_PL.UTF-8. Maciek From tutey at O2.PL Thu Oct 4 13:56:21 2007 From: tutey at O2.PL (Maciej Sieczka) Date: Thu, 4 Oct 2007 22:56:21 +0200 Subject: pdf output issues: labels garbled and not buffered, lines "broken" In-Reply-To: <75b4b93e0710032358u1d60c43oce0911e44b55d909@mail.gmail.com> Message-ID: Umberto Nicoletti wrote: > Maciej, > you should open a ticket for this issue and attach the sample data. Done [1]. [1]http://trac.osgeo.org/mapserver/ticket/2344 Maciek From Steve.Lime at DNR.STATE.MN.US Thu Oct 4 20:59:30 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 4 Oct 2007 22:59:30 -0500 Subject: GROUP parameter in a mapfile Message-ID: I'd like to learn more about a use case that would demonstrate the need. I think in particular it could complicate the already nasty task of building tree'd legends from mapfiles. One idea might be to treat the group property as a regex instead of straight text. So you'd do: GROUP 'somegroup1|somegroup2' or GROUP /somegroup1|somegroup2/ or something like that. That could cause some funky problems in cases where folks had group names that were substrings of one another. Steve >>> Jacolin Yves 10/04/07 3:06 AM >>> Hi Steve, Thanks. Is it possible to add this as a new feature? Do you think it could be interesting for everyone? Regards, Y. Le Wednesday 03 October 2007 21:35:46 Steve Lime, vous avez ?crit : > It is not possible for a layer to be in more than one group. You could > duplicate the layer and assign each copy to a group. If the groups are > otherwise mutually exclusive then you wouldn't have the duplicate layers > being drawn twice. > > Steve > > >>> On 10/3/2007 at 9:54 AM, in message > >>> <200710031654.04092.yjacolin at free.fr>, > > Jacolin Yves wrote: > > Hi, > > > > Is it possible to define two group in the GROUP parameter something like > > this: > > > > LAYER > > ... > > GROUP group1,group2 > > ... > > END > > > > Thanks, > > > > In case I can not use more than one group, do you know a workaround to do > > it? > > > > Best regards, > > > > Y. > > -- > > Yves Jacolin > > --- > > http://softlibre.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org From Steve.Lime at DNR.STATE.MN.US Thu Oct 4 21:08:38 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 4 Oct 2007 23:08:38 -0500 Subject: Terminology Cleanup - SCARY Message-ID: Forgot about ...ITEM parameters. Those are indeed gone. We did the best we could and 5.0 was the best place to drop parameters altogether. I suppose I could have figured a way to maintain mapfile level compatability for those but at the expense of the maintainability I was looking for in the first place. Since those where lightly used (relative to MINSCALE) away they went. Like I said, while the ...Denom is *official* the old keywords will continue to be supported at the mapfile level. It pays to belong to mapserver-dev, although perhaps we could solicit comments more broadly on RFC's by cc'ing mapserver-users when they are introduced. Steve >>> Flavio Hendry 10/04/07 12:50 AM >>> Hi Steve As for example LABELANGLEITEM and LABELSIZEITEM were thrown out in MS 5.0, we will have a some headache moving to 5.0 (go find all the files using in and change them all manually and this during production). Seeing the Scale issues headache was increasing. As said, we have hundreds of MapFiles around, and I find that backward compatibility is crucial. And btw, for non English speaking people "MinScaleDenom" will be far more confusing then "MinScale" (which is to me and to any client I ever met crystal clear). Denom sounds to us more as an after shave as something else (or was it Denim?) ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- From support at BIZEASSET.COM.AU Thu Oct 4 19:20:41 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Fri, 5 Oct 2007 12:20:41 +1000 Subject: TutorialMapServer Message-ID: Hi All, I have built the site and it is working shows controls nicely, however the map is not displaying just unloaded image icon. Have placed in dlls into bin directory and this appears to be referencing correctly. What could possibly be wrong? Regards, Hayden Fisher Development and Support BizeAsset Pty Ltd support at bizeasset.com.au Mob: (04) 3838 4747 Ph: (07) 3369 2222 Fax: (07) 3369 8883 Toll Free: 1800 836 850 -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at BIZEASSET.COM.AU Thu Oct 4 21:52:58 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Fri, 5 Oct 2007 14:52:58 +1000 Subject: TutorialMapServer mapfile problem Message-ID: Hi All, Figured out that it was a mapfile problem however not sure exactly what's wrong with it. Could someone take a quick gander, any help appreciated. MAP NAME "Zone Samples" SHAPEPATH "C:\Inetpub\wwwroot\TutorialMapServer\Data" SIZE 400 400 STATUS ON EXTENT 1143759 4417539 1146436 4420390 UNITS METERS FONTSET "fonts\fonts.list" WEB IMAGEPATH "C:\Inetpub\wwwroot\TutorialMapServer\temp" IMAGEURL "C:\Inetpub\wwwroot\TutorialMapServer\temp" END SYMBOL NAME "circle" TYPE ellipse FILLED true POINTS 1 1 END END LAYER NAME "compfun" TYPE POLYGON STATUS ON DATA "compfun" CLASS STYLE COLOR 255 235 190 OUTLINECOLOR 0 0 0 SYMBOL 0 END END END LAYER NAME "zone" TYPE POLYGON STATUS ON DATA "zone" CLASSITEM "COD" LABELITEM "NUMLOTT" CLASS EXPRESSION ([COD]=103) STYLE COLOR 230 50 0 OUTLINECOLOR 0 0 0 SYMBOL 0 END END CLASS EXPRESSION ([COD]=105 OR [COD]=106 OR [COD]=107 OR [COD]=108 OR [COD]=102) STYLE COLOR 255 235 230 OUTLINECOLOR 0 0 0 SYMBOL 0 END LABEL COLOR 0 0 0 FONT verdana TYPE TRUETYPE SIZE 7 POSITION CC END END CLASS EXPRESSION ([COD]=109 OR [COD]=101) STYLE COLOR 255 196 171 OUTLINECOLOR 0 0 0 SYMBOL 0 END END CLASS STYLE COLOR 225 225 225 OUTLINECOLOR 0 0 0 SYMBOL 0 END END END LAYER NAME "vestizioni" TYPE LINE STATUS ON DATA "vestizioni" CLASS STYLE COLOR 0 0 0 SYMBOL 0 END END END LAYER NAME "POI" TYPE POINT STATUS ON DATA "POI" LABELITEM "POI_TIME" CLASS SIZE 10 STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 SYMBOL "circle" END TEXT ([POI_USER], [POI_TIME]) LABEL COLOR 255 0 0 FONT verdana TYPE TRUETYPE SIZE 7 POSITION LC WRAP " " END END END END Regards, Hayden Fisher ________________________________ From: Hayden Fisher Sent: Friday, 5 October 2007 12:21 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: TutorialMapServer Hi All, I have built the site and it is working shows controls nicely, however the map is not displaying just unloaded image icon. Have placed in dlls into bin directory and this appears to be referencing correctly. What could possibly be wrong? Regards, Hayden Fisher -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Fri Oct 5 00:06:28 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 5 Oct 2007 09:06:28 +0200 Subject: TutorialMapServer mapfile problem In-Reply-To: Message-ID: Hi, It could be a wrong IMAGEURL parameter value : IMAGEURL "http://localhost/" Y. Le Friday 05 October 2007 06:52:58 Hayden Fisher, vous avez ?crit?: > Hi All, > > > > Figured out that it was a mapfile problem however not sure exactly > what's wrong with it. Could someone take a quick gander, any help > appreciated. > > > > MAP > > NAME "Zone Samples" > > SHAPEPATH "C:\Inetpub\wwwroot\TutorialMapServer\Data" > > SIZE 400 400 > > STATUS ON > > EXTENT 1143759 4417539 1146436 4420390 > > UNITS METERS > > FONTSET "fonts\fonts.list" > > WEB > > IMAGEPATH "C:\Inetpub\wwwroot\TutorialMapServer\temp" > > IMAGEURL "C:\Inetpub\wwwroot\TutorialMapServer\temp" > > END > > > > SYMBOL > > NAME "circle" > > TYPE ellipse > > FILLED true > > POINTS > > 1 1 > > END > > END > > > > LAYER > > NAME "compfun" > > TYPE POLYGON > > STATUS ON > > DATA "compfun" > > CLASS > > STYLE > > COLOR 255 235 190 > > OUTLINECOLOR 0 0 0 > > SYMBOL 0 > > END > > END > > END > > > > LAYER > > NAME "zone" > > TYPE POLYGON > > STATUS ON > > DATA "zone" > > CLASSITEM "COD" > > LABELITEM "NUMLOTT" > > CLASS > > EXPRESSION ([COD]=103) > > STYLE > > COLOR 230 50 0 > > OUTLINECOLOR 0 0 0 > > SYMBOL 0 > > END > > END > > CLASS > > EXPRESSION ([COD]=105 OR [COD]=106 OR > [COD]=107 OR [COD]=108 OR [COD]=102) > > STYLE > > COLOR 255 235 230 > > OUTLINECOLOR 0 0 0 > > SYMBOL 0 > > END > > LABEL > > COLOR 0 0 0 > > FONT verdana > > TYPE TRUETYPE > > SIZE 7 > > POSITION CC > > END > > END > > CLASS > > EXPRESSION ([COD]=109 OR [COD]=101) > > STYLE > > COLOR 255 196 171 > > OUTLINECOLOR 0 0 0 > > SYMBOL 0 > > END > > END > > CLASS > > STYLE > > COLOR 225 225 225 > > OUTLINECOLOR 0 0 0 > > SYMBOL 0 > > END > > END > > END > > > > LAYER > > NAME "vestizioni" > > TYPE LINE > > STATUS ON > > DATA "vestizioni" > > CLASS > > STYLE > > COLOR 0 0 0 > > SYMBOL 0 > > END > > END > > END > > > > LAYER > > NAME "POI" > > TYPE POINT > > STATUS ON > > DATA "POI" > > LABELITEM "POI_TIME" > > CLASS > > SIZE 10 > > STYLE > > COLOR 255 0 0 > > OUTLINECOLOR 0 0 0 > > SYMBOL "circle" > > END > > TEXT ([POI_USER], [POI_TIME]) > > LABEL > > COLOR 255 0 0 > > FONT verdana > > TYPE TRUETYPE > > SIZE 7 > > POSITION LC > > WRAP " " > > END > > END > > END > > END > > > > > > > > Regards, > > Hayden Fisher > > ________________________________ > > From: Hayden Fisher > Sent: Friday, 5 October 2007 12:21 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: TutorialMapServer > > > > Hi All, > > > > I have built the site and it is working shows controls nicely, however > the map is not displaying just unloaded image icon. Have placed in dlls > into bin directory and this appears to be referencing correctly. > > > > What could possibly be wrong? > > > > Regards, > > Hayden Fisher -- Yves Jacolin --- http://softlibre.gloobe.org From umberto.nicoletti at GMAIL.COM Thu Oct 4 23:59:40 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Fri, 5 Oct 2007 08:59:40 +0200 Subject: Python mapscript and AGG In-Reply-To: Message-ID: On my Ubuntu 7.04 using the distro supplied agg ( 2.4+20060719-3 ) and latest mapserver from svn python mapscript builds and loads fine. There is probably something wrong with you setup: maybe an old agg version around. This command will report all agg libraries in your system: bash# find / -iname "*libagg*" on mine it says: /usr/lib/pkgconfig/libagg.pc /usr/lib/libaggfontfreetype_pic.a /usr/lib/libaggplatformsdl_pic.a /usr/lib/libagg_pic.a /usr/lib/libagg.a /usr/lib/libaggplatformX11_pic.a /usr/lib/libaggplatformX11.a /usr/lib/libaggplatformsdl.a /usr/lib/libaggfontfreetype.a Note the _pic libraries. Regards, Umberto On 10/4/07, James Lindstorff wrote: > Tried changing the makefile in AGG so it's compiled with > > -O3 -I/usr/X11R6/include -L/usr/X11R6/lib -fPIC > > But the effect seems to be the same. > > Mapserver configuration is : > > MapServer is now configured for > > -------------- Compiler Info ------------- > C compiler: gcc -O2 -fPIC -Wall > C++ compiler: g++ -O2 -fPIC -Wall > Debug: > Generic NINT: > Threading support: -DUSE_THREAD > > -------------- Renderer Settings --------- > zlib support: -DUSE_ZLIB > png support: > jpeg support: > iconv support: -DUSE_ICONV > AGG support: -DUSE_AGG > AGG Freetype support: agg_font_freetype.o > Ming(flash) support: > PDFLib support: > > -------------- Data Format Drivers ------- > native tiff support: > PostGIS support: > Proj.4 support: -DUSE_PROJ > EPPL7 support: -DUSE_EPPL > ArcSDE support: > OGR support: > GDAL support: -DUSE_GDAL > GEOS support: > Oracle Spatial support: > FastCGI support: > > -------------- OGC Services -------------- > WMS Server: -DUSE_WMS_SVR > WMS Client: -DUSE_WMS_LYR > WFS Server: > WFS Client: -DUSE_WMS_LYR > WCS Server: > SOS Server: > > -------------- MapScript ----------------- > PHP MapScript: no > > > /james > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Howard Butler > Sent: 4. oktober 2007 16:37 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Python mapscript and AGG > > James, > > If I recall correctly, this issue is related to AGG not being built > with -fPIC. > > Howard > > On Oct 4, 2007, at 8:10 AM, James Lindstorff wrote: > > > Having just compiled and tried out mapserver 5.0 with AGG support > > in CGI > > mode (WMS) and being very impressed with the rendering quality I > > turned to > > the Python mapscript I use for producing maps for our production > > environment. Here though I ran into a bit of trouble. I get the > > following > > error when doing import mapscript: > > > > Python 2.4.4 (#2, Apr 25 2007, 22:41:41) > > [GCC 4.1.3 20070423 (prerelease) (Debian 4.1.2-4)] on linux2 > > Type "help", "copyright", "credits" or "license" for more information. > >>>> import mapscript > > Traceback (most recent call last): > > File "", line 1, in ? > > File "/usr/lib/python2.4/site-packages/mapscript.py", line 7, in ? > > import _mapscript > > ImportError: /usr/lib/python2.4/site-packages/_mapscript.so: undefined > > symbol: _ZN3agg12g_sqrt_tableE > From yjacolin at FREE.FR Fri Oct 5 00:25:05 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 5 Oct 2007 09:25:05 +0200 Subject: SLD problem Message-ID: Hi list, (don't see my message appear in the mailing list, so I send it again). I am trying to setup a SLD file for a layer. I create a SLD file: geosignal xxx 0.6 Which the aims is to change the opacity. My url is: http://www2.xxxx.com/cgi-bin/mapserv_wms? LAYERS=orthophoto,geosignal,sncf& TRANSPARENT=true& FORMAT=jpeg&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetMap&EXCEPTIONS=application-vnd.ogc.se_inimage& STYLES=,,&SLD=http://www2.xxx.com/lpdi/sld/geosignal.xml& SRS=EPSG:27582& BBOX=579452.7126630786,2420705.106583846,608239.3637849536,2441871.7618205184& WIDTH=680&HEIGHT=500 My geosignal layer is not transparent. Do I need to do something to mapserver side (build, configuration)? I didn't change anything in my mapfile. Am I right? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From yjacolin at FREE.FR Fri Oct 5 00:38:42 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 5 Oct 2007 09:38:42 +0200 Subject: GROUP parameter in a mapfile In-Reply-To: <470570520200008F0000FF5E@co5.dnr.state.mn.us> Message-ID: Hi Steve, I can explain my own purpose. I am using OpenLayer, tilecache and Mapserver in my web application process. Tilecache can create group of layers. It was great, until I tried to export my picture map. In order to do so, I am using a WMS request to get the same map display by OpenLayers. Or I can't use Tilecache groups. So I changed my process and all group are now in the mapfile, something like this: LAYER NAME geosignal GROUP geosignal TYPE RASTER TRANSPARENCY 100 METADATA "wms_title" "geosignal" END END And all the layers inside this group got the GROUP parameter. But some group contains the same layers. Because some of our data is not complete as we got no information in some location, I used one layer where the extent data is complete, this is the geosignal layer, hence I have to repeat this layer in two others groups (orthophoto for instance which the extent is about 1/3 of geosignal). I hope I am clear, english is not my native langage :( Y. Le Friday 05 October 2007 05:59:30 Steve Lime, vous avez ?crit?: > I'd like to learn more about a use case that would demonstrate the need. > I think > in particular it could complicate the already nasty task of building > tree'd legends > from mapfiles. One idea might be to treat the group property as a regex > instead > of straight text. So you'd do: > > GROUP 'somegroup1|somegroup2' or > GROUP /somegroup1|somegroup2/ > > or something like that. That could cause some funky problems in cases > where > folks had group names that were substrings of one another. > > Steve > > >>> Jacolin Yves 10/04/07 3:06 AM >>> > > Hi Steve, > > Thanks. Is it possible to add this as a new feature? Do you think it > could be > interesting for everyone? > > Regards, > > Y. > > Le Wednesday 03 October 2007 21:35:46 Steve Lime, vous avez ?crit : > > It is not possible for a layer to be in more than one group. You could > > duplicate the layer and assign each copy to a group. If the groups are > > otherwise mutually exclusive then you wouldn't have the duplicate > > layers > > > being drawn twice. > > > > Steve > > > > >>> On 10/3/2007 at 9:54 AM, in message > > >>> <200710031654.04092.yjacolin at free.fr>, > > > > Jacolin Yves wrote: > > > Hi, > > > > > > Is it possible to define two group in the GROUP parameter something > > like > > > > this: > > > > > > LAYER > > > ... > > > GROUP group1,group2 > > > ... > > > END > > > > > > Thanks, > > > > > > In case I can not use more than one group, do you know a workaround > > to do > > > > it? > > > > > > Best regards, > > > > > > Y. > > > -- > > > Yves Jacolin > > > --- > > > http://softlibre.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org From yjacolin at FREE.FR Fri Oct 5 01:57:41 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 5 Oct 2007 10:57:41 +0200 Subject: Problem with webservice Message-ID: Hi list, (don't see my message appear in the mailing list, so I send it again, and again, does some word are forbidden?). I am trying to setup a SLD file for a layer. I create a SLD file: geosignal xxx 0.6 Which the aims is to change the opacity. My url is: http://www2.xxxx.com/cgi-bin/mapserv_wms? LAYERS=orthophoto,geosignal,sncf& TRANSPARENT=true& FORMAT=jpeg&SERVICE=WMS&VERSION=1.1.1& REQUEST=GetMap&EXCEPTIONS=application-vnd.ogc.se_inimage& STYLES=,,&SLD=http://www2.xxx.com/lpdi/sld/geosignal.xml& SRS=EPSG:27582& BBOX=579452.7126630786,2420705.106583846,608239.3637849536,2441871.7618205184& WIDTH=680&HEIGHT=500 My geosignal layer is not transparent. Do I need to do something to mapserver side (build, configuration)? I didn't change anything in my mapfile. Am I right? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From jansen at NIEUWLAND.NL Fri Oct 5 02:23:37 2007 From: jansen at NIEUWLAND.NL (Jan Jansen) Date: Fri, 5 Oct 2007 11:23:37 +0200 Subject: getFeatureInfo problem Message-ID: Hello list, I have a problem with the WMS getFeatureInfo command. I have an Oracle Spatial POINT Layer. GetFeatureInfo works fine, but when I zoom in to a certain scale, the request doesn't return any results. request: http://his-kust.ontwikkel.gisinternet.nl/cgi-bin/mapserv?map=/home/geodata/project_data/his/mapfiles/his_server_mapbuilder.map&reeks_id=2&stormfilter=1&&VERSION=1.1.0&REQUEST=GetFeatureInfo&LAYERS=kustduinsig&SRS=EPSG:28992&BBOX=87127.77696385694,469462.49761573685,87895.82254419167,469994.2214790455&WIDTH=650&HEIGHT=450&INFO_FORMAT=text/html&FEATURE_COUNT=1&QUERY_LAYERS=kustduinsig&X=322&Y=220 Tolerance in mapfile is set to a high level (20). The X Y pixel location is exactly on the point (cross checked it with the getMap request) Any idea's? Thanks in advance, Kind regards, Jan Jansen -------------- next part -------------- An HTML attachment was scrubbed... URL: From pscott at UWC.AC.ZA Fri Oct 5 06:29:03 2007 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri, 5 Oct 2007 15:29:03 +0200 Subject: Mapserver with memcached Message-ID: Has anyone used mapserver with memcached? What I am thinking of doing is either: 1. Caching resultsets from PostGIS before mapserver gets them OR 2. Caching the actual output from mapserver with a relatively low TTL. Anyone done something similar? Any problems? Any successes? --Paul -------------- next part -------------- All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm From assefa at DMSOLUTIONS.CA Fri Oct 5 06:41:40 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 5 Oct 2007 09:41:40 -0400 Subject: SLD issues In-Reply-To: <200710041717.01350.yjacolin@free.fr> Message-ID: Jacolin Yves wrote: > Hi list, > > I am trying to setup a SLD file for a layer. I create a SLD file: > > > geosignal > > xxx > > > > > > 0.6 > > > > > > > > Which the aims is to change the opacity. > > My url is: > http://www2.xxxx.com/cgi-bin/mapserv_wms? > LAYERS=orthophoto,geosignal,sncf& > TRANSPARENT=true& > FORMAT=jpeg&SERVICE=WMS&VERSION=1.1.1& > REQUEST=GetMap&EXCEPTIONS=application-vnd.ogc.se_inimage& > STYLES=,,&SLD=http://www2.xxx.com/lpdi/sld/geosignal.xml& > SRS=EPSG:27582& > BBOX=579452.7126630786,2420705.106583846,608239.3637849536,2441871.7618205184& > WIDTH=680&HEIGHT=500 > > My geosignal layer is not transparent. Do I need to do something to mapserver > side (build, configuration)? I didn't change anything in my mapfile. Am I > right? > > Regards, > > Y. You are right that there should not be any changes needed in the map file. Make sure that you have built MapServer with OGR support (USE_OGR). The SLD seems to be valid from what I can see. From your settings it should have the same effect as setting the OPACITY value on the geosignal layer to 60. Does setting the opacity value manually in your layer and not using the sld gives you the expected result ? -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From crschmidt at METACARTA.COM Fri Oct 5 06:48:10 2007 From: crschmidt at METACARTA.COM (Christopher Schmidt) Date: Fri, 5 Oct 2007 09:48:10 -0400 Subject: Mapserver with memcached In-Reply-To: <1191590943.6761.11.camel@paul-laptop> Message-ID: On Fri, Oct 05, 2007 at 03:29:03PM +0200, Paul Scott wrote: > > Has anyone used mapserver with memcached? > > What I am thinking of doing is either: > > 1. Caching resultsets from PostGIS before mapserver gets them OR > 2. Caching the actual output from mapserver with a relatively low TTL. > > Anyone done something similar? Any problems? Any successes? I have, in the past, used memcached + TileCache to cache Mapserver data -- see http://tilecache.org/ for more information about TileCache. It's not particularly well documented, but a user came to me the other day and told me they are using it in production without problems. In general, I use disk-based storage, because it's faster than memcached until you have enough machines to make a memcached cluster reasonable, and there's more of it than memory. However, all my data 'lives forever' -- we don't have anything with high temporarl differences -- so I'm a special case. Regards, -- Christopher Schmidt MetaCarta From pscott at UWC.AC.ZA Fri Oct 5 06:58:48 2007 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri, 5 Oct 2007 15:58:48 +0200 Subject: Mapserver with memcached In-Reply-To: <20071005134810.GG25005@metacarta.com> Message-ID: On Fri, 2007-10-05 at 09:48 -0400, Christopher Schmidt wrote: > However, all my data 'lives forever' > -- we don't have anything with high temporarl differences -- so I'm a > special case. Thanks for the link to TileCache. The data for this particular project will only live for a couple hours tops, so am looking into making it as fast as possible. The rest of the app is already memcached, so the infrastructure is already there. --Paul -------------- next part -------------- All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm From docterrobert at MSN.COM Fri Oct 5 13:51:08 2007 From: docterrobert at MSN.COM (Christopher Harris) Date: Fri, 5 Oct 2007 15:51:08 -0500 Subject: Can't get .png Location Marker to show transparencies via code Message-ID: Hi. I have been trying to figure this out for quite a while. I have this working within a .map file, but if I set it up exactly the same way with php, it never works. I'm using Firefox to test it, not IE6 (in case someone thinks it's due to IE6 not supporting .png's. The .map file contains the first marker, which works. The .php file attempts to make the second marker use a transparent background. One interesting thing that I've noticed is if I add jibberish to the parameter in this line: $markerLayer->set(transparency, MS_GD_ALPHA); so as to make the app break, nothing happens. The app doesn't throw up any error messages and continues to render the second marker without transparencies. Here is my .map file that works. I put the United States example off the mapserver site to use as a "background" so I could pin my markers via lat/lon and know where I was. So, that's why that's there. I could give a crap about all that. The marker layer is at the bottom. NAME USA1 STATUS ON DEBUG ON SIZE 800 500 IMAGETYPE PNG IMAGECOLOR 140 140 140 SHAPEPATH "/var/www/mapserver/campuscomber/data/statesp020/" EXTENT -89.248281 39.082274 -87.205980 41.117268 UNITS DD PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END WEB IMAGEPATH "/var/www/mapserver/campuscomber/images/" IMAGEURL "/mapserver/campuscomber/images/" END OUTPUTFORMAT NAME gif DRIVER "GD/GIF" MIMETYPE "image/gif" IMAGEMODE RGBA EXTENSION "gif" END OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION "png" END LAYER NAME "US state boundaries" TYPE POLYGON STATUS ON DATA "statesp020" PROJECTION "proj=latlong" "ellps=GRS80" "datum=NAD83" END CLASS NAME "US states" OUTLINECOLOR 0 0 0 COLOR 80 80 0 SYMBOL 0 END END LAYER NAME "credits" STATUS DEFAULT TRANSFORM FALSE TYPE ANNOTATION FEATURE POINTS 10 480 END TEXT 'Made with Mapserver.' END CLASS LABEL TYPE BITMAP POSITION CR COLOR 250 250 0 END END END LAYER NAME "Marker" TYPE POINT STATUS DEFAULT TRANSPARENCY ALPHA CLASS STYLE SYMBOL 'data/statesp020/red_dot.png' SIZE 15 END END FEATURE POINTS -88.228841 40.104796 END END END END Here's the .php file with marker #2: set(name, "Marker2"); $markerLayer->set(type, MS_LAYER_POINT); $markerLayer->set(status, MS_DEFAULT); $markerLayer->set(transparency, MS_GD_ALPHA); //Location Marker layer class $markerClass = ms_newClassObj($markerLayer); //Location Marker layer class style $markerStyle = ms_newStyleObj($markerClass); //Gives the location of the symbol to place as a marker $markerStyle->set(symbolname, "data/statesp020/red_dot.png"); //Sets the size of the marker. The bigger, the badder....... $markerStyle->set(size, 15); $image=$map->draw(); $markerPoint = ms_newPointObj(); $markerPoint->setXY(-88.227167, 41.015752); $markerLine = ms_newLineObj(); //$markerLine->addXY(-88.227167, 41.015752); $markerLine->add($markerPoint); $markerShape = ms_newShapeObj(MS_SHAPE_POINT); $markerShape->add($markerLine); $markerLayer->addFeature($markerShape); $layer=$map->getLayerByName("Marker2"); //Draws the point using the map, layer Marker2, and the image generated $markerShape->draw($map, $layer, $image); $image_url=$image->saveWebImage(); ?> US state boundaries and Marker Test

Marker Test

Thanks in advance. - Chris _________________________________________________________________ Boo!?Scare away worms, viruses and so much more! Try Windows Live OneCare! http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews -------------- next part -------------- An HTML attachment was scrubbed... URL: From pu779 at LYCOS.COM Sat Oct 6 02:38:42 2007 From: pu779 at LYCOS.COM (Polo Talnir) Date: Sat, 6 Oct 2007 04:38:42 -0500 Subject: MS4W v5 - is SDE support compiled-in ? Message-ID: I installed the ms4w_2.2.6.zip package, have ArcSDE server and SDK installed on the Windows XP SP2 machine, but when trying to use SDE as per the instructions, I get: msDrawMap(): Image handling error. Failed to draw layer named 'SDE Example Layer'. msSDELayerOpen(): General error message. SDE support is not available. When issuing a command mapserv -v in the command-line, SDE is not listed. Is support for SDE 9.2 compiled-in?. Does it need to be compiled-in?. I see the c:/ms4w/apache/specialplugins/msplugin_sde_92.dll - is that all I need? If so, are more detailed instructions for SDE access in Windows available somewhere?. I had fewer problems in Linux after compiling MapServer with all the needed options (including SDE) but on Windows, the Install Notes seem to imply that SDE is supported out-of-the-box so that I didn't compile the server expecting it work. Thanks in advance. TioP From pu779 at LYCOS.COM Sat Oct 6 02:35:54 2007 From: pu779 at LYCOS.COM (peter redest) Date: Sat, 6 Oct 2007 05:35:54 -0400 Subject: MS4W v5 - is SDE support compiled-in ? Message-ID: An HTML attachment was scrubbed... URL: From pu779 at LYCOS.COM Sat Oct 6 20:18:26 2007 From: pu779 at LYCOS.COM (Polo Talnir) Date: Sat, 6 Oct 2007 22:18:26 -0500 Subject: MS4W v5 - is SDE support compiled-in ? Message-ID: Answering my question: yes SDE support is present in the zip file. I only had to restart Apache, restarted also the browser, and everything came into place. Thanks for your help. -TP From richard.greenwood at GMAIL.COM Sun Oct 7 09:47:56 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 7 Oct 2007 10:47:56 -0600 Subject: CGI, IIS, Windows 2003 Message-ID: I am having trouble getting CGI mapserver running under IIS on Windows Server 2003. Steps that I've done: Created a Web Service Extension "mapserver" Added mapserv.exe and all .dll Created Virtual Directory Assigned Application Name: "mapserver" But trying to execute mapserv.exe I get: 403 - Forbidden: Access is denied. Any suggestions appreciated. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From mikesaunt at GMAIL.COM Sun Oct 7 10:17:08 2007 From: mikesaunt at GMAIL.COM (Mike Saunt) Date: Sun, 7 Oct 2007 18:17:08 +0100 Subject: CGI, IIS, Windows 2003 In-Reply-To: Message-ID: Hi Richard You need to make sure the IUSR has read and execute rights on that directory - I normally create a new Application Pool also and then check the identity is then running as the IUSR HTH Mike On 07/10/2007, Richard Greenwood wrote: > > I am having trouble getting CGI mapserver running under IIS on Windows > Server 2003. Steps that I've done: > > Created a Web Service Extension "mapserver" > Added mapserv.exe and all .dll > Created Virtual Directory > Assigned Application Name: "mapserver" > > But trying to execute mapserv.exe I get: > 403 - Forbidden: Access is denied. > > Any suggestions appreciated. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Sun Oct 7 11:06:52 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 7 Oct 2007 12:06:52 -0600 Subject: CGI, IIS, Windows 2003 In-Reply-To: <5a9686e80710071017t74511122g204f3fcae2341930@mail.gmail.com> Message-ID: Mike, Thanks for the reply. The IUSR account does have read & execute on the directory. I'm not too familiar with the application pools. My mapserver application is showing up in the default application pool which has a "predefined network service" identity. This is the same as another (working) Windows 2003 installation that I have, so I'm thinking that's not the issue. Thanks for the advice, Rich On 10/7/07, Mike Saunt wrote: > Hi Richard > > You need to make sure the IUSR has read and execute rights on that directory > - I normally create a new Application Pool also and then check the identity > is then running as the IUSR > > HTH > Mike > > > > On 07/10/2007, Richard Greenwood wrote: > > I am having trouble getting CGI mapserver running under IIS on Windows > > Server 2003. Steps that I've done: > > > > Created a Web Service Extension "mapserver" > > Added mapserv.exe and all .dll > > Created Virtual Directory > > Assigned Application Name: "mapserver" > > > > But trying to execute mapserv.exe I get: > > 403 - Forbidden: Access is denied. > > > > Any suggestions appreciated. > > > > Rich > > > > -- > > Richard Greenwood > > richard.greenwood at gmail.com > > www.greenwoodmap.com From kobben at ITC.NL Sun Oct 7 11:53:08 2007 From: kobben at ITC.NL (=?iso-8859-1?Q?Barend_K=F6bben?=) Date: Sun, 7 Oct 2007 20:53:08 +0200 Subject: CGI, IIS, Windows 2003 Message-ID: This sounds OK, it seems to be the same setup I have on our IIS on Winserver2003. The only difference seems to be I only put mapserv.exe in the Web service EXtension "allowed" list and called called the virDir application ""cgi-bin" instead of "mapserver"... Have you made sure to put execute permissions of the Application to "script and executables" ? -- Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31-(0)534874253; mobile: +31-(0)622344955 ________________________________ From: UMN MapServer Users List on behalf of Richard Greenwood Sent: Sun 07/10/2007 18:47 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] CGI, IIS, Windows 2003 I am having trouble getting CGI mapserver running under IIS on Windows Server 2003. Steps that I've done: Created a Web Service Extension "mapserver" Added mapserv.exe and all .dll Created Virtual Directory Assigned Application Name: "mapserver" But trying to execute mapserv.exe I get: 403 - Forbidden: Access is denied. Any suggestions appreciated. Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From richard.greenwood at GMAIL.COM Sun Oct 7 13:00:46 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Sun, 7 Oct 2007 14:00:46 -0600 Subject: CGI, IIS, Windows 2003 In-Reply-To: <5AF149DBB6DFE24AA3F4F53201E539AD1E2B33@itcnt24.itc.nl> Message-ID: Thanks for the reply. I got it working. The computer is a domain controller. I had to elevate a couple privileges: Domain Controller Security Policy Local Policies User Rights Assignment Adjust Memory Quotas for a process Replace a process level token I knew to do this, but they didn't seem to effect until the computer was rebooted. Simply restarting IIS was not enough. What a waste of a Sunday... Rich On 10/7/07, Barend K?bben wrote: > This sounds OK, it seems to be the same setup I have on our IIS on Winserver2003. The only difference seems to be I only put mapserv.exe in the Web service EXtension "allowed" list and called called the virDir application ""cgi-bin" instead of "mapserver"... > > Have you made sure to put execute permissions of the Application to "script and executables" ? > -- > Barend K?bben > International Institute for Geo-information Sciences and Earth Observation (ITC) > PO Box 6, 7500AA Enschede (The Netherlands) > ph: +31-(0)534874253; mobile: +31-(0)622344955 > > ________________________________ > > From: UMN MapServer Users List on behalf of Richard Greenwood > Sent: Sun 07/10/2007 18:47 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] CGI, IIS, Windows 2003 > > > > I am having trouble getting CGI mapserver running under IIS on Windows > Server 2003. Steps that I've done: > > Created a Web Service Extension "mapserver" > Added mapserv.exe and all .dll > Created Virtual Directory > Assigned Application Name: "mapserver" > > But trying to execute mapserv.exe I get: > 403 - Forbidden: Access is denied. > > Any suggestions appreciated. > > Rich > > -- > Richard Greenwood > richard.greenwood at gmail.com > www.greenwoodmap.com > > > > -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From elfontanal123 at YAHOO.ES Sun Oct 7 13:16:47 2007 From: elfontanal123 at YAHOO.ES (ppqq ppqq) Date: Sun, 7 Oct 2007 22:16:47 +0200 Subject: unsubscribe Message-ID: --------------------------------- S? un Mejor Amante del Cine ?Quieres saber c?mo? ?Deja que otras personas te ayuden!. -------------- next part -------------- An HTML attachment was scrubbed... URL: From igorpsc at YAHOO.COM.BR Sun Oct 7 17:19:35 2007 From: igorpsc at YAHOO.COM.BR (igor pinheiro) Date: Sun, 7 Oct 2007 21:19:35 -0300 Subject: unsubscribe Message-ID: please! Abra sua conta no Yahoo! Mail, o ?nico sem limite de espa?o para armazenamento! -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at BIZEASSET.COM.AU Sun Oct 7 23:53:33 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Mon, 8 Oct 2007 16:53:33 +1000 Subject: Mapfile Message-ID: Hi All, I have got the TutorialMapServer running. Now I curious whether or not you can, or if anyone else has dynamically created the mapfile? If it can be created like XML Document Object programmatically and not be literally saved to the hard drive? Then load when necessary. Regards, Hayden Fisher Development and Support BizeAsset Pty Ltd support at bizeasset.com.au Mob: (04) 3838 4747 Ph: (07) 3369 2222 Fax: (07) 3369 8883 Toll Free: 1800 836 850 -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcos at BURKE.ATH.CX Mon Oct 8 01:07:42 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Mon, 8 Oct 2007 10:07:42 +0200 Subject: Mapfile In-Reply-To: Message-ID: I think you want to use mapscript: http://mapserver.gis.umn.edu/docs/howto/mapscript_imagery El lun, 08-10-2007 a las 16:53 +1000, Hayden Fisher escribi?: > Hi All, > > > > I have got the TutorialMapServer running. Now I curious whether or not > you can, or if anyone else has dynamically created the mapfile? If it > can be created like XML Document Object programmatically and not be > literally saved to the hard drive? Then load when necessary. > > > > Regards, > > Hayden Fisher > > Development and Support > > BizeAsset Pty Ltd > > support at bizeasset.com.au > > Mob: (04) 3838 4747 > > Ph: (07) 3369 2222 > > Fax: (07) 3369 8883 > > Toll Free: 1800 836 850 > > > > From yjacolin at FREE.FR Mon Oct 8 01:14:41 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Mon, 8 Oct 2007 10:14:41 +0200 Subject: SLD issues In-Reply-To: <47063F14.5030809@dmsolutions.ca> Message-ID: Le Friday 05 October 2007 15:41:40 Yewondwossen Assefa, vous avez ?crit?: > Jacolin Yves wrote: > > Hi list, > > > > I am trying to setup a SLD file for a layer. I create a SLD file: > > > > > > geosignal > > > > xxx > > > > > > > > > > > > 0.6 > > > > > > > > > > > > > > > > Which the aims is to change the opacity. > > > > My url is: > > http://www2.xxxx.com/cgi-bin/mapserv_wms? > > LAYERS=orthophoto,geosignal,sncf& > > TRANSPARENT=true& > > FORMAT=jpeg&SERVICE=WMS&VERSION=1.1.1& > > REQUEST=GetMap&EXCEPTIONS=application-vnd.ogc.se_inimage& > > STYLES=,,&SLD=http://www2.xxx.com/lpdi/sld/geosignal.xml& > > SRS=EPSG:27582& > > BBOX=579452.7126630786,2420705.106583846,608239.3637849536,2441871.761820 > >5184& WIDTH=680&HEIGHT=500 > > > > My geosignal layer is not transparent. Do I need to do something to > > mapserver side (build, configuration)? I didn't change anything in my > > mapfile. Am I right? > > > > Regards, > > > > Y. > > You are right that there should not be any changes needed in the map > file. Make sure that you have built MapServer with OGR support (USE_OGR). > The SLD seems to be valid from what I can see. From your settings it > should have the same effect as setting the OPACITY value on the > geosignal layer to 60. Does setting the opacity value manually in your > layer and not using the sld gives you the expected result ? Hi, Thanks for your answer Yewondwossen Assefa. I check my mapserv cgi and, yes it was built with OGR (INPUT=OGR). If I change/add the TRANSPARENCY parameter to 60, all is working fine. Do you think I don't use the correct parameter ? The mapfile don't use OPACITY as valid parameter (except for the 5.0, and I am using the 4.10.1 release). Y. -- Yves Jacolin --- http://softlibre.gloobe.org From yjacolin at FREE.FR Mon Oct 8 02:30:47 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Mon, 8 Oct 2007 11:30:47 +0200 Subject: SLD issues In-Reply-To: <200710081014.41628.yjacolin@free.fr> Message-ID: Le Monday 08 October 2007 10:14:41 Jacolin Yves, vous avez ?crit?: > Le Friday 05 October 2007 15:41:40 Yewondwossen Assefa, vous avez ?crit?: > > Jacolin Yves wrote: > > > Hi list, > > > > > > I am trying to setup a SLD file for a layer. I create a SLD file: > > > > > > > > > geosignal > > > > > > xxx > > > > > > > > > > > > > > > > > > 0.6 > > > > > > > > > > > > > > > > > > > > > > > > Which the aims is to change the opacity. > > > > > > My url is: > > > http://www2.xxxx.com/cgi-bin/mapserv_wms? > > > LAYERS=orthophoto,geosignal,sncf& > > > TRANSPARENT=true& > > > FORMAT=jpeg&SERVICE=WMS&VERSION=1.1.1& > > > REQUEST=GetMap&EXCEPTIONS=application-vnd.ogc.se_inimage& > > > STYLES=,,&SLD=http://www2.xxx.com/lpdi/sld/geosignal.xml& > > > SRS=EPSG:27582& > > > BBOX=579452.7126630786,2420705.106583846,608239.3637849536,2441871.7618 > > >20 5184& WIDTH=680&HEIGHT=500 > > > > > > My geosignal layer is not transparent. Do I need to do something to > > > mapserver side (build, configuration)? I didn't change anything in my > > > mapfile. Am I right? > > > > > > Regards, > > > > > > Y. > > > > You are right that there should not be any changes needed in the map > > file. Make sure that you have built MapServer with OGR support (USE_OGR). > > The SLD seems to be valid from what I can see. From your settings it > > should have the same effect as setting the OPACITY value on the > > geosignal layer to 60. Does setting the opacity value manually in your > > layer and not using the sld gives you the expected result ? > > Hi, > > Thanks for your answer Yewondwossen Assefa. I check my mapserv cgi and, yes > it was built with OGR (INPUT=OGR). If I change/add the TRANSPARENCY > parameter to 60, all is working fine. > > Do you think I don't use the correct parameter ? The mapfile don't use > OPACITY as valid parameter (except for the 5.0, and I am using the 4.10.1 > release). > > Y. Hi again ;) I succeed to use a SLD service with my WMS map. My problem came from the abscence of this part: WEB IMAGEPATH "/tmp/" END Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From friendvn2000 at YAHOO.COM Mon Oct 8 02:51:28 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Mon, 8 Oct 2007 04:51:28 -0500 Subject: Flash OUTPUT_MOVIE=SINGLE error Message-ID: I am currently having no trouble producing labeled SWF files as long as OUTPUT_MOVIE=MULTIPLE. However, as soon as I set it to SINGLE, I get a movie only w/ the IMAGECOLOR of the MAP (no roads, parks, water, etc)!? How can I make the SINGLE set work properly. Thanks! From friendvn2000 at YAHOO.COM Mon Oct 8 03:23:40 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Mon, 8 Oct 2007 05:23:40 -0500 Subject: PHP-MapScript: QueryByAttribute() Message-ID: An HTML attachment was scrubbed... URL: From a.schofield at SSTL.CO.UK Mon Oct 8 04:07:37 2007 From: a.schofield at SSTL.CO.UK (Andrew Schofield) Date: Mon, 8 Oct 2007 06:07:37 -0500 Subject: Newbie qn re using lat/lon bounding box for eastings raster image in map file Message-ID: Apologies if this is covered by the mailing list already. I have looked through the documentation etc. and couldn?t find a clear explanation and have tried a variety of srs settings to no avail. (BTW, how do you search the mailing lists for multiple words?) I have a map file with a mixture of vector and raster layers. For the vector layers, my request url works fine with Lat/Lon ranges for the bounding box but the raster layer requires the bounding box in eastings/northings ranges. I would like one url that can query both layers with a latitude/longitude range only. I think I?m missing something in explicitly declaring the overriding projection scheme for the raster layer, is that correct? (The vector layers are epsg:4326). Thanks, Andy Below is the gdalinfo response for the single image covered by the raster layer. Driver: GTiff/GeoTIFF Size is 3431, 4021 Coordinate System is: PROJCS["unnamed", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-117], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32611"]] Origin = (648640.000000000000000,4250560.000000000000000) Pixel Size = (32.000000000000000,-32.000000000000000) Metadata: AREA_OR_POINT=Point TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 648640.000, 4250560.000) (115d17'52.78"W, 38d23'27.28"N) Lower Left ( 648640.000, 4121888.000) (115d19'27.86"W, 37d13'54.01"N) Upper Right ( 758432.000, 4250560.000) (114d 2'31.34"W, 38d21'57.36"N) Lower Right ( 758432.000, 4121888.000) (114d 5'16.39"W, 37d12'27.75"N) Center ( 703536.000, 4186224.000) (114d41'17.34"W, 37d48'2.64"N) Band 1 Block=3431x128 Type=Byte, ColorInterp=Red Band 2 Block=3431x128 Type=Byte, ColorInterp=Green Band 3 Block=3431x128 Type=Byte, ColorInterp=Blue From yjacolin at FREE.FR Mon Oct 8 06:31:04 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Mon, 8 Oct 2007 15:31:04 +0200 Subject: [SLD] GetLegendGraphic "problem" Message-ID: Hi, I come back with some new problem. I have always my mapfile with my 6 groups of layers. I am trying to get the legend of my layer(s) with the GetLegendGraphic request. I succeed to get it for a simple layer but not for layers' group. However, I can use this layer group using WMS (ie I get the correct map using LAYERS=layerGroupName), not for the GetLegendGraphic. Anyone have an idea to looking for why it is not working? Is it a MapServer limit? Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From joleary.public at GMAIL.COM Mon Oct 8 06:40:23 2007 From: joleary.public at GMAIL.COM (Jim O'Leary) Date: Mon, 8 Oct 2007 06:40:23 -0700 Subject: map_get_template causes error Message-ID: I have installed MS4W 2.2.6. The map_get_template parameter causes this error when a GET form is submitted to mapserver.exe: loadWeb(): Unknown identifier. Parsing error near (example2-1.html):(line 1) If I do not send that parameter and instead hard code TEMPLATE to example2-1.html in the map file specified in the GET, there is no error. Thanks. -- View this message in context: http://www.nabble.com/map_get_template-causes-error-tf4588261.html#a13096845 Sent from the Mapserver - User mailing list archive at Nabble.com. From yjacolin at FREE.FR Mon Oct 8 07:22:45 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Mon, 8 Oct 2007 16:22:45 +0200 Subject: [SLD] GetLegendGraphic "problem" In-Reply-To: <470A37ED.1000100@terrestris.de> Message-ID: Le Monday 08 October 2007 16:00:13 Till Adams, vous avez ?crit?: > Jacolin Yves schrieb: > >Hi, > > > >I come back with some new problem. I have always my mapfile with my 6 > > groups of layers. I am trying to get the legend of my layer(s) with the > >GetLegendGraphic request. I succeed to get it for a simple layer but not > > for layers' group. However, I can use this layer group using WMS (ie I > > get the correct map using LAYERS=layerGroupName), not for the > > GetLegendGraphic. > > > >Anyone have an idea to looking for why it is not working? Is it a > > MapServer limit? > > > >Regards, > > > >Y. > > Der Y., > > yes! This is because the WMS specification does not know groups - you > would get the same problem, if you > would try to do a featureinfo request on a grouped layer. > > The map-request works, because mapserver handles a group like a single > layer and delivers one image > for all requested layers, for a legend graphic the request targets a > single layer ("layer=.." instead of > "layers=.." for a map-request) and mapserver delivers one legend for a > single layer. That's your problem. > > We handled this in mapbender e.g. by letting the client know the > "childs" of the grouped layer and then > request the single layers by their name and not their groupname. This > also could be your workaround. > > Regards, Till Hi, Thanks Till. I was afraid of this. I am going to try to manage my layers group in the client side. :) Y. -- Yves Jacolin --- http://softlibre.gloobe.org From adams at TERRESTRIS.DE Mon Oct 8 07:00:13 2007 From: adams at TERRESTRIS.DE (Till Adams) Date: Mon, 8 Oct 2007 16:00:13 +0200 Subject: [SLD] GetLegendGraphic "problem" In-Reply-To: <200710081531.05222.yjacolin@free.fr> Message-ID: Jacolin Yves schrieb: >Hi, > >I come back with some new problem. I have always my mapfile with my 6 groups >of layers. I am trying to get the legend of my layer(s) with the >GetLegendGraphic request. I succeed to get it for a simple layer but not for >layers' group. However, I can use this layer group using WMS (ie I get the >correct map using LAYERS=layerGroupName), not for the GetLegendGraphic. > >Anyone have an idea to looking for why it is not working? Is it a MapServer >limit? > >Regards, > >Y. > > Der Y., yes! This is because the WMS specification does not know groups - you would get the same problem, if you would try to do a featureinfo request on a grouped layer. The map-request works, because mapserver handles a group like a single layer and delivers one image for all requested layers, for a legend graphic the request targets a single layer ("layer=.." instead of "layers=.." for a map-request) and mapserver delivers one legend for a single layer. That's your problem. We handled this in mapbender e.g. by letting the client know the "childs" of the grouped layer and then request the single layers by their name and not their groupname. This also could be your workaround. Regards, Till -- ***************************************** terrestris ist umgezogen! Die neue Adresse ab 01.07.2007 lautet: Irmintrudisstra?e 17, 53111 Bonn http://www.terrestris.de ***************************************** ---------------------------------------------------------- terrestris GmbH & Co. KG Irmintrudisstrasse 17 53111 Bonn Germany Till Adams Gesch?ftsf?hrung Tel: +49 (0)228 / 962 899-52 Fax: +49 (0)228 / 962 899-57 adams at terrestris.de http://www.terrestris.de Amtsgericht Bonn, HRA 6835 --------------------------------------------------------- Komplement?rin: terrestris Verwaltungs GmbH vertreten durch: Hinrich Paulsen, Till Adams From joleary.public at GMAIL.COM Mon Oct 8 07:53:29 2007 From: joleary.public at GMAIL.COM (Jim O'Leary) Date: Mon, 8 Oct 2007 07:53:29 -0700 Subject: map_get_template causes error In-Reply-To: <13096845.post@talk.nabble.com> Message-ID: The same is true for map_web_header and map_web_footer. They cause this error when sent as GET parameters to mapserver.exe. Removing them and hard coding them in the map file specified in GET removes the error. Jim O'Leary wrote: > > I have installed MS4W 2.2.6. The map_get_template parameter causes this > error when a GET form is submitted to mapserver.exe: > > loadWeb(): Unknown identifier. Parsing error near (example2-1.html):(line > 1) > > If I do not send that parameter and instead hard code TEMPLATE to > example2-1.html in the map file specified in the GET, there is no error. > > Thanks. > > > -- View this message in context: http://www.nabble.com/map_get_template-causes-error-tf4588261.html#a13098263 Sent from the Mapserver - User mailing list archive at Nabble.com. From mlinden at ZEELANDNET.NL Mon Oct 8 08:08:33 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 8 Oct 2007 17:08:33 +0200 Subject: mapserver and IIS; fastCGI wrapper Message-ID: Hello list! I found out that IIS.net made its new fastCGI module available! It is downloadable at: http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1521 I would love to use this module to wrap my mapfile, version and service and would like to know if anyone out there has any experience with it allready? -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.manso at UPM.ES Mon Oct 8 08:14:35 2007 From: m.manso at UPM.ES (Miguel A. Manso) Date: Mon, 8 Oct 2007 17:14:35 +0200 Subject: Mapscript Dude Message-ID: Hi, I've a dude about Java Swing of Mapscript I'm reading about mapscript and looking if it's possible to use Mapserver & Mapscript under Java swing of MapScript to make a image preview of any dataset (vector, raster, database) without a mapfile config file, it's on the-fly with needed parameters. Can any one help me? Thanks, best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at YAHOO.COM Mon Oct 8 10:08:31 2007 From: kreshna_iceheart at YAHOO.COM (Kreshna Aryaguna Nurzaman) Date: Mon, 8 Oct 2007 12:08:31 -0500 Subject: Displaying adjacent SHP files in MapServer? (converting from MapInfo) Message-ID: Hi, I'm a MapServer newbie, and I'm to show a GIS map of a country using MapServer. The source is MapInfo, and the country's map is actually made of several adjacent .TAB files (each .TAB file consists a Province) instead of a single TAB file. I'm going to convert those MapInfo files into ESRI SHP files. My question is: (1) Can MapServer display several adjacent SHP files as a single map, like what MapInfo does with those multiple TAB files? (2) Is it difficult or complex to do the #1 above? Is it time-consuming? Development time is my concern here, especially since I'm not going to display every details of the original MapInfo maps --only those relevant to public information needs. (3) Will it be better to combine those multiple MapInfo TAB files into a single large TAB file, and then convert it to SHP file to be displayed by MapServer? Thanks, -Kresh From warmerdam at POBOX.COM Mon Oct 8 11:09:21 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 8 Oct 2007 14:09:21 -0400 Subject: ogr tileindex with postgis? In-Reply-To: <470A6543.8050308@lanworth.com> Message-ID: Neil Best wrote: > Frank, et al., > > Can I use a FILTER clause in the raster layer that refers to my PostGIS > tileindex or do I have to do the filtering in the tileindex defintion? > If I can do it in the raster layer then which syntax to I use? > > FILTER "year=2005" > > or > FILTER '[year]=="2005"' > > or > FILTERITEM "year" > FILTER "2005" > > or > FILTER "[year]==2005" > > or > FILTERITEM "year" > FILTER (2005) > > I couldn't see that any of these had any effect whereas the first form > in the tileindex defintion works beautifully. Conceptually it would be > convenient to filter the raster layer and keep the tileindex black magic > in the background. Neil, The filter needs to be on the tileindex. While I can see that this is not entirely obvious, I think it would be a dangerous approach to try and put it on the raster layer. Keep in mind that the same sort of tile indexing can be applied with tiles of vector features in a feature layer and then we need to differentiate between filters applied to the tileindex, and filters applied to the actual features. FILTER formats vary by connectiontype and there are specialized date matching options. I'm not too familiar with the details. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From vishu_73ns at YAHOO.COM Mon Oct 8 10:30:36 2007 From: vishu_73ns at YAHOO.COM (vishal nagpal) Date: Mon, 8 Oct 2007 10:30:36 -0700 Subject: Displaying adjacent SHP files in MapServer? (converting from MapInfo) In-Reply-To: Message-ID: Yes it is possible to join several shape files using tile indexing. It will not be difficult once you are familiar with the basic functioning of Mapserver This is what I know and have been doing, All the best, Vishal --- Kreshna Aryaguna Nurzaman wrote: > Hi, > > I'm a MapServer newbie, and I'm to show a GIS map of > a country using > MapServer. > > The source is MapInfo, and the country's map is > actually made of several > adjacent .TAB files (each .TAB file consists a > Province) instead of a single > TAB file. > > I'm going to convert those MapInfo files into ESRI > SHP files. > > My question is: > > (1) Can MapServer display several adjacent SHP files > as a single map, like what > MapInfo does with those multiple TAB files? > > (2) Is it difficult or complex to do the #1 above? > Is it time-consuming? > Development time is my concern here, especially > since I'm not going to display > every details of the original MapInfo maps --only > those relevant to public > information needs. > > (3) Will it be better to combine those multiple > MapInfo TAB files into a single > large TAB file, and then convert it to SHP file to > be displayed by MapServer? > > Thanks, > -Kresh > ____________________________________________________________________________________ Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. http://autos.yahoo.com/index.html From Bob.Basques at CI.STPAUL.MN.US Mon Oct 8 10:49:01 2007 From: Bob.Basques at CI.STPAUL.MN.US (Bob Basques) Date: Mon, 8 Oct 2007 12:49:01 -0500 Subject: Announcement - GeoMOOSE 1.0.0 Mapserver client framework for local government Message-ID: MapServer users, We would like to share a relatively new open source project designed around use cases for local government needs. The open source project development team is proud to announce GeoMOOSE 1.0.0 release. For more information, to download the source code or check out the gallery, please go to http://www.geomoose.org/moose. The source code comes with a demo application and data. We are still adding more documentation, but feel it is ready for production applications. We are looking for feedback, testers and participation from interested Mapserver users. If you have any questions please feel free to email me or others involved in the project offline and we will be happy to answer questions. Thanks, From friendvn2000 at YAHOO.COM Mon Oct 8 11:42:40 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Mon, 8 Oct 2007 13:42:40 -0500 Subject: flash swf polygon highlight Message-ID: Did you try this: http://mapserver.gis.umn.edu/docs/tutorial/demoflashmap/demoflashmaps Open MultiViewer.fla and code anything you wish :) From kreshna_iceheart at YAHOO.COM Mon Oct 8 12:00:52 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Mon, 8 Oct 2007 12:00:52 -0700 Subject: Displaying adjacent SHP files in MapServer? (converting from MapInfo) In-Reply-To: <777183.17570.qm@web52404.mail.re2.yahoo.com> Message-ID: Thank you, vishal! :) However, I'm not really familiar with Tile Indexing, though. From what I read from here: http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms Tile Indexing enables MapServer to automatically position of multiple shapefiles, according to their vector coordinate relative to each other, am I correct? Thus, I don't have to manually configure which particular shape file should be positioned next to another shape file, etc, etc, do I? If that's the case, then I'm glad to hear it, because manually positioning each shape file is of course a nightmare. O_O I still have concerns, though: my shapefiles will be converted from MapInfo's .TAB files. Assuming that MapServer's will automatically put each shapefile, based on their coordination relative to each other, will there be innacuracies due to converting from MapInfo? For example, will there be a slight overlapping between Province, that needs to be eliminated by hand-tuning? (pardon my paranoia because I'm a newbie) Also, is there any set of downloadable shapefiles for tutorial purpose, specifically for Tile Indexing tutorial? Many, many thanks again, -Kresh --- vishal nagpal wrote: > Yes it is possible to join several shape files using > tile indexing. > It will not be difficult once you are familiar with > the basic functioning of Mapserver > This is what I know and have been doing, > All the best, > Vishal > --- Kreshna Aryaguna Nurzaman > wrote: > > > Hi, > > > > I'm a MapServer newbie, and I'm to show a GIS map > of > > a country using > > MapServer. > > > > The source is MapInfo, and the country's map is > > actually made of several > > adjacent .TAB files (each .TAB file consists a > > Province) instead of a single > > TAB file. > > > > I'm going to convert those MapInfo files into ESRI > > SHP files. > > > > My question is: > > > > (1) Can MapServer display several adjacent SHP > files > > as a single map, like what > > MapInfo does with those multiple TAB files? > > > > (2) Is it difficult or complex to do the #1 above? > > Is it time-consuming? > > Development time is my concern here, especially > > since I'm not going to display > > every details of the original MapInfo maps --only > > those relevant to public > > information needs. > > > > (3) Will it be better to combine those multiple > > MapInfo TAB files into a single > > large TAB file, and then convert it to SHP file to > > be displayed by MapServer? > > > > Thanks, > > -Kresh > > > > > > > ____________________________________________________________________________________ > Don't let your dream ride pass you by. Make it a > reality with Yahoo! Autos. > http://autos.yahoo.com/index.html > > __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. ____________________________________________________________________________________ Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. http://mobile.yahoo.com/go?refer=1GNXIC From gerard.troost at SOVON.NL Mon Oct 8 16:51:07 2007 From: gerard.troost at SOVON.NL (Gerard Troost) Date: Mon, 8 Oct 2007 18:51:07 -0500 Subject: WMS Server: Filtering Raster/Vector data based on request params Message-ID: Hi Jeremy I'am not sure if i understand you right but if i do then: in mapserver you can filter your WMS request on the fly like this: ...REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&COUNTRYFILTER=HOLLAN D and then in your mapfile: DATA "the_geom from (select id as oid, * from country where name=% countryfilter%) as foo" Regards, Gerard Troost SOVON Vogelonderzoek Nederland ________________________________ Van: UMN MapServer Users List namens Jeremy Nix Verzonden: di 4-9-2007 20:46 Aan: MAPSERVER-USERS at LISTS.UMN.EDU Onderwerp: [UMN_MAPSERVER-USERS] WMS Server: Filtering Raster/Vector data based on request params Is it possible to submit a GetMap request that performs a filtering mechanism on the fly? In Geoserver, it is possible to pass an additional parameter "FILTER" that accepts an OGC formatted filter string where it is feasible to do commands like "PropertyIsEqualTo". I have a large shapefile that I built using the MosaicIndexBuilder from the Geoserver project. The image files that make up this shapefile are not uniform in size, density, or color model. These images have surrounding borders and legends that will overlap other images. If we were dealing with only a handful of images I would set up the individual files separately as different layers. As it is, we have over 100K images that fit this profile, so we've opted to go with the shapefile solution. As the images have been named using specific naming conventions, we wanted to see if we could pass a request parameter to do something like this: FILTER=locationFILENAME Is this possible. If not, does anyone have a suggestion on how I can implement this. I was worried about the negative performance that would most likely be involved with have a map file that consisted of 100K+ layers for all of our image files. Thanks in advance for any help. -- __________________________________ Jeremy Nix Senior Application Developer Southwest Financial Services, Ltd. (513) 621-6699 From hal at MOBILEGEOGRAPHICS.COM Mon Oct 8 18:01:42 2007 From: hal at MOBILEGEOGRAPHICS.COM (Hal Mueller) Date: Mon, 8 Oct 2007 18:01:42 -0700 Subject: Announcement - GeoMOOSE 1.0.0 Mapserver client framework for local government In-Reply-To: Message-ID: Safari on Mac OS 10.4 displays only a white screen when I hit the demo sites in the Gallery of the website. I haven't tried it with Safari on Windows (free download at http://www.apple.com/safari/download/). Firefox on Mac appears to work OK. Hal From support at BIZEASSET.COM.AU Mon Oct 8 21:36:59 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Tue, 9 Oct 2007 14:36:59 +1000 Subject: FW: [UMN_MAPSERVER-USERS] Mapfile Message-ID: Hi Ian, yes that sounds about right, the version I need will have to look at directory structures and TAB files, those that are present will then be included in creating a virtual mapfile for display. So you built this in MapScript or your webpage? Regards, Hayden ________________________________ From: Ian Tidy [mailto:IANT at napier.govt.nz] Sent: Tuesday, 9 October 2007 4:51 AM To: Hayden Fisher Subject: RE: [UMN_MAPSERVER-USERS] Mapfile Hayden, I have been working on a site that generates the MAP file from a database and then reads it. It does this every time someone accesses the site. Is this what you are trying to do? Using MapScript you can programmatically build the MAP file and not read it off the hard drive. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hayden Fisher Sent: Monday, 8 October 2007 7:54 p.m. To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapfile Hi All, I have got the TutorialMapServer running. Now I curious whether or not you can, or if anyone else has dynamically created the mapfile? If it can be created like XML Document Object programmatically and not be literally saved to the hard drive? Then load when necessary. Regards, Hayden Fisher Development and Support BizeAsset Pty Ltd support at bizeasset.com.au Mob: (04) 3838 4747 Ph: (07) 3369 2222 Fax: (07) 3369 8883 Toll Free: 1800 836 850 ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ Scanned by Bizo EmailFilter ________________________________ This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ________________________________ ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bgiv at GMX.DE Tue Oct 9 01:05:22 2007 From: bgiv at GMX.DE (wolfgang Lahr) Date: Tue, 9 Oct 2007 03:05:22 -0500 Subject: PHP mapscript: mapfile includes Message-ID: Hello list, are mapfile includes not working in PHP mapscript? Includes work fine with cgi, but I can't open a mapfile with PHP mapscript when it contains includes (no matter how the path to the includes is given: relative or absolute). Any hints? Version info follows: MapServer version 4.99 OUTPUT=PNG OUTPUT=JPEG OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE PHP MapScript Version ($Revision: 1.262 $ $Date: 2006/12/13 16:41:15 $) OS is Windows XP Pro (did no testing on Linux yet) Thanks Wolfgang From dpinte at ITAE.BE Tue Oct 9 01:59:15 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Tue, 9 Oct 2007 10:59:15 +0200 Subject: PHP mapscript: mapfile includes In-Reply-To: Message-ID: On Tue, 2007-10-09 at 03:05 -0500, wolfgang Lahr wrote: > Hello list, > > are mapfile includes not working in PHP mapscript? Includes work fine with > cgi, but I can't open a mapfile with PHP mapscript when it contains includes > (no matter how the path to the includes is given: relative or absolute). Any > hints? Version info follows: > > MapServer version 4.99 OUTPUT=PNG OUTPUT=JPEG OUTPUT=SVG SUPPORTS=PROJ > SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT > SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS > SUPPORTS=GEOS INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE > > PHP MapScript Version ($Revision: 1.262 $ $Date: 2006/12/13 16:41:15 $) > > OS is Windows XP Pro (did no testing on Linux yet) > > Thanks > > Wolfgang Version 4.10 under CentosOS runs fine with included mapfile using php-mapscript. Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From rodrigo.andrade at DIGITRO.COM.BR Tue Oct 9 05:17:42 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Tue, 9 Oct 2007 09:17:42 -0300 Subject: Mapbuilder + Mapserver without WMS? Message-ID: Greetings, I have been sniffing around the web lately trying to find a good ajax client to enhance our in-house developed client in our mapping application (Google maps spoiled a lot people). Anyway, I found Mapbuilder and thought it would fit the bill because it works on Tomcat and has allows all the visual customization we need. However, I cant find in the docs any mention to it running alongside Mapserver with a non-WMS setup. I dont think we could refactor our java mapscript code to make it work reliably trough a WMS connection. Not to mention no one over here ever worked with WMS before, so add in the cost/time of training someone. So, has anyone ever successfully used Mapbuilder sending parameters to mapserver trough a good old fashion POST and fetching the resulting map directly at the file system, or is that line a research a dead-end and I should start thinking about migrating to a local WMS? Thanks! Rodrigo -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Tue Oct 9 06:05:01 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 9 Oct 2007 09:05:01 -0400 Subject: Mapbuilder + Mapserver without WMS? In-Reply-To: A<470B7166.4060603@digitro.com.br> Message-ID: Hi, Mapbuilder, as a client-based web mapping solution, can work tomcat, as well as Apache httpd, etc. Mapbuilder connects to maps via standards-based mechanisms (i.e. WMS, etc.), so your best bet would be to create a WMS instance of your data and have Mapbuilder seamlessly connect to and display your map data. ..Tom ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Rodrigo Del C. Andrade Sent: 09 October, 2007 8:18 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapbuilder + Mapserver without WMS? Greetings, I have been sniffing around the web lately trying to find a good ajax client to enhance our in-house developed client in our mapping application (Google maps spoiled a lot people). Anyway, I found Mapbuilder and thought it would fit the bill because it works on Tomcat and has allows all the visual customization we need. However, I cant find in the docs any mention to it running alongside Mapserver with a non-WMS setup. I dont think we could refactor our java mapscript code to make it work reliably trough a WMS connection. Not to mention no one over here ever worked with WMS before, so add in the cost/time of training someone. So, has anyone ever successfully used Mapbuilder sending parameters to mapserver trough a good old fashion POST and fetching the resulting map directly at the file system, or is that line a research a dead-end and I should start thinking about migrating to a local WMS? Thanks! Rodrigo -- Rodrigo Del C. Andrade Programador SIC - SSE - Solu??es Seguran?a P?blica D?GITRO TECNOLOGIA E-mail: rodrigo.andrade at digitro.com.br Fone: +55 48 3281-7314 / +55 48 3281-7000 Fax: +55 48 3281-7299 Site: www.digitro.com From drewsimpson at BELLSOUTH.NET Tue Oct 9 06:18:27 2007 From: drewsimpson at BELLSOUTH.NET (Simpson) Date: Tue, 9 Oct 2007 08:18:27 -0500 Subject: Data Attribute for Color In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059EFA@ecburexch1.ontario.int.ec.gc.ca> Message-ID: I would like to use column/attribute data from my vector data source to provide RGB values for COLOR within a STYLE. Is this possible? Thanks, Drew. From marcos at BURKE.ATH.CX Tue Oct 9 06:38:59 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Tue, 9 Oct 2007 15:38:59 +0200 Subject: Mapbuilder + Mapserver without WMS? In-Reply-To: <470B7166.4060603@digitro.com.br> Message-ID: Try http://datacrossing.crs4.it/en_Documentation_mscross.html although serving wms should not be too hard. El mar, 09-10-2007 a las 09:17 -0300, Rodrigo Del C. Andrade escribi?: > > Greetings, > > I have been sniffing around the web lately trying to find a good > ajax client to enhance our in-house developed client in our mapping > application (Google maps spoiled a lot people). Anyway, I found > Mapbuilder and thought it would fit the bill because it works on > Tomcat and has allows all the visual customization we need. > However, I cant find in the docs any mention to it running > alongside Mapserver with a non-WMS setup. I dont think we could > refactor our java mapscript code to make it > work reliably trough a WMS connection. Not to mention no one over here > ever worked with WMS before, so add in the cost/time of training > someone. > > So, has anyone ever successfully used Mapbuilder sending > parameters to mapserver trough a good old fashion POST and fetching > the resulting map directly at the file system, or is that line a > research a dead-end and I should start thinking about migrating to a > local WMS? > > Thanks! > > Rodrigo > > -- > > Rodrigo Del C. Andrade > Programador > SIC - SSE - Solu??es Seguran?a P?blica > > D?GITRO TECNOLOGIA > E-mail: rodrigo.andrade at digitro.com.br > Fone: +55 48 3281-7314 / +55 48 3281-7000 > Fax: +55 48 3281-7299 > Site: www.digitro.com From jmckenna at DMSOLUTIONS.CA Tue Oct 9 06:59:59 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Tue, 9 Oct 2007 09:59:59 -0400 Subject: MS4W v5 - is SDE support compiled-in ? In-Reply-To: Message-ID: Polo Talnir wrote: > If so, are more detailed instructions for SDE access in Windows > available somewhere?. Yes SDE/MS4W instructions exist in the README_INSTALL document in your installation, or at http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde Also, note that you should be using the MS4W email list for MS4W configuration questions (subscribe at http://lists.maptools.org/mailman/listinfo/ms4w-users) -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From bfraser at GEOANALYTIC.COM Tue Oct 9 08:45:35 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 9 Oct 2007 09:45:35 -0600 Subject: Newbie qn re using lat/lon bounding box for eastings raster image in map file Message-ID: Andrew, MapServer re-projects each raster and vector data layer from their native coordinate systems to the "output" coordinate system you specify in the MAP file. Your raster file (Transverse Mercator) is not natively in the same coordinate system as your output image (likely Geographic?). Since the definition is stored in the tiff file in a way GDAL/Mapserver can get at it, you can simply add the following to your raster layer definition: PROJECTION "AUTO" END I'm tempted to file an enhancement request to make this the default and not actually be required since lots of raster and vector formats include a coordinate system definition. If the above doesn't work, post your map file so we can have a look at it... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Andrew Schofield" To: Sent: Monday, October 08, 2007 5:07 AM Subject: [UMN_MAPSERVER-USERS] Newbie qn re using lat/lon bounding box for eastings raster image in map file Apologies if this is covered by the mailing list already. I have looked through the documentation etc. and couldn?t find a clear explanation and have tried a variety of srs settings to no avail. (BTW, how do you search the mailing lists for multiple words?) I have a map file with a mixture of vector and raster layers. For the vector layers, my request url works fine with Lat/Lon ranges for the bounding box but the raster layer requires the bounding box in eastings/northings ranges. I would like one url that can query both layers with a latitude/longitude range only. I think I?m missing something in explicitly declaring the overriding projection scheme for the raster layer, is that correct? (The vector layers are epsg:4326). Thanks, Andy Below is the gdalinfo response for the single image covered by the raster layer. Driver: GTiff/GeoTIFF Size is 3431, 4021 Coordinate System is: PROJCS["unnamed", GEOGCS["WGS 84", DATUM["WGS_1984", SPHEROID["WGS 84",6378137,298.2572235630016, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich",0], UNIT["degree",0.0174532925199433], AUTHORITY["EPSG","4326"]], PROJECTION["Transverse_Mercator"], PARAMETER["latitude_of_origin",0], PARAMETER["central_meridian",-117], PARAMETER["scale_factor",0.9996], PARAMETER["false_easting",500000], PARAMETER["false_northing",0], UNIT["metre",1, AUTHORITY["EPSG","9001"]], AUTHORITY["EPSG","32611"]] Origin = (648640.000000000000000,4250560.000000000000000) Pixel Size = (32.000000000000000,-32.000000000000000) Metadata: AREA_OR_POINT=Point TIFFTAG_XRESOLUTION=1 TIFFTAG_YRESOLUTION=1 TIFFTAG_RESOLUTIONUNIT=1 (unitless) Corner Coordinates: Upper Left ( 648640.000, 4250560.000) (115d17'52.78"W, 38d23'27.28"N) Lower Left ( 648640.000, 4121888.000) (115d19'27.86"W, 37d13'54.01"N) Upper Right ( 758432.000, 4250560.000) (114d 2'31.34"W, 38d21'57.36"N) Lower Right ( 758432.000, 4121888.000) (114d 5'16.39"W, 37d12'27.75"N) Center ( 703536.000, 4186224.000) (114d41'17.34"W, 37d48'2.64"N) Band 1 Block=3431x128 Type=Byte, ColorInterp=Red Band 2 Block=3431x128 Type=Byte, ColorInterp=Green Band 3 Block=3431x128 Type=Byte, ColorInterp=Blue From richard.greenwood at GMAIL.COM Tue Oct 9 16:41:55 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Tue, 9 Oct 2007 17:41:55 -0600 Subject: Mapbuilder + Mapserver without WMS? In-Reply-To: <470B7166.4060603@digitro.com.br> Message-ID: On 10/9/07, Rodrigo Del C. Andrade wrote: > > > Greetings, > > I have been sniffing around the web lately trying to find a good ajax > client to enhance our in-house developed client in our mapping application > (Google maps spoiled a lot people). Anyway, I found Mapbuilder and thought > it would fit the bill because it works on Tomcat and has allows all the > visual customization we need. > However, I cant find in the docs any mention to it running alongside > Mapserver with a non-WMS setup. I dont think we could refactor our java > mapscript code to make it > work reliably trough a WMS connection. Not to mention no one over here ever > worked with WMS before, so add in the cost/time of training someone. > > So, has anyone ever successfully used Mapbuilder sending parameters to > mapserver trough a good old fashion POST and fetching the resulting map > directly at the file system, or is that line a research a dead-end and I > should start thinking about migrating to a local WMS? > > Thanks! > > Rodrigo OpenLayers support the 'Classic" MapServer protocol. Richard -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From bgiv at GMX.DE Wed Oct 10 00:44:49 2007 From: bgiv at GMX.DE (wolfgang Lahr) Date: Wed, 10 Oct 2007 02:44:49 -0500 Subject: PHP mapscript: mapfile includes Message-ID: Hello list, thanks for the input. Here is some more information: including mapfiles via PHP mapscript will work once (and only once without having to restart Apache) when PHP is running as an Apache module. PHP/CGI works just fine. Any idea how to manage this with PHP as a module? thanks Wolfgang From Jacob.Delfos at MAUNSELL.COM Wed Oct 10 00:54:32 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Wed, 10 Oct 2007 15:54:32 +0800 Subject: Can I export MapInfo "styleitem" info to PostGIS? Message-ID: Hi List, I'm in a situation where I have a huge amount of layers, and manually symbolising is not practical. All data is in MapInfo, which has the advantage that I can use "styleitem auto". However, due to a number of reasons I'll probably have to convert the setup to PostGIS. The question: Is it possible to carry the MapInfo style information across as an attribute, and point the styleitem to this attribute? Ogrinfo does not reveal any style-information, so ogr2ogr can not bring it across. Is there a solution to this? It would be absolutely ideal to be able to store symbology in PostGIS. Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matteo.rossi at UNIROMA1.IT Wed Oct 10 01:51:49 2007 From: matteo.rossi at UNIROMA1.IT (matteo rossi) Date: Wed, 10 Oct 2007 10:51:49 +0200 Subject: new user Message-ID: Hi everyone, I'ma new mapserver user and I'm trying with some friends to put on an application based on postgis-mapserver. Actually we're dealing with wms connection to Nasa Jpl dataset. The problem is that nothing appears in the map and the tiles are empty, so we think we made some mistake in writing the mapfile. Can you help us? Thanks a lot Matteo Rossi --------- MAP NAME "test_modis" STATUS ON SIZE 600 300 #UNITS dd IMAGECOLOR 3 234 122 IMAGEQUALITY 95 IMAGETYPE png PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "/tmp" IMAGEURL "/tmp" END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END LEGEND TRANSPARENT TRUE END SCALEBAR TRANSPARENT TRUE END LAYER NAME modis TYPE RASTER STATUS default CONNECTIONTYPE WMS CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" METADATA "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_name" "modis" "wms_style" "" "wms_server_version" "1.1.1" END END END #MAP END ----------------------------- -- Dott.Ing. Matteo Rossi Phd in Environmental Engineering Dept. Hydraulics, Transportations and Roads Faculty of Engineering University "La Sapienza" of Rome tel: +39 0644585024 fax: +39 0644585016 web: http://geoingegneria.dits.uniroma1.it/ mailto: matteo.rossi at uniroma1.it From flavio at TYDAC.CH Wed Oct 10 02:48:13 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 10 Oct 2007 11:48:13 +0200 Subject: Can I export MapInfo "styleitem" info to PostGIS? In-Reply-To: <4997F456680DAD4DA1E042C40C463611C3446F@auper1ex002.au.aecomnet.com> Message-ID: Hi Jacob I do not think that you could do that as the moment. FME (www.safe.com) would bring the styles along to PostGIS. However there is no way to define any other STYLEITEM as "auto" at the moment. "auto" is more or less limited to colors as far as I know. Ideal would be something like COLORITEM pointing to a column containing RGB color info ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: "Delfos, Jacob" To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Wed, 10 Oct 2007 15:54:32 +0800 Subject: [UMN_MAPSERVER-USERS] Can I export MapInfo "styleitem" info to PostGIS? > > Hi List, > > I'm in a situation where I have a huge amount of layers, and manually > symbolising is not practical. All data is in MapInfo, which has the > advantage that I can use "styleitem auto". > However, due to a number of reasons I'll probably have to convert the > setup to PostGIS. The question: > > Is it possible to carry the MapInfo style information across as an > attribute, and point the styleitem to this attribute? > > Ogrinfo does not reveal any style-information, so ogr2ogr can not > bring it across. Is there a solution to this? It would be absolutely > ideal to be able to store symbology in PostGIS. > > Regards, > > Jacob > > > JACOB DELFOS > GIS ANALYST > Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > PO Box 81, Leederville, WA 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > jacob.delfos at maunsell.com > > > > This email and any attachments are intended solely for the named > recipient and are confidential. The copying or distribution of them > or any information they contain by anyone other than the named > recipient is prohibited. If you have received this document in error, > please notify the sender and delete all copies from your computer > system and destroy all hard copies. It is the recipient's > responsibility to check this email and any attachments to this email > for viruses before use. From dmorissette at MAPGEARS.COM Wed Oct 10 06:07:51 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 10 Oct 2007 09:07:51 -0400 Subject: Can I export MapInfo "styleitem" info to PostGIS? In-Reply-To: Message-ID: Flavio Hendry wrote: > Hi Jacob > > I do not think that you could do that as the moment. FME (www.safe.com) > would bring the styles along to PostGIS. However there is no way to > define any other STYLEITEM as "auto" at the moment. That's correct. The original plan was to eventually support binding STYLEITEM to any attribute which would contain a style string in the format that OGR produces/understands, but we never got to that and only STYLEITEM AUTO has been implemented. > "auto" is more or > less limited to colors as far as I know. AUTO also supports mapping symbols, fonts and about anything you find in MapInfo symbology. You need to have the right entries in your fontset and symbolset for the mapping to work. This should be covered by the OGR HowTo. > Ideal would be something like > COLORITEM pointing to a column containing RGB color info ... > This is possible with v5.0, you'd use: COLOR [mycolor] Where "mycolor" is the attribute name from the data source. Color can be given as a hex value (e.g. #FFFFFF) or an RGB triplet (e.g. 255 255 255). The following properties can accept bindings in 5.0: * Style: angle, color, outlinecolor, size, symbol * Label: angle, color, outlinecolor, size, font, priority That is the reason why LABELITEM, ANGLEITEM, etc were dropped in 5.0. e.g. LABELITEM was replaced by "LABEL [mylabelitem]", etc. Daniel -- Daniel Morissette http://www.mapgears.com/ From Josh.Hevenor at DPRA.COM Wed Oct 10 07:18:50 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Wed, 10 Oct 2007 09:18:50 -0500 Subject: FastCGI Curiosities Message-ID: Hey List, The FastCGI Extension for IIS just released a new beta and I've been taking a look at it. I'm interested to hear if anyone has successfully run mapserver through it and if so what kind of configuration they have. I'm also wondering if such configurations would benefit MapScript applications or only direct calls like WMS requests. I'm not sure how MapScript, the mapserv.exe and web server configurations are related. Thanks in advance, Josh Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Phone: 905-333-4544 ext. 19 Fax: 905-333-0455 Cell: 905-320-7525 Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Wed Oct 10 07:16:57 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 10 Oct 2007 17:16:57 +0300 Subject: new user Message-ID: Hi, How about trying to add EXTENT to your mapfile? -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of matteo rossi Sent: Wed 10.10.2007 11:51 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] new user Hi everyone, I'ma new mapserver user and I'm trying with some friends to put on an application based on postgis-mapserver. Actually we're dealing with wms connection to Nasa Jpl dataset. The problem is that nothing appears in the map and the tiles are empty, so we think we made some mistake in writing the mapfile. Can you help us? Thanks a lot Matteo Rossi --------- MAP NAME "test_modis" STATUS ON SIZE 600 300 #UNITS dd IMAGECOLOR 3 234 122 IMAGEQUALITY 95 IMAGETYPE png PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "/tmp" IMAGEURL "/tmp" END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END LEGEND TRANSPARENT TRUE END SCALEBAR TRANSPARENT TRUE END LAYER NAME modis TYPE RASTER STATUS default CONNECTIONTYPE WMS CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" METADATA "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_name" "modis" "wms_style" "" "wms_server_version" "1.1.1" END END END #MAP END ----------------------------- -- Dott.Ing. Matteo Rossi Phd in Environmental Engineering Dept. Hydraulics, Transportations and Roads Faculty of Engineering University "La Sapienza" of Rome tel: +39 0644585024 fax: +39 0644585016 web: http://geoingegneria.dits.uniroma1.it/ mailto: matteo.rossi at uniroma1.it From dmorissette at MAPGEARS.COM Wed Oct 10 07:29:47 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 10 Oct 2007 10:29:47 -0400 Subject: PHP mapscript: mapfile includes In-Reply-To: Message-ID: wolfgang Lahr wrote: > Hello list, > > thanks for the input. Here is some more information: including mapfiles via > PHP mapscript will work once (and only once without having to restart > Apache) when PHP is running as an Apache module. PHP/CGI works just fine. > Any idea how to manage this with PHP as a module? > This is probably related to the following bug: http://trac.osgeo.org/mapserver/ticket/2021 ... which is fixed in 5.0. I'd suggest that you consider upgrading to 5.0 to get the fix since we do not currently have plans for another 4.10 release. Daniel -- Daniel Morissette http://www.mapgears.com/ From jmckenna at DMSOLUTIONS.CA Wed Oct 10 08:19:23 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 10 Oct 2007 11:19:23 -0400 Subject: new user In-Reply-To: <470C92A5.3090005@uniroma1.it> Message-ID: it also seems to be a shakey server ("Service denied due to system overload. Please try again later.") -- jeff matteo rossi wrote: > Hi everyone, > I'ma new mapserver user and I'm trying with some friends to put on an > application based on postgis-mapserver. > Actually we're dealing with wms connection to Nasa Jpl dataset. > The problem is that nothing appears in the map and the tiles are empty, > so we think we made some mistake in writing the mapfile. > > Can you help us? > > Thanks a lot > > Matteo Rossi > From matteo.rossi at UNIROMA1.IT Wed Oct 10 08:41:39 2007 From: matteo.rossi at UNIROMA1.IT (matteo rossi) Date: Wed, 10 Oct 2007 17:41:39 +0200 Subject: new user In-Reply-To: <470CED7B.9050207@dmsolutions.ca> Message-ID: Well, I try to add the same Modis by a wms connection on Qgis from the same server and it worked! I'm a little puzzed on this. But do you think the mapfile compilation is correct? if so, the problem is elsewhere, i'm going to find another way. thanks matteo Jeff McKenna ha scritto: > it also seems to be a shakey server ("Service denied due to system > overload. Please try again later.") > > -- > jeff > > > > > matteo rossi wrote: >> Hi everyone, >> I'ma new mapserver user and I'm trying with some friends to put on an >> application based on postgis-mapserver. >> Actually we're dealing with wms connection to Nasa Jpl dataset. >> The problem is that nothing appears in the map and the tiles are >> empty, so we think we made some mistake in writing the mapfile. >> >> Can you help us? >> >> Thanks a lot >> >> Matteo Rossi >> > > -- Dott.Ing. Matteo Rossi Phd in Environmental Engineering Dept. Hydraulics, Transportations and Roads Faculty of Engineering University "La Sapienza" of Rome tel: +39 0644585024 fax: +39 0644585016 web: http://geoingegneria.dits.uniroma1.it/ mailto: matteo.rossi at uniroma1.it From jeff2006 at SVS.GSFC.NASA.GOV Wed Oct 10 08:49:55 2007 From: jeff2006 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 10 Oct 2007 11:49:55 -0400 Subject: problem invoking WCS: "no template"??? Message-ID: I am trying to make the Web Coverage Service (WCS) feature work. However, GetCapabilies and GetCoverage requests both respond with "mapserv(): Web application error. No template provided." No doubt I have made some basic configuration error, but I cannot find my problem. The Web Map Service (WMS) functionality using the same mapfile does work. Here are the parts of my mapfile that I believe are relevant to WCS: # Added for WCS support OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" END # TEST WCS feature LAYER NAME "airstiff" TYPE RASTER DUMP TRUE METADATA "wcs_title" "AIRS TIFF Coverage" "wcs_nativeformat" "tiff" END STATUS off PROJECTION "init=epsg:4326" END DATA "/sivo/data/soar/airs/2007/01/04/12/bt.tiff" END NOTE: The same floating-point GeoTIFF (bt.tiff) is correctly read and classified by the WMS component. Is there something missing in my mapfile? This document: http://mapserver.gis.umn.edu/docs/howto/wcs_server/#d45e65 claims that four conditions must be satisfied, as I believe I have done: Data source is of raster type that is processed using GDAL (e.g GeoTIFF, Erdas Imagine, ...) LAYER NAME must be set LAYER TYPE is RASTER LAYER DUMP parameter set to TRUE Thanks for any help, Jeff DLB From Tom.Kralidis at EC.GC.CA Wed Oct 10 09:05:42 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 10 Oct 2007 12:05:42 -0400 Subject: problem invoking WCS: "no template"??? In-Reply-To: A<470CF4A3.7050400@svs.gsfc.nasa.gov> Message-ID: > I am trying to make the Web Coverage Service (WCS) feature work. > However, GetCapabilies and GetCoverage requests both respond with > "mapserv(): Web application error. No template provided." > No doubt I have made some basic configuration error, but I > cannot find my problem. The Web Map Service (WMS) > functionality using the same mapfile does work. > > Here are the parts of my mapfile that I believe are relevant to WCS: > > # Added for WCS support > OUTPUTFORMAT > NAME GEOTIFF > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "BYTE" > EXTENSION "tif" > END > > # TEST WCS feature > LAYER > NAME "airstiff" > TYPE RASTER > DUMP TRUE > METADATA > "wcs_title" "AIRS TIFF Coverage" > "wcs_nativeformat" "tiff" > END > STATUS off > PROJECTION > "init=epsg:4326" > END > DATA "/sivo/data/soar/airs/2007/01/04/12/bt.tiff" > END > > NOTE: The same floating-point GeoTIFF (bt.tiff) is correctly > read and classified by the WMS component. > > Is there something missing in my mapfile? This document: > http://mapserver.gis.umn.edu/docs/howto/wcs_server/#d45e65 > claims that four conditions must be satisfied, as I believe I > have done: > Data source is of raster type that is processed using > GDAL (e.g GeoTIFF, Erdas Imagine, ...) > LAYER NAME must be set > LAYER TYPE is RASTER > LAYER DUMP parameter set to TRUE > > Thanks for any help, > Jeff DLB > Jeff, What does your request URL look like? Did you include service=WCS in the request? ..Tom From arndw at WTAL.DE Wed Oct 10 09:12:04 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Wed, 10 Oct 2007 18:12:04 +0200 Subject: AW: [UMN_MAPSERVER-USERS] new user In-Reply-To: Message-ID: If you use 4.10, it is possible that the missing STYLES= in the Request is the problem. Try CONNECTION 'http://wms.jpl.nasa.gov/wms.cgi?STYLES=' Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Rahkonen Jukka Gesendet: Mittwoch, 10. Oktober 2007 16:17 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] new user Hi, How about trying to add EXTENT to your mapfile? -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of matteo rossi Sent: Wed 10.10.2007 11:51 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] new user Hi everyone, I'ma new mapserver user and I'm trying with some friends to put on an application based on postgis-mapserver. Actually we're dealing with wms connection to Nasa Jpl dataset. The problem is that nothing appears in the map and the tiles are empty, so we think we made some mistake in writing the mapfile. Can you help us? Thanks a lot Matteo Rossi --------- MAP NAME "test_modis" STATUS ON SIZE 600 300 #UNITS dd IMAGECOLOR 3 234 122 IMAGEQUALITY 95 IMAGETYPE png PROJECTION "init=EPSG:4326" END WEB IMAGEPATH "/tmp" IMAGEURL "/tmp" END OUTPUTFORMAT NAME png DRIVER 'GD/PNG' MIMETYPE 'image/png' #IMAGEMODE PC256 EXTENSION 'png' END LEGEND TRANSPARENT TRUE END SCALEBAR TRANSPARENT TRUE END LAYER NAME modis TYPE RASTER STATUS default CONNECTIONTYPE WMS CONNECTION "http://wms.jpl.nasa.gov/wms.cgi?" METADATA "wms_srs" "EPSG:4326" "wms_format" "image/jpeg" "wms_name" "modis" "wms_style" "" "wms_server_version" "1.1.1" END END END #MAP END ----------------------------- -- Dott.Ing. Matteo Rossi Phd in Environmental Engineering Dept. Hydraulics, Transportations and Roads Faculty of Engineering University "La Sapienza" of Rome tel: +39 0644585024 fax: +39 0644585016 web: http://geoingegneria.dits.uniroma1.it/ mailto: matteo.rossi at uniroma1.it From drewsimpson at BELLSOUTH.NET Wed Oct 10 09:49:23 2007 From: drewsimpson at BELLSOUTH.NET (Simpson) Date: Wed, 10 Oct 2007 11:49:23 -0500 Subject: Query Annotation Layers with Mapscript In-Reply-To: <470CF2B3.5070803@uniroma1.it> Message-ID: Greetings, The mapscript drawQuery method seems to be crashing with ANNOTATION layers. It may be something unusual in my configuration, but seems very consistent. Is anyone aware of any issues with this? Mapserver version 5.0.0, perl mapscript on Linux. Thanks for any info, Drew. From jeff2006 at SVS.GSFC.NASA.GOV Wed Oct 10 09:52:44 2007 From: jeff2006 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 10 Oct 2007 12:52:44 -0400 Subject: problem invoking WCS: "no template"??? In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059F07@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > What does your request URL look like? Did you include service=WCS in > the request? My URLs look like this: .../mapserv.cgi?map=/sivo/www/wms/inst2/mapfiles/soar.map&SERVICE=WCS&VERSION=1.0&REQUEST=GetCoverage&coverage=airstiff&CRS=EPSG:4326&BBOX=-180,-90,180,90&WIDTH=720&HEIGHT=360&FORMAT=image/tiff .../mapserv.cgi?map=/sivo/www/wms/inst2/mapfiles/soar.map&SERVICE=WCS&VERSION=1.0&REQUEST=GetCapabilities -Jeff DLB From bgiv at GMX.DE Wed Oct 10 10:22:02 2007 From: bgiv at GMX.DE (wolfgang Lahr) Date: Wed, 10 Oct 2007 12:22:02 -0500 Subject: PHP mapscript: mapfile includes Message-ID: Daniel, thanks for pointing this out to me. You are absolutely right. But, because I'd like to stick to Mapserver < 5.x for the moment, I decided to sort of backport the fix to my sources. And it is working now. thanks again Wolfgang From lfilak at MEDINACO.ORG Wed Oct 10 10:07:38 2007 From: lfilak at MEDINACO.ORG (Lowell.Filak) Date: Wed, 10 Oct 2007 13:07:38 -0400 Subject: Query Annotation Layers with Mapscript In-Reply-To: Message-ID: Simpson writes: > Greetings, > > The mapscript drawQuery method seems to be crashing with ANNOTATION layers. > > It may be something unusual in my configuration, but seems very consistent. > > Is anyone aware of any issues with this? > > Mapserver version 5.0.0, perl mapscript on Linux. Drew, Don't know of any issues but we're not on 5 yet. Do you have any debug info available to forward, ie. mapserver.log, error_log, etc.? Lowell F. From richard.greenwood at GMAIL.COM Wed Oct 10 12:08:02 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Wed, 10 Oct 2007 13:08:02 -0600 Subject: Labels in 5.0 was: Can I export MapInfo "styleitem" info to PostGIS? Message-ID: On 10/10/07, Daniel Morissette wrote: > That is the reason why LABELITEM, ANGLEITEM, etc were dropped in 5.0. > e.g. LABELITEM was replaced by "LABEL [mylabelitem]", etc. The above doesn't work for me. My layer definition is: LAYER NAME "water" STATUS ON DATA "Hydro/Water" TYPE LINE #LABELITEM "Name" LABEL [Name] LABELMAXSCALE 50000 CLASS COLOR 0 0 255 SYMBOL 'solid' SIZE 1 LABEL ANGLE AUTO TYPE truetype antialias true POSITION CC SIZE 8 COLOR 0 0 255 FONT arial OUTLINECOLOR 255 255 255 END # label END # class END # water layer Am I putting LABEL [Name] in the wrong place? Thanks, Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From woodbri at SWOODBRIDGE.COM Wed Oct 10 12:23:07 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 10 Oct 2007 15:23:07 -0400 Subject: Labels in 5.0 was: Can I export MapInfo "styleitem" info to PostGIS? In-Reply-To: Message-ID: Richard, the field definition might be case sensitive so it would like be: LABEL [NAME] # for shapefiles LABEL [name] # for postgres And your guess is as good as mine for the rest. -Steve W Richard Greenwood wrote: > On 10/10/07, Daniel Morissette wrote: > >> That is the reason why LABELITEM, ANGLEITEM, etc were dropped in 5.0. >> e.g. LABELITEM was replaced by "LABEL [mylabelitem]", etc. > > The above doesn't work for me. My layer definition is: > > LAYER > NAME "water" > STATUS ON > DATA "Hydro/Water" > TYPE LINE > #LABELITEM "Name" > LABEL [Name] > LABELMAXSCALE 50000 > CLASS > COLOR 0 0 255 > SYMBOL 'solid' > SIZE 1 > LABEL > ANGLE AUTO > TYPE truetype > antialias true > POSITION CC > SIZE 8 > COLOR 0 0 255 > FONT arial > OUTLINECOLOR 255 255 255 > END # label > END # class > END # water layer > > Am I putting LABEL [Name] in the wrong place? > > Thanks, > Rich > From dmorissette at MAPGEARS.COM Wed Oct 10 12:16:41 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 10 Oct 2007 15:16:41 -0400 Subject: Labels in 5.0 was: Can I export MapInfo "styleitem" info to PostGIS? In-Reply-To: Message-ID: Richard Greenwood wrote: > On 10/10/07, Daniel Morissette wrote: > >> That is the reason why LABELITEM, ANGLEITEM, etc were dropped in 5.0. >> e.g. LABELITEM was replaced by "LABEL [mylabelitem]", etc. > > The above doesn't work for me. My layer definition is: > OOpps.. sorry I was wrong. LABELITEM is still there. It's the following that are gone: * Layer: LABELANGLEITEM, LABELSIZEITEM * Style: ANGLEITEM, SIZEITEM ... and replaced by attribute binding, e.g. LAYER NAME "water" STATUS ON DATA "Hydro/Water" TYPE LINE LABELITEM "Name" LABELMAXSCALE 50000 CLASS COLOR 0 0 255 SYMBOL 'solid' SIZE [mySize] LABEL ANGLE AUTO TYPE truetype antialias true POSITION CC SIZE [myLabelSize] COLOR 0 0 255 FONT arial OUTLINECOLOR 255 255 255 END # label END # class END # water layer Sorry about this. Daniel -- Daniel Morissette http://www.mapgears.com/ From condit at SDSC.EDU Wed Oct 10 14:46:59 2007 From: condit at SDSC.EDU (Christopher Condit) Date: Wed, 10 Oct 2007 14:46:59 -0700 Subject: WFS and large postgis datasets In-Reply-To: A<20071010170738.C60204C8FE@webmail.medinaco.org> Message-ID: I have a few questions regarding WFS and large PostGIS databases (mapfile below): *) When I run a getFeature request on my layer, I get the following GML: missing However, if I connect with uDig, I do see features returned. Why do I not see the XML when I request it from my browser? *) Also, I've tried using FE to filter down the dataset with no luck. In this case, since the dataset has millions of features, I'm curious how the FE logic works. Will it attempt to retrieve the entire dataset and only then apply the filter? Or will it apply the filter in SQL. Likewise with the wfs_maxfeatures metadata - will that only apply after it loads the dataset or does it add a "limit" clause to the sql query? Thanks, -Chris NAME testWFSService STATUS ON SIZE 800 600 EXTENT -180 -90 180 90 UNITS DD IMAGECOLOR 255 255 255 WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms4w/tmp/" METADATA "wfs_title" "Test" ## REQUIRED "wfs_maxfeatures" "4000" "wfs_request_method" "get" "wfs_extent" "-180 -90 180 90" # "wfs_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" ## Recommended "wfs_srs" "EPSG:4326" ## Recommended # "ows_schemas_location" "http://ogc.dmsolutions.ca" ## Optional END END PROJECTION "init=epsg:4236" END LAYER NAME test METADATA "wfs_title" "test" ## REQUIRED "gml_featureid" "oid" ## REQUIRED "wfs_featureid" "oid" ## REQUIRED "gml_include_items" "all" ## Optional (serves all attributes for layer) "wfs_extent" "-180 -90 180 90" END EXTENT -180 -90 180 90 PROJECTION "init=epsg:4236" END TYPE POINT STATUS DEFAULT CONNECTIONTYPE POSTGIS CONNECTION "host=myhost dbname=test user=test password=pass port=5432" DATA "geom from mytable using unique oid using SRID=4326" DUMP TRUE ## REQUIRED CLASS METADATA END STYLE ANGLE 360 OUTLINECOLOR 255 0 0 COLOR 255 0 0 SYMBOL 0 WIDTH 4 END END END # Layer END # Map File From Jacob.Delfos at MAUNSELL.COM Wed Oct 10 16:59:11 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 11 Oct 2007 07:59:11 +0800 Subject: Can I export MapInfo "styleitem" info to PostGIS? In-Reply-To: <470CCEA7.3090005@mapgears.com> Message-ID: Daniel,Flavio, Thanks for your replies. At least I know I won't have to bother pursuing that if it doesn't work. I may look into carrying color across. I tried using FME to get style across, but I probably did it wrong, because it came out empty. I'll look into whether I can write a script to assign colors automatically based on an attribute. Thanks, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Morissette > Sent: 10 October 2007 21:08 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Can I export MapInfo > "styleitem" info to PostGIS? > > Flavio Hendry wrote: > > Hi Jacob > > > > I do not think that you could do that as the moment. FME > (www.safe.com) > > would bring the styles along to PostGIS. However there is no way to > > define any other STYLEITEM as "auto" at the moment. > > That's correct. The original plan was to eventually support binding > STYLEITEM to any attribute which would contain a style string in the > format that OGR produces/understands, but we never got to > that and only > STYLEITEM AUTO has been implemented. > > > "auto" is more or > > less limited to colors as far as I know. > > AUTO also supports mapping symbols, fonts and about anything > you find in > MapInfo symbology. You need to have the right entries in your fontset > and symbolset for the mapping to work. This should be covered > by the OGR > HowTo. > > > > Ideal would be something like > > COLORITEM pointing to a column containing RGB color info ... > > > > This is possible with v5.0, you'd use: > > COLOR [mycolor] > > Where "mycolor" is the attribute name from the data source. > Color can be > given as a hex value (e.g. #FFFFFF) or an RGB triplet (e.g. > 255 255 255). > > The following properties can accept bindings in 5.0: > > * Style: angle, color, outlinecolor, size, symbol > * Label: angle, color, outlinecolor, size, font, priority > > That is the reason why LABELITEM, ANGLEITEM, etc were dropped in 5.0. > e.g. LABELITEM was replaced by "LABEL [mylabelitem]", etc. > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From samhiatt at GMAIL.COM Wed Oct 10 17:36:26 2007 From: samhiatt at GMAIL.COM (Samuel Hiatt) Date: Wed, 10 Oct 2007 17:36:26 -0700 Subject: 4D Raster access NOT via WMS? Message-ID: I am excited to see that Mapserver supports 4D raster layers for WMS, but I am curious if this functionality can be extended to mapscript calls as well? For example, if I set up a raster layer with a TIME dimension then will it be possible for me to request an image for a specific time with mapscript? Or would I have to do this with a WMS call? Thanks! Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: From vishu_73ns at YAHOO.COM Wed Oct 10 22:16:33 2007 From: vishu_73ns at YAHOO.COM (vishal nagpal) Date: Wed, 10 Oct 2007 22:16:33 -0700 Subject: Displaying adjacent SHP files in MapServer? (converting from MapInfo) In-Reply-To: <55038.91869.qm@web56706.mail.re3.yahoo.com> Message-ID: --- "kreshna_iceheart at yahoo.com" wrote: > Thank you, vishal! :) Sorry for writing late, just got busy with some report, > However, I'm not really familiar with Tile Indexing, > though. From what I read from here: > http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms > > Tile Indexing enables MapServer to automatically > position of multiple shapefiles, according to their > vector coordinate relative to each other, am I > correct? Thus, I don't have to manually configure > which particular shape file should be positioned > next > to another shape file, etc, etc, do I? > > If that's the case, then I'm glad to hear it, > because > manually positioning each shape file is of course a > nightmare. O_O > Yes you are correct you don't have to do it manually. It is automatically taken care of by tileindexing if the information is part of your shp file. > I still have concerns, though: my shapefiles will be > converted from MapInfo's .TAB files. Assuming that > MapServer's will automatically put each shapefile, > based on their coordination relative to each other, > will there be innacuracies due to converting from > MapInfo? For example, will there be a slight > overlapping between Province, that needs to be > eliminated by hand-tuning? (pardon my paranoia > because > I'm a newbie) I don't think their should be any accuracies. You can however find the information about your files using ogrinfo or gdalinfo, and use that information. You can also amend or add the information by using wld file. > > > Also, is there any set of downloadable shapefiles > for > tutorial purpose, specifically for Tile Indexing > tutorial? Sorry i am not having any sample data that can be shared but I am sure there must be some aailable online. > > > Many, many thanks again, > -Kresh All the best, Vishal > > > > --- vishal nagpal wrote: > > > Yes it is possible to join several shape files > using > > tile indexing. > > It will not be difficult once you are familiar > with > > the basic functioning of Mapserver > > This is what I know and have been doing, > > All the best, > > Vishal > > --- Kreshna Aryaguna Nurzaman > > wrote: > > > > > Hi, > > > > > > I'm a MapServer newbie, and I'm to show a GIS > map > > of > > > a country using > > > MapServer. > > > > > > The source is MapInfo, and the country's map is > > > actually made of several > > > adjacent .TAB files (each .TAB file consists a > > > Province) instead of a single > > > TAB file. > > > > > > I'm going to convert those MapInfo files into > ESRI > > > SHP files. > > > > > > My question is: > > > > > > (1) Can MapServer display several adjacent SHP > > files > > > as a single map, like what > > > MapInfo does with those multiple TAB files? > > > > > > (2) Is it difficult or complex to do the #1 > above? > > > Is it time-consuming? > > > Development time is my concern here, especially > > > since I'm not going to display > > > every details of the original MapInfo maps > --only > > > those relevant to public > > > information needs. > > > > > > (3) Will it be better to combine those multiple > > > MapInfo TAB files into a single > > > large TAB file, and then convert it to SHP file > to > > > be displayed by MapServer? > > > > > > Thanks, > > > -Kresh > > > > > > > > > > > > > > ____________________________________________________________________________________ > > Don't let your dream ride pass you by. Make it a > > reality with Yahoo! Autos. > > http://autos.yahoo.com/index.html > > > > > > > __________________________________________________________________ > So be it. If saying "NO" means being alone, then to > hell with love, with women, with marriage, with God, > religions, bars, nightclubs, computer games, and all > the shit life keeps pumping at me. I'll walk alone, > but with freedom and a healed pride. > > > > ____________________________________________________________________________________ > Take the Internet to Go: Yahoo!Go puts the Internet > in your pocket: mail, news, photos & more. > http://mobile.yahoo.com/go?refer=1GNXIC > ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting From flavio at TYDAC.CH Wed Oct 10 23:24:13 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Thu, 11 Oct 2007 08:24:13 +0200 Subject: Can I export MapInfo "styleitem" info to PostGIS? In-Reply-To: <4997F456680DAD4DA1E042C40C463611C34470@auper1ex002.au.aecomnet.com> Message-ID: Hi Jacob In FME use the Workbench and do as follows: - open the source dialog (click on [...] of your source file - choose "format attributes" - expose "mapinfo_brush_foreground" This will expose the MapInfo color. What you then have to do is calculate RGB from it (see MapInfo Doc for that). Optionally expose the "fme_color" attribue. See as well our color calculator for details: http://www.tydac.ch/color/ (if you look at the source how it is calculalted). From szekerest at GMAIL.COM Thu Oct 11 00:22:32 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 11 Oct 2007 09:22:32 +0200 Subject: Can I export MapInfo "styleitem" info to PostGIS? In-Reply-To: <4997F456680DAD4DA1E042C40C463611C34470@auper1ex002.au.aecomnet.com> Message-ID: Jacob, Does it mean you have different styles per feature in most of your mapinfo files? If you have only layer level styles then it would be reasonable to extract the auto style information to the mapfile configuration. Currently I'm not aware of any stardard that would address storing the style info along with the data in the database that could be officially supported by mapserver and OGR. For example we could add support for parsing the OGR stylestring representation from a feature attribute but it would be quite unefficient and slow. Best regards, Tamas 2007/10/11, Delfos, Jacob : > Daniel,Flavio, > > Thanks for your replies. At least I know I won't have to bother pursuing > that if it doesn't work. > I may look into carrying color across. I tried using FME to get style > across, but I probably did it wrong, because it came out empty. > > I'll look into whether I can write a script to assign colors > automatically based on an attribute. > > Thanks, > > Jacob > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Morissette > > Sent: 10 October 2007 21:08 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Can I export MapInfo > > "styleitem" info to PostGIS? > > > > Flavio Hendry wrote: > > > Hi Jacob > > > > > > I do not think that you could do that as the moment. FME > > (www.safe.com) > > > would bring the styles along to PostGIS. However there is no way to > > > define any other STYLEITEM as "auto" at the moment. > > > > That's correct. The original plan was to eventually support binding > > STYLEITEM to any attribute which would contain a style string in the > > format that OGR produces/understands, but we never got to > > that and only > > STYLEITEM AUTO has been implemented. > > > > > "auto" is more or > > > less limited to colors as far as I know. > > > > AUTO also supports mapping symbols, fonts and about anything > > you find in > > MapInfo symbology. You need to have the right entries in your fontset > > and symbolset for the mapping to work. This should be covered > > by the OGR > > HowTo. > > > > > > > Ideal would be something like > > > COLORITEM pointing to a column containing RGB color info ... > > > > > > > This is possible with v5.0, you'd use: > > > > COLOR [mycolor] > > > > Where "mycolor" is the attribute name from the data source. > > Color can be > > given as a hex value (e.g. #FFFFFF) or an RGB triplet (e.g. > > 255 255 255). > > > > The following properties can accept bindings in 5.0: > > > > * Style: angle, color, outlinecolor, size, symbol > > * Label: angle, color, outlinecolor, size, font, priority > > > > That is the reason why LABELITEM, ANGLEITEM, etc were dropped in 5.0. > > e.g. LABELITEM was replaced by "LABEL [mylabelitem]", etc. > > > > Daniel > > -- > > Daniel Morissette > > http://www.mapgears.com/ > > > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. > From Piero.Cavalieri at HEIDI.IT Thu Oct 11 00:44:55 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 11 Oct 2007 09:44:55 +0200 Subject: problem invoking WCS: "no template"??? In-Reply-To: A<2DC5CCA14756424BBBEE8B4B2E4A682F01059F07@ecburexch1.ontario.int.ec.gc.ca> Message-ID: This one works for me (not sure if it's formally correct, but it seems to work): http://pcavalieri/Scripts/WCS/mapserv.exe?map=D:/gis/data/trentino/trentinoWCS.map&SERVICE=WCS&version=1.0.0&REQUEST=GetCoverage&Coverage=ECW&BBOX=1650000,5095000,1700000,5100000&CRS=EPSG:26591&RESX=1&RESY=1&FORMAT=ECW and .map: # # Start of map file # NAME TRENTINO STATUS ON OUTPUTFORMAT NAME ECW DRIVER "GDAL/ECW" MIMETYPE "image/ecw" IMAGEMODE "BYTE" EXTENSION "ecw" END # # Start of layer definitions # LAYER NAME "ECW" TYPE RASTER STATUS OFF PROCESSING "SCALE=AUTO" UNITS Meters DUMP TRUE TILEITEM "location" TILEINDEX "D:\gis\data\trentino\ECWindex.shp" METADATA "wcs_description" "ecw" "wcs_name" "ecw" "wcs_label" "ecw trentino" "ows_srs" "EPSG:26591" "ows_extent" "1609350 5056766 1731630 5159006" "wcs_resolution" "1 1" "wcs_bandcount" "3" "wcs_formats" "ECW" END END END # Map File Cheers Piero -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kralidis,Tom [Burlington] Sent: mercoled? 10 ottobre 2007 18.06 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem invoking WCS: "no template"??? > I am trying to make the Web Coverage Service (WCS) feature work. > However, GetCapabilies and GetCoverage requests both respond with > "mapserv(): Web application error. No template provided." > No doubt I have made some basic configuration error, but I > cannot find my problem. The Web Map Service (WMS) > functionality using the same mapfile does work. > > Here are the parts of my mapfile that I believe are relevant to WCS: > > # Added for WCS support > OUTPUTFORMAT > NAME GEOTIFF > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "BYTE" > EXTENSION "tif" > END > > # TEST WCS feature > LAYER > NAME "airstiff" > TYPE RASTER > DUMP TRUE > METADATA > "wcs_title" "AIRS TIFF Coverage" > "wcs_nativeformat" "tiff" > END > STATUS off > PROJECTION > "init=epsg:4326" > END > DATA "/sivo/data/soar/airs/2007/01/04/12/bt.tiff" > END > > NOTE: The same floating-point GeoTIFF (bt.tiff) is correctly > read and classified by the WMS component. > > Is there something missing in my mapfile? This document: > http://mapserver.gis.umn.edu/docs/howto/wcs_server/#d45e65 > claims that four conditions must be satisfied, as I believe I > have done: > Data source is of raster type that is processed using > GDAL (e.g GeoTIFF, Erdas Imagine, ...) > LAYER NAME must be set > LAYER TYPE is RASTER > LAYER DUMP parameter set to TRUE > > Thanks for any help, > Jeff DLB > Jeff, What does your request URL look like? Did you include service=WCS in the request? ..Tom From Piero.Cavalieri at HEIDI.IT Thu Oct 11 00:52:29 2007 From: Piero.Cavalieri at HEIDI.IT (Piero Cavalieri) Date: Thu, 11 Oct 2007 09:52:29 +0200 Subject: problem invoking WCS: "no template"??? In-Reply-To: A<2DC5CCA14756424BBBEE8B4B2E4A682F01059F07@ecburexch1.ontario.int.ec.gc.ca> Message-ID: P.S. Maybe you have some template related keyword, in your map file, which doesn't make sense, in a WCS. Bye Piero -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kralidis,Tom [Burlington] Sent: mercoled? 10 ottobre 2007 18.06 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] problem invoking WCS: "no template"??? > I am trying to make the Web Coverage Service (WCS) feature work. > However, GetCapabilies and GetCoverage requests both respond with > "mapserv(): Web application error. No template provided." > No doubt I have made some basic configuration error, but I > cannot find my problem. The Web Map Service (WMS) > functionality using the same mapfile does work. > > Here are the parts of my mapfile that I believe are relevant to WCS: > > # Added for WCS support > OUTPUTFORMAT > NAME GEOTIFF > DRIVER "GDAL/GTiff" > MIMETYPE "image/tiff" > IMAGEMODE "BYTE" > EXTENSION "tif" > END > > # TEST WCS feature > LAYER > NAME "airstiff" > TYPE RASTER > DUMP TRUE > METADATA > "wcs_title" "AIRS TIFF Coverage" > "wcs_nativeformat" "tiff" > END > STATUS off > PROJECTION > "init=epsg:4326" > END > DATA "/sivo/data/soar/airs/2007/01/04/12/bt.tiff" > END > > NOTE: The same floating-point GeoTIFF (bt.tiff) is correctly > read and classified by the WMS component. > > Is there something missing in my mapfile? This document: > http://mapserver.gis.umn.edu/docs/howto/wcs_server/#d45e65 > claims that four conditions must be satisfied, as I believe I > have done: > Data source is of raster type that is processed using > GDAL (e.g GeoTIFF, Erdas Imagine, ...) > LAYER NAME must be set > LAYER TYPE is RASTER > LAYER DUMP parameter set to TRUE > > Thanks for any help, > Jeff DLB > Jeff, What does your request URL look like? Did you include service=WCS in the request? ..Tom From joseramonlopez at GMAIL.COM Thu Oct 11 03:11:56 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Thu, 11 Oct 2007 12:11:56 +0200 Subject: Mapserver 5 with Oracle10g or ArcSDE 9.2 Message-ID: Hi list again. Im trying to configure a new server with mapserver 5.0 connect it with Oracle 10g or ArcSDE 9.2 , ussing the ms4w package (MS4W PHP5 Base Installer v2.2.6 ) I have done all that i have read in the instructions. The problems is that mapserver sends to me a blank image, and with some clients it send me a error. I have installed in that machine Oracle 10g client. This is the configuration of the layer. LAYER NAME AFOROS GROUP "Redes.Ctrl" TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION 'user/pass at SDE' DATA 'SHAPE FROM AFOROS USING UNIQUE OBJECTID' DUMP TRUE DEBUG ON PROCESSING "CLOSE_CONNECTION=DEFER" TRANSPARENCY 0 PROJECTION "init=EPSG:23030" END CLASS STYLE SYMBOL "circle" SIZE 10 COLOR 255 85 0 END NAME 'Aforos' END METADATA "wms_title" "Aforos" "wms_group_title" "Redes de Control" "wms_keywordlist" "WMS Aforos" "wms_srs" "EPSG:23030" "wms_extent" "154590 4062740 579080 4300000" END END In httpd.conf i have declared the system varibles: #Oracle Spatial SetEnv PATH "C:/oracle10gclient/bin" SetEnv TNS_ADMIN "C:/oracle10gclient/network/admin" SetEnv ORACLE_SID "SDE91 SDE92 GLOBAL" SetEnv ORACLE_BASE "C:/oracle10gclient" SetEnv LD_LIBRARY_PATH "C:/oracle10gclient/lib" And the file C:/oracle10gclient/network/admin/tns_admin.ora SDE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.132.93)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = SDE) ) ) In the access.log nothing appears about the getmap and layer request , only the getcapabilites, the same happens in the ms_error.txt In access.log [11/Oct/2007:11:58:58 +0200] "GET /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML HTTP/1.1" 200 5789 127.0.0.1 - - [11/Oct/2007:11:58:59 +0200] "GET /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION= 1.1.1&EXCEPTIONS=XML HTTP/1.1" 200 5789 and in the ms_error file: [Thu Oct 11 12:04:26 2007].828000 loadParams() QUERY_STRING: REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML [Thu Oct 11 12:04:26 2007].875000 msLoadMap(): 0.047s [Thu Oct 11 12:04:26 2007].875000 CGI Request 1 on process 2288 [Thu Oct 11 12:04:27 2007].62000 loadParams() QUERY_STRING: REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1&EXCEPTIONS=XML [Thu Oct 11 12:04:27 2007].93000 msLoadMap(): 0.031s [Thu Oct 11 12:04:27 2007].93000 CGI Request 1 on process 532 I tried to make the request through explorer like http://localhost/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETMAP&LAYERS=AFOROS&SRS=EPSG:23030&BBOX=154590.0,4062740.0,579080.0,4300000.0&WIDTH=861&HEIGHT=482&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE but sends to me a blank image. Thats anybody knows what is happening? Thxs and sorry for my english -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.greenwood at GMAIL.COM Thu Oct 11 04:34:20 2007 From: richard.greenwood at GMAIL.COM (Richard Greenwood) Date: Thu, 11 Oct 2007 05:34:20 -0600 Subject: Error on adding EPSG code In-Reply-To: <46FCE666.3070302@maplecroft.net> Message-ID: On 9/28/07, Mark de Blois wrote: > Hi there, > > I Am trying to add an EPSG code for Winkel Triple to my MapServer proj > file but I keep getting the error: > > msProcessProjection(): Projection library error. no options found in > 'init' file > > I added the entry: > > # Winkel Triple > <1234567> +proj=wintri +lat_1=45 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 > +units=m +no_defs <> > > to the file epsg (located at /usr/share/proj on my Ubuntu machine) and > rebooted. > > Ogrinfo tells me the following about the shapefile I am trying to serve: > > Extent: (-16707480.310734, -10018754.171395) - (16920780.652974, > 9320947.177797) > Layer SRS WKT: > PROJCS["World_Winkel_Tripel_NGS", > GEOGCS["GCS_WGS_1984", > DATUM["WGS_1984", > SPHEROID["WGS_1984",6378137.0,298.257223563]], > PRIMEM["Greenwich",0.0], > UNIT["Degree",0.0174532925199433]], > PROJECTION["Winkel_Tripel"], > PARAMETER["False_Easting",0.0], > PARAMETER["False_Northing",0.0], > PARAMETER["Central_Meridian",0.0], > PARAMETER["Standard_Parallel_1",45.0], > UNIT["Meter",1.0]] > > In the mapfile I am referencing this shapefile through: > > LAYER > NAME 'WTCountries' > DATA 'maplecroft_countries_winkel_45' > STATUS off > TYPE Polygon > > METADATA > WMS_SRS 'epsg:1234567' > WMS_TITLE 'Countries_WT' > WMS_FEATURE_INFO_MIME_TYPE 'text/html' > END #METADATA > > PROJECTION > 'init=epsg:1234567' > END > > Does anyone have any idea what I am doing wrong? Your help would be > greatly appreciated! > > cheers, > Mark de Blois > Maplecroft > Sounds like it is having trouble finding, or reading, your epsg file. 1. In your map file you can explicitly poit to your epsg file with: CONFIG PROJ_LIB " /usr/share/proj /" 2. You can put a coordinate system definition in a map file without an epsg code like: PROJECTION # wyoming west NAD83 "proj=tmerc" "ellps=GRS80" "to_meter=0.3048006096012192" "lon_0=-110.0833333333" "lat_0=40.5" "x_0=800000" "y_0=100000" "k=0.9999375" "no_defs" END Using your values of course! Rich -- Richard Greenwood richard.greenwood at gmail.com www.greenwoodmap.com From Tom.Kralidis at EC.GC.CA Thu Oct 11 04:35:36 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 11 Oct 2007 07:35:36 -0400 Subject: problem invoking WCS: "no template"??? In-Reply-To: A<4841F745477DF94A97C515658C91BB2F1555EF@lan-exc-01.heidi.local> Message-ID: Through offline discussions with Jeff DLB, it looks like his MapServer is not built --with-wcs. ..Tom > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Piero Cavalieri > Sent: 11 October, 2007 3:52 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] problem invoking WCS: "no > template"??? > > P.S. Maybe you have some template related keyword, in your > map file, which doesn't make sense, in a WCS. > > Bye > Piero > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: mercoled? 10 ottobre 2007 18.06 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] problem invoking WCS: "no > template"??? > > > > I am trying to make the Web Coverage Service (WCS) feature work. > > However, GetCapabilies and GetCoverage requests both respond with > > "mapserv(): Web application error. No template provided." > > No doubt I have made some basic configuration error, but I > cannot find > > my problem. The Web Map Service (WMS) functionality using the same > > mapfile does work. > > > > Here are the parts of my mapfile that I believe are relevant to WCS: > > > > # Added for WCS support > > OUTPUTFORMAT > > NAME GEOTIFF > > DRIVER "GDAL/GTiff" > > MIMETYPE "image/tiff" > > IMAGEMODE "BYTE" > > EXTENSION "tif" > > END > > > > # TEST WCS feature > > LAYER > > NAME "airstiff" > > TYPE RASTER > > DUMP TRUE > > METADATA > > "wcs_title" "AIRS TIFF Coverage" > > "wcs_nativeformat" "tiff" > > END > > STATUS off > > PROJECTION > > "init=epsg:4326" > > END > > DATA "/sivo/data/soar/airs/2007/01/04/12/bt.tiff" > > END > > > > NOTE: The same floating-point GeoTIFF (bt.tiff) is > correctly read and > > classified by the WMS component. > > > > Is there something missing in my mapfile? This document: > > http://mapserver.gis.umn.edu/docs/howto/wcs_server/#d45e65 > > claims that four conditions must be satisfied, as I believe I have > > done: > > Data source is of raster type that is processed > using GDAL (e.g > > GeoTIFF, Erdas Imagine, ...) > > LAYER NAME must be set > > LAYER TYPE is RASTER > > LAYER DUMP parameter set to TRUE > > > > Thanks for any help, > > Jeff DLB > > > > Jeff, > > What does your request URL look like? Did you include > service=WCS in the request? > > ..Tom > From frodewj at GMAIL.COM Thu Oct 11 04:48:43 2007 From: frodewj at GMAIL.COM (=?ISO-8859-1?Q?Frode_Wiseth_J=F8rgensen?=) Date: Thu, 11 Oct 2007 13:48:43 +0200 Subject: Mapserver WMS and METADATA Message-ID: Hi, Mapserver uses the METADATA element in the mapfile to spesify the different WMS parameters, such as SRS, NAME and so on... E.g: METADATA "wms_server_version" "1.1.1" "wms_srs" "EPSG:32633" "wms_name" "Samkopi" "wms_format" "image/png" "wms_style" "default" "wms_bgcolor" "0xFFFFFF" END Is there any way to add the WMS TRANSPARENT parameter in the same way? We have noticed that Mapserver automatically adds TRANSPARENT=TRUE when fetching WMS data (GetMap). It seems that this behaviour also conserns the WMS BGCOLOR element, that is...we are not able to send TRANSPARENT=FALSE... We are using Mapserver 5.0 Thanks! Frode -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tom.Kralidis at EC.GC.CA Thu Oct 11 05:01:21 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Thu, 11 Oct 2007 08:01:21 -0400 Subject: Mapserver WMS and METADATA In-Reply-To: A Message-ID: Hi, Correct. In mapwmslayer.c, TRANSPARENT is always set to TRUE and BGCOLOR is not set at all. I've started a ticket on this at http://trac.osgeo.org/mapserver/ticket/2349 ..Tom ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Frode Wiseth J?rgensen Sent: 11 October, 2007 7:49 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver WMS and METADATA Hi, Mapserver uses the METADATA element in the mapfile to spesify the different WMS parameters, such as SRS, NAME and so on... E.g: METADATA "wms_server_version" "1.1.1" "wms_srs" "EPSG:32633" "wms_name" "Samkopi" "wms_format" "image/png" "wms_style" "default" "wms_bgcolor" "0xFFFFFF" END Is there any way to add the WMS TRANSPARENT parameter in the same way? We have noticed that Mapserver automatically adds TRANSPARENT=TRUE when fetching WMS data (GetMap). It seems that this behaviour also conserns the WMS BGCOLOR element, that is...we are not able to send TRANSPARENT=FALSE... We are using Mapserver 5.0 Thanks! Frode From jeff2006 at SVS.GSFC.NASA.GOV Thu Oct 11 05:13:18 2007 From: jeff2006 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 11 Oct 2007 08:13:18 -0400 Subject: problem invoking WCS: "no template"??? In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059F11@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > Through offline discussions with Jeff DLB, it looks like his MapServer is not built --with-wcs. Because that compilation requirement was not mentioned in the Software Requirements section of http://mapserver.gis.umn.edu/docs/howto/wcs_server/howto_view , I have added a comment about the requirement. I don't think I can edit the document directly, however. Meanwhile, our sysadmin will recompile with the necessary option. Thanks, Jeff DLB From Tim.Nolte at IPCSWIRELESSINC.COM Thu Oct 11 05:21:11 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Thu, 11 Oct 2007 08:21:11 -0400 Subject: Mapserver 5 with Oracle10g or ArcSDE 9.2 In-Reply-To: A<7efce0ed0710110311g2844ffedu7b6ad45086666b61@mail.gmail.com> Message-ID: Jose, When I was working trying to get Oracle 10g working with MapServer I turned to using SHP2IMG for testing against my mapfile. So on the server/machine you have MapServer installed on, call shp2img...specifying your mapfile and make sure to tell it to return debugging information. This has helped to clue me in on issue with my mapfile/mapserver. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jos? Ram?n L?pez Sent: Thursday, October 11, 2007 6:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver 5 with Oracle10g or ArcSDE 9.2 Hi list again. Im trying to configure a new server with mapserver 5.0 connect it with Oracle 10g or ArcSDE 9.2 , ussing the ms4w package (MS4W PHP5 Base Installer v2.2.6 ) I have done all that i have read in the instructions. The problems is that mapserver sends to me a blank image, and with some clients it send me a error. I have installed in that machine Oracle 10g client. This is the configuration of the layer. LAYER NAME AFOROS GROUP "Redes.Ctrl" TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION 'user/pass at SDE' DATA 'SHAPE FROM AFOROS USING UNIQUE OBJECTID' DUMP TRUE DEBUG ON PROCESSING "CLOSE_CONNECTION=DEFER" TRANSPARENCY 0 PROJECTION "init=EPSG:23030" END CLASS STYLE SYMBOL "circle" SIZE 10 COLOR 255 85 0 END NAME 'Aforos' END METADATA "wms_title" "Aforos" "wms_group_title" "Redes de Control" "wms_keywordlist" "WMS Aforos" "wms_srs" "EPSG:23030" "wms_extent" "154590 4062740 579080 4300000" END END In httpd.conf i have declared the system varibles: #Oracle Spatial SetEnv PATH "C:/oracle10gclient/bin" SetEnv TNS_ADMIN "C:/oracle10gclient/network/admin" SetEnv ORACLE_SID "SDE91 SDE92 GLOBAL" SetEnv ORACLE_BASE "C:/oracle10gclient" SetEnv LD_LIBRARY_PATH "C:/oracle10gclient/lib" And the file C:/oracle10gclient/network/admin/tns_admin.ora SDE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.132.93)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = SDE) ) ) In the access.log nothing appears about the getmap and layer request , only the getcapabilites, the same happens in the ms_error.txt In access.log [11/Oct/2007:11:58:58 +0200] "GET /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML HTTP/1.1" 200 5789 127.0.0.1 - - [11/Oct/2007:11:58:59 +0200] "GET /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1&EXCEPTIONS=XML HTTP/1.1" 200 5789 and in the ms_error file: [Thu Oct 11 12:04:26 2007].828000 loadParams() QUERY_STRING: REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML [Thu Oct 11 12:04:26 2007].875000 msLoadMap(): 0.047s [Thu Oct 11 12:04:26 2007].875000 CGI Request 1 on process 2288 [Thu Oct 11 12:04:27 2007].62000 loadParams() QUERY_STRING: REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1&EXCEPTIONS=XML [Thu Oct 11 12:04:27 2007].93000 msLoadMap(): 0.031s [Thu Oct 11 12:04:27 2007].93000 CGI Request 1 on process 532 I tried to make the request through explorer like http://localhost/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETMAP&LAYERS=AFOROS&SRS=EPSG:23030&BBOX=154590.0,4062740.0,579080.0,4300000.0&WIDTH=861&HEIGHT=482&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE but sends to me a blank image. Thats anybody knows what is happening? Thxs and sorry for my english From jeff2006 at SVS.GSFC.NASA.GOV Thu Oct 11 05:31:32 2007 From: jeff2006 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 11 Oct 2007 08:31:32 -0400 Subject: problem invoking WCS: "no template"??? In-Reply-To: <470E135E.8070103@svs.gsfc.nasa.gov> Message-ID: Jeff de La Beaujardiere wrote: > Because that compilation requirement was not mentioned in the > Software Requirements section of > http://mapserver.gis.umn.edu/docs/howto/wcs_server/howto_view , > I have added a comment about the requirement. ...and a comment in http://mapserver.gis.umn.edu/docs/howto/compiling_on_unix/#ogc-support -Jeff DLB From damien.corpataux at CAMPTOCAMP.COM Thu Oct 11 05:46:47 2007 From: damien.corpataux at CAMPTOCAMP.COM (Damien Corpataux) Date: Thu, 11 Oct 2007 14:46:47 +0200 Subject: msLayerObj.whichShapes() behavior? Message-ID: Hi, I have a question about LayerObj.whichShapes(RectObj) behavior: do the RectObj coordinates have to suit the layer projection, or the mapfile projection? Thanks in advance, Damien Corpataux -- Camptocamp SA Damien Corpataux PSE A CH-1015 Lausanne +41 21 619 10 22 (Direct) +41 21 619 10 10 (Centrale) +41 21 619 10 00 (Fax) P Please consider the environment Do you really need to print this email? -------------- next part -------------- An HTML attachment was scrubbed... URL: From assefa at DMSOLUTIONS.CA Thu Oct 11 06:40:11 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Thu, 11 Oct 2007 09:40:11 -0400 Subject: 4D Raster access NOT via WMS? In-Reply-To: <1b181a320710101736ie99fd41m3f7d2854d5061c72@mail.gmail.com> Message-ID: Hi there, The Time parameter that is sent with a WMS request is simply converted to a time expression and set on the filter object of the layer. In the case of wms. the metadata wms_timeitem will be used for the attribute name. if you are using mapscript, you would need to build the time expression manually and set the filter parameter. Please refer to http://mapserver.gis.umn.edu/docs/howto/wms_time_support (section 2.5) to see how time parameters are interpreted. Best Regards, Samuel Hiatt wrote: > I am excited to see that Mapserver supports 4D raster layers for WMS, > but I am curious if this functionality can be extended to mapscript > calls as well? For example, if I set up a raster layer with a TIME > dimension then will it be possible for me to request an image for a > specific time with mapscript? Or would I have to do this with a WMS call? > > Thanks! > > Sam -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From joseramonlopez at GMAIL.COM Thu Oct 11 07:32:56 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Thu, 11 Oct 2007 16:32:56 +0200 Subject: Mapserver 5 with Oracle10g or ArcSDE 9.2 In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A7CEED@KTWMAIL.ilpcs.com> Message-ID: Hi Tim I used it before too, but its send to me a blank image. This is the output command: C:\ms4w\tools\mapserv>shp2img.exe -m ..\..\maps\map\wms.map -i png -o prueba.png -all_debug 4 msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.000s msFreeMap(): freeing map at 0145B630. No errors? Thxs 2007/10/11, Nolte, Tim : > > Jose, > > When I was working trying to get Oracle 10g working with MapServer I > turned to using SHP2IMG for testing against my mapfile. So on the > server/machine you have MapServer installed on, call shp2img...specifying > your mapfile and make sure to tell it to return debugging information. This > has helped to clue me in on issue with my mapfile/mapserver. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Jos? Ram?n L?pez > Sent: Thursday, October 11, 2007 6:12 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Mapserver 5 with Oracle10g or ArcSDE 9.2 > > Hi list again. > > Im trying to configure a new server with mapserver 5.0 connect it with > Oracle 10g or ArcSDE 9.2 , ussing the ms4w package (MS4W PHP5 Base > Installer v2.2.6 ) > I have done all that i have read in the instructions. > The problems is that mapserver sends to me a blank image, and with some > clients it send me a error. > I have installed in that machine Oracle 10g client. > > This is the configuration of the layer. > > LAYER > NAME AFOROS > GROUP "Redes.Ctrl" > TYPE POINT > CONNECTIONTYPE oraclespatial > CONNECTION 'user/pass at SDE' > DATA 'SHAPE FROM AFOROS USING UNIQUE OBJECTID' > DUMP TRUE > DEBUG ON > PROCESSING "CLOSE_CONNECTION=DEFER" > TRANSPARENCY 0 > PROJECTION > "init=EPSG:23030" > END > CLASS > STYLE > SYMBOL "circle" > SIZE 10 > COLOR 255 85 0 > END > NAME 'Aforos' > END > METADATA > "wms_title" "Aforos" > "wms_group_title" "Redes de Control" > "wms_keywordlist" "WMS Aforos" > "wms_srs" "EPSG:23030" > "wms_extent" "154590 4062740 579080 4300000" > END > END > > > In httpd.conf i have declared the system varibles: > > #Oracle Spatial > SetEnv PATH "C:/oracle10gclient/bin" > SetEnv TNS_ADMIN "C:/oracle10gclient/network/admin" > SetEnv ORACLE_SID "SDE91 SDE92 GLOBAL" > SetEnv ORACLE_BASE "C:/oracle10gclient" > SetEnv LD_LIBRARY_PATH "C:/oracle10gclient/lib" > > And the file C:/oracle10gclient/network/admin/tns_admin.ora > > SDE = > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.132.93)(PORT = 1521)) > ) > (CONNECT_DATA = > (SERVICE_NAME = SDE) > ) > ) > > In the access.log nothing appears about the getmap and layer request , > only the getcapabilites, the same happens in the ms_error.txt > > In access.log > > [11/Oct/2007:11:58:58 +0200] "GET > /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML HTTP/1.1" > 200 5789 > 127.0.0.1 - - [11/Oct/2007:11:58:59 +0200] "GET > /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION= > 1.1.1&EXCEPTIONS=XML HTTP/1.1" 200 5789 > > and in the ms_error file: > > [Thu Oct 11 12:04:26 2007].828000 loadParams() QUERY_STRING: > REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML > [Thu Oct 11 12:04:26 2007].875000 msLoadMap(): 0.047s > [Thu Oct 11 12:04:26 2007].875000 CGI Request 1 on process 2288 > [Thu Oct 11 12:04:27 2007].62000 loadParams() QUERY_STRING: > REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1&EXCEPTIONS=XML > [Thu Oct 11 12:04:27 2007].93000 msLoadMap(): 0.031s > [Thu Oct 11 12:04:27 2007].93000 CGI Request 1 on process 532 > > I tried to make the request through explorer like > > > http://localhost/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETMAP&LAYERS=AFOROS&SRS=EPSG:23030&BBOX=154590.0,4062740.0,579080.0,4300000.0&WIDTH=861&HEIGHT=482&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE< > http://localhost/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETMAP&LAYERS=AFOROS&SRS=EPSG:23030&BBOX=154590.0,4062740.0,579080.0,4300000.0&WIDTH=861&HEIGHT=482&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE > > > > but sends to me a blank image. > > Thats anybody knows what is happening? > > Thxs and sorry for my english > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Nolte at IPCSWIRELESSINC.COM Thu Oct 11 07:42:17 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Thu, 11 Oct 2007 10:42:17 -0400 Subject: Mapserver 5 with Oracle10g or ArcSDE 9.2 In-Reply-To: <7efce0ed0710110732w3e217f3cq75178ccd36eb6bd1@mail.gmail.com> Message-ID: You might try to set your debug level higher. I'm not seeing any output from the debug you ran regarding Oracle connections. When run with debugging I set it pretty high to get more output. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Jos? Ram?n L?pez [mailto:joseramonlopez at gmail.com] Sent: Thursday, October 11, 2007 10:33 AM To: Nolte, Tim Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Mapserver 5 with Oracle10g or ArcSDE 9.2 Hi Tim I used it before too, but its send to me a blank image. This is the output command: C:\ms4w\tools\mapserv>shp2img.exe -m ..\..\maps\map\wms.map -i png -o prueba.png -all_debug 4 msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.000s msFreeMap(): freeing map at 0145B630. No errors? Thxs 2007/10/11, Nolte, Tim : Jose, When I was working trying to get Oracle 10g working with MapServer I turned to using SHP2IMG for testing against my mapfile. So on the server/machine you have MapServer installed on, call shp2img...specifying your mapfile and make sure to tell it to return debugging information. This has helped to clue me in on issue with my mapfile/mapserver. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: UMN MapServer Users List [mailto: MAPSERVER-USERS at LISTS.UMN.EDU ] On Behalf Of Jos? Ram?n L?pez Sent: Thursday, October 11, 2007 6:12 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Mapserver 5 with Oracle10g or ArcSDE 9.2 Hi list again. Im trying to configure a new server with mapserver 5.0 connect it with Oracle 10g or ArcSDE 9.2 , ussing the ms4w package (MS4W PHP5 Base Installer v2.2.6 ) I have done all that i have read in the instructions. The problems is that mapserver sends to me a blank image, and with some clients it send me a error. I have installed in that machine Oracle 10g client. This is the configuration of the layer. LAYER NAME AFOROS GROUP "Redes.Ctrl" TYPE POINT CONNECTIONTYPE oraclespatial CONNECTION 'user/pass at SDE' DATA 'SHAPE FROM AFOROS USING UNIQUE OBJECTID' DUMP TRUE DEBUG ON PROCESSING "CLOSE_CONNECTION=DEFER" TRANSPARENCY 0 PROJECTION "init=EPSG:23030" END CLASS STYLE SYMBOL "circle" SIZE 10 COLOR 255 85 0 END NAME 'Aforos' END METADATA "wms_title" "Aforos" "wms_group_title" "Redes de Control" "wms_keywordlist" "WMS Aforos" "wms_srs" "EPSG:23030" "wms_extent" "154590 4062740 579080 4300000" END END In httpd.conf i have declared the system varibles: #Oracle Spatial SetEnv PATH "C:/oracle10gclient/bin" SetEnv TNS_ADMIN "C:/oracle10gclient/network/admin" SetEnv ORACLE_SID "SDE91 SDE92 GLOBAL" SetEnv ORACLE_BASE "C:/oracle10gclient" SetEnv LD_LIBRARY_PATH "C:/oracle10gclient/lib" And the file C:/oracle10gclient/network/admin/tns_admin.ora SDE = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.132.93)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = SDE) ) ) In the access.log nothing appears about the getmap and layer request , only the getcapabilites, the same happens in the ms_error.txt In access.log [11/Oct/2007:11:58:58 +0200] "GET /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML HTTP/1.1" 200 5789 127.0.0.1 - - [11/Oct/2007:11:58:59 +0200] "GET /cgi-bin/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1&EXCEPTIONS=XML HTTP/1.1" 200 5789 and in the ms_error file: [Thu Oct 11 12:04:26 2007].828000 loadParams() QUERY_STRING: REQUEST=GetCapabilities&SERVICE=WMS&&EXCEPTIONS=XML [Thu Oct 11 12:04:26 2007].875000 msLoadMap(): 0.047s [Thu Oct 11 12:04:26 2007].875000 CGI Request 1 on process 2288 [Thu Oct 11 12:04:27 2007].62000 loadParams() QUERY_STRING: REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1&EXCEPTIONS=XML [Thu Oct 11 12:04:27 2007].93000 msLoadMap(): 0.031s [Thu Oct 11 12:04:27 2007].93000 CGI Request 1 on process 532 I tried to make the request through explorer like http://localhost/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETMAP&LAYERS=AFOROS&SRS=EPSG:23030&BBOX=154590.0,4062740.0,579080.0,4300000.0&WIDTH=861&HEIGHT=482&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE < http://localhost/cgi-bin/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GETMAP&LAYERS=AFOROS&SRS=EPSG:23030&BBOX=154590.0,4062740.0,579080.0,4300000.0&WIDTH=861&HEIGHT=482&FORMAT=image/png&STYLES=default&TRANSPARENT=TRUE > but sends to me a blank image. Thats anybody knows what is happening? Thxs and sorry for my english From la_barrenadora at HOTMAIL.COM Thu Oct 11 08:59:10 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Thu, 11 Oct 2007 17:59:10 +0200 Subject: Mapserver slow in production's server In-Reply-To: <470CCEA7.3090005@mapgears.com> Message-ID: Why Mapserver can go slow in server to production that server to developing? I install a mapserver identical in both server, but in production's server it's very slow, by where I can investigate? _________________________________________________________________ Un amor, una aventura, compa??a para un viaje. Reg?strate gratis en MSN Amor & Amistad. http://match.msn.es/match/mt.cfm?pg=channel&tcid=162349 From gregor at HOSTGIS.COM Thu Oct 11 09:25:34 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 11 Oct 2007 10:25:34 -0600 Subject: Mapserver slow in production's server In-Reply-To: Message-ID: Victor Herrero Cazurro wrote: > I install a mapserver identical in both server, but in production's > server it's very slow, by where I can investigate? There're so many places to look, where to begin... Short version: How identical is identical? Same hardware, same OS, same data sources, same version of PostGIS and GDAL/OGR, ... ? There are plenty of factors outside of Mapserver or its data that could account for wide differences in performance. Is the hardware the same? Is the production server overloaded? Is there plenty of spare RAM? Are the data sources identical as well? If you tested with a 5 MB shapefile, then moved to production with a 2 GB tileindex of shapefiles, that'd be significant. Nobody could even make an educated guess without more information. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From kreshna_iceheart at YAHOO.COM Thu Oct 11 10:04:15 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Thu, 11 Oct 2007 10:04:15 -0700 Subject: Looking for public-accessible SHPs to practice Tile Indexing Message-ID: I'm really interested in Tile Indexing (tile4ms) function of MapServer, and I'm actually going to work on adjacent SHPs. I just wonder --is there any adjacent SHP files to download, to practice the Tile Indexing function? This page: http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms/?searchterm=Tile%20Index mentions about TIGER Census data (which consists adjacent SHPs, isn't it?), but when I went to the download page, I didn't find the link (duh!). Also, the tile4ms function only create an SHP file that functions as "index", but in order to display the individual data contained in each SHP (polygon, line, etc), I still need to declare each SHP file (as layers) in my MAP file, do I not? Thanks & regards, -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. ____________________________________________________________________________________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ From jmckenna at DMSOLUTIONS.CA Thu Oct 11 10:42:47 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 11 Oct 2007 13:42:47 -0400 Subject: Looking for public-accessible SHPs to practice Tile Indexing In-Reply-To: <232645.99434.qm@web56707.mail.re3.yahoo.com> Message-ID: Comments below: kreshna_iceheart at yahoo.com wrote: > I'm really interested in Tile Indexing (tile4ms) > function of MapServer, and I'm actually going to work > on adjacent SHPs. > > I just wonder --is there any adjacent SHP files to > download, to practice the Tile Indexing function? You can also just manually create a few shapefiles to play with. > > This page: > http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms/?searchterm=Tile%20Index > mentions about TIGER Census data (which consists > adjacent SHPs, isn't it?), but when I went to the > download page, I didn't find the link (duh!). Correct, TIGER will be releasing its data in shapefile format shortly though. > > Also, the tile4ms function only create an SHP file > that functions as "index", but in order to display the > individual data contained in each SHP (polygon, line, > etc), I still need to declare each SHP file (as > layers) in my MAP file, do I not? > See section 4 of that page (http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms/). You use that index in that ONE layer, and MapServer will draw all of the associated SHP files that are 'indexed' in that one index file. If you find a section of that page unclear please let me know and I can modify that page. -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From maurosa at IOL.IT Thu Oct 11 10:48:36 2007 From: maurosa at IOL.IT (maurosa@iol.it) Date: Thu, 11 Oct 2007 19:48:36 +0200 Subject: Problem with java mapscript Message-ID: Hi list I am using mapserver 5.0 with java mapscript. I use oracle spatial 10g. I have problems with long string (longer then 2k) used to specify complex data sql connection query or filter. When mapscript execute for instance setFilter it crashes. I suspect there is a general issue with long string. The same string used directly in the mapfile works correctly. It is probably a mapscript memory allocation problem. While I can use an oracle view to avoide the problem for the connection query, I do not know how to avoide it with the filter, because it is known only at run time. The filter can be something like: CODE IN ('1','2','3'....very long string ... '1000') Can this be set as a bug? Thank you for any suggestion Mauro Sartori ------------------------------------------------------ Leggi GRATIS le tue mail con il telefonino i-mode? di Wind http://i-mode.wind.it/ From samhiatt at GMAIL.COM Thu Oct 11 14:05:21 2007 From: samhiatt at GMAIL.COM (Samuel Hiatt) Date: Thu, 11 Oct 2007 14:05:21 -0700 Subject: 4D Raster access NOT via WMS? In-Reply-To: <470E27BB.8070301@dmsolutions.ca> Message-ID: Hi! Thanks for the reply. So I suppose when I make a WMS request with TIME Mapserver applies the filter behind the scenes, finding which feature in my tile_index.shp represents the correct time and then processes the raster pointed to by that feature? So if I want to implement the same kind of thing with mapscript I'd have to write the filter myself? The reason I am interested in doing this is to extend temporal functionality to ka-map. I may end up abandoning that approach and moving to a javascript WMS client (like OpenLayers of MapBuilder) instead. Thanks for your help. Sam On 10/11/07, Yewondwossen Assefa wrote: > > Hi there, > > The Time parameter that is sent with a WMS request is simply converted > to a time expression and set on the filter object of the layer. In the > case of wms. the metadata wms_timeitem will be used for the attribute > name. > if you are using mapscript, you would need to build the time > expression manually and set the filter parameter. Please refer to > http://mapserver.gis.umn.edu/docs/howto/wms_time_support (section 2.5) > to see how time parameters are interpreted. > > Best Regards, > > > Samuel Hiatt wrote: > > I am excited to see that Mapserver supports 4D raster layers for WMS, > > but I am curious if this functionality can be extended to mapscript > > calls as well? For example, if I set up a raster layer with a TIME > > dimension then will it be possible for me to request an image for a > > specific time with mapscript? Or would I have to do this with a WMS > call? > > > > Thanks! > > > > Sam > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Thu Oct 11 14:50:59 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Thu, 11 Oct 2007 23:50:59 +0200 Subject: Problem with java mapscript In-Reply-To: Message-ID: Mauro, you have most likely hit a bug. Please file an issue on mapserver's trac at: http://trac.osgeo.org/mapserver and attach a simple test case with: - a map file - a short Java program showing the bug - a small set of data (if necessary) We'll look into this asap. Thanks, Umberto On 10/11/07, maurosa at iol.it wrote: > Hi list > > I am using mapserver 5.0 with java mapscript. > I use oracle spatial 10g. > I have problems with long string (longer then 2k) > used to specify complex data sql connection query or filter. > When mapscript execute for instance setFilter it crashes. > I suspect there is a general issue with long string. > The same string used directly in the mapfile works correctly. > It is probably a mapscript memory allocation problem. > While I can use an oracle view to avoide the problem for the connection query, I do not know how to avoide it with the filter, because it is known only at run time. > The filter can be something like: > CODE IN ('1','2','3'....very long string ... '1000') > > Can this be set as a bug? > > Thank you for any suggestion > > Mauro Sartori > > > > ------------------------------------------------------ > Leggi GRATIS le tue mail con il telefonino i-mode? di Wind > http://i-mode.wind.it/ > > From support at BIZEASSET.COM.AU Thu Oct 11 21:12:20 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Fri, 12 Oct 2007 14:12:20 +1000 Subject: [MI-L] Re: MapServer, IIS and ASP Message-ID: Hi All, Have MapServer MapScript running! I have MapInfo tables with DBF data files. I am now trying to place different symbology for each asset type. I have placed the layer portion of my MapFile below. This is what I've tried so far, could someone take a look, as it is not working. Also polygons on top of polygons, is there a way to make it so you can see both? LAYER NAME "wsregn" STATUS default TYPE polygon MINSCALE 0.1 MAXSCALE 50000 CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\biz_e_asset_new\AMS_Final\WS\REGIONS\CORE\wsregn.tab " PROJECTION auto END CLASSITEM "assettype" CLASS EXPRESSION ([Assettype]="Unknown") STYLE COLOR 100 0 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Building") STYLE COLOR 0 100 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Land") STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 100 SYMBOL 0 END END END Regards, Hayden Fisher -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.holl at INTEVATION.DE Thu Oct 11 22:43:00 2007 From: stephan.holl at INTEVATION.DE (Stephan Holl) Date: Fri, 12 Oct 2007 07:43:00 +0200 Subject: PHP-MapScript: QueryByAttribute() In-Reply-To: Message-ID: Hello Hei, Hei Jo , [20071008-05:23:40]: > Are there any other possibilities to highlight search results of more > layers at once? There are! After query to layers once by once, you > can use $oMap->drawQuery() to show. Example: > $layer1->querybyPoint(...); $layer2->querybyAttributes(...); .... > $oMap->drawQuery(); Is this help? If no, please give more detail of > your problem. It helps, thanks! Cheers Stephan From support at BIZEASSET.COM.AU Thu Oct 11 22:46:51 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Fri, 12 Oct 2007 15:46:51 +1000 Subject: Rename: Getting DBF data for symbology Message-ID: Hi All, Have MapServer MapScript running! I have MapInfo tables with DBF data files. I am now trying to place different symbology for each asset type. I have placed the layer portion of my MapFile below. This is what I've tried so far, could someone take a look, as it is not working. Also polygons on top of polygons, is there a way to make it so you can see both? LAYER NAME "wsregn" STATUS default TYPE polygon MINSCALE 0.1 MAXSCALE 50000 CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\biz_e_asset_new\AMS_Final\WS\REGIONS\CORE\wsregn.tab " PROJECTION auto END CLASSITEM "assettype" CLASS EXPRESSION ([Assettype]="Unknown") STYLE COLOR 100 0 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Building") STYLE COLOR 0 100 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Land") STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 100 SYMBOL 0 END END END Regards, Hayden Fisher -------------- next part -------------- An HTML attachment was scrubbed... URL: From umn-ms at HYDROTEC.DE Thu Oct 11 23:27:01 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Fri, 12 Oct 2007 08:27:01 +0200 Subject: Antwort: [UMN_MAPSERVER-USERS] Problem with java mapscript In-Reply-To: Message-ID: Hi Mauro Problably there is a kind of mapserver bug. As far as I know maspserver-oracle supports a maximum of 6000 chars for SQL-statement and the code doesn't handle overflow's gracefully. On the other hand: Even if mapserver could handle SQL-strings of arbitrary length, you still have to deal with the Oracle-Limit of 1000 elements in the "CODE IN (...)"-Expression. (http://download-uk.oracle.com/docs/cd/A87861_01/NT817EE/server.817/a85397/expressi.htm#1029285) Maybe you are forced to look for a different approach anyway? By Benedikt Rothe UMN MapServer Users List schrieb am 11.10.2007 19:48:36: > Hi list > > I am using mapserver 5.0 with java mapscript. > I use oracle spatial 10g. > I have problems with long string (longer then 2k) > used to specify complex data sql connection query or filter. > When mapscript execute for instance setFilter it crashes. > I suspect there is a general issue with long string. > The same string used directly in the mapfile works correctly. > It is probably a mapscript memory allocation problem. > While I can use an oracle view to avoide the problem for the > connection query, I do not know how to avoide it with the filter, > because it is known only at run time. > The filter can be something like: > CODE IN ('1','2','3'....very long string ... '1000') > > Can this be set as a bug? > > Thank you for any suggestion > > Mauro Sartori > > > > ------------------------------------------------------ > Leggi GRATIS le tue mail con il telefonino i-mode? di Wind > http://i-mode.wind.it/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From szekerest at GMAIL.COM Fri Oct 12 00:18:15 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 12 Oct 2007 09:18:15 +0200 Subject: msLayerObj.whichShapes() behavior? In-Reply-To: <470E1B37.80605@camptocamp.com> Message-ID: Hi, That should correspond to the projection of the layer. You might want to utilize RectObj.project if you have the rect in some other projection system. Best regards, Tamas 2007/10/11, Damien Corpataux : > > Hi, > > I have a question about LayerObj.whichShapes(RectObj) behavior: > > do the RectObj coordinates have to suit the layer projection, or the > mapfile projection? > > > Thanks in advance, > Damien Corpataux > > > -- > > > Camptocamp SA > Damien Corpataux > PSE A > CH-1015 Lausanne > > +41 21 619 10 22 (Direct) > +41 21 619 10 10 (Centrale) > +41 21 619 10 00 (Fax) > > P Please consider the environment > Do you really need to print this email? From franki at ADM.TP.PL Fri Oct 12 04:49:53 2007 From: franki at ADM.TP.PL (Marek Florianczyk) Date: Fri, 12 Oct 2007 13:49:53 +0200 Subject: imagemap/htmlmap is there a limit for areas ? Message-ID: Hi all, I'm using phpmapscript on debian etch 4.0 phpmapscript and mapserver 4.10.0-5+etch1 The problem is: mapserver or mapscript generates empty when there is more than about 40-50 object on the map. Map itself is however generated well. When I zoom map, or choose other extent with less than about 40-50 object the is generated. Picture (map picture - jpeg) is always properly generated no matter how many object I do have on the map. Is there a limit for area's in ? My map_file: NAME places STATUS ON SIZE 800 600 WEB IMAGEPATH "/var/www/apache2-default/tmp/" IMAGEURL "/apache2-default/tmp/" END EXTENT 19.6556 50.5098 19.6594 50.5105 UNITS meters IMAGECOLOR 0 0 0 IMAGETYPE jpeg OUTPUTFORMAT NAME imagemap DRIVER imagemap FORMATOPTION "MAPNAME=map_test" FORMATOPTION "POLYMOUSEOUT=alert('poly out');" FORMATOPTION "POLYMOUSEOVER=alert('poly %s');" FORMATOPTION "SUPPRESS=YES" MIMETYPE "text/html" END SYMBOL NAME 'punkt' TYPE ELLIPSE POINTS 1 1 END FILLED TRUE END SYMBOL NAME 'square' Type VECTOR Filled TRUE Points 0 1 0 0 1 0 1 1 0 1 END END LAYER NAME area_ TYPE POLYGON STATUS ON CONNECTION "user=postgres dbname=map host=localhost port=5432" CONNECTIONTYPE postgis DATA "the_geom from area" CLASS STYLE ANTIALIAS TRUE COLOR 147 189 113 OUTLINECOLOR 122 77 47 END END END LAYER NAME poi_r_ TYPE POLYGON STATUS ON CONNECTION "user=postgres dbname=map host=localhost port=5432" CONNECTIONTYPE postgis DATA "the_geom from poi_r" CLASS EXPRESSION ('[typ]' eq 'gospodarczy') STYLE ANTIALIAS TRUE COLOR 85 85 0 OUTLINECOLOR 85 85 0 END END CLASS EXPRESSION ('[typ]' eq 'gospodarczy2') STYLE ANTIALIAS TRUE COLOR 217 217 217 OUTLINECOLOR 217 217 217 END END CLASS EXPRESSION ('[typ]' eq 'parking') STYLE ANTIALIAS TRUE COLOR 97 97 97 OUTLINECOLOR 97 97 97 END END END LAYER NAME paths_ TYPE POLYGON STATUS ON CONNECTION "user=postgres dbname=map host=localhost port=5432" CONNECTIONTYPE postgis DATA "the_geom from roads_alb" CLASS EXPRESSION ('[typ]' eq 'glowna') STYLE ANTIALIAS TRUE COLOR 255 100 0 END END CLASS STYLE ANTIALIAS TRUE COLOR 255 100 0 END END END LAYER NAME poi_p_ TYPE POINT STATUS ON CONNECTION "user=postgres dbname=map host=localhost port=5432" CONNECTIONTYPE postgis DATA "the_geom from poi_p" CLASS EXPRESSION ('[typ]' eq 'brama') STYLE COLOR 255 255 255 SYMBOL 'punkt' SIZE 9 END END CLASS EXPRESSION ('[typ]' eq 'woda') STYLE COLOR 0 0 255 SYMBOL 'punkt' SIZE 9 END END END LAYER NAME places_ TYPE POLYGON TOLERANCE 1 STATUS ON DEBUG on CONNECTION "user=postgres dbname=map host=localhost port=5432" CONNECTIONTYPE postgis DATA "the_geom from places_alb" CLASS EXPRESSION ('[typ]' ne '0') STYLE COLOR 0 0 0 END END END END # Map File Please Help. greetings Marek From assefa at DMSOLUTIONS.CA Fri Oct 12 06:30:59 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Fri, 12 Oct 2007 09:30:59 -0400 Subject: 4D Raster access NOT via WMS? In-Reply-To: <1b181a320710111405m509ab343se1d5dcfb752e86ec@mail.gmail.com> Message-ID: Samuel Hiatt wrote: > Hi! Thanks for the reply. > > So I suppose when I make a WMS request with TIME Mapserver applies the > filter behind the scenes, finding which feature in my tile_index.shp > represents the correct time and then processes the raster pointed to by > that feature? So if I want to implement the same kind of thing with > mapscript I'd have to write the filter myself? > That is correct : assuming that the underlying data can be filtered using a time field, you need to know the attribute and build the time expression and set it using mapscript. > The reason I am interested in doing this is to extend temporal > functionality to ka-map. I may end up abandoning that approach and > moving to a javascript WMS client (like OpenLayers of MapBuilder) instead. > > Thanks for your help. > > Sam > > > > On 10/11/07, *Yewondwossen Assefa* > wrote: > > Hi there, > > The Time parameter that is sent with a WMS request is simply > converted > to a time expression and set on the filter object of the layer. In the > case of wms. the metadata wms_timeitem will be used for the > attribute name. > if you are using mapscript, you would need to build the time > expression manually and set the filter parameter. Please refer to > http://mapserver.gis.umn.edu/docs/howto/wms_time_support (section 2.5) > to see how time parameters are interpreted. > > Best Regards, > > > Samuel Hiatt wrote: > > I am excited to see that Mapserver supports 4D raster layers for WMS, > > but I am curious if this functionality can be extended to mapscript > > calls as well? For example, if I set up a raster layer with a TIME > > dimension then will it be possible for me to request an image for a > > specific time with mapscript? Or would I have to do this with a > WMS call? > > > > Thanks! > > > > Sam > > > -- > ---------------------------------------------------------------- > 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 paulanne.winn at WACORP.NET Fri Oct 12 10:23:28 2007 From: paulanne.winn at WACORP.NET (Mevima Winn) Date: Fri, 12 Oct 2007 10:23:28 -0700 Subject: Rename: Getting DBF data for symbology In-Reply-To: Message-ID: There are a couple of ways. First is to set a transparency level, if the polygons have to be solid. Underlying polygon doesn't have to have any, while the top polygon can have any transparency level you want - probably somewhere between 40 and 60% if you want both to be approximately equally visible. Or you can simply set an OUTLINECOLOR and no COLOR, which means you will get an outline and no fill, which will show any underlying polygons as long as they don't directly overlap the same lines. Any overlapping lines can be identified by making the outline line thicker and a different color, so whoever is viewing the map can see that there are multiple polygons there. Regards, -Mevima -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Hayden Fisher Sent: Thursday, October 11, 2007 10:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rename: Getting DBF data for symbology Also polygons on top of polygons, is there a way to make it so you can see both? No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.8 - Release Date: 10/11/2007 12:00 AM -------------- next part -------------- An HTML attachment was scrubbed... URL: From samhiatt at GMAIL.COM Fri Oct 12 14:34:04 2007 From: samhiatt at GMAIL.COM (Samuel Hiatt) Date: Fri, 12 Oct 2007 14:34:04 -0700 Subject: 4D Raster access NOT via WMS? In-Reply-To: <470F7713.80105@dmsolutions.ca> Message-ID: Thanks for the help. It should be very easy to filter my files for time. What should my mapfile look like for the 4D layer? The same thing as for a 4D wms layer, with the tile index and wms_* metadata tags but I would use mapscript to screen the files? Do you know of a way I might reuse the screening code that is used for 4D WMS? Thanks! Sam On 10/12/07, Yewondwossen Assefa wrote: > > Samuel Hiatt wrote: > > Hi! Thanks for the reply. > > > > So I suppose when I make a WMS request with TIME Mapserver applies the > > filter behind the scenes, finding which feature in my tile_index.shp > > represents the correct time and then processes the raster pointed to by > > that feature? So if I want to implement the same kind of thing with > > mapscript I'd have to write the filter myself? > > > That is correct : assuming that the underlying data can be filtered > using a time field, you need to know the attribute and build the time > expression and set it using mapscript. > > > The reason I am interested in doing this is to extend temporal > > functionality to ka-map. I may end up abandoning that approach and > > moving to a javascript WMS client (like OpenLayers of MapBuilder) > instead. > > > > Thanks for your help. > > > > Sam > > > > > > > > On 10/11/07, *Yewondwossen Assefa* > > wrote: > > > > Hi there, > > > > The Time parameter that is sent with a WMS request is simply > > converted > > to a time expression and set on the filter object of the layer. In > the > > case of wms. the metadata wms_timeitem will be used for the > > attribute name. > > if you are using mapscript, you would need to build the time > > expression manually and set the filter parameter. Please refer to > > http://mapserver.gis.umn.edu/docs/howto/wms_time_support (section > 2.5) > > to see how time parameters are interpreted. > > > > Best Regards, > > > > > > Samuel Hiatt wrote: > > > I am excited to see that Mapserver supports 4D raster layers for > WMS, > > > but I am curious if this functionality can be extended to > mapscript > > > calls as well? For example, if I set up a raster layer with a > TIME > > > dimension then will it be possible for me to request an image for > a > > > specific time with mapscript? Or would I have to do this with a > > WMS call? > > > > > > Thanks! > > > > > > Sam > > > > > > -- > > ---------------------------------------------------------------- > > 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 > ---------------------------------------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From toomas.aas at RAAD.TARTU.EE Sun Oct 14 09:52:08 2007 From: toomas.aas at RAAD.TARTU.EE (Toomas Aas) Date: Sun, 14 Oct 2007 19:52:08 +0300 Subject: PHP/Mapscript and Zend Optimizer Message-ID: Hello! Are there any known incompatibilities between PHP/Mapscript and Zend Optimizer? Or, to put it differently, is anyone successfully running a server with both PHP/Mapscript and Zend Optimizer? Our web developers recently requested that I add Zend Optimizer to our web server, so I'm trying to. Since our existing PHP had to be re-compiled anyway to support Zend Optimizer, I used the opportunity to upgrade PHP from 5.2.3 to 5.2.4 and Mapserver from 4.10.2 to 5.0.0. Then I added Zend Optimizer 3.3.0a. With this new software setup, I started getting (seemingly) random cases of httpd dying with Signal 11 (I have PHP installed as Apache module). As soon as I remove Zend Optimizer, everything is fine. I haven't been able to get a decent coredump from Apache, so I'm really grasping at straws here. But reading the Zend Optimizer forum seems to indicate that in the past Zend Optimizer has had some problems with various 'third party' extensions. If I could hear from someone successfully running PHP/Mapscript and Zend Optimizer, I could at least eliminate one possible source of the problem. This is happening on FreeBSD 6.2 (amd64), Apache 2.2.6, mod_php 5.2.4, php_mapscript 5.0.0. -- Toomas Aas ... If you can't hear me, it's because I'm in parentheses. From perrygeo at GMAIL.COM Sun Oct 14 13:08:58 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Sun, 14 Oct 2007 13:08:58 -0700 Subject: python mapscript compile errors Message-ID: Hey folks, Trying to install mapscript on ubuntu 7.10 and I'm getting this error: ------------------------------ ./configure --without-tiff --with-jpeg --with-png --with-freetype \ --with-zlib --with-threads --with-proj \ --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-ogr \ --with-wmsclient --with-wfsclient --with-wfs \ --without-pdf --with-geos --enable-debug --with-agg=/home/perry/src/agg-2.4 \ --with-postgis=/usr/bin/pg_config \ --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/apache2 --with-gd=/usr/local \ --with-fastcgi make cd mapscript/python swig -python -shadow -modern -templatereduce -fastdispatch -fvirtual -fastproxy \ -modernargs -castmode -dirvtable -fastinit -fastquery -noproxydel -nobuildnone \ -o mapscript_wrap.c ../mapscript.i python setup.py build cd tests/cases && python runalltests.py -v ........ File "../../build/lib.linux-i686-2.5/mapscript.py", line 6, in import _mapscript ImportError: ../../build/lib.linux-i686-2.5/_mapscript.so: undefined symbol: _ZN3agg17g_elder_bit_tableE -------------- This occurs with both mapserver svn and 5.0. I've also tried with the system libagg as well as a self-compiled libagg with fPIC and freetype. I've tried the simple swig statement as well as the newer optimized swig flags. The same outcome occurs each under every combo. I'm out of ideas (and patience). Has anyone else experienced this issue and solved it? -- Matthew T. Perry http://www.perrygeo.net "Never ascribe to malice, that which can be adequately explained by incompetence." From arkadi at MEBIUS.LV Sun Oct 14 11:01:40 2007 From: arkadi at MEBIUS.LV (Arkadi Shishlov) Date: Sun, 14 Oct 2007 21:01:40 +0300 Subject: PHP/Mapscript and Zend Optimizer In-Reply-To: <47124938.40305@raad.tartu.ee> Message-ID: Toomas Aas wrote: > Are there any known incompatibilities between PHP/Mapscript and Zend > Optimizer? Or, to put it differently, is anyone successfully running a > server with both PHP/Mapscript and Zend Optimizer? If you need speed, Optimizer won't get you any. It is only for running Zend encoded PHP pages - means vendor lock-in. Use XCache http://xcache.lighttpd.net/ which is PHP5 compatible or just don't bother. From toomas.aas at RAAD.TARTU.EE Sun Oct 14 14:46:07 2007 From: toomas.aas at RAAD.TARTU.EE (Toomas Aas) Date: Mon, 15 Oct 2007 00:46:07 +0300 Subject: PHP/Mapscript and Zend Optimizer In-Reply-To: <47125984.2080408@mebius.lv> Message-ID: Arkadi Shishlov wrote: > If you need speed, Optimizer won't get you any. > It is only for running Zend encoded PHP pages - means vendor lock-in. Yeah, thanks, I knew that. Or at least, sort of suspected. I'm not exactly sure *why* our developers want ZO. Maybe they need to run some Zend encoded files. > Use XCache http://xcache.lighttpd.net/ which is PHP5 compatible or just > don't bother. Thanks for the pointer, I wasn't aware of xcache. I've been using APC (http://pecl.php.net/APC) until now. But it is said to be incompatible with Zend Optimizer. BTW, my Zend Optimizer problem got solved when I ripped out the lines from php.ini that were put there by ZO install and replaced them with just the following: [Zend] zend_optimizer.optimization_level=15 zend_optimizer.version=3.0.0 zend_extension=/usr/local/Zend/lib/Optimizer-3.0.0/php-5.1.x /ZendOptimizer.so -- Toomas ... I think, therefore I am overqualified. From youngkkim at GMAIL.COM Sun Oct 14 16:09:36 2007 From: youngkkim at GMAIL.COM (Young Kim) Date: Sun, 14 Oct 2007 16:09:36 -0700 Subject: label: autofollow Message-ID: Hello all, I'm having trouble assigning "follow" angle to label obj. I'm using PHP mapscript to generate images. The following line throws error: $class_obj->label->set("autofollow", MS_TRUE); error msg: PHP Fatal error: Property 'autofollow' does not exist in this object. according to mapscript documentation, http://mapserver.gis.umn.edu/docs/reference/mapscript/index_html#labelobj, this should be available. When i draw same layer via a map file and using "ANGLE follow", everything works perfectly. Am I missing something? Thanks. Versions: MS - 5.1-dev, SVN trunk php-5.2.3 From friendvn2000 at YAHOO.COM Sun Oct 14 19:42:55 2007 From: friendvn2000 at YAHOO.COM (Hei Jo) Date: Sun, 14 Oct 2007 21:42:55 -0500 Subject: Mapserver slow in production's server Message-ID: Sorry, may I ask a dump question: What is production's server ??? From bknospam at GMAIL.COM Sun Oct 14 20:48:30 2007 From: bknospam at GMAIL.COM (SUBSCRIBE MAPSERVER-USERS Anonymous) Date: Sun, 14 Oct 2007 22:48:30 -0500 Subject: No map available, please zoom out Message-ID: Hi, I am running kamap using many layers used in diferent zoom levels and locations. Some locations and zoom levels do not have any map data available. Mapserver's draw() function creates plain blue colored images for these maps. How can I used a default image that I can provide? The image I use would ideally display "No map available, please zoom to another level!" Suggestions for other methods would also be appreciated thank you. Ben From toomas.aas at RAAD.TARTU.EE Sun Oct 14 21:38:12 2007 From: toomas.aas at RAAD.TARTU.EE (Toomas Aas) Date: Mon, 15 Oct 2007 07:38:12 +0300 Subject: PHP/Mapscript and Zend Optimizer In-Reply-To: <47128E1F.10301@raad.tartu.ee> Message-ID: Toomas Aas wrote: > zend_extension=/usr/local/Zend/lib/Optimizer-3.0.0/php-5.1.x > /ZendOptimizer.so I meant, of course, zend_extension=/usr/local/lib/php/20060613/Optimizer/php-5.2.x/ZendOptimizer.so ... I tried to drown my problems but found out they can swim. From support at BIZEASSET.COM.AU Sun Oct 14 22:37:58 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Mon, 15 Oct 2007 15:37:58 +1000 Subject: Getting DBF data for symbology Message-ID: Hi All, Have MapServer MapScript running! I have MapInfo tables with DBF data files. I am now trying to place different symbology for each asset type. I have placed the layer portion of my MapFile below. This is what I've tried so far, could someone take a look, as it is not working. Also polygons on top of polygons, is there a way to make it so you can see both? LAYER NAME "wsregn" STATUS default TYPE polygon MINSCALE 0.1 MAXSCALE 50000 CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\biz_e_asset_new\AMS_Final\WS\REGIONS\CORE\wsregn.tab " PROJECTION auto END CLASSITEM "assettype" CLASS EXPRESSION ([Assettype]="Unknown") STYLE COLOR 100 0 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Building") STYLE COLOR 0 100 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Land") STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 100 SYMBOL 0 END END END Regards, Hayden Fisher -------------- next part -------------- An HTML attachment was scrubbed... URL: From umberto.nicoletti at GMAIL.COM Sun Oct 14 23:50:18 2007 From: umberto.nicoletti at GMAIL.COM (Umberto Nicoletti) Date: Mon, 15 Oct 2007 08:50:18 +0200 Subject: python mapscript compile errors In-Reply-To: <5383fa5e0710141308m3f543331ucb0709cfcbfd955c@mail.gmail.com> Message-ID: You did not mention the architecture (x86, amd64 or other) so I will assume that you are on x86. You are using a custom GD (in /usr/local) which might conflict with gd installed by ubuntu and the same probably goes with agg too. On Ubuntu 7.10 you get a very recent GD and agg so there is no reason (that I know of or imagine) to compile your own. On my system (Ubuntu 7.10 x86) agg and gd are: unicoletti at ziggy ~ $apt-cache show libagg-dev | grep Version Version: 2.4+20060719-3 unicoletti at ziggy ~ $apt-cache show libgd2-xpm | grep Version Version: 2.0.34~rc1-2ubuntu1.1 which are both very recent and stable with mapserver. Try to use those and python mapscript will build flawlessy. Umberto On 10/14/07, Matthew Perry wrote: > Hey folks, > > Trying to install mapscript on ubuntu 7.10 and I'm getting this error: > > ------------------------------ > ./configure --without-tiff --with-jpeg --with-png --with-freetype \ > --with-zlib --with-threads --with-proj \ > --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-ogr \ > --with-wmsclient --with-wfsclient --with-wfs \ > --without-pdf --with-geos --enable-debug --with-agg=/home/perry/src/agg-2.4 \ > --with-postgis=/usr/bin/pg_config \ > --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/apache2 > --with-gd=/usr/local \ > --with-fastcgi > make > cd mapscript/python > swig -python -shadow -modern -templatereduce -fastdispatch -fvirtual > -fastproxy \ > -modernargs -castmode -dirvtable -fastinit -fastquery > -noproxydel -nobuildnone \ > -o mapscript_wrap.c ../mapscript.i > python setup.py build > cd tests/cases && python runalltests.py -v > ........ > File "../../build/lib.linux-i686-2.5/mapscript.py", line 6, in > import _mapscript > ImportError: ../../build/lib.linux-i686-2.5/_mapscript.so: undefined > symbol: _ZN3agg17g_elder_bit_tableE > > -------------- > > > This occurs with both mapserver svn and 5.0. I've also tried with the > system libagg as well as a self-compiled libagg with fPIC and > freetype. I've tried the simple swig statement as well as the newer > optimized swig flags. The same outcome occurs each under every combo. > > I'm out of ideas (and patience). Has anyone else experienced this > issue and solved it? > > -- > Matthew T. Perry > http://www.perrygeo.net > > "Never ascribe to malice, that which can be adequately explained by > incompetence." > From perrygeo at GMAIL.COM Mon Oct 15 01:06:02 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Mon, 15 Oct 2007 01:06:02 -0700 Subject: python mapscript compile errors (solved - sort of) Message-ID: On 10/14/07, Umberto Nicoletti wrote: > You did not mention the architecture (x86, amd64 or other) so I will > assume that you are on x86. > > You are using a custom GD (in /usr/local) which might conflict with gd > installed by ubuntu and the same probably goes with agg too. > On Ubuntu 7.10 you get a very recent GD and agg so there is no reason > (that I know of or imagine) to compile your own. > Well there is a very good reason .. it doesn't work! Using the ubuntu packages, I can compile the mapserver binaries just fine but the python mapscript bindings give the undefined symbol error. There are no documented solutions or workarounds but it was suggested that some compiler flags used with AGG might be causing the issue. Hence the effort to build from source. I am on 32-bit x86 btw with standard hardware all around. In any case, I was able to solve the issue with the help of hobu on IRC this afternoon. The goal is to build a shared libagg.so with freetype which mapserver can link against without any problems. It was, honestly, way too much Makefile hacking for me. I was stunned at how abysmal the AGG build system is. I can't believe I'm the only person to run into this problem so, to spare others the pain, here is the procedure that worked for me: http://perrygeo.net/agg_mapserver.txt I can't vouche for every detail; there are probably many things that are not considered the "right" way to do things. But in the absence of any real documentation and a desire to have at least part of my sunday free, I did what worked. Mapserver devs - maybe you could consider forking AGG 2.4 (the pre-GPL version) and including it in the source tree so that the builds could be a bit smoother? - Matt > On my system (Ubuntu 7.10 x86) agg and gd are: > > unicoletti at ziggy ~ $apt-cache show libagg-dev | grep Version > Version: 2.4+20060719-3 > > unicoletti at ziggy ~ $apt-cache show libgd2-xpm | grep Version > Version: 2.0.34~rc1-2ubuntu1.1 > > which are both very recent and stable with mapserver. > Try to use those and python mapscript will build flawlessy. > > Umberto > > > On 10/14/07, Matthew Perry wrote: > > Hey folks, > > > > Trying to install mapscript on ubuntu 7.10 and I'm getting this error: > > > > ------------------------------ > > ./configure --without-tiff --with-jpeg --with-png --with-freetype \ > > --with-zlib --with-threads --with-proj \ > > --with-gdal=/usr/local/bin/gdal-config --with-wcs --with-ogr \ > > --with-wmsclient --with-wfsclient --with-wfs \ > > --without-pdf --with-geos --enable-debug --with-agg=/home/perry/src/agg-2.4 \ > > --with-postgis=/usr/bin/pg_config \ > > --with-curl-config=/usr/bin/curl-config --with-httpd=/usr/sbin/apache2 > > --with-gd=/usr/local \ > > --with-fastcgi > > make > > cd mapscript/python > > swig -python -shadow -modern -templatereduce -fastdispatch -fvirtual > > -fastproxy \ > > -modernargs -castmode -dirvtable -fastinit -fastquery > > -noproxydel -nobuildnone \ > > -o mapscript_wrap.c ../mapscript.i > > python setup.py build > > cd tests/cases && python runalltests.py -v > > ........ > > File "../../build/lib.linux-i686-2.5/mapscript.py", line 6, in > > import _mapscript > > ImportError: ../../build/lib.linux-i686-2.5/_mapscript.so: undefined > > symbol: _ZN3agg17g_elder_bit_tableE > > > > -------------- > > > > > > This occurs with both mapserver svn and 5.0. I've also tried with the > > system libagg as well as a self-compiled libagg with fPIC and > > freetype. I've tried the simple swig statement as well as the newer > > optimized swig flags. The same outcome occurs each under every combo. > > > > I'm out of ideas (and patience). Has anyone else experienced this > > issue and solved it? > > > > -- > > Matthew T. Perry > > http://www.perrygeo.net > > > > "Never ascribe to malice, that which can be adequately explained by > > incompetence." > > > -- Matthew T. Perry http://www.perrygeo.net "Never ascribe to malice, that which can be adequately explained by incompetence." From devloic at GMAIL.COM Mon Oct 15 02:40:51 2007 From: devloic at GMAIL.COM (=?UTF-8?B?TG/Dr2MgRGV2YXV4?=) Date: Mon, 15 Oct 2007 05:40:51 -0400 Subject: exportGge 0.92 In-Reply-To: <4712EEB4.3090908@raad.tartu.ee> Message-ID: Hello list, new features added to CartoWeb exportGge plugin: - raw export in geoRSS format - raw export in geoJSON - view layers inside yahoo maps via geoJSON - view layers inside virtual earth via geoRSS - view layers inside google maps via geoRSS - debug mode to get info about data and templating CartoWeb is a MapServer based web mapping framework written in php5. http://exportgge.sourceforge.net/kml/en Lo?c --------------------------- Bonjour ? tous, de nouvelles fonctionnalit?s pour le plugin CartoWeb exportGge: - visualisation des couches dans yahoo maps via geoJSON - visualisation des couches dans virtual earth via geoRSS - visualisation des couches dans google maps via geoRSS - export brut au format geoRSS - export brut au format geoJSON - mode debug pour avoir des infos sur les donn?es et les templates utilis?s CartoWeb est un framework php5 de cartographie web bas? sur MapServer. http://exportgge.sourceforge.net/kml/fr Lo?c From marcos at BURKE.ATH.CX Mon Oct 15 06:24:51 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Mon, 15 Oct 2007 15:24:51 +0200 Subject: Time series persistence Message-ID: Hello there. Is it possible to emulate persistence in a time series? I am showing rays hourly, it would be nice to let the older rays fade away slowly (like a radar ping). I am using mapbuilder as the client. Thank you in advance for the ideas. From David.Fawcett at STATE.MN.US Mon Oct 15 06:39:17 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 15 Oct 2007 08:39:17 -0500 Subject: Rename: Getting DBF data for symbology In-Reply-To: A Message-ID: I believe that transparency/opacity currently is only available at the layer level, not the class level as Hayden appears to want. If you really need the transparency option, you could break out your classes into separate layers. This would allow you to use transparency, but would of course multiply the number of layers and may give you a very small performance hit (which may likely be negligible). David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mevima Winn Sent: Friday, October 12, 2007 12:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rename: Getting DBF data for symbology There are a couple of ways. First is to set a transparency level, if the polygons have to be solid. Underlying polygon doesn't have to have any, while the top polygon can have any transparency level you want - probably somewhere between 40 and 60% if you want both to be approximately equally visible. Or you can simply set an OUTLINECOLOR and no COLOR, which means you will get an outline and no fill, which will show any underlying polygons as long as they don't directly overlap the same lines. Any overlapping lines can be identified by making the outline line thicker and a different color, so whoever is viewing the map can see that there are multiple polygons there. Regards, -Mevima -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Hayden Fisher Sent: Thursday, October 11, 2007 10:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rename: Getting DBF data for symbology Also polygons on top of polygons, is there a way to make it so you can see both? -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Mon Oct 15 06:59:22 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 15 Oct 2007 08:59:22 -0500 Subject: Time series persistence In-Reply-To: A<1192454691.5484.26.camel@savin> Message-ID: If you used one layer for each time slice, and you set the filter for that layer dynamically, you might be able to do something like this. For example, you could have three layers, 'current', 'older', and 'old'. If you passed in the filter expression for 'current', you would set it to the latest data. You would do the same with the other two layers, setting them to the older data sets. You could then symbolize the older and old layers using transparency or color (fading from color to grey?) to make them appear as though they are fading away. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marcos S?nchez Provencio Sent: Monday, October 15, 2007 8:25 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Time series persistence Hello there. Is it possible to emulate persistence in a time series? I am showing rays hourly, it would be nice to let the older rays fade away slowly (like a radar ping). I am using mapbuilder as the client. Thank you in advance for the ideas. From David.Fawcett at STATE.MN.US Mon Oct 15 07:05:53 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Mon, 15 Oct 2007 09:05:53 -0500 Subject: [MI-L] Re: MapServer, IIS and ASP In-Reply-To: A Message-ID: Hayden, What do you mean by 'it is not working'? It is a little tough to help you with such general symptoms. Another thing to try: If your column Assettype is a string, I don't think that your expression is correctly formed. If it is a string, you also need to quote the column name. Try something like: EXPRESSION ('[Assettype]'="Unknown") David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hayden Fisher Sent: Thursday, October 11, 2007 11:12 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] [MI-L] Re: MapServer, IIS and ASP Hi All, Have MapServer MapScript running! I have MapInfo tables with DBF data files. I am now trying to place different symbology for each asset type. I have placed the layer portion of my MapFile below. This is what I've tried so far, could someone take a look, as it is not working. Also polygons on top of polygons, is there a way to make it so you can see both? LAYER NAME "wsregn" STATUS default TYPE polygon MINSCALE 0.1 MAXSCALE 50000 CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\biz_e_asset_new\AMS_Final\WS\REGIONS\CORE\wsregn.tab " PROJECTION auto END CLASSITEM "assettype" CLASS EXPRESSION ([Assettype]="Unknown") STYLE COLOR 100 0 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Building") STYLE COLOR 0 100 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Land") STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 100 SYMBOL 0 END END END Regards, Hayden Fisher -------------- next part -------------- An HTML attachment was scrubbed... URL: From flavio at TYDAC.CH Mon Oct 15 07:50:05 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Mon, 15 Oct 2007 16:50:05 +0200 Subject: ESRI Personal GDB / OGR not working Message-ID: Hi all [hello Frank, me again] No way to get something displayed and everything should be correct (same layer as MapInfo file in same MapFile with same settings works, means parcels drawn as it should, mdb creates blank image); any idea ??? (mdb is ESRI ArcGIS 9.1). LAYER NAME "Parcelle" TYPE POLYGON STATUS ON CONNECTIONTYPE ogr CONNECTION "cademonti.mdb" DATA "parcelle" SIZEUNITS inches CLASS NAME "Parcelle" STYLE COLOR -1 -1 -1 OUTLINECOLOR 0 0 0 SYMBOL 'continue' SIZE 10 END END PROJECTION "init=world:CH1903" END END shp2img and ogrinfo say as well all OK: ******* OGRINFO: INFO: Open of `data/cademonti.mdb' using driver `PGeo' successful. Layer name: parcelle Geometry: Unknown (any) Feature Count: 506 Extent: (715889.010000, 110427.013000) - (719144.278000, 112312.140000) Layer SRS WKT: PROJCS["CH1903_LV03", GEOGCS["GCS_CH1903", DATUM["CH1903", SPHEROID["Bessel_1841",6377397.155,299.1528128]], PRIMEM["Greenwich",0.0], UNIT["Degree",0.0174532925199433]], PROJECTION["Hotine_Oblique_Mercator"], PARAMETER["False_Easting",600000.0], PARAMETER["False_Northing",200000.0], PARAMETER["Scale_Factor",1.0], PARAMETER["Azimuth",90.0], PARAMETER["Longitude_Of_Center",7.439583333333333], PARAMETER["Latitude_Of_Center",46.95240555555556], PARAMETER["rectified_grid_angle",90], UNIT["Meter",1.0]] Numero_Parcella: String (10.0) OBJECTID: Integer (10.0) SHAPE_Length: Real (0.0) SHAPE_Area: Real (0.0) ******************** SHP2IMG (result is empty image): [Mon Oct 15 16:34:11 2007].46000 msOGRFileOpen(cademonti.mdb)... [Mon Oct 15 16:34:11 2007].46000 OGROPen(f:/temp/data/cademonti.mdb) [Mon Oct 15 16:34:11 2007].78000 msOGRLayerClose(cademonti.mdb). [Mon Oct 15 16:34:11 2007].78000 msOGRFileClose(f:/temp/data/cademonti.mdb,0). [Mon Oct 15 16:34:11 2007].125000 msDrawMap(): Layer 1 (Edifici), 0.079s [Mon Oct 15 16:34:11 2007].125000 msOGRFileOpen(cademonti.mdb)... [Mon Oct 15 16:34:11 2007].125000 OGROPen(f:/temp/data/cademonti.mdb) [Mon Oct 15 16:34:11 2007].156000 msOGRLayerClose(cademonti.mdb). [Mon Oct 15 16:34:11 2007].156000 msOGRFileClose(f:/temp/data/cademonti.mdb,1). [Mon Oct 15 16:34:11 2007].203000 msDrawMap(): Layer 2 (Parcelle), 0.078s [Mon Oct 15 16:34:11 2007].203000 msOGRFileOpen(cademonti.mdb)... [Mon Oct 15 16:34:11 2007].203000 OGROPen(f:/temp/data/cademonti.mdb) [Mon Oct 15 16:34:11 2007].234000 msOGRLayerClose(cademonti.mdb). [Mon Oct 15 16:34:11 2007].234000 msOGRFileClose(f:/temp/data/cademonti.mdb,1). [Mon Oct 15 16:34:11 2007].281000 msDrawMap(): Layer 4 (Parcelle - Scala grande) , 0.078s [Mon Oct 15 16:34:11 2007].281000 msDrawMap(): Drawing Label Cache, 0.000s [Mon Oct 15 16:34:11 2007].281000 msDrawMap() total time: 0.235s [Mon Oct 15 16:34:11 2007].312000 msFreeMap(): freeing map at 003FB258. From warmerdam at POBOX.COM Mon Oct 15 08:08:48 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 15 Oct 2007 11:08:48 -0400 Subject: ESRI Personal GDB / OGR not working In-Reply-To: Message-ID: Flavio Hendry wrote: > Hi all [hello Frank, me again] > > No way to get something displayed and everything should be correct (same > layer as MapInfo file in same MapFile with same settings works, means > parcels drawn as it should, mdb creates blank image); any idea ??? (mdb > is ESRI ArcGIS 9.1). ... > msOGRFileClose(f:/temp/data/cademonti.mdb,1). > [Mon Oct 15 16:34:11 2007].203000 msDrawMap(): Layer 2 (Parcelle), 0.078s > [Mon Oct 15 16:34:11 2007].203000 msOGRFileOpen(cademonti.mdb)... > [Mon Oct 15 16:34:11 2007].203000 OGROPen(f:/temp/data/cademonti.mdb) > [Mon Oct 15 16:34:11 2007].234000 msOGRLayerClose(cademonti.mdb). Flavio, So the shp2img call for which you provided this debug output did not actually draw any features? That does seem odd. If you can provide a mapfile+symbolfile+mdb so I can test with shp2img, I'd be happy to look into the problem briefly. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From la_barrenadora at HOTMAIL.COM Mon Oct 15 08:48:57 2007 From: la_barrenadora at HOTMAIL.COM (Victor Herrero Cazurro) Date: Mon, 15 Oct 2007 17:48:57 +0200 Subject: Mapserver slow in production's server In-Reply-To: Message-ID: Hello, the production's server is a more powerful machine (more RAM, dedicated) that development's server. Production's server (Windows XP) and development's server (Windows server 2003). Both using same version of Mapserver and the same version of tools GDAL. The ODBC connection is with a tool OGR to BBDD SQLServer. It is possible that the tools GDAL have been installed wrong, but still functioning well with a low yield? >From: Hei Jo >Reply-To: Hei Jo >To: MAPSERVER-USERS at LISTS.UMN.EDU >Subject: Re: [UMN_MAPSERVER-USERS] Mapserver slow in production's server >Date: Sun, 14 Oct 2007 21:42:55 -0500 > >Sorry, may I ask a dump question: What is production's server ??? _________________________________________________________________ Grandes ?xitos, superh?roes, imitaciones, cine y TV... http://es.msn.kiwee.com/ Lo mejor para tu m?vil. From Tim.Nolte at IPCSWIRELESSINC.COM Mon Oct 15 09:39:32 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 15 Oct 2007 12:39:32 -0400 Subject: Solaris AGG Compile... Message-ID: I'm at the end of my rope here. I'm running up against a deadline and I can't get AGG compiled on Solaris 10 x86 for the life of me. I'm afraid I'm going to end up having to go back to GD. I made the mistake of using HostGIS to setup and interim mapserver while I rebuild the existing one and decided to go with Solaris as the rest of our servers are running on it. Anyways, if anyone has successfully compiled AGG on a Solaris box it would help me out huge! Thanks. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From rodrigo.andrade at DIGITRO.COM.BR Mon Oct 15 11:15:47 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Mon, 15 Oct 2007 15:15:47 -0300 Subject: libmapscript.so: wrong ELF class: ELFCLASS64. Java Mapscript woes on AMD64 Message-ID: Hello dear list. I was given a new machine to develop on and I am trying to get Java mapscript to run on AMD64, Fedora Core 7 64bits, but I am getting a nasty error when I try to 'make test' after compiling JavaMapscript (Mapserver 4.1x series, from svn revision 6176. I havent had time to give 5.0 a go yet) : [root at dinamico132 java]# make test javac -classpath ./:examples/:./mapscript.jar -d examples/ examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java examples/MakePoint.java examples/QueryByAttribute.java examples/ShapeInfo.java examples/WxSTest.java examples/Metadata.java examples/RunTimeBuiltWMSClient.java javac -encoding iso-8859-15 -classpath ./:examples/:./mapscript.jar -d examples/ examples/QueryByAttributeUnicode.java java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp ../../tests/point.shp java.lang.UnsatisfiedLinkError: /home/home2/install/mapserver_svn_6176/mapscript/java/libmapscript.so: /home2/install/mapserver_svn_6176/mapscript/java/libmapscript.so: wrong ELF class: ELFCLASS64 make: *** [test] Error 255 I am compiling mapsserver with ./configure \ --prefix=$MAPSERVER_HOME \ --without-pdf \ --with-threads \ --with-png=/home2/mapserver/libpng \ --with-freetype=/home2/mapserver/freetype \ --with-gd=/home2/mapserver/gd \ --with-geos=/home2/mapserver/geos/bin/geos-config \ --with-ogr=/home2/mapserver/gdal/bin/gdal-config \ --with-gdal=/home2/mapserver/gdal/bin/gdal-config \ --with-proj=/home2/mapserver/proj4 \ --with-wfs \ --with-wcs \ --with-wmsclient \ --with-wfsclient \ after successfully building luibPNG, FreeType, GD, GEOS and GDAL to the directories you can see on the configure line above, and I am using java 1.6.0. I gotta admit I am new to this 64 bits business, but I looked around and found references to compiling stuff with a -fPIC flag, so I went back and recompiled everything manually adding a -fPIC to the compiler flags in every Makefile along the way, but I still got the same error. Does anyone got a clue about this? Thanks! -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From webb.sprague at GMAIL.COM Mon Oct 15 10:31:10 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Mon, 15 Oct 2007 10:31:10 -0700 Subject: shp2img failing on super-basic mapfile Message-ID: I am trying to generate an image from the following mapfile, but I keep getting the following: MAPSCRIPT[0]$ shp2img -m map2 > foo msEvalRegex(): Regular expression error. String (map2) failed expression test.
Please help! I am running mac os x, with a fink install of mapserver. Thx Mapfile: MAP NAME HELLO STATUS ON EXTENT 0 0 4000 3000 SIZE 400 300 IMAGECOLOR 200 255 255 WEB IMAGEPATH "/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 From dmorissette at MAPGEARS.COM Mon Oct 15 10:44:42 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 15 Oct 2007 13:44:42 -0400 Subject: shp2img failing on super-basic mapfile In-Reply-To: Message-ID: Webb Sprague wrote: > I am trying to generate an image from the following mapfile, but I > keep getting the following: > > MAPSCRIPT[0]$ shp2img -m map2 > foo > msEvalRegex(): Regular expression error. String (map2) failed > expression test.
> The "failed expression test" in this case is on the mapfile filename itself: "map2" is missing a ".map" extension. Rename "map2" to "map2.map" and try again. Daniel -- Daniel Morissette http://www.mapgears.com/ From gregor at HOSTGIS.COM Mon Oct 15 10:44:52 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 15 Oct 2007 11:44:52 -0600 Subject: shp2img failing on super-basic mapfile In-Reply-To: Message-ID: Webb Sprague wrote: > MAPSCRIPT[0]$ shp2img -m map2 > foo > msEvalRegex(): Regular expression error. String (map2) failed > expression test.
Mapfiles must end in .map Try renaming it to map2.map and try again. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From webb.sprague at GMAIL.COM Mon Oct 15 10:51:24 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Mon, 15 Oct 2007 10:51:24 -0700 Subject: shp2img failing on super-basic mapfile In-Reply-To: <4713A70A.2080604@mapgears.com> Message-ID: > The "failed expression test" in this case is on the mapfile filename > itself: "map2" is missing a ".map" extension. > > Rename "map2" to "map2.map" and try again. You guys are great. From warmerdam at POBOX.COM Mon Oct 15 11:04:06 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 15 Oct 2007 14:04:06 -0400 Subject: shp2img failing on super-basic mapfile In-Reply-To: Message-ID: Webb Sprague wrote: > I am trying to generate an image from the following mapfile, but I > keep getting the following: > > MAPSCRIPT[0]$ shp2img -m map2 > foo > msEvalRegex(): Regular expression error. String (map2) failed > expression test.
> > Please help! I am running mac os x, with a fink install of mapserver. Webb, MapServer validates the name of it's mapfile against a regular expression in an attempt to prevent hostile visitors from being able to trick mapserv into using non-map files (eg. /etc/passwd). If you rename your map 2.map it should work. The default mapfile regular expression just looks for the extension .map as far as I know. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ed at TOPOZONE.COM Mon Oct 15 10:56:00 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 15 Oct 2007 13:56:00 -0400 Subject: Solaris AGG Compile... In-Reply-To: A<1532456BD081F146A176FB6929E6B0D1A7D208@KTWMAIL.ilpcs.com> Message-ID: Tim - Have you successfully compiled AGG on other platforms? If not, perhaps your problem isn't specific to Solaris (and therefore those of us non-Solarians might be able to help). But you don't say what's going wrong - what happens when you try to compile? - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Nolte, Tim Sent: Monday, October 15, 2007 12:40 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Solaris AGG Compile... I'm at the end of my rope here. I'm running up against a deadline and I can't get AGG compiled on Solaris 10 x86 for the life of me. I'm afraid I'm going to end up having to go back to GD. I made the mistake of using HostGIS to setup and interim mapserver while I rebuild the existing one and decided to go with Solaris as the rest of our servers are running on it. Anyways, if anyone has successfully compiled AGG on a Solaris box it would help me out huge! Thanks. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com From gregor at HOSTGIS.COM Mon Oct 15 11:37:07 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Mon, 15 Oct 2007 12:37:07 -0600 Subject: Fwd: MrSID splitter utility on SourceForge Message-ID: Lee Keel has announced on the OpenLayers list, that he has created a utility for splitting MrSIDs into a set of TIFFs. It's called BatchSplitter. It works with FWTools for Windows, and generates the .bat files which will create the tileset. http://sourceforge.net/projects/batchsplitter Since folks had asked about it on this list, I thought I'd share the news; I know it'll be a convenience for me! -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From jmckenna at DMSOLUTIONS.CA Mon Oct 15 12:28:15 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Mon, 15 Oct 2007 15:28:15 -0400 Subject: Fwd: MrSID splitter utility on SourceForge In-Reply-To: <4713B353.8010001@hostgis.com> Message-ID: Interesting. I imagine it could work with MS4W then too (since it contains the same GDAL utilities)... -- jeff Gregor Mosheh wrote: > Lee Keel has announced on the OpenLayers list, that he has created a > utility for splitting MrSIDs into a set of TIFFs. > > It's called BatchSplitter. It works with FWTools for Windows, and > generates the .bat files which will create the tileset. > http://sourceforge.net/projects/batchsplitter > > Since folks had asked about it on this list, I thought I'd share the > news; I know it'll be a convenience for me! > From trente at UMN.EDU Mon Oct 15 12:32:04 2007 From: trente at UMN.EDU (Trent Erickson) Date: Mon, 15 Oct 2007 14:32:04 -0500 Subject: Solaris AGG Compile... In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A7D208@KTWMAIL.ilpcs.com> Message-ID: More technical details would be helpful. I can offer my experience although it may not be applicable. I have compiled on Solaris 9 using the GNU make and ld. Be sure you are using GNU ld. The Sun version didn't work for me. -Trent Nolte, Tim wrote: > I'm at the end of my rope here. I'm running up against a deadline and I > can't get AGG compiled on Solaris 10 x86 for the life of me. I'm afraid > I'm going to end up having to go back to GD. I made the mistake of using > HostGIS to setup and interim mapserver while I rebuild the existing one > and decided to go with Solaris as the rest of our servers are running on > it. Anyways, if anyone has successfully compiled AGG on a Solaris box it > would help me out huge! Thanks. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > From Tim.Nolte at IPCSWIRELESSINC.COM Mon Oct 15 12:51:36 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Mon, 15 Oct 2007 15:51:36 -0400 Subject: Solaris AGG Compile... In-Reply-To: <4713C034.5060701@umn.edu> Message-ID: I'll provide some more technical detail as soon as I can. I'm under the gun to get this server running. Even if I have to fall back on GD initial I'll get by. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Trent Erickson [mailto:trente at umn.edu] Sent: Monday, October 15, 2007 3:32 PM To: Nolte, Tim Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... More technical details would be helpful. I can offer my experience although it may not be applicable. I have compiled on Solaris 9 using the GNU make and ld. Be sure you are using GNU ld. The Sun version didn't work for me. -Trent Nolte, Tim wrote: > I'm at the end of my rope here. I'm running up against a deadline and I > can't get AGG compiled on Solaris 10 x86 for the life of me. I'm afraid > I'm going to end up having to go back to GD. I made the mistake of using > HostGIS to setup and interim mapserver while I rebuild the existing one > and decided to go with Solaris as the rest of our servers are running on > it. Anyways, if anyone has successfully compiled AGG on a Solaris box it > would help me out huge! Thanks. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > From bea at IXSEA.COM Mon Oct 15 13:26:08 2007 From: bea at IXSEA.COM (Benoit Andrieu) Date: Mon, 15 Oct 2007 15:26:08 -0500 Subject: Help on raster optimization Message-ID: Hi all ! We do have a problem on using MapServer on raster datas. Our datasets are made of multiple GeoTiff files. Each Tiff has his own overviews (2 4 8 16 32). We do not have an overview level. Our Tiff are projected in UTM xx depending on the location on earth. Our Tiff have coordinates in them, they are true GeoTiff files ; however they have tfw files for compatibility with third-party softwares. We have an high performance degradation when serving WMS clients as WorldWind and an home-made client ; more precisely, the degradation is happening on zoomed out requests. The cause seems to be the amount of data required to be loaded by mapserver for the rendering of one single request. Worldwind is requesting datas in latlong projection whereas our homemade client is requesting in UTM projection. Our server is an octo-core with 8Gb of RAM, we are using Win2003 Server and Mapserver comes from FWTools 1.3.2 (Mapserver 4.x then), it is hosted by an IIS 6.0 in CGI mode (not FastCGI). I set the GDAL_CACHEMAX to 200. I monitored the mapserv.exe behaviour in the task manager to see what was happening and I saw that mapserver was loading a huge amount of data (between 50Mb and 300Mb of data depending on the requests/datasets). I then monitored the mapserv.exe behaviour in the holy Procmon and there I saw some interesting things. First, the epsg file loaded by GDAL is loaded multiple times near the start of the process, I think it is loaded each time an epsg code is mentionned in the map file. As we are serving UTM, their epsg code (32631 for instance) are lying at the end of the file, so Mapserver was reading the file looking for those codes. I, then, moved those definitions to the beginning of the file, just after the latlong definition (epsg 4326). I launched the requests, and saw that the amount of datas being read was much lower, but the end-to-end was slow again. Then, I moved forward, in my procmon report and there I saw IT !! Mapserver is loading for each of our tiffs files, 6 other files !! Those files are : pcs.csv = 400 Kb, projop_wparm.csv = 165 Kb, gcs.csv = 35 Kb, unit_of_measure.csv = 20 Kb, datum.csv = 70 Kb, ellipsoid.csv = 10 Kb So, from what I see, for serving my request, mapserver is loading approximatively 700Kb of "external" datas and around 50/100 Kb of my 1Mb Tiff files. In order to serve a zoomed out request, I have 26 Tiff files. So, finally, mapserver is loading 20 Mo. So, here is my question : how could I make Mapserv to not load those files again and again... ??? Thanks in advance !! Beno?t Andrieu PS : if anyone is interested, I can send my log files from Procmon to show which files are accessed. ================================================================================================================================================================================ My test requests : http://acquisitiontest/Cgi/bin/mapserv.exe?&request=GetMap&layers=Sonar_FRONT,Sonar_STARBOARD,Sonar_PORT&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&map=C:\content\surveytemplate\LigneSudMoins600\MAP_62.map&srs=EPSG:32631&width=512&height=512&bbox=715102,4783144.81842247,716996,4783869.89482688&format=image/gif&version=1.1.1&styles= http://acquisitiontest/Cgi/bin/mapserv.exe?&request=GetMap&layers=Sonar_FRONT,Sonar_STARBOARD,Sonar_PORT&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&map=C:\content\surveytemplate\LigneSudMoins600\MAP_62.map&srs=EPSG:4326&width=512&height=512&bbox=5.64654588699341,43.1704597473145,5.66959381103516,43.1764526367188&format=image/gif&version=1.1.1&styles= ================================================================================================================================================================================ My map file : #This Map Was Generated By Isdas do not modifie #Generaded : 10/15/2007 1:24:22 PM MAP Name"LigneSudMoins600" CONFIG "PROJ_LIB" "c:\Inetpub\wwwroot\Cgi\proj_lib\" EXTENT 5.64654588701225 43.1704597472872 5.66959381105485 43.17645263669 SIZE 512 512 IMAGETYPE PNG24 IMAGECOLOR 255 255 255 IMAGECOLOR 255 255 255 UNITS METERS OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END PROJECTION "init=epsg:4326" END WEB IMAGEPATH "c:\ms_tmp\" IMAGEURL "http://ACQUISITIONTEST/ms_tmp" METADATA "wms_title" "LigneSudMoins600" "wms_srs" "epsg:4326 epsg:32631" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END END LAYER NAME "Sonar" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_PORT" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_PORT.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_PORT" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_STARBOARD" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_STARBOARD.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_STARBOARD" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_FRONT" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_FRONT.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_FRONT" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END #~~~ END From ed at TOPOZONE.COM Mon Oct 15 13:29:29 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 15 Oct 2007 16:29:29 -0400 Subject: Solaris AGG Compile... In-Reply-To: A<1532456BD081F146A176FB6929E6B0D1A7D26A@KTWMAIL.ilpcs.com> Message-ID: Tim - Ok, but a simple explanation of what the error was would be a big help. Thanks. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Nolte, Tim Sent: Monday, October 15, 2007 3:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... I'll provide some more technical detail as soon as I can. I'm under the gun to get this server running. Even if I have to fall back on GD initial I'll get by. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Trent Erickson [mailto:trente at umn.edu] Sent: Monday, October 15, 2007 3:32 PM To: Nolte, Tim Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... More technical details would be helpful. I can offer my experience although it may not be applicable. I have compiled on Solaris 9 using the GNU make and ld. Be sure you are using GNU ld. The Sun version didn't work for me. -Trent Nolte, Tim wrote: > I'm at the end of my rope here. I'm running up against a deadline and I > can't get AGG compiled on Solaris 10 x86 for the life of me. I'm afraid > I'm going to end up having to go back to GD. I made the mistake of using > HostGIS to setup and interim mapserver while I rebuild the existing one > and decided to go with Solaris as the rest of our servers are running on > it. Anyways, if anyone has successfully compiled AGG on a Solaris box it > would help me out huge! Thanks. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > From ed at TOPOZONE.COM Mon Oct 15 13:38:07 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 15 Oct 2007 16:38:07 -0400 Subject: Help on raster optimization In-Reply-To: A Message-ID: Benoit - Thanks for such a good description of your problem! I want to point out that the chief slowdown you will see in a situation like this is the increase in the number of GeoTIFF files being opened and read to serve one request. Your internal overviews obviously get smaller and smaller at each zoom level. If you have a 1024x1024 pixel image, the 32x overview is really a 32x32 pixel little image. If your client requests a 1024x1024 output image, you will need to open and read 1024 individual GeoTIFFs! Many users overlook this aspect of overviews. At a certain point your response time is dominated by the number of files you need to seek to and open. While those other files may be annoying, I doubt they contribute much to the problem. Yes, you can improve things by cleaning them up. But I think your biggest win would be to combine your small-scale GeoTIFF overviews into larger, mosaiced images, and use a GROUP layer with MINSCALE/MAXSCALE settings to select the right LAYER. The random seek time to a new file is the slowest thing your server does. Minimizing the number of files used to serve a request is MUCH more valuable than minimizing the size of those files. Reading 10 100K files is much faster than reading 100 10K files. If you are in the habit of serving data in the lat/lon format WorldWind requires, you would do well to create a shadow copy of your images, all reprojected to the desired output projection, and only advertise that one projection in your service. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Benoit Andrieu Sent: Monday, October 15, 2007 4:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help on raster optimization Hi all ! We do have a problem on using MapServer on raster datas. Our datasets are made of multiple GeoTiff files. Each Tiff has his own overviews (2 4 8 16 32). We do not have an overview level. Our Tiff are projected in UTM xx depending on the location on earth. Our Tiff have coordinates in them, they are true GeoTiff files ; however they have tfw files for compatibility with third-party softwares. We have an high performance degradation when serving WMS clients as WorldWind and an home-made client ; more precisely, the degradation is happening on zoomed out requests. The cause seems to be the amount of data required to be loaded by mapserver for the rendering of one single request. Worldwind is requesting datas in latlong projection whereas our homemade client is requesting in UTM projection. Our server is an octo-core with 8Gb of RAM, we are using Win2003 Server and Mapserver comes from FWTools 1.3.2 (Mapserver 4.x then), it is hosted by an IIS 6.0 in CGI mode (not FastCGI). I set the GDAL_CACHEMAX to 200. I monitored the mapserv.exe behaviour in the task manager to see what was happening and I saw that mapserver was loading a huge amount of data (between 50Mb and 300Mb of data depending on the requests/datasets). I then monitored the mapserv.exe behaviour in the holy Procmon and there I saw some interesting things. First, the epsg file loaded by GDAL is loaded multiple times near the start of the process, I think it is loaded each time an epsg code is mentionned in the map file. As we are serving UTM, their epsg code (32631 for instance) are lying at the end of the file, so Mapserver was reading the file looking for those codes. I, then, moved those definitions to the beginning of the file, just after the latlong definition (epsg 4326). I launched the requests, and saw that the amount of datas being read was much lower, but the end-to-end was slow again. Then, I moved forward, in my procmon report and there I saw IT !! Mapserver is loading for each of our tiffs files, 6 other files !! Those files are : pcs.csv = 400 Kb, projop_wparm.csv = 165 Kb, gcs.csv = 35 Kb, unit_of_measure.csv = 20 Kb, datum.csv = 70 Kb, ellipsoid.csv = 10 Kb So, from what I see, for serving my request, mapserver is loading approximatively 700Kb of "external" datas and around 50/100 Kb of my 1Mb Tiff files. In order to serve a zoomed out request, I have 26 Tiff files. So, finally, mapserver is loading 20 Mo. So, here is my question : how could I make Mapserv to not load those files again and again... ??? Thanks in advance !! Beno?t Andrieu PS : if anyone is interested, I can send my log files from Procmon to show which files are accessed. ================================================================================================================================================================================ My test requests : http://acquisitiontest/Cgi/bin/mapserv.exe?&request=GetMap&layers=Sonar_FRONT,Sonar_STARBOARD,Sonar_PORT&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&map=C:\content\surveytemplate\LigneSudMoins600\MAP_62.map&srs=EPSG:32631&width=512&height=512&bbox=715102,4783144.81842247,716996,4783869.89482688&format=image/gif&version=1.1.1&styles= http://acquisitiontest/Cgi/bin/mapserv.exe?&request=GetMap&layers=Sonar_FRONT,Sonar_STARBOARD,Sonar_PORT&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&map=C:\content\surveytemplate\LigneSudMoins600\MAP_62.map&srs=EPSG:4326&width=512&height=512&bbox=5.64654588699341,43.1704597473145,5.66959381103516,43.1764526367188&format=image/gif&version=1.1.1&styles= ================================================================================================================================================================================ My map file : #This Map Was Generated By Isdas do not modifie #Generaded : 10/15/2007 1:24:22 PM MAP Name"LigneSudMoins600" CONFIG "PROJ_LIB" "c:\Inetpub\wwwroot\Cgi\proj_lib\" EXTENT 5.64654588701225 43.1704597472872 5.66959381105485 43.17645263669 SIZE 512 512 IMAGETYPE PNG24 IMAGECOLOR 255 255 255 IMAGECOLOR 255 255 255 UNITS METERS OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END PROJECTION "init=epsg:4326" END WEB IMAGEPATH "c:\ms_tmp\" IMAGEURL "http://ACQUISITIONTEST/ms_tmp" METADATA "wms_title" "LigneSudMoins600" "wms_srs" "epsg:4326 epsg:32631" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END END LAYER NAME "Sonar" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_PORT" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_PORT.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_PORT" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_STARBOARD" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_STARBOARD.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_STARBOARD" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_FRONT" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_FRONT.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_FRONT" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END #~~~ END From warmerdam at POBOX.COM Mon Oct 15 14:04:44 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Mon, 15 Oct 2007 17:04:44 -0400 Subject: Help on raster optimization In-Reply-To: Message-ID: Benoit Andrieu wrote: > Hi all ! > > We do have a problem on using MapServer on raster datas. ... > We have an high performance degradation when serving WMS clients as WorldWind > and an home-made client ; more precisely, the degradation is happening on zoomed > out requests. ... > Then, I moved forward, in my procmon report and there I saw IT !! > Mapserver is loading for each of our tiffs files, 6 other files !! > Those files are : > pcs.csv = 400 Kb, > projop_wparm.csv = 165 Kb, > gcs.csv = 35 Kb, > unit_of_measure.csv = 20 Kb, > datum.csv = 70 Kb, > ellipsoid.csv = 10 Kb > > So, from what I see, for serving my request, mapserver is loading > approximatively 700Kb of "external" datas and around 50/100 Kb of my 1Mb Tiff > files. In order to serve a zoomed out request, I have 26 Tiff files. So, > finally, mapserver is loading 20 Mo. > > So, here is my question : how could I make Mapserv to not load those files again > and again... ??? Benoit, Yes, these are all known problems, though most of the time people haven't done as in depth an analysis as you have. There are plans to optimize the EPSG file accessing though it is important to know that the GeoTIFF driver also looks up EPSG codes in the GDAL pcs.csv (and related files). The planned optimizations are really just for PROJ4. In the meantime, stripping unneeded stuff from the epsg, and pcs.csv files can help, or perhaps as you have done just move the commonly used ones to the front. The other issue is that opening a lot of GeoTIFF files is expensive. You really ought to build an overview layer if you have a lot of geotiffs, though 26 does not seem like a terribly large number. Also, somewhat counter intuitively, having overviews in GeoTIFF files results in quite a bit of extra seeking around from directory to directory to identify the available overviews. I suspect this is a bit expensive in terms of disk blocking. This is an area that could stand some careful optimization! Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From matthias at BLAZEJAK.DE Mon Oct 15 13:40:12 2007 From: matthias at BLAZEJAK.DE (Matthias Blazejak) Date: Mon, 15 Oct 2007 22:40:12 +0200 Subject: info Message-ID: -- Gr??e, Matthias From dmorissette at MAPGEARS.COM Mon Oct 15 13:51:34 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Mon, 15 Oct 2007 16:51:34 -0400 Subject: Help on raster optimization In-Reply-To: Message-ID: Benoit Andrieu wrote: > > First, the epsg file loaded by GDAL is loaded multiple times near the start of > the process, I think it is loaded each time an epsg code is mentionned in the > map file. > As we are serving UTM, their epsg code (32631 for instance) are lying at the end > of the file, so Mapserver was reading the file looking for those codes. > I, then, moved those definitions to the beginning of the file, just after the > latlong definition (epsg 4326). > I launched the requests, and saw that the amount of datas being read was much > lower, but the end-to-end was slow again. > There is a ticket about this issue: http://trac.osgeo.org/mapserver/ticket/1976 I'll be making some changes in PROJ (hopefully fairly soon) to add caching and avoid re-reading the epsg file multiple times in situations like this. In the meantime, one way around is to move the definition to the top of the file as you did, or to place native PROJ4 definitions in your mapfile instead of using the "init=epsg:...." syntax. Using native PROJ4 definitions in all layers combined with corresponding "wms_srs" metadata inside the layers will produce a fully valid WMS service. Daniel -- Daniel Morissette http://www.mapgears.com/ From matthias at BLAZEJAK.DE Mon Oct 15 14:07:00 2007 From: matthias at BLAZEJAK.DE (Matthias Blazejak) Date: Mon, 15 Oct 2007 23:07:00 +0200 Subject: signoff Message-ID: bla bla bla bla bla bla bla blo blo blo blo blo ich m?chte die liste abbestellen ... -- Gr??e, Matthias From bwragg at TPG.COM.AU Mon Oct 15 18:19:39 2007 From: bwragg at TPG.COM.AU (bwragg) Date: Tue, 16 Oct 2007 11:19:39 +1000 Subject: PHP/Mapscript and Zend Optimizer In-Reply-To: <4712EEB4.3090908@raad.tartu.ee> Message-ID: Are you running the zend debugger also? I had problems getting the Zend Optimizer to run with the Zend Debugger but it works fine with PHP/Mapscript. Let me know if you are running both and I'll post my config for the Zend stuff. Cheers, Benjamin -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Toomas Aas Sent: Monday, 15 October 2007 2:38 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] PHP/Mapscript and Zend Optimizer Toomas Aas wrote: > zend_extension=/usr/local/Zend/lib/Optimizer-3.0.0/php-5.1.x > /ZendOptimizer.so I meant, of course, zend_extension=/usr/local/lib/php/20060613/Optimizer/php-5.2.x/ZendOptimizer .so ... I tried to drown my problems but found out they can swim. From Todd.Harris at LANDGATE.WA.GOV.AU Mon Oct 15 18:21:26 2007 From: Todd.Harris at LANDGATE.WA.GOV.AU (Todd Harris) Date: Tue, 16 Oct 2007 09:21:26 +0800 Subject: Rename: Getting DBF data for symbology Message-ID: I have recently had the same problem with overlapping polygons at the CLASS level, I solved it by using a hatch symbol that had a minimum spacing value, thus allowing linework to appear through the hatching. It will have a slight affect on the colour of the polygon on top but works well. STYLE SYMBOL 'hatch135' OUTLINECOLOR 0 0 0 COLOR 255 200 255 # light pink END #STYLE Todd ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Monday, 15 October 2007 9:39 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rename: Getting DBF data for symbology I believe that transparency/opacity currently is only available at the layer level, not the class level as Hayden appears to want. If you really need the transparency option, you could break out your classes into separate layers. This would allow you to use transparency, but would of course multiply the number of layers and may give you a very small performance hit (which may likely be negligible). David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Mevima Winn Sent: Friday, October 12, 2007 12:23 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Rename: Getting DBF data for symbology There are a couple of ways. First is to set a transparency level, if the polygons have to be solid. Underlying polygon doesn't have to have any, while the top polygon can have any transparency level you want - probably somewhere between 40 and 60% if you want both to be approximately equally visible. Or you can simply set an OUTLINECOLOR and no COLOR, which means you will get an outline and no fill, which will show any underlying polygons as long as they don't directly overlap the same lines. Any overlapping lines can be identified by making the outline line thicker and a different color, so whoever is viewing the map can see that there are multiple polygons there. Regards, -Mevima -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU]On Behalf Of Hayden Fisher Sent: Thursday, October 11, 2007 10:47 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Rename: Getting DBF data for symbology Also polygons on top of polygons, is there a way to make it so you can see both? This e-mail and any files transmitted with it are intended only for the use of the addressee(s). It may contain information that is confidential and privileged, in which case neither is intended to be waived or lost by mistaken delivery to you. If you are not an intended recipient, any use, interference with, disclosure, distribution or copying of this material is unauthorised and prohibited. If you receive this e-mail in error, please notify the sender by return e-mail and delete the message and any attachments from your system. Unless specifically indicated, this e-mail does not constitute formal advice or commitment by the sender or the Western Australian Land Information Authority (Landgate). Information in this message not relating to the official business of Landgate shall be understood as neither given nor endorsed by it. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. Landgate?s liability is limited to re-supplying affected attachments. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ed at TOPOZONE.COM Mon Oct 15 18:44:20 2007 From: ed at TOPOZONE.COM (Ed McNierney) Date: Mon, 15 Oct 2007 21:44:20 -0400 Subject: Help on raster optimization In-Reply-To: A<4713D2D6.7060405@mapgears.com> Message-ID: Benoit - In addition to moving your definitions to the top of the EPSG file, there's nothing wrong with editing that file and removing the large number of definitions that you don't use. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA? 01863 Phone: 978-251-4242, Fax: 978-251-1396 ed at topozone.com -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Daniel Morissette Sent: Monday, October 15, 2007 4:52 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Help on raster optimization Benoit Andrieu wrote: > > First, the epsg file loaded by GDAL is loaded multiple times near the start of > the process, I think it is loaded each time an epsg code is mentionned in the > map file. > As we are serving UTM, their epsg code (32631 for instance) are lying at the end > of the file, so Mapserver was reading the file looking for those codes. > I, then, moved those definitions to the beginning of the file, just after the > latlong definition (epsg 4326). > I launched the requests, and saw that the amount of datas being read was much > lower, but the end-to-end was slow again. > There is a ticket about this issue: http://trac.osgeo.org/mapserver/ticket/1976 I'll be making some changes in PROJ (hopefully fairly soon) to add caching and avoid re-reading the epsg file multiple times in situations like this. In the meantime, one way around is to move the definition to the top of the file as you did, or to place native PROJ4 definitions in your mapfile instead of using the "init=epsg:...." syntax. Using native PROJ4 definitions in all layers combined with corresponding "wms_srs" metadata inside the layers will produce a fully valid WMS service. Daniel -- Daniel Morissette http://www.mapgears.com/ From Jacob.Delfos at MAUNSELL.COM Mon Oct 15 18:48:54 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 16 Oct 2007 09:48:54 +0800 Subject: Rename: Getting DBF data for symbology Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From webb.sprague at GMAIL.COM Mon Oct 15 19:15:00 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Mon, 15 Oct 2007 19:15:00 -0700 Subject: FONTSET problem on mac os x - empty rectangles in the image Message-ID: Hi again I am trying to get labels based on a the "name" field in a postgis table (of GNIS placenames). Everything works great (the overlay, the triangle symbol, etc), but in the image, I get empty boxes where the letters should be (though I get a one-to-one box to letter). If anyone can help, I would sure appreciate it. (I am running a generic mapserver from installed by fink.) Here is the view definition in sql: SELECT placenames.gid AS oid, placenames.name, placenames.desig, placenames.elev, placenames.the_geom FROM placenames WHERE placenames.desig::text = 'airport'::text ORDER BY placenames.gid; Here is the my font file (yes, the files do exist): MAPSCRIPT[2]$ cat fonts.list arial /Library/Fonts/ArialHB.ttf arial2 /Library/Fonts/Arial MAPSCRIPT[2]$ Here is the layer in my mapfile: LAYER NAME "airports" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from airports_view" STATUS DEFAULT TYPE POINT LABELITEM "name" LABELCACHE ON CLASS NAME "LocationSymbol" SYMBOL "triangle" COLOR 100 100 82 LABEL # OUTLINECOLOR 255 255 255 # MINDISTANCE 200 # Label only at close range COLOR 0 0 0 TYPE TRUETYPE SIZE 12 FONT "arial" POSITION cc ANGLE AUTO PARTIALS FALSE END #end label END END From woodbri at SWOODBRIDGE.COM Mon Oct 15 20:33:40 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Mon, 15 Oct 2007 23:33:40 -0400 Subject: FONTSET problem on mac os x - empty rectangles in the image In-Reply-To: Message-ID: Is this a transparent overlay layer? is IMAGECOLOR 0 0 0? if so then that color is transparent and you leters are also transparent. If that is the case change your label COLOR 1 1 1 and it should fix the problem. -Steve Webb Sprague wrote: > Hi again > > I am trying to get labels based on a the "name" field in a postgis > table (of GNIS placenames). Everything works great (the overlay, the > triangle symbol, etc), but in the image, I get empty boxes where the > letters should be (though I get a one-to-one box to letter). If > anyone can help, I would sure appreciate it. (I am running a generic > mapserver from installed by fink.) > > Here is the view definition in sql: > > SELECT placenames.gid AS oid, placenames.name, placenames.desig, > placenames.elev, placenames.the_geom > FROM placenames > WHERE placenames.desig::text = 'airport'::text > ORDER BY placenames.gid; > > Here is the my font file (yes, the files do exist): > > MAPSCRIPT[2]$ cat fonts.list > arial /Library/Fonts/ArialHB.ttf > arial2 /Library/Fonts/Arial > MAPSCRIPT[2]$ > > Here is the layer in my mapfile: > > LAYER > NAME "airports" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from airports_view" > STATUS DEFAULT > TYPE POINT > > LABELITEM "name" > LABELCACHE ON > > CLASS > NAME "LocationSymbol" > SYMBOL "triangle" > COLOR 100 100 82 > > LABEL > # OUTLINECOLOR 255 255 255 > # MINDISTANCE 200 # Label only at close range > COLOR 0 0 0 > TYPE TRUETYPE > SIZE 12 > FONT "arial" > POSITION cc > ANGLE AUTO > PARTIALS FALSE > END #end label > > END > END From webb.sprague at GMAIL.COM Mon Oct 15 20:53:33 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Mon, 15 Oct 2007 20:53:33 -0700 Subject: FONTSET problem on mac os x - empty rectangles in the image In-Reply-To: <47143114.5050408@swoodbridge.com> Message-ID: I am attaching the file, but this didn't fix the problem. You can see the empty boxes. Thx, though ;) -W On 10/15/07, Stephen Woodbridge wrote: > Is this a transparent overlay layer? is IMAGECOLOR 0 0 0? if so then > that color is transparent and you leters are also transparent. If that > is the case change your label COLOR 1 1 1 and it should fix the problem. > > -Steve > > Webb Sprague wrote: > > Hi again > > > > I am trying to get labels based on a the "name" field in a postgis > > table (of GNIS placenames). Everything works great (the overlay, the > > triangle symbol, etc), but in the image, I get empty boxes where the > > letters should be (though I get a one-to-one box to letter). If > > anyone can help, I would sure appreciate it. (I am running a generic > > mapserver from installed by fink.) > > > > Here is the view definition in sql: > > > > SELECT placenames.gid AS oid, placenames.name, placenames.desig, > > placenames.elev, placenames.the_geom > > FROM placenames > > WHERE placenames.desig::text = 'airport'::text > > ORDER BY placenames.gid; > > > > Here is the my font file (yes, the files do exist): > > > > MAPSCRIPT[2]$ cat fonts.list > > arial /Library/Fonts/ArialHB.ttf > > arial2 /Library/Fonts/Arial > > MAPSCRIPT[2]$ > > > > Here is the layer in my mapfile: > > > > LAYER > > NAME "airports" > > CONNECTIONTYPE postgis > > CONNECTION "user=wsprague dbname=or_gis host=localhost" > > DATA "the_geom from airports_view" > > STATUS DEFAULT > > TYPE POINT > > > > LABELITEM "name" > > LABELCACHE ON > > > > CLASS > > NAME "LocationSymbol" > > SYMBOL "triangle" > > COLOR 100 100 82 > > > > LABEL > > # OUTLINECOLOR 255 255 255 > > # MINDISTANCE 200 # Label only at close range > > COLOR 0 0 0 > > TYPE TRUETYPE > > SIZE 12 > > FONT "arial" > > POSITION cc > > ANGLE AUTO > > PARTIALS FALSE > > END #end label > > > > END > > END > > -------------- next part -------------- A non-text attachment was scrubbed... Name: foo.png Type: image/png Size: 28089 bytes Desc: not available URL: From woodbri at SWOODBRIDGE.COM Mon Oct 15 21:09:22 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 16 Oct 2007 00:09:22 -0400 Subject: FONTSET problem on mac os x - empty rectangles in the image In-Reply-To: Message-ID: The problem is that the arial /Library/Fonts/ArialHB.ttf font you are using is not the same encoding as the shapefile data. -Steve Webb Sprague wrote: > I am attaching the file, but this didn't fix the problem. You can see > the empty boxes. > > Thx, though ;) > > -W > > On 10/15/07, Stephen Woodbridge wrote: >> Is this a transparent overlay layer? is IMAGECOLOR 0 0 0? if so then >> that color is transparent and you leters are also transparent. If that >> is the case change your label COLOR 1 1 1 and it should fix the problem. >> >> -Steve >> >> Webb Sprague wrote: >>> Hi again >>> >>> I am trying to get labels based on a the "name" field in a postgis >>> table (of GNIS placenames). Everything works great (the overlay, the >>> triangle symbol, etc), but in the image, I get empty boxes where the >>> letters should be (though I get a one-to-one box to letter). If >>> anyone can help, I would sure appreciate it. (I am running a generic >>> mapserver from installed by fink.) >>> >>> Here is the view definition in sql: >>> >>> SELECT placenames.gid AS oid, placenames.name, placenames.desig, >>> placenames.elev, placenames.the_geom >>> FROM placenames >>> WHERE placenames.desig::text = 'airport'::text >>> ORDER BY placenames.gid; >>> >>> Here is the my font file (yes, the files do exist): >>> >>> MAPSCRIPT[2]$ cat fonts.list >>> arial /Library/Fonts/ArialHB.ttf >>> arial2 /Library/Fonts/Arial >>> MAPSCRIPT[2]$ >>> >>> Here is the layer in my mapfile: >>> >>> LAYER >>> NAME "airports" >>> CONNECTIONTYPE postgis >>> CONNECTION "user=wsprague dbname=or_gis host=localhost" >>> DATA "the_geom from airports_view" >>> STATUS DEFAULT >>> TYPE POINT >>> >>> LABELITEM "name" >>> LABELCACHE ON >>> >>> CLASS >>> NAME "LocationSymbol" >>> SYMBOL "triangle" >>> COLOR 100 100 82 >>> >>> LABEL >>> # OUTLINECOLOR 255 255 255 >>> # MINDISTANCE 200 # Label only at close range >>> COLOR 0 0 0 >>> TYPE TRUETYPE >>> SIZE 12 >>> FONT "arial" >>> POSITION cc >>> ANGLE AUTO >>> PARTIALS FALSE >>> END #end label >>> >>> END >>> END >> >> >> ------------------------------------------------------------------------ >> From webb.sprague at GMAIL.COM Mon Oct 15 21:18:28 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Mon, 15 Oct 2007 21:18:28 -0700 Subject: FONTSET problem on mac os x - empty rectangles in the image In-Reply-To: <47143972.7020105@swoodbridge.com> Message-ID: On 10/15/07, Stephen Woodbridge wrote: > The problem is that the arial /Library/Fonts/ArialHB.ttf font you are > using is not the same encoding as the shapefile data. Cool, and thanks for your help. But what is this "encoding" and how do I fix it? I am using a postgis table, which I think is AASCII... Is that the encoding of which you speak? Tx W > -Steve > > Webb Sprague wrote: > > I am attaching the file, but this didn't fix the problem. You can see > > the empty boxes. > > > > Thx, though ;) > > > > -W > > > > On 10/15/07, Stephen Woodbridge wrote: > >> Is this a transparent overlay layer? is IMAGECOLOR 0 0 0? if so then > >> that color is transparent and you leters are also transparent. If that > >> is the case change your label COLOR 1 1 1 and it should fix the problem. > >> > >> -Steve > >> > >> Webb Sprague wrote: > >>> Hi again > >>> > >>> I am trying to get labels based on a the "name" field in a postgis > >>> table (of GNIS placenames). Everything works great (the overlay, the > >>> triangle symbol, etc), but in the image, I get empty boxes where the > >>> letters should be (though I get a one-to-one box to letter). If > >>> anyone can help, I would sure appreciate it. (I am running a generic > >>> mapserver from installed by fink.) > >>> > >>> Here is the view definition in sql: > >>> > >>> SELECT placenames.gid AS oid, placenames.name, placenames.desig, > >>> placenames.elev, placenames.the_geom > >>> FROM placenames > >>> WHERE placenames.desig::text = 'airport'::text > >>> ORDER BY placenames.gid; > >>> > >>> Here is the my font file (yes, the files do exist): > >>> > >>> MAPSCRIPT[2]$ cat fonts.list > >>> arial /Library/Fonts/ArialHB.ttf > >>> arial2 /Library/Fonts/Arial > >>> MAPSCRIPT[2]$ > >>> > >>> Here is the layer in my mapfile: > >>> > >>> LAYER > >>> NAME "airports" > >>> CONNECTIONTYPE postgis > >>> CONNECTION "user=wsprague dbname=or_gis host=localhost" > >>> DATA "the_geom from airports_view" > >>> STATUS DEFAULT > >>> TYPE POINT > >>> > >>> LABELITEM "name" > >>> LABELCACHE ON > >>> > >>> CLASS > >>> NAME "LocationSymbol" > >>> SYMBOL "triangle" > >>> COLOR 100 100 82 > >>> > >>> LABEL > >>> # OUTLINECOLOR 255 255 255 > >>> # MINDISTANCE 200 # Label only at close range > >>> COLOR 0 0 0 > >>> TYPE TRUETYPE > >>> SIZE 12 > >>> FONT "arial" > >>> POSITION cc > >>> ANGLE AUTO > >>> PARTIALS FALSE > >>> END #end label > >>> > >>> END > >>> END > >> > >> > >> ------------------------------------------------------------------------ > >> > > From woklist at KYNGCHAOS.COM Mon Oct 15 21:40:23 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Mon, 15 Oct 2007 23:40:23 -0500 Subject: FONTSET problem on mac os x - empty rectangles in the image In-Reply-To: <47143972.7020105@swoodbridge.com> Message-ID: I was thinking it might be an encoding problem. Now that I look closely at the font you are using, that's not a good choice. A lot of the fonts installed in /Library/Fonts by the system are for extra language support (pretty much all the ttf fonts and dfonts). 'HB' is for Hebrew. You should use "Arial" ('arial2' in your fonts.lst). The problem there is that Arial is a Mac font suitcase, and Fink's freetype may not be built properly to handle that, or could be an old freetype - I had problems a while back building my freetype framework so that Mac suitcase support worked, but it was fixed in a later FT version. Even if it does properly support Mac suitcases, MapServer doesn't support font file face indexes, so you won't be able to get the different styles from within the suitcase, just the first font face, which isn't necessarily the plain face. You're better off finding a .ttf Arial (that is, 4 font files for the various styles). On Oct 15, 2007, at 11:09 PM, Stephen Woodbridge wrote: > The problem is that the arial /Library/Fonts/ArialHB.ttf font > you are using is not the same encoding as the shapefile data. > > -Steve > >>> Webb Sprague wrote: >>>> Hi again >>>> >>>> Here is the my font file (yes, the files do exist): >>>> >>>> MAPSCRIPT[2]$ cat fonts.list >>>> arial /Library/Fonts/ArialHB.ttf >>>> arial2 /Library/Fonts/Arial ----- William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy From webb.sprague at GMAIL.COM Mon Oct 15 22:57:49 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Mon, 15 Oct 2007 22:57:49 -0700 Subject: FONTSET problem on mac os x - empty rectangles in the image In-Reply-To: Message-ID: Well, the advice about finding another ttf font led me to install apple fonts through fink ( $fink install applesystemfonts) , then set my font.list to be the following: MAPSCRIPT[1]$ cat fonts.list arial /Library/Fonts/ArialHB.ttf arial2 /Library/Fonts/Arial arial3 /sw/lib/X11/fonts/applettf/Arial.ttf MAPSCRIPT[1]$ and use "arial3". I now have labels on my map! Thanks to all, -W From toomas.aas at RAAD.TARTU.EE Tue Oct 16 00:13:09 2007 From: toomas.aas at RAAD.TARTU.EE (Toomas Aas) Date: Tue, 16 Oct 2007 10:13:09 +0300 Subject: PHP/Mapscript and Zend Optimizer In-Reply-To: <01d401c80f92$a05f6f70$0502a8c0@windoze> Message-ID: bwragg wrote: > Are you running the zend debugger also? I had problems getting the Zend > Optimizer to run with the Zend Debugger but it works fine with > PHP/Mapscript. Let me know if you are running both and I'll post my config > for the Zend stuff. No, I'm not running Zend Debugger. Your offer is highly appreciated, but as I mentioned I already got my problems solved. -- Toomas Aas From marcos at BURKE.ATH.CX Tue Oct 16 01:14:52 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Tue, 16 Oct 2007 10:14:52 +0200 Subject: Time series persistence In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB7A9@s-sp22.pca.state.mn.us> Message-ID: It is all in one slice, with a time dimension. I could replicate the layer with a shifted view. Maybe it is too much work for the db server just to get a pretty effect (but I'll try it anyway :-) Thank you for the idea PS Is it possible to have an animated gif as a marker? El lun, 15-10-2007 a las 08:59 -0500, Fawcett, David escribi?: > If you used one layer for each time slice, and you set the filter for that layer dynamically, you might be able to do something like this. > > For example, you could have three layers, 'current', 'older', and 'old'. If you passed in the filter expression for 'current', you would set it to the latest data. You would do the same with the other two layers, setting them to the older data sets. > > You could then symbolize the older and old layers using transparency or color (fading from color to grey?) to make them appear as though they are fading away. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Marcos S?nchez Provencio > Sent: Monday, October 15, 2007 8:25 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Time series persistence > > > Hello there. > > Is it possible to emulate persistence in a time series? I am showing rays hourly, it would be nice to let the older rays fade away slowly (like a radar ping). > > I am using mapbuilder as the client. > > Thank you in advance for the ideas. From zerosgm at GMAIL.COM Tue Oct 16 01:37:20 2007 From: zerosgm at GMAIL.COM (Fanda) Date: Tue, 16 Oct 2007 01:37:20 -0700 Subject: mapscript point layer zooming Message-ID: Hi all, I am facing really odd problem. I have some line and polygon layers in my mapfile and everything goes fine with them. But there is also one POINT layer and it shows up only in its full extent. If I zoom in or pan the layer disappears whereas the other layers are still visible as expected. There is no max/minscale defined. I am using C# mapscript. The definition of the layer in the mapfile is as follows: LAYER NAME Vrty STATUS ON TYPE POINT DATA "vrty" TOLERANCE 1 CLASS NAME 'vrty' STYLE SYMBOL 'circle' SIZE 20 COLOR 255 0 0 END END PROJECTION "init=epsg:2065" END END Any help would be greatly appreciated, Fanda -- View this message in context: http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13229010 Sent from the Mapserver - User mailing list archive at Nabble.com. From rodrigo.andrade at DIGITRO.COM.BR Tue Oct 16 06:38:58 2007 From: rodrigo.andrade at DIGITRO.COM.BR (Rodrigo Del C. Andrade) Date: Tue, 16 Oct 2007 10:38:58 -0300 Subject: libmapscript.so: wrong ELF class: ELFCLASS64. Java Mapscript woes on AMD64 In-Reply-To: <75b4b93e0710151256t510b94fav9b2fea52f7e93e8f@mail.gmail.com> Message-ID: Hi Umberto, thanks for the reply. Silly me forgot to mention I had already tried with -d64 flag, only to be greeted with a "Running a 64-bit JVM is not supported on this platform.". But all is fine now: I guess a good night asleep jumpstarted the neurons back, 'cause driving to work this morning it hit me: the JVM I am using is 32 bits. So I downloaded the 64bits JDK and lo and behold: it's alive again. Sometimes *obvious* smacks you in the face and you still cant see it. I'll get me coat and leave the building now. Thanks. Rodrigo ps: I am forwarding this to the list for posterity's sake. -- *Rodrigo Del C. Andrade* /Programador/ /SIC - SSE - Solu??es Seguran?a P?blica/ *D?GITRO TECNOLOGIA* *E-mail:* rodrigo.andrade at digitro.com.br *Fone:* +55 48 3281-7314 / +55 48 3281-7000 *Fax:* +55 48 3281-7299 *Site:* www.digitro.com Umberto Nicoletti wrote: > Try to run one of the examples and add this command line option to java: > > -d64 > > Example: > java -d64 -classpath ./:examples/:./mapscript.jar > -Djava.library.path=. DumpShp ../../tests/point.shp > > google is your friend, found this searching for ELFCLASS64 > > http://forum.java.sun.com/thread.jspa?threadID=5072865 > > Umberto > > On 10/15/07, Rodrigo Del C. Andrade wrote: > >> Hello dear list. >> >> I was given a new machine to develop on and I am trying to get Java >> mapscript to run on AMD64, Fedora Core 7 64bits, but I am getting a nasty >> error when I try to 'make test' after compiling JavaMapscript (Mapserver >> 4.1x series, from svn revision 6176. I havent had time to give 5.0 a go yet) >> : >> >> [root at dinamico132 java]# make test >> javac -classpath ./:examples/:./mapscript.jar -d examples/ >> examples/ConnPool.java examples/DrawMap.java examples/DumpShp.java >> examples/MakePoint.java examples/QueryByAttribute.java >> examples/ShapeInfo.java examples/WxSTest.java examples/Metadata.java >> examples/RunTimeBuiltWMSClient.java >> javac -encoding iso-8859-15 -classpath ./:examples/:./mapscript.jar -d >> examples/ examples/QueryByAttributeUnicode.java >> java -classpath ./:examples/:./mapscript.jar -Djava.library.path=. DumpShp >> ../../tests/point.shp >> java.lang.UnsatisfiedLinkError: >> /home/home2/install/mapserver_svn_6176/mapscript/java/libmapscript.so: >> /home2/install/mapserver_svn_6176/mapscript/java/libmapscript.so: >> wrong ELF class: ELFCLASS64 >> make: *** [test] Error 255 >> >> I am compiling mapsserver with >> >> ./configure \ >> --prefix=$MAPSERVER_HOME \ >> --without-pdf \ >> --with-threads \ >> --with-png=/home2/mapserver/libpng \ >> --with-freetype=/home2/mapserver/freetype \ >> --with-gd=/home2/mapserver/gd \ >> --with-geos=/home2/mapserver/geos/bin/geos-config \ >> --with-ogr=/home2/mapserver/gdal/bin/gdal-config \ >> --with-gdal=/home2/mapserver/gdal/bin/gdal-config \ >> --with-proj=/home2/mapserver/proj4 \ >> --with-wfs \ >> --with-wcs \ >> --with-wmsclient \ >> --with-wfsclient \ >> >> after successfully building luibPNG, FreeType, GD, GEOS and GDAL to the >> directories you can see on the configure line above, and I am using java >> 1.6.0. >> I gotta admit I am new to this 64 bits business, but I looked around >> and found references to compiling stuff with a -fPIC flag, so I went back >> and recompiled everything manually adding a -fPIC to the compiler flags in >> every Makefile along the way, but I still got the same error. >> Does anyone got a clue about this? >> >> Thanks! >> >> >> -- >> >> Rodrigo Del C. Andrade >> Programador >> SIC - SSE - Solu??es Seguran?a P?blica >> >> D?GITRO TECNOLOGIA >> E-mail: rodrigo.andrade at digitro.com.br >> Fone: +55 48 3281-7314 / +55 48 3281-7000 >> Fax: +55 48 3281-7299 >> Site: www.digitro.com >> > > > From Tim.Nolte at IPCSWIRELESSINC.COM Tue Oct 16 06:28:45 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Tue, 16 Oct 2007 09:28:45 -0400 Subject: Solaris AGG Compile... In-Reply-To: <4713C034.5060701@umn.edu> Message-ID: OK, so a standard 'make' would work, erroring on CC not being defined. I made the following changes to Makefile.in.SunOS: Changed: CXX = CC To: CXX = gcc Changed: C = cc To: C = gcc Changed: LIB = CC -xar -o To: LIB = gcc -xar -o Then I was able to begin running a 'make' but it dies with the following: gcc: language ar not recognized ... gcc: language ar not recognized Undefined first referenced symbol in file cos agg_arc.o sin agg_arc.o acos agg_arc.o ceil agg_image_filters.o fmod agg_bezier_arc.o main /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o sqrt agg_bezier_arc.o operator new[](unsigned int) agg_bspline.o atan2 agg_curves.o floor ctrl/agg_polygon_ctrl.o vtable for __cxxabiv1::__si_class_type_infoctrl/agg_cbox_ctrl.o operator delete[](void*) agg_bspline.o operator delete(void*) ctrl/agg_cbox_ctrl.o vtable for __cxxabiv1::__class_type_infoctrl/agg_cbox_ctrl.o __gxx_personality_v0 agg_arc.o __cxa_pure_virtual ctrl/agg_cbox_ctrl.o ld: fatal: Symbol referencing errors. No output written to libagg.a collect2: ld returned 1 exit status make[1]: *** [all] Error 1 make[1]: Leaving directory `/usr/local/agg-2.4/src' make: *** [src/libagg.a] Error 2 Thanks. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Trent Erickson [mailto:trente at umn.edu] Sent: Monday, October 15, 2007 3:32 PM To: Nolte, Tim Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... More technical details would be helpful. I can offer my experience although it may not be applicable. I have compiled on Solaris 9 using the GNU make and ld. Be sure you are using GNU ld. The Sun version didn't work for me. -Trent Nolte, Tim wrote: > I'm at the end of my rope here. I'm running up against a deadline and I > can't get AGG compiled on Solaris 10 x86 for the life of me. I'm afraid > I'm going to end up having to go back to GD. I made the mistake of using > HostGIS to setup and interim mapserver while I rebuild the existing one > and decided to go with Solaris as the rest of our servers are running on > it. Anyways, if anyone has successfully compiled AGG on a Solaris box it > would help me out huge! Thanks. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > From jorn at SPACETEC.NO Tue Oct 16 06:38:12 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Tue, 16 Oct 2007 15:38:12 +0200 Subject: Layer doesn't work in 5.0 Message-ID: Hi all, I've just tried to migrate from FWTools1.3.7 / MS 4.9 to FWTools1.3.9 / MS 5.0. The problem is that my PostGIS layer doesn't want to show up in 5.0. My layer conf is below. I've read the migration guide, but can't find the problem. http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRATION_GUIDE.TXT Does anyone else see the problem? cheers J?rn Vegard LAYER NAME "layer_20071005_141040" CONNECTIONTYPE POSTGIS CONNECTION "user=postgres dbname=db host=hostname port=5432" DATA "poly from feature using SRID=4326" TYPE point STATUS ON TRANSPARENCY 0 DEBUG ON CLASS TEXT (oil-[oid]-[acquisition_time]) EXPRESSION ('[timestamp]' == '20071005_141040' AND [threshold] >= 0 AND [threshold] < 100) LABEL FONT arial TYPE TRUETYPE SIZE 8 MINDISTANCE 10000 POSITION UR ANGLE 30 COLOR 0 0 0 END STYLE COLOR 224 64 0 END END PROJECTION "init=epsg:4326" END END From johan.vandewauw at GMAIL.COM Tue Oct 16 06:57:36 2007 From: johan.vandewauw at GMAIL.COM (Johan Van de Wauw) Date: Tue, 16 Oct 2007 15:57:36 +0200 Subject: Solaris AGG Compile... In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A7D2D0@KTWMAIL.ilpcs.com> Message-ID: It's been a while since I've worked with solaris, but you should try this make install CXX=g++ C=gcc AR=gar LD=gld (no need to edit the makefile) gar = gnu ar -> now you are using the one from suns's compiler. Idem for C and C++: make sure you don't mix up the gnu and the sun tools. idem for ld and the other tools. On 10/16/07, Nolte, Tim wrote: > OK, so a standard 'make' would work, erroring on CC not being defined. I > made the following changes to Makefile.in.SunOS: > > Changed: > CXX = CC > To: > CXX = gcc > > Changed: > C = cc > To: > C = gcc > > Changed: > LIB = CC -xar -o > To: > LIB = gcc -xar -o > > Then I was able to begin running a 'make' but it dies with the > following: > > gcc: language ar not recognized > ... > gcc: language ar not recognized > Undefined first referenced > symbol in file > cos agg_arc.o > sin agg_arc.o > acos agg_arc.o > ceil agg_image_filters.o > fmod agg_bezier_arc.o > main > /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o > sqrt agg_bezier_arc.o > operator new[](unsigned int) agg_bspline.o > atan2 agg_curves.o > floor ctrl/agg_polygon_ctrl.o > vtable for __cxxabiv1::__si_class_type_infoctrl/agg_cbox_ctrl.o > operator delete[](void*) agg_bspline.o > operator delete(void*) ctrl/agg_cbox_ctrl.o > vtable for __cxxabiv1::__class_type_infoctrl/agg_cbox_ctrl.o > __gxx_personality_v0 agg_arc.o > __cxa_pure_virtual ctrl/agg_cbox_ctrl.o > ld: fatal: Symbol referencing errors. No output written to > libagg.a > collect2: ld returned 1 exit status > make[1]: *** [all] Error 1 > make[1]: Leaving directory `/usr/local/agg-2.4/src' > make: *** [src/libagg.a] Error 2 > > Thanks. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: Trent Erickson [mailto:trente at umn.edu] > Sent: Monday, October 15, 2007 3:32 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > More technical details would be helpful. I can offer my experience > although it may not be applicable. I have compiled on Solaris 9 using > the GNU make and ld. Be sure you are using GNU ld. The Sun version > didn't work for me. > > -Trent > > Nolte, Tim wrote: > > I'm at the end of my rope here. I'm running up against a deadline and > I > > can't get AGG compiled on Solaris 10 x86 for the life of me. I'm > afraid > > I'm going to end up having to go back to GD. I made the mistake of > using > > HostGIS to setup and interim mapserver while I rebuild the existing > one > > and decided to go with Solaris as the rest of our servers are running > on > > it. Anyways, if anyone has successfully compiled AGG on a Solaris box > it > > would help me out huge! Thanks. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Associate Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > > > > From woodbri at SWOODBRIDGE.COM Tue Oct 16 07:01:36 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 16 Oct 2007 10:01:36 -0400 Subject: Solaris AGG Compile... In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A7D2D0@KTWMAIL.ilpcs.com> Message-ID: Nolte, Tim wrote: > OK, so a standard 'make' would work, erroring on CC not being defined. I > made the following changes to Makefile.in.SunOS: > > Changed: > CXX = CC > To: > CXX = gcc > > Changed: > C = cc > To: > C = gcc > > Changed: > LIB = CC -xar -o > To: > Tim, You probably need to make sure you are using all the gnu tools and not mix and matching the Sun and GNU tools. so try gmake instead of make. You might have issues with ld also It has been too long to remember what the differences are between the two. -Steve W > > Then I was able to begin running a 'make' but it dies with the > following: > > gcc: language ar not recognized > ... > gcc: language ar not recognized > Undefined first referenced > symbol in file > cos agg_arc.o > sin agg_arc.o > acos agg_arc.o > ceil agg_image_filters.o > fmod agg_bezier_arc.o > main > /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o > sqrt agg_bezier_arc.o > operator new[](unsigned int) agg_bspline.o > atan2 agg_curves.o > floor ctrl/agg_polygon_ctrl.o > vtable for __cxxabiv1::__si_class_type_infoctrl/agg_cbox_ctrl.o > operator delete[](void*) agg_bspline.o > operator delete(void*) ctrl/agg_cbox_ctrl.o > vtable for __cxxabiv1::__class_type_infoctrl/agg_cbox_ctrl.o > __gxx_personality_v0 agg_arc.o > __cxa_pure_virtual ctrl/agg_cbox_ctrl.o > ld: fatal: Symbol referencing errors. No output written to > libagg.a > collect2: ld returned 1 exit status > make[1]: *** [all] Error 1 > make[1]: Leaving directory `/usr/local/agg-2.4/src' > make: *** [src/libagg.a] Error 2 > > Thanks. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: Trent Erickson [mailto:trente at umn.edu] > Sent: Monday, October 15, 2007 3:32 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > More technical details would be helpful. I can offer my experience > although it may not be applicable. I have compiled on Solaris 9 using > the GNU make and ld. Be sure you are using GNU ld. The Sun version > didn't work for me. > > -Trent > > Nolte, Tim wrote: >> I'm at the end of my rope here. I'm running up against a deadline and > I >> can't get AGG compiled on Solaris 10 x86 for the life of me. I'm > afraid >> I'm going to end up having to go back to GD. I made the mistake of > using >> HostGIS to setup and interim mapserver while I rebuild the existing > one >> and decided to go with Solaris as the rest of our servers are running > on >> it. Anyways, if anyone has successfully compiled AGG on a Solaris box > it >> would help me out huge! Thanks. >> >> - Tim >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> >> From andyc at COMSINE.CO.UK Tue Oct 16 07:35:09 2007 From: andyc at COMSINE.CO.UK (Andrew Chamberlain) Date: Tue, 16 Oct 2007 15:35:09 +0100 Subject: SHP2IMG Compilation Error Message-ID: Hi All, I'm having trouble compiling mapserver. I think I'm almost there, but the following problem has had me stumped. It's a series of undefined references when shp2img tries to get linked: /usr/lib/atlas/liblapack.so.3: undefined reference to `ATL_sspr2' /usr/lib/atlas/liblapack.so.3: undefined reference to `ATL_chbmv' ... (~ 130 functions) /usr/lib/atlas/liblapack.so.3: undefined reference to `ATL_cgemv' Does this look familiar to anyone? What am I missing that lapack requires? Any suggestions would be very welcome. Andy From Tim.Nolte at IPCSWIRELESSINC.COM Tue Oct 16 07:56:41 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Tue, 16 Oct 2007 10:56:41 -0400 Subject: Solaris AGG Compile... In-Reply-To: <791a12030710160657j2d4ff963kb63c15c7ee028621@mail.gmail.com> Message-ID: OK, well here's my setup. I have the following sunfreeware packages installed: gcc-3.4.6-sol10-x86-local make-3.81-sol10-x86-local automake-1.10-sol10-x86-local libtool-1.5.24-sol10-x86-local I've set my PATH environment to use '/usr/local/bin' before '/usr/ccs/bin'. And my g++/gcc/make/ar/ld are all GNU when I run 'type' on them. I did notice that gcc reports (Configured with: ../configure --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared --enable-languages=c,c++,f77) so I'm not sure if this would be an issue. Thanks for any other thoughts. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Johan Van de Wauw [mailto:johan.vandewauw at gmail.com] Sent: Tuesday, October 16, 2007 9:58 AM To: Nolte, Tim Cc: MAPSERVER-USERS at lists.umn.edu Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... It's been a while since I've worked with solaris, but you should try this make install CXX=g++ C=gcc AR=gar LD=gld (no need to edit the makefile) gar = gnu ar -> now you are using the one from suns's compiler. Idem for C and C++: make sure you don't mix up the gnu and the sun tools. idem for ld and the other tools. On 10/16/07, Nolte, Tim wrote: > OK, so a standard 'make' would work, erroring on CC not being defined. I > made the following changes to Makefile.in.SunOS: > > Changed: > CXX = CC > To: > CXX = gcc > > Changed: > C = cc > To: > C = gcc > > Changed: > LIB = CC -xar -o > To: > LIB = gcc -xar -o > > Then I was able to begin running a 'make' but it dies with the > following: > > gcc: language ar not recognized > ... > gcc: language ar not recognized > Undefined first referenced > symbol in file > cos agg_arc.o > sin agg_arc.o > acos agg_arc.o > ceil agg_image_filters.o > fmod agg_bezier_arc.o > main > /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o > sqrt agg_bezier_arc.o > operator new[](unsigned int) agg_bspline.o > atan2 agg_curves.o > floor ctrl/agg_polygon_ctrl.o > vtable for __cxxabiv1::__si_class_type_infoctrl/agg_cbox_ctrl.o > operator delete[](void*) agg_bspline.o > operator delete(void*) ctrl/agg_cbox_ctrl.o > vtable for __cxxabiv1::__class_type_infoctrl/agg_cbox_ctrl.o > __gxx_personality_v0 agg_arc.o > __cxa_pure_virtual ctrl/agg_cbox_ctrl.o > ld: fatal: Symbol referencing errors. No output written to > libagg.a > collect2: ld returned 1 exit status > make[1]: *** [all] Error 1 > make[1]: Leaving directory `/usr/local/agg-2.4/src' > make: *** [src/libagg.a] Error 2 > > Thanks. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: Trent Erickson [mailto:trente at umn.edu] > Sent: Monday, October 15, 2007 3:32 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > More technical details would be helpful. I can offer my experience > although it may not be applicable. I have compiled on Solaris 9 using > the GNU make and ld. Be sure you are using GNU ld. The Sun version > didn't work for me. > > -Trent > > Nolte, Tim wrote: > > I'm at the end of my rope here. I'm running up against a deadline and > I > > can't get AGG compiled on Solaris 10 x86 for the life of me. I'm > afraid > > I'm going to end up having to go back to GD. I made the mistake of > using > > HostGIS to setup and interim mapserver while I rebuild the existing > one > > and decided to go with Solaris as the rest of our servers are running > on > > it. Anyways, if anyone has successfully compiled AGG on a Solaris box > it > > would help me out huge! Thanks. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Associate Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > > > > From bea at IXSEA.COM Tue Oct 16 10:21:03 2007 From: bea at IXSEA.COM (=?iso-8859-1?Q?Beno=EEt_Andrieu?=) Date: Tue, 16 Oct 2007 19:21:03 +0200 Subject: Help on raster optimization In-Reply-To: <4BF377919225F449BB097CB76FFE9BC8019884F1@ptolemy.topozone.com> Message-ID: Thanks for anyone's answer, I totally agree with your answers concerning the fact that the less files there is, the better the performance is. So creating a new layer will help in the future. Why we are not doing this at this time is that we have a product that is generating tiff files in real time, those tiff files are quite small (300m * 50m) and after generation they are automatically referenced in a shape file. So the more we are generating little images the more the perception of a real time system should be present. In a near future we will generate an overview layer in order to maximize the performance but actually we only have one layer. Actually I was trying to look at optimizing the performance but I think that without this overview I won't be able to make significant improvements without cutting down a lot of features in GDAL. So I won't look more at my actual problem. For information, from what I see in my logs, GDAL is spending quite as much time at loading the GTiff than opening the csv files I mentioned. Thanks again for your time. Beno?t ----- Original Message ----- From: "Ed McNierney" To: "Benoit Andrieu" ; Sent: Monday, October 15, 2007 10:38 PM Subject: RE: [UMN_MAPSERVER-USERS] Help on raster optimization Benoit - Thanks for such a good description of your problem! I want to point out that the chief slowdown you will see in a situation like this is the increase in the number of GeoTIFF files being opened and read to serve one request. Your internal overviews obviously get smaller and smaller at each zoom level. If you have a 1024x1024 pixel image, the 32x overview is really a 32x32 pixel little image. If your client requests a 1024x1024 output image, you will need to open and read 1024 individual GeoTIFFs! Many users overlook this aspect of overviews. At a certain point your response time is dominated by the number of files you need to seek to and open. While those other files may be annoying, I doubt they contribute much to the problem. Yes, you can improve things by cleaning them up. But I think your biggest win would be to combine your small-scale GeoTIFF overviews into larger, mosaiced images, and use a GROUP layer with MINSCALE/MAXSCALE settings to select the right LAYER. The random seek time to a new file is the slowest thing your server does. Minimizing the number of files used to serve a request is MUCH more valuable than minimizing the size of those files. Reading 10 100K files is much faster than reading 100 10K files. If you are in the habit of serving data in the lat/lon format WorldWind requires, you would do well to create a shadow copy of your images, all reprojected to the desired output projection, and only advertise that one projection in your service. - Ed Ed McNierney Chief Mapmaker Demand Media / TopoZone.com 73 Princeton Street, Suite 305 North Chelmsford, MA 01863 ed at topozone.com Phone: +1 (978) 251-4242 Fax: +1 (978) 251-1396 -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Benoit Andrieu Sent: Monday, October 15, 2007 4:26 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Help on raster optimization Hi all ! We do have a problem on using MapServer on raster datas. Our datasets are made of multiple GeoTiff files. Each Tiff has his own overviews (2 4 8 16 32). We do not have an overview level. Our Tiff are projected in UTM xx depending on the location on earth. Our Tiff have coordinates in them, they are true GeoTiff files ; however they have tfw files for compatibility with third-party softwares. We have an high performance degradation when serving WMS clients as WorldWind and an home-made client ; more precisely, the degradation is happening on zoomed out requests. The cause seems to be the amount of data required to be loaded by mapserver for the rendering of one single request. Worldwind is requesting datas in latlong projection whereas our homemade client is requesting in UTM projection. Our server is an octo-core with 8Gb of RAM, we are using Win2003 Server and Mapserver comes from FWTools 1.3.2 (Mapserver 4.x then), it is hosted by an IIS 6.0 in CGI mode (not FastCGI). I set the GDAL_CACHEMAX to 200. I monitored the mapserv.exe behaviour in the task manager to see what was happening and I saw that mapserver was loading a huge amount of data (between 50Mb and 300Mb of data depending on the requests/datasets). I then monitored the mapserv.exe behaviour in the holy Procmon and there I saw some interesting things. First, the epsg file loaded by GDAL is loaded multiple times near the start of the process, I think it is loaded each time an epsg code is mentionned in the map file. As we are serving UTM, their epsg code (32631 for instance) are lying at the end of the file, so Mapserver was reading the file looking for those codes. I, then, moved those definitions to the beginning of the file, just after the latlong definition (epsg 4326). I launched the requests, and saw that the amount of datas being read was much lower, but the end-to-end was slow again. Then, I moved forward, in my procmon report and there I saw IT !! Mapserver is loading for each of our tiffs files, 6 other files !! Those files are : pcs.csv = 400 Kb, projop_wparm.csv = 165 Kb, gcs.csv = 35 Kb, unit_of_measure.csv = 20 Kb, datum.csv = 70 Kb, ellipsoid.csv = 10 Kb So, from what I see, for serving my request, mapserver is loading approximatively 700Kb of "external" datas and around 50/100 Kb of my 1Mb Tiff files. In order to serve a zoomed out request, I have 26 Tiff files. So, finally, mapserver is loading 20 Mo. So, here is my question : how could I make Mapserv to not load those files again and again... ??? Thanks in advance !! Beno?t Andrieu PS : if anyone is interested, I can send my log files from Procmon to show which files are accessed. =============================================================================================================================================================================== My test requests : http://acquisitiontest/Cgi/bin/mapserv.exe?&request=GetMap&layers=Sonar_FRONT,Sonar_STARBOARD,Sonar_PORT&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&map=C:\content\surveytemplate\LigneSudMoins600\MAP_62.map&srs=EPSG:32631&width=512&height=512&bbox=715102,4783144.81842247,716996,4783869.89482688&format=image/gif&version=1.1.1&styles= http://acquisitiontest/Cgi/bin/mapserv.exe?&request=GetMap&layers=Sonar_FRONT,Sonar_STARBOARD,Sonar_PORT&TRANSPARENT=TRUE&BGCOLOR=0xFFFFFF&map=C:\content\surveytemplate\LigneSudMoins600\MAP_62.map&srs=EPSG:4326&width=512&height=512&bbox=5.64654588699341,43.1704597473145,5.66959381103516,43.1764526367188&format=image/gif&version=1.1.1&styles= =============================================================================================================================================================================== My map file : #This Map Was Generated By Isdas do not modifie #Generaded : 10/15/2007 1:24:22 PM MAP Name"LigneSudMoins600" CONFIG "PROJ_LIB" "c:\Inetpub\wwwroot\Cgi\proj_lib\" EXTENT 5.64654588701225 43.1704597472872 5.66959381105485 43.17645263669 SIZE 512 512 IMAGETYPE PNG24 IMAGECOLOR 255 255 255 IMAGECOLOR 255 255 255 UNITS METERS OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" EXTENSION PNG IMAGEMODE RGBA TRANSPARENT ON END PROJECTION "init=epsg:4326" END WEB IMAGEPATH "c:\ms_tmp\" IMAGEURL "http://ACQUISITIONTEST/ms_tmp" METADATA "wms_title" "LigneSudMoins600" "wms_srs" "epsg:4326 epsg:32631" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END END LAYER NAME "Sonar" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_PORT" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_PORT.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_PORT" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_STARBOARD" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_STARBOARD.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_STARBOARD" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END LAYER NAME "Sonar_FRONT" STATUS ON TILEINDEX "C:\content\surveytemplate\LigneSudMoins600\IDX_PIC_SS_65_FRONT.shp" TILEITEM "location" TYPE RASTER UNITS METERS METADATA "wms_title" "Sonar_FRONT" "wms_srs" "epsg:32631 epsg:27563 epsg:32631 epsg:32632 epsg:32633 epsg:32635" "wms_onlineresource" "http://ACQUISITIONTEST/WMS/Default.aspx?MapId=123" END PROJECTION "init=epsg:32631" END OFFSITE 0 0 0 END #~~~ END From szekerest at GMAIL.COM Tue Oct 16 10:56:47 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Tue, 16 Oct 2007 19:56:47 +0200 Subject: mapscript point layer zooming In-Reply-To: <13229010.post@talk.nabble.com> Message-ID: Hi, It would be helpful to post the entire mapfile you have. Are you using an inline layer as the point layer? Which projection you use with your map? What is the mapserver version? Best regards, Tamas 2007/10/16, Fanda : > Hi all, > I am facing really odd problem. I have some line and polygon layers in my > mapfile and everything goes fine with them. But there is also one POINT > layer and it shows up only in its full extent. If I zoom in or pan the layer > disappears whereas the other layers are still visible as expected. There is > no max/minscale defined. I am using C# mapscript. The definition of the > layer in the mapfile is as follows: > > LAYER > NAME Vrty > STATUS ON > TYPE POINT > DATA "vrty" > TOLERANCE 1 > > CLASS > NAME 'vrty' > STYLE > SYMBOL 'circle' > SIZE 20 > COLOR 255 0 0 > END > END > > PROJECTION > "init=epsg:2065" > END > END > > Any help would be greatly appreciated, > Fanda > -- > View this message in context: http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13229010 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From mhungc at GMAIL.COM Tue Oct 16 11:41:30 2007 From: mhungc at GMAIL.COM (mhungc) Date: Tue, 16 Oct 2007 11:41:30 -0700 Subject: I have a problem with ZoomOut/ phpMapscript MAXSCALE Message-ID: Hi, I have a problem with zoomout using phpMpscript. When i make a zoomout after make a zoomin, it show more far than the beginning. Since I do in order that this does not happen? I defined the mapfile like this: MAP NAME "STANDARD" STATUS ON EXTENT -73.512776 0.635665 -59.577208 12.207839 IMAGECOLOR 255 255 255 IMAGETYPE png SHAPEPATH ...." UNITS meters SYMBOLSET ...." FONTSET ...." #PROJECTION # "proj=longlat" # "ellps=WGS84" # "datum=WGS84" #END ##################################################################### # Objeto Web ##################################################################### WEB IMAGEPATH ...." IMAGEURL ...." LOG ..." MINSCALE 0.02 MAXSCALE 59.9689773803 END however, that not respect the MAXSCALE only if i make the zoomout when it start, when i make another function and after execute zoomout it not happen. And another question is: how mapserver calculate the scale? Because for this problem i supposed that the map extend have a relation with the scale. -- View this message in context: http://www.nabble.com/I-have-a-problem-with-ZoomOut--phpMapscript-MAXSCALE-tf4635970.html#a13239711 Sent from the Mapserver - User mailing list archive at Nabble.com. From coolfrenz85 at YAHOO.COM Tue Oct 16 12:31:56 2007 From: coolfrenz85 at YAHOO.COM (cool frenz) Date: Tue, 16 Oct 2007 12:31:56 -0700 Subject: QueryByPoint in php mapscript - 0 results Message-ID: Hi, I am trying to perform querybypoint but have been unable to get any result. The procedure that i am following: 1) Get clicked pixel points. 2) convert to georef coordinates. (Got them correct) 3) Querying the layer with this point. 4) Checking for results : Found none Code Snippet: $mypoint =ms_newPointObj(); $mypoint->setXY(17.94031626 , 79.29237528); // To check i directly put a point though i tried with clicked point as well $check=@$map->queryByPoint($mypoint,MS_MULTIPLE, 20); $layer1=$map->getlayerbyname("cotton"); if( $check == MS_SUCCESS) { $count_results = $layer1->getNumResults(); print "NO = ".$count_results." "; } Map file snippet: CLASS NAME 'cotton' TEMPLATE "bogus.html" STYLE SYMBOL 'circle' SIZE 3 COLOR 255 0 0 END END PROJECTION "init=epsg:4326" END Earlier i wasnt using any template then i used a dummy template (completely blank) to make it work but still it gave no result. Please let me know where i am mistaken ? I just want to know the coordinates of points nearby clicked point on map.(But first i should get some results!) PS: I am using mysql as datasource. Thanks and Regards, Piyush Jain --------------------------------- Pinpoint customers who are looking for what you sell. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dondrake at GMAIL.COM Tue Oct 16 16:28:09 2007 From: dondrake at GMAIL.COM (Don Drake) Date: Tue, 16 Oct 2007 18:28:09 -0500 Subject: Color coding from two data sources Message-ID: Here's my scenario, I have shapefiles containing polygons of zipcodes. I have a table in Postgres that has a zip code with data that I would like to thematically map. I am not interested in loading the zipcodes into PostGIS if I don't have to. I am using PHP/Mapscript, and I was wondering if there is a way to merge the Postgres data with the shapefile layer on a map? Thanks. -Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From support at BIZEASSET.COM.AU Tue Oct 16 16:25:27 2007 From: support at BIZEASSET.COM.AU (Hayden Fisher) Date: Wed, 17 Oct 2007 09:25:27 +1000 Subject: [MI-L] Re: MapServer, IIS and ASP Message-ID: Thanks David, found the problem "=" symbol should have been "eq" Regards, Hayden ________________________________ From: Fawcett, David [mailto:David.Fawcett at state.mn.us] Sent: Tuesday, 16 October 2007 12:06 AM To: Hayden Fisher; MAPSERVER-USERS at lists.umn.edu Subject: RE: [UMN_MAPSERVER-USERS] [MI-L] Re: MapServer, IIS and ASP Hayden, What do you mean by 'it is not working'? It is a little tough to help you with such general symptoms. Another thing to try: If your column Assettype is a string, I don't think that your expression is correctly formed. If it is a string, you also need to quote the column name. Try something like: EXPRESSION ('[Assettype]'="Unknown") David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Hayden Fisher Sent: Thursday, October 11, 2007 11:12 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] [MI-L] Re: MapServer, IIS and ASP Hi All, Have MapServer MapScript running! I have MapInfo tables with DBF data files. I am now trying to place different symbology for each asset type. I have placed the layer portion of my MapFile below. This is what I've tried so far, could someone take a look, as it is not working. Also polygons on top of polygons, is there a way to make it so you can see both? LAYER NAME "wsregn" STATUS default TYPE polygon MINSCALE 0.1 MAXSCALE 50000 CONNECTIONTYPE OGR CONNECTION "C:\Inetpub\wwwroot\biz_e_asset_new\AMS_Final\WS\REGIONS\CORE\wsregn.tab " PROJECTION auto END CLASSITEM "assettype" CLASS EXPRESSION ([Assettype]="Unknown") STYLE COLOR 100 0 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Building") STYLE COLOR 0 100 100 OUTLINECOLOR 0 0 100 SYMBOL 0 END END CLASS EXPRESSION ([Assettype]="Land") STYLE COLOR 100 100 0 OUTLINECOLOR 0 0 100 SYMBOL 0 END END END Regards, Hayden Fisher -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.leslie at LISASOFT.COM Tue Oct 16 16:44:30 2007 From: mark.leslie at LISASOFT.COM (Mark Leslie) Date: Wed, 17 Oct 2007 09:44:30 +1000 Subject: Color coding from two data sources In-Reply-To: <6c21003b0710161628xf350575n95dc2b29d27dda8f@mail.gmail.com> Message-ID: Don Drake wrote: > Here's my scenario, I have shapefiles containing polygons of zipcodes. I > have a table in Postgres that has a zip code with data that I would like to > thematically map. I am not interested in loading the zipcodes into PostGIS > if I don't have to. I am using PHP/Mapscript, and I was wondering if there > is a way to merge the Postgres data with the shapefile layer on a map? > > Thanks. > > -Don > That depends what you mean by 'merge'. If you want to display both in the same layer, you can come close by defining two layers in the same group (see the GROUP item at http://mapserver.gis.umn.edu/docs/reference/mapfile/layer). If you want to join the two sources together, Jeff has a nice example in the reference docs (http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-2-join-from-shp-file-to-postgresql-table). If I've missed the point entirely, then I'll need some more details about what you're trying to end up with. Mark Leslie LISAsoft www.lisasoft.com From Jacob.Delfos at MAUNSELL.COM Tue Oct 16 18:07:02 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Wed, 17 Oct 2007 09:07:02 +0800 Subject: Layer doesn't work in 5.0 In-Reply-To: <200710161538.13106.jorn@spacetec.no> Message-ID: Hi J?rn, The only thing I noticed (which has nothing to do with the migrating) is that your transparency is set to 0. Because in Mapserver the transparency actually means "opacity", it means your layer is invisible. I do not believe that this is different in version 5 (although the keyword "opacity" has been added). Try omitting that value, or set to 100. Regards, Jacob ? -----Original Message----- ? From: UMN MapServer Users List ? [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of J?rn Vegard R?snes ? Sent: 16 October 2007 21:38 ? To: MAPSERVER-USERS at LISTS.UMN.EDU ? Subject: [UMN_MAPSERVER-USERS] Layer doesn't work in 5.0 ? ? Hi all, ? ? I've just tried to migrate from FWTools1.3.7 / MS 4.9 to ? FWTools1.3.9 / MS ? 5.0. ? The problem is that my PostGIS layer doesn't want to show up in 5.0. ? My layer conf is below. ? I've read the migration guide, but can't find the problem. ? http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/ma ? pserver/MIGRATION_GUIDE.TXT ? ? Does anyone else see the problem? ? ? cheers ? J?rn Vegard ? ? ? LAYER ? NAME "layer_20071005_141040" ? CONNECTIONTYPE POSTGIS ? CONNECTION "user=postgres dbname=db host=hostname port=5432" ? DATA "poly from feature using SRID=4326" ? TYPE point ? STATUS ON ? TRANSPARENCY 0 ? DEBUG ON ? CLASS ? TEXT (oil-[oid]-[acquisition_time]) ? EXPRESSION ('[timestamp]' == '20071005_141040' AND ? [threshold] >= 0 ? AND [threshold] < 100) ? LABEL ? FONT arial ? TYPE TRUETYPE ? SIZE 8 ? MINDISTANCE 10000 ? POSITION UR ? ANGLE 30 ? COLOR 0 0 0 ? END ? STYLE ? COLOR 224 64 0 ? END ? END ? PROJECTION ? "init=epsg:4326" ? END ? END ? This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From trente at UMN.EDU Tue Oct 16 18:45:17 2007 From: trente at UMN.EDU (Trent Erickson) Date: Tue, 16 Oct 2007 20:45:17 -0500 Subject: Solaris AGG Compile... In-Reply-To: <1532456BD081F146A176FB6929E6B0D1A7D309@KTWMAIL.ilpcs.com> Message-ID: The sunfreeware gcc package is compiled with --with-ld=/usr/ccs/bin/ld so it can be hard to get around it. (you can see this by running g++ -v) The sun ld version did not want to compile agg for me. I ended up renaming /usr/ccs/bin/ld to /usr/ccs/bin/ld-off I then put it back after the compile. This of course requires root access. It is not very elegant but it worked. If anyone has any other suggestions I'd love to know how to force the proper ld with resorting to this. It just plain ignored the makefile and environment settings. -Trent Nolte, Tim wrote: > OK, well here's my setup. I have the following sunfreeware packages > installed: > > gcc-3.4.6-sol10-x86-local > make-3.81-sol10-x86-local > automake-1.10-sol10-x86-local > libtool-1.5.24-sol10-x86-local > > I've set my PATH environment to use '/usr/local/bin' before > '/usr/ccs/bin'. And my g++/gcc/make/ar/ld are all GNU when I run 'type' > on them. I did notice that gcc reports (Configured with: ../configure > --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared > --enable-languages=c,c++,f77) so I'm not sure if this would be an issue. > Thanks for any other thoughts. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > > > -----Original Message----- > From: Johan Van de Wauw [mailto:johan.vandewauw at gmail.com] > Sent: Tuesday, October 16, 2007 9:58 AM > To: Nolte, Tim > Cc: MAPSERVER-USERS at lists.umn.edu > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > It's been a while since I've worked with solaris, but you should try > this > > make install CXX=g++ C=gcc AR=gar LD=gld > > (no need to edit the makefile) > > gar = gnu ar -> now you are using the one from suns's compiler. Idem > for C and C++: make sure you don't mix up the gnu and the sun tools. > idem for ld and the other tools. > > > On 10/16/07, Nolte, Tim wrote: > >> OK, so a standard 'make' would work, erroring on CC not being defined. >> > I > >> made the following changes to Makefile.in.SunOS: >> >> Changed: >> CXX = CC >> To: >> CXX = gcc >> >> Changed: >> C = cc >> To: >> C = gcc >> >> Changed: >> LIB = CC -xar -o >> To: >> LIB = gcc -xar -o >> >> Then I was able to begin running a 'make' but it dies with the >> following: >> >> gcc: language ar not recognized >> ... >> gcc: language ar not recognized >> Undefined first referenced >> symbol in file >> cos agg_arc.o >> sin agg_arc.o >> acos agg_arc.o >> ceil agg_image_filters.o >> fmod agg_bezier_arc.o >> main >> /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o >> sqrt agg_bezier_arc.o >> operator new[](unsigned int) agg_bspline.o >> atan2 agg_curves.o >> floor ctrl/agg_polygon_ctrl.o >> vtable for >> > __cxxabiv1::__si_class_type_infoctrl/agg_cbox_ctrl.o > >> operator delete[](void*) agg_bspline.o >> operator delete(void*) ctrl/agg_cbox_ctrl.o >> vtable for __cxxabiv1::__class_type_infoctrl/agg_cbox_ctrl.o >> __gxx_personality_v0 agg_arc.o >> __cxa_pure_virtual ctrl/agg_cbox_ctrl.o >> ld: fatal: Symbol referencing errors. No output written to >> libagg.a >> collect2: ld returned 1 exit status >> make[1]: *** [all] Error 1 >> make[1]: Leaving directory `/usr/local/agg-2.4/src' >> make: *** [src/libagg.a] Error 2 >> >> Thanks. >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> -----Original Message----- >> From: Trent Erickson [mailto:trente at umn.edu] >> Sent: Monday, October 15, 2007 3:32 PM >> To: Nolte, Tim >> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... >> >> More technical details would be helpful. I can offer my experience >> although it may not be applicable. I have compiled on Solaris 9 using >> the GNU make and ld. Be sure you are using GNU ld. The Sun version >> didn't work for me. >> >> -Trent >> >> Nolte, Tim wrote: >> >>> I'm at the end of my rope here. I'm running up against a deadline >>> > and > >> I >> >>> can't get AGG compiled on Solaris 10 x86 for the life of me. I'm >>> >> afraid >> >>> I'm going to end up having to go back to GD. I made the mistake of >>> >> using >> >>> HostGIS to setup and interim mapserver while I rebuild the existing >>> >> one >> >>> and decided to go with Solaris as the rest of our servers are >>> > running > >> on >> >>> it. Anyways, if anyone has successfully compiled AGG on a Solaris >>> > box > >> it >> >>> would help me out huge! Thanks. >>> >>> - Tim >>> >>> ---- >>> Timothy J Nolte - tnolte at ilpcs.com >>> Associate Network Planning Engineer >>> >>> iPCS Wireless, Inc. >>> 4717 Broadmoor Ave, Suite G >>> Kentwood, MI 49512 >>> >>> Office: 616-656-5163 >>> PCS: 616-706-2438 >>> Fax: 616-554-6484 >>> Web: www.ipcswirelessinc.com >>> >>> >>> > > From woodbri at SWOODBRIDGE.COM Tue Oct 16 19:13:15 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Tue, 16 Oct 2007 22:13:15 -0400 Subject: Solaris AGG Compile... In-Reply-To: <4715692D.3060104@umn.edu> Message-ID: A while back I open the following bug http://trac.osgeo.org/mapserver/ticket/2215 on build issues with AGG for the Linux platform, and other added to the bug and it was used to fix the issues before 5.0 was released. I think it would be appropriate if you did the same around the Solaris build issues. If you doc the issues and workarounds it will help others and it might lead to some changes in the mapserver build process to simplify stuff. Then again these might all be AGG issues, but having a single reference doc will help everyone. -Steve W. Trent Erickson wrote: > The sunfreeware gcc package is compiled with --with-ld=/usr/ccs/bin/ld > so it can be hard to get around it. (you can see this by running g++ -v) > The sun ld version did not want to compile agg for me. I ended up > renaming /usr/ccs/bin/ld to /usr/ccs/bin/ld-off I then put it back > after the compile. This of course requires root access. > > It is not very elegant but it worked. If anyone has any other > suggestions I'd love to know how to force the proper ld with resorting > to this. It just plain ignored the makefile and environment settings. > > -Trent > > Nolte, Tim wrote: >> OK, well here's my setup. I have the following sunfreeware packages >> installed: >> >> gcc-3.4.6-sol10-x86-local >> make-3.81-sol10-x86-local >> automake-1.10-sol10-x86-local >> libtool-1.5.24-sol10-x86-local >> >> I've set my PATH environment to use '/usr/local/bin' before >> '/usr/ccs/bin'. And my g++/gcc/make/ar/ld are all GNU when I run 'type' >> on them. I did notice that gcc reports (Configured with: ../configure >> --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared >> --enable-languages=c,c++,f77) so I'm not sure if this would be an issue. >> Thanks for any other thoughts. >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> >> >> -----Original Message----- >> From: Johan Van de Wauw [mailto:johan.vandewauw at gmail.com] Sent: >> Tuesday, October 16, 2007 9:58 AM >> To: Nolte, Tim >> Cc: MAPSERVER-USERS at lists.umn.edu >> Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... >> >> It's been a while since I've worked with solaris, but you should try >> this >> >> make install CXX=g++ C=gcc AR=gar LD=gld >> >> (no need to edit the makefile) >> >> gar = gnu ar -> now you are using the one from suns's compiler. Idem >> for C and C++: make sure you don't mix up the gnu and the sun tools. >> idem for ld and the other tools. >> >> >> On 10/16/07, Nolte, Tim wrote: >> >>> OK, so a standard 'make' would work, erroring on CC not being defined. >>> >> I >> >>> made the following changes to Makefile.in.SunOS: >>> >>> Changed: >>> CXX = CC >>> To: >>> CXX = gcc >>> >>> Changed: >>> C = cc >>> To: >>> C = gcc >>> >>> Changed: >>> LIB = CC -xar -o >>> To: >>> LIB = gcc -xar -o >>> >>> Then I was able to begin running a 'make' but it dies with the >>> following: >>> >>> gcc: language ar not recognized >>> ... >>> gcc: language ar not recognized >>> Undefined first referenced >>> symbol in file >>> cos agg_arc.o >>> sin agg_arc.o >>> acos agg_arc.o >>> ceil agg_image_filters.o >>> fmod agg_bezier_arc.o >>> main >>> /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o >>> sqrt agg_bezier_arc.o >>> operator new[](unsigned int) agg_bspline.o >>> atan2 agg_curves.o >>> floor ctrl/agg_polygon_ctrl.o >>> vtable for >>> >> __cxxabiv1::__si_class_type_infoctrl/agg_cbox_ctrl.o >> >>> operator delete[](void*) agg_bspline.o >>> operator delete(void*) ctrl/agg_cbox_ctrl.o >>> vtable for __cxxabiv1::__class_type_infoctrl/agg_cbox_ctrl.o >>> __gxx_personality_v0 agg_arc.o >>> __cxa_pure_virtual ctrl/agg_cbox_ctrl.o >>> ld: fatal: Symbol referencing errors. No output written to >>> libagg.a >>> collect2: ld returned 1 exit status >>> make[1]: *** [all] Error 1 >>> make[1]: Leaving directory `/usr/local/agg-2.4/src' >>> make: *** [src/libagg.a] Error 2 >>> >>> Thanks. >>> >>> ---- >>> Timothy J Nolte - tnolte at ilpcs.com >>> Associate Network Planning Engineer >>> >>> iPCS Wireless, Inc. >>> 4717 Broadmoor Ave, Suite G >>> Kentwood, MI 49512 >>> >>> Office: 616-656-5163 >>> PCS: 616-706-2438 >>> Fax: 616-554-6484 >>> Web: www.ipcswirelessinc.com >>> -----Original Message----- >>> From: Trent Erickson [mailto:trente at umn.edu] >>> Sent: Monday, October 15, 2007 3:32 PM >>> To: Nolte, Tim >>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... >>> >>> More technical details would be helpful. I can offer my experience >>> although it may not be applicable. I have compiled on Solaris 9 using >>> the GNU make and ld. Be sure you are using GNU ld. The Sun version >>> didn't work for me. >>> >>> -Trent >>> >>> Nolte, Tim wrote: >>> >>>> I'm at the end of my rope here. I'm running up against a deadline >>>> >> and >> >>> I >>> >>>> can't get AGG compiled on Solaris 10 x86 for the life of me. I'm >>>> >>> afraid >>> >>>> I'm going to end up having to go back to GD. I made the mistake of >>>> >>> using >>> >>>> HostGIS to setup and interim mapserver while I rebuild the existing >>>> >>> one >>> >>>> and decided to go with Solaris as the rest of our servers are >>>> >> running >> >>> on >>> >>>> it. Anyways, if anyone has successfully compiled AGG on a Solaris >>>> >> box >> >>> it >>> >>>> would help me out huge! Thanks. >>>> >>>> - Tim >>>> >>>> ---- >>>> Timothy J Nolte - tnolte at ilpcs.com >>>> Associate Network Planning Engineer >>>> >>>> iPCS Wireless, Inc. >>>> 4717 Broadmoor Ave, Suite G >>>> Kentwood, MI 49512 >>>> >>>> Office: 616-656-5163 >>>> PCS: 616-706-2438 >>>> Fax: 616-554-6484 >>>> Web: www.ipcswirelessinc.com >>>> >>>> >>>> >> >> From dondrake at GMAIL.COM Tue Oct 16 21:19:10 2007 From: dondrake at GMAIL.COM (Don Drake) Date: Tue, 16 Oct 2007 23:19:10 -0500 Subject: Color coding from two data sources In-Reply-To: <47154CDE.2050100@lisasoft.com> Message-ID: On 10/16/07, Mark Leslie wrote: > > Don Drake wrote: > > Here's my scenario, I have shapefiles containing polygons of > zipcodes. I > > have a table in Postgres that has a zip code with data that I would like > to > > thematically map. I am not interested in loading the zipcodes into > PostGIS > > if I don't have to. I am using PHP/Mapscript, and I was wondering if > there > > is a way to merge the Postgres data with the shapefile layer on a map? > > > > Thanks. > > > > -Don > > > > That depends what you mean by 'merge'. If you want to display both in > the same layer, you can come close by defining two layers in the same > group (see the GROUP item at > http://mapserver.gis.umn.edu/docs/reference/mapfile/layer). If you want > to join the two sources together, Jeff has a nice example in the > reference docs > ( > http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-2-join-from-shp-file-to-postgresql-table > ). > If I've missed the point entirely, then I'll need some more details > about what you're trying to end up with. > > Mark Leslie > LISAsoft > www.lisasoft.com > Very interesting. It looks like the second link is close to what I need, the first is not what I need. The thing is that the postgres table the data is coming out of does not have a geometry column, the key is the zipcode. Furthermore, it will probably come from a query, or a view. I tried using a view with no geometry and could not get it to work. The geometry will come from a shapefile. If this would work, could I color code using an expression? Is there a Mapscript alternative? Thanks. -Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark.leslie at LISASOFT.COM Tue Oct 16 21:33:06 2007 From: mark.leslie at LISASOFT.COM (Mark Leslie) Date: Wed, 17 Oct 2007 14:33:06 +1000 Subject: Color coding from two data sources In-Reply-To: <6c21003b0710162119q28206085j9eaf361f41ae7db3@mail.gmail.com> Message-ID: Don Drake wrote: > On 10/16/07, Mark Leslie wrote: >> Don Drake wrote: >>> Here's my scenario, I have shapefiles containing polygons of >> zipcodes. I >>> have a table in Postgres that has a zip code with data that I would like >> to >>> thematically map. I am not interested in loading the zipcodes into >> PostGIS >>> if I don't have to. I am using PHP/Mapscript, and I was wondering if >> there >>> is a way to merge the Postgres data with the shapefile layer on a map? >>> >>> Thanks. >>> >>> -Don >>> >> That depends what you mean by 'merge'. If you want to display both in >> the same layer, you can come close by defining two layers in the same >> group (see the GROUP item at >> http://mapserver.gis.umn.edu/docs/reference/mapfile/layer). If you want >> to join the two sources together, Jeff has a nice example in the >> reference docs >> ( >> http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-2-join-from-shp-file-to-postgresql-table >> ). >> If I've missed the point entirely, then I'll need some more details >> about what you're trying to end up with. >> >> > > Very interesting. It looks like the second link is close to what I need, > the first is not what I need. > > The thing is that the postgres table the data is coming out of does not have > a geometry column, the key is the zipcode. Furthermore, it will probably > come from a query, or a view. I tried using a view with no geometry and > could not get it to work. The geometry will come from a shapefile. > > If this would work, could I color code using an expression? Is there a > Mapscript alternative? > > Thanks. > > -Don > If there's no geometry in the table, then the join is your only option AFAIK. The downside is that joins are only intended for use in queries, not in styling. I expect that since you're using MapScript, you could execute a query to determine membership and dynamically setup the styling, but that's a reasonably horrible solution. You'd be better of using php to connect directly to postgres (http://au2.php.net/pgsql) to find a zipcodes and set up your classes from that. Can I ask why you don't want to load the zipcodes into PostGIS, or extract the table to shapefile for that matter? Does the zipcode table change frequently? -- Mark Leslie Software Architect LISAsoft Pty Ltd www.lisasoft.com From zerosgm at GMAIL.COM Tue Oct 16 23:28:35 2007 From: zerosgm at GMAIL.COM (Fanda) Date: Tue, 16 Oct 2007 23:28:35 -0700 Subject: mapscript point layer zooming In-Reply-To: Message-ID: I am using the latest version of mapserver (ms4w 2.2.6), c# mapscript. I don't know exactly what inline layer means, but I don't think that's the case of my layer. I've attached the whole mapfile to this message (the point layer is the very last one called 'Vrty'). It shows up in full extent, but as I pan or zoom so that any point of the layer is outside the current extent, the whole layer disappears. Best regards, Fanda Tamas Szekeres wrote: > > Hi, > > It would be helpful to post the entire mapfile you have. Are you using > an inline layer as the point layer? > Which projection you use with your map? What is the mapserver version? > > Best regards, > > Tamas > > > 2007/10/16, Fanda : >> Hi all, >> I am facing really odd problem. I have some line and polygon layers in my >> mapfile and everything goes fine with them. But there is also one POINT >> layer and it shows up only in its full extent. If I zoom in or pan the >> layer >> disappears whereas the other layers are still visible as expected. There >> is >> no max/minscale defined. I am using C# mapscript. The definition of the >> layer in the mapfile is as follows: >> >> LAYER >> NAME Vrty >> STATUS ON >> TYPE POINT >> DATA "vrty" >> TOLERANCE 1 >> >> CLASS >> NAME 'vrty' >> STYLE >> SYMBOL 'circle' >> SIZE 20 >> COLOR 255 0 0 >> END >> END >> >> PROJECTION >> "init=epsg:2065" >> END >> END >> >> Any help would be greatly appreciated, >> Fanda >> -- >> View this message in context: >> http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13229010 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > http://www.nabble.com/file/p13247791/mapa.map mapa.map -- View this message in context: http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13247791 Sent from the Mapserver - User mailing list archive at Nabble.com. From dpinte at ITAE.BE Wed Oct 17 00:14:30 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Wed, 17 Oct 2007 09:14:30 +0200 Subject: QueryByPoint in php mapscript - 0 results In-Reply-To: <205778.72655.qm@web30604.mail.mud.yahoo.com> Message-ID: On Tue, 2007-10-16 at 12:31 -0700, cool frenz wrote: > Hi, > I am trying to perform querybypoint but have been unable to get any > result. > The procedure that i am following: > 1) Get clicked pixel points. > 2) convert to georef coordinates. (Got them correct) > 3) Querying the layer with this point. > 4) Checking for results : Found none > > Code Snippet: > $mypoint =ms_newPointObj(); > $mypoint->setXY(17.94031626 , 79.29237528); // To check i directly > put a point though i tried with clicked point as well > $check=@$map->queryByPoint($mypoint,MS_MULTIPLE, 20); > $layer1=$map->getlayerbyname("cotton"); > if( $check == MS_SUCCESS) > { > $count_results = $layer1->getNumResults(); > print "NO = ".$count_results." "; > } > Earlier i wasnt using any template then i used a dummy template > (completely blank) to make it work but still it gave no result. > > Please let me know where i am mistaken ? Hi Piyush, Some hints to debug the problem. Have you tested by querying the layer directly and not the all map ? $layer1 = $map->getlayerbyname("cotton"); $check = $layer1->queryByPoint($mypoint,MS_MULTIPLE, 20); What about the toleranceunits of the layer ? $layer1->set("toleranceunits",MS_METERS); Remove the @ so that you does not hide errors coming from the queryByPoint method. Are you sure they are some points under your fake click ? Here is a link with a working example : http://www.itae.be/gis/querying-dynamic-point-layer-with-php-mapscript.html -- Didrik Information Technologies for the Agro-Environment -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From jakob3_mautberg at WEB.DE Wed Oct 17 01:06:42 2007 From: jakob3_mautberg at WEB.DE (Jakob Mautberg) Date: Wed, 17 Oct 2007 10:06:42 +0200 Subject: ./mapserv -v gives parameteres I don`t understand Message-ID: Dear list, I have got a question. If I write ./mapserv -v then I get some parameters that I don`t understand. OUTPUT=WBMP -> What does that mean? What is WBMP? OUTPUT=SWF -> Does anybody know what this means? What is SWF? SUPPORTS=THREADS -> What are threads? SUPPORTS=GEOS -> Geos is used by PostGIS, but for what does Mapserver need that? Why are INPUT=SHAPEFILE and INPUT=JPEG are listed even if INPUT=OGR and INPUT=GDAL are written? ? OGR/GDAL already mean that JPEG andShapes are implemented??? Isn`t that a "double-listing"? Thank you very much, Jakob _______________________________________________________________________ Jetzt neu! Sch?tzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 From yjacolin at FREE.FR Wed Oct 17 01:33:10 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Wed, 17 Oct 2007 10:33:10 +0200 Subject: ./mapserv -v gives parameteres I don`t understand In-Reply-To: <285366190@web.de> Message-ID: Hi, Le Wednesday 17 October 2007 10:06:42 Jakob Mautberg, vous avez ?crit?: > Dear list, > > I have got a question. > If I write ./mapserv -v > then I get some parameters that I don`t understand. > OUTPUT=WBMP -> What does that mean? What is WBMP? BMP format export file, I don't knwo what W means (World ?) Here is a definition from Wikipedia, but I don't know if it is correct here : http://en.wikipedia.org/wiki/Wireless_Application_Protocol_Bitmap_Format. "WBMP images are monochrome (black & white) so that the image size is kept to a minimum. A black pixel is denoted by 0 and a white pixel is denoted by 1." > OUTPUT=SWF -> Does anybody know what this means? What is SWF? SWF is the Flash format extension. > SUPPORTS=THREADS -> What are threads? > SUPPORTS=GEOS -> Geos is used by PostGIS, but for what does Mapserver need > that? GEOS is used for some spatial treatment. I think MS use it for EXPRESSION parameter or some other else. > Why are INPUT=SHAPEFILE and INPUT=JPEG are listed even if INPUT=OGR and > INPUT=GDAL are written? ? OGR/GDAL already mean that JPEG andShapes are > implemented??? Isn`t that a "double-listing"? Thank you very much, Jakob SHAPEFILE are managed directly by MS, I don't know for JPEG. So it is not a "double-listing", as you could not have GDAL or OGR input but you always got the INPUT=shapefile item. Regards, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From proyectos at ADROCHES.ORG Wed Oct 17 02:55:23 2007 From: proyectos at ADROCHES.ORG (Manuel Ballesteros Cardador) Date: Wed, 17 Oct 2007 11:55:23 +0200 Subject: Don't draw GIF/PNG images on wms clients. Message-ID: Hi, I'm new in MapServer list. I have configured a WMS server and when I try viewing a .map file on wms clients (arcmap, qgis), images are not shown in. I can do zoom, pan, etc but it is not drawn. If I change resourceonline parameter I obtain drawEPP error. Do you have any idea? Thanks in advance! This is the .map file. MAP NAME "COMARCA" STATUS ON EXTENT 286421 4210158 400752 4295906 SIZE 600 500 SHAPEPATH "./data" IMAGECOLOR 125 125 125 UNITS METERS IMAGETYPE PNG WEB IMAGEPATH "./tmp/ms_tmp/" IMAGEURL "./tmp/" METADATA "wms_title" "WMS Adroches" ##required "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:23030" END END PROJECTION "init=epsg:23030" ##required END LAYER NAME "Limite" STATUS ON DEBUG ON DATA "comarca" TYPE POLYGON CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map" CONNECTIONTYPE WMS METADATA "wms_title" "Limite Comarca" "wms_srs" "EPSG:23030" "wms_name" "Limite" "wms_server_version" "1.1.1" "wms_format" "image/PNG" END CLASS NAME "Comarca" STYLE COLOR 170 253 172 OUTLINECOLOR 199 199 199 END END END # Layer END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Wed Oct 17 03:22:00 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 17 Oct 2007 13:22:00 +0300 Subject: Don't draw GIF/PNG images on wms clients. In-Reply-To: A<006f01c810a3$d6bf3cf0$843db6d0$@org> Message-ID: Hi, Your LAYER definition TYPE POLYGON CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map" CONNECTIONTYPE WMS means that you are trying to get data for your layer from WMS service from your localhost. In theory this might work (with TYPE RASTER because WMS is delivering images) but I believe you do not really have another, already working Mapserver WMS running on your computer. What data are you going to serve with your WMS server? Local vectors or something from a remote WMS? -Jukka Rahkonen- ________________________________ L?hett?j?: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Puolesta Manuel Ballesteros Cardador L?hetetty: 17. lokakuuta 2007 12:55 Vastaanottaja: MAPSERVER-USERS at LISTS.UMN.EDU Aihe: [UMN_MAPSERVER-USERS] Don't draw GIF/PNG images on wms clients. Hi, I'm new in MapServer list. I have configured a WMS server and when I try viewing a .map file on wms clients (arcmap, qgis), images are not shown in. I can do zoom, pan, etc but it is not drawn. If I change resourceonline parameter I obtain drawEPP error. Do you have any idea? Thanks in advance! This is the .map file. MAP NAME "COMARCA" STATUS ON EXTENT 286421 4210158 400752 4295906 SIZE 600 500 SHAPEPATH "./data" IMAGECOLOR 125 125 125 UNITS METERS IMAGETYPE PNG WEB IMAGEPATH "./tmp/ms_tmp/" IMAGEURL "./tmp/" METADATA "wms_title" "WMS Adroches" ##required "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" "wms_srs" "EPSG:23030" END END PROJECTION "init=epsg:23030" ##required END LAYER NAME "Limite" STATUS ON DEBUG ON DATA "comarca" TYPE POLYGON CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map" CONNECTIONTYPE WMS METADATA "wms_title" "Limite Comarca" "wms_srs" "EPSG:23030" "wms_name" "Limite" "wms_server_version" "1.1.1" "wms_format" "image/PNG" END CLASS NAME "Comarca" STYLE COLOR 170 253 172 OUTLINECOLOR 199 199 199 END END END # Layer END # Map File -------------- next part -------------- An HTML attachment was scrubbed... URL: From gilles.bassiere at MAKINA-CORPUS.COM Wed Oct 17 03:20:05 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?UTF-8?B?R2lsbGVzIEJhc3Npw6hyZQ==?=) Date: Wed, 17 Oct 2007 12:20:05 +0200 Subject: [Fwd: Re: [UMN_MAPSERVER-USERS] Don't draw GIF/PNG images on wms clients.] Message-ID: Hi Manuel There's something wrong in your layer definition. If I understand your OnlineResource parameter, you try to expose a WMS stream with URL http://localhost/cgi-bin/mapserv.exe?, right ? So you can't feed your layer with the same WMS, it would be client and server of the same service. Your connection element should point to your datasource (another WMS, a shapefile, a postgis DB, etc.). Regards, Gilles Manuel Ballesteros Cardador wrote: > > Hi, I?m new in MapServer list. > > I have configured a WMS server and when I try viewing a .map file on > wms clients (arcmap, qgis), images are not shown in. I can do zoom, > pan, etc but it is not drawn. > > If I change resourceonline parameter I obtain drawEPP error. > > Do you have any idea? > > Thanks in advance! > > This is the .map file. > > MAP > > NAME "COMARCA" > > STATUS ON > > EXTENT 286421 4210158 400752 4295906 > > SIZE 600 500 > > SHAPEPATH "./data" > > IMAGECOLOR 125 125 125 > > UNITS METERS > > IMAGETYPE PNG > > WEB > > IMAGEPATH "./tmp/ms_tmp/" > > IMAGEURL "./tmp/" > > METADATA > > "wms_title" "WMS Adroches" ##required > > "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" > > "wms_srs" "EPSG:23030" > > END > > END > > PROJECTION > > "init=epsg:23030" ##required > > END > > LAYER > > NAME "Limite" > > STATUS ON > > DEBUG ON > > DATA "comarca" > > TYPE POLYGON > > CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map" > > CONNECTIONTYPE WMS > > METADATA > > "wms_title" "Limite Comarca" > > "wms_srs" "EPSG:23030" > > "wms_name" "Limite" > > "wms_server_version" "1.1.1" > > "wms_format" "image/PNG" > > END > > CLASS > > NAME "Comarca" > > STYLE > > COLOR 170 253 172 > > OUTLINECOLOR 199 199 199 > > END > > END > > END # Layer > > END # Map File > -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From annajip at GMAIL.COM Wed Oct 17 04:21:30 2007 From: annajip at GMAIL.COM (=?ISO-8859-1?Q?Anna_Jim=E9nez?=) Date: Wed, 17 Oct 2007 13:21:30 +0200 Subject: symbolize by joined field Message-ID: Hello, is it possible to symbolize or label features based on fields in a joined table? I can't find information about that. Thanks in advance. Anna -------------- next part -------------- An HTML attachment was scrubbed... URL: From proyectos at ADROCHES.ORG Wed Oct 17 04:42:38 2007 From: proyectos at ADROCHES.ORG (Manuel Ballesteros Cardador) Date: Wed, 17 Oct 2007 13:42:38 +0200 Subject: RV: Don't draw GIF/PNG images on wms clients. Message-ID: Thank Gilles by your response. Now, I have eliminated CONNECTIONTYPE and CONNECTION parameter of the layer to set it to default values and now wms client draw image only when I am moving the image (pan). Do you know the problem? I have the shapefile in local path, so DATA parameter of layer point to shapefile. If I try connect to my local wms server from qgis, it work well but don't draw the image, only when pan it. Best regards! -----Mensaje original----- De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Gilles Bassi?re Enviado el: mi?rcoles, 17 de octubre de 2007 12:20 Para: MAPSERVER-USERS at LISTS.UMN.EDU Asunto: [UMN_MAPSERVER-USERS] [Fwd: Re: [UMN_MAPSERVER-USERS] Don't draw GIF/PNG images on wms clients.] Hi Manuel There's something wrong in your layer definition. If I understand your OnlineResource parameter, you try to expose a WMS stream with URL http://localhost/cgi-bin/mapserv.exe?, right ? So you can't feed your layer with the same WMS, it would be client and server of the same service. Your connection element should point to your datasource (another WMS, a shapefile, a postgis DB, etc.). Regards, Gilles Manuel Ballesteros Cardador wrote: > > Hi, Im new in MapServer list. > > I have configured a WMS server and when I try viewing a .map file on > wms clients (arcmap, qgis), images are not shown in. I can do zoom, > pan, etc but it is not drawn. > > If I change resourceonline parameter I obtain drawEPP error. > > Do you have any idea? > > Thanks in advance! > > This is the .map file. > > MAP > > NAME "COMARCA" > > STATUS ON > > EXTENT 286421 4210158 400752 4295906 > > SIZE 600 500 > > SHAPEPATH "./data" > > IMAGECOLOR 125 125 125 > > UNITS METERS > > IMAGETYPE PNG > > WEB > > IMAGEPATH "./tmp/ms_tmp/" > > IMAGEURL "./tmp/" > > METADATA > > "wms_title" "WMS Adroches" ##required > > "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" > > "wms_srs" "EPSG:23030" > > END > > END > > PROJECTION > > "init=epsg:23030" ##required > > END > > LAYER > > NAME "Limite" > > STATUS ON > > DEBUG ON > > DATA "comarca" > > TYPE POLYGON > > CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map" > > CONNECTIONTYPE WMS > > METADATA > > "wms_title" "Limite Comarca" > > "wms_srs" "EPSG:23030" > > "wms_name" "Limite" > > "wms_server_version" "1.1.1" > > "wms_format" "image/PNG" > > END > > CLASS > > NAME "Comarca" > > STYLE > > COLOR 170 253 172 > > OUTLINECOLOR 199 199 199 > > END > > END > > END # Layer > > END # Map File > -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From prushfor at NRCAN.GC.CA Wed Oct 17 07:05:52 2007 From: prushfor at NRCAN.GC.CA (Rushforth, Peter) Date: Wed, 17 Oct 2007 10:05:52 -0400 Subject: wfs geometry property element order Message-ID: Hi, We are trying to follow an application schema with the mapserver wfs component. Our source is shapefiles. We can re-order property elements simply by reordering the columns in the shapefile, but because the SHAPE column is always first in the shapefile, we can't re-order the geometry property to where we want it according to the schema. Is there a workaround for this problem? Thanks, Peter Rushforth Technology Advisor / Conseiller technique GeoConnections / G?oConnexions 650-615 Booth St. / rue Booth Ottawa ON K1A 0E9 E-mail / Courriel: Peter.Rushforth at NRCan.gc.ca Phone / T?lephone: (613) 943-0784 Fax / telecopier: (613) 947-2410 From joseramonlopez at GMAIL.COM Wed Oct 17 08:04:37 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Wed, 17 Oct 2007 17:04:37 +0200 Subject: Problems with Mapserver 5 Message-ID: Hi list. Im trying to configure mapserver with Oracle Spatial or OCI connection This is my layer: LAYER NAME CARRETERAS TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "OCI:sde/password at SDE" DATA "SDE.RED_CARRETERAS" DUMP TRUE DEBUG ON PROCESSING "CLOSE_CONNECTION=DEFER" TRANSPARENCY 0 PROJECTION "init=epsg:23030" END CLASS STYLE COLOR 0 0 0 END NAME 'Carreteras' END METADATA "wms_title" "Red Carreteras" "wms_keywordlist" "WMS Carreteras" "wms_srs" "epsg:23030" "wms_extent" "164590 4062740 579080 4266350" END END Mapserver allways send to me a blank image. I'd use shp2img , and allways send me a blank image, with this command: C:\ms4w-v5\tools\mapserv>shp2img.exe -m c:\ms4w-v5\maps\map\wms.map -i png -o C:\test.png -all_debug 9 -l CARRETERAS msDrawMap(): Layer 1 (CARRETERAS), 0.000s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.000s msFreeMap(): freeing map at 0144B390. and made some test for testing oracle connection with og2info, and works correctly, like: C:\ms4w-v5\tools\mapserv>ogrinfo.exe OCI:sde/password at SDE:sde.RED_CARRETERAS-SO INFO: Open of `OCI:sde/sde at SDE:sde.RED_CARRETERAS' using driver `OCI' successful. 1: sde.RED_CARRETERAS if i use the command with -al option, it sends to me all information allocated in this layer. Is the problem related with system enviroment? In httd.conf: SetEnv PATH "C:/Oracle/oracle10g/BIN" SetEnv TNS_ADMIN "C:/Oracle/oracle10g/NETWORK/ADMIN" SetEnv ORACLE_SID SDE SetEnv ORACLE_BASE "C:/Oracle/oracle10g" SetEnv ORACLE_HOME "C:/Oracle/oracle10g" SetEnv LD_LIBRARY_PATH "C:\Oracle\oracle10g\LIB" and de tnsadmin.ora file SDE= (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.133.19)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = sde) ) ) Windows 2003 System Enviroment: Path=\ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\shapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce00;C:\oracle\Oracle10g\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem PROJ_LIB=\ms4w-v5\proj\nad ORACLE_HOME=C:\oracle\Oracle10g In ms_erro.txt file nothing is registered. Thxs -------------- next part -------------- An HTML attachment was scrubbed... URL: From metlud at YAHOO.IT Wed Oct 17 08:20:57 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Wed, 17 Oct 2007 17:20:57 +0200 Subject: very large tile index Message-ID: Hi, if I understood completely those suggestions are for raster images. I'm in a same trouble with a large (indexing 2500 tile) shape file index, generated with tile4ms. How can I "mosaic" many shape files? Ludovico ----- Original Message ----- From: "Ed McNierney" To: Sent: Thursday, July 12, 2007 9:15 PM Subject: Re: [UMN_MAPSERVER-USERS] very large tile index > Chris - > > I will echo Frank's point from experience. Your disk subsystem, while it > may be good, is the slowest part of your system and you don't mention what > it is. Any disk is slowest at doing seeks from one location to another > (as > opposed to linear reads). Your request is, at a minimum, asking your > system > to open and read 2,774 individual files. Under optimal conditions this > will > probably require 2,774 seeks and possibly quite a few more (it wouldn't be > surprising to have 5,000 - 10,000 seeks occur). > > A typical 7,200 RPM ATA drive will have a seek time of about 9 > milliseconds, > and will have an average latency of about 4.2 milliseconds. That means > that > a command to "open this file and read the header" will take a minimum of > 13.2 milliseconds. You can only do 70 of those in one second, so if you > want to do it 2,774 times you will need 40 seconds just to open all those > files. > > Your overviews can make things considerably worse. If you wrote 2,774 TIF > files to one directory, then ran gdaladdo 2,774 times on those files, > you're > going to append quite a bit of data to each file. If you were doing this > on > a blank disk, the first overview for the first file would probably need to > go after the 2,774th file, etc. since the overviews are relatively big > compared to your likely block size (if your files are 400MB those > overviews > will be 375MB). 2,774 files of 400MB each means that your first overview > is > over one terabyte away - that's a LONG seek. And then you'll have to go > back for the next header, then back to the overview, etc. > > I presume you don't have a single 7200 RPM ATA drive holding your 2 > terabytes of imagery , but you get the idea. Jumping around among a > lot > of files is a very time-consuming thing to do. Using GDAL to mosaic those > file overviews together is an excellent idea. Instead of 2,774 files of > 25MB each (for the 16x overview), an arrangement with 174 files of 400MB > each will very likely be nearly 16 times faster. > > - Ed > > -- > Ed McNierney > Chief Mapmaker > TopoZone.com > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > Phone: (978) 251-4242 > Fax: (978) 251-1396 > ed at topozone.com > > >> From: Frank Warmerdam >> Reply-To: Frank Warmerdam >> Date: Thu, 12 Jul 2007 14:52:30 -0400 >> To: >> Subject: Re: [UMN_MAPSERVER-USERS] very large tile index >> >> Christopher Condit wrote: >>> I've got a fairly large set of .tif files (A total of 2774 images at >>> roughly 400mgs each). They've all had gdaladdo run (at 2 4 8 16), and >>> then a tile index created. If I attempt to draw the map with mapserver >>> at the full extents, the cgi request times out. I realize this is too >>> much data, but the question is: how do I find out at what point the tile >>> index will break down and overview should be used? Also, if MapServer >>> won't draw the composite image, will shp2image work? >>> This is running on a linux machine with 4 2.8 ghz Pentiums and 4gb >>> RAM... >> >> Chris, >> >> Mapserv *should* work if given enough time but for a full overview image >> processing through 2700 files still takes quite a while. Likewise >> shp2img should work. The operational solution is to create a low >> resolution >> mosaiced layer all in one file and use MINSCALE/MAXSCALE on the layers to >> switch between the tileindex layer and the overview layer at appropriate >> scales. >> >> Best regards, >> -- >> ---------------------------------------+-------------------------------------- >> I set the clouds in motion - turn up | Frank Warmerdam, >> warmerdam at pobox.com >> light and sound - activate the windows | http://pobox.com/~warmerdam >> and watch the world go round - Rush | President OSGeo, >> http://osgeo.org Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From Jukka.Rahkonen at MMMTIKE.FI Wed Oct 17 08:26:53 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Wed, 17 Oct 2007 18:26:53 +0300 Subject: Problems with Mapserver 5 Message-ID: Hi, I have never used SDE with Mapserver, but I suspect that you may be mixing Oracle spatial and ArcSDE in some way. You have Oracle database as I have understood, but are you data stored there through Oracle spatial or ArcSDE? If you are using SDE try to follow the advice from here: http://mapserver.gis.umn.edu/docs/reference/vector_data/arcsde If your data is in native Oracle spatial format, try to follow this: http://mapserver.gis.umn.edu/docs/howto/oracle_spatial_howto Perhaps you get empty map simply because your connectiontype/connection/data combination just do not find any data from the database. -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Jos? Ram?n L?pez Sent: Wed 17.10.2007 18:04 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Problems with Mapserver 5 Hi list. Im trying to configure mapserver with Oracle Spatial or OCI connection This is my layer: LAYER NAME CARRETERAS TYPE LINE STATUS ON CONNECTIONTYPE OGR CONNECTION "OCI:sde/password at SDE" DATA "SDE.RED_CARRETERAS" DUMP TRUE DEBUG ON PROCESSING "CLOSE_CONNECTION=DEFER" TRANSPARENCY 0 PROJECTION "init=epsg:23030" END CLASS STYLE COLOR 0 0 0 END NAME 'Carreteras' END METADATA "wms_title" "Red Carreteras" "wms_keywordlist" "WMS Carreteras" "wms_srs" "epsg:23030" "wms_extent" "164590 4062740 579080 4266350" END END Mapserver allways send to me a blank image. I'd use shp2img , and allways send me a blank image, with this command: C:\ms4w-v5\tools\mapserv>shp2img.exe -m c:\ms4w-v5\maps\map\wms.map -i png -o C:\test.png -all_debug 9 -l CARRETERAS msDrawMap(): Layer 1 (CARRETERAS), 0.000s msDrawMap(): Drawing Label Cache, 0.000s msDrawMap() total time: 0.000s msFreeMap(): freeing map at 0144B390. and made some test for testing oracle connection with og2info, and works correctly, like: C:\ms4w-v5\tools\mapserv>ogrinfo.exe OCI:sde/password at SDE:sde.RED_CARRETERAS-SO INFO: Open of `OCI:sde/sde at SDE:sde.RED_CARRETERAS' using driver `OCI' successful. 1: sde.RED_CARRETERAS if i use the command with -al option, it sends to me all information allocated in this layer. Is the problem related with system enviroment? In httd.conf: SetEnv PATH "C:/Oracle/oracle10g/BIN" SetEnv TNS_ADMIN "C:/Oracle/oracle10g/NETWORK/ADMIN" SetEnv ORACLE_SID SDE SetEnv ORACLE_BASE "C:/Oracle/oracle10g" SetEnv ORACLE_HOME "C:/Oracle/oracle10g" SetEnv LD_LIBRARY_PATH "C:\Oracle\oracle10g\LIB" and de tnsadmin.ora file SDE= (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.133.19)(PORT = 1521)) ) (CONNECT_DATA = (SERVICE_NAME = sde) ) ) Windows 2003 System Enviroment: Path=\ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\shapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce00;C:\oracle\Oracle10g\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem PROJ_LIB=\ms4w-v5\proj\nad ORACLE_HOME=C:\oracle\Oracle10g In ms_erro.txt file nothing is registered. Thxs From thomas.bonfort at GMAIL.COM Wed Oct 17 08:43:37 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 17 Oct 2007 17:43:37 +0200 Subject: Problems with Mapserver 5 In-Reply-To: <7efce0ed0710170804h3d2840a0kdce66bd53c76a4fc@mail.gmail.com> Message-ID: Jos?, TRANSPARENCY 0 has been deprecated in 5.0 and been replaced with OPACITY. and a layer with 0 opacity being fully transparent, it is not drawn. tb On 10/17/07, Jos? Ram?n L?pez wrote: > Hi list. > > Im trying to configure mapserver with Oracle Spatial or OCI connection > This is my layer: > > LAYER > NAME CARRETERAS > TYPE LINE > STATUS ON > CONNECTIONTYPE OGR > CONNECTION " OCI:sde/password at SDE" > DATA "SDE.RED_CARRETERAS" > DUMP TRUE > DEBUG ON > PROCESSING "CLOSE_CONNECTION=DEFER" > TRANSPARENCY 0 > PROJECTION > "init=epsg:23030" > END > CLASS > STYLE > COLOR 0 0 0 > END > NAME 'Carreteras' > END > METADATA > "wms_title" "Red Carreteras" > "wms_keywordlist" "WMS Carreteras" > "wms_srs" "epsg:23030" > "wms_extent" "164590 4062740 579080 4266350" > END > END > > > Mapserver allways send to me a blank image. > I'd use shp2img , and allways send me a blank image, with this command: > > C:\ms4w-v5\tools\mapserv>shp2img.exe -m c:\ms4w-v5\maps\map\wms.map -i png > -o C:\test.png -all_debug 9 -l CARRETERAS > msDrawMap(): Layer 1 (CARRETERAS), 0.000s > msDrawMap(): Drawing Label Cache, 0.000s > msDrawMap() total time: 0.000s > msFreeMap(): freeing map at 0144B390. > > and made some test for testing oracle connection with og2info, and works > correctly, like: > > C:\ms4w-v5\tools\mapserv>ogrinfo.exe OCI:sde/password at SDE:sde.RED_CARRETERAS > -SO > INFO: Open of `OCI:sde/sde at SDE:sde.RED_CARRETERAS' > using driver `OCI' successful. > 1: sde.RED_CARRETERAS > > if i use the command with -al option, it sends to me all information > allocated in this layer. > > Is the problem related with system enviroment? > > In httd.conf: > > SetEnv PATH "C:/Oracle/oracle10g/BIN" > SetEnv TNS_ADMIN "C:/Oracle/oracle10g/NETWORK/ADMIN" > SetEnv ORACLE_SID SDE > SetEnv ORACLE_BASE "C:/Oracle/oracle10g" > SetEnv ORACLE_HOME "C:/Oracle/oracle10g" > SetEnv LD_LIBRARY_PATH "C:\Oracle\oracle10g\LIB" > > and de tnsadmin.ora file > > SDE= > (DESCRIPTION = > (ADDRESS_LIST = > (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.133.19)(PORT = 1521)) > ) > (CONNECT_DATA = > (SERVICE_NAME = sde) > ) > ) > > Windows 2003 System Enviroment: > > Path=\ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\shapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce00;C:\oracle\Oracle10g\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem > PROJ_LIB=\ms4w-v5\proj\nad > ORACLE_HOME=C:\oracle\Oracle10g > > In ms_erro.txt file nothing is registered. > > Thxs > > > > > > > > From gregor at HOSTGIS.COM Wed Oct 17 08:46:15 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 17 Oct 2007 09:46:15 -0600 Subject: very large tile index In-Reply-To: <002001c810d1$51d768e0$4101a8c0@MRHYDE> Message-ID: Ludovico Bianchini wrote: > if I understood completely those suggestions are for raster images. I'm > in a same trouble with a large (indexing 2500 tile) shape file index, > generated with tile4ms. How can I "mosaic" many shape files? Use ogrtindex (as compared to gdaltindex) in much the same way. All of the issues described here are identical in nature: finding and opening many files is inherently slow and should be avoided when possible. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Tom.Kralidis at EC.GC.CA Wed Oct 17 08:59:31 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Wed, 17 Oct 2007 11:59:31 -0400 Subject: wfs geometry property element order Message-ID: Peter, Not that I know of. You could (could) run the process through a WxS process, but that would be a bit of work. Or you could try re-ordering your application schema's elements. Out of interest. why did you want to do this? To adhere to an app schema? ..Tom ________________________________ From: UMN MapServer Users List on behalf of Rushforth, Peter Sent: Wed 17-Oct-07 10:05 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] wfs geometry property element order Hi, We are trying to follow an application schema with the mapserver wfs component. Our source is shapefiles. We can re-order property elements simply by reordering the columns in the shapefile, but because the SHAPE column is always first in the shapefile, we can't re-order the geometry property to where we want it according to the schema. Is there a workaround for this problem? Thanks, Peter Rushforth Technology Advisor / Conseiller technique GeoConnections / G?oConnexions 650-615 Booth St. / rue Booth Ottawa ON K1A 0E9 E-mail / Courriel: Peter.Rushforth at NRCan.gc.ca Phone / T?lephone: (613) 943-0784 Fax / telecopier: (613) 947-2410 From cplist at SECONDCREEK.ORG Wed Oct 17 09:01:11 2007 From: cplist at SECONDCREEK.ORG (Charlton Purvis) Date: Wed, 17 Oct 2007 12:01:11 -0400 Subject: FW: max size of CSV column Message-ID: Hi, folks: I sent the following msg. to GDAL, but I'd like to make sure my bases are covered and that this isn't something that I should be trying to tweak in a MapServer .h file. Thanks! > -----Original Message----- > From: Charlton Purvis [mailto:cplist at secondcreek.org] > Sent: Wednesday, October 17, 2007 11:20 AM > To: 'gdal-dev at lists.maptools.org' > Subject: max size of CSV column > > Hi, all: > > I have a CSV that I'm pushing through MapServer via an OGRVRTDataSource > connection. I'm running into a problem w/ when my CSV column width is > huge. Where can I bump up the max size that OGR can handle for a col > size? > > lon,lat,val > -85,23,"BIG STRING" > > Where "BIG STRING" may be > 12k characters. > > Even if this looks crazy to pump through a CSV, it works flawlessly > otherwise! > > Thanks in advance, > > Charlton From cplist at SECONDCREEK.ORG Wed Oct 17 09:07:58 2007 From: cplist at SECONDCREEK.ORG (Charlton Purvis) Date: Wed, 17 Oct 2007 12:07:58 -0400 Subject: FW: max size of CSV column In-Reply-To: <006601c810d6$f0939a30$660fa8c0@latitude> Message-ID: > > I have a CSV that I'm pushing through MapServer via an OGRVRTDataSource > > connection. I'm running into a problem w/ when my CSV column width is > > huge. Where can I bump up the max size that OGR can handle for a col > > size? > > > > lon,lat,val > > -85,23,"BIG STRING" > > > > Where "BIG STRING" may be > 12k characters. Well, it dawned on me to do an ogrinfo -al on it, and it worked fine. So maybe it is a MS issue? From webb.sprague at GMAIL.COM Wed Oct 17 09:15:06 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Wed, 17 Oct 2007 09:15:06 -0700 Subject: shp2img and single layer? Message-ID: (My adventures with mapserver continue...) How do I get shp2img to only draw specific layers? I thought "shp2img -l shiptracks -m map.map -o foo.png" would only draw the shiptracks layer, but it draws the entire layer set from the mapfile. I guess I could script this with Python, but I would rather not... THanks again! From gregor at HOSTGIS.COM Wed Oct 17 09:17:53 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 17 Oct 2007 10:17:53 -0600 Subject: shp2img and single layer? In-Reply-To: Message-ID: Webb Sprague wrote: > How do I get shp2img to only draw specific layers? The -l flag is the one. Do you have any layers with "status default"? Note that "Default" means "always on, even if they don't ask for it" -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From prushfor at NRCAN.GC.CA Wed Oct 17 09:21:04 2007 From: prushfor at NRCAN.GC.CA (Rushforth, Peter) Date: Wed, 17 Oct 2007 12:21:04 -0400 Subject: wfs geometry property element order In-Reply-To: A<2DC5CCA14756424BBBEE8B4B2E4A682F012D3E67@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Hi Tom, Thanks for the response. Some of the CGDI interoperability pilot project participants are using MapServer. We established an application schema based on the geobase.ca RoadSegment content model, which uses an xsd:sequence of property elements. Cheers, Peter > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: October 17, 2007 12:00 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] wfs geometry property element order > > Peter, > > Not that I know of. You could (could) run the process > through a WxS process, but that would be a bit of work. Or > you could try re-ordering your application schema's elements. > > Out of interest. why did you want to do this? To adhere to > an app schema? > > ..Tom > > > ________________________________ > > From: UMN MapServer Users List on behalf of Rushforth, Peter > Sent: Wed 17-Oct-07 10:05 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] wfs geometry property element order > > > > Hi, > > We are trying to follow an application schema with the > mapserver wfs component. Our source is shapefiles. We can > re-order property elements simply by reordering the columns > in the shapefile, but because the SHAPE column is always > first in the shapefile, we can't re-order the geometry > property to where we want it according to the schema. Is > there a workaround for this problem? > > Thanks, > > Peter Rushforth > Technology Advisor / Conseiller technique GeoConnections / > G?oConnexions > 650-615 Booth St. / rue Booth > Ottawa ON K1A 0E9 > E-mail / Courriel: Peter.Rushforth at NRCan.gc.ca Phone / > T?lephone: (613) 943-0784 Fax / telecopier: (613) 947-2410 > From nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM Wed Oct 17 09:24:25 2007 From: nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM (Nathan Vander Wilt) Date: Wed, 17 Oct 2007 11:24:25 -0500 Subject: Changing layer parameters via CGI with underscore in name Message-ID: Hello all! I have a layer defined similarly to this: LAYER NAME 'dfirm_main' ... END I would like to change some parameters for this on the fly, however I'm wondering if how to deal with the underscored name in the map_ heirarchy, which depends on underscores as well. The following example does not work, although if I change the layer name to remove the underscore in both the .map and the url, then it does work as expected: http://example/cgi-bin/mapserv?map=/var/www/maps/nvw-test/ test.map&map_dfirm_main_class_color=255+0+0&mode=map How can I change parameters via CGI on a layer named with an underscore? thanks, -natevw From gilles.bassiere at MAKINA-CORPUS.COM Wed Oct 17 10:00:23 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Wed, 17 Oct 2007 19:00:23 +0200 Subject: RV: Don't draw GIF/PNG images on wms clients. In-Reply-To: <007d01c810b2$d27364a0$775a2de0$@org> Message-ID: Manuel Ballesteros Cardador wrote: > Thank Gilles by your response. Now, I have eliminated CONNECTIONTYPE and CONNECTION parameter of the layer to set it to default values and now wms client draw image only when I am moving the image (pan). Do you know the problem? > Without much context, I'm afraid I can't help. The problem seems to be at interface level since you finally get an image. In order to check your WMS, you could try to send the request through a simple web browser. The request would looks like: http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map&LAYERS=Limite&TRANSPARENT=true&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=epsg:23030&BBOX=286421,4210158,400752,4295906&WIDTH=500&HEIGHT=500 or just: http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map&mode=map (this one is not a valid WMS request but usually provide better error messages). If these requests return an image, then your problem would rather be in QGIS. I usually set the "wms_extent" in the layer's metadata. I'm not sure whether it's compulsory but it might be useful. Regards, Gilles > I have the shapefile in local path, so DATA parameter of layer point to shapefile. > > If I try connect to my local wms server from qgis, it work well but don't draw the image, only when pan it. > > Best regards! > > -----Mensaje original----- > De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En nombre de Gilles Bassi?re > Enviado el: mi?rcoles, 17 de octubre de 2007 12:20 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: [UMN_MAPSERVER-USERS] [Fwd: Re: [UMN_MAPSERVER-USERS] Don't draw GIF/PNG images on wms clients.] > > Hi Manuel > > There's something wrong in your layer definition. If I understand your > OnlineResource parameter, you try to expose a WMS stream with URL > http://localhost/cgi-bin/mapserv.exe?, right ? > So you can't feed your layer with the same WMS, it would be client and > server of the same service. > Your connection element should point to your datasource (another WMS, a > shapefile, a postgis DB, etc.). > > Regards, > Gilles > > > > Manuel Ballesteros Cardador wrote: > >> Hi, Im new in MapServer list. >> >> I have configured a WMS server and when I try viewing a .map file on >> wms clients (arcmap, qgis), images are not shown in. I can do zoom, >> pan, etc but it is not drawn. >> >> If I change resourceonline parameter I obtain drawEPP error. >> >> Do you have any idea? >> >> Thanks in advance! >> >> This is the .map file. >> >> MAP >> >> NAME "COMARCA" >> >> STATUS ON >> >> EXTENT 286421 4210158 400752 4295906 >> >> SIZE 600 500 >> >> SHAPEPATH "./data" >> >> IMAGECOLOR 125 125 125 >> >> UNITS METERS >> >> IMAGETYPE PNG >> >> WEB >> >> IMAGEPATH "./tmp/ms_tmp/" >> >> IMAGEURL "./tmp/" >> >> METADATA >> >> "wms_title" "WMS Adroches" ##required >> >> "wms_onlineresource" "http://localhost/cgi-bin/mapserv.exe?" >> >> "wms_srs" "EPSG:23030" >> >> END >> >> END >> >> PROJECTION >> >> "init=epsg:23030" ##required >> >> END >> >> LAYER >> >> NAME "Limite" >> >> STATUS ON >> >> DEBUG ON >> >> DATA "comarca" >> >> TYPE POLYGON >> >> CONNECTION "http://localhost/cgi-bin/mapserv.exe?map=comarca_wms.map" >> >> CONNECTIONTYPE WMS >> >> METADATA >> >> "wms_title" "Limite Comarca" >> >> "wms_srs" "EPSG:23030" >> >> "wms_name" "Limite" >> >> "wms_server_version" "1.1.1" >> >> "wms_format" "image/PNG" >> >> END >> >> CLASS >> >> NAME "Comarca" >> >> STYLE >> >> COLOR 170 253 172 >> >> OUTLINECOLOR 199 199 199 >> >> END >> >> END >> >> END # Layer >> >> END # Map File >> >> > > > -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From assefa at DMSOLUTIONS.CA Wed Oct 17 10:16:07 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 17 Oct 2007 13:16:07 -0400 Subject: Changing layer parameters via CGI with underscore in name In-Reply-To: Message-ID: Hi There, If you are using 5.0, you could try something like : map.layer[dfirm_main].class[0].style[0]=COLOR 255 0 0 You can also check RFC 31 for examples on this : http://mapserver.gis.umn.edu/development/rfc/ms-rfc-31 Best Regards, Nathan Vander Wilt wrote: > Hello all! I have a layer defined similarly to this: > > LAYER > NAME 'dfirm_main' > ... > END > > I would like to change some parameters for this on the fly, however I'm wondering if how > to deal with the underscored name in the map_ heirarchy, which depends on underscores as > well. The following example does not work, although if I change the layer name to remove > the underscore in both the .map and the url, then it does work as expected: > > http://example/cgi-bin/mapserv?map=/var/www/maps/nvw-test/ > test.map&map_dfirm_main_class_color=255+0+0&mode=map > > > How can I change parameters via CGI on a layer named with an underscore? > > thanks, > -natevw > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Wed Oct 17 11:40:23 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 17 Oct 2007 14:40:23 -0400 Subject: FW: max size of CSV column In-Reply-To: <006701c810d7$e393b3a0$660fa8c0@latitude> Message-ID: Charlton Purvis wrote: >>> I have a CSV that I'm pushing through MapServer via an OGRVRTDataSource >>> connection. I'm running into a problem w/ when my CSV column width is >>> huge. Where can I bump up the max size that OGR can handle for a col >>> size? >>> >>> lon,lat,val >>> -85,23,"BIG STRING" >>> >>> Where "BIG STRING" may be > 12k characters. > > Well, it dawned on me to do an ogrinfo -al on it, and it worked fine. So > maybe it is a MS issue? Charlton, I'm not aware of problems in OGR in general or with the csv driver with large string field values. If there is an issue in MapServer it might be in the expression evaluation or template substitution, but as far as I know there isn't a problem with populating mapserver features with large attribute (items[]) values. I think you need to file a bug with detailed (minimal) steps to reproduce the problem. You can add me (userid warmerdam) as a cc if you wish. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Tim.Nolte at IPCSWIRELESSINC.COM Wed Oct 17 10:32:33 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 17 Oct 2007 13:32:33 -0400 Subject: Solaris AGG Compile... In-Reply-To: <4715692D.3060104@umn.edu> Message-ID: OK, I'm still struggling here. Here is how I modified my Makefile.in.SunOS: Changed: CXX = CC To: CXX = gcc Changed: C = cc To: C = gcc Added: AR = ar LD = ld Changed: LIB = CC -xar -o To: LIB = g++ -xar -o I've also made the change of renaming /usr/ccs/bin/ld to /usr/ccs/bin/ld-off during the AGG build process. Here is what I'm getting as output: cd src; make make[1]: Entering directory `/usr/local/agg-2.4/src' g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_arc.cpp -o agg_arc.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_arrowhead.cpp -o agg_arrowhead.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_bezier_arc.cpp -o agg_bezier_arc.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_bspline.cpp -o agg_bspline.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_curves.cpp -o agg_curves.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vcgen_contour.cpp -o agg_vcgen_contour.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vcgen_dash.cpp -o agg_vcgen_dash.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vcgen_markers_term.cpp -o agg_vcgen_markers_term.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vcgen_smooth_poly1.cpp -o agg_vcgen_smooth_poly1.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vcgen_stroke.cpp -o agg_vcgen_stroke.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vcgen_bspline.cpp -o agg_vcgen_bspline.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_gsv_text.cpp -o agg_gsv_text.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_image_filters.cpp -o agg_image_filters.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_line_aa_basics.cpp -o agg_line_aa_basics.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_line_profile_aa.cpp -o agg_line_profile_aa.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_rounded_rect.cpp -o agg_rounded_rect.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_sqrt_tables.cpp -o agg_sqrt_tables.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_embedded_raster_fonts.cpp -o agg_embedded_raster_fonts.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_trans_affine.cpp -o agg_trans_affine.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_trans_warp_magnifier.cpp -o agg_trans_warp_magnifier.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_trans_single_path.cpp -o agg_trans_single_path.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_trans_double_path.cpp -o agg_trans_double_path.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vpgen_clip_polygon.cpp -o agg_vpgen_clip_polygon.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vpgen_clip_polyline.cpp -o agg_vpgen_clip_polyline.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ agg_vpgen_segmentator.cpp -o agg_vpgen_segmentator.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_cbox_ctrl.cpp -o ctrl/agg_cbox_ctrl.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_gamma_ctrl.cpp -o ctrl/agg_gamma_ctrl.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_gamma_spline.cpp -o ctrl/agg_gamma_spline.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_rbox_ctrl.cpp -o ctrl/agg_rbox_ctrl.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_slider_ctrl.cpp -o ctrl/agg_slider_ctrl.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_spline_ctrl.cpp -o ctrl/agg_spline_ctrl.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_scale_ctrl.cpp -o ctrl/agg_scale_ctrl.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_polygon_ctrl.cpp -o ctrl/agg_polygon_ctrl.o g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ctrl/agg_bezier_ctrl.cpp -o ctrl/agg_bezier_ctrl.o gcc -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ ../gpc/gpc.c -o ../gpc/gpc.o g++ -xar -o libagg.a agg_arc.o agg_arrowhead.o agg_bezier_arc.o agg_bspline.o agg_curves.o agg_vcgen_contour.o agg_vcgen_dash.o agg_vcgen_markers_term.o agg_vcgen_smooth_poly1.o agg_vcgen_stroke.o agg_vcgen_bspline.o agg_gsv_text.o agg_image_filters.o agg_line_aa_basics.o agg_line_profile_aa.o agg_rounded_rect.o agg_sqrt_tables.o agg_embedded_raster_fonts.o agg_trans_affine.o agg_trans_warp_magnifier.o agg_trans_single_path.o agg_trans_double_path.o agg_vpgen_clip_polygon.o agg_vpgen_clip_polyline.o agg_vpgen_segmentator.o ctrl/agg_cbox_ctrl.o ctrl/agg_gamma_ctrl.o ctrl/agg_gamma_spline.o ctrl/agg_rbox_ctrl.o ctrl/agg_slider_ctrl.o ctrl/agg_spline_ctrl.o ctrl/agg_scale_ctrl.o ctrl/agg_polygon_ctrl.o ctrl/agg_bezier_ctrl.o ../gpc/gpc.o g++: language ar not recognized ... g++: language ar not recognized /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o: In function `_start': crt1.s:(.text+0x5c): undefined reference to `main' collect2: ld returned 1 exit status make[1]: *** [all] Error 1 make[1]: Leaving directory `/usr/local/agg-2.4/src' make: *** [src/libagg.a] Error 2 Any thoughts, anyone? Thanks. - Tim ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Trent Erickson [mailto:trente at umn.edu] Sent: Tuesday, October 16, 2007 9:45 PM To: Nolte, Tim Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... The sunfreeware gcc package is compiled with --with-ld=/usr/ccs/bin/ld so it can be hard to get around it. (you can see this by running g++ -v) The sun ld version did not want to compile agg for me. I ended up renaming /usr/ccs/bin/ld to /usr/ccs/bin/ld-off I then put it back after the compile. This of course requires root access. It is not very elegant but it worked. If anyone has any other suggestions I'd love to know how to force the proper ld with resorting to this. It just plain ignored the makefile and environment settings. -Trent Nolte, Tim wrote: > OK, well here's my setup. I have the following sunfreeware packages > installed: > > gcc-3.4.6-sol10-x86-local > make-3.81-sol10-x86-local > automake-1.10-sol10-x86-local > libtool-1.5.24-sol10-x86-local > > I've set my PATH environment to use '/usr/local/bin' before > '/usr/ccs/bin'. And my g++/gcc/make/ar/ld are all GNU when I run 'type' > on them. I did notice that gcc reports (Configured with: ../configure > --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared > --enable-languages=c,c++,f77) so I'm not sure if this would be an issue. > Thanks for any other thoughts. > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com From dondrake at GMAIL.COM Wed Oct 17 10:41:54 2007 From: dondrake at GMAIL.COM (Don Drake) Date: Wed, 17 Oct 2007 12:41:54 -0500 Subject: Color coding from two data sources In-Reply-To: <47159082.2000606@lisasoft.com> Message-ID: On 10/16/07, Mark Leslie wrote: > > Don Drake wrote: > > On 10/16/07, Mark Leslie wrote: > >> Don Drake wrote: > >>> Here's my scenario, I have shapefiles containing polygons of > >> zipcodes. I > >>> have a table in Postgres that has a zip code with data that I would > like > >> to > >>> thematically map. I am not interested in loading the zipcodes into > >> PostGIS > >>> if I don't have to. I am using PHP/Mapscript, and I was wondering if > >> there > >>> is a way to merge the Postgres data with the shapefile layer on a map? > >>> > >>> Thanks. > >>> > >>> -Don > >>> > >> That depends what you mean by 'merge'. If you want to display both in > >> the same layer, you can come close by defining two layers in the same > >> group (see the GROUP item at > >> http://mapserver.gis.umn.edu/docs/reference/mapfile/layer). If you > want > >> to join the two sources together, Jeff has a nice example in the > >> reference docs > >> ( > >> > http://mapserver.gis.umn.edu/docs/reference/mapfile/join#example-2-join-from-shp-file-to-postgresql-table > >> ). > >> If I've missed the point entirely, then I'll need some more details > >> about what you're trying to end up with. > >> > >> > > > > Very interesting. It looks like the second link is close to what I > need, > > the first is not what I need. > > > > The thing is that the postgres table the data is coming out of does not > have > > a geometry column, the key is the zipcode. Furthermore, it will > probably > > come from a query, or a view. I tried using a view with no geometry and > > could not get it to work. The geometry will come from a shapefile. > > > > If this would work, could I color code using an expression? Is there a > > Mapscript alternative? > > > > Thanks. > > > > -Don > > > > If there's no geometry in the table, then the join is your only option > AFAIK. The downside is that joins are only intended for use in queries, > not in styling. I expect that since you're using MapScript, you could > execute a query to determine membership and dynamically setup the > styling, but that's a reasonably horrible solution. You'd be better of > using php to connect directly to postgres (http://au2.php.net/pgsql) to > find a zipcodes and set up your classes from that. Can I ask why you > don't want to load the zipcodes into PostGIS, or extract the table to > shapefile for that matter? Does the zipcode table change frequently? > > -- > Mark Leslie > Software Architect > LISAsoft Pty Ltd > www.lisasoft.com > Loading the zipcodes into PostGIS is just a pain quite honestly. They're sitting in the filesystem for the entire country, I wish I could easily change the polygon color based on another attribute from a query from Postgres. I tried doing that using expressions, but it's not working, debugging mapscript is very frustrating. I'll be loading these into postGIS, thanks for your help. -Don -------------- next part -------------- An HTML attachment was scrubbed... URL: From nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM Wed Oct 17 10:24:27 2007 From: nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM (Nathan Vander Wilt) Date: Wed, 17 Oct 2007 10:24:27 -0700 Subject: Changing layer parameters via CGI with underscore in name In-Reply-To: <47164357.8010305@dmsolutions.ca> Message-ID: On Oct 17, 2007, at 10:16 AM, Yewondwossen Assefa wrote: > If you are using 5.0, you could try something like : > map.layer[dfirm_main].class[0].style[0]=COLOR 255 0 0 For now at least, we are still using version 4.10.0. Is there any way to escape the underscore for the layer name part of the string in that version? thanks, ?natevw > Nathan Vander Wilt wrote: >> Hello all! I have a layer defined similarly to this: >> LAYER >> NAME 'dfirm_main' >> ... >> END >> I would like to change some parameters for this on the fly, >> however I'm wondering if how to deal with the underscored name in >> the map_ heirarchy, which depends on underscores as well. The >> following example does not work, although if I change the layer >> name to remove the underscore in both the .map and the url, then >> it does work as expected: >> http://example/cgi-bin/mapserv?map=/var/www/maps/nvw-test/ >> test.map&map_dfirm_main_class_color=255+0+0&mode=map >> How can I change parameters via CGI on a layer named with an >> underscore? >> thanks, >> -natevw > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > From Steve.Lime at DNR.STATE.MN.US Wed Oct 17 12:17:06 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 17 Oct 2007 14:17:06 -0500 Subject: wfs geometry property element order Message-ID: We could consider an gml_property_order transformation? If not set then the current ordering would be maintained. Steve >>> "Rushforth, Peter" 10/17/07 11:21 AM >>> Hi Tom, Thanks for the response. Some of the CGDI interoperability pilot project participants are using MapServer. We established an application schema based on the geobase.ca RoadSegment content model, which uses an xsd:sequence of property elements. Cheers, Peter > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: October 17, 2007 12:00 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] wfs geometry property element order > > Peter, > > Not that I know of. You could (could) run the process > through a WxS process, but that would be a bit of work. Or > you could try re-ordering your application schema's elements. > > Out of interest. why did you want to do this? To adhere to > an app schema? > > ..Tom > > > ________________________________ > > From: UMN MapServer Users List on behalf of Rushforth, Peter > Sent: Wed 17-Oct-07 10:05 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] wfs geometry property element order > > > > Hi, > > We are trying to follow an application schema with the > mapserver wfs component. Our source is shapefiles. We can > re-order property elements simply by reordering the columns > in the shapefile, but because the SHAPE column is always > first in the shapefile, we can't re-order the geometry > property to where we want it according to the schema. Is > there a workaround for this problem? > > Thanks, > > Peter Rushforth > Technology Advisor / Conseiller technique GeoConnections / > G?oConnexions > 650-615 Booth St. / rue Booth > Ottawa ON K1A 0E9 > E-mail / Courriel: Peter.Rushforth at NRCan.gc.ca Phone / > T?lephone: (613) 943-0784 Fax / telecopier: (613) 947-2410 > From nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM Wed Oct 17 11:48:27 2007 From: nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM (Nathan Vander Wilt) Date: Wed, 17 Oct 2007 11:48:27 -0700 Subject: confused by STATUS ON/OFF purpose In-Reply-To: <47164357.8010305@dmsolutions.ca> Message-ID: I'm trying to figure out what a layer's "STATUS" really means. I get DEFAULT -- basically, the layer is on no matter what. But in practice, I'm not seeing the difference between ON and OFF. http://mapserver.gis.umn.edu/docs/faq/default_vs_on_vs_off has a promising description, but doesn't seem accurate either. When I query layers=all, I get layers with both ON and OFF status,. When I omit layer/layers from my query entirely, I don't get any ON images, just DEFAULT ones. What CGI query will return the layers with ON or DEFAULT set, but no OFF layers? thanks, -natevw From samhiatt at GMAIL.COM Wed Oct 17 12:29:20 2007 From: samhiatt at GMAIL.COM (SamHiatt) Date: Wed, 17 Oct 2007 12:29:20 -0700 Subject: Time series persistence In-Reply-To: <1192522493.5965.4.camel@savin> Message-ID: Hi! I wish I could help you answer your question... but actually I'm interested in hearing about what you are doing with timeseries in mapserver. You mentioned that you are using MapBuilder on the front end. I'm gonna take a guess... are you using MapBuilder to communicate with Mapserver via WMS? So you have your mapfile set up with a tileindex layer, wms_time metadata, etc? Sam Marcos S?nchez Provencio wrote: > > It is all in one slice, with a time dimension. I could replicate the > layer with a shifted view. Maybe it is too much work for the db server > just to get a pretty effect (but I'll try it anyway :-) > > Thank you for the idea > > PS Is it possible to have an animated gif as a marker? > > El lun, 15-10-2007 a las 08:59 -0500, Fawcett, David escribi?: >> If you used one layer for each time slice, and you set the filter for >> that layer dynamically, you might be able to do something like this. >> >> For example, you could have three layers, 'current', 'older', and 'old'. >> If you passed in the filter expression for 'current', you would set it to >> the latest data. You would do the same with the other two layers, >> setting them to the older data sets. >> >> You could then symbolize the older and old layers using transparency or >> color (fading from color to grey?) to make them appear as though they are >> fading away. >> >> David. >> >> -----Original Message----- >> From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On >> Behalf Of Marcos S?nchez Provencio >> Sent: Monday, October 15, 2007 8:25 AM >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: [UMN_MAPSERVER-USERS] Time series persistence >> >> >> Hello there. >> >> Is it possible to emulate persistence in a time series? I am showing rays >> hourly, it would be nice to let the older rays fade away slowly (like a >> radar ping). >> >> I am using mapbuilder as the client. >> >> Thank you in advance for the ideas. > > -- View this message in context: http://www.nabble.com/Time-series-persistence-tf4627508.html#a13261150 Sent from the Mapserver - User mailing list archive at Nabble.com. From gregor at HOSTGIS.COM Wed Oct 17 12:37:20 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 17 Oct 2007 13:37:20 -0600 Subject: confused by STATUS ON/OFF purpose In-Reply-To: Message-ID: Nathan Vander Wilt wrote: > I'm trying to figure out what a layer's "STATUS" really means. I get > DEFAULT -- basically, the layer is on no matter what. But in practice, > I'm not seeing the difference between ON and OFF. As far as we've found, it indicates a desired state for the initial map. For example, one can iterate through layers in JavaScript or Mapscript, and know which layers "should be on" when the map first loads. It's more of a suggestion for the map client, so it can check boxes and make a list of layers and build a URL for the initial view. At least, that's the practical end of things as we use it. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From Steve.Lime at DNR.STATE.MN.US Wed Oct 17 12:42:15 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 17 Oct 2007 14:42:15 -0500 Subject: confused by STATUS ON/OFF purpose Message-ID: With regards to the CGI. It turns everything off that is not "STATUS DEFAULT" off so all layers start from the same state (e.g. off) and must be explicitly requested to be drawn or query. That common state made (at least in my mind) implementations easier. I mean, if a layer "lakes" started ON the doing layer=lakes would turn it OFF. So I wanted to remove the ambiguity of a starting state. So, from the CGI point of view if it's not a default layer then consider it off and you must request it. Does that help? Steve >>> Nathan Vander Wilt 10/17/07 1:48 PM >>> I'm trying to figure out what a layer's "STATUS" really means. I get DEFAULT -- basically, the layer is on no matter what. But in practice, I'm not seeing the difference between ON and OFF. http://mapserver.gis.umn.edu/docs/faq/default_vs_on_vs_off has a promising description, but doesn't seem accurate either. When I query layers=all, I get layers with both ON and OFF status,. When I omit layer/layers from my query entirely, I don't get any ON images, just DEFAULT ones. What CGI query will return the layers with ON or DEFAULT set, but no OFF layers? thanks, -natevw From cplist at SECONDCREEK.ORG Wed Oct 17 12:45:33 2007 From: cplist at SECONDCREEK.ORG (Charlton Purvis) Date: Wed, 17 Oct 2007 15:45:33 -0400 Subject: FW: max size of CSV column In-Reply-To: <47165717.7060803@pobox.com> Message-ID: > I think you need to file a bug with detailed (minimal) steps to reproduce > the problem. You can add me (userid warmerdam) as a cc if you wish. Thanks, Frank. I'll try to test it w/ 5.0.0 before giving up and marking it as a bug. Charlton From Steve.Lime at DNR.STATE.MN.US Wed Oct 17 12:48:38 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 17 Oct 2007 14:48:38 -0500 Subject: ./mapserv -v gives parameteres I don`t understand Message-ID: > OUTPUT=WBMP -> What does that mean? What is WBMP? Wireless Bitmap Format. It's one supported out-of-the-box by GD. > OUTPUT=SWF -> Does anybody know what this means? What is SWF? Flash. > SUPPORTS=THREADS -> What are threads? This enables thread locking in multithreaded environments (I think). > SUPPORTS=GEOS -> Geos is used by PostGIS, but for what does Mapserver need that? The MapServer CGI doesn't use GEOS. However there is access to most GEOS operators and spatial predicates via MapScript so you can do buffers, intersection tests and so on in that environment. > Why are INPUT=SHAPEFILE and INPUT=JPEG are listed even if INPUT=OGR and INPUT=GDAL are written? > ? OGR/GDAL already mean that JPEG andShapes are implemented??? Isn`t that a "double-listing"? MapServer has native interfaces to a few vector and image formats. For vector formats the support is there for performance reasons (one less translation to go through) while vector formats are largely historical in nature and may go away. For instance, you get JPEG because GD supports it. Steve >>> Jakob Mautberg 10/17/07 3:06 AM >>> Dear list, I have got a question. If I write ./mapserv -v then I get some parameters that I don`t understand. OUTPUT=WBMP -> What does that mean? What is WBMP? OUTPUT=SWF -> Does anybody know what this means? What is SWF? SUPPORTS=THREADS -> What are threads? SUPPORTS=GEOS -> Geos is used by PostGIS, but for what does Mapserver need that? Why are INPUT=SHAPEFILE and INPUT=JPEG are listed even if INPUT=OGR and INPUT=GDAL are written? ? OGR/GDAL already mean that JPEG andShapes are implemented??? Isn`t that a "double-listing"? Thank you very much, Jakob _______________________________________________________________________ Jetzt neu! Sch?tzen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220 From nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM Wed Oct 17 12:57:30 2007 From: nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM (Nathan Vander Wilt) Date: Wed, 17 Oct 2007 12:57:30 -0700 Subject: confused by STATUS ON/OFF purpose In-Reply-To: <47161F4D0200008F000105B1@co5.dnr.state.mn.us> Message-ID: Yes, that explains what I was seeing. I added your response as a comment to http://mapserver.gis.umn.edu/docs/faq/default_vs_on_vs_off/ faq_view thanks much, -natevw On Oct 17, 2007, at 12:42 PM, Steve Lime wrote: > With regards to the CGI. It turns everything off that is not > "STATUS DEFAULT" off so all layers start from the same state (e.g. > off) and must be explicitly requested to be drawn or query. That > common state made (at least in my mind) implementations easier. I > mean, if a layer "lakes" started ON the doing layer=lakes would > turn it OFF. So I wanted to remove the ambiguity of a starting state. > > So, from the CGI point of view if it's not a default layer then > consider it off and you must request it. Does that help? > > Steve > >>>> Nathan Vander Wilt >>>> 10/17/07 1:48 PM >>> > I'm trying to figure out what a layer's "STATUS" really means. I get > DEFAULT -- basically, the layer is on no matter what. But in > practice, I'm not seeing the difference between ON and OFF. > > http://mapserver.gis.umn.edu/docs/faq/default_vs_on_vs_off has a > promising description, but doesn't seem accurate either. > > When I query layers=all, I get layers with both ON and OFF status,. > When I omit layer/layers from my query entirely, I don't get any ON > images, just DEFAULT ones. > > What CGI query will return the layers with ON or DEFAULT set, but no > OFF layers? > > thanks, > -natevw > From Tim.Nolte at IPCSWIRELESSINC.COM Wed Oct 17 13:36:43 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 17 Oct 2007 16:36:43 -0400 Subject: Solaris AGG Compile... In-Reply-To: <471656FF.8080207@umn.edu> Message-ID: Trent, Initially it looked this it was going to work. AGG compiled without any errors and then I tried the MapServer compile only to fail when trying to compile php_mapscript.so, mapserv compiled without error so I'm a little confused with that. I'm not sure if there is a bug to address here. I did have to use 'CC = gcc' instead of 'CC = cc' to get the compile to work. I'm really hoping that I might be able to figure out some solutions so that I can get back to using AGG. I'm almost thinking it would have been better to just go with HostGIS on this server rebuild. Was there any other things you had to do with your compile of AGG or MapServer? I'm wondering what compile options others have used successfully on Solaris? Is there anyone else out there currently running MapServer 5 on Solaris, and what version of Solaris? ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com -----Original Message----- From: Trent Erickson [mailto:trente at umn.edu] Sent: Wednesday, October 17, 2007 2:40 PM To: Nolte, Tim Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... Here is a copy of my Makefile.in.SunOS. If this works for you let me know and I will make a mapserver bug report or a doc somewhere on mapserver. I could also contact the AGG people and get an alternate Makefile.in.SunOS. I'm running this on Solaris 9, if this works for you on Solaris 10 its likely an issue others are struggling with. ---- Makefile.in.SunOS start ---- AGGLIBS= -lagg AGGCXXFLAGS = -O3 -I/usr/openwin/include -L/usr/openwin/lib CXX = g++ C = cc LIB = ar cr .PHONY : clean ---- Makefile.in.SunOS end ---- good luck -Trent Nolte, Tim wrote: > OK, I'm still struggling here. Here is how I modified my > Makefile.in.SunOS: > > Changed: > CXX = CC > To: > CXX = gcc > > Changed: > C = cc > To: > C = gcc > > Added: > AR = ar > LD = ld > > Changed: > LIB = CC -xar -o > To: > LIB = g++ -xar -o > > I've also made the change of renaming /usr/ccs/bin/ld to > /usr/ccs/bin/ld-off during the AGG build process. Here is what I'm > getting as output: > > cd src; make > make[1]: Entering directory `/usr/local/agg-2.4/src' > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_arc.cpp -o agg_arc.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_arrowhead.cpp -o agg_arrowhead.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_bezier_arc.cpp -o agg_bezier_arc.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_bspline.cpp -o agg_bspline.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_curves.cpp -o agg_curves.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vcgen_contour.cpp -o agg_vcgen_contour.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vcgen_dash.cpp -o agg_vcgen_dash.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vcgen_markers_term.cpp -o agg_vcgen_markers_term.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vcgen_smooth_poly1.cpp -o agg_vcgen_smooth_poly1.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vcgen_stroke.cpp -o agg_vcgen_stroke.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vcgen_bspline.cpp -o agg_vcgen_bspline.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_gsv_text.cpp -o agg_gsv_text.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_image_filters.cpp -o agg_image_filters.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_line_aa_basics.cpp -o agg_line_aa_basics.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_line_profile_aa.cpp -o agg_line_profile_aa.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_rounded_rect.cpp -o agg_rounded_rect.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_sqrt_tables.cpp -o agg_sqrt_tables.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_embedded_raster_fonts.cpp -o agg_embedded_raster_fonts.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_trans_affine.cpp -o agg_trans_affine.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_trans_warp_magnifier.cpp -o agg_trans_warp_magnifier.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_trans_single_path.cpp -o agg_trans_single_path.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_trans_double_path.cpp -o agg_trans_double_path.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vpgen_clip_polygon.cpp -o agg_vpgen_clip_polygon.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vpgen_clip_polyline.cpp -o agg_vpgen_clip_polyline.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > agg_vpgen_segmentator.cpp -o agg_vpgen_segmentator.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_cbox_ctrl.cpp -o ctrl/agg_cbox_ctrl.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_gamma_ctrl.cpp -o ctrl/agg_gamma_ctrl.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_gamma_spline.cpp -o ctrl/agg_gamma_spline.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_rbox_ctrl.cpp -o ctrl/agg_rbox_ctrl.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_slider_ctrl.cpp -o ctrl/agg_slider_ctrl.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_spline_ctrl.cpp -o ctrl/agg_spline_ctrl.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_scale_ctrl.cpp -o ctrl/agg_scale_ctrl.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_polygon_ctrl.cpp -o ctrl/agg_polygon_ctrl.o > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ctrl/agg_bezier_ctrl.cpp -o ctrl/agg_bezier_ctrl.o > gcc -c -O3 -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > ../gpc/gpc.c -o ../gpc/gpc.o > g++ -xar -o libagg.a agg_arc.o agg_arrowhead.o agg_bezier_arc.o > agg_bspline.o agg_curves.o agg_vcgen_contour.o agg_vcgen_dash.o > agg_vcgen_markers_term.o agg_vcgen_smooth_poly1.o agg_vcgen_stroke.o > agg_vcgen_bspline.o agg_gsv_text.o agg_image_filters.o > agg_line_aa_basics.o agg_line_profile_aa.o agg_rounded_rect.o > agg_sqrt_tables.o agg_embedded_raster_fonts.o agg_trans_affine.o > agg_trans_warp_magnifier.o agg_trans_single_path.o > agg_trans_double_path.o agg_vpgen_clip_polygon.o > agg_vpgen_clip_polyline.o agg_vpgen_segmentator.o ctrl/agg_cbox_ctrl.o > ctrl/agg_gamma_ctrl.o ctrl/agg_gamma_spline.o ctrl/agg_rbox_ctrl.o > ctrl/agg_slider_ctrl.o ctrl/agg_spline_ctrl.o ctrl/agg_scale_ctrl.o > ctrl/agg_polygon_ctrl.o ctrl/agg_bezier_ctrl.o ../gpc/gpc.o > g++: language ar not recognized > ... > g++: language ar not recognized > /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o: In function > `_start': > crt1.s:(.text+0x5c): undefined reference to `main' > collect2: ld returned 1 exit status > make[1]: *** [all] Error 1 > make[1]: Leaving directory `/usr/local/agg-2.4/src' > make: *** [src/libagg.a] Error 2 > > Any thoughts, anyone? Thanks. > > - Tim > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: Trent Erickson [mailto:trente at umn.edu] > Sent: Tuesday, October 16, 2007 9:45 PM > To: Nolte, Tim > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > The sunfreeware gcc package is compiled with --with-ld=/usr/ccs/bin/ld > so it can be hard to get around it. (you can see this by running g++ -v) > > The sun ld version did not want to compile agg for me. I ended up > renaming /usr/ccs/bin/ld to /usr/ccs/bin/ld-off I then put it back > after the compile. This of course requires root access. > > It is not very elegant but it worked. If anyone has any other > suggestions I'd love to know how to force the proper ld with resorting > to this. It just plain ignored the makefile and environment settings. > > -Trent > > Nolte, Tim wrote: > >> OK, well here's my setup. I have the following sunfreeware packages >> installed: >> >> gcc-3.4.6-sol10-x86-local >> make-3.81-sol10-x86-local >> automake-1.10-sol10-x86-local >> libtool-1.5.24-sol10-x86-local >> >> I've set my PATH environment to use '/usr/local/bin' before >> '/usr/ccs/bin'. And my g++/gcc/make/ar/ld are all GNU when I run >> > 'type' > >> on them. I did notice that gcc reports (Configured with: ../configure >> --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared >> --enable-languages=c,c++,f77) so I'm not sure if this would be an >> > issue. > >> Thanks for any other thoughts. >> >> ---- >> Timothy J Nolte - tnolte at ilpcs.com >> Associate Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> > > From IANT at NAPIER.GOVT.NZ Wed Oct 17 15:19:22 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Thu, 18 Oct 2007 11:19:22 +1300 Subject: Secure Data Access Agreements Message-ID: Hi All, We are looking at allowing specific users (developers, contractors, etc) to have access to more accurate data and additional datasets via a secure login on our web based mapping interface. I have been asked to prepare an agreement and request forms for this. I have had a look around at what I currently have, but these aren't really suitable for this. My questions are: How do other organisations deal with this? Is anyone able to share the agreement with me? Does anyone have a template that I can modify? Also is it possible to have WMS / WFS services prompt for a user name and password (this is another delivery option I want to look at). Any help would be appreciated. Cheers Ian ______________________ Ian Tidy GIS Analyst / Developer Works Asset Department Napier City Council Hastings St, Private Bag 6010, Napier, New Zealand Phone +64-6-835-7579 Ext. 8115 Fax +64-6-834-4195 mailto:iant at napier.govt.nz http://www.napier.govt.nz | http://maps.napier.govt.nz ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From IANT at NAPIER.GOVT.NZ Wed Oct 17 15:40:07 2007 From: IANT at NAPIER.GOVT.NZ (Ian Tidy) Date: Thu, 18 Oct 2007 11:40:07 +1300 Subject: FW: Secure Data Access Agreements Message-ID: > Hi All, > > We are looking at allowing specific users (developers, contractors, > etc) to have access to more accurate data and additional datasets via > a secure login on our web based mapping interface. > > I have been asked to prepare an agreement and request forms for this. > I have had a look around at what I currently have, but these aren't > really suitable for this. > > My questions are: > How do other organisations deal with this? > Is anyone able to share the agreement with me? > Does anyone have a template that I can modify? > > Also is it possible to have WMS / WFS services prompt for a user name > and password (this is another delivery option I want to look at). > > Any help would be appreciated. > > Cheers Ian > ______________________ > Ian Tidy > GIS Analyst / Developer > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > Phone +64-6-835-7579 Ext. 8115 > Fax +64-6-834-4195 > mailto:iant at napier.govt.nz > http://www.napier.govt.nz | http://maps.napier.govt.nz > > > ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### ###################################################################### Attention: This e-mail message and accompanying data may contain information that is confidential and subject to legal privilege. Any information provided is given in good faith. However unless specifically stated to the contrary, Napier City Council accepts no liability for the content of this e-mail or for the consequences of any action taken on the basis of the information provided, unless that information is subsequently confirmed in writing. If you are not the intended recipient, you are notified that any use, dissemination, distribution or copying of this message or data is prohibited. If you received this e-mail message in error, please notify us immediately and erase all copies of this message and attachments. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kreshna_iceheart at YAHOO.COM Wed Oct 17 22:27:57 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Wed, 17 Oct 2007 22:27:57 -0700 Subject: Looking for public-accessible SHPs to practice Tile Indexing In-Reply-To: <470E6205.2070802@tamu.edu> Message-ID: Sorry for the late reply, but thanks for the linky! :) I still wonder though; does Tile Indexing support MapInfo .TAB files? -Krsh --- Gerry Creager wrote: > take a look at ftp://aprs.tamu.edu/pub/TIGER_2006_SE > and snag the > various zip files. That will give a number of TIGER > shapefiles > available for such work. > > gerry > > kreshna_iceheart at yahoo.com wrote: > > I'm really interested in Tile Indexing (tile4ms) > > function of MapServer, and I'm actually going to > work > > on adjacent SHPs. > > > > I just wonder --is there any adjacent SHP files to > > download, to practice the Tile Indexing function? > > > > This page: > > > http://mapserver.gis.umn.edu/docs/reference/utilityreference/tile4ms/?searchterm=Tile%20Index > > mentions about TIGER Census data (which consists > > adjacent SHPs, isn't it?), but when I went to the > > download page, I didn't find the link (duh!). > > > > Also, the tile4ms function only create an SHP file > > that functions as "index", but in order to display > the > > individual data contained in each SHP (polygon, > line, > > etc), I still need to declare each SHP file (as > > layers) in my MAP file, do I not? > > > > Thanks & regards, > > -Kresh > > > > > > > > > __________________________________________________________________ > > So be it. If saying "NO" means being alone, then > to hell with love, with women, with marriage, with > God, religions, bars, nightclubs, computer games, > and all the shit life keeps pumping at me. I'll walk > alone, but with freedom and a healed pride. > > > > > > > > > ____________________________________________________________________________________ > > Looking for a deal? Find great prices on flights > and hotels with Yahoo! FareChase. > > http://farechase.yahoo.com/ > > -- > Gerry Creager -- gerry.creager at tamu.edu > Texas Mesonet -- AATLT, Texas A&M University > Cell: 979.229.5301 Office: 979.458.4020 FAX: > 979.862.3983 > Office: 1700 Research Parkway Ste 160, TAMU, College > Station, TX 77843 > __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From webb.sprague at GMAIL.COM Wed Oct 17 22:32:08 2007 From: webb.sprague at GMAIL.COM (Webb Sprague) Date: Wed, 17 Oct 2007 22:32:08 -0700 Subject: mutually exclusive layers in shp2img? Message-ID: Could someone tell me why I can't get both triangles airports AND my "random polys" to display in the same map? If I want to see my random_polys I have to leave out the "-l airports_nearby" in the command. I can send pictures if necessary, but will hold off for now. Thx Command: shp2img -m or_mapfile.map -l counties -l random_polys -l airports_nearby -o random_polys.jpg -e $SMALL_AREA_EXTENT Mapfile: MAP NAME ORCounties SIZE 1200 1200 IMAGECOLOR 180 180 250 IMAGETYPE PNG UNITS FEET EXTENT 183000 88000 2346000 1676000 # Derived from bbox of collect of all the counties #POLYGON((464233.4375 1145386.125, # 464233.4375 1481634,1014976.6875 1481634,1014976.6875 1145386.125,464233.4375 1145386.125)) #EXTENT 460000 1140000 1016000 1483000 # 4 Portland counties bbox plus FONTSET "./fonts.list" WEB IMAGEPATH "/tmp/" IMAGEURL "/tmp/" END SYMBOL NAME "triangle" TYPE vector POINTS 0 4 2 0 4 4 0 4 END END LAYER NAME "counties" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from counties" #Note - a space before the end quote messes everything up STATUS DEFAULT TYPE POLYGON TRANSPARENCY 25 LABELITEM "county_nam" CLASS OUTLINECOLOR 1 1 1 COLOR 205 92 82 LABEL COLOR 1 1 1 TYPE TRUETYPE SIZE 10 FONT "arial3" END END END LAYER NAME "collected_counties" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from collected_counties" #Note - a space before the end quote messes everything up TYPE POLYGON TRANSPARENCY 50 CLASS OUTLINECOLOR 0 0 0 COLOR 205 205 205 END END LAYER NAME "random_polys" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from random_polys" TYPE POLYGON TRANSPARENCY 50 CLASS OUTLINECOLOR 1 1 1 COLOR 205 205 205 END #end class END # end layer LAYER NAME "airports" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from airports_view" TYPE POINT LABELITEM "name" LABELCACHE ON CLASS NAME "LocationSymbol" SYMBOL "triangle" COLOR 20 20 20 LABEL COLOR 1 1 1 TYPE TRUETYPE SIZE 8 FONT "arial3" POSITION cc ANGLE AUTO PARTIALS FALSE END #end label END #end class END # end layer LAYER NAME "airports_nearby" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from airports_nearby" TYPE POINT LABELITEM "name" LABELCACHE ON CLASS NAME "LocationSymbol" SYMBOL "triangle" COLOR 20 90 80 LABEL COLOR 1 1 1 TYPE TRUETYPE SIZE 8 FONT "arial3" #POSITION cc #ANGLE AUTO #PARTIALS FALSE END #end label END #end class END # end layer LAYER NAME "hwys" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from hwys2006" TYPE LINE CLASS COLOR 100 100 82 MINSIZE 4 END END LAYER NAME "shiptracks" CONNECTIONTYPE postgis CONNECTION "user=wsprague dbname=or_gis host=localhost" DATA "the_geom from shiptracks" TYPE LINE CLASS COLOR 100 100 82 MINSIZE 4 END END From thomas.bonfort at GMAIL.COM Wed Oct 17 23:31:23 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Thu, 18 Oct 2007 08:31:23 +0200 Subject: mutually exclusive layers in shp2img? In-Reply-To: Message-ID: the command line should be like shp2img -m or_mapfile.map -l "counties random_polys airports_nearby" -o random_polys.jpg -e $SMALL_AREA_EXTENT cheers, tb On 10/18/07, Webb Sprague wrote: > Could someone tell me why I can't get both triangles airports AND my > "random polys" to display in the same map? If I want to see my > random_polys I have to leave out the "-l airports_nearby" in the > command. > > I can send pictures if necessary, but will hold off for now. > > Thx > > Command: > > shp2img -m or_mapfile.map -l counties -l random_polys -l > airports_nearby -o random_polys.jpg -e $SMALL_AREA_EXTENT > > Mapfile: > > MAP > > NAME ORCounties > SIZE 1200 1200 > IMAGECOLOR 180 180 250 > IMAGETYPE PNG > UNITS FEET > > EXTENT 183000 88000 2346000 1676000 # Derived from bbox of > collect of all the counties > #POLYGON((464233.4375 1145386.125, > # 464233.4375 1481634,1014976.6875 > 1481634,1014976.6875 1145386.125,464233.4375 1145386.125)) > #EXTENT 460000 1140000 1016000 1483000 # 4 Portland > counties bbox plus > > FONTSET "./fonts.list" > > WEB > IMAGEPATH "/tmp/" > IMAGEURL "/tmp/" > END > > SYMBOL > NAME "triangle" > TYPE vector > POINTS > 0 4 > 2 0 > 4 4 > 0 4 > END > END > > LAYER > NAME "counties" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from counties" #Note - a space before > the end quote messes everything up > STATUS DEFAULT > TYPE POLYGON > TRANSPARENCY 25 > LABELITEM "county_nam" > CLASS > OUTLINECOLOR 1 1 1 > COLOR 205 92 82 > LABEL > COLOR 1 1 1 > TYPE TRUETYPE > SIZE 10 > FONT "arial3" > END > END > END > > > LAYER > NAME "collected_counties" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from collected_counties" #Note - a > space before the end quote messes everything up > TYPE POLYGON > TRANSPARENCY 50 > CLASS > OUTLINECOLOR 0 0 0 > COLOR 205 205 205 > END > END > > > LAYER > NAME "random_polys" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from random_polys" > TYPE POLYGON > TRANSPARENCY 50 > CLASS > OUTLINECOLOR 1 1 1 > COLOR 205 205 205 > END #end class > END # end layer > > > LAYER > NAME "airports" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from airports_view" > TYPE POINT > LABELITEM "name" > LABELCACHE ON > CLASS > NAME "LocationSymbol" > SYMBOL "triangle" > COLOR 20 20 20 > > LABEL > COLOR 1 1 1 > TYPE TRUETYPE > SIZE 8 > FONT "arial3" > POSITION cc > ANGLE AUTO > PARTIALS FALSE > END #end label > END #end class > END # end layer > > LAYER > NAME "airports_nearby" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from airports_nearby" > TYPE POINT > LABELITEM "name" > LABELCACHE ON > CLASS > NAME "LocationSymbol" > SYMBOL "triangle" > COLOR 20 90 80 > LABEL > COLOR 1 1 1 > TYPE TRUETYPE > SIZE 8 > FONT "arial3" > #POSITION cc > #ANGLE AUTO > #PARTIALS FALSE > END #end label > END #end class > END # end layer > > > LAYER > NAME "hwys" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from hwys2006" > TYPE LINE > CLASS > COLOR 100 100 82 > MINSIZE 4 > END > END > > LAYER > NAME "shiptracks" > CONNECTIONTYPE postgis > CONNECTION "user=wsprague dbname=or_gis host=localhost" > DATA "the_geom from shiptracks" > TYPE LINE > CLASS > COLOR 100 100 82 > MINSIZE 4 > END > END > From proyectos at ADROCHES.ORG Thu Oct 18 00:04:15 2007 From: proyectos at ADROCHES.ORG (Manuel Ballesteros Cardador) Date: Thu, 18 Oct 2007 09:04:15 +0200 Subject: RV: [UMN_MAPSERVER-USERS] Don't draw GIF/PNG images on wms clients.] Message-ID: Hi Jukka, I have changed TYPE parameter to RASTER and don't work. I want to serve local vector(SHP or PostGis DB) to my WMS layer. I have any mistake? Best Regards! From gilles.bassiere at MAKINA-CORPUS.COM Thu Oct 18 01:16:00 2007 From: gilles.bassiere at MAKINA-CORPUS.COM (=?ISO-8859-15?Q?Gilles_Bassi=E8re?=) Date: Thu, 18 Oct 2007 10:16:00 +0200 Subject: RV: [UMN_MAPSERVER-USERS] Don't draw GIF/PNG images on wms clients.] In-Reply-To: <006401c81155$189d1820$49d74860$@org> Message-ID: Manuel Ballesteros Cardador wrote: > Hi Jukka, I have changed TYPE parameter to RASTER and don't work. > > I want to serve local vector(SHP or PostGis DB) to my WMS layer. > > I have any mistake? > > Best Regards! > The layer TYPE parameter specify the type of your *input* data. So, if you want to serve vector data, this type should be either 'point', 'line' or 'polygon'. Just keep in mind that a WMS always return an image, even if you input some vector data. To specify a shapefile datasource, use: DATA "/path/to/my/file.shp To specify a PostGIS datasource, use: CONNECTIONTYPE postgis CONNECTION "host= dbname= user= password= port=" DATA " from " Of course, you have to replace parameter values with your local settings. You should have a look at http://mapserver.gis.umn.edu/docs/reference/mapfile. It's a useful resource. Regards -- Gilles Bassiere MAKINA CORPUS 30 rue des Jeuneurs FR-75011 PARIS http://www.makina-corpus.com From metlud at YAHOO.IT Thu Oct 18 01:32:28 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Thu, 18 Oct 2007 10:32:28 +0200 Subject: very large tile index Message-ID: Is ogrtindex able to create a "fusion" of many shape files? If it is the same as tile4ms (= it creates an index file which references many shape files), the problem is not solved: when building the max extent of the map with, for example, a layer with state, region and city boundaries, almost all the shape files indexed must be opened and processed, causing very bad performance. The solution "The operational solution is to create a low resolution MOSAICED layer all in one file and use MINSCALE/MAXSCALE on the layers to switch between the tileindex layer and the overview layer at appropriate scales" wrote by Frank Warmerdam speaks about an union of many single files covering small region in a greater file covering a bigger region. The solution sounds good also for vector data, but I don't know any tool to create such a bigger shape file containing features, not tiles pointers. ----- Original Message ----- From: "Gregor Mosheh" To: Sent: Wednesday, October 17, 2007 5:46 PM Subject: Re: [UMN_MAPSERVER-USERS] very large tile index > Ludovico Bianchini wrote: >> if I understood completely those suggestions are for raster images. I'm >> in a same trouble with a large (indexing 2500 tile) shape file index, >> generated with tile4ms. How can I "mosaic" many shape files? > > Use ogrtindex (as compared to gdaltindex) in much the same way. > > All of the issues described here are identical in nature: finding and > opening many files is inherently slow and should be avoided when possible. > > -- > Gregor Mosheh / Greg Allensworth > System Administrator, HostGIS cartographic development & hosting services > http://www.HostGIS.com/ > > "Remember that no one cares if you can back up, > only if you can restore." - AMANDA Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From joseramonlopez at GMAIL.COM Thu Oct 18 02:19:27 2007 From: joseramonlopez at GMAIL.COM (=?ISO-8859-1?Q?Jos=E9_Ram=F3n_L=F3pez?=) Date: Thu, 18 Oct 2007 11:19:27 +0200 Subject: Problems with Mapserver 5 In-Reply-To: Message-ID: Thxs Thomas. The problems was related with the TRANSPARENCY parameter, i chaned it and works fine. Thx u very much 2007/10/17, thomas bonfort : > > Jos?, > > TRANSPARENCY 0 has been deprecated in 5.0 and been replaced with > OPACITY. and a layer with 0 opacity being fully transparent, it is not > drawn. > > tb > > On 10/17/07, Jos? Ram?n L?pez wrote: > > Hi list. > > > > Im trying to configure mapserver with Oracle Spatial or OCI connection > > This is my layer: > > > > LAYER > > NAME CARRETERAS > > TYPE LINE > > STATUS ON > > CONNECTIONTYPE OGR > > CONNECTION " OCI:sde/password at SDE" > > DATA "SDE.RED_CARRETERAS" > > DUMP TRUE > > DEBUG ON > > PROCESSING "CLOSE_CONNECTION=DEFER" > > TRANSPARENCY 0 > > PROJECTION > > "init=epsg:23030" > > END > > CLASS > > STYLE > > COLOR 0 0 0 > > END > > NAME 'Carreteras' > > END > > METADATA > > "wms_title" "Red Carreteras" > > "wms_keywordlist" "WMS Carreteras" > > "wms_srs" "epsg:23030" > > "wms_extent" "164590 4062740 579080 4266350" > > END > > END > > > > > > Mapserver allways send to me a blank image. > > I'd use shp2img , and allways send me a blank image, with this command: > > > > C:\ms4w-v5\tools\mapserv>shp2img.exe -m c:\ms4w-v5\maps\map\wms.map -i > png > > -o C:\test.png -all_debug 9 -l CARRETERAS > > msDrawMap(): Layer 1 (CARRETERAS), 0.000s > > msDrawMap(): Drawing Label Cache, 0.000s > > msDrawMap() total time: 0.000s > > msFreeMap(): freeing map at 0144B390. > > > > and made some test for testing oracle connection with og2info, and works > > correctly, like: > > > > C:\ms4w-v5\tools\mapserv>ogrinfo.exe OCI:sde/password at SDE: > sde.RED_CARRETERAS > > -SO > > INFO: Open of `OCI:sde/sde at SDE:sde.RED_CARRETERAS' > > using driver `OCI' successful. > > 1: sde.RED_CARRETERAS > > > > if i use the command with -al option, it sends to me all information > > allocated in this layer. > > > > Is the problem related with system enviroment? > > > > In httd.conf: > > > > SetEnv PATH "C:/Oracle/oracle10g/BIN" > > SetEnv TNS_ADMIN "C:/Oracle/oracle10g/NETWORK/ADMIN" > > SetEnv ORACLE_SID SDE > > SetEnv ORACLE_BASE "C:/Oracle/oracle10g" > > SetEnv ORACLE_HOME "C:/Oracle/oracle10g" > > SetEnv LD_LIBRARY_PATH "C:\Oracle\oracle10g\LIB" > > > > and de tnsadmin.ora file > > > > SDE= > > (DESCRIPTION = > > (ADDRESS_LIST = > > (ADDRESS = (PROTOCOL = TCP)(HOST = 172.19.133.19)(PORT = 1521)) > > ) > > (CONNECT_DATA = > > (SERVICE_NAME = sde) > > ) > > ) > > > > Windows 2003 System Enviroment: > > > > > Path=\ms4w\Apache\cgi-bin;\ms4w\tools\gdal-ogr;\ms4w\tools\mapserv;\ms4w\tools\shapelib;\ms4w\proj\bin;\ms4w\tools\shp2tile;\ms4w\tools\shpdiff;\ms4w\tools\avce00;C:\oracle\Oracle10g\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem > > PROJ_LIB=\ms4w-v5\proj\nad > > ORACLE_HOME=C:\oracle\Oracle10g > > > > In ms_erro.txt file nothing is registered. > > > > Thxs > > > > > > > > > > > > > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcos at BURKE.ATH.CX Thu Oct 18 03:35:41 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Thu, 18 Oct 2007 12:35:41 +0200 Subject: Time series persistence In-Reply-To: <13261150.post@talk.nabble.com> Message-ID: El mi?, 17-10-2007 a las 12:29 -0700, SamHiatt escribi?: > Hi! > > I wish I could help you answer your question... but actually I'm interested > in hearing about what you are doing with timeseries in mapserver. > > You mentioned that you are using MapBuilder on the front end. I'm gonna > take a guess... are you using MapBuilder to communicate with Mapserver via > WMS? So you have your mapfile set up with a tileindex layer, wms_time > metadata, etc? > > Sam > Actually, there is no mapfile. The map definition is built up from a Django application using Python Mapscript. Django serves dynamically the config.xml and the context.xml files needed by mapbuilder based on the metadata stored in the database. It also generates appropiate color scales, etc, for a built-from-scratch MapObj. Then mapbuilder requests the time slices needed. This time information gets converted to a where clause for PostGIS. I think I don't need a tileindex, since the data is in the db. ?Any suggestions? From jorn at SPACETEC.NO Thu Oct 18 04:08:20 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Thu, 18 Oct 2007 13:08:20 +0200 Subject: Layer doesn't work in 5.0 In-Reply-To: <200710161538.13106.jorn@spacetec.no> Message-ID: Hi, it seems that TRANSPARENCY _must_ be larger than 0 in v5.0. In v4.9 it works ok, e.g. my layer is visible with TRANSPARENCY=0. cheers J?rn Vegard On Tuesday 16 October 2007 15:38, J?rn Vegard R?snes wrote: > Hi all, > > I've just tried to migrate from FWTools1.3.7 / MS 4.9 to FWTools1.3.9 / MS > 5.0. > The problem is that my PostGIS layer doesn't want to show up in 5.0. > My layer conf is below. > I've read the migration guide, but can't find the problem. > http://trac.osgeo.org/mapserver/browser/branches/branch-5-0/mapserver/MIGRA >TION_GUIDE.TXT > > Does anyone else see the problem? > > cheers > J?rn Vegard > > > LAYER > NAME "layer_20071005_141040" > CONNECTIONTYPE POSTGIS > CONNECTION "user=postgres dbname=db host=hostname port=5432" > DATA "poly from feature using SRID=4326" > TYPE point > STATUS ON > TRANSPARENCY 0 > DEBUG ON > CLASS > TEXT (oil-[oid]-[acquisition_time]) > EXPRESSION ('[timestamp]' == '20071005_141040' AND [threshold] >= > 0 AND [threshold] < 100) > LABEL > FONT arial > TYPE TRUETYPE > SIZE 8 > MINDISTANCE 10000 > POSITION UR > ANGLE 30 > COLOR 0 0 0 > END > STYLE > COLOR 224 64 0 > END > END > PROJECTION > "init=epsg:4326" > END > END From kreshna_iceheart at YAHOO.COM Thu Oct 18 05:43:35 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Thu, 18 Oct 2007 05:43:35 -0700 Subject: Map fails to display in interactive mode (&mode=browse). Help! Message-ID: So I'm experimenting with MapServer on my notebook with Windows XP SP2, Apache 2.0.54, and MapServer for Windows (MS4W) 1.2.2. My file placement scheme is fairly complex, because I put map-related files (.MAP, .SHP, etc) and HTML files on different folders. Here's the folders where I put map-related files: C:\mapfiles\mapfile\ C:\mapfiles\shp\ C:\mapfiles\font\ C:\mapfiles\simbol\ And here's the folders where I put HTML templates and TEMP files: C:\ms4w\Apache\htdocs\html\ C:\ms4w\Apache\htdocs\temp\ C:\ms4w\Apache\cgi-bin\ -=> where mapserv.exe resides I do not use absolute folder hierarchy in my URL references, though. Instead, I use relative folder hierarchy. For example, here's how I write the URL on my browser, to call a map file from the folder where mapserv.exe resides (traversing from C:\ms4w\Apache\cgi-bin\to C:\mapfiles\mapfile\): http://localhost/cgi-bin/mapserv.exe?map=../../../mapfiles/mapfile/map01.map&layers=All&mode=map And here's how I specify the SHP folders from my map files. SHAPEPATH "../shp" FONTSET "../font/font.dat" SYMBOLSET "../simbol/simbol.sym" IMAGECOLOR 210 233 255 # biru muda WEB TEMPLATE '../../ms4w/Apache/htdocs/html/map01_tmp1.html' IMAGEPATH '../../ms4w/Apache/htdocs/temp/' IMAGEURL '../../ms4w/Apache/htdocs/temp/' So as you see above, I use relative folder hierarchy to specify those folders (IMO it's a good practice in linux environment). So far, I have created various map files and I haven't had any problems displaying maps (SHP layers) in static mode (&mode=map). Then I tried to use interactive mode (&mode=browse). I have created a map file for that purpose, and I have made the necessary HTML template file and the HTML legends file. I attached those files with this mail: - map file: map01.map - HTML template: map01_tmp1.html - HTML legends: map01_leg.html First, I tested my map file in static mode, and the maps are displayed correctly without problems. However, when I try to call the map file in browse mode, the map just failed to display. All I got is just red "X" where the map should be displayed. (I cannot attach the screenshots because they're larger than 80k) I have confirmed that it is not the problem with my browser; I have tried another browser (Opera) and the problem stays. Besides, non-MapServer web pages (like Google, etc) display pictures with no problem. And when I checked the TEMP folder (C:\ms4w\Apache\htdocs\temp\), MapServer actually CREATED all those temporary GIF files whenever I open the map file using browser mode. In fact, when I view the resulting HTML codes from my browser, the page DOES refer to the temporary .GIF files being created by MapServer. I attached the resulting HTML code as well (03_the_resulting_html_code.txt). Alas, the page just does not display those temporary .GIF files --it just displays all the red "X" marks. So what's wrong here? Is it the fault of my browser? But I have tried other browser and the problem stays. Or maybe because my complex folder scheme? Probably because I use relative folder hierarcy to call the necessary files? But all map files I have created have no problems at all displaying the maps in static mode. Or maybe there's a component I forgot to install? Help! -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: map01.map Type: application/octet-stream Size: 3086 bytes Desc: 1821074254-map01.map URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: map01URL.txt URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 03_the_resulting_html_code.txt URL: From matteo.rossi at UNIROMA1.IT Thu Oct 18 06:22:04 2007 From: matteo.rossi at UNIROMA1.IT (matteo rossi) Date: Thu, 18 Oct 2007 15:22:04 +0200 Subject: problems printing maps In-Reply-To: Message-ID: Hi list, on our webgis developped with mapserve (KaMap) we have some problem printing the mapoutput and searching the database for a word matching. the strings are respectively: *Fatal error*: Call to a member function selectOutputFormat() on a non-object in *C:\ms4w\apps\ka-map-1.0\htdocs\tools\print\print_map.php* on line *291 **Fatal error*: Call to a member function preparequery() on a non-object in *C:\ms4w\apps\ka-map-1.0\htdocs\tools\search\kaSearch.php* on line *92 *can you help us to fix it? thanks a lot matteo rossi -- Dott.Ing. Matteo Rossi Phd in Environmental Engineering Dept. Hydraulics, Transportations and Roads Faculty of Engineering University "La Sapienza" of Rome tel: +39 0644585024 fax: +39 0644585016 web: http://geoingegneria.dits.uniroma1.it/ mailto: matteo.rossi at uniroma1.it From warmerdam at POBOX.COM Thu Oct 18 06:45:48 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 Oct 2007 09:45:48 -0400 Subject: very large tile index In-Reply-To: <00c201c81161$6bf509e0$4001a8c0@MRHYDE> Message-ID: Ludovico Bianchini wrote: > Is ogrtindex able to create a "fusion" of many shape files? > If it is the same as tile4ms (= it creates an index file which > references many shape files), the problem is not solved: when building > the max extent of the map with, for example, a layer with state, region > and city boundaries, almost all the shape files indexed must be opened > and processed, causing very bad performance. > The solution > "The operational solution is to create a low resolution > MOSAICED layer all in one file and use MINSCALE/MAXSCALE on the layers to > switch between the tileindex layer and the overview layer at appropriate > scales" > wrote by Frank Warmerdam speaks about an union of many single files > covering small region in a greater file covering a bigger region. The > solution sounds good also for vector data, but I don't know any tool to > create such a bigger shape file containing features, not tiles pointers. Ludovico, ogrtindex does not do this sort of union operation. It is possible to use ogr2ogr to merge multiple datasets though it can be a bit tricky (see -append flag). Generalization for overviews is a more complex process. It could be accomplished within PostGIS I think, or perhaps using a "real gis system" like GRASS. Basically it is a fairly involved data processing operation. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From dmorissette at MAPGEARS.COM Thu Oct 18 07:23:50 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 18 Oct 2007 10:23:50 -0400 Subject: Looking for public-accessible SHPs to practice Tile Indexing In-Reply-To: <281582.11896.qm@web56115.mail.re3.yahoo.com> Message-ID: kreshna_iceheart at yahoo.com wrote: > > I still wonder though; does Tile Indexing support > MapInfo .TAB files? > Yes, see: http://mapserver.gis.umn.edu/docs/howto/ogr_howto/#tileindex-with-ogr Note that in the case of TAB files, an alternative to tile indexing is to use seamless tab files (i.e. create a seamless table in MapInfo with all your files and point to it in your layer's CONNECTION string). MapServer/OGR handle seamless tab files transparently. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at DNR.STATE.MN.US Thu Oct 18 07:45:57 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 18 Oct 2007 09:45:57 -0500 Subject: wfs geometry property element order Message-ID: Mind you this was just a quick thought, but I was thinking of being rather explicit: gmp_property_order "delimited list of properties" thus avoiding having to parse a schema. If that metadata tag isn't set then data order prevails. Steve >>> "Rushforth, Peter" 10/17/07 3:11 PM >>> Hi Steve, So what values might gml_property_order have? A value to indicate as layed out according to metadata (suggest "metadata") and a value to indicate as layed according to as found in the data (suggest "data"), are there any other possibilities? Cheers, Peter > -----Original Message----- > From: Steve Lime [mailto:Steve.Lime at dnr.state.mn.us] > Sent: October 17, 2007 15:17 > To: MAPSERVER-USERS at LISTS.UMN.EDU; Rushforth, Peter > Subject: Re: [UMN_MAPSERVER-USERS] wfs geometry property element order > > We could consider an gml_property_order transformation? If > not set then the current ordering would be maintained. > > Steve > > >>> "Rushforth, Peter" 10/17/07 11:21 AM >>> > Hi Tom, > > Thanks for the response. > > Some of the CGDI interoperability pilot project participants > are using MapServer. > > We established an application schema based on the geobase.ca > RoadSegment content model, which uses an xsd:sequence of > property elements. > > Cheers, > Peter > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kralidis,Tom > > [Burlington] > > Sent: October 17, 2007 12:00 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] wfs geometry property > element order > > > > Peter, > > > > Not that I know of. You could (could) run the process > through a WxS > > process, but that would be a bit of work. Or you could try > > re-ordering your application schema's elements. > > > > Out of interest. why did you want to do this? To adhere to an app > > schema? > > > > ..Tom > > > > > > ________________________________ > > > > From: UMN MapServer Users List on behalf of Rushforth, Peter > > Sent: Wed 17-Oct-07 10:05 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] wfs geometry property element order > > > > > > > > Hi, > > > > We are trying to follow an application schema with the > mapserver wfs > > component. Our source is shapefiles. We can re-order property > > elements simply by reordering the columns in the shapefile, but > > because the SHAPE column is always first in the shapefile, we can't > > re-order the geometry property to where we want it according to the > > schema. Is there a workaround for this problem? > > > > Thanks, > > > > Peter Rushforth > > Technology Advisor / Conseiller technique GeoConnections / > > G?oConnexions > > 650-615 Booth St. / rue Booth > > Ottawa ON K1A 0E9 > > E-mail / Courriel: Peter.Rushforth at NRCan.gc.ca Phone / > > T?lephone: (613) 943-0784 Fax / telecopier: (613) 947-2410 > > > > From kreshna_iceheart at YAHOO.COM Thu Oct 18 08:47:20 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Thu, 18 Oct 2007 08:47:20 -0700 Subject: Looking for public-accessible SHPs to practice Tile Indexing In-Reply-To: <47176C76.8000302@mapgears.com> Message-ID: I see! Thanks, Daniel. By the way, which one is better, performance-wise? Creating a Tile Index of .TAB files, or creating a seamless .TAB files? It seems to me that creating a seamless .TAB files is an easier approach, but does it suffer from slower map browsing that way? And if it does, does the difference noticeable enough? Thanks again, -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From gwaldron at GMAIL.COM Thu Oct 18 08:38:22 2007 From: gwaldron at GMAIL.COM (gwaldron) Date: Thu, 18 Oct 2007 08:38:22 -0700 Subject: Mapfile PROJECTION questions Message-ID: Hi, a couple (hopefully) easy questions about the PROJECTION directive in the .map file: First: I have shapefiles with .prj projection information, in WKT format. How can I represent that in the .map file? I do not see a way to put a WKT string in the PROJECTION block. (Background: I am trying to automatically generate .map files so manually converting WKT to PROJ4 strings is not really an option.) Second: How does the PROJECTION AUTO option work? I tried using this at the LAYER level, but it does not seem to work (i.e. the WFS feed gives me an error about not including a required PROJECTION block). I'm using MS4W 2.2.6 (mapserver 5.0). Thanks in advance. -- View this message in context: http://www.nabble.com/Mapfile-PROJECTION-questions-tf4647894.html#a13277353 Sent from the Mapserver - User mailing list archive at Nabble.com. From dmorissette at MAPGEARS.COM Thu Oct 18 08:55:49 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 18 Oct 2007 11:55:49 -0400 Subject: Looking for public-accessible SHPs to practice Tile Indexing In-Reply-To: <858677.41668.qm@web56113.mail.re3.yahoo.com> Message-ID: kreshna_iceheart at yahoo.com wrote: > I see! Thanks, Daniel. > > By the way, which one is better, performance-wise? > Creating a Tile Index of .TAB files, or creating a > seamless .TAB files? > > It seems to me that creating a seamless .TAB files is > an easier approach, but does it suffer from slower map > browsing that way? And if it does, does the difference > noticeable enough? > I do not have any benchmark to prove it, but I would expect the performance to be equivalent in both cases, unless you have a very large number of files (i.e. several thousands) in the seamless dataset, in which case a tileindex file in shape format pointing to TAB files may be slightly faster than the seamless TAB dataset. So if seamless tables are easy to generate for you then I see no reason to not go that route. Daniel -- Daniel Morissette http://www.mapgears.com/ From skgstyle at YAHOO.COM Thu Oct 18 09:02:25 2007 From: skgstyle at YAHOO.COM (Sean Grimland) Date: Thu, 18 Oct 2007 09:02:25 -0700 Subject: problems with nquerymap In-Reply-To: <47175DFC.5080501@uniroma1.it> Message-ID: Hi list, I have a probably simple problem. I am generating a very simple map of Californian with counties from a mapfile using php mapscript. I want to be able to click on a county and open a new web page. The problem I am having is that where I click on the map and where Mapserver thinks I click is very different. This is the html
" />
And this is a portion of the mapfile CLASS NAME 'Mendocino' EXPRESSION '06045' TEMPLATE '/na/usa/cal/06045' STYLE OUTLINECOLOR 0 0 0 COLOR 107 62 199 END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM Thu Oct 18 09:57:31 2007 From: nathan.vanderwilt at ORIONNETWORKSOLUTIONS.COM (Nathan Vander Wilt) Date: Thu, 18 Oct 2007 09:57:31 -0700 Subject: determining aspect ratio and output map extents In-Reply-To: Message-ID: We are hoping to use MapServer to automate the rasterization of a whole stack of layers. We previously did this using ArcMap's image export, and although the process was fraught with peril, the program did allow us to export a world file giving the extent of the exported images, which we rely on in a later part of our process. We've noted that the EXTENT set in the map file does not always match the output, because the output image extents also depend on the aspect ratio of the given SIZE. Do the MapServer tools provide any method to determine an optimal aspect ratio for the SIZE so that the EXTENT set in the map file will match the extent of the output image after rendering? And/or: Is there a way to query the coordinates of the output corners from a .map file, either via shp2img, the CGI or some other utility? thanks, -natevw From Daniel.Huber at CH2M.COM Thu Oct 18 09:48:47 2007 From: Daniel.Huber at CH2M.COM (Daniel Huber) Date: Thu, 18 Oct 2007 10:48:47 -0600 Subject: problems printing maps In-Reply-To: <47175DFC.5080501@uniroma1.it> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of matteo rossi > Sent: Thursday, October 18, 2007 7:22 AM > To: Huber, Daniel/COS > Subject: problems printing maps > > Hi list, > on our webgis developped with mapserve (KaMap) we have some > problem printing the mapoutput and searching the database for > a word matching. > the strings are respectively: > > *Fatal error*: Call to a member function selectOutputFormat() > on a non-object in > *C:\ms4w\apps\ka-map-1.0\htdocs\tools\print\print_map.php* > on line *291 > > **Fatal error*: Call to a member function preparequery() on a > non-object in > *C:\ms4w\apps\ka-map-1.0\htdocs\tools\search\kaSearch.php* on line *92 > > *can you help us to fix it? > > thanks a lot > > matteo rossi > > > -- > Dott.Ing. Matteo Rossi > Phd in Environmental Engineering > Dept. Hydraulics, Transportations and Roads Faculty of > Engineering University "La Sapienza" of Rome > > tel: +39 0644585024 > fax: +39 0644585016 > web: http://geoingegneria.dits.uniroma1.it/ > mailto: matteo.rossi at uniroma1.it > I suggests you subscribe to the ka-Map users list and post your questions there since it is specific to ka-Map and not MapServer. http://lists.maptools.org/mailman/listinfo/ka-map-users From skgstyle at YAHOO.COM Thu Oct 18 10:32:56 2007 From: skgstyle at YAHOO.COM (Sean Grimland) Date: Thu, 18 Oct 2007 10:32:56 -0700 Subject: problems with nquerymap SOLVED In-Reply-To: <889475.37776.qm@web30701.mail.mud.yahoo.com> Message-ID: Problem solved. I modified a CSS tag from: background: #fff url(bl_grad.jpg) fixed; to: background-image:url(bl_grad.jpg); and that fixed the problem. Cheers, Sean --- Sean Grimland wrote: > Hi list, > > I have a probably simple problem. I am generating a > very simple map of Californian with counties from a > mapfile using php mapscript. I want to be able to > click on a county and open a new web page. The > problem I am having is that where I click on the map > and where Mapserver thinks I click is very > different. > > > This is the html > >
>
> /> > > > " /> > /> > /> > >
> > And this is a portion of the mapfile > > CLASS > NAME 'Mendocino' > EXPRESSION '06045' > TEMPLATE '/na/usa/cal/06045' > STYLE > OUTLINECOLOR 0 0 0 > COLOR 107 62 199 > END > END > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From David.Fawcett at STATE.MN.US Thu Oct 18 11:29:33 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Thu, 18 Oct 2007 13:29:33 -0500 Subject: Map fails to display in interactive mode (&mode=browse). Help! In-Reply-To: A<747099.57224.qm@web56103.mail.re3.yahoo.com> Message-ID: The URL in IMAGEURL should be relative to the web root. Try something like: IMAGEURL '/temp/' David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of kreshna_iceheart at yahoo.com Sent: Thursday, October 18, 2007 7:44 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Map fails to display in interactive mode (&mode=browse). Help! So I'm experimenting with MapServer on my notebook with Windows XP SP2, Apache 2.0.54, and MapServer for Windows (MS4W) 1.2.2. My file placement scheme is fairly complex, because I put map-related files (.MAP, .SHP, etc) and HTML files on different folders. Here's the folders where I put map-related files: C:\mapfiles\mapfile\ C:\mapfiles\shp\ C:\mapfiles\font\ C:\mapfiles\simbol\ And here's the folders where I put HTML templates and TEMP files: C:\ms4w\Apache\htdocs\html\ C:\ms4w\Apache\htdocs\temp\ C:\ms4w\Apache\cgi-bin\ -=> where mapserv.exe resides I do not use absolute folder hierarchy in my URL references, though. Instead, I use relative folder hierarchy. For example, here's how I write the URL on my browser, to call a map file from the folder where mapserv.exe resides (traversing from C:\ms4w\Apache\cgi-bin\to C:\mapfiles\mapfile\): http://localhost/cgi-bin/mapserv.exe?map=../../../mapfiles/mapfile/map01 .map&layers=All&mode=map And here's how I specify the SHP folders from my map files. SHAPEPATH "../shp" FONTSET "../font/font.dat" SYMBOLSET "../simbol/simbol.sym" IMAGECOLOR 210 233 255 # biru muda WEB TEMPLATE '../../ms4w/Apache/htdocs/html/map01_tmp1.html' IMAGEPATH '../../ms4w/Apache/htdocs/temp/' IMAGEURL '../../ms4w/Apache/htdocs/temp/' So as you see above, I use relative folder hierarchy to specify those folders (IMO it's a good practice in linux environment). So far, I have created various map files and I haven't had any problems displaying maps (SHP layers) in static mode (&mode=map). Then I tried to use interactive mode (&mode=browse). I have created a map file for that purpose, and I have made the necessary HTML template file and the HTML legends file. I attached those files with this mail: - map file: map01.map - HTML template: map01_tmp1.html - HTML legends: map01_leg.html First, I tested my map file in static mode, and the maps are displayed correctly without problems. However, when I try to call the map file in browse mode, the map just failed to display. All I got is just red "X" where the map should be displayed. (I cannot attach the screenshots because they're larger than 80k) I have confirmed that it is not the problem with my browser; I have tried another browser (Opera) and the problem stays. Besides, non-MapServer web pages (like Google, etc) display pictures with no problem. And when I checked the TEMP folder (C:\ms4w\Apache\htdocs\temp\), MapServer actually CREATED all those temporary GIF files whenever I open the map file using browser mode. In fact, when I view the resulting HTML codes from my browser, the page DOES refer to the temporary .GIF files being created by MapServer. I attached the resulting HTML code as well (03_the_resulting_html_code.txt). Alas, the page just does not display those temporary .GIF files --it just displays all the red "X" marks. So what's wrong here? Is it the fault of my browser? But I have tried other browser and the problem stays. Or maybe because my complex folder scheme? Probably because I use relative folder hierarcy to call the necessary files? But all map files I have created have no problems at all displaying the maps in static mode. Or maybe there's a component I forgot to install? Help! -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From jmckenna at DMSOLUTIONS.CA Thu Oct 18 11:40:55 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Thu, 18 Oct 2007 14:40:55 -0400 Subject: Map fails to display in interactive mode (&mode=browse). Help! In-Reply-To: <747099.57224.qm@web56103.mail.re3.yahoo.com> Message-ID: Since you are an MS4W user you can download the "MapServer Itasca Demo Application" MS4W package, which is a CGI demo already configured, and follow what it does (http://www.maptools.org/ms4w/index.phtml?page=downloads.html). kreshna_iceheart at yahoo.com wrote: > So I'm experimenting with MapServer on my notebook > with Windows XP SP2, Apache 2.0.54, and MapServer for > Windows (MS4W) 1.2.2. > > My file placement scheme is fairly complex, because I > put map-related files (.MAP, .SHP, etc) and HTML files > on different folders. Here's the folders where I put > map-related files: > C:\mapfiles\mapfile\ > C:\mapfiles\shp\ > C:\mapfiles\font\ > C:\mapfiles\simbol\ > > And here's the folders where I put HTML templates and > TEMP files: > C:\ms4w\Apache\htdocs\html\ > C:\ms4w\Apache\htdocs\temp\ > C:\ms4w\Apache\cgi-bin\ -=> where mapserv.exe > resides > > > I do not use absolute folder hierarchy in my URL > references, though. Instead, I use relative folder > hierarchy. For example, here's how I write the URL on > my browser, to call a map file from the folder where > mapserv.exe resides (traversing from > C:\ms4w\Apache\cgi-bin\to C:\mapfiles\mapfile\): > http://localhost/cgi-bin/mapserv.exe?map=../../../mapfiles/mapfile/map01.map&layers=All&mode=map > > > And > here's how I specify the SHP folders from my map > files. > SHAPEPATH "../shp" > FONTSET "../font/font.dat" > SYMBOLSET "../simbol/simbol.sym" > IMAGECOLOR 210 233 255 # biru muda > > WEB > TEMPLATE > '../../ms4w/Apache/htdocs/html/map01_tmp1.html' > IMAGEPATH '../../ms4w/Apache/htdocs/temp/' > IMAGEURL '../../ms4w/Apache/htdocs/temp/' > > > So as you see above, I use relative folder hierarchy > to specify those folders (IMO it's a good practice in > linux environment). > > > So far, I have created various map files and I haven't > had any problems displaying maps (SHP layers) in > static mode (&mode=map). > > > Then I tried to use interactive > mode (&mode=browse). I have created a map file for > that purpose, and I have made the necessary HTML > template file and the HTML legends file. I attached > those files with this mail: > - map file: map01.map > - HTML template: map01_tmp1.html > - HTML legends: map01_leg.html > > First, I tested my map file in static mode, and the > maps are displayed correctly without problems. > However, when I try to call the map file in browse > mode, the map just failed to display. All I got is > just red "X" where the map should be displayed. > > (I cannot attach the screenshots because they're > larger than 80k) > > I have confirmed that it is not the problem with my > browser; I have tried another browser (Opera) and the > problem stays. Besides, non-MapServer web pages (like > Google, etc) display pictures with no problem. > > And when I checked the TEMP folder > (C:\ms4w\Apache\htdocs\temp\), MapServer actually > CREATED all those temporary GIF files whenever I open > the map file using browser mode. In fact, when I view > the resulting HTML codes from my browser, the page > DOES refer to the temporary .GIF files being created > by MapServer. I attached the resulting HTML code as > well (03_the_resulting_html_code.txt). > > Alas, the page just does not display those temporary > .GIF files --it just displays all the red "X" marks. > > So what's wrong here? Is it the fault of my browser? > But I have tried other browser and the problem stays. > > Or maybe because my complex folder scheme? Probably > because I use relative folder hierarcy to call the > necessary files? But all map files I have created have > no problems at all displaying the maps in static mode. > > Or maybe there's a component I forgot to install? > > Help! > -Kresh > > > > __________________________________________________________________ > So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > > ------------------------------------------------------------------------ > > > *Peta Interaktif* > > > > > *Skala* > Skala batang *Tampilan Peta* > Pilih Tampilan: > < br> *Legenda* > ------------------------------------------------------------------------ > [legend] > ------------------------------------------------------------------------ > > > > ------------------------------------------------------------------------ > > [leg_layer_html visibility_flag=15] > > *[leg_layer_name]* > > [leg_class_html_visibility_flag=15] > [leg_class_name] > > [/leg_class_html] > -- Jeff McKenna DM Solutions Group Inc. http://www.dmsolutions.ca From coolfrenz85 at YAHOO.COM Thu Oct 18 12:16:04 2007 From: coolfrenz85 at YAHOO.COM (cool frenz) Date: Thu, 18 Oct 2007 12:16:04 -0700 Subject: Setting Reference Map's extent dynamically Message-ID: Hi, I wish to create different reference map dynamically corresponding to different villages. I have been able to do that but the problem is how to set the extent of this reference map ? I know the extent to put but dont know how. Please let me know the way if it is possible. Given below are the methods i tried and errors i got. Code Snippet: //Creating New reference image dynamically $ret=$image_ref->saveImage("C:/ms4w/Apache/htdocs/eSagu/map/reference_img.gif"); //Now setting new extents $map->reference->set("extent",$new_rect_obj); $new_rect_obj is a rect obj and contains valid extents. But i am getting following error: Fatal error: Property 'extent' is an object and cannot be set using set(). Use the extent object's methods instead. in C:\ms4w\Apache\htdocs\eSagu\htdocs\eSaguGIS_137.php on line 466 I tried using : $map->reference->setextent( $new_rect_obj->minx - $pad, $new_rect_obj->miny - $pad, $new_rect_obj->maxx +$pad, $new_rect_obj->maxy + $pad ); But i got an error saying setextent method doesnt exist. http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/referencemapobj According to this i dont have any method except set. Please help me out ! Thanks, Piyush __________________________________________________ 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 bfraser at GEOANALYTIC.COM Thu Oct 18 12:17:52 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Thu, 18 Oct 2007 13:17:52 -0600 Subject: determining aspect ratio and output map extents Message-ID: Nate, You could ask mapserver (or shp2img) to generate GeoTIFFs as output: OUTPUTFORMAT NAME GTiff DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE RGB EXTENSION "tif" END The GeoTIFFs would have georeferencing information in it, and a utility such as gdalinfo (or the appropriate function in the gdal library) would give the extents of the image. Since mapserver was designed to serve maps on the web, the image SIZE was considered to be the most important factor (and the extents were adjusted to fit, along with a potential small adjustment of the scale). It would be a nice enhancement to shp2imge to accept a -SCALE option (or -PIXELSIZE?) and have it automatically calculate the image size required. For now, you could calculate the size in your favorite scripting langauge, and based on your desired extent and scale, create a temporary mapfile for that output image. Or use mapserv with the SIZE parameter set in the QUERY_STRING, or use mapscript... Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Nathan Vander Wilt" To: Sent: Thursday, October 18, 2007 10:57 AM Subject: [UMN_MAPSERVER-USERS] determining aspect ratio and output map extents > We are hoping to use MapServer to automate the rasterization of a > whole stack of layers. We previously did this using ArcMap's image > export, and although the process was fraught with peril, the program > did allow us to export a world file giving the extent of the exported > images, which we rely on in a later part of our process. > > We've noted that the EXTENT set in the map file does not always match > the output, because the output image extents also depend on the > aspect ratio of the given SIZE. > > Do the MapServer tools provide any method to determine an optimal > aspect ratio for the SIZE so that the EXTENT set in the map file will > match the extent of the output image after rendering? > > And/or: Is there a way to query the coordinates of the output corners > from a .map file, either via shp2img, the CGI or some other utility? > > thanks, > -natevw From Tim.Nolte at IPCSWIRELESSINC.COM Thu Oct 18 13:26:24 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Thu, 18 Oct 2007 16:26:24 -0400 Subject: Solaris AGG Compile... In-Reply-To: Message-ID: Well, I've still been unable to get a completely successful install of MapServer w/ AGG. Interestingly enough the 'mapserv' binary builds, my failure happens when trying to build 'php_mapscript.so'. I don't have time now to try and troubleshoot this some more. I'm just going to have to revert to using GD for the time being. It seems strange however that the 'mapserv' binary compiles but the php module doesn't, almost seems like a bug in the php module compile, who knows. If anyone else has some suggestions for a Solaris 10 compile for MapServer 5/AGG let me know. Thanks. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: Schlagel, Joel D ERDC-CRREL-NH > [mailto:Joel.D.Schlagel at erdc.usace.army.mil] > Sent: Wednesday, October 17, 2007 5:07 PM > To: Pete Schmitt > Cc: Nolte, Tim; Smith, Michael ERDC-CRREL-NH > Subject: FW: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > > Pete, > possibly you can get in touch with these folks as you work > to build our > 5.0 solaris distribution, and see if you can offer or receive > some support. > Not sure how far along you are but I would like to be able to > complete and > share more widely as nice a 5.0 package as we had for earlier > versions. > > Thanks > > Joel > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of Nolte, Tim > Sent: Wednesday, October 17, 2007 4:37 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > Trent, > > Initially it looked this it was going to work. AGG compiled > without any > errors and then I tried the MapServer compile only to fail > when trying to > compile php_mapscript.so, mapserv compiled without error so > I'm a little > confused with that. I'm not sure if there is a bug to address > here. I did > have to use 'CC = gcc' instead of 'CC = cc' to get the > compile to work. I'm > really hoping that I might be able to figure out some > solutions so that I can > get back to using AGG. I'm almost thinking it would have been > better to just > go with HostGIS on this server rebuild. Was there any other > things you had to > do with your compile of AGG or MapServer? I'm wondering what > compile options > others have used successfully on Solaris? > > Is there anyone else out there currently running MapServer 5 > on Solaris, and > what version of Solaris? > > > ---- > Timothy J Nolte - tnolte at ilpcs.com > Associate Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > -----Original Message----- > From: Trent Erickson [mailto:trente at umn.edu] > Sent: Wednesday, October 17, 2007 2:40 PM > To: Nolte, Tim > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > Here is a copy of my Makefile.in.SunOS. If this works for you > let me know and > I will make a mapserver bug report or a doc somewhere on > mapserver. I could > also contact the AGG people and get an alternate > Makefile.in.SunOS. I'm > running this on Solaris 9, if this works for you on Solaris > 10 its likely an > issue others are struggling with. > > ---- Makefile.in.SunOS start ---- > > AGGLIBS= -lagg > > AGGCXXFLAGS = -O3 -I/usr/openwin/include -L/usr/openwin/lib > > CXX = g++ > > C = cc > > LIB = ar cr > > .PHONY : clean > > ---- Makefile.in.SunOS end ---- > > good luck > > -Trent > > Nolte, Tim wrote: > > OK, I'm still struggling here. Here is how I modified my > > Makefile.in.SunOS: > > > > Changed: > > CXX = CC > > To: > > CXX = gcc > > > > Changed: > > C = cc > > To: > > C = gcc > > > > Added: > > AR = ar > > LD = ld > > > > Changed: > > LIB = CC -xar -o > > To: > > LIB = g++ -xar -o > > > > I've also made the change of renaming /usr/ccs/bin/ld to > > /usr/ccs/bin/ld-off during the AGG build process. Here is what I'm > > getting as output: > > > > cd src; make > > make[1]: Entering directory `/usr/local/agg-2.4/src' > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_arc.cpp -o agg_arc.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_arrowhead.cpp -o agg_arrowhead.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_bezier_arc.cpp -o agg_bezier_arc.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_bspline.cpp -o agg_bspline.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_curves.cpp -o agg_curves.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vcgen_contour.cpp -o agg_vcgen_contour.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vcgen_dash.cpp -o agg_vcgen_dash.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vcgen_markers_term.cpp -o agg_vcgen_markers_term.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vcgen_smooth_poly1.cpp -o agg_vcgen_smooth_poly1.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vcgen_stroke.cpp -o agg_vcgen_stroke.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vcgen_bspline.cpp -o agg_vcgen_bspline.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_gsv_text.cpp -o agg_gsv_text.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_image_filters.cpp -o agg_image_filters.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_line_aa_basics.cpp -o agg_line_aa_basics.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_line_profile_aa.cpp -o agg_line_profile_aa.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_rounded_rect.cpp -o agg_rounded_rect.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_sqrt_tables.cpp -o agg_sqrt_tables.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_embedded_raster_fonts.cpp -o agg_embedded_raster_fonts.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_trans_affine.cpp -o agg_trans_affine.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_trans_warp_magnifier.cpp -o agg_trans_warp_magnifier.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_trans_single_path.cpp -o agg_trans_single_path.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_trans_double_path.cpp -o agg_trans_double_path.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vpgen_clip_polygon.cpp -o agg_vpgen_clip_polygon.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vpgen_clip_polyline.cpp -o agg_vpgen_clip_polyline.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > agg_vpgen_segmentator.cpp -o agg_vpgen_segmentator.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_cbox_ctrl.cpp -o ctrl/agg_cbox_ctrl.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_gamma_ctrl.cpp -o ctrl/agg_gamma_ctrl.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_gamma_spline.cpp -o ctrl/agg_gamma_spline.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_rbox_ctrl.cpp -o ctrl/agg_rbox_ctrl.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_slider_ctrl.cpp -o ctrl/agg_slider_ctrl.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_spline_ctrl.cpp -o ctrl/agg_spline_ctrl.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_scale_ctrl.cpp -o ctrl/agg_scale_ctrl.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_polygon_ctrl.cpp -o ctrl/agg_polygon_ctrl.o > > g++ -c -O3 -I/usr/openwin/include -L/usr/openwin/lib > -I../include -L./ > > ctrl/agg_bezier_ctrl.cpp -o ctrl/agg_bezier_ctrl.o gcc -c -O3 > > -I/usr/openwin/include -L/usr/openwin/lib -I../include -L./ > > ../gpc/gpc.c -o ../gpc/gpc.o > > g++ -xar -o libagg.a agg_arc.o agg_arrowhead.o agg_bezier_arc.o > > agg_bspline.o agg_curves.o agg_vcgen_contour.o agg_vcgen_dash.o > > agg_vcgen_markers_term.o agg_vcgen_smooth_poly1.o > agg_vcgen_stroke.o > > agg_vcgen_bspline.o agg_gsv_text.o agg_image_filters.o > > agg_line_aa_basics.o agg_line_profile_aa.o agg_rounded_rect.o > > agg_sqrt_tables.o agg_embedded_raster_fonts.o agg_trans_affine.o > > agg_trans_warp_magnifier.o agg_trans_single_path.o > > agg_trans_double_path.o agg_vpgen_clip_polygon.o > > agg_vpgen_clip_polyline.o agg_vpgen_segmentator.o > ctrl/agg_cbox_ctrl.o > > ctrl/agg_gamma_ctrl.o ctrl/agg_gamma_spline.o ctrl/agg_rbox_ctrl.o > > ctrl/agg_slider_ctrl.o ctrl/agg_spline_ctrl.o ctrl/agg_scale_ctrl.o > > ctrl/agg_polygon_ctrl.o ctrl/agg_bezier_ctrl.o ../gpc/gpc.o > > g++: language ar not recognized > > ... > > g++: language ar not recognized > > /usr/local/lib/gcc/i386-pc-solaris2.10/3.4.6/crt1.o: In function > > `_start': > > crt1.s:(.text+0x5c): undefined reference to `main' > > collect2: ld returned 1 exit status > > make[1]: *** [all] Error 1 > > make[1]: Leaving directory `/usr/local/agg-2.4/src' > > make: *** [src/libagg.a] Error 2 > > > > Any thoughts, anyone? Thanks. > > > > - Tim > > > > ---- > > Timothy J Nolte - tnolte at ilpcs.com > > Associate Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > -----Original Message----- > > From: Trent Erickson [mailto:trente at umn.edu] > > Sent: Tuesday, October 16, 2007 9:45 PM > > To: Nolte, Tim > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] Solaris AGG Compile... > > > > The sunfreeware gcc package is compiled with > --with-ld=/usr/ccs/bin/ld > > > so it can be hard to get around it. (you can see this by running g++ > -v) > > > > The sun ld version did not want to compile agg for me. I ended up > > renaming /usr/ccs/bin/ld to /usr/ccs/bin/ld-off I then > put it back > > after the compile. This of course requires root access. > > > > It is not very elegant but it worked. If anyone has any other > > suggestions I'd love to know how to force the proper ld > with resorting > > > to this. It just plain ignored the makefile and environment > settings. > > > > -Trent > > > > Nolte, Tim wrote: > > > >> OK, well here's my setup. I have the following sunfreeware packages > >> installed: > >> > >> gcc-3.4.6-sol10-x86-local > >> make-3.81-sol10-x86-local > >> automake-1.10-sol10-x86-local > >> libtool-1.5.24-sol10-x86-local > >> > >> I've set my PATH environment to use '/usr/local/bin' before > >> '/usr/ccs/bin'. And my g++/gcc/make/ar/ld are all GNU when I run > >> > > 'type' > > > >> on them. I did notice that gcc reports (Configured with: > ../configure > >> --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld --enable-shared > >> --enable-languages=c,c++,f77) so I'm not sure if this would be an > >> > > issue. > > > >> Thanks for any other thoughts. > >> > >> ---- > >> Timothy J Nolte - tnolte at ilpcs.com > >> Associate Network Planning Engineer > >> > >> iPCS Wireless, Inc. > >> 4717 Broadmoor Ave, Suite G > >> Kentwood, MI 49512 > >> > >> Office: 616-656-5163 > >> PCS: 616-706-2438 > >> Fax: 616-554-6484 > >> Web: www.ipcswirelessinc.com > >> > > > > > > From szekerest at GMAIL.COM Thu Oct 18 13:56:37 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Thu, 18 Oct 2007 22:56:37 +0200 Subject: mapscript point layer zooming In-Reply-To: <13247791.post@talk.nabble.com> Message-ID: Hi, You might want to test with the drawmap C# sample (can be found in the ms4w package as well) to see whether the application can draw the layer with the same extent. (set the extent of the map in the mapfile accordingly). If drawmap behaves the same, then submit a ticket with your data file along with the mapfile for tracking down the problem. Best regards, Tamas 2007/10/17, Fanda : > I am using the latest version of mapserver (ms4w 2.2.6), c# mapscript. I > don't know exactly what inline layer means, but I don't think that's the > case of my layer. I've attached the whole mapfile to this message (the point > layer is the very last one called 'Vrty'). It shows up in full extent, but > as I pan or zoom so that any point of the layer is outside the current > extent, the whole layer disappears. > > Best regards, > Fanda > > > > Tamas Szekeres wrote: > > > > Hi, > > > > It would be helpful to post the entire mapfile you have. Are you using > > an inline layer as the point layer? > > Which projection you use with your map? What is the mapserver version? > > > > Best regards, > > > > Tamas > > > > > > 2007/10/16, Fanda : > >> Hi all, > >> I am facing really odd problem. I have some line and polygon layers in my > >> mapfile and everything goes fine with them. But there is also one POINT > >> layer and it shows up only in its full extent. If I zoom in or pan the > >> layer > >> disappears whereas the other layers are still visible as expected. There > >> is > >> no max/minscale defined. I am using C# mapscript. The definition of the > >> layer in the mapfile is as follows: > >> > >> LAYER > >> NAME Vrty > >> STATUS ON > >> TYPE POINT > >> DATA "vrty" > >> TOLERANCE 1 > >> > >> CLASS > >> NAME 'vrty' > >> STYLE > >> SYMBOL 'circle' > >> SIZE 20 > >> COLOR 255 0 0 > >> END > >> END > >> > >> PROJECTION > >> "init=epsg:2065" > >> END > >> END > >> > >> Any help would be greatly appreciated, > >> Fanda > >> -- > >> View this message in context: > >> http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13229010 > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > > > > http://www.nabble.com/file/p13247791/mapa.map mapa.map > -- > View this message in context: http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13247791 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From ryanollerenshaw at GMAIL.COM Thu Oct 18 14:55:19 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Thu, 18 Oct 2007 14:55:19 -0700 Subject: Blank page No Error Messages shown Message-ID: I just installed Mapserver 5.0 on fedora Core 6 with PHP 5.2.4. The problem is whenever i have an error in my Mapfile a blank page is displayed rather then the error message, so i have no way of telling what the problem is. I have checked both my PHP and Apache Error logs and no errors are showing there. How can i turn on error logging, or just display the error message directly using Mapserver 5.0? Thanks, -Ryan From gregor at HOSTGIS.COM Thu Oct 18 14:59:22 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Thu, 18 Oct 2007 15:59:22 -0600 Subject: Blank page No Error Messages shown In-Reply-To: <20b31d4d0710181455pa33e9b5y6d88554b16eadfdf@mail.gmail.com> Message-ID: Ryan Ollerenshaw wrote: > whenever i have an error in my Mapfile a blank page is > displayed rather then the error message I have found shp2img to be invaluable for diagnosing these sorts of issues. Give it a try. And I do agree, I'd like to see Mapserver's error reporting improved. The debug stuff, as best I could get it working, just reported profiling statistics and never helped me with debugging. That was back in the 4.8 days when I last tried it though; maybe it's improved since then. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From warmerdam at POBOX.COM Thu Oct 18 15:41:28 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 18 Oct 2007 18:41:28 -0400 Subject: Solaris AGG Compile... In-Reply-To: <1532456BD081F146A176FB6929E6B0D1AB2906@KTWMAIL.ilpcs.com> Message-ID: Nolte, Tim wrote: > Well, I've still been unable to get a completely successful install of > MapServer w/ AGG. Interestingly enough the 'mapserv' binary builds, my > failure happens when trying to build 'php_mapscript.so'. I don't have > time now to try and troubleshoot this some more. I'm just going to have > to revert to using GD for the time being. It seems strange however that > the 'mapserv' binary compiles but the php module doesn't, almost seems > like a bug in the php module compile, who knows. If anyone else has some > suggestions for a Solaris 10 compile for MapServer 5/AGG let me know. > Thanks. Tim, This problem typically means that AGG was not built with -fPIC. Object code built without -fPIC cannot be used to build a shared library (like php_mapscript.so) but will still work fine when linked statically into an executable (like mapserv). There is nothing that MapServer can do in it's build system to solve this problem. You just have to go back to AGG and built it appropriately which it doesn't make terribly easy. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From ryanollerenshaw at GMAIL.COM Thu Oct 18 15:19:22 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Thu, 18 Oct 2007 15:19:22 -0700 Subject: Blank page No Error Messages shown In-Reply-To: <4717D73A.6020000@hostgis.com> Message-ID: On 10/18/07, Gregor Mosheh wrote: > Ryan Ollerenshaw wrote: > > whenever i have an error in my Mapfile a blank page is > > displayed rather then the error message > > I have found shp2img to be invaluable for diagnosing these sorts of > issues. Give it a try. > > And I do agree, I'd like to see Mapserver's error reporting improved. > The debug stuff, as best I could get it working, just reported profiling > statistics and never helped me with debugging. That was back in the 4.8 > days when I last tried it though; maybe it's improved since then. > Thanks that did uncover an error but i am not sure that it is related. The error that i get is a Heap overflow: [ryan at xxxxx]$ shp2img -m stereo.map stereo.png *** glibc detected *** shp2img: free(): invalid next size (fast): 0x09161008 *** ======= Backtrace: ========= /lib/i686/nosegneg/libc.so.6[0x3ba2c8d] /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x3ba6340] shp2img[0x80a985e] shp2img[0x805ae2e] shp2img[0x805e6b5] shp2img(main+0xd1)[0x8050071] /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x3b51f2c] shp2img[0x804ff11] ======= Memory map: ======== 00101000-00113000 r-xp 00000000 08:01 6662305 /usr/lib/libodbcinst.so.1.0.0 00113000-00114000 rw-p 00011000 08:01 6662305 /usr/lib/libodbcinst.so.1.0.0 00114000-0011c000 r-xp 00000000 08:01 6655932 /usr/lib/libgrass_dbmiclient.so.6.2.2 ...... ...... But even when i correct my mapfile so that an image displays on the web page, i still get the error above when using shp2img even though my page display correctly. From ryanollerenshaw at GMAIL.COM Thu Oct 18 16:40:07 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Thu, 18 Oct 2007 16:40:07 -0700 Subject: shp2img error: stack trace Message-ID: I just installed Mapserver 5.0 on Fedora Core 6 with Apache 2 and PHP 5.2.4. Whenever i run shp2img i get a stack trace: [root at xxxxx]# ./shp2img -m /var/www/html/test.map -c /var/www/html/test.png *** glibc detected *** ./shp2img: free(): invalid next size (fast): 0x09cff028 *** ======= Backtrace: ========= /lib/i686/nosegneg/libc.so.6[0x3883c8d] /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x3887340] ./shp2img[0x80ab91e] ./shp2img[0x805b05e] ./shp2img[0x805e925] ./shp2img(main+0xd1)[0x8050161] /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x3832f2c] ./shp2img[0x8050001] ======= Memory map: ======== 00110000-0011c000 r-xp 00000000 08:01 6673923 /usr/local/lib/libgeos_c.so.1.1.1 0011c000-0011d000 rw-p 0000b000 08:01 6673923 /usr/local/lib/libgeos_c.so.1.1.1 0011d000-0012f000 r-xp 00000000 08:01 6662305 /usr/lib/libodbcinst.so.1.0.0 0012f000-00130000 rw-p 00011000 08:01 6662305 /usr/lib/libodbcinst.so.1.0.0 ... ... ... Here is the configure that i am using: ./configure --with-proj=/usr/local --enable-runpath --with-geos=/usr/bin/geos-config --with-ogr --with-gdal=/usr/bin/gdal-config --with-postgis=/usr/bin/pg_config --with-curl-config=/usr/bin/curl-config --with-php=/usr/local/php-5.2.4 --with-wcs --with-wfs --with-wmsclient --with-wfsclient --with-threads Make runs alright except for a couple warnings: php_mapscript.c: In function ???php3_ms_img_pasteImage???: php_mapscript.c:6327: warning: implicit declaration of function ???php_gd_gdImageColorExact??? php_mapscript.c:6331: warning: implicit declaration of function ???php_gd_gdImageColorTransparent??? php_mapscript.c:6334: warning: implicit declaration of function ???php_gd_gdImageCopy??? Any ideas on what i can do to get shp2img to work correctly? From maurosa at IOL.IT Thu Oct 18 16:50:06 2007 From: maurosa at IOL.IT (maurosa@iol.it) Date: Fri, 19 Oct 2007 01:50:06 +0200 Subject: Java mapscript problems with graphs Message-ID: Hi list I am trying to do same graphs in mapserver5 using java mapscript. It works, but I found some limits. 1) I do not known in advance which variable to plot, so I should set it in a dynamic way. But I can not set the style size as a binding variable from java. Infact style.setSize accepts only numbers, like this: layer.getClass(0).getStyle(0).setSize(10); it does not accepts strings, like this: layer.getClass(0).getStyle(0).setSize("[V1]"); 2) I do not known in advance how many variables to plot, so I should set it in a dynamic way. I thought to add as many classes to the layer as many variables to plot. Since I cannot set the binding variables due to the former problem, I manage to clone somehow prepared classes with the proper size (that is with the proper binding variable). But when I clone a class, the cloned class strangely misses the style size attribute. For instance, after the following instruction: layer.insertClass(layer.getClass(0).cloneClass(), 0); the original class looked like this: CLASS NAME "V1" STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 50 SIZE [V1] END END but the cloned class misses the size attribute and becomes: CLASS NAME "V1" STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 50 END END The same thing happens if I clone an entire layer: map.insertLayer(layer.cloneLayer(), -1); ----------- The way to go until now is to prepare, say, 10 ready classes with 10 binding variables (V1, V2, ecc.) and to cancel at run time the unwanted variables. It is a strange compromise, but it works. If it were possible to add classes and set for each one the proper binding variable, I think that graphs worked very well. Thanks for any suggestion. Mauro Sartori From ryanollerenshaw at GMAIL.COM Thu Oct 18 17:23:38 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Thu, 18 Oct 2007 17:23:38 -0700 Subject: shp2img error: stack trace In-Reply-To: <20b31d4d0710181640t152b63a7xbd789e452ecc8ef0@mail.gmail.com> Message-ID: On 10/18/07, Ryan Ollerenshaw wrote: > I just installed Mapserver 5.0 on Fedora Core 6 with Apache 2 and PHP > 5.2.4. Whenever i run shp2img i get a stack trace: > > [root at xxxxx]# ./shp2img -m /var/www/html/test.map -c /var/www/html/test.png > *** glibc detected *** ./shp2img: free(): invalid next size (fast): > 0x09cff028 *** > ======= Backtrace: ========= > /lib/i686/nosegneg/libc.so.6[0x3883c8d] > /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x3887340] > ./shp2img[0x80ab91e] > ./shp2img[0x805b05e] > ./shp2img[0x805e925] > ./shp2img(main+0xd1)[0x8050161] > /lib/i686/nosegneg/libc.so.6(__libc_start_main+0xdc)[0x3832f2c] > ./shp2img[0x8050001] > ======= Memory map: ======== > 00110000-0011c000 r-xp 00000000 08:01 6673923 > /usr/local/lib/libgeos_c.so.1.1.1 > 0011c000-0011d000 rw-p 0000b000 08:01 6673923 > /usr/local/lib/libgeos_c.so.1.1.1 > 0011d000-0012f000 r-xp 00000000 08:01 6662305 /usr/lib/libodbcinst.so.1.0.0 > 0012f000-00130000 rw-p 00011000 08:01 6662305 /usr/lib/libodbcinst.so.1.0.0 > ... > ... > ... > > Here is the configure that i am using: > > ./configure --with-proj=/usr/local --enable-runpath > --with-geos=/usr/bin/geos-config --with-ogr > --with-gdal=/usr/bin/gdal-config --with-postgis=/usr/bin/pg_config > --with-curl-config=/usr/bin/curl-config > --with-php=/usr/local/php-5.2.4 --with-wcs --with-wfs --with-wmsclient > --with-wfsclient --with-threads > > Make runs alright except for a couple warnings: > > php_mapscript.c: In function ???php3_ms_img_pasteImage???: > php_mapscript.c:6327: warning: implicit declaration of function > ???php_gd_gdImageColorExact??? > php_mapscript.c:6331: warning: implicit declaration of function > ???php_gd_gdImageColorTransparent??? > php_mapscript.c:6334: warning: implicit declaration of function > ???php_gd_gdImageCopy??? > > Any ideas on what i can do to get shp2img to work correctly? > So with the same configure command i tried: MapServer 4.10.3 : same error MapServer 4.8.4 : seemed to work fine If anyone know what the problem is with 5 and 4.10 that would be a great help. From Paul.Tildesley at CSIRO.AU Thu Oct 18 19:08:33 2007 From: Paul.Tildesley at CSIRO.AU (Paul Tildesley) Date: Fri, 19 Oct 2007 13:08:33 +1100 Subject: Adding lines to GetCapabilites document Message-ID: For a particular application that uses my WMS, I need to add something like the following lines to the GetCapabilities document generated by Mapserver: 2000-01-01T00:00:00 2010-12-31T23:59:59 This is valid in the GetCapabilities document but I cannot find a way to get Mapserver to generate this information. At present I am using a static document that has been hand modified but this is not a very satisfactory long term solution. I am currently running Mapserver 4.8.3 but I can upgrade if necessary. Any -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Thu Oct 18 21:58:13 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 19 Oct 2007 00:58:13 -0400 Subject: Adding lines to GetCapabilites document In-Reply-To: <03B9D5E5C4768D4EA3A22CCA8B498A2056A1FE@extas4-hba.tas.csiro.au> Message-ID: Paul Tildesley wrote: > For a particular application that uses my WMS, I need to add something > like the following lines to the GetCapabilities document generated by > Mapserver: > > > 2000-01-01T00:00:00 > > 2010-12-31T23:59:59 > > This is valid in the GetCapabilities document but I cannot find a way to > get Mapserver to generate this information. At present I am using a > static document that has been hand modified but this is not a very > satisfactory long term solution. > > I am currently running Mapserver 4.8.3 but I can upgrade if necessary. > > Any Any, One relatively heavy weight approach to this is to write a mapscript wrapper script using the WxS services and having that script insert your entries into the capabilities before returning it to the client. http://mapserver.gis.umn.edu/development/rfc/ms-rfc-16 For this you would need MapServer 4.10 or MapServer 5.0. Of course, you could also fairly easily write a wrapper script that doesn't even use the new RFC 16 services to do this with MappServer 4.8. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From peter.lee at PLANNINGDATAFACTORY.COM.AU Thu Oct 18 23:13:14 2007 From: peter.lee at PLANNINGDATAFACTORY.COM.AU (Peter Lee (Planning Data Factory)) Date: Fri, 19 Oct 2007 16:13:14 +1000 Subject: First exercise using Java Mapscript Message-ID: Dear List, I have some experience using Mapserver CGI but am a newie to Java Manpscript. I tried to compile my first program in windows XP with the error: import edu.umn.gis.mapscript.*; public class mapscript_basic { public static void main(String[] args) { System.loadLibrary("mapscript"); mapObj mapobject; imageObj mapimage; String mapfile; // set the map file to use mapfile = "global.map"; // create a mapObj, initilized with the mapfile above mapobject = new mapObj(mapfile); // create an imgObj that has an image of the map mapimage = mapobject.draw(); // save the mapimage to a file mapimage.save("worldmap.png",mapobject); } } Error: mapscript_basic.java:1: package edu.umn.gis.mapscript does not exist ...... In fact, I have placed the two library files mapscript.jar and mapscript.dll in the folder JAVA_HOME\lib and set the env variable CLASSPATH to JAVA_HOME\lib. I got the files from the ms4w download ver 2.2.6. The library files are located at the folder C:\ms4w\Apache\cgi-bin\mapscript\java. Any help to solving the problem will be greatly appreciated. Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From zerosgm at GMAIL.COM Fri Oct 19 00:19:18 2007 From: zerosgm at GMAIL.COM (Fanda) Date: Fri, 19 Oct 2007 00:19:18 -0700 Subject: mapscript point layer zooming In-Reply-To: Message-ID: Hi Tamas, I've tried to render the map with drawmap but it behaves exactly the same as my app. I submit all the needed data with this message. I put both the extents (full view and zoomed view when the layer 'vrty' doesn't show up) in the mapfile definition. Best regards, Fanda Tamas Szekeres wrote: > > Hi, > > You might want to test with the drawmap C# sample (can be found in the > ms4w package as well) to see whether the application can draw the > layer with the same extent. (set the extent of the map in the mapfile > accordingly). > > If drawmap behaves the same, then submit a ticket with your data file > along with the mapfile for tracking down the problem. > > > Best regards, > > Tamas > > > > > 2007/10/17, Fanda : >> I am using the latest version of mapserver (ms4w 2.2.6), c# mapscript. I >> don't know exactly what inline layer means, but I don't think that's the >> case of my layer. I've attached the whole mapfile to this message (the >> point >> layer is the very last one called 'Vrty'). It shows up in full extent, >> but >> as I pan or zoom so that any point of the layer is outside the current >> extent, the whole layer disappears. >> >> Best regards, >> Fanda >> >> >> >> Tamas Szekeres wrote: >> > >> > Hi, >> > >> > It would be helpful to post the entire mapfile you have. Are you using >> > an inline layer as the point layer? >> > Which projection you use with your map? What is the mapserver version? >> > >> > Best regards, >> > >> > Tamas >> > >> > >> > 2007/10/16, Fanda : >> >> Hi all, >> >> I am facing really odd problem. I have some line and polygon layers in >> my >> >> mapfile and everything goes fine with them. But there is also one >> POINT >> >> layer and it shows up only in its full extent. If I zoom in or pan the >> >> layer >> >> disappears whereas the other layers are still visible as expected. >> There >> >> is >> >> no max/minscale defined. I am using C# mapscript. The definition of >> the >> >> layer in the mapfile is as follows: >> >> >> >> LAYER >> >> NAME Vrty >> >> STATUS ON >> >> TYPE POINT >> >> DATA "vrty" >> >> TOLERANCE 1 >> >> >> >> CLASS >> >> NAME 'vrty' >> >> STYLE >> >> SYMBOL 'circle' >> >> SIZE 20 >> >> COLOR 255 0 0 >> >> END >> >> END >> >> >> >> PROJECTION >> >> "init=epsg:2065" >> >> END >> >> END >> >> >> >> Any help would be greatly appreciated, >> >> Fanda >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13229010 >> >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> >> >> > >> > >> http://www.nabble.com/file/p13247791/mapa.map mapa.map >> -- >> View this message in context: >> http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13247791 >> Sent from the Mapserver - User mailing list archive at Nabble.com. >> > > http://www.nabble.com/file/p13289551/data.zip data.zip -- View this message in context: http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13289551 Sent from the Mapserver - User mailing list archive at Nabble.com. From dpinte at ITAE.BE Fri Oct 19 00:32:08 2007 From: dpinte at ITAE.BE (Didrik Pinte) Date: Fri, 19 Oct 2007 09:32:08 +0200 Subject: Setting Reference Map's extent dynamically In-Reply-To: <325521.73308.qm@web30602.mail.mud.yahoo.com> Message-ID: On Thu, 2007-10-18 at 12:16 -0700, cool frenz wrote: > > I tried using : > $map->reference->setextent( $new_rect_obj->minx - $pad, > $new_rect_obj->miny - $pad, $new_rect_obj->maxx +$pad, > $new_rect_obj->maxy + $pad ); > > But i got an error saying setextent method doesnt exist. > > http://mapserver.gis.umn.edu/docs/reference/phpmapscript-class/classes/referencemapobj > According to this i dont have any method except set. ReferenceMapObj has only the method set but it has an object attribute that is extent, a rectObj. Thus, you can use it : $map->reference->extent->minx = $new_rect_obj->minx $map->reference->extent->miny = $new_rect_obj->miny ... Didrik -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From thomas.bonfort at GMAIL.COM Fri Oct 19 00:51:23 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Fri, 19 Oct 2007 09:51:23 +0200 Subject: Java mapscript problems with graphs In-Reply-To: Message-ID: mauro, I think what you are looking for is the setBinding method of the styleObj.... unfortunately I haven't found the MS_STYLE_BINDING_* constants defined for java mapscript, so for the time being there's no way to do what you want. I've cc'd umberto on this so he can confirm, and there will probably be a bug opened on this thanks, tb On 10/19/07, maurosa at iol.it wrote: > Hi list > > I am trying to do same graphs in mapserver5 using java mapscript. It works, but I found some limits. > > 1) > > I do not known in advance which variable to plot, > so I should set it in a dynamic way. > > But I can not set the style size as a binding variable from java. Infact style.setSize accepts only numbers, like this: > > layer.getClass(0).getStyle(0).setSize(10); > > it does not accepts strings, like this: > > layer.getClass(0).getStyle(0).setSize("[V1]"); > > 2) > > I do not known in advance how many variables to plot, > so I should set it in a dynamic way. > > I thought to add as many classes to the layer as many variables to plot. > Since I cannot set the binding variables due to the former problem, I manage to clone somehow prepared classes with the proper size (that is with the proper binding variable). > > But when I clone a class, the cloned class strangely misses > the style size attribute. > > For instance, after the following instruction: > > layer.insertClass(layer.getClass(0).cloneClass(), 0); > > the original class looked like this: > > CLASS > NAME "V1" > STYLE > COLOR 255 0 0 > OUTLINECOLOR 0 0 50 > SIZE [V1] > END > END > > but the cloned class misses the size attribute and becomes: > > CLASS > NAME "V1" > STYLE > COLOR 255 0 0 > OUTLINECOLOR 0 0 50 > END > END > > The same thing happens if I clone an entire layer: > > map.insertLayer(layer.cloneLayer(), -1); > > ----------- > > The way to go until now is to prepare, say, 10 ready classes > with 10 binding variables (V1, V2, ecc.) and to cancel > at run time the unwanted variables. > It is a strange compromise, but it works. > > If it were possible to add classes and set for each > one the proper binding variable, I think that graphs worked very well. > > Thanks for any suggestion. > > Mauro Sartori > From yjacolin at FREE.FR Fri Oct 19 01:14:20 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 19 Oct 2007 10:14:20 +0200 Subject: ScaleHint in GetCapabilities resquest Message-ID: Hi list, After a GetCapabilities resquest on a mapserver server, I find this line inside my xml file: In my mapfile, I defined min et max scale values with: MINSCALE 20000 MAXSCALE 500000 How can I convert the scaleHint value to the mapfile value? In other words, what does scaleHint values means? Thanks, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From metlud at YAHOO.IT Fri Oct 19 01:21:33 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Fri, 19 Oct 2007 10:21:33 +0200 Subject: very large tile index Message-ID: Thanks for suggestions, I think I will try to use GRASS or OpenJUMP (http://openjump.org/wiki/show/HomePage). Ludovico Bianchini ----- Original Message ----- From: "Frank Warmerdam" To: Sent: Thursday, October 18, 2007 3:45 PM Subject: Re: [UMN_MAPSERVER-USERS] very large tile index > Ludovico Bianchini wrote: >> Is ogrtindex able to create a "fusion" of many shape files? >> If it is the same as tile4ms (= it creates an index file which references >> many shape files), the problem is not solved: when building the max >> extent of the map with, for example, a layer with state, region and city >> boundaries, almost all the shape files indexed must be opened and >> processed, causing very bad performance. >> The solution >> "The operational solution is to create a low resolution >> MOSAICED layer all in one file and use MINSCALE/MAXSCALE on the layers to >> switch between the tileindex layer and the overview layer at appropriate >> scales" >> wrote by Frank Warmerdam speaks about an union of many single files >> covering small region in a greater file covering a bigger region. The >> solution sounds good also for vector data, but I don't know any tool to >> create such a bigger shape file containing features, not tiles pointers. > > Ludovico, > > ogrtindex does not do this sort of union operation. It is possible to > use ogr2ogr to merge multiple datasets though it can be a bit tricky > (see -append flag). > > Generalization for overviews is a more complex process. It could be > accomplished within PostGIS I think, or perhaps using a "real gis system" > like GRASS. Basically it is a fairly involved data processing operation. > > Best regards, > -- > ---------------------------------------+-------------------------------------- > I set the clouds in motion - turn up | Frank Warmerdam, > warmerdam at pobox.com > light and sound - activate the windows | http://pobox.com/~warmerdam > and watch the world go round - Rush | President OSGeo, http://osgeo.org Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From kreshna_iceheart at YAHOO.COM Fri Oct 19 01:26:50 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Fri, 19 Oct 2007 01:26:50 -0700 Subject: Map fails to display in interactive mode (&mode=browse). Help! In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB7C8@s-sp22.pca.state.mn.us> Message-ID: Thanks, it works!! :) By the way, am I correct when assuming that everything else (SHAPEPATH, FONTSET, TEMPLATE, IMAGEPATH, etc) is relative to the folder where the .MAP file resides, and only IMAGEURL is relative to the web root? Where can I find references relevant to the file location stuff above? Regards, -Kresh --- "Fawcett, David" wrote: > The URL in IMAGEURL should be relative to the web > root. Try something > like: > IMAGEURL '/temp/' > > David. > > > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On > Behalf Of kreshna_iceheart at yahoo.com > Sent: Thursday, October 18, 2007 7:44 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Map fails to display > in interactive mode > (&mode=browse). Help! > > > So I'm experimenting with MapServer on my notebook > with Windows XP SP2, Apache 2.0.54, and MapServer > for > Windows (MS4W) 1.2.2. > > My file placement scheme is fairly complex, because > I > put map-related files (.MAP, .SHP, etc) and HTML > files > on different folders. Here's the folders where I put > map-related files: > C:\mapfiles\mapfile\ C:\mapfiles\shp\ > C:\mapfiles\font\ > C:\mapfiles\simbol\ > > And here's the folders where I put HTML templates > and > TEMP files: > C:\ms4w\Apache\htdocs\html\ > C:\ms4w\Apache\htdocs\temp\ > C:\ms4w\Apache\cgi-bin\ -=> where mapserv.exe > resides > > > I do not use absolute folder hierarchy in my URL > references, though. Instead, I use relative folder > hierarchy. For example, here's how I write the URL > on > my browser, to call a map file from the folder where > mapserv.exe resides > (traversing from C:\ms4w\Apache\cgi-bin\to > C:\mapfiles\mapfile\): > http://localhost/cgi-bin/mapserv.exe?map=../../../mapfiles/mapfile/map01 > .map&layers=All&mode=map > > > And > here's how I specify the SHP folders from my map > files. > SHAPEPATH "../shp" > FONTSET "../font/font.dat" > SYMBOLSET "../simbol/simbol.sym" > IMAGECOLOR 210 233 255 # biru muda > > WEB > TEMPLATE > '../../ms4w/Apache/htdocs/html/map01_tmp1.html' > IMAGEPATH '../../ms4w/Apache/htdocs/temp/' > IMAGEURL '../../ms4w/Apache/htdocs/temp/' > > > So as you see above, I use relative folder hierarchy > to specify those folders (IMO it's a good practice > in > linux environment). > > > So far, I have created various map files and I > haven't > had any problems displaying maps (SHP layers) in > static mode (&mode=map). > > > Then I tried to use interactive > mode (&mode=browse). I have created a map file for > that purpose, and I have made the necessary HTML > template file and the HTML legends file. I attached > those files with this mail: > - map file: map01.map > - HTML template: map01_tmp1.html > - HTML legends: map01_leg.html > > First, I tested my map file in static mode, and the > maps are displayed correctly without problems. > However, when I try to call the map file in browse > mode, the map just failed to display. All I got is > just red "X" where the map should be displayed. > > (I cannot attach the screenshots because they're > larger than 80k) > > I have confirmed that it is not the problem with my > browser; I have tried another browser (Opera) and > the > problem stays. Besides, non-MapServer web pages > (like > Google, etc) display pictures with no problem. > > And when I checked the TEMP folder > (C:\ms4w\Apache\htdocs\temp\), > MapServer actually CREATED all those temporary GIF > files whenever I open > the map file using browser mode. In fact, when I > view the resulting HTML > codes from my browser, the page DOES refer to the > temporary .GIF files > being created by MapServer. I attached the resulting > HTML code as well > (03_the_resulting_html_code.txt). > > Alas, the page just does not display those temporary > .GIF files --it just displays all the red "X" marks. > > So what's wrong here? Is it the fault of my browser? > But I have tried other browser and the problem > stays. > > Or maybe because my complex folder scheme? Probably > because I use relative folder hierarcy to call the > necessary files? But all map files I have created > have > no problems at all displaying the maps in static > mode. > > Or maybe there's a component I forgot to install? > > Help! > -Kresh > > > > __________________________________________________________________ > So be it. If saying "NO" means being alone, then to > hell with love, with > women, with marriage, with God, religions, bars, > nightclubs, computer > games, and all the shit life keeps pumping at me. > I'll walk alone, but > with freedom and a healed pride. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From kreshna_iceheart at YAHOO.COM Fri Oct 19 01:32:32 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Fri, 19 Oct 2007 01:32:32 -0700 Subject: GMapFactory: creating interactive map without ROSA Java applet? Message-ID: I've never tried it myself, but after reading about it for awhile, I think GMapFactory is quite interesting because it enables us to create interactive maps easily. Alas, I also discovered that it uses ROSA Java applet, while here in Indonesia, applet is a big no-no because there's still a lot of users with older browsers withou Java plugin. I just wonder though: is it possible to create an interactive map with GMapFactory without Java applet? Thanks, -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From pscott at UWC.AC.ZA Fri Oct 19 01:36:52 2007 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri, 19 Oct 2007 10:36:52 +0200 Subject: GMapFactory: creating interactive map without ROSA Java applet? In-Reply-To: <586838.56180.qm@web56112.mail.re3.yahoo.com> Message-ID: On Fri, 2007-10-19 at 01:32 -0700, kreshna_iceheart at yahoo.com wrote: > Alas, I also discovered that it uses ROSA Java applet, > while here in Indonesia, applet is a big no-no because > there's still a lot of users with older browsers > withou Java plugin. > You may want to take a look at mscross, which is an AJAX based script that does the same stuff as ROSA. I am struggling with it at the moment, so if you need help, I can probably guide you as well. BTW, is mscross still in the limelight? or am I barking up the wrong tree? --Paul -------------- next part -------------- All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm From oliver_ishmael at HOTMAIL.COM Fri Oct 19 02:15:20 2007 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Fri, 19 Oct 2007 04:15:20 -0500 Subject: Installing to a web server Message-ID: Hello, I found the following instructions on the Mapserver website: 7.1.1 The basic install Under a default configuration, the CGI directory is "/usr/local/apache/cgi-bin" (RedHat users will use "/home/httpd/cgi-bin"). Placing the mapserv file in this directory makes it accessible by the following URL: "http://yourhostname.com/cgi-bin/mapserv". When accessing this URL through your web client, you should expect the following output if all has worked well: "No query information to decode. QUERY_STRING is set, but empty." If you get this message, you're done installing MapServer. I downloaded the latest (v5.0.0) Mapserver distribution from http://mapserver.gis.umn.edu/download/current only to find that this included many files - presumably uncompiled? Where can i find a 'Mapserv file' to put in my web servers cgi-bin? Many thanks From ale.pas at TISCALI.IT Fri Oct 19 02:25:38 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Fri, 19 Oct 2007 11:25:38 +0200 Subject: Installing to a web server In-Reply-To: Message-ID: Il venerd? 19 ottobre 2007, Oliver Ishmael ha scritto: > Hello, > > I found the following instructions on the Mapserver website: > > 7.1.1 The basic install > > Under a default configuration, the CGI directory is > "/usr/local/apache/cgi-bin" (RedHat users will use "/home/httpd/cgi-bin"). > Placing the mapserv file in this directory makes it accessible by the > following URL: "http://yourhostname.com/cgi-bin/mapserv". When accessing > this URL through your web client, you should expect the following output if > all has worked well: "No query information to decode. QUERY_STRING is set, > but empty." If you get this message, you're done installing MapServer. > > > I downloaded the latest (v5.0.0) Mapserver distribution from > http://mapserver.gis.umn.edu/download/current > only to find that this included many files - presumably uncompiled? > > Where can i find a 'Mapserv file' to put in my web servers cgi-bin? > > > Many thanks I think you are looking for a pre-compiled (aka binary) package. You have downloaded the source code. Depending on your operating system (I assume Linux) and distribution you can find packages ready to install, for example on ubuntu feisty, just add this repository: deb http://les-ejk.cz/ubuntu feisty multiverse deb-src http://les-ejk.cz/ubuntu feisty multiverse do apt-get upate and install as usual with apt-get. For other distributions similar repositories exists as well. If you don't find pre-compiled binaries for your distribution or architecture, you can quite easily compile mapserver and all its dependencies following one of the how-to's on the mapserver official site, ready to use scripts exists there. But if you've never compiled anything before, this could become a challenge. Hope it helps. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From plieger at KNMI.NL Fri Oct 19 02:44:29 2007 From: plieger at KNMI.NL (Maarten Plieger) Date: Fri, 19 Oct 2007 09:44:29 +0000 Subject: Serving many shapefiles through WFS Message-ID: Hi all, Maybe someone can help me out with this problem: What is the best solution for serving thousands of shapefiles through a Web Feature Service? These shapefiles are files with daily observations. Every day a new shapefile is generated and needs to be served. Currently I make use of a script which reads the directory with the names of the shapefiles, this script creates for each shapefile a layer in the mapfile. This means that there is a layer for each shapefile, resulting in many layers. The disadvantage is that the map file will grow to infinite in time, because every day a new file is added to the mapfile. In the case of a WMS, it is possible to make use of a TILEINDEX which contains the names of these shapefiles and their corresponding time/date of observation. With the WMS TIME parameter one can select the desired file. In this case only one layer is needed, the file with the TILEINDEX is the only thing that needs to be updated. It seems that this is not possible with a Web Feature Service. Am i right with this? So how can i serve all these shapefiles through WFS? Thanks in advance, Maarten Plieger From mdeblois at MAPLECROFT.NET Fri Oct 19 04:03:44 2007 From: mdeblois at MAPLECROFT.NET (Mark de Blois) Date: Fri, 19 Oct 2007 12:03:44 +0100 Subject: GetCapabilities request gets clipped Message-ID: Hi all, Can anyone tell me why my GetCapabilities request gets clipped for my request? It only happens when the projection is set to wintri (Winkel Triple) for which we created a custom epsg file (12345). If we change the projection of the mapfile to mercator for example, a proper XML file is built up. Could this be a bug?! The request we are using is: http://localhost/cgi-bin/mapserv5.0.0?Service=WMS&styles=&srs=epsg:12345&Version=1.1.1&Request=GetCapabilities&map=/var/www/maps/test.map cheers, Mark Maplecroft From Tom.Kralidis at EC.GC.CA Fri Oct 19 04:38:29 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 19 Oct 2007 07:38:29 -0400 Subject: Adding lines to GetCapabilites document In-Reply-To: A<03B9D5E5C4768D4EA3A22CCA8B498A2056A1FE@extas4-hba.tas.csiro.au> Message-ID: Paul, If your extension is eclusive to time, you can use WMS's TIME parameter, which MapServer supports (see the WMS Server howto). Else Frank's suggestion of the mapscript wrappers is the best bet. ..Tom ________________________________ From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Paul Tildesley Sent: 18 October, 2007 10:09 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Adding lines to GetCapabilites document For a particular application that uses my WMS, I need to add something like the following lines to the GetCapabilities document generated by Mapserver: 2000-01-01T00:00:00 2010-12-31T23:59:59 This is valid in the GetCapabilities document but I cannot find a way to get Mapserver to generate this information. At present I am using a static document that has been hand modified but this is not a very satisfactory long term solution. I am currently running Mapserver 4.8.3 but I can upgrade if necessary. Any From marcos at BURKE.ATH.CX Fri Oct 19 05:00:54 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Fri, 19 Oct 2007 14:00:54 +0200 Subject: Mapscript srs resetting Message-ID: I have to serve data stored in utm30 and utm28 (Continental Spain and the Canary Islands) reprojected to utm30 (Continental Spain except Galicia), utm29(Galicia) and utm28(Canary Islands). I am creating the map from scratch in Python mapscript. The client is mapbuilder wms. I am setting the map projection for each query with setProjection. If I start the server and immediatly ask for utm29 it works fine. Then I ask for utm30 and it works fine too. I ask again for utm29 and it shows utm30 (some shapes not shown). But if I then ask for the utm28 map, it shows fine :-S The server is the django test server (to rule out threading/process problems). Any suggestions? From marcos at BURKE.ATH.CX Fri Oct 19 05:10:00 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Fri, 19 Oct 2007 14:10:00 +0200 Subject: Mapscript srs resetting In-Reply-To: <1192795254.5476.22.camel@savin> Message-ID: Raster layers seem to reproject fine :-O Could it be some kind of optimsation? This is the version I am using (it comes with ubuntu 6.06) simif at webdgb2:~/src/simif$ mapserv -v MapServer version 4.6.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT SUPPORTS=WCS_SERVER SUPPORTS=THREADS INPUT=EPPL7 INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG El vie, 19-10-2007 a las 14:00 +0200, Marcos S?nchez Provencio escribi?: > I have to serve data stored in utm30 and utm28 (Continental Spain and > the Canary Islands) reprojected to utm30 (Continental Spain except > Galicia), utm29(Galicia) and utm28(Canary Islands). > > I am creating the map from scratch in Python mapscript. The client is > mapbuilder wms. I am setting the map projection for each query with > setProjection. If I start the server and immediatly ask for utm29 it > works fine. Then I ask for utm30 and it works fine too. I ask again for > utm29 and it shows utm30 (some shapes not shown). But if I then ask for > the utm28 map, it shows fine :-S > > The server is the django test server (to rule out threading/process > problems). > > Any suggestions? From kreshna_iceheart at YAHOO.COM Fri Oct 19 07:00:07 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Fri, 19 Oct 2007 07:00:07 -0700 Subject: GMapFactory: creating interactive map without ROSA Java applet? In-Reply-To: <1192783012.6646.38.camel@paul-laptop> Message-ID: Thanks! So I just need to install mscross, install GMapFactory, and no need to install ROSA at all, don't I? -Kresh Paul Scott wrote: On Fri, 2007-10-19 at 01:32 -0700, kreshna_iceheart at yahoo.com wrote: > Alas, I also discovered that it uses ROSA Java applet, > while here in Indonesia, applet is a big no-no because > there's still a lot of users with older browsers > withou Java plugin. > You may want to take a look at mscross, which is an AJAX based script that does the same stuff as ROSA. I am struggling with it at the moment, so if you need help, I can probably guide you as well. BTW, is mscross still in the limelight? or am I barking up the wrong tree? --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ 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 oliver_ishmael at HOTMAIL.COM Fri Oct 19 07:15:03 2007 From: oliver_ishmael at HOTMAIL.COM (Oliver Ishmael) Date: Fri, 19 Oct 2007 09:15:03 -0500 Subject: Installing to a web server Message-ID: While the web server my web page is hosted on uses Linux i have no experience using a UNIX system so i don't understand the commands that were included on: deb http://les-ejk.cz/ubuntu feisty multiverse deb-src http://les-ejk.cz/ubuntu feisty multiverse Instead, my web server gives me access to a CGI-bin folder in which i would like to put the mapserv file, however, i am not sure where i can download this from? Hope you understand what i mean. Many thanks From pscott at UWC.AC.ZA Fri Oct 19 07:21:37 2007 From: pscott at UWC.AC.ZA (Paul Scott) Date: Fri, 19 Oct 2007 16:21:37 +0200 Subject: Installing to a web server In-Reply-To: Message-ID: On Fri, 2007-10-19 at 09:15 -0500, Oliver Ishmael wrote: > Instead, my web server gives me access to a CGI-bin folder in which i would > like to put the mapserv file, however, i am not sure where i can download > this from? > > > Hope you understand what i mean. That is going to open up a whole lot of hurt. What you want to do in that case is to: 1. Change Hosting providers to one that will install stuff for you 2. Get a dedicated server that you can compile and install stuff on 3. Change to a specialist hosting provider that does Mapserver already (HostGIS I think they are called) Trying to drop a precompiled binary into that situation is *probably* not going to work, so save yourself the effort now. --Paul -------------- next part -------------- All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm From dmorissette at MAPGEARS.COM Fri Oct 19 07:24:03 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 19 Oct 2007 10:24:03 -0400 Subject: ScaleHint in GetCapabilities resquest In-Reply-To: <200710191014.20255.yjacolin@free.fr> Message-ID: Jacolin Yves wrote: > Hi list, > > After a GetCapabilities resquest on a mapserver server, I find this line > inside my xml file: > > > In my mapfile, I defined min et max scale values with: > MINSCALE 20000 > MAXSCALE 500000 > > How can I convert the scaleHint value to the mapfile value? In other words, > what does scaleHint values means? > WMS defines the scalehint values as the ground distance in meters of the southwest to northeast diagonal of the central pixel of a map. ScaleHint values are the min and max recommended values of that diagonal. (See WMS 1.1.0 sect. 7.1.5.4) It is calculated in msWMSPrintScaleHint() in MapServer's mapwms.c: diag = sqrt(2.0); if (minscaledenom > 0) scalehintmin = diag*(minscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); if (maxscaledenom > 0) scalehintmax = diag*(maxscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); The use of inchesPerUnit conversion is because resolution is in pixels per inch, and we need the result in meters. I'll leave it as an exercise to you to figure out the reverse conversion (scalehint -> scaledenom). ;) Daniel -- Daniel Morissette http://www.mapgears.com/ From yjacolin at FREE.FR Fri Oct 19 08:09:44 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 19 Oct 2007 17:09:44 +0200 Subject: ScaleHint in GetCapabilities resquest In-Reply-To: <4718BE03.70603@mapgears.com> Message-ID: Le Friday 19 October 2007 16:24:03 Daniel Morissette, vous avez ?crit?: > Jacolin Yves wrote: > > Hi list, > > > > After a GetCapabilities resquest on a mapserver server, I find this line > > inside my xml file: > > > > > > In my mapfile, I defined min et max scale values with: > > MINSCALE 20000 > > MAXSCALE 500000 > > > > How can I convert the scaleHint value to the mapfile value? In other > > words, what does scaleHint values means? > > WMS defines the scalehint values as the ground distance in meters of the > southwest to northeast diagonal of the central pixel of a map. ScaleHint > values are the min and max recommended values of that diagonal. (See WMS > 1.1.0 sect. 7.1.5.4) > > It is calculated in msWMSPrintScaleHint() in MapServer's mapwms.c: > > diag = sqrt(2.0); > > if (minscaledenom > 0) > scalehintmin = > diag*(minscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > if (maxscaledenom > 0) > scalehintmax = > diag*(maxscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > > > The use of inchesPerUnit conversion is because resolution is in pixels > per inch, and we need the result in meters. > > I'll leave it as an exercise to you to figure out the reverse conversion > (scalehint -> scaledenom). ;) > > Daniel Fine, thanks Daniel. I will do my homework this week end and come back on monday :) Y. -- Yves Jacolin --- http://softlibre.gloobe.org From szekerest at GMAIL.COM Fri Oct 19 08:10:49 2007 From: szekerest at GMAIL.COM (Tamas Szekeres) Date: Fri, 19 Oct 2007 17:10:49 +0200 Subject: mapscript point layer zooming In-Reply-To: <13289551.post@talk.nabble.com> Message-ID: Hi Fanda, This is due to a problem around the mapserver shape file driver. I've submitted a ticket with this issue: http://trac.osgeo.org/mapserver/ticket/2354 Until the fix is applied you might want to use the OGR driver instead which is working properly. All you have to do is to replace the DATA section with CONNECTIONTYPE OGR CONNECTION "vrty.shp" in your layer definition in the mapfile. Best regards, Tamas 2007/10/19, Fanda : > Hi Tamas, > > I've tried to render the map with drawmap but it behaves exactly the same as > my app. I submit all the needed data with this message. I put both the > extents (full view and zoomed view when the layer 'vrty' doesn't show up) in > the mapfile definition. > > Best regards, > Fanda > > > > Tamas Szekeres wrote: > > > > Hi, > > > > You might want to test with the drawmap C# sample (can be found in the > > ms4w package as well) to see whether the application can draw the > > layer with the same extent. (set the extent of the map in the mapfile > > accordingly). > > > > If drawmap behaves the same, then submit a ticket with your data file > > along with the mapfile for tracking down the problem. > > > > > > Best regards, > > > > Tamas > > > > > > > > > > 2007/10/17, Fanda : > >> I am using the latest version of mapserver (ms4w 2.2.6), c# mapscript. I > >> don't know exactly what inline layer means, but I don't think that's the > >> case of my layer. I've attached the whole mapfile to this message (the > >> point > >> layer is the very last one called 'Vrty'). It shows up in full extent, > >> but > >> as I pan or zoom so that any point of the layer is outside the current > >> extent, the whole layer disappears. > >> > >> Best regards, > >> Fanda > >> > >> > >> > >> Tamas Szekeres wrote: > >> > > >> > Hi, > >> > > >> > It would be helpful to post the entire mapfile you have. Are you using > >> > an inline layer as the point layer? > >> > Which projection you use with your map? What is the mapserver version? > >> > > >> > Best regards, > >> > > >> > Tamas > >> > > >> > > >> > 2007/10/16, Fanda : > >> >> Hi all, > >> >> I am facing really odd problem. I have some line and polygon layers in > >> my > >> >> mapfile and everything goes fine with them. But there is also one > >> POINT > >> >> layer and it shows up only in its full extent. If I zoom in or pan the > >> >> layer > >> >> disappears whereas the other layers are still visible as expected. > >> There > >> >> is > >> >> no max/minscale defined. I am using C# mapscript. The definition of > >> the > >> >> layer in the mapfile is as follows: > >> >> > >> >> LAYER > >> >> NAME Vrty > >> >> STATUS ON > >> >> TYPE POINT > >> >> DATA "vrty" > >> >> TOLERANCE 1 > >> >> > >> >> CLASS > >> >> NAME 'vrty' > >> >> STYLE > >> >> SYMBOL 'circle' > >> >> SIZE 20 > >> >> COLOR 255 0 0 > >> >> END > >> >> END > >> >> > >> >> PROJECTION > >> >> "init=epsg:2065" > >> >> END > >> >> END > >> >> > >> >> Any help would be greatly appreciated, > >> >> Fanda > >> >> -- > >> >> View this message in context: > >> >> > >> http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13229010 > >> >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> >> > >> > > >> > > >> http://www.nabble.com/file/p13247791/mapa.map mapa.map > >> -- > >> View this message in context: > >> http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13247791 > >> Sent from the Mapserver - User mailing list archive at Nabble.com. > >> > > > > > http://www.nabble.com/file/p13289551/data.zip data.zip > -- > View this message in context: http://www.nabble.com/mapscript-point-layer-zooming-tf4632685.html#a13289551 > Sent from the Mapserver - User mailing list archive at Nabble.com. > From Tom.Kralidis at EC.GC.CA Fri Oct 19 08:19:42 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 19 Oct 2007 11:19:42 -0400 Subject: Serving many shapefiles through WFS In-Reply-To: A<47187C7D.6040601@knmi.nl> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Maarten Plieger > Sent: 19 October, 2007 5:44 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Serving many shapefiles through WFS > > Hi all, > Maybe someone can help me out with this problem: > What is the best solution for serving thousands of shapefiles > through a Web Feature Service? > These shapefiles are files with daily observations. Every day > a new shapefile is generated and needs to be served. > If you're serving observations, you might want to consider MapServer's OGC Sensor Observation Service (SOS) support. > Currently I make use of a script which reads the directory > with the names of the shapefiles, this script creates for > each shapefile a layer in the mapfile. This means that there > is a layer for each shapefile, resulting in many layers. The > disadvantage is that the map file will grow to infinite in > time, because every day a new file is added to the mapfile. > > In the case of a WMS, it is possible to make use of a > TILEINDEX which contains the names of these shapefiles and > their corresponding time/date of observation. With the WMS > TIME parameter one can select the desired file. In this case > only one layer is needed, the file with the TILEINDEX is the > only thing that needs to be updated. > > It seems that this is not possible with a Web Feature > Service. Am i right with this? > So how can i serve all these shapefiles through WFS? > WFS 1.0.0 doesn't support the TIME parameter natively. SOS supports eventtime as part of the GetObservation operation. I've setup a dummy TILEINDEX'd dataset and have tried a GetObservation request: (tests are doing using trunk): http://devgeo.cciw.ca/cgi-bin/mapserv/sostest?service=SOS&version=1.0.0& request=GetObservation&offering=Water&observedproperty=WaterQuality&resp onseFormat=text/xml;%20subtype=om/0.0.0 http://devgeo.cciw.ca/cgi-bin/mapserv/sostest?service=SOS&version=1.0.0& request=GetObservation&offering=Water&observedproperty=test_op&responseF ormat=text/xml;%20subtype=om/0.0.0&eventtime=%3Cgml:TimePeriod%3E%3Cgml: beginPosition%3E2001-07-11%3C/gml:beginPosition%3E%3Cgml:endPosition%3E2 007-07-13%3C/gml:endPosition%3E%3C/gml:TimePeriod%3E ...which renders no results, but it should. I will look further into this. ..Tom > Thanks in advance, > Maarten Plieger > From Tom.Kralidis at EC.GC.CA Fri Oct 19 11:10:48 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 19 Oct 2007 14:10:48 -0400 Subject: Serving many shapefiles through WFS In-Reply-To: A<2DC5CCA14756424BBBEE8B4B2E4A682F01059F61@ecburexch1.ontario.int.ec.gc.ca> Message-ID: > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: 19 October, 2007 11:20 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] Serving many shapefiles through WFS > > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Maarten Plieger > > Sent: 19 October, 2007 5:44 AM > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] Serving many shapefiles through WFS > > > > Hi all, > > Maybe someone can help me out with this problem: > > What is the best solution for serving thousands of > shapefiles through > > a Web Feature Service? > > These shapefiles are files with daily observations. Every day a new > > shapefile is generated and needs to be served. > > > > If you're serving observations, you might want to consider > MapServer's OGC Sensor Observation Service (SOS) support. > > > Currently I make use of a script which reads the directory with the > > names of the shapefiles, this script creates for each shapefile a > > layer in the mapfile. This means that there is a layer for each > > shapefile, resulting in many layers. The disadvantage is > that the map > > file will grow to infinite in time, because every day a new file is > > added to the mapfile. > > > > In the case of a WMS, it is possible to make use of a > TILEINDEX which > > contains the names of these shapefiles and their corresponding > > time/date of observation. With the WMS TIME parameter one > can select > > the desired file. In this case only one layer is needed, > the file with > > the TILEINDEX is the only thing that needs to be updated. > > > > It seems that this is not possible with a Web Feature Service. Am i > > right with this? > > So how can i serve all these shapefiles through WFS? > > > > WFS 1.0.0 doesn't support the TIME parameter natively. > > SOS supports eventtime as part of the GetObservation operation. > > I've setup a dummy TILEINDEX'd dataset and have tried a GetObservation > request: > > (tests are doing using trunk): > > http://devgeo.cciw.ca/cgi-bin/mapserv/sostest?service=SOS&vers > ion=1.0.0& > request=GetObservation&offering=Water&observedproperty=WaterQu > ality&resp > onseFormat=text/xml;%20subtype=om/0.0.0 > > http://devgeo.cciw.ca/cgi-bin/mapserv/sostest?service=SOS&vers > ion=1.0.0& > request=GetObservation&offering=Water&observedproperty=test_op > &responseF > ormat=text/xml;%20subtype=om/0.0.0&eventtime=%3Cgml:TimePeriod > %3E%3Cgml: > beginPosition%3E2001-07-11%3C/gml:beginPosition%3E%3Cgml:endPo > sition%3E2 > 007-07-13%3C/gml:endPosition%3E%3C/gml:TimePeriod%3E > > ...which renders no results, but it should. I will look > further into this. > FYI this is due to the time window processing MapServer does. There is a ticket filed at: http://trac.osgeo.org/mapserver/ticket/2196 So, to answer your question, SOS can do what you want, and can do time querying based on a TILEINDEX'd dataset, but you will have to be careful w.r.t. the ticket mentioned, maybe defining a slightly larger time metadata window for the time being. ..Tom From mictlan at GMAIL.COM Fri Oct 19 12:28:12 2007 From: mictlan at GMAIL.COM (Mahomedalid Pacheco) Date: Fri, 19 Oct 2007 14:28:12 -0500 Subject: LabelAngleItem in mapscript Message-ID: Hi :) I have a little question. Why now is not valid LABELANGLEITEM in mapscript (5.x)??? I see the file php_mapscript.c in 4.x and 5.x and some proprieties (like LABELANGLEITEM) disappears. I can't find in the docs or mailing lists how use that functionality in the new versions, maybe i don't know how to find :S See ya! -- Mahomedalid Pacheco ------------------------------------------------- http://mahomedalidp.blogspot.com From gregor at HOSTGIS.COM Fri Oct 19 13:37:18 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 19 Oct 2007 14:37:18 -0600 Subject: LabelAngleItem in mapscript In-Reply-To: <3292de5d0710191228m15413645rc25af7596019c493@mail.gmail.com> Message-ID: Mahomedalid Pacheco wrote: > I have a little question. Why now is not valid LABELANGLEITEM in > mapscript (5.x)??? I see the file php_mapscript.c in 4.x and 5.x and > some proprieties (like LABELANGLEITEM) disappears. This is the new "attribute binding" stuff mentioned in the MS4->5 migration guide. With a lot of old ITEM settings, you now use the name of a field. So this: LABELANGELITEM "rotation" Becomes this: LABEL ..blah blah... ANGLE "[rotation]" END I suggest reading the MS5 migration guide for tips and examples, and warnings. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From maurosa at IOL.IT Fri Oct 19 17:23:36 2007 From: maurosa at IOL.IT (maurosa) Date: Fri, 19 Oct 2007 17:23:36 -0700 Subject: Java mapscript problems with graphs In-Reply-To: Message-ID: Hi tbonfort thank you, I did not know of the setBinding methd. I did some tests, and it works like a champ! To set the size-binding variable: layer.getClass(0).getStyle(0).setBinding(0, "V1"); and this is the results: CLASS STYLE ..... SIZE [V1] <<<---- ..... END END That is exactly what I was looking for. With this, it is possible to add classes and to set the binding variables on the fly. Thanks again. Mauro -- View this message in context: http://www.nabble.com/Java-mapscript-problems-with-graphs-tf4650376.html#a13305287 Sent from the Mapserver - User mailing list archive at Nabble.com. From stephane.lii at INFORMATIQUE.GOV.PF Fri Oct 19 17:27:08 2007 From: stephane.lii at INFORMATIQUE.GOV.PF (stephSITSIG) Date: Fri, 19 Oct 2007 17:27:08 -0700 Subject: A jpeg output transparent with WMS Message-ID: Hello world, I have a few questions about mapserver. We are testing the mapserver 5.0 with a geotools 2.3 client as a user interface. We use Mapserver with Raster SHOM Data. Each layers ( 5 ) are tiled (gdaltindex) and overviewed (gdaladdo -r nearest 2 4 8 16) with tif raster data (SHOM). These SHOM display some area of French-Polynesia. These Layers are scaled with parameters minscale and maxscale. I have try the ouput drivers GDAL, GD and AGG ( Gif, png (24/32 bits), jpeg and jpeg2000) for output WMS requests with screen size of 600*600 pixels. Is there any FORMATOPTION for tuning the size of these output or other tricks ? Because : with GIF format , i get an image size of 400 KBytes ( IMAGEMODE PC256), with JP2K format => 500 KBytes, with JPEG format => 900 KBytes, with Png format => 1 MBtyes. Another thing, the transparency : All layers in the mapfile are scales (min,max), but when my BBOX go out of all scales i have different results depending of the OUPUTFORMAT. For rendering the output, i use Geotools 2.3, i have in the user client, three layers : The topmost layer are Vector data compute by a GEOSERVER, The middle layer is my SHOM data compute by the mapserver, and the base Layer are Vector Data representing the island's coastal edges of French-Polynesia computed also by a GEOSERVER. So when BBOX is out of scale , i only see the topmost layer with the JPEG Driver, it seems that the result of the mapserver is not Transparent => is there any possibility to render the base layer not hided by the SHOM Data layer with a AGG/JPEG driver ? With the other format (GIF, png) i can see the topmost layer and the islands => because they can do Transparency. -- View this message in context: http://www.nabble.com/A-jpeg-output-transparent-with-WMS-tf4656417.html#a13305330 Sent from the Mapserver - User mailing list archive at Nabble.com. From skiwi at SPAMCOP.NET Fri Oct 19 19:44:05 2007 From: skiwi at SPAMCOP.NET (skiwi@spamcop.net) Date: Fri, 19 Oct 2007 19:44:05 -0700 Subject: excuse the test... new user getting bounced... cheers Message-ID: ---- Thanks, GREG skiwi at spamcop.net From skiwi at SPAMCOP.NET Fri Oct 19 19:47:19 2007 From: skiwi at SPAMCOP.NET (skiwi@spamcop.net) Date: Fri, 19 Oct 2007 19:47:19 -0700 Subject: Newbie having "The page cannot be found" issues with MapServer on IIS 5.1, XP (test environment) Message-ID: Hello, I am a newly minted enthusiast? used the MS4W package on my local machine with Apache, PostgreSQL+PostGIS, zigGIS, etc, etc? very happy (and impressed!) with the product? IT lent me a older desktop to try making a web page, but ?internal standards? mean that I need to use IIS 5.1 on this ?test PC? (running XP) and then later IIS 6.x on the final actual server running Windows Server 2003? (note that I am a GIS / database guy, originally a geologist, so all very new to me - happy and interested to learn though?) With the help of the IIS setup ?how to? on the MapServer site, I seemed to have everything working OK (*), the test maps (sic) I created on Apache ported across OK? And then I decided to try learning something about IIS security as this was going to be available (via HTTPS) to the ?big bad world? (sic)? I stupidly did not think to / know to back up my configuration settings before using - hey, I am learning! ? --------------------- *ANYWAY*?*Now* when I go to one of my map pages the URLs look correct ? e.g., using the simplest https://192.168.0.15/cgi-bin/mapserv.exe for the ?Hello World? example However, IIS throws up a ?The page cannot be found? HTTP 404 - File not found? --------------------- This suggests that IIS has stopped somehow from running?? After triple checking all the IIS settings against the guides, triple checking my .map and associated .html 'test' files, Googling, crawling all over the IIS & Mapserver sites, etc for literally 10 hours I am none the wiser what this setting is!! Note that: ? https://192.168.0.15/phpinfo.php, https://192.168.0.15/chameleon/admin/main.phtml, https://192.168.0.15/gmap/gmap75.phtml, etc display as they 'should'? ? the ms_tmp directory shows the images created for the pages but NOT the ones that were should have been made by ?my? *.map files ? suggesting it is not simply IIS not displaying the images on the page? (*) Aside ? much as I would love to use it again, I have *never* been able to get phpPgAdmin, sadly, to work under IIS ? when I put in the (valid) log in credentials, the relevant frame on the page shows the same ?The page cannot be found? HTTP 404 - File not found? ? again presumably a security issue? if you have any tips on this, if they are related, etc then I would not be adverse to receiving them ? although I recognise this is the wrong forum? THANKS IN ADVANCE, MUCH APPRECIATED? to be so close, know all of the pieces are good and then have IIS halt me in my tracks is very frustrating, as you can likely imagine!! ---------- Regards, GREG COCKS GIS Analyst V gcocksstoller.com S. M. Stoller Corp 105 Technology Drive, Suite 190 Broomfield, CO 80021 www.stoller.com 303-546-4300 303-443-1408 fax 303-546-4422 direct 303-828-7576 cell From kreshna_iceheart at YAHOO.COM Sat Oct 20 01:29:13 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Sat, 20 Oct 2007 01:29:13 -0700 Subject: Does MapServer work with Reverse Proxy? (MapServer as backend webserver) Message-ID: Er, pardon my dumb question again, but I'm a newbie in Reverse Proxy as well, so.... Supposed I have two webservers: Server A and Server B. Server A is the public accessible webserver. Server B, on the other hand, is the "back end" webserver. MapServer is installed in server B, but the maps are to be public accessible. Thus, anyone browsing the maps through the internet actually accesses the maps in Server B through Server A. In the scenario above, Server A acting as "Reverse Proxy" where public are accessing Server B from the internet through Server A, am I correct? I just wonder; will MapServer work with such scenario above? I'm a newbie in Reverse Proxy as well, but IIRC Reverse Proxy works by translating the URL belongs to Server B to Server A's URL. For example, the URL to access MapServer in Server B is http://www.server-b.net/cgi-bin/mapserv.exe?map=C:\mapfiles\map01.map&layer=All&mode=map. However, people from the internet do not access Server B directly, but they access it through Server A (the Reverse Proxy) instead, where http://www.server-b.net/ is mapped to, let say, http://www.server-a.com/maps/ Am I correct up to this point? Now, I'm actually concerned about the cgi-bin part, because it accesses the map file using local storage folder instead of URL. A notorious example is "/cgi-bin/mapserv.exe?map=C:\mapfiles\map01.map". If the URL is translated to proxy server, the URL appears to the people accessing the map from the internet should be like this: http://www.server-a.com/maps/cgi-bin/mapserv.exe?map=C:\mapfiles\map01.map&layer=All&mode=map. because www.server-b.net is translated to www.server-a.com/maps. Am I correct to this point? If my assumption above is true, then I wonder how does MapServer work through reverse proxy, then, because C:\mapfiles\map01.map actually resides in Server B instead of Server A. Furthermore, the /cgi-bin/mapserv.exe that calls the map01.map file also resides in Server B instead of Server A. So again, I really wonder: does MapServer work with Reverse Proxy? Furthermore, does it need special rules in referencing the folders and files? Anyone ever tried MapServer as backend webserver before? Many thanks, -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From arndw at WTAL.DE Sat Oct 20 06:11:41 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Sat, 20 Oct 2007 15:11:41 +0200 Subject: WG: WFS-GetFeature-Response without primary key column Message-ID: Hello, i'm using a SQLite db to store my geometry as WKT. To display the features as WMS and WFS works well. But I have one problem. I have included in the LAYER METADATA: 'wfs_featureid' 'OGC_FID' 'gml_include_items' 'all' The WFS-GetFeature-Response shows this warning: The column is in the db. It is the key for the records (INTEGER PRIMARY KEY). Why will this column not be in the WFS-GetFeature-Response? I need the value, because I want with an OpenLayers application update the records in the db. Currently I use a work around. Example:http://gis.ibbeck.de/ginfo/apps/OLExamples/SphericalMercator/OL_9009 13_frames.html (Mapserver 4.10, gdal14) Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ From arndw at WTAL.DE Sat Oct 20 15:45:59 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Sun, 21 Oct 2007 00:45:59 +0200 Subject: WG: [UMN_MAPSERVER-USERS] WG: WFS-GetFeature-Response without primary key column Message-ID: Hello, I have forgotten to use ogrinfo and to look in the internet. The problem is not mapserver, but the ogr-driver: With ogrinfo I get no column OGC_FID. Looking in the internet I found this: // The OGC_FID is for internal use, not a real user visible column. if( EQUAL(oField.GetNameRef(),"OGC_FID") ) continue; What I not understand, in which way I can manipulate the db, when I can't see the key column. I'm able to display the features as WFS-layer and manipulate the geometry. But I have to use an own added column for updating the record. This means two columns as PRIMARY KEY in one table. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Arnd Wippermann Gesendet: Samstag, 20. Oktober 2007 15:12 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] WG: WFS-GetFeature-Response without primary key column Hello, i'm using a SQLite db to store my geometry as WKT. To display the features as WMS and WFS works well. But I have one problem. I have included in the LAYER METADATA: 'wfs_featureid' 'OGC_FID' 'gml_include_items' 'all' The WFS-GetFeature-Response shows this warning: The column is in the db. It is the key for the records (INTEGER PRIMARY KEY). Why will this column not be in the WFS-GetFeature-Response? I need the value, because I want with an OpenLayers application update the records in the db. Currently I use a work around. Example:http://gis.ibbeck.de/ginfo/apps/OLExamples/SphericalMercator/OL_9009 13_frames.html (Mapserver 4.10, gdal14) Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ From wms_nospam at YAHOO.COM Sun Oct 21 14:27:18 2007 From: wms_nospam at YAHOO.COM (AA BB) Date: Sun, 21 Oct 2007 14:27:18 -0700 Subject: map shows only in EPSG:4326 - how to use different projections? Message-ID: Hello, I have a rectangular gif world map and would like to see it in other projections such as mollweide, etc. My question is why is mapserver not showing a rectangular image map (raster), a gif file basically, in another given projection other than EPSG:4326? How can I get it to do that, (or is it not implemented)? Details: I installed the latest ms4w 5.0 (2.2.6 release from maptools.org) and I have a NASA Blue Marble rectangular gif of the whole world and can see it perfectly when requesting EPSG:4326, however, I would like to be able to also see it in other projections. I tried the mollweide projection, which is defined as 54009 in the proj/nad/epsg file. When I request EPSG:54009 I see a filled blue featureless rectangle. I am not sure what I am doing wrong, or what I may be missing and would like to know. According to the instructions for map projection, the LAYER should specify the input projection, EPSG:4326 in this case, and the MAP should specify the output projection, EPSG:54009 in this case. My mapfile does just that, and I expected to see an elliptical-shaped mollweide projection of the rectangular NASA Blue Marble map yet only a blue rectangle shows up. Here is my request: http://localhost/cgi-bin/mapserv.exe?map=/ms4w/mapfile.map&service=wms&version=1.1.1&request=getmap&layers=modis1&bbox=-180,-90,180,90&width=800&height=400&format=image/gif&styles=&srs=epsg:4326 notice that if epsg:4326 at the end is replaced with epsg:54009 to get the mollweide projection, then it doesn't appear to work - there is no error but there is only a blue rectangle, but the request as is with epsg:4326 gives the original rectangular map of the whole world from -180 to 180 longitude and from -90 to 90 latitude, same as looking directly at the gif in an image viewer. Here is my mapfile: MAP NAME myserver IMAGETYPE gif SIZE 800 400 IMAGECOLOR 205 205 255 SHAPEPATH "/ms4w/data" EXTENT -180 -90 180 90 # CONFIG "PROJ_LIB" "/ms4w/proj/nad/" # CONFIG "GDAL_DATA" "/ms4w/gdaldata/" WEB IMAGEPATH "/ms4w/tmp/ms_tmp/" IMAGEURL "/ms_tmp/" METADATA "wms_title" "WMS Demo Server" ##REQUIRED - generates warning in xml output if missing END END PROJECTION "init=epsg:54009" # trying mollweide server output projection END LAYER NAME modis1 DATA modis1.gif TYPE RASTER STATUS OFF # PROCESSING "LOAD_WHOLE_IMAGE=TRUE" PROJECTION "init=epsg:4326" # standard WGS 84 input projection END METADATA "wms_title" "NASA Blue Marble" "wms_srs" "EPSG:4326 EPSG:54009" # list both input and output projections as supported to avoid error "wms_extent" "-180 -90 180 90" END END END __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From crispin.flower at NTLWORLD.COM Sun Oct 21 15:07:31 2007 From: crispin.flower at NTLWORLD.COM (Crispin and Naomi) Date: Sun, 21 Oct 2007 23:07:31 +0100 Subject: Two questions about OGR Virtual spatial data with WKT in SQL Server Message-ID: Hi all First post for me so hope it is not too dumb - have searched archives but not found answers... I have SQL Server tables containing WKT in a "memo" field, plus X/Y fields plus MINX, MINY, MAXX, MAXY fields defining the bounding boxes for each record. I'm dishing this up as a WMS just fine through MapServer, and I love this, it's so nice compared to shapefiles/MapInfo tables etc. BUT two problems... 1. When I access the layer in MapInfo Pro, my "identify" tool (GetFeatureInfo) works fine on MapServer POINT layersgenerated from the WKT, but does not find anything for POLYGON or LINE layers. The layers are set up identically (DUMP, META etc) - I can give more info if required. Is GetFeatureInfo not supported for WKT polys/lines? Will it be in future? 2. Spatial indexing. If I define a OGR VRT to use the X/Y fields, then the query sent to SQL Server is intelligent, e.g. SELECT * FROM GatewayGeometry WHERE X > 614184.893276474 AND X < 631578.629575045 AND Y > 159333.447265398 AND Y < 171142.163554331 which is nice and quick as these fields are indexed. but if I use the WKT with this then MapServer calls the whole table: SELECT * FROM GatewayGeometry (and then obviously does the spatial filtering in MapServer). I've also tried the other method where I just connect with CONNECTIONTYPE OGR CONNECTION "ODBC:myusername/mypassword at myDSN" DATA "mytable" and have a table in the database called Geometry_columns etc. This works fine, but again it fails to send through any querying of the bounding box and just queries the whole table every time. I have seen conflicting messages on this in MapServer and OGR help. One bit says it wants to use MINX etc as a spatial index, but another bit says that WKT never uses a spatial index. Seems to me there's no reason not to use the bounding boxes to speed things up, but some dodgy stored procedure calls seems to come through to SQL Server, and perhaps MapServer cannot work out whether the fields exist... These commands hit the SQL server: SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns (OK) exec ..sp_pkeys N'GatewayGeometry', N'', N'' (fails) exec sp_pkeys N' ', N'', NULL (returns nothing) exec sp_columns N'GatewayGeometry', NULL, NULL, NULL (OK) and finally SELECT * FROM GatewayGeometry Can I do better? best wishes Crispin No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.15.3/1082 - Release Date: 20/10/2007 14:59 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ljfong at SDF.LONESTAR.ORG Sun Oct 21 15:42:01 2007 From: ljfong at SDF.LONESTAR.ORG (Hong) Date: Sun, 21 Oct 2007 15:42:01 -0700 Subject: MapServer as WMS Client for Microsoft Virtual Earth Raster Layer Message-ID: Hi, Has anyone tried setting up MapServer to pull raster layers out of MS Virtual Earth? I have looked around and cannot find any discussion or example on how to do this. If anyone has tried this and can point me in the right direction in terms of reading, examples, and so on, I would really appreciate it. Thanks. Hong From wms_nospam at YAHOO.COM Sun Oct 21 18:39:20 2007 From: wms_nospam at YAHOO.COM (AA BB) Date: Sun, 21 Oct 2007 18:39:20 -0700 Subject: map shows only in EPSG:4326 - how to use different projections? In-Reply-To: <558008.52647.qm@web44903.mail.sp1.yahoo.com> Message-ID: nevermind... the answer is that each of the four values in EXTENT must have another 5 zeroes added at the end to see the map... and then the map is "mirrored" around the edges, but at least it can be warped into different projections. Would be nice if the mirroring could be optionally turned on or off (it could be a cool effect sometimes, but should be optional) and would be nice if the extent could be specified in degrees for any map, but I guess that's up to epsg. --- AA BB wrote: > Hello, > > I have a rectangular gif world map and would like to > see it in other projections .... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From kreshna_iceheart at YAHOO.COM Thu Oct 18 05:43:35 2007 From: kreshna_iceheart at YAHOO.COM (kreshna_iceheart@yahoo.com) Date: Thu, 18 Oct 2007 05:43:35 -0700 Subject: Map fails to display in interactive mode (&mode=browse). Help! Message-ID: So I'm experimenting with MapServer on my notebook with Windows XP SP2, Apache 2.0.54, and MapServer for Windows (MS4W) 1.2.2. My file placement scheme is fairly complex, because I put map-related files (.MAP, .SHP, etc) and HTML files on different folders. Here's the folders where I put map-related files: C:\mapfiles\mapfile\ C:\mapfiles\shp\ C:\mapfiles\font\ C:\mapfiles\simbol\ And here's the folders where I put HTML templates and TEMP files: C:\ms4w\Apache\htdocs\html\ C:\ms4w\Apache\htdocs\temp\ C:\ms4w\Apache\cgi-bin\ -=> where mapserv.exe resides I do not use absolute folder hierarchy in my URL references, though. Instead, I use relative folder hierarchy. For example, here's how I write the URL on my browser, to call a map file from the folder where mapserv.exe resides (traversing from C:\ms4w\Apache\cgi-bin\to C:\mapfiles\mapfile\): http://localhost/cgi-bin/mapserv.exe?map=../../../mapfiles/mapfile/map01.map&layers=All&mode=map And here's how I specify the SHP folders from my map files. SHAPEPATH "../shp" FONTSET "../font/font.dat" SYMBOLSET "../simbol/simbol.sym" IMAGECOLOR 210 233 255 # biru muda WEB TEMPLATE '../../ms4w/Apache/htdocs/html/map01_tmp1.html' IMAGEPATH '../../ms4w/Apache/htdocs/temp/' IMAGEURL '../../ms4w/Apache/htdocs/temp/' So as you see above, I use relative folder hierarchy to specify those folders (IMO it's a good practice in linux environment). So far, I have created various map files and I haven't had any problems displaying maps (SHP layers) in static mode (&mode=map). Then I tried to use interactive mode (&mode=browse). I have created a map file for that purpose, and I have made the necessary HTML template file and the HTML legends file. I attached those files with this mail: - map file: map01.map - HTML template: map01_tmp1.html - HTML legends: map01_leg.html First, I tested my map file in static mode, and the maps are displayed correctly without problems. However, when I try to call the map file in browse mode, the map just failed to display. All I got is just red "X" where the map should be displayed. (I cannot attach the screenshots because they're larger than 80k) I have confirmed that it is not the problem with my browser; I have tried another browser (Opera) and the problem stays. Besides, non-MapServer web pages (like Google, etc) display pictures with no problem. And when I checked the TEMP folder (C:\ms4w\Apache\htdocs\temp\), MapServer actually CREATED all those temporary GIF files whenever I open the map file using browser mode. In fact, when I view the resulting HTML codes from my browser, the page DOES refer to the temporary .GIF files being created by MapServer. I attached the resulting HTML code as well (03_the_resulting_html_code.txt). Alas, the page just does not display those temporary GIF files --it just displays all the red "X" marks. So what's wrong here? Is it the fault of my browser? But I have tried other browser and the problem stays. Or maybe because my complex folder scheme? Probably because I use relative folder hierarcy to call the necessary files? But all map files I have created have no problems at all displaying the maps in static mode. Or maybe there's a component I forgot to install? Help! -Kresh __________________________________________________________________ So be it. If saying "NO" means being alone, then to hell with love, with women, with marriage, with God, religions, bars, nightclubs, computer games, and all the shit life keeps pumping at me. I'll walk alone, but with freedom and a healed pride. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: map01.map Type: application/octet-stream Size: 3086 bytes Desc: 1821074254-map01.map URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: map01URL.txt URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: 03_the_resulting_html_code.txt URL: From vishu_73ns at YAHOO.COM Sun Oct 21 21:44:02 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Sun, 21 Oct 2007 23:44:02 -0500 Subject: Displaying elevation data Message-ID: I am trying to display elevation data dt1 and dt2 files. I am getting a gray scale image as output. Though it gives an impression of varying heights but Is it possible to do more with it, like see contours, or see 3D. I have tried changing scale but it only varies the shades of grey. Surprisingly A combine layer of tif and elevation shows some color shades. I don't know why? Vishal From perrygeo at GMAIL.COM Sun Oct 21 22:13:21 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Sun, 21 Oct 2007 22:13:21 -0700 Subject: Displaying elevation data In-Reply-To: Message-ID: Vishal, In terms of visualizing elevation data, there are a number of good options: - create a hillshade and overlay that on the elevation layer at 50% opacity - colorize the elevation layer (ie green to white instead of black&white) - generate a vector contour layer Mapserver itself is not capable of doing this processing; you can achieve these through many other pieces of software such as GRASS, MicroDEM, GDAL, etc. I wrote a few custom apps for this purpose that are described on my site : http://www.perrygeo.net/wordpress/?p=7 Mapserver only does 2D so true 3D is not possible. - matt On 10/21/07, Vishal Nagpal wrote: > I am trying to display elevation data dt1 and dt2 files. > > I am getting a gray scale image as output. Though it gives an impression of > varying heights but > Is it possible to do more with it, like see contours, or see 3D. > I have tried changing scale but it only varies the shades of grey. > Surprisingly A combine layer of tif and elevation shows some color shades. I > don't know why? > Vishal > -- Matthew T. Perry http://www.perrygeo.net "Never ascribe to malice, that which can be adequately explained by incompetence." From vishu_73ns at YAHOO.COM Sun Oct 21 23:16:24 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Mon, 22 Oct 2007 01:16:24 -0500 Subject: Displaying elevation data Message-ID: Thanks for quick response, I did see the images of terrain data on the mentioned url, they are interesting and suit my requirement, i will certainly explore more of it, Is it possible to keep the display in 2D itself but use dt1 files for query in mapserver, how to i know elevation at a certain point even if i don't get the display. the application i am developing is in its initial stages, do i shift to grass or continue using both. From thomas.bonfort at GMAIL.COM Mon Oct 22 00:26:15 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Mon, 22 Oct 2007 09:26:15 +0200 Subject: map shows only in EPSG:4326 - how to use different projections? In-Reply-To: <766273.93254.qm@web44913.mail.sp1.yahoo.com> Message-ID: mollweide uses meters as units. so your request of a bounding box -180,180,90,-90 was giving you a correct answer as you where displaying a tiny rectangle of ocean in the gulf of guinea. tb On 10/22/07, AA BB wrote: > nevermind... > > the answer is that each of the four values in EXTENT > must have another 5 zeroes added at the end to see the > map... > and then the map is "mirrored" around the edges, but > at least it can be warped into different projections. > > Would be nice if the mirroring could be optionally > turned on or off (it could be a cool effect sometimes, > but should be optional) and would be nice if the > extent could be specified in degrees for any map, but > I guess that's up to epsg. > > --- AA BB wrote: > > > Hello, > > > > I have a rectangular gif world map and would like to > > see it in other projections > .... > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > From zhonghaiw at GMAIL.COM Mon Oct 22 00:42:53 2007 From: zhonghaiw at GMAIL.COM (Zhonghai Wang) Date: Mon, 22 Oct 2007 09:42:53 +0200 Subject: MapServer as WMS Client for Microsoft Virtual Earth Raster Layer In-Reply-To: <20071021224201.GA6394@SDF.LONESTAR.ORG> Message-ID: I don't think so. In Google Map you can only use MapServer as a WMS server, but not as a Client. I think it's similar in Virtual Earth. That is to say, you can only pass your data to Google Map / Virtual Earth, but not retrieve data from Google Map / Virtual Earth and integrated them into MapServer. In Google Map, getting Google Map data into MapServer violates the Google Map TOU. Regards Zhonghai On 10/22/07, Hong wrote: > > Hi, > > Has anyone tried setting up MapServer to pull raster layers out of MS > Virtual > Earth? I have looked around and cannot find any discussion or example on > how > to do this. If anyone has tried this and can point me in the right > direction > in terms of reading, examples, and so on, I would really appreciate it. > > Thanks. > > Hong > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yjacolin at FREE.FR Mon Oct 22 04:12:48 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Mon, 22 Oct 2007 13:12:48 +0200 Subject: ScaleHint in GetCapabilities resquest In-Reply-To: <4718BE03.70603@mapgears.com> Message-ID: Le Friday 19 October 2007 16:24:03 Daniel Morissette, vous avez ?crit?: > Jacolin Yves wrote: > > Hi list, > > > > After a GetCapabilities resquest on a mapserver server, I find this line > > inside my xml file: > > > > > > In my mapfile, I defined min et max scale values with: > > MINSCALE 20000 > > MAXSCALE 500000 > > > > How can I convert the scaleHint value to the mapfile value? In other > > words, what does scaleHint values means? > > WMS defines the scalehint values as the ground distance in meters of the > southwest to northeast diagonal of the central pixel of a map. ScaleHint > values are the min and max recommended values of that diagonal. (See WMS > 1.1.0 sect. 7.1.5.4) > > It is calculated in msWMSPrintScaleHint() in MapServer's mapwms.c: > > diag = sqrt(2.0); > > if (minscaledenom > 0) > scalehintmin = > diag*(minscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > if (maxscaledenom > 0) > scalehintmax = > diag*(maxscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > > > The use of inchesPerUnit conversion is because resolution is in pixels > per inch, and we need the result in meters. > > I'll leave it as an exercise to you to figure out the reverse conversion > (scalehint -> scaledenom). ;) > > Daniel Daniel, Does the default resolution of a map is 75 dpi? The reversion conversion should be : minScale = (ScaleHint/diag)*resolution with diag = sqrt(2.0); resolution in pixel/m -> 2.54 E-02 pixel/inch (equal to dpi?) so minScale = (9.97805696859274/sqrt(2.0))*75/2.54*100 minScale = 20 833 (instead of 20 000) maxScale = 520 833 (500 000) Does this differences are normal? Thanks, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From bartvde at GMAIL.COM Mon Oct 22 04:21:07 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 22 Oct 2007 13:21:07 +0200 Subject: ScaleHint in GetCapabilities resquest In-Reply-To: <200710221312.48413.yjacolin@free.fr> Message-ID: Hi Yves, Mapserver's default resolution is 72 dpi, that should explain your difference. However I would encourage you to change this in the MAP file if you are running an OGC service, you should use: MAP .. RESOLUTION 90.714 .. instead according to the OGC. Best regards, Bart On 10/22/07, Jacolin Yves wrote: > > Le Friday 19 October 2007 16:24:03 Daniel Morissette, vous avez ?crit: > > Jacolin Yves wrote: > > > Hi list, > > > > > > After a GetCapabilities resquest on a mapserver server, I find this > line > > > inside my xml file: > > > > > > > > > In my mapfile, I defined min et max scale values with: > > > MINSCALE 20000 > > > MAXSCALE 500000 > > > > > > How can I convert the scaleHint value to the mapfile value? In other > > > words, what does scaleHint values means? > > > > WMS defines the scalehint values as the ground distance in meters of the > > southwest to northeast diagonal of the central pixel of a map. ScaleHint > > values are the min and max recommended values of that diagonal. (See WMS > > 1.1.0 sect. 7.1.5.4) > > > > It is calculated in msWMSPrintScaleHint() in MapServer's mapwms.c: > > > > diag = sqrt(2.0); > > > > if (minscaledenom > 0) > > scalehintmin = > > diag*(minscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > > if (maxscaledenom > 0) > > scalehintmax = > > diag*(maxscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > > > > > > The use of inchesPerUnit conversion is because resolution is in pixels > > per inch, and we need the result in meters. > > > > I'll leave it as an exercise to you to figure out the reverse conversion > > (scalehint -> scaledenom). ;) > > > > Daniel > > Daniel, > > Does the default resolution of a map is 75 dpi? > > The reversion conversion should be : minScale = > (ScaleHint/diag)*resolution > with diag = sqrt(2.0); > resolution in pixel/m -> 2.54 E-02 pixel/inch (equal to dpi?) > > so minScale = (9.97805696859274/sqrt(2.0))*75/2.54*100 > minScale = 20 833 (instead of 20 000) > maxScale = 520 833 (500 000) > > Does this differences are normal? > > Thanks, > > Y. > -- > Yves Jacolin > --- > http://softlibre.gloobe.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc.jacquin at MAGELLIUM.FR Mon Oct 22 05:25:56 2007 From: marc.jacquin at MAGELLIUM.FR (Marc Jacquin) Date: Mon, 22 Oct 2007 14:25:56 +0200 Subject: Postgres filter error when gid < 10 In-Reply-To: <2534c4120710220042g6db2836ag8878e00dde6fd03e@mail.gmail.com> Message-ID: Hi Map folks, I don't know if this has been reported for current version but I encountered it with FWTools version 1.2.2. When filtering with CGI controls (&map_layer_filter='gid = 10') a Postgis layer, if the gid is lower than 10 (2 digits I guess is the reason), Mapserver returns an error with no explanation (only the output of mapserv -v) and no error is logged in the debug file. The workaround consists in creating a Postgres sequence starting at 10 (or alter the sequence implicitly created with serial). Should I file a bug ? Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: From rhow at I3.COM Mon Oct 22 07:09:08 2007 From: rhow at I3.COM (Randy How) Date: Mon, 22 Oct 2007 08:09:08 -0600 Subject: MS 5.x URL substitution changes - FILTER? Message-ID: I'm stumped again. For 5.x it's noted in the migration guide the CGI URL substitutions have changed: http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_G UIDE.TXT It's the FILTER I need to override on the layer in the map file. I'm wondering if it's even possible anymore, or is there some other method to achieve the same thing. Thanks, Randy . Works on MapServer 4.99: http://localhost/datadoorswebserver_25/mapserver/mapserv.exe?map=C:\_repos\. ..\product_coverage.map&mode=map&map_product_filter=product_id%3D7 . My best attempt which fails (miserably) on 5.1: http://localhost/DataDoorsWebServer/mapserver/mapserv.exe? map=C:\_repos\... \product_coverage.map&map.layer[product]=FILTER+product_id%3D7 Error: loadLayer(): Unknown identifier. Parsing error near (FILTER):(line 1) Also tried: .&map.layer[product].FILTER=product_id%3D7 Error: loadLayer(): Unknown identifier. Parsing error near (product_id=7):(line 1) . For grins I got this to work, with the FILTER commented-out in the map file: http://localhost/DataDoorsWebServer/mapserver/mapserv.exe?map=C:\_repos\...\ product_coverage.map&map.layer[product].class[0].style[0]=OUTLINECOLOR+255+2 55+0 . Below is the map layer: LAYER NAME "product" CONNECTIONTYPE postgis CONNECTION "user=u password=p dbname=db host=x.x.x.x" DATA "geometry from vw_product_coverage using unique geometry" FILTER "product_id=0" FILTERITEM "product_id" STATUS DEFAULT TYPE POLYGON PROJECTION "init=epsg:4326" END CLASS STYLE OUTLINECOLOR 255 0 0 SYMBOL 1 SIZE 3 END END END -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kyle.Wilcox at NOAA.GOV Mon Oct 22 07:11:44 2007 From: Kyle.Wilcox at NOAA.GOV (Kyle Wilcox) Date: Mon, 22 Oct 2007 10:11:44 -0400 Subject: Displaying elevation data In-Reply-To: Message-ID: I'm not sure if this will help you, but here is an example GeoTIFF file with an associated data file. Depending on how you set up the application, you should be able to query just the data layer. Application is here to try it out: http://155.206.18.162/SST/ LAYER NAME DailyData STATUS ON DATA "daily.flt" TYPE RASTER METADATA "DESCRIPTION" "Daily SST" "RESULT_FIELDS" "Lat Lon SST(C)" "VALUE_FIELDS" "x y value_0" END PROJECTION "proj=merc" "ellps=WGS84" "datum=WGS84" END UNITS METERS SIZEUNITS PIXELS TOLERANCEUNITS PIXELS PROCESSING "SCALE=2,15" TEMPLATE "placeholder" END LAYER NAME DailyColors STATUS ON DATA "daily.tif" TYPE RASTER METADATA "DESCRIPTION" "Daily RGB Values" END PROJECTION "proj=merc" "ellps=WGS84" "datum=WGS84" END UNITS METERS SIZEUNITS PIXELS TOLERANCEUNITS PIXELS PROCESSING "BANDS=1,2,3" END Vishal Nagpal wrote: > Thanks for quick response, > I did see the images of terrain data on the mentioned url, they are > interesting and suit my requirement, i will certainly explore more of it, > > Is it possible to keep the display in 2D itself but use dt1 files for query > in mapserver, > how to i know elevation at a certain point even if i don't get the display. > > the application i am developing is in its initial stages, > do i shift to grass or continue using both. -- Kyle Wilcox NOAA Chesapeake Bay Office 410 Severn Avenue Suite 107A Annapolis, MD 21403 office: (410) 295-3151 Kyle.Wilcox at noaa.gov "It is from the wellspring of our despair and the places that we are broken that we come to repair the world." - Murray Waas From bartvde at GMAIL.COM Mon Oct 22 07:42:09 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Mon, 22 Oct 2007 16:42:09 +0200 Subject: query template question Message-ID: Hi list, is there a way to just get the following HTML out of a WMS GetFeatureInfo request:
MyAttributeName MyAttributeValue
MyAttributeName MyAttributeValue
*without* specifying the names of the columns explicitly in the template? Best regards, Bart -------------- next part -------------- An HTML attachment was scrubbed... URL: From anakreon at CSD.AUTH.GR Mon Oct 22 08:02:02 2007 From: anakreon at CSD.AUTH.GR (Anakreon Mentis) Date: Mon, 22 Oct 2007 18:02:02 +0300 Subject: MySql error message Message-ID: From kobben at ITC.NL Mon Oct 22 08:16:32 2007 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Mon, 22 Oct 2007 17:16:32 +0200 Subject: FW: [UMN_MAPSERVER-USERS] MapServer as WMS Client for Microsoft Virtual Earth Raster Layer In-Reply-To: Message-ID: True. The way to go, I think, is use a multi-datasource client that can be a client to both proprietary services such as Google Maps and Virtual Earth (or Mapserver 'native') and to Open Standards compliant services like WMS and WFS (So also Mapserver in WMS and WFS 'mode'). OpenLayers of course is the prime example of that: http://openlayers.org __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 On 22-10-2007 09:42, "Zhonghai Wang" wrote: > I don't think so. In Google Map you can only use MapServer as a WMS server, > but not as a Client. I think it's similar in Virtual Earth. That is to say, > you can only pass your data to Google Map / Virtual Earth, but not retrieve > data from Google Map / Virtual Earth and integrated them into MapServer. In > Google Map, getting Google Map data into MapServer violates the Google Map > TOU. > > Regards > > Zhonghai > > > On 10/22/07, Hong wrote: >> >> Hi, >> >> Has anyone tried setting up MapServer to pull raster layers out of MS >> Virtual >> Earth? I have looked around and cannot find any discussion or example on >> how >> to do this. If anyone has tried this and can point me in the right >> direction >> in terms of reading, examples, and so on, I would really appreciate it. >> >> Thanks. >> >> Hong >> ------ End of Forwarded Message From funkbucket at GMAIL.COM Mon Oct 22 08:29:13 2007 From: funkbucket at GMAIL.COM (Ben Tuttle) Date: Mon, 22 Oct 2007 09:29:13 -0600 Subject: Secure Data Access Agreements In-Reply-To: Message-ID: Hi Ian- I don;t have an agreement I can share with you, but I can tell you we have been successfully using htaccess with mapserver (WMS/WCS) to protect specific data. On 10/17/07, Ian Tidy wrote: > > > > Hi All, > > We are looking at allowing specific users (developers, contractors, etc) to > have access to more accurate data and additional datasets via a secure login > on our web based mapping interface. > > I have been asked to prepare an agreement and request forms for this. I > have had a look around at what I currently have, but these aren't really > suitable for this. > > My questions are: > How do other organisations deal with this? > Is anyone able to share the agreement with me? > Does anyone have a template that I can modify? > > Also is it possible to have WMS / WFS services prompt for a user name and > password (this is another delivery option I want to look at). > > Any help would be appreciated. > > Cheers Ian > ______________________ > Ian Tidy > GIS Analyst / Developer > Works Asset Department > Napier City Council > Hastings St, Private Bag 6010, Napier, New Zealand > Phone +64-6-835-7579 Ext. 8115 > Fax +64-6-834-4195 > mailto:iant at napier.govt.nz > http://www.napier.govt.nz | http://maps.napier.govt.nz > > ________________________________ > This e-mail message has been scanned for Viruses and Content and cleared by > MailMarshal ________________________________ > ###################################################################### > Attention: > This e-mail message and accompanying data may contain information that > is confidential and subject to legal privilege. Any information > provided is given in good faith. However unless specifically stated to > the contrary, Napier City Council accepts no liability for the > content of this e-mail or for the consequences of any action taken on > the basis of the information provided, unless that information is > subsequently confirmed in writing. If you are not the intended recipient, > you are notified that any use, dissemination, distribution or copying > of this message or data is prohibited. If you received this e-mail > message in error, please notify us immediately and erase all copies > of this message and attachments. Thank you. From atulai at ENGMAIL.UWATERLOO.CA Mon Oct 22 08:29:45 2007 From: atulai at ENGMAIL.UWATERLOO.CA (atulai) Date: Mon, 22 Oct 2007 08:29:45 -0700 Subject: Mapserver & GMap75 Projection and units origin issue Message-ID: I've been trying to get this to work properly for a few weeks now. I'm trying to get GMap 75 to project using this projection: PROJECTION "proj=lcc" "lat_1=50" "lat_2=70" "lat_0=40" "lon_0=-96" "x_0=0" "y_0=0" "ellps=GRS80" "datum=NAD83" "units=m" "no_defs" END and to display coordinates in latlon. From what I can see it's working allright now. I also have a set of data that uses the projection above. The problem is, Gmap's origin is just below Canada, which causes all of my data to be located far to the north-west away from Canada which is incorrect. Is there any way I can somehow force the origin to be located where it's actually supposed to be (latlon (0,0))? Changing "lat_0=40" "lon_0=-96" to "lat_0=0" "lon_0=0" doesn't seem to do anything. Is this possible or is it just a Gmap restriction? Any help or guidance is much appreciated. Thanks! -- View this message in context: http://www.nabble.com/Mapserver---GMap75-Projection-and-units-origin-issue-tf4670577.html#a13342383 Sent from the Mapserver - User mailing list archive at Nabble.com. From yjacolin at FREE.FR Mon Oct 22 08:46:59 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Mon, 22 Oct 2007 17:46:59 +0200 Subject: ScaleHint in GetCapabilities resquest In-Reply-To: <1ebb87870710220421q1db627d4k97515de46b2def23@mail.gmail.com> Message-ID: Thanks Bart :) Y. Le Monday 22 October 2007 13:21:07 Bart van den Eijnden, vous avez ?crit?: > Hi Yves, > > Mapserver's default resolution is 72 dpi, that should explain your > difference. > > However I would encourage you to change this in the MAP file if you are > running an OGC service, you should use: > > MAP > .. > RESOLUTION 90.714 > .. > > instead according to the OGC. > > Best regards, > Bart > > On 10/22/07, Jacolin Yves wrote: > > Le Friday 19 October 2007 16:24:03 Daniel Morissette, vous avez ?crit: > > > Jacolin Yves wrote: > > > > Hi list, > > > > > > > > After a GetCapabilities resquest on a mapserver server, I find this > > > > line > > > > > > inside my xml file: > > > > > > > > > > > > In my mapfile, I defined min et max scale values with: > > > > MINSCALE 20000 > > > > MAXSCALE 500000 > > > > > > > > How can I convert the scaleHint value to the mapfile value? In other > > > > words, what does scaleHint values means? > > > > > > WMS defines the scalehint values as the ground distance in meters of > > > the southwest to northeast diagonal of the central pixel of a map. > > > ScaleHint values are the min and max recommended values of that > > > diagonal. (See WMS 1.1.0 sect. 7.1.5.4) > > > > > > It is calculated in msWMSPrintScaleHint() in MapServer's mapwms.c: > > > > > > diag = sqrt(2.0); > > > > > > if (minscaledenom > 0) > > > scalehintmin = > > > diag*(minscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > > > if (maxscaledenom > 0) > > > scalehintmax = > > > diag*(maxscaledenom/resolution)/msInchesPerUnit(MS_METERS,0); > > > > > > > > > The use of inchesPerUnit conversion is because resolution is in pixels > > > per inch, and we need the result in meters. > > > > > > I'll leave it as an exercise to you to figure out the reverse > > > conversion (scalehint -> scaledenom). ;) > > > > > > Daniel > > > > Daniel, > > > > Does the default resolution of a map is 75 dpi? > > > > The reversion conversion should be : minScale = > > (ScaleHint/diag)*resolution > > with diag = sqrt(2.0); > > resolution in pixel/m -> 2.54 E-02 pixel/inch (equal to dpi?) > > > > so minScale = (9.97805696859274/sqrt(2.0))*75/2.54*100 > > minScale = 20 833 (instead of 20 000) > > maxScale = 520 833 (500 000) > > > > Does this differences are normal? > > > > Thanks, > > > > Y. > > -- > > Yves Jacolin > > --- > > http://softlibre.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org From mcompte at SIGTE.UDG.ES Mon Oct 22 09:02:38 2007 From: mcompte at SIGTE.UDG.ES (Marc Compte) Date: Mon, 22 Oct 2007 18:02:38 +0200 Subject: Problem with shp2img Message-ID: Hi, We are trying the shp2img tool but the following error shows up: ******************************* ./shp2img: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory ******************************* We do have that library but we are guessing it might not be at the proper place for UMN MapServer to find it. We currently have it at: /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/linux/lib/optimized/libgdal.so.1 /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/linux/lib/optimized/libgdal.so.1.9.0 /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/src/.libs/libgdal.so.1 /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/src/.libs/libgdal.so.1.9.0 Any help will be greatly appreciated, thanks :) Marc From perrygeo at GMAIL.COM Mon Oct 22 09:20:24 2007 From: perrygeo at GMAIL.COM (Matthew Perry) Date: Mon, 22 Oct 2007 09:20:24 -0700 Subject: Problem with shp2img In-Reply-To: <471CC99E.1010500@sigte.udg.es> Message-ID: Marc, Depending on what type of system you're on you can either set your $LD_LIBRARY_PATH env variable or add the proper directories to /etc/ld.so.conf and run ldconfig. Either way, the goal is to tell mapserver where to find the libraries at runtime. - matt On 10/22/07, Marc Compte wrote: > Hi, > > We are trying the shp2img tool but the following error shows up: > > ******************************* > ./shp2img: error while loading shared libraries: libgdal.so.1: cannot > open shared object file: No such file or directory > ******************************* > > We do have that library but we are guessing it might not be at the > proper place for UMN MapServer to find it. We currently have it at: > > /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/linux/lib/optimized/libgdal.so.1 > > /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/linux/lib/optimized/libgdal.so.1.9.0 > > /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/src/.libs/libgdal.so.1 > /usr/local/OpenSource_FDO/Thirdparty/GDAL1.3/src/.libs/libgdal.so.1.9.0 > > Any help will be greatly appreciated, thanks :) > > Marc > -- Matthew T. Perry http://www.perrygeo.net "Never ascribe to malice, that which can be adequately explained by incompetence." From anakreon at CSD.AUTH.GR Mon Oct 22 09:26:47 2007 From: anakreon at CSD.AUTH.GR (Anakreon Mentis) Date: Mon, 22 Oct 2007 19:26:47 +0300 Subject: MySql error message In-Reply-To: <471CBE68.8030000@Noaa.gov> Message-ID: Kyle Wilcox writes: > Make sure your connection is not timing out and you are not closing the > connection anywhere. > Thanks for your reply. I have created the ovf file from examples found in the internet. The content of the file is: MYSQL:db_test,user=user,password=pswd,host=localhost,port=3306,tables=site coordinate select site_name, c1.cord_deg + (c1.cord_min / 60) + (c1.cord_sec /600) as x, c2.cord_deg + (c2.cord_min / 60) + (c2.cord_sec /600) as y from site inner join coordinate as c1 on c1.coordinate_id = site.coordinate_first inner join coordinate as c2 on c2.coordinate_id = site.coordinate_second wkbPoint Perhaps there is a timeout parameter? I have not specified any timeout myself. The data are displayed using pmapper. I do not know if pmapper closes the connection. I'd appriciate if you could send me a link to the ovf file specification. I had found once a link (at the mapserver.gis.umn.edu I think) but it did not work. > Anakreon Mentis wrote: > > From a layer, I show data which are retrived by a query > > to a mysql database. > > > > The problem is that sometime, map server reports an error > > with message: > > [MapServer Error]: msOGRFileNextShape(): MySQL error message:MySQL server has gone away > > > > > > What is going wrong? > From Tom.Kralidis at EC.GC.CA Mon Oct 22 10:28:58 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Mon, 22 Oct 2007 13:28:58 -0400 Subject: MySql error message Message-ID: Yiasou Anakreon, Perhaps your MySQL server is down? Can you query the MySQL database by other means (i.e. CGI script, etc.)? ..Tom ________________________________ From: UMN MapServer Users List on behalf of Anakreon Mentis Sent: Mon 22-Oct-07 11:02 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MySql error message From andreas.albarello at TERRITORIUMONLINE.COM Mon Oct 22 11:08:51 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Mon, 22 Oct 2007 20:08:51 +0200 Subject: MS 5.x URL substitution changes - FILTER? In-Reply-To: <037b01c814b5$1cd18b70$5674a250$@com> Message-ID: Randy How wrote: > I?m stumped again. For 5.x it?s noted in the migration guide the CGI > URL substitutions have changed: > > http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_GUIDE.TXT > > It?s the FILTER I need to override on the layer in the map file. I?m > wondering if it?s even possible anymore, or is there some other method > to achieve the same thing. Randy, yes, there is in fact another way to achieve the same thing. Have a look at these posts to the MapServer Dev list some time ago: http://www.nabble.com/forum/ViewPost.jtp?post=12414895&framed=y Everything that applies to expressions should apply to filters too in this regard. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From zkissane at SBCGLOBAL.NET Mon Oct 22 11:40:53 2007 From: zkissane at SBCGLOBAL.NET (Z Kissane) Date: Mon, 22 Oct 2007 11:40:53 -0700 Subject: Compiling Java MapScript on Mac OS X Message-ID: Short version: I'm trying to get the Java Mapscript shared library to compile on OS X Tiger. I've been trying to hack the Makefile to get it to work. Everything compiles just fine (including the jar file), it's the linker that's giving me grief. Both Mapserver 4.10 and Mapserver 5 will not build the Java Mapscript shared library "out of the box" as far as I can tell. I have followed the guide at kyngchaos.com to get Mapserver itself to build, which works just fine. Longer version: The linker for OS X is a little bit "special". I don't know if I'm supposed to be using ld via g++, ld on its own, or libtool. Also, the Sun JVM for OS X is "special" in its own right; it requires JNI libraries passed to the JVM to be named .jnilib. It will ignore libraries like .so. I found this out after I had tabled the project, but had actually produced some .so output files (which the JVM was ignoring even though I was passing their directory to java.library.path). I renamed them one by one to libmapscript.jnilib , and it turned out that one of them did, in fact work, but by then I had tried something else with the Makefile, wiping out the "good" settings. Basically, I can't remember what combination of g++, ld, libtool, -dynamic, -dynamiclib, and -bundle or whatever got me the file that worked. If you're playing along at home, I do know that you have to hack the JAVA_INCLUDE variable in the Makefile to point at the proper location for the Java headers; mine is /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/headers I also know that, out of the box (or rather, after you run configure in the main Mapserver build) that the SUP_LIBS variable incorrectly uses the iconv header variable, ICONV_INC, rather than the iconv library variable, ICONV_LIB, which drove me nuts for a couple of hours. You may also get linker errors because it tries to use gcc to link instead of g++, which means it gets cut off from some C++ libraries that it needs; I don't know, all the problems have kind of blurred together at this point. But if somebody can just tell me which tool and which options will produce the library I would be most grateful. Thanks, Zach Kissane zkissane at sbcglobal.net From arndw at WTAL.DE Mon Oct 22 12:02:34 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Mon, 22 Oct 2007 21:02:34 +0200 Subject: WG: [UMN_MAPSERVER-USERS] Displaying elevation data Message-ID: Hi, The tools from Matthew are quite good. To colorize a map it's also possible with Mapserver. Use colorrange or query [pixel] CLASS STYLE RANGEITEM "EW_QKM2004" DATARANGE 140 15987 COLORRANGE 255 255 178 189 0 38 OUTLINECOLOR 0 0 0 END END [Quelle:http://www.geog.fu-berlin.de/de/Karto/umn_karten/choro.shtml#colorra nge] CLASSITEM "[pixel]" CLASS EXPRESSION ([pixel] >= 0 AND [pixel] < 8) COLOR 0 255 255 END Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Matthew Perry Gesendet: Montag, 22. Oktober 2007 07:13 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] Displaying elevation data Vishal, In terms of visualizing elevation data, there are a number of good options: - create a hillshade and overlay that on the elevation layer at 50% opacity - colorize the elevation layer (ie green to white instead of black&white) - generate a vector contour layer Mapserver itself is not capable of doing this processing; you can achieve these through many other pieces of software such as GRASS, MicroDEM, GDAL, etc. I wrote a few custom apps for this purpose that are described on my site : http://www.perrygeo.net/wordpress/?p=7 Mapserver only does 2D so true 3D is not possible. - matt On 10/21/07, Vishal Nagpal wrote: > I am trying to display elevation data dt1 and dt2 files. > > I am getting a gray scale image as output. Though it gives an > impression of varying heights but Is it possible to do more with it, > like see contours, or see 3D. > I have tried changing scale but it only varies the shades of grey. > Surprisingly A combine layer of tif and elevation shows some color > shades. I don't know why? > Vishal > -- Matthew T. Perry http://www.perrygeo.net "Never ascribe to malice, that which can be adequately explained by incompetence." From ryanollerenshaw at GMAIL.COM Mon Oct 22 12:37:28 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Mon, 22 Oct 2007 12:37:28 -0700 Subject: Postgres Raster image display Message-ID: How can i use a Postgres database to display raster images with Mapserver? There are lots of examples on display features this way and using a gdaltindex to create a shapefile but i cant find any that talk about using a database to store raster images. Here is what i am currently trying: LAYER NAME "stereo_simp" TYPE RASTER PROCESSING "SCALE=AUTO" #rescale 16-bit image to 8-bit STATUS on CONNECTION "host=localhost dbname=test user=postgres" CONNECTIONTYPE POSTGIS DATA "location FROM stereo" TILEINDEX "stereo" #the table name TILEITEM "location" #column that contains the path to the image END if i just try and display the image directly it works just fine: LAYER NAME "stereo_simp" TYPE RASTER PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit STATUS on DATA "/hiview/products/data/20070929_000600_14euA_171_16_gdal.tif" END Thank you for your time, -Ryan From woklist at KYNGCHAOS.COM Mon Oct 22 12:46:22 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Mon, 22 Oct 2007 14:46:22 -0500 Subject: Compiling Java MapScript on Mac OS X In-Reply-To: <712094.32526.qm@web81415.mail.mud.yahoo.com> Message-ID: There was a general problem in mapserver with OSX, at one time an Xcode update caused unwind_resume errors in linking. But it has been fixed: LD should be C++. It looks like the current 5.0 release has this fixed in the java mapscript makefile, at least as far as the LD definition goes. But the link command is wrong - it uses $(CC) instead of $(LD), and uses the wrong flag for a dynamic library: $(CC) -fpic -shared mapscript_wrap.o -o libmapscript.so $(LDFLAGS) This should be (-single_module is also a good idea): $(LD) -fpic -dynamiclib -single_module mapscript_wrap.o -o libmapscript.so $(LDFLAGS) This is a very specific casse - the shared/dynamic lib flags should also be set by configure for the system, like in the PHP mapscript makefile. Note also that CC is set twice in the java mapscript makefile - once from configure, then again hardwired to gcc. This will override any custom GCC setting from configure (like when I do universal builds). BUT, I've done this, and java mapscript doesn't work (I forget the error). I don't have time (or much interest) to fiddle with java mapscript. If you want to look into this you should file bug reports for any problems you find. On Oct 22, 2007, at 1:40 PM, Z Kissane wrote: > Short version: I'm trying to get the Java Mapscript > shared library to compile on OS X Tiger. I've been > trying to hack the Makefile to get it to work. > Everything compiles just fine (including the jar > file), it's the linker that's giving me grief. Both > Mapserver 4.10 and Mapserver 5 will not build the Java > Mapscript shared library "out of the box" as far as I > can tell. I have followed the guide at kyngchaos.com > to get Mapserver itself to build, which works just > fine. > > Longer version: The linker for OS X is a little bit > "special". I don't know if I'm supposed to be using > ld via g++, ld on its own, or libtool. Also, the Sun > JVM for OS X is "special" in its own right; it > requires JNI libraries passed to the JVM to be named > .jnilib. It will ignore libraries like > .so. I found this out after I had tabled the > project, but had actually produced some .so output > files (which the JVM was ignoring even though I was > passing their directory to java.library.path). I > renamed them one by one to libmapscript.jnilib , and > it turned out that one of them did, in fact work, but > by then I had tried something else with the Makefile, > wiping out the "good" settings. > > Basically, I can't remember what combination of g++, > ld, libtool, -dynamic, -dynamiclib, and -bundle or > whatever got me the file that worked. If you're > playing along at home, I do know that you have to hack > the JAVA_INCLUDE variable in the Makefile to point at > the proper location for the Java headers; mine is > /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/ > JavaVM.framework/Versions/1.5.0/headers > I also know that, out of the box (or rather, after you > run configure in the main Mapserver build) that the > SUP_LIBS variable incorrectly uses the iconv header > variable, ICONV_INC, rather than the iconv library > variable, ICONV_LIB, which drove me nuts for a couple > of hours. You may also get linker errors because it > tries to use gcc to link instead of g++, which means > it gets cut off from some C++ libraries that it needs; > I don't know, all the problems have kind of blurred > together at this point. But if somebody can just tell > me which tool and which options will produce the > library I would be most grateful. > > Thanks, > Zach Kissane > zkissane at sbcglobal.net ----- William Kyngesburye http://www.kyngchaos.com/ [Trillian] What are you supposed to do WITH a maniacally depressed robot? [Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer... - HitchHiker's Guide to the Galaxy From zkissane at SBCGLOBAL.NET Mon Oct 22 13:15:14 2007 From: zkissane at SBCGLOBAL.NET (Z Kissane) Date: Mon, 22 Oct 2007 13:15:14 -0700 Subject: Compiling Java MapScript on Mac OS X Message-ID: William Kyngesburye wrote: >$(LD) -fpic -dynamiclib -single_module mapscript_wrap.o -o libmapscript.so $(LDFLAGS) Thanks! That worked. >BUT, I've done this, and java mapscript doesn't work (I forget the error). I don't have time (or much interest) to fiddle with java mapscript. If you want to look into this you should file bug reports for any problems you find. Hm...I haven't tested it in anger yet, but I have been able to write a pretty simple servlet in Tomcat that, given the right URL parameters, will draw a map according to my mapfile. The JVM spews out a ton of warnings about a non-aligned pointer being freed, but it draws the image. From Steve.Lime at DNR.STATE.MN.US Mon Oct 22 13:17:04 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 22 Oct 2007 15:17:04 -0500 Subject: Postgres filter error when gid < 10 In-Reply-To: <011901c814a6$b2604780$9601a8c0@PC150> Message-ID: That's a new one so would categorize as a bug. I'm assuming this is with older versions of MapServer given the URL syntax. Nothing had changed in the PostGIS driver so I imagine it's still relevant. Please file a bug... Steve >>> On 10/22/2007 at 7:25 AM, in message <011901c814a6$b2604780$9601a8c0 at PC150>, Marc Jacquin wrote: > Hi Map folks, > > > > I don't know if this has been reported for current version but I encountered > it with FWTools version 1.2.2. > > > > When filtering with CGI controls (&map_layer_filter='gid = 10') a Postgis > layer, if the gid is lower than 10 (2 digits I guess is the reason), > Mapserver returns an error with no explanation (only the output of mapserv > -v) and no error is logged in the debug file. The workaround consists in > creating a Postgres sequence starting at 10 (or alter the sequence > implicitly created with serial). > > > > Should I file a bug ? > > > > Marc From woklist at KYNGCHAOS.COM Mon Oct 22 13:46:24 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Mon, 22 Oct 2007 15:46:24 -0500 Subject: Compiling Java MapScript on Mac OS X In-Reply-To: <838151.8232.qm@web81408.mail.mud.yahoo.com> Message-ID: On Oct 22, 2007, at 3:15 PM, Z Kissane wrote: >> BUT, I've done this, and java mapscript doesn't work > (I forget the error). I don't have time (or much > interest) to fiddle with java mapscript. If you want > to look into this you should file bug reports for any > problems you find. > > Hm...I haven't tested it in anger yet, but I have been > able to write a pretty simple servlet in Tomcat that, > given the right URL parameters, will draw a map > according to my mapfile. The JVM spews out a ton of > warnings about a non-aligned pointer being freed, but > it draws the image. It could be that I don't know enough about Java ;) I do remember the warnings. I think I was trying to run the examples directly in the Terminal. If it's working for you, maybe I can have you try a binary? When I tried it and hit the error, I was planning on adding it to my MapServer binary package. Let me know, and I'll package that up... ----- William Kyngesburye http://www.kyngchaos.com/ "Those people who most want to rule people are, ipso-facto, those least suited to do it." - A rule of the universe, from the HitchHiker's Guide to the Galaxy From mlinden at ZEELANDNET.NL Mon Oct 22 13:39:02 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Mon, 22 Oct 2007 22:39:02 +0200 Subject: Postgres Raster image display In-Reply-To: <20b31d4d0710221237v2738e2ddmadd7aca2c88f5785@mail.gmail.com> Message-ID: For performance reason it is advised NOT to store your raster images inside the database. This discussion gets opened about once every month. There is no functionality available to read raster images from a database. Ryan Ollerenshaw schreef: > How can i use a Postgres database to display raster images with > Mapserver? There are lots of examples on display features this way > and using a gdaltindex to create a shapefile but i cant find any that > talk about using a database to store raster images. Here is what i am > currently trying: > > LAYER > NAME "stereo_simp" > TYPE RASTER > PROCESSING "SCALE=AUTO" #rescale 16-bit image to 8-bit > STATUS on > CONNECTION "host=localhost dbname=test user=postgres" > CONNECTIONTYPE POSTGIS > DATA "location FROM stereo" > TILEINDEX "stereo" #the table name > TILEITEM "location" #column that contains the path to the image > END > > if i just try and display the image directly it works just fine: > > LAYER > NAME "stereo_simp" > TYPE RASTER > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > STATUS on > DATA "/hiview/products/data/20070929_000600_14euA_171_16_gdal.tif" > END > > Thank you for your time, > -Ryan > > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.lii at INFORMATIQUE.GOV.PF Mon Oct 22 13:56:14 2007 From: stephane.lii at INFORMATIQUE.GOV.PF (stephSITSIG) Date: Mon, 22 Oct 2007 13:56:14 -0700 Subject: A jpeg transparent OUPUT with WMS Message-ID: Hello world, I have a few questions about mapserver. We are testing the mapserver 5.0 with a geotools 2.3 client as a user interface. We use Mapserver with Raster SHOM Data. Each layers ( 5 ) are tiled (gdaltindex) and overviewed (gdaladdo -r nearest 2 4 8 16) with tif raster data (SHOM). These SHOM display some area of French-Polynesia. These Layers are scaled with parameters minscale and maxscale. I have try the ouput drivers GDAL, GD and AGG ( Gif, png (24/32 bits), jpeg and jpeg2000) for output WMS requests with screen size of 600*600 pixels. Is there any FORMATOPTION for tuning the size of these output or other tricks ? Because : with GIF format , i get an image size of 400 KBytes ( IMAGEMODE PC256), with JP2K format => 500 KBytes, with JPEG format => 900 KBytes, with Png format => 1 MBtyes. Another thing, the transparency : All layers in the mapfile are scales (min,max), but when my BBOX go out of all scales i have different results depending of the OUPUTFORMAT. For rendering the output, i use Geotools 2.3, i have in the user client, three layers : The topmost layer are Vector data compute by a GEOSERVER, The middle layer is my SHOM data compute by the mapserver, and the base Layer are Vector Data representing the island's coastal edges of French-Polynesia computed also by a GEOSERVER. So when BBOX is out of scale , i only see the topmost layer with the JPEG Driver, it seems that the result of the mapserver is not Transparent => is there any possibility to render the base layer not hided by the SHOM Data layer with a AGG/JPEG driver ? With the other format (GIF, png) i can see the topmost layer and the islands => because they can do Transparency. -- View this message in context: http://www.nabble.com/A-jpeg-transparent-OUPUT-with-WMS-tf4656409.html#a13305310 Sent from the Mapserver - User mailing list archive at Nabble.com. From ryanollerenshaw at GMAIL.COM Mon Oct 22 14:28:44 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Mon, 22 Oct 2007 14:28:44 -0700 Subject: Postgres Raster image display In-Reply-To: <20b31d4d0710221237v2738e2ddmadd7aca2c88f5785@mail.gmail.com> Message-ID: On 10/22/07, Ryan Ollerenshaw wrote: > How can i use a Postgres database to display raster images with > Mapserver? There are lots of examples on display features this way > and using a gdaltindex to create a shapefile but i cant find any that > talk about using a database to store raster images. Here is what i am > currently trying: > > LAYER > NAME "stereo_simp" > TYPE RASTER > PROCESSING "SCALE=AUTO" #rescale 16-bit image to 8-bit > STATUS on > CONNECTION "host=localhost dbname=test user=postgres" > CONNECTIONTYPE POSTGIS > DATA "location FROM stereo" > TILEINDEX "stereo" #the table name > TILEITEM "location" #column that contains the path to the image > END > > if i just try and display the image directly it works just fine: > > LAYER > NAME "stereo_simp" > TYPE RASTER > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > STATUS on > DATA "/hiview/products/data/20070929_000600_14euA_171_16_gdal.tif" > END > Sorry i should have been more clear on my post I do not want to store the images directly in the database, what i am trying to do is store the location of the image in the database and use mapserver to read this location column and display the image. This works fine when using gdaltindex when gdal generates the dbf file for example using this technique: LAYER NAME "stereo_simp" TYPE RASTER PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit STATUS on TILEINDEX "images.shp" TILEITEM "location" END but when i try to use Postgres as the TILEINDEX this does not work, ie: LAYER NAME "stereo_simp" TYPE RASTER PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit STATUS on CONNECTION "host=localhost dbname=test user=postgres" CONNECTIONTYPE POSTGIS TILEINDEX "the_geom FROM stereo" TILEITEM "location" END any ideas on what i am doing wrong? From pramsey at REFRACTIONS.NET Mon Oct 22 14:41:13 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Mon, 22 Oct 2007 14:41:13 -0700 Subject: Postgres Raster image display In-Reply-To: <20b31d4d0710221428s51a194a5w3d6afaf36c45d2bb@mail.gmail.com> Message-ID: Answer here? http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#example-of- wms-t-with-postgis-tile-index-for-raster-imagery On 22-Oct-07, at 2:28 PM, Ryan Ollerenshaw wrote: > On 10/22/07, Ryan Ollerenshaw wrote: >> How can i use a Postgres database to display raster images with >> Mapserver? There are lots of examples on display features this way >> and using a gdaltindex to create a shapefile but i cant find any that >> talk about using a database to store raster images. Here is what >> i am >> currently trying: >> >> LAYER >> NAME "stereo_simp" >> TYPE RASTER >> PROCESSING "SCALE=AUTO" #rescale 16-bit image to 8-bit >> STATUS on >> CONNECTION "host=localhost dbname=test user=postgres" >> CONNECTIONTYPE POSTGIS >> DATA "location FROM stereo" >> TILEINDEX "stereo" #the table name >> TILEITEM "location" #column that contains the path to the image >> END >> >> if i just try and display the image directly it works just fine: >> >> LAYER >> NAME "stereo_simp" >> TYPE RASTER >> PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit >> STATUS on >> DATA "/hiview/products/data/20070929_000600_14euA_171_16_gdal.tif" >> END >> > > Sorry i should have been more clear on my post I do not want to store > the images directly in the database, what i am trying to do is store > the location of the image in the database and use mapserver to read > this location column and display the image. This works fine when > using gdaltindex when gdal generates the dbf file for example using > this technique: > > LAYER > NAME "stereo_simp" > TYPE RASTER > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > STATUS on > TILEINDEX "images.shp" > TILEITEM "location" > END > > but when i try to use Postgres as the TILEINDEX this does not work, > ie: > > LAYER > NAME "stereo_simp" > TYPE RASTER > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > STATUS on > CONNECTION "host=localhost dbname=test user=postgres" > CONNECTIONTYPE POSTGIS > TILEINDEX "the_geom FROM stereo" > TILEITEM "location" > END > > any ideas on what i am doing wrong? From ryanollerenshaw at GMAIL.COM Mon Oct 22 14:52:34 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Mon, 22 Oct 2007 14:52:34 -0700 Subject: Postgres Raster image display In-Reply-To: <7B48FDCD-0916-4569-8F2B-DF07863838F6@refractions.net> Message-ID: On 10/22/07, Paul Ramsey wrote: > Answer here? > > http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#example-of- > wms-t-with-postgis-tile-index-for-raster-imagery > I gave it a try but i keep getting the error: msSHPOpenFile(): Unable to access file. (/var/www/html/data/location) here is what i changed by map file too: LAYER NAME "stereo_simp" TYPE POLYGON STATUS on CONNECTION "host=localhost dbname=mars user=postgres" CONNECTIONTYPE POSTGIS #DATA "/hiview/products/data_sun/20070929_000600_14euA_171_16_gdal.tif" DATA "the_geom FROM usgs_gaz" END LAYER NAME "stereo_test" STATUS on TYPE RASTER PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit PROJECTION "init=epsg:4326" END DUMP TRUE METADATA wms_title "USGS Gazetteer Place Names" ## REQUIRED wms_srs "EPSG:4326" END TILEINDEX "location" TILEITEM "stereo_simp" END # layer whenever i use the tag TILEINDEX is always looks for a file, in my case a file /var/www/html/data/location. Why cant i get this to grab the path in the database that contains the location of the file? > On 22-Oct-07, at 2:28 PM, Ryan Ollerenshaw wrote: > > > On 10/22/07, Ryan Ollerenshaw wrote: > >> How can i use a Postgres database to display raster images with > >> Mapserver? There are lots of examples on display features this way > >> and using a gdaltindex to create a shapefile but i cant find any that > >> talk about using a database to store raster images. Here is what > >> i am > >> currently trying: > >> > >> LAYER > >> NAME "stereo_simp" > >> TYPE RASTER > >> PROCESSING "SCALE=AUTO" #rescale 16-bit image to 8-bit > >> STATUS on > >> CONNECTION "host=localhost dbname=test user=postgres" > >> CONNECTIONTYPE POSTGIS > >> DATA "location FROM stereo" > >> TILEINDEX "stereo" #the table name > >> TILEITEM "location" #column that contains the path to the image > >> END > >> > >> if i just try and display the image directly it works just fine: > >> > >> LAYER > >> NAME "stereo_simp" > >> TYPE RASTER > >> PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > >> STATUS on > >> DATA "/hiview/products/data/20070929_000600_14euA_171_16_gdal.tif" > >> END > >> > > > > Sorry i should have been more clear on my post I do not want to store > > the images directly in the database, what i am trying to do is store > > the location of the image in the database and use mapserver to read > > this location column and display the image. This works fine when > > using gdaltindex when gdal generates the dbf file for example using > > this technique: > > > > LAYER > > NAME "stereo_simp" > > TYPE RASTER > > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > > STATUS on > > TILEINDEX "images.shp" > > TILEITEM "location" > > END > > > > but when i try to use Postgres as the TILEINDEX this does not work, > > ie: > > > > LAYER > > NAME "stereo_simp" > > TYPE RASTER > > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > > STATUS on > > CONNECTION "host=localhost dbname=test user=postgres" > > CONNECTIONTYPE POSTGIS > > TILEINDEX "the_geom FROM stereo" > > TILEITEM "location" > > END > > > > any ideas on what i am doing wrong? > > From rhow at I3.COM Mon Oct 22 15:31:31 2007 From: rhow at I3.COM (Randy How) Date: Mon, 22 Oct 2007 16:31:31 -0600 Subject: MS 5.x URL substitution changes - FILTER? In-Reply-To: <471CE733.5030102@territoriumonline.com> Message-ID: Thank you very much! I like the runtime substitution. When is this going to be documented at http://ms.gis.umn.edu/ ? Randy -----Original Message----- From: Andreas Albarello [mailto:andreas.albarello at territoriumonline.com] Sent: Monday, October 22, 2007 12:09 PM To: Randy How Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MS 5.x URL substitution changes - FILTER? Randy How wrote: > I?m stumped again. For 5.x it?s noted in the migration guide the CGI > URL substitutions have changed: > > http://trac.osgeo.org/mapserver/browser/tags/rel-5-0-0/mapserver/MIGRATION_G UIDE.TXT > > It?s the FILTER I need to override on the layer in the map file. I?m > wondering if it?s even possible anymore, or is there some other method > to achieve the same thing. Randy, yes, there is in fact another way to achieve the same thing. Have a look at these posts to the MapServer Dev list some time ago: http://www.nabble.com/forum/ViewPost.jtp?post=12414895&framed=y Everything that applies to expressions should apply to filters too in this regard. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From anakreon at CSD.AUTH.GR Tue Oct 23 01:37:56 2007 From: anakreon at CSD.AUTH.GR (Anakreon Mentis) Date: Tue, 23 Oct 2007 11:37:56 +0300 Subject: MySql error message In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F012D3E9F@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Gia sou Thoma. Mysql is running. To verify that the configuration is correct, I called ogr2ogr -f GML out.gml sites.ovf and the file out.gml contains the data. From andreas.albarello at TERRITORIUMONLINE.COM Tue Oct 23 01:55:55 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (andreas.albarello@territoriumonline.com) Date: Tue, 23 Oct 2007 10:55:55 +0200 Subject: MS 5.x URL substitution changes - FILTER? In-Reply-To: <03e001c814fb$4bab3f40$e301bdc0$@com> Message-ID: On Mon, 22 Oct 2007 16:31:31 -0600 Randy How wrote: > > Thank you very much! > > I like the runtime substitution. > > When is this going to be documented at > http://ms.gis.umn.edu/ ? That's a good question. Maybe you could add a comment to the website so this stuff gets added next time the docs are updated by the folks in charge of it. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From andresch at IWAY.NA Tue Oct 23 02:35:56 2007 From: andresch at IWAY.NA (Andre Schoonbee) Date: Tue, 23 Oct 2007 11:35:56 +0200 Subject: Mepserver Development platform Message-ID: I am faily new to Mapserver and am looking for a development platform / tool capable to design and develop an entire web front-end. I know of one product namely Neapoljs but is not opensource. Mapstorer seems to only focus on the mapfile itself. Any guidance will be apreciated! Regards Andre From ale.pas at TISCALI.IT Tue Oct 23 02:55:56 2007 From: ale.pas at TISCALI.IT (Alessandro Pasotti) Date: Tue, 23 Oct 2007 11:55:56 +0200 Subject: Mepserver Development platform In-Reply-To: <553410554b42.554b42553410@iway.na> Message-ID: Il marted? 23 ottobre 2007, Andre Schoonbee ha scritto: > I am faily new to Mapserver and am looking for a development > platform / tool capable to design and develop an entire web front-end. > I know of one product namely Neapoljs but is not opensource. > > Mapstorer seems to only focus on the mapfile itself. > > Any guidance will be apreciated! > > Regards > > Andre A few months ago I wrote a mapstorer plugin to configure p.mapper 2.1.1 webgis client directly from mapstorer, it is alpha quality code but if you like p.mapper as a client you could start from this plugin. I think you can find the plugin within mapstorer distribution (it's in svn trunk for sure) but it is disabled by default since not everybody needs it. -- Alessandro Pasotti itOpen - "Open Solutions for the Net Age" w3: www.itopen.it Linux User# 167502 From Tom.Kralidis at EC.GC.CA Tue Oct 23 05:29:24 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 23 Oct 2007 08:29:24 -0400 Subject: MySql error message In-Reply-To: A<18205.45796.982665.286240@mathind.csd.auth.gr> Message-ID: > > Gia sou Thoma. > > Mysql is running. > To verify that the configuration is correct, I called ogr2ogr > -f GML out.gml sites.ovf and the file out.gml contains the data. > This is weird. Is the database on the same host as MapServer? Is your webapp/service available to test (email me offlist)? Which web server are you using? ..Tom From Tom.Kralidis at EC.GC.CA Tue Oct 23 09:08:44 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Tue, 23 Oct 2007 12:08:44 -0400 Subject: MySql error message In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059F6E@ecburexch1.ontario.int.ec.gc.ca> Message-ID: > > > > Gia sou Thoma. > > > > Mysql is running. > > To verify that the configuration is correct, I called > ogr2ogr -f GML > > out.gml sites.ovf and the file out.gml contains the data. > > > > This is weird. Is the database on the same host as > MapServer? Is your webapp/service available to test (email > me offlist)? Which web server are you using? After some offline testing, it was concluded that the issue is independent of MapServer's ability to satisfy this scenario. ..Tom From bfraser at GEOANALYTIC.COM Tue Oct 23 09:21:59 2007 From: bfraser at GEOANALYTIC.COM (Brent Fraser) Date: Tue, 23 Oct 2007 10:21:59 -0600 Subject: Postgres Raster image display Message-ID: Ryan, You've got TILEINDEX and TILEITEM swapped. They should be: TILEITEM "location" TILEINDEX "stereo_simp" TILEINDEX is the name of the layer in the map file defining the tileindex geometry, TILEITEM is the attribute field in that layer showing the location of the raster files. Brent Fraser GeoAnalytic Inc. Calgary, Alberta ----- Original Message ----- From: "Ryan Ollerenshaw" To: Sent: Monday, October 22, 2007 3:52 PM Subject: Re: [UMN_MAPSERVER-USERS] Postgres Raster image display > On 10/22/07, Paul Ramsey wrote: > > Answer here? > > > > http://mapserver.gis.umn.edu/docs/howto/wms_time_support/#example-of- > > wms-t-with-postgis-tile-index-for-raster-imagery > > > > I gave it a try but i keep getting the error: > msSHPOpenFile(): Unable to access file. (/var/www/html/data/location) > > here is what i changed by map file too: > > LAYER > NAME "stereo_simp" > TYPE POLYGON > STATUS on > CONNECTION "host=localhost dbname=mars user=postgres" > CONNECTIONTYPE POSTGIS > #DATA "/hiview/products/data_sun/20070929_000600_14euA_171_16_gdal .tif" > DATA "the_geom FROM usgs_gaz" > END > > LAYER > NAME "stereo_test" > STATUS on > TYPE RASTER > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > PROJECTION > "init=epsg:4326" > END > DUMP TRUE > METADATA > wms_title "USGS Gazetteer Place Names" ## REQUIRED > wms_srs "EPSG:4326" > END > TILEINDEX "location" > TILEITEM "stereo_simp" > END # layer > > whenever i use the tag TILEINDEX is always looks for a file, in my > case a file /var/www/html/data/location. Why cant i get this to grab > the path in the database that contains the location of the file? > > > On 22-Oct-07, at 2:28 PM, Ryan Ollerenshaw wrote: > > > > > On 10/22/07, Ryan Ollerenshaw wrote: > > >> How can i use a Postgres database to display raster images with > > >> Mapserver? There are lots of examples on display features this way > > >> and using a gdaltindex to create a shapefile but i cant find any that > > >> talk about using a database to store raster images. Here is what > > >> i am > > >> currently trying: > > >> > > >> LAYER > > >> NAME "stereo_simp" > > >> TYPE RASTER > > >> PROCESSING "SCALE=AUTO" #rescale 16-bit image to 8-bit > > >> STATUS on > > >> CONNECTION "host=localhost dbname=test user=postgres" > > >> CONNECTIONTYPE POSTGIS > > >> DATA "location FROM stereo" > > >> TILEINDEX "stereo" #the table name > > >> TILEITEM "location" #column that contains the path to the image > > >> END > > >> > > >> if i just try and display the image directly it works just fine: > > >> > > >> LAYER > > >> NAME "stereo_simp" > > >> TYPE RASTER > > >> PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > > >> STATUS on > > >> DATA "/hiview/products/data/20070929_000600_14euA_171_16_gdal.tif " > > >> END > > >> > > > > > > Sorry i should have been more clear on my post I do not want to store > > > the images directly in the database, what i am trying to do is store > > > the location of the image in the database and use mapserver to read > > > this location column and display the image. This works fine when > > > using gdaltindex when gdal generates the dbf file for example using > > > this technique: > > > > > > LAYER > > > NAME "stereo_simp" > > > TYPE RASTER > > > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > > > STATUS on > > > TILEINDEX "images.shp" > > > TILEITEM "location" > > > END > > > > > > but when i try to use Postgres as the TILEINDEX this does not work, > > > ie: > > > > > > LAYER > > > NAME "stereo_simp" > > > TYPE RASTER > > > PROCESSING "SCALE=AUTO" #rescale 16-bit to 8-bit > > > STATUS on > > > CONNECTION "host=localhost dbname=test user=postgres" > > > CONNECTIONTYPE POSTGIS > > > TILEINDEX "the_geom FROM stereo" > > > TILEITEM "location" > > > END > > > > > > any ideas on what i am doing wrong? > > > > From saengpole at YAHOO.COM Tue Oct 23 11:22:13 2007 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Tue, 23 Oct 2007 11:22:13 -0700 Subject: Error when create annotation layer in PHPMapscript Message-ID: Hi all, I have a question about creating annotation layer using phpmapscript. I created layer as follow: $layer=ms_newLayerObj($map); $layer->set("name", $name); $layer->set("data", $data); $layer->set("type", MS_LAYER_ANNOTAION); $layer->set("status", MS_ON); $layer->set("labelitem", $item); $class=ms_newClassObj($layer); $class->label->color->setRGB($color[0],$color[1],$color[2]); $class->label->outlinecolor->setRGB($outline[0],$outline[1],$outline[2]); $class->label->set("type", MS_TRUETYPE); $class->label->set("font", "cordia"); // defned in fontlist file $class->label->set("size", 14); $class->label->set("position", MS_CC); $class->label->set("encoding", "tis620"); when it came to $img=$map->draw(); it showed 9 or 10 sentences of: Warning: [MapServer Error]: msQueryByRect(): No matching record(s) found. in D:\Work\testing\area50.php on line 40 ..... ..... ..... and error again when it came to $img->saveImage($file); as Fatal error: Call to a member function saveImage() on a non-object in D:\Work\biomass\area50.php on line 41 But if I created this layer with polygon type, it'd no trouble (surely a little diffenrent code). Have I done anything wrong with the code? TIA Krung __________________________________________________ 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 ryanollerenshaw at GMAIL.COM Tue Oct 23 11:27:13 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Tue, 23 Oct 2007 11:27:13 -0700 Subject: shp2img: free(): invalid next size Message-ID: During my Mapserver install i get an error that says unable to location ogr_api.h in map.h so i then have to go in and edit map.h to specify the location of ogr_api.h by hand. Then on the next run of make i get the error unable to locate cpl_minixml.h in mapogcsld.h so i then have to add the path to cpl_minixml.h in mapogcsld.h by hand as well. After this the make seems to run fine, except for the warnings: php_mapscript.c: In function ???php3_ms_img_pasteImage???: php_mapscript.c:6320: warning: implicit declaration of function ???php_gd_gdImageColorExact??? php_mapscript.c:6324: warning: implicit declaration of function ???php_gd_gdImageColorTransparent??? php_mapscript.c:6327: warning: implicit declaration of function ???php_gd_gdImageCopy??? after the make is complete when i try to run shp2img i get the error: *** glibc detected *** ./shp2img: free(): invalid next size (fast): 0x08564e00 *** ======= Backtrace: ========= /lib/i686/nosegneg/libc.so.6[0x1ee2c8d] /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x1ee6340] ...... ...... I am trying to install Mapserver 4.10.3 on fedora core 6. I have Mapserver 4.8.4 installed and running just fine but i need the WMS time Support that was added in 4.9 and up, so i need this new install to work. Any ideas on what has changed between versions 4.8 and 4.10 that would cause these errors? From ryanollerenshaw at GMAIL.COM Tue Oct 23 12:08:15 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Tue, 23 Oct 2007 12:08:15 -0700 Subject: shp2img: free(): invalid next size In-Reply-To: <471E3F0C.7010709@Noaa.gov> Message-ID: On 10/23/07, Kyle Wilcox wrote: > Are you compiling 4.10 the same way you did 4.8.3? Same GD/OGR? Yes, everything in my configure command is the same. > Ryan Ollerenshaw wrote: > > During my Mapserver install i get an error that says unable to > > location ogr_api.h in map.h so i then have to go in and edit map.h to > > specify the location of ogr_api.h by hand. Then on the next run of > > make i get the error unable to locate cpl_minixml.h in mapogcsld.h so > > i then have to add the path to cpl_minixml.h in mapogcsld.h by hand as > > well. After this the make seems to run fine, except for the warnings: > > > > php_mapscript.c: In function ???php3_ms_img_pasteImage???: > > php_mapscript.c:6320: warning: implicit declaration of function > > ???php_gd_gdImageColorExact??? > > php_mapscript.c:6324: warning: implicit declaration of function > > ???php_gd_gdImageColorTransparent??? > > php_mapscript.c:6327: warning: implicit declaration of function > > ???php_gd_gdImageCopy??? > > > > after the make is complete when i try to run shp2img i get the error: > > > > *** glibc detected *** ./shp2img: free(): invalid next size (fast): > > 0x08564e00 *** > > ======= Backtrace: ========= > > /lib/i686/nosegneg/libc.so.6[0x1ee2c8d] > > /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x1ee6340] > > ...... > > ...... > > > > I am trying to install Mapserver 4.10.3 on fedora core 6. I have > > Mapserver 4.8.4 installed and running just fine but i need the WMS > > time Support that was added in 4.9 and up, so i need this new install > > to work. Any ideas on what has changed between versions 4.8 and 4.10 > > that would cause these errors? > > -- > > Kyle Wilcox > NOAA Chesapeake Bay Office > 410 Severn Avenue > Suite 107A > Annapolis, MD 21403 > office: (410) 295-3151 > Kyle.Wilcox at noaa.gov > > "It is from the wellspring of our despair and the places > that we are broken that we come to repair the world." > - Murray Waas > From dmorissette at MAPGEARS.COM Tue Oct 23 12:32:19 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Tue, 23 Oct 2007 15:32:19 -0400 Subject: Error when create annotation layer in PHPMapscript In-Reply-To: <756976.67626.qm@web90405.mail.mud.yahoo.com> Message-ID: Krung Saengpole wrote: > Hi all, > > I have a question about creating annotation layer using phpmapscript. I > created layer as follow: > > $layer=ms_newLayerObj($map); > $layer->set("name", $name); > $layer->set("data", $data); > $layer->set("type", MS_LAYER_ANNOTAION); I'm not convinced that this alone would explain the errors you got, but there is a typo here... should be MS_LAYER_ANNOTATION... perhaps try fixing that and see. [...] > when it came to > > $img=$map->draw(); > > it showed 9 or 10 sentences of: > ** > *Warning*: [MapServer Error]: msQueryByRect(): No matching record(s) > found. in *D:\Work\testing\area50.php* on line *40* > *.....* > *.....* > *.....* > Could it be that you made a queryByRect() between the time the layer was created and the time at which you call $map->draw()? Perhaps try calling ms_ResetErrorList() after the queryByRect() or before the call to $map->draw(). I suspect that the query leaves warnings in the error stack and this may confuse the $map->draw() method. Daniel -- Daniel Morissette http://www.mapgears.com/ From Steve.Lime at DNR.STATE.MN.US Tue Oct 23 12:39:29 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Tue, 23 Oct 2007 14:39:29 -0500 Subject: query template question In-Reply-To: <1ebb87870710220742t2e2c93dbpa78c8da5db308c94@mail.gmail.com> Message-ID: You mean like a default template? Not specifically. There is a workaround however. There are 2 substitution strings: [items] and [values] that give you a comma-delimited list of all items and then all values. So you could use them with a little javascript to dump the data into arrays and then display the content of those arrays. I've done it, works nice! Steve >>> On 10/22/2007 at 9:42 AM, in message <1ebb87870710220742t2e2c93dbpa78c8da5db308c94 at mail.gmail.com>, Bart van den Eijnden wrote: > Hi list, > > is there a way to just get the following HTML out of a WMS GetFeatureInfo > request: > > > > > > > > > > >
MyAttributeNameMyAttributeValue
MyAttributeNameMyAttributeValue
> > *without* specifying the names of the columns explicitly in the template? > > Best regards, > Bart From rhow at I3.COM Tue Oct 23 15:36:56 2007 From: rhow at I3.COM (Randy How) Date: Tue, 23 Oct 2007 16:36:56 -0600 Subject: MS 5.x URL substitution changes - FILTER? In-Reply-To: Message-ID: FYI - I've added a comment here: http://mapserver.gis.umn.edu/docs/reference/mapfile/variable_sub -----Original Message----- From: andreas.albarello at territoriumonline.com [mailto:andreas.albarello at territoriumonline.com] Sent: Tuesday, October 23, 2007 2:56 AM To: Randy How Cc: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MS 5.x URL substitution changes - FILTER? On Mon, 22 Oct 2007 16:31:31 -0600 Randy How wrote: > > Thank you very much! > > I like the runtime substitution. > > When is this going to be documented at > http://ms.gis.umn.edu/ ? That's a good question. Maybe you could add a comment to the website so this stuff gets added next time the docs are updated by the folks in charge of it. Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From ryanollerenshaw at GMAIL.COM Tue Oct 23 17:22:17 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Tue, 23 Oct 2007 17:22:17 -0700 Subject: shp2img: free(): invalid next size In-Reply-To: <20b31d4d0710231208raa3296fq73cf1f77768de381@mail.gmail.com> Message-ID: On 10/23/07, Ryan Ollerenshaw wrote: > On 10/23/07, Kyle Wilcox wrote: > > Are you compiling 4.10 the same way you did 4.8.3? Same GD/OGR? > > Yes, everything in my configure command is the same. > Here is my configure command: ./configure --with-proj --enable-runpath --with-geos --with-ogr if i remove --with-ogr support shp2img works, but i need ogr support so i can set up my WFS. Any ideas on why ogr is causing this memory error. I have tried installing gdal version 1.4.0, 1.4.1, and 1.4.2 and they all seem to have the same problem. > > Ryan Ollerenshaw wrote: > > > During my Mapserver install i get an error that says unable to > > > location ogr_api.h in map.h so i then have to go in and edit map.h to > > > specify the location of ogr_api.h by hand. Then on the next run of > > > make i get the error unable to locate cpl_minixml.h in mapogcsld.h so > > > i then have to add the path to cpl_minixml.h in mapogcsld.h by hand as > > > well. After this the make seems to run fine, except for the warnings: > > > > > > php_mapscript.c: In function ???php3_ms_img_pasteImage???: > > > php_mapscript.c:6320: warning: implicit declaration of function > > > ???php_gd_gdImageColorExact??? > > > php_mapscript.c:6324: warning: implicit declaration of function > > > ???php_gd_gdImageColorTransparent??? > > > php_mapscript.c:6327: warning: implicit declaration of function > > > ???php_gd_gdImageCopy??? > > > > > > after the make is complete when i try to run shp2img i get the error: > > > > > > *** glibc detected *** ./shp2img: free(): invalid next size (fast): > > > 0x08564e00 *** > > > ======= Backtrace: ========= > > > /lib/i686/nosegneg/libc.so.6[0x1ee2c8d] > > > /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x1ee6340] > > > ...... > > > ...... > > > > > > I am trying to install Mapserver 4.10.3 on fedora core 6. I have > > > Mapserver 4.8.4 installed and running just fine but i need the WMS > > > time Support that was added in 4.9 and up, so i need this new install > > > to work. Any ideas on what has changed between versions 4.8 and 4.10 > > > that would cause these errors? > > > > -- > > > > Kyle Wilcox > > NOAA Chesapeake Bay Office > > 410 Severn Avenue > > Suite 107A > > Annapolis, MD 21403 > > office: (410) 295-3151 > > Kyle.Wilcox at noaa.gov > > > > "It is from the wellspring of our despair and the places > > that we are broken that we come to repair the world." > > - Murray Waas > > > From canales1 at LLNL.GOV Tue Oct 23 17:48:23 2007 From: canales1 at LLNL.GOV (Tom Canales) Date: Tue, 23 Oct 2007 19:48:23 -0500 Subject: Mapserver demo - troubles Message-ID: An HTML attachment was scrubbed... URL: From ryanollerenshaw at GMAIL.COM Tue Oct 23 18:42:13 2007 From: ryanollerenshaw at GMAIL.COM (Ryan Ollerenshaw) Date: Tue, 23 Oct 2007 18:42:13 -0700 Subject: shp2img: free(): invalid next size In-Reply-To: <20b31d4d0710231722o709c3576r43215d06c9d437b6@mail.gmail.com> Message-ID: On 10/23/07, Ryan Ollerenshaw wrote: > On 10/23/07, Ryan Ollerenshaw wrote: > > On 10/23/07, Kyle Wilcox wrote: > > > Are you compiling 4.10 the same way you did 4.8.3? Same GD/OGR? > > > > Yes, everything in my configure command is the same. > > > > Here is my configure command: > ./configure --with-proj --enable-runpath --with-geos --with-ogr > > if i remove --with-ogr support shp2img works, but i need ogr support > so i can set up my WFS. Any ideas on why ogr is causing this memory > error. I have tried installing gdal version 1.4.0, 1.4.1, and 1.4.2 > and they all seem to have the same problem. > Still no luck but i installed Mapserver version 4.10.0 and everything seems to work fine. > > > Ryan Ollerenshaw wrote: > > > > During my Mapserver install i get an error that says unable to > > > > location ogr_api.h in map.h so i then have to go in and edit map.h to > > > > specify the location of ogr_api.h by hand. Then on the next run of > > > > make i get the error unable to locate cpl_minixml.h in mapogcsld.h so > > > > i then have to add the path to cpl_minixml.h in mapogcsld.h by hand as > > > > well. After this the make seems to run fine, except for the warnings: > > > > > > > > php_mapscript.c: In function ???php3_ms_img_pasteImage???: > > > > php_mapscript.c:6320: warning: implicit declaration of function > > > > ???php_gd_gdImageColorExact??? > > > > php_mapscript.c:6324: warning: implicit declaration of function > > > > ???php_gd_gdImageColorTransparent??? > > > > php_mapscript.c:6327: warning: implicit declaration of function > > > > ???php_gd_gdImageCopy??? > > > > > > > > after the make is complete when i try to run shp2img i get the error: > > > > > > > > *** glibc detected *** ./shp2img: free(): invalid next size (fast): > > > > 0x08564e00 *** > > > > ======= Backtrace: ========= > > > > /lib/i686/nosegneg/libc.so.6[0x1ee2c8d] > > > > /lib/i686/nosegneg/libc.so.6(cfree+0x90)[0x1ee6340] > > > > ...... > > > > ...... > > > > > > > > I am trying to install Mapserver 4.10.3 on fedora core 6. I have > > > > Mapserver 4.8.4 installed and running just fine but i need the WMS > > > > time Support that was added in 4.9 and up, so i need this new install > > > > to work. Any ideas on what has changed between versions 4.8 and 4.10 > > > > that would cause these errors? > > > > > > -- > > > > > > Kyle Wilcox > > > NOAA Chesapeake Bay Office > > > 410 Severn Avenue > > > Suite 107A > > > Annapolis, MD 21403 > > > office: (410) 295-3151 > > > Kyle.Wilcox at noaa.gov > > > > > > "It is from the wellspring of our despair and the places > > > that we are broken that we come to repair the world." > > > - Murray Waas > > > > > > From crispin.flower at NTLWORLD.COM Wed Oct 24 00:15:24 2007 From: crispin.flower at NTLWORLD.COM (Crispin and Naomi) Date: Wed, 24 Oct 2007 08:15:24 +0100 Subject: WKT in SQL Server Message-ID: Hi all, I mailed some of this before, but trying again a bit clearer I hope... I have SQL Server tables containing WKT in a "memo" field, plus X/Y fields plus MINX, MINY, MAXX, MAXY fields defining the bounding boxes for each record. I'm dishing this up as a WMS just fine through MapServer , but one problem is that it drags the whole table out of the database for each request. I have bounding box fields in the database and I was hoping it would use these to pull only the features in the view extent. More detail: Spatial indexing. If I define a OGR VRT virtual data source to use just the X/Y fields, then the query sent to SQL Server is intelligent, e.g. SELECT * FROM GatewayGeometry WHERE X > 614184.893276474 AND X < 631578.629575045 AND Y > 159333.447265398 AND Y < 171142.163554331 which is nice and quick as these fields are indexed. but if I use the WKT with this then MapServer calls the whole table: SELECT * FROM GatewayGeometry (and then obviously does the spatial filtering in MapServer). I've also tried the other method where I just connect with CONNECTIONTYPE OGR CONNECTION "ODBC:myusername/mypassword at myDSN" DATA "mytable" and have a table in the database called Geometry_columns etc. This works fine, but again it fails to send through any querying of the bounding box and just queries the whole table every time. I have seen conflicting messages on this in MapServer and OGR help. One bit says it wants to use MINX etc as a spatial index, but another bit says that WKT never uses a spatial index. Seems to me there's no reason not to use the bounding boxes to speed things up, but some dodgy stored procedure calls seems to come through to SQL Server, and perhaps MapServer cannot work out whether the fields exist... These commands hit the SQL server: SELECT f_table_name, f_geometry_column, geometry_type FROM geometry_columns (OK) exec ..sp_pkeys N'GatewayGeometry', N'', N'' (fails) exec sp_pkeys N' ', N'', NULL (returns nothing) exec sp_columns N'GatewayGeometry', NULL, NULL, NULL (OK) and finally SELECT * FROM GatewayGeometry Can I do better? (and PS no I cannot just move it all into PostGIS, though I realise that might be better until SQL 2008 is released with spatial support !) best wishes Crispin No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.8/1089 - Release Date: 23/10/2007 19:39 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmckenna at DMSOLUTIONS.CA Wed Oct 24 06:38:22 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Wed, 24 Oct 2007 09:38:22 -0400 Subject: Mapserver demo - troubles In-Reply-To: Message-ID: The 'MapServer demo' application (also available at http://mapserver.gis.umn.edu/download/current/) has not been updated for MapServer 5.0 yet. I have tried to update the ms4w one but I can only get 3/4 of it going. Can the maintainers of the MapServer 'demo' please update it for 5.0? -- jeff Tom Canales wrote: > I'm attempting to bootstrap myself on MapServer and am stuck. I've > downloaded and installed the MS4W server (V2.2.6) with no problem. > Successfully viewed the root feature page (http://localhost) and > verified the expected return string: "No query information to decode. > QUERY_STRING is set, but empty." when testing: > http://localhost/cgi-bin/mapserv.exe. Next I added the MapServer Itasca > Demo app and restarted the apache server. The root feature page now > indicates I have the new app running (http://localhost/mapserv-demo/) > however when I attempt to "initialize" the basic app I get the > following: loadWeb(): Unknown identifier. Parsing error near > (/ms4w/tmp/ms_tmp/):(line 1) Any suggestions? From Steve.Lime at DNR.STATE.MN.US Wed Oct 24 06:53:46 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 24 Oct 2007 08:53:46 -0500 Subject: Mapserver demo - troubles Message-ID: I'll take care of it... Steve >>> Jeff McKenna 10/24/07 8:38 AM >>> The 'MapServer demo' application (also available at http://mapserver.gis.umn.edu/download/current/) has not been updated for MapServer 5.0 yet. I have tried to update the ms4w one but I can only get 3/4 of it going. Can the maintainers of the MapServer 'demo' please update it for 5.0? -- jeff Tom Canales wrote: > I'm attempting to bootstrap myself on MapServer and am stuck. I've > downloaded and installed the MS4W server (V2.2.6) with no problem. > Successfully viewed the root feature page (http://localhost) and > verified the expected return string: "No query information to decode. > QUERY_STRING is set, but empty." when testing: > http://localhost/cgi-bin/mapserv.exe. Next I added the MapServer Itasca > Demo app and restarted the apache server. The root feature page now > indicates I have the new app running (http://localhost/mapserv-demo/) > however when I attempt to "initialize" the basic app I get the > following: loadWeb(): Unknown identifier. Parsing error near > (/ms4w/tmp/ms_tmp/):(line 1) Any suggestions? From eric.c2c at GMAIL.COM Wed Oct 24 07:04:42 2007 From: eric.c2c at GMAIL.COM (Eric Lemoine) Date: Wed, 24 Oct 2007 16:04:42 +0200 Subject: wfs server and encoding Message-ID: Hello I have some data that is served by MapServer WFS. This data is stored in MapInfo MAP TAB files and is encoded in ISO-8859-1. I'd like MapServer WFS to generate an UTF-8 encoded GML file. I tried to use "wfs_encoding" "UTF-8" in my mapfile but it looks like MapServer just changes the encoding attribute without actually converting the data (from ISO-8859-1 to UTF-8). Is there a way to ask MapServer to actually perform that data conversion? Thanks, -- Eric From woodbri at SWOODBRIDGE.COM Wed Oct 24 07:13:03 2007 From: woodbri at SWOODBRIDGE.COM (Stephen Woodbridge) Date: Wed, 24 Oct 2007 10:13:03 -0400 Subject: Mapserver demo - troubles In-Reply-To: <471F081B0200008F0001091E@co5.dnr.state.mn.us> Message-ID: Steve, I would be good if you could summarize the changes you need to make in the migration guide. It seems like some people are having more problems with the migration than others and a little extra doc might help with some of it. Thanks, -Steve W Steve Lime wrote: > I'll take care of it... > > Steve > >>>> Jeff McKenna 10/24/07 8:38 AM >>> > The 'MapServer demo' application (also available at > http://mapserver.gis.umn.edu/download/current/) has not been updated for > MapServer 5.0 yet. I have tried to update the ms4w one but I can only > get 3/4 of it going. Can the maintainers of the MapServer 'demo' please > update it for 5.0? > > -- > jeff > > > > > Tom Canales wrote: >> I'm attempting to bootstrap myself on MapServer and am stuck. I've >> downloaded and installed the MS4W server (V2.2.6) with no problem. >> Successfully viewed the root feature page (http://localhost) and >> verified the expected return string: "No query information to decode. >> QUERY_STRING is set, but empty." when testing: >> http://localhost/cgi-bin/mapserv.exe. Next I added the MapServer Itasca >> Demo app and restarted the apache server. The root feature page now >> indicates I have the new app running (http://localhost/mapserv-demo/) >> however when I attempt to "initialize" the basic app I get the >> following: loadWeb(): Unknown identifier. Parsing error near >> (/ms4w/tmp/ms_tmp/):(line 1) Any suggestions? From warmerdam at POBOX.COM Wed Oct 24 10:06:00 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Oct 2007 13:06:00 -0400 Subject: WKT in SQL Server In-Reply-To: <001f01c8160d$a6bed7d0$0201a8c0@flowerpc> Message-ID: Crispin and Naomi wrote: > Hi all, > I mailed some of this before, but trying again a bit clearer I hope... > > I have SQL Server tables containing WKT in a "memo" field, plus X/Y > fields plus MINX, MINY, MAXX, MAXY fields defining the bounding boxes > for each record. > > I'm dishing this up as a WMS just fine through MapServer , but one > problem is that it drags the whole table out of the database for each > request. I have bounding box fields in the database and I was hoping it > would use these to pull only the features in the view extent. More detail: ... > Can I do better? (and PS no I cannot just move it all into PostGIS, > though I realise that might be better until SQL 2008 is released with > spatial support !) Crispin, The ODBC driver should support using spatial extents if available. I'm not sure why isn't working for you. Would you be willing to try and copy the table in question, or at least a few records from it, to an .mdb file and try the same request? If that has the same problem it would be easy to report it as a bug report against GDAL/OGR and for me or Mateusz to track it down. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From jlacroix at MAPGEARS.COM Wed Oct 24 10:23:05 2007 From: jlacroix at MAPGEARS.COM (Julien-Samuel Lacroix) Date: Wed, 24 Oct 2007 13:23:05 -0400 Subject: MapServer and AGG licences Message-ID: Hi, There was a very informative discussion on the MapServer-Dev mailing-list about a MapServer vs AGG 2.5 licence compatibility. In short I think it reads like the following. Note that AGG 2.4 has no licence issue with MapServer since it was a BSD licence. > "For AGG, you'll be linking to a GPL library, which means you won't be > able to distribute BSD binaries anymore -- any binary linked against > AGG will have to go out under the GPL. Basically, if you only care > about Mapserver as an open source product, it's no problem, but if > you have any plans to distribute altered versions as closed source, > you cannot do it with the AGG dependency turned on." and > If one distributes MapServer linked with a GPL AGG I *think* you are > required to provide MapServer under GPL terms. Because there is no > one contributor who has rights to alter MapServer licensing terms I > believe the distributor would be in violation of the AGG GPL terms. See: http://lists.umn.edu/cgi-bin/wa?A2=ind0710&L=mapserver-dev&D=1&T=0&O=D&X=4DEC7415D8C7791480&P=12919 Julien PS: There was no discussion of re-licencing MapServer. -- Julien-Samuel Lacroix Mapgears http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Wed Oct 24 11:54:00 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 24 Oct 2007 14:54:00 -0400 Subject: wfs server and encoding In-Reply-To: <5ec103de0710240704h73e3717eke7ed41921d0389b2@mail.gmail.com> Message-ID: Eric Lemoine wrote: > > I have some data that is served by MapServer WFS. This data is stored > in MapInfo MAP TAB files and is encoded in ISO-8859-1. I'd like > MapServer WFS to generate an UTF-8 encoded GML file. I tried to use > "wfs_encoding" "UTF-8" in my mapfile but it looks like MapServer just > changes the encoding attribute without actually converting the > data (from ISO-8859-1 to UTF-8). Is there a way to ask MapServer to > actually perform that data conversion? > You're right that "wfs_encoding" only sets the XML header and does not do any conversion of the attribute values. There is currently no way to ask MapServer to automatially convert from one encoding to the other when outputting GML. The only place where encoding conversions are currently supported is in rendering of labels on a map if you specify the LABEL ENCODING parameter. Daniel -- Daniel Morissette http://www.mapgears.com/ From canales1 at LLNL.GOV Wed Oct 24 11:54:46 2007 From: canales1 at LLNL.GOV (Tom Canales) Date: Wed, 24 Oct 2007 13:54:46 -0500 Subject: Flash support Message-ID: I'm using the latest MS4W server. Does this new 5.x release of MapServer come with built-in support for outputing Flash (.swf) or do I still need to add the ming libs? Not sure if all the documentation I've been reading is up to date and consistent with the with latest release From mlinden at ZEELANDNET.NL Wed Oct 24 12:00:58 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Wed, 24 Oct 2007 21:00:58 +0200 Subject: wfs server and encoding In-Reply-To: <471F94C8.3040802@mapgears.com> Message-ID: I ran in to exactly the same problem, getting the data in UTF-8 was an absolute " must" in order to get the labels to show up right in a Flash GIS client. After searching the internet and contacting some technicians at MapInfo UK, I found that the only solution was to create a postGIS database in UTF-8 format; read the MapInfo data into the postGIS database with OGR and correcting encoding errors by hand.... On Wed, 2007-10-24 at 14:54 -0400, Daniel Morissette wrote: > Eric Lemoine wrote: > > > > I have some data that is served by MapServer WFS. This data is stored > > in MapInfo MAP TAB files and is encoded in ISO-8859-1. I'd like > > MapServer WFS to generate an UTF-8 encoded GML file. I tried to use > > "wfs_encoding" "UTF-8" in my mapfile but it looks like MapServer just > > changes the encoding attribute without actually converting the > > data (from ISO-8859-1 to UTF-8). Is there a way to ask MapServer to > > actually perform that data conversion? > > > > You're right that "wfs_encoding" only sets the XML header and does not > do any conversion of the attribute values. There is currently no way to > ask MapServer to automatially convert from one encoding to the other > when outputting GML. > > The only place where encoding conversions are currently supported is in > rendering of labels on a map if you specify the LABEL ENCODING parameter. > > Daniel From dmorissette at MAPGEARS.COM Wed Oct 24 12:18:52 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 24 Oct 2007 15:18:52 -0400 Subject: wfs server and encoding In-Reply-To: <1193252459.5903.2.camel@milo-laptop> Message-ID: Milo van der Linden wrote: > I ran in to exactly the same problem, getting the data in UTF-8 was an > absolute " must" in order to get the labels to show up right in a Flash > GIS client. > > After searching the internet and contacting some technicians at MapInfo > UK, I found that the only solution was to create a postGIS database in > UTF-8 format; read the MapInfo data into the postGIS database with OGR > and correcting encoding errors by hand.... > Err... if hacks are an option, then here is an untested hack that might be a bit simpler: 1- Use ogr2ogr or MITAB's tab2tab program (http://mitab.maptools.org/) to convert the tab dataset to .MIF/.MID 2- The TAB attributes are stored in the .MID file which is a regular text file. You could use the iconv command-line utility (on Linux anyway) to convert the encoding of attributes to UTF-8: iconv ?from-code=ISO-8859-1 ?to-code=UTF-8 mydata.mid > mydata_utf8.mid 3- Copy mydata.mif to mydata_utf8.mif 4- Edit the mydata_utf8.mif to change the Charset line to whatever MapInfo uses for UTF-8 (presumably "UTF-8") 5- Use ogr2ogr or tab2tab to convert mydata_utf8.mif + mydata_utf8.mid to TAB format. This process can easily be scripted in a .BAT or bash file to run on multiple files. Once again, I didn't test this, but I can't see why that would not work. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Wed Oct 24 12:23:06 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Wed, 24 Oct 2007 15:23:06 -0400 Subject: wfs server and encoding In-Reply-To: <471F9A9C.5060601@mapgears.com> Message-ID: Daniel Morissette wrote: > > 2- The TAB attributes are stored in the .MID file which is a regular > text file. You could use the iconv command-line utility (on Linux > anyway) to convert the encoding of attributes to UTF-8: > > iconv ?from-code=ISO-8859-1 ?to-code=UTF-8 mydata.mid > mydata_utf8.mid > > 3- Copy mydata.mif to mydata_utf8.mif > Oh... you may want to run the .MIF file through iconv as well so that if your data contains text labels they are also converted to UTF-8. Daniel -- Daniel Morissette http://www.mapgears.com/ From jeff2006 at SVS.GSFC.NASA.GOV Wed Oct 24 14:26:40 2007 From: jeff2006 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Wed, 24 Oct 2007 17:26:40 -0400 Subject: problem with Mapserver WCS handling of NaN? Message-ID: The Web Coverage Service (WCS) feature is (sort of) working on our installation, now that our sysadmin recompiled --with-wcs. However, the not-a-number (NaN) values in the floating-point GeoTIFF data files used as input do not seem to be handled correctly. - When the GeoTIFF is a single global dataset, the NaNs are converted to zeroes. I can filter those out of these particular data only because the valid data are all in a range > 0. - More seriously, when there are multiple GeoTIFF files enumerated in a tile index, the NaN areas overwrite data from earlier GeoTIFFs, even though the WMS component handles this properly. For example, this test image was generated via WMS: http://www.map.nasa.gov/test/soar/wms-nans.png The no-data areas are blank and transparent, as desired (the black rectangle has something to do with my attempt to classify the raster data, but is a different problem than the NaN problem). This test image was generated from the WCS output: http://www.map.nasa.gov/test/soar/wcs-nans.png The no-data areas are opaque zeroes that hide valid data from other granules. Thanks for any help, Jeff DLB From samhiatt at GMAIL.COM Wed Oct 24 14:30:49 2007 From: samhiatt at GMAIL.COM (Samuel Hiatt) Date: Wed, 24 Oct 2007 14:30:49 -0700 Subject: 4D Raster access NOT via WMS? In-Reply-To: <1b181a320710121434w67319fb5hb7599ac9de45311a@mail.gmail.com> Message-ID: Can anyone help with this last question? I'm hesitant to start hacking at this 'cause I don't really feel like re-inventing the wheel... again. Is anyone familiar with the mechanism that is used when mapserver gets a WMS request with a TIME parameter? Maybe the solution lies there. The metadata tags required to make 4D WMS layers work all have "wms_ ..." at the beginning. I imagine that extending this functionality to any type of mapserver request (WMS, mapscript, CGI) would be very valuable (if it doesn't exist already). Thanks for your help. Sam On 10/12/07, Samuel Hiatt wrote: > > Thanks for the help. > > It should be very easy to filter my files for time. What should my > mapfile look like for the 4D layer? The same thing as for a 4D wms layer, > with the tile index and wms_* metadata tags but I would use mapscript to > screen the files? Do you know of a way I might reuse the screening code > that is used for 4D WMS? > > Thanks! > Sam > > > > On 10/12/07, Yewondwossen Assefa wrote: > > > > Samuel Hiatt wrote: > > > Hi! Thanks for the reply. > > > > > > So I suppose when I make a WMS request with TIME Mapserver applies the > > > filter behind the scenes, finding which feature in my tile_index.shp > > > represents the correct time and then processes the raster pointed to > > by > > > that feature? So if I want to implement the same kind of thing with > > > mapscript I'd have to write the filter myself? > > > > > That is correct : assuming that the underlying data can be filtered > > using a time field, you need to know the attribute and build the time > > expression and set it using mapscript. > > > > > The reason I am interested in doing this is to extend temporal > > > functionality to ka-map. I may end up abandoning that approach and > > > moving to a javascript WMS client (like OpenLayers of MapBuilder) > > instead. > > > > > > Thanks for your help. > > > > > > Sam > > > > > > > > > > > > On 10/11/07, *Yewondwossen Assefa* > > > wrote: > > > > > > Hi there, > > > > > > The Time parameter that is sent with a WMS request is simply > > > converted > > > to a time expression and set on the filter object of the layer. In > > the > > > case of wms. the metadata wms_timeitem will be used for the > > > attribute name. > > > if you are using mapscript, you would need to build the time > > > expression manually and set the filter parameter. Please refer to > > > http://mapserver.gis.umn.edu/docs/howto/wms_time_support (section > > 2.5) > > > to see how time parameters are interpreted. > > > > > > Best Regards, > > > > > > > > > Samuel Hiatt wrote: > > > > I am excited to see that Mapserver supports 4D raster layers > > for WMS, > > > > but I am curious if this functionality can be extended to > > mapscript > > > > calls as well? For example, if I set up a raster layer with a > > TIME > > > > dimension then will it be possible for me to request an image > > for a > > > > specific time with mapscript? Or would I have to do this with > > a > > > WMS call? > > > > > > > > Thanks! > > > > > > > > Sam > > > > > > > > > -- > > > ---------------------------------------------------------------- > > > 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 > > ---------------------------------------------------------------- > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jukka.Rahkonen at MMMTIKE.FI Wed Oct 24 14:31:35 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 25 Oct 2007 00:31:35 +0300 Subject: A few questions about MapServer WCS Message-ID: Hi, I got interested in testing how I could deliver two kind of raster imagery through MapServer WCS. First set is aerial orthophotos, which I would like to download in GeoTIFF, Erdas Imagine .img and ECW formats. Other data set consists of 7-band satellite images. I had in my mind to select from one to seven bands from the satellite images in free order and download them in GeoTIFFs or .img format, and also in ecw format if the band count happens to be three. I managed to set up MapServer WCS service (even if the documents I found were not extremely clear) and I was rather satisfied with the first results I got with my aerial photos. My 3 GHz Pentium was sending images in GeoTIFF format to the network at a rate of 3 megabytes per second. However, with multichannel imagery I was not able to get everything work as I hoped. Perhaps somebody could answer to following questions: 1. Is it possible to set up a raster layer for delivering 7-band imagery in GeoTIFF/img formats? If it is, how? I tried with setting "wcs_bandcount" "7" in the LAYER METADATA, but that lead to error message saying that band count can not be higher that four. The NetCDF example I found from the use case document makes me think that it might be possible with some 'wcs_rangeset' settings. I just noticed that I did not try img output but only GeoTIFF. Perhaps there is something wrong with my outputformat settings? I were using the format I took from some example in the documents: OUTPUTFORMAT NAME GEOTIFF DRIVER "GDAL/GTiff" MIMETYPE "image/tiff" IMAGEMODE "BYTE" EXTENSION "tif" END 2. Does layer PROCESSING directives have any effect with WCS? I was trying to select certain bands from 7-band imagery by setting for example PROCESSING "BANDS=7,4,2" in LAYER definitions, but I received always just band combination 1,2,3. In this case I used "wcs_bandcount" "3". In addition to BANDS I would like to use also LUT and RESAMPLE options with WCS. 3. I have used wget for downloading from my WCS service and it works fine. I had installed one 'real' WCS client but it did not like my MapServer WCS service. Are there some WCS clients that are known to work well with MapServer WCS? Regards, -Jukka Rahkonen- From assefa at DMSOLUTIONS.CA Wed Oct 24 14:56:14 2007 From: assefa at DMSOLUTIONS.CA (Yewondwossen Assefa) Date: Wed, 24 Oct 2007 17:56:14 -0400 Subject: 4D Raster access NOT via WMS? In-Reply-To: <1b181a320710241430s291cca98oa986114c0248fa7a@mail.gmail.com> Message-ID: Samuel Hiatt wrote: > Can anyone help with this last question? I'm hesitant to start hacking > at this 'cause I don't really feel like re-inventing the wheel... > again. Is anyone familiar with the mechanism that is used when > mapserver gets a WMS request with a TIME parameter? Maybe the solution > lies there. > > The metadata tags required to make 4D WMS layers work all have "wms_ > ..." at the beginning. I imagine that extending this functionality to > any type of mapserver request (WMS, mapscript, CGI) would be very > valuable (if it doesn't exist already). > As explained earlier, the wms will take the time parameter and transform it to a valid time expression and set the FILTER element of the layer with that expression. wms_xxx tags are there to hold information so that this tarnsformation can be done (hold information such as which is the time field on the layer, extents of valid time, default valid time ...). Most of these things are specific to the wms specification In you case, if you are using scripting, you should do the same operation of transforming the time parameter to a valid time filter and set it on the layer (time parameter like 2004-10-12 could be transformed to (`[time_field]` eq `2004-10-12). Although the underlying code exists in MapsServer to parse different kind of time values, there are no currently mapscript functions that would do that for you so you need to write your functions. You map file does not need to have any wms_xxx parameters. It is a regular map file and the time is just another type of expression that can be used on the FILTER element of the layer (or on the class object) Hope this helps. Best Regards, > Thanks for your help. > > Sam > > > > > On 10/12/07, *Samuel Hiatt* > wrote: > > Thanks for the help. > > It should be very easy to filter my files for time. What should my > mapfile look like for the 4D layer? The same thing as for a 4D wms > layer, with the tile index and wms_* metadata tags but I would use > mapscript to screen the files? Do you know of a way I might reuse > the screening code that is used for 4D WMS? > > Thanks! > Sam > > > > > On 10/12/07, *Yewondwossen Assefa* < assefa at dmsolutions.ca > > wrote: > > Samuel Hiatt wrote: > > Hi! Thanks for the reply. > > > > So I suppose when I make a WMS request with TIME Mapserver > applies the > > filter behind the scenes, finding which feature in my > tile_index.shp > > represents the correct time and then processes the raster > pointed to by > > that feature? So if I want to implement the same kind of > thing with > > mapscript I'd have to write the filter myself? > > > That is correct : assuming that the underlying data can be > filtered > using a time field, you need to know the attribute and build the > time > expression and set it using mapscript. > > > The reason I am interested in doing this is to extend temporal > > functionality to ka-map. I may end up abandoning that > approach and > > moving to a javascript WMS client (like OpenLayers of > MapBuilder) instead. > > > > Thanks for your help. > > > > Sam > > > > > > > > On 10/11/07, *Yewondwossen Assefa* > > >> wrote: > > > > Hi there, > > > > The Time parameter that is sent with a WMS request is simply > > converted > > to a time expression and set on the filter object of the > layer. In the > > case of wms. the metadata wms_timeitem will be used for the > > attribute name. > > if you are using mapscript, you would need to build the time > > expression manually and set the filter parameter. Please > refer to > > http://mapserver.gis.umn.edu/docs/howto/wms_time_support > (section 2.5) > > to see how time parameters are interpreted. > > > > Best Regards, > > > > > > Samuel Hiatt wrote: > > > I am excited to see that Mapserver supports 4D raster > layers for WMS, > > > but I am curious if this functionality can be extended > to mapscript > > > calls as well? For example, if I set up a raster layer > with a TIME > > > dimension then will it be possible for me to request an > image for a > > > specific time with mapscript? Or would I have to do > this with a > > WMS call? > > > > > > Thanks! > > > > > > Sam > > > > > > -- > > > ---------------------------------------------------------------- > > 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 > ---------------------------------------------------------------- > > > -- ---------------------------------------------------------------- Assefa Yewondwossen Software Analyst Email: assefa at dmsolutions.ca http://www.dmsolutions.ca/ Phone: (613) 565-5056 (ext 14) Fax: (613) 565-0925 ---------------------------------------------------------------- From warmerdam at POBOX.COM Wed Oct 24 15:51:50 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Oct 2007 18:51:50 -0400 Subject: A few questions about MapServer WCS In-Reply-To: Message-ID: Rahkonen Jukka wrote: > 1. Is it possible to set up a raster layer for delivering 7-band imagery in > GeoTIFF/img formats? If it is, how? I tried with setting "wcs_bandcount" > "7" in the LAYER METADATA, but that lead to error message saying that band > count can not be higher that four. The NetCDF example I found from the use > case document makes me think that it might be possible with some > 'wcs_rangeset' settings. Jukka, I suspect the problem relates to the selection of output format. MapServer pre-declares an output format called "GTiff" which is an RGB (or possibly RGBA) mode output format. It also has the mime type "image/tiff". I suspect you are selecting the format image/tiff via WCS and getting that built in declaration instead of your own with the all important "BYTE" imagemode. My suggestion is either to use the name "GTIFF" for your outputformat declaration (pre-empting the built in one) or select the GeoTIFF output format by name instead of mimetype. > 2. Does layer PROCESSING directives have any effect with WCS? I was trying > to select certain bands from 7-band imagery by setting for example > PROCESSING "BANDS=7,4,2" in LAYER definitions, but I received always just > band combination 1,2,3. In this case I used "wcs_bandcount" "3". In > addition to BANDS I would like to use also LUT and RESAMPLE options with > WCS. I believe the bands selector is superceeded by the bands selected in the WCS call. Resampling types "NEAREST" and "BILINEAR" should be support via WCS but have to be passed in via the WCS request. I don't think you can establish defaults in the mapfile. I suspect the LUT operations are processed only in the image modes other than "pure data". That is, IMAGEMODE BYTE likely precludes their use as things stand. I could look at altering this if you wanted. > 3. I have used wget for downloading from my WCS service and it works fine. > I had installed one 'real' WCS client but it did not like my MapServer WCS > service. Are there some WCS clients that are known to work well with > MapServer WCS? wget is *my* favorite WCS client. GDAL is also a WCS client, and should work fairly well with 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 | President OSGeo, http://osgeo.org From samhiatt at GMAIL.COM Wed Oct 24 16:28:52 2007 From: samhiatt at GMAIL.COM (Samuel Hiatt) Date: Wed, 24 Oct 2007 16:28:52 -0700 Subject: 4D Raster access NOT via WMS? In-Reply-To: <471FBF7E.7080908@dmsolutions.ca> Message-ID: Thanks for your help! I can always count on the pros at DM. :) I'm still a bit unclear about how the 3-D rasters (lat,lon,time) should be set up in the mapfile. Is there a way to define a 3-D layer in the mapfile? Or should I do something similar to what I would to set up the n-D WMS (with a tile-index)? Thanks! Sam On 10/24/07, Yewondwossen Assefa wrote: > > Samuel Hiatt wrote: > > Can anyone help with this last question? I'm hesitant to start hacking > > at this 'cause I don't really feel like re-inventing the wheel... > > again. Is anyone familiar with the mechanism that is used when > > mapserver gets a WMS request with a TIME parameter? Maybe the solution > > lies there. > > > > > The metadata tags required to make 4D WMS layers work all have "wms_ > > ..." at the beginning. I imagine that extending this functionality to > > any type of mapserver request (WMS, mapscript, CGI) would be very > > valuable (if it doesn't exist already). > > > > As explained earlier, the wms will take the time parameter and > transform it to a valid time expression and set the FILTER element of > the layer with that expression. > > wms_xxx tags are there to hold information so that this tarnsformation > can be done (hold information such as which is the time field on the > layer, extents of valid time, default valid time ...). Most of these > things are specific to the wms specification > > In you case, if you are using scripting, you should do the same > operation of transforming the time parameter to a valid time filter and > set it on the layer (time parameter like 2004-10-12 could be transformed > to (`[time_field]` eq `2004-10-12). Although the underlying code exists > in MapsServer to parse different kind of time values, there are no > currently mapscript functions that would do that for you so you need to > write your functions. > You map file does not need to have any wms_xxx parameters. It is a > regular map file and the time is just another type of expression that > can be used on the FILTER element of the layer (or on the class object) > > Hope this helps. > > Best Regards, > > > Thanks for your help. > > > > Sam > > > > > > > > > > On 10/12/07, *Samuel Hiatt* > > wrote: > > > > Thanks for the help. > > > > It should be very easy to filter my files for time. What should my > > mapfile look like for the 4D layer? The same thing as for a 4D wms > > layer, with the tile index and wms_* metadata tags but I would use > > mapscript to screen the files? Do you know of a way I might reuse > > the screening code that is used for 4D WMS? > > > > Thanks! > > Sam > > > > > > > > > > On 10/12/07, *Yewondwossen Assefa* < assefa at dmsolutions.ca > > > wrote: > > > > Samuel Hiatt wrote: > > > Hi! Thanks for the reply. > > > > > > So I suppose when I make a WMS request with TIME Mapserver > > applies the > > > filter behind the scenes, finding which feature in my > > tile_index.shp > > > represents the correct time and then processes the raster > > pointed to by > > > that feature? So if I want to implement the same kind of > > thing with > > > mapscript I'd have to write the filter myself? > > > > > That is correct : assuming that the underlying data can be > > filtered > > using a time field, you need to know the attribute and build the > > time > > expression and set it using mapscript. > > > > > The reason I am interested in doing this is to extend > temporal > > > functionality to ka-map. I may end up abandoning that > > approach and > > > moving to a javascript WMS client (like OpenLayers of > > MapBuilder) instead. > > > > > > Thanks for your help. > > > > > > Sam > > > > > > > > > > > > On 10/11/07, *Yewondwossen Assefa* > > > > > >> wrote: > > > > > > Hi there, > > > > > > The Time parameter that is sent with a WMS request is > simply > > > converted > > > to a time expression and set on the filter object of the > > layer. In the > > > case of wms. the metadata wms_timeitem will be used for > the > > > attribute name. > > > if you are using mapscript, you would need to build the > time > > > expression manually and set the filter parameter. Please > > refer to > > > http://mapserver.gis.umn.edu/docs/howto/wms_time_support > > (section 2.5) > > > to see how time parameters are interpreted. > > > > > > Best Regards, > > > > > > > > > Samuel Hiatt wrote: > > > > I am excited to see that Mapserver supports 4D raster > > layers for WMS, > > > > but I am curious if this functionality can be extended > > to mapscript > > > > calls as well? For example, if I set up a raster layer > > with a TIME > > > > dimension then will it be possible for me to request an > > image for a > > > > specific time with mapscript? Or would I have to do > > this with a > > > WMS call? > > > > > > > > Thanks! > > > > > > > > Sam > > > > > > > > > -- > > > > > ---------------------------------------------------------------- > > > 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 > > ---------------------------------------------------------------- > > > > > > > > > -- > ---------------------------------------------------------------- > Assefa Yewondwossen > Software Analyst > > Email: assefa at dmsolutions.ca > http://www.dmsolutions.ca/ > > Phone: (613) 565-5056 (ext 14) > Fax: (613) 565-0925 > ---------------------------------------------------------------- > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From warmerdam at POBOX.COM Wed Oct 24 18:47:10 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 24 Oct 2007 21:47:10 -0400 Subject: problem with Mapserver WCS handling of NaN? In-Reply-To: <471FB890.5090806@svs.gsfc.nasa.gov> Message-ID: Jeff de La Beaujardiere wrote: > The Web Coverage Service (WCS) feature is (sort of) working > on our installation, now that our sysadmin recompiled --with-wcs. > > However, the not-a-number (NaN) values in the floating-point GeoTIFF > data files used as input do not seem to be handled correctly. > > - When the GeoTIFF is a single global dataset, the NaNs are converted > to zeroes. I can filter those out of these particular data only > because the valid data are all in a range > 0. > > - More seriously, when there are multiple GeoTIFF files enumerated > in a tile index, the NaN areas overwrite data from earlier GeoTIFFs, > even though the WMS component handles this properly. For example, > this test image was generated via WMS: > http://www.map.nasa.gov/test/soar/wms-nans.png > The no-data areas are blank and transparent, as desired > (the black rectangle has something to do with my attempt to classify > the raster data, but is a different problem than the NaN problem). > This test image was generated from the WCS output: > http://www.map.nasa.gov/test/soar/wcs-nans.png > The no-data areas are opaque zeroes that hide valid data > from other granules. Jeff, GDAL does not generally support specifying NaN as a nodata value, and neither does MapServer specifically support this. If you wanted, we could look at mechanisms to specify NaN as a nodata value in GDAL but even at that I'm not positive that the case you are using for WCS in MapServer even honours nodata values in the source data. Is it practical for you to work with files with a more conventional style of data value? If not, perhaps we should follow up on this by private email. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From matt.pettis at THOMSON.COM Wed Oct 24 18:00:55 2007 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Wed, 24 Oct 2007 20:00:55 -0500 Subject: Classes in a Layer obstructing each other (I don't think they should be) Message-ID: Hi, I'm trying to render a layer that colors polygons. Three of the classes are used to color the polygon, and they are mutually exclusive classes (i.e., only one class at a time will be applicable to a given polygon). The fourth class I have is meant to draw an outline of the polygon at a certain maxscale value, otherwise, do not display a border. What I am getting is that the 'border' class doesn't work with the other three. If it is the first class in the layer, it totally obstructs the results of the other three (even though I am making this layer transparent and the style of the class have a color of -1 -1 -1). If it is the last class, the borders do not show up at all at any scale. Any advice or clarification on my misunderstanding of how Mapserver is operating would be appreciated. Below is the relevant layer: ----------- LAYER NAME "Precincts" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis password=xxxx" DATA "the_geom from (select distinct on (county_id, prct_id) county_name , prct_name , candidate_name , party_abbr , percentage_of_votes_for_candidate_by_office , the_geom from ( select distinct on (county_id, prct_id) county_id , prct_id , office_name , max(votes_for_candidate) as votes_for_candidate from sos_stateracespct where office_name = 'US SENATOR' group by county_id , prct_id , office_name having max(votes_for_candidate) > 0 ) m inner join sos_stateracespct using (county_id, prct_id, office_name, votes_for_candidate) inner join shp_prct using (county_id, prct_id) inner join sos_coprct_f using (county_id, prct_id)) as foo using unique the_geom using SRID=-1" STATUS on TYPE polygon TRANSPARENCY 0 CLASS NAME "Draw Prct Boundaries" MAXSCALE 500000 STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 WIDTH 1 END END CLASS NAME "DFL Votes" EXPRESSION ("[party_abbr]" = 'DFL' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 153 204 255 END CLASS NAME "R Votes" EXPRESSION ("[party_abbr]" = 'R' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 255 153 255 END CLASS NAME "No Clear Majority" EXPRESSION ( !("[party_abbr]" = 'R' and [percentage_of_votes_for_candidate_by_office] > 0.5) and !("[party_abbr]" = 'DFL' and [percentage_of_votes_for_candidate_by_office] > 0.5)) COLOR 255 255 153 END END From David.Fawcett at STATE.MN.US Wed Oct 24 19:06:12 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 24 Oct 2007 21:06:12 -0500 Subject: Classes in a Layer obstructing each other (I don't think they should be) Message-ID: Matt, I believe that only the first class that matches the expression gets used. I think that to get the borders, you might want to create a second scale-dependent layer that does the outlines. That would be the cleanest way to do it. I am not sure about the order of evaulation for expression and maxscale. If MapServer looks at maxscale first, you could have two classes with the same expression, but with mutually exclusive min/max scales. One could have the fill plus the outline and one could have just the fill. My guess is that the expression gets higher priority and that this second case wouldn't work. There are a lot of people who could confirm or deny this, I am just not one of them... David. -----Original Message----- From: UMN MapServer Users List on behalf of Matt Pettis Sent: Wed 10/24/2007 8:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Classes in a Layer obstructing each other (I don't think they should be) Hi, I'm trying to render a layer that colors polygons. Three of the classes are used to color the polygon, and they are mutually exclusive classes (i.e., only one class at a time will be applicable to a given polygon). The fourth class I have is meant to draw an outline of the polygon at a certain maxscale value, otherwise, do not display a border. What I am getting is that the 'border' class doesn't work with the other three. If it is the first class in the layer, it totally obstructs the results of the other three (even though I am making this layer transparent and the style of the class have a color of -1 -1 -1). If it is the last class, the borders do not show up at all at any scale. Any advice or clarification on my misunderstanding of how Mapserver is operating would be appreciated. Below is the relevant layer: ----------- LAYER NAME "Precincts" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis password=xxxx" DATA "the_geom from (select distinct on (county_id, prct_id) county_name , prct_name , candidate_name , party_abbr , percentage_of_votes_for_candidate_by_office , the_geom from ( select distinct on (county_id, prct_id) county_id , prct_id , office_name , max(votes_for_candidate) as votes_for_candidate from sos_stateracespct where office_name = 'US SENATOR' group by county_id , prct_id , office_name having max(votes_for_candidate) > 0 ) m inner join sos_stateracespct using (county_id, prct_id, office_name, votes_for_candidate) inner join shp_prct using (county_id, prct_id) inner join sos_coprct_f using (county_id, prct_id)) as foo using unique the_geom using SRID=-1" STATUS on TYPE polygon TRANSPARENCY 0 CLASS NAME "Draw Prct Boundaries" MAXSCALE 500000 STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 WIDTH 1 END END CLASS NAME "DFL Votes" EXPRESSION ("[party_abbr]" = 'DFL' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 153 204 255 END CLASS NAME "R Votes" EXPRESSION ("[party_abbr]" = 'R' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 255 153 255 END CLASS NAME "No Clear Majority" EXPRESSION ( !("[party_abbr]" = 'R' and [percentage_of_votes_for_candidate_by_office] > 0.5) and !("[party_abbr]" = 'DFL' and [percentage_of_votes_for_candidate_by_office] > 0.5)) COLOR 255 255 153 END END From matt.pettis at THOMSON.COM Wed Oct 24 19:39:50 2007 From: matt.pettis at THOMSON.COM (Matt Pettis) Date: Wed, 24 Oct 2007 21:39:50 -0500 Subject: Classes in a Layer obstructing each other (I don't think they should be) Message-ID: Thanks David, I did the "two classes with exclusive min/max" solution, and that works. It is the cleanest I've seen, like you said, with the downside of having to repeat the EXPRESSION statement, which makes me violate the "Don't repeat yourself" maxim of coding, but ya gotta do what you gotta do. I considered doing this in separate layers, but it suffered from the same problem and, on top of that, had the extra cost of re-executing a very expensive query. Below is the solution you suggested that I am implementing now... thanks again, Matt ------------------------------ LAYER NAME "Precincts" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis password=xxxx" DATA "the_geom from (select distinct on (county_id, prct_id) county_name , prct_name , candidate_name , party_abbr , percentage_of_votes_for_candidate_by_office , the_geom from ( select distinct on (county_id, prct_id) county_id , prct_id , office_name , max(votes_for_candidate) as votes_for_candidate from sos_stateracespct where office_name = 'US SENATOR' group by county_id , prct_id , office_name having max(votes_for_candidate) > 0 ) m inner join sos_stateracespct using (county_id, prct_id, office_name, votes_for_candidate) inner join shp_prct using (county_id, prct_id) inner join sos_coprct_f using (county_id, prct_id)) as foo using unique the_geom using SRID=-1" STATUS on TYPE polygon TRANSPARENCY 0 LABELITEM "prct_name" # Large-scale ... no boundaries CLASS NAME "DFL Votes" MINSCALE 50001 EXPRESSION ("[party_abbr]" = 'DFL' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 153 204 255 END CLASS NAME "R Votes" MINSCALE 50001 EXPRESSION ("[party_abbr]" = 'R' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 255 153 255 END CLASS NAME "No Clear Majority" MINSCALE 50001 EXPRESSION ( !("[party_abbr]" = 'R' and [percentage_of_votes_for_candidate_by_office] > 0.5) and !("[party_abbr]" = 'DFL' and [percentage_of_votes_for_candidate_by_office] > 0.5)) COLOR 255 255 153 END # Small-scale ... boundaries CLASS NAME "DFL Votes s" MAXSCALE 50000 EXPRESSION ("[party_abbr]" = 'DFL' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 153 204 255 STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 WIDTH 1 END LABEL FONT "arial" TYPE truetype SIZE 6 COLOR 0 0 0 POSITION cc END END CLASS NAME "R Votes s" MAXSCALE 50000 EXPRESSION ("[party_abbr]" = 'R' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 255 153 255 STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 WIDTH 1 END LABEL FONT "arial" TYPE truetype SIZE 6 COLOR 0 0 0 POSITION cc END END CLASS NAME "No Clear Majority s" MAXSCALE 50000 EXPRESSION ( !("[party_abbr]" = 'R' and [percentage_of_votes_for_candidate_by_office] > 0.5) and !("[party_abbr]" = 'DFL' and [percentage_of_votes_for_candidate_by_office] > 0.5)) COLOR 255 255 153 STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 WIDTH 1 END LABEL FONT "arial" TYPE truetype SIZE 6 COLOR 0 0 0 POSITION cc END END END -----Original Message----- From: UMN MapServer Users List on behalf of Fawcett, David Sent: Wed 10/24/2007 9:06 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] Classes in a Layer obstructing each other (I don't think they should be) Matt, I believe that only the first class that matches the expression gets used. I think that to get the borders, you might want to create a second scale-dependent layer that does the outlines. That would be the cleanest way to do it. I am not sure about the order of evaulation for expression and maxscale. If MapServer looks at maxscale first, you could have two classes with the same expression, but with mutually exclusive min/max scales. One could have the fill plus the outline and one could have just the fill. My guess is that the expression gets higher priority and that this second case wouldn't work. There are a lot of people who could confirm or deny this, I am just not one of them... David. -----Original Message----- From: UMN MapServer Users List on behalf of Matt Pettis Sent: Wed 10/24/2007 8:00 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Classes in a Layer obstructing each other (I don't think they should be) Hi, I'm trying to render a layer that colors polygons. Three of the classes are used to color the polygon, and they are mutually exclusive classes (i.e., only one class at a time will be applicable to a given polygon). The fourth class I have is meant to draw an outline of the polygon at a certain maxscale value, otherwise, do not display a border. What I am getting is that the 'border' class doesn't work with the other three. If it is the first class in the layer, it totally obstructs the results of the other three (even though I am making this layer transparent and the style of the class have a color of -1 -1 -1). If it is the last class, the borders do not show up at all at any scale. Any advice or clarification on my misunderstanding of how Mapserver is operating would be appreciated. Below is the relevant layer: ----------- LAYER NAME "Precincts" CONNECTIONTYPE postgis CONNECTION "user=postgres dbname=postgis password=xxxx" DATA "the_geom from (select distinct on (county_id, prct_id) county_name , prct_name , candidate_name , party_abbr , percentage_of_votes_for_candidate_by_office , the_geom from ( select distinct on (county_id, prct_id) county_id , prct_id , office_name , max(votes_for_candidate) as votes_for_candidate from sos_stateracespct where office_name = 'US SENATOR' group by county_id , prct_id , office_name having max(votes_for_candidate) > 0 ) m inner join sos_stateracespct using (county_id, prct_id, office_name, votes_for_candidate) inner join shp_prct using (county_id, prct_id) inner join sos_coprct_f using (county_id, prct_id)) as foo using unique the_geom using SRID=-1" STATUS on TYPE polygon TRANSPARENCY 0 CLASS NAME "Draw Prct Boundaries" MAXSCALE 500000 STYLE OUTLINECOLOR 0 0 0 COLOR -1 -1 -1 WIDTH 1 END END CLASS NAME "DFL Votes" EXPRESSION ("[party_abbr]" = 'DFL' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 153 204 255 END CLASS NAME "R Votes" EXPRESSION ("[party_abbr]" = 'R' AND [percentage_of_votes_for_candidate_by_office] > 0.5) COLOR 255 153 255 END CLASS NAME "No Clear Majority" EXPRESSION ( !("[party_abbr]" = 'R' and [percentage_of_votes_for_candidate_by_office] > 0.5) and !("[party_abbr]" = 'DFL' and [percentage_of_votes_for_candidate_by_office] > 0.5)) COLOR 255 255 153 END END From pal.kristensen at STATKART.NO Thu Oct 25 00:12:45 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Thu, 25 Oct 2007 00:12:45 -0700 Subject: SDE connection problem with MapServer 5.0 Message-ID: Hi All! I'm trying to connect to a SDE feature class with mapserver, but I got the following error message in the log file: [Thu Oct 25 08:57:44 2007].425000 msGetSymbol(): General error message. Can't load requested dynamic library: c:/ms4w/apache/specialplugins/msplugin_sde_92.dll [Thu Oct 25 08:57:44 2007].425000 loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: c:/ms4w/apache/specialplugins/msplugin_sde_92.dll [Thu Oct 25 08:57:44 2007].425000 msDrawMap(): Image handling error. Failed to draw layer named 'Linjer'. This is what I have done: (BTW the MS4W installation is OK, other applications are running fine, including OCI connections) 1) Installed MS4W 2.2.6 2) Installed SDE 9.2 C SDK 3) Performed step 1-4 in the MS4W SDE documentation: http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html#sde This is the layer part of the mapfile: ... LAYER NAME "Linjer" STATUS ON #CONNECTIONTYPE SDE CONNECTIONTYPE PLUGIN PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" CONNECTION "159.162.xx.xx,port:5156,sde,username,password" DATA "TEMADATA.Sjogrense_Norge_linje,SHAPE,SDE.DEFAULT" DUMP TRUE TYPE line #TEMPLATE "c:/ms4w/empty.txt" METADATA "ows_title" "Grenser" #"ows_extent" "3.716432 57.499794 31.755125 71.890866" "ows_include_items" "All" "gml_include_items" "All" END PROJECTION "init=epsg:4326" END CLASS NAME "Alle" #MAXSCALE 14000000 #MINSCALE 10000000 #TEXT ([ZONE][ROW]) STYLE WIDTH 2 COLOR 255 0 0 #OUTLINECOLOR 255 1 1 END END END ... Any suggestions? Regard, P?l Kristensen Norwegian Mapping and Cadastre Authority -- View this message in context: http://www.nabble.com/SDE-connection-problem-with-MapServer-5.0-tf4689019.html#a13401379 Sent from the Mapserver - User mailing list archive at Nabble.com. From Jukka.Rahkonen at MMMTIKE.FI Thu Oct 25 02:49:07 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 25 Oct 2007 12:49:07 +0300 Subject: A few questions about MapServer WCS In-Reply-To: A<471FCC86.8000209@pobox.com> Message-ID: > -----Alkuper?inen viesti----- Frank Warmerdam wrote: > Rahkonen Jukka wrote: > > 1. Is it possible to set up a raster layer for delivering 7-band > > imagery in GeoTIFF/img formats? If it is, how? I tried > > with setting "wcs_bandcount" > > "7" in the LAYER METADATA, but that lead to error message > > saying that > > band count can not be higher that four. > > Jukka, > > I suspect the problem relates to the selection of output format. > > MapServer pre-declares an output format called "GTiff" which > is an RGB (or possibly RGBA) mode output format. It also has > the mime type "image/tiff". I suspect you are selecting the > format image/tiff via WCS and getting that built in > declaration instead of your own with the all important "BYTE" > imagemode. > > My suggestion is either to use the name "GTIFF" for your > outputformat declaration (pre-empting the built in one) or > select the GeoTIFF output format by name instead of mimetype. Hi Frank, Thanks, the problem really was caused by a misspelling in mapfile and therefore imagemode BYTE was not used. > > 2. Does layer PROCESSING directives have any effect with > > WCS? I was > > trying to select certain bands from 7-band imagery by setting for > > example PROCESSING "BANDS=7,4,2" in LAYER definitions, but > > I received > > always just band combination 1,2,3. In this case I used > > "wcs_bandcount" "3". In addition to BANDS I would like to use also > > LUT and RESAMPLE options with WCS. > > I believe the bands selector is superceeded by the bands > selected in the WCS call. I made a test and I can affirm that "PROCESSING BANDS" in layer definitions is just discarded in WCS. > Resampling types "NEAREST" and "BILINEAR" should be support > via WCS but have to be passed in via the WCS request. I > don't think you can establish defaults in the mapfile. MapServer WCS DescribeCoverage is listing nearest neigbour and bilinear as supported interpolation methods so this should really be possible. From an OGC document 05-076_Web_Coverage_Service_WCS_Version_1.0.0_Corrigendum.pdf I found that different interpolations should be asken in WCS request with key INTERPOLATION = interpolation-method. I tried to add &interpolation=bilinear to my request. Request was accected and I received three-band image as I was ordering, but it appears like greyscale image on screen and I believe that all three channels are actually the same. I put my requests in the end of this e-mail so somebody can check if there is something wrong it. > I suspect the LUT operations are processed only in the image > modes other than "pure data". That is, IMAGEMODE BYTE likely > precludes their use as things stand. I could look at > altering this if you wanted. I do not have any immediate use for that feature. But if somebody is utilising LUT operations and keeps unadjusted images on server and delivers them through LUT processing to WMS, then images downloaded through WCS service would not look the same. But anyhow, LUT processing works perhaps only for 1 of 3 band imagery and thus it would not be useful for multichannel images in any case. I prepared a minimum mapfile that allows me to download any bands I wish from 7-band Landsat image in GeoTIFF format. I was thinking that if somebody first checks if it makes sense then it could be added to MapServer WCS use case document. I know the mapfile is not the most simple because I have there two projections, epsg:3067 and 32636, but this is something I do know to work with my data. Regards, -Jukka Rahkonen- Working wget request for the attached mapfile is like: wget -O test321.tif "http://localhost:8060/cgi-bin/mapserv.exe?map=d:/ms4w/apps/data/wcs_minimal.map&SERVICE=WCS&VERSION=1.0.0&REQUEST=getcoverage&coverage=Baltic&CRS=epsg:3067&format=GEOTIFF&BBOX=544809.000,7301945.000,549807.000,7306943.000&ResX=30&ResY=30&bands=3,2,1" (The otherwise same request ending "...bands=3,2,1&interpolation=bilinear" gives me for some reason a three-channel grey image) My mapfile is as follows. I must say that I do not understand clearly the meaning of _rangeset_ items but by adding them I could make image bands selectable. MAP NAME "Landsat_Baltic_WCS" STATUS ON EXTENT -1443340 5783960 613100 8033100 SIZE 1000 1000 SHAPEPATH "d:/ms4w/apps/data" IMAGECOLOR 255 255 255 UNITS METERS PROJECTION "init=epsg:32636" END OUTPUTFORMAT NAME GEOTIFF MIMETYPE "image/tiff" DRIVER "GDAL/GTiff" EXTENSION "tif" IMAGEMODE "BYTE" END WEB IMAGEPATH "d:/ms4w/apps/data" IMAGEURL "/MS_TMP/" METADATA "ows_title" "MapServer WCS for Baltic Sea Landsat imagery" "wws_onlineresource" "http://localhost:8060/cgi-bin/mapserv.exe?map=d:/ms4w/apps/data/WCS_minimal.map" "ows_label" "JRA_WCS" END END LAYER NAME "Baltic" STATUS DEFAULT TYPE RASTER PROCESSING "SCALE=AUTO" DATA "t:/baltic.img" UNITS METERS PROJECTION "init=epsg:32636" END DUMP TRUE METADATA "wcs_description" "WCS service for Baltic Landsat imagery" "wcs_name" "Baltic" "ows_label" "JRA_WCS" "ows_srs" "EPSG:32636" "ows_extent" "-1443340 5783960 613100 8033100" "wcs_resolution" "28.5 28.5" "wcs_bandcount" "7" "wcs_rangeset_axes" "bands" "wcs_rangeset_label" "Landsat channels" "wcs_rangeset_name" "bands" "wcs_formats" "GEOTIFF" END END END From jeff2006 at SVS.GSFC.NASA.GOV Thu Oct 25 05:25:22 2007 From: jeff2006 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 25 Oct 2007 08:25:22 -0400 Subject: problem with Mapserver WCS handling of NaN? In-Reply-To: <471FF59E.90108@pobox.com> Message-ID: Frank Warmerdam wrote: > GDAL does not generally support specifying NaN as a nodata value, > and neither does MapServer specifically support this. And yet, somehow, when the same GeoTIFFs are converted to images by the WMS component (based on CLASS entries in the mapfile), all the NaN areas are transparent. How does that happen? ...Wait, I think I know. The fact that it works in the WMS case is accidental. GDAL (or something) is converting NaN to 0. If I request a numeric output (WCS), I get floating-point 0.0 values, which is bad. However, if I request an image output (WMS), I get zeroes in all 4 image channels (red, green, blue, alpha), and alpha=0 makes that pixel transparent, which is good. > If you wanted, we could look at mechanisms to specify NaN as a nodata value in GDAL In theory, we shouldn't have to specify that explicitly. Not-a-number is a legitimate construct in the IEEE floating-point definition used by TIFF. GDAL should not be converting NaNs to anything, just passing them through as-is. A single GeoTIFF should magically work. Multiple overlapping GeoTIFFS are, admittedly, more complex. When the tiling is done, a pixel value from a file later in the tile index should overwrite the former value only if the new value is a real number. This part somehow works in the WMS case--the transparent areas of a later file let the opaque areas of an earlier file show through. > I'm not positive that the case you are using for WCS > in MapServer even honours nodata values in the source data. I'm not sure what you mean by that. > Is it practical for you to work with files with a more conventional > style of data value? I will gladly try anything you suggest to make this work. I could convert my files so that no-data areas were represented by a numeric value (people often use something like 9999 or -9999). However, GDAL and WCS would have no way of knowing that if an area of 9999 overlays an area of valid data that the valid data should "show through." NaN is really the only unambiguous choice. -Jeff DLB From warmerdam at POBOX.COM Thu Oct 25 06:41:38 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 25 Oct 2007 09:41:38 -0400 Subject: problem with Mapserver WCS handling of NaN? In-Reply-To: <47208B32.5030203@svs.gsfc.nasa.gov> Message-ID: Jeff de La Beaujardiere wrote: > Frank Warmerdam wrote: >> GDAL does not generally support specifying NaN as a nodata value, >> and neither does MapServer specifically support this. > > And yet, somehow, when the same GeoTIFFs are converted to images > by the WMS component (based on CLASS entries in the mapfile), all > the NaN areas are transparent. How does that happen? > > ...Wait, I think I know. The fact that it works in the WMS case > is accidental. GDAL (or something) is converting NaN to 0. If I > request a numeric output (WCS), I get floating-point 0.0 values, > which is bad. However, if I request an image output (WMS), I get > zeroes in all 4 image channels (red, green, blue, alpha), and > alpha=0 makes that pixel transparent, which is good. Jeff, Yes, likely. Depending on how your WCS is setup, the NaN's may be converted to zeros as part of coercing the data type to integer (byte). Or it may be that NaN does not match any class definition. >> If you wanted, we could look at mechanisms to specify NaN as a nodata >> value in GDAL > > In theory, we shouldn't have to specify that explicitly. Not-a-number > is a legitimate construct in the IEEE floating-point definition used > by TIFF. GDAL should not be converting NaNs to anything, just passing > them through as-is. And that is what currently happens if the data is requested as a float. > A single GeoTIFF should magically work. Well, there is work, and there is work. GDAL has a nodata scheme tuned to integer data where the "nodata value" is kept track of as a special sort of metadata. All the machinery that understands "nodata is transparent" only kicks in when that metadata is set to a value. I would claim you produced a poor product by not providing the metadata indicating that NaN should be treated as nodata. You might counter claim that it is the self-evident meaning of NaN - but unfortunately my software (and much imaging software) is built on a general model with poor handling of special floating point capabilities like Inf, NaN and values that have no numeric meaning. >> I'm not positive that the case you are using for WCS >> in MapServer even honours nodata values in the source data. > > I'm not sure what you mean by that. There are many different pieces of logic things can go through in MapServer WCS. For instance IMAGEMODE BYTE is handled quite distinctly from IMAGEMODE RGB or IMAGEMODE PC256. It can make quite a difference whether you are going through reprojection or not. Some of these code paths do not support "nodata" value because the imagery is scaled to 8bit before any operations that could recognise nodata. >> Is it practical for you to work with files with a more conventional >> style of data value? > > I will gladly try anything you suggest to make this work. > I could convert my files so that no-data areas were represented > by a numeric value (people often use something like 9999 or -9999). > However, GDAL and WCS would have no way of knowing that if an area > of 9999 overlays an area of valid data that the valid data should > "show through." NaN is really the only unambiguous choice. On the contrary - you could declare in the TIFF metadata that the value (ie. 9999) is nodata and MapServer will attempt to treat it as transparent. However, as I noted above there are many cases and some may not support this. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From yjacolin at FREE.FR Thu Oct 25 05:54:10 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Thu, 25 Oct 2007 14:54:10 +0200 Subject: Bbox in GetCapabilies for PostGIS layer Message-ID: Hi list, I am working on an application using only OGC standards. I am successfully create my list of layer from a GetCapabilities request. I would like to add an overview for each of this layer, and so I processed the bbox, scaleHint to send a GetMap. However, I have a problem with all postgis layer because the bbox for all of my bbox are something like this : which is obviously incorrect. My srid postgis layer is set to -1, but the data are in srid = 27582. Do you think my problem come from this set up ? My projections are always set up to EPSG:27572 in my mapfile. Thanks, Y. -- Yves Jacolin --- http://softlibre.gloobe.org From warmerdam at POBOX.COM Thu Oct 25 07:00:03 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 25 Oct 2007 10:00:03 -0400 Subject: A few questions about MapServer WCS In-Reply-To: Message-ID: Rahkonen Jukka wrote: > I made a test and I can affirm that "PROCESSING BANDS" in layer > definitions is just discarded in WCS. Jukka, More properly, we could say that it is overridden. :-) >> Resampling types "NEAREST" and "BILINEAR" should be support >> via WCS but have to be passed in via the WCS request. I >> don't think you can establish defaults in the mapfile. > > MapServer WCS DescribeCoverage is listing nearest neigbour and > bilinear as supported interpolation methods so this should really > be possible. From an OGC document > 05-076_Web_Coverage_Service_WCS_Version_1.0.0_Corrigendum.pdf > I found that different interpolations should be asken in WCS > request with key INTERPOLATION = interpolation-method. I tried > to add &interpolation=bilinear to my request. Request was accected > and I received three-band image as I was ordering, but it appears > like greyscale image on screen and I believe that all three > channels are actually the same. I put my requests in the end of > this e-mail so somebody can check if there is something wrong > it. Hmm, this sounds a bit like a problem that might have been fixed already. What version of MapServer are you using? If it is recent (ie. 4.10.3 or 5.0) I'd appreciate your filing a bug to my attention with details to reproduce the problem, including a data file, mapfile and request url. >> I suspect the LUT operations are processed only in the image >> modes other than "pure data". That is, IMAGEMODE BYTE likely >> precludes their use as things stand. I could look at >> altering this if you wanted. > > I do not have any immediate use for that feature. But if somebody > is utilising LUT operations and keeps unadjusted images on server > and delivers them through LUT processing to WMS, then images > downloaded through WCS service would not look the same. But anyhow, > LUT processing works perhaps only for 1 of 3 band imagery and thus > it would not be useful for multichannel images in any case. Part of the problem is that "pure data" modes like IMAGEMODE BYTE deliberately try to avoid doing any of the usual MapServer processing that would alter pixel values. Stuff like classification, stretching and LUTs. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Jukka.Rahkonen at MMMTIKE.FI Thu Oct 25 06:11:26 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Thu, 25 Oct 2007 16:11:26 +0300 Subject: A few questions about MapServer WCS In-Reply-To: <4720A163.40707@pobox.com> Message-ID: Hi Frank, > > I found that different interpolations should be asken in > WCS request > > with key INTERPOLATION = interpolation-method. I tried to add > > &interpolation=bilinear to my request. Request was accected and I > > received three-band image as I was ordering, but it appears like > > greyscale image on screen and I believe that all three channels are > > actually the same. I put my requests in the end of this e-mail so > > somebody can check if there is something wrong it. > > Hmm, this sounds a bit like a problem that might have been > fixed already. What version of MapServer are you using? If > it is recent (ie. 4.10.3 or 5.0) I'd appreciate your filing a > bug to my attention with details to reproduce the problem, > including a data file, mapfile and request url. This MapServer is not at all ancient, it is version is 5.1-dev from FWToold 1.4.1. I'll try to learn how to file a bug. -Jukka- From jeff2006 at SVS.GSFC.NASA.GOV Thu Oct 25 06:37:08 2007 From: jeff2006 at SVS.GSFC.NASA.GOV (Jeff de La Beaujardiere) Date: Thu, 25 Oct 2007 09:37:08 -0400 Subject: problem with Mapserver WCS handling of NaN? In-Reply-To: <47209D12.8040901@pobox.com> Message-ID: >> GDAL should not be converting NaNs to anything, just passing >> them through as-is. > > And that is what currently happens if the data is requested as a float. Actually, I am reading float32 and asking for float32, and yet the NaNs are converted to 0. > Well, there is work, and there is work. GDAL has a nodata scheme tuned > to integer data where the "nodata value" is kept track of as a special > sort of metadata. Aha! I did not know about this option. I will investigate further. Unfortunately, it does not seem that the software I use to generate these TIFFs (IDL) will let me insert the GDAL_NODATA tag (#42113, I gather) when I write the file. > I would claim you produced a poor product by not providing the metadata > indicating that NaN should be treated as nodata. If there is a way for me to provide such metadata about NaN, I will do it. > There are many different pieces of logic things can go through > in MapServer WCS. For instance IMAGEMODE BYTE is handled quite > distinctly from IMAGEMODE RGB or IMAGEMODE PC256. It can make > quite a difference whether you are going through reprojection or not. > Some of these code paths do not support "nodata" value because the > imagery is scaled to 8bit before any operations that could recognise > nodata. I am using IMAGEMODE "FLOAT32" in my OUTPUTFORMAT declaration. Does that help? Thanks, Jeff DLB From jcarrasco at PRODEVELOP.ES Thu Oct 25 06:04:53 2007 From: jcarrasco at PRODEVELOP.ES (Javier Carrasco) Date: Thu, 25 Oct 2007 15:04:53 +0200 Subject: No subject Message-ID: Hi everybody I have a problem when I try to render the shape in the shapefile annexed. If you look at the screenshoot I took from gvSIG, there are some segments of the geometry that are not displayed using MapServer but gvSIG, uDIG and arcMap displays correctly. I'm using ms4w (MapServer 5.0) and I'm getting the images using the WMS interface. This geometry is a representation of a route to deliver some packages in different addresses. it looks like two correlative segments of the path that are used to move from A to B and B to A are disappearing. Do you know if there is a bug in MapServer or am I making something wrong when configuring MapServer? Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ruta11.shp.zip Type: application/x-zip-compressed Size: 1157 bytes Desc: ruta11.shp.zip URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapServer.map Type: application/octet-stream Size: 2681 bytes Desc: mapServer.map URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: mapserv-incomplete.png Type: image/png Size: 38134 bytes Desc: mapserv-incomplete.png URL: From plieger at KNMI.NL Thu Oct 25 08:56:53 2007 From: plieger at KNMI.NL (Maarten Plieger) Date: Thu, 25 Oct 2007 15:56:53 +0000 Subject: GML download slow through postgis compared to local shapefiles Message-ID: Hello All, Currently I am comparing GML download performance through a WFS with mapserver. The source data is stored directly on disk in the ESRI shape format, and is also available from a postgis database located on the same machine. So it is exactly the same data but from different sources. The shapefiles contain about 90000 polygons per file. I am timing the rendering time in WMS and the download speed in WFS. WMS rendering time for a shapefile: For the shapefiles on disk: 2.897 seconds From the postgis database: 3.3 seconds. (seems ok for both data sources) However when I start downloading the data with the WFS in GML2 format: For the shapefiles on disk: 8 Seconds 66,8 MB in 8 sec 8,35 Mb/Sec <== fast From the postgis database: 84 Seconds 66.8 MB in 1 min 24 sec 800KB/Sec <== slow These are the postgis parameters: CONNECTIONTYPE postgis CONNECTION "host=localhost dbname=pliegerdatabase user=plieger password=* port=5432" DATA "the_geom from (select * from vcdtrop) as foo using unique gid using SRID=4326" Why is downloading GML data through WFS from a postgis database 10 times slower than from locally stored shapefiles? Can I do something to improve things? I am using mapserver 5.0.0-rc1 on SUSE. Thanks in advance, Maarten Plieger From bartvde at GMAIL.COM Thu Oct 25 09:52:21 2007 From: bartvde at GMAIL.COM (Bart van den Eijnden) Date: Thu, 25 Oct 2007 18:52:21 +0200 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: <200710251454.11048.yjacolin@free.fr> Message-ID: Hi Yves, unfortunately this is not implemented for PostGIS. Best regards, Bart On 10/25/07, Jacolin Yves wrote: > > Hi list, > > I am working on an application using only OGC standards. I am successfully > create my list of layer from a GetCapabilities request. I would like to > add > an overview for each of this layer, and so I processed the bbox, scaleHint > to > send a GetMap. > > However, I have a problem with all postgis layer because the bbox for all > of > my bbox are something like this : > maxx="2.5e+07" maxy="2.5e+07" /> > > which is obviously incorrect. > > My srid postgis layer is set to -1, but the data are in srid = 27582. Do > you > think my problem come from this set up ? My projections are always set up > to > EPSG:27572 in my mapfile. > > Thanks, > > Y. > -- > Yves Jacolin > --- > http://softlibre.gloobe.org > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Steve.Lime at DNR.STATE.MN.US Thu Oct 25 10:18:12 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 25 Oct 2007 12:18:12 -0500 Subject: Mapserver demo - troubles In-Reply-To: <471F4ACE.409@dmsolutions.ca> Message-ID: I ported the demo to 5.0 (required dynamic configuration changes) and posted the link at http://mapserver.gis.umn.edu/download/current. Note we plan to role a more comprehensive demo "suite" in the coming months. Steve >>> On 10/24/2007 at 8:38 AM, in message <471F4ACE.409 at dmsolutions.ca>, Jeff McKenna wrote: > The 'MapServer demo' application (also available at > http://mapserver.gis.umn.edu/download/current/) has not been updated for > MapServer 5.0 yet. I have tried to update the ms4w one but I can only > get 3/4 of it going. Can the maintainers of the MapServer 'demo' please > update it for 5.0? > > -- > jeff > > > > > Tom Canales wrote: >> I'm attempting to bootstrap myself on MapServer and am stuck. I've >> downloaded and installed the MS4W server (V2.2.6) with no problem. >> Successfully viewed the root feature page (http://localhost) and >> verified the expected return string: "No query information to decode. >> QUERY_STRING is set, but empty." when testing: >> http://localhost/cgi-bin/mapserv.exe. Next I added the MapServer Itasca >> Demo app and restarted the apache server. The root feature page now >> indicates I have the new app running (http://localhost/mapserv-demo/) >> however when I attempt to "initialize" the basic app I get the >> following: loadWeb(): Unknown identifier. Parsing error near >> (/ms4w/tmp/ms_tmp/):(line 1) Any suggestions? From Steve.Lime at DNR.STATE.MN.US Thu Oct 25 10:21:39 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Thu, 25 Oct 2007 12:21:39 -0500 Subject: No subject In-Reply-To: Message-ID: If you use shp2img do you see the same issue? I didn't see anything obvious in your configuration that would cause something like this. Will try on my end too. Steve >>> On 10/25/2007 at 8:04 AM, in message , Javier Carrasco wrote: > Hi everybody > I have a problem when I try to render the shape in the shapefile annexed. If > you look at the screenshoot I took from gvSIG, there are some segments of the > geometry that are not displayed using MapServer but gvSIG, uDIG and arcMap > displays correctly. > > I'm using ms4w (MapServer 5.0) and I'm getting the images using the WMS > interface. > > This geometry is a representation of a route to deliver some packages in > different addresses. > it looks like two correlative segments of the path that are used to move > from A to B and B to A are disappearing. > > Do you know if there is a bug in MapServer or am I making something wrong > when configuring MapServer? > > Thank you From eric.c2c at GMAIL.COM Thu Oct 25 11:22:17 2007 From: eric.c2c at GMAIL.COM (Eric Lemoine) Date: Thu, 25 Oct 2007 20:22:17 +0200 Subject: wfs server and encoding In-Reply-To: <1193252459.5903.2.camel@milo-laptop> Message-ID: On 10/24/07, Milo van der Linden wrote: > I ran in to exactly the same problem, getting the data in UTF-8 was an > absolute " must" in order to get the labels to show up right in a Flash > GIS client. This a must-have for me too as it seems that there's no way to read an ISO-8859-1 encoded XML file using Internet Explorer's ActiveXObject("Microsoft.XMLDOM") javascript object. More concretely, OpenLayers WFS cannot read ISO-8859-1 encoded GML documents served by MapServer WFS! -- Eric From eric.c2c at GMAIL.COM Thu Oct 25 11:22:54 2007 From: eric.c2c at GMAIL.COM (Eric Lemoine) Date: Thu, 25 Oct 2007 20:22:54 +0200 Subject: wfs server and encoding In-Reply-To: <471F9B9A.60000@mapgears.com> Message-ID: On 10/24/07, Daniel Morissette wrote: > Daniel Morissette wrote: > > > > 2- The TAB attributes are stored in the .MID file which is a regular > > text file. You could use the iconv command-line utility (on Linux > > anyway) to convert the encoding of attributes to UTF-8: > > > > iconv ?from-code=ISO-8859-1 ?to-code=UTF-8 mydata.mid > mydata_utf8.mid > > > > 3- Copy mydata.mif to mydata_utf8.mif > > > > Oh... you may want to run the .MIF file through iconv as well so that if > your data contains text labels they are also converted to UTF-8. Yes, I had to revert to doing something like that. Thanks, -- Eric From saengpole at YAHOO.COM Thu Oct 25 11:38:42 2007 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Thu, 25 Oct 2007 11:38:42 -0700 Subject: Error when create annotation layer in PHPMapscript Message-ID: Daniel, I used MS4W 2.2.5 on Windows Vista. I didn't query anything in the code. I only created annotation layer by code. But if I used previous version that was not MS4W suit, it had no error. Is this a bug of this suit? Krung ----- Original Message ---- From: Daniel Morissette To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Wednesday, October 24, 2007 2:32:19 AM Subject: Re: [UMN_MAPSERVER-USERS] Error when create annotation layer in PHPMapscript Krung Saengpole wrote: > Hi all, > > I have a question about creating annotation layer using phpmapscript. I > created layer as follow: > > $layer=ms_newLayerObj($map); > $layer->set("name", $name); > $layer->set("data", $data); > $layer->set("type", MS_LAYER_ANNOTAION); I'm not convinced that this alone would explain the errors you got, but there is a typo here... should be MS_LAYER_ANNOTATION... perhaps try fixing that and see. [...] > when it came to > > $img=$map->draw(); > > it showed 9 or 10 sentences of: > ** > *Warning*: [MapServer Error]: msQueryByRect(): No matching record(s) > found. in *D:\Work\testing\area50.php* on line *40* > *.....* > *.....* > *.....* > Could it be that you made a queryByRect() between the time the layer was created and the time at which you call $map->draw()? Perhaps try calling ms_ResetErrorList() after the queryByRect() or before the call to $map->draw(). I suspect that the query leaves warnings in the error stack and this may confuse the $map->draw() method. Daniel -- Daniel Morissette http://www.mapgears.com/ __________________________________________________ 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 pcifuentes at SIIGSA.CL Thu Oct 25 11:59:43 2007 From: pcifuentes at SIIGSA.CL (Patricio Cifuentes Ithal) Date: Thu, 25 Oct 2007 15:59:43 -0300 Subject: GML download slow through postgis compared to local shapefiles In-Reply-To: <4720BCC5.6030200@knmi.nl> Message-ID: > -----Mensaje original----- > De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En > nombre de Maarten Plieger > Enviado el: Jueves, 25 de Octubre de 2007 12:57 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > Asunto: [UMN_MAPSERVER-USERS] GML download slow through postgis > compared to local shapefiles > > Hello All, > Currently I am comparing GML download performance through a WFS with > mapserver. The source data is stored directly on disk in the ESRI shape > format, and is also available from a postgis database located on the > same machine. So it is exactly the same data but from different > sources. > The shapefiles contain about 90000 polygons per file. I am timing the > rendering time in WMS and the download speed in WFS. > WMS rendering time for a shapefile: > For the shapefiles on disk: 2.897 seconds > From the postgis database: 3.3 seconds. > (seems ok for both data sources) > > However when I start downloading the data with the WFS in GML2 format: > For the shapefiles on disk: 8 Seconds > 66,8 MB in 8 sec > 8,35 Mb/Sec <== fast > From the postgis database: 84 Seconds > 66.8 MB in 1 min 24 sec > 800KB/Sec <== slow > > These are the postgis parameters: > CONNECTIONTYPE postgis > CONNECTION "host=localhost dbname=pliegerdatabase user=plieger > password=* port=5432" > DATA "the_geom from (select * from vcdtrop) as foo using unique gid > using SRID=4326" > [Patricio Cifuentes Ithal] Hi, Test with "the_geom from table using SRID=4326" > Why is downloading GML data through WFS from a postgis database 10 > times > slower than from locally stored shapefiles? > Can I do something to improve things? I am using mapserver 5.0.0-rc1 on > SUSE. > > Thanks in advance, > Maarten Plieger > > -- > Este mensaje ha sido analizado por MailScanner > en busca de virus y otros contenidos peligrosos, > y se considera que est? limpio. > > www.siigsa.cl -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos, y se considera que est? limpio. www.siigsa.cl From arndw at WTAL.DE Thu Oct 25 12:24:01 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Thu, 25 Oct 2007 21:24:01 +0200 Subject: AW: [UMN_MAPSERVER-USERS] wfs server and encoding In-Reply-To: <5ec103de0710251122y33caed14t31444811550bb86f@mail.gmail.com> Message-ID: Hello Eric, That's wrong. Loading WFS-layers from MapServer with OpenLayers works with FF and IE. (OpenLayers 2.5, MapServer 4.10) http://gis.ibbeck.de/ginfo/apps/OLExamples/SphericalMercator/OL_900913_frame s.html This is the head part of the WFS-response get with Firebug: ... Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Eric Lemoine Gesendet: Donnerstag, 25. Oktober 2007 20:22 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] wfs server and encoding On 10/24/07, Milo van der Linden wrote: > I ran in to exactly the same problem, getting the data in UTF-8 was an > absolute " must" in order to get the labels to show up right in a > Flash GIS client. This a must-have for me too as it seems that there's no way to read an ISO-8859-1 encoded XML file using Internet Explorer's ActiveXObject("Microsoft.XMLDOM") javascript object. More concretely, OpenLayers WFS cannot read ISO-8859-1 encoded GML documents served by MapServer WFS! -- Eric From dmorissette at MAPGEARS.COM Thu Oct 25 12:32:08 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 25 Oct 2007 15:32:08 -0400 Subject: Error when create annotation layer in PHPMapscript In-Reply-To: <66763.56461.qm@web90411.mail.mud.yahoo.com> Message-ID: Krung Saengpole wrote: > Daniel, > > I used MS4W 2.2.5 on Windows Vista. I didn't query anything in the code. > I only created annotation layer by code. But if I used previous version > that was not MS4W suit, it had no error. Is this a bug of this suit? > I am not aware of any known bug in the MS4W package that would explain this. Did you at least try fixing the missing letter in $layer->set("type", MS_LAYER_ANNOTATION) in your script? I'd also suggest that you double-check your code and look for possible calls to the queryByRect() method... MapServer would not return the warning "msQueryByRect(): No matching record(s) found." for no reason. Daniel -- Daniel Morissette http://www.mapgears.com/ From dmorissette at MAPGEARS.COM Thu Oct 25 12:54:26 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Thu, 25 Oct 2007 15:54:26 -0400 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: <1ebb87870710250952h69c691feudf503503db74135d@mail.gmail.com> Message-ID: The postgis implementation in MapServer may not support reading the real data extents automatically (I just don't know), but you should be able to set the ows_extent metadata in your layer to tell MapServer which extents to use for the BoundingBox in capabilities. By default if ows_extent is not specified then MapServer tries to get the extents from PostGIS and it seems that it returns something that's way larger than the actual data. Daniel Bart van den Eijnden wrote: > Hi Yves, > > unfortunately this is not implemented for PostGIS. > > Best regards, > Bart > > On 10/25/07, *Jacolin Yves* < yjacolin at free.fr > > wrote: > > Hi list, > > I am working on an application using only OGC standards. I am > successfully > create my list of layer from a GetCapabilities request. I would like > to add > an overview for each of this layer, and so I processed the bbox, > scaleHint to > send a GetMap. > > However, I have a problem with all postgis layer because the bbox > for all of > my bbox are something like this : > maxx="2.5e+07" maxy="2.5e+07" /> > > which is obviously incorrect. > > My srid postgis layer is set to -1, but the data are in srid = > 27582. Do you > think my problem come from this set up ? My projections are always > set up to > EPSG:27572 in my mapfile. > > Thanks, > > Y. > -- > Yves Jacolin > --- > http://softlibre.gloobe.org > > -- Daniel Morissette http://www.mapgears.com/ From samhiatt at GMAIL.COM Thu Oct 25 13:15:30 2007 From: samhiatt at GMAIL.COM (Samuel Hiatt) Date: Thu, 25 Oct 2007 13:15:30 -0700 Subject: Coloring floating point raster data Message-ID: Hi all. I've been struggling for quite a while trying to find an optimal solution for my situation... I have a very large archive of raster data (32 bit float) and would like to provide on-demand access to the data via mapserver. In order to do this I need to find a way to color my rasters given a specific color ramp. This would be easy if my rasters were byte-scaled, and I could bytescale the raster first before giving it to mapserver, but I would like to avoid doing any external processing, and instead let mapserver do the work. This desire is enforced by my plans to serve the same data via WCS (actual non bytescaled data). Here is how I see the ideal situation would work: - Mapserver reads in the 32bit float raster (works just fine) - Mapserver byte-scales the data as per the PROCESSING "SCALE=min,max" directive (also works just fine) - Mapserver applies the given color ramp to the data that is now bytescaled (*** I can't find a way to do this) - Mapserver spits out the beautiful image (and everyone is happy) Is this functionality already implemented (and hidden) in Mapserver? Does anyone have any ideas regarding how I should tackle this? Thanks in advance for your help. Sam -------------- next part -------------- An HTML attachment was scrubbed... URL: From saengpole at YAHOO.COM Thu Oct 25 13:18:42 2007 From: saengpole at YAHOO.COM (Krung Saengpole) Date: Thu, 25 Oct 2007 13:18:42 -0700 Subject: Error when create annotation layer in PHPMapscript Message-ID: Daniel, Apologize for my dum. I misspelt as you adviced. Thank you very much. Krung ----- Original Message ---- From: Daniel Morissette To: MAPSERVER-USERS at LISTS.UMN.EDU Sent: Friday, October 26, 2007 2:32:08 AM Subject: Re: [UMN_MAPSERVER-USERS] Error when create annotation layer in PHPMapscript Krung Saengpole wrote: > Daniel, > > I used MS4W 2.2.5 on Windows Vista. I didn't query anything in the code. > I only created annotation layer by code. But if I used previous version > that was not MS4W suit, it had no error. Is this a bug of this suit? > I am not aware of any known bug in the MS4W package that would explain this. Did you at least try fixing the missing letter in $layer->set("type", MS_LAYER_ANNOTATION) in your script? I'd also suggest that you double-check your code and look for possible calls to the queryByRect() method... MapServer would not return the warning "msQueryByRect(): No matching record(s) found." for no reason. Daniel -- Daniel Morissette http://www.mapgears.com/ __________________________________________________ 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 bthoen at GISNET.COM Thu Oct 25 13:32:44 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Thu, 25 Oct 2007 14:32:44 -0600 Subject: Slicing Up a Tiff Image for Tiling Message-ID: Is there a tool available for breaking up a large TIFF image into smaller pieces (with associated tfw files or as geoTIFFs) for tiling? Thanks, - Bill Thoen From bthoen at GISNET.COM Thu Oct 25 14:51:32 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Thu, 25 Oct 2007 15:51:32 -0600 Subject: Slicing Up a Tiff Image for Tiling In-Reply-To: <4720FD6C.3060109@gisnet.com> Message-ID: Never mind... I just found gdal_translate! Bill Thoen wrote: > Is there a tool available for breaking up a large TIFF image into > smaller pieces (with associated tfw files or as geoTIFFs) for tiling? > > Thanks, > - Bill Thoen > From aaronr at Z-PULLEY.COM Thu Oct 25 14:50:14 2007 From: aaronr at Z-PULLEY.COM (Aaron Racicot) Date: Thu, 25 Oct 2007 14:50:14 -0700 Subject: Slicing Up a Tiff Image for Tiling In-Reply-To: <4720FD6C.3060109@gisnet.com> Message-ID: Maybe look at the new gdal2tiles.py from the Google SoC: http://www.klokan.cz/projects/gdal2tiles/ A +----------------------------------------+ Aaron Racicot - GIS Programmer z - p u l l e y www.reprojected.com +----------------------------------------+ -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Bill Thoen Sent: Thursday, October 25, 2007 1:33 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] Slicing Up a Tiff Image for Tiling Is there a tool available for breaking up a large TIFF image into smaller pieces (with associated tfw files or as geoTIFFs) for tiling? Thanks, - Bill Thoen From pramsey at REFRACTIONS.NET Thu Oct 25 16:47:55 2007 From: pramsey at REFRACTIONS.NET (Paul Ramsey) Date: Thu, 25 Oct 2007 16:47:55 -0700 Subject: MapServer and AGG licences In-Reply-To: <471F7F79.2080407@mapgears.com> Message-ID: The main branch of Mapserver doesn't not have to be re-licensed in order for Mapserver to be distributed under the GPL. I can take a copy of SVN right now, and set up a new Mapserver-GPL project, for all us FSF zealots to contribute to. That won't change the licensing of the main Mapserver branch, but it will make Mapserver available under the GPL. Clear as mud? The only people that would be affected by Mapserver+AGG2.5 GPL would be folks currently distributing binary-only, ALTERED versions of Mapserver, who want to keep their alterations proprietary and closed. And then only if they insisted on distributing binary-only, altered versions of Mapserver+AGG2.5! Not many of those folks, methinks? MapDotNet Server? Anyone else? Anyhow, the whole thing wrapped up on -DEV, with a note that the AGG 2.4 version seems to be working just fine, and there's no need to use the 2.5 version at all right now. So it is a hypothetical situation right now. But a great discussion for the pub, if you have a pad of paper and pen to diagram out all the details! P On 24-Oct-07, at 10:23 AM, Julien-Samuel Lacroix wrote: > There was a very informative discussion on the MapServer-Dev > mailing-list about a MapServer vs AGG 2.5 licence compatibility. In > short I think it reads like the following. Note that AGG 2.4 has no > licence issue with MapServer since it was a BSD licence. > >> "For AGG, you'll be linking to a GPL library, which means you >> won't be >> able to distribute BSD binaries anymore -- any binary linked against >> AGG will have to go out under the GPL. Basically, if you only care >> about Mapserver as an open source product, it's no problem, but if >> you have any plans to distribute altered versions as closed source, >> you cannot do it with the AGG dependency turned on." > > and > >> If one distributes MapServer linked with a GPL AGG I *think* you are >> required to provide MapServer under GPL terms. Because there is no >> one contributor who has rights to alter MapServer licensing terms I >> believe the distributor would be in violation of the AGG GPL terms. > > See: > http://lists.umn.edu/cgi-bin/wa?A2=ind0710&L=mapserver- > dev&D=1&T=0&O=D&X=4DEC7415D8C7791480&P=12919 > > Julien > PS: There was no discussion of re-licencing MapServer. > > -- > Julien-Samuel Lacroix > Mapgears > http://www.mapgears.com/ From Jacob.Delfos at MAUNSELL.COM Thu Oct 25 16:55:26 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Fri, 26 Oct 2007 07:55:26 +0800 Subject: No subject In-Reply-To: <47208A53.5157.008F.0@dnr.state.mn.us> Message-ID: Javier, I have seen these symptoms when I updated a shapefile, without updating its spatial index. Features literally 'vanish' into thin air, because they are assumed not to be in the extent (because the spatial index points to the wrong objects). Try updating your spatial index (or remove it for now). Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime > Sent: 26 October 2007 01:22 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] > > If you use shp2img do you see the same issue? I didn't see > anything obvious in your configuration > that would cause something like this. Will try on my end too. > > Steve > > > >>> On 10/25/2007 at 8:04 AM, in message > ocal>, Javier > Carrasco wrote: > > > Hi everybody > > I have a problem when I try to render the shape in the > shapefile annexed. If > > you look at the screenshoot I took from gvSIG, there are > some segments of the > > geometry that are not displayed using MapServer but gvSIG, > uDIG and arcMap > > displays correctly. > > > > I'm using ms4w (MapServer 5.0) and I'm getting the images > using the WMS > > interface. > > > > This geometry is a representation of a route to deliver > some packages in > > different addresses. > > it looks like two correlative segments of the path that are > used to move > > from A to B and B to A are disappearing. > > > > Do you know if there is a bug in MapServer or am I making > something wrong > > when configuring MapServer? > > > > Thank you > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From warmerdam at POBOX.COM Thu Oct 25 21:11:09 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Fri, 26 Oct 2007 00:11:09 -0400 Subject: MapServer and AGG licences In-Reply-To: Message-ID: Paul Ramsey wrote: > The only people that would be affected by Mapserver+AGG2.5 GPL would be > folks currently distributing binary-only, ALTERED versions of Mapserver, > who want to keep their alterations proprietary and closed. And then > only if they insisted on distributing binary-only, altered versions of > Mapserver+AGG2.5! Not many of those folks, methinks? MapDotNet Server? > Anyone else? Paul, I would add that MapServer + AGG2.5 GPL could not be distributed in binary form linked with any components that do not satisfy the GPL source code access and redistribution requirements of GPL. So that means binaries linked with SDE, Oracle, MrSID, ECW, and other libraries which impose limitations not compatible with the GPL. That would affect MS4W and FWTools for instance. Nevertheless, as you note, AGG 2.4 (pre GPL) is not a problem and so for now there is no significant issue. Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From eric.c2c at GMAIL.COM Thu Oct 25 21:43:01 2007 From: eric.c2c at GMAIL.COM (Eric Lemoine) Date: Fri, 26 Oct 2007 06:43:01 +0200 Subject: wfs server and encoding In-Reply-To: <20071025192709.5215AC5351@smtp.tal.de> Message-ID: Hi Arnd, Are there accentuaded letters in your GML file? Could you post it so that I can try it with my setup? Thanks, -- Eric On 10/25/07, Arnd Wippermann wrote: > Hello Eric, > > That's wrong. Loading WFS-layers from MapServer with OpenLayers works with > FF and IE. > > (OpenLayers 2.5, MapServer 4.10) > > http://gis.ibbeck.de/ginfo/apps/OLExamples/SphericalMercator/OL_900913_frame > s.html > > This is the head part of the WFS-response get with Firebug: > > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > http://gis.ibbeck.de/ginfo/apps/OLExamples > /SphericalMercator/!SphericalMercator.asp&Service=WFS?SERVICE=WFS&VE > RSION=1.0.0&REQUEST=DescribeFeatureType > &TYPENAME=POLYGONS&OUTPUTFORMAT=XMLSCHEMA"> > > > ... > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/ginfo/ From kobben at ITC.NL Fri Oct 26 00:46:03 2007 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Fri, 26 Oct 2007 09:46:03 +0200 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: <4720F472.1080604@mapgears.com> Message-ID: Hi Daniel and others, We noticed that error also, and indeed setting the ows_extent on the layers works. Note however that basically Mapserver is making a strange move: If it cannot get the extent automatically out of one of its layers LAYER (, it does On 25-10-2007 21:54, "Daniel Morissette" wrote: > The postgis implementation in MapServer may not support reading the real > data extents automatically (I just don't know), but you should be able > to set the ows_extent metadata in your layer to tell MapServer which > extents to use for the BoundingBox in capabilities. By default if > ows_extent is not specified then MapServer tries to get the extents from > PostGIS and it seems that it returns something that's way larger than > the actual data. > > Daniel > > Bart van den Eijnden wrote: >> Hi Yves, >> >> unfortunately this is not implemented for PostGIS. >> >> Best regards, >> Bart >> >> On 10/25/07, *Jacolin Yves* < yjacolin at free.fr >> > wrote: >> >> Hi list, >> >> I am working on an application using only OGC standards. I am >> successfully >> create my list of layer from a GetCapabilities request. I would like >> to add >> an overview for each of this layer, and so I processed the bbox, >> scaleHint to >> send a GetMap. >> >> However, I have a problem with all postgis layer because the bbox >> for all of >> my bbox are something like this : >> > maxx="2.5e+07" maxy="2.5e+07" /> >> >> which is obviously incorrect. >> >> My srid postgis layer is set to -1, but the data are in srid = >> 27582. Do you >> think my problem come from this set up ? My projections are always >> set up to >> EPSG:27572 in my mapfile. >> >> Thanks, >> >> Y. >> -- >> Yves Jacolin >> --- >> http://softlibre.gloobe.org >> >> > From yjacolin at FREE.FR Fri Oct 26 00:48:51 2007 From: yjacolin at FREE.FR (Jacolin Yves) Date: Fri, 26 Oct 2007 09:48:51 +0200 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: <4720F472.1080604@mapgears.com> Message-ID: Hi Daniel, Great ! At least there is a workaround :) Thanks Bart for your answer as well. Y. Le Thursday 25 October 2007 21:54:26 Daniel Morissette, vous avez ?crit?: > The postgis implementation in MapServer may not support reading the real > data extents automatically (I just don't know), but you should be able > to set the ows_extent metadata in your layer to tell MapServer which > extents to use for the BoundingBox in capabilities. By default if > ows_extent is not specified then MapServer tries to get the extents from > PostGIS and it seems that it returns something that's way larger than > the actual data. > > Daniel > > Bart van den Eijnden wrote: > > Hi Yves, > > > > unfortunately this is not implemented for PostGIS. > > > > Best regards, > > Bart > > > > On 10/25/07, *Jacolin Yves* < yjacolin at free.fr > > > wrote: > > > > Hi list, > > > > I am working on an application using only OGC standards. I am > > successfully > > create my list of layer from a GetCapabilities request. I would like > > to add > > an overview for each of this layer, and so I processed the bbox, > > scaleHint to > > send a GetMap. > > > > However, I have a problem with all postgis layer because the bbox > > for all of > > my bbox are something like this : > > > maxx="2.5e+07" maxy="2.5e+07" /> > > > > which is obviously incorrect. > > > > My srid postgis layer is set to -1, but the data are in srid = > > 27582. Do you > > think my problem come from this set up ? My projections are always > > set up to > > EPSG:27572 in my mapfile. > > > > Thanks, > > > > Y. > > -- > > Yves Jacolin > > --- > > http://softlibre.gloobe.org -- Yves Jacolin --- http://softlibre.gloobe.org From kobben at ITC.NL Fri Oct 26 00:51:39 2007 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Fri, 26 Oct 2007 09:51:39 +0200 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: <4720F472.1080604@mapgears.com> Message-ID: [sorry, pressed send to quickly...] Hi Daniel and others, We noticed that error also, and indeed setting the ows_extent on the layers works. Note however that basically Mapserver is making a strange move: If it cannot get the extent automatically out of one of its layers LAYER , it DOES set an extent on the parent layer's BBOX (what I'd call the service extent), and so apparently CAN extract the BBOX automatically. However, on the LAYER it does not do that and instead sets an erroneaus BBOX of inifinite extent. See the fragment of GetCapabilities below that is the result of the URL: http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/mapserv er/pg_config_error.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities enschede enscad EPSG:28992 enscadparcels enscadparcels EPSG:28992 In my opinion this is a genuine bug, its houdl either set the correct extent on the layer or leave it out altogether, so the client can fall back on the 'service' extent... Barend On 25-10-2007 21:54, "Daniel Morissette" wrote: > The postgis implementation in MapServer may not support reading the real > data extents automatically (I just don't know), but you should be able > to set the ows_extent metadata in your layer to tell MapServer which > extents to use for the BoundingBox in capabilities. By default if > ows_extent is not specified then MapServer tries to get the extents from > PostGIS and it seems that it returns something that's way larger than > the actual data. > > Daniel > > Bart van den Eijnden wrote: >> Hi Yves, >> >> unfortunately this is not implemented for PostGIS. >> >> Best regards, >> Bart >> >> On 10/25/07, *Jacolin Yves* < yjacolin at free.fr >> > wrote: >> >> Hi list, >> >> I am working on an application using only OGC standards. I am >> successfully >> create my list of layer from a GetCapabilities request. I would like >> to add >> an overview for each of this layer, and so I processed the bbox, >> scaleHint to >> send a GetMap. >> >> However, I have a problem with all postgis layer because the bbox >> for all of >> my bbox are something like this : >> > maxx="2.5e+07" maxy="2.5e+07" /> >> >> which is obviously incorrect. >> >> My srid postgis layer is set to -1, but the data are in srid = >> 27582. Do you >> think my problem come from this set up ? My projections are always >> set up to >> EPSG:27572 in my mapfile. >> >> Thanks, >> >> Y. >> -- >> Yves Jacolin >> --- >> http://softlibre.gloobe.org >> >> > From jcarrasco at PRODEVELOP.ES Fri Oct 26 00:55:32 2007 From: jcarrasco at PRODEVELOP.ES (Javier Carrasco) Date: Fri, 26 Oct 2007 09:55:32 +0200 Subject: No subject Message-ID: Thank you Jacob and Steve. I have the same problem in shp2img. I have noticed that when you get closer to the geometry, it shows correctly, I mean it depends on scale. Is it possible MapServer is doing some kind of greeking or simplification of the geometry that doesn't work well for my geometry? Sometimes the piece of the shape that dissappears is quite big (70 pixels more or less). My original data is in Oracle Spatial, I converted it to shape and tried to configure mapserver to use shapefile. But I have the same problem when using Oracle or Shapefiles. I have tested it in Mapserver 4 and 5.0 and the result is the same. Thank You -----Mensaje original----- De: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] Enviado el: vie 26/10/2007 1:55 Para: MAPSERVER-USERS at LISTS.UMN.EDU CC: Javier Carrasco; Steve Lime Asunto: RE: [UMN_MAPSERVER-USERS] Javier, I have seen these symptoms when I updated a shapefile, without updating its spatial index. Features literally 'vanish' into thin air, because they are assumed not to be in the extent (because the spatial index points to the wrong objects). Try updating your spatial index (or remove it for now). Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime > Sent: 26 October 2007 01:22 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] > > If you use shp2img do you see the same issue? I didn't see > anything obvious in your configuration > that would cause something like this. Will try on my end too. > > Steve > > > >>> On 10/25/2007 at 8:04 AM, in message > ocal>, Javier > Carrasco wrote: > > > Hi everybody > > I have a problem when I try to render the shape in the > shapefile annexed. If > > you look at the screenshoot I took from gvSIG, there are > some segments of the > > geometry that are not displayed using MapServer but gvSIG, > uDIG and arcMap > > displays correctly. > > > > I'm using ms4w (MapServer 5.0) and I'm getting the images > using the WMS > > interface. > > > > This geometry is a representation of a route to deliver > some packages in > > different addresses. > > it looks like two correlative segments of the path that are > used to move > > from A to B and B to A are disappearing. > > > > Do you know if there is a bug in MapServer or am I making > something wrong > > when configuring MapServer? > > > > Thank you > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarrasco at PRODEVELOP.ES Fri Oct 26 00:56:27 2007 From: jcarrasco at PRODEVELOP.ES (Javier Carrasco) Date: Fri, 26 Oct 2007 09:56:27 +0200 Subject: Greeking in MapServer? Message-ID: Sorry I forgot to say that the extent in the .map doesn't allow you to see anything. this is the extent I used EXTENT 0.62 41.60999 0.63 41.62 -----Mensaje original----- De: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] Enviado el: vie 26/10/2007 1:55 Para: MAPSERVER-USERS at LISTS.UMN.EDU CC: Javier Carrasco; Steve Lime Asunto: RE: [UMN_MAPSERVER-USERS] Javier, I have seen these symptoms when I updated a shapefile, without updating its spatial index. Features literally 'vanish' into thin air, because they are assumed not to be in the extent (because the spatial index points to the wrong objects). Try updating your spatial index (or remove it for now). Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Steve Lime > Sent: 26 October 2007 01:22 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] > > If you use shp2img do you see the same issue? I didn't see > anything obvious in your configuration > that would cause something like this. Will try on my end too. > > Steve > > > >>> On 10/25/2007 at 8:04 AM, in message > ocal>, Javier > Carrasco wrote: > > > Hi everybody > > I have a problem when I try to render the shape in the > shapefile annexed. If > > you look at the screenshoot I took from gvSIG, there are > some segments of the > > geometry that are not displayed using MapServer but gvSIG, > uDIG and arcMap > > displays correctly. > > > > I'm using ms4w (MapServer 5.0) and I'm getting the images > using the WMS > > interface. > > > > This geometry is a representation of a route to deliver > some packages in > > different addresses. > > it looks like two correlative segments of the path that are > used to move > > from A to B and B to A are disappearing. > > > > Do you know if there is a bug in MapServer or am I making > something wrong > > when configuring MapServer? > > > > Thank you > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From plieger at KNMI.NL Fri Oct 26 01:25:08 2007 From: plieger at KNMI.NL (Maarten Plieger) Date: Fri, 26 Oct 2007 08:25:08 +0000 Subject: GML download slow through postgis compared to local shapefiles Message-ID: Hi All, >Patricio Cifuentes Ithal schreef: > Hi, > Test with "the_geom from table using SRID=4326" I tested this with the statement above and the results are: WMS request: 3.3 seconds WFS request: 215 seconds 66.8 MB in 3 min 35 sec 312 Kb/sec This is slower than the previous timings. > Bart wrote: > dit komt omdat Mapserver per feature 1 SQL statement af zal vuren op > PostGIS .... I believe this is indeed the case. But for the WMS request, the response is much quicker from postgis. You can view all the data in 3.3 seconds. I guess with the WMS request all the data is transfered at once, using one statement? Is it possible that this could be made for the WFS request too? Or that it is possbible to request more than one feature for each SQL statement? It would be really nice to see the GML download speed up. Regards, Maarten Plieger >> -----Mensaje original----- >> De: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] En >> nombre de Maarten Plieger >> Enviado el: Jueves, 25 de Octubre de 2007 12:57 >> Para: MAPSERVER-USERS at LISTS.UMN.EDU >> Asunto: [UMN_MAPSERVER-USERS] GML download slow through postgis >> compared to local shapefiles >> >> Hello All, >> Currently I am comparing GML download performance through a WFS with >> mapserver. The source data is stored directly on disk in the ESRI shape >> format, and is also available from a postgis database located on the >> same machine. So it is exactly the same data but from different >> sources. >> The shapefiles contain about 90000 polygons per file. I am timing the >> rendering time in WMS and the download speed in WFS. >> WMS rendering time for a shapefile: >> For the shapefiles on disk: 2.897 seconds >> From the postgis database: 3.3 seconds. >> (seems ok for both data sources) >> >> However when I start downloading the data with the WFS in GML2 format: >> For the shapefiles on disk: 8 Seconds >> 66,8 MB in 8 sec >> 8,35 Mb/Sec <== fast >> From the postgis database: 84 Seconds >> 66.8 MB in 1 min 24 sec >> 800KB/Sec <== slow >> >> These are the postgis parameters: >> CONNECTIONTYPE postgis >> CONNECTION "host=localhost dbname=pliegerdatabase user=plieger >> password=* port=5432" >> DATA "the_geom from (select * from vcdtrop) as foo using unique gid >> using SRID=4326" >> >> > [Patricio Cifuentes Ithal] > Hi, > Test with "the_geom from table using SRID=4326" > > > > > >> Why is downloading GML data through WFS from a postgis database 10 >> times >> slower than from locally stored shapefiles? >> Can I do something to improve things? I am using mapserver 5.0.0-rc1 on >> SUSE. >> >> Thanks in advance, >> Maarten Plieger >> >> -- >> Este mensaje ha sido analizado por MailScanner >> en busca de virus y otros contenidos peligrosos, >> y se considera que est? limpio. >> >> www.siigsa.cl >> > > > > From thomas.bonfort at GMAIL.COM Fri Oct 26 02:49:20 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Fri, 26 Oct 2007 11:49:20 +0200 Subject: No subject In-Reply-To: Message-ID: This is a bug. the problem comes from the fact that mapserver tries to concatenate colinear vertices to reduce the number of lines to be drawn. In your case the vertice at the extreme of your line segment is removed. I'll file this on trac tb On 10/26/07, Javier Carrasco wrote: > > > > Thank you Jacob and Steve. > > I have the same problem in shp2img. > > I have noticed that when you get closer to the geometry, it shows > correctly, I mean it depends on scale. Is it possible MapServer is doing > some kind of greeking or simplification of the geometry that doesn't work > well for my geometry? Sometimes the piece of the shape that dissappears is > quite big (70 pixels more or less). > > My original data is in Oracle Spatial, I converted it to shape and tried to > configure mapserver to use shapefile. But I have the same problem when using > Oracle or Shapefiles. > > I have tested it in Mapserver 4 and 5.0 and the result is the same. > > Thank You > > -----Mensaje original----- > De: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] > Enviado el: vie 26/10/2007 1:55 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > CC: Javier Carrasco; Steve Lime > Asunto: RE: [UMN_MAPSERVER-USERS] > > > > Javier, > > I have seen these symptoms when I updated a shapefile, without updating > its spatial index. Features literally 'vanish' into thin air, because > they are assumed not to be in the extent (because the spatial index > points to the wrong objects). Try updating your spatial index (or remove > it for now). > > Regards, > > Jacob > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Steve Lime > > Sent: 26 October 2007 01:22 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] > > > > If you use shp2img do you see the same issue? I didn't see > > anything obvious in your configuration > > that would cause something like this. Will try on my end too. > > > > Steve > > > > > > >>> On 10/25/2007 at 8:04 AM, in message > > > > ocal>, Javier > > Carrasco wrote: > > > > > Hi everybody > > > I have a problem when I try to render the shape in the > > shapefile annexed. If > > > you look at the screenshoot I took from gvSIG, there are > > some segments of the > > > geometry that are not displayed using MapServer but gvSIG, > > uDIG and arcMap > > > displays correctly. > > > > > > I'm using ms4w (MapServer 5.0) and I'm getting the images > > using the WMS > > > interface. > > > > > > This geometry is a representation of a route to deliver > > some packages in > > > different addresses. > > > it looks like two correlative segments of the path that are > > used to move > > > from A to B and B to A are disappearing. > > > > > > Do you know if there is a bug in MapServer or am I making > > something wrong > > > when configuring MapServer? > > > > > > Thank you > > > > This email and any attachments are intended solely for the named recipient > and are confidential. The copying or distribution of them or any information > they contain by anyone other than the named recipient is prohibited. If you > have received this document in error, please notify the sender and delete > all copies from your computer system and destroy all hard copies. It is the > recipient's responsibility to check this email and any attachments to this > email for viruses before use. > > > > > From jcarrasco at PRODEVELOP.ES Fri Oct 26 04:14:48 2007 From: jcarrasco at PRODEVELOP.ES (Javier Carrasco) Date: Fri, 26 Oct 2007 13:14:48 +0200 Subject: No subject Message-ID: Thank you -----Mensaje original----- De: thomas bonfort [mailto:thomas.bonfort at gmail.com] Enviado el: vie 26/10/2007 11:49 Para: Javier Carrasco; Steve Lime CC: MAPSERVER-USERS at lists.umn.edu Asunto: Re: [UMN_MAPSERVER-USERS] This is a bug. the problem comes from the fact that mapserver tries to concatenate colinear vertices to reduce the number of lines to be drawn. In your case the vertice at the extreme of your line segment is removed. I'll file this on trac tb On 10/26/07, Javier Carrasco wrote: > > > > Thank you Jacob and Steve. > > I have the same problem in shp2img. > > I have noticed that when you get closer to the geometry, it shows > correctly, I mean it depends on scale. Is it possible MapServer is doing > some kind of greeking or simplification of the geometry that doesn't work > well for my geometry? Sometimes the piece of the shape that dissappears is > quite big (70 pixels more or less). > > My original data is in Oracle Spatial, I converted it to shape and tried to > configure mapserver to use shapefile. But I have the same problem when using > Oracle or Shapefiles. > > I have tested it in Mapserver 4 and 5.0 and the result is the same. > > Thank You > > -----Mensaje original----- > De: Delfos, Jacob [mailto:Jacob.Delfos at maunsell.com] > Enviado el: vie 26/10/2007 1:55 > Para: MAPSERVER-USERS at LISTS.UMN.EDU > CC: Javier Carrasco; Steve Lime > Asunto: RE: [UMN_MAPSERVER-USERS] > > > > Javier, > > I have seen these symptoms when I updated a shapefile, without updating > its spatial index. Features literally 'vanish' into thin air, because > they are assumed not to be in the extent (because the spatial index > points to the wrong objects). Try updating your spatial index (or remove > it for now). > > Regards, > > Jacob > > > > -----Original Message----- > > From: UMN MapServer Users List > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Steve Lime > > Sent: 26 October 2007 01:22 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: [UMN_MAPSERVER-USERS] > > > > If you use shp2img do you see the same issue? I didn't see > > anything obvious in your configuration > > that would cause something like this. Will try on my end too. > > > > Steve > > > > > > >>> On 10/25/2007 at 8:04 AM, in message > > > > ocal>, Javier > > Carrasco wrote: > > > > > Hi everybody > > > I have a problem when I try to render the shape in the > > shapefile annexed. If > > > you look at the screenshoot I took from gvSIG, there are > > some segments of the > > > geometry that are not displayed using MapServer but gvSIG, > > uDIG and arcMap > > > displays correctly. > > > > > > I'm using ms4w (MapServer 5.0) and I'm getting the images > > using the WMS > > > interface. > > > > > > This geometry is a representation of a route to deliver > > some packages in > > > different addresses. > > > it looks like two correlative segments of the path that are > > used to move > > > from A to B and B to A are disappearing. > > > > > > Do you know if there is a bug in MapServer or am I making > > something wrong > > > when configuring MapServer? > > > > > > Thank you > > > > This email and any attachments are intended solely for the named recipient > and are confidential. The copying or distribution of them or any information > they contain by anyone other than the named recipient is prohibited. If you > have received this document in error, please notify the sender and delete > all copies from your computer system and destroy all hard copies. It is the > recipient's responsibility to check this email and any attachments to this > email for viruses before use. > > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cankt.sss at GMAIL.COM Fri Oct 26 04:58:13 2007 From: cankt.sss at GMAIL.COM (Ignacio Moratiel) Date: Fri, 26 Oct 2007 06:58:13 -0500 Subject: Legend only show active layers Message-ID: Sorry, my English is very bad I have a problem with legend, it only show active layers, and if you deactivate layers, you can't activate it again. Please see http://www.dipuleon.es/atica/portada_acebedo.html#, and click ATICA button. It is working on Suse 10.0 and works fine in Windows, that's why I think Legend label is ok .map file is in http://www.dipuleon.es/atica/acebedo/mapa.map legend template is in http://www.dipuleon.es/atica/acebedo/legend.html thanks for your answers From dmorissette at MAPGEARS.COM Fri Oct 26 05:51:34 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 26 Oct 2007 08:51:34 -0400 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: Message-ID: Barend K?bben wrote: > > We noticed that error also, and indeed setting the ows_extent on the layers > works. Note however that basically Mapserver is making a strange move: If it > cannot get the extent automatically out of one of its layers LAYER , it DOES > set an extent on the parent layer's BBOX (what I'd call the service extent), > and so apparently CAN extract the BBOX automatically. The service extent is simply using the mapfile's EXTENT values. It is not derived automatically from the data layers. > However, on the LAYER > it does not do that and instead sets an erroneaus BBOX of inifinite extent. You're right that this is not very consistent. Now I wonder if the OGC WMS spec states anywhere that any given layer extent must be a subset of the overall service extent. i.e. is it acceptable in WMS terms for a layer at the second level or deeper in the layer hierarchy of the capabilities to advertise an extent that is larger than the extent of its parent layer(s)? In theory I agree that it would be desirable to have all layers fit within the extent of their parent(s), but in practice this may be hard to enforce, especially when dealing with BoundingBox elements in multiple SRS where the projected/rotated BBOX corners will hardly ever fit within the parent layer extent. [...] > > In my opinion this is a genuine bug, its houdl either set the correct extent > on the layer or leave it out altogether, so the client can fall back on the > 'service' extent... > The WMS 1.1.1 spec states that LatLonBoundingBox and BoundingBox are inherited from parent layers if they are not explicitly set for a given Layer, so you're right, it would be best to omit them in the postgis layer in this case unless ows_extent is explicitly specified for the layer. I'd suggest that you file a ticket about this. I am not sure how easy that will be to fix, since we'll need a way to tell the capabilities generation code that the extent returned by Postgis is not meaningful. Daniel -- Daniel Morissette http://www.mapgears.com/ From arndw at WTAL.DE Fri Oct 26 06:00:35 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Fri, 26 Oct 2007 15:00:35 +0200 Subject: AW: [UMN_MAPSERVER-USERS] wfs server and encoding In-Reply-To: <5ec103de0710252143m4202c9fardf02bfc093b66798@mail.gmail.com> Message-ID: Hello Eric, In the online example there are attributes Gr?nland, S?damerika and Gro?britannien. Coming from an SQLite db, they will convert to utf-8, but MapServer delivers iso-8859-1 and so they are displayed wrong. In an other local example I use an ACCESS mdb for the geometry. There are many ?s, ?s and ?s. The geometry as WFS are displayed, but the attributes show many questionmarks. To get this right, I think I have found a solution. Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ -----Urspr?ngliche Nachricht----- Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im Auftrag von Eric Lemoine Gesendet: Freitag, 26. Oktober 2007 06:43 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: Re: [UMN_MAPSERVER-USERS] wfs server and encoding Hi Arnd, Are there accentuaded letters in your GML file? Could you post it so that I can try it with my setup? Thanks, -- Eric On 10/25/07, Arnd Wippermann wrote: > Hello Eric, > > That's wrong. Loading WFS-layers from MapServer with OpenLayers works > with FF and IE. > > (OpenLayers 2.5, MapServer 4.10) > > http://gis.ibbeck.de/ginfo/apps/OLExamples/SphericalMercator/OL_900913 > _frame > s.html > > This is the head part of the WFS-response get with Firebug: > > xmlns:ms="http://mapserver.gis.umn.edu/mapserver" > xmlns:wfs="http://www.opengis.net/wfs" > xmlns:gml="http://www.opengis.net/gml" > xmlns:ogc="http://www.opengis.net/ogc" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://www.opengis.net/wfs > http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd > http://mapserver.gis.umn.edu/mapserver > http://gis.ibbeck.de/ginfo/apps/OLExamples > /SphericalMercator/!SphericalMercator.asp&Service=WFS?SERVICE=WFS& > amp;VE RSION=1.0.0&REQUEST=DescribeFeatureType > &TYPENAME=POLYGONS&OUTPUTFORMAT=XMLSCHEMA"> > > ... > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/ginfo/ From arndw at WTAL.DE Fri Oct 26 06:04:19 2007 From: arndw at WTAL.DE (Arnd Wippermann) Date: Fri, 26 Oct 2007 15:04:19 +0200 Subject: WFS iso-8859-1 to utf-8 Message-ID: Hi, after the release of OpenLayers 2.5 I have looked at WFS. Loading the geometry with OpenLayers from MapServer works. But to retrieve the attributes in the right way (utf-8) is in some way difficult. For IIS I have found a solution, that takes input in i.e "ISO-8859-1" and creates UTF-8. I use a wrapper-script, that 1. hides the real OnlineResource and 2. convert the input to utf-8. The script (ported to vbscript) can also used to convert local xml-files to utf-8. Perhaps someone have an idea to do this in python or php for the use with apache. I have no clue, how to do this. <% Option Explicit 'usage : http://this.asp 'without parameter the xmlString will converted and send to the browser ' 'or http://this.asp?WFS-Parameter Dim strRequest Select Case Request.ServerVariables("REQUEST_METHOD") Case "GET" strRequest = Request.QueryString Case "POST" strRequest = Request.Form End Select Call Haurein Sub haurein() Dim testLocal if strRequest = "" then testLocal = true else testLocal = false end if Dim xmlString 'for local test xmlString = "" & vbCrLf xmlString = XMLString & "" & vbCrLf xmlString = XMLString & " ein ? - ?, Stra?e, ?berlauf" & vbCrLf xmlString = XMLString & " ein ? - ?" & vbCrLf xmlString = XMLString & " ein ? - ? # ?, ?" & vbCrLf xmlString = XMLString & " #?#?#?#? - ?#?#?#" & vbCrLf xmlString = XMLString & "" & vbCrLf Dim mapserv, strURL if testLocal = false then mapserv = "http://[mapserv.exe]?map=[mapfile]" strURL = mapserv & "&" & strRequest end if 'response.write strURL 'Create new XML object for conversion and load xmlString or request and load the WFS Dim oDOM Set oDOM = Server.CreateObject("Microsoft.XMLDOM") if testLocal then oDOM.loadXML(xmlString) else Dim objHTTP Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") On Error Resume Next 'get the WFS response objHTTP.open "GET", URLDecode(strURL), false if err.number <> 0 then Response.Write err.description & "
testLocal : " & testLocal & "
mapserv : " & mapserv & "
strRequest : " & strRequest Exit Sub end if objHTTP.send "" 'declare the original charset Response.CharSet = "ISO-8859-1" Response.ContentType = "text/xml" oDOM.load(objHTTP.responseXML) end if 'Replace the processing instruction of the XML object Dim pi Set pi = oDOM.createProcessingInstruction("xml", "version=""1.0"" encoding=""utf-8""") oDOM.replaceChild pi, oDOM.childNodes.item(0) 'declare the charset of the output Response.CharSet = "UTF-8" Response.ContentType = "text/xml" oDOM.save(Response) Set objHTTP = Nothing Set oDOM = Nothing Set pi = Nothing End Sub ' An inverse to Server.URLEncode function URLDecode(str) dim re set re = new RegExp str = Replace(str, "+", " ") re.Pattern = "%([0-9a-fA-F]{2})" re.Global = True URLDecode = re.Replace(str, GetRef("URLDecodeHex")) end function ' Replacement function for the above function URLDecodeHex(match, hex_digits, pos, source) URLDecodeHex = chr("&H" & hex_digits) end function %> Mit freundlichen Gr?ssen Arnd Wippermann http://gis.ibbeck.de/ginfo/ From kobben at ITC.NL Fri Oct 26 06:17:45 2007 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Fri, 26 Oct 2007 15:17:45 +0200 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: <4721E2D6.8030609@mapgears.com> Message-ID: Hi Daniel, > The service extent is simply using the mapfile's EXTENT values. It is > not derived automatically from the data layers. OK, understood. > Now I wonder if the OGC WMS spec states anywhere that any given layer > extent must be a subset of the overall service extent. i.e. is it > acceptable in WMS terms for a layer at the second level or deeper in the > layer hierarchy of the capabilities to advertise an extent that is > larger than the extent of its parent layer(s)? The spec doesn't state anything on that. It could be certainly the case for BoundingBox, as these are there for every SRS supported by the layer. A child layer CAN in theory support an SRS that different from the parent layer's SRS, so could be quite different. For LatLonBoundingBox it's unlikely. > In theory I agree that it would be desirable to have all layers fit > within the extent of their parent(s), but in practice this may be hard > to enforce, especially when dealing with BoundingBox elements in > multiple SRS where the projected/rotated BBOX corners will hardly ever > fit within the parent layer extent. I actually do not think it is desirable. Only when clients use the Parent BBOX for something like "zoom full extent", it might turn out to be confusing if one of the child layers doesn't fit. But it IS desirable, or rather of utmost importance that the child LAYER SRS is either inherited or correct in it's own right, because most clients use that to do a "zoom to layer" and if there's only one layer also a "zoom to full extent", which in most cases is the starting state fro the map. The current situation is very confusing fro users, eg . if you load the URL http://geoserver.itc.nl/cgi-bin/mapserv.exe?map=D:/Inetpub/geoserver/mapserv er/pg_config_error.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities into uDig, you'll never see the map as it zooms out to the LatLon floatmin, floatmin, floatMax, floatMax, which is practically the whole universe... > I'd suggest that you file a ticket about this. Can you point me to the place where I can do such a thing...? > I am not sure how easy > that will be to fix, since we'll need a way to tell the capabilities > generation code that the extent returned by Postgis is not meaningful. My suggestion is that the error is in the way you ask the data/extent from PostGIS. PostGIS in it's own right is perfectly capable of providing a correct extent : SELECT extent(the_geom) FROM test, if you need the LatlonBBOX: SELECT transform( extent(the_geom),4326) FROM test. How is MapServer requesting the bbox at the moment...? Yours, __ Barend K?bben International Institute for Geo-information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede (The Netherlands) ph: +31 (0)53 4874253; fax: +31 (0)53 4874335 From dmorissette at MAPGEARS.COM Fri Oct 26 06:21:07 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 26 Oct 2007 09:21:07 -0400 Subject: WFS iso-8859-1 to utf-8 In-Reply-To: <20071026130729.9705FC3AA2@smtp.tal.de> Message-ID: Hint: If someone filed a ticket in Trac describing the issue and suggesting the addition of support in MapServer for converting encoding of attribute values while generating GML then that would significantly increase the chances of this being implemented in a future release, possibly even in 5.2. ;) Daniel Arnd Wippermann wrote: > Hi, > > after the release of OpenLayers 2.5 I have looked at WFS. Loading the > geometry with OpenLayers from MapServer works. But to retrieve the > attributes in the right way (utf-8) is in some way difficult. > > For IIS I have found a solution, that takes input in i.e "ISO-8859-1" and > creates UTF-8. > > I use a wrapper-script, that 1. hides the real OnlineResource and 2. convert > the input to utf-8. > > The script (ported to vbscript) can also used to convert local xml-files to > utf-8. > > Perhaps someone have an idea to do this in python or php for the use with > apache. I have no clue, how to do this. > > <% > Option Explicit > > 'usage : http://this.asp 'without parameter the xmlString will converted > and send to the browser > ' > 'or http://this.asp?WFS-Parameter > > Dim strRequest > > Select Case Request.ServerVariables("REQUEST_METHOD") > Case "GET" strRequest = Request.QueryString > Case "POST" strRequest = Request.Form > End Select > > Call Haurein > > Sub haurein() > > Dim testLocal > if strRequest = "" then > testLocal = true > else > testLocal = false > end if > > Dim xmlString 'for local test > > xmlString = " encoding=""ISO-8859-1""?>" & vbCrLf > xmlString = XMLString & "" & vbCrLf > xmlString = XMLString & " ein ? - ?, Stra?e, > ?berlauf" & vbCrLf > xmlString = XMLString & " ein ? - ?" & vbCrLf > xmlString = XMLString & " ein ? - ? # ?, ?" & > vbCrLf > xmlString = XMLString & " #?#?#?#? - ?#?#?#" & > vbCrLf > xmlString = XMLString & "" & vbCrLf > > Dim mapserv, strURL > if testLocal = false then > mapserv = "http://[mapserv.exe]?map=[mapfile]" > strURL = mapserv & "&" & strRequest > end if > > 'response.write strURL > > 'Create new XML object for conversion and load xmlString or request > and load the WFS > Dim oDOM > Set oDOM = Server.CreateObject("Microsoft.XMLDOM") > if testLocal then > oDOM.loadXML(xmlString) > else > Dim objHTTP > Set objHTTP = Server.CreateObject("MSXML2.ServerXMLHTTP") > > On Error Resume Next > 'get the WFS response > objHTTP.open "GET", URLDecode(strURL), false > if err.number <> 0 then > Response.Write err.description & "
testLocal : " & > testLocal & "
mapserv : " & mapserv & "
strRequest : " & > strRequest > Exit Sub > end if > objHTTP.send "" > > 'declare the original charset > Response.CharSet = "ISO-8859-1" > Response.ContentType = "text/xml" > > oDOM.load(objHTTP.responseXML) > end if > > 'Replace the processing instruction of the XML object > Dim pi > Set pi = oDOM.createProcessingInstruction("xml", "version=""1.0"" > encoding=""utf-8""") > oDOM.replaceChild pi, oDOM.childNodes.item(0) > > 'declare the charset of the output > Response.CharSet = "UTF-8" > Response.ContentType = "text/xml" > oDOM.save(Response) > > Set objHTTP = Nothing > Set oDOM = Nothing > Set pi = Nothing > > End Sub > > ' An inverse to Server.URLEncode > function URLDecode(str) > dim re > set re = new RegExp > > str = Replace(str, "+", " ") > > re.Pattern = "%([0-9a-fA-F]{2})" > re.Global = True > URLDecode = re.Replace(str, GetRef("URLDecodeHex")) > end function > > ' Replacement function for the above > function URLDecodeHex(match, hex_digits, pos, source) > URLDecodeHex = chr("&H" & hex_digits) > end function > > %> > > Mit freundlichen Gr?ssen > > Arnd Wippermann > http://gis.ibbeck.de/ginfo/ -- Daniel Morissette http://www.mapgears.com/ From Josh.Hevenor at DPRA.COM Fri Oct 26 06:24:18 2007 From: Josh.Hevenor at DPRA.COM (Josh Hevenor) Date: Fri, 26 Oct 2007 08:24:18 -0500 Subject: SDE connection problem with MapServer 5.0 Message-ID: A quick check of the database owner might help, 9.2 allows SDO and SDE which I think is new to 9.2. Here's an example from one of my mapfiles that work for me...note the dbo.DEFAULT LAYER NAME 'Railway' CONNECTIONTYPE PLUGIN PLUGIN "c:/ms4w/apache/specialplugins/msplugin_sde_92.dll" CONNECTION "matata,port:5252,GIS,u,p" PROCESSING 'CLOSE_CONNECTION=DEFER' # DATA "GIS.DBO.RAILWAYS_CURRENT_VIEW,SHAPE,dbo.DEFAULT" DATA "GIS.DBO.Railways_50,SHAPE,dbo.DEFAULT" Josh Hevenor Application Developer ____________________________________________ 5230 South Service Road Burlington, Ontario L7L 5K2 Canada Phone: 905-333-4544 ext. 19 Fax: 905-333-0455 Cell: 905-320-7525 Email: josh.hevenor at dpra.com Internet: http://www.dpra.com Attention: Privileged/Confidential Information may be contained in this message. Disclosure to any person other than the named recipient is unauthorized. If you are not the intended recipient, please delete all copies of this information and kindly notify the sender by reply email. Opinions, conclusions and other information in this message that do not relate to the official business of DPRA shall be understood as neither given nor endorsed by it. DPRA and any of its subsidiaries reserve the right to monitor all e-mail communications through its networks. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 3247 bytes Desc: image001.jpg URL: From dmorissette at MAPGEARS.COM Fri Oct 26 06:38:30 2007 From: dmorissette at MAPGEARS.COM (Daniel Morissette) Date: Fri, 26 Oct 2007 09:38:30 -0400 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: Message-ID: Barend K?bben wrote: > >> I'd suggest that you file a ticket about this. > Can you point me to the place where I can do such a thing...? > http://trac.osgeo.org/mapserver/ >> I am not sure how easy >> that will be to fix, since we'll need a way to tell the capabilities >> generation code that the extent returned by Postgis is not meaningful. > My suggestion is that the error is in the way you ask the data/extent from > PostGIS. PostGIS in it's own right is perfectly capable of providing a > correct extent : SELECT extent(the_geom) FROM test, if you need the > LatlonBBOX: SELECT transform( extent(the_geom),4326) FROM test. How is > MapServer requesting the bbox at the moment...? > There is a GetExtents() method on all data providers in MapServer and the postgis driver seems to have a very poor implementation that just returns infinite extents to avoid having to do a full table scan which could be very expensive in some cases. FYI this ticket discusses the issue and why "select extent() ..." was not used before: http://trac.osgeo.org/mapserver/ticket/1851 Daniel -- Daniel Morissette http://www.mapgears.com/ From kobben at ITC.NL Fri Oct 26 07:28:48 2007 From: kobben at ITC.NL (Barend K=?ISO-8859-1?B?9g==?=bben) Date: Fri, 26 Oct 2007 16:28:48 +0200 Subject: Bbox in GetCapabilies for PostGIS layer In-Reply-To: <4721EDD6.80006@mapgears.com> Message-ID: Thanks for adding the comment "I think we should fix this and use select extent()... in 5.2. Returning an infinite BoundingBox in GetCapabilities is just wrong. If anyone finds their GetCapabilities too slow they can always use ows_extent metadata to force the extent value and avoid the full table scan. Any objections from the mappostgis.c maintainers?" to the ticket. I am totally agreeing with that. As a note, any decent PostGIS DB admin would have proper indices set up on their geometries and with that the extent scan is inexpensive. Eg. my cadastral DB of Enschede has approx 60.000 quite complex (multi)polygons and returns the aggregate extent in 160ms, even when having to transform to 4326. As an addition you could mention that the fall-back of going to an infinite BBOX can be very quickly changed to a more sensible falling back on the world extent, which for Latlon is simply -180 -90 180 90, and in any other SRS should be easy to calculate also (although not making much sense in some projections) Barend On 26-10-2007 15:38, "Daniel Morissette" wrote: > Barend K?bben wrote: >> >>> I'd suggest that you file a ticket about this. >> Can you point me to the place where I can do such a thing...? >> > > http://trac.osgeo.org/mapserver/ > >>> I am not sure how easy >>> that will be to fix, since we'll need a way to tell the capabilities >>> generation code that the extent returned by Postgis is not meaningful. >> My suggestion is that the error is in the way you ask the data/extent from >> PostGIS. PostGIS in it's own right is perfectly capable of providing a >> correct extent : SELECT extent(the_geom) FROM test, if you need the >> LatlonBBOX: SELECT transform( extent(the_geom),4326) FROM test. How is >> MapServer requesting the bbox at the moment...? >> > > There is a GetExtents() method on all data providers in MapServer and > the postgis driver seems to have a very poor implementation that just > returns infinite extents to avoid having to do a full table scan which > could be very expensive in some cases. > > FYI this ticket discusses the issue and why "select extent() ..." was > not used before: > http://trac.osgeo.org/mapserver/ticket/1851 > > Daniel From Tom.Kralidis at EC.GC.CA Fri Oct 26 08:15:07 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 26 Oct 2007 11:15:07 -0400 Subject: class expressions for everything else Message-ID: Hi, We have a LAYER with a number of CLASS definitions, each with a EXPRESSION directive defined like: CLASS NAME "foo" EXPRESSION ([Band] = 1) COLOR 0 255 0 OUTLINECOLOR 0 0 0 END ...so that the data is displayed as per the CLASS definitions. The problem is that any data which does _not_ satisfy any of the CLASS definitions is _not_ displayed. Is there / how do we define a CLASS as the "catch all" definition (i.e. colour everything else, similar to an OGC SLD "ElseFilter"). Any advice and / or suggestions are valued. ..Tom From gregor at HOSTGIS.COM Fri Oct 26 08:19:09 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Fri, 26 Oct 2007 09:19:09 -0600 Subject: class expressions for everything else In-Reply-To: <2DC5CCA14756424BBBEE8B4B2E4A682F01059FB7@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Kralidis,Tom [Burlington] wrote: > ...so that the data is displayed as per the CLASS definitions. The > problem is that any data which does _not_ satisfy any of the CLASS > definitions is _not_ displayed. Exactly right. > Is there / how do we define a CLASS as the "catch all" definition (i.e. > colour everything else, similar to an OGC SLD "ElseFilter"). Yes, define a class that doesn't have an expression. You'd probably want to make that the last class in the list. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From David.Fawcett at STATE.MN.US Fri Oct 26 08:21:43 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Fri, 26 Oct 2007 10:21:43 -0500 Subject: class expressions for everything else In-Reply-To: A<2DC5CCA14756424BBBEE8B4B2E4A682F01059FB7@ecburexch1.ontario.int.ec.gc.ca> Message-ID: Tom, I am pretty sure that you can just put a class with no expression as the last class in your layer. Have you tried: CLASS NAME "catchall" COLOR 255 255 255 OUTLINECOLOR 0 0 0 END David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Kralidis,Tom [Burlington] Sent: Friday, October 26, 2007 10:15 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] class expressions for everything else Hi, We have a LAYER with a number of CLASS definitions, each with a EXPRESSION directive defined like: CLASS NAME "foo" EXPRESSION ([Band] = 1) COLOR 0 255 0 OUTLINECOLOR 0 0 0 END ...so that the data is displayed as per the CLASS definitions. The problem is that any data which does _not_ satisfy any of the CLASS definitions is _not_ displayed. Is there / how do we define a CLASS as the "catch all" definition (i.e. colour everything else, similar to an OGC SLD "ElseFilter"). Any advice and / or suggestions are valued. ..Tom From Tom.Kralidis at EC.GC.CA Fri Oct 26 08:33:11 2007 From: Tom.Kralidis at EC.GC.CA (Kralidis,Tom [Burlington]) Date: Fri, 26 Oct 2007 11:33:11 -0400 Subject: class expressions for everything else In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB7EF@s-sp22.pca.state.mn.us> Message-ID: This works. Thanks a lot to David and Gregor for their bang on and quick responses. ..Tom > -----Original Message----- > From: Fawcett, David [mailto:David.Fawcett at state.mn.us] > Sent: 26 October, 2007 11:22 AM > To: Kralidis,Tom [Burlington]; MAPSERVER-USERS at lists.umn.edu > Subject: RE: [UMN_MAPSERVER-USERS] class expressions for > everything else > > Tom, > > I am pretty sure that you can just put a class with no > expression as the last class in your layer. > > Have you tried: > > CLASS > NAME "catchall" > COLOR 255 255 255 > OUTLINECOLOR 0 0 0 > END > > David. > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of > Kralidis,Tom [Burlington] > Sent: Friday, October 26, 2007 10:15 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] class expressions for everything else > > > Hi, > > We have a LAYER with a number of CLASS definitions, each with > a EXPRESSION directive defined like: > > CLASS > NAME "foo" > EXPRESSION ([Band] = 1) > COLOR 0 255 0 > OUTLINECOLOR 0 0 0 > END > > ...so that the data is displayed as per the CLASS > definitions. The problem is that any data which does _not_ > satisfy any of the CLASS definitions is _not_ displayed. > > Is there / how do we define a CLASS as the "catch all" > definition (i.e. > colour everything else, similar to an OGC SLD "ElseFilter"). > > Any advice and / or suggestions are valued. > > ..Tom > From metlud at YAHOO.IT Fri Oct 26 09:26:56 2007 From: metlud at YAHOO.IT (Ludovico Bianchini) Date: Fri, 26 Oct 2007 18:26:56 +0200 Subject: mapserver and postgres hosting or housing (italy) Message-ID: Hi, has anybody get informations about hosting/housing services for phpmapscript+postgis in Italy (or Europe)? Thanks for any link!! -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric.c2c at GMAIL.COM Fri Oct 26 11:30:50 2007 From: eric.c2c at GMAIL.COM (Eric Lemoine) Date: Fri, 26 Oct 2007 20:30:50 +0200 Subject: wfs server and encoding In-Reply-To: <20071026130345.04235C5551@smtp.tal.de> Message-ID: On 10/26/07, Arnd Wippermann wrote: > Hello Eric, > > In the online example there are attributes Gr?nland, S?damerika and > Gro?britannien. Coming from an SQLite db, they will convert to utf-8, but > MapServer delivers iso-8859-1 and so they are displayed wrong. As mentioned by Daniel MapServer does not do any conversion on the attribute values. So I your database has UTF-8, MapServer will deliver UTF-8, whathever the value of wfs_encoding. That's why OpenLayers WFS can read your data on IE. -- Eric From pal.kristensen at STATKART.NO Sat Oct 27 13:41:48 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Sat, 27 Oct 2007 13:41:48 -0700 Subject: SDE connection problem with MapServer 5.0 In-Reply-To: <49B9846C39F25A4FA901064970861610C79541@mhk-ex1.ad.dpra.com> Message-ID: Hi! Thanks for answering, but I think it looks like the problem is that the plugin dll is not loaded at all, or loaded incorrectly. Could you please explain the necessary steps on how to set up the SDE connection correct, including the installations of the SDE SDK? Do I have to set any environmental variables? Do I have to copy or move any dll's? I will check for the dbo vs. sde database issue. Any suggestions is appreciated. Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/SDE-connection-problem-with-MapServer-5.0-tf4689019.html#a13447222 Sent from the Mapserver - User mailing list archive at Nabble.com. From jmckenna at DMSOLUTIONS.CA Sun Oct 28 07:19:33 2007 From: jmckenna at DMSOLUTIONS.CA (Jeff McKenna) Date: Sun, 28 Oct 2007 10:19:33 -0400 Subject: Mapserver demo - troubles In-Reply-To: <47208984.5157.008F.0@dnr.state.mn.us> Message-ID: thanks Steve. I've updated the ms4w download of it with your changes. -- jeff Steve Lime wrote: > I ported the demo to 5.0 (required dynamic configuration changes) and posted > the link at http://mapserver.gis.umn.edu/download/current. Note we plan to > role a more comprehensive demo "suite" in the coming months. > > Steve From beckjoh at KNOLOGY.NET Sun Oct 28 18:24:56 2007 From: beckjoh at KNOLOGY.NET (John M. Beck) Date: Sun, 28 Oct 2007 20:24:56 -0500 Subject: MAPSERVER CAPABILITIES Message-ID: I am a new MAPSERVER USER with some PHP experience. Can I import simple lat, long data from a CSV file into MAPSERVER and create a point shapefile? If so, can I then clip this shapefile using another shapefile and have the resulting shapefile returned in the form of a MAP? I am hoping this can be done through the php Mapscript tool. Thanks in advance for your response. From Jacob.Delfos at MAUNSELL.COM Sun Oct 28 21:39:06 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Mon, 29 Oct 2007 13:39:06 +0900 Subject: MapServer and PostGIS GEOMETRY type Message-ID: Hi List, For a particular client I have to translate a lot of MapInfo files into PostGIS. Some files may contain some different geometries, which ogr2ogr doesn't like. So I force the geometry type to "GEOMETRY" (-nlt GEOMETRY). It translates fine, and seems to draw fine in MapServer. But how does MapServer really deal with it? If I have a polygon layer, and point it to a PostGIS table that contains objects of the type "GEOMETRY", does it simply ignore anything that is not a polygon? What about the results of attribute queries? Would those be filtered on the geometry type of the layer? I can avoid using "GEOMETRY type" by translating the files in FME, but I'd prefer to recommend an Open Source solution. Regards, Jacob JACOB DELFOS GIS ANALYST Maunsell Australia Pty Ltd 629 Newcastle Street, Leederville, WA 6007 PO Box 81, Leederville, WA 6902 Western Australia ABN 20 093 846 925 Tel + 61 8 9281 6185 Fax + 61 8 9281 6297 jacob.delfos at maunsell.com This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. -------------- next part -------------- An HTML attachment was scrubbed... URL: From reinhard.ortner at EDU.FH-KAERNTEN.AC.AT Mon Oct 29 00:27:58 2007 From: reinhard.ortner at EDU.FH-KAERNTEN.AC.AT (R. Ortner) Date: Mon, 29 Oct 2007 00:27:58 -0700 Subject: Mapscript version Message-ID: Hi, I?m using MapServer version 4.10.2 and PHP Mapscript Version ($Revision: 6000 $ $Date: 2007-04-04 11:56:02 -0500 (Wed, 04 Apr 2007) $); PHP Version 5.2.3 Slackware Linux 11.0 I work on a openlayers and ka-map application but with this version it?s not working properly. (e.g. colors of orthophotos are not displayed correctly) I tried the application on a local ms4w installation and there it worked fine. So i can say the problem is that the mapscript not work together with the mapserver or php version. Can I download an other (even a nolder) Mapscript version without installing a new Mapserver version. Where can i get an additional php_mapscript.so and the php_gd.h file? -- View this message in context: http://www.nabble.com/Mapscript-version-tf4710043.html#a13462607 Sent from the Mapserver - User mailing list archive at Nabble.com. From Kai-Behncke at GMX.DE Mon Oct 29 01:48:26 2007 From: Kai-Behncke at GMX.DE (Kai Behncke) Date: Mon, 29 Oct 2007 09:48:26 +0100 Subject: MapServer 5.0 and enable-DEBUG Message-ID: Dear list, on Debian Etch I try to configure MapServer 5.0 with Debug, I use: ./configure ..... --enable-Debug make But if I try I ./mapserv -v the DEBUG-mode is not activated ??? Might this be a bug or am I wrong in the way I try to activate the debug-mode??? Thank you very much, Kai -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail From porath at WEB.DE Mon Oct 29 04:11:57 2007 From: porath at WEB.DE (H. Porath) Date: Mon, 29 Oct 2007 12:11:57 +0100 Subject: MapServer 5.0 and enable-DEBUG Message-ID: Kai, afaik, in Mapserver 5 the "enable-debug" option is only for debug messages while compiling mapserver. You do not need to use "enabel-debug" to receive debug messages any more. See also: http://mapserver.gis.umn.edu/development/rfc/ms-rfc-28 Regards, Holger -----Urspr?ngliche Nachricht----- Von: Kai Behncke Gesendet: 29.10.07 10:12:47 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] MapServer 5.0 and enable-DEBUG Dear list, on Debian Etch I try to configure MapServer 5.0 with Debug, I use: ./configure ..... --enable-Debug make But if I try I ./mapserv -v the DEBUG-mode is not activated ??? Might this be a bug or am I wrong in the way I try to activate the debug-mode??? Thank you very much, Kai -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 From j.l.h.hartmann at UVA.NL Mon Oct 29 04:12:53 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Mon, 29 Oct 2007 12:12:53 +0100 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: <4997F456680DAD4DA1E042C40C463611C3449C@auper1ex002.au.aecomnet.com> Message-ID: Hi Jacob, The Mapfile Reference Manual, chapter Layer says (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) ------------------------------------------------------------ TYPE [point|line|polygon|circle|annotation|raster|query|chart] Specifies how the data should be drawn. Need not be the same as the shapefile type. For example, a polygon shapefile may be drawn as a point layer, but a point shapefile may not be drawn as a polygon layer.Common sense rules. ------------------------------------------------------------ You probably just have to try it out on your data. Jan Delfos, Jacob wrote: > Hi List, > > For a particular client I have to translate a lot of MapInfo files into > PostGIS. Some files may contain some different geometries, which ogr2ogr > doesn't like. So I force the geometry type to "GEOMETRY" (-nlt > GEOMETRY). It translates fine, and seems to draw fine in MapServer. But > how does MapServer really deal with it? > > If I have a polygon layer, and point it to a PostGIS table that contains > objects of the type "GEOMETRY", does it simply ignore anything that is > not a polygon? What about the results of attribute queries? Would those > be filtered on the geometry type of the layer? > > I can avoid using "GEOMETRY type" by translating the files in FME, but > I'd prefer to recommend an Open Source solution. > > Regards, > > Jacob > > > *JACOB DELFOS > GIS ANALYST > *Maunsell Australia Pty Ltd > 629 Newcastle Street, Leederville, WA 6007 > PO Box 81, Leederville, WA 6902 > Western Australia > ABN 20 093 846 925 > > Tel + 61 8 9281 6185 > Fax + 61 8 9281 6297 > _jacob.delfos at maunsell.com_ > > This email and any attachments are intended solely for the named > recipient and are confidential. The copying or distribution of them or > any information they contain by anyone other than the named recipient is > prohibited. If you have received this document in error, please notify > the sender and delete all copies from your computer system and destroy > all hard copies. It is the recipient's responsibility to check this > email and any attachments to this email for viruses before use. > From pal.kristensen at STATKART.NO Mon Oct 29 05:23:46 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Mon, 29 Oct 2007 05:23:46 -0700 Subject: Formatting labels Message-ID: Hi! Is there any way of formatting a label so that e.g. the attribute value 2.098576 becomes 2.1 in the label? Regards, P?l Kristensen -- View this message in context: http://www.nabble.com/Formatting-labels-tf4711316.html#a13466354 Sent from the Mapserver - User mailing list archive at Nabble.com. From pal.kristensen at STATKART.NO Mon Oct 29 05:32:17 2007 From: pal.kristensen at STATKART.NO (=?UTF-8?Q?P=C3=A5l_Kristensen?=) Date: Mon, 29 Oct 2007 05:32:17 -0700 Subject: WMS and embedded legend Message-ID: Hi! Is there a way of turning on embedded legend through WMS? If I set STATUS embed in the legend object all returned images contains the legend, but I want to let the user decide whether to embed the legend or not. Regards, PK -- View this message in context: http://www.nabble.com/WMS-and-embedded-legend-tf4711365.html#a13466573 Sent from the Mapserver - User mailing list archive at Nabble.com. From mirko.zucchetto at GMAIL.COM Mon Oct 29 06:36:41 2007 From: mirko.zucchetto at GMAIL.COM (Mirko Zucchetto) Date: Mon, 29 Oct 2007 14:36:41 +0100 Subject: Mapserver installing error: libgdal.so.1 Message-ID: Hi, I'm going to install Mapserver using this document. I repeat step by step the instructions and comments, but at the end I have this error message when I test it: mirko:/usr/local/apache2/cgi-bin# /usr/local/apache2/cgi-bin/mapserv /usr/local/apache2/cgi-bin/mapserv: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory mirko:/usr/local/apache2/cgi-bin# i try to run ldconfig after install gdal and mapserver... My system on Debian Etch: -httpd-2.2.6 -postgresql-8.2.5 -php-5.2.4 -proj-4.5.0 -geos-3.0.0rc4 -gdal-1.4.0 -mapserver-5.0.0 Can anyone help me? Thanks a lot. Mirko. From Steve.Lime at DNR.STATE.MN.US Mon Oct 29 11:51:09 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Mon, 29 Oct 2007 13:51:09 -0500 Subject: Formatting labels In-Reply-To: <13466354.post@talk.nabble.com> Message-ID: Sorry, no. With PostGIS you could do it on the database side but not with shapefiles etc... It's a know deficiency with several possible solutions being knocked around. Steve >>> On 10/29/2007 at 7:23 AM, in message <13466354.post at talk.nabble.com>, P?l Kristensen wrote: > Hi! > > Is there any way of formatting a label so that e.g. the attribute value > 2.098576 becomes 2.1 in the label? > > Regards, > P?l Kristensen > -- > View this message in context: > http://www.nabble.com/Formatting-labels-tf4711316.html#a13466354 > Sent from the Mapserver - User mailing list archive at Nabble.com. From efujioka at DUKE.EDU Mon Oct 29 15:34:58 2007 From: efujioka at DUKE.EDU (Ei Fujioka) Date: Mon, 29 Oct 2007 18:34:58 -0400 Subject: Class or filter expression on date field in shapefile In-Reply-To: Message-ID: Hello experts, I'm having difficulty in trying to filter features in a shapefile by dates. I looked into this mailing list and have found a post saying "MapServer doesn't support date types in shapefiles." This post is a very old one, dated in July 2000. So I'm wondering if the latest Mapserver supports this. And if so, what is the date format for class/filter expression? I use Mapserver 4.2. Giving up using the date type field, I converted the date field to a string or numeric field and was only successful with a numeric field (e.g. 20030101 for 2003-03-01). Can't I use a string value like '2003-03-01' for date comparison? I tried the following expression but failed. EXPRESSION ([DATE_S] > '2003-01-01') Is there any smarter way to filter on dates? Here is the snippet of the working mapfile with a numeric date field "DATE_I". LAYER NAME "MY SHAPEFILE" STATUS DEFAULT DATA "my_shafile" TYPE LINE TRANSPARENCY 0 CLASS EXPRESSION ([DATE_I] > 20030101 AND [DATE_I] < 20030201) SYMBOL "solid_line" COLOR 255 0 0 OUTLINECOLOR 255 0 0 SIZE 3 END END Thanks, Ei -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From Jacob.Delfos at MAUNSELL.COM Mon Oct 29 15:53:18 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 30 Oct 2007 07:53:18 +0900 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: <4725C035.1080505@uva.nl> Message-ID: Hi Jan, Thanks for your reply. But I still need to find out how MapServer will deal with the records that contain an unexpected geometry type. I could have a polygon layer pointing to a table which I expect to contain polygons. But if the geometry type of the table is GEOMETRY, then it could contain a line object. What will MapServer do? If I do an attribute query on such a table, will it return matching records even if the geometry object is a line, though the layer is a polygon layer? Regards, Jacob > -----Original Message----- > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > Sent: 29 October 2007 20:13 > To: Delfos, Jacob > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > Hi Jacob, > > The Mapfile Reference Manual, chapter Layer says > (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) > > ------------------------------------------------------------ > > TYPE [point|line|polygon|circle|annotation|raster|query|chart] > > Specifies how the data should be drawn. Need not be the > same as the > shapefile type. For example, a polygon shapefile may be drawn > as a point > layer, but a point shapefile may not be drawn as a polygon > layer.Common > sense rules. > > ------------------------------------------------------------ > > You probably just have to try it out on your data. > > Jan > > Delfos, Jacob wrote: > > Hi List, > > > > For a particular client I have to translate a lot of > MapInfo files into > > PostGIS. Some files may contain some different geometries, > which ogr2ogr > > doesn't like. So I force the geometry type to "GEOMETRY" (-nlt > > GEOMETRY). It translates fine, and seems to draw fine in > MapServer. But > > how does MapServer really deal with it? > > > > If I have a polygon layer, and point it to a PostGIS table > that contains > > objects of the type "GEOMETRY", does it simply ignore > anything that is > > not a polygon? What about the results of attribute queries? > Would those > > be filtered on the geometry type of the layer? > > > > I can avoid using "GEOMETRY type" by translating the files > in FME, but > > I'd prefer to recommend an Open Source solution. > > > > Regards, > > > > Jacob > > > > > > *JACOB DELFOS > > GIS ANALYST > > *Maunsell Australia Pty Ltd > > 629 Newcastle Street, Leederville, WA 6007 > > PO Box 81, Leederville, WA 6902 > > Western Australia > > ABN 20 093 846 925 > > > > Tel + 61 8 9281 6185 > > Fax + 61 8 9281 6297 > > _jacob.delfos at maunsell.com_ > > > > This email and any attachments are intended solely for the named > > recipient and are confidential. The copying or distribution > of them or > > any information they contain by anyone other than the named > recipient is > > prohibited. If you have received this document in error, > please notify > > the sender and delete all copies from your computer system > and destroy > > all hard copies. It is the recipient's responsibility to check this > > email and any attachments to this email for viruses before use. > > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From vishu_73ns at YAHOO.COM Mon Oct 29 21:05:55 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Mon, 29 Oct 2007 23:05:55 -0500 Subject: Line Of Sight Message-ID: Hi, Is it possible to display a line of sight map from a given point using elevation data at all points. From vishu_73ns at YAHOO.COM Mon Oct 29 21:34:27 2007 From: vishu_73ns at YAHOO.COM (Vishal Nagpal) Date: Mon, 29 Oct 2007 23:34:27 -0500 Subject: Displaying elevation data Message-ID: Thanks it did help me, with slight variation in the height range and color range I could get a good model of my terrain, From Jukka.Rahkonen at MMMTIKE.FI Mon Oct 29 22:51:46 2007 From: Jukka.Rahkonen at MMMTIKE.FI (Rahkonen Jukka) Date: Tue, 30 Oct 2007 07:51:46 +0200 Subject: MapServer and PostGIS GEOMETRY type Message-ID: Hi Jacob, Would it be impossible for you to create a couple of such records and make a controlled trial to see what really happens? -Jukka Rahkonen- -----Original Message----- From: UMN MapServer Users List on behalf of Delfos, Jacob Sent: Tue 30.10.2007 0:53 To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type Hi Jan, Thanks for your reply. But I still need to find out how MapServer will deal with the records that contain an unexpected geometry type. I could have a polygon layer pointing to a table which I expect to contain polygons. But if the geometry type of the table is GEOMETRY, then it could contain a line object. What will MapServer do? If I do an attribute query on such a table, will it return matching records even if the geometry object is a line, though the layer is a polygon layer? Regards, Jacob > -----Original Message----- > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > Sent: 29 October 2007 20:13 > To: Delfos, Jacob > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > Hi Jacob, > > The Mapfile Reference Manual, chapter Layer says > (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) > > ------------------------------------------------------------ > > TYPE [point|line|polygon|circle|annotation|raster|query|chart] > > Specifies how the data should be drawn. Need not be the > same as the > shapefile type. For example, a polygon shapefile may be drawn > as a point > layer, but a point shapefile may not be drawn as a polygon > layer.Common > sense rules. > > ------------------------------------------------------------ > > You probably just have to try it out on your data. > > Jan > > Delfos, Jacob wrote: > > Hi List, > > > > For a particular client I have to translate a lot of > MapInfo files into > > PostGIS. Some files may contain some different geometries, > which ogr2ogr > > doesn't like. So I force the geometry type to "GEOMETRY" (-nlt > > GEOMETRY). It translates fine, and seems to draw fine in > MapServer. But > > how does MapServer really deal with it? > > > > If I have a polygon layer, and point it to a PostGIS table > that contains > > objects of the type "GEOMETRY", does it simply ignore > anything that is > > not a polygon? What about the results of attribute queries? > Would those > > be filtered on the geometry type of the layer? > > > > I can avoid using "GEOMETRY type" by translating the files > in FME, but > > I'd prefer to recommend an Open Source solution. > > > > Regards, > > > > Jacob > > > > > > *JACOB DELFOS > > GIS ANALYST > > *Maunsell Australia Pty Ltd > > 629 Newcastle Street, Leederville, WA 6007 > > PO Box 81, Leederville, WA 6902 > > Western Australia > > ABN 20 093 846 925 > > > > Tel + 61 8 9281 6185 > > Fax + 61 8 9281 6297 > > _jacob.delfos at maunsell.com_ > > > > This email and any attachments are intended solely for the named > > recipient and are confidential. The copying or distribution > of them or > > any information they contain by anyone other than the named > recipient is > > prohibited. If you have received this document in error, > please notify > > the sender and delete all copies from your computer system > and destroy > > all hard copies. It is the recipient's responsibility to check this > > email and any attachments to this email for viruses before use. > > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Jacob.Delfos at MAUNSELL.COM Tue Oct 30 00:37:03 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Tue, 30 Oct 2007 16:37:03 +0900 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: Message-ID: Hi Jukka, When I have the data a bit cleaned up, I'll have a look if I can put something together. Currently I'm still in the process of "sifting through" :) I'm dealing with a lot of MapInfo files with mixed geometries, and I want to see if I can get away with being lazy (meaning I don't split up tables by geometry). Regards, Jacob > -----Original Message----- > From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] > Sent: 30 October 2007 14:52 > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: RE: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > Hi Jacob, > > Would it be impossible for you to create a couple of such > records and make a controlled trial to see what really happens? > > -Jukka Rahkonen- > > > -----Original Message----- > From: UMN MapServer Users List on behalf of Delfos, Jacob > Sent: Tue 30.10.2007 0:53 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > Hi Jan, > > Thanks for your reply. But I still need to find out how MapServer will > deal with the records that contain an unexpected geometry > type. I could > have a polygon layer pointing to a table which I expect to contain > polygons. But if the geometry type of the table is GEOMETRY, then it > could contain a line object. What will MapServer do? > > If I do an attribute query on such a table, will it return matching > records even if the geometry object is a line, though the layer is a > polygon layer? > > Regards, > > Jacob > > > > -----Original Message----- > > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > > Sent: 29 October 2007 20:13 > > To: Delfos, Jacob > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS > GEOMETRY type > > > > Hi Jacob, > > > > The Mapfile Reference Manual, chapter Layer says > > (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) > > > > ------------------------------------------------------------ > > > > TYPE [point|line|polygon|circle|annotation|raster|query|chart] > > > > Specifies how the data should be drawn. Need not be the > > same as the > > shapefile type. For example, a polygon shapefile may be drawn > > as a point > > layer, but a point shapefile may not be drawn as a polygon > > layer.Common > > sense rules. > > > > ------------------------------------------------------------ > > > > You probably just have to try it out on your data. > > > > Jan > > > > Delfos, Jacob wrote: > > > Hi List, > > > > > > For a particular client I have to translate a lot of > > MapInfo files into > > > PostGIS. Some files may contain some different geometries, > > which ogr2ogr > > > doesn't like. So I force the geometry type to "GEOMETRY" (-nlt > > > GEOMETRY). It translates fine, and seems to draw fine in > > MapServer. But > > > how does MapServer really deal with it? > > > > > > If I have a polygon layer, and point it to a PostGIS table > > that contains > > > objects of the type "GEOMETRY", does it simply ignore > > anything that is > > > not a polygon? What about the results of attribute queries? > > Would those > > > be filtered on the geometry type of the layer? > > > > > > I can avoid using "GEOMETRY type" by translating the files > > in FME, but > > > I'd prefer to recommend an Open Source solution. > > > > > > Regards, > > > > > > Jacob > > > > > > > > > *JACOB DELFOS > > > GIS ANALYST > > > *Maunsell Australia Pty Ltd > > > 629 Newcastle Street, Leederville, WA 6007 > > > PO Box 81, Leederville, WA 6902 > > > Western Australia > > > ABN 20 093 846 925 > > > > > > Tel + 61 8 9281 6185 > > > Fax + 61 8 9281 6297 > > > _jacob.delfos at maunsell.com_ > > > > > > This email and any attachments are intended solely for the named > > > recipient and are confidential. The copying or distribution > > of them or > > > any information they contain by anyone other than the named > > recipient is > > > prohibited. If you have received this document in error, > > please notify > > > the sender and delete all copies from your computer system > > and destroy > > > all hard copies. It is the recipient's responsibility to > check this > > > email and any attachments to this email for viruses before use. > > > > > > > This email and any attachments are intended solely for the > named recipient and are confidential. The copying or > distribution of them or any information they contain by > anyone other than the named recipient is prohibited. If you > have received this document in error, please notify the > sender and delete all copies from your computer system and > destroy all hard copies. It is the recipient's responsibility > to check this email and any attachments to this email for > viruses before use. > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From porath at WEB.DE Tue Oct 30 01:09:57 2007 From: porath at WEB.DE (H. Porath) Date: Tue, 30 Oct 2007 09:09:57 +0100 Subject: Mapserver installing error: libgdal.so.1 Message-ID: Mirko, did you try setting LD_LIBRARY_PATH to gdal lib dir before calling mapserv? If this works, ldconfig should work, too. Does "ldconfig -p | grep libgdal" give you a result? If not, check your /etc/ld.so.conf. Holger -----Urspr?ngliche Nachricht----- Von: Mirko Zucchetto Gesendet: 29.10.07 15:16:39 An: MAPSERVER-USERS at LISTS.UMN.EDU Betreff: [UMN_MAPSERVER-USERS] Mapserver installing error: libgdal.so.1 Hi, I'm going to install Mapserver using this document. I repeat step by step the instructions and comments, but at the end I have this error message when I test it: mirko:/usr/local/apache2/cgi-bin# /usr/local/apache2/cgi-bin/mapserv /usr/local/apache2/cgi-bin/mapserv: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory mirko:/usr/local/apache2/cgi-bin# i try to run ldconfig after install gdal and mapserver... My system on Debian Etch: -httpd-2.2.6 -postgresql-8.2.5 -php-5.2.4 -proj-4.5.0 -geos-3.0.0rc4 -gdal-1.4.0 -mapserver-5.0.0 Can anyone help me? Thanks a lot. Mirko. _____________________________________________________________________ Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! http://smartsurfer.web.de/?mc=100071&distributionid=000000000066 From j.l.h.hartmann at UVA.NL Tue Oct 30 04:36:34 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Tue, 30 Oct 2007 12:36:34 +0100 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC8340@auper1ex002.au.aecomnet.com> Message-ID: I really would advise you to split them up. Being lazy always creates more work in the end, I can tell you. I have lots of personal experience in that field :-) Jan Delfos, Jacob wrote: > Hi Jukka, > > When I have the data a bit cleaned up, I'll have a look if I can put > something together. Currently I'm still in the process of "sifting > through" :) > > I'm dealing with a lot of MapInfo files with mixed geometries, and I > want to see if I can get away with being lazy (meaning I don't split up > tables by geometry). > > Regards, > > Jacob > > > >> -----Original Message----- >> From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] >> Sent: 30 October 2007 14:52 >> To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: RE: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type >> >> Hi Jacob, >> >> Would it be impossible for you to create a couple of such >> records and make a controlled trial to see what really happens? >> >> -Jukka Rahkonen- >> >> >> -----Original Message----- >> From: UMN MapServer Users List on behalf of Delfos, Jacob >> Sent: Tue 30.10.2007 0:53 >> To: MAPSERVER-USERS at LISTS.UMN.EDU >> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type >> >> Hi Jan, >> >> Thanks for your reply. But I still need to find out how MapServer will >> deal with the records that contain an unexpected geometry >> type. I could >> have a polygon layer pointing to a table which I expect to contain >> polygons. But if the geometry type of the table is GEOMETRY, then it >> could contain a line object. What will MapServer do? >> >> If I do an attribute query on such a table, will it return matching >> records even if the geometry object is a line, though the layer is a >> polygon layer? >> >> Regards, >> >> Jacob >> >> >>> -----Original Message----- >>> From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] >>> Sent: 29 October 2007 20:13 >>> To: Delfos, Jacob >>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS >> GEOMETRY type >>> Hi Jacob, >>> >>> The Mapfile Reference Manual, chapter Layer says >>> (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) >>> >>> ------------------------------------------------------------ >>> >>> TYPE [point|line|polygon|circle|annotation|raster|query|chart] >>> >>> Specifies how the data should be drawn. Need not be the >>> same as the >>> shapefile type. For example, a polygon shapefile may be drawn >>> as a point >>> layer, but a point shapefile may not be drawn as a polygon >>> layer.Common >>> sense rules. >>> >>> ------------------------------------------------------------ >>> >>> You probably just have to try it out on your data. >>> >>> Jan >>> >>> Delfos, Jacob wrote: >>>> Hi List, >>>> >>>> For a particular client I have to translate a lot of >>> MapInfo files into >>>> PostGIS. Some files may contain some different geometries, >>> which ogr2ogr >>>> doesn't like. So I force the geometry type to "GEOMETRY" (-nlt >>>> GEOMETRY). It translates fine, and seems to draw fine in >>> MapServer. But >>>> how does MapServer really deal with it? >>>> >>>> If I have a polygon layer, and point it to a PostGIS table >>> that contains >>>> objects of the type "GEOMETRY", does it simply ignore >>> anything that is >>>> not a polygon? What about the results of attribute queries? >>> Would those >>>> be filtered on the geometry type of the layer? >>>> >>>> I can avoid using "GEOMETRY type" by translating the files >>> in FME, but >>>> I'd prefer to recommend an Open Source solution. >>>> >>>> Regards, >>>> >>>> Jacob >>>> >>>> >>>> *JACOB DELFOS >>>> GIS ANALYST >>>> *Maunsell Australia Pty Ltd >>>> 629 Newcastle Street, Leederville, WA 6007 >>>> PO Box 81, Leederville, WA 6902 >>>> Western Australia >>>> ABN 20 093 846 925 >>>> >>>> Tel + 61 8 9281 6185 >>>> Fax + 61 8 9281 6297 >>>> _jacob.delfos at maunsell.com_ >>>> >>>> This email and any attachments are intended solely for the named >>>> recipient and are confidential. The copying or distribution >>> of them or >>>> any information they contain by anyone other than the named >>> recipient is >>>> prohibited. If you have received this document in error, >>> please notify >>>> the sender and delete all copies from your computer system >>> and destroy >>>> all hard copies. It is the recipient's responsibility to >> check this >>>> email and any attachments to this email for viruses before use. >>>> >> This email and any attachments are intended solely for the >> named recipient and are confidential. The copying or >> distribution of them or any information they contain by >> anyone other than the named recipient is prohibited. If you >> have received this document in error, please notify the >> sender and delete all copies from your computer system and >> destroy all hard copies. It is the recipient's responsibility >> to check this email and any attachments to this email for >> viruses before use. >> >> > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. > From andreas.albarello at TERRITORIUMONLINE.COM Tue Oct 30 05:59:36 2007 From: andreas.albarello at TERRITORIUMONLINE.COM (Andreas Albarello) Date: Tue, 30 Oct 2007 13:59:36 +0100 Subject: Class or filter expression on date field in shapefile In-Reply-To: <47266012.1070202@duke.edu> Message-ID: Ei Fujioka wrote: > I'm having difficulty in trying to filter features in a shapefile by dates. > > I looked into this mailing list and have found a post saying "MapServer > doesn't support date types in shapefiles." > This post is a very old one, dated in July 2000. > > So I'm wondering if the latest Mapserver supports this. And if so, what > is the date format for class/filter expression? > I use Mapserver 4.2. Ei, yes, this should be possible with more recent MapServer releases. I don't know whether it used to work back in the day of MapServer 4.2. You should really upgrade to 4.6 at least. > Can't I use a string value like '2003-03-01' for date comparison? > I tried the following expression but failed. > EXPRESSION ([DATE_S] > '2003-01-01') > > Is there any smarter way to filter on dates? Yes, you need to explicitly tell MapServer that you want the field and your value to be treated as dates rather than strings. You do this by surrounding them with backticks (ASCII #96), for instance: EXPRESSION (`[DATE_S]` > `2003-01-01`) Best regards, -- -------------------------------------------------------------------- Andreas Albarello Analysis & SW Development Territorium Online srl/GmbH Via Buozzi/Buozzistra?e 12 - I 39100 Bolzano/Bozen email: andreas.albarello at territoriumonline.com web: www.territoriumonline.com -------------------------------------------------------------------- From jcarrasco at PRODEVELOP.ES Tue Oct 30 07:52:00 2007 From: jcarrasco at PRODEVELOP.ES (Javier Carrasco) Date: Tue, 30 Oct 2007 15:52:00 +0100 Subject: Colinear points bug, fixed Message-ID: I have downloaded MapServer from CVS and It's working very well now. Thank you tbonfort and sdlime. -------------- next part -------------- An HTML attachment was scrubbed... URL: From efujioka at DUKE.EDU Tue Oct 30 09:03:16 2007 From: efujioka at DUKE.EDU (Ei Fujioka) Date: Tue, 30 Oct 2007 12:03:16 -0400 Subject: Class or filter expression on date field in shapefile In-Reply-To: <47272AB8.404@territoriumonline.com> Message-ID: Thanks, Andreas, for your quick response. This is exactly what I wanted to know. It seems Mapserver 4.2 doesn't treat backticks as a date type value, though. So definitely need to upgrade. Meanwhile I think I should stick to numeric values. Ei Andreas Albarello wrote: > Ei Fujioka wrote: >> I'm having difficulty in trying to filter features in a shapefile by >> dates. >> >> I looked into this mailing list and have found a post saying >> "MapServer doesn't support date types in shapefiles." >> This post is a very old one, dated in July 2000. >> >> So I'm wondering if the latest Mapserver supports this. And if so, >> what is the date format for class/filter expression? >> I use Mapserver 4.2. > > Ei, > > yes, this should be possible with more recent MapServer releases. I > don't know whether it used to work back in the day of MapServer 4.2. You > should really upgrade to 4.6 at least. > >> Can't I use a string value like '2003-03-01' for date comparison? >> I tried the following expression but failed. >> EXPRESSION ([DATE_S] > '2003-01-01') >> >> Is there any smarter way to filter on dates? > > Yes, you need to explicitly tell MapServer that you want the field and > your value to be treated as dates rather than strings. You do this by > surrounding them with backticks (ASCII #96), for instance: > > EXPRESSION (`[DATE_S]` > `2003-01-01`) > > Best regards, -- ====================== Ei Fujioka Research Associate Duke University (919) 613-8021 efujioka at duke.edu ====================== From justcallmejay at GMAIL.COM Tue Oct 30 09:32:51 2007 From: justcallmejay at GMAIL.COM (JayDub) Date: Tue, 30 Oct 2007 09:32:51 -0700 Subject: Layer type not set Message-ID: I get that error when I run shp2img on my map file I get that error. I have TYPE's for both my layers... so it's confusing. Here's the map file. # MapFile created with Gix Export Tool - Tue Oct 30 11:07:42 2007 # http://gix.sourceforge.net # View Date : Tuesday, October 30, 2007 11:01:00 AM # MAP NAME 'View1' SIZE 550 400 EXTENT 776209.12862260 650266.98563681 777523.82598924 650705.21809236 UNITS meters RESOLUTION 72 CONFIG PROJ_LIB 'C:/Proj/' DATAPATTERN '' TEMPLATEPATTERN '' SHAPEPATH '/home/jay/web/shps/vcampus/' SYMBOLSET '/home/jay/web/shps/vcampus/vcampus.sym' FONTSET '/home/jay/web/shps/vcampus/vcampus.fnt' STATUS on IMAGECOLOR 255 255 255 IMAGETYPE png STATUS on DEBUG false TRANSPARENT ON WEB MINSCALE 0 IMAGEPATH '' IMAGEURL '' LOG '/home/jay/web/shps/vcampus/vcampus.log' METADATA wms_extent "776162.79241854 649218.25528380 777627.68815657 651716.42081032" wms_abstract "monagis-laptop ** Gix Generated MapFile" wms_encoding "ISO-8859-1" wms_opaque "1" wms_accesscontraints "none" wms_addresstype "mailing address" wms_address "" wms_city "" wms_stateorprovince "" wms_postcode "" wms_country "" wms_contactelectronicmailaddress "" wms_contactfacsimiletelephone "" wms_contactperson "" wms_contactorganization "" wms_contactposition "" wms_contactvoicetelephone "" wms_feature_info_mime_type "NONE" wms_fees "none" # wms_group_title "" wms_keywordlist "View1" wms_title "View1" wms_timeformat "YYYY-MM-DDTHH, YYYY-MM-DDTHH:MM, YYYY-MM-DD HH:MM:SS" wms_onlineresource "http://monagis-laptop/cgi-bin/mapserv.exe?map=/home/jay/web/shps/vcampus/vcampus.map&" wms_srs "" END #METADATA END #WEB REFERENCE IMAGE '/home/jay/web/shps/vcampus/vcampus.jpg' EXTENT 776209.12862260 650266.98563681 777523.82598924 650705.21809236 STATUS on COLOR -1 -1 -1 OUTLINECOLOR 255 255 0 SIZE 110 120 #MARKER #MARKERSIZE #MINBOXSIZE #MAXBOXSIZE END #REFERENCE LEGEND IMAGECOLOR 255 255 255 OUTLINECOLOR -1 -1 -1 KEYSIZE 18 12 KEYSPACING 2 2 POSTLABELCACHE true POSITION ll LABEL ANTIALIAS true BACKGROUNDCOLOR 255 255 255 BACKGROUNDSHADOWCOLOR -1 -1 -1 BACKGROUNDSHADOWSIZE 2 2 OUTLINECOLOR -1 -1 -1 COLOR 0 0 0 FONT 'Arial-Normal' SIZE 10 TYPE truetype END STATUS on END #LEGEND SCALEBAR BACKGROUNDCOLOR 255 255 255 COLOR 0 0 0 IMAGECOLOR 255 255 255 INTERVALS 4 LABEL COLOR 0 0 0 SIZE tiny TYPE bitmap ANTIALIAS true END OUTLINECOLOR 0 0 0 POSITION lr POSTLABELCACHE true SIZE 200 4 STATUS on STYLE 0 UNITS meters END #SCALEBAR QUERYMAP STYLE hilite STATUS on COLOR 255 255 0 END #QUERYMAP LAYER #Uwi_roads.shp TRANSPARENCY 100 NAME 'Uwi_roads.shp' METADATA gix_layername "Uwi_roads.shp" gix_layerfieldnames "ID" gix_layerfieldalias "Id" wms_abstract "monagis-laptop Uwi_roads.shp Gix Generated MapFile" wms_extent "776170.93451277 649218.25528380 777627.68815657 651716.42081032" wms_keywordlist "Uwi_roads.shp, monagis-laptop, View1" wms_opaque "0" wms_srs "NONE" wms_title "Uwi_roads.shp" END #METADATA TOLERANCE 3 TOLERANCEUNITS pixels DATA '/home/jay/web/shps/vcampus/uwi_roads.shp' HEADER 'header.html' FOOTER 'footer.html' LABELCACHE on # TILEINDEX '' # TILEITEM '' STATUS on DEBUG false TRANSFORM true TYPE line CLASS NAME 'Uwi_roads.shp' TEMPLATE 'template.html' #PEN STYLE SYMBOL 'Uwi_roads--0--0' SIZE 1 COLOR 135 193 51 END #STYLE END #CLASS END #LAYER LAYER #Uwi_faculties.shp TRANSPARENCY 100 NAME 'Uwi_faculties.shp' METADATA gix_layername "Uwi_faculties.shp" gix_layerfieldnames "NAME|HEIGHT|HGT_M|COMPLEX|BLDG_NAME" gix_layerfieldalias "Name|Height|Hgt_m|Complex|Bldg_name" wms_abstract "monagis-laptop Uwi_faculties.shp Gix Generated MapFile" wms_extent "776162.79241854 649423.95379948 777407.77098544 651614.06435945" wms_keywordlist "Uwi_faculties.shp, monagis-laptop, View1" wms_opaque "0" wms_srs "NONE" wms_title "Uwi_faculties.shp" END #METADATA TOLERANCE 3 TOLERANCEUNITS pixels DATA '/home/jay/web/shps/vcampus/uwi_faculties.shp' HEADER 'header.html' FOOTER 'footer.html' LABELCACHE on # TILEINDEX '' # TILEITEM '' STATUS on DEBUG false TRANSFORM true CLASS NAME 'Uwi_faculties.shp' TEMPLATE 'template.html' #RASTERFILL_STYLE_SOLID STYLE COLOR 84 195 133 BACKGROUNDCOLOR 255 255 255 END #STYLE #OUTLINE SYMBOL STYLE OUTLINECOLOR 0 0 0 SYMBOL 'Uwi_faculties--0--outline' SIZE 1 END END #CLASS END #LAYER OUTPUTFORMAT NAME png DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION png TRANSPARENT on END #OUTPUTFORMAT END #MAP -- View this message in context: http://www.nabble.com/Layer-type-not-set-tf4719416.html#a13491499 Sent from the Mapserver - User mailing list archive at Nabble.com. From thomas_farnham at UNIONCAB.COM Tue Oct 30 14:12:27 2007 From: thomas_farnham at UNIONCAB.COM (Tom Farnham) Date: Tue, 30 Oct 2007 16:12:27 -0500 Subject: Simplifying Shapefiles Message-ID: I recall seeing a method or utility before to take something like Tiger Census data and convert it to a more simplified shape file. I'm looking for performance here because right now my mapserver is too slow for my tastes. Basically I just it to create one linestring for each street wherever possible. Does anyone know where I can find out how to do this or a program to do this? tom farnham From flavio at TYDAC.CH Tue Oct 30 23:47:42 2007 From: flavio at TYDAC.CH (Flavio Hendry) Date: Wed, 31 Oct 2007 07:47:42 +0100 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC8340@auper1ex002.au.aecomnet.com> Message-ID: Hi Jacob You can split them up and be lazy all in one. Just use FME, it will do the job for you automatically ... www.safe.com. However, the being lazy would cost you a few bucks in this case :-( ... Mit freundlichem Gruss / Best Regards Flavio Hendry ---------------------------------------------------------------- TYDAC Web-Site: http://www.tydac.ch TYDAC MapServer: http://www.mapserver.ch ---------------------------------------------------------------- ############ Mit freundlichen Gruessen / Kind Regards ############ mailto:flavio at tydac.ch ############ TYDAC AG - http://www.tydac.ch #### #### Geographic Information Solutions #### #### Luternauweg 12 -- CH-3006 Bern ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 ---------------------------------------------------------------- -----Original Message----- From: "Delfos, Jacob" To: MAPSERVER-USERS at LISTS.UMN.EDU Date: Tue, 30 Oct 2007 16:37:03 +0900 Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > Hi Jukka, > > When I have the data a bit cleaned up, I'll have a look if I can put > something together. Currently I'm still in the process of "sifting > through" :) > > I'm dealing with a lot of MapInfo files with mixed geometries, and I > want to see if I can get away with being lazy (meaning I don't split > up > tables by geometry). > > Regards, > > Jacob > > > > > -----Original Message----- > > From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] > > Sent: 30 October 2007 14:52 > > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY > type > > > > Hi Jacob, > > > > Would it be impossible for you to create a couple of such > > records and make a controlled trial to see what really happens? > > > > -Jukka Rahkonen- > > > > > > -----Original Message----- > > From: UMN MapServer Users List on behalf of Delfos, Jacob > > Sent: Tue 30.10.2007 0:53 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY > type > > > > Hi Jan, > > > > Thanks for your reply. But I still need to find out how MapServer > will > > deal with the records that contain an unexpected geometry > > type. I could > > have a polygon layer pointing to a table which I expect to contain > > polygons. But if the geometry type of the table is GEOMETRY, then > it > > could contain a line object. What will MapServer do? > > > > If I do an attribute query on such a table, will it return matching > > records even if the geometry object is a line, though the layer is > a > > polygon layer? > > > > Regards, > > > > Jacob > > > > > > > -----Original Message----- > > > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > > > Sent: 29 October 2007 20:13 > > > To: Delfos, Jacob > > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS > > GEOMETRY type > > > > > > Hi Jacob, > > > > > > The Mapfile Reference Manual, chapter Layer says > > > (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) > > > > > > ------------------------------------------------------------ > > > > > > TYPE [point|line|polygon|circle|annotation|raster|query|chart] > > > > > > Specifies how the data should be drawn. Need not be the > > > same as the > > > shapefile type. For example, a polygon shapefile may be drawn > > > as a point > > > layer, but a point shapefile may not be drawn as a polygon > > > layer.Common > > > sense rules. > > > > > > ------------------------------------------------------------ > > > > > > You probably just have to try it out on your data. > > > > > > Jan > > > > > > Delfos, Jacob wrote: > > > > Hi List, > > > > > > > > For a particular client I have to translate a lot of > > > MapInfo files into > > > > PostGIS. Some files may contain some different geometries, > > > which ogr2ogr > > > > doesn't like. So I force the geometry type to "GEOMETRY" (-nlt > > > > GEOMETRY). It translates fine, and seems to draw fine in > > > MapServer. But > > > > how does MapServer really deal with it? > > > > > > > > If I have a polygon layer, and point it to a PostGIS table > > > that contains > > > > objects of the type "GEOMETRY", does it simply ignore > > > anything that is > > > > not a polygon? What about the results of attribute queries? > > > Would those > > > > be filtered on the geometry type of the layer? > > > > > > > > I can avoid using "GEOMETRY type" by translating the files > > > in FME, but > > > > I'd prefer to recommend an Open Source solution. > > > > > > > > Regards, > > > > > > > > Jacob > > > > > > > > > > > > *JACOB DELFOS > > > > GIS ANALYST > > > > *Maunsell Australia Pty Ltd > > > > 629 Newcastle Street, Leederville, WA 6007 > > > > PO Box 81, Leederville, WA 6902 > > > > Western Australia > > > > ABN 20 093 846 925 > > > > > > > > Tel + 61 8 9281 6185 > > > > Fax + 61 8 9281 6297 > > > > _jacob.delfos at maunsell.com_ > > > > > > > > This email and any attachments are intended solely for the > named > > > > recipient and are confidential. The copying or distribution > > > of them or > > > > any information they contain by anyone other than the named > > > recipient is > > > > prohibited. If you have received this document in error, > > > please notify > > > > the sender and delete all copies from your computer system > > > and destroy > > > > all hard copies. It is the recipient's responsibility to > > check this > > > > email and any attachments to this email for viruses before use. > > > > > > > > > > > This email and any attachments are intended solely for the > > named recipient and are confidential. The copying or > > distribution of them or any information they contain by > > anyone other than the named recipient is prohibited. If you > > have received this document in error, please notify the > > sender and delete all copies from your computer system and > > destroy all hard copies. It is the recipient's responsibility > > to check this email and any attachments to this email for > > viruses before use. > > > > > > This email and any attachments are intended solely for the named > recipient and are confidential. The copying or distribution of them > or any information they contain by anyone other than the named > recipient is prohibited. If you have received this document in error, > please notify the sender and delete all copies from your computer > system and destroy all hard copies. It is the recipient's > responsibility to check this email and any attachments to this email > for viruses before use. From marcos at BURKE.ATH.CX Wed Oct 31 03:44:09 2007 From: marcos at BURKE.ATH.CX (Marcos =?ISO-8859-1?Q?S=E1nchez?= Provencio) Date: Wed, 31 Oct 2007 11:44:09 +0100 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC8340@auper1ex002.au.aecomnet.com> Message-ID: Isn't a couple of views and an appropriate index enough? El mar, 30-10-2007 a las 16:37 +0900, Delfos, Jacob escribi?: > Hi Jukka, > > When I have the data a bit cleaned up, I'll have a look if I can put > something together. Currently I'm still in the process of "sifting > through" :) > > I'm dealing with a lot of MapInfo files with mixed geometries, and I > want to see if I can get away with being lazy (meaning I don't split up > tables by geometry). > > Regards, > > Jacob > > > > > -----Original Message----- > > From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] > > Sent: 30 October 2007 14:52 > > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: RE: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > > > Hi Jacob, > > > > Would it be impossible for you to create a couple of such > > records and make a controlled trial to see what really happens? > > > > -Jukka Rahkonen- > > > > > > -----Original Message----- > > From: UMN MapServer Users List on behalf of Delfos, Jacob > > Sent: Tue 30.10.2007 0:53 > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > > > Hi Jan, > > > > Thanks for your reply. But I still need to find out how MapServer will > > deal with the records that contain an unexpected geometry > > type. I could > > have a polygon layer pointing to a table which I expect to contain > > polygons. But if the geometry type of the table is GEOMETRY, then it > > could contain a line object. What will MapServer do? > > > > If I do an attribute query on such a table, will it return matching > > records even if the geometry object is a line, though the layer is a > > polygon layer? > > > > Regards, > > > > Jacob > > > > > > > -----Original Message----- > > > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > > > Sent: 29 October 2007 20:13 > > > To: Delfos, Jacob > > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS > > GEOMETRY type > > > > > > Hi Jacob, > > > > > > The Mapfile Reference Manual, chapter Layer says > > > (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) > > > > > > ------------------------------------------------------------ > > > > > > TYPE [point|line|polygon|circle|annotation|raster|query|chart] > > > > > > Specifies how the data should be drawn. Need not be the > > > same as the > > > shapefile type. For example, a polygon shapefile may be drawn > > > as a point > > > layer, but a point shapefile may not be drawn as a polygon > > > layer.Common > > > sense rules. > > > > > > ------------------------------------------------------------ > > > > > > You probably just have to try it out on your data. > > > > > > Jan > > > > > > Delfos, Jacob wrote: > > > > Hi List, > > > > > > > > For a particular client I have to translate a lot of > > > MapInfo files into > > > > PostGIS. Some files may contain some different geometries, > > > which ogr2ogr > > > > doesn't like. So I force the geometry type to "GEOMETRY" (-nlt > > > > GEOMETRY). It translates fine, and seems to draw fine in > > > MapServer. But > > > > how does MapServer really deal with it? > > > > > > > > If I have a polygon layer, and point it to a PostGIS table > > > that contains > > > > objects of the type "GEOMETRY", does it simply ignore > > > anything that is > > > > not a polygon? What about the results of attribute queries? > > > Would those > > > > be filtered on the geometry type of the layer? > > > > > > > > I can avoid using "GEOMETRY type" by translating the files > > > in FME, but > > > > I'd prefer to recommend an Open Source solution. > > > > > > > > Regards, > > > > > > > > Jacob > > > > > > > > > > > > *JACOB DELFOS > > > > GIS ANALYST > > > > *Maunsell Australia Pty Ltd > > > > 629 Newcastle Street, Leederville, WA 6007 > > > > PO Box 81, Leederville, WA 6902 > > > > Western Australia > > > > ABN 20 093 846 925 > > > > > > > > Tel + 61 8 9281 6185 > > > > Fax + 61 8 9281 6297 > > > > _jacob.delfos at maunsell.com_ > > > > > > > > This email and any attachments are intended solely for the named > > > > recipient and are confidential. The copying or distribution > > > of them or > > > > any information they contain by anyone other than the named > > > recipient is > > > > prohibited. If you have received this document in error, > > > please notify > > > > the sender and delete all copies from your computer system > > > and destroy > > > > all hard copies. It is the recipient's responsibility to > > check this > > > > email and any attachments to this email for viruses before use. > > > > > > > > > > > This email and any attachments are intended solely for the > > named recipient and are confidential. The copying or > > distribution of them or any information they contain by > > anyone other than the named recipient is prohibited. If you > > have received this document in error, please notify the > > sender and delete all copies from your computer system and > > destroy all hard copies. It is the recipient's responsibility > > to check this email and any attachments to this email for > > viruses before use. > > > > > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From j.l.h.hartmann at UVA.NL Wed Oct 31 04:01:01 2007 From: j.l.h.hartmann at UVA.NL (Jan Hartmann) Date: Wed, 31 Oct 2007 12:01:01 +0100 Subject: MapServer and PostGIS GEOMETRY type] Message-ID: If you own mapinfo, there is an easy way to use mapbasic to create a script that will split your table up based upon the entity type. It's a matter of looping through a select statement that filters on object type and then save the selection as tablename_entity_type.TAB. Jan Hartmann schreef: > I really would advise you to split them up. Being lazy always creates > more work in the end, I can tell you. I have lots of personal > experience in that field :-) > > Jan > > Delfos, Jacob wrote: >> Hi Jukka, >> >> When I have the data a bit cleaned up, I'll have a look if I can put >> something together. Currently I'm still in the process of "sifting >> through" :) >> >> I'm dealing with a lot of MapInfo files with mixed geometries, and I >> want to see if I can get away with being lazy (meaning I don't split up >> tables by geometry). >> >> Regards, >> >> Jacob >> >> >> >>> -----Original Message----- >>> From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 30 >>> October 2007 14:52 >>> To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: RE: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type >>> >>> Hi Jacob, >>> >>> Would it be impossible for you to create a couple of such records >>> and make a controlled trial to see what really happens? >>> >>> -Jukka Rahkonen- >>> >>> >>> -----Original Message----- >>> From: UMN MapServer Users List on behalf of Delfos, Jacob >>> Sent: Tue 30.10.2007 0:53 >>> To: MAPSERVER-USERS at LISTS.UMN.EDU >>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type >>> >>> Hi Jan, >>> >>> Thanks for your reply. But I still need to find out how MapServer will >>> deal with the records that contain an unexpected geometry type. I could >>> have a polygon layer pointing to a table which I expect to contain >>> polygons. But if the geometry type of the table is GEOMETRY, then it >>> could contain a line object. What will MapServer do? >>> >>> If I do an attribute query on such a table, will it return matching >>> records even if the geometry object is a line, though the layer is a >>> polygon layer? >>> >>> Regards, >>> >>> Jacob >>> >>> >>>> -----Original Message----- >>>> From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] Sent: 29 October >>>> 2007 20:13 >>>> To: Delfos, Jacob >>>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU >>>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS >>> GEOMETRY type >>>> Hi Jacob, >>>> >>>> The Mapfile Reference Manual, chapter Layer says >>>> (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) >>>> >>>> ------------------------------------------------------------ >>>> >>>> TYPE [point|line|polygon|circle|annotation|raster|query|chart] >>>> >>>> Specifies how the data should be drawn. Need not be the same >>>> as the shapefile type. For example, a polygon shapefile may be >>>> drawn as a point layer, but a point shapefile may not be drawn as a >>>> polygon layer.Common sense rules. >>>> >>>> ------------------------------------------------------------ >>>> >>>> You probably just have to try it out on your data. >>>> >>>> Jan >>>> >>>> Delfos, Jacob wrote: >>>>> Hi List, >>>>> >>>>> For a particular client I have to translate a lot of >>>> MapInfo files into >>>>> PostGIS. Some files may contain some different geometries, >>>> which ogr2ogr >>>>> doesn't like. So I force the geometry type to "GEOMETRY" (-nlt >>>>> GEOMETRY). It translates fine, and seems to draw fine in >>>> MapServer. But >>>>> how does MapServer really deal with it? >>>>> >>>>> If I have a polygon layer, and point it to a PostGIS table >>>> that contains >>>>> objects of the type "GEOMETRY", does it simply ignore >>>> anything that is >>>>> not a polygon? What about the results of attribute queries? >>>> Would those >>>>> be filtered on the geometry type of the layer? >>>>> >>>>> I can avoid using "GEOMETRY type" by translating the files >>>> in FME, but >>>>> I'd prefer to recommend an Open Source solution. >>>>> >>>>> Regards, >>>>> >>>>> Jacob >>>>> >>>>> >>>>> *JACOB DELFOS >>>>> GIS ANALYST >>>>> *Maunsell Australia Pty Ltd >>>>> 629 Newcastle Street, Leederville, WA 6007 >>>>> PO Box 81, Leederville, WA 6902 >>>>> Western Australia >>>>> ABN 20 093 846 925 >>>>> >>>>> Tel + 61 8 9281 6185 >>>>> Fax + 61 8 9281 6297 >>>>> _jacob.delfos at maunsell.com_ >>>>> >>>>> This email and any attachments are intended solely for the named >>>>> recipient and are confidential. The copying or distribution >>>> of them or >>>>> any information they contain by anyone other than the named >>>> recipient is >>>>> prohibited. If you have received this document in error, >>>> please notify >>>>> the sender and delete all copies from your computer system >>>> and destroy >>>>> all hard copies. It is the recipient's responsibility to >>> check this >>>>> email and any attachments to this email for viruses before use. >>>>> >>> This email and any attachments are intended solely for the named >>> recipient and are confidential. The copying or distribution of them >>> or any information they contain by anyone other than the named >>> recipient is prohibited. If you have received this document in >>> error, please notify the sender and delete all copies from your >>> computer system and destroy all hard copies. It is the recipient's >>> responsibility to check this email and any attachments to this email >>> for viruses before use. >>> >>> >> >> This email and any attachments are intended solely for the named >> recipient and are confidential. The copying or distribution of them >> or any information they contain by anyone other than the named >> recipient is prohibited. If you have received this document in error, >> please notify the sender and delete all copies from your computer >> system and destroy all hard copies. It is the recipient's >> responsibility to check this email and any attachments to this email >> for viruses before use. >> > -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. From jorn at SPACETEC.NO Wed Oct 31 04:04:34 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 31 Oct 2007 13:04:34 +0200 Subject: SOS getObservation result Message-ID: Hi, I have a PostGIS table with several columns. How can I fetch the values from those columns into the getObservation result? I want something similar as air_pressure_at_sea_level, longitude, latitude and depth from this URL: http://sos-web.tamu.edu/sos-cgi/madis?service=sos&request=GetObservation&version=0.1.2&offering=ndbc_44029&responseFormat=text/xml; %20subtype=om/0.14.7&observedProperty=http://marinemetadata.org/cf%23demo_one_wk_ndbc_44029_air_pressure_at_sea_level&eventTime=%3Cgml:TimePeriod%3E%3Cgml:beginPosition%3E2007-08-01%3C/gml:beginPosition%3E%3Cgml:endPosition%3E2007-08-01%3C/gml:endPosition%3E%3C/gml:TimePeriod%3E For example, I have the column: destination, and added the following to METADATA of LAYER: "sos_name_componenturl" "name" "sos_destination_componenturl" "destination" "sos_destination_alias" "destination" "sos_observed_property_name" "destination" "sos_offering_name" "destination" It doesn't work and I'm not sure how to configure it. cheers J?rn Vegard From jorn at SPACETEC.NO Wed Oct 31 04:21:15 2007 From: jorn at SPACETEC.NO (=?iso-8859-1?q?J=F8rn_Vegard_R=F8snes?=) Date: Wed, 31 Oct 2007 13:21:15 +0200 Subject: SOS getObservation result In-Reply-To: <200710311204.34222.jorn@spacetec.no> Message-ID: I'm embarrassed, I edited the wrong layer :-) sos__componenturl works. cheers J?rn Vegard On Wednesday 31 October 2007 12:04, J?rn Vegard R?snes wrote: > Hi, > > I have a PostGIS table with several columns. > How can I fetch the values from those columns into the getObservation > result? > > I want something similar as air_pressure_at_sea_level, longitude, latitude > and depth from this URL: > http://sos-web.tamu.edu/sos-cgi/madis?service=sos&request=GetObservation&ve >rsion=0.1.2&offering=ndbc_44029&responseFormat=text/xml; > %20subtype=om/0.14.7&observedProperty=http://marinemetadata.org/cf%23demo_o >ne_wk_ndbc_44029_air_pressure_at_sea_level&eventTime=%3Cgml:TimePeriod%3E%3C >gml:beginPosition%3E2007-08-01%3C/gml:beginPosition%3E%3Cgml:endPosition%3E2 >007-08-01%3C/gml:endPosition%3E%3C/gml:TimePeriod%3E > > For example, I have the column: destination, and added the following to > METADATA of LAYER: > "sos_name_componenturl" "name" > "sos_destination_componenturl" "destination" > "sos_destination_alias" "destination" > "sos_observed_property_name" "destination" > "sos_offering_name" "destination" > > It doesn't work and I'm not sure how to configure it. > > cheers > J?rn Vegard From thomas.bonfort at GMAIL.COM Wed Oct 31 04:34:44 2007 From: thomas.bonfort at GMAIL.COM (thomas bonfort) Date: Wed, 31 Oct 2007 12:34:44 +0100 Subject: Layer type not set In-Reply-To: <13491499.post@talk.nabble.com> Message-ID: For the archives, and to avoid people from investigating this problem: problem solved on irc, the Uwi_faculties.shp is missing the TYPE keyword (duh). tb From Tim.Nolte at IPCSWIRELESSINC.COM Wed Oct 31 05:35:58 2007 From: Tim.Nolte at IPCSWIRELESSINC.COM (Nolte, Tim) Date: Wed, 31 Oct 2007 08:35:58 -0400 Subject: Simplifying Shapefiles In-Reply-To: A Message-ID: Tom, There is a Windows app(http://tnatlas.geog.utk.edu/downloadfree.htm) that can create shapefile from the Tiger data. You can also use ogr2ogr(http://www.gdal.org/ogr/ogr2ogr.html) to convert Tiger data to shapefile or many other formats. Hope this helps you out. ---- Timothy J Nolte - tnolte at ilpcs.com Associate Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Tom Farnham > Sent: Tuesday, October 30, 2007 5:12 PM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] Simplifying Shapefiles > > I recall seeing a method or utility before to take something like > Tiger Census data and convert it to a more simplified shape > file. I'm > looking for performance here because right now my mapserver is too > slow for my tastes. Basically I just it to create one linestring for > each street wherever possible. > > Does anyone know where I can find out how to do this or a program to > do this? > > > tom farnham > > From David.Fawcett at STATE.MN.US Wed Oct 31 06:10:10 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 31 Oct 2007 08:10:10 -0500 Subject: MapServer on Leopard? Message-ID: Is anyone out there using William Kyngesburye on Leopard? I see that there is an issue with competing Pythons and I was wondering what people have done as a workaround. Thanks, David. From David.Fawcett at STATE.MN.US Wed Oct 31 06:15:05 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 31 Oct 2007 08:15:05 -0500 Subject: MapServer on Leopard? In-Reply-To: A<6246727221874A4FB8D3F9BBC37D9BD5021FB803@s-sp22.pca.state.mn.us> Message-ID: OK, not enough coffee yet. I meant to ask if anyone is using the Kyng Chaos binaries (MapServer, GDAL, PostGIS, etc.) and framework on Leopard yet. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Fawcett, David Sent: Wednesday, October 31, 2007 8:10 AM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] MapServer on Leopard? Is anyone out there using William Kyngesburye on Leopard? I see that there is an issue with competing Pythons and I was wondering what people have done as a workaround. Thanks, David. From woklist at KYNGCHAOS.COM Wed Oct 31 06:53:09 2007 From: woklist at KYNGCHAOS.COM (William Kyngesburye) Date: Wed, 31 Oct 2007 08:53:09 -0500 Subject: MapServer on Leopard? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB805@s-sp22.pca.state.mn.us> Message-ID: I have some info on initial tests on my site. Frameworks, GRASS, QGIS work. Postgres server is tricky to install and get running (if even possible at all). I haven't tested MapServer or PHP yet. I'm currently working on rebuilding everything. On Oct 31, 2007, at 8:15 AM, Fawcett, David wrote: > OK, not enough coffee yet. I meant to ask if anyone is using the Kyng > Chaos binaries (MapServer, GDAL, PostGIS, etc.) and framework on > Leopard > yet. > > David. > > -----Original Message----- > From: UMN MapServer Users List [mailto:MAPSERVER- > USERS at LISTS.UMN.EDU] On > Behalf Of Fawcett, David > Sent: Wednesday, October 31, 2007 8:10 AM > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: [UMN_MAPSERVER-USERS] MapServer on Leopard? > > > Is anyone out there using William Kyngesburye on Leopard? I see that > there is an issue with competing Pythons and I was wondering what > people > have done as a workaround. > > Thanks, > > David. ----- William Kyngesburye http://www.kyngchaos.com/ "Time is an illusion - lunchtime doubly so." - Ford Prefect From punk.kish at GMAIL.COM Wed Oct 31 07:23:28 2007 From: punk.kish at GMAIL.COM (P Kishor) Date: Wed, 31 Oct 2007 09:23:28 -0500 Subject: MapServer on Leopard? In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB803@s-sp22.pca.state.mn.us> Message-ID: On 10/31/07, Fawcett, David wrote: > Is anyone out there using William Kyngesburye on Leopard? I see that > there is an issue with competing Pythons and I was wondering what people > have done as a workaround. > This has to be absolutely the funniest message ever. I mean, using William Kyngesburye on Leopard. Competing with Pythons. How utterly animalistic. Thanks for a good, genuine smile David. From armin.waespy at LUBW.BWL.DE Wed Oct 31 08:21:43 2007 From: armin.waespy at LUBW.BWL.DE (Armin W.) Date: Wed, 31 Oct 2007 10:21:43 -0500 Subject: Problems with SDE+Oracle Message-ID: Hi list, I'm trying to connect to SDE and Oracle (Locator). I'm using the latest ms4w and followed the instructions on the Readme Install (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html) to connect to ArcSDE and Oracle. I installed both clients but nothing works! If I want to show a Layer based on SDE I got following error: msDrawMap(): Image handling error. Failed to draw layer named 'states'. loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: C:/ArcGIS/ArcSDE/bin/sde.dll msGetSymbol(): General error message. Can't load requested dynamic library: C:/ArcGIS/ArcSDE/bin/sde.dll I tried several paths to link to sde.dll and also to msplugin_sde_92.dll (as in the ms4w readme) If I want to connect to an oracle Layer, a promt offers to download mapserv.exe. Anybody an idea what I'm doing wrong?? From umn-ms at HYDROTEC.DE Wed Oct 31 08:56:26 2007 From: umn-ms at HYDROTEC.DE (Benedikt Rothe) Date: Wed, 31 Oct 2007 16:56:26 +0100 Subject: Antwort: [UMN_MAPSERVER-USERS] Problems with SDE+Oracle In-Reply-To: Message-ID: Hi My experience is, that following DLL's are needed: * sde.dll * sg.dll * pe.dll I copied them from the ArcSDE-SDK-directory. I think they are also in the C:\programme\ArcGIS\bin-directory. You should copy them in the directory od mapserv.exe or expand your PATH-environment. Bye Benedikt Rothe UMN MapServer Users List schrieb am 31.10.2007 16:21:43: > Hi list, > > I'm trying to connect to SDE and Oracle (Locator). I'm using the latest ms4w > and followed the instructions on the Readme Install > (http://www.maptools.org/ms4w/index.phtml?page=README_INSTALL.html) to > connect to ArcSDE and Oracle. I installed both clients but nothing works! > > If I want to show a Layer based on SDE I got following error: > msDrawMap(): Image handling error. Failed to draw layer named 'states'. > loadCustomLayerDLL: General error message. Failed to load dynamic Layer LIB: > C:/ArcGIS/ArcSDE/bin/sde.dll msGetSymbol(): General error message. Can't > load requested dynamic library: C:/ArcGIS/ArcSDE/bin/sde.dll > > I tried several paths to link to sde.dll and also to msplugin_sde_92.dll (as > in the ms4w readme) > > If I want to connect to an oracle Layer, a promt offers to download > mapserv.exe. > > Anybody an idea what I'm doing wrong?? -------------- next part -------------- An HTML attachment was scrubbed... URL: From gregor at HOSTGIS.COM Wed Oct 31 10:26:41 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 31 Oct 2007 11:26:41 -0600 Subject: A really weird problem with querying a map Message-ID: Hi, all. This is NOT your usual "why does my query template" not work question. At least I hope I've beyond that. :) The map URL: http://maps.hostgis.com/cincoenergy/XTO/ Login: hostgis / hostgis (yes, all layers off by default is intentional) Turn on the Tracts layer. The problem: Use the Get Info tool and click the map to query the Tracts layer. Chances are that "msQueryByPoint(): Search returned no results." But if you keep clicking around, there are a few spots where it does work. For example, the larger blue parcel near the center: only the northeast side of this parcel can be queried. The angular orange parcel to the south of center: one can click-query at the vertex where the parcel curves, but not elsewhere. Any thoughts on why querying this layer would exhibit such odd behavior? Other information: The locations which work stay the same between numerous queries and page reloads. It is not an intermittent problem, but is consistent. This same application (with different data and locations) works perfectly, clicking and querying just fine. The URLs being generated by the clicks are pretty straightforward: /cgi-bin/mapserv?mode=query&map=/maps/cincoenergy/XTO/mapfile.map&imgext=3744617.200913247+3949835.6361420923+3753465.8228735304+3956941.3477162593&imgxy=447+306&imgbox=447+306+447+306&imgsize=660+530&layers=Tracts] The mapfile's layer entry is a polygon layer, with a query template defined. When it works, it works great. So I doubt that it's an issue in the mapfile. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From David.Fawcett at STATE.MN.US Wed Oct 31 11:28:36 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 31 Oct 2007 13:28:36 -0500 Subject: A really weird problem with querying a map In-Reply-To: A<4728BAD1.9070703@hostgis.com> Message-ID: Gregor, What does the map file look like? I assume that you really are querying the layer that we see. I ran into something with 5.0 and didn't think that much of it. If you haven't defined a TOLERANCE and TOLERANCEUNITS. Try a tolerance of 1 meter or something like that. David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh Sent: Wednesday, October 31, 2007 12:27 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: [UMN_MAPSERVER-USERS] A really weird problem with querying a map Hi, all. This is NOT your usual "why does my query template" not work question. At least I hope I've beyond that. :) The map URL: http://maps.hostgis.com/cincoenergy/XTO/ Login: hostgis / hostgis (yes, all layers off by default is intentional) Turn on the Tracts layer. The problem: Use the Get Info tool and click the map to query the Tracts layer. Chances are that "msQueryByPoint(): Search returned no results." But if you keep clicking around, there are a few spots where it does work. For example, the larger blue parcel near the center: only the northeast side of this parcel can be queried. The angular orange parcel to the south of center: one can click-query at the vertex where the parcel curves, but not elsewhere. Any thoughts on why querying this layer would exhibit such odd behavior? Other information: The locations which work stay the same between numerous queries and page reloads. It is not an intermittent problem, but is consistent. This same application (with different data and locations) works perfectly, clicking and querying just fine. The URLs being generated by the clicks are pretty straightforward: /cgi-bin/mapserv?mode=query&map=/maps/cincoenergy/XTO/mapfile.map&imgext =3744617.200913247+3949835.6361420923+3753465.8228735304+3956941.3477162 593&imgxy=447+306&imgbox=447+306+447+306&imgsize=660+530&layers=Tracts] The mapfile's layer entry is a polygon layer, with a query template defined. When it works, it works great. So I doubt that it's an issue in the mapfile. -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From silvia.petcu at DPRA.COM Wed Oct 31 11:54:45 2007 From: silvia.petcu at DPRA.COM (Silvia Petcu) Date: Wed, 31 Oct 2007 13:54:45 -0500 Subject: Google Earth -Get capabilities error Message-ID: Hi, I'm trying to add my wms layers to Google Earth and it is failing when I?m using the GetCapabilities url in the ?Web Mapping Service parameters? window (the address is working fine in ArcCatalog or IE). The error says that this WMS service has no layers that can be rendered by Google Earth. http://ntgomap.nwtgeoscience.ca/cgi-bin/wms_test.php? VERSION=1.1.1&request=Getcapabilities&service=wms&srs=EPSG:4326 I can add individual WMS layers by entering the ?GetMap? url in the Link textbox from the same map file that is failing on GetCapabilities. http://ntgomap.nwtgeoscience.ca/cgi-bin/wms_test.php? VERSION=1.1.1&request=GetMap&srs=EPSG:4326&BBOX=-146.4,52.15,- 93.6,97.74&WIDTH=500&HEIGHT=500&LAYERS=ArcheanLimits&STYLES=&FORM AT=image/png Bellow is the map file that has this behavior. I need to know what do I have to do as Google map to be able to get handle the GetCapabilities url as well. MAP DEBUG OFF NAME "NTGO_Portal_WMS" STATUS ON EXTENT -146.4 52.161287067696 -93.6 97.7368329192244 SIZE 684 561 SHAPEPATH "D:\Gomap_data\Export" SYMBOLSET "GeoPortal.symbols" FONTSET "GeoPortal.fonts" TRANSPARENT ON UNITS dd IMAGETYPE PNG24 OUTPUTFORMAT NAME PNG24 DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE RGBA EXTENSION PNG TRANSPARENT ON FORMATOPTION "INTERLACE=NO" END WEB MAXSCALE 40000000 MINSCALE 100 IMAGEPATH "C:\Inetpub\wwwroot\tmp\" IMAGEURL "/tmp/" LOG /tmp/log/MS_ERRORS.LOG HEADER "templates/header.html" FOOTER "templates/footer.html" TEMPLATE "set in index.html" METADATA WMS_ONLINERESOURCE 'http://ntgomap.nwtgeoscience.ca/cgi- bin/wms_test.php?' WMS_SRS 'epsg:4326' WMS_ACCESSCONSTRAINTS 'none' WMS_TITLE 'NTGO Web GIS Portal' WMS_FEATURE_INFO_MIME_TYPE 'text/html' WMS_ABSTRACT 'This Web Map Service broadcasts metadata ' END #METADATA END #WEB PROJECTION "init=epsg:4326" #unprojected lat long END LAYER NAME 'NTGOSurvey' DATA '4326Geoch_Geoph_Survey' STATUS on DUMP true # VERY IMPORTANT atribute TYPE Polygon TRANSPARENCY 100 TOLERANCE 10 TOLERANCEUNITS pixels TEMPLATE "null" METADATA WMS_SRS 'epsg:4326' WMS_TITLE 'NTGOSurvey' WMS_FEATURE_INFO_MIME_TYPE 'text/html' gml_include_items "all" gml_exclude_items "geometry" END #METADATA PROJECTION 'init=epsg:4326' END CLASS NAME 'Geoch/Geoph Survey' STYLE COLOR 255 0 0 OUTLINECOLOR 0 0 0 END #STYLE END #CLASS END #LAYER LAYER NAME 'ArcheanLimits' DATA '4326Archean_Limits_lambert' STATUS on DUMP true # VERY IMPORTANT atribute TYPE Polygon TRANSPARENCY 100 TOLERANCE 10 TOLERANCEUNITS pixels TEMPLATE "null" METADATA WMS_SRS 'epsg:4326' WMS_TITLE 'ArcheanLimits' WMS_FEATURE_INFO_MIME_TYPE 'text/html' gml_include_items "all" gml_exclude_items "geometry" END #METADATA PROJECTION 'init=epsg:4326' END CLASS NAME 'ArcheanLimits' STYLE SYMBOL "line" SIZE 3 OUTLINECOLOR 254 172 0 END #STYLE END #CLASS END #LAYER END #End of Mapfile I appreciate any kind of help that will bring some light to my problem. Silvia Petcu DPRA Inc. From gregor at HOSTGIS.COM Wed Oct 31 12:36:38 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 31 Oct 2007 13:36:38 -0600 Subject: A really weird problem with querying a map In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB816@s-sp22.pca.state.mn.us> Message-ID: Fawcett, David wrote: > I ran into something with 5.0 and didn't think that much of it. If you > haven't defined a TOLERANCE and TOLERANCEUNITS. Try a tolerance of 1 > meter or something like that. Well, this is something... Of note: The data layers are in geographic with NAD27 (EPSG:4269), whereas the map's output projection is UTM zone 9 NAD 27 (EPSG:26709). Evidently this is very relevant when it comes to queries. I set these: TOLERANCE 100 TOLERANCEUNITS pixels and it works well enough to do the job. But not well enough for me to understand what's happening. I do find this odd. The documentation says that the defaults for polygon layers are "0 pixels" meaning that one must click inside the polygon. This would be just perfect, but instead I get "nothing found" if I leave it at that default. I find it odd that I should have to use such a huge tolerance, too. If I reduce the tolerance, I start getting all sorts of false positives: clicking too close to a border will bring up the neighbor's info. I find that confusing: I'd think that to be a side effect of a *higher* tolerance being set, yes? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From bthoen at GISNET.COM Wed Oct 31 12:58:14 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Wed, 31 Oct 2007 13:58:14 -0600 Subject: QueryByRect problem in PHPmapscript Message-ID: I'm trying to understand how to do querying via PHP mapscript, and I don't understand the results I'm getting. Basically I'm querying a polygon layer of US States with a rectangle that intersects 8 states in the upper midwest. It fully encloses two of these. The following script seems to find only one result and it says the shapeindex is 42. Now I know this is the answer to the meaning of life, the universe and everything, but how do I use this to get a list of the state names that were found (and why is it only returning 1 found?) What I want to do eventually is display these states on the map in a highlighting color to show they were selected. If I'm going about this all wrong, could somebody clue me in? $rect = ms_newRectObj(); $rect->setextent(-50000, -50000, 50000, 50000); $lyr = $map->getLayer(1); // states layer $results = $lyr->queryByRect($rect); if ($results == MS_FAILURE) { echo "Nothing found.
"; } else { echo "Found " . $lyr->getNumResults()."
"; for ($i=0; $i<$lyr->getNumResults(); $i++) { $rcache = $lyr->getResult($i); echo " shapeindex: ".$rcache->shapeindex; } } $rect->free(); -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Fawcett at STATE.MN.US Wed Oct 31 13:44:05 2007 From: David.Fawcett at STATE.MN.US (Fawcett, David) Date: Wed, 31 Oct 2007 15:44:05 -0500 Subject: A really weird problem with querying a map In-Reply-To: A<4728D946.1080808@hostgis.com> Message-ID: I am not offering this up as complete solution to your problem, although it would be cool if it was a viable work around. I think that this behavior is new in 5.0, but I could be wrong. I was thinking that if adding a tolerance to your query changed the result, it would help us tease out enough symptoms to get a viable bug report. It would be interesting to run a test to see if this occurs on a layer where the layer and output are the same SRS. (e.g. pre-project your data) David. -----Original Message----- From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Gregor Mosheh Sent: Wednesday, October 31, 2007 2:37 PM To: MAPSERVER-USERS at LISTS.UMN.EDU Subject: Re: [UMN_MAPSERVER-USERS] A really weird problem with querying a map Fawcett, David wrote: > I ran into something with 5.0 and didn't think that much of it. If > you haven't defined a TOLERANCE and TOLERANCEUNITS. Try a tolerance > of 1 meter or something like that. Well, this is something... Of note: The data layers are in geographic with NAD27 (EPSG:4269), whereas the map's output projection is UTM zone 9 NAD 27 (EPSG:26709). Evidently this is very relevant when it comes to queries. I set these: TOLERANCE 100 TOLERANCEUNITS pixels and it works well enough to do the job. But not well enough for me to understand what's happening. I do find this odd. The documentation says that the defaults for polygon layers are "0 pixels" meaning that one must click inside the polygon. This would be just perfect, but instead I get "nothing found" if I leave it at that default. I find it odd that I should have to use such a huge tolerance, too. If I reduce the tolerance, I start getting all sorts of false positives: clicking too close to a border will bring up the neighbor's info. I find that confusing: I'd think that to be a side effect of a *higher* tolerance being set, yes? -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From gregor at HOSTGIS.COM Wed Oct 31 13:52:01 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 31 Oct 2007 14:52:01 -0600 Subject: A really weird problem with querying a map In-Reply-To: <6246727221874A4FB8D3F9BBC37D9BD5021FB819@s-sp22.pca.state.mn.us> Message-ID: Fawcett, David wrote: > I think that this behavior is new in 5.0, but I could be wrong. Could be. I'm using MS 4.10.3 I'm sorry I forgot to mention that earlier. > It would be interesting to run a test to see if this occurs on a layer > where the layer and output are the same SRS. (e.g. pre-project your > data) I have done this. Reprojecting the data does solve this issue, allowing me to drop the tolerance and toleranceunits and to have it work just perfectly. That's a viable workaround, yes, but if this is a real bug, ... -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From dadark at DADARK.DE Wed Oct 31 13:57:37 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Wed, 31 Oct 2007 21:57:37 +0100 Subject: Raster layer - Howto? Message-ID: Hi list! I'd like to use one of the new NASA Blue Marble Images (which are available in TIFF format) for the background of my map. Unfortunately I have completely no idea how to start with raster layers. What I figured out so far is, that I need (or at least it would be helpful) GDAL, and a layer configuration like that: ########## NASA BLUE MARBLE ########### LAYER NAME "satellite" DATA "/var/www/odamap/blue_marble.tif" TYPE RASTER METADATA "wms_title" "ODAdata WMS Server SATELLITE" END END ####################################### That's my current configuration, but instead of showing Blue Marble there, Mapserver only displays a white image when requesting the satellite layer. Does anyone have any ideas? Thank you in advance! Regards, Pascal From gregor at HOSTGIS.COM Wed Oct 31 14:05:38 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 31 Oct 2007 15:05:38 -0600 Subject: Raster layer - Howto? In-Reply-To: <185F9507-FC5E-4577-B57C-26F8A90C1105@dadark.de> Message-ID: Pascal Ehlert wrote: > I'd like to use one of the new NASA Blue Marble Images (which are > available in TIFF format) for the > background of my map. Is that TIFF georeferenced (a geotiff?), or else do you have a worldfile for it? If not, then that data is just floating in nowhereville, well outside of your browser's view. :) If I recall, the Blue Marble stuff is not a geotiff (use gdalinfo on it to see if it has a projection and a center and all) and you'll have to create your own world file. It's a simple text file that describes the pixel coordinates in order for the data to have a spatial location. Don't worry, though: just punch "world file format" into Google and you'll be on your way in a few minutes. If not, ask back. :) -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From bthoen at GISNET.COM Wed Oct 31 14:14:46 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Wed, 31 Oct 2007 15:14:46 -0600 Subject: QueryByRect problem in PHPmapscript In-Reply-To: <4728DE56.3010906@gisnet.com> Message-ID: I've solved part of my problem. Apparently the query function works on the native SRS of the target layer, not on the map output SRS. Then I've seen a reference to getFeature(), supposedly a layer method. But this doesn't appear to be the case. In fact, I can't find references to getFeature() in the docs; just in old emails by people. Is this a valid method for MS 4.10? Bill Thoen wrote: > I'm trying to understand how to do querying via PHP mapscript, and I > don't understand the results I'm getting. Basically I'm querying a > polygon layer of US States with a rectangle that intersects 8 states > in the upper midwest. It fully encloses two of these. The following > script seems to find only one result and it says the shapeindex is 42. > Now I know this is the answer to the meaning of life, the universe and > everything, but how do I use this to get a list of the state names > that were found (and why is it only returning 1 found?) > > What I want to do eventually is display these states on the map in a > highlighting color to show they were selected. If I'm going about this > all wrong, could somebody clue me in? > > $rect = ms_newRectObj(); > $rect->setextent(-50000, -50000, 50000, 50000); > $lyr = $map->getLayer(1); // states layer > $results = $lyr->queryByRect($rect); > if ($results == MS_FAILURE) { > echo "Nothing found.
"; > } else { > echo "Found " . $lyr->getNumResults()."
"; > for ($i=0; $i<$lyr->getNumResults(); $i++) { > $rcache = $lyr->getResult($i); > echo " shapeindex: ".$rcache->shapeindex; > } > } > $rect->free(); > > From Steve.Lime at DNR.STATE.MN.US Wed Oct 31 14:10:52 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 Oct 2007 16:10:52 -0500 Subject: QueryByRect problem in PHPmapscript In-Reply-To: <4728DE56.3010906@gisnet.com> Message-ID: What does the corresponding layer definition look like? Are you sure you're grabbing the states layer - I mean, have you tried getLayerByName instead? Steve >>> On 10/31/2007 at 2:58 PM, in message <4728DE56.3010906 at gisnet.com>, Bill Thoen wrote: > I'm trying to understand how to do querying via PHP mapscript, and I > don't understand the results I'm getting. Basically I'm querying a > polygon layer of US States with a rectangle that intersects 8 states in > the upper midwest. It fully encloses two of these. The following script > seems to find only one result and it says the shapeindex is 42. Now I > know this is the answer to the meaning of life, the universe and > everything, but how do I use this to get a list of the state names that > were found (and why is it only returning 1 found?) > > What I want to do eventually is display these states on the map in a > highlighting color to show they were selected. If I'm going about this > all wrong, could somebody clue me in? > > $rect = ms_newRectObj(); > $rect->setextent(-50000, -50000, 50000, 50000); > $lyr = $map->getLayer(1); // states layer > $results = $lyr->queryByRect($rect); > if ($results == MS_FAILURE) { > echo "Nothing found.
"; > } else { > echo "Found " . $lyr->getNumResults()."
"; > for ($i=0; $i<$lyr->getNumResults(); $i++) { > $rcache = $lyr->getResult($i); > echo " shapeindex: ".$rcache->shapeindex; > } > } > $rect->free(); From dadark at DADARK.DE Wed Oct 31 14:15:51 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Wed, 31 Oct 2007 22:15:51 +0100 Subject: Raster layer - Howto? In-Reply-To: <4728EE22.1060909@hostgis.com> Message-ID: On 31.10.2007, at 22:05, Gregor Mosheh wrote: > If I recall, the Blue Marble stuff is not a geotiff (use gdalinfo > on it to see if it has a projection and a center and all) and > you'll have to create your own world file. It's a simple text file > that describes the pixel coordinates in order for the data to have > a spatial location. Hi Gregor, thank you for your quick answer! I'm sure I'm interpreting this correctly, but doesn't it mean it's a geotiff already? odamoz:/var/www/odamap# gdalinfo land_shallow_topo_8192.tif Driver: GTiff/GeoTIFF Size is 8192, 4096 Coordinate System is `' Metadata: TIFFTAG_XRESOLUTION=72 TIFFTAG_YRESOLUTION=72 TIFFTAG_RESOLUTIONUNIT=2 (pixels/inch) Image Structure Metadata: COMPRESSION=LZW Corner Coordinates: Upper Left ( 0.0, 0.0) Lower Left ( 0.0, 4096.0) Upper Right ( 8192.0, 0.0) Lower Right ( 8192.0, 4096.0) Center ( 4096.0, 2048.0) Band 1 Block=8192x1 Type=Byte, ColorInterp=Red Band 2 Block=8192x1 Type=Byte, ColorInterp=Green Band 3 Block=8192x1 Type=Byte, ColorInterp=Blue From gregor at HOSTGIS.COM Wed Oct 31 14:19:24 2007 From: gregor at HOSTGIS.COM (Gregor Mosheh) Date: Wed, 31 Oct 2007 15:19:24 -0600 Subject: Raster layer - Howto? In-Reply-To: Message-ID: Pascal Ehlert wrote: > I'm sure I'm interpreting this correctly, but doesn't it mean it's a > geotiff already? It indicates to me that it is not georeferenced. See how the coordinates are the same size as the image, and the coordinate system is blank? I've worked with these before... :) I don't have a world file handy at the moment, but it only took me about 5 minutes to learn it for the first time. Name the worldfile land_shallow_topo_8192.tfw and gdalinfo will automagically detect it and suddenly change its tone. :) -- Gregor Mosheh / Greg Allensworth System Administrator, HostGIS cartographic development & hosting services http://www.HostGIS.com/ "Remember that no one cares if you can back up, only if you can restore." - AMANDA From bthoen at GISNET.COM Wed Oct 31 14:24:04 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Wed, 31 Oct 2007 15:24:04 -0600 Subject: QueryByRect problem in PHPmapscript In-Reply-To: <4728A90C.5157.008F.0@dnr.state.mn.us> Message-ID: I simplified it to one layer in the map, so I'm sure I'm getting the states layer (originally I had two states layers -- polygon and line -- so that's why I used the number). And now that I'm using a rectangle in the states native SRS (4263) I'm getting the number of states I'm expecting. I think they're in the resultscache, and now I'm trying to figure out how to get something useful out of that. Steve Lime wrote: > What does the corresponding layer definition look like? Are you sure you're grabbing the states > layer - I mean, have you tried getLayerByName instead? > > Steve > > >>>> On 10/31/2007 at 2:58 PM, in message <4728DE56.3010906 at gisnet.com>, Bill Thoen >>>> > wrote: > >> I'm trying to understand how to do querying via PHP mapscript, and I >> don't understand the results I'm getting. Basically I'm querying a >> polygon layer of US States with a rectangle that intersects 8 states in >> the upper midwest. It fully encloses two of these. The following script >> seems to find only one result and it says the shapeindex is 42. Now I >> know this is the answer to the meaning of life, the universe and >> everything, but how do I use this to get a list of the state names that >> were found (and why is it only returning 1 found?) >> >> What I want to do eventually is display these states on the map in a >> highlighting color to show they were selected. If I'm going about this >> all wrong, could somebody clue me in? >> >> $rect = ms_newRectObj(); >> $rect->setextent(-50000, -50000, 50000, 50000); >> $lyr = $map->getLayer(1); // states layer >> $results = $lyr->queryByRect($rect); >> if ($results == MS_FAILURE) { >> echo "Nothing found.
"; >> } else { >> echo "Found " . $lyr->getNumResults()."
"; >> for ($i=0; $i<$lyr->getNumResults(); $i++) { >> $rcache = $lyr->getResult($i); >> echo " shapeindex: ".$rcache->shapeindex; >> } >> } >> $rect->free(); >> > > From dadark at DADARK.DE Wed Oct 31 14:28:16 2007 From: dadark at DADARK.DE (Pascal Ehlert) Date: Wed, 31 Oct 2007 22:28:16 +0100 Subject: Raster layer - Howto? In-Reply-To: <4728F15C.1000701@hostgis.com> Message-ID: On 31.10.2007, at 22:19, Gregor Mosheh wrote: > Pascal Ehlert wrote: >> I'm sure I'm interpreting this correctly, but doesn't it mean it's >> a geotiff already? > > It indicates to me that it is not georeferenced. See how the > coordinates are the same size as the image, and the coordinate > system is blank? I've worked with these before... :) Sorry, I forgot a word there ;-) I meant "I'm _not_ sure" of course. Was just a little confused because he said Driver: "GTiff/GeoTIFF". > I don't have a world file handy at the moment, but it only took me > about 5 minutes to learn it for the first time. Name the worldfile > land_shallow_topo_8192.tfw and gdalinfo will automagically detect > it and suddenly change its tone. :) That sounds great, I'm sure I'll be able to figure out how to do this. Thank you very much for your help and Happy Halloween (if you should be from a country where they celebrate it)! Pascal From Steve.Lime at DNR.STATE.MN.US Wed Oct 31 14:38:03 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 Oct 2007 16:38:03 -0500 Subject: QueryByRect problem in PHPmapscript In-Reply-To: <4728F046.8030702@gisnet.com> Message-ID: getFeature is the method to use to retreive a feature from a layer. It is a layer method and exists for both PHP and the SWIG-based bindings. It replaces the getShape method which I created with stupid parameter orderings that made it impossible to not pass a tile index. I see that it is missing from the PHP/MapScript docs but is present in the Swig docs. I'll file a ticket on that one... There's already a note at the bottom of the page but it hasn't been noticed. Steve >>> On 10/31/2007 at 4:14 PM, in message <4728F046.8030702 at gisnet.com>, Bill Thoen wrote: > I've solved part of my problem. Apparently the query function works on > the native SRS of the target layer, not on the map output SRS. > > Then I've seen a reference to getFeature(), supposedly a layer method. > But this doesn't appear to be the case. In fact, I can't find references > to getFeature() in the docs; just in old emails by people. Is this a > valid method for MS 4.10? > > > Bill Thoen wrote: >> I'm trying to understand how to do querying via PHP mapscript, and I >> don't understand the results I'm getting. Basically I'm querying a >> polygon layer of US States with a rectangle that intersects 8 states >> in the upper midwest. It fully encloses two of these. The following >> script seems to find only one result and it says the shapeindex is 42. >> Now I know this is the answer to the meaning of life, the universe and >> everything, but how do I use this to get a list of the state names >> that were found (and why is it only returning 1 found?) >> >> What I want to do eventually is display these states on the map in a >> highlighting color to show they were selected. If I'm going about this >> all wrong, could somebody clue me in? >> >> $rect = ms_newRectObj(); >> $rect->setextent(-50000, -50000, 50000, 50000); >> $lyr = $map->getLayer(1); // states layer >> $results = $lyr->queryByRect($rect); >> if ($results == MS_FAILURE) { >> echo "Nothing found.
"; >> } else { >> echo "Found " . $lyr->getNumResults()."
"; >> for ($i=0; $i<$lyr->getNumResults(); $i++) { >> $rcache = $lyr->getResult($i); >> echo " shapeindex: ".$rcache->shapeindex; >> } >> } >> $rect->free(); >> >> From simon at SIBERN.COM.AU Wed Oct 31 14:46:37 2007 From: simon at SIBERN.COM.AU (Simon Haddon) Date: Thu, 1 Nov 2007 08:46:37 +1100 Subject: scale problem In-Reply-To: <8e880003ee2d5a8921e98de01e5de605@164.129.1.43> Message-ID: Hi Giuseppe, I have a scalebar problem too. In my case I can draw polygons and lines on the screen which do not even come close to the scalebar depending where in Australia I am. I know my drawing tools and the distance measurement toos are accurate but the mapserver scalebar is not. Looking into the code I discover that the scalebar is only calculated on the equator when using geographics. This might be related to what you are seeing depending where on the planet you are. The other problem is related to the project being used and the area. Since you are dealing in millimeters it could be a real problem. I have thought replacing the mapserver created scalebar with a javascript created scale bar or looking at how the scalebar is created and try to make it more accurate. Any suggestions anyone Cheers, Simon Haddon Giuseppe De Rossi wrote: > Hi > (sorry if this is a repost for you) > I've pointed that when > I put the scale to 1000 (or 1/1000), in the map 1 mm should be egual to 1 > meter, well, if I print the map and I try to measure it by using a real > meter line I see that the map is stretched. > I don't know if it is only my experence. Please, try to print a Map after > setting the scale to a normalized value as for example 1/1000, now on your > paper try to measure a distance by using a line: the number of n millimeters > should correspond to n meters, but the line will measure a different number > of millimeters. > Is that your experience too ? is there anybody who can explain me this item, > and is there solution in order to have a phisical millimeter on the paper > when I set the scale to 1/1000 ? > > Another issue: how can I get the meter (graphical) line under the main map > to have normalized values as factor of 10 ie 10,10... 100 meters etc ? > The target consists on using the map as a valid measurement tool. > > > thaks to everybody > > -- > Email.it, the professional e-mail, gratis per te: http://www.email.it/f > > Sponsor: > Email.it Direct Email Marketing, la soluzione vincente per far conoscere il > tuo business. Chiedi un preventivo senza impegno > Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7009&d=20070917 > From Steve.Lime at DNR.STATE.MN.US Wed Oct 31 15:12:21 2007 From: Steve.Lime at DNR.STATE.MN.US (Steve Lime) Date: Wed, 31 Oct 2007 17:12:21 -0500 Subject: scale problem In-Reply-To: <4728F7BD.1050206@sibern.com.au> Message-ID: Scalebar computations will not be particularly accurate with unprojected output for the reason Simon mentions. For projected output the scalebars produced are quite good. Since they are raster images they are prone to a bit of rounding error as the line work is drawn. Comparisons between the scalebar images and features drawn on the screen are very sensitive to how your are computing cellsize. MapServer uses a cell center to cell center pixel model with an extent running from the center of the UL cell to the center of the LR cell. Steve >>> On 10/31/2007 at 4:46 PM, in message <4728F7BD.1050206 at sibern.com.au>, Simon Haddon wrote: > Hi Giuseppe, > > I have a scalebar problem too. In my case I can draw polygons and lines > on the screen which do not even come close to the scalebar depending > where in Australia I am. I know my drawing tools and the distance > measurement toos are accurate but the mapserver scalebar is not. > > Looking into the code I discover that the scalebar is only calculated on > the equator when using geographics. This might be related to what you > are seeing depending where on the planet you are. The other problem is > related to the project being used and the area. Since you are dealing > in millimeters it could be a real problem. > > I have thought replacing the mapserver created scalebar with a > javascript created scale bar or looking at how the scalebar is created > and try to make it more accurate. > > Any suggestions anyone > > Cheers, > Simon Haddon > > Giuseppe De Rossi wrote: >> Hi >> (sorry if this is a repost for you) >> I've pointed that when >> I put the scale to 1000 (or 1/1000), in the map 1 mm should be egual to 1 >> meter, well, if I print the map and I try to measure it by using a real >> meter line I see that the map is stretched. >> I don't know if it is only my experence. Please, try to print a Map after >> setting the scale to a normalized value as for example 1/1000, now on your >> paper try to measure a distance by using a line: the number of n millimeters >> should correspond to n meters, but the line will measure a different number >> of millimeters. >> Is that your experience too ? is there anybody who can explain me this item, >> and is there solution in order to have a phisical millimeter on the paper >> when I set the scale to 1/1000 ? >> >> Another issue: how can I get the meter (graphical) line under the main map >> to have normalized values as factor of 10 ie 10,10... 100 meters etc ? >> The target consists on using the map as a valid measurement tool. >> >> >> thaks to everybody >> >> -- >> Email.it, the professional e-mail, gratis per te: http://www.email.it/f >> >> Sponsor: >> Email.it Direct Email Marketing, la soluzione vincente per far conoscere il >> tuo business. Chiedi un preventivo senza impegno >> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7009&d=20070917 >> From bthoen at GISNET.COM Wed Oct 31 15:48:47 2007 From: bthoen at GISNET.COM (Bill Thoen) Date: Wed, 31 Oct 2007 16:48:47 -0600 Subject: QueryByRect problem in PHPmapscript In-Reply-To: <4728AF6B.5157.008F.0@dnr.state.mn.us> Message-ID: getFeature doesn't seem to be defined in version 4.10.0. When I try to use it I get an error message that says it's undefined. Is this a recent change, or should it be there? Steve Lime wrote: > getFeature is the method to use to retreive a feature from a layer. It is a layer method and > exists for both PHP and the SWIG-based bindings. It replaces the getShape method which > I created with stupid parameter orderings that made it impossible to not pass a tile index. > > I see that it is missing from the PHP/MapScript docs but is present in the Swig docs. I'll file > a ticket on that one... There's already a note at the bottom of the page but it hasn't been > noticed. > From Jacob.Delfos at MAUNSELL.COM Wed Oct 31 16:09:27 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 1 Nov 2007 08:09:27 +0900 Subject: MapServer and PostGIS GEOMETRY type] In-Reply-To: <4728606D.5020309@uva.nl> Message-ID: Thanks, Jan. I may give that a try. I'll probably end up having to split them in the end. Regards, Jacob > -----Original Message----- > From: UMN MapServer Users List > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of Jan Hartmann > Sent: 31 October 2007 20:01 > To: MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS > GEOMETRY type] > > If you own mapinfo, there is an easy way to use mapbasic to create a > script that will split your table up based upon the entity > type. It's a > matter of looping through a select statement that filters on > object type > and then save the selection as tablename_entity_type.TAB. > > > > > Jan Hartmann schreef: > > I really would advise you to split them up. Being lazy > always creates > > more work in the end, I can tell you. I have lots of personal > > experience in that field :-) > > > > Jan > > > > Delfos, Jacob wrote: > >> Hi Jukka, > >> > >> When I have the data a bit cleaned up, I'll have a look if > I can put > >> something together. Currently I'm still in the process of "sifting > >> through" :) > >> > >> I'm dealing with a lot of MapInfo files with mixed > geometries, and I > >> want to see if I can get away with being lazy (meaning I > don't split up > >> tables by geometry). > >> > >> Regards, > >> > >> Jacob > >> > >> > >> > >>> -----Original Message----- > >>> From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] Sent: 30 > >>> October 2007 14:52 > >>> To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > >>> Subject: RE: [UMN_MAPSERVER-USERS] MapServer and PostGIS > GEOMETRY type > >>> > >>> Hi Jacob, > >>> > >>> Would it be impossible for you to create a couple of such records > >>> and make a controlled trial to see what really happens? > >>> > >>> -Jukka Rahkonen- > >>> > >>> > >>> -----Original Message----- > >>> From: UMN MapServer Users List on behalf of Delfos, Jacob > >>> Sent: Tue 30.10.2007 0:53 > >>> To: MAPSERVER-USERS at LISTS.UMN.EDU > >>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS > GEOMETRY type > >>> > >>> Hi Jan, > >>> > >>> Thanks for your reply. But I still need to find out how > MapServer will > >>> deal with the records that contain an unexpected geometry > type. I could > >>> have a polygon layer pointing to a table which I expect to contain > >>> polygons. But if the geometry type of the table is > GEOMETRY, then it > >>> could contain a line object. What will MapServer do? > >>> > >>> If I do an attribute query on such a table, will it > return matching > >>> records even if the geometry object is a line, though the > layer is a > >>> polygon layer? > >>> > >>> Regards, > >>> > >>> Jacob > >>> > >>> > >>>> -----Original Message----- > >>>> From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] Sent: > 29 October > >>>> 2007 20:13 > >>>> To: Delfos, Jacob > >>>> Cc: MAPSERVER-USERS at LISTS.UMN.EDU > >>>> Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS > >>> GEOMETRY type > >>>> Hi Jacob, > >>>> > >>>> The Mapfile Reference Manual, chapter Layer says > >>>> (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) > >>>> > >>>> ------------------------------------------------------------ > >>>> > >>>> TYPE [point|line|polygon|circle|annotation|raster|query|chart] > >>>> > >>>> Specifies how the data should be drawn. Need not be > the same > >>>> as the shapefile type. For example, a polygon shapefile may be > >>>> drawn as a point layer, but a point shapefile may not be > drawn as a > >>>> polygon layer.Common sense rules. > >>>> > >>>> ------------------------------------------------------------ > >>>> > >>>> You probably just have to try it out on your data. > >>>> > >>>> Jan > >>>> > >>>> Delfos, Jacob wrote: > >>>>> Hi List, > >>>>> > >>>>> For a particular client I have to translate a lot of > >>>> MapInfo files into > >>>>> PostGIS. Some files may contain some different geometries, > >>>> which ogr2ogr > >>>>> doesn't like. So I force the geometry type to "GEOMETRY" (-nlt > >>>>> GEOMETRY). It translates fine, and seems to draw fine in > >>>> MapServer. But > >>>>> how does MapServer really deal with it? > >>>>> > >>>>> If I have a polygon layer, and point it to a PostGIS table > >>>> that contains > >>>>> objects of the type "GEOMETRY", does it simply ignore > >>>> anything that is > >>>>> not a polygon? What about the results of attribute queries? > >>>> Would those > >>>>> be filtered on the geometry type of the layer? > >>>>> > >>>>> I can avoid using "GEOMETRY type" by translating the files > >>>> in FME, but > >>>>> I'd prefer to recommend an Open Source solution. > >>>>> > >>>>> Regards, > >>>>> > >>>>> Jacob > >>>>> > >>>>> > >>>>> *JACOB DELFOS > >>>>> GIS ANALYST > >>>>> *Maunsell Australia Pty Ltd > >>>>> 629 Newcastle Street, Leederville, WA 6007 > >>>>> PO Box 81, Leederville, WA 6902 > >>>>> Western Australia > >>>>> ABN 20 093 846 925 > >>>>> > >>>>> Tel + 61 8 9281 6185 > >>>>> Fax + 61 8 9281 6297 > >>>>> _jacob.delfos at maunsell.com_ > >>>>> > >>>>> This email and any attachments are intended solely for > the named > >>>>> recipient and are confidential. The copying or distribution > >>>> of them or > >>>>> any information they contain by anyone other than the named > >>>> recipient is > >>>>> prohibited. If you have received this document in error, > >>>> please notify > >>>>> the sender and delete all copies from your computer system > >>>> and destroy > >>>>> all hard copies. It is the recipient's responsibility to > >>> check this > >>>>> email and any attachments to this email for viruses before use. > >>>>> > >>> This email and any attachments are intended solely for the named > >>> recipient and are confidential. The copying or > distribution of them > >>> or any information they contain by anyone other than the named > >>> recipient is prohibited. If you have received this document in > >>> error, please notify the sender and delete all copies from your > >>> computer system and destroy all hard copies. It is the > recipient's > >>> responsibility to check this email and any attachments to > this email > >>> for viruses before use. > >>> > >>> > >> > >> This email and any attachments are intended solely for the named > >> recipient and are confidential. The copying or > distribution of them > >> or any information they contain by anyone other than the named > >> recipient is prohibited. If you have received this > document in error, > >> please notify the sender and delete all copies from your computer > >> system and destroy all hard copies. It is the recipient's > >> responsibility to check this email and any attachments to > this email > >> for viruses before use. > >> > > > > > -- > > > > > Milo van der Linden > skype: milovanderlinden > mlinden at zeelandnet.nl > milovanderlinden at gmail.com > milo at 3dsite.nl > http://www.3dsite.nl > > > > De informatie in dit bericht reflecteert mijn persoonlijke mening en > niet die van een bedrijf of instantie. Aan de informatie kunnen geen > rechten worden ontleend. Indien dit bericht onderdeel is van > een forum, > mailing-list of community dan gelden automatisch de bij het > betreffende > medium behorende voorwaarden. The information in this message reflects > my personal opinion and not that of a company or public body. > All rights > reserved.If this message is contained in a mailing-list or community, > the rights on the medium are automatically adapted. > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Jacob.Delfos at MAUNSELL.COM Wed Oct 31 16:12:22 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 1 Nov 2007 08:12:22 +0900 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: Message-ID: Thanks, Flavio. Currently we're actually evaluating the "Professional edition" of FME. But I'd prefer to be able to recommend an Open-Source solution to our client, and I think ogr2ogr may be simpler to batch-process. But obviously at the end of the day I'll have to recommend whatever works best, even if it costs. Regards, Jacob > -----Original Message----- > From: Flavio Hendry [mailto:flavio at tydac.ch] > Sent: 31 October 2007 15:48 > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > Hi Jacob > > You can split them up and be lazy all in one. Just use FME, it will do > the job for you automatically ... www.safe.com. However, the > being lazy > would cost you a few bucks in this case :-( ... > > Mit freundlichem Gruss / Best Regards > Flavio Hendry > > ---------------------------------------------------------------- > TYDAC Web-Site: http://www.tydac.ch > TYDAC MapServer: http://www.mapserver.ch > ---------------------------------------------------------------- > ############ Mit freundlichen Gruessen / Kind Regards > ############ mailto:flavio at tydac.ch > ############ TYDAC AG - http://www.tydac.ch > #### #### Geographic Information Solutions > #### #### Luternauweg 12 -- CH-3006 Bern > ############ Tel +41 (0)31 368 0180 - Fax +41 (0)31 368 1860 > ---------------------------------------------------------------- > > > -----Original Message----- > From: "Delfos, Jacob" > To: MAPSERVER-USERS at LISTS.UMN.EDU > Date: Tue, 30 Oct 2007 16:37:03 +0900 > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY type > > > Hi Jukka, > > > > When I have the data a bit cleaned up, I'll have a look if I can put > > something together. Currently I'm still in the process of "sifting > > through" :) > > > > I'm dealing with a lot of MapInfo files with mixed geometries, and I > > want to see if I can get away with being lazy (meaning I don't split > > up > > tables by geometry). > > > > Regards, > > > > Jacob > > > > > > > > > -----Original Message----- > > > From: Rahkonen Jukka [mailto:Jukka.Rahkonen at mmmtike.fi] > > > Sent: 30 October 2007 14:52 > > > To: Delfos, Jacob; MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: RE: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY > > type > > > > > > Hi Jacob, > > > > > > Would it be impossible for you to create a couple of such > > > records and make a controlled trial to see what really happens? > > > > > > -Jukka Rahkonen- > > > > > > > > > -----Original Message----- > > > From: UMN MapServer Users List on behalf of Delfos, Jacob > > > Sent: Tue 30.10.2007 0:53 > > > To: MAPSERVER-USERS at LISTS.UMN.EDU > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS GEOMETRY > > type > > > > > > Hi Jan, > > > > > > Thanks for your reply. But I still need to find out how MapServer > > will > > > deal with the records that contain an unexpected geometry > > > type. I could > > > have a polygon layer pointing to a table which I expect to contain > > > polygons. But if the geometry type of the table is GEOMETRY, then > > it > > > could contain a line object. What will MapServer do? > > > > > > If I do an attribute query on such a table, will it > return matching > > > records even if the geometry object is a line, though the layer is > > a > > > polygon layer? > > > > > > Regards, > > > > > > Jacob > > > > > > > > > > -----Original Message----- > > > > From: Jan Hartmann [mailto:j.l.h.hartmann at uva.nl] > > > > Sent: 29 October 2007 20:13 > > > > To: Delfos, Jacob > > > > Cc: MAPSERVER-USERS at LISTS.UMN.EDU > > > > Subject: Re: [UMN_MAPSERVER-USERS] MapServer and PostGIS > > > GEOMETRY type > > > > > > > > Hi Jacob, > > > > > > > > The Mapfile Reference Manual, chapter Layer says > > > > (http://mapserver.gis.umn.edu/docs/reference/mapfile/layer) > > > > > > > > ------------------------------------------------------------ > > > > > > > > TYPE [point|line|polygon|circle|annotation|raster|query|chart] > > > > > > > > Specifies how the data should be drawn. Need not be the > > > > same as the > > > > shapefile type. For example, a polygon shapefile may be drawn > > > > as a point > > > > layer, but a point shapefile may not be drawn as a polygon > > > > layer.Common > > > > sense rules. > > > > > > > > ------------------------------------------------------------ > > > > > > > > You probably just have to try it out on your data. > > > > > > > > Jan > > > > > > > > Delfos, Jacob wrote: > > > > > Hi List, > > > > > > > > > > For a particular client I have to translate a lot of > > > > MapInfo files into > > > > > PostGIS. Some files may contain some different geometries, > > > > which ogr2ogr > > > > > doesn't like. So I force the geometry type to > "GEOMETRY" (-nlt > > > > > GEOMETRY). It translates fine, and seems to draw fine in > > > > MapServer. But > > > > > how does MapServer really deal with it? > > > > > > > > > > If I have a polygon layer, and point it to a PostGIS table > > > > that contains > > > > > objects of the type "GEOMETRY", does it simply ignore > > > > anything that is > > > > > not a polygon? What about the results of attribute queries? > > > > Would those > > > > > be filtered on the geometry type of the layer? > > > > > > > > > > I can avoid using "GEOMETRY type" by translating the files > > > > in FME, but > > > > > I'd prefer to recommend an Open Source solution. > > > > > > > > > > Regards, > > > > > > > > > > Jacob > > > > > > > > > > > > > > > *JACOB DELFOS > > > > > GIS ANALYST > > > > > *Maunsell Australia Pty Ltd > > > > > 629 Newcastle Street, Leederville, WA 6007 > > > > > PO Box 81, Leederville, WA 6902 > > > > > Western Australia > > > > > ABN 20 093 846 925 > > > > > > > > > > Tel + 61 8 9281 6185 > > > > > Fax + 61 8 9281 6297 > > > > > _jacob.delfos at maunsell.com_ > > > > > > > > > > This email and any attachments are intended solely for the > > named > > > > > recipient and are confidential. The copying or distribution > > > > of them or > > > > > any information they contain by anyone other than the named > > > > recipient is > > > > > prohibited. If you have received this document in error, > > > > please notify > > > > > the sender and delete all copies from your computer system > > > > and destroy > > > > > all hard copies. It is the recipient's responsibility to > > > check this > > > > > email and any attachments to this email for viruses > before use. > > > > > > > > > > > > > > > This email and any attachments are intended solely for the > > > named recipient and are confidential. The copying or > > > distribution of them or any information they contain by > > > anyone other than the named recipient is prohibited. If you > > > have received this document in error, please notify the > > > sender and delete all copies from your computer system and > > > destroy all hard copies. It is the recipient's responsibility > > > to check this email and any attachments to this email for > > > viruses before use. > > > > > > > > > > This email and any attachments are intended solely for the named > > recipient and are confidential. The copying or distribution of them > > or any information they contain by anyone other than the named > > recipient is prohibited. If you have received this document > in error, > > please notify the sender and delete all copies from your computer > > system and destroy all hard copies. It is the recipient's > > responsibility to check this email and any attachments to this email > > for viruses before use. > > > This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From warmerdam at POBOX.COM Wed Oct 31 16:49:43 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Wed, 31 Oct 2007 19:49:43 -0400 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: <4997F456680DAD4DA1E042C40C46361101BC8347@auper1ex002.au.aecomnet.com> Message-ID: Delfos, Jacob wrote: > Thanks, Flavio. Currently we're actually evaluating the "Professional > edition" of FME. But I'd prefer to be able to recommend an Open-Source > solution to our client, and I think ogr2ogr may be simpler to > batch-process. But obviously at the end of the day I'll have to > recommend whatever works best, even if it costs. Jacob, FME is an excellent investment for any shop doing a lot of GIS data processing. However, if the primary concern is splitting a gis layer into geometry type specific layers, this can be accomplished as described in the second FAQ at: http://trac.osgeo.org/gdal/wiki/FAQVector Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Jacob.Delfos at MAUNSELL.COM Wed Oct 31 17:29:28 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 1 Nov 2007 09:29:28 +0900 Subject: MapServer and PostGIS GEOMETRY type Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Jacob.Delfos at MAUNSELL.COM Wed Oct 31 19:09:14 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 1 Nov 2007 11:09:14 +0900 Subject: Mapserver Color Binding: Blue and Green swapped (bug?) Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From warmerdam at POBOX.COM Wed Oct 31 21:13:13 2007 From: warmerdam at POBOX.COM (Frank Warmerdam) Date: Thu, 1 Nov 2007 00:13:13 -0400 Subject: Mapserver Color Binding: Blue and Green swapped (bug?) In-Reply-To: <4997F456680DAD4DA1E042C40C46361101179F15@auper1ex002.au.aecomnet.com> Message-ID: Delfos, Jacob wrote: > Hi List > > I am trying to make use of the colour binding feature, and it basically > works, except... the colours are not quite right. My colours do not > match those in MapInfo, although I can make MapInfo emulate the > MapServer colours by swapping blue and green around. So basically: my > RGB values are interpreted by MapServer as RBG. > > This happens for polygons as well as lines (haven't tried points). My > data has been translated from MapInfo to PostGIS. > > I tried to lodge a bug in Trac, but it says "TICKET_CREATE privileges > are required to perform this operation" > > Does anyone know more about this colour problem? Jacob, With some pointers from Howard, I found this segment of code in bindColorAttribute() in maputil.c: attribute->red = atoi(tokens[0]); attribute->blue = atoi(tokens[1]); attribute->green = atoi(tokens[2]); I think this is responsible. If you are building from source, try just changing it to the more obvious organization. I'd also suggest you file a bug in Trac on the issue we will see if there is a subtle reason for this, or it's just a typo. To file bugs you need an OSGeo Userid. The pointer to get an osgeo userid which you can use to login with is under the title "Important Notice" on the http://trac.osgeo.org/mapserver page. The same userid can be used for other OSGeo services like subversion, and other trac instances (like GDAL's). Best regards, -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | President OSGeo, http://osgeo.org From Jacob.Delfos at MAUNSELL.COM Wed Oct 31 21:01:26 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 1 Nov 2007 13:01:26 +0900 Subject: Mapserver Color Binding: Blue and Greenswapped (bug?) Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From mlinden at ZEELANDNET.NL Wed Oct 31 22:45:06 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 1 Nov 2007 06:45:06 +0100 Subject: MapServer and PostGIS GEOMETRY type In-Reply-To: <47291497.1050608@pobox.com> Message-ID: In the mentioned FAQVector, the geometry types are selected seperatly. If you use ogr2ogr to convert to shape and point to a directory instead of a file, the _point _line and _poly are constructed automatically if I am correct! Frank Warmerdam schreef: > Delfos, Jacob wrote: >> Thanks, Flavio. Currently we're actually evaluating the "Professional >> edition" of FME. But I'd prefer to be able to recommend an Open-Source >> solution to our client, and I think ogr2ogr may be simpler to >> batch-process. But obviously at the end of the day I'll have to >> recommend whatever works best, even if it costs. > > Jacob, > > FME is an excellent investment for any shop doing a lot of GIS > data processing. However, if the primary concern is splitting > a gis layer into geometry type specific layers, this can be > accomplished as described in the second FAQ at: > > http://trac.osgeo.org/gdal/wiki/FAQVector > > Best regards, -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mlinden at ZEELANDNET.NL Wed Oct 31 22:49:21 2007 From: mlinden at ZEELANDNET.NL (Milo van der Linden) Date: Thu, 1 Nov 2007 06:49:21 +0100 Subject: Mapserver Color Binding: Blue and Green swapped (bug?) In-Reply-To: <47295259.20907@pobox.com> Message-ID: Extra note: MapInfo uses a large integer to describe it's internaly used colors. Here is a C# function to convert MapInfo color code to RGB: as you can see, the MapInfo color code is in format BGR instead of RGB. Maybe this has to do with your problem? private static Color miColorCodeToRGB(Int32 miColorCode) { Int32 iRed; Int32 iGreen; Int32 iBlue; Int32 _miColorCode; try { _miColorCode = miColorCode; //lColor = lColor \ &H100 'divide //iGreen = lColor Mod &H100 'get green component iRed = _miColorCode % 0x100; _miColorCode = _miColorCode / 0x100; iGreen = _miColorCode % 0x100; _miColorCode = _miColorCode / 0x100; iBlue = _miColorCode % 0x100; Color _Color = Color.FromArgb(255,iBlue, iGreen, iRed); return _Color; } catch { return Color.Transparent; } Frank Warmerdam schreef: > Delfos, Jacob wrote: >> Hi List >> >> I am trying to make use of the colour binding feature, and it >> basically works, except... the colours are not quite right. My >> colours do not match those in MapInfo, although I can make MapInfo >> emulate the MapServer colours by swapping blue and green around. So >> basically: my RGB values are interpreted by MapServer as RBG. >> >> This happens for polygons as well as lines (haven't tried points). My >> data has been translated from MapInfo to PostGIS. >> >> I tried to lodge a bug in Trac, but it says "TICKET_CREATE privileges >> are required to perform this operation" >> >> Does anyone know more about this colour problem? > > Jacob, > > With some pointers from Howard, I found this segment of code in > bindColorAttribute() in maputil.c: > > attribute->red = atoi(tokens[0]); > attribute->blue = atoi(tokens[1]); > attribute->green = atoi(tokens[2]); > > > I think this is responsible. If you are building from source, try just > changing it to the more obvious organization. I'd also suggest you > file a bug in Trac on the issue we will see if there is a subtle reason > for this, or it's just a typo. > > To file bugs you need an OSGeo Userid. The pointer to get an osgeo > userid which you can use to login with is under the title "Important > Notice" on the http://trac.osgeo.org/mapserver page. The same userid > can be used for other OSGeo services like subversion, and other > trac instances (like GDAL's). > > Best regards, -- Milo van der Linden skype: milovanderlinden mlinden at zeelandnet.nl milovanderlinden at gmail.com milo at 3dsite.nl http://www.3dsite.nl De informatie in dit bericht reflecteert mijn persoonlijke mening en niet die van een bedrijf of instantie. Aan de informatie kunnen geen rechten worden ontleend. Indien dit bericht onderdeel is van een forum, mailing-list of community dan gelden automatisch de bij het betreffende medium behorende voorwaarden. The information in this message reflects my personal opinion and not that of a company or public body. All rights reserved.If this message is contained in a mailing-list or community, the rights on the medium are automatically adapted. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Jacob.Delfos at MAUNSELL.COM Wed Oct 31 23:09:30 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 1 Nov 2007 15:09:30 +0900 Subject: MapServer and PostGIS GEOMETRY type Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use. From Jacob.Delfos at MAUNSELL.COM Wed Oct 31 23:11:48 2007 From: Jacob.Delfos at MAUNSELL.COM (Delfos, Jacob) Date: Thu, 1 Nov 2007 15:11:48 +0900 Subject: Mapserver Color Binding: Blue and Green swapped (bug?) Message-ID: An HTML attachment was scrubbed... URL: -------------- next part -------------- This email and any attachments are intended solely for the named recipient and are confidential. The copying or distribution of them or any information they contain by anyone other than the named recipient is prohibited. If you have received this document in error, please notify the sender and delete all copies from your computer system and destroy all hard copies. It is the recipient's responsibility to check this email and any attachments to this email for viruses before use.